@sankhyalabs/ezui 5.20.4 → 5.21.0-dev.10

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 (271) hide show
  1. package/README.md +4 -5
  2. package/dist/cjs/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +123 -49
  5. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-button.cjs.entry.js +3 -3
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_3.cjs.entry.js +183 -0
  12. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  13. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +20 -163
  16. package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-dropdown.cjs.entry.js +10 -4
  20. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-form-view.cjs.entry.js +48 -16
  22. package/dist/cjs/ez-form.cjs.entry.js +29 -3
  23. package/dist/cjs/ez-grid.cjs.entry.js +216 -72
  24. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  26. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-modal-container.cjs.entry.js +19 -3
  29. package/dist/cjs/ez-modal.cjs.entry.js +8 -9
  30. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-number-input.cjs.entry.js +10 -3
  32. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-popup.cjs.entry.js +21 -8
  34. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-scroller_3.cjs.entry.js +19 -5
  36. package/dist/cjs/ez-search.cjs.entry.js +625 -33
  37. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-split-button.cjs.entry.js +166 -0
  39. package/dist/cjs/ez-split-item.cjs.entry.js +21 -3
  40. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -14
  41. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
  46. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/ezui.cjs.js +2 -2
  50. package/dist/cjs/filter-column.cjs.entry.js +17 -6
  51. package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +12 -10
  52. package/dist/cjs/loader.cjs.js +2 -2
  53. package/dist/collection/collection-manifest.json +4 -3
  54. package/dist/collection/components/ez-alert-list/ez-alert-list.css +16 -2
  55. package/dist/collection/components/ez-alert-list/ez-alert-list.js +129 -48
  56. package/dist/collection/components/ez-button/ez-button.css +7 -0
  57. package/dist/collection/components/ez-button/ez-button.js +1 -1
  58. package/dist/collection/components/ez-card-item/ez-card-item.css +52 -3
  59. package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
  60. package/dist/collection/components/ez-check/ez-check.css +1 -0
  61. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
  62. package/dist/collection/components/ez-combo-box/ez-combo-box.js +19 -179
  63. package/dist/collection/components/ez-dropdown/ez-dropdown.js +32 -3
  64. package/dist/collection/components/ez-form/ez-form.js +76 -2
  65. package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
  66. package/dist/collection/components/ez-form-view/ez-form-view.js +60 -5
  67. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  68. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  69. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
  70. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
  71. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  72. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  73. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
  74. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +26 -13
  75. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -4
  76. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +21 -0
  77. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
  78. package/dist/collection/components/ez-grid/ez-grid.css +25 -1
  79. package/dist/collection/components/ez-grid/ez-grid.js +228 -35
  80. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js +1 -0
  81. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  82. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
  83. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +3 -11
  84. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +24 -0
  85. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js +19 -0
  86. package/dist/collection/components/ez-icon/ez-icon.css +119 -117
  87. package/dist/collection/components/ez-modal/ez-modal.js +22 -9
  88. package/dist/collection/components/ez-modal-container/ez-modal-container.css +4 -0
  89. package/dist/collection/components/ez-modal-container/ez-modal-container.js +26 -1
  90. package/dist/collection/components/ez-number-input/ez-number-input.js +11 -0
  91. package/dist/collection/components/ez-popup/ez-popup.css +2 -5
  92. package/dist/collection/components/ez-popup/ez-popup.js +35 -8
  93. package/dist/collection/components/ez-search/ez-search.css +331 -0
  94. package/dist/collection/components/ez-search/ez-search.js +701 -55
  95. package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
  96. package/dist/collection/components/ez-split-button/ez-split-button.js +455 -0
  97. package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
  98. package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -7
  99. package/dist/collection/components/ez-split-panel/ez-split-panel.js +103 -15
  100. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +59 -12
  101. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +82 -2
  102. package/dist/collection/components/ez-tree/ez-tree.css +26 -0
  103. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js +1 -0
  104. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +15 -2
  105. package/dist/collection/utils/CSSVarsUtils.js +13 -0
  106. package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
  107. package/dist/custom-elements/index.d.ts +6 -0
  108. package/dist/custom-elements/index.js +1427 -397
  109. package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
  110. package/dist/esm/ez-actions-button.entry.js +2 -2
  111. package/dist/esm/ez-alert-list.entry.js +123 -49
  112. package/dist/esm/ez-alert.entry.js +1 -1
  113. package/dist/esm/ez-application.entry.js +1 -1
  114. package/dist/esm/ez-badge.entry.js +1 -1
  115. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  116. package/dist/esm/ez-button.entry.js +3 -3
  117. package/dist/esm/ez-calendar.entry.js +1 -1
  118. package/dist/esm/ez-card-item_3.entry.js +177 -0
  119. package/dist/esm/ez-check.entry.js +2 -2
  120. package/dist/esm/ez-chip.entry.js +1 -1
  121. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  122. package/dist/esm/ez-combo-box.entry.js +21 -164
  123. package/dist/esm/ez-date-input.entry.js +2 -2
  124. package/dist/esm/ez-date-time-input.entry.js +2 -2
  125. package/dist/esm/ez-dialog.entry.js +1 -1
  126. package/dist/esm/ez-dropdown.entry.js +10 -4
  127. package/dist/esm/ez-file-item.entry.js +1 -1
  128. package/dist/esm/ez-form-view.entry.js +48 -16
  129. package/dist/esm/ez-form.entry.js +29 -3
  130. package/dist/esm/ez-grid.entry.js +217 -73
  131. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  132. package/dist/esm/ez-icon.entry.js +2 -2
  133. package/dist/esm/ez-list.entry.js +1 -1
  134. package/dist/esm/ez-loading-bar.entry.js +1 -1
  135. package/dist/esm/ez-modal-container.entry.js +19 -3
  136. package/dist/esm/ez-modal.entry.js +9 -10
  137. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  138. package/dist/esm/ez-number-input.entry.js +10 -3
  139. package/dist/esm/ez-popover.entry.js +1 -1
  140. package/dist/esm/ez-popup.entry.js +22 -9
  141. package/dist/esm/ez-radio-button.entry.js +1 -1
  142. package/dist/esm/ez-scroller_3.entry.js +19 -5
  143. package/dist/esm/ez-search.entry.js +626 -34
  144. package/dist/esm/ez-skeleton.entry.js +1 -1
  145. package/dist/esm/ez-split-button.entry.js +162 -0
  146. package/dist/esm/ez-split-item.entry.js +21 -3
  147. package/dist/esm/ez-split-panel.entry.js +68 -14
  148. package/dist/esm/ez-tabselector.entry.js +1 -1
  149. package/dist/esm/ez-text-area.entry.js +1 -1
  150. package/dist/esm/ez-text-edit.entry.js +1 -1
  151. package/dist/esm/ez-text-input.entry.js +1 -1
  152. package/dist/esm/ez-time-input.entry.js +2 -2
  153. package/dist/esm/ez-toast.entry.js +1 -1
  154. package/dist/esm/ez-upload.entry.js +1 -1
  155. package/dist/esm/ez-view-stack.entry.js +1 -1
  156. package/dist/esm/ezui.js +3 -3
  157. package/dist/esm/filter-column.entry.js +17 -6
  158. package/dist/esm/{index-296b8458.js → index-baa5e267.js} +12 -10
  159. package/dist/esm/loader.js +3 -3
  160. package/dist/ezui/ezui.esm.js +1 -1
  161. package/dist/ezui/{p-5cef0264.entry.js → p-0306dff7.entry.js} +1 -1
  162. package/dist/ezui/{p-871c1a07.entry.js → p-0447d17c.entry.js} +1 -1
  163. package/dist/ezui/p-072e6347.entry.js +1 -0
  164. package/dist/ezui/p-09de35a2.entry.js +1 -0
  165. package/dist/ezui/p-13d2fe2d.entry.js +1 -0
  166. package/dist/ezui/{p-f4208819.entry.js → p-17be134a.entry.js} +1 -1
  167. package/dist/ezui/{p-545b5b2f.entry.js → p-1db718ab.entry.js} +2 -2
  168. package/dist/ezui/{p-cd19a6f8.entry.js → p-1e7a8633.entry.js} +1 -1
  169. package/dist/ezui/{p-60ba28ea.entry.js → p-1f50fa05.entry.js} +1 -1
  170. package/dist/ezui/{p-245a44ed.entry.js → p-20ec22c0.entry.js} +1 -1
  171. package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
  172. package/dist/ezui/p-30775e7f.entry.js +1 -0
  173. package/dist/ezui/{p-8252d9b5.entry.js → p-3a21618b.entry.js} +1 -1
  174. package/dist/ezui/p-3faa2b46.entry.js +1 -0
  175. package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
  176. package/dist/ezui/{p-7319c253.entry.js → p-49456b34.entry.js} +1 -1
  177. package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
  178. package/dist/ezui/{p-52dd8b4c.entry.js → p-5bd5e68f.entry.js} +1 -1
  179. package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
  180. package/dist/ezui/p-637f69f2.entry.js +1 -0
  181. package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
  182. package/dist/ezui/{p-f55d75e7.entry.js → p-6e429cff.entry.js} +1 -1
  183. package/dist/ezui/{p-0b902469.entry.js → p-77a4bd35.entry.js} +1 -1
  184. package/dist/ezui/{p-81cd05c8.entry.js → p-784fe207.entry.js} +1 -1
  185. package/dist/ezui/p-7af81663.entry.js +1 -0
  186. package/dist/ezui/p-7bc07c31.entry.js +1 -0
  187. package/dist/ezui/p-7c770f14.entry.js +1 -0
  188. package/dist/ezui/p-836cdfdf.entry.js +1 -0
  189. package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
  190. package/dist/ezui/{p-d3b5228e.entry.js → p-8defa6d3.entry.js} +1 -1
  191. package/dist/ezui/{p-fbca293f.entry.js → p-8df1ca33.entry.js} +1 -1
  192. package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
  193. package/dist/ezui/p-91f626d3.entry.js +1 -0
  194. package/dist/ezui/{p-3e7cc8a4.entry.js → p-99ead599.entry.js} +1 -1
  195. package/dist/ezui/p-99f46950.entry.js +1 -0
  196. package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
  197. package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
  198. package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
  199. package/dist/ezui/{p-d20ed286.entry.js → p-af2ecb1b.entry.js} +1 -1
  200. package/dist/ezui/{p-e8f88361.entry.js → p-af95cd16.entry.js} +1 -1
  201. package/dist/ezui/p-bae3d0aa.entry.js +1 -0
  202. package/dist/ezui/{p-fb21d72f.entry.js → p-bae4e180.entry.js} +1 -1
  203. package/dist/ezui/p-baf80b13.entry.js +1 -0
  204. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  205. package/dist/ezui/p-bf79aaa1.entry.js +1 -0
  206. package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
  207. package/dist/ezui/p-d9401ea0.entry.js +1 -0
  208. package/dist/ezui/{p-028f264f.entry.js → p-e85c48d7.entry.js} +1 -1
  209. package/dist/ezui/p-f3c526cc.entry.js +1 -0
  210. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +38 -4
  211. package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
  212. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -15
  213. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -0
  214. package/dist/types/components/ez-form/ez-form.d.ts +12 -0
  215. package/dist/types/components/ez-form-view/ez-form-view.d.ts +7 -0
  216. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +10 -0
  217. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
  218. package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +8 -0
  219. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  220. package/dist/types/components/ez-grid/ez-grid.d.ts +35 -3
  221. package/dist/types/components/ez-grid/interfaces/ICustomFormatter.d.ts +5 -0
  222. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  223. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
  224. package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +4 -0
  225. package/dist/types/components/ez-grid/test/resources/gridDataUnit.d.ts +2 -0
  226. package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +0 -1
  227. package/dist/types/components/ez-modal/ez-modal.d.ts +9 -1
  228. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  229. package/dist/types/components/ez-number-input/ez-number-input.d.ts +1 -0
  230. package/dist/types/components/ez-popup/ez-popup.d.ts +9 -3
  231. package/dist/types/components/ez-search/ez-search.d.ts +101 -10
  232. package/dist/types/components/ez-split-button/ez-split-button.d.ts +92 -0
  233. package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
  234. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +29 -0
  235. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +27 -0
  236. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +3 -1
  237. package/dist/types/components/ez-tree/interfaces/ITreeItemBadge.d.ts +6 -0
  238. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +0 -1
  239. package/dist/types/components.d.ts +225 -16
  240. package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
  241. package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
  242. package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
  243. package/dist/types/utils/interfaces/IAction.d.ts +1 -1
  244. package/package.json +13 -5
  245. package/react/components.d.ts +1 -0
  246. package/react/components.js +1 -0
  247. package/react/components.js.map +1 -1
  248. package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
  249. package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
  250. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
  251. package/dist/esm/ez-card-item.entry.js +0 -48
  252. package/dist/esm/ez-filter-input_2.entry.js +0 -132
  253. package/dist/ezui/p-12526044.entry.js +0 -1
  254. package/dist/ezui/p-32b4163f.entry.js +0 -1
  255. package/dist/ezui/p-47afb974.entry.js +0 -1
  256. package/dist/ezui/p-59bcb27c.entry.js +0 -1
  257. package/dist/ezui/p-62304715.entry.js +0 -1
  258. package/dist/ezui/p-74049254.entry.js +0 -1
  259. package/dist/ezui/p-76d16a24.entry.js +0 -1
  260. package/dist/ezui/p-7fd54841.entry.js +0 -1
  261. package/dist/ezui/p-87e85160.entry.js +0 -1
  262. package/dist/ezui/p-95426f93.entry.js +0 -1
  263. package/dist/ezui/p-99692afa.entry.js +0 -1
  264. package/dist/ezui/p-a01068e1.entry.js +0 -1
  265. package/dist/ezui/p-a42fe2ce.entry.js +0 -1
  266. package/dist/ezui/p-af285e68.entry.js +0 -1
  267. package/dist/ezui/p-b6867f19.entry.js +0 -1
  268. package/dist/ezui/p-d51aa09b.entry.js +0 -1
  269. package/dist/ezui/p-d81917fd.entry.js +0 -1
  270. package/dist/ezui/p-f8653522.entry.js +0 -1
  271. package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
