@sankhyalabs/ezui 1.1.4 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -72
- package/dist/{ezui/DataUnit-285bec19.js → cjs/DataUnit-28b290cb.js} +382 -369
- package/dist/{ezui/index-919090de.js → cjs/RequestMetadata-2cd01e8a.js} +4 -383
- package/dist/cjs/ez-action-chip.cjs.entry.js +52 -0
- package/dist/cjs/ez-button_14.cjs.entry.js +3341 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +131 -0
- package/dist/cjs/ez-modal.cjs.entry.js +115 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +248 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +180 -0
- package/dist/cjs/ezui.cjs.js +19 -0
- package/dist/cjs/form-metadata.cjs.entry.js +74 -0
- package/dist/cjs/index-9403fe8f.js +1322 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/collection-manifest.json +31 -0
- package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -0
- package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -0
- package/dist/collection/components/ez-button/ez-button.css +94 -0
- package/dist/collection/components/ez-button/ez-button.js +125 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css +210 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js +215 -0
- package/dist/collection/components/ez-check/ez-check.css +266 -0
- package/dist/collection/components/ez-check/ez-check.js +168 -0
- package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +68 -0
- package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +39 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js +172 -0
- package/dist/collection/components/ez-form/ez-form.css +19 -0
- package/dist/collection/components/ez-form/ez-form.js +368 -0
- package/dist/collection/components/ez-form/store/Form.actions.js +132 -0
- package/dist/collection/components/ez-form/store/Form.reducer.js +194 -0
- package/dist/collection/components/ez-form/store/Form.selectors.js +44 -0
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +207 -0
- package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -0
- package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +24 -0
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -0
- package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -0
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -0
- package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -0
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -0
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -0
- package/dist/collection/components/ez-icon/ez-icon.css +37 -0
- package/dist/collection/components/ez-icon/ez-icon.js +56 -0
- package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -0
- package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -0
- package/dist/collection/components/ez-modal/ez-modal.css +87 -0
- package/dist/collection/components/ez-modal/ez-modal.js +224 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css +144 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +465 -0
- package/dist/collection/components/ez-popover/ez-popover.css +39 -0
- package/dist/collection/components/ez-popover/ez-popover.js +323 -0
- package/dist/collection/components/ez-search/ez-search.css +296 -0
- package/dist/{ezui/ez-search.entry.js → collection/components/ez-search/ez-search.js} +527 -334
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +126 -0
- package/dist/{ezui/ez-tabselector.entry.js → collection/components/ez-tabselector/ez-tabselector.js} +283 -209
- package/dist/collection/components/ez-text-area/ez-text-area.css +140 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js +267 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +170 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +395 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css +155 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +326 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/servidor.js +101 -0
- package/dist/collection/utils/FloatingManager.js +16 -0
- package/dist/collection/utils/utils.js +6 -0
- package/dist/custom-elements/index.js +5071 -0
- package/dist/esm/DataUnit-69e518fa.js +378 -0
- package/dist/esm/RequestMetadata-c265c9d5.js +527 -0
- package/dist/{ezui → esm}/ez-action-chip.entry.js +42 -42
- package/dist/esm/ez-button_14.entry.js +3324 -0
- package/dist/{ezui → esm}/ez-label-chip.entry.js +121 -121
- package/dist/{ezui → esm}/ez-modal.entry.js +105 -96
- package/dist/{ezui → esm}/ez-number-input.entry.js +238 -238
- package/dist/{ezui → esm}/ez-time-input.entry.js +170 -170
- package/dist/esm/ezui.js +17 -0
- package/dist/{ezui → esm}/form-metadata.entry.js +66 -66
- package/dist/esm/index-95bb3fd9.js +1293 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/ezui/ezui.esm.js +1 -122
- package/dist/ezui/index.esm.js +0 -1
- package/dist/ezui/p-10ef58b3.js +1 -0
- package/dist/ezui/p-185c57f4.js +1 -0
- package/dist/ezui/p-22b82efb.entry.js +1 -0
- package/dist/ezui/p-77fdb4fd.entry.js +1 -0
- package/dist/ezui/p-9dfccb16.js +1 -0
- package/dist/ezui/p-b0974f4f.entry.js +1 -0
- package/dist/ezui/p-db11c600.entry.js +1 -0
- package/dist/ezui/p-dd4331b7.entry.js +1 -0
- package/dist/ezui/p-f6fd31ab.entry.js +1 -0
- package/dist/ezui/p-fa260f22.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
- package/dist/types/components/ez-button/ez-button.d.ts +20 -20
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
- package/dist/types/components/ez-check/ez-check.d.ts +32 -32
- package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
- package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
- package/dist/types/components/ez-form/ez-form.d.ts +31 -27
- package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
- package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
- package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
- package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +55 -48
- package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
- package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
- package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
- package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
- package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
- package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
- package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
- package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
- package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
- package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
- package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
- package/dist/types/components/ez-search/ez-search.d.ts +95 -95
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
- package/dist/types/components.d.ts +8 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +2 -2
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +13 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +114 -114
- package/react/components.d.ts +22 -0
- package/react/components.js +25 -0
- package/react/components.js.map +1 -0
- package/react/react-component-lib/createComponent.d.ts +10 -0
- package/react/react-component-lib/createComponent.js +59 -0
- package/react/react-component-lib/createComponent.js.map +1 -0
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
- package/react/react-component-lib/createOverlayComponent.js +89 -0
- package/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/react/react-component-lib/index.d.ts +2 -0
- package/react/react-component-lib/index.js +3 -0
- package/react/react-component-lib/index.js.map +1 -0
- package/react/react-component-lib/interfaces.d.ts +29 -0
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/interfaces.js.map +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +12 -0
- package/react/react-component-lib/utils/attachProps.js +96 -0
- package/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/react/react-component-lib/utils/case.d.ts +2 -0
- package/react/react-component-lib/utils/case.js +7 -0
- package/react/react-component-lib/utils/case.js.map +1 -0
- package/react/react-component-lib/utils/dev.d.ts +2 -0
- package/react/react-component-lib/utils/dev.js +13 -0
- package/react/react-component-lib/utils/dev.js.map +1 -0
- package/react/react-component-lib/utils/index.d.ts +7 -0
- package/react/react-component-lib/utils/index.js +21 -0
- package/react/react-component-lib/utils/index.js.map +1 -0
- package/dist/ezui/app-globals-0f993ce5.js +0 -3
- package/dist/ezui/css-shim-003e9264.js +0 -4
- package/dist/ezui/dom-1b195079.js +0 -73
- package/dist/ezui/ez-button.entry.js +0 -47
- package/dist/ezui/ez-calendar.entry.js +0 -102
- package/dist/ezui/ez-check.entry.js +0 -62
- package/dist/ezui/ez-collapsable-box.entry.js +0 -32
- package/dist/ezui/ez-combo-box.entry.js +0 -181
- package/dist/ezui/ez-date-input.entry.js +0 -77
- package/dist/ezui/ez-form.entry.js +0 -1907
- package/dist/ezui/ez-icon.entry.js +0 -17
- package/dist/ezui/ez-popover.entry.js +0 -112
- package/dist/ezui/ez-text-area.entry.js +0 -105
- package/dist/ezui/ez-text-input.entry.js +0 -202
- package/dist/ezui/index-39044be2.js +0 -2832
- package/dist/ezui/place-holder.entry.js +0 -15
- package/dist/ezui/shadow-css-c1ad5fdc.js +0 -383
|
@@ -1,104 +1,111 @@
|
|
|
1
|
-
export declare function changeFieldValue(dataUnit: any, recordId: any, fieldName: any, value: any): {
|
|
2
|
-
type: string;
|
|
3
|
-
payload: {
|
|
4
|
-
dataUnit: any;
|
|
5
|
-
recordId: any;
|
|
6
|
-
fieldName: any;
|
|
7
|
-
value: any;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare function changeTab(formId: any, index: any): {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: {
|
|
13
|
-
formId: any;
|
|
14
|
-
index: any;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare function clearEdition(dataUnit: any, recordsLimit: any): {
|
|
18
|
-
type: string;
|
|
19
|
-
payload: {
|
|
20
|
-
dataUnit: any;
|
|
21
|
-
recordsLimit: any;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare function collapseExpandGroup(collapseId: any, collapsed: any): {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: {
|
|
27
|
-
collapseId: any;
|
|
28
|
-
collapsed: any;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare function previousRecord(dataUnit: string): {
|
|
32
|
-
type: string;
|
|
33
|
-
payload: {
|
|
34
|
-
dataUnit: string;
|
|
35
|
-
limit: number;
|
|
36
|
-
backward: boolean;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export declare function nextRecord(dataUnit: string, limit: number): {
|
|
40
|
-
type: string;
|
|
41
|
-
payload: {
|
|
42
|
-
dataUnit: string;
|
|
43
|
-
limit: number;
|
|
44
|
-
backward: boolean;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare function insertRecord(dataUnit: string, insertionIndex: number): {
|
|
48
|
-
type: string;
|
|
49
|
-
payload: {
|
|
50
|
-
dataUnit: string;
|
|
51
|
-
insertionIndex: number;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export declare function formLoad(): {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
export declare function dataLoading(dataUnit: any): {
|
|
58
|
-
type: string;
|
|
59
|
-
payload: {
|
|
60
|
-
dataUnit: any;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare function savingChanges(dataUnit: any): {
|
|
64
|
-
type: string;
|
|
65
|
-
payload: {
|
|
66
|
-
dataUnit: any;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare function dataLoaded(dataUnit: any): {
|
|
70
|
-
type: string;
|
|
71
|
-
payload: {
|
|
72
|
-
dataUnit: any;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export declare function changesSaved(dataUnit: any): {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: {
|
|
78
|
-
dataUnit: any;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export declare function removingRecord(dataUnit: any): {
|
|
82
|
-
type: string;
|
|
83
|
-
payload: {
|
|
84
|
-
dataUnit: any;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
export declare function recordRemoved(dataUnit: any): {
|
|
88
|
-
type: string;
|
|
89
|
-
payload: {
|
|
90
|
-
dataUnit: any;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export declare function invalidField(tabController: any, tabIndex: any, dataUnit: any, recordIndex: any, recordId: any, fieldName: any, errorMessage: any): {
|
|
94
|
-
type: string;
|
|
95
|
-
payload: {
|
|
96
|
-
tabController: any;
|
|
97
|
-
tabIndex: any;
|
|
98
|
-
dataUnit: any;
|
|
99
|
-
recordId: any;
|
|
100
|
-
recordIndex: any;
|
|
101
|
-
fieldName: any;
|
|
102
|
-
errorMessage: any;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
1
|
+
export declare function changeFieldValue(dataUnit: any, recordId: any, fieldName: any, value: any): {
|
|
2
|
+
type: string;
|
|
3
|
+
payload: {
|
|
4
|
+
dataUnit: any;
|
|
5
|
+
recordId: any;
|
|
6
|
+
fieldName: any;
|
|
7
|
+
value: any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function changeTab(formId: any, index: any): {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: {
|
|
13
|
+
formId: any;
|
|
14
|
+
index: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function clearEdition(dataUnit: any, recordsLimit: any): {
|
|
18
|
+
type: string;
|
|
19
|
+
payload: {
|
|
20
|
+
dataUnit: any;
|
|
21
|
+
recordsLimit: any;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare function collapseExpandGroup(collapseId: any, collapsed: any): {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: {
|
|
27
|
+
collapseId: any;
|
|
28
|
+
collapsed: any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function previousRecord(dataUnit: string): {
|
|
32
|
+
type: string;
|
|
33
|
+
payload: {
|
|
34
|
+
dataUnit: string;
|
|
35
|
+
limit: number;
|
|
36
|
+
backward: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare function nextRecord(dataUnit: string, limit: number): {
|
|
40
|
+
type: string;
|
|
41
|
+
payload: {
|
|
42
|
+
dataUnit: string;
|
|
43
|
+
limit: number;
|
|
44
|
+
backward: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare function insertRecord(dataUnit: string, insertionIndex: number): {
|
|
48
|
+
type: string;
|
|
49
|
+
payload: {
|
|
50
|
+
dataUnit: string;
|
|
51
|
+
insertionIndex: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare function formLoad(): {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
export declare function dataLoading(dataUnit: any): {
|
|
58
|
+
type: string;
|
|
59
|
+
payload: {
|
|
60
|
+
dataUnit: any;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare function savingChanges(dataUnit: any): {
|
|
64
|
+
type: string;
|
|
65
|
+
payload: {
|
|
66
|
+
dataUnit: any;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare function dataLoaded(dataUnit: any): {
|
|
70
|
+
type: string;
|
|
71
|
+
payload: {
|
|
72
|
+
dataUnit: any;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export declare function changesSaved(dataUnit: any): {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: {
|
|
78
|
+
dataUnit: any;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare function removingRecord(dataUnit: any): {
|
|
82
|
+
type: string;
|
|
83
|
+
payload: {
|
|
84
|
+
dataUnit: any;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare function recordRemoved(dataUnit: any): {
|
|
88
|
+
type: string;
|
|
89
|
+
payload: {
|
|
90
|
+
dataUnit: any;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export declare function invalidField(tabController: any, tabIndex: any, dataUnit: any, recordIndex: any, recordId: any, fieldName: any, errorMessage: any): {
|
|
94
|
+
type: string;
|
|
95
|
+
payload: {
|
|
96
|
+
tabController: any;
|
|
97
|
+
tabIndex: any;
|
|
98
|
+
dataUnit: any;
|
|
99
|
+
recordId: any;
|
|
100
|
+
recordIndex: any;
|
|
101
|
+
fieldName: any;
|
|
102
|
+
errorMessage: any;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export declare function showHideNavigationButtons(buttonName: any, status: any): {
|
|
106
|
+
type: string;
|
|
107
|
+
payload: {
|
|
108
|
+
buttonName: any;
|
|
109
|
+
status: any;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
export default function formReducer(state: {
|
|
2
|
-
currentTabIndex: {};
|
|
3
|
-
currentRecordIndex: {};
|
|
4
|
-
changes: {};
|
|
5
|
-
collapsedGroups: {};
|
|
6
|
-
newRecordIndex: {};
|
|
7
|
-
}, action: any): any;
|
|
8
|
-
export declare function formNonHistoricReducer(state: {
|
|
9
|
-
dataLoading: {};
|
|
10
|
-
invalidFields: {};
|
|
11
|
-
|
|
1
|
+
export default function formReducer(state: {
|
|
2
|
+
currentTabIndex: {};
|
|
3
|
+
currentRecordIndex: {};
|
|
4
|
+
changes: {};
|
|
5
|
+
collapsedGroups: {};
|
|
6
|
+
newRecordIndex: {};
|
|
7
|
+
}, action: any): any;
|
|
8
|
+
export declare function formNonHistoricReducer(state: {
|
|
9
|
+
dataLoading: {};
|
|
10
|
+
invalidFields: {};
|
|
11
|
+
visibleButtons: {
|
|
12
|
+
previousVisible: boolean;
|
|
13
|
+
nextVisible: boolean;
|
|
14
|
+
addVisible: boolean;
|
|
15
|
+
removeVisible: boolean;
|
|
16
|
+
saveVisible: boolean;
|
|
17
|
+
cancelVisible: boolean;
|
|
18
|
+
reloadVisible: boolean;
|
|
19
|
+
};
|
|
20
|
+
}, action: any): any;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export declare const selectCurrentTab: (state: any, formName: string) => any;
|
|
2
|
-
export declare const selectIsCollapsedFieldSet: (state: any, fieldSetName: string) => boolean;
|
|
3
|
-
export declare const selectRecordChanges: (state: any, dataUnit: string, recordId: string) => any;
|
|
4
|
-
export declare const selectDataUnitChanges: (state: any, dataUnit: string) => any;
|
|
5
|
-
export declare const selectCurrentRecordIndex: (state: any, dataUnit: string) => any;
|
|
6
|
-
export declare const selectNewRecordIndex: (state: any, dataUnit: string) => any;
|
|
7
|
-
export declare const selectUndoState: (state: any) => {
|
|
8
|
-
canUndo: boolean;
|
|
9
|
-
canRedo: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const selectLoadingData: (state: any, dataUnit: string) => any;
|
|
12
|
-
export declare const selectErrorMessage: (state: any, dataUnit: string, recordId: string, fieldName: string) => any;
|
|
13
|
-
export declare const selectInvalidFields: (state: any, dataUnit: string, recordId: string) => string[];
|
|
1
|
+
export declare const selectCurrentTab: (state: any, formName: string) => any;
|
|
2
|
+
export declare const selectIsCollapsedFieldSet: (state: any, fieldSetName: string) => boolean;
|
|
3
|
+
export declare const selectRecordChanges: (state: any, dataUnit: string, recordId: string) => any;
|
|
4
|
+
export declare const selectDataUnitChanges: (state: any, dataUnit: string) => any;
|
|
5
|
+
export declare const selectCurrentRecordIndex: (state: any, dataUnit: string) => any;
|
|
6
|
+
export declare const selectNewRecordIndex: (state: any, dataUnit: string) => any;
|
|
7
|
+
export declare const selectUndoState: (state: any) => {
|
|
8
|
+
canUndo: boolean;
|
|
9
|
+
canRedo: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const selectLoadingData: (state: any, dataUnit: string) => any;
|
|
12
|
+
export declare const selectErrorMessage: (state: any, dataUnit: string, recordId: string, fieldName: string) => any;
|
|
13
|
+
export declare const selectInvalidFields: (state: any, dataUnit: string, recordId: string) => string[];
|
|
14
|
+
export declare const selectVisibleButtons: (state: any) => any;
|
|
@@ -1,48 +1,55 @@
|
|
|
1
|
-
import { Store } from 'redux';
|
|
2
|
-
export default class DataUnit {
|
|
3
|
-
private _store;
|
|
4
|
-
private _changeDeboucing;
|
|
5
|
-
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
private
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
1
|
+
import { Store } from 'redux';
|
|
2
|
+
export default class DataUnit {
|
|
3
|
+
private _store;
|
|
4
|
+
private _changeDeboucing;
|
|
5
|
+
name: string;
|
|
6
|
+
unitLabel: string;
|
|
7
|
+
cardinality: string;
|
|
8
|
+
recordsValidator: RecordsValidator;
|
|
9
|
+
loadExecutor: Function;
|
|
10
|
+
saveExecutor: Function;
|
|
11
|
+
removeExecutor: Function;
|
|
12
|
+
fieldSearchExecutor: Function;
|
|
13
|
+
_records: Array<Record>;
|
|
14
|
+
constructor(name: string, unitLabel: string, cardinality?: string);
|
|
15
|
+
set store(store: Store);
|
|
16
|
+
isLoading(): boolean;
|
|
17
|
+
hasChanges(): boolean;
|
|
18
|
+
hasNext(): boolean;
|
|
19
|
+
hasPrevious(): boolean;
|
|
20
|
+
hasCurrentRecord(): boolean;
|
|
21
|
+
previous(): void;
|
|
22
|
+
next(): void;
|
|
23
|
+
getValue(fieldName: string): any;
|
|
24
|
+
getErrorMessage(fieldName: string): string;
|
|
25
|
+
changeValue(fieldName: string, newValue: any): void;
|
|
26
|
+
cancel(): void;
|
|
27
|
+
insert(): void;
|
|
28
|
+
getChangesToSave(): {
|
|
29
|
+
dataUnit: string;
|
|
30
|
+
records: {
|
|
31
|
+
record__id: string;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
save(): void;
|
|
35
|
+
load(): void;
|
|
36
|
+
remove(): void;
|
|
37
|
+
private processSaveResult;
|
|
38
|
+
private processLoadResult;
|
|
39
|
+
private processRemoveResult;
|
|
40
|
+
set records(records: Array<Record>);
|
|
41
|
+
get records(): Array<Record>;
|
|
42
|
+
private getCurrentRecord;
|
|
43
|
+
private getRecordChanges;
|
|
44
|
+
validateRecords(): boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface Record {
|
|
47
|
+
record__id: string;
|
|
48
|
+
}
|
|
49
|
+
export interface RecordsValidator {
|
|
50
|
+
validateRecords(dataUnit: DataUnit, records: Array<Record>): ValidationResult;
|
|
51
|
+
}
|
|
52
|
+
export interface ValidationResult {
|
|
53
|
+
isValid: boolean;
|
|
54
|
+
message: string;
|
|
55
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import DataUnit from "./DataUnit";
|
|
2
|
-
export declare class Form {
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
autoLoad?: boolean;
|
|
6
|
-
dataUnit?: DataUnit;
|
|
7
|
-
items?: Array<FormItem>;
|
|
8
|
-
subForms?: Array<Form>;
|
|
9
|
-
}
|
|
10
|
-
export interface FormItem {
|
|
11
|
-
}
|
|
12
|
-
export declare class Field implements FormItem {
|
|
13
|
-
name: string;
|
|
14
|
-
label: string;
|
|
15
|
-
defaultValue?: string;
|
|
16
|
-
readOnly?: boolean;
|
|
17
|
-
required?: boolean;
|
|
18
|
-
userInterface?: string;
|
|
19
|
-
properties?: Array<UIProperty>;
|
|
20
|
-
dependencies?: Array<FieldDependency>;
|
|
21
|
-
tabControler?: string;
|
|
22
|
-
tabIndex?: number;
|
|
23
|
-
}
|
|
24
|
-
export declare class FieldSet implements FormItem {
|
|
25
|
-
label: string;
|
|
26
|
-
fields: Array<Field>;
|
|
27
|
-
}
|
|
28
|
-
export declare class UIProperty {
|
|
29
|
-
name: string;
|
|
30
|
-
value: string;
|
|
31
|
-
}
|
|
32
|
-
export declare class FieldDependency {
|
|
33
|
-
masterFields: Array<string>;
|
|
34
|
-
type: DependencyType;
|
|
35
|
-
expression: string;
|
|
36
|
-
}
|
|
37
|
-
export declare enum DependencyType {
|
|
38
|
-
SEARCHING = "SEARCHING",
|
|
39
|
-
REQUIREMENT = "REQUIREMENT",
|
|
40
|
-
VISIBILITY = "REQUIREMENT"
|
|
41
|
-
}
|
|
1
|
+
import DataUnit from "./DataUnit";
|
|
2
|
+
export declare class Form {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
autoLoad?: boolean;
|
|
6
|
+
dataUnit?: DataUnit;
|
|
7
|
+
items?: Array<FormItem>;
|
|
8
|
+
subForms?: Array<Form>;
|
|
9
|
+
}
|
|
10
|
+
export interface FormItem {
|
|
11
|
+
}
|
|
12
|
+
export declare class Field implements FormItem {
|
|
13
|
+
name: string;
|
|
14
|
+
label: string;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
userInterface?: string;
|
|
19
|
+
properties?: Array<UIProperty>;
|
|
20
|
+
dependencies?: Array<FieldDependency>;
|
|
21
|
+
tabControler?: string;
|
|
22
|
+
tabIndex?: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class FieldSet implements FormItem {
|
|
25
|
+
label: string;
|
|
26
|
+
fields: Array<Field>;
|
|
27
|
+
}
|
|
28
|
+
export declare class UIProperty {
|
|
29
|
+
name: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
export declare class FieldDependency {
|
|
33
|
+
masterFields: Array<string>;
|
|
34
|
+
type: DependencyType;
|
|
35
|
+
expression: string;
|
|
36
|
+
}
|
|
37
|
+
export declare enum DependencyType {
|
|
38
|
+
SEARCHING = "SEARCHING",
|
|
39
|
+
REQUIREMENT = "REQUIREMENT",
|
|
40
|
+
VISIBILITY = "REQUIREMENT"
|
|
41
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Form } from './FormMetadata';
|
|
2
|
-
export declare class FormMetadata {
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
dataunit: string;
|
|
6
|
-
many: boolean;
|
|
7
|
-
autoload: boolean;
|
|
8
|
-
metadata: Form;
|
|
9
|
-
private _host;
|
|
10
|
-
private buildField;
|
|
11
|
-
private buildFieldSet;
|
|
12
|
-
private fromElements;
|
|
13
|
-
componentWillLoad(): void;
|
|
14
|
-
render(): any;
|
|
15
|
-
}
|
|
1
|
+
import { Form } from './FormMetadata';
|
|
2
|
+
export declare class FormMetadata {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
dataunit: string;
|
|
6
|
+
many: boolean;
|
|
7
|
+
autoload: boolean;
|
|
8
|
+
metadata: Form;
|
|
9
|
+
private _host;
|
|
10
|
+
private buildField;
|
|
11
|
+
private buildFieldSet;
|
|
12
|
+
private fromElements;
|
|
13
|
+
componentWillLoad(): void;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class PlaceHolder {
|
|
2
|
-
render(): any;
|
|
3
|
-
}
|
|
1
|
+
export declare class PlaceHolder {
|
|
2
|
+
render(): any;
|
|
3
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
-
import DataUnit from "../DataUnit";
|
|
3
|
-
import { Field as FieldMD } from "../FormMetadata";
|
|
4
|
-
interface FieldProps {
|
|
5
|
-
dataUnit: DataUnit;
|
|
6
|
-
source: FieldMD;
|
|
7
|
-
forceScroll: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const Field: FunctionalComponent<FieldProps>;
|
|
10
|
-
export {};
|
|
1
|
+
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
+
import DataUnit from "../DataUnit";
|
|
3
|
+
import { Field as FieldMD } from "../FormMetadata";
|
|
4
|
+
interface FieldProps {
|
|
5
|
+
dataUnit: DataUnit;
|
|
6
|
+
source: FieldMD;
|
|
7
|
+
forceScroll: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Field: FunctionalComponent<FieldProps>;
|
|
10
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
-
import { Store } from "redux";
|
|
3
|
-
import DataUnit from "../DataUnit";
|
|
4
|
-
import { FieldSet as FieldSetMD } from "../FormMetadata";
|
|
5
|
-
interface FieldSetProps {
|
|
6
|
-
store: Store;
|
|
7
|
-
formName: string;
|
|
8
|
-
source: FieldSetMD;
|
|
9
|
-
dataUnit: DataUnit;
|
|
10
|
-
}
|
|
11
|
-
export declare const FieldSet: FunctionalComponent<FieldSetProps>;
|
|
12
|
-
export {};
|
|
1
|
+
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
+
import { Store } from "redux";
|
|
3
|
+
import DataUnit from "../DataUnit";
|
|
4
|
+
import { FieldSet as FieldSetMD } from "../FormMetadata";
|
|
5
|
+
interface FieldSetProps {
|
|
6
|
+
store: Store;
|
|
7
|
+
formName: string;
|
|
8
|
+
source: FieldSetMD;
|
|
9
|
+
dataUnit: DataUnit;
|
|
10
|
+
}
|
|
11
|
+
export declare const FieldSet: FunctionalComponent<FieldSetProps>;
|
|
12
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
-
import { Form } from "../FormMetadata";
|
|
3
|
-
import { Store } from "redux";
|
|
4
|
-
import DataUnit from "../DataUnit";
|
|
5
|
-
interface FormSheetProps {
|
|
6
|
-
store: Store;
|
|
7
|
-
source: Array<Form>;
|
|
8
|
-
parentName: string;
|
|
9
|
-
dataUnitBuilder: Function;
|
|
10
|
-
parentDataUnit?: DataUnit;
|
|
11
|
-
}
|
|
12
|
-
export declare const FormSheet: FunctionalComponent<FormSheetProps>;
|
|
13
|
-
export {};
|
|
1
|
+
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
+
import { Form } from "../FormMetadata";
|
|
3
|
+
import { Store } from "redux";
|
|
4
|
+
import DataUnit from "../DataUnit";
|
|
5
|
+
interface FormSheetProps {
|
|
6
|
+
store: Store;
|
|
7
|
+
source: Array<Form>;
|
|
8
|
+
parentName: string;
|
|
9
|
+
dataUnitBuilder: Function;
|
|
10
|
+
parentDataUnit?: DataUnit;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormSheet: FunctionalComponent<FormSheetProps>;
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
-
import DataUnit from "../DataUnit";
|
|
3
|
-
interface NavigationBarProps {
|
|
4
|
-
dataUnit: DataUnit;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
1
|
+
import { FunctionalComponent } from "../../../../stencil-public-runtime";
|
|
2
|
+
import DataUnit from "../DataUnit";
|
|
3
|
+
interface NavigationBarProps {
|
|
4
|
+
dataUnit: DataUnit;
|
|
5
|
+
buttonProps: NavigationBarButtons;
|
|
6
|
+
}
|
|
7
|
+
export interface NavigationBarButtons {
|
|
8
|
+
previousVisible: boolean;
|
|
9
|
+
nextVisible: boolean;
|
|
10
|
+
addVisible: boolean;
|
|
11
|
+
removeVisible: boolean;
|
|
12
|
+
saveVisible: boolean;
|
|
13
|
+
cancelVisible: boolean;
|
|
14
|
+
reloadVisible: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const NavigationBar: FunctionalComponent<NavigationBarProps>;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class EzIcon {
|
|
2
|
-
size: string;
|
|
3
|
-
href: string;
|
|
4
|
-
render(): any;
|
|
5
|
-
}
|
|
1
|
+
export declare class EzIcon {
|
|
2
|
+
size: string;
|
|
3
|
+
href: string;
|
|
4
|
+
render(): any;
|
|
5
|
+
}
|