|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.6.6", |
| 3 | + "version": "0.6.7", |
4 | 4 | "description": "A Model and a NoSQL Database for Components", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
7 | 7 | "MonocoSchema": { |
| 8 | + "load": "method", |
8 | 9 | "ready": "event", |
9 | 10 | "_id": "MonocoSchema", |
10 | 11 | "_name": "MonocoSchema", |
|
13 | 14 | ], |
14 | 15 | "_core": true, |
15 | 16 | "version": "property", |
16 | | - "load": "method", |
17 | 17 | "system": "method", |
18 | 18 | "warning": "event" |
19 | 19 | }, |
20 | 20 | "Monoco": { |
21 | | - "ready": {}, |
22 | | - "_id": "Monoco", |
23 | | - "_name": "Monoco", |
24 | | - "_schema": "MonocoSchema", |
25 | | - "_inherit": [ |
26 | | - "MonocoComponent" |
27 | | - ], |
28 | | - "_core": true, |
29 | | - "version": { |
30 | | - "type": "string", |
31 | | - "readOnly": true, |
32 | | - "mandatory": true, |
33 | | - "default": "0.0.0" |
34 | | - }, |
35 | 21 | "load": { |
36 | 22 | "params": [ |
37 | 23 | { |
|
46 | 32 | } |
47 | 33 | ] |
48 | 34 | }, |
| 35 | + "ready": {}, |
| 36 | + "_id": "Monoco", |
| 37 | + "_name": "Monoco", |
| 38 | + "_schema": "MonocoSchema", |
| 39 | + "_inherit": [ |
| 40 | + "MonocoComponent" |
| 41 | + ], |
| 42 | + "_core": true, |
| 43 | + "version": { |
| 44 | + "type": "string", |
| 45 | + "readOnly": true, |
| 46 | + "mandatory": true, |
| 47 | + "default": "0.0.0" |
| 48 | + }, |
49 | 49 | "warning": { |
50 | 50 | "params": [ |
51 | 51 | { |
|
762 | 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(); } }}", |
763 | 763 | "core": true |
764 | 764 | }, |
765 | | - "1d8ea13b841657f": { |
766 | | - "_id": "1d8ea13b841657f", |
| 765 | + "1b9c41ce431f02e": { |
| 766 | + "_id": "1b9c41ce431f02e", |
767 | 767 | "component": "Monoco", |
768 | 768 | "state": "error", |
769 | 769 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }", |
770 | 770 | "core": true |
771 | 771 | }, |
772 | | - "1beb7120a31c7f0": { |
773 | | - "_id": "1beb7120a31c7f0", |
| 772 | + "1fcf01a9e71b80d": { |
| 773 | + "_id": "1fcf01a9e71b80d", |
774 | 774 | "component": "Monoco", |
775 | 775 | "state": "system", |
776 | 776 | "action": "function system(name) { var System = null, system = {}, systemId = '', result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = this.require('MonocoSystem'); system = new System(conf); } else { result = $db.MonocoSystem.find({ 'master': true }); if (result.length) { systemId = result[0]._id; system = $component.get(systemId); } } return system;}", |
777 | 777 | "core": true |
778 | 778 | }, |
779 | | - "15b09135281558a": { |
780 | | - "_id": "15b09135281558a", |
| 779 | + "1874c18b1d1e6b6": { |
| 780 | + "_id": "1874c18b1d1e6b6", |
781 | 781 | "component": "Monoco", |
782 | 782 | "state": "warning", |
783 | 783 | "action": "function warning(message) { console.warn('monoco: ' + message); }", |
784 | 784 | "core": true |
785 | 785 | }, |
786 | | - "1be1c1e47513856": { |
787 | | - "_id": "1be1c1e47513856", |
| 786 | + "10bbf1acb311819": { |
| 787 | + "_id": "10bbf1acb311819", |
788 | 788 | "component": "MonocoChannel", |
789 | 789 | "state": "listen", |
790 | 790 | "action": "function listen(event, action) { $channel.listen(event, action); }", |
791 | 791 | "core": true, |
792 | 792 | "useCoreAPI": true |
793 | 793 | }, |
794 | | - "1724919c5e1717b": { |
795 | | - "_id": "1724919c5e1717b", |
| 794 | + "140a01e35819e5c": { |
| 795 | + "_id": "140a01e35819e5c", |
796 | 796 | "component": "MonocoChannel", |
797 | 797 | "state": "send", |
798 | 798 | "action": "function send(message) { return $channel.send(message); }", |
799 | 799 | "core": true, |
800 | 800 | "useCoreAPI": true |
801 | 801 | }, |
802 | | - "148341e75812479": { |
803 | | - "_id": "148341e75812479", |
| 802 | + "1c43f10106143fe": { |
| 803 | + "_id": "1c43f10106143fe", |
804 | 804 | "component": "MonocoClassInfo", |
805 | 805 | "state": "collection", |
806 | 806 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }", |
807 | 807 | "core": true |
808 | 808 | }, |
809 | | - "1a15a123451ad22": { |
810 | | - "_id": "1a15a123451ad22", |
| 809 | + "135871cc1c12988": { |
| 810 | + "_id": "135871cc1c12988", |
811 | 811 | "component": "MonocoClassInfo", |
812 | 812 | "state": "collections", |
813 | 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; }", |
814 | 814 | "core": true |
815 | 815 | }, |
816 | | - "111b71a79d1126d": { |
817 | | - "_id": "111b71a79d1126d", |
| 816 | + "1ad7111a65133a1": { |
| 817 | + "_id": "1ad7111a65133a1", |
818 | 818 | "component": "MonocoClassInfo", |
819 | 819 | "state": "event", |
820 | 820 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }", |
821 | 821 | "core": true |
822 | 822 | }, |
823 | | - "165091cc8c17137": { |
824 | | - "_id": "165091cc8c17137", |
| 823 | + "13e5d17aa2176c5": { |
| 824 | + "_id": "13e5d17aa2176c5", |
825 | 825 | "component": "MonocoClassInfo", |
826 | 826 | "state": "events", |
827 | 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; }", |
828 | 828 | "core": true |
829 | 829 | }, |
830 | | - "15fdf14c1015ccb": { |
831 | | - "_id": "15fdf14c1015ccb", |
| 830 | + "1c5d6171331407c": { |
| 831 | + "_id": "1c5d6171331407c", |
832 | 832 | "component": "MonocoClassInfo", |
833 | 833 | "state": "method", |
834 | 834 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }", |
835 | 835 | "core": true |
836 | 836 | }, |
837 | | - "18b201b0ff1f069": { |
838 | | - "_id": "18b201b0ff1f069", |
| 837 | + "1f28c1cd0619ce6": { |
| 838 | + "_id": "1f28c1cd0619ce6", |
839 | 839 | "component": "MonocoClassInfo", |
840 | 840 | "state": "methods", |
841 | 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; }", |
842 | 842 | "core": true |
843 | 843 | }, |
844 | | - "16822125ea160b3": { |
845 | | - "_id": "16822125ea160b3", |
| 844 | + "176501300f17fac": { |
| 845 | + "_id": "176501300f17fac", |
846 | 846 | "component": "MonocoClassInfo", |
847 | 847 | "state": "properties", |
848 | 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; }", |
849 | 849 | "core": true |
850 | 850 | }, |
851 | | - "153651b73b1e19b": { |
852 | | - "_id": "153651b73b1e19b", |
| 851 | + "12192159eb14867": { |
| 852 | + "_id": "12192159eb14867", |
853 | 853 | "component": "MonocoClassInfo", |
854 | 854 | "state": "property", |
855 | 855 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }", |
856 | 856 | "core": true |
857 | 857 | }, |
858 | | - "1abd11501813100": { |
859 | | - "_id": "1abd11501813100", |
| 858 | + "11919185a918b08": { |
| 859 | + "_id": "11919185a918b08", |
860 | 860 | "component": "MonocoComponent", |
861 | 861 | "state": "destroy", |
862 | 862 | "action": "function destroy() { $component.destroy(this.id()); }", |
863 | 863 | "core": true, |
864 | 864 | "useCoreAPI": true |
865 | 865 | }, |
866 | | - "1a755107de1bbc6": { |
867 | | - "_id": "1a755107de1bbc6", |
| 866 | + "10b4c1829016bb6": { |
| 867 | + "_id": "10b4c1829016bb6", |
868 | 868 | "component": "MonocoComponent", |
869 | 869 | "state": "off", |
870 | 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 + \"'\"}); } } }", |
871 | 871 | "core": true, |
872 | 872 | "useCoreAPI": true |
873 | 873 | }, |
874 | | - "1123715c321d206": { |
875 | | - "_id": "1123715c321d206", |
| 874 | + "16e5d1ba451d5ea": { |
| 875 | + "_id": "16e5d1ba451d5ea", |
876 | 876 | "component": "MonocoComponent", |
877 | 877 | "state": "require", |
878 | 878 | "action": "function require(id) { return $component.get(id); }", |
879 | 879 | "core": true, |
880 | 880 | "useCoreAPI": true |
881 | 881 | }, |
882 | | - "157fa1e64919930": { |
883 | | - "_id": "157fa1e64919930", |
| 882 | + "127991ab9e1e3e8": { |
| 883 | + "_id": "127991ab9e1e3e8", |
884 | 884 | "component": "MonocoDatabase", |
885 | 885 | "state": "subsystem", |
886 | 886 | "action": "function subsystem(params) { return $db.subsystem(params); }", |
887 | 887 | "core": true, |
888 | 888 | "useCoreAPI": true |
889 | 889 | }, |
890 | | - "19b6510efb1756f": { |
891 | | - "_id": "19b6510efb1756f", |
| 890 | + "1e2c11b1ac14565": { |
| 891 | + "_id": "1e2c11b1ac14565", |
892 | 892 | "component": "MonocoDatabase", |
893 | 893 | "state": "system", |
894 | 894 | "action": "function system(system) { return $db.system(system); }", |
895 | 895 | "core": true, |
896 | 896 | "useCoreAPI": true |
897 | 897 | }, |
898 | | - "14c3c1a77a1607b": { |
899 | | - "_id": "14c3c1a77a1607b", |
| 898 | + "17fcf1e9c81306a": { |
| 899 | + "_id": "17fcf1e9c81306a", |
900 | 900 | "component": "MonocoMetamodel", |
901 | 901 | "state": "create", |
902 | 902 | "action": "function create() { $metamodel.create(); }", |
903 | 903 | "core": true, |
904 | 904 | "useCoreAPI": true |
905 | 905 | }, |
906 | | - "1da4d12d1319611": { |
907 | | - "_id": "1da4d12d1319611", |
| 906 | + "1ff5917d381416a": { |
| 907 | + "_id": "1ff5917d381416a", |
908 | 908 | "component": "MonocoMetamodel", |
909 | 909 | "state": "schema", |
910 | 910 | "action": "function schema(schema) { $metamodel.schema(schema); }", |
911 | 911 | "core": true, |
912 | 912 | "useCoreAPI": true |
913 | 913 | }, |
914 | | - "1a0021589912d96": { |
915 | | - "_id": "1a0021589912d96", |
| 914 | + "152141b7d11b413": { |
| 915 | + "_id": "152141b7d11b413", |
916 | 916 | "component": "MonocoMetamodel", |
917 | 917 | "state": "type", |
918 | 918 | "action": "function type(type) { $metamodel.type(type); }", |
919 | 919 | "core": true, |
920 | 920 | "useCoreAPI": true |
921 | 921 | }, |
922 | | - "1f88a17eff11ceb": { |
923 | | - "_id": "1f88a17eff11ceb", |
| 922 | + "1b373115c81ead1": { |
| 923 | + "_id": "1b373115c81ead1", |
924 | 924 | "component": "MonocoSystem", |
925 | 925 | "state": "sync", |
926 | 926 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }", |
|
932 | 932 | "Monoco": { |
933 | 933 | "monoco": { |
934 | 934 | "_id": "monoco", |
935 | | - "version": "0.6.6" |
| 935 | + "version": "0.6.7" |
936 | 936 | } |
937 | 937 | }, |
938 | 938 | "MonocoChannel": { |
|
0 commit comments