@evlop/commons 1.0.213 → 1.0.215
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ export declare const LOAD_BASIC_COMPONENTS_LIST = "LOAD_BASIC_COMPONENTS_LIST";
|
|
3
3
|
export declare const ADD_COMPONENT_TO_LIST = "ADD_COMPONENT_TO_LIST";
|
4
4
|
export declare const ADD_COMPONENT_PLUGIN = "ADD_COMPONENT_PLUGIN";
|
5
5
|
export declare const REGISTER_COMPONENT = "REGISTER_COMPONENT";
|
6
|
+
export declare const REGISTER_PAGE_COMPONENT = "REGISTER_PAGE_COMPONENT";
|
6
7
|
export declare const REGISTER_FIELD_COMPONENT = "REGISTER_FIELD_COMPONENT";
|
7
8
|
export declare const REGISTER_STYLE_COMPONENT = "REGISTER_STYLE_COMPONENT";
|
8
9
|
export declare const REMOVE_PACKAGE = "REMOVE_PACKAGE";
|
@@ -26,6 +27,10 @@ export declare function registerComponent(component: any): {
|
|
26
27
|
type: string;
|
27
28
|
component: any;
|
28
29
|
};
|
30
|
+
export declare function registerPageComponent(component: any): {
|
31
|
+
type: string;
|
32
|
+
component: any;
|
33
|
+
};
|
29
34
|
export declare function registerFormField(component: any): {
|
30
35
|
type: string;
|
31
36
|
component: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/reducers/components.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,wBAAgB,oBAAoB,CAAC,SAAS,KAAA;;;EAK7C;A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;AAYD,eAAO,MAAM,UAAU,kCA2DtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.components = exports.removePackage = exports.registerStyleComponent = exports.registerFormField = exports.registerComponent = exports.addComponentPlugin = exports.addComponentToList = exports.loadBasicComponentsList = exports.loadComponentFromUrl = exports.REMOVE_PACKAGE = exports.REGISTER_STYLE_COMPONENT = exports.REGISTER_FIELD_COMPONENT = exports.REGISTER_COMPONENT = exports.ADD_COMPONENT_PLUGIN = exports.ADD_COMPONENT_TO_LIST = exports.LOAD_BASIC_COMPONENTS_LIST = exports.LOAD_COMPONENTS_FROM_URL = void 0;
|
3
|
+
exports.components = exports.removePackage = exports.registerStyleComponent = exports.registerFormField = exports.registerPageComponent = exports.registerComponent = exports.addComponentPlugin = exports.addComponentToList = exports.loadBasicComponentsList = exports.loadComponentFromUrl = exports.REMOVE_PACKAGE = exports.REGISTER_STYLE_COMPONENT = exports.REGISTER_FIELD_COMPONENT = exports.REGISTER_PAGE_COMPONENT = exports.REGISTER_COMPONENT = exports.ADD_COMPONENT_PLUGIN = exports.ADD_COMPONENT_TO_LIST = exports.LOAD_BASIC_COMPONENTS_LIST = exports.LOAD_COMPONENTS_FROM_URL = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
5
|
exports.LOAD_COMPONENTS_FROM_URL = 'LOAD_COMPONENTS_FROM_URL';
|
6
6
|
exports.LOAD_BASIC_COMPONENTS_LIST = 'LOAD_BASIC_COMPONENTS_LIST';
|
7
7
|
exports.ADD_COMPONENT_TO_LIST = 'ADD_COMPONENT_TO_LIST';
|
8
8
|
exports.ADD_COMPONENT_PLUGIN = 'ADD_COMPONENT_PLUGIN';
|
9
9
|
exports.REGISTER_COMPONENT = 'REGISTER_COMPONENT';
|
10
|
+
exports.REGISTER_PAGE_COMPONENT = 'REGISTER_PAGE_COMPONENT';
|
10
11
|
exports.REGISTER_FIELD_COMPONENT = 'REGISTER_FIELD_COMPONENT';
|
11
12
|
exports.REGISTER_STYLE_COMPONENT = 'REGISTER_STYLE_COMPONENT';
|
12
13
|
exports.REMOVE_PACKAGE = 'REMOVE_PACKAGE';
|
@@ -45,6 +46,13 @@ function registerComponent(component) {
|
|
45
46
|
};
|
46
47
|
}
|
47
48
|
exports.registerComponent = registerComponent;
|
49
|
+
function registerPageComponent(component) {
|
50
|
+
return {
|
51
|
+
type: exports.REGISTER_PAGE_COMPONENT,
|
52
|
+
component,
|
53
|
+
};
|
54
|
+
}
|
55
|
+
exports.registerPageComponent = registerPageComponent;
|
48
56
|
function registerFormField(component) {
|
49
57
|
return {
|
50
58
|
type: exports.REGISTER_FIELD_COMPONENT,
|
@@ -72,6 +80,7 @@ const initialState = {
|
|
72
80
|
componentPlugins: [],
|
73
81
|
components: [],
|
74
82
|
fieldComponents: [],
|
83
|
+
pageComponents: [],
|
75
84
|
styleComponents: [],
|
76
85
|
};
|
77
86
|
const components = (state = initialState, action) => {
|
@@ -92,6 +101,8 @@ const components = (state = initialState, action) => {
|
|
92
101
|
}
|
93
102
|
return Object.assign(Object.assign({}, state), { components: lodash_1.assign(newComponents, lodash_1.keyBy(newComponents, 'uuid')) });
|
94
103
|
}
|
104
|
+
case exports.REGISTER_PAGE_COMPONENT:
|
105
|
+
return Object.assign(Object.assign({}, state), { pageComponents: [...state.pageComponents, action.component] });
|
95
106
|
case exports.REGISTER_FIELD_COMPONENT:
|
96
107
|
return Object.assign(Object.assign({}, state), { fieldComponents: [...state.fieldComponents, Object.assign({}, action.component)] });
|
97
108
|
case exports.REGISTER_STYLE_COMPONENT:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/reducers/components.tsx"],"names":[],"mappings":";;;AAAA,mCAAuC;AAE1B,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,0BAA0B,GAAG,4BAA4B,CAAC;AAC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pE;QACN,KAAK,sBAAc;YACf,uCACO,KAAK,KACR,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAA,EAAE,CAAA,SAAS,CAAC,WAAW,KAAG,MAAM,CAAC,WAAW,CAAC,IAC5F;QACN,KAAK,6BAAqB;YACtB,uCACO,KAAK,KACR,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IACzC;QACN,KAAK,4BAAoB;YACrB,uCACO,KAAK,KACR,gBAAgB,EAAE,CAAC,GAAG,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAC9D;QACN;YACI,OAAO,KAAK,CAAC;KACpB;AAEL,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/reducers/components.tsx"],"names":[],"mappings":";;;AAAA,mCAAuC;AAE1B,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,0BAA0B,GAAG,4BAA4B,CAAC;AAC1D,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,uBAAuB,GAAG,yBAAyB,CAAC;AACpD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAG/C,SAAgB,oBAAoB,CAAC,SAAS;IAC1C,OAAO;QACH,IAAI,EAAE,gCAAwB;QAC9B,SAAS;KACZ,CAAC;AACN,CAAC;AALD,oDAKC;AAED,SAAgB,uBAAuB,CAAC,SAAS;IAC7C,OAAO;QACH,IAAI,EAAE,kCAA0B;QAChC,SAAS;KACZ,CAAC;AACN,CAAC;AALD,0DAKC;AAED,SAAgB,kBAAkB,CAAC,SAAS;IACxC,OAAO;QACH,IAAI,EAAE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