@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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  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)}";
@@ -2,15 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- 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)}";
8
+ 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;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%;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: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);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}";
9
9
 
10
10
  const EzTextArea = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.ezChange = index.createEvent(this, "ezChange", 7);
14
+ this.LINE_HEIGHT = 24;
15
+ this.HEIGHT_RATIO = 1.4;
14
16
  this.label = undefined;
15
17
  this.value = undefined;
16
18
  this.enabled = true;
@@ -19,6 +21,8 @@ const EzTextArea = class {
19
21
  this.canShowError = true;
20
22
  this.mode = "regular";
21
23
  this.enableResize = false;
24
+ this.autoRows = false;
25
+ this.autoFocus = false;
22
26
  }
23
27
  observeErrorMessage() {
24
28
  var _a, _b, _c, _d;
@@ -56,8 +60,17 @@ const EzTextArea = class {
56
60
  observeRows() {
57
61
  const rows = this.rows > 0 ? this.rows : this.mode != "slim" ? 4 : 2;
58
62
  if (rows !== this.rows) {
59
- this.rows = rows;
60
- this._initialRows = rows;
63
+ this.updateRows(rows);
64
+ }
65
+ }
66
+ observeAutoRows() {
67
+ var _a, _b;
68
+ if (this.autoRows) {
69
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
70
+ this.initializeResizeObserver();
71
+ }
72
+ else {
73
+ (_b = this._resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
61
74
  }
62
75
  }
63
76
  //---------------------------------------------
@@ -126,6 +139,42 @@ const EzTextArea = class {
126
139
  isFocused() {
127
140
  return this._hostElement.shadowRoot.activeElement !== null;
128
141
  }
142
+ updateRows(newRows) {
143
+ this.rows = newRows;
144
+ this._initialRows = newRows;
145
+ }
146
+ calculateMaxRows() {
147
+ const parentElement = this._hostElement.parentElement;
148
+ if (!parentElement) {
149
+ return;
150
+ }
151
+ const height = Math.max((parentElement === null || parentElement === void 0 ? void 0 : parentElement.clientHeight) || 0, this.LINE_HEIGHT);
152
+ if (height > 0) {
153
+ const maxRows = Math.floor(height / this.LINE_HEIGHT * this.HEIGHT_RATIO);
154
+ if (maxRows !== this.rows) {
155
+ this.updateRows(maxRows);
156
+ }
157
+ }
158
+ }
159
+ initializeResizeObserver() {
160
+ if (!this.autoRows) {
161
+ return;
162
+ }
163
+ const parentElement = this._hostElement.parentElement;
164
+ if (parentElement) {
165
+ try {
166
+ if (this._resizeObserver != undefined) {
167
+ this._resizeObserver.unobserve(parentElement);
168
+ }
169
+ this._resizeObserver = new ResizeObserver(this.calculateMaxRows.bind(this));
170
+ this._resizeObserver.observe(parentElement);
171
+ }
172
+ catch (e) {
173
+ console.warn(e);
174
+ }
175
+ this.calculateMaxRows();
176
+ }
177
+ }
129
178
  //---------------------------------------------
130
179
  // Event handlers
131
180
  //---------------------------------------------
@@ -148,6 +197,13 @@ const EzTextArea = class {
148
197
  this._container.classList.add("textarea--focus");
149
198
  }
150
199
  }
200
+ connectedCallback() {
201
+ this.initializeResizeObserver();
202
+ }
203
+ disconnectedCallback() {
204
+ var _a;
205
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
206
+ }
151
207
  //---------------------------------------------
152
208
  // Lifecycle web component
153
209
  //---------------------------------------------
@@ -155,10 +211,15 @@ const EzTextArea = class {
155
211
  this.observeErrorMessage();
156
212
  this.adjustFloatingLabel();
157
213
  this.observeMode();
214
+ if (this.autoFocus) {
215
+ requestAnimationFrame(() => {
216
+ this.setFocus();
217
+ });
218
+ }
158
219
  }
159
220
  render() {
160
221
  core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
161
- return (index.h(index.Host, null, index.h("div", { class: "textarea", ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
222
+ return (index.h(index.Host, null, index.h("div", { class: `textarea ${this.enabled ? "" : "textarea--disabled"}`, ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
162
223
  index.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)
163
224
  : null, index.h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": core.ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
164
225
  "textarea--slim": this.mode === "slim",
@@ -171,7 +232,8 @@ const EzTextArea = class {
171
232
  "errorMessage": ["observeErrorMessage"],
172
233
  "value": ["observeValue"],
173
234
  "mode": ["observeMode"],
174
- "rows": ["observeRows"]
235
+ "rows": ["observeRows"],
236
+ "autoRows": ["observeAutoRows"]
175
237
  }; }
176
238
  };
177
239
  EzTextArea.style = ezTextAreaCss;
@@ -2,10 +2,37 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- 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)}";
8
+ /**
9
+ * Aplica comportamento de elipses a um input caso o texto ultrapasse o tamanho disponível.
10
+ *
11
+ * @param inputElement A referência ao elemento input (HTMLInputElement).
12
+ */
13
+ const applyEllipsisToInput = (inputElement) => {
14
+ if (!inputElement || !inputElement.style) {
15
+ console.error('[applyEllipsisToInput] Referência ao elemento input é inválida.');
16
+ return;
17
+ }
18
+ inputElement.style.textOverflow = 'ellipsis';
19
+ inputElement.style.overflow = 'hidden';
20
+ inputElement.style.whiteSpace = 'nowrap';
21
+ const adjustEllipsis = () => {
22
+ const value = inputElement.value || '';
23
+ const isOverflowing = inputElement.scrollWidth > inputElement.clientWidth;
24
+ if (isOverflowing) {
25
+ inputElement.setAttribute('title', value);
26
+ }
27
+ else {
28
+ inputElement.removeAttribute('title');
29
+ }
30
+ };
31
+ inputElement.addEventListener('input', adjustEllipsis);
32
+ adjustEllipsis();
33
+ };
34
+
35
+ 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)}";
9
36
 
10
37
  const EzTextInput = class {
11
38
  constructor(hostRef) {
@@ -16,23 +43,27 @@ const EzTextInput = class {
16
43
  this.enabled = true;
17
44
  this.errorMessage = undefined;
18
45
  this.mask = undefined;
46
+ this.cleanValueMask = false;
19
47
  this.canShowError = true;
20
48
  this.restrict = undefined;
21
49
  this.mode = "regular";
22
50
  this.noBorder = false;
23
51
  this.password = false;
52
+ this.autoFocus = false;
53
+ this.noMargin = false;
54
+ this.hasRightSlotContent = false;
24
55
  }
25
56
  observeErrorMessage() {
26
57
  if (this._inputElem) {
27
58
  this.isInvalid().then((hasError) => {
28
- var _a, _b;
59
+ var _a;
29
60
  if (hasError) {
30
61
  this._inputElem.classList.add("hasError");
31
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
62
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.observe(this._inputElem);
32
63
  }
33
64
  else {
34
65
  this._inputElem.classList.remove("hasError");
35
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
66
+ this.removeGlobalTooltip();
36
67
  }
37
68
  });
38
69
  }
@@ -130,7 +161,12 @@ const EzTextInput = class {
130
161
  const value = this._inputElem.value;
131
162
  if (value && this._maskFormatter) {
132
163
  try {
133
- this._inputElem.value = this._maskFormatter.format(value);
164
+ if (this.cleanValueMask) {
165
+ this.applyMask(value);
166
+ }
167
+ else {
168
+ this._inputElem.value = this._maskFormatter.format(value);
169
+ }
134
170
  }
135
171
  catch (e) {
136
172
  this.errorMessage = e.message;
@@ -148,8 +184,34 @@ const EzTextInput = class {
148
184
  }
149
185
  controlChangeValue() {
150
186
  if (this._inputElem && (this.value || '') !== this._inputElem.value) {
151
- this.value = this._inputElem.value;
187
+ if (this.cleanValueMask) {
188
+ this.value = this._maskFormatter.removeMask(this._inputElem.value);
189
+ }
190
+ else {
191
+ this.value = this._inputElem.value;
192
+ }
193
+ }
194
+ }
195
+ applyMask(value) {
196
+ if (!value || value === "")
197
+ return value;
198
+ if (this._maskFormatter) {
199
+ try {
200
+ const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
201
+ if (this._inputElem) {
202
+ this._inputElem.value = formattedValue;
203
+ return this._inputElem.value;
204
+ }
205
+ else {
206
+ this.value = formattedValue;
207
+ return this.value;
208
+ }
209
+ }
210
+ catch (e) {
211
+ this.errorMessage = e.message;
212
+ }
152
213
  }
214
+ return value;
153
215
  }
154
216
  handleChange() {
155
217
  if (!this._inputElem) {
@@ -165,8 +227,10 @@ const EzTextInput = class {
165
227
  this.controlChangeValue();
166
228
  }
167
229
  handleSlotChange(ev) {
230
+ var _a;
168
231
  const slot = ev.target;
169
232
  const content = slot.assignedElements()[0];
233
+ this.hasRightSlotContent = false;
170
234
  if (content) {
171
235
  content.style.position = "absolute";
172
236
  content.style.display = "flex";
@@ -192,6 +256,10 @@ const EzTextInput = class {
192
256
  if (this._labelElem) {
193
257
  this._labelElem.classList.add("input__label--right");
194
258
  }
259
+ if (this._tooltipIconElem) {
260
+ this._tooltipIconElem.classList.add("rightIconSlot");
261
+ }
262
+ this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
195
263
  }
196
264
  slot.name && core.ElementIDUtils.addIDInfo(content, slot.name);
197
265
  }
@@ -203,21 +271,50 @@ const EzTextInput = class {
203
271
  }
204
272
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
205
273
  }
274
+ renderGlobalTooltip() {
275
+ const tooltip = document.createElement('ez-tooltip');
276
+ tooltip.errorMessage = this.errorMessage;
277
+ tooltip.anchoringElement = this._tooltipIconElem;
278
+ document.body.appendChild(tooltip);
279
+ this._tooltipElem = tooltip;
280
+ }
281
+ removeGlobalTooltip() {
282
+ var _a;
283
+ if (!this._tooltipElem)
284
+ return;
285
+ this._tooltipElem.remove();
286
+ this._tooltipElem = undefined;
287
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this._inputElem);
288
+ }
289
+ createTooltipPositioningObserver() {
290
+ const observer = new ResizeObserver(() => {
291
+ if (!this._tooltipElem)
292
+ return;
293
+ if (!this._tooltipIconElem)
294
+ return;
295
+ clearTimeout(this._observerDebounceTimeout);
296
+ this._observerDebounceTimeout = setTimeout(async () => {
297
+ if (this._tooltipElem) {
298
+ await this._tooltipElem.positionTooltip();
299
+ }
300
+ }, 200);
301
+ });
302
+ this._tooltipPositioningObserver = observer;
303
+ }
206
304
  //---------------------------------------------
207
305
  // Lifecycle web component
208
306
  //---------------------------------------------
209
- componentDidLoad() {
210
- this.observeErrorMessage();
211
- this.observeMask();
212
- this.adjustFloatingLabel();
213
- this.adjustBorderInput();
214
- }
215
307
  componentWillLoad() {
216
308
  this.observeMask();
217
309
  if (this.value) {
218
310
  if (this._maskFormatter) {
219
311
  try {
220
- this.value = this._maskFormatter.format(this.value);
312
+ if (this.cleanValueMask) {
313
+ this.applyMask(this.value);
314
+ }
315
+ else {
316
+ this.value = this._maskFormatter.format(this.value);
317
+ }
221
318
  }
222
319
  catch (e) {
223
320
  this.errorMessage = e.message;
@@ -229,12 +326,52 @@ const EzTextInput = class {
229
326
  }
230
327
  }
231
328
  }
329
+ componentDidLoad() {
330
+ var _a, _b;
331
+ this.observeErrorMessage();
332
+ this.observeMask();
333
+ this.adjustFloatingLabel();
334
+ this.adjustBorderInput();
335
+ if (this.autoFocus) {
336
+ requestAnimationFrame(() => {
337
+ this.setFocus({ selectText: true });
338
+ });
339
+ }
340
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
341
+ var _a;
342
+ this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
343
+ });
344
+ this.createTooltipPositioningObserver();
345
+ if (this._inputElem) {
346
+ (_b = this._tooltipPositioningObserver) === null || _b === void 0 ? void 0 : _b.observe(this._inputElem);
347
+ applyEllipsisToInput(this._inputElem);
348
+ }
349
+ }
350
+ componentDidRender() {
351
+ if (this._tooltipIconElem && !this._tooltipElem) {
352
+ this.renderGlobalTooltip();
353
+ }
354
+ }
355
+ componentDidUpdate() {
356
+ if (this._tooltipIconElem && this._tooltipElem) {
357
+ this._tooltipElem.positionTooltip();
358
+ }
359
+ }
360
+ disconnectedCallback() {
361
+ if (this._tooltipPositioningObserver) {
362
+ this._tooltipPositioningObserver.disconnect();
363
+ }
364
+ if (this._observerDebounceTimeout) {
365
+ clearTimeout(this._observerDebounceTimeout);
366
+ }
367
+ this.removeGlobalTooltip();
368
+ }
232
369
  render() {
233
370
  core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
234
371
  return (index.h(index.Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
235
- index.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)
236
- : null, index.h("input", { "data-element-id": core.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(); } }), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
237
- index.h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": core.ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
372
+ index.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)
373
+ : null, index.h("input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: `${this.mode === "slim" ? "input--slim" : ""} ${this.noMargin ? "no--margin" : ""}`, 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 &&
374
+ index.h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": core.ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" }), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
238
375
  }
239
376
  get _hostElement() { return index.getElement(this); }
240
377
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
8
8
 
@@ -21,6 +21,8 @@ const EzTimeInput = class {
21
21
  this.showSeconds = false;
22
22
  this.mode = "regular";
23
23
  this.canShowError = true;
24
+ this.autoFocus = false;
25
+ this.noMargin = false;
24
26
  }
25
27
  observeErrorMessage() {
26
28
  var _a;
@@ -141,6 +143,11 @@ const EzTimeInput = class {
141
143
  //---------------------------------------------
142
144
  componentDidLoad() {
143
145
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
146
+ if (this.autoFocus) {
147
+ requestAnimationFrame(() => {
148
+ this.setFocus({ selectText: true });
149
+ });
150
+ }
144
151
  }
145
152
  componentWillLoad() {
146
153
  this.observeShowSeconds();
@@ -153,7 +160,7 @@ const EzTimeInput = class {
153
160
  }
154
161
  render() {
155
162
  core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
156
- return (index.h(index.Host, null, index.h("ez-text-input", { class: "time__input", "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
163
+ return (index.h(index.Host, null, index.h("ez-text-input", { class: "time__input", "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, noMargin: this.noMargin }, index.h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
157
164
  }
158
165
  static get assetsDirs() { return ["../assets"]; }
159
166
  get _elem() { return index.getElement(this); }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  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}}";
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-a7b0c73d.js');
6
+ const core = require('@sankhyalabs/core');
7
+
8
+ const ezTooltipCss = ":host{position:absolute;z-index:var(--elevation--24);background:var(--color-alert--error-800, #BD0025);padding:var(--space--extra-small, 3px) var(--space--small, 6px);color:var(--color--inverted);border-radius:var(--border--radius-small);display:none;transform:translateX(calc(-50% + 12px)) translateY(8px)}.tooltip::after{--triangle-size:8px;content:'';right:50%;border:var(--triangle-size) solid transparent;border-bottom-color:var(--color-alert--error-800, #BD0025);position:absolute;transform:translateX(calc(50%)) translateY(-100%)}";
9
+
10
+ const EzTooltip = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.errorMessage = undefined;
14
+ this.anchoringElement = undefined;
15
+ }
16
+ /**
17
+ * TODO: Implementar a possibilidade de definir a posição do tooltip.
18
+ */
19
+ // @Prop() tooltipSide: 'left' | 'right' | 'top' | 'bottom' = 'bottom';
20
+ /**
21
+ * Reposiciona o tooltip de acordo com a posição do elemento de ancoragem.
22
+ */
23
+ async positionTooltip() {
24
+ const anchorRect = this.anchoringElement.getBoundingClientRect();
25
+ const top = (anchorRect.bottom + window.scrollY);
26
+ const left = (anchorRect.left + window.scrollX);
27
+ this._element.style.top = `${top}px`;
28
+ this._element.style.left = `${left}px`;
29
+ }
30
+ setEvents() {
31
+ window.addEventListener('scroll', () => {
32
+ this.positionTooltip();
33
+ }, { capture: true });
34
+ window.addEventListener('resize', () => {
35
+ this.positionTooltip();
36
+ }, { capture: true });
37
+ this.anchoringElement.addEventListener('mouseover', () => {
38
+ this._element.style.display = 'block';
39
+ });
40
+ this.anchoringElement.addEventListener('mouseout', () => {
41
+ this._element.style.display = 'none';
42
+ });
43
+ }
44
+ componentDidLoad() {
45
+ this.positionTooltip();
46
+ this.setEvents();
47
+ }
48
+ render() {
49
+ return (index.h("div", { inert: true, class: "tooltip", role: "tooltip", "data-element-id": core.ElementIDUtils.getInternalIDInfo("tooltip") }, this.errorMessage));
50
+ }
51
+ get _element() { return index.getElement(this); }
52
+ };
53
+ EzTooltip.style = ezTooltipCss;
54
+
55
+ exports.ez_tooltip = EzTooltip;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const ICON_EXPANDED = "chevron-down";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
7
7
  const core = require('@sankhyalabs/core');
8
8
  require('./DialogType-2114c337.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const ezViewStackCss = ":host{width:100%;height:100%}.ez-view-stack__container{width:100%;height:100%}";