@sankhyalabs/ezui 3.0.1 → 3.0.2

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 (225) hide show
  1. package/dist/cjs/ez-actions-button.cjs.entry.js +12 -26
  2. package/dist/cjs/ez-alert.cjs.entry.js +2 -5
  3. package/dist/cjs/ez-application.cjs.entry.js +2 -2
  4. package/dist/cjs/ez-breadcrumb.cjs.entry.js +2 -5
  5. package/dist/cjs/ez-button.cjs.entry.js +6 -8
  6. package/dist/cjs/ez-calendar.cjs.entry.js +2 -14
  7. package/dist/cjs/ez-card-item.cjs.entry.js +3 -2
  8. package/dist/cjs/ez-check.cjs.entry.js +5 -8
  9. package/dist/cjs/ez-chip.cjs.entry.js +5 -8
  10. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -20
  11. package/dist/cjs/ez-combo-box.cjs.entry.js +11 -23
  12. package/dist/cjs/ez-date-input.cjs.entry.js +5 -8
  13. package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -11
  14. package/dist/cjs/ez-dialog.cjs.entry.js +7 -9
  15. package/dist/cjs/ez-dropdown.cjs.entry.js +4 -5
  16. package/dist/cjs/ez-file-item.cjs.entry.js +5 -8
  17. package/dist/cjs/ez-filter-input_4.cjs.entry.js +14 -23
  18. package/dist/cjs/ez-form-view.cjs.entry.js +3 -2
  19. package/dist/cjs/ez-form.cjs.entry.js +26 -20
  20. package/dist/cjs/ez-grid.cjs.entry.js +11110 -6777
  21. package/dist/cjs/ez-guide-navigator.cjs.entry.js +3 -11
  22. package/dist/cjs/ez-icon.cjs.entry.js +4 -5
  23. package/dist/cjs/ez-list.cjs.entry.js +4 -15
  24. package/dist/cjs/ez-loading-bar.cjs.entry.js +2 -2
  25. package/dist/cjs/ez-modal-container.cjs.entry.js +8 -5
  26. package/dist/cjs/ez-modal.cjs.entry.js +7 -14
  27. package/dist/cjs/ez-number-input.cjs.entry.js +7 -8
  28. package/dist/cjs/ez-popover.cjs.entry.js +11 -30
  29. package/dist/cjs/ez-popup.cjs.entry.js +3 -14
  30. package/dist/cjs/ez-radio-button.cjs.entry.js +4 -11
  31. package/dist/cjs/ez-search.cjs.entry.js +6 -17
  32. package/dist/cjs/ez-tabselector.cjs.entry.js +6 -2
  33. package/dist/cjs/ez-text-area.cjs.entry.js +5 -14
  34. package/dist/cjs/ez-text-edit.cjs.entry.js +5 -2
  35. package/dist/cjs/ez-text-input.cjs.entry.js +7 -14
  36. package/dist/cjs/ez-time-input.cjs.entry.js +5 -11
  37. package/dist/cjs/ez-toast.cjs.entry.js +3 -11
  38. package/dist/cjs/ez-upload.cjs.entry.js +9 -5
  39. package/dist/cjs/ez-view-stack.cjs.entry.js +2 -2
  40. package/dist/cjs/ezui.cjs.js +6 -2
  41. package/dist/cjs/{index-5e208fa5.js → index-892780f1.js} +588 -248
  42. package/dist/cjs/loader.cjs.js +3 -2
  43. package/dist/collection/collection-manifest.json +2 -2
  44. package/dist/collection/components/ez-actions-button/ez-actions-button.js +248 -256
  45. package/dist/collection/components/ez-alert/ez-alert.js +34 -36
  46. package/dist/collection/components/ez-application/ez-application.js +29 -23
  47. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js +61 -60
  48. package/dist/collection/components/ez-button/ez-button.js +159 -159
  49. package/dist/collection/components/ez-calendar/ez-calendar.js +214 -244
  50. package/dist/collection/components/ez-card-item/ez-card-item.js +60 -58
  51. package/dist/collection/components/ez-check/ez-check.js +164 -157
  52. package/dist/collection/components/ez-chip/ez-chip.js +190 -186
  53. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +282 -293
  54. package/dist/collection/components/ez-combo-box/ez-combo-box.js +348 -361
  55. package/dist/collection/components/ez-date-input/ez-date-input.js +213 -207
  56. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +233 -228
  57. package/dist/collection/components/ez-dialog/ez-dialog.js +203 -209
  58. package/dist/collection/components/ez-dropdown/ez-dropdown.js +128 -127
  59. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js +1 -4
  60. package/dist/collection/components/ez-file-item/ez-file-item.js +144 -142
  61. package/dist/collection/components/ez-filter-input/ez-filter-input.js +197 -188
  62. package/dist/collection/components/ez-form/DataBinder.js +12 -6
  63. package/dist/collection/components/ez-form/ez-form.js +191 -177
  64. package/dist/collection/components/ez-form-view/ez-form-view.js +38 -29
  65. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -2
  66. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -2
  67. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -6
  68. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -2
  69. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -2
  70. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -2
  71. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -2
  72. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -2
  73. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +1 -1
  74. package/dist/collection/components/ez-grid/ez-grid.js +365 -351
  75. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +120 -125
  76. package/dist/collection/components/ez-icon/ez-icon.js +68 -64
  77. package/dist/collection/components/ez-list/ez-list.js +246 -266
  78. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +49 -42
  79. package/dist/collection/components/ez-modal/ez-modal.js +143 -143
  80. package/dist/collection/components/ez-modal-container/ez-modal-container.js +153 -155
  81. package/dist/collection/components/ez-number-input/ez-number-input.js +246 -233
  82. package/dist/collection/components/ez-popover/ez-popover.js +273 -283
  83. package/dist/collection/components/ez-popup/ez-popup.js +121 -133
  84. package/dist/collection/components/ez-radio-button/ez-radio-button.js +123 -126
  85. package/dist/collection/components/ez-scroller/ez-scroller.js +104 -100
  86. package/dist/collection/components/ez-search/ez-search.js +260 -259
  87. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +30 -25
  88. package/dist/collection/components/ez-tabselector/ez-tabselector.js +115 -106
  89. package/dist/collection/components/ez-text-area/ez-text-area.js +217 -218
  90. package/dist/collection/components/ez-text-edit/ez-text-edit.js +109 -96
  91. package/dist/collection/components/ez-text-input/ez-text-input.js +248 -248
  92. package/dist/collection/components/ez-time-input/ez-time-input.js +227 -223
  93. package/dist/collection/components/ez-toast/ez-toast.js +117 -121
  94. package/dist/collection/components/ez-tree/ez-tree.js +289 -275
  95. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +7 -11
  96. package/dist/collection/components/ez-upload/ez-upload.js +283 -281
  97. package/dist/collection/components/ez-view-stack/ez-view-stack.js +46 -40
  98. package/dist/custom-elements/index.js +11097 -6940
  99. package/dist/esm/ez-actions-button.entry.js +12 -26
  100. package/dist/esm/ez-alert.entry.js +2 -5
  101. package/dist/esm/ez-application.entry.js +2 -2
  102. package/dist/esm/ez-breadcrumb.entry.js +2 -5
  103. package/dist/esm/ez-button.entry.js +6 -8
  104. package/dist/esm/ez-calendar.entry.js +2 -14
  105. package/dist/esm/ez-card-item.entry.js +3 -2
  106. package/dist/esm/ez-check.entry.js +5 -8
  107. package/dist/esm/ez-chip.entry.js +5 -8
  108. package/dist/esm/ez-collapsible-box.entry.js +4 -20
  109. package/dist/esm/ez-combo-box.entry.js +11 -23
  110. package/dist/esm/ez-date-input.entry.js +5 -8
  111. package/dist/esm/ez-date-time-input.entry.js +5 -11
  112. package/dist/esm/ez-dialog.entry.js +7 -9
  113. package/dist/esm/ez-dropdown.entry.js +4 -5
  114. package/dist/esm/ez-file-item.entry.js +5 -8
  115. package/dist/esm/ez-filter-input_4.entry.js +14 -23
  116. package/dist/esm/ez-form-view.entry.js +3 -2
  117. package/dist/esm/ez-form.entry.js +26 -20
  118. package/dist/esm/ez-grid.entry.js +11110 -6777
  119. package/dist/esm/ez-guide-navigator.entry.js +3 -11
  120. package/dist/esm/ez-icon.entry.js +4 -5
  121. package/dist/esm/ez-list.entry.js +4 -15
  122. package/dist/esm/ez-loading-bar.entry.js +2 -2
  123. package/dist/esm/ez-modal-container.entry.js +8 -5
  124. package/dist/esm/ez-modal.entry.js +7 -14
  125. package/dist/esm/ez-number-input.entry.js +7 -8
  126. package/dist/esm/ez-popover.entry.js +11 -30
  127. package/dist/esm/ez-popup.entry.js +3 -14
  128. package/dist/esm/ez-radio-button.entry.js +4 -11
  129. package/dist/esm/ez-search.entry.js +6 -17
  130. package/dist/esm/ez-tabselector.entry.js +6 -2
  131. package/dist/esm/ez-text-area.entry.js +5 -14
  132. package/dist/esm/ez-text-edit.entry.js +5 -2
  133. package/dist/esm/ez-text-input.entry.js +7 -14
  134. package/dist/esm/ez-time-input.entry.js +5 -11
  135. package/dist/esm/ez-toast.entry.js +3 -11
  136. package/dist/esm/ez-upload.entry.js +9 -5
  137. package/dist/esm/ez-view-stack.entry.js +2 -2
  138. package/dist/esm/ezui.js +3 -2
  139. package/dist/esm/{index-c5203f95.js → index-de655f48.js} +588 -249
  140. package/dist/esm/loader.js +3 -2
  141. package/dist/esm/polyfills/css-shim.js +1 -1
  142. package/dist/ezui/ezui.esm.js +1 -1
  143. package/dist/ezui/{p-df20c613.entry.js → p-06b3e801.entry.js} +1 -1
  144. package/dist/ezui/p-07b99b94.entry.js +1 -0
  145. package/dist/ezui/p-0c7e81fe.entry.js +1 -0
  146. package/dist/ezui/p-1581fece.entry.js +1 -0
  147. package/dist/ezui/p-1b95836f.entry.js +1 -0
  148. package/dist/ezui/p-36f7ec68.entry.js +1 -0
  149. package/dist/ezui/p-37b4bf04.entry.js +1 -0
  150. package/dist/ezui/p-493e2af4.entry.js +1 -0
  151. package/dist/ezui/p-4bfed869.entry.js +1 -0
  152. package/dist/ezui/p-600f1732.entry.js +1 -0
  153. package/dist/ezui/p-62481744.entry.js +1 -0
  154. package/dist/ezui/p-6818dd0a.entry.js +1 -0
  155. package/dist/ezui/p-695facd0.entry.js +1 -0
  156. package/dist/ezui/p-7ffd12e7.js +2 -0
  157. package/dist/ezui/p-82db6de7.entry.js +1 -0
  158. package/dist/ezui/p-86d29565.entry.js +1 -0
  159. package/dist/ezui/p-8ca4750d.entry.js +1 -0
  160. package/dist/ezui/p-9613fae6.entry.js +1 -0
  161. package/dist/ezui/{p-fc97f773.entry.js → p-a323b415.entry.js} +1 -1
  162. package/dist/ezui/p-a4b281ca.entry.js +1 -0
  163. package/dist/ezui/p-a67e056f.entry.js +1 -0
  164. package/dist/ezui/p-a8c7355e.entry.js +1 -0
  165. package/dist/ezui/p-ada6e6b0.entry.js +1 -0
  166. package/dist/ezui/p-b1e4ccf4.entry.js +1 -0
  167. package/dist/ezui/p-b3c7b243.entry.js +1 -0
  168. package/dist/ezui/p-b405d9b6.entry.js +304 -0
  169. package/dist/ezui/p-b941aeee.entry.js +1 -0
  170. package/dist/ezui/p-c0184982.entry.js +1 -0
  171. package/dist/ezui/p-c1300e84.entry.js +1 -0
  172. package/dist/ezui/p-c98e571a.entry.js +1 -0
  173. package/dist/ezui/p-cc40fcb3.entry.js +1 -0
  174. package/dist/ezui/p-cc5cfcb7.entry.js +1 -0
  175. package/dist/ezui/p-d6dd32b2.entry.js +1 -0
  176. package/dist/ezui/p-db131605.entry.js +1 -0
  177. package/dist/ezui/{p-ba03ac61.entry.js → p-e0d756d9.entry.js} +1 -1
  178. package/dist/ezui/p-eceb9382.entry.js +1 -0
  179. package/dist/ezui/p-f18d39e6.entry.js +1 -0
  180. package/dist/ezui/p-f670bd32.entry.js +1 -0
  181. package/dist/ezui/p-fcf6cf57.entry.js +1 -0
  182. package/dist/ezui/p-fd87638e.entry.js +1 -0
  183. package/dist/types/components.d.ts +195 -63
  184. package/dist/types/stencil-public-runtime.d.ts +79 -7
  185. package/loader/index.d.ts +9 -0
  186. package/loader/package.json +1 -0
  187. package/package.json +4 -4
  188. package/react/components.d.ts +0 -1
  189. package/dist/ezui/p-0cd0545d.entry.js +0 -1
  190. package/dist/ezui/p-1a27bb9f.entry.js +0 -1
  191. package/dist/ezui/p-1b94b9dc.entry.js +0 -1
  192. package/dist/ezui/p-20c01161.entry.js +0 -1
  193. package/dist/ezui/p-24717f87.entry.js +0 -1
  194. package/dist/ezui/p-3320768e.entry.js +0 -1
  195. package/dist/ezui/p-368037b9.entry.js +0 -1
  196. package/dist/ezui/p-47bcc678.entry.js +0 -1
  197. package/dist/ezui/p-4c444816.entry.js +0 -1
  198. package/dist/ezui/p-608d13e8.entry.js +0 -1
  199. package/dist/ezui/p-626b8940.entry.js +0 -1
  200. package/dist/ezui/p-6414e7cb.entry.js +0 -1
  201. package/dist/ezui/p-6630eca2.entry.js +0 -1
  202. package/dist/ezui/p-67b9a2cb.entry.js +0 -1
  203. package/dist/ezui/p-6f9aba86.entry.js +0 -1
  204. package/dist/ezui/p-7b80df03.js +0 -1
  205. package/dist/ezui/p-7d42065a.entry.js +0 -1
  206. package/dist/ezui/p-97d2d2f6.entry.js +0 -1
  207. package/dist/ezui/p-99aea44b.entry.js +0 -1
  208. package/dist/ezui/p-a4b4645d.entry.js +0 -1
  209. package/dist/ezui/p-ab5eee38.entry.js +0 -1
  210. package/dist/ezui/p-ad7151e0.entry.js +0 -1
  211. package/dist/ezui/p-ad8b7412.entry.js +0 -1
  212. package/dist/ezui/p-ae168e45.entry.js +0 -1
  213. package/dist/ezui/p-b2e861cb.entry.js +0 -1
  214. package/dist/ezui/p-b2efb22c.entry.js +0 -1
  215. package/dist/ezui/p-b4ccb29c.entry.js +0 -304
  216. package/dist/ezui/p-b5557d33.entry.js +0 -1
  217. package/dist/ezui/p-bd9792e2.entry.js +0 -1
  218. package/dist/ezui/p-bf8a633d.entry.js +0 -1
  219. package/dist/ezui/p-c071db26.entry.js +0 -1
  220. package/dist/ezui/p-c3529df3.entry.js +0 -1
  221. package/dist/ezui/p-c53b2db8.entry.js +0 -1
  222. package/dist/ezui/p-ca7435a6.entry.js +0 -1
  223. package/dist/ezui/p-cc038b32.entry.js +0 -1
  224. package/dist/ezui/p-e203c89f.entry.js +0 -1
  225. package/dist/ezui/p-f08de60b.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { Action, DataUnit, DataUnitAction, ElementIDUtils, StringUtils } from "@sankhyalabs/core";