@@ -3,6 +3,7 @@ import { h, Host } from '@stencil/core';
3
3
  export class EzCardItem {
4
4
  constructor() {
5
5
  this.item = undefined;
6
+ this.enableKey = true;
6
7
  }
7
8
  componentWillRender() {
8
9
  this.createDetailList();
@@ -30,11 +31,11 @@ export class EzCardItem {
30
31
  }
31
32
  render() {
32
33
  return (h(Host, null, this.item &&
33
- h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("label", { class: "card-item__title" }, h("span", { class: "card-item__key", innerHTML: this.item.key }), h("span", { innerHTML: this.item.title })), h("div", { class: "card-item__details" }, h("div", { class: "card-item__details-left" }, this._details.detailsLeft.map(detail => {
34
+ h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("div", { class: "ez-row card-item__content" }, h("div", { class: "ez-col ez-col--sd-11 card-item__details" }, h("label", { class: "card-item__title" }, this.enableKey && (h("span", { class: "card-item__key", innerHTML: this.item.key })), h("span", { innerHTML: this.item.title })), h("div", { class: "card-item__details-container" }, h("div", { class: "card-item__details-container__left" }, this._details.detailsLeft.map(detail => {
34
35
  return this.buildDetailContent(detail);
35
- })), h("div", { class: "card-item__details-right" }, this._details.detailsRight.map(detail => {
36
+ })), h("div", { class: "card-item__details-container__right" }, this._details.detailsRight.map(detail => {
36
37
  return this.buildDetailContent(detail);
37
- }))))));
38
+ })))), h("div", { class: "ez-col ez-col--sd-1 card-item__details-slot" }, h("slot", { name: "rightSlot" }))))));
38
39
  }
