@sankhyalabs/ezui 5.22.0-dev.9 → 5.22.0-dev.90

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 (379) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-e92314c2.js +445 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +5 -4
  5. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  11. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
  13. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-combo-box.cjs.entry.js +68 -15
  18. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
  19. package/dist/cjs/ez-date-input.cjs.entry.js +14 -5
  20. package/dist/cjs/ez-date-time-input.cjs.entry.js +11 -5
  21. package/dist/cjs/ez-dialog.cjs.entry.js +15 -8
  22. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  23. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
  24. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  26. package/dist/cjs/ez-form-view.cjs.entry.js +29 -22
  27. package/dist/cjs/ez-form.cjs.entry.js +7 -326
  28. package/dist/cjs/ez-grid.cjs.entry.js +14960 -69758
  29. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  32. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -3
  34. package/dist/cjs/ez-modal.cjs.entry.js +13 -4
  35. package/dist/cjs/ez-multi-selection-list_2.cjs.entry.js +1585 -0
  36. package/dist/cjs/ez-number-input.cjs.entry.js +16 -4
  37. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  39. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  41. package/dist/cjs/ez-search.cjs.entry.js +110 -49
  42. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  43. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  44. package/dist/cjs/ez-split-item.cjs.entry.js +7 -4
  45. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  46. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-text-area.cjs.entry.js +69 -7
  48. package/dist/cjs/ez-text-input.cjs.entry.js +153 -17
  49. package/dist/cjs/ez-time-input.cjs.entry.js +8 -2
  50. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  52. package/dist/cjs/ez-tree.cjs.entry.js +6 -5
  53. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  55. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  56. package/dist/cjs/ezui.cjs.js +2 -2
  57. package/dist/cjs/filter-column.cjs.entry.js +11 -48
  58. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +21 -10
  59. package/dist/cjs/loader.cjs.js +2 -2
  60. package/dist/collection/collection-manifest.json +4 -1
  61. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  62. package/dist/collection/components/ez-button/ez-button.css +23 -13
  63. package/dist/collection/components/ez-button/ez-button.js +12 -6
  64. package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
  65. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  66. package/dist/collection/components/ez-check/ez-check.css +1 -6
  67. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.css +14 -2
  69. package/dist/collection/components/ez-combo-box/ez-combo-box.js +111 -15
  70. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  71. package/dist/collection/components/ez-date-input/ez-date-input.js +38 -4
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  73. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +35 -4
  74. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  75. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  76. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  77. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  78. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  79. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  80. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  81. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  82. package/dist/collection/components/ez-form/ez-form.js +1 -0
  83. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  84. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  85. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  93. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  94. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +295 -63
  95. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
  96. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  97. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  98. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  103. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  104. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  105. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  107. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  108. package/dist/collection/components/ez-grid/ez-grid.js +315 -10
  109. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  110. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  111. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  112. package/dist/collection/components/ez-list/ez-list.css +5 -4
  113. package/dist/collection/components/ez-list/ez-list.js +301 -212
  114. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  115. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  116. package/dist/collection/components/ez-modal/ez-modal.js +13 -4
  117. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  118. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  119. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  120. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  121. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  122. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  123. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +67 -0
  124. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +465 -0
  125. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  126. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  127. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  128. package/dist/collection/components/ez-search/ez-search.css +22 -11
  129. package/dist/collection/components/ez-search/ez-search.js +193 -53
  130. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  131. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  132. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  133. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  134. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  135. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  136. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  137. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  138. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  139. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  140. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  141. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  142. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  143. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  144. package/dist/collection/components/ez-text-input/ez-text-input.js +166 -15
  145. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  146. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  147. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  148. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  149. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  150. package/dist/collection/sw.js +46 -0
  151. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  152. package/dist/collection/utils/FocusResolver.js +31 -0
  153. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  154. package/dist/collection/utils/form/DataBinder.js +22 -7
  155. package/dist/collection/utils/form/FormMetadata.js +2 -1
  156. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  157. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  158. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  159. package/dist/custom-elements/index.d.ts +18 -0
  160. package/dist/custom-elements/index.js +18095 -70498
  161. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  162. package/dist/esm/DataBinder-9c877244.js +441 -0
  163. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  164. package/dist/esm/ez-actions-button.entry.js +5 -4
  165. package/dist/esm/ez-alert-list.entry.js +1 -1
  166. package/dist/esm/ez-alert.entry.js +1 -1
  167. package/dist/esm/ez-application.entry.js +1 -1
  168. package/dist/esm/ez-badge.entry.js +1 -1
  169. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  170. package/dist/esm/ez-button.entry.js +12 -6
  171. package/dist/esm/ez-calendar.entry.js +1 -1
  172. package/dist/esm/ez-card-item_2.entry.js +71 -0
  173. package/dist/esm/ez-chart.entry.js +1 -1
  174. package/dist/esm/ez-check.entry.js +2 -2
  175. package/dist/esm/ez-chip.entry.js +1 -1
  176. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  177. package/dist/esm/ez-combo-box.entry.js +69 -16
  178. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  179. package/dist/esm/ez-date-input.entry.js +14 -5
  180. package/dist/esm/ez-date-time-input.entry.js +11 -5
  181. package/dist/esm/ez-dialog.entry.js +16 -9
  182. package/dist/esm/ez-double-list.entry.js +283 -0
  183. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  184. package/dist/esm/ez-file-item.entry.js +1 -1
  185. package/dist/esm/ez-filter-input.entry.js +125 -0
  186. package/dist/esm/ez-form-view.entry.js +29 -22
  187. package/dist/esm/ez-form.entry.js +6 -325
  188. package/dist/esm/ez-grid.entry.js +14900 -69698
  189. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  190. package/dist/esm/ez-icon.entry.js +2 -2
  191. package/dist/esm/ez-list.entry.js +259 -212
  192. package/dist/esm/ez-loading-bar.entry.js +1 -1
  193. package/dist/esm/ez-modal-container.entry.js +3 -3
  194. package/dist/esm/ez-modal.entry.js +13 -4
  195. package/dist/esm/ez-multi-selection-list_2.entry.js +1580 -0
  196. package/dist/esm/ez-number-input.entry.js +16 -4
  197. package/dist/esm/ez-popover.entry.js +1 -1
  198. package/dist/esm/ez-popup.entry.js +25 -3
  199. package/dist/esm/ez-radio-button.entry.js +1 -1
  200. package/dist/esm/ez-scroller_2.entry.js +4 -4
  201. package/dist/esm/ez-search.entry.js +110 -49
  202. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  203. package/dist/esm/ez-split-button.entry.js +3 -3
  204. package/dist/esm/ez-split-item.entry.js +7 -4
  205. package/dist/esm/ez-split-panel.entry.js +69 -7
  206. package/dist/esm/ez-tabselector.entry.js +1 -1
  207. package/dist/esm/ez-text-area.entry.js +69 -7
  208. package/dist/esm/ez-text-input.entry.js +153 -17
  209. package/dist/esm/ez-time-input.entry.js +8 -2
  210. package/dist/esm/ez-toast.entry.js +1 -1
  211. package/dist/esm/ez-tooltip.entry.js +51 -0
  212. package/dist/esm/ez-tree.entry.js +6 -5
  213. package/dist/esm/ez-upload.entry.js +1 -1
  214. package/dist/esm/ez-view-stack.entry.js +1 -1
  215. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  216. package/dist/esm/ezui.js +3 -3
  217. package/dist/esm/filter-column.entry.js +11 -48
  218. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +21 -11
  219. package/dist/esm/loader.js +3 -3
  220. package/dist/ezui/ezui.esm.js +1 -1
  221. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  222. package/dist/ezui/p-03b0ed5a.entry.js +1 -0
  223. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  224. package/dist/ezui/p-0cfbbe82.entry.js +1 -0
  225. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  226. package/dist/ezui/p-2069c78a.entry.js +1 -0
  227. package/dist/ezui/p-23dab72f.entry.js +1 -0
  228. package/dist/ezui/p-24b42f3d.entry.js +1 -0
  229. package/dist/ezui/p-3791d9c8.entry.js +1 -0
  230. package/dist/ezui/p-3885e66e.entry.js +1 -0
  231. package/dist/ezui/p-3af64edd.entry.js +1 -0
  232. package/dist/ezui/p-44b39e81.entry.js +1 -0
  233. package/dist/ezui/p-4818b8ce.entry.js +1 -0
  234. package/dist/ezui/p-5010315a.entry.js +1 -0
  235. package/dist/ezui/p-68b2e579.entry.js +1 -0
  236. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  237. package/dist/ezui/p-6d31c43c.entry.js +1 -0
  238. package/dist/ezui/p-6d8b3298.entry.js +1 -0
  239. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  240. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  241. package/dist/ezui/p-708b196e.entry.js +1 -0
  242. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  243. package/dist/ezui/p-80dfc50b.js +1 -0
  244. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  245. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  246. package/dist/ezui/p-88c615f0.entry.js +1 -0
  247. package/dist/ezui/p-9066b0b0.entry.js +1 -0
  248. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  249. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  250. package/dist/ezui/p-92fbaf2b.entry.js +1 -0
  251. package/dist/ezui/p-9e5bbe25.entry.js +309 -0
  252. package/dist/ezui/p-9e95bfeb.entry.js +1 -0
  253. package/dist/ezui/p-9fc250d4.entry.js +1 -0
  254. package/dist/ezui/p-a921e3e7.entry.js +1 -0
  255. package/dist/ezui/p-acddfb2e.js +1 -0
  256. package/dist/ezui/p-b22889ea.entry.js +1 -0
  257. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  258. package/dist/ezui/p-b9282c79.entry.js +1 -0
  259. package/dist/ezui/{p-84e439b9.entry.js → p-bef7daac.entry.js} +1 -1
  260. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  261. package/dist/ezui/p-c96fbbef.entry.js +1 -0
  262. package/dist/ezui/p-ca8936df.entry.js +1 -0
  263. package/dist/ezui/p-cba34702.entry.js +1 -0
  264. package/dist/ezui/p-cf33bc48.entry.js +1 -0
  265. package/dist/ezui/p-cf3b60fd.entry.js +1 -0
  266. package/dist/ezui/p-dc628ed3.js +1 -0
  267. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  268. package/dist/ezui/p-e18d9e6a.entry.js +1 -0
  269. package/dist/ezui/p-e3f8660b.entry.js +1 -0
  270. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  271. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  272. package/dist/ezui/p-ec7db713.js +1 -0
  273. package/dist/ezui/{p-650e4b6d.entry.js → p-f1c2c19e.entry.js} +1 -1
  274. package/dist/ezui/p-f30e0590.entry.js +1 -0
  275. package/dist/ezui/p-f4da7e1e.entry.js +1 -0
  276. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  277. package/dist/ezui/p-fcc78b7f.entry.js +1 -0
  278. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  279. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  280. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -1
  281. package/dist/types/components/ez-date-input/ez-date-input.d.ts +6 -1
  282. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +6 -1
  283. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  284. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  285. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  286. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  287. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  288. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  289. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  290. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  291. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  292. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  293. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
  294. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
  295. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
  296. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  297. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  298. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  299. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  300. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  301. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  302. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  303. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  304. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  305. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  306. package/dist/types/components/ez-grid/ez-grid.d.ts +54 -1
  307. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  308. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  309. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  310. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -1
  311. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  312. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +81 -0
  313. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  314. package/dist/types/components/ez-search/ez-search.d.ts +30 -6
  315. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  316. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  317. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  318. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  319. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  320. package/dist/types/components/ez-text-input/ez-text-input.d.ts +24 -2
  321. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  322. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  323. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  324. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  325. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  326. package/dist/types/components.d.ts +500 -27
  327. package/dist/types/utils/FocusResolver.d.ts +5 -0
  328. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  329. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  330. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  331. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  332. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  333. package/package.json +11 -3
  334. package/react/components.d.ts +3 -0
  335. package/react/components.js +3 -0
  336. package/react/components.js.map +1 -1
  337. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  338. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  339. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
  340. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  341. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  342. package/dist/esm/ez-card-item_3.entry.js +0 -177
  343. package/dist/esm/ez-multi-selection-list.entry.js +0 -182
  344. package/dist/esm/ez-skeleton.entry.js +0 -63
  345. package/dist/ezui/p-04f24913.js +0 -1
  346. package/dist/ezui/p-072e6347.entry.js +0 -1
  347. package/dist/ezui/p-1285c902.entry.js +0 -1
  348. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  349. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  350. package/dist/ezui/p-32e553e5.entry.js +0 -304
  351. package/dist/ezui/p-34b6916c.entry.js +0 -1
  352. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  353. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  354. package/dist/ezui/p-42533ea4.entry.js +0 -1
  355. package/dist/ezui/p-49456b34.entry.js +0 -1
  356. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  357. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  358. package/dist/ezui/p-784fe207.entry.js +0 -1
  359. package/dist/ezui/p-7922142b.entry.js +0 -1
  360. package/dist/ezui/p-7af81663.entry.js +0 -1
  361. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  362. package/dist/ezui/p-85c8baae.entry.js +0 -1
  363. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  364. package/dist/ezui/p-8f0144f6.entry.js +0 -1
  365. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  366. package/dist/ezui/p-922ac38b.entry.js +0 -1
  367. package/dist/ezui/p-9ab22a07.entry.js +0 -1
  368. package/dist/ezui/p-9e11fc7b.js +0 -1
  369. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  370. package/dist/ezui/p-af95cd16.entry.js +0 -1
  371. package/dist/ezui/p-bae4e180.entry.js +0 -1
  372. package/dist/ezui/p-baf80b13.entry.js +0 -1
  373. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  374. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  375. package/dist/ezui/p-bf79aaa1.entry.js +0 -1
  376. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  377. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  378. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  379. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -30,6 +30,7 @@ class CSSVarsUtils {
30
30
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--border-color');
31
31
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__icon--width');
32
32
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--icon-color');
33
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__margin-bottom');
33
34
  }
