@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.
Files changed (186) hide show
  1. package/README.md +72 -72
  2. package/dist/{ezui/DataUnit-285bec19.js → cjs/DataUnit-28b290cb.js} +382 -369
  3. package/dist/{ezui/index-919090de.js → cjs/RequestMetadata-2cd01e8a.js} +4 -383
  4. package/dist/cjs/ez-action-chip.cjs.entry.js +52 -0
  5. package/dist/cjs/ez-button_14.cjs.entry.js +3341 -0
  6. package/dist/cjs/ez-label-chip.cjs.entry.js +131 -0
  7. package/dist/cjs/ez-modal.cjs.entry.js +115 -0
  8. package/dist/cjs/ez-number-input.cjs.entry.js +248 -0
  9. package/dist/cjs/ez-time-input.cjs.entry.js +180 -0
  10. package/dist/cjs/ezui.cjs.js +19 -0
  11. package/dist/cjs/form-metadata.cjs.entry.js +74 -0
  12. package/dist/cjs/index-9403fe8f.js +1322 -0
  13. package/dist/cjs/index.cjs.js +2 -0
  14. package/dist/cjs/loader.cjs.js +21 -0
  15. package/dist/collection/collection-manifest.json +31 -0
  16. package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -0
  17. package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -0
  18. package/dist/collection/components/ez-button/ez-button.css +94 -0
  19. package/dist/collection/components/ez-button/ez-button.js +125 -0
  20. package/dist/collection/components/ez-calendar/ez-calendar.css +210 -0
  21. package/dist/collection/components/ez-calendar/ez-calendar.js +215 -0
  22. package/dist/collection/components/ez-check/ez-check.css +266 -0
  23. package/dist/collection/components/ez-check/ez-check.js +168 -0
  24. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +68 -0
  25. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -0
  26. package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -0
  27. package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -0
  28. package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -0
  29. package/dist/collection/components/ez-date-input/ez-date-input.css +39 -0
  30. package/dist/collection/components/ez-date-input/ez-date-input.js +172 -0
  31. package/dist/collection/components/ez-form/ez-form.css +19 -0
  32. package/dist/collection/components/ez-form/ez-form.js +368 -0
  33. package/dist/collection/components/ez-form/store/Form.actions.js +132 -0
  34. package/dist/collection/components/ez-form/store/Form.reducer.js +194 -0
  35. package/dist/collection/components/ez-form/store/Form.selectors.js +44 -0
  36. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +207 -0
  37. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -0
  38. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +24 -0
  39. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -0
  40. package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -0
  41. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -0
  42. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -0
  43. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -0
  44. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -0
  45. package/dist/collection/components/ez-icon/ez-icon.css +37 -0
  46. package/dist/collection/components/ez-icon/ez-icon.js +56 -0
  47. package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -0
  48. package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -0
  49. package/dist/collection/components/ez-modal/ez-modal.css +87 -0
  50. package/dist/collection/components/ez-modal/ez-modal.js +224 -0
  51. package/dist/collection/components/ez-number-input/ez-number-input.css +144 -0
  52. package/dist/collection/components/ez-number-input/ez-number-input.js +465 -0
  53. package/dist/collection/components/ez-popover/ez-popover.css +39 -0
  54. package/dist/collection/components/ez-popover/ez-popover.js +323 -0
  55. package/dist/collection/components/ez-search/ez-search.css +296 -0
  56. package/dist/{ezui/ez-search.entry.js → collection/components/ez-search/ez-search.js} +527 -334
  57. package/dist/collection/components/ez-tabselector/ez-tabselector.css +126 -0
  58. package/dist/{ezui/ez-tabselector.entry.js → collection/components/ez-tabselector/ez-tabselector.js} +283 -209
  59. package/dist/collection/components/ez-text-area/ez-text-area.css +140 -0
  60. package/dist/collection/components/ez-text-area/ez-text-area.js +267 -0
  61. package/dist/collection/components/ez-text-input/ez-text-input.css +170 -0
  62. package/dist/collection/components/ez-text-input/ez-text-input.js +395 -0
  63. package/dist/collection/components/ez-time-input/ez-time-input.css +155 -0
  64. package/dist/collection/components/ez-time-input/ez-time-input.js +326 -0
  65. package/dist/collection/index.js +1 -0
  66. package/dist/collection/servidor.js +101 -0
  67. package/dist/collection/utils/FloatingManager.js +16 -0
  68. package/dist/collection/utils/utils.js +6 -0
  69. package/dist/custom-elements/index.js +5071 -0
  70. package/dist/esm/DataUnit-69e518fa.js +378 -0
  71. package/dist/esm/RequestMetadata-c265c9d5.js +527 -0
  72. package/dist/{ezui → esm}/ez-action-chip.entry.js +42 -42
  73. package/dist/esm/ez-button_14.entry.js +3324 -0
  74. package/dist/{ezui → esm}/ez-label-chip.entry.js +121 -121
  75. package/dist/{ezui → esm}/ez-modal.entry.js +105 -96
  76. package/dist/{ezui → esm}/ez-number-input.entry.js +238 -238
  77. package/dist/{ezui → esm}/ez-time-input.entry.js +170 -170
  78. package/dist/esm/ezui.js +17 -0
  79. package/dist/{ezui → esm}/form-metadata.entry.js +66 -66
  80. package/dist/esm/index-95bb3fd9.js +1293 -0
  81. package/dist/esm/index.js +1 -0
  82. package/dist/esm/loader.js +17 -0
  83. package/dist/esm/polyfills/core-js.js +11 -0
  84. package/dist/esm/polyfills/css-shim.js +1 -0
  85. package/dist/esm/polyfills/dom.js +79 -0
  86. package/dist/esm/polyfills/es5-html-element.js +1 -0
  87. package/dist/esm/polyfills/index.js +34 -0
  88. package/dist/esm/polyfills/system.js +6 -0
  89. package/dist/ezui/ezui.esm.js +1 -122
  90. package/dist/ezui/index.esm.js +0 -1
  91. package/dist/ezui/p-10ef58b3.js +1 -0
  92. package/dist/ezui/p-185c57f4.js +1 -0
  93. package/dist/ezui/p-22b82efb.entry.js +1 -0
  94. package/dist/ezui/p-77fdb4fd.entry.js +1 -0
  95. package/dist/ezui/p-9dfccb16.js +1 -0
  96. package/dist/ezui/p-b0974f4f.entry.js +1 -0
  97. package/dist/ezui/p-db11c600.entry.js +1 -0
  98. package/dist/ezui/p-dd4331b7.entry.js +1 -0
  99. package/dist/ezui/p-f6fd31ab.entry.js +1 -0
  100. package/dist/ezui/p-fa260f22.entry.js +1 -0
  101. package/dist/index.cjs.js +1 -0
  102. package/dist/index.js +1 -0
  103. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
  104. package/dist/types/components/ez-button/ez-button.d.ts +20 -20
  105. package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
  106. package/dist/types/components/ez-check/ez-check.d.ts +32 -32
  107. package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
  108. package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
  109. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
  110. package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
  111. package/dist/types/components/ez-form/ez-form.d.ts +31 -27
  112. package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
  113. package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
  114. package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
  115. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +55 -48
  116. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
  117. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
  118. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
  119. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
  120. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
  121. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
  122. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
  123. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
  124. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
  125. package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
  126. package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
  127. package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
  128. package/dist/types/components/ez-search/ez-search.d.ts +95 -95
  129. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
  130. package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
  131. package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
  132. package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
  133. package/dist/types/components.d.ts +8 -0
  134. package/dist/types/index.d.ts +1 -1
  135. package/dist/types/utils/utils.d.ts +2 -2
  136. package/loader/cdn.js +3 -0
  137. package/loader/index.cjs.js +3 -0
  138. package/loader/index.d.ts +13 -0
  139. package/loader/index.es2017.js +3 -0
  140. package/loader/index.js +4 -0
  141. package/loader/package.json +10 -0
  142. package/package.json +114 -114
  143. package/react/components.d.ts +22 -0
  144. package/react/components.js +25 -0
  145. package/react/components.js.map +1 -0
  146. package/react/react-component-lib/createComponent.d.ts +10 -0
  147. package/react/react-component-lib/createComponent.js +59 -0
  148. package/react/react-component-lib/createComponent.js.map +1 -0
  149. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  150. package/react/react-component-lib/createOverlayComponent.js +89 -0
  151. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  152. package/react/react-component-lib/index.d.ts +2 -0
  153. package/react/react-component-lib/index.js +3 -0
  154. package/react/react-component-lib/index.js.map +1 -0
  155. package/react/react-component-lib/interfaces.d.ts +29 -0
  156. package/react/react-component-lib/interfaces.js +1 -0
  157. package/react/react-component-lib/interfaces.js.map +1 -0
  158. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  159. package/react/react-component-lib/utils/attachProps.js +96 -0
  160. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  161. package/react/react-component-lib/utils/case.d.ts +2 -0
  162. package/react/react-component-lib/utils/case.js +7 -0
  163. package/react/react-component-lib/utils/case.js.map +1 -0
  164. package/react/react-component-lib/utils/dev.d.ts +2 -0
  165. package/react/react-component-lib/utils/dev.js +13 -0
  166. package/react/react-component-lib/utils/dev.js.map +1 -0
  167. package/react/react-component-lib/utils/index.d.ts +7 -0
  168. package/react/react-component-lib/utils/index.js +21 -0
  169. package/react/react-component-lib/utils/index.js.map +1 -0
  170. package/dist/ezui/app-globals-0f993ce5.js +0 -3
  171. package/dist/ezui/css-shim-003e9264.js +0 -4
  172. package/dist/ezui/dom-1b195079.js +0 -73
  173. package/dist/ezui/ez-button.entry.js +0 -47
  174. package/dist/ezui/ez-calendar.entry.js +0 -102
  175. package/dist/ezui/ez-check.entry.js +0 -62
  176. package/dist/ezui/ez-collapsable-box.entry.js +0 -32
  177. package/dist/ezui/ez-combo-box.entry.js +0 -181
  178. package/dist/ezui/ez-date-input.entry.js +0 -77
  179. package/dist/ezui/ez-form.entry.js +0 -1907
  180. package/dist/ezui/ez-icon.entry.js +0 -17
  181. package/dist/ezui/ez-popover.entry.js +0 -112
  182. package/dist/ezui/ez-text-area.entry.js +0 -105
  183. package/dist/ezui/ez-text-input.entry.js +0 -202
  184. package/dist/ezui/index-39044be2.js +0 -2832
  185. package/dist/ezui/place-holder.entry.js +0 -15
  186. 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
