|
1 | 1 | { |
2 | 2 | "name": "monoco", |
3 | | - "version": "0.6.5", |
| 3 | + "version": "0.6.6", |
4 | 4 | "description": "A Model and a NoSQL Database for Components", |
5 | 5 | "_id": "e89c617b6b15d24", |
6 | 6 | "schemas": { |
|
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 | | - "19abc1e8061bf6a": { |
766 | | - "_id": "19abc1e8061bf6a", |
| 765 | + "1d8ea13b841657f": { |
| 766 | + "_id": "1d8ea13b841657f", |
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 | | - "12ddb1525a136e3": { |
773 | | - "_id": "12ddb1525a136e3", |
| 772 | + "1beb7120a31c7f0": { |
| 773 | + "_id": "1beb7120a31c7f0", |
774 | 774 | "component": "Monoco", |
775 | 775 | "state": "system", |
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; }", |
| 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 | | - "1d7f91f3a61981d": { |
780 | | - "_id": "1d7f91f3a61981d", |
| 779 | + "15b09135281558a": { |
| 780 | + "_id": "15b09135281558a", |
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 | | - "1f1ec148d51ef29": { |
787 | | - "_id": "1f1ec148d51ef29", |
| 786 | + "1be1c1e47513856": { |
| 787 | + "_id": "1be1c1e47513856", |
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 | | - "111d71a6261835f": { |
795 | | - "_id": "111d71a6261835f", |
| 794 | + "1724919c5e1717b": { |
| 795 | + "_id": "1724919c5e1717b", |
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 | | - "14e5218fb312da9": { |
803 | | - "_id": "14e5218fb312da9", |
| 802 | + "148341e75812479": { |
| 803 | + "_id": "148341e75812479", |
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 | | - "1541a120951c2e8": { |
810 | | - "_id": "1541a120951c2e8", |
| 809 | + "1a15a123451ad22": { |
| 810 | + "_id": "1a15a123451ad22", |
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 | | - "13afd1bb351b287": { |
817 | | - "_id": "13afd1bb351b287", |
| 816 | + "111b71a79d1126d": { |
| 817 | + "_id": "111b71a79d1126d", |
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 | | - "14a5910c801513b": { |
824 | | - "_id": "14a5910c801513b", |
| 823 | + "165091cc8c17137": { |
| 824 | + "_id": "165091cc8c17137", |
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 | | - "127d71d01d1f118": { |
831 | | - "_id": "127d71d01d1f118", |
| 830 | + "15fdf14c1015ccb": { |
| 831 | + "_id": "15fdf14c1015ccb", |
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 | | - "13c1e15c97106fa": { |
838 | | - "_id": "13c1e15c97106fa", |
| 837 | + "18b201b0ff1f069": { |
| 838 | + "_id": "18b201b0ff1f069", |
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 | | - "1148b1579d1c337": { |
845 | | - "_id": "1148b1579d1c337", |
| 844 | + "16822125ea160b3": { |
| 845 | + "_id": "16822125ea160b3", |
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 | | - "151441dd321c49a": { |
852 | | - "_id": "151441dd321c49a", |
| 851 | + "153651b73b1e19b": { |
| 852 | + "_id": "153651b73b1e19b", |
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 | | - "172061151717e82": { |
859 | | - "_id": "172061151717e82", |
| 858 | + "1abd11501813100": { |
| 859 | + "_id": "1abd11501813100", |
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 | | - "103231088913bc9": { |
867 | | - "_id": "103231088913bc9", |
| 866 | + "1a755107de1bbc6": { |
| 867 | + "_id": "1a755107de1bbc6", |
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 | | - "1688a1f2f511efa": { |
875 | | - "_id": "1688a1f2f511efa", |
| 874 | + "1123715c321d206": { |
| 875 | + "_id": "1123715c321d206", |
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 | | - "156781141b13357": { |
883 | | - "_id": "156781141b13357", |
| 882 | + "157fa1e64919930": { |
| 883 | + "_id": "157fa1e64919930", |
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 | | - "19a9211da21537b": { |
891 | | - "_id": "19a9211da21537b", |
| 890 | + "19b6510efb1756f": { |
| 891 | + "_id": "19b6510efb1756f", |
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 | | - "1c6de1036413c57": { |
899 | | - "_id": "1c6de1036413c57", |
| 898 | + "14c3c1a77a1607b": { |
| 899 | + "_id": "14c3c1a77a1607b", |
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 | | - "1fee91461b1544e": { |
907 | | - "_id": "1fee91461b1544e", |
| 906 | + "1da4d12d1319611": { |
| 907 | + "_id": "1da4d12d1319611", |
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 | | - "1a71a19e5b16c12": { |
915 | | - "_id": "1a71a19e5b16c12", |
| 914 | + "1a0021589912d96": { |
| 915 | + "_id": "1a0021589912d96", |
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 | | - "11cf91277b11aaf": { |
923 | | - "_id": "11cf91277b11aaf", |
| 922 | + "1f88a17eff11ceb": { |
| 923 | + "_id": "1f88a17eff11ceb", |
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.5" |
| 935 | + "version": "0.6.6" |
936 | 936 | } |
937 | 937 | }, |
938 | 938 | "MonocoChannel": { |
|
0 commit comments