|
1 | 1 | {
|
2 | 2 | "name": "monoco",
|
3 |
| - "version": "0.6.1", |
| 3 | + "version": "0.6.5", |
4 | 4 | "description": "A Model and a NoSQL Database for Components",
|
5 | 5 | "_id": "e89c617b6b15d24",
|
6 | 6 | "schemas": {
|
|
13 | 13 | ],
|
14 | 14 | "_core": true,
|
15 | 15 | "version": "property",
|
16 |
| - "find": "method", |
17 | 16 | "load": "method",
|
18 | 17 | "system": "method",
|
19 | 18 | "warning": "event"
|
|
33 | 32 | "mandatory": true,
|
34 | 33 | "default": "0.0.0"
|
35 | 34 | },
|
36 |
| - "find": { |
37 |
| - "params": [ |
38 |
| - { |
39 |
| - "name": "Class", |
40 |
| - "type": "string" |
41 |
| - }, |
42 |
| - { |
43 |
| - "name": "query", |
44 |
| - "type": "object", |
45 |
| - "mandatory": false, |
46 |
| - "default": {} |
47 |
| - } |
48 |
| - ], |
49 |
| - "result": "array" |
50 |
| - }, |
51 | 35 | "load": {
|
52 | 36 | "params": [
|
53 | 37 | {
|
|
99 | 83 | "type": "boolean",
|
100 | 84 | "readOnly": false,
|
101 | 85 | "mandatory": false,
|
102 |
| - "default": false |
| 86 | + "default": true |
103 | 87 | },
|
104 | 88 | "component": {
|
105 | 89 | "type": "string",
|
|
778 | 762 | "action": "function main() { var systems = [], system = null, i = 0, length = 0; if (typeof document !== 'undefined') { systems = document.querySelectorAll('link[rel=system]'); length = systems.length; for (i = 0; i < length; i++) { system = systems[i]; if (system.getAttribute('async') === 'true') { this.require('monoco').load(system.href, true); } else { this.require('monoco').load(system.href, false); } } if (length === 0) { this.require('monoco').ready(); } }}",
|
779 | 763 | "core": true
|
780 | 764 | },
|
781 |
| - "17d9b1cafc1f081": { |
782 |
| - "_id": "17d9b1cafc1f081", |
| 765 | + "19abc1e8061bf6a": { |
| 766 | + "_id": "19abc1e8061bf6a", |
783 | 767 | "component": "Monoco",
|
784 | 768 | "state": "error",
|
785 | 769 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
|
786 | 770 | "core": true
|
787 | 771 | },
|
788 |
| - "1207911fe8177f6": { |
789 |
| - "_id": "1207911fe8177f6", |
790 |
| - "component": "Monoco", |
791 |
| - "state": "find", |
792 |
| - "action": "function find(Class, query) { return $component.find(Class, query);}", |
793 |
| - "core": true, |
794 |
| - "useCoreAPI": true |
795 |
| - }, |
796 |
| - "1b71b1ffad10e9a": { |
797 |
| - "_id": "1b71b1ffad10e9a", |
| 772 | + "12ddb1525a136e3": { |
| 773 | + "_id": "12ddb1525a136e3", |
798 | 774 | "component": "Monoco",
|
799 | 775 | "state": "system",
|
800 | 776 | "action": "function system(name) { var System = null, system = {}, result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = this.require('MonocoSystem'); system = new System(conf); } else { result = this.find('MonocoSystem', {'master': true}); if (result.length) { system = result[0]; } } return system; }",
|
801 | 777 | "core": true
|
802 | 778 | },
|
803 |
| - "185a412336176b9": { |
804 |
| - "_id": "185a412336176b9", |
| 779 | + "1d7f91f3a61981d": { |
| 780 | + "_id": "1d7f91f3a61981d", |
805 | 781 | "component": "Monoco",
|
806 | 782 | "state": "warning",
|
807 | 783 | "action": "function warning(message) { console.warn('monoco: ' + message); }",
|
808 | 784 | "core": true
|
809 | 785 | },
|
810 |
| - "154ea133c4110f1": { |
811 |
| - "_id": "154ea133c4110f1", |
| 786 | + "1f1ec148d51ef29": { |
| 787 | + "_id": "1f1ec148d51ef29", |
812 | 788 | "component": "MonocoChannel",
|
813 | 789 | "state": "listen",
|
814 | 790 | "action": "function listen(event, action) { $channel.listen(event, action); }",
|
815 | 791 | "core": true,
|
816 | 792 | "useCoreAPI": true
|
817 | 793 | },
|
818 |
| - "150c01dd791905c": { |
819 |
| - "_id": "150c01dd791905c", |
| 794 | + "111d71a6261835f": { |
| 795 | + "_id": "111d71a6261835f", |
820 | 796 | "component": "MonocoChannel",
|
821 | 797 | "state": "send",
|
822 | 798 | "action": "function send(message) { return $channel.send(message); }",
|
823 | 799 | "core": true,
|
824 | 800 | "useCoreAPI": true
|
825 | 801 | },
|
826 |
| - "1749c19b5c1825f": { |
827 |
| - "_id": "1749c19b5c1825f", |
| 802 | + "14e5218fb312da9": { |
| 803 | + "_id": "14e5218fb312da9", |
828 | 804 | "component": "MonocoClassInfo",
|
829 | 805 | "state": "collection",
|
830 | 806 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
|
831 | 807 | "core": true
|
832 | 808 | },
|
833 |
| - "1ea5011ca91fc5e": { |
834 |
| - "_id": "1ea5011ca91fc5e", |
| 809 | + "1541a120951c2e8": { |
| 810 | + "_id": "1541a120951c2e8", |
835 | 811 | "component": "MonocoClassInfo",
|
836 | 812 | "state": "collections",
|
837 | 813 | "action": "function collections() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'collection') { result.push(item); } } return result; }",
|
838 | 814 | "core": true
|
839 | 815 | },
|
840 |
| - "1b99b1971811bd8": { |
841 |
| - "_id": "1b99b1971811bd8", |
| 816 | + "13afd1bb351b287": { |
| 817 | + "_id": "13afd1bb351b287", |
842 | 818 | "component": "MonocoClassInfo",
|
843 | 819 | "state": "event",
|
844 | 820 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
|
845 | 821 | "core": true
|
846 | 822 | },
|
847 |
| - "19ef91531c16def": { |
848 |
| - "_id": "19ef91531c16def", |
| 823 | + "14a5910c801513b": { |
| 824 | + "_id": "14a5910c801513b", |
849 | 825 | "component": "MonocoClassInfo",
|
850 | 826 | "state": "events",
|
851 | 827 | "action": "function events() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'event') { result.push(item); } } return result; }",
|
852 | 828 | "core": true
|
853 | 829 | },
|
854 |
| - "107bb1e98218a69": { |
855 |
| - "_id": "107bb1e98218a69", |
| 830 | + "127d71d01d1f118": { |
| 831 | + "_id": "127d71d01d1f118", |
856 | 832 | "component": "MonocoClassInfo",
|
857 | 833 | "state": "method",
|
858 | 834 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
|
859 | 835 | "core": true
|
860 | 836 | },
|
861 |
| - "1d1e41e9fb17fa0": { |
862 |
| - "_id": "1d1e41e9fb17fa0", |
| 837 | + "13c1e15c97106fa": { |
| 838 | + "_id": "13c1e15c97106fa", |
863 | 839 | "component": "MonocoClassInfo",
|
864 | 840 | "state": "methods",
|
865 | 841 | "action": "function methods() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'method') { result.push(item); } } return result; }",
|
866 | 842 | "core": true
|
867 | 843 | },
|
868 |
| - "1fcdd13e521a193": { |
869 |
| - "_id": "1fcdd13e521a193", |
| 844 | + "1148b1579d1c337": { |
| 845 | + "_id": "1148b1579d1c337", |
870 | 846 | "component": "MonocoClassInfo",
|
871 | 847 | "state": "properties",
|
872 | 848 | "action": "function properties() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'property') { result.push(item); } } return result; }",
|
873 | 849 | "core": true
|
874 | 850 | },
|
875 |
| - "10f131284010474": { |
876 |
| - "_id": "10f131284010474", |
| 851 | + "151441dd321c49a": { |
| 852 | + "_id": "151441dd321c49a", |
877 | 853 | "component": "MonocoClassInfo",
|
878 | 854 | "state": "property",
|
879 | 855 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
|
880 | 856 | "core": true
|
881 | 857 | },
|
882 |
| - "1e72d1144a1767f": { |
883 |
| - "_id": "1e72d1144a1767f", |
| 858 | + "172061151717e82": { |
| 859 | + "_id": "172061151717e82", |
884 | 860 | "component": "MonocoComponent",
|
885 | 861 | "state": "destroy",
|
886 | 862 | "action": "function destroy() { $component.destroy(this.id()); }",
|
887 | 863 | "core": true,
|
888 | 864 | "useCoreAPI": true
|
889 | 865 | },
|
890 |
| - "124c71417112d12": { |
891 |
| - "_id": "124c71417112d12", |
| 866 | + "103231088913bc9": { |
| 867 | + "_id": "103231088913bc9", |
892 | 868 | "component": "MonocoComponent",
|
893 | 869 | "state": "off",
|
894 | 870 | "action": "function off(state, behaviorId) { var args = [], i = 0, length = 0; length = arguments.length; for (i = 0; i < length - 7; i++) { args.push(arguments[i]); } if ($workflow.checkParams({\"component\": this, \"methodName\": \"off\", \"args\": args})) { if ($metamodel.isValidState(state, this.constructor.name)) {$behavior.remove({\"behaviorId\": behaviorId, \"componentId\": this.id(), \"state\": state}); } else { $helper.getMonoco().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); } } }",
|
895 | 871 | "core": true,
|
896 | 872 | "useCoreAPI": true
|
897 | 873 | },
|
898 |
| - "1241116e02146d0": { |
899 |
| - "_id": "1241116e02146d0", |
| 874 | + "1688a1f2f511efa": { |
| 875 | + "_id": "1688a1f2f511efa", |
900 | 876 | "component": "MonocoComponent",
|
901 | 877 | "state": "require",
|
902 | 878 | "action": "function require(id) { return $component.get(id); }",
|
903 | 879 | "core": true,
|
904 | 880 | "useCoreAPI": true
|
905 | 881 | },
|
906 |
| - "1a37c169ba1d30f": { |
907 |
| - "_id": "1a37c169ba1d30f", |
| 882 | + "156781141b13357": { |
| 883 | + "_id": "156781141b13357", |
908 | 884 | "component": "MonocoDatabase",
|
909 | 885 | "state": "subsystem",
|
910 | 886 | "action": "function subsystem(params) { return $db.subsystem(params); }",
|
911 | 887 | "core": true,
|
912 | 888 | "useCoreAPI": true
|
913 | 889 | },
|
914 |
| - "13f29188621ecbe": { |
915 |
| - "_id": "13f29188621ecbe", |
| 890 | + "19a9211da21537b": { |
| 891 | + "_id": "19a9211da21537b", |
916 | 892 | "component": "MonocoDatabase",
|
917 | 893 | "state": "system",
|
918 | 894 | "action": "function system(system) { return $db.system(system); }",
|
919 | 895 | "core": true,
|
920 | 896 | "useCoreAPI": true
|
921 | 897 | },
|
922 |
| - "18c0416b8610ed0": { |
923 |
| - "_id": "18c0416b8610ed0", |
| 898 | + "1c6de1036413c57": { |
| 899 | + "_id": "1c6de1036413c57", |
924 | 900 | "component": "MonocoMetamodel",
|
925 | 901 | "state": "create",
|
926 | 902 | "action": "function create() { $metamodel.create(); }",
|
927 | 903 | "core": true,
|
928 | 904 | "useCoreAPI": true
|
929 | 905 | },
|
930 |
| - "16acb1c80c13e52": { |
931 |
| - "_id": "16acb1c80c13e52", |
| 906 | + "1fee91461b1544e": { |
| 907 | + "_id": "1fee91461b1544e", |
932 | 908 | "component": "MonocoMetamodel",
|
933 | 909 | "state": "schema",
|
934 | 910 | "action": "function schema(schema) { $metamodel.schema(schema); }",
|
935 | 911 | "core": true,
|
936 | 912 | "useCoreAPI": true
|
937 | 913 | },
|
938 |
| - "192d91e499135ea": { |
939 |
| - "_id": "192d91e499135ea", |
| 914 | + "1a71a19e5b16c12": { |
| 915 | + "_id": "1a71a19e5b16c12", |
940 | 916 | "component": "MonocoMetamodel",
|
941 | 917 | "state": "type",
|
942 | 918 | "action": "function type(type) { $metamodel.type(type); }",
|
943 | 919 | "core": true,
|
944 | 920 | "useCoreAPI": true
|
945 | 921 | },
|
946 |
| - "1936717a0f191c8": { |
947 |
| - "_id": "1936717a0f191c8", |
| 922 | + "11cf91277b11aaf": { |
| 923 | + "_id": "11cf91277b11aaf", |
948 | 924 | "component": "MonocoSystem",
|
949 | 925 | "state": "sync",
|
950 | 926 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }",
|
|
956 | 932 | "Monoco": {
|
957 | 933 | "monoco": {
|
958 | 934 | "_id": "monoco",
|
959 |
| - "version": "0.6.1" |
| 935 | + "version": "0.6.5" |
960 | 936 | }
|
961 | 937 | },
|
962 | 938 | "MonocoChannel": {
|
|
0 commit comments