@sankhyalabs/ezui 5.22.0-dev.7 → 5.22.0-dev.71

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 (357) hide show
  1. package/dist/cjs/DataBinder-b4ef826a.js +445 -0
  2. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  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 +12 -6
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
  12. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-combo-box.cjs.entry.js +68 -14
  17. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
  18. package/dist/cjs/ez-date-input.cjs.entry.js +15 -5
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +12 -5
  20. package/dist/cjs/ez-dialog.cjs.entry.js +11 -3
  21. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  22. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
  23. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
  25. package/dist/cjs/ez-form-view.cjs.entry.js +30 -23
  26. package/dist/cjs/ez-form.cjs.entry.js +7 -326
  27. package/dist/cjs/ez-grid.cjs.entry.js +14946 -69807
  28. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  31. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
  33. package/dist/cjs/ez-modal.cjs.entry.js +20 -5
  34. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
  35. package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
  36. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  38. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  40. package/dist/cjs/ez-search.cjs.entry.js +106 -46
  41. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  43. package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
  44. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  45. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  47. package/dist/cjs/ez-text-input.cjs.entry.js +154 -17
  48. package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
  49. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  51. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  54. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  55. package/dist/cjs/ezui.cjs.js +2 -2
  56. package/dist/cjs/filter-column.cjs.entry.js +3 -3
  57. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +16 -11
  58. package/dist/cjs/loader.cjs.js +2 -2
  59. package/dist/collection/collection-manifest.json +3 -1
  60. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  61. package/dist/collection/components/ez-button/ez-button.css +23 -13
  62. package/dist/collection/components/ez-button/ez-button.js +12 -6
  63. package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
  64. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  65. package/dist/collection/components/ez-check/ez-check.css +1 -6
  66. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  67. package/dist/collection/components/ez-combo-box/ez-combo-box.css +13 -1
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.js +130 -15
  69. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  70. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -5
  71. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +55 -5
  73. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  74. package/dist/collection/components/ez-dialog/ez-dialog.js +9 -1
  75. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  76. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  77. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  78. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  79. package/dist/collection/components/ez-filter-input/ez-filter-input.js +55 -5
  80. package/dist/collection/components/ez-form/ez-form.js +1 -0
  81. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  82. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  83. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  84. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  92. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +282 -57
  93. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +107 -5
  94. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -2
  95. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  96. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  98. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  103. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  104. package/dist/collection/components/ez-grid/ez-grid.css +47 -8
  105. package/dist/collection/components/ez-grid/ez-grid.js +220 -7
  106. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  107. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
  108. package/dist/collection/components/ez-icon/ez-icon.css +153 -149
  109. package/dist/collection/components/ez-list/ez-list.css +2 -1
  110. package/dist/collection/components/ez-list/ez-list.js +301 -212
  111. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  112. package/dist/collection/components/ez-modal/ez-modal.css +5 -1
  113. package/dist/collection/components/ez-modal/ez-modal.js +38 -5
  114. package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
  115. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -3
  116. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  117. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  118. package/dist/collection/components/ez-number-input/ez-number-input.js +68 -1
  119. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  120. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  121. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  122. package/dist/collection/components/ez-search/ez-search.css +21 -10
  123. package/dist/collection/components/ez-search/ez-search.js +189 -49
  124. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  125. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  126. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
  127. package/dist/collection/components/ez-split-button/ez-split-button.css +50 -14
  128. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  129. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  130. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  131. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  132. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  133. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
  134. package/dist/collection/components/ez-text-area/ez-text-area.css +73 -28
  135. package/dist/collection/components/ez-text-area/ez-text-area.js +103 -3
  136. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  137. package/dist/collection/components/ez-text-input/ez-text-input.js +185 -15
  138. package/dist/collection/components/ez-time-input/ez-time-input.js +44 -1
  139. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  140. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  141. package/dist/collection/sw.js +46 -0
  142. package/dist/collection/utils/FocusResolver.js +31 -0
  143. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  144. package/dist/collection/utils/form/DataBinder.js +20 -5
  145. package/dist/collection/utils/form/FormMetadata.js +2 -1
  146. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  147. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  148. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  149. package/dist/custom-elements/index.d.ts +12 -0
  150. package/dist/custom-elements/index.js +16564 -70385
  151. package/dist/esm/DataBinder-d2ecbb0f.js +441 -0
  152. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  153. package/dist/esm/ez-actions-button.entry.js +4 -3
  154. package/dist/esm/ez-alert-list.entry.js +1 -1
  155. package/dist/esm/ez-alert.entry.js +1 -1
  156. package/dist/esm/ez-application.entry.js +1 -1
  157. package/dist/esm/ez-badge.entry.js +1 -1
  158. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  159. package/dist/esm/ez-button.entry.js +12 -6
  160. package/dist/esm/ez-calendar.entry.js +1 -1
  161. package/dist/esm/ez-card-item_2.entry.js +71 -0
  162. package/dist/esm/ez-chart.entry.js +1 -1
  163. package/dist/esm/ez-check.entry.js +2 -2
  164. package/dist/esm/ez-chip.entry.js +1 -1
  165. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  166. package/dist/esm/ez-combo-box.entry.js +69 -15
  167. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  168. package/dist/esm/ez-date-input.entry.js +15 -5
  169. package/dist/esm/ez-date-time-input.entry.js +12 -5
  170. package/dist/esm/ez-dialog.entry.js +11 -3
  171. package/dist/esm/ez-double-list.entry.js +283 -0
  172. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  173. package/dist/esm/ez-file-item.entry.js +1 -1
  174. package/dist/esm/ez-filter-input.entry.js +126 -0
  175. package/dist/esm/ez-form-view.entry.js +30 -23
  176. package/dist/esm/ez-form.entry.js +6 -325
  177. package/dist/esm/ez-grid.entry.js +14945 -69806
  178. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  179. package/dist/esm/ez-icon.entry.js +2 -2
  180. package/dist/esm/ez-list.entry.js +259 -212
  181. package/dist/esm/ez-loading-bar.entry.js +1 -1
  182. package/dist/esm/ez-modal-container.entry.js +3 -2
  183. package/dist/esm/ez-modal.entry.js +20 -5
  184. package/dist/esm/ez-multi-selection-list.entry.js +3 -3
  185. package/dist/esm/ez-number-input.entry.js +16 -3
  186. package/dist/esm/ez-popover.entry.js +1 -1
  187. package/dist/esm/ez-popup.entry.js +25 -3
  188. package/dist/esm/ez-radio-button.entry.js +1 -1
  189. package/dist/esm/ez-scroller_2.entry.js +4 -4
  190. package/dist/esm/ez-search.entry.js +106 -46
  191. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  192. package/dist/esm/ez-split-button.entry.js +3 -3
  193. package/dist/esm/ez-split-item.entry.js +4 -3
  194. package/dist/esm/ez-split-panel.entry.js +69 -7
  195. package/dist/esm/ez-tabselector.entry.js +1 -1
  196. package/dist/esm/ez-text-area.entry.js +68 -6
  197. package/dist/esm/ez-text-input.entry.js +154 -17
  198. package/dist/esm/ez-time-input.entry.js +9 -2
  199. package/dist/esm/ez-toast.entry.js +1 -1
  200. package/dist/esm/ez-tooltip.entry.js +51 -0
  201. package/dist/esm/ez-tree.entry.js +1 -1
  202. package/dist/esm/ez-upload.entry.js +1 -1
  203. package/dist/esm/ez-view-stack.entry.js +1 -1
  204. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  205. package/dist/esm/ezui.js +3 -3
  206. package/dist/esm/filter-column.entry.js +3 -3
  207. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +17 -11
  208. package/dist/esm/loader.js +3 -3
  209. package/dist/ezui/ezui.esm.js +1 -1
  210. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  211. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  212. package/dist/ezui/p-14b769d7.entry.js +1 -0
  213. package/dist/ezui/p-16e612fc.entry.js +1 -0
  214. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  215. package/dist/ezui/p-17eabf46.entry.js +1 -0
  216. package/dist/ezui/p-181b5ae8.entry.js +1 -0
  217. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  218. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  219. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  220. package/dist/ezui/p-2475fd6e.entry.js +1 -0
  221. package/dist/ezui/p-2bb2a0c4.entry.js +1 -0
  222. package/dist/ezui/p-3175fe8c.entry.js +1 -0
  223. package/dist/ezui/{p-30951bd7.entry.js → p-35d467a8.entry.js} +1 -1
  224. package/dist/ezui/p-3f2dd525.entry.js +1 -0
  225. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  226. package/dist/ezui/p-50d83a46.entry.js +1 -0
  227. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  228. package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
  229. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  230. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  231. package/dist/ezui/p-654b3f99.entry.js +1 -0
  232. package/dist/ezui/p-65f471bc.entry.js +1 -0
  233. package/dist/ezui/p-66924de6.entry.js +1 -0
  234. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  235. package/dist/ezui/p-6d79930d.entry.js +1 -0
  236. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  237. package/dist/ezui/p-6f22a385.entry.js +1 -0
  238. package/dist/ezui/p-7409eeaa.entry.js +1 -0
  239. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  240. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  241. package/dist/ezui/p-7ed30844.entry.js +1 -0
  242. package/dist/ezui/p-7fdd479f.entry.js +1 -0
  243. package/dist/ezui/p-80dfc50b.js +1 -0
  244. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  245. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  246. package/dist/ezui/p-990b4318.entry.js +1 -0
  247. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  248. package/dist/ezui/p-a6fe527a.entry.js +1 -0
  249. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  250. package/dist/ezui/p-b6a4e6de.entry.js +1 -0
  251. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  252. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  253. package/dist/ezui/p-c3045972.entry.js +1 -0
  254. package/dist/ezui/{p-82ac8b06.entry.js → p-c4320a39.entry.js} +1 -1
  255. package/dist/ezui/p-ca6340a9.entry.js +1 -0
  256. package/dist/ezui/p-ceadecd9.js +1 -0
  257. package/dist/ezui/p-d0ca26fe.entry.js +1 -0
  258. package/dist/ezui/p-d520839d.entry.js +1 -0
  259. package/dist/ezui/p-dc628ed3.js +1 -0
  260. package/dist/ezui/p-dc8b36c3.entry.js +1 -0
  261. package/dist/ezui/p-dd48941c.entry.js +309 -0
  262. package/dist/ezui/{p-9aa27e69.entry.js → p-e347df9c.entry.js} +1 -1
  263. package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
  264. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  265. package/dist/ezui/p-fec696ab.entry.js +1 -0
  266. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  267. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  268. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -1
  269. package/dist/types/components/ez-date-input/ez-date-input.d.ts +10 -1
  270. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +10 -1
  271. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -0
  272. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  273. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  274. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  275. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  276. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +10 -1
  277. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  278. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  279. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  280. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  281. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +60 -4
  282. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
  283. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +23 -1
  284. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  285. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  286. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  287. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  288. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  289. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  290. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  291. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  292. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  293. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  294. package/dist/types/components/ez-grid/ez-grid.d.ts +37 -1
  295. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  296. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  297. package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
  298. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  299. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  300. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  301. package/dist/types/components/ez-search/ez-search.d.ts +29 -5
  302. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  303. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  304. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  305. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
  306. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  307. package/dist/types/components/ez-text-input/ez-text-input.d.ts +28 -2
  308. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  309. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  310. package/dist/types/components.d.ts +448 -25
  311. package/dist/types/utils/FocusResolver.d.ts +5 -0
  312. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  313. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  314. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  315. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  316. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  317. package/package.json +12 -4
  318. package/react/components.d.ts +2 -0
  319. package/react/components.js +2 -0
  320. package/react/components.js.map +1 -1
  321. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  322. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  323. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  324. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  325. package/dist/esm/ez-card-item_3.entry.js +0 -177
  326. package/dist/esm/ez-skeleton.entry.js +0 -63
  327. package/dist/ezui/p-04f24913.js +0 -1
  328. package/dist/ezui/p-11b09aa1.entry.js +0 -1
  329. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  330. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  331. package/dist/ezui/p-31674f8e.entry.js +0 -1
  332. package/dist/ezui/p-33792b2b.entry.js +0 -1
  333. package/dist/ezui/p-33b08253.entry.js +0 -304
  334. package/dist/ezui/p-36180f4d.entry.js +0 -1
  335. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  336. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  337. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  338. package/dist/ezui/p-752c4069.entry.js +0 -1
  339. package/dist/ezui/p-81cffa53.entry.js +0 -1
  340. package/dist/ezui/p-81f99ace.entry.js +0 -1
  341. package/dist/ezui/p-868b56f7.entry.js +0 -1
  342. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  343. package/dist/ezui/p-9634631d.entry.js +0 -1
  344. package/dist/ezui/p-9a11e223.entry.js +0 -1
  345. package/dist/ezui/p-9a23d513.entry.js +0 -1
  346. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  347. package/dist/ezui/p-a35b41e6.entry.js +0 -1
  348. package/dist/ezui/p-acbf0e76.entry.js +0 -1
  349. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  350. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  351. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  352. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  353. package/dist/ezui/p-de870657.entry.js +0 -1
  354. package/dist/ezui/p-e151e795.entry.js +0 -1
  355. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  356. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  357. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -0,0 +1,441 @@