2
- import { Component, Element, Event, Host, Method, Prop, Watch, forceUpdate, h } from "@stencil/core";
2
+ import { Host, forceUpdate, h } from "@stencil/core";
3
3
  import { createStore } from "redux";
4
4
  import ApplicationUtils from "../../utils/ApplicationUtils";
5
5
  import DataBinder from "./DataBinder";
@@ -12,6 +12,12 @@ export class EzForm {
12
12
  this.processMetadata();
13
13
  }
14
14
  };
15
+ this.dataUnit = undefined;
16
+ this.config = undefined;
17
+ this.recordsValidator = undefined;
18
+ this.multiLevel = undefined;
19
+ this.levelResolver = undefined;
20
+ this.contentBuilder = undefined;
15
21
  }
16
22
  /**
17
23
  * Realiza validação no conteúdo de todos os campos.
@@ -98,16 +104,13 @@ export class EzForm {
98
104
  };
99
105
  return item;
100
106
  }));
101
- return (h("div", { class: "multi-level__container" },
102
- h("div", null,
103
- h("ez-tree", { selectedId: currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name, items: treeItems, onEzChange: (evt) => {
104
- var _a;
105
- const selectedItem = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.id;
106
- if (selectedItem && selectedItem !== (currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name)) {
107
- this._store.dispatch(changeTab(selectedItem));
108
- }
109
- } })),
110
- h("div", null, this.buildFormContent(currentSheetId, currentSheet))));
107
+ return (h("div", { class: "multi-level__container" }, h("div", null, h("ez-tree", { selectedId: currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name, items: treeItems, onEzChange: (evt) => {
108
+ var _a;
109
+ const selectedItem = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.id;
110
+ if (selectedItem && selectedItem !== (currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name)) {
111
+ this._store.dispatch(changeTab(selectedItem));
112
+ }
113
+ } })), h("div", null, this.buildFormContent(currentSheetId, currentSheet))));
111
114
  }
112
115
  getDynamicContent() {
113
116
  var _a, _b;
@@ -143,8 +146,7 @@ export class EzForm {
143
146
  return;
144
147
  }
145
148
  const idFormSheet = `${StringUtils.replaceAccentuatedChars(StringUtils.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
146
- return (h("div", { class: "dynamic-content ez-box__container", "data-element-id": idFormSheet },
147
- h("ez-form-view", { class: "ez-row ez-padding-vertical--small", fields: fields })));
149
+ return (h("div", { class: "dynamic-content ez-box__container", "data-element-id": idFormSheet }, h("ez-form-view", { class: "ez-row ez-padding-vertical--small", fields: fields })));
148
150
  }
149
151
  processMetadata() {
150
152
  if (!this.isStatic() && this.dataUnit && this._store) {
@@ -237,188 +239,200 @@ export class EzForm {
237
239
  }
238
240
  static get is() { return "ez-form"; }
239
241
  static get encapsulation() { return "scoped"; }
240
- static get originalStyleUrls() { return {
241
- "$": ["ez-form.css"]
242
- }; }
243
- static get styleUrls() { return {
244
- "$": ["ez-form.css"]
245
- }; }
246
- static get properties() { return {
247
- "dataUnit": {
248
- "type": "unknown",
249
- "mutable": true,
250
- "complexType": {
251
- "original": "DataUnit",
252
- "resolved": "DataUnit",
253
- "references": {
254
- "DataUnit": {
255
- "location": "import",
256
- "path": "@sankhyalabs/core"
242
+ static get originalStyleUrls() {
243
+ return {
244
+ "$": ["ez-form.css"]
245
+ };
246
+ }
247
+ static get styleUrls() {
248
+ return {
249
+ "$": ["ez-form.css"]
250
+ };
251
+ }
252
+ static get properties() {
253
+ return {
254
+ "dataUnit": {
255
+ "type": "unknown",
256
+ "mutable": true,
257
+ "complexType": {
258
+ "original": "DataUnit",
259
+ "resolved": "DataUnit",
260
+ "references": {
261
+ "DataUnit": {
262
+ "location": "import",
263
+ "path": "@sankhyalabs/core"
264
+ }
257
265
  }
266
+ },
267
+ "required": false,
268
+ "optional": false,
269
+ "docs": {
270
+ "tags": [],
271
+ "text": "Unidade de dados. Respons\u00E1vel pelo controle de edi\u00E7\u00E3o de registros e \ninforma\u00E7\u00F5es pertinentes aos campos."
258
272
  }
259
273
  },
260
- "required": false,
261
- "optional": false,
262
- "docs": {
263
- "tags": [],
264
- "text": "Unidade de dados. Respons\u00E1vel pelo controle de edi\u00E7\u00E3o de registros e \ninforma\u00E7\u00F5es pertinentes aos campos."
265
- }
266
- },
267
- "config": {
268
- "type": "unknown",
269
- "mutable": false,
270
- "complexType": {
271
- "original": "IFormConfig",
272
- "resolved": "IFormConfig",
273
- "references": {
274
- "IFormConfig": {
275
- "location": "import",
276
- "path": "./interfaces"
274
+ "config": {
275
+ "type": "unknown",
276
+ "mutable": false,
277
+ "complexType": {
278
+ "original": "IFormConfig",
279
+ "resolved": "IFormConfig",
280
+ "references": {
281
+ "IFormConfig": {
282
+ "location": "import",
283
+ "path": "./interfaces"
284
+ }
277
285
  }
286
+ },
287
+ "required": false,
288
+ "optional": false,
289
+ "docs": {
290
+ "tags": [],
291
+ "text": "Configura\u00E7\u00E3o do formul\u00E1rio."
278
292
  }
279
293
  },
280
- "required": false,
281
- "optional": false,
282
- "docs": {
283
- "tags": [],
284
- "text": "Configura\u00E7\u00E3o do formul\u00E1rio."
285
- }
286
- },
287
- "recordsValidator": {
288
- "type": "unknown",
289
- "mutable": false,
290
- "complexType": {
291
- "original": "IRecordValidator",
292
- "resolved": "IRecordValidator",
293
- "references": {
294
- "IRecordValidator": {
295
- "location": "import",
296
- "path": "./interfaces"
294
+ "recordsValidator": {
295
+ "type": "unknown",
296
+ "mutable": false,
297
+ "complexType": {
298
+ "original": "IRecordValidator",
299
+ "resolved": "IRecordValidator",
300
+ "references": {
301
+ "IRecordValidator": {
302
+ "location": "import",
303
+ "path": "./interfaces"
304
+ }
297
305
  }
306
+ },
307
+ "required": false,
308
+ "optional": false,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": "Define um validador respons\u00E1vel pela integridade dos registros."
298
312
  }
299
313
  },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [],
304
- "text": "Define um validador respons\u00E1vel pela integridade dos registros."
305
- }
306
- },
307
- "multiLevel": {
308
- "type": "boolean",
309
- "mutable": false,
310
- "complexType": {
311
- "original": "boolean",
312
- "resolved": "boolean",
313
- "references": {}
314
- },
315
- "required": false,
316
- "optional": false,
317
- "docs": {
318
- "tags": [],
319
- "text": "Habilita o modo de organiza\u00E7\u00E3o com v\u00E1rios n\u00EDveis."
314
+ "multiLevel": {
315
+ "type": "boolean",
316
+ "mutable": false,
317
+ "complexType": {
318
+ "original": "boolean",
319
+ "resolved": "boolean",
320
+ "references": {}
321
+ },
322
+ "required": false,
323
+ "optional": false,
324
+ "docs": {
325
+ "tags": [],
326
+ "text": "Habilita o modo de organiza\u00E7\u00E3o com v\u00E1rios n\u00EDveis."
327
+ },
328
+ "attribute": "multi-level",
329
+ "reflect": false
320
330
  },
321
- "attribute": "multi-level",
322
- "reflect": false
323
- },
324
- "levelResolver": {
325
- "type": "unknown",
326
- "mutable": false,
327
- "complexType": {
328
- "original": "(items: Array<ITreeItem>) => Array<ITreeItem>",
329
- "resolved": "(items: ITreeItem[]) => ITreeItem[]",
330
- "references": {
331
- "Array": {
332
- "location": "global"
333
- },
334
- "ITreeItem": {
335
- "location": "import",
336
- "path": "../ez-tree/interfaces/ITreeItem"
331
+ "levelResolver": {
332
+ "type": "unknown",
333
+ "mutable": false,
334
+ "complexType": {
335
+ "original": "(items: Array<ITreeItem>) => Array<ITreeItem>",
336
+ "resolved": "(items: ITreeItem[]) => ITreeItem[]",
337
+ "references": {
338
+ "Array": {
339
+ "location": "global"
340
+ },
341
+ "ITreeItem": {
342
+ "location": "import",
343
+ "path": "../ez-tree/interfaces/ITreeItem"
344
+ }
337
345
  }
346
+ },
347
+ "required": false,
348
+ "optional": false,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": "Define um resolvedor de n\u00EDvel no modo `multiLevel`."
338
352
  }
339
353
  },
340
- "required": false,
341
- "optional": false,
342
- "docs": {
343
- "tags": [],
344
- "text": "Define um resolvedor de n\u00EDvel no modo `multiLevel`."
345
- }
346
- },
347
- "contentBuilder": {
348
- "type": "unknown",
349
- "mutable": false,
350
- "complexType": {
351
- "original": "(selectedTab: string, fields: Array<IFormViewField>) => HTMLElement | string",
352
- "resolved": "(selectedTab: string, fields: IFormViewField[]) => string | HTMLElement",
353
- "references": {
354
- "Array": {
355
- "location": "global"
356
- },
357
- "IFormViewField": {
358
- "location": "import",
359
- "path": "../ez-form-view/interfaces"
360
- },
361
- "HTMLElement": {
362
- "location": "global"
354
+ "contentBuilder": {
355
+ "type": "unknown",
356
+ "mutable": false,
357
+ "complexType": {
358
+ "original": "(selectedTab: string, fields: Array<IFormViewField>) => HTMLElement | string",
359
+ "resolved": "(selectedTab: string, fields: IFormViewField[]) => string | HTMLElement",
360
+ "references": {
361
+ "Array": {
362
+ "location": "global"
363
+ },
364
+ "IFormViewField": {
365
+ "location": "import",
366
+ "path": "../ez-form-view/interfaces"
367
+ },
368
+ "HTMLElement": {
369
+ "location": "global"
370
+ }
363
371
  }
372
+ },
373
+ "required": false,
374
+ "optional": false,
375
+ "docs": {
376
+ "tags": [],
377
+ "text": "Define um construtor. Isso permite personalizar o conte\u00FAdo do formul\u00E1rio"
364
378
  }
365
- },
366
- "required": false,
367
- "optional": false,
368
- "docs": {
369
- "tags": [],
370
- "text": "Define um construtor. Isso permite personalizar o conte\u00FAdo do formul\u00E1rio"
371
379
  }
372
- }
373
- }; }
374
- static get events() { return [{
375
- "method": "ezReady",
376
- "name": "ezReady",
377
- "bubbles": true,
378
- "cancelable": true,
379
- "composed": true,
380
- "docs": {
381
- "tags": [],
382
- "text": "Evento disparado quando o formul\u00E1rio est\u00E1 dispon\u00EDvel na DOM."
383
- },
384
- "complexType": {
385
- "original": "void",
386
- "resolved": "void",
387
- "references": {}
388
- }
389
- }]; }
390
- static get methods() { return {
391
- "validate": {
392
- "complexType": {
393
- "signature": "() => Promise<void>",
394
- "parameters": [],
395
- "references": {
396
- "Promise": {
397
- "location": "global"
398
- },
399
- "Array": {
400
- "location": "global"
401
- },
402
- "Record": {
403
- "location": "import",
404
- "path": "@sankhyalabs/core"
380
+ };
381
+ }
382
+ static get events() {
383
+ return [{
384
+ "method": "ezReady",
385
+ "name": "ezReady",
386
+ "bubbles": true,
387
+ "cancelable": true,
388
+ "composed": true,
389
+ "docs": {
390
+ "tags": [],
391
+ "text": "Evento disparado quando o formul\u00E1rio est\u00E1 dispon\u00EDvel na DOM."
392
+ },
393
+ "complexType": {
394
+ "original": "void",
395
+ "resolved": "void",
396
+ "references": {}
397
+ }
398
+ }];
399
+ }
400
+ static get methods() {
401
+ return {
402
+ "validate": {
403
+ "complexType": {
404
+ "signature": "() => Promise<void>",
405
+ "parameters": [],
406
+ "references": {
407
+ "Promise": {
408
+ "location": "global"
409
+ },
410
+ "Array": {
411
+ "location": "global"
412
+ },
413
+ "Record": {
414
+ "location": "import",
415
+ "path": "@sankhyalabs/core"
416
+ },
417
+ "IValidationResult": {
418
+ "location": "import",
419
+ "path": "./interfaces"
420
+ }
405
421
  },
406
- "IValidationResult": {
407
- "location": "import",
408
- "path": "./interfaces"
409
- }
422
+ "return": "Promise<void>"
410
423
  },
411
- "return": "Promise<void>"
412
- },
413
- "docs": {
414
- "text": "Realiza valida\u00E7\u00E3o no conte\u00FAdo de todos os campos.",
415
- "tags": []
424
+ "docs": {
425
+ "text": "Realiza valida\u00E7\u00E3o no conte\u00FAdo de todos os campos.",
426
+ "tags": []
427
+ }
416
428
  }
417
- }
418
- }; }
429
+ };
430
+ }
419
431
  static get elementRef() { return "_element"; }
420
- static get watchers() { return [{
421
- "propName": "config",
422
- "methodName": "observeConfig"
423
- }]; }
432
+ static get watchers() {
433
+ return [{
434
+ "propName": "config",
435
+ "methodName": "observeConfig"
436
+ }];
437
+ }
424
438
  }
@@ -1,7 +1,10 @@
1
- import { Component, Element, Host, Prop, h } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  import { fieldBuilder } from './fieldbuilder/FieldBuilder';
3
3
  import { ElementIDUtils } from '@sankhyalabs/core';
4
4
  export class EzFormView {
5
+ constructor() {
6
+ this.fields = undefined;
7
+ }
5
8
  groupFields(fields) {
6
9
  const result = new Map();
7
10
  fields.forEach(item => {
@@ -36,36 +39,42 @@ export class EzFormView {
36
39
  }
37
40
  static get is() { return "ez-form-view"; }
38
41
  static get encapsulation() { return "scoped"; }
39
- static get originalStyleUrls() { return {
40
- "$": ["ez-form-view.css"]
41
- }; }
42
- static get styleUrls() { return {
43
- "$": ["ez-form-view.css"]
44
- }; }
45
- static get properties() { return {
46
- "fields": {
47
- "type": "unknown",
48
- "mutable": false,
49
- "complexType": {
50
- "original": "Array<IFormViewField>",
51
- "resolved": "IFormViewField[]",
52
- "references": {
53
- "Array": {
54
- "location": "global"
55
- },
56
- "IFormViewField": {
57
- "location": "import",
58
- "path": "./interfaces/IFormViewField"
42
+ static get originalStyleUrls() {
43
+ return {
44
+ "$": ["ez-form-view.css"]
45
+ };
46
+ }
47
+ static get styleUrls() {
48
+ return {
49
+ "$": ["ez-form-view.css"]
50
+ };
51
+ }
52
+ static get properties() {
53
+ return {
54
+ "fields": {
55
+ "type": "unknown",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "Array<IFormViewField>",
59
+ "resolved": "IFormViewField[]",
60
+ "references": {
61
+ "Array": {
62
+ "location": "global"
63
+ },
64
+ "IFormViewField": {
65
+ "location": "import",
66
+ "path": "./interfaces/IFormViewField"
67
+ }
59
68
  }
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "Define a lista de metadados usada para criar os campos de user interface."
60
75
  }
61
- },
62
- "required": false,
63
- "optional": false,
64
- "docs": {
65
- "tags": [],
66
- "text": "Define a lista de metadados usada para criar os campos de user interface."
67
76
  }
68
- }
69
- }; }
77
+ };
78
+ }
70
79
  static get elementRef() { return "_element"; }
71
80
  }
@@ -7,6 +7,5 @@ export const buildCheckBox = (field) => {
7
7
  return buildField(field.name, field.label, field.readOnly, false);
8
8
  };
9
9
  function buildField(fieldName, fieldLabel, readOnly, switchMode = false) {
10
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
11
- h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, key: fieldName })));
10
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" }, h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, key: fieldName })));
12
11
  }
@@ -9,6 +9,5 @@ export const buildComboBox = ({ name, label, readOnly, required, props }) => {
9
9
  else {
10
10
  options = prop;
11
11
  }
12
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
13
- h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
12
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
14
13
  };
@@ -1,13 +1,10 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildDate = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
- h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
4
  };
6
5
  export const buildTime = ({ name, label, readOnly }) => {
7
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
8
- h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
6
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
9
7
  };
10
8
  export const buildDateTime = ({ name, label, readOnly }) => {
11
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
12
- h("ez-date-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
9
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-date-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
13
10
  };
@@ -1,5 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildFile = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
4
- h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" }, h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
4
  };
@@ -8,6 +8,5 @@ export const buildInteger = ({ name, label, readOnly }) => {
8
8
  return buildNumeric(name, label, readOnly, 0, 0);
9
9
  };
10
10
  function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
11
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
12
- h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
11
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
13
12
  }
@@ -1,5 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildSearch = ({ name, label, readOnly, required }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
- h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextArea = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
4
- h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name }, h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextInput = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
- h("ez-text-input", { label: label, "data-field-name": name, key: name, enabled: !readOnly })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" }, h("ez-text-input", { label: label, "data-field-name": name, key: name, enabled: !readOnly })));
5
4
  };
@@ -66,4 +66,4 @@ export default class Server {
66
66
 
67
67
  return currentLastRow <= request.endRow ? currentLastRow : -1;
68
68
  }
69
- }*/
69
+ }*/