@sankhyalabs/ezui 5.22.0-dev.8 → 5.22.0-dev.81

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 (370) 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 +14862 -69697
  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 -2
  34. package/dist/cjs/ez-modal.cjs.entry.js +20 -5
  35. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
  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 +109 -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 +3 -3
  58. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +19 -8
  59. package/dist/cjs/loader.cjs.js +2 -2
  60. package/dist/collection/collection-manifest.json +3 -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 +13 -1
  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.js +35 -4
  81. package/dist/collection/components/ez-form/ez-form.js +1 -0
  82. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  83. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  84. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  93. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +292 -63
  94. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
  95. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  96. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  97. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  98. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  103. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  104. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  105. package/dist/collection/components/ez-grid/ez-grid.css +47 -8
  106. package/dist/collection/components/ez-grid/ez-grid.js +280 -9
  107. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  108. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
  109. package/dist/collection/components/ez-icon/ez-icon.css +155 -149
  110. package/dist/collection/components/ez-list/ez-list.css +2 -1
  111. package/dist/collection/components/ez-list/ez-list.js +301 -212
  112. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  113. package/dist/collection/components/ez-modal/ez-modal.css +5 -1
  114. package/dist/collection/components/ez-modal/ez-modal.js +38 -5
  115. package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
  116. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -3
  117. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  118. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  119. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  120. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  121. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  122. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  123. package/dist/collection/components/ez-search/ez-search.css +21 -10
  124. package/dist/collection/components/ez-search/ez-search.js +192 -53
  125. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  126. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  127. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
  128. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  129. package/dist/collection/components/ez-split-button/ez-split-button.css +50 -14
  130. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  131. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  132. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  133. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  134. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  135. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  136. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  137. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  138. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  139. package/dist/collection/components/ez-text-input/ez-text-input.js +166 -15
  140. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  141. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  142. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  143. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  144. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  145. package/dist/collection/sw.js +46 -0
  146. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  147. package/dist/collection/utils/FocusResolver.js +31 -0
  148. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  149. package/dist/collection/utils/form/DataBinder.js +22 -7
  150. package/dist/collection/utils/form/FormMetadata.js +2 -1
  151. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  152. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  153. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  154. package/dist/custom-elements/index.d.ts +12 -0
  155. package/dist/custom-elements/index.js +16490 -70289
  156. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  157. package/dist/esm/DataBinder-9c877244.js +441 -0
  158. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  159. package/dist/esm/ez-actions-button.entry.js +5 -4
  160. package/dist/esm/ez-alert-list.entry.js +1 -1
  161. package/dist/esm/ez-alert.entry.js +1 -1
  162. package/dist/esm/ez-application.entry.js +1 -1
  163. package/dist/esm/ez-badge.entry.js +1 -1
  164. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  165. package/dist/esm/ez-button.entry.js +12 -6
  166. package/dist/esm/ez-calendar.entry.js +1 -1
  167. package/dist/esm/ez-card-item_2.entry.js +71 -0
  168. package/dist/esm/ez-chart.entry.js +1 -1
  169. package/dist/esm/ez-check.entry.js +2 -2
  170. package/dist/esm/ez-chip.entry.js +1 -1
  171. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  172. package/dist/esm/ez-combo-box.entry.js +69 -16
  173. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  174. package/dist/esm/ez-date-input.entry.js +14 -5
  175. package/dist/esm/ez-date-time-input.entry.js +11 -5
  176. package/dist/esm/ez-dialog.entry.js +16 -9
  177. package/dist/esm/ez-double-list.entry.js +283 -0
  178. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  179. package/dist/esm/ez-file-item.entry.js +1 -1
  180. package/dist/esm/ez-filter-input.entry.js +125 -0
  181. package/dist/esm/ez-form-view.entry.js +29 -22
  182. package/dist/esm/ez-form.entry.js +6 -325
  183. package/dist/esm/ez-grid.entry.js +14892 -69727
  184. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  185. package/dist/esm/ez-icon.entry.js +2 -2
  186. package/dist/esm/ez-list.entry.js +259 -212
  187. package/dist/esm/ez-loading-bar.entry.js +1 -1
  188. package/dist/esm/ez-modal-container.entry.js +3 -2
  189. package/dist/esm/ez-modal.entry.js +20 -5
  190. package/dist/esm/ez-multi-selection-list.entry.js +3 -3
  191. package/dist/esm/ez-number-input.entry.js +16 -4
  192. package/dist/esm/ez-popover.entry.js +1 -1
  193. package/dist/esm/ez-popup.entry.js +25 -3
  194. package/dist/esm/ez-radio-button.entry.js +1 -1
  195. package/dist/esm/ez-scroller_2.entry.js +4 -4
  196. package/dist/esm/ez-search.entry.js +109 -49
  197. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  198. package/dist/esm/ez-split-button.entry.js +3 -3
  199. package/dist/esm/ez-split-item.entry.js +7 -4
  200. package/dist/esm/ez-split-panel.entry.js +69 -7
  201. package/dist/esm/ez-tabselector.entry.js +1 -1
  202. package/dist/esm/ez-text-area.entry.js +69 -7
  203. package/dist/esm/ez-text-input.entry.js +153 -17
  204. package/dist/esm/ez-time-input.entry.js +8 -2
  205. package/dist/esm/ez-toast.entry.js +1 -1
  206. package/dist/esm/ez-tooltip.entry.js +51 -0
  207. package/dist/esm/ez-tree.entry.js +6 -5
  208. package/dist/esm/ez-upload.entry.js +1 -1
  209. package/dist/esm/ez-view-stack.entry.js +1 -1
  210. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  211. package/dist/esm/ezui.js +3 -3
  212. package/dist/esm/filter-column.entry.js +3 -3
  213. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +19 -9
  214. package/dist/esm/loader.js +3 -3
  215. package/dist/ezui/ezui.esm.js +1 -1
  216. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  217. package/dist/ezui/p-03b0ed5a.entry.js +1 -0
  218. package/dist/ezui/p-043b97b5.entry.js +1 -0
  219. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  220. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  221. package/dist/ezui/p-2069c78a.entry.js +1 -0
  222. package/dist/ezui/p-24b42f3d.entry.js +1 -0
  223. package/dist/ezui/p-2f53435e.entry.js +1 -0
  224. package/dist/ezui/p-3791d9c8.entry.js +1 -0
  225. package/dist/ezui/p-3af64edd.entry.js +1 -0
  226. package/dist/ezui/p-44b39e81.entry.js +1 -0
  227. package/dist/ezui/p-4818b8ce.entry.js +1 -0
  228. package/dist/ezui/p-4f7d3e72.entry.js +1 -0
  229. package/dist/ezui/p-5010315a.entry.js +1 -0
  230. package/dist/ezui/p-554522db.entry.js +1 -0
  231. package/dist/ezui/p-5548c9ab.entry.js +1 -0
  232. package/dist/ezui/p-68b2e579.entry.js +1 -0
  233. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  234. package/dist/ezui/p-6bda82d1.entry.js +1 -0
  235. package/dist/ezui/p-6d31c43c.entry.js +1 -0
  236. package/dist/ezui/p-6d8b3298.entry.js +1 -0
  237. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  238. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  239. package/dist/ezui/p-708b196e.entry.js +1 -0
  240. package/dist/ezui/p-735b7c7e.entry.js +309 -0
  241. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  242. package/dist/ezui/p-80dfc50b.js +1 -0
  243. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  244. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  245. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  246. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  247. package/dist/ezui/p-92fbaf2b.entry.js +1 -0
  248. package/dist/ezui/p-a921e3e7.entry.js +1 -0
  249. package/dist/ezui/p-acddfb2e.js +1 -0
  250. package/dist/ezui/p-b22889ea.entry.js +1 -0
  251. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  252. package/dist/ezui/p-b6241ea3.entry.js +1 -0
  253. package/dist/ezui/p-b858fc6e.entry.js +1 -0
  254. package/dist/ezui/{p-84e439b9.entry.js → p-bef7daac.entry.js} +1 -1
  255. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  256. package/dist/ezui/p-c96fbbef.entry.js +1 -0
  257. package/dist/ezui/p-ca8936df.entry.js +1 -0
  258. package/dist/ezui/p-cf33bc48.entry.js +1 -0
  259. package/dist/ezui/p-d32125d1.entry.js +1 -0
  260. package/dist/ezui/p-dc628ed3.js +1 -0
  261. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  262. package/dist/ezui/p-e18d9e6a.entry.js +1 -0
  263. package/dist/ezui/p-e3f8660b.entry.js +1 -0
  264. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  265. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  266. package/dist/ezui/p-ec7db713.js +1 -0
  267. package/dist/ezui/{p-650e4b6d.entry.js → p-f1c2c19e.entry.js} +1 -1
  268. package/dist/ezui/p-f30e0590.entry.js +1 -0
  269. package/dist/ezui/p-f3e31f9f.entry.js +1 -0
  270. package/dist/ezui/p-f4da7e1e.entry.js +1 -0
  271. package/dist/ezui/{p-baf80b13.entry.js → p-fad4f1dd.entry.js} +1 -1
  272. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  273. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  274. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  275. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -1
  276. package/dist/types/components/ez-date-input/ez-date-input.d.ts +6 -1
  277. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +6 -1
  278. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  279. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  280. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  281. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  282. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  283. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  284. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  285. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  286. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  287. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  288. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
  289. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
  290. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
  291. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  292. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  293. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  294. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  295. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  296. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  297. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  298. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  299. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  300. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  301. package/dist/types/components/ez-grid/ez-grid.d.ts +49 -1
  302. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  303. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  304. package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
  305. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  306. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  307. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  308. package/dist/types/components/ez-search/ez-search.d.ts +30 -6
  309. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  310. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  311. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  312. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  313. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  314. package/dist/types/components/ez-text-input/ez-text-input.d.ts +24 -2
  315. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  316. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  317. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  318. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  319. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  320. package/dist/types/components.d.ts +422 -27
  321. package/dist/types/utils/FocusResolver.d.ts +5 -0
  322. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  323. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  324. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  325. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  326. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  327. package/package.json +12 -4
  328. package/react/components.d.ts +2 -0
  329. package/react/components.js +2 -0
  330. package/react/components.js.map +1 -1
  331. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  332. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  333. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  334. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  335. package/dist/esm/ez-card-item_3.entry.js +0 -177
  336. package/dist/esm/ez-skeleton.entry.js +0 -63
  337. package/dist/ezui/p-04f24913.js +0 -1
  338. package/dist/ezui/p-072e6347.entry.js +0 -1
  339. package/dist/ezui/p-1285c902.entry.js +0 -1
  340. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  341. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  342. package/dist/ezui/p-30775e7f.entry.js +0 -1
  343. package/dist/ezui/p-32e553e5.entry.js +0 -304
  344. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  345. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  346. package/dist/ezui/p-49456b34.entry.js +0 -1
  347. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  348. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  349. package/dist/ezui/p-784fe207.entry.js +0 -1
  350. package/dist/ezui/p-7922142b.entry.js +0 -1
  351. package/dist/ezui/p-7af81663.entry.js +0 -1
  352. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  353. package/dist/ezui/p-85c8baae.entry.js +0 -1
  354. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  355. package/dist/ezui/p-8f0144f6.entry.js +0 -1
  356. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  357. package/dist/ezui/p-922ac38b.entry.js +0 -1
  358. package/dist/ezui/p-9ab22a07.entry.js +0 -1
  359. package/dist/ezui/p-9e11fc7b.js +0 -1
  360. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  361. package/dist/ezui/p-af95cd16.entry.js +0 -1
  362. package/dist/ezui/p-bae4e180.entry.js +0 -1
  363. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  364. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  365. package/dist/ezui/p-bf79aaa1.entry.js +0 -1
  366. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  367. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  368. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  369. package/dist/ezui/p-f3c526cc.entry.js +0 -1
  370. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