1
+ import { UserInterface, Action, StringUtils, ApplicationContext, WaitingChangeException, DataUnitAction } from '@sankhyalabs/core';
2
+ import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
3
+
4
+ const buildFieldMetadata = (descriptor, config) => {
5
+ let { name, label, group } = Object.assign({}, config);
6
+ let { readOnly, required } = Object.assign({}, config);
7
+ let props;
8
+ let userInterface;
9
+ if (descriptor) {
10
+ label = label || descriptor.label;
11
+ name = name || descriptor.name;
12
+ required = descriptor.required || (config === null || config === void 0 ? void 0 : config.required);
13
+ readOnly = descriptor.readOnly || (config === null || config === void 0 ? void 0 : config.readOnly);
14
+ props = descriptor.properties;
15
+ userInterface = descriptor.userInterface;
16
+ }
17
+ return {
18
+ name, label, group,
19
+ readOnly, required,
20
+ props,
21
+ userInterface: userInterface || UserInterface.SHORTTEXT,
22
+ };
23
+ };
24
+
25
+ class RecordValidationProcessor {
26
+ constructor(dataUnit, validationSource, validator) {
27
+ this._dataUnit = dataUnit;
28
+ this._validationSource = validationSource;
29
+ this._validator = validator;
30
+ }
31
+ validate(isSaving = true) {
32
+ return new Promise((accept, reject) => {
33
+ const records = this._dataUnit.getModifiedRecords();
34
+ for (let i = 0; i < records.length; i++) {
35
+ const record = records[i];
36
+ const invalidResults = [];
37
+ let validationResult = this.validateRequired(record);
38
+ if (validationResult && !validationResult.isValid) {
39
+ invalidResults.push(validationResult);
40
+ }
41
+ if (this._validator) {
42
+ validationResult = this._validator.validateRecord(record);
43
+ if (validationResult && !validationResult.isValid) {
44
+ invalidResults.push(validationResult);
45
+ }
46
+ }
47
+ if (invalidResults.length > 0) {
48
+ if (!isSaving && invalidResults[0].invalidFields.length > 0) {
49
+ this._validationSource.markAsInvalid(invalidResults[0].invalidFields[0], record.__record__id__);
50
+ reject();
51
+ break;
52
+ }
53
+ this.processValidationResult(invalidResults, record.__record__id__);
54
+ reject();
55
+ break;
56
+ }
57
+ }
58
+ return accept();
59
+ });
60
+ }
61
+ validateRequired(record) {
62
+ const requiredFields = this._validationSource.getRequiredFields();
63
+ const invalidFields = [];
64
+ new Set(requiredFields).forEach(field => {
65
+ const value = record[field];
66
+ if (value == undefined || value === "") {
67
+ const errorMessage = this._validationSource.getMessageForField(field, record.__record__id__);
68
+ if (errorMessage) {
69
+ invalidFields.push({ name: field, message: errorMessage });
70
+ }
71
+ else {
72
+ invalidFields.push({ name: field, message: "Essa informação é obrigatória" });
73
+ }
74
+ }
75
+ });
76
+ if (invalidFields.length > 0) {
77
+ return { isValid: false, invalidFields, infoMessage: "Há pelo menos um campo obrigatório não preenchido." };
78
+ }
79
+ return undefined;
80
+ }
81
+ processValidationResult(validationResult, recordId) {
82
+ validationResult.forEach(invalidResult => {
83
+ const invalidFields = invalidResult.invalidFields;
84
+ this._dataUnit.savingCanceled(invalidFields, recordId);
85
+ if (invalidFields) {
86
+ invalidFields.forEach(field => {
87
+ this.markAsInvalid(field, recordId);
88
+ });
89
+ }
90
+ if (invalidResult.infoMessage) {
91
+ ApplicationUtils.info(invalidResult.infoMessage);
92
+ }
93
+ if (invalidResult.errorMessage) {
94
+ const { errorTitle, errorMessage } = invalidResult;
95
+ ApplicationUtils.error(errorTitle, errorMessage);
96
+ }
97
+ });
98
+ }
99
+ markAsInvalid(field, recordId) {
100
+ this._dataUnit.setInvalidField(field.name, field.message, recordId);
101
+ this._validationSource.markAsInvalid(field, recordId);
102
+ }
103
+ }
104
+
105
+ class DataBinder {
106
+ constructor(dataUnit) {
107
+ this.onDataUnitEvent = (action) => {
108
+ var _a, _b;
109
+ switch (action.type) {
110
+ case Action.DATA_LOADED:
111
+ case Action.DATA_SAVED:
112
+ case Action.RECORDS_REMOVED:
113
+ case Action.RECORDS_ADDED:
114
+ case Action.RECORDS_COPIED:
115
+ case Action.EDITION_CANCELED:
116
+ case Action.SELECTION_CHANGED:
117
+ case Action.NEXT_SELECTED:
118
+ case Action.PREVIOUS_SELECTED:
119
+ this.clearInvalid();
120
+ case Action.DATA_CHANGED:
121
+ case Action.CHANGE_UNDONE:
122
+ case Action.CHANGE_REDONE:
123
+ case Action.RECORD_LOADED:
124
+ (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
125
+ this.updateValue(field.fieldName, field.field);
126
+ });
127
+ this.clearFieldError(Object.keys(action.payload)[0]);
128
+ break;
129
+ case Action.FIELD_INVALIDATED:
130
+ (_b = this._fields) === null || _b === void 0 ? void 0 : _b.forEach(field => {
131
+ this.updateErrorMessage(field.fieldName, field.field);
132
+ });
133
+ break;
134
+ }
135
+ };
136
+ this._uuid = StringUtils.generateUUID();
137
+ this._fields = new Map();
138
+ this._dataUnit = dataUnit;
139
+ this.applyDefaultValues();
140
+ this._dataUnit.subscribe(this.onDataUnitEvent);
141
+ this._dataUnit.addInterceptor(this);
142
+ this.setContextDataBinder(dataUnit);
143
+ }
144
+ get dataBinderId() {
145
+ return this._uuid;
146
+ }
147
+ setContextDataBinder(dataUnit) {
148
+ const dataBindersByDataUnit = ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__") || new Map();
149
+ const dataBinders = [...(dataBindersByDataUnit.get(dataUnit.dataUnitId) || []), this];
150
+ dataBindersByDataUnit.set(dataUnit.dataUnitId, dataBinders);
151
+ ApplicationContext.setContextValue("__DATABINDER_BY_DATAUNIT__", dataBindersByDataUnit);
152
+ }
153
+ applyDefaultValues() {
154
+ const recordIds = (this._dataUnit.getAddedRecords() || []).map(r => r.__record__id__);
155
+ if (recordIds.length > 0) {
156
+ const defaultValues = this.getDefaultValues();
157
+ if (defaultValues) {
158
+ Object.keys(defaultValues).forEach(field => {
159
+ this._dataUnit.setFieldValue(field, defaultValues[field], recordIds);
160
+ });
161
+ }
162
+ }
163
+ }
164
+ bind(fields, currentContextName, formMetadata, recordsValidator) {
165
+ fields.forEach(fieldElement => {
166
+ const { fieldName, contextName } = fieldElement.dataset;
167
+ if (contextName == undefined || contextName === currentContextName) {
168
+ this.updateBind(fieldName, fieldElement);
169
+ }
170
+ });
171
+ this._formMetadata = formMetadata;
172
+ this._recordValidatorProcessor = new RecordValidationProcessor(this._dataUnit, {
173
+ getRequiredFields: () => this.getFormRequiredFields(),
174
+ markAsInvalid: field => this.markInvalid(field),
175
+ getMessageForField: field => this.getErrorMessage(field),
176
+ }, recordsValidator);
177
+ }
178
+ getFormRequiredFields() {
179
+ return this._formMetadata.getRequiredFields();
180
+ }
181
+ disconnectDataUnit() {
182
+ const dataBindersByDataUnit = ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__") || new Map();
183
+ const dataBinders = dataBindersByDataUnit.get(this._dataUnit.dataUnitId);
184
+ const dataBindersFiltered = dataBinders.filter((dataBinder) => dataBinder.dataBinderId !== this.dataBinderId);
185
+ dataBindersByDataUnit.set(this._dataUnit.dataUnitId, dataBindersFiltered);
186
+ ApplicationContext.setContextValue("__DATABINDER_BY_DATAUNIT__", dataBindersByDataUnit);
187
+ }
188
+ onDisconnectedCallback() {
189
+ this._dataUnit.unsubscribe(this.onDataUnitEvent);
190
+ this._dataUnit.removeInterceptor(this);
191
+ this.disconnectDataUnit();
192
+ }
193
+ getCurrentRecordId() {
194
+ const record = this._dataUnit.getSelectedRecord();
195
+ return record === null || record === void 0 ? void 0 : record.__record__id__;
196
+ }
197
+ markInvalid(field) {
198
+ if (this._fields.has(field.name)) {
199
+ const fieldElement = this._fields.get(field.name).field;
200
+ this.updateErrorMessage(field.name, fieldElement, field.message);
201
+ }
202
+ }
203
+ setFocus(fieldName) {
204
+ if (!this._fields.has(fieldName)) {
205
+ return;
206
+ }
207
+ const fieldElement = this._fields.get(fieldName).field;
208
+ if (typeof fieldElement["setFocus"] != "function") {
209
+ return;
210
+ }
211
+ fieldElement["setFocus"]();
212
+ }
213
+ clearInvalid(recordId) {
214
+ this._dataUnit.clearInvalid(recordId);
215
+ this._fields.forEach(fieldBinder => {
216
+ const fieldElement = fieldBinder.field;
217
+ fieldElement["errorMessage"] = "";
218
+ });
219
+ }
220
+ clearFieldError(fieldName) {
221
+ var _a;
222
+ const field = (_a = this._fields.get(fieldName)) === null || _a === void 0 ? void 0 : _a.field;
223
+ if (field["errorMessage"]) {
224
+ field["errorMessage"] = "";
225
+ this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
226
+ }
227
+ }
228
+ updateValue(fieldName, field) {
229
+ const bind = this._fields.get(fieldName);
230
+ try {
231
+ if (bind) {
232
+ bind.listen = false;
233
+ }
234
+ field["value"] = this._dataUnit.getFieldValue(fieldName);
235
+ this.updateErrorMessage(fieldName, field);
236
+ }
237
+ finally {
238
+ if (bind) {
239
+ bind.listen = true;
240
+ }
241
+ }
242
+ }
243
+ validate() {
244
+ return this._recordValidatorProcessor.validate();
245
+ }
246
+ static async validateByDataunit(dataUnit) {
247
+ try {
248
+ const dataBinders = this.getDataBindersByDataUnit(dataUnit);
249
+ await Promise.all(dataBinders.map((dataBinder) => dataBinder.validate()));
250
+ return true;
251
+ }
252
+ catch (_a) {
253
+ return false;
254
+ }
255
+ }
256
+ static getDataBindersByDataUnit(dataUnit) {
257
+ const dataBindersByDataUnit = ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__");
258
+ return (dataBindersByDataUnit === null || dataBindersByDataUnit === void 0 ? void 0 : dataBindersByDataUnit.get(dataUnit.dataUnitId)) || [];
259
+ }
260
+ updateErrorMessage(fieldName, field, message) {
261
+ if (message == undefined) {
262
+ message = this._dataUnit.getInvalidMessage(this.getCurrentRecordId(), fieldName);
263
+ }
264
+ if (!field["errorMessage"]) {
265
+ field["errorMessage"] = message;
266
+ }
267
+ }
268
+ getErrorMessage(fieldName) {
269
+ if (this._fields.has(fieldName)) {
270
+ const fieldElement = this._fields.get(fieldName).field;
271
+ return fieldElement["errorMessage"];
272
+ }
273
+ return undefined;
274
+ }
275
+ updateBind(fieldName, field) {
276
+ const oldBind = this._fields.get(fieldName);
277
+ if (oldBind) {
278
+ oldBind.destroy();
279
+ }
280
+ this.bindSearchOptionsLoader(fieldName, field);
281
+ field["value"] = this._dataUnit.getFieldValue(fieldName);
282
+ this.updateErrorMessage(fieldName, field);
283
+ this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, waitingChange) => this.changeStarted(fieldName, waitingChange), (fieldName) => this.cancelWaitingChange(fieldName), (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
284
+ this.applyEzUploadContext(fieldName, field);
285
+ }
286
+ changeStarted(fieldName, waitingChange) {
287
+ /**
288
+ * se o waitingChange não é blocante, add um event listener pra
289
+ * fazer o accept da promise
290
+ *
291
+ * se não tiver promise no waitingChange, eu crio uma e resolvo no bind
292
+ *
293
+ *
294
+ */
295
+ if (this._dataUnit.records.length === 0) {
296
+ this._dataUnit.addRecord();
297
+ }
298
+ if (!waitingChange.blocking && waitingChange.promise == undefined) {
299
+ const bind = this._fields.get(fieldName);
300
+ if (bind) {
301
+ waitingChange.promise = new Promise((resolve, reject) => {
302
+ bind.waitingChangePromiseResolve = resolve;
303
+ bind.waitingChangePromiseReject = reject;
304
+ });
305
+ }
306
+ }
307
+ this._dataUnit.startChange(fieldName, waitingChange);
308
+ }
309
+ cancelWaitingChange(fieldName) {
310
+ if (this._dataUnit.waitingForChange(fieldName)) {
311
+ this._dataUnit.cancelWaitingChange(fieldName);
312
+ const bind = this._fields.get(fieldName);
313
+ if (bind) {
314
+ bind.rejectWaitingChange(new WaitingChangeException("Change canceled", fieldName));
315
+ }
316
+ }
317
+ }
318
+ setFieldValue(fieldName, newValue) {
319
+ if (this._dataUnit.records.length === 0) {
320
+ this._dataUnit.addRecord();
321
+ }
322
+ this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
323
+ const record = this._dataUnit.getSelectedRecord();
324
+ this._dataUnit.setFieldValue(fieldName, newValue, record ? [record.__record__id__] : undefined);
325
+ if (this._dataUnit.waitingForChange(fieldName)) {
326
+ const bind = this._fields.get(fieldName);
327
+ if (bind) {
328
+ bind.acceptWaitingChange();
329
+ }
330
+ }
331
+ }
332
+ bindSearchOptionsLoader(fieldName, field) {
333
+ if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
334
+ const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
335
+ if (loader) {
336
+ field["optionLoader"] = (arg) => {
337
+ return loader(arg, fieldName, this._dataUnit);
338
+ };
339
+ }
340
+ }
341
+ }
342
+ applyEzUploadContext(fieldName, field) {
343
+ var _a, _b;
344
+ if (field.nodeName === "EZ-UPLOAD") {
345
+ field["urlUpload"] = ApplicationContext.getContextValue("__EZUI__UPLOAD__ADD__URL__");
346
+ field["urlDelete"] = ApplicationContext.getContextValue("__EZUI__UPLOAD__DEL__URL__");
347
+ const descriptor = this._dataUnit.getField(fieldName);
348
+ const destination = (_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.DESTINATION;
349
+ if (destination) {
350
+ field["requestHeaders"] = { XTRAINF: `{"destination": "${destination}"}` };
351
+ }
352
+ field["maxFiles"] = ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.MAX_FILES) || 0;
353
+ }
354
+ }
355
+ interceptAction(action) {
356
+ if (action.type === Action.RECORDS_COPIED) {
357
+ const cleanFields = this._formMetadata.getCleanOnCopyFields();
358
+ if (cleanFields) {
359
+ const records = action.payload;
360
+ return new DataUnitAction(Action.RECORDS_COPIED, records.map(record => {
361
+ const newRecord = Object.assign({}, record);
362
+ cleanFields.forEach(fieldName => delete newRecord[fieldName]);
363
+ return newRecord;
364
+ }));
365
+ }
366
+ }
367
+ if (action.type === Action.SAVING_DATA) {
368
+ return new Promise((resolve) => {
369
+ this.validate()
370
+ .then(() => resolve(action))
371
+ .catch(() => { });
372
+ });
373
+ }
374
+ if (action.type === Action.RECORDS_ADDED) {
375
+ const defaultValues = this.getDefaultValues();
376
+ if (defaultValues) {
377
+ const records = action.payload;
378
+ return new DataUnitAction(Action.RECORDS_ADDED, records.map(record => {
379
+ return Object.assign(Object.assign({}, record), defaultValues);
380
+ }));
381
+ }
382
+ }
383
+ return action;
384
+ }
385
+ getDefaultValues() {
386
+ var _a;
387
+ const rawDefaultValues = (_a = this._formMetadata) === null || _a === void 0 ? void 0 : _a.getDefaultValues();
388
+ if (rawDefaultValues) {
389
+ const defaultValues = {};
390
+ for (const field in rawDefaultValues) {
391
+ defaultValues[field] = this._dataUnit.valueFromString(field, rawDefaultValues[field]);
392
+ }
393
+ return defaultValues;
394
+ }
395
+ return undefined;
396
+ }
397
+ }
398
+ class Bind {
399
+ constructor() {
400
+ this.listen = true;
401
+ this.startChangeEventName = "ezStartChange";
402
+ this.cancelWaitingChangeEventName = "ezCancelWaitingChange";
403
+ this.changeEventName = "ezChange";
404
+ }
405
+ destroy() {
406
+ this.field.removeEventListener(this.startChangeEventName, this.startChangeListener);
407
+ this.field.removeEventListener(this.cancelWaitingChangeEventName, this.cancelWaitingChangeListener);
408
+ this.field.removeEventListener(this.changeEventName, this.changeListener);
409
+ }
410
+ acceptWaitingChange() {
411
+ if (this.waitingChangePromiseResolve) {
412
+ this.waitingChangePromiseResolve();
413
+ this.waitingChangePromiseReject = undefined;
414
+ this.waitingChangePromiseResolve = undefined;
415
+ }
416
+ }
417
+ rejectWaitingChange(reason) {
418
+ if (this.waitingChangePromiseReject) {
419
+ this.waitingChangePromiseReject(reason);
420
+ this.waitingChangePromiseReject = undefined;
421
+ this.waitingChangePromiseResolve = undefined;
422
+ }
423
+ }
424
+ static create(fieldName, field, startChangeCallback, cancelWaitingChangeCallback, changeCallback) {
425
+ const b = new Bind();
426
+ b.field = field;
427
+ b.fieldName = fieldName;
428
+ b.startChangeListener = (evt) => { if (b.listen)
429
+ startChangeCallback(fieldName, evt.detail); };
430
+ b.field.addEventListener(b.startChangeEventName, b.startChangeListener);
431
+ b.cancelWaitingChangeListener = () => { if (b.listen)
432
+ cancelWaitingChangeCallback(fieldName); };
433
+ b.field.addEventListener(b.cancelWaitingChangeEventName, b.cancelWaitingChangeListener);
434
+ b.changeListener = (evt) => { if (b.listen)
435
+ changeCallback(fieldName, evt.detail); };
436
+ b.field.addEventListener(b.changeEventName, b.changeListener);
437
+ return b;
438
+ }
439
+ }
440
+
441
+ export { DataBinder as D, RecordValidationProcessor as R, buildFieldMetadata as b };
@@ -0,0 +1,33 @@
1
+ class FocusResolver {
2
+ static resolveFocus(element, selectText = true) {
3
+ var _a;
4
+ if (!element)
5
+ return;
6
+ (_a = element.focus) === null || _a === void 0 ? void 0 : _a.call(element);
7
+ if (element.setFocus) {
8
+ element.setFocus({ selectText });
9
+ return;
10
+ }
11
+ this.resolveFocusOnChild(element, selectText);
12
+ }
13
+ static resolveFocusOnChild(element, selectText = true) {
14
+ var _a, _b;
15
+ if (this.isGridCell(element) && element.firstElementChild) {
16
+ this.resolveFocusOnChild(element.firstElementChild);
17
+ return;
18
+ }
19
+ if (!element || !element.classList.contains('hydrated'))
20
+ return;
21
+ const firstChild = element.firstElementChild;
22
+ if (!(firstChild === null || firstChild === void 0 ? void 0 : firstChild.focus) && !(firstChild === null || firstChild === void 0 ? void 0 : firstChild.setFocus))
23
+ return;
24
+ (_a = firstChild === null || firstChild === void 0 ? void 0 : firstChild.focus) === null || _a === void 0 ? void 0 : _a.call(firstChild);
25
+ (_b = firstChild === null || firstChild === void 0 ? void 0 : firstChild.setFocus) === null || _b === void 0 ? void 0 : _b.call(firstChild, { selectText });
26
+ }
27
+ static isGridCell(element) {
28
+ var _a;
29
+ return ((_a = element === null || element === void 0 ? void 0 : element.getAttribute) === null || _a === void 0 ? void 0 : _a.call(element, "role")) === 'gridcell';
30
+ }
31
+ }
32
+
33
+ export { FocusResolver as F };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import './ApplicationUtils-eaf91331.js';
4
4
  import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