39
40
  static get is() { return "ez-card-item"; }
40
41
  static get encapsulation() { return "shadow"; }
@@ -68,6 +69,24 @@ export class EzCardItem {
68
69
  "tags": [],
69
70
  "text": "Determina o conte\u00FAdo do card. Deve conter um objeto no formato:\n`{title: string, key: string, details: any}`."
70
71
  }
72
+ },
73
+ "enableKey": {
74
+ "type": "boolean",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "boolean",
78
+ "resolved": "boolean",
79
+ "references": {}
80
+ },
81
+ "required": false,
82
+ "optional": false,
83
+ "docs": {
84
+ "tags": [],
85
+ "text": "Determina se a chave do item deve ser exibida."
86
+ },
87
+ "attribute": "enable-key",
88
+ "reflect": false,
89
+ "defaultValue": "true"
71
90
  }
72
91
  };
73
92
  }
@@ -112,6 +112,7 @@
112
112
  display: flex;
113
113
  align-items: center;
114
114
  margin: 0;
115
+ max-width: 100%;
115
116
  }
116
117
 
117
118
  /******** REGULAR MODE ********/
@@ -207,6 +207,7 @@ ez-icon {
207
207
  /*private*/
208
208
  display: flex;
209
209
  flex-wrap: wrap;
210
+
210
211
  width: 100%;
211
212
  height: 0px;
212
213
  max-height: 0px;
@@ -1,7 +1,6 @@
1
- import { ElementIDUtils, FloatingManager, ObjectUtils, StringUtils } from "@sankhyalabs/core";
1
+ import { ElementIDUtils, FloatingManager, ObjectUtils } from "@sankhyalabs/core";
2
2
  import { h, Host } from "@stencil/core";
3
- import { ApplicationUtils, CSSVarsUtils } from "../../utils";
4
- import { REQUIRED_INFO } from "../../utils/constants";
3
+ import { CSSVarsUtils } from "../../utils";
5
4
  export class EzComboBox {
6
5
  constructor() {
7
6
  this._changeDeboucingTimeout = null;
@@ -9,7 +8,6 @@ export class EzComboBox {
9
8
  this._maxWidthValue = 0;
10
9
  this._tabPressed = false;
11
10
  this._textEmptyList = "Nenhum resultado encontrado";
12
- this._textEmptySearch = "Nenhum resultado de {0} encontrado";
13
11
  this._lookupMode = false;
14
12
  this._preSelection = undefined;
15
13
  this._visibleOptions = undefined;
@@ -22,7 +20,6 @@ export class EzComboBox {
22
20
  this.enabled = true;
23
21
  this.options = undefined;
24
22
  this.errorMessage = undefined;
25
- this.searchMode = undefined;
26
23
  this.showSelectedValue = false;
27
24
  this.showOptionValue = false;
28
25
  this.suppressSearch = false;
@@ -46,7 +43,7 @@ export class EzComboBox {
46
43
  observeValue(newValue, oldValue) {
47
44
  if (this._textInput && newValue != oldValue) {
48
45
  try {
49
- if (this.searchMode && typeof newValue === "string") {
46
+ if (typeof newValue === "string") {
50
47
  this.setInputValue();
51
48
  return;
52
49
  }
@@ -71,7 +68,7 @@ export class EzComboBox {
71
68
  }
72
69
  }
73
70
  observeOptions(newOptions, oldOptions) {
74
- if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
71
+ if (ObjectUtils.equals(newOptions, oldOptions))
75
72
  return;
76
73
  this.loadOptions(SearchMode.PRELOAD);
77
74
  }
@@ -209,18 +206,19 @@ export class EzComboBox {
209
206
  }
210
207
  updateVisibleOptions() {
211
208
  let opts = this._source || [];
212
- if (!this.searchMode && this._criteria) {
209
+ if (this._criteria) {
213
210
  const upperCriteria = this._criteria.toUpperCase();
214
211
  opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
215
212
  }
216
- if (this.suppressEmptyOption) {
217
- this._visibleOptions = opts;
218
- }
219
- else {
220
- this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
213
+ if (this.hasToAddEmptyoption(opts)) {
214
+ opts = [{ value: undefined, label: "" }].concat(opts);
221
215
  }
216
+ this._visibleOptions = opts;
222
217
  this._maxWidthValue = this.getMaxWidthValue();
223
218
  }
219
+ hasToAddEmptyoption(opts) {
220
+ return !this.suppressEmptyOption && !opts.filter(opt => !opt.value).length;
221
+ }
224
222
  getMaxWidthValue() {
225
223
  var _a;
226
224
  if (this.showOptionValue) {
@@ -284,7 +282,7 @@ export class EzComboBox {
284
282
  return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
285
283
  }
286
284
  nextOption() {
287
- if (this.searchMode && !this.isOptionsVisible()) {
285
+ if (!this.isOptionsVisible()) {
288
286
  return;
289
287
  }
290
288
  this.showOptions();
@@ -307,9 +305,6 @@ export class EzComboBox {
307
305
  this.selectOption(this._visibleOptions[this._preSelection]);
308
306
  this._preSelection = undefined;
309
307
  }
310
- else {
311
- this.controlListWithOnlyOne();
312
- }
313
308
  }
314
309
  updateSource(source) {
315
310
  this._startLoading = false;
@@ -328,7 +323,6 @@ export class EzComboBox {
328
323
  this.updateVisibleOptions();
329
324
  if (this._tabPressed) {
330
325
  this._tabPressed = false;
331
- this.controlEmptySearch();
332
326
  }
333
327
  }
334
328
  else {
@@ -336,10 +330,6 @@ export class EzComboBox {
336
330
  }
337
331
  }
338
332
  }
339
- clearSource() {
340
- this._source = [];
341
- this.updateVisibleOptions();
342
- }
343
333
  selectOption(newOption) {
344
334
  var _a, _b;
345
335
  const currentValue = this.getSelectedOption(this.value);
@@ -351,10 +341,6 @@ export class EzComboBox {
351
341
  else {
352
342
  this.resetOptions();
353
343
  }
354
- if (this.searchMode) {
355
- this._visibleOptions = [];
356
- this.clearSource();
357
- }
358
344
  }
359
345
  loadOptions(mode, argument = "") {
360
346
  this._criteria = argument;
@@ -390,93 +376,6 @@ export class EzComboBox {
390
376
  clearSearch() {
391
377
  this.value = null;
392
378
  }
393
- controlListWithOnlyOne() {
394
- var _a;
395
- if (this.searchMode) {
396
- const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
397
- if ((source === null || source === void 0 ? void 0 : source.length) === 1) {
398
- this.selectOption(source[0]);
399
- }
400
- }
401
- }
402
- controlEmptySearch() {
403
- var _a;
404
- if (this.searchMode) {
405
- if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
406
- this.clearSearch();
407
- ApplicationUtils.info(this._textEmptyList);
408
- }
409
- else {
410
- this.controlListWithOnlyOne();
411
- }
412
- }
413
- }
414
- validateDescriptionValue() {
415
- if (!this.searchMode || StringUtils.isEmpty(this.value)) {
416
- return;
417
- }
418
- let value = this.value;
419
- if (typeof value === "object") {
420
- return;
421
- }
422
- if (StringUtils.isEmpty(value)) {
423
- return;
424
- }
425
- this.loadDescriptionValue(value);
426
- }
427
- async loadDescriptionValue(argument) {
428
- var _a, _b;
429
- if (argument == undefined) {
430
- return;
431
- }
432
- if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
433
- this.loadOptionValue(argument);
434
- return;
435
- }
436
- const searchArgument = {
437
- mode: SearchMode.PREDICTIVE,
438
- argument
439
- };
440
- const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
441
- if (source == undefined) {
442
- return;
443
- }
444
- if (source instanceof Promise) {
445
- source.then((result) => {
446
- this.setDescriptionValue(result);
447
- });
448
- }
449
- else {
450
- this.setDescriptionValue(source);
451
- }
452
- }
453
- setDescriptionValue(source) {
454
- const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
455
- if (value == undefined || !Object.keys(value).length) {
456
- this.showNoResultMessage();
457
- return;
458
- }
459
- this._lookupMode = true;
460
- this.value = value;
461
- }
462
- loadOptionValue(argument) {
463
- var _a;
464
- const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
465
- if (source != undefined) {
466
- this.selectOption(source);
467
- }
468
- else {
469
- this.showNoResultMessage();
470
- }
471
- }
472
- async showNoResultMessage() {
473
- this.clearSearch();
474
- ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
475
- }
476
- getFieldLabel() {
477
- var _a;
478
- return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
479
- }
480
379
  resetOptions() {
481
380
  this.hideOptions();
482
381
  this._criteria = undefined;
@@ -502,12 +401,7 @@ export class EzComboBox {
502
401
  });
503
402
  }
504
403
  }
505
- if (this.searchMode) {
506
- this.updateSource([]);
507
- }
508
- else {
509
- this.loadOptions(SearchMode.PRELOAD);
510
- }
404
+ this.loadOptions(SearchMode.PRELOAD);
511
405
  }
512
406
  componentDidRender() {
513
407
  var _a;
@@ -517,7 +411,6 @@ export class EzComboBox {
517
411
  (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
518
412
  ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
519
413
  });
520
- this.validateDescriptionValue();
521
414
  }
522
415
  componentDidLoad() {
523
416
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
@@ -537,13 +430,7 @@ export class EzComboBox {
537
430
  // Event handlers
538
431
  //---------------------------------------------
539
432
  handlerIconClick() {
540
- this.searchMode ? this.loadOptions(SearchMode.ADVANCED) : this.showOptions();
541
- }
542
- buildNumberArgument(argument) {
543
- if (this.isTextSearch) {
544
- return NaN;
545
- }
546
- return Number(argument || undefined);
433
+ this.showOptions();
547
434
  }
548
435
  onTextInputChangeHandler(event) {
549
436
  var _a;
@@ -560,36 +447,12 @@ export class EzComboBox {
560
447
  }
561
448
  this._criteria = argument;
562
449
  if (argument) {
563
- if (this.searchMode) {
564
- this._showLoading = false;
565
- this.clearSource();
566
- const enoughChars = argument.length >= this.limitCharsToSearch;
567
- const argumentNumber = this.buildNumberArgument(argument);
568
- if (enoughChars || !isNaN(argumentNumber)) {
569
- this._showLoading = true;
570
- this._changeDeboucingTimeout = window.setTimeout(() => {
571
- this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
572
- }, this._deboucingTime);
573
- this.showOptions();
574
- }
575
- else {
576
- this.hideOptions();
577
- }
578
- }
579
- else {
580
- this.updateVisibleOptions();
581
- this.showOptions();
582
- }
450
+ this.updateVisibleOptions();
451
+ this.showOptions();
583
452
  }
584
453
  else {
585
454
  this.hideOptions();
586
- if (this.searchMode) {
587
- this._showLoading = false;
588
- this.clearSource();
589
- }
590
- else {
591
- this.updateVisibleOptions();
592
- }
455
+ this.updateVisibleOptions();
593
456
  }
594
457
  }
595
458
  clearDeboucingTimeout() {
@@ -599,9 +462,7 @@ export class EzComboBox {
599
462
  }
600
463
  }
601
464
  onTextInputClickHandler() {
602
- if (!this.searchMode) {
603
- this.showOptions();
604
- }
465
+ this.showOptions();
605
466
  }
606
467
  keyDownHandler(event) {
607
468
  this._tabPressed = false;
@@ -633,7 +494,6 @@ export class EzComboBox {
633
494
  break;
634
495
  case "Tab":
635
496
  this._tabPressed = true;
636
- this.controlListWithOnlyOne();
637
497
  break;
638
498
  }
639
499
  //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
@@ -650,11 +510,8 @@ export class EzComboBox {
650
510
  return !this._showLoading && this._visibleOptions.length > 0;
651
511
  }
652
512
  render() {
653
- var _a;
654
513
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
655
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })), this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
656
- ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
657
- : undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
514
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
658
515
  && this._visibleOptions.length === 0
659
516
  && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
660
517
  && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
@@ -788,23 +645,6 @@ export class EzComboBox {
788
645
  "attribute": "error-message",
789
646
  "reflect": true
790
647
  },
791
- "searchMode": {
792
- "type": "boolean",
793
- "mutable": false,
794
- "complexType": {
795
- "original": "boolean",
796
- "resolved": "boolean",
797
- "references": {}
798
- },
799
- "required": false,
800
- "optional": false,
801
- "docs": {
802
- "tags": [],
803
- "text": "Se true ativa o modo pesquisa do ez-combo-box."
804
- },
805
- "attribute": "search-mode",
806
- "reflect": false
807
- },
808
648
  "showSelectedValue": {
809
649
  "type": "boolean",
810
650
  "mutable": false,
@@ -16,6 +16,11 @@ export class EzDropdown {
16
16
  this.value = undefined;
17
17
  this.itemBuilder = undefined;
18
18
  }
19
+ handleClickOutside(event) {
20
+ if (!this._element.contains(event.target)) {
21
+ this.ezOutsideClick.emit();
22
+ }
23
+ }
19
24
  //---------------------------------------------
20
25
  // Private methods
21
26
  //---------------------------------------------
@@ -94,13 +99,13 @@ export class EzDropdown {
94
99
  this._itemList[item.id] = {};
95
100
  }
96
101
  }
97
- getContainerItemBuilder(item, level) {
102
+ getContainerItemBuilder(item, level, isLockedLevels, hasIcon, hasChildren) {
98
103
  if (this.itemBuilder == undefined) {
99
104
  return;
100
105
  }
101
106
  const customContent = this.itemBuilder(item, level);
102
107
  if (customContent == undefined) {
103
- return;
108
+ return this.defaultItemBuilder(item, isLockedLevels, hasIcon, hasChildren);
104
109
  }
105
110
  if (typeof customContent !== "string") {
106
111
  return (h("div", { class: "ez-dropdown__item-builder" }, customContent));
@@ -121,7 +126,7 @@ export class EzDropdown {
121
126
  var _a;
122
127
  return (item.type !== "divider"
123
128
  ? h("div", Object.assign({ ref: (ref) => this._itemList[item.id] = ref, class: "ez-dropdown__item", "data-level": level }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`${item.id}_ezDropdownItem`) }), h("div", { class: "ez-dropdown__item-content", onClick: (evt) => this.onItemClick(evt, item), onMouseOver: (evt) => this.onShowSubmenu(evt, item) }, this.itemBuilder
124
- ? this.getContainerItemBuilder(item, level)
129
+ ? this.getContainerItemBuilder(item, level, isLockedLevels, hasIcon, hasChildren)
125
130
  : this.defaultItemBuilder(item, isLockedLevels, hasIcon, hasChildren)), ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
126
131
  !isLockedLevels &&
127
132
  hasChildren &&
@@ -350,7 +355,31 @@ export class EzDropdown {
350
355
  }
351
356
  }
352
357
  }
358
+ }, {
359
+ "method": "ezOutsideClick",
360
+ "name": "ezOutsideClick",
361
+ "bubbles": true,
362
+ "cancelable": true,
363
+ "composed": true,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": "Emitido quando ocorrer um click fora do componente."
367
+ },
368
+ "complexType": {
369
+ "original": "void",
370
+ "resolved": "void",
371
+ "references": {}
372
+ }
353
373
  }];
354
374
  }
355
375
  static get elementRef() { return "_element"; }
376
+ static get listeners() {
377
+ return [{
378
+ "name": "click",
379
+ "method": "handleClickOutside",
380
+ "target": "document",
381
+ "capture": false,
382
+ "passive": false
383
+ }];
384
+ }
356
385
  }
@@ -11,10 +11,12 @@ export class EzForm {
11
11
  this.processMetadata();
12
12
  }
13
13
  };
14
+ this._fieldsProps = new Map();
14
15
  this.dataUnit = undefined;
15
16
  this.config = undefined;
16
17
  this.recordsValidator = undefined;
17
18
  this.fieldToFocus = undefined;
19
+ this.onlyStaticFields = false;
18
20
  }
19
21
  /**
20
22
  * Realiza validação no conteúdo de todos os campos.
@@ -25,6 +27,15 @@ export class EzForm {
25
27
  observeConfig() {
26
28
  this.processMetadata();
27
29
  }
30
+ /**
31
+ * Altera/adiciona uma propriedade nos metadados do campo.
32
+ */
33
+ async setFieldProp(fieldName, propName, value) {
34
+ const newCustomFieldProps = new Map(this._fieldsProps);
35
+ const currentProps = this._fieldsProps.get(fieldName);
36
+ newCustomFieldProps.set(fieldName, Object.assign(Object.assign({}, currentProps), { [propName]: value }));
37
+ this._fieldsProps = newCustomFieldProps;
38
+ }
28
39
  getDynamicContent() {
29
40
  var _a;
30
41
  const formMD = selectFormMetadata(this._store.getState());
@@ -51,10 +62,10 @@ export class EzForm {
51
62
  }
52
63
  this.ezFormSetFields.emit(fields);
53
64
  const idFormSheet = `${StringUtils.replaceAccentuatedChars(StringUtils.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
54
- return (h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, h("ez-form-view", { class: "ez-row ez-padding-vertical--small", fields: fields })));
65
+ return (h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, h("ez-form-view", { ref: ref => this._formView = ref, class: "ez-row ez-padding-vertical--small", fields: fields })));
55
66
  }
56
67
  processMetadata() {
57
- if (!this.isStatic() && this.dataUnit && this._store) {
68
+ if (this.bindFields() && this.dataUnit && this._store) {
58
69
  const metadata = buildFormMetadata(this.config, this.dataUnit);
59
70
  this._store.dispatch(loadMetadata(metadata));
60
71
  }
@@ -63,6 +74,9 @@ export class EzForm {
63
74
  var _a;
64
75
  return ((_a = this._staticFields) === null || _a === void 0 ? void 0 : _a.length) > 0;
65
76
  }
77
+ bindFields() {
78
+ return !this.isStatic() || this.onlyStaticFields === false;
79
+ }
66
80
  componentWillLoad() {
67
81
  if (this.dataUnit === undefined) {
68
82
  this.dataUnit = new DataUnit("ez-form");
@@ -82,6 +96,7 @@ export class EzForm {
82
96
  this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")), this.dataUnit.dataUnitId, metadata, this.recordsValidator);
83
97
  this.ezReady.emit();
84
98
  this.handleFieldToFocus();
99
+ this.setFieldsProps();
85
100
  }
86
101
  handleFieldToFocus() {
87
102
  var _a;
@@ -98,6 +113,17 @@ export class EzForm {
98
113
  this.ezFormRequestClearFieldToFocus.emit();
99
114
  });
100
115
  }
116
+ setFieldsProps() {
117
+ if (!this._formView) {
118
+ return;
119
+ }
120
+ for (const [fieldName, props] of this._fieldsProps) {
121
+ for (const prop in props) {
122
+ this._formView.setFieldProp(fieldName, prop, props[prop]);
123
+ }
124
+ this._fieldsProps.delete(fieldName);
125
+ }
126
+ }
101
127
  disconnectedCallback() {
102
128
  this.dataUnit.unsubscribe(this.onDataUnitAction);
103
129
  this._dataBinder.onDisconnectedCallback();
@@ -201,9 +227,32 @@ export class EzForm {
201
227
  },
202
228
  "attribute": "field-to-focus",
203
229
  "reflect": false
230
+ },
231
+ "onlyStaticFields": {
232
+ "type": "boolean",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "boolean",
236
+ "resolved": "boolean",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "Define se os campos que ser\u00E3o apresentados s\u00E3o todos est\u00E1ticos. Quando verdadeira, ocorrer\u00E1 no DataBinder o bind dos campos com o DataUnit."
244
+ },
245
+ "attribute": "only-static-fields",
246
+ "reflect": false,
247
+ "defaultValue": "false"
204
248
  }
205
249
  };
206
250
  }
251
+ static get states() {
252
+ return {
253
+ "_fieldsProps": {}
254
+ };
255
+ }
207
256
  static get events() {
208
257
  return [{
209
258
  "method": "ezFormRequestClearFieldToFocus",
@@ -297,6 +346,31 @@ export class EzForm {
297
346
  "text": "Realiza valida\u00E7\u00E3o no conte\u00FAdo de todos os campos.",
298
347
  "tags": []
299
348
  }
349
+ },
350
+ "setFieldProp": {
351
+ "complexType": {
352
+ "signature": "(fieldName: string, propName: string, value: any) => Promise<void>",
353
+ "parameters": [{
354
+ "tags": [],
355
+ "text": ""
356
+ }, {
357
+ "tags": [],
358
+ "text": ""
359
+ }, {
360
+ "tags": [],
361
+ "text": ""
362
+ }],
363
+ "references": {
364
+ "Promise": {
365
+ "location": "global"
366
+ }
367
+ },
368
+ "return": "Promise<void>"
369
+ },
370
+ "docs": {
371
+ "text": "Altera/adiciona uma propriedade nos metadados do campo.",
372
+ "tags": []
373
+ }
300
374
  }
301
375
  };
302
376
  }
@@ -1,6 +1,22 @@
1
1
  :host {
2
2
  display: flex;
3
- flex-direction: row;
4
3
  flex-wrap: wrap;
5
4
  width: 100%;
5
+
6
+ /*@doc Define o tamanho mínimo dos itens do formulário.*/
7
+ --ez-form-view__item--min-width: 220px;
8
+ /*@doc Define o espaçamento entre itens do formulário.*/
9
+ --ez-form-view__item--sapce-width: 5px;
10
+ }
11
+
12
+ .form-view__content{
13
+ display: grid;
14
+ grid-template-columns: repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));
15
+ gap: var(--ez-form-view__item--sapce-width);
16
+ width: 100%;
17
+ }
18
+
19
+ .input-full_width {
20
+ grid-column: 1 / -1;
21
+ width: 100%;
6
22
  }