|
1 | 1 | {
|
2 | 2 | "name": "monoco",
|
3 |
| - "version": "0.3.5", |
| 3 | + "version": "0.3.6", |
4 | 4 | "description": "A Model and a NoSQL Database for Components",
|
5 | 5 | "_id": "e89c617b6b15d24",
|
6 | 6 | "schemas": {
|
|
739 | 739 | "action": "function ready() { 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]; this.load(system.href, false); this.systemLoaded();} } }",
|
740 | 740 | "core": true
|
741 | 741 | },
|
742 |
| - "1db2d1b4e619242": { |
743 |
| - "_id": "1db2d1b4e619242", |
| 742 | + "1a2571ba121ac15": { |
| 743 | + "_id": "1a2571ba121ac15", |
744 | 744 | "component": "Monoco",
|
745 | 745 | "state": "error",
|
746 | 746 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
|
747 | 747 | "core": true
|
748 | 748 | },
|
749 |
| - "1eb721fcf912afe": { |
750 |
| - "_id": "1eb721fcf912afe", |
| 749 | + "13ad61d511182d8": { |
| 750 | + "_id": "13ad61d511182d8", |
751 | 751 | "component": "Monoco",
|
752 | 752 | "state": "find",
|
753 | 753 | "action": "function find(Class, query) { return $component.find(Class, query);}",
|
754 | 754 | "core": true,
|
755 | 755 | "useCoreAPI": true
|
756 | 756 | },
|
757 |
| - "102c714a641ecaa": { |
758 |
| - "_id": "102c714a641ecaa", |
| 757 | + "1b740153bb1c9f3": { |
| 758 | + "_id": "1b740153bb1c9f3", |
759 | 759 | "component": "Monoco",
|
760 | 760 | "state": "system",
|
761 | 761 | "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; }",
|
762 | 762 | "core": true
|
763 | 763 | },
|
764 |
| - "1e7271a8c314756": { |
765 |
| - "_id": "1e7271a8c314756", |
| 764 | + "1016b16eda176ff": { |
| 765 | + "_id": "1016b16eda176ff", |
766 | 766 | "component": "Monoco",
|
767 | 767 | "state": "warning",
|
768 | 768 | "action": "function warning(message) { console.warn('monoco: ' + message); }",
|
769 | 769 | "core": true
|
770 | 770 | },
|
771 |
| - "110a41de0815dab": { |
772 |
| - "_id": "110a41de0815dab", |
| 771 | + "1ee871f3541c155": { |
| 772 | + "_id": "1ee871f3541c155", |
773 | 773 | "component": "MonocoChannel",
|
774 | 774 | "state": "listen",
|
775 | 775 | "action": "function listen(event, action) { $channel.listen(event, action); }",
|
776 | 776 | "core": true,
|
777 | 777 | "useCoreAPI": true
|
778 | 778 | },
|
779 |
| - "128b312af1127aa": { |
780 |
| - "_id": "128b312af1127aa", |
| 779 | + "1180d1edd513769": { |
| 780 | + "_id": "1180d1edd513769", |
781 | 781 | "component": "MonocoChannel",
|
782 | 782 | "state": "send",
|
783 | 783 | "action": "function send(message) { return $channel.send(message); }",
|
784 | 784 | "core": true,
|
785 | 785 | "useCoreAPI": true
|
786 | 786 | },
|
787 |
| - "1396313e9214352": { |
788 |
| - "_id": "1396313e9214352", |
| 787 | + "16019167ec1ef37": { |
| 788 | + "_id": "16019167ec1ef37", |
789 | 789 | "component": "MonocoClassInfo",
|
790 | 790 | "state": "event",
|
791 | 791 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
|
792 | 792 | "core": true
|
793 | 793 | },
|
794 |
| - "15184191c9112e3": { |
795 |
| - "_id": "15184191c9112e3", |
| 794 | + "101d01a2831e924": { |
| 795 | + "_id": "101d01a2831e924", |
796 | 796 | "component": "MonocoClassInfo",
|
797 | 797 | "state": "events",
|
798 | 798 | "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; }",
|
799 | 799 | "core": true
|
800 | 800 | },
|
801 |
| - "145a91494d13499": { |
802 |
| - "_id": "145a91494d13499", |
| 801 | + "17ff31211413841": { |
| 802 | + "_id": "17ff31211413841", |
803 | 803 | "component": "MonocoClassInfo",
|
804 | 804 | "state": "method",
|
805 | 805 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
|
806 | 806 | "core": true
|
807 | 807 | },
|
808 |
| - "171691267319632": { |
809 |
| - "_id": "171691267319632", |
| 808 | + "160da138491adaa": { |
| 809 | + "_id": "160da138491adaa", |
810 | 810 | "component": "MonocoClassInfo",
|
811 | 811 | "state": "methods",
|
812 | 812 | "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; }",
|
813 | 813 | "core": true
|
814 | 814 | },
|
815 |
| - "1d1aa1c14a1fd7f": { |
816 |
| - "_id": "1d1aa1c14a1fd7f", |
| 815 | + "1031b1daa712b24": { |
| 816 | + "_id": "1031b1daa712b24", |
817 | 817 | "component": "MonocoClassInfo",
|
818 | 818 | "state": "properties",
|
819 | 819 | "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; }",
|
820 | 820 | "core": true
|
821 | 821 | },
|
822 |
| - "17c03118d1180c5": { |
823 |
| - "_id": "17c03118d1180c5", |
| 822 | + "1919b134c21f41b": { |
| 823 | + "_id": "1919b134c21f41b", |
824 | 824 | "component": "MonocoClassInfo",
|
825 | 825 | "state": "property",
|
826 | 826 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
|
827 | 827 | "core": true
|
828 | 828 | },
|
829 |
| - "1749013e771cc97": { |
830 |
| - "_id": "1749013e771cc97", |
| 829 | + "109f01980019ac5": { |
| 830 | + "_id": "109f01980019ac5", |
831 | 831 | "component": "MonocoComponent",
|
832 | 832 | "state": "destroy",
|
833 | 833 | "action": "function destroy() { $component.destroy(this.id()); }",
|
834 | 834 | "core": true,
|
835 | 835 | "useCoreAPI": true
|
836 | 836 | },
|
837 |
| - "177a11340c12de7": { |
838 |
| - "_id": "177a11340c12de7", |
| 837 | + "172061096d1ed18": { |
| 838 | + "_id": "172061096d1ed18", |
839 | 839 | "component": "MonocoComponent",
|
840 | 840 | "state": "off",
|
841 | 841 | "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 + \"'\"}); } } }",
|
842 | 842 | "core": true,
|
843 | 843 | "useCoreAPI": true
|
844 | 844 | },
|
845 |
| - "1840a1da96191a6": { |
846 |
| - "_id": "1840a1da96191a6", |
| 845 | + "180b810fd31a7d7": { |
| 846 | + "_id": "180b810fd31a7d7", |
847 | 847 | "component": "MonocoComponent",
|
848 | 848 | "state": "require",
|
849 | 849 | "action": "function require(id) { return $component.get(id); }",
|
850 | 850 | "core": true,
|
851 | 851 | "useCoreAPI": true
|
852 | 852 | },
|
853 |
| - "176d81187419117": { |
854 |
| - "_id": "176d81187419117", |
| 853 | + "13de01c0ac1c66c": { |
| 854 | + "_id": "13de01c0ac1c66c", |
855 | 855 | "component": "MonocoDatabase",
|
856 | 856 | "state": "subsystem",
|
857 | 857 | "action": "function subsystem(params) { return $db.subsystem(params); }",
|
858 | 858 | "core": true,
|
859 | 859 | "useCoreAPI": true
|
860 | 860 | },
|
861 |
| - "161881d4fc1b2ad": { |
862 |
| - "_id": "161881d4fc1b2ad", |
| 861 | + "158a4149771efce": { |
| 862 | + "_id": "158a4149771efce", |
863 | 863 | "component": "MonocoDatabase",
|
864 | 864 | "state": "system",
|
865 | 865 | "action": "function system(system) { return $db.system(system); }",
|
866 | 866 | "core": true,
|
867 | 867 | "useCoreAPI": true
|
868 | 868 | },
|
869 |
| - "1e9ef11e601639a": { |
870 |
| - "_id": "1e9ef11e601639a", |
| 869 | + "113891a8c61e278": { |
| 870 | + "_id": "113891a8c61e278", |
871 | 871 | "component": "MonocoMetamodel",
|
872 | 872 | "state": "create",
|
873 | 873 | "action": "function create() { $metamodel.create(); }",
|
874 | 874 | "core": true,
|
875 | 875 | "useCoreAPI": true
|
876 | 876 | },
|
877 |
| - "17bd2144571287d": { |
878 |
| - "_id": "17bd2144571287d", |
| 877 | + "14686121eb11ab5": { |
| 878 | + "_id": "14686121eb11ab5", |
879 | 879 | "component": "MonocoMetamodel",
|
880 | 880 | "state": "schema",
|
881 | 881 | "action": "function schema(schema) { $metamodel.schema(schema); }",
|
882 | 882 | "core": true,
|
883 | 883 | "useCoreAPI": true
|
884 | 884 | },
|
885 |
| - "1156b1d5d511ead": { |
886 |
| - "_id": "1156b1d5d511ead", |
| 885 | + "15b0a14c3c1a01e": { |
| 886 | + "_id": "15b0a14c3c1a01e", |
887 | 887 | "component": "MonocoMetamodel",
|
888 | 888 | "state": "type",
|
889 | 889 | "action": "function type(type) { $metamodel.type(type); }",
|
890 | 890 | "core": true,
|
891 | 891 | "useCoreAPI": true
|
892 | 892 | },
|
893 |
| - "1d62c163391a350": { |
894 |
| - "_id": "1d62c163391a350", |
| 893 | + "1129f153e410a95": { |
| 894 | + "_id": "1129f153e410a95", |
895 | 895 | "component": "MonocoSystem",
|
896 | 896 | "state": "sync",
|
897 | 897 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }",
|
898 | 898 | "core": true,
|
899 | 899 | "useCoreAPI": true
|
900 | 900 | },
|
901 |
| - "12cfa18e43188ed": { |
902 |
| - "_id": "12cfa18e43188ed", |
| 901 | + "16cd91702c1d305": { |
| 902 | + "_id": "16cd91702c1d305", |
903 | 903 | "component": "e89c617b6b15d24",
|
904 | 904 | "state": "main",
|
905 | 905 | "action": "function main() { var monoco = $component.get('monoco'); monoco.ready(); }",
|
|
911 | 911 | "Monoco": {
|
912 | 912 | "monoco": {
|
913 | 913 | "_id": "monoco",
|
914 |
| - "version": "0.3.5" |
| 914 | + "version": "0.3.6" |
915 | 915 | }
|
916 | 916 | },
|
917 | 917 | "MonocoChannel": {
|
|
0 commit comments