- }, action: any): any;
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
- cardinality: string;
7
- recordsValidator: RecordsValidator;
8
- loadExecutor: Function;
9
- saveExecutor: Function;
10
- removeExecutor: Function;
11
- fieldSearchExecutor: Function;
12
- _records: Array<Record>;
13
- constructor(name: string, cardinality?: string);
14
- set store(store: Store);
15
- isLoading(): boolean;
16
- hasChanges(): boolean;
17
- hasNext(): boolean;
18
- hasPrevious(): boolean;
19
- hasCurrentRecord(): boolean;
20
- previous(): void;
21
- next(): void;
22
- getValue(fieldName: string): any;
23
- getErrorMessage(fieldName: string): string;
24
- changeValue(fieldName: string, newValue: any): void;
25
- cancel(): void;
26
- insert(): void;
27
- save(): void;
28
- load(): void;
29
- remove(): void;
30
- private processSaveResult;
31
- private processLoadResult;
32
- private processRemoveResult;
33
- set records(records: Array<Record>);
34
- get records(): Array<Record>;
35
- private getCurrentRecord;
36
- private getRecordChanges;
37
- private validateRecords;
38
- }
39
- export interface Record {
40
- record__id: string;
41
- }
42
- export interface RecordsValidator {
43
- validateRecords(dataUnit: DataUnit, records: Array<Record>): ValidationResult;
44
- }
45
- export interface ValidationResult {
46
- isValid: boolean;
47
- message: string;
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
- export declare const NavigationBar: FunctionalComponent<NavigationBarProps>;
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
+ }