@@ -95,8 +95,9 @@ const EzActionsButton = class {
95
95
  var _a;
96
96
  const docWidth = document.body.clientWidth;
97
97
  const boundingList = (_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
98
- if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) > docWidth) {
99
- return (docWidth - boundingList.width) + "px";
98
+ const rightOffset = docWidth - this._button.getBoundingClientRect().right;
99
+ if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) >= docWidth || (boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) === (docWidth - rightOffset)) {
100
+ return (docWidth - boundingList.width - rightOffset) + "px";
100
101
  }
101
102
  return;
102
103
  }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5a720e56.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
4
  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";
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5a720e56.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
4
  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)}";
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-5a720e56.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-baa5e267.js';
2
2
 
3
3
  const ezApplicationCss = "";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5a720e56.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
4
  var Sizes;
@@ -1,4 +1,4 @@
1
- import { h, r as registerInstance, c as createEvent, g as getElement } from './index-5a720e56.js';
1
+ import { h, r as registerInstance, c as createEvent, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils, ObjectUtils, JSUtils } from '@sankhyalabs/core';
3
3
 
4
4
  const BreadcrumbItem = (props) => {
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, g as getElement } from './index-5a720e56.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
- 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}";
4
+ 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}";
5
5
 
6
6
  const EzButton = class {
7
7
  constructor(hostRef) {
@@ -39,10 +39,16 @@ const EzButton = class {
39
39
  ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
40
40
  }
41
41
  }
42
+ getButtonSize(sizeParam = "medium") {
43
+ const sizeList = ["x-small", "small", "medium", "large"];
44
+ const sizeLowerCase = this.size && this.size.toLowerCase();
45
+ return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
46
+ }
42
47
  getIconSize(sizeParam = "medium") {
43
48
  const sizeList = ["small", "medium", "large"];
44
49
  const sizeLowerCase = this.size && this.size.toLowerCase();
45
- return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
50
+ const sizeMapped = sizeLowerCase === "x-small" ? "small" : sizeLowerCase;
51
+ return sizeList.includes(sizeMapped) ? sizeMapped : sizeParam;
46
52
  }
47
53
  handleSlotChange(ev) {
48
54
  const slot = ev.target;
@@ -64,16 +70,16 @@ const EzButton = class {
64
70
  }
65
71
  render() {
66
72
  if (this.mode == "icon") {
67
- return (h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
73
+ return (h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
68
74
  }
69
75
  else if (this.mode == "label-icon") {
70
- return (h("div", { class: "label-icon" }, h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), h("label", { title: this.label }, this.label)));
76
+ return (h("div", { class: "label-icon" }, h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), h("label", { title: this.label }, this.label)));
71
77
  }
72
78
  else if (this.mode == "link") {
73
79
  return (h("a", { class: `${this.getIconSize()} ${!this.enabled ? "disabled" : ""}`, ref: (el) => this._button = el }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
74
80
  }
75
81
  else {
76
- return (h("button", { class: this.getIconSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
82
+ return (h("button", { class: this.getButtonSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
77
83
  }
78
84
  }
79
85
  get _element() { return getElement(this); }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-5a720e56.js';
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
2
2
  import { FloatingManager } from '@sankhyalabs/core';
3
3
 
4
4
  const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";