2
2
  import { StringUtils } from '@sankhyalabs/core';
3
3
 
4
4
  var numeric = function (value, unit) { return Number(value.slice(0, -1 * unit.length)); };
@@ -678,15 +678,17 @@ Grid.prototype.destroy = function destroy (immediate) {
678
678
 
679
679
  function index (options) { return new Grid(options); }
680
680
 
681
- const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}";
681
+ const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}.ez-split-gutter__row{cursor:ns-resize}.ez-split-gutter__column{cursor:ew-resize}.structural__panel{background:none;box-shadow:none;outline:none;padding:0;margin:0;border:0}";
682
682
 
683
683
  const SplitPanel = class {
684
684
  constructor(hostRef) {
685
685
  registerInstance(this, hostRef);
686
+ this.resizeEnd = createEvent(this, "resizeEnd", 7);
686
687
  this._items = [];
687
688
  this._buildInProgress = false;
688
689
  this.direction = 'column';
689
690
  this.anchorToExpand = false;
691
+ this.structural = false;
690
692
  }
691
693
  rebuildLayout() {
692
694
  Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach(el => {
@@ -718,7 +720,7 @@ const SplitPanel = class {
718
720
  this.initSplit();
719
721
  this._mutationObserver = new MutationObserver((mutationsList) => {
720
722
  for (const mutation of mutationsList) {
721
- if (mutation.type === 'childList' && this._buildInProgress === false) {
723
+ if (mutation.type === 'childList' && !this._buildInProgress) {
722
724
  this._buildInProgress = true;
723
725
  window.requestAnimationFrame(() => {
724
726
  this.rebuildLayout();
@@ -741,20 +743,30 @@ const SplitPanel = class {
741
743
  if (!this._items.length) {
742
744
  return;
743
745
  }
744
- this._element.style[this.direction == 'row' ? 'grid-template-rows' : 'grid-template-columns'] = this.getGridTemplate();
746
+ this._element.style[this.direction === 'row' ? 'grid-template-rows' : 'grid-template-columns'] = this.getGridTemplate();
747
+ this.removeGuttersMargin();
745
748
  index(this.getGutters());
746
749
  }
750
+ handlePanelDragEnd() {
751
+ const items = this._items.map(item => ({
752
+ id: item.id,
753
+ height: item.clientHeight,
754
+ width: item.clientWidth,
755
+ }));
756
+ this.resizeEnd.emit({ panelId: this._element.id, items });
757
+ }
747
758
  getGutters() {
748
759
  const gutters = {
749
760
  columnGutters: [],
750
761
  rowGutters: [],
762
+ onDragEnd: () => this.handlePanelDragEnd()
751
763
  };
752
764
  if (!this._items.length) {
753
765
  return gutters;
754
766
  }
755
- const proToChange = this.direction == 'row' ? 'rowGutters' : 'columnGutters';
767
+ const proToChange = this.direction === 'row' ? 'rowGutters' : 'columnGutters';
756
768
  this._items.forEach((item, index) => {
757
- if (index == this._items.length - 1)
769
+ if (index === this._items.length - 1)
758
770
  return;
759
771
  let gutterTrack = item.dataset.trackNumber;
760
772
  if (index === this._items.length - 1) {
@@ -771,6 +783,12 @@ const SplitPanel = class {
771
783
  const gutter = document.createElement('div');
772
784
  gutter.classList.add('ez-split-gutter');
773
785
  gutter.classList.add(this.direction);
786
+ if (this.direction === 'row') {
787
+ gutter.classList.add('ez-split-gutter__row');
788
+ }
789
+ else {
790
+ gutter.classList.add('ez-split-gutter__column');
791
+ }
774
792
  gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
775
793
  gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
776
794
  item.parentNode.insertBefore(gutter, item.nextSibling);
@@ -816,8 +834,52 @@ const SplitPanel = class {
816
834
  });
817
835
  return template;
818
836
  }
837
+ removeGuttersMargin() {
838
+ if (this._items.length <= 1)
839
+ return;
840
+ if (this.direction == "column") {
841
+ this.removeGuttersMarginColumn();
842
+ return;
843
+ }
844
+ if (this.direction == "row") {
845
+ this.removeGuttersMarginRow();
846
+ return;
847
+ }
848
+ }
849
+ removeGuttersMarginColumn() {
850
+ this._items.forEach((item, index) => {
851
+ if (index == 0) {
852
+ item.style.marginRight = "0";
853
+ return;
854
+ }
855
+ if (index === this._items.length - 1) {
856
+ item.style.marginLeft = "0";
857
+ return;
858
+ }
859
+ item.style.marginRight = "0";
860
+ item.style.marginLeft = "0";
861
+ return;
862
+ });
863
+ }
864
+ removeGuttersMarginRow() {
865
+ if (this._items.length <= 1)
866
+ return;
867
+ this._items.forEach((item, index) => {
868
+ if (index == 0) {
869
+ item.style.marginBottom = "0";
870
+ return;
871
+ }
872
+ if (index === this._items.length - 1) {
873
+ item.style.marginTop = "0";
874
+ return;
875
+ }
876
+ item.style.marginBottom = "0";
877
+ item.style.marginTop = "0";
878
+ return;
879
+ });
880
+ }
819
881
  render() {
820
- return h(Host, { style: this.getElementStyle() });
882
+ return h(Host, { class: `${this.structural ? 'structural__panel' : 'content__panel'}`, style: this.getElementStyle() });
821
883
  }
822
884
  get _element() { return getElement(this); }
823
885
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
2
2
  import { ElementIDUtils, StringUtils } from '@sankhyalabs/core';
3
3
 
4
4
  const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon: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>');--tabselector--forward-icon: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>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Roboto\");font-size:var(--title--small, 14px);flex-shrink:0}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}";
@@ -1,12 +1,14 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
- const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--resizable{resize:both}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-ms-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color)}";
4
+ const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes,#DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes,#DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800,#BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800,#BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--resizable{resize:vertical}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}";
5
5
 
6
6
  const EzTextArea = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.ezChange = createEvent(this, "ezChange", 7);
10
+ this.LINE_HEIGHT = 24;
11
+ this.HEIGHT_RATIO = 1.4;
10
12
  this.label = undefined;
11
13
  this.value = undefined;
12
14
  this.enabled = true;
@@ -14,7 +16,9 @@ const EzTextArea = class {
14
16
  this.rows = 4;
15
17
  this.canShowError = true;
16
18
  this.mode = "regular";
17
- this.enableResize = false;
19
+ this.enableResize = true;
20
+ this.autoRows = false;
21
+ this.autoFocus = false;
18
22
  }
19
23
  observeErrorMessage() {
20
24
  var _a, _b, _c, _d;
@@ -52,8 +56,17 @@ const EzTextArea = class {
52
56
  observeRows() {
53
57
  const rows = this.rows > 0 ? this.rows : this.mode != "slim" ? 4 : 2;
54
58
  if (rows !== this.rows) {
55
- this.rows = rows;
56
- this._initialRows = rows;
59
+ this.updateRows(rows);
60
+ }
61
+ }
62
+ observeAutoRows() {
63
+ var _a, _b;
64
+ if (this.autoRows) {
65
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
66
+ this.initializeResizeObserver();
67
+ }
68
+ else {
69
+ (_b = this._resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
57
70
  }
58
71
  }
59
72
  //---------------------------------------------
@@ -122,6 +135,42 @@ const EzTextArea = class {
122
135
  isFocused() {
123
136
  return this._hostElement.shadowRoot.activeElement !== null;
124
137
  }
138
+ updateRows(newRows) {
139
+ this.rows = newRows;
140
+ this._initialRows = newRows;
141
+ }
142
+ calculateMaxRows() {
143
+ const parentElement = this._hostElement.parentElement;
144
+ if (!parentElement) {
145
+ return;
146
+ }
147
+ const height = Math.max((parentElement === null || parentElement === void 0 ? void 0 : parentElement.clientHeight) || 0, this.LINE_HEIGHT);
148
+ if (height > 0) {
149
+ const maxRows = Math.floor(height / this.LINE_HEIGHT * this.HEIGHT_RATIO);
150
+ if (maxRows !== this.rows) {
151
+ this.updateRows(maxRows);
152
+ }
153
+ }
154
+ }
155
+ initializeResizeObserver() {
156
+ if (!this.autoRows) {
157
+ return;
158
+ }
159
+ const parentElement = this._hostElement.parentElement;
160
+ if (parentElement) {
161
+ try {
162
+ if (this._resizeObserver != undefined) {
163
+ this._resizeObserver.unobserve(parentElement);
164
+ }
165
+ this._resizeObserver = new ResizeObserver(this.calculateMaxRows.bind(this));
166
+ this._resizeObserver.observe(parentElement);
167
+ }
168
+ catch (e) {
169
+ console.warn(e);
170
+ }
171
+ this.calculateMaxRows();
172
+ }
173
+ }
125
174
  //---------------------------------------------
126
175
  // Event handlers
127
176
  //---------------------------------------------
@@ -144,6 +193,13 @@ const EzTextArea = class {
144
193
  this._container.classList.add("textarea--focus");
145
194
  }
146
195
  }
196
+ connectedCallback() {
197
+ this.initializeResizeObserver();
198
+ }
199
+ disconnectedCallback() {
200
+ var _a;
201
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
202
+ }
147
203
  //---------------------------------------------
148
204
  // Lifecycle web component
149
205
  //---------------------------------------------
@@ -151,10 +207,15 @@ const EzTextArea = class {
151
207
  this.observeErrorMessage();
152
208
  this.adjustFloatingLabel();
153
209
  this.observeMode();
210
+ if (this.autoFocus) {
211
+ requestAnimationFrame(() => {
212
+ this.setFocus();
213
+ });
214
+ }
154
215
  }
155
216
  render() {
156
217
  ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
157
- return (h(Host, null, h("div", { class: "textarea", ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
218
+ return (h(Host, null, h("div", { class: `textarea ${this.enabled ? "" : "textarea--disabled"}`, ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
158
219
  h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "textarea__label" : "textarea__label textarea__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
159
220
  : null, h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
160
221
  "textarea--slim": this.mode === "slim",
@@ -167,7 +228,8 @@ const EzTextArea = class {
167
228
  "errorMessage": ["observeErrorMessage"],
168
229
  "value": ["observeValue"],
169
230
  "mode": ["observeMode"],
170
- "rows": ["observeRows"]
231
+ "rows": ["observeRows"],
232
+ "autoRows": ["observeAutoRows"]
171
233
  }; }
172
234
  };
173
235
  EzTextArea.style = ezTextAreaCss;
@@ -1,7 +1,34 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
2
2
  import { MaskFormatter, ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
- const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--ez-text-input__input--focus--border-color);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:read-only{cursor:default}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-ms-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:disabled::-webkit-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-ms-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}";
4
+ /**
5
+ * Aplica comportamento de elipses a um input caso o texto ultrapasse o tamanho disponível.
6
+ *
7
+ * @param inputElement A referência ao elemento input (HTMLInputElement).
8
+ */
9
+ const applyEllipsisToInput = (inputElement) => {
10
+ if (!inputElement || !inputElement.style) {
11
+ console.error('[applyEllipsisToInput] Referência ao elemento input é inválida.');
12
+ return;
13
+ }
14
+ inputElement.style.textOverflow = 'ellipsis';
15
+ inputElement.style.overflow = 'hidden';
16
+ inputElement.style.whiteSpace = 'nowrap';
17
+ const adjustEllipsis = () => {
18
+ const value = inputElement.value || '';
19
+ const isOverflowing = inputElement.scrollWidth > inputElement.clientWidth;
20
+ if (isOverflowing) {
21
+ inputElement.setAttribute('title', value);
22
+ }
23
+ else {
24
+ inputElement.removeAttribute('title');
25
+ }
26
+ };
27
+ inputElement.addEventListener('input', adjustEllipsis);
28
+ adjustEllipsis();
29
+ };
30
+
31
+ const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;z-index:var(--elevation--4);border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";
5
32
 
6
33
  const EzTextInput = class {
7
34
  constructor(hostRef) {
@@ -12,23 +39,26 @@ const EzTextInput = class {
12
39
  this.enabled = true;
13
40
  this.errorMessage = undefined;
14
41
  this.mask = undefined;
42
+ this.cleanValueMask = false;
15
43
  this.canShowError = true;
16
44
  this.restrict = undefined;
17
45
  this.mode = "regular";
18
46
  this.noBorder = false;
19
47
  this.password = false;
48
+ this.autoFocus = false;
49
+ this.hasRightSlotContent = false;
20
50
  }
21
51
  observeErrorMessage() {
22
52
  if (this._inputElem) {
23
53
  this.isInvalid().then((hasError) => {
24
- var _a, _b;
54
+ var _a;
25
55
  if (hasError) {
26
56
  this._inputElem.classList.add("hasError");
27
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
57
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.observe(this._inputElem);
28
58
  }
29
59
  else {
30
60
  this._inputElem.classList.remove("hasError");
31
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
61
+ this.removeGlobalTooltip();
32
62
  }
33
63
  });
34
64
  }
@@ -126,7 +156,12 @@ const EzTextInput = class {
126
156
  const value = this._inputElem.value;
127
157
  if (value && this._maskFormatter) {
128
158
  try {
129
- this._inputElem.value = this._maskFormatter.format(value);
159
+ if (this.cleanValueMask) {
160
+ this.applyMask(value);
161
+ }
162
+ else {
163
+ this._inputElem.value = this._maskFormatter.format(value);
164
+ }
130
165
  }
131
166
  catch (e) {
132
167
  this.errorMessage = e.message;
@@ -144,8 +179,34 @@ const EzTextInput = class {
144
179
  }
145
180
  controlChangeValue() {
146
181
  if (this._inputElem && (this.value || '') !== this._inputElem.value) {
147
- this.value = this._inputElem.value;
182
+ if (this.cleanValueMask) {
183
+ this.value = this._maskFormatter.removeMask(this._inputElem.value);
184
+ }
185
+ else {
186
+ this.value = this._inputElem.value;
187
+ }
188
+ }
189
+ }
190
+ applyMask(value) {
191
+ if (!value || value === "")
192
+ return value;
193
+ if (this._maskFormatter) {
194
+ try {
195
+ const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
196
+ if (this._inputElem) {
197
+ this._inputElem.value = formattedValue;
198
+ return this._inputElem.value;
199
+ }
200
+ else {
201
+ this.value = formattedValue;
202
+ return this.value;
203
+ }
204
+ }
205
+ catch (e) {
206
+ this.errorMessage = e.message;
207
+ }
148
208
  }
209
+ return value;
149
210
  }
150
211
  handleChange() {
151
212
  if (!this._inputElem) {
@@ -161,8 +222,10 @@ const EzTextInput = class {
161
222
  this.controlChangeValue();
162
223
  }
163
224
  handleSlotChange(ev) {
225
+ var _a;
164
226
  const slot = ev.target;
165
227
  const content = slot.assignedElements()[0];
228
+ this.hasRightSlotContent = false;
166
229
  if (content) {
167
230
  content.style.position = "absolute";
168
231
  content.style.display = "flex";
@@ -188,6 +251,10 @@ const EzTextInput = class {
188
251
  if (this._labelElem) {
189
252
  this._labelElem.classList.add("input__label--right");
190
253
  }
254
+ if (this._tooltipIconElem) {
255
+ this._tooltipIconElem.classList.add("rightIconSlot");
256
+ }
257
+ this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
191
258
  }
192
259
  slot.name && ElementIDUtils.addIDInfo(content, slot.name);
193
260
  }
@@ -199,21 +266,50 @@ const EzTextInput = class {
199
266
  }
200
267
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
201
268
  }
269
+ renderGlobalTooltip() {
270
+ const tooltip = document.createElement('ez-tooltip');
271
+ tooltip.errorMessage = this.errorMessage;
272
+ tooltip.anchoringElement = this._tooltipIconElem;
273
+ document.body.appendChild(tooltip);
274
+ this._tooltipElem = tooltip;
275
+ }
276
+ removeGlobalTooltip() {
277
+ var _a;
278
+ if (!this._tooltipElem)
279
+ return;
280
+ this._tooltipElem.remove();
281
+ this._tooltipElem = undefined;
282
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this._inputElem);
283
+ }
284
+ createTooltipPositioningObserver() {
285
+ const observer = new ResizeObserver(() => {
286
+ if (!this._tooltipElem)
287
+ return;
288
+ if (!this._tooltipIconElem)
289
+ return;
290
+ clearTimeout(this._observerDebounceTimeout);
291
+ this._observerDebounceTimeout = setTimeout(async () => {
292
+ if (this._tooltipElem) {
293
+ await this._tooltipElem.positionTooltip();
294
+ }
295
+ }, 200);
296
+ });
297
+ this._tooltipPositioningObserver = observer;
298
+ }
202
299
  //---------------------------------------------
203
300
  // Lifecycle web component
204
301
  //---------------------------------------------
205
- componentDidLoad() {
206
- this.observeErrorMessage();
207
- this.observeMask();
208
- this.adjustFloatingLabel();
209
- this.adjustBorderInput();
210
- }
211
302
  componentWillLoad() {
212
303
  this.observeMask();
213
304
  if (this.value) {
214
305
  if (this._maskFormatter) {
215
306
  try {
216
- this.value = this._maskFormatter.format(this.value);
307
+ if (this.cleanValueMask) {
308
+ this.applyMask(this.value);
309
+ }
310
+ else {
311
+ this.value = this._maskFormatter.format(this.value);
312
+ }
217
313
  }
218
314
  catch (e) {
219
315
  this.errorMessage = e.message;
@@ -225,12 +321,52 @@ const EzTextInput = class {
225
321
  }
226
322
  }
227
323
  }
324
+ componentDidLoad() {
325
+ var _a, _b;
326
+ this.observeErrorMessage();
327
+ this.observeMask();
328
+ this.adjustFloatingLabel();
329
+ this.adjustBorderInput();
330
+ if (this.autoFocus) {
331
+ requestAnimationFrame(() => {
332
+ this.setFocus({ selectText: true });
333
+ });
334
+ }
335
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
336
+ var _a;
337
+ this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
338
+ });
339
+ this.createTooltipPositioningObserver();
340
+ if (this._inputElem) {
341
+ (_b = this._tooltipPositioningObserver) === null || _b === void 0 ? void 0 : _b.observe(this._inputElem);
342
+ applyEllipsisToInput(this._inputElem);
343
+ }
344
+ }
345
+ componentDidRender() {
346
+ if (this._tooltipIconElem && !this._tooltipElem) {
347
+ this.renderGlobalTooltip();
348
+ }
349
+ }
350
+ componentDidUpdate() {
351
+ if (this._tooltipIconElem && this._tooltipElem) {
352
+ this._tooltipElem.positionTooltip();
353
+ }
354
+ }
355
+ disconnectedCallback() {
356
+ if (this._tooltipPositioningObserver) {
357
+ this._tooltipPositioningObserver.disconnect();
358
+ }
359
+ if (this._observerDebounceTimeout) {
360
+ clearTimeout(this._observerDebounceTimeout);
361
+ }
362
+ this.removeGlobalTooltip();
363
+ }
228
364
  render() {
229
365
  ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
230
366
  return (h(Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
231
- h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
232
- : null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: this.mode === "slim" ? "input--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
233
- h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
367
+ h("label", { ref: (el) => this._labelElem = el, class: `${this.enabled ? "input__label" : "input__label input__label--disabled"} ${this.errorMessage ? "hasError" : ""}`, onClick: () => this._inputElem.focus(), title: this.label }, this.label)
368
+ : null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: `${this.mode === "slim" ? "input--slim" : ""}`, placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), this.canShowError && this.mode != "slim" && this.errorMessage &&
369
+ h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
234
370
  }
235
371
  get _hostElement() { return getElement(this); }
236
372
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
2
2
  import { TimeFormatter, MaskFormatter, NumberUtils, ElementIDUtils } from '@sankhyalabs/core';
3
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
3
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
4
4
 
5
5
  const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
6
6
 
@@ -17,6 +17,7 @@ const EzTimeInput = class {
17
17
  this.showSeconds = false;
18
18
  this.mode = "regular";
19
19
  this.canShowError = true;
20
+ this.autoFocus = false;
20
21
  }
21
22
  observeErrorMessage() {
22
23
  var _a;
@@ -137,6 +138,11 @@ const EzTimeInput = class {
137
138
  //---------------------------------------------
138
139
  componentDidLoad() {
139
140
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
141
+ if (this.autoFocus) {
142
+ requestAnimationFrame(() => {
143
+ this.setFocus({ selectText: true });
144
+ });
145
+ }
140
146
  }
141
147
  componentWillLoad() {
142
148
  this.observeShowSeconds();
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-baa5e267.js';
1
+ import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-5a720e56.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
4
  const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container--z-index:var(--elevation--100, 100);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__container--left:var(--space--large, 24px);--ez-toast__container--bottom:var(--space--large, 24px);--ez-toast__container--width:400px;--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;box-sizing:border-box;border-radius:6px;align-items:center;padding:12px;visibility:hidden;width:var(--ez-toast__container--width);left:var(--ez-toast__container--left);bottom:var(--ez-toast__container--bottom);z-index:var(--ez-toast__container--z-index);background-color:var(--ez-toast__container--background-color)}.message__container{text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis;font-family:var(--font-pattern, \"Roboto\")}.message__container--icon{width:80%;padding-left:var(--ez-toast__icon--padding-left)}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--opened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{opacity:0;left:calc(var(--ez-toast__container--left) * -1)}to{opacity:1;left:var(--ez-toast__container--left)}}@keyframes fadein{from{opacity:0;left:calc(var(--ez-toast__container--left) * -1)}to{opacity:1;left:var(--ez-toast__container--left)}}@-webkit-keyframes fadeout{from{opacity:1;left:var(--ez-toast__container--left)}to{bottom:0;opacity:0}}@keyframes fadeout{from{opacity:1;left:var(--ez-toast__container--left)}to{bottom:0;opacity:0}}";