34
35
  }
35
36
  static applyVarsButton(host, child) {
@@ -0,0 +1,445 @@
1
+ 'use strict';
2
+
3
+ const core = require('@sankhyalabs/core');
4
+ const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
5
+
6
+ const buildFieldMetadata = (descriptor, config) => {
7
+ let { name, label, group } = Object.assign({}, config);
8
+ let { readOnly, required } = Object.assign({}, config);
9
+ let props;
10
+ let userInterface;
11
+ if (descriptor) {
12
+ label = label || descriptor.label;
13
+ name = name || descriptor.name;
14
+ required = descriptor.required || (config === null || config === void 0 ? void 0 : config.required);
15
+ readOnly = descriptor.readOnly || (config === null || config === void 0 ? void 0 : config.readOnly);
16
+ props = descriptor.properties;
17
+ userInterface = descriptor.userInterface;
18
+ }
19
+ return {
20
+ name, label, group,
21
+ readOnly, required,
22
+ props,
23
+ userInterface: userInterface || core.UserInterface.SHORTTEXT,
24
+ };
25
+ };
26
+
27
+ class RecordValidationProcessor {
28
+ constructor(dataUnit, validationSource, validator) {
29
+ this._dataUnit = dataUnit;
30
+ this._validationSource = validationSource;
31
+ this._validator = validator;
32
+ }
33
+ validate(isSaving = true) {
34
+ return new Promise((accept, reject) => {
35
+ const records = this._dataUnit.getModifiedRecords();
36
+ for (let i = 0; i < records.length; i++) {
37
+ const record = records[i];
38
+ const invalidResults = [];
39
+ let validationResult = this.validateRequired(record);
40
+ if (validationResult && !validationResult.isValid) {
41
+ invalidResults.push(validationResult);
42
+ }
43
+ if (this._validator) {
44
+ validationResult = this._validator.validateRecord(record);
45
+ if (validationResult && !validationResult.isValid) {
46
+ invalidResults.push(validationResult);
47
+ }
48
+ }
49
+ if (invalidResults.length > 0) {
50
+ if (!isSaving && invalidResults[0].invalidFields.length > 0) {
51
+ this._validationSource.markAsInvalid(invalidResults[0].invalidFields[0], record.__record__id__);
52
+ reject();
53
+ break;
54
+ }
55
+ this.processValidationResult(invalidResults, record.__record__id__);
56
+ reject();
57
+ break;
58
+ }
59
+ }
60
+ return accept();
61
+ });
62
+ }
63
+ validateRequired(record) {
64
+ const requiredFields = this._validationSource.getRequiredFields();
65
+ const invalidFields = [];
66
+ new Set(requiredFields).forEach(field => {
67
+ const value = record[field];
68
+ if (value == undefined || value === "") {
69
+ const errorMessage = this._validationSource.getMessageForField(field, record.__record__id__);
70
+ if (errorMessage) {
71
+ invalidFields.push({ name: field, message: errorMessage });
72
+ }
73
+ else {
74
+ invalidFields.push({ name: field, message: "Essa informação é obrigatória" });
75
+ }
76
+ }
77
+ });
78
+ if (invalidFields.length > 0) {
79
+ return { isValid: false, invalidFields, infoMessage: "Há pelo menos um campo obrigatório não preenchido." };
80
+ }
81
+ return undefined;
82
+ }
83
+ processValidationResult(validationResult, recordId) {
84
+ validationResult.forEach(invalidResult => {
85
+ const invalidFields = invalidResult.invalidFields;
86
+ this._dataUnit.savingCanceled(invalidFields, recordId);
87
+ if (invalidFields) {
88
+ invalidFields.forEach(field => {
89
+ this.markAsInvalid(field, recordId);
90
+ });
91
+ }
92
+ if (invalidResult.infoMessage) {
93
+ ApplicationUtils.ApplicationUtils.info(invalidResult.infoMessage);
94
+ }
95
+ if (invalidResult.errorMessage) {
96
+ const { errorTitle, errorMessage } = invalidResult;
97
+ ApplicationUtils.ApplicationUtils.error(errorTitle, errorMessage);
98
+ }
99
+ });
100
+ }
101
+ markAsInvalid(field, recordId) {
102
+ this._dataUnit.setInvalidField(field.name, field.message, recordId);
103
+ this._validationSource.markAsInvalid(field, recordId);
104
+ }
105
+ }
106
+
107
+ class DataBinder {
108
+ constructor(dataUnit) {
109
+ this.onDataUnitEvent = (action) => {
110
+ var _a, _b;
111
+ switch (action.type) {
112
+ case core.Action.DATA_LOADED:
113
+ case core.Action.DATA_SAVED:
114
+ case core.Action.RECORDS_REMOVED:
115
+ case core.Action.RECORDS_ADDED:
116
+ case core.Action.RECORDS_COPIED:
117
+ case core.Action.EDITION_CANCELED:
118
+ case core.Action.SELECTION_CHANGED:
119
+ case core.Action.NEXT_SELECTED:
120
+ case core.Action.PREVIOUS_SELECTED:
121
+ this.clearInvalid();
122
+ case core.Action.DATA_CHANGED:
123
+ case core.Action.CHANGE_UNDONE:
124
+ case core.Action.CHANGE_REDONE:
125
+ case core.Action.RECORD_LOADED:
126
+ (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
127
+ this.updateValue(field.fieldName, field.field);
128
+ });
129
+ this.clearFieldError(Object.keys(action.payload)[0]);
130
+ break;
131
+ case core.Action.FIELD_INVALIDATED:
132
+ (_b = this._fields) === null || _b === void 0 ? void 0 : _b.forEach(field => {
133
+ this.updateErrorMessage(field.fieldName, field.field);
134
+ });
135
+ break;
136
+ }
137
+ };
138
+ this._uuid = core.StringUtils.generateUUID();
139
+ this._fields = new Map();
140
+ this._dataUnit = dataUnit;
141
+ this.applyDefaultValues();
142
+ this._dataUnit.subscribe(this.onDataUnitEvent);
143
+ this._dataUnit.addInterceptor(this);
144
+ this.setContextDataBinder(dataUnit);
145
+ }
146
+ get dataBinderId() {
147
+ return this._uuid;
148
+ }
149
+ setContextDataBinder(dataUnit) {
150
+ const dataBindersByDataUnit = core.ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__") || new Map();
151
+ const dataBinders = [...(dataBindersByDataUnit.get(dataUnit.dataUnitId) || []), this];
152
+ dataBindersByDataUnit.set(dataUnit.dataUnitId, dataBinders);
153
+ core.ApplicationContext.setContextValue("__DATABINDER_BY_DATAUNIT__", dataBindersByDataUnit);
154
+ }
155
+ applyDefaultValues() {
156
+ const recordIds = (this._dataUnit.getAddedRecords() || []).map(r => r.__record__id__);
157
+ if (recordIds.length > 0) {
158
+ const defaultValues = this.getDefaultValues();
159
+ if (defaultValues) {
160
+ Object.keys(defaultValues).forEach(field => {
161
+ this._dataUnit.setFieldValue(field, defaultValues[field], recordIds);
162
+ });
163
+ }
164
+ }
165
+ }
166
+ bind(fields, currentContextName, formMetadata, recordsValidator) {
167
+ fields.forEach(fieldElement => {
168
+ const { fieldName, contextName } = fieldElement.dataset;
169
+ if (contextName == undefined || contextName === currentContextName) {
170
+ this.updateBind(fieldName, fieldElement);
171
+ }
172
+ });
173
+ this._formMetadata = formMetadata;
174
+ this._recordValidatorProcessor = new RecordValidationProcessor(this._dataUnit, {
175
+ getRequiredFields: () => this.getFormRequiredFields(),
176
+ markAsInvalid: field => this.markInvalid(field),
177
+ getMessageForField: field => this.getErrorMessage(field),
178
+ }, recordsValidator);
179
+ }
180
+ getFormRequiredFields() {
181
+ return this._formMetadata.getRequiredFields();
182
+ }
183
+ disconnectDataUnit() {
184
+ const dataBindersByDataUnit = core.ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__") || new Map();
185
+ const dataBinders = dataBindersByDataUnit.get(this._dataUnit.dataUnitId);
186
+ const dataBindersFiltered = dataBinders.filter((dataBinder) => dataBinder.dataBinderId !== this.dataBinderId);
187
+ dataBindersByDataUnit.set(this._dataUnit.dataUnitId, dataBindersFiltered);
188
+ core.ApplicationContext.setContextValue("__DATABINDER_BY_DATAUNIT__", dataBindersByDataUnit);
189
+ }
190
+ onDisconnectedCallback() {
191
+ this._dataUnit.unsubscribe(this.onDataUnitEvent);
192
+ this._dataUnit.removeInterceptor(this);
193
+ this.disconnectDataUnit();
194
+ }
195
+ getCurrentRecordId() {
196
+ const record = this._dataUnit.getSelectedRecord();
197
+ return record === null || record === void 0 ? void 0 : record.__record__id__;
198
+ }
199
+ markInvalid(field) {
200
+ if (this._fields.has(field.name)) {
201
+ const fieldElement = this._fields.get(field.name).field;
202
+ this.updateErrorMessage(field.name, fieldElement, field.message);
203
+ }
204
+ }
205
+ setFocus(fieldName) {
206
+ if (!this._fields.has(fieldName)) {
207
+ return;
208
+ }
209
+ const fieldElement = this._fields.get(fieldName).field;
210
+ if (typeof fieldElement["setFocus"] != "function") {
211
+ return;
212
+ }
213
+ fieldElement["setFocus"]();
214
+ }
215
+ clearInvalid(recordId) {
216
+ this._dataUnit.clearInvalid(recordId);
217
+ this._fields.forEach(fieldBinder => {
218
+ const fieldElement = fieldBinder.field;
219
+ fieldElement["errorMessage"] = "";
220
+ });
221
+ }
222
+ clearFieldError(fieldName) {
223
+ var _a;
224
+ const field = (_a = this._fields.get(fieldName)) === null || _a === void 0 ? void 0 : _a.field;
225
+ if (field["errorMessage"]) {
226
+ field["errorMessage"] = "";
227
+ this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
228
+ }
229
+ }
230
+ updateValue(fieldName, field) {
231
+ const bind = this._fields.get(fieldName);
232
+ try {
233
+ if (bind) {
234
+ bind.listen = false;
235
+ }
236
+ field["value"] = this._dataUnit.getFieldValue(fieldName);
237
+ this.updateErrorMessage(fieldName, field);
238
+ }
239
+ finally {
240
+ if (bind) {
241
+ bind.listen = true;
242
+ }
243
+ }
244
+ }
245
+ validate() {
246
+ return this._recordValidatorProcessor.validate();
247
+ }
248
+ static async validateByDataunit(dataUnit) {
249
+ try {
250
+ const dataBinders = this.getDataBindersByDataUnit(dataUnit);
251
+ await Promise.all(dataBinders.map((dataBinder) => dataBinder.validate()));
252
+ return true;
253
+ }
254
+ catch (_a) {
255
+ return false;
256
+ }
257
+ }
258
+ static getDataBindersByDataUnit(dataUnit) {
259
+ const dataBindersByDataUnit = core.ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__");
260
+ return (dataBindersByDataUnit === null || dataBindersByDataUnit === void 0 ? void 0 : dataBindersByDataUnit.get(dataUnit.dataUnitId)) || [];
261
+ }
262
+ updateErrorMessage(fieldName, field, message) {
263
+ if (message == undefined) {
264
+ message = this._dataUnit.getInvalidMessage(this.getCurrentRecordId(), fieldName);
265
+ }
266
+ if (!field["errorMessage"]) {
267
+ field["errorMessage"] = message;
268
+ }
269
+ }
270
+ getErrorMessage(fieldName) {
271
+ if (this._fields.has(fieldName)) {
272
+ const fieldElement = this._fields.get(fieldName).field;
273
+ return fieldElement["errorMessage"];
274
+ }
275
+ return undefined;
276
+ }
277
+ updateBind(fieldName, field) {
278
+ const oldBind = this._fields.get(fieldName);
279
+ if (oldBind) {
280
+ oldBind.destroy();
281
+ }
282
+ this.bindSearchOptionsLoader(fieldName, field);
283
+ field["value"] = this._dataUnit.getFieldValue(fieldName);
284
+ this.updateErrorMessage(fieldName, field);
285
+ this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, waitingChange) => this.changeStarted(fieldName, waitingChange), (fieldName) => this.cancelWaitingChange(fieldName), (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
286
+ this.applyEzUploadContext(fieldName, field);
287
+ }
288
+ changeStarted(fieldName, waitingChange) {
289
+ /**
290
+ * se o waitingChange não é blocante, add um event listener pra
291
+ * fazer o accept da promise
292
+ *
293
+ * se não tiver promise no waitingChange, eu crio uma e resolvo no bind
294
+ *
295
+ *
296
+ */
297
+ if (this._dataUnit.records.length === 0) {
298
+ this._dataUnit.addRecord();
299
+ }
300
+ if (!waitingChange.blocking && waitingChange.promise == undefined) {
301
+ const bind = this._fields.get(fieldName);
302
+ if (bind) {
303
+ waitingChange.promise = new Promise((resolve, reject) => {
304
+ bind.waitingChangePromiseResolve = resolve;
305
+ bind.waitingChangePromiseReject = reject;
306
+ });
307
+ }
308
+ }
309
+ this._dataUnit.startChange(fieldName, waitingChange);
310
+ }
311
+ cancelWaitingChange(fieldName) {
312
+ if (this._dataUnit.waitingForChange(fieldName)) {
313
+ this._dataUnit.cancelWaitingChange(fieldName);
314
+ const bind = this._fields.get(fieldName);
315
+ if (bind) {
316
+ bind.rejectWaitingChange(new core.WaitingChangeException("Change canceled", fieldName));
317
+ }
318
+ }
319
+ }
320
+ setFieldValue(fieldName, newValue) {
321
+ if (this._dataUnit.records.length === 0) {
322
+ this._dataUnit.addRecord();
323
+ }
324
+ this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
325
+ const record = this._dataUnit.getSelectedRecord();
326
+ this._dataUnit.setFieldValue(fieldName, newValue, record ? [record.__record__id__] : undefined);
327
+ if (this._dataUnit.waitingForChange(fieldName)) {
328
+ const bind = this._fields.get(fieldName);
329
+ if (bind) {
330
+ bind.acceptWaitingChange();
331
+ }
332
+ }
333
+ }
334
+ bindSearchOptionsLoader(fieldName, field) {
335
+ if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
336
+ const loader = core.ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
337
+ if (loader) {
338
+ field["optionLoader"] = (arg, ctxOptions) => {
339
+ return loader(arg, fieldName, this._dataUnit, ctxOptions);
340
+ };
341
+ }
342
+ }
343
+ }
344
+ applyEzUploadContext(fieldName, field) {
345
+ var _a, _b;
346
+ if (field.nodeName === "EZ-UPLOAD") {
347
+ field["urlUpload"] = core.ApplicationContext.getContextValue("__EZUI__UPLOAD__ADD__URL__");
348
+ field["urlDelete"] = core.ApplicationContext.getContextValue("__EZUI__UPLOAD__DEL__URL__");
349
+ const descriptor = this._dataUnit.getField(fieldName);
350
+ const destination = (_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.DESTINATION;
351
+ if (destination) {
352
+ field["requestHeaders"] = { XTRAINF: `{"destination": "${destination}"}` };
353
+ }
354
+ field["maxFiles"] = ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.MAX_FILES) || 0;
355
+ }
356
+ }
357
+ interceptAction(action) {
358
+ if (action.type === core.Action.RECORDS_COPIED) {
359
+ const cleanFields = this._formMetadata.getCleanOnCopyFields();
360
+ if (cleanFields) {
361
+ const records = action.payload;
362
+ return new core.DataUnitAction(core.Action.RECORDS_COPIED, records.map(record => {
363
+ const newRecord = Object.assign({}, record);
364
+ cleanFields.forEach(fieldName => delete newRecord[fieldName]);
365
+ return newRecord;
366
+ }));
367
+ }
368
+ }
369
+ if (action.type === core.Action.SAVING_DATA) {
370
+ return new Promise((resolve) => {
371
+ this.validate()
372
+ .then(() => resolve(action))
373
+ .catch(() => { });
374
+ });
375
+ }
376
+ if (action.type === core.Action.RECORDS_ADDED) {
377
+ const defaultValues = this.getDefaultValues();
378
+ if (defaultValues) {
379
+ const records = action.payload;
380
+ return new core.DataUnitAction(core.Action.RECORDS_ADDED, records.map(record => {
381
+ return Object.assign(Object.assign({}, record), defaultValues);
382
+ }));
383
+ }
384
+ }
385
+ return action;
386
+ }
387
+ getDefaultValues() {
388
+ var _a;
389
+ const rawDefaultValues = (_a = this._formMetadata) === null || _a === void 0 ? void 0 : _a.getDefaultValues();
390
+ if (rawDefaultValues) {
391
+ const defaultValues = {};
392
+ for (const field in rawDefaultValues) {
393
+ defaultValues[field] = this._dataUnit.valueFromString(field, rawDefaultValues[field]);
394
+ }
395
+ return defaultValues;
396
+ }
397
+ return undefined;
398
+ }
399
+ }
400
+ class Bind {
401
+ constructor() {
402
+ this.listen = true;
403
+ this.startChangeEventName = "ezStartChange";
404
+ this.cancelWaitingChangeEventName = "ezCancelWaitingChange";
405
+ this.changeEventName = "ezChange";
406
+ }
407
+ destroy() {
408
+ this.field.removeEventListener(this.startChangeEventName, this.startChangeListener);
409
+ this.field.removeEventListener(this.cancelWaitingChangeEventName, this.cancelWaitingChangeListener);
410
+ this.field.removeEventListener(this.changeEventName, this.changeListener);
411
+ }
412
+ acceptWaitingChange() {
413
+ if (this.waitingChangePromiseResolve) {
414
+ this.waitingChangePromiseResolve();
415
+ this.waitingChangePromiseReject = undefined;
416
+ this.waitingChangePromiseResolve = undefined;
417
+ }
418
+ }
419
+ rejectWaitingChange(reason) {
420
+ if (this.waitingChangePromiseReject) {
421
+ this.waitingChangePromiseReject(reason);
422
+ this.waitingChangePromiseReject = undefined;
423
+ this.waitingChangePromiseResolve = undefined;
424
+ }
425
+ }
426
+ static create(fieldName, field, startChangeCallback, cancelWaitingChangeCallback, changeCallback) {
427
+ const b = new Bind();
428
+ b.field = field;
429
+ b.fieldName = fieldName;
430
+ b.startChangeListener = (evt) => { if (b.listen)
431
+ startChangeCallback(fieldName, evt.detail); };
432
+ b.field.addEventListener(b.startChangeEventName, b.startChangeListener);
433
+ b.cancelWaitingChangeListener = () => { if (b.listen)
434
+ cancelWaitingChangeCallback(fieldName); };
435
+ b.field.addEventListener(b.cancelWaitingChangeEventName, b.cancelWaitingChangeListener);
436
+ b.changeListener = (evt) => { if (b.listen)
437
+ changeCallback(fieldName, evt.detail); };
438
+ b.field.addEventListener(b.changeEventName, b.changeListener);
439
+ return b;
440
+ }
441
+ }
442
+
443
+ exports.DataBinder = DataBinder;
444
+ exports.RecordValidationProcessor = RecordValidationProcessor;
445
+ exports.buildFieldMetadata = buildFieldMetadata;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ class FocusResolver {
4
+ static resolveFocus(element, selectText = true) {
5
+ var _a;
6
+ if (!element)
7
+ return;
8
+ (_a = element.focus) === null || _a === void 0 ? void 0 : _a.call(element);
9
+ if (element.setFocus) {
10
+ element.setFocus({ selectText });
11
+ return;
12
+ }
13
+ this.resolveFocusOnChild(element, selectText);
14
+ }
15
+ static resolveFocusOnChild(element, selectText = true) {
16
+ var _a, _b;
17
+ if (this.isGridCell(element) && element.firstElementChild) {
18
+ this.resolveFocusOnChild(element.firstElementChild);
19
+ return;
20
+ }
21
+ if (!element || !element.classList.contains('hydrated'))
22
+ return;
23
+ const firstChild = element.firstElementChild;
24
+ if (!(firstChild === null || firstChild === void 0 ? void 0 : firstChild.focus) && !(firstChild === null || firstChild === void 0 ? void 0 : firstChild.setFocus))
25
+ return;
26
+ (_a = firstChild === null || firstChild === void 0 ? void 0 : firstChild.focus) === null || _a === void 0 ? void 0 : _a.call(firstChild);
27
+ (_b = firstChild === null || firstChild === void 0 ? void 0 : firstChild.setFocus) === null || _b === void 0 ? void 0 : _b.call(firstChild, { selectText });
28
+ }
29
+ static isGridCell(element) {
30
+ var _a;
31
+ return ((_a = element === null || element === void 0 ? void 0 : element.getAttribute) === null || _a === void 0 ? void 0 : _a.call(element, "role")) === 'gridcell';
32
+ }
33
+ }
34
+
35
+ exports.FocusResolver = FocusResolver;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  require('./ApplicationUtils-c9d1205c.js');
8
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
8
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
11
  require('./ICustomRender-6fafffce.js');
