@sankhyalabs/ezui 5.22.0-dev.11 → 5.22.0-dev.111

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 (409) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-c2060474.js +446 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/FormLayout-c2451c7f.js +7 -0
  5. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  6. package/dist/cjs/ez-actions-button.cjs.entry.js +6 -4
  7. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  8. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  9. package/dist/cjs/ez-card-item_2.cjs.entry.js +270 -0
  10. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -2
  13. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
  14. package/dist/cjs/ez-combo-box.cjs.entry.js +78 -156
  15. package/dist/cjs/ez-date-input.cjs.entry.js +15 -19
  16. package/dist/cjs/ez-date-time-input.cjs.entry.js +14 -20
  17. package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
  18. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  19. package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
  20. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  21. package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
  22. package/dist/cjs/ez-form.cjs.entry.js +34 -327
  23. package/dist/cjs/ez-grid.cjs.entry.js +15147 -69779
  24. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  26. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  27. package/dist/cjs/ez-modal.cjs.entry.js +13 -4
  28. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  29. package/dist/cjs/ez-number-input.cjs.entry.js +15 -3
  30. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
  31. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  32. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  33. package/dist/cjs/ez-search-plus.cjs.entry.js +394 -0
  34. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  35. package/dist/cjs/ez-search.cjs.entry.js +123 -191
  36. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  39. package/dist/cjs/ez-split-item.cjs.entry.js +8 -4
  40. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  41. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  42. package/dist/cjs/ez-text-input.cjs.entry.js +114 -28
  43. package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
  44. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  45. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  46. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  47. package/dist/cjs/ezui.cjs.js +1 -1
  48. package/dist/cjs/filter-column.cjs.entry.js +10 -47
  49. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  50. package/dist/cjs/index-a7b0c73d.js +32 -8
  51. package/dist/cjs/loader.cjs.js +1 -1
  52. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  53. package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
  54. package/dist/collection/collection-manifest.json +20 -2
  55. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  56. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  57. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  58. package/dist/collection/components/ez-button/ez-button.css +24 -14
  59. package/dist/collection/components/ez-button/ez-button.js +12 -6
  60. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  61. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  62. package/dist/collection/components/ez-check/ez-check.css +1 -6
  63. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  64. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  65. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  66. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  67. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -247
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.js +121 -165
  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 +40 -19
  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 +39 -20
  73. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  74. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  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.css +1 -1
  80. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  81. package/dist/collection/components/ez-form/ez-form.js +32 -4
  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 +13 -2
  84. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  85. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  93. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  95. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +387 -73
  96. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +170 -33
  97. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  98. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +244 -43
  99. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  103. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  104. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  105. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  107. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  108. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  109. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  110. package/dist/collection/components/ez-grid/ez-grid.js +375 -12
  111. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  112. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  113. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  114. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  115. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  116. package/dist/collection/components/ez-list/ez-list.css +5 -4
  117. package/dist/collection/components/ez-list/ez-list.js +301 -212
  118. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  119. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  120. package/dist/collection/components/ez-modal/ez-modal.js +14 -5
  121. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  122. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  123. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  124. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  125. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  126. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  127. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  128. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  129. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  130. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
  131. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  132. package/dist/collection/components/ez-popup/ez-popup.js +44 -4
  133. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  134. package/dist/collection/components/ez-search/ez-search.css +2 -210
  135. package/dist/collection/components/ez-search/ez-search.js +205 -204
  136. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  137. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  138. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  139. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  140. package/dist/collection/components/ez-search-plus/ez-search-plus.js +980 -0
  141. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  142. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  143. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  144. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  145. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  146. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  147. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  148. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  149. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  150. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  151. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  152. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  153. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  154. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  155. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  156. package/dist/collection/components/ez-text-input/ez-text-input.css +127 -94
  157. package/dist/collection/components/ez-text-input/ez-text-input.js +174 -27
  158. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  159. package/dist/collection/components/ez-tooltip/ez-tooltip.css +61 -0
  160. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  161. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  162. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  163. package/dist/collection/sw.js +46 -0
  164. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  165. package/dist/collection/utils/FocusResolver.js +31 -0
  166. package/dist/collection/utils/constants.js +2 -0
  167. package/dist/collection/utils/form/DataBinder.js +25 -9
  168. package/dist/collection/utils/form/FormMetadata.js +2 -1
  169. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  170. package/dist/collection/utils/form/interfaces/index.js +1 -1
  171. package/dist/collection/utils/index.js +2 -0
  172. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  173. package/dist/collection/utils/search/types.js +7 -0
  174. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  175. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  176. package/dist/custom-elements/index.d.ts +48 -0
  177. package/dist/custom-elements/index.js +21484 -72872
  178. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  179. package/dist/esm/DataBinder-89946126.js +442 -0
  180. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  181. package/dist/esm/FormLayout-54092963.js +7 -0
  182. package/dist/esm/constants-b036528f.js +7 -0
  183. package/dist/esm/ez-actions-button.entry.js +6 -4
  184. package/dist/esm/ez-badge.entry.js +14 -2
  185. package/dist/esm/ez-button.entry.js +11 -5
  186. package/dist/esm/ez-card-item_2.entry.js +265 -0
  187. package/dist/esm/ez-check.entry.js +1 -1
  188. package/dist/esm/ez-chip.entry.js +1 -1
  189. package/dist/esm/ez-collapsible-box.entry.js +3 -2
  190. package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
  191. package/dist/esm/ez-combo-box.entry.js +79 -157
  192. package/dist/esm/ez-date-input.entry.js +15 -19
  193. package/dist/esm/ez-date-time-input.entry.js +14 -20
  194. package/dist/esm/ez-dialog.entry.js +15 -8
  195. package/dist/esm/ez-double-list.entry.js +283 -0
  196. package/dist/esm/ez-dropdown.entry.js +14 -8
  197. package/dist/esm/ez-filter-input.entry.js +125 -0
  198. package/dist/esm/ez-form-view.entry.js +42 -28
  199. package/dist/esm/ez-form.entry.js +33 -326
  200. package/dist/esm/ez-grid.entry.js +15146 -69778
  201. package/dist/esm/ez-icon.entry.js +1 -1
  202. package/dist/esm/ez-list.entry.js +258 -211
  203. package/dist/esm/ez-modal-container.entry.js +2 -2
  204. package/dist/esm/ez-modal.entry.js +13 -4
  205. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  206. package/dist/esm/ez-number-input.entry.js +15 -3
  207. package/dist/esm/ez-popover-plus_3.entry.js +203 -0
  208. package/dist/esm/ez-popup.entry.js +25 -3
  209. package/dist/esm/ez-scroller_2.entry.js +3 -3
  210. package/dist/esm/ez-search-plus.entry.js +390 -0
  211. package/dist/esm/ez-search-result-list.entry.js +93 -0
  212. package/dist/esm/ez-search.entry.js +124 -192
  213. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  214. package/dist/esm/ez-skeleton.entry.js +1 -1
  215. package/dist/esm/ez-split-button.entry.js +2 -2
  216. package/dist/esm/ez-split-item.entry.js +8 -4
  217. package/dist/esm/ez-split-panel.entry.js +69 -7
  218. package/dist/esm/ez-text-area.entry.js +68 -6
  219. package/dist/esm/ez-text-input.entry.js +114 -28
  220. package/dist/esm/ez-time-input.entry.js +7 -1
  221. package/dist/esm/ez-tooltip.entry.js +131 -0
  222. package/dist/esm/ez-tree.entry.js +5 -4
  223. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  224. package/dist/esm/ezui.js +1 -1
  225. package/dist/esm/filter-column.entry.js +10 -47
  226. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  227. package/dist/esm/index-baa5e267.js +32 -8
  228. package/dist/esm/loader.js +1 -1
  229. package/dist/esm/searchFormatters-8229207e.js +20 -0
  230. package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
  231. package/dist/ezui/ezui.esm.js +1 -1
  232. package/dist/ezui/p-0bffeffc.entry.js +1 -0
  233. package/dist/ezui/p-0fa52b0f.entry.js +1 -0
  234. package/dist/ezui/p-0fb509ff.entry.js +1 -0
  235. package/dist/ezui/p-173f68ea.js +1 -0
  236. package/dist/ezui/p-17de16e5.entry.js +1 -0
  237. package/dist/ezui/p-1a060042.entry.js +1 -0
  238. package/dist/ezui/p-1ec8bdd2.entry.js +309 -0
  239. package/dist/ezui/p-20c024f7.entry.js +1 -0
  240. package/dist/ezui/p-248d4f54.entry.js +1 -0
  241. package/dist/ezui/p-2872fd16.entry.js +1 -0
  242. package/dist/ezui/p-288631d1.entry.js +1 -0
  243. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  244. package/dist/ezui/p-31b71e50.entry.js +1 -0
  245. package/dist/ezui/p-40a60148.js +1 -0
  246. package/dist/ezui/{p-072e6347.entry.js → p-4cf0aaeb.entry.js} +1 -1
  247. package/dist/ezui/p-4e0628a7.entry.js +1 -0
  248. package/dist/ezui/p-56fe5341.entry.js +1 -0
  249. package/dist/ezui/p-5895e687.js +1 -0
  250. package/dist/ezui/p-5a14f506.entry.js +1 -0
  251. package/dist/ezui/p-5ec0ae79.entry.js +1 -0
  252. package/dist/ezui/p-5eea9886.js +1 -0
  253. package/dist/ezui/p-6825bdc7.entry.js +1 -0
  254. package/dist/ezui/p-7742802c.entry.js +1 -0
  255. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  256. package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
  257. package/dist/ezui/p-80dfc50b.js +1 -0
  258. package/dist/ezui/p-84b1c99e.entry.js +1 -0
  259. package/dist/ezui/p-8ac8093c.entry.js +1 -0
  260. package/dist/ezui/p-9567b31a.entry.js +1 -0
  261. package/dist/ezui/p-9f22e1dc.entry.js +1 -0
  262. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  263. package/dist/ezui/p-a64cfcfc.js +1 -0
  264. package/dist/ezui/p-bf9dec89.entry.js +1 -0
  265. package/dist/ezui/p-c1527804.entry.js +1 -0
  266. package/dist/ezui/p-cd07f8be.entry.js +1 -0
  267. package/dist/ezui/p-d9e4a85a.entry.js +1 -0
  268. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  269. package/dist/ezui/p-dc628ed3.js +1 -0
  270. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  271. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  272. package/dist/ezui/p-e07e4671.js +1 -0
  273. package/dist/ezui/p-e3544d23.entry.js +1 -0
  274. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  275. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  276. package/dist/ezui/p-ea54d056.entry.js +1 -0
  277. package/dist/ezui/p-ec7db713.js +1 -0
  278. package/dist/ezui/p-ecaac11f.entry.js +1 -0
  279. package/dist/ezui/p-f4861c6a.entry.js +1 -0
  280. package/dist/ezui/p-f5a30e35.entry.js +1 -0
  281. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  282. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  283. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  284. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  285. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  286. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  287. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -15
  288. package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -3
  289. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -3
  290. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  291. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  292. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  293. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  294. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  295. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  296. package/dist/types/components/ez-form/ez-form.d.ts +5 -1
  297. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  298. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  299. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  300. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  301. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  302. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +75 -4
  303. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +42 -6
  304. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  305. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  306. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  307. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  308. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  309. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  310. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  311. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  312. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  313. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  314. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  315. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  316. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  317. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  318. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  319. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  320. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  321. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  322. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -1
  323. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  324. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  325. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  326. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  327. package/dist/types/components/ez-search/ez-search.d.ts +32 -18
  328. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  329. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  330. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  331. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  332. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  333. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  334. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  335. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  336. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  337. package/dist/types/components/ez-text-input/ez-text-input.d.ts +27 -3
  338. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  339. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  340. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  341. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  342. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  343. package/dist/types/components.d.ts +1170 -72
  344. package/dist/types/utils/FocusResolver.d.ts +5 -0
  345. package/dist/types/utils/constants.d.ts +2 -0
  346. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  347. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  348. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  349. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  350. package/dist/types/utils/index.d.ts +2 -0
  351. package/dist/types/utils/search/types.d.ts +12 -0
  352. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  353. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  354. package/package.json +12 -4
  355. package/react/components.d.ts +62 -54
  356. package/react/components.js +8 -0
  357. package/react/components.js.map +1 -1
  358. package/react/react-component-lib/createComponent.d.ts +1 -1
  359. package/react/react-component-lib/createComponent.js.map +1 -1
  360. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  361. package/react/react-component-lib/interfaces.js +1 -0
  362. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  363. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  364. package/react/react-component-lib/utils/dev.js.map +1 -1
  365. package/react/react-component-lib/utils/index.d.ts +2 -2
  366. package/react/react-component-lib/utils/index.js.map +1 -1
  367. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  368. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  369. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  370. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  371. package/dist/esm/constants-4e0d35b7.js +0 -5
  372. package/dist/esm/ez-card-item_3.entry.js +0 -177
  373. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  374. package/dist/ezui/p-04f24913.js +0 -1
  375. package/dist/ezui/p-05e1f4e7.js +0 -1
  376. package/dist/ezui/p-1285c902.entry.js +0 -1
  377. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  378. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  379. package/dist/ezui/p-32e553e5.entry.js +0 -304
  380. package/dist/ezui/p-33286e5f.entry.js +0 -1
  381. package/dist/ezui/p-34b6916c.entry.js +0 -1
  382. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  383. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  384. package/dist/ezui/p-42533ea4.entry.js +0 -1
  385. package/dist/ezui/p-4607fb89.js +0 -1
  386. package/dist/ezui/p-49456b34.entry.js +0 -1
  387. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  388. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  389. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  390. package/dist/ezui/p-784fe207.entry.js +0 -1
  391. package/dist/ezui/p-7af81663.entry.js +0 -1
  392. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  393. package/dist/ezui/p-84e439b9.entry.js +0 -1
  394. package/dist/ezui/p-85c8baae.entry.js +0 -1
  395. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  396. package/dist/ezui/p-8d4d90ec.entry.js +0 -1
  397. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  398. package/dist/ezui/p-922ac38b.entry.js +0 -1
  399. package/dist/ezui/p-9e11fc7b.js +0 -1
  400. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  401. package/dist/ezui/p-af95cd16.entry.js +0 -1
  402. package/dist/ezui/p-bae4e180.entry.js +0 -1
  403. package/dist/ezui/p-baf80b13.entry.js +0 -1
  404. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  405. package/dist/ezui/p-cdc472cc.entry.js +0 -1
  406. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  407. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  408. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  409. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -0,0 +1,388 @@
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
+ const types = require('./types-6a5df0c7.js');
8
+ const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
9
+ require('./DialogType-2114c337.js');
10
+ require('./CheckMode-ecb90b87.js');
11
+ require('./FormLayout-c2451c7f.js');
12
+
13
+ const ezComboBoxListCss = ":host{--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
14
+
15
+ const EzComboBoxList = class {
16
+ constructor(hostRef) {
17
+ index.registerInstance(this, hostRef);
18
+ this.showLoading = undefined;
19
+ this.visibleOptions = undefined;
20
+ this.textEmptyList = "Nenhum resultado encontrado";
21
+ this.showOptionValue = undefined;
22
+ this.preSelection = undefined;
23
+ this.maxWidth = undefined;
24
+ this.width = undefined;
25
+ this.onOptionSelect = undefined;
26
+ this.onOptionHover = undefined;
27
+ }
28
+ /**
29
+ * Move a seleção para a próxima opção na lista.
30
+ */
31
+ async nextOption() {
32
+ var _a, _b;
33
+ if (!((_a = this.visibleOptions) === null || _a === void 0 ? void 0 : _a.length))
34
+ return;
35
+ const isAtLastOption = this.preSelection !== undefined && this.preSelection >= this.visibleOptions.length - 1;
36
+ if (!isAtLastOption) {
37
+ this.preSelection = this.preSelection === undefined ? 0 : this.preSelection + 1;
38
+ this.scrollToOption(this.visibleOptions[this.preSelection]);
39
+ (_b = this.onOptionHover) === null || _b === void 0 ? void 0 : _b.call(this, this.preSelection);
40
+ }
41
+ }
42
+ /**
43
+ * Move a seleção para a opção anterior na lista, sem ultrapassar o início.
44
+ */
45
+ async previousOption() {
46
+ var _a, _b;
47
+ if (!((_a = this.visibleOptions) === null || _a === void 0 ? void 0 : _a.length))
48
+ return;
49
+ const isAtFirstOption = this.preSelection !== undefined && this.preSelection <= 0;
50
+ if (!isAtFirstOption) {
51
+ this.preSelection = this.preSelection === undefined ? this.visibleOptions.length - 1 : this.preSelection - 1;
52
+ this.scrollToOption(this.visibleOptions[this.preSelection]);
53
+ (_b = this.onOptionHover) === null || _b === void 0 ? void 0 : _b.call(this, this.preSelection);
54
+ }
55
+ }
56
+ /**
57
+ * Seleciona a opção atualmente pré-selecionada.
58
+ */
59
+ async selectCurrentOption() {
60
+ if (this.preSelection !== undefined) {
61
+ this.onOptionSelect(this.visibleOptions[this.preSelection]);
62
+ this.preSelection = undefined;
63
+ }
64
+ }
65
+ /**
66
+ * Observa mudanças na propriedade `width` e ajusta a largura da lista.
67
+ *
68
+ * @param newValue O novo valor da largura.
69
+ * @param oldValue O valor anterior da largura.
70
+ */
71
+ observeWidth(newValue, oldValue) {
72
+ if (newValue === oldValue)
73
+ return;
74
+ if (!this._listWrapper)
75
+ return;
76
+ this._listWrapper.style.width = `${this.width}px`;
77
+ }
78
+ /**
79
+ * Observa mudanças na propriedade `maxWidth` e ajusta a largura máxima da lista.
80
+ *
81
+ * @param newValue O novo valor da largura máxima.
82
+ * @param oldValue O valor anterior da largura máxima.
83
+ */
84
+ observeMaxWidth(newValue, oldValue) {
85
+ if (newValue === oldValue)
86
+ return;
87
+ if (!this._listWrapper)
88
+ return;
89
+ this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
90
+ }
91
+ /**
92
+ * Gerencia a navegação por teclado na lista do combo box.
93
+ *
94
+ * - `ArrowDown`: Move para a próxima opção.
95
+ * - `ArrowUp`: Move para a opção anterior.
96
+ * - `Enter`: Seleciona a opção atual.
97
+ * - `Escape`: Limpa a pré-seleção.
98
+ *
99
+ * @param event O evento de teclado.
100
+ */
101
+ handleKeyDown(event) {
102
+ switch (event.key) {
103
+ case "ArrowDown":
104
+ event.preventDefault();
105
+ event.stopPropagation();
106
+ this.nextOption();
107
+ break;
108
+ case "ArrowUp":
109
+ event.preventDefault();
110
+ event.stopPropagation();
111
+ this.previousOption();
112
+ break;
113
+ case "Enter":
114
+ this.selectCurrentOption();
115
+ break;
116
+ case "Escape":
117
+ this.preSelection = undefined;
118
+ break;
119
+ }
120
+ }
121
+ buildItem(opt, index$1) {
122
+ const widthValue = this.showOptionValue && this.maxWidth > 0 ? `${this.maxWidth}px` : '';
123
+ opt.label = opt.label || opt.value;
124
+ return index.h("li", { tabIndex: 1, class: index$1 === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}_${index$1}`, key: `item_${opt.value}_${index$1}`, onMouseDown: () => this.onOptionSelect(opt), onMouseOver: () => this.preSelection = index$1 }, this.showOptionValue
125
+ ? index.h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
126
+ : undefined, index.h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
127
+ }
128
+ scrollToOption(opt) {
129
+ if (!(opt === null || opt === void 0 ? void 0 : opt.value) || !this._optionsList)
130
+ return;
131
+ const index = this.visibleOptions.indexOf(opt);
132
+ if (index === -1)
133
+ return;
134
+ const liElem = this._optionsList.querySelector(`li#item_${CSS.escape(opt.value)}_${CSS.escape(String(index))}`);
135
+ if (liElem) {
136
+ liElem.scrollIntoView({
137
+ behavior: "smooth",
138
+ block: "nearest"
139
+ });
140
+ }
141
+ }
142
+ componentDidLoad() {
143
+ this._listWrapper.style.width = `${this.width}px`;
144
+ this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
145
+ }
146
+ componentDidRender() {
147
+ var _a;
148
+ (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
149
+ core.ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
150
+ });
151
+ }
152
+ render() {
153
+ return (index.h("section", { class: "list-container" }, index.h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, index.h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (index.h("div", { class: "message" }, index.h("span", { class: "message__no-result" }, this.textEmptyList))), this.showLoading && (index.h("div", { class: "message" }, index.h("div", { class: "message__loading" }))), this.showOptionValue && (index.h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
154
+ this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
155
+ }
156
+ static get watchers() { return {
157
+ "width": ["observeWidth"],
158
+ "maxWidth": ["observeMaxWidth"]
159
+ }; }
160
+ };
161
+ EzComboBoxList.style = ezComboBoxListCss;
162
+
163
+ const EzCustomFormInput = class {
164
+ constructor(hostRef) {
165
+ index.registerInstance(this, hostRef);
166
+ this.gui = undefined;
167
+ this.customEditor = undefined;
168
+ this.formViewField = undefined;
169
+ this.value = undefined;
170
+ this.detailContext = undefined;
171
+ this.builderFallback = undefined;
172
+ this.selectedRecord = undefined;
173
+ }
174
+ /**
175
+ * Aplica foco no campo.
176
+ */
177
+ async setFocus() {
178
+ var _a, _b;
179
+ (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setFocus"]) === null || _b === void 0 ? void 0 : _b.call(_a);
180
+ }
181
+ /**
182
+ * Remove o foco do campo.
183
+ */
184
+ async setBlur() {
185
+ var _a, _b;
186
+ (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setBlur"]) === null || _b === void 0 ? void 0 : _b.call(_a);
187
+ }
188
+ /**
189
+ * Retorna se o conteúdo é inválido.
190
+ */
191
+ async isInvalid() {
192
+ var _a, _b;
193
+ return ((_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["isInvalid"]) === null || _b === void 0 ? void 0 : _b.call(_a)) || false;
194
+ }
195
+ watchValue() {
196
+ this.handleValue(this.gui);
197
+ }
198
+ watchCustomEditor() {
199
+ this.getContent();
200
+ }
201
+ watchFormViewField(newValue, oldValue) {
202
+ if (!core.ObjectUtils.equals(newValue, oldValue))
203
+ this.getContent();
204
+ }
205
+ watchDetailContext() {
206
+ this.getContent();
207
+ }
208
+ watchBuilderFallback() {
209
+ this.getContent();
210
+ }
211
+ watchSelectedRecord(newValue, oldValue) {
212
+ const newRecordId = newValue === null || newValue === void 0 ? void 0 : newValue['__record__id__'];
213
+ const oldRecordId = oldValue === null || oldValue === void 0 ? void 0 : oldValue['__record__id__'];
214
+ if (newRecordId !== oldRecordId) {
215
+ this.getContent();
216
+ }
217
+ }
218
+ getContent() {
219
+ var _a, _b, _c, _d, _e;
220
+ const fieldProps = new Map();
221
+ for (const prop in this.formViewField.props) {
222
+ fieldProps.set(prop, this.formViewField.props[prop]);
223
+ }
224
+ const params = {
225
+ value: this.value,
226
+ name: this.formViewField.name,
227
+ currentEditor: this.builderFallback(this.formViewField),
228
+ setValue: (value) => this.setValue(value),
229
+ getValue: this.getValue,
230
+ record: this.selectedRecord,
231
+ editorMetadata: {
232
+ label: this.formViewField.label,
233
+ hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
234
+ userInterface: this.formViewField.userInterface,
235
+ options: (_b = this.formViewField.props) === null || _b === void 0 ? void 0 : _b.options,
236
+ props: this.formViewField.props ? fieldProps : undefined,
237
+ optionLoader: this.formViewField.optionLoader
238
+ },
239
+ source: types.CustomEditorSource.FORM,
240
+ detailContext: this.detailContext
241
+ };
242
+ let gui = this.customEditor.getEditorElement(params);
243
+ if (!gui) {
244
+ gui = this.builderFallback(this.formViewField);
245
+ this.handleValue(gui);
246
+ this.gui = gui;
247
+ return;
248
+ }
249
+ if (!(gui instanceof HTMLElement) && typeof gui !== 'string') {
250
+ this.handleValue(gui);
251
+ this.gui = gui;
252
+ return;
253
+ }
254
+ if (typeof gui === 'string') {
255
+ gui = core.HTMLBuilder.parseElement(gui);
256
+ }
257
+ const value = (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : this.value) !== null && _e !== void 0 ? _e : '';
258
+ gui.setAttribute('value', value);
259
+ this.gui = index.h("div", { key: core.StringUtils.generateUUID(), ref: el => el && el.appendChild(gui) });
260
+ }
261
+ setValue(value) {
262
+ this.value = value;
263
+ }
264
+ getValue() {
265
+ return this.value;
266
+ }
267
+ handleValue(gui) {
268
+ var _a;
269
+ //@ts-ignore
270
+ (_a = gui.$children$) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
271
+ child.$attrs$.value = this.value;
272
+ });
273
+ }
274
+ componentWillLoad() {
275
+ this.getContent();
276
+ }
277
+ render() {
278
+ return (index.h(index.Host, null, this.gui));
279
+ }
280
+ static get watchers() { return {
281
+ "value": ["watchValue"],
282
+ "customEditor": ["watchCustomEditor"],
283
+ "formViewField": ["watchFormViewField"],
284
+ "detailContext": ["watchDetailContext"],
285
+ "builderFallback": ["watchBuilderFallback"],
286
+ "selectedRecord": ["watchSelectedRecord"]
287
+ }; }
288
+ };
289
+
290
+ const ezTextEditCss = ":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";
291
+
292
+ const EzTextEdit = class {
293
+ constructor(hostRef) {
294
+ index.registerInstance(this, hostRef);
295
+ this.saveEdition = index.createEvent(this, "saveEdition", 7);
296
+ this.cancelEdition = index.createEvent(this, "cancelEdition", 7);
297
+ this._newValue = undefined;
298
+ this.value = undefined;
299
+ this.styled = undefined;
300
+ }
301
+ /**
302
+ * Aplica foco no campo.
303
+ */
304
+ async applyFocusSelect() {
305
+ this.calcSizeInput(this.value, true);
306
+ }
307
+ calcSizeInput(value, setSelect = false) {
308
+ var _a, _b;
309
+ const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
310
+ if (textInput != undefined) {
311
+ const sizeText = this.getWidthValue(value);
312
+ textInput.style.width = sizeText + 'px';
313
+ if (setSelect) {
314
+ setTimeout(() => textInput.select(), 100);
315
+ }
316
+ }
317
+ }
318
+ getWidthValue(value) {
319
+ if (this._valueBasis != undefined) {
320
+ const span = this._valueBasis;
321
+ if (value != undefined) {
322
+ const cursorSpace = 2;
323
+ span.innerHTML = value;
324
+ return span.clientWidth > 0 ? (span.clientWidth + cursorSpace) : cursorSpace;
325
+ }
326
+ else {
327
+ span.innerHTML = "";
328
+ }
329
+ }
330
+ return 0;
331
+ }
332
+ setStyledInput() {
333
+ var _a, _b;
334
+ let fontSize = "";
335
+ let fontWeight = "";
336
+ let fontFamily = "";
337
+ if (this.styled != undefined) {
338
+ fontSize = this.styled.fontSize;
339
+ fontWeight = this.styled.fontWeight;
340
+ fontFamily = this.styled.fontFamily;
341
+ }
342
+ const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
343
+ if (textInput != undefined) {
344
+ textInput.style.fontSize = fontSize;
345
+ textInput.style.fontWeight = fontWeight;
346
+ textInput.style.fontFamily = fontFamily;
347
+ }
348
+ const span = this._valueBasis;
349
+ if (span != undefined) {
350
+ span.style.fontSize = fontSize;
351
+ span.style.fontWeight = fontWeight;
352
+ span.style.fontFamily = fontFamily;
353
+ }
354
+ }
355
+ handleSaveEdition() {
356
+ if (!this._newValue) {
357
+ ApplicationUtils.ApplicationUtils.alert("Aviso", "Não é possível salvar um campo em branco.").then(() => {
358
+ this.setNewValue(this.value, true);
359
+ });
360
+ return;
361
+ }
362
+ this.saveEdition.emit({ value: this.value, newValue: this._newValue });
363
+ }
364
+ handleCancelEdition() {
365
+ this.cancelEdition.emit();
366
+ }
367
+ setNewValue(value, setSelect = false) {
368
+ this._newValue = value;
369
+ this.calcSizeInput(this._newValue, setSelect);
370
+ }
371
+ componentDidLoad() {
372
+ this.applyFocusSelect();
373
+ this.setNewValue(this.value);
374
+ }
375
+ componentDidRender() {
376
+ this.setStyledInput();
377
+ }
378
+ render() {
379
+ core.ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
380
+ return (index.h(index.Host, null, index.h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }), index.h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }), index.h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.handleCancelEdition(); } })));
381
+ }
382
+ get _element() { return index.getElement(this); }
383
+ };
384
+ EzTextEdit.style = ezTextEditCss;
385
+
386
+ exports.ez_combo_box_list = EzComboBoxList;
387
+ exports.ez_custom_form_input = EzCustomFormInput;
388
+ exports.ez_text_edit = EzTextEdit;