|
1 | 1 | {
|
2 | 2 | "name": "monoco",
|
3 |
| - "version": "0.4.2", |
| 3 | + "version": "0.5.0", |
4 | 4 | "description": "A Model and a NoSQL Database for Components",
|
5 | 5 | "_id": "e89c617b6b15d24",
|
6 | 6 | "schemas": {
|
|
770 | 770 | "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]; if (system.getAttribute('async') === 'true') { this.load(system.href, true); } else { this.load(system.href, false); } } }}",
|
771 | 771 | "core": true
|
772 | 772 | },
|
773 |
| - "1dde71507512d34": { |
774 |
| - "_id": "1dde71507512d34", |
| 773 | + "10e1a1af4d1cb1b": { |
| 774 | + "_id": "10e1a1af4d1cb1b", |
775 | 775 | "component": "Monoco",
|
776 | 776 | "state": "error",
|
777 | 777 | "action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
|
778 | 778 | "core": true
|
779 | 779 | },
|
780 |
| - "1a323191dd1bd39": { |
781 |
| - "_id": "1a323191dd1bd39", |
| 780 | + "1a31b182dc1c6d6": { |
| 781 | + "_id": "1a31b182dc1c6d6", |
782 | 782 | "component": "Monoco",
|
783 | 783 | "state": "find",
|
784 | 784 | "action": "function find(Class, query) { return $component.find(Class, query);}",
|
785 | 785 | "core": true,
|
786 | 786 | "useCoreAPI": true
|
787 | 787 | },
|
788 |
| - "1aa44194861a03f": { |
789 |
| - "_id": "1aa44194861a03f", |
| 788 | + "1d5921a1c21540e": { |
| 789 | + "_id": "1d5921a1c21540e", |
790 | 790 | "component": "Monoco",
|
791 | 791 | "state": "system",
|
792 | 792 | "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; }",
|
793 | 793 | "core": true
|
794 | 794 | },
|
795 |
| - "15a48159f616962": { |
796 |
| - "_id": "15a48159f616962", |
| 795 | + "1e8681fed717143": { |
| 796 | + "_id": "1e8681fed717143", |
797 | 797 | "component": "Monoco",
|
798 | 798 | "state": "warning",
|
799 | 799 | "action": "function warning(message) { console.warn('monoco: ' + message); }",
|
800 | 800 | "core": true
|
801 | 801 | },
|
802 |
| - "135371883917b6f": { |
803 |
| - "_id": "135371883917b6f", |
| 802 | + "1c6711a7651a799": { |
| 803 | + "_id": "1c6711a7651a799", |
804 | 804 | "component": "MonocoChannel",
|
805 | 805 | "state": "listen",
|
806 | 806 | "action": "function listen(event, action) { $channel.listen(event, action); }",
|
807 | 807 | "core": true,
|
808 | 808 | "useCoreAPI": true
|
809 | 809 | },
|
810 |
| - "1b40a120341d1e7": { |
811 |
| - "_id": "1b40a120341d1e7", |
| 810 | + "11ea518e401aecb": { |
| 811 | + "_id": "11ea518e401aecb", |
812 | 812 | "component": "MonocoChannel",
|
813 | 813 | "state": "send",
|
814 | 814 | "action": "function send(message) { return $channel.send(message); }",
|
815 | 815 | "core": true,
|
816 | 816 | "useCoreAPI": true
|
817 | 817 | },
|
818 |
| - "1a281194671f956": { |
819 |
| - "_id": "1a281194671f956", |
| 818 | + "1af941c3d0112c4": { |
| 819 | + "_id": "1af941c3d0112c4", |
820 | 820 | "component": "MonocoClassInfo",
|
821 | 821 | "state": "collection",
|
822 | 822 | "action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
|
823 | 823 | "core": true
|
824 | 824 | },
|
825 |
| - "17cf61d8bb11eb2": { |
826 |
| - "_id": "17cf61d8bb11eb2", |
| 825 | + "1aedd191f8147b9": { |
| 826 | + "_id": "1aedd191f8147b9", |
827 | 827 | "component": "MonocoClassInfo",
|
828 | 828 | "state": "collections",
|
829 | 829 | "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; }",
|
830 | 830 | "core": true
|
831 | 831 | },
|
832 |
| - "13be01d86f1dbc0": { |
833 |
| - "_id": "13be01d86f1dbc0", |
| 832 | + "1a4cc1194b1905e": { |
| 833 | + "_id": "1a4cc1194b1905e", |
834 | 834 | "component": "MonocoClassInfo",
|
835 | 835 | "state": "event",
|
836 | 836 | "action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
|
837 | 837 | "core": true
|
838 | 838 | },
|
839 |
| - "1c0181ae5d111cc": { |
840 |
| - "_id": "1c0181ae5d111cc", |
| 839 | + "1ccab1220b12c3c": { |
| 840 | + "_id": "1ccab1220b12c3c", |
841 | 841 | "component": "MonocoClassInfo",
|
842 | 842 | "state": "events",
|
843 | 843 | "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; }",
|
844 | 844 | "core": true
|
845 | 845 | },
|
846 |
| - "182ea185a012620": { |
847 |
| - "_id": "182ea185a012620", |
| 846 | + "1703a1a84f1ce39": { |
| 847 | + "_id": "1703a1a84f1ce39", |
848 | 848 | "component": "MonocoClassInfo",
|
849 | 849 | "state": "method",
|
850 | 850 | "action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
|
851 | 851 | "core": true
|
852 | 852 | },
|
853 |
| - "17762174c31742c": { |
854 |
| - "_id": "17762174c31742c", |
| 853 | + "1218611746144df": { |
| 854 | + "_id": "1218611746144df", |
855 | 855 | "component": "MonocoClassInfo",
|
856 | 856 | "state": "methods",
|
857 | 857 | "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; }",
|
858 | 858 | "core": true
|
859 | 859 | },
|
860 |
| - "1593a1055e1337f": { |
861 |
| - "_id": "1593a1055e1337f", |
| 860 | + "1f7fc1edaf1dd73": { |
| 861 | + "_id": "1f7fc1edaf1dd73", |
862 | 862 | "component": "MonocoClassInfo",
|
863 | 863 | "state": "properties",
|
864 | 864 | "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; }",
|
865 | 865 | "core": true
|
866 | 866 | },
|
867 |
| - "1bd9e1b93913277": { |
868 |
| - "_id": "1bd9e1b93913277", |
| 867 | + "10fd812697184a2": { |
| 868 | + "_id": "10fd812697184a2", |
869 | 869 | "component": "MonocoClassInfo",
|
870 | 870 | "state": "property",
|
871 | 871 | "action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
|
872 | 872 | "core": true
|
873 | 873 | },
|
874 |
| - "153bc1ec4e142e6": { |
875 |
| - "_id": "153bc1ec4e142e6", |
| 874 | + "13a241289f18d75": { |
| 875 | + "_id": "13a241289f18d75", |
876 | 876 | "component": "MonocoComponent",
|
877 | 877 | "state": "destroy",
|
878 | 878 | "action": "function destroy() { $component.destroy(this.id()); }",
|
879 | 879 | "core": true,
|
880 | 880 | "useCoreAPI": true
|
881 | 881 | },
|
882 |
| - "165091da1012c3b": { |
883 |
| - "_id": "165091da1012c3b", |
| 882 | + "117a81b6191f511": { |
| 883 | + "_id": "117a81b6191f511", |
884 | 884 | "component": "MonocoComponent",
|
885 | 885 | "state": "off",
|
886 | 886 | "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 + \"'\"}); } } }",
|
887 | 887 | "core": true,
|
888 | 888 | "useCoreAPI": true
|
889 | 889 | },
|
890 |
| - "15c2810f7d1a30f": { |
891 |
| - "_id": "15c2810f7d1a30f", |
| 890 | + "1c5361f7ca12086": { |
| 891 | + "_id": "1c5361f7ca12086", |
892 | 892 | "component": "MonocoComponent",
|
893 | 893 | "state": "require",
|
894 | 894 | "action": "function require(id) { return $component.get(id); }",
|
895 | 895 | "core": true,
|
896 | 896 | "useCoreAPI": true
|
897 | 897 | },
|
898 |
| - "1f600163761ae4d": { |
899 |
| - "_id": "1f600163761ae4d", |
| 898 | + "1c1dd1c8ce16e1b": { |
| 899 | + "_id": "1c1dd1c8ce16e1b", |
900 | 900 | "component": "MonocoDatabase",
|
901 | 901 | "state": "subsystem",
|
902 | 902 | "action": "function subsystem(params) { return $db.subsystem(params); }",
|
903 | 903 | "core": true,
|
904 | 904 | "useCoreAPI": true
|
905 | 905 | },
|
906 |
| - "181e81c18113d19": { |
907 |
| - "_id": "181e81c18113d19", |
| 906 | + "16d38108eb1ac7f": { |
| 907 | + "_id": "16d38108eb1ac7f", |
908 | 908 | "component": "MonocoDatabase",
|
909 | 909 | "state": "system",
|
910 | 910 | "action": "function system(system) { return $db.system(system); }",
|
911 | 911 | "core": true,
|
912 | 912 | "useCoreAPI": true
|
913 | 913 | },
|
914 |
| - "14b6d1e0561ef9d": { |
915 |
| - "_id": "14b6d1e0561ef9d", |
| 914 | + "1979b19ed31dd38": { |
| 915 | + "_id": "1979b19ed31dd38", |
916 | 916 | "component": "MonocoMetamodel",
|
917 | 917 | "state": "create",
|
918 | 918 | "action": "function create() { $metamodel.create(); }",
|
919 | 919 | "core": true,
|
920 | 920 | "useCoreAPI": true
|
921 | 921 | },
|
922 |
| - "194091d9381ff7e": { |
923 |
| - "_id": "194091d9381ff7e", |
| 922 | + "186801b42e12cee": { |
| 923 | + "_id": "186801b42e12cee", |
924 | 924 | "component": "MonocoMetamodel",
|
925 | 925 | "state": "schema",
|
926 | 926 | "action": "function schema(schema) { $metamodel.schema(schema); }",
|
927 | 927 | "core": true,
|
928 | 928 | "useCoreAPI": true
|
929 | 929 | },
|
930 |
| - "1fd4e1e3ca19c2a": { |
931 |
| - "_id": "1fd4e1e3ca19c2a", |
| 930 | + "13a6b1dc121711b": { |
| 931 | + "_id": "13a6b1dc121711b", |
932 | 932 | "component": "MonocoMetamodel",
|
933 | 933 | "state": "type",
|
934 | 934 | "action": "function type(type) { $metamodel.type(type); }",
|
935 | 935 | "core": true,
|
936 | 936 | "useCoreAPI": true
|
937 | 937 | },
|
938 |
| - "1116d100d813eb4": { |
939 |
| - "_id": "1116d100d813eb4", |
| 938 | + "195971aec01a075": { |
| 939 | + "_id": "195971aec01a075", |
940 | 940 | "component": "MonocoSystem",
|
941 | 941 | "state": "sync",
|
942 | 942 | "action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }",
|
943 | 943 | "core": true,
|
944 | 944 | "useCoreAPI": true
|
945 | 945 | },
|
946 |
| - "1ae70139eb14fae": { |
947 |
| - "_id": "1ae70139eb14fae", |
| 946 | + "1700e1840b13469": { |
| 947 | + "_id": "1700e1840b13469", |
948 | 948 | "component": "e89c617b6b15d24",
|
949 | 949 | "state": "main",
|
950 | 950 | "action": "function main() { var monoco = $component.get('monoco'); monoco.ready(); }",
|
|
956 | 956 | "Monoco": {
|
957 | 957 | "monoco": {
|
958 | 958 | "_id": "monoco",
|
959 |
| - "version": "0.4.2" |
| 959 | + "version": "0.5.0" |
960 | 960 | }
|
961 | 961 | },
|
962 | 962 | "MonocoChannel": {
|
|
0 commit comments