@@ -99,8 +99,9 @@ const EzActionsButton = class {
99
99
  var _a;
100
100
  const docWidth = document.body.clientWidth;
101
101
  const boundingList = (_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
102
- if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) > docWidth) {
103
- return (docWidth - boundingList.width) + "px";
102
+ const rightOffset = docWidth - this._button.getBoundingClientRect().right;
103
+ if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) >= docWidth || (boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) === (docWidth - rightOffset)) {
104
+ return (docWidth - boundingList.width - rightOffset) + "px";
104
105
  }
105
106
  return;
106
107
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /*@doc Define a largura da lista minimizado */\n --ez-alert-list__container--width: 680px;\n /*@doc Define a altura da lista minimizado */\n --ez-alert-list__container--height: 220px;\n \n /*@doc Define a largura da lista maximizada */\n --ez-alert-list__container--width--expanded: 920px;\n /*@doc Define a altura da lista maximizada */\n --ez-alert-list__container--height--expanded: 540px;\n\n /* Title */\n /*@doc Define a fonte do título do componente */\n --ez-alert-list__title--font-family: var(--font-pattern, \"Roboto\");\n /*@doc Define o tamanho da fonte do título do popup.*/\n --ez-alert-list__title--font-size: var(--title--large, 20px);\n /*@doc Define a cor da fonte do título do popup.*/\n --ez-alert-list__title--color: var(--title--primary, #2b3a54);\n /*@doc Define o peso da fonte do título do popup.*/\n --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);\n\n /* @doc Define a borda inferior do item da lista. */\n --ez-list__item--border-bottom: var(--border--small, 1px solid);\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);\n\n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: break-space;\n}\n\n.alert-list__content {\n display: flex;\n flex-direction: column;\n \n gap: var(--space--xs);\n margin: var(--space--large, 24px);\n width: 100%;\n}\n\n.alert-list__container {\n z-index: var(--ez-elevation--8, 8);\n display: flex;\n height: var(--ez-alert-list__container--height);\n width: var(--ez-alert-list__container--width);\n border-radius: var(--border--radius-medium);\n background-color: var(--background--xlight);\n box-shadow: var(--shadow--medium);\n\n &.expanded {\n height: var(--ez-alert-list__container--height--expanded);\n width: var(--ez-alert-list__container--width--expanded);\n }\n\n @media (max-height: 640px) {\n max-height: calc(100vh - var(--space--3xl));\n } \n}\n\n.alert-list__header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.alert-list__title {\n font-family: var(--ez-alert-list__title--font-family);\n font-size: var(--ez-alert-list__title--font-size);\n font-weight: var(--ez-alert-list__title--font-weight);\n color: var(--ez-alert-list__title--color);\n}\n\n.alert-list__header__buttons {\n display: flex;\n gap: var(--space--xs);\n}\n\n.alert-list__expandable-content {\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const ezAlertCss = ":host{--ez-alert-alert-container--padding-up-down:var(--space--small, 6px);--ez-alert-alert-container--padding-right-left:var(--space--medium, 12px);--ez-alert-alert-container--gap:var(--space--medium, 12px);--ez-alert-alert-container--border-radius:var(--border--radius-medium, 12px);--ez-alert-alert-container--font-color-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--icon-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--background-color-warn:var(--color--alert-warning-200, #FFF7D5);--ez-alert-alert-container--font-color-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--icon-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--background-color-critical:var(--color--alert-error-200, #F7E0E5);--ez-alert-alert-container--font-color-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--icon-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--background-color-success:var(--color--alert-success-200, #E7F6E0);font-size:var(--text--small, 12px);font-family:var(--font-pattern, \"Roboto\");width:100%;hyphens:auto;display:block}.alert-container{display:flex;align-items:center;gap:var(--ez-alert-alert-container--gap);padding:var(--ez-alert-alert-container--padding-up-down) var(--ez-alert-alert-container--padding-right-left);border-radius:var(--ez-alert-alert-container--border-radius)}.warn{background-color:var(--ez-alert-alert-container--background-color-warn);color:var(--ez-alert-alert-container--font-color-warn)}.critical{background-color:var(--ez-alert-alert-container--background-color-critical);color:var(--ez-alert-alert-container--font-color-critical)}.success{background-color:var(--ez-alert-alert-container--background-color-success);color:var(--ez-alert-alert-container--font-color-success)}ez-icon{--ez-icon--color:inherit}.alert-container__icon-warn{--ez-icon--color:var(--ez-alert-alert-container--icon-warn)}.alert-container__icon-critical{--ez-icon--color:var(--ez-alert-alert-container--icon-critical)}.alert-container__icon-success{--ez-icon--color:var(--ez-alert-alert-container--icon-success)}";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
 
7
7
  const ezApplicationCss = "";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  var Sizes;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const BreadcrumbItem = (props) => {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7b0c73d.js');
5
+ const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--color--disable-primary, '#e5eaf0');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
8
+ const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #2B3A54);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--light, #ffffff);--ez-button--border-radius:var(--border--radius-large, 24px);--ez-button--border:1px solid var(--color--strokes);--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600, #007a5a);--ez-button--hover--background-color:var(--background--light, #ffffff);--ez-button--disabled-color:var(--text--primary);--ez-button--disabled--background-color:var(--background--medium);--ez-button--focus--border:var(--border--medium, 2px solid) var(--color--primary-300);--ez-button--focus--box-shadow:var(--color--primary-300) 0px 0px 0px 2px;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--text--secondary, #a2abb9);--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:none}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.x-small{height:28px;--ez-button--font-size:var(--text--small, 12px)}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--x-small{width:28px;min-width:28px;height:28px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
9
9
 
10
10
  const EzButton = class {
11
11
  constructor(hostRef) {
@@ -43,10 +43,16 @@ const EzButton = class {
43
43
  core.ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
44
44
  }
45
45
  }
46
+ getButtonSize(sizeParam = "medium") {
47
+ const sizeList = ["x-small", "small", "medium", "large"];
48
+ const sizeLowerCase = this.size && this.size.toLowerCase();
49
+ return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
50
+ }
46
51
  getIconSize(sizeParam = "medium") {
47
52
  const sizeList = ["small", "medium", "large"];
48
53
  const sizeLowerCase = this.size && this.size.toLowerCase();
49
- return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
54
+ const sizeMapped = sizeLowerCase === "x-small" ? "small" : sizeLowerCase;
55
+ return sizeList.includes(sizeMapped) ? sizeMapped : sizeParam;
50
56
  }
51
57
  handleSlotChange(ev) {
52
58
  const slot = ev.target;
@@ -68,16 +74,16 @@ const EzButton = class {
68
74
  }
69
75
  render() {
70
76
  if (this.mode == "icon") {
71
- return (index.h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
77
+ return (index.h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
72
78
  }
73
79
  else if (this.mode == "label-icon") {
74
- return (index.h("div", { class: "label-icon" }, index.h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), index.h("label", { title: this.label }, this.label)));
80
+ return (index.h("div", { class: "label-icon" }, index.h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), index.h("label", { title: this.label }, this.label)));
75
81
  }
76
82
  else if (this.mode == "link") {
77
83
  return (index.h("a", { class: `${this.getIconSize()} ${!this.enabled ? "disabled" : ""}`, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
78
84
  }
79
85
  else {
80
- return (index.h("button", { class: this.getIconSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
86
+ return (index.h("button", { class: this.getButtonSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
81
87
  }
82
88
  }
83
89
  get _element() { return index.getElement(this); }