@sankhyalabs/ezui 7.3.0 → 7.3.1-rc.2

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 (1139) hide show
  1. package/dist/cjs/{ApplicationUtils-5cc05979.js → ApplicationUtils-9a9185fc.js} +1 -1
  2. package/dist/cjs/ApplicationUtils-9a9185fc.js.gz +0 -0
  3. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  4. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  5. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  6. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  7. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  8. package/dist/cjs/FormLayout-fe8da83c.js +9 -0
  9. package/dist/cjs/FormLayout-fe8da83c.js.gz +0 -0
  10. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  11. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  12. package/dist/cjs/{app-globals-2fbe4b17.js → app-globals-27a943d9.js} +1 -1
  13. package/dist/cjs/app-globals-27a943d9.js.gz +0 -0
  14. package/dist/cjs/{ez-combo-box-list_5.cjs.entry.js → classic-search-list_8.cjs.entry.js} +364 -5
  15. package/dist/cjs/classic-search-list_8.cjs.entry.js.gz +0 -0
  16. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  17. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  18. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  21. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  23. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/ez-card-item.cjs.entry.js +62 -0
  31. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  33. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  35. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +38 -15
  36. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
  38. package/dist/cjs/ez-classic-date-input.cjs.entry.js.gz +0 -0
  39. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
  40. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js.gz +0 -0
  41. package/dist/cjs/ez-classic-input.cjs.entry.js +144 -18
  42. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  43. package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
  44. package/dist/cjs/ez-classic-number-input.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +420 -0
  46. package/dist/cjs/ez-classic-search-plus.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
  48. package/dist/cjs/ez-classic-search.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/ez-classic-text-area.cjs.entry.js +13 -2
  50. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/ez-classic-time-input.cjs.entry.js +198 -0
  52. package/dist/cjs/ez-classic-time-input.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  54. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
  56. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  62. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  63. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  64. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  66. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  68. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  70. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/ez-form-view.cjs.entry.js +130 -37
  73. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/ez-form.cjs.entry.js +144 -81
  75. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-grid-pagination.cjs.entry.js +331 -0
  77. package/dist/cjs/ez-grid-pagination.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/ez-grid.cjs.entry.js +216 -160
  80. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  82. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  84. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  86. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  88. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  89. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  90. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  92. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  93. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  94. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  95. package/dist/cjs/{ez-card-item_5.cjs.entry.js → ez-multi-selection-list_5.cjs.entry.js} +222 -56
  96. package/dist/cjs/ez-multi-selection-list_5.cjs.entry.js.gz +0 -0
  97. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  98. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  99. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  100. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  101. package/dist/cjs/ez-popover.cjs.entry.js +8 -0
  102. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  103. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  104. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  105. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  106. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  107. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  108. package/dist/cjs/ez-record-navigation.cjs.entry.js.gz +0 -0
  109. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  111. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/ez-search-plus.cjs.entry.js +18 -8
  113. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  115. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/ez-search.cjs.entry.js +49 -11
  117. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  119. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  121. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  123. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  124. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  125. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
  127. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  128. package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
  129. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  132. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  133. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/ez-text-input.cjs.entry.js +47 -1
  137. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  138. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  139. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  141. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  143. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  144. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  145. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  146. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  147. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  148. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  149. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  150. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  151. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  152. package/dist/cjs/ezui.cjs.js +3 -3
  153. package/dist/cjs/ezui.cjs.js.gz +0 -0
  154. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  155. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  156. package/dist/cjs/{floating-ui.dom.esm-f1e4e440.js → floating-ui.dom.esm-9c8bfebb.js} +166 -120
  157. package/dist/cjs/floating-ui.dom.esm-9c8bfebb.js.gz +0 -0
  158. package/dist/cjs/index-a7b0c73d.js +58 -26
  159. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  160. package/dist/cjs/{index-1be40f19.js → index-d4a1cad8.js} +175 -30
  161. package/dist/cjs/index-d4a1cad8.js.gz +0 -0
  162. package/dist/cjs/index.cjs.js.gz +0 -0
  163. package/dist/cjs/loader.cjs.js +3 -3
  164. package/dist/cjs/loader.cjs.js.gz +0 -0
  165. package/dist/cjs/purify-8c74770b.js +1398 -0
  166. package/dist/cjs/purify-8c74770b.js.gz +0 -0
  167. package/dist/cjs/{search-column-316e2c59.js → search-column-c04897a9.js} +12 -10
  168. package/dist/cjs/search-column-c04897a9.js.gz +0 -0
  169. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  170. package/dist/cjs/searchFormatters-051f8677.js.gz +0 -0
  171. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  172. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  173. package/dist/cjs/types-6a5df0c7.js.gz +0 -0
  174. package/dist/collection/collection-manifest.json +64 -3
  175. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  176. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  177. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  178. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  179. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  180. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  181. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  182. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  183. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  184. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  185. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  186. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  187. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  188. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  189. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  190. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  191. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  192. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  193. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  194. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  195. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  196. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  197. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  198. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  199. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  200. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  201. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  202. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  203. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  204. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  205. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  206. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  207. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  208. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  209. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  210. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  211. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  212. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  213. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  214. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  215. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  216. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  217. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  218. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  219. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  220. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  221. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  222. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  223. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +96 -18
  224. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  225. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  226. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  227. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css.gz +0 -0
  228. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  229. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js.gz +0 -0
  230. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  231. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css.gz +0 -0
  232. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  233. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js.gz +0 -0
  234. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  235. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  236. package/dist/collection/components/ez-classic-input/ez-classic-input.js +200 -19
  237. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  238. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  239. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  240. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  241. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css.gz +0 -0
  242. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  243. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js.gz +0 -0
  244. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  245. package/dist/collection/components/ez-classic-search/ez-classic-search.css.gz +0 -0
  246. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  247. package/dist/collection/components/ez-classic-search/ez-classic-search.js.gz +0 -0
  248. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  249. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css.gz +0 -0
  250. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  251. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js.gz +0 -0
  252. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  253. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js.gz +0 -0
  254. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +428 -0
  255. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css.gz +0 -0
  256. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +1003 -0
  257. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js.gz +0 -0
  258. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  259. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css.gz +0 -0
  260. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  261. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js.gz +0 -0
  262. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
  263. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  264. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  265. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  266. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  267. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  268. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css.gz +0 -0
  269. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +512 -0
  270. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js.gz +0 -0
  271. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  272. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  273. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  274. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  275. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  276. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  277. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  278. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  279. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  280. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  281. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  282. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  283. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  284. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  285. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  286. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  287. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  288. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  289. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  290. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  291. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  292. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  293. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  294. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  295. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  296. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  297. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  298. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  299. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  300. package/dist/collection/components/ez-form/ez-form.js +30 -4
  301. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  302. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  303. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  304. package/dist/collection/components/ez-form-view/ez-form-view.css +27 -8
  305. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  306. package/dist/collection/components/ez-form-view/ez-form-view.js +62 -4
  307. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  308. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
  309. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  310. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  311. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  312. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  313. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  314. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  315. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  316. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  317. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  318. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
  319. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js.gz +0 -0
  320. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  321. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  322. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  323. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  324. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  325. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  326. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  327. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  328. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  329. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  330. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  331. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  332. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  333. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  334. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  335. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  336. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  337. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  338. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +138 -13
  339. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  340. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +11 -1
  341. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  342. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  343. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  344. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  345. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  346. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  347. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  348. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  349. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  350. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  351. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  352. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  353. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  354. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  355. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  356. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  357. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  358. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  359. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  360. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  361. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  362. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  363. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  364. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js.gz +0 -0
  365. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  366. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  367. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  368. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js.gz +0 -0
  369. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  370. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  371. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  372. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  373. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  374. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  375. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js.gz +0 -0
  376. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  377. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  378. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  379. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  380. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  381. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  382. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  383. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  384. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  385. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  386. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  387. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  388. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  389. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  390. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  391. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +217 -0
  392. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css.gz +0 -0
  393. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +516 -0
  394. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js.gz +0 -0
  395. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +1 -0
  396. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js.gz +0 -0
  397. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  398. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  399. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  400. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  401. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  402. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  403. package/dist/collection/components/ez-icon/ez-icon.css +1160 -1147
  404. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  405. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  406. package/dist/collection/components/ez-image-input/ez-image-input.css +189 -0
  407. package/dist/collection/components/ez-image-input/ez-image-input.css.gz +0 -0
  408. package/dist/collection/components/ez-image-input/ez-image-input.js +329 -0
  409. package/dist/collection/components/ez-image-input/ez-image-input.js.gz +0 -0
  410. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  411. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  412. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  413. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  414. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  415. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  416. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  417. package/dist/collection/components/ez-modal/ez-modal.css +3 -0
  418. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  419. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  420. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  421. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  422. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  423. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  424. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  425. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  426. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  427. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  428. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  429. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  430. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  431. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  432. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  433. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  434. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  435. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  436. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  437. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  438. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  439. package/dist/collection/components/ez-popover/ez-popover.js +27 -0
  440. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  441. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  442. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  443. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  444. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  445. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  446. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  447. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  448. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  449. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  450. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  451. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  452. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  453. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css.gz +0 -0
  454. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  455. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js.gz +0 -0
  456. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  457. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  458. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  459. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  460. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  461. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  462. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  463. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  464. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  465. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  466. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  467. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  468. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  469. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  470. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  471. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  472. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  473. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  474. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  475. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  476. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  477. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  478. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js.gz +0 -0
  479. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  480. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  481. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  482. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  483. package/dist/collection/components/ez-search/ez-search.css +4 -0
  484. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  485. package/dist/collection/components/ez-search/ez-search.js +75 -3
  486. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  487. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  488. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  489. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  490. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  491. package/dist/collection/components/ez-search-plus/ez-search-plus.js +11 -2
  492. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  493. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  494. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  495. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  496. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  497. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  498. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  499. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  500. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  501. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  502. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  503. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  504. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  505. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  506. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  507. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  508. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  509. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  510. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  511. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  512. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  513. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  514. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  515. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  516. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  517. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  518. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  519. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  520. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  521. package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
  522. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  523. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  524. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  525. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  526. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  527. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  528. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  529. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  530. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  531. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  532. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  533. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  534. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  535. package/dist/collection/components/ez-text-input/ez-text-input.js +48 -2
  536. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  537. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  538. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  539. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  540. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  541. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  542. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  543. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  544. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  545. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  546. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  547. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  548. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  549. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  550. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  551. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  552. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  553. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  554. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  555. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  556. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  557. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  558. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  559. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  560. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  561. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  562. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  563. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  564. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  565. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  566. package/dist/collection/global/app-init.js.gz +0 -0
  567. package/dist/collection/index.js.gz +0 -0
  568. package/dist/collection/servidor.js.gz +0 -0
  569. package/dist/collection/setupTests.js.gz +0 -0
  570. package/dist/collection/sw.js.gz +0 -0
  571. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  572. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  573. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  574. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  575. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  576. package/dist/collection/utils/constants.js.gz +0 -0
  577. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  578. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  579. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  580. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  581. package/dist/collection/utils/form/DataBinder.js +2 -2
  582. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  583. package/dist/collection/utils/form/FormMetadata.js +132 -74
  584. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  585. package/dist/collection/utils/form/index.js.gz +0 -0
  586. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  587. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  588. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  589. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  590. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  591. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  592. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  593. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  594. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  595. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  596. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  597. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  598. package/dist/collection/utils/i18n/index.js.gz +0 -0
  599. package/dist/collection/utils/i18n/locales/en-us.js +55 -4
  600. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  601. package/dist/collection/utils/i18n/locales/es-es.js +55 -4
  602. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  603. package/dist/collection/utils/i18n/locales/pt-br.js +55 -4
  604. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  605. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  606. package/dist/collection/utils/index.js.gz +0 -0
  607. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  608. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  609. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  610. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  611. package/dist/collection/utils/search/types.js.gz +0 -0
  612. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  613. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  614. package/dist/collection/utils/utils.js.gz +0 -0
  615. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  616. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  617. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  618. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  619. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  620. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  621. package/dist/custom-elements/index.d.ts +66 -0
  622. package/dist/custom-elements/index.js +4497 -1922
  623. package/dist/custom-elements/index.js.gz +0 -0
  624. package/dist/esm/{ApplicationUtils-1569f757.js → ApplicationUtils-29d2709c.js} +1 -1
  625. package/dist/esm/ApplicationUtils-29d2709c.js.gz +0 -0
  626. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  627. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  628. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  629. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  630. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  631. package/dist/esm/FormLayout-bda67973.js +9 -0
  632. package/dist/esm/FormLayout-bda67973.js.gz +0 -0
  633. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  634. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  635. package/dist/esm/{app-globals-c0ac93c0.js → app-globals-44bdc4c4.js} +1 -1
  636. package/dist/esm/app-globals-44bdc4c4.js.gz +0 -0
  637. package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_8.entry.js} +363 -7
  638. package/dist/esm/classic-search-list_8.entry.js.gz +0 -0
  639. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  640. package/dist/esm/ez-actions-button.entry.js +4 -3
  641. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  642. package/dist/esm/ez-alert-list.entry.js +1 -1
  643. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  644. package/dist/esm/ez-alert.entry.js.gz +0 -0
  645. package/dist/esm/ez-application.entry.js.gz +0 -0
  646. package/dist/esm/ez-avatar.entry.js +1 -1
  647. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  648. package/dist/esm/ez-badge.entry.js.gz +0 -0
  649. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  650. package/dist/esm/ez-button.entry.js.gz +0 -0
  651. package/dist/esm/ez-calendar.entry.js +1 -1
  652. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  653. package/dist/esm/ez-card-item.entry.js +58 -0
  654. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  655. package/dist/esm/ez-chart.entry.js.gz +0 -0
  656. package/dist/esm/ez-check.entry.js.gz +0 -0
  657. package/dist/esm/ez-chip.entry.js.gz +0 -0
  658. package/dist/esm/ez-classic-combo-box.entry.js +38 -15
  659. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  660. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  661. package/dist/esm/ez-classic-date-input.entry.js.gz +0 -0
  662. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  663. package/dist/esm/ez-classic-date-time-input.entry.js.gz +0 -0
  664. package/dist/esm/ez-classic-input.entry.js +145 -19
  665. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  666. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  667. package/dist/esm/ez-classic-number-input.entry.js.gz +0 -0
  668. package/dist/esm/ez-classic-search-plus.entry.js +416 -0
  669. package/dist/esm/ez-classic-search-plus.entry.js.gz +0 -0
  670. package/dist/esm/ez-classic-search.entry.js +679 -0
  671. package/dist/esm/ez-classic-search.entry.js.gz +0 -0
  672. package/dist/esm/ez-classic-text-area.entry.js +13 -2
  673. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  674. package/dist/esm/ez-classic-time-input.entry.js +194 -0
  675. package/dist/esm/ez-classic-time-input.entry.js.gz +0 -0
  676. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  677. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  678. package/dist/esm/ez-combo-box.entry.js +4 -3
  679. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  680. package/dist/esm/ez-date-input.entry.js +1 -1
  681. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  682. package/dist/esm/ez-date-time-input.entry.js +1 -1
  683. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  684. package/dist/esm/ez-dialog.entry.js +1 -1
  685. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  686. package/dist/esm/ez-double-list.entry.js +1 -1
  687. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  688. package/dist/esm/ez-dropdown.entry.js +1 -1
  689. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  690. package/dist/esm/ez-empty-card.entry.js +1 -1
  691. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  692. package/dist/esm/ez-file-item.entry.js +1 -1
  693. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  694. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  695. package/dist/esm/ez-form-view.entry.js +130 -37
  696. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  697. package/dist/esm/ez-form.entry.js +144 -81
  698. package/dist/esm/ez-form.entry.js.gz +0 -0
  699. package/dist/esm/ez-grid-pagination.entry.js +327 -0
  700. package/dist/esm/ez-grid-pagination.entry.js.gz +0 -0
  701. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  702. package/dist/esm/ez-grid.entry.js +215 -159
  703. package/dist/esm/ez-grid.entry.js.gz +0 -0
  704. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  705. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  706. package/dist/esm/ez-icon.entry.js +1 -1
  707. package/dist/esm/ez-icon.entry.js.gz +0 -0
  708. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  709. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  710. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  711. package/dist/esm/ez-list.entry.js +1 -1
  712. package/dist/esm/ez-list.entry.js.gz +0 -0
  713. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  714. package/dist/esm/ez-modal-container.entry.js +1 -1
  715. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  716. package/dist/esm/ez-modal.entry.js +2 -2
  717. package/dist/esm/ez-modal.entry.js.gz +0 -0
  718. package/dist/esm/{ez-card-item_5.entry.js → ez-multi-selection-list_5.entry.js} +224 -58
  719. package/dist/esm/ez-multi-selection-list_5.entry.js.gz +0 -0
  720. package/dist/esm/ez-number-input.entry.js +1 -1
  721. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  722. package/dist/esm/ez-pagination.entry.js +1 -1
  723. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  724. package/dist/esm/ez-popover.entry.js +8 -0
  725. package/dist/esm/ez-popover.entry.js.gz +0 -0
  726. package/dist/esm/ez-popup.entry.js +1 -1
  727. package/dist/esm/ez-popup.entry.js.gz +0 -0
  728. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  729. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  730. package/dist/esm/ez-record-navigation.entry.js +117 -0
  731. package/dist/esm/ez-record-navigation.entry.js.gz +0 -0
  732. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  733. package/dist/esm/ez-scroller_2.entry.js +81 -14
  734. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  735. package/dist/esm/ez-search-plus.entry.js +15 -5
  736. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  737. package/dist/esm/ez-search-result-list.entry.js +1 -1
  738. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  739. package/dist/esm/ez-search.entry.js +44 -6
  740. package/dist/esm/ez-search.entry.js.gz +0 -0
  741. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  742. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  743. package/dist/esm/ez-skeleton.entry.js +1 -1
  744. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  745. package/dist/esm/ez-sortable-list.entry.js +2 -2
  746. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  747. package/dist/esm/ez-spinner.entry.js +1 -1
  748. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  749. package/dist/esm/ez-split-button.entry.js +16 -17
  750. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  751. package/dist/esm/ez-split-item.entry.js +4 -3
  752. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  753. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  754. package/dist/esm/ez-tabselector.entry.js +209 -61
  755. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  756. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  757. package/dist/esm/ez-tag.entry.js.gz +0 -0
  758. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  759. package/dist/esm/ez-text-input.entry.js +47 -1
  760. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  761. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  762. package/dist/esm/ez-tile.entry.js.gz +0 -0
  763. package/dist/esm/ez-time-input.entry.js +1 -1
  764. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  765. package/dist/esm/ez-toast.entry.js.gz +0 -0
  766. package/dist/esm/ez-tooltip.entry.js +1 -1
  767. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  768. package/dist/esm/ez-tree.entry.js +1 -1
  769. package/dist/esm/ez-tree.entry.js.gz +0 -0
  770. package/dist/esm/ez-underface.entry.js.gz +0 -0
  771. package/dist/esm/ez-upload.entry.js +2 -2
  772. package/dist/esm/ez-upload.entry.js.gz +0 -0
  773. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  774. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  775. package/dist/esm/ezui.js +3 -3
  776. package/dist/esm/ezui.js.gz +0 -0
  777. package/dist/esm/filter-column.entry.js +1 -1
  778. package/dist/esm/filter-column.entry.js.gz +0 -0
  779. package/dist/esm/{floating-ui.dom.esm-c94d4011.js → floating-ui.dom.esm-0c464cef.js} +166 -120
  780. package/dist/esm/floating-ui.dom.esm-0c464cef.js.gz +0 -0
  781. package/dist/esm/{index-41363fa6.js → index-b5a15d4b.js} +175 -30
  782. package/dist/esm/index-b5a15d4b.js.gz +0 -0
  783. package/dist/esm/index-baa5e267.js +58 -26
  784. package/dist/esm/index-baa5e267.js.gz +0 -0
  785. package/dist/esm/index.js.gz +0 -0
  786. package/dist/esm/loader.js +3 -3
  787. package/dist/esm/loader.js.gz +0 -0
  788. package/dist/esm/polyfills/core-js.js.gz +0 -0
  789. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  790. package/dist/esm/polyfills/dom.js.gz +0 -0
  791. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  792. package/dist/esm/polyfills/index.js.gz +0 -0
  793. package/dist/esm/polyfills/system.js.gz +0 -0
  794. package/dist/esm/purify-ff423562.js +1396 -0
  795. package/dist/esm/purify-ff423562.js.gz +0 -0
  796. package/dist/esm/{search-column-c20d2b01.js → search-column-9414ad22.js} +12 -10
  797. package/dist/esm/search-column-9414ad22.js.gz +0 -0
  798. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  799. package/dist/esm/searchFormatters-6d9b06e4.js.gz +0 -0
  800. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  801. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  802. package/dist/esm/types-6f6b2650.js.gz +0 -0
  803. package/dist/ezui/ezui.esm.js +1 -1
  804. package/dist/ezui/ezui.esm.js.gz +0 -0
  805. package/dist/ezui/index.esm.js.gz +0 -0
  806. package/dist/ezui/p-08e3184d.entry.js +1 -0
  807. package/dist/ezui/p-08e3184d.entry.js.gz +0 -0
  808. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  809. package/dist/ezui/p-0d80e3ec.entry.js.gz +0 -0
  810. package/dist/ezui/p-0ddb9a95.entry.js +1 -0
  811. package/dist/ezui/p-0ddb9a95.entry.js.gz +0 -0
  812. package/dist/ezui/{p-3afa1c6e.entry.js → p-0fbf5842.entry.js} +1 -1
  813. package/dist/ezui/p-0fbf5842.entry.js.gz +0 -0
  814. package/dist/ezui/p-112455b1.js.gz +0 -0
  815. package/dist/ezui/{p-4fe123b6.entry.js → p-1160c33a.entry.js} +1 -1
  816. package/dist/ezui/p-1160c33a.entry.js.gz +0 -0
  817. package/dist/ezui/{p-82b0afe7.entry.js → p-1222e1b6.entry.js} +1 -1
  818. package/dist/ezui/p-1222e1b6.entry.js.gz +0 -0
  819. package/dist/ezui/p-178cb9df.entry.js +1 -0
  820. package/dist/ezui/p-178cb9df.entry.js.gz +0 -0
  821. package/dist/ezui/p-1c7aa5af.entry.js +1 -0
  822. package/dist/ezui/p-1c7aa5af.entry.js.gz +0 -0
  823. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  824. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  825. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  826. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  827. package/dist/ezui/{p-859e3134.entry.js → p-27236a0f.entry.js} +1 -1
  828. package/dist/ezui/p-27236a0f.entry.js.gz +0 -0
  829. package/dist/ezui/{p-02d448bb.entry.js → p-2c1c9ec6.entry.js} +1 -1
  830. package/dist/ezui/p-2c1c9ec6.entry.js.gz +0 -0
  831. package/dist/ezui/{p-baec56c9.js → p-320c401f.js} +1 -1
  832. package/dist/ezui/p-320c401f.js.gz +0 -0
  833. package/dist/ezui/{p-110cfb7d.entry.js → p-381570d2.entry.js} +1 -1
  834. package/dist/ezui/p-381570d2.entry.js.gz +0 -0
  835. package/dist/ezui/p-3b7d9f30.js +1 -0
  836. package/dist/ezui/p-3b7d9f30.js.gz +0 -0
  837. package/dist/ezui/{p-d5eb2fad.entry.js → p-3b9ccdb7.entry.js} +1 -1
  838. package/dist/ezui/p-3b9ccdb7.entry.js.gz +0 -0
  839. package/dist/ezui/p-3e767a74.js.gz +0 -0
  840. package/dist/ezui/p-40a0a773.entry.js +1 -0
  841. package/dist/ezui/p-40a0a773.entry.js.gz +0 -0
  842. package/dist/ezui/p-40a60148.js.gz +0 -0
  843. package/dist/ezui/{p-b3d8034b.entry.js → p-40c92fc7.entry.js} +1 -1
  844. package/dist/ezui/p-40c92fc7.entry.js.gz +0 -0
  845. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  846. package/dist/ezui/p-41954f37.entry.js +1 -0
  847. package/dist/ezui/p-41954f37.entry.js.gz +0 -0
  848. package/dist/ezui/p-45d09b32.entry.js +1 -0
  849. package/dist/ezui/p-45d09b32.entry.js.gz +0 -0
  850. package/dist/ezui/p-46188bfe.entry.js +1 -0
  851. package/dist/ezui/p-46188bfe.entry.js.gz +0 -0
  852. package/dist/ezui/p-47e4a8ce.js +1 -0
  853. package/dist/ezui/p-47e4a8ce.js.gz +0 -0
  854. package/dist/ezui/p-49bc0b59.entry.js +1 -0
  855. package/dist/ezui/p-49bc0b59.entry.js.gz +0 -0
  856. package/dist/ezui/p-5124ba43.entry.js +1 -0
  857. package/dist/ezui/p-5124ba43.entry.js.gz +0 -0
  858. package/dist/ezui/{p-721fd999.entry.js → p-52122022.entry.js} +1 -1
  859. package/dist/ezui/p-52122022.entry.js.gz +0 -0
  860. package/dist/ezui/p-5895e687.js +1 -0
  861. package/dist/ezui/p-5895e687.js.gz +0 -0
  862. package/dist/ezui/{p-04126429.js → p-58fa7883.js} +1 -1
  863. package/dist/ezui/p-58fa7883.js.gz +0 -0
  864. package/dist/ezui/{p-0f7971cf.entry.js → p-5a217a52.entry.js} +1 -1
  865. package/dist/ezui/p-5a217a52.entry.js.gz +0 -0
  866. package/dist/ezui/p-5c440899.js +3 -0
  867. package/dist/ezui/p-5c440899.js.gz +0 -0
  868. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  869. package/dist/ezui/p-63409a57.entry.js +1 -0
  870. package/dist/ezui/p-63409a57.entry.js.gz +0 -0
  871. package/dist/ezui/{p-ce0b36d7.entry.js → p-664b9f4c.entry.js} +1 -1
  872. package/dist/ezui/p-664b9f4c.entry.js.gz +0 -0
  873. package/dist/ezui/{p-9b3f3c02.entry.js → p-6c24ab67.entry.js} +1 -1
  874. package/dist/ezui/p-6c24ab67.entry.js.gz +0 -0
  875. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  876. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  877. package/dist/ezui/{p-34a476a9.entry.js → p-73bae77e.entry.js} +1 -1
  878. package/dist/ezui/p-73bae77e.entry.js.gz +0 -0
  879. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  880. package/dist/ezui/p-7df45688.entry.js +1 -0
  881. package/dist/ezui/p-7df45688.entry.js.gz +0 -0
  882. package/dist/ezui/{p-a80e6b24.entry.js → p-7ecac0c4.entry.js} +1 -1
  883. package/dist/ezui/p-7ecac0c4.entry.js.gz +0 -0
  884. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  885. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  886. package/dist/ezui/{p-39761eca.entry.js → p-83ffba67.entry.js} +1 -1
  887. package/dist/ezui/p-83ffba67.entry.js.gz +0 -0
  888. package/dist/ezui/{p-d6bb930d.entry.js → p-852d6133.entry.js} +1 -1
  889. package/dist/ezui/p-852d6133.entry.js.gz +0 -0
  890. package/dist/ezui/p-88a115b3.js +1 -0
  891. package/dist/ezui/p-88a115b3.js.gz +0 -0
  892. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  893. package/dist/ezui/p-90a0b52b.entry.js +1 -0
  894. package/dist/ezui/p-90a0b52b.entry.js.gz +0 -0
  895. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  896. package/dist/ezui/{p-c03ee0d4.entry.js → p-93d0f1aa.entry.js} +46 -46
  897. package/dist/ezui/p-93d0f1aa.entry.js.gz +0 -0
  898. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  899. package/dist/ezui/p-95fb50d1.entry.js +1 -0
  900. package/dist/ezui/p-95fb50d1.entry.js.gz +0 -0
  901. package/dist/ezui/{p-6c51ccd1.entry.js → p-97545f8e.entry.js} +1 -1
  902. package/dist/ezui/p-97545f8e.entry.js.gz +0 -0
  903. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  904. package/dist/ezui/p-9d06f315.entry.js +1 -0
  905. package/dist/ezui/p-9d06f315.entry.js.gz +0 -0
  906. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  907. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  908. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  909. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  910. package/dist/ezui/{p-948f0fb2.entry.js → p-a62bbd49.entry.js} +1 -1
  911. package/dist/ezui/p-a62bbd49.entry.js.gz +0 -0
  912. package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
  913. package/dist/ezui/p-a9ab6cb9.entry.js.gz +0 -0
  914. package/dist/ezui/p-ab574d59.js.gz +0 -0
  915. package/dist/ezui/{p-b989a33e.entry.js → p-ade1c43b.entry.js} +1 -1
  916. package/dist/ezui/p-ade1c43b.entry.js.gz +0 -0
  917. package/dist/ezui/{p-9ab2add9.entry.js → p-afb2f145.entry.js} +1 -1
  918. package/dist/ezui/p-afb2f145.entry.js.gz +0 -0
  919. package/dist/ezui/p-b1e45320.js.gz +0 -0
  920. package/dist/ezui/p-b43fcdb6.js +1 -0
  921. package/dist/ezui/p-b43fcdb6.js.gz +0 -0
  922. package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
  923. package/dist/ezui/p-b50289bb.entry.js.gz +0 -0
  924. package/dist/ezui/p-b853763b.js.gz +0 -0
  925. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  926. package/dist/ezui/p-bcf0460e.entry.js +1 -0
  927. package/dist/ezui/p-bcf0460e.entry.js.gz +0 -0
  928. package/dist/ezui/p-be4b042f.entry.js +1 -0
  929. package/dist/ezui/p-be4b042f.entry.js.gz +0 -0
  930. package/dist/ezui/{p-05c32903.entry.js → p-c547f48f.entry.js} +1 -1
  931. package/dist/ezui/p-c547f48f.entry.js.gz +0 -0
  932. package/dist/ezui/{p-ecd6409d.entry.js → p-c6b9a72a.entry.js} +2 -2
  933. package/dist/ezui/p-c6b9a72a.entry.js.gz +0 -0
  934. package/dist/ezui/p-ca4c015a.entry.js +1 -0
  935. package/dist/ezui/p-ca4c015a.entry.js.gz +0 -0
  936. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  937. package/dist/ezui/p-d6f50207.entry.js +1 -0
  938. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  939. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  940. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  941. package/dist/ezui/p-dcb7275b.entry.js +1 -0
  942. package/dist/ezui/p-dcb7275b.entry.js.gz +0 -0
  943. package/dist/ezui/p-dcd6a163.entry.js +1 -0
  944. package/dist/ezui/p-dcd6a163.entry.js.gz +0 -0
  945. package/dist/ezui/p-dcde2e69.entry.js +1 -0
  946. package/dist/ezui/p-dcde2e69.entry.js.gz +0 -0
  947. package/dist/ezui/p-ddf856db.entry.js +1 -0
  948. package/dist/ezui/p-ddf856db.entry.js.gz +0 -0
  949. package/dist/ezui/p-de14fe07.js +1 -0
  950. package/dist/ezui/p-de14fe07.js.gz +0 -0
  951. package/dist/ezui/p-df6173c8.entry.js +1 -0
  952. package/dist/ezui/p-df6173c8.entry.js.gz +0 -0
  953. package/dist/ezui/{p-a4083a7a.entry.js → p-e60aa084.entry.js} +1 -1
  954. package/dist/ezui/p-e60aa084.entry.js.gz +0 -0
  955. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  956. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  957. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  958. package/dist/ezui/p-eb0cfd29.entry.js +1 -0
  959. package/dist/ezui/p-eb0cfd29.entry.js.gz +0 -0
  960. package/dist/ezui/p-ec7db713.js.gz +0 -0
  961. package/dist/ezui/{p-e5de42e7.entry.js → p-ef3cd4ef.entry.js} +1 -1
  962. package/dist/ezui/p-ef3cd4ef.entry.js.gz +0 -0
  963. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  964. package/dist/ezui/p-f7f7bb17.entry.js +1 -0
  965. package/dist/ezui/p-f7f7bb17.entry.js.gz +0 -0
  966. package/dist/ezui/{p-9b215871.entry.js → p-f7fb2587.entry.js} +1 -1
  967. package/dist/ezui/p-f7fb2587.entry.js.gz +0 -0
  968. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  969. package/dist/ezui/p-fed3f5fe.entry.js +1 -0
  970. package/dist/ezui/p-fed3f5fe.entry.js.gz +0 -0
  971. package/dist/ezui/p-feffb6a5.entry.js +1 -0
  972. package/dist/ezui/p-feffb6a5.entry.js.gz +0 -0
  973. package/dist/index.cjs.js.gz +0 -0
  974. package/dist/index.js.gz +0 -0
  975. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +11 -3
  976. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  977. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  978. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +24 -1
  979. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  980. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  981. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  982. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  983. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +189 -0
  984. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  985. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  986. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  987. package/dist/types/components/ez-form/ez-form.d.ts +6 -0
  988. package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
  989. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +9 -0
  990. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  991. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  992. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  993. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  994. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
  995. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  996. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  997. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  998. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  999. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  1000. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  1001. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  1002. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +14 -0
  1003. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  1004. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  1005. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  1006. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  1007. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  1008. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +91 -0
  1009. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +7 -0
  1010. package/dist/types/components/ez-image-input/ez-image-input.d.ts +43 -0
  1011. package/dist/types/components/ez-popover/ez-popover.d.ts +9 -0
  1012. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  1013. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  1014. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  1015. package/dist/types/components/ez-search/ez-search.d.ts +12 -1
  1016. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  1017. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  1018. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
  1019. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  1020. package/dist/types/components.d.ts +3506 -2059
  1021. package/dist/types/utils/form/FormMetadata.d.ts +2 -1
  1022. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  1023. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
  1024. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
  1025. package/dist/types/utils/i18n/locales/en-us.d.ts +54 -3
  1026. package/dist/types/utils/i18n/locales/es-es.d.ts +54 -3
  1027. package/dist/types/utils/i18n/locales/pt-br.d.ts +54 -3
  1028. package/dist/types/utils/i18n/translations.d.ts +162 -9
  1029. package/package.json +5 -5
  1030. package/react/components.d.ts +11 -0
  1031. package/react/components.js +11 -0
  1032. package/react/components.js.map +1 -1
  1033. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  1034. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  1035. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  1036. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  1037. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  1038. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -227
  1039. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  1040. package/dist/cjs/floating-ui.dom.esm-f1e4e440.js.gz +0 -0
  1041. package/dist/cjs/index-1be40f19.js.gz +0 -0
  1042. package/dist/cjs/purify-417f092d.js +0 -2433
  1043. package/dist/cjs/purify-417f092d.js.gz +0 -0
  1044. package/dist/cjs/search-column-316e2c59.js.gz +0 -0
  1045. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  1046. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  1047. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  1048. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  1049. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  1050. package/dist/esm/ez-popover-core.entry.js +0 -223
  1051. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  1052. package/dist/esm/floating-ui.dom.esm-c94d4011.js.gz +0 -0
  1053. package/dist/esm/index-41363fa6.js.gz +0 -0
  1054. package/dist/esm/purify-055bfb9f.js +0 -2431
  1055. package/dist/esm/purify-055bfb9f.js.gz +0 -0
  1056. package/dist/esm/search-column-c20d2b01.js.gz +0 -0
  1057. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  1058. package/dist/ezui/p-04126429.js.gz +0 -0
  1059. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  1060. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  1061. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  1062. package/dist/ezui/p-18384b91.entry.js +0 -1
  1063. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  1064. package/dist/ezui/p-24460bb2.js +0 -1
  1065. package/dist/ezui/p-24460bb2.js.gz +0 -0
  1066. package/dist/ezui/p-288631d1.entry.js +0 -1
  1067. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  1068. package/dist/ezui/p-30ffb9ed.js +0 -1
  1069. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  1070. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  1071. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  1072. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  1073. package/dist/ezui/p-3ce867cf.entry.js +0 -1
  1074. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  1075. package/dist/ezui/p-4314f87a.entry.js +0 -1
  1076. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  1077. package/dist/ezui/p-48effc69.entry.js +0 -1
  1078. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  1079. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  1080. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  1081. package/dist/ezui/p-5554704c.js +0 -1
  1082. package/dist/ezui/p-5554704c.js.gz +0 -0
  1083. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  1084. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  1085. package/dist/ezui/p-6bd430b8.entry.js +0 -1
  1086. package/dist/ezui/p-6bd430b8.entry.js.gz +0 -0
  1087. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  1088. package/dist/ezui/p-6ca0815e.entry.js +0 -1
  1089. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  1090. package/dist/ezui/p-6cb82d33.entry.js +0 -1
  1091. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  1092. package/dist/ezui/p-6de4cae1.entry.js +0 -1
  1093. package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
  1094. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  1095. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  1096. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  1097. package/dist/ezui/p-82b0afe7.entry.js.gz +0 -0
  1098. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  1099. package/dist/ezui/p-8bf077ea.entry.js +0 -1
  1100. package/dist/ezui/p-8bf077ea.entry.js.gz +0 -0
  1101. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  1102. package/dist/ezui/p-94deb71e.entry.js +0 -1
  1103. package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
  1104. package/dist/ezui/p-98c42bbc.entry.js +0 -1
  1105. package/dist/ezui/p-98c42bbc.entry.js.gz +0 -0
  1106. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  1107. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  1108. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  1109. package/dist/ezui/p-a278f26e.entry.js +0 -1
  1110. package/dist/ezui/p-a278f26e.entry.js.gz +0 -0
  1111. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  1112. package/dist/ezui/p-a61fdd20.js +0 -1
  1113. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  1114. package/dist/ezui/p-a80b1287.entry.js +0 -1
  1115. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  1116. package/dist/ezui/p-a80e6b24.entry.js.gz +0 -0
  1117. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  1118. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  1119. package/dist/ezui/p-baec56c9.js.gz +0 -0
  1120. package/dist/ezui/p-bbeafaa1.entry.js +0 -1
  1121. package/dist/ezui/p-bbeafaa1.entry.js.gz +0 -0
  1122. package/dist/ezui/p-c03ee0d4.entry.js.gz +0 -0
  1123. package/dist/ezui/p-cde41310.entry.js +0 -1
  1124. package/dist/ezui/p-cde41310.entry.js.gz +0 -0
  1125. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  1126. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  1127. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  1128. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  1129. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  1130. package/dist/ezui/p-de862af4.entry.js +0 -1
  1131. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  1132. package/dist/ezui/p-dee18824.entry.js +0 -1
  1133. package/dist/ezui/p-dee18824.entry.js.gz +0 -0
  1134. package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
  1135. package/dist/ezui/p-ec5a5d85.js +0 -3
  1136. package/dist/ezui/p-ec5a5d85.js.gz +0 -0
  1137. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  1138. package/dist/ezui/p-f00c9dc2.entry.js +0 -1
  1139. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,f as n,H as s,g as r}from"./p-23a36bb6.js";import{DateUtils as o,ApplicationContext as l,Action as a,StringUtils as u,KeyboardManager as h,DataUnit as d,ElementIDUtils as c}from"@sankhyalabs/core";import{b as f,a as v,S as m,f as p,c as b,D as y}from"./p-58fa7883.js";import{g as w,i as g}from"./p-3b7d9f30.js";import{F as _}from"./p-47e4a8ce.js";import"./p-320c401f.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-5895e687.js";const C=/child\[([^\]]+)\]/,O=/\$\{.+\}/;class j{constructor(){this._sheets=new Map,this._requiredFields=[],this._cleanOnCopyFields=[],this._defaultValues={}}static getDetailName(t){const i=C.exec(t);return i?i[1]:void 0}getSheet(t){return this._sheets.get(t)}getAllSheets(){return this._sheets}addSheet(t){this._sheets.set(t.name,t)}addRequiredFields(t){this._requiredFields=this._requiredFields.concat(t)}getRequiredFields(){return this._requiredFields}addCleanOnCopyFields(t){this._cleanOnCopyFields=this._cleanOnCopyFields.concat(t)}getCleanOnCopyFields(){return this._cleanOnCopyFields}addDefaultValues(t){return this._defaultValues=Object.assign(Object.assign({},this._defaultValues),t)}getDefaultValues(){const t={};return Object.entries(this._defaultValues).forEach((([i,e])=>{if("string"==typeof e){const t=O.exec(e);t&&(e=this.getDefaultVar(t[0]))}t[i]=e})),t}getDefaultVar(t){return"${data}"===t?o.getToday():"${datahora}"===t?o.getToday(!0):this._defaultVars?this._defaultVars.get(t):void 0}setDefaultVars(t){this._defaultVars=t}}function E(t){var i,e;return(null!==(e=null===(i=t.fields)||void 0===i?void 0:i.map(((t,i)=>({label:t.tab,name:t.tab,order:i,visible:!0,isDetail:!1,isCustom:!1}))))&&void 0!==e?e:[]).reduce(((t,i)=>t.some((t=>t.name===i.name))?t:[...t,i]),[])}const F=(t,i)=>{var e;if(!i)return;const n=null!==(e=null==i?void 0:i.tabs)&&void 0!==e?e:E(i);return null==n?void 0:n.find((i=>i.label===t))},z=(t,i,e)=>{if("string"!=typeof t)return t;if(e){const i=F(t,e);if(i)return i}return Array.from(i.keys()).find((i=>i.label===t))||{label:t,visible:!0}};function x(t,i){var e,n;return"__main"===t[0].label&&"__main"!==i[0].label?-1:"__main"!==t[0].label&&"__main"===i[0].label?1:(null!==(e=t[0].order)&&void 0!==e?e:Number.MAX_VALUE)-(null!==(n=i[0].order)&&void 0!==n?n:Number.MAX_VALUE)}const A=t=>`child[${t.name}]`,N=t=>({name:A(t),label:t.label,fields:[]});function S(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var D="function"==typeof Symbol&&Symbol.observable||"@@observable",M=function(){return Math.random().toString(36).substring(7).split("").join(".")},R={INIT:"@@redux/INIT"+M(),REPLACE:"@@redux/REPLACE"+M(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+M()}};function T(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function P(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(S(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(S(1));return e(P)(t,i)}if("function"!=typeof t)throw new Error(S(2));var s=t,r=i,o=[],l=o,a=!1;function u(){l===o&&(l=o.slice())}function h(){if(a)throw new Error(S(3));return r}function d(t){if("function"!=typeof t)throw new Error(S(4));if(a)throw new Error(S(5));var i=!0;return u(),l.push(t),function(){if(i){if(a)throw new Error(S(6));i=!1,u();var e=l.indexOf(t);l.splice(e,1),o=null}}}function c(t){if(!T(t))throw new Error(S(7));if(void 0===t.type)throw new Error(S(8));if(a)throw new Error(S(9));try{a=!0,r=s(r,t)}finally{a=!1}for(var i=o=l,e=0;e<i.length;e++)(0,i[e])();return t}function f(t){if("function"!=typeof t)throw new Error(S(10));s=t,c({type:R.REPLACE})}function v(){var t,i=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(S(11));function e(){t.next&&t.next(h())}return e(),{unsubscribe:i(e)}}})[D]=function(){return this},t}return c({type:R.INIT}),(n={dispatch:c,subscribe:d,getState:h,replaceReducer:f})[D]=v,n}const I={};function L(t=I,i){switch(i.type){case $.METADATA_LOADED:return Object.assign(Object.assign({},t),{formMetadata:i.payload,currentSheet:void 0});case $.CHANGE_TAB:return Object.assign(Object.assign({},t),{currentSheet:i.payload});default:return t}}function V(t){return t.formMetadata}function K(t){const i=function(t){return t.currentSheet}(t);return i?t.formMetadata.getSheet(i):Array.from(t.formMetadata.getAllSheets().values())[0]}var $;!function(t){t.METADATA_LOADED="FORM/METADATA_LOADED",t.CHANGE_TAB="FORM/CHANGE_TAB"}($||($={}));const q=class{constructor(e){t(this,e),this.ezFormRequestClearFieldToFocus=i(this,"ezFormRequestClearFieldToFocus",7),this.ezFormSetFields=i(this,"ezFormSetFields",7),this.ezReady=i(this,"ezReady",7),this.formItemsReady=i(this,"formItemsReady",7),this._customEditors=new Map,this._application=l.getContextValue("__SNK__APPLICATION__"),this.onDataUnitAction=t=>{t.type===a.METADATA_LOADED&&this.processMetadata()},this._fieldsProps=new Map,this._singleColumn=!1,this._formLayout=void 0,this.dataUnit=void 0,this.config=void 0,this.recordsValidator=void 0,this.fieldToFocus=void 0,this.onlyStaticFields=!1,this.useSearchField=!0,this.elementFocusSearchField=void 0,this.customUiBuilders=new Map}validate(){return this._dataBinder.validate()}async addCustomEditor(t,i,e){if(this._formView)return void this._formView.addCustomEditor(t,i,e);const n=new Map(this._customEditors);n.set(t,{customEditor:i,detailContext:e}),this._customEditors=n}observeConfig(){this.processMetadata()}async setFieldProp(t,i,e){const n=new Map(this._fieldsProps),s=this._fieldsProps.get(t);n.set(t,Object.assign(Object.assign({},s),{[i]:e})),this._fieldsProps=n}getDynamicContent(){var t;const i=V(this._store.getState());if(!i)return null;const n=Array.from(i.getAllSheets().values()),s=K(null===(t=this._store)||void 0===t?void 0:t.getState());let r=[];if(n.length>1){const t=n.map(((t,i)=>({tabKey:t.name,label:t.label,index:i}))),i="selector";r.push(e("ez-tabselector",{tabs:this.buildIdTabSelector(t),onEzChange:t=>this._store.dispatch(function(t){return{type:$.CHANGE_TAB,payload:"string"==typeof t?t:t.tabKey}}(t.detail)),selectedTab:s.name,"data-element-id":i}))}return r=r.concat(this.buildFormContent(s)),r}buildFormContent(t){const i=null==t?void 0:t.fields;if(null==t)return;this.ezFormSetFields.emit(i);const n=`${u.replaceAccentuatedChars(u.toCamelCase(null==t?void 0:t.label),!1)}_selectorContainer`;return e("div",{class:"dynamic-content ez-box--no-outline","data-element-id":n,ref:t=>this._container=t,tabindex:"0"},e("ez-popover",{ref:t=>this._ezPopoverSearchField=t,overlayType:"none"},this.renderFieldColumn()),e("ez-form-view",{ref:t=>this._formView=t,class:"ez-row ez-padding-vertical--small",fields:i,singleColumn:this._singleColumn,formLayout:this._formLayout,selectedRecord:this.dataUnit.getSelectedRecord(),customUiBuilders:this.customUiBuilders}))}renderFieldColumn(){return null!=this._fieldSearch||(this._fieldSearch=v({value:u.generateUUID(),label:this._i18n("ez-form.labelSearchField")},(({argument:t})=>this.fieldsOptionLoader(t)),(t=>this.onSelectField(t)))),this._fieldSearch}getFormFields(){var t;return null===(t=this.config)||void 0===t?void 0:t.fields}fieldsOptionLoader(t){const i=null==t?void 0:t.toLowerCase(),e=this.getFormFields().map((t=>{var i;return null===(i=this.dataUnit)||void 0===i?void 0:i.getField(t.name)})).filter((t=>{var e,n;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(i))||(null===(n=t.label)||void 0===n?void 0:n.toLowerCase().includes(i))})).map((t=>({value:t.name,label:t.label})));return Promise.resolve(e)}onSelectField(t){null!=t&&null!=t.value?(this.fieldToFocus=t.value,this._ezPopoverSearchField.hide()):this.fieldToFocus=""}async initKeyboardManager(){var t,i;this._keyboardManager=new h({propagate:!1,element:null!==(t=this.elementFocusSearchField)&&void 0!==t?t:this._element}),this.useSearchField&&this._keyboardManager.bind(m,(async()=>{if(!this._container||!this._ezPopoverSearchField)return;const t=this._container.getBoundingClientRect();await p(this._fieldSearch),this._ezPopoverSearchField.showUnder(this._container,{horizontalGap:t.width-b,verticalGap:-1*t.height})}),{description:this._i18n("ez-form.labelSearchField"),element:null!==(i=this.elementFocusSearchField)&&void 0!==i?i:this._element})}componentDidLoad(){this.initKeyboardManager()}processMetadata(){if(this.bindFields()&&this.dataUnit&&this._store){const t=((t,i,e=!1,n)=>{var s;null!=t&&!0!==(null==t?void 0:t.emptyConfig)||(t=(t=>{const i=t.metadata;let e;return i&&(e=i.fields.filter((t=>!1!==t.visible)).map((t=>({name:t.name,defaultValue:t.defaultValue})))),{emptyConfig:!1,fields:e}})(i));const r=new Map,o=new Map,l=[],a=[],u={};(null!==(s=null==t?void 0:t.tabs)&&void 0!==s?s:E(t)).forEach((t=>{o.has(t.label)||!1!==t.visible||o.set(t.label,t)})),function(t,i,e,n,s,r,o){var l;null===(l=null==t?void 0:t.fields)||void 0===l||l.forEach((l=>{var a,u,h,d,c,v;if(!1===l.visible)return;!l.tab&&(null===(u=null===(a=n.getField(l.name))||void 0===a?void 0:a.properties)||void 0===u?void 0:u.isPrimaryKey)&&(l.tab="__main");const m=z(l.tab||"Geral",i,t);if(e.has(m.label))return;const p=n.getField(l.name);if(p&&(null==(null==p?void 0:p.visible)||!0===(null==p?void 0:p.visible))&&m.visible){i.has(m)||i.set(m,[]);const t=f(p,l);null===(h=i.get(m))||void 0===h||h.push(t),t.required&&s.push(l.name),((null==l.cleanOnCopy?null===(d=p.properties)||void 0===d?void 0:d.cleanOnCopy:l.cleanOnCopy)||(null===(c=p.properties)||void 0===c?void 0:c.cleanOnCopy))&&r.push(l.name);let e=null==l.defaultValue?null===(v=p.properties)||void 0===v?void 0:v.defaultValue:l.defaultValue;if(e&&null!=e.value){const{type:t,value:i}=e;if(t)if("V"===t)e=i;else try{const t=JSON.parse(i);e=t&&"value"in t?t:i}catch(t){}o[l.name]=e}}}))}(t,r,o,i,l,a,u);const h=new j;return h.setDefaultVars(t.defaultVars),e&&function(t,i,e){const n=t.metadata;void 0!==n&&void 0!==n.children&&n.children.forEach((t=>{const n=F(t.label,i);if(n)return void e.set(Object.assign(n,{name:A(t),isDetail:!0}),[]);const{label:s,name:r,fields:o}=N(t);e.set({name:r,label:s,isDetail:!0},o)}))}(i,t,r),n&&function(t,i,e){t.forEach((t=>{const n=F(t.label,i),s={};Object.entries(t).forEach((([t,i])=>{(function(t){return["id","label"].includes(t)})(t)||(s[t]=i)})),e.set(n?Object.assign(n,{name:t.id,isCustom:!0,ctxProps:s}):{label:t.label,name:t.id,isCustom:!0,visible:!0,ctxProps:s},[])}))}(n,t,r),Array.from(r.entries()).sort(x).forEach((([t,i])=>{o.has(t.label)||h.addSheet(function(t,i){const e=w();return{label:"__main"===t.label?e("ez-form.mainTab"):t.label,name:t.name||t.label,isCustom:t.isCustom,isDetail:t.isDetail,ctxProps:t.ctxProps,fields:i}}(t,i))})),h.addRequiredFields(l),h.addCleanOnCopyFields(a),h.addDefaultValues(u),h})(this.config,this.dataUnit);this._store.dispatch({type:$.METADATA_LOADED,payload:t})}}isStatic(){var t;return(null===(t=this._staticFields)||void 0===t?void 0:t.length)>0}bindFields(){return!this.isStatic()||!1===this.onlyStaticFields}async componentWillLoad(){var t;void 0===this.dataUnit&&(this.dataUnit=new d("ez-form")),this.dataUnit.unsubscribe(this.onDataUnitAction),this.dataUnit.subscribe(this.onDataUnitAction),this._dataBinder=new y(this.dataUnit),this._store=P(L),this._store.subscribe((()=>n(this))),this._staticFields=Array.from(this._element.querySelectorAll("[data-field-name]")),this.processMetadata(),c.addIDInfo(this._element,null,{dataUnit:this.dataUnit});const i=await(null===(t=this._application)||void 0===t?void 0:t.getLayoutFormConfig());this.setSingleColumn(i),this.registerNotifyListeners(i),this._i18n=await g()}async setSingleColumn(t){this._singleColumn=(null==t?void 0:t.config)===_.CASCADE||(null==t?void 0:t.config)===_.CLASSIC_CASCADE,this._formLayout=null==t?void 0:t.config}async registerNotifyListeners(t){t&&t.onConfigChange((t=>{this._singleColumn=t===_.CASCADE||t===_.CLASSIC_CASCADE,this._formLayout=t}))}componentDidRender(){const t=V(this._store.getState());t.addRequiredFields(this._staticFields.filter((t=>t.dataset.required)).map((t=>t.dataset.fieldName))),this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")),this.dataUnit.dataUnitId,t,this.recordsValidator),this.ezReady.emit(),this.handleFieldToFocus(),this.setCustomEditors(),this.setFieldsProps()}setCustomEditors(){if(this._formView)for(const[t,i]of this._customEditors)this._formView.addCustomEditor(t,i.customEditor,i.detailContext),this._customEditors.delete(t)}handleFieldToFocus(){var t;if(null==this.fieldToFocus)return;const i=K(null===(t=this._store)||void 0===t?void 0:t.getState());(null==i?void 0:i.fields).some((t=>t.name===this.fieldToFocus))&&requestAnimationFrame((()=>{this._dataBinder.setFocus(this.fieldToFocus),this.ezFormRequestClearFieldToFocus.emit(),this.fieldToFocus=null}))}setFieldsProps(){if(this._formView)for(const[t,i]of this._fieldsProps){for(const e in i)this._formView.setFieldProp(t,e,i[e]);this._fieldsProps.delete(t)}}disconnectedCallback(){var t;this.dataUnit.unsubscribe(this.onDataUnitAction),this._dataBinder.onDisconnectedCallback(),null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}buildIdTabSelector(t){return t&&t.forEach((t=>t[c.DATA_ELEMENT_ID_ATTRIBUTE_NAME]=u.toCamelCase(t.label))),t}render(){return e(s,null,this.isStatic()?null:this.getDynamicContent())}get _element(){return r(this)}static get watchers(){return{config:["observeConfig"]}}};q.style=".sc-ez-form-h{display:flex;flex-direction:column;width:100%}.dynamic-content.sc-ez-form ez-collapsible-box.sc-ez-form{--ez-collapsible-box__header--padding-right:var(--space-small, 6px);--ez-collapsible-box__header--padding-left:var(--space-small, 6px)}";export{q as ez_form}
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as a}from"./p-23a36bb6.js";import{DateUtils as n,ElementIDUtils as h}from"@sankhyalabs/core";import{C as o}from"./p-ec7db713.js";import{i as r}from"./p-3b7d9f30.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this.ezInput=i(this,"ezInput",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i){const s=n.validateDate(t),e=n.validateDate(i);if((null==s?void 0:s.getTime())!==(null==e?void 0:e.getTime())){const t=this.getTextValue(s)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===s?void 0:s)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const i=n.validateDate(this.value),s=n.validateDate(t);(null==i?void 0:i.getTime())!==(null==s?void 0:s.getTime())?this.value=s:this._changePending=!1}async handleChangeCalendar(t){this.changeValue(this._calendar.value),this.ezInput.emit(this._calendar.value),this._popover.hide(),await this.setFocus(),t.stopPropagation()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,i=n.strToDate(t);if(i||!t){this.errorMessage="";const t=n.validateDate(this.value),s=n.validateDate(i);(null==t?void 0:t.getTime())===(null==s?void 0:s.getTime())?(s&&(this._textInput.value=this.getTextValue(s)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):(this._focused=!1,this.changeValue(s))}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-classic-date-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){return t?n.formatDate(t):void 0}handleInput(t){const i=n.strToDate(this._textInput.value),s=n.validateDate(this.value),e=n.validateDate(i);if((null==s?void 0:s.getTime())!==(null==e?void 0:e.getTime())&&(this._changePending=!0,this._focused=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"===t.data||"h"===t.data){const t=new Date;this.ezInput.emit(t),this.changeValue(t)}}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}async componentWillLoad(){this.i18n=await r()}componentDidLoad(){o.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return h.addIDInfoIfNotExists(this._elem,"input"),s(e,null,s("ez-classic-input",{"data-element-id":h.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),mask:"##/##/####",enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,size:this.size,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder,required:this.required,leftIconName:"calendar",leftIconClickable:this.enabled,onIconClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},onEzChange:t=>t.stopPropagation()}),s("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":h.getInternalIDInfo("calendar"),onEzChange:t=>this.handleChangeCalendar(t),value:this.value})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};l.style=':host{display:block;width:100%;--ez-classic-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-classic-date-input__input--border-color:var(--ez-classic-date-input__input--background-color);--ez-classic-date-input__calendar-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="15px"><path d="M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z"/></svg>\')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-classic-date-input__calendar-image);mask-image:var(--ez-classic-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-classic-input{--text-input__input--background-color:var(--ez-classic-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-classic-date-input__input--border-color, #DCE0E8)}';export{l as ez_classic_date_input}
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-23a36bb6.js";import{C as o}from"./p-ec7db713.js";import{ObjectUtils as r,StringUtils as n,ElementIDUtils as a}from"@sankhyalabs/core";import{A as l}from"./p-320c401f.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as c}from"./p-3b7d9f30.js";import{S as d}from"./p-5895e687.js";import"./p-47e4a8ce.js";import{r as u,a as v}from"./p-40a60148.js";const p=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezEmptySearch=i(this,"ezEmptySearch",7),this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._showLoadingDescription=!1,this._criteria=void 0,this.value=void 0,this.label=void 0,this.enabled=!0,this.errorMessage=void 0,this.optionLoader=void 0,this.contextProperties=void 0,this.showSelectedValue=!0,this.showOptionValue=!0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!1,this.mode="regular",this.canShowError=!0,this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.ignoreLimitCharsToSearch=!1,this.options=void 0,this.suppressSearch=!1,this.ensureClearButtonVisible=!1,this.suppressPreLoad=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0,this.showMore=void 0,this.suppressInputPersist=!1,this.hideDescriptionInput=!1}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,!(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())&&this.errorMessage&&this.setInputValue())}getValue(t){return"object"==typeof t?null==t?void 0:t.value:t}validateNewValue(t,i){const s=this.getValue(t),e=this.getValue(i);return!("[object Object]"===s||s===e)}async observeValue(t,i){if(this._textInput&&this.validateNewValue(t,i)){if("string"==typeof t)return void await this.handleValueAsString(t);const i=this.getSelectedOption(t),s=this.getSelectedOption(this._currentValue);this.isDifferentValues(s,i)&&(this._currentValue=i,this.setInputValue(),this.ezChange.emit(null!=i?i:void 0)),this.resetOptions()}}observeOptions(t,i){!t.length&&this.suppressPreLoad||(null==t?void 0:t.join(""))!==(null==i?void 0:i.join(""))&&this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.value))}),100)}:t=>t(this.value))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}async handleValueAsString(t){this.getSelectedOption(t)?this.setInputValue():(await this.loadDescriptionValue(t),this._currentValue&&(this.setInputValue(),this.ezChange.emit(this.value),this._currentValue=this.value))}isDifferentValues(t,i){return r.objectToString(t||{})!==r.objectToString(i||{})}getFormattedText(t){if(null==t)return;let i=this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label;return i=null==i?void 0:i.replace(new RegExp(this._startHighlightTag,"g"),"").replace(new RegExp(this._endHighlightTag,"g"),""),i}getText(){const t=this.getSelectedOption(this._currentValue),i=this.getFormattedText(t);return u(i)}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t?Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}):t}updateVisibleOptions(){let t=this._source||[];this._visibleOptions=this.suppressEmptyOption?t:[{value:void 0,label:""}].concat(t),this._maxWidthValue=this.getMaxWidthValue()}getMaxWidthValue(){var t;const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}showOptions(){this.enabled&&(this.isOptionsVisible()||this._ezPopOverPlusElement.showUnder(this._textInput))}hideOptions(){this._ezPopOverPlusElement.hide()}isOptionsVisible(){return this._ezPopOverPlusElement.opened}selectCurrentOption(t=!0){void 0!==this._preSelection?(this.selectOption(this._visibleOptions[this._preSelection],t),this._preSelection=void 0):this.controlListWithOnlyOne()}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,this._showLoadingDescription=!0,t.then((t=>{this.updateSource(t)})).finally((()=>{this._showLoading=!1,this._showLoadingDescription=!1})),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1,this.controlEmptySearch(!1))):this.selectOption(t))}clearSource(){this._source=[],this.updateVisibleOptions()}selectOption(t,i=!0){var s,e;const h=this.getSelectedOption(this.value),o=Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}),r=Object.assign(Object.assign({},o),{value:u(null==o?void 0:o.value),label:u(null==o?void 0:o.label)});if((null===(s=null==h?void 0:h.value)||void 0===s?void 0:s.toString())!==(null===(e=null==r?void 0:r.value)||void 0===e?void 0:e.toString())||null==h&&null!=r&&"value"in r){const t=(null==r?void 0:r.value)?r:void 0;this.value=t,this._currentValue=t}else this.setInputValue(),this.resetOptions();this._visibleOptions=[],this.clearSource(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i},this.contextProperties):this.options)}cancelPreselection(){!this._textInput.value&&this._currentValue&&this._source.length>0?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue()}),this._deboucingTime),this.resetOptions()}setInputValue(t=!0){if(this.suppressInputPersist)return void this.clearSearch();const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null,this._currentValue=null,this._textInput.value="",this.ezChange.emit(null)}controlListWithOnlyOne(t=!0){var i,s;const e=null===(i=this._visibleOptions)||void 0===i?void 0:i.filter((t=>""!==t.label&&null!=t.value));if((null==e?void 0:e.length)>0){const i=new RegExp(this._startHighlightTag,"g"),h=new RegExp(this._endHighlightTag,"g");let o=n.decodeHtmlEntities(e[0].label);const r={value:null===(s=e[0].value)||void 0===s?void 0:s.replace(i,"").replace(h,""),label:null==o?void 0:o.replace(i,"").replace(h,"")};this.selectOption(r,t)}}controlEmptySearch(t=!0){var i;(null===(i=this._visibleOptions)||void 0===i?void 0:i.length)?this.controlListWithOnlyOne(t):(this.clearSearch(),l.info(this.i18n("ez-search.emptyList")))}async loadDescriptionValue(t){var i,s,e;if(null==t)return;if((null===(i=this.options)||void 0===i?void 0:i.length)>0)return void this.loadOptionValue(t);const h={mode:this.hideDescriptionInput?d.LOAD_DESCRIPTION:d.PREDICTIVE,argument:t};try{const t=await(null===(s=this.optionLoader)||void 0===s?void 0:s.call(this,h,this.contextProperties));if(null==t)return;t instanceof Promise?t.then((t=>{this.setDescriptionValue(t)})):this.setDescriptionValue(t)}catch(t){throw"WarningException"===(null===(e=null==t?void 0:t.constructor)||void 0===e?void 0:e.name)&&(this.errorMessage=t.message),t}}setDescriptionValue(t){const i=(null==t?void 0:t[0])||t;null!=i&&Object.keys(i).length?(this._currentValue=i?Object.assign(Object.assign({},i),{value:v(i.value),label:v(i.label)}):i,this.value=this._currentValue,this.setTextInputValue()):this.showNoResultMessage()}setTextInputValue(){if(this._textInput&&null==this._textInput.value){if(null==this.value)return;const t="string"==typeof this.value?this.value:this.getFormattedText(this.value);this._textInput.value=u(t)}}loadOptionValue(t){var i;const s=null===(i=this.options)||void 0===i?void 0:i.find((i=>i.value===t));null!=s?this.selectOption(s):this.showNoResultMessage()}async showNoResultMessage(){var t;const i="string"==typeof this.value?this.value:null===(t=this.value)||void 0===t?void 0:t.value;this.clearSearch(),this.ezEmptySearch.emit(i);const s=this.i18n("ez-search.emptySearch",{field:this.getFieldLabel()});this.errorMessage=s,await l.info(s)}getFieldLabel(){var t;return null===(t=this.label)||void 0===t?void 0:t.replace(this.i18n("app.requiredInfo"),"").toUpperCase()}resetOptions(){this.showMore?this.handleResetOptionsWithShowMoreVisible():(this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions())}handleResetOptionsWithShowMoreVisible(){setTimeout((()=>{this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}),100)}async handleInitialValue(){if(!this.getValue(this.value))return;if("string"==typeof this.value)return void await this.handleValueAsString(this.value);let t=this.getFormattedText(this.value);t=u(t),this._textInput.value=t}async componentWillLoad(){if(this.i18n=await c(),void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value"),e=t.getAttribute("details");s||(s=i),this.options.push({label:i,value:s,details:e}),t.hidden=!0}))}this.updateSource([])}componentDidRender(){var t;null===(t=this._optionsList)||void 0===t||t.querySelectorAll(".item").forEach((t=>{a.addIDInfoIfNotExists(t,"itemSearch")}))}async componentDidLoad(){this._currentValue=this.value,o.applyVarsTextInput(this.el,this._textInput),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)}))})),this._intersectionObserver=new IntersectionObserver((t=>{t.forEach((t=>{!t.isIntersecting&&this._ezPopOverPlusElement&&this._ezPopOverPlusElement.hide()}))}),{threshold:.1}),this._textInput&&this._intersectionObserver.observe(this._textInput),await this.handleInitialValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),null===(i=this._intersectionObserver)||void 0===i||i.disconnect()}handlerIconClick(){this.loadOptions(d.ADVANCED)}buildNumberArgument(t){return this.isTextSearch?NaN:Number(t||void 0)}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim(),e=this.buildNumberArgument(s);this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this._showLoading=!1,this.clearSource(),this.ignoreLimitCharsToSearch||!isNaN(e)||s.length>=this._limitCharsToSearch?(this._showLoading=!0,this._changeDeboucingTimeout=window.setTimeout((()=>{this.loadOptions(d.PREDICTIVE,isNaN(e)?s:e.toString())}),this._deboucingTime),this.showOptions()):this.hideOptions()):(this.hideOptions(),this._showLoading=!1,this.clearSource())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}async keyDownHandler(t){switch(this._tabPressed=!1,t.ctrlKey&&("f"!==t.key&&"F"!==t.key||(this.loadOptions(d.ADVANCED),t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())),t.key){case"ArrowDown":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),this.isOptionsVisible()||this.showOptions(),await this._searchList.nextOption();break;case"ArrowUp":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),await this._searchList.previousOption();break;case"Enter":this.handleEventPropagation(t),this.selectCurrentOption();break;case"Escape":this.cancelPreselection();break;case"Tab":this._tabPressed=!0,this.selectCurrentOption(!1)}}handleEventPropagation(t){this._ezPopOverPlusElement.opened&&this.stopPropagateEnterKeyEvent&&t.stopPropagation()}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}canShowLoadSpinDescription(){return this._showLoadingDescription&&!this._ezPopOverPlusElement.opened}onChangePreSelection(t){this._preSelection=t}async handleClickShowMore(){var t,i;if(!this.optionLoader)return;const s=null!==(i=null===(t=this._textInput)||void 0===t?void 0:t.value)&&void 0!==i?i:"",e={mode:d.ADVANCED,argument:s},h=await this.optionLoader(e,this.contextProperties);h&&!Array.isArray(h)&&this.selectOption(h)}renderShowMore(){if(this.showMore&&!this._showLoading)return s("div",{style:{display:"flex",justifyContent:"center"},"data-element-id":a.getInternalIDInfo("showMore")},s("ez-button",{onClick:async()=>await this.handleClickShowMore(),variant:"tertiary",style:{width:"100%",justifyContent:"center"},label:this.i18n("ez-search.showMore")}))}render(){var t;return a.addIDInfoIfNotExists(this.el,"input"),s(e,null,s("ez-text-input",{"data-element-id":a.getInternalIDInfo("textInput"),class:this.suppressSearch?"suppressed-search-input":"",ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder},s("button",{class:"btn",slot:"leftIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},this.canShowLoadSpinDescription()?s("div",{class:"message__loading"}):s("ez-icon",{iconName:"search"})),(null===(t=this._textInput)||void 0===t?void 0:t.value)&&(this._criteria||this.value)||this.ensureClearButtonVisible?s("button",{class:"btn btn__close",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.clearSearch()},s("ez-icon",{iconName:"close"})):void 0),s("ez-popover-plus",{ref:t=>this._ezPopOverPlusElement=t,autoClose:!1,overlayType:"none",useAnchorSize:!0,anchorElement:[this._textInput,this.el],"data-element-id":this.el.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("div",null,s("search-list",{ref:t=>this._searchList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-search.emptyList"),canShowListOptions:this.canShowListOptions(),value:this.value,showOptionValue:this.showOptionValue,preSelection:this._preSelection,onChangeValue:({detail:t})=>this.selectOption(t),onChangePreSelection:({detail:t})=>this.onChangePreSelection(t)}),this.renderShowMore())))}get el(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};p.style=":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search--min-width:0;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width);min-width:var(--ez-search--min-width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";export{p as ez_search}
Binary file
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as a,H as n,g as e}from"./p-23a36bb6.js";import{i as o}from"./p-3b7d9f30.js";import{Action as s,ElementIDUtils as r}from"@sankhyalabs/core";const l="ez-grid-pagination:ask-cancel",c=class{constructor(a){i(this,a),this.pageChange=t(this,"pageChange",7),this._dataUnitInitialized=!1,this._pendingResolve=null,this._collapseTimeout=null,this._suppressedUntilNextAsk=!1,this._hoverEnabled=!1,this.handleLoadAllChange=i=>{this.loadAll=i.target.checked},this.handleAskCancelPagination=i=>{const t=i.detail;if(!t||!this.dataUnit)return;if(t.dataUnitName!==this.dataUnit.name)return;this.resolvePending("CONTINUE"),this._pendingResolve=t.resolve,this._suppressedUntilNextAsk=!1,this._hoverEnabled=!0,this.loadAll=!1;const a=this._cancelPaginationPopoverElement;a&&!a.opened&&"function"==typeof a.showAbove&&a.showAbove({bottom:"4px",right:"4px"})},this.paginationInfo=void 0,this.leftButtonDisabled=void 0,this.rightButtonDisabled=void 0,this.expanded=!1,this.loadAll=!1,this.paginationCounterMode="auto",this.dataUnit=void 0,this.paginationTextPosition="left",this.buttonsSize="large"}async previousPage(){this.dataUnit&&(await this.dataUnit.previousPage(),this.handlePageChange("previous"))}async nextPage(){this.dataUnit&&(await this.dataUnit.nextPage(),this.handlePageChange("next"))}async firstPage(){this.dataUnit&&(await this.dataUnit.gotoPage(0),this.handlePageChange("previous"))}async lastPage(){this.dataUnit&&(await this.dataUnit.gotoPage(this.getTotalPages()-1),this.handlePageChange("next"))}onDataUnitChange(){this.initializeDataUnit()}shouldPresentPaginationLabel(){return"hidden"!==this.paginationCounterMode}getRemainingPageLabel(){var i;return this.paginationInfo?`${null==this.paginationInfo.total?this.i18n("ez-grid-pagination.remainingPageLabel",{count:(null!==(i=this.paginationInfo.count)&&void 0!==i?i:0)+1}):this.i18n("ez-grid-pagination.remainingTotalLabel",{total:this.paginationInfo.total,count:this.paginationInfo.count})}`:""}getActualPageLabel(){var i,t;return this.paginationInfo?`${null!==(i=this.paginationInfo.firstRecord)&&void 0!==i?i:0} - ${null!==(t=this.paginationInfo.lastRecord)&&void 0!==t?t:0}`:"0-0"}getPaginationCount(){var i;if(!this.paginationInfo||!this.dataUnit)return"0-0";const t=(null!==(i=this.paginationInfo.currentPage)&&void 0!==i?i:0)+1;let a=this.getTotalPages();return this.i18n("ez-grid-pagination.pageCounter",{currentPage:t,totalPages:a})}getTotalPages(){var i;return void 0!==this.paginationInfo.total?Math.ceil(this.paginationInfo.total/this.dataUnit.pageSize):Math.ceil((null!==(i=this.paginationInfo.count)&&void 0!==i?i:0)/this.dataUnit.pageSize)}handlePageChange(i){this.setPaginationInfo(),this.setStatusButtonPagination(),this.pageChange.emit(i)}resolvePending(i){if(!this._pendingResolve)return;const t=this._pendingResolve;this._pendingResolve=null,t(i)}async handleCancelAction(){if(!this.dataUnit)return;this.dataUnit.cancelPagination=!0,this.resolvePending("CANCEL"),this._suppressedUntilNextAsk=!0,this.collapse();const i=this._cancelPaginationPopoverElement;i&&"function"==typeof i.hide&&await i.hide()}async handleContinueAction(){this.resolvePending(this.loadAll?"LOAD_ALL":"CONTINUE"),this._suppressedUntilNextAsk=!0,this.loadAll=!1,this.collapse();const i=this._cancelPaginationPopoverElement;i&&"function"==typeof i.hide&&await i.hide()}handleShowCancelPagination(){const i=this._cancelPaginationPopoverElement;if(!this.hasToShowCancelPagination()){if(this._pendingResolve)return;return i&&"function"==typeof i.hide&&i.hide(),this._hoverEnabled=!1,void this.collapse()}this._suppressedUntilNextAsk||(null==i?void 0:i.opened)||i&&"function"==typeof i.showAbove&&i.showAbove({bottom:"4px",right:"4px"})}hasToShowCancelPagination(){return!(!this.dataUnit||!this.paginationInfo)&&(!this.dataUnit.cancelPagination&&void 0===this.paginationInfo.total&&this.paginationInfo.count>this.dataUnit.pageSize)}expand(){this._hoverEnabled&&(this._collapseTimeout&&(clearTimeout(this._collapseTimeout),this._collapseTimeout=null),this.expanded=!0)}collapse(){this._collapseTimeout&&(clearTimeout(this._collapseTimeout),this._collapseTimeout=null),this.expanded=!1}scheduleCollapse(){this._collapseTimeout&&clearTimeout(this._collapseTimeout),this._collapseTimeout=setTimeout((()=>{this._collapseTimeout=null,this.expanded=!1}),120)}setPaginationInfo(){this.paginationInfo=this.dataUnit&&this.dataUnit.getPaginationInfo()||null}dataUnitObserver(i){switch(i.type){case s.PAGINATION_UPDATED:this.setPaginationInfo(),this.setStatusButtonPagination(),this.handleShowCancelPagination();break;case s.DATA_LOADED:this.setPaginationInfo()}}getLeftButtonDisabledStatus(){var i,t;return!this.dataUnit||(null!==(t=null===(i=this.paginationInfo)||void 0===i?void 0:i.currentPage)&&void 0!==t?t:0)<=0}getRightButtonDisabledStatus(){var i;return!this.dataUnit||!(null===(i=this.paginationInfo)||void 0===i?void 0:i.hasMore)}setStatusButtonPagination(){this.leftButtonDisabled=this.getLeftButtonDisabledStatus(),this.rightButtonDisabled=this.getRightButtonDisabledStatus()}initializeDataUnit(){this.dataUnit&&!this._dataUnitInitialized&&(this.setPaginationInfo(),this.setStatusButtonPagination(),this._dataUnitObserverBound=this.dataUnitObserver.bind(this),this.dataUnit.subscribe(this._dataUnitObserverBound),this._dataUnitInitialized=!0)}addInfoId(){this._element&&r.addIDInfo(this._element)}renderCollapsedTrigger(){return a("div",{class:"cancel-pagination__trigger"},a("ez-icon",{iconName:"sync",size:"x-large",class:"spin"}),a("span",{class:"cancel-pagination__label"},this.i18n("ez-grid-pagination.paginationLabel")))}renderExpandedContent(){return a("div",{class:"cancel-pagination__expanded",role:"group","aria-label":this.i18n("ez-grid-pagination.paginationLabel")},a("div",{class:"cancel-pagination__trigger cancel-pagination__trigger--expanded"},a("ez-icon",{iconName:"ellipsis-circle",size:"large",class:"spin"}),a("span",{class:"cancel-pagination__label"},this.i18n("ez-grid-pagination.paginationLabel"))),a("hr",{class:"cancel-pagination__divider","aria-hidden":"true"}),a("p",{class:"cancel-pagination__message"},this.i18n("ez-grid-pagination.largeLoad.line1")),a("p",{class:"cancel-pagination__message"},this.i18n("ez-grid-pagination.largeLoad.line2")),a("p",{class:"cancel-pagination__question"},this.i18n("ez-grid-pagination.largeLoad.line3")),a("label",{class:"cancel-pagination__checkbox"},a("input",{type:"checkbox",checked:this.loadAll,onChange:this.handleLoadAllChange}),a("span",null,this.i18n("ez-grid-pagination.largeLoad.loadAll"))),a("div",{class:"cancel-pagination__actions"},a("ez-button",{class:"cancel-pagination__continue-btn",label:this.i18n("ez-grid-pagination.largeLoad.continue"),size:"small",onClick:()=>this.handleContinueAction()}),a("ez-button",{class:"cancel-pagination__cancel-btn ez-button--primary",label:this.i18n("ez-grid-pagination.largeLoad.cancel"),size:"small",onClick:()=>this.handleCancelAction()})))}renderCancelPagination(){return a("ez-popover",{class:"cancel-pagination__popover",ref:i=>this._cancelPaginationPopoverElement=i,"overlay-type":"none",autoClose:!1},a("div",{class:{"cancel-pagination":!0,"cancel-pagination--expanded":this.expanded},onMouseEnter:()=>this.expand(),onMouseLeave:()=>this.scheduleCollapse()},this.expanded?this.renderExpandedContent():this.renderCollapsedTrigger()))}async connectedCallback(){this._askCancelListenerBound=this.handleAskCancelPagination.bind(this),document.addEventListener(l,this._askCancelListenerBound),this.i18n=await o(),this.initializeDataUnit()}componentDidLoad(){this.addInfoId()}disconnectedCallback(){this._askCancelListenerBound&&(document.removeEventListener(l,this._askCancelListenerBound),this._askCancelListenerBound=void 0),this._collapseTimeout&&(clearTimeout(this._collapseTimeout),this._collapseTimeout=null),this.resolvePending("CONTINUE"),this.dataUnit&&this._dataUnitInitialized&&this._dataUnitObserverBound&&this.dataUnit.unsubscribe(this._dataUnitObserverBound)}render(){return a(n,null,a("div",{id:"grid-pagination--container",class:{pagination__container:!0,"pagination-expanded":"hidden"!==this.paginationCounterMode,"pagination-contracted":"hidden"===this.paginationCounterMode,"pagination-text-right":"right"===this.paginationTextPosition}},a("div",{id:"grid-pagination--page-navigator",class:"pagination__page-navigator"},a("div",{id:"grid-pagination--row-summary-panel",class:"pagination__row-summary-panel"},a("span",{class:"pagination__label","aria-live":"polite","aria-atomic":"true",title:`${this.getActualPageLabel()} ${this.getRemainingPageLabel()}`},this.shouldPresentPaginationLabel()&&this.getActualPageLabel(),this.shouldPresentPaginationLabel()&&this.getRemainingPageLabel())),this.renderCancelPagination(),a("div",{id:"grid-pagination--page-summary-panel",class:{"pagination__page-summary-panel":!0,pagination__container:!0,"pagination-expanded":"hidden"!==this.paginationCounterMode,"pagination-contracted":"hidden"===this.paginationCounterMode,"pagination-text-right":"right"===this.paginationTextPosition}},a("div",{id:"grid-pagination--first-tooltip",class:{"pagination__buttons-container":!0,disabled:this.leftButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.firstPage")},a("ez-icon",{size:this.buttonsSize,iconName:"dual-chevron-left",onClick:()=>!this.leftButtonDisabled&&this.firstPage()}))),a("div",{id:"grid-pagination--previous-tooltip",class:{"pagination__buttons-container":!0,disabled:this.leftButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.previousPage")},a("ez-icon",{size:this.buttonsSize,iconName:"chevron-left",onClick:()=>!this.leftButtonDisabled&&this.previousPage()}))),a("div",{class:"pagination__container-label"},a("span",{class:"pagination__label","aria-live":"polite","aria-atomic":"true",title:`${this.getActualPageLabel()} ${this.getRemainingPageLabel()}`},this.shouldPresentPaginationLabel()&&this.getPaginationCount())),a("div",{id:"grid-pagination--next-tooltip",class:{"pagination__buttons-container":!0,disabled:this.rightButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.nextPage")},a("ez-icon",{size:this.buttonsSize,iconName:"chevron-right",onClick:()=>!this.rightButtonDisabled&&this.nextPage()}))),a("div",{id:"grid-pagination--last-tooltip",class:{"pagination__buttons-container":!0,disabled:this.rightButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.lastPage")},a("ez-icon",{size:this.buttonsSize,iconName:"dual-chevron-right",onClick:()=>!this.rightButtonDisabled&&this.lastPage()})))))))}get _element(){return e(this)}static get watchers(){return{dataUnit:["onDataUnitChange"]}}};c.style=":host{display:block}.pagination__container{display:flex;align-items:center;flex-grow:1;flex-shrink:1;flex-wrap:nowrap;justify-content:flex-end;position:relative}ez-popover.cancel-pagination__popover{position:absolute;right:0;bottom:100%;width:0;height:0}.pagination__buttons-container{display:flex;border-radius:50%;background-color:var(--color--ocean-green-90, #E1E2E5);cursor:pointer}.pagination__buttons-container ez-icon{--ez-icon--color:var(--color--ocean-green-600, #008561)}.pagination__buttons-container.disabled{background-color:#DEDEDE;cursor:not-allowed;pointer-events:auto}.pagination__buttons-container.disabled ez-icon{--ez-icon--color:var(--color--petroleum-300, #848D9C);pointer-events:none}.pagination__page-navigator{display:flex;align-items:center}.pagination__row-summary-panel{font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');color:var(--color--petroleum-300, #848D9C);font-weight:var(--font-weight--regular, 400);padding:var(--space--8, 8px) var(--space--16, 16px)}.pagination__page-summary-panel{display:flex;align-items:center;padding:var(--space--8, 8px) var(--space--16, 16px);gap:var(--space--4, 4px)}.pagination__container-label{margin:0 var(--space--8, 8px)}.pagination-contracted{width:100px}.pagination-expanded{min-width:150px}.pagination__label{font-family:var(--font--pattern, 'Roboto');color:var(--color--petroleum-300, #848D9C);font-weight:var(--font-weight--regular, 400);width:100%;white-space:nowrap}.cancel-pagination{display:flex;flex-direction:column;padding:var(--space--12, 12px);gap:var(--space--16, 16px);min-width:304px;max-width:180px;transition:min-width 220ms cubic-bezier(0.4, 0, 0.2, 1),\n max-width 220ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}.cancel-pagination--expanded{min-width:304px}.cancel-pagination__expanded{animation:cancel-pagination-fade-in 220ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both}@keyframes cancel-pagination-fade-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.cancel-pagination__trigger{display:flex;flex-direction:row;align-items:center;gap:var(--space--16, 16px);padding:var(--space--4, 4px);border-radius:var(--border-radius--small, 4px);cursor:pointer;outline:none}.cancel-pagination__trigger:focus-visible{box-shadow:0 0 0 2px var(--color--ocean-green-600, #008561)}.cancel-pagination__trigger--expanded{cursor:default;padding-bottom:var(--space--4, 4px)}.cancel-pagination__divider{border:0;border-top:1px solid var(--color--petroleum-100, #C8CCD3);width:100%}.cancel-pagination__label{color:var(--color--petroleum-700, #2E3742);font-size:var(--font-size--medium, 16px);font-weight:var(--font-weight--semi-bold, 600);font-family:var(--font--pattern, 'Roboto');white-space:nowrap}.cancel-pagination__expanded{display:flex;flex-direction:column;gap:var(--space--8, 8px)}.cancel-pagination__message{color:var(--color--petroleum-500, #4A5567);font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');font-weight:var(--font-weight--regular, 400);margin:0;line-height:1.4}.cancel-pagination__question{color:var(--color--petroleum-700, #2E3742);font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');font-weight:var(--font-weight--semi-bold, 600);margin-top:16px;margin-bottom:8px}.cancel-pagination__checkbox{display:flex;flex-direction:row;align-items:center;gap:var(--space--8, 8px);color:var(--color--petroleum-700, #2E3742);font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');cursor:pointer}.cancel-pagination__checkbox input[type=\"checkbox\"]{cursor:pointer;accent-color:var(--color--ocean-green-600, #008561)}.cancel-pagination__actions{display:flex;flex-direction:row;justify-content:flex-end;gap:var(--space--8, 8px);padding-top:var(--space--4, 4px)}.spin{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear;--ez-icon--color:var(--color--ocean-green-600, #008561)}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.pagination-text-right{flex-direction:row-reverse}";export{c as ez_grid_pagination}
Binary file
@@ -0,0 +1 @@
1
+ const t=Math.min,n=Math.max,e=Math.round,o=Math.floor,r=t=>({x:t,y:t}),i={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function a(e,o,r){return n(e,t(o,r))}function c(t,n){return"function"==typeof t?t(n):t}function s(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function f(t){return"x"===t?"y":"x"}function d(t){return"y"===t?"height":"width"}const m=new Set(["top","bottom"]);function p(t){return m.has(s(t))?"y":"x"}function y(t){return f(p(t))}function h(t){return t.replace(/start|end/g,(t=>l[t]))}const w=["left","right"],g=["right","left"],x=["top","bottom"],v=["bottom","top"];function b(t){return t.replace(/left|right|bottom|top/g,(t=>i[t]))}function A(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function S(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function R(t,n,e){let{reference:o,floating:r}=t;const i=p(n),l=y(n),a=d(l),c=s(n),f="y"===i,m=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,w=o[a]/2-r[a]/2;let g;switch(c){case"top":g={x:m,y:o.y-r.height};break;case"bottom":g={x:m,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(u(n)){case"start":g[l]-=w*(e&&f?-1:1);break;case"end":g[l]+=w*(e&&f?-1:1)}return g}async function F(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=c(n,t),y=A(p),h=a[m?"floating"===d?"reference":"floating":d],w=S(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(h)))||e?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:s})),g="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(x))&&await(null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:s}):g);return{top:(w.top-b.top+y.top)/v.y,bottom:(b.bottom-w.bottom+y.bottom)/v.y,left:(w.left-b.left+y.left)/v.x,right:(b.right-w.right+y.right)/v.x}}const k=new Set(["left","top"]);function O(){return"undefined"!=typeof window}function C(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function D(t){var n;return null==(n=(M(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function M(t){return!!O()&&(t instanceof Node||t instanceof T(t).Node)}function P(t){return!!O()&&(t instanceof Element||t instanceof T(t).Element)}function z(t){return!!O()&&(t instanceof HTMLElement||t instanceof T(t).HTMLElement)}function L(t){return!(!O()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof T(t).ShadowRoot)}const B=new Set(["inline","contents"]);function E(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=G(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!B.has(r)}const H=new Set(["table","td","th"]);function I(t){return H.has(C(t))}const N=[":popover-open",":modal"];function j(t){return N.some((n=>{try{return t.matches(n)}catch(t){return!1}}))}const q=["transform","translate","scale","rotate","perspective"],W=["transform","translate","scale","rotate","perspective","filter"],$=["paint","layout","strict","content"];function V(t){const n=X(),e=P(t)?G(t):t;return q.some((t=>!!e[t]&&"none"!==e[t]))||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||W.some((t=>(e.willChange||"").includes(t)))||$.some((t=>(e.contain||"").includes(t)))}function X(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Y=new Set(["html","body","#document"]);function _(t){return Y.has(C(t))}function G(t){return T(t).getComputedStyle(t)}function J(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if("html"===C(t))return t;const n=t.assignedSlot||t.parentNode||L(t)&&t.host||D(t);return L(n)?n.host:n}function Q(t){const n=K(t);return _(n)?t.ownerDocument?t.ownerDocument.body:t.body:z(n)&&E(n)?n:Q(n)}function U(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=Q(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),l=T(r);if(i){const t=Z(l);return n.concat(l,l.visualViewport||[],E(r)?r:[],t&&e?U(t):[])}return n.concat(r,U(r,[],e))}function Z(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tt(t){const n=G(t);let o=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=z(t),l=i?t.offsetWidth:o,a=i?t.offsetHeight:r,c=e(o)!==l||e(r)!==a;return c&&(o=l,r=a),{width:o,height:r,$:c}}function nt(t){return P(t)?t:t.contextElement}function et(t){const n=nt(t);if(!z(n))return r(1);const o=n.getBoundingClientRect(),{width:i,height:l,$:a}=tt(n);let c=(a?e(o.width):o.width)/i,s=(a?e(o.height):o.height)/l;return c&&Number.isFinite(c)||(c=1),s&&Number.isFinite(s)||(s=1),{x:c,y:s}}const ot=r(0);function rt(t){const n=T(t);return X()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:ot}function it(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),l=nt(t);let a=r(1);n&&(o?P(o)&&(a=et(o)):a=et(t));const c=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==T(t))&&n}(l,e,o)?rt(l):r(0);let s=(i.left+c.x)/a.x,u=(i.top+c.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){const t=T(l),n=o&&P(o)?T(o):o;let e=t,r=Z(e);for(;r&&o&&n!==e;){const t=et(r),n=r.getBoundingClientRect(),o=G(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,l=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=l,e=T(r),r=Z(e)}}return S({width:f,height:d,x:s,y:u})}function lt(t,n){const e=J(t).scrollLeft;return n?n.left+e:it(D(t)).left+e}function at(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-lt(t,e),y:e.top+n.scrollTop}}const ct=new Set(["absolute","fixed"]);function st(t,e,o){let i;if("viewport"===e)i=function(t,n){const e=T(t),o=D(t),r=e.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const t=X();(!t||t&&"fixed"===n)&&(a=r.offsetLeft,c=r.offsetTop)}const s=lt(o);if(s<=0){const t=o.ownerDocument,n=t.body,e=getComputedStyle(n),r="CSS1Compat"===t.compatMode&&parseFloat(e.marginLeft)+parseFloat(e.marginRight)||0,l=Math.abs(o.clientWidth-n.clientWidth-r);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:c}}(t,o);else if("document"===e)i=function(t){const e=D(t),o=J(t),r=t.ownerDocument.body,i=n(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=n(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+lt(t);const c=-o.scrollTop;return"rtl"===G(r).direction&&(a+=n(e.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:c}}(D(t));else if(P(e))i=function(t,n){const e=it(t,!0,"fixed"===n),o=e.top+t.clientTop,i=e.left+t.clientLeft,l=z(t)?et(t):r(1);return{width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:i*l.x,y:o*l.y}}(e,o);else{const n=rt(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return S(i)}function ut(t,n){const e=K(t);return!(e===n||!P(e)||_(e))&&("fixed"===G(e).position||ut(e,n))}function ft(t,n,e){const o=z(n),i=D(n),l="fixed"===e,a=it(t,!0,l,n);let c={scrollLeft:0,scrollTop:0};const s=r(0);function u(){s.x=lt(i)}if(o||!o&&!l)if(("body"!==C(n)||E(i))&&(c=J(n)),o){const t=it(n,!0,l,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else i&&u();l&&!o&&i&&u();const f=!i||o||l?r(0):at(i,c);return{x:a.left+c.scrollLeft-s.x-f.x,y:a.top+c.scrollTop-s.y-f.y,width:a.width,height:a.height}}function dt(t){return"static"===G(t).position}function mt(t,n){if(!z(t)||"fixed"===G(t).position)return null;if(n)return n(t);let e=t.offsetParent;return D(t)===e&&(e=e.ownerDocument.body),e}function pt(t,n){const e=T(t);if(j(t))return e;if(!z(t)){let n=K(t);for(;n&&!_(n);){if(P(n)&&!dt(n))return n;n=K(n)}return e}let o=mt(t,n);for(;o&&I(o)&&dt(o);)o=mt(o,n);return o&&_(o)&&dt(o)&&!V(o)?e:o||function(t){let n=K(t);for(;z(n)&&!_(n);){if(V(n))return n;if(j(n))return null;n=K(n)}return null}(t)||e}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:i}=t;const l="fixed"===i,a=D(o),c=!!n&&j(n.floating);if(o===a||c&&l)return e;let s={scrollLeft:0,scrollTop:0},u=r(1);const f=r(0),d=z(o);if((d||!d&&!l)&&(("body"!==C(o)||E(a))&&(s=J(o)),z(o))){const t=it(o);u=et(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const m=!a||d||l?r(0):at(a,s);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y}},getDocumentElement:D,getClippingRect:function(e){let{element:o,boundary:r,rootBoundary:i,strategy:l}=e;const a=[..."clippingAncestors"===r?j(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=U(t,[],!1).filter((t=>P(t)&&"body"!==C(t))),r=null;const i="fixed"===G(t).position;let l=i?K(t):t;for(;P(l)&&!_(l);){const n=G(l),e=V(l);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&ct.has(r.position)||E(l)&&!e&&ut(t,l))?o=o.filter((t=>t!==l)):r=n,l=K(l)}return n.set(t,o),o}(o,this._c):[].concat(r),i],c=a.reduce(((e,r)=>{const i=st(o,r,l);return e.top=n(i.top,e.top),e.right=t(i.right,e.right),e.bottom=t(i.bottom,e.bottom),e.left=n(i.left,e.left),e}),st(o,a[0],l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:pt,getElementRects:async function(t){const n=this.getOffsetParent||pt,e=this.getDimensions,o=await e(t.floating);return{reference:ft(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=tt(t);return{width:n,height:e}},getScale:et,isElement:P,isRTL:function(t){return"rtl"===G(t).direction}};function ht(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function wt(e,r,i,l){void 0===l&&(l={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=l,d=nt(e),m=a||c?[...d?U(d):[],...U(r)]:[];m.forEach((t=>{a&&t.addEventListener("scroll",i,{passive:!0}),c&&t.addEventListener("resize",i)}));const p=d&&u?function(e,r){let i,l=null;const a=D(e);function c(){var t;clearTimeout(i),null==(t=l)||t.disconnect(),l=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),c();const d=e.getBoundingClientRect(),{left:m,top:p,width:y,height:h}=d;if(u||r(),!y||!h)return;const w={rootMargin:-o(p)+"px "+-o(a.clientWidth-(m+y))+"px "+-o(a.clientHeight-(p+h))+"px "+-o(m)+"px",threshold:n(0,t(1,f))||1};let g=!0;function x(t){const n=t[0].intersectionRatio;if(n!==f){if(!g)return s();n?s(!1,n):i=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==n||ht(d,e.getBoundingClientRect())||s(),g=!1}try{l=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch(t){l=new IntersectionObserver(x,w)}l.observe(e)}(!0),c}(d,i):null;let y,h=-1,w=null;s&&(w=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&w&&(w.unobserve(r),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(r)}))),i()})),d&&!f&&w.observe(d),w.observe(r));let g=f?it(e):null;return f&&function t(){const n=it(e);g&&!ht(g,n)&&i(),g=n,y=requestAnimationFrame(t)}(),i(),()=>{var t;m.forEach((t=>{a&&t.removeEventListener("scroll",i),c&&t.removeEventListener("resize",i)})),null==p||p(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(y)}}const gt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:l,middlewareData:a}=n,f=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=s(e),a=u(e),f="y"===p(e),d=k.has(l)?-1:1,m=i&&f?-1:1,y=c(n,t);let{mainAxis:h,crossAxis:w,alignmentAxis:g}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return a&&"number"==typeof g&&(w="end"===a?-1*g:g),f?{x:w*m,y:h*d}:{x:h*d,y:w*m}}(n,t);return l===(null==(e=a.offset)?void 0:e.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:l}}}}},xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r,platform:i}=n,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...m}=c(t,n),y={x:e,y:o},h=await i.detectOverflow(n,m),w=p(s(r)),g=f(w);let x=y[g],v=y[w];l&&(x=a(x+h["y"===g?"top":"left"],x,x-h["y"===g?"bottom":"right"])),u&&(v=a(v+h["y"===w?"top":"left"],v,v-h["y"===w?"bottom":"right"]));const b=d.fn({...n,[g]:x,[w]:v});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[g]:l,[w]:u}}}}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:a,platform:f,elements:m}=n,{mainAxis:A=!0,crossAxis:S=!0,fallbackPlacements:R,fallbackStrategy:F="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:O=!0,...C}=c(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const T=s(r),D=p(a),M=s(a)===a,P=await(null==f.isRTL?void 0:f.isRTL(m.floating)),z=R||(M||!O?[b(a)]:function(t){const n=b(t);return[h(t),n,h(n)]}(a)),L="none"!==k;!R&&L&&z.push(...function(t,n,e,o){const r=u(t);let i=function(t,n,e){switch(t){case"top":case"bottom":return e?n?g:w:n?w:g;case"left":case"right":return n?x:v;default:return[]}}(s(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(h)))),i}(a,O,k,P));const B=[a,...z],E=await f.detectOverflow(n,C),H=[];let I=(null==(o=i.flip)?void 0:o.overflows)||[];if(A&&H.push(E[T]),S){const t=function(t,n,e){void 0===e&&(e=!1);const o=u(t),r=y(t),i=d(r);let l="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(l=b(l)),[l,b(l)]}(r,l,P);H.push(E[t[0]],E[t[1]])}if(I=[...I,{placement:r,overflows:H}],!H.every((t=>t<=0))){var N,j;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,n=B[t];if(n&&("alignment"!==S||D===p(n)||I.every((t=>p(t.placement)!==D||t.overflows[0]>0))))return{data:{index:t,overflows:I},reset:{placement:n}};let e=null==(j=I.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:j.placement;if(!e)switch(F){case"bestFit":{var q;const t=null==(q=I.filter((t=>{if(L){const n=p(t.placement);return n===D||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:q[0];t&&(e=t);break}case"initialPlacement":e=a}if(r!==e)return{reset:{placement:e}}}return{}}}},bt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(o){var r,i;const{placement:l,rects:a,platform:f,elements:d}=o,{apply:m=(()=>{}),...y}=c(e,o),h=await f.detectOverflow(o,y),w=s(l),g=u(l),x="y"===p(l),{width:v,height:b}=a.floating;let A,S;"top"===w||"bottom"===w?(A=w,S=g===(await(null==f.isRTL?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(S=w,A="end"===g?"top":"bottom");const R=b-h.top-h.bottom,F=v-h.left-h.right;let k=t(b-h[A],R),O=t(v-h[S],F);if(null!=(r=o.middlewareData.shift)&&r.enabled.x&&(O=F),null!=(i=o.middlewareData.shift)&&i.enabled.y&&(k=R),!o.middlewareData.shift&&!g){const t=n(h.left,0),e=n(h.right,0),o=n(h.top,0),r=n(h.bottom,0);x?O=v-2*(0!==t||0!==e?t+e:n(h.left,h.right)):k=b-2*(0!==o||0!==r?o+r:n(h.top,h.bottom))}await m({...o,availableWidth:O,availableHeight:k});const C=await f.getDimensions(d.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}},At=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:r,placement:i,rects:l,platform:s,elements:f,middlewareData:m}=e,{element:p,padding:h=0}=c(n,e)||{};if(null==p)return{};const w=A(h),g={x:o,y:r},x=y(i),v=d(x),b=await s.getDimensions(p),S="y"===x,R=S?"top":"left",F=S?"bottom":"right",k=S?"clientHeight":"clientWidth",O=l.reference[v]+l.reference[x]-g[x]-l.floating[v],C=g[x]-l.reference[x],T=await(null==s.getOffsetParent?void 0:s.getOffsetParent(p));let D=T?T[k]:0;D&&await(null==s.isElement?void 0:s.isElement(T))||(D=f.floating[k]||l.floating[v]);const M=O/2-C/2,P=D/2-b[v]/2-1,z=t(w[R],P),L=t(w[F],P),B=z,E=D-b[v]-L,H=D/2-b[v]/2+M,I=a(B,H,E),N=!m.arrow&&null!=u(i)&&H!==I&&l.reference[v]/2-(H<B?z:L)-b[v]/2<0,j=N?H<B?H-B:H-E:0;return{[x]:g[x]+j,data:{[x]:I,centerOffset:H-I-j,...N&&{alignmentOffset:j}},reset:N}}}),St=(t,n,e)=>{const o=new Map,r={platform:yt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,a=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(n));let s=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=R(s,o,c),d=o,m={},p=0;for(let e=0;e<a.length;e++){var y;const{name:i,fn:h}=a[e],{x:w,y:g,data:x,reset:v}=await h({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:s,platform:{...l,detectOverflow:null!=(y=l.detectOverflow)?y:F},elements:{reference:t,floating:n}});u=null!=w?w:u,f=null!=g?g:f,m={...m,[i]:{...m[i],...x}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(s=!0===v.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):v.rects),({x:u,y:f}=R(s,d,c))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:m}})(t,n,{...r,platform:i})};export{bt as a,wt as b,St as c,At as d,vt as f,gt as o,xt as s}
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as o,MaskFormatter as a}from"@sankhyalabs/core";class n{constructor(t){this.mask=t,this.maskChars={"#":t=>/\d/.test(t),U:t=>/[a-zA-Z]/.test(t),L:t=>/[a-zA-Z]/.test(t),A:t=>/[a-zA-Z0-9]/.test(t),Z:t=>/[a-zA-Z0-9]/.test(t),"?":t=>/[a-zA-Z]/.test(t),"*":()=>!0}}format(t){if(!t||!this.mask)return t;const i=this.removeIncompatibleChars(t);let s="",e=0,r=0;for(;r<this.mask.length&&e<i.length;){const t=this.mask[r],o=i[e];if("'"!==t){if(this.maskChars[t]){if(!this.maskChars[t](o)){e++;continue}s+="U"===t||"Z"===t?o.toUpperCase():"L"===t?o.toLowerCase():o,e++}else s+=t,o===t&&e++;r++}else r++,r<this.mask.length&&(s+=this.mask[r],r++)}return s}removeIncompatibleChars(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];let r=!1;for(const t in this.maskChars)if(this.maskChars[t](e)){r=!0;break}if(!r)for(let t=0;t<this.mask.length;t++)if(this.mask[t]===e&&!this.maskChars[this.mask[t]]){r=!0;break}r&&(i+=e)}return i}removeMask(t){if(!t||!this.mask)return t;let i="",s=0,e=0;for(;s<t.length&&e<this.mask.length;){const r=this.mask[e],o=t[s];"'"!==r?(this.maskChars[r]?(this.maskChars[r](o)&&(i+=o),s++):o===r&&s++,e++):(e++,e<this.mask.length&&(o===this.mask[e]&&s++,e++))}for(;s<t.length;){const e=t[s];/[a-zA-Z0-9]/.test(e)&&(i+=e),s++}return i}getMask(){return this.mask}generatePlaceholder(){if(!this.mask)return"";let t="",i=0;for(;i<this.mask.length;){const s=this.mask[i];if("'"!==s){if(this.maskChars[s])switch(s){case"#":case"~":t+="0";break;case"U":case"L":case"?":case"A":t+="A";break;default:t+="_"}else t+=s;i++}else i++,i<this.mask.length&&(t+=this.mask[i],i++)}return t}}const c=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezBlur=i(this,"ezBlur",7),this.ezFocus=i(this,"ezFocus",7),this.iconClick=i(this,"iconClick",7),this._internalValueChange=!1,this.type="text",this.value=void 0,this.label=void 0,this.helpText=void 0,this.errorMessage=void 0,this.placeholder=void 0,this.enabled=!0,this.readonly=!1,this.required=!1,this.name=void 0,this.size="default",this.minlength=void 0,this.maxlength=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.rightIconTooltip=void 0,this.leftIconTooltip=void 0,this.state="default",this.leftIconClickable=!1,this.rightIconClickable=!1,this.mask=void 0,this.emitMaskedValue=!1}async setFocus(t){(null==t?void 0:t.selectText)&&this._inputElem.select(),(null==t?void 0:t.preventScroll)||this._inputElem.scrollIntoView({behavior:"smooth",block:"center"}),this._inputElem.focus({preventScroll:!0})}async setBlur(){this._inputElem.blur()}async syncValue(){if(this._internalValueChange)this._internalValueChange=!1;else if(this.value&&this._maskFormatter&&this._inputElem){const t=this._maskFormatter.format(this.value);this._inputElem.value=t}else this._inputElem&&(this._inputElem.value=this.value||"")}async observeErrorMessage(t){this.state=t&&""!==t.trim()?"error":"default"}onInput(t){try{const i=t.target,s=i.value;if(this._maskFormatter){const{formattedValue:t,cleanValue:e}=this.processInputWithMask(s);this.updateInputValue(i,t,e)}else this.updateInputValueWithoutMask(s)}catch(t){console.error("Error processing input event:",t)}}processInputWithMask(t){return"cgc_cpf"===this.mask?this.processCgcCpfMask(t):this.processRegularMask(t)}processCgcCpfMask(t){const i=t.replace(/\D/g,"");return 11===i.length||14===i.length?(this._maskFormatter=new n(11===i.length?a.DEFAULT_MASKS.cpf:a.DEFAULT_MASKS.cnpj),{formattedValue:this._maskFormatter.format(i),cleanValue:i}):{formattedValue:i,cleanValue:i}}processRegularMask(t){const i=this._maskFormatter.format(t);return{formattedValue:i,cleanValue:this._maskFormatter.removeMask(i)}}isDataChar(t){return/[a-zA-Z0-9]/.test(t)}countDataCharsBefore(t,i){let s=0;for(let e=0;e<i&&e<t.length;e++)this.isDataChar(t[e])&&s++;return s}skipLeadingSeparators(t,i){for(;i<t.length&&!this.isDataChar(t[i]);)i++;return i}findPositionAfterDataChars(t,i){let s=0;for(let e=0;e<=t.length;e++){if(s===i)return this.skipLeadingSeparators(t,e);e<t.length&&this.isDataChar(t[e])&&s++}return t.length}getCursorPositionAfterFormat(t,i,s){const e=this.countDataCharsBefore(t,s);return this.findPositionAfterDataChars(i,e)}restoreCursorSelection(t,i,s,e,r){const o=this.getCursorPositionAfterFormat(i,s,e),a=e===r?o:this.getCursorPositionAfterFormat(i,s,r);t.setSelectionRange(o,a)}updateInputValue(t,i,s){const e=t.value,r=t.selectionStart,o=t.selectionEnd;t.value=i,null!==r&&null!==o&&this.restoreCursorSelection(t,e,i,r,o),this._internalValueChange=!0,this.value=s,this.ezChange.emit(this.emitMaskedValue?i:s)}updateInputValueWithoutMask(t){this._internalValueChange=!0,this.value=t,this.ezChange.emit(t)}onBlur(){this.ezBlur.emit(this.value)}onFocus(){this.ezFocus.emit(this.value)}handleIconClick(t,i){this.enabled&&("left"===i&&!this.leftIconClickable||"right"===i&&!this.rightIconClickable?this.setFocus({preventScroll:!0}):(t.stopPropagation(),this.iconClick.emit({icon:i})))}addInfoId(){this._element&&o.addIDInfo(this._element),this._inputElem&&o.addIDInfo(this._inputElem,"classic-input",{id:"embedded"})}buildPlaceholder(){!this.placeholder&&this._maskFormatter&&(this.placeholder=this._maskFormatter.generatePlaceholder())}buildMaskFormatter(){if(this.mask&&(!this._maskFormatter||"cgc_cpf"===this.mask)){const t=this.getMaskToBuilder();this._maskFormatter=t?new n(t):void 0}}getMaskToBuilder(){return"cgc_cpf"===this.mask?this.getCGCCpfMask():"phone"===this.mask?this.getPhoneMask():this.mask in a.DEFAULT_MASKS?a.DEFAULT_MASKS[this.mask]:this.mask}getPhoneMask(){return this.value&&10===this.value.length?n.DEFAULT_MASKS?n.DEFAULT_MASKS.phone:void 0:this.value&&11===this.value.length&&n.DEFAULT_MASKS?n.DEFAULT_MASKS.phone_mobile:void 0}getCGCCpfMask(){var t,i;return 11===(null===(t=this.value)||void 0===t?void 0:t.length)?a.DEFAULT_MASKS.cpf:14===(null===(i=this.value)||void 0===i?void 0:i.length)?a.DEFAULT_MASKS.cnpj:void 0}componentDidRender(){this.buildMaskFormatter(),this.buildPlaceholder(),this.syncValue()}componentDidLoad(){this.syncValue(),this.addInfoId()}render(){return s(e,null,s("label",{title:this.label,htmlFor:this.name},this.label,this.required&&s("span",{class:"required-indicator"},"*")),s("div",{class:"input-container "+(this.size?`input-container--${this.size}`:""),"data-state":this.state,"data-disabled":(!this.enabled).toString(),onClick:()=>this.setFocus({preventScroll:!0})},this.leftIconName&&s("ez-icon",{iconName:this.leftIconName,title:this.leftIconTooltip,onClick:t=>this.handleIconClick(t,"left"),class:{"icon-clickable":this.leftIconClickable}}),s("input",{ref:t=>this._inputElem=t,id:this.name,type:this.type,title:this.value,placeholder:this.placeholder,disabled:!this.enabled,readonly:this.readonly,name:this.name,minlength:this.minlength,maxlength:this.maxlength,onInput:t=>this.onInput(t),onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this)}),this.rightIconName&&s("ez-icon",{iconName:this.rightIconName,title:this.rightIconTooltip,onClick:t=>this.handleIconClick(t,"right"),class:{"icon-clickable":this.rightIconClickable}})),(this.helpText||this.errorMessage)&&s("span",{id:"input_helpText",title:this.errorMessage||this.helpText},this.errorMessage||this.helpText))}get _element(){return r(this)}static get watchers(){return{value:["syncValue"],errorMessage:["observeErrorMessage"]}}};c.style=':host{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);border:none;padding:0;padding-inline:var(--space--2, 2px);width:100%;--ez-classic-input--label-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-classic-input--border-color-focus:var(--color--gray-300, #A4A5A7);--ez-classic-input--border-color-success:var(--color--green-600, #157A00);--ez-classic-input--border-color-error:var(--color--red-600, #BD0025);--ez-classic-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-classic-input--background-color:var(--color--gray-70, #FFFFFF);--ez-classic-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-classic-input--text-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--placeholder-color:#bdbdbd;--ez-classic-input--icon-color:var(--color--gray-400, #77777A);--ez-classic-input--helptext-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--height:var(--space--56, 56px);--ez-classic-input--height-small:var(--space--48, 48px);--ez-classic-input--height-xsmall:var(--space--40, 40px);--ez-classic-input--gap:var(--space--10, 10px);--ez-classic-input--padding-inline:var(--space--16, 16px)}.input-container{display:flex;flex-direction:row;align-items:center;width:100%;border:none;border-radius:var(--border--radius-8, 8px);padding-inline:var(--ez-classic-input--padding-inline);box-sizing:border-box;gap:var(--ez-classic-input--gap);margin-block:var(--space--4, 4px);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);height:var(--ez-classic-input--height);background-color:var(--ez-classic-input--background-color)}.input-container--small{height:var(--ez-classic-input--height-small)}.input-container--xsmall{height:var(--ez-classic-input--height-xsmall)}.input-container,.input-container[data-state="default"]{box-shadow:0 0 0 1px var(--ez-classic-input--border-color-default)}.input-container[data-state="success"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-success)}.input-container[data-state="error"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-error)}.input-container[data-state="warning"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-warning)}.input-container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-focus)}ez-icon{min-width:var(--space--24, 24px);color:var(--ez-classic-input--icon-color)}input{flex:1;border:none;outline:none;background:transparent;height:100%;width:100%;padding:0;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);text-overflow:ellipsis;color:var(--ez-classic-input--text-color)}input::placeholder{color:var(--ez-classic-input--placeholder-color)}.input-container[data-disabled="true"]{cursor:not-allowed;background:var(--ez-classic-input--background-color-disabled);border-color:var(--ez-classic-input--border-color-default)}.input-container[data-disabled="true"]>*{cursor:not-allowed}.input-container input:read-only{cursor:default}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-classic-input--helptext-color)}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-classic-input--label-color)}.icon-clickable{cursor:pointer}.required-indicator{font-size:var(--font--size--default, 14px);font-family:var(--font--pattern, \'Roboto\');color:var(--color--red-600, #BD0025);margin-left:var(--space--4, 4px);vertical-align:top}';export{c as ez_classic_input}
Binary file
@@ -1 +1 @@
1
- import{r as n,h as i}from"./p-23a36bb6.js";import{i as e}from"./p-a61fdd20.js";import"@sankhyalabs/core";const r=["progress","pulse","false"],t=["circle","rect","text"],a="text",o="progress",s="circle",g=class{constructor(i){n(this,i),this.items=[],this.template=void 0,this.count=1,this.variant=a,this.width=null,this.height=null,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.animation=o}async componentWillLoad(){this.i18n=await e(),this.initializeItems()}componentWillUpdate(){this.initializeItems()}initializeItems(){this.items=Array(this.count).fill(1)}getSkeletonConfig(n){if(n)return(null==n?void 0:n.variant)==s?(n.width=n.width||"var(--skeleton-width, 40px)",n.height=n.height||"var(--skeleton-height, 40px)"):n.width=n.width||"var(--skeleton-width, 100%)",{skeletonClasses:{skeleton:!0,circle:n.variant===s,rect:"rect"===n.variant,progress:"progress"===n.animation,pulse:"pulse"===n.animation},styles:{width:(n.marginRight||n.marginLeft)&&n.width&&n.variant!=s?`calc(${n.width} ${n.marginRight?`- ${n.marginRight}`:""} ${n.marginLeft?`- ${n.marginLeft}`:""})`:n.width,height:n.height,marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft}}}validateVariant(n){return t.includes(n)?n:a}validateAnimation(n){return r.includes(n)?n:o}renderSkeletonTemplate(n){var e;const r=(null===(e=n.$attrs)||void 0===e?void 0:e.innerHTML)||n;if("string"==typeof r){const n=document.createElement("div");n.innerHTML=r;const e=(null==n?void 0:n.querySelectorAll(":not(.skeleton) > *"))||[];return Array.from(e).map((n=>{var e,r,t,a,o,s,g,l,d,p;if(null===(e=null==n?void 0:n.classList)||void 0===e?void 0:e.contains("skeleton")){const i=this.getSkeletonConfig({variant:this.validateVariant((null===(r=n.getAttribute("variant"))||void 0===r?void 0:r.replace(/[{}]/g,""))||this.variant),width:(null===(t=n.getAttribute("width"))||void 0===t?void 0:t.replace(/[{}]/g,""))||this.width,height:(null===(a=n.getAttribute("height"))||void 0===a?void 0:a.replace(/[{}]/g,""))||this.height,marginTop:(null===(o=n.getAttribute("marginTop"))||void 0===o?void 0:o.replace(/[{}]/g,""))||this.marginTop,marginLeft:(null===(s=n.getAttribute("marginLeft"))||void 0===s?void 0:s.replace(/[{}]/g,""))||this.marginLeft,marginRight:(null===(g=n.getAttribute("marginRight"))||void 0===g?void 0:g.replace(/[{}]/g,""))||this.marginRight,marginBottom:(null===(l=n.getAttribute("marginBottom"))||void 0===l?void 0:l.replace(/[{}]/g,""))||this.marginBottom,animation:this.validateAnimation((null===(d=n.getAttribute("animation"))||void 0===d?void 0:d.replace(/[{}]/g,""))||this.animation)}),e=Number(null===(p=n.getAttribute("count"))||void 0===p?void 0:p.replace(/[{}]/g,""))||1;return Array(e).fill(1).map(((n,e)=>this.renderSkeletonItem(e,i)))}return i("div",{innerHTML:n.outerHTML})}))}return n}renderSkeletonItem(n,i){const e=i||this.getSkeletonConfig({variant:this.validateVariant(this.variant),animation:this.validateAnimation(this.animation),width:this.width,height:this.height,marginTop:this.marginTop,marginRight:this.marginRight,marginBottom:this.marginBottom,marginLeft:this.marginLeft});return this.renderSkeletonSpan(n,e)}renderSkeletonSpan(n,e){return i("span",{key:n,class:null==e?void 0:e.skeletonClasses,style:null==e?void 0:e.styles,"data-busy":"true","data-valuemin":"0","data-valuemax":"100","data-valuetext":this.i18n("app.loading"),role:"progressbar",tabindex:"0"})}render(){return this.template?this.renderSkeletonTemplate(this.template):this.items.map(((n,i)=>this.renderSkeletonItem(i)))}};g.style=".skeleton {\n background: var(--skeleton-background, #f0f3f7) no-repeat;\n border-radius: var(--skeleton-border-radius, 12px);\n width: var(--skeleton-width, 100%);\n height: var(--skeleton-height, 20px);\n display: inline-block;\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n\tmargin-top: var(--skeleton-margin-top, 0px);\n\tmargin-right: var(--skeleton-margin-right, 0px);\n\tmargin-left: var(--skeleton-margin-left, 0px);\n box-sizing: border-box;\n outline: none;\n overflow: hidden;\n position: relative;\n -webkit-will-change: transform;\n -moz-will-change: transform;\n will-change: transform;\n\n &:after,\n &:before {\n box-sizing: border-box;\n }\n\n &.circle {\n width: var(--skeleton-width, 40px);\n height: var(--skeleton-height, 40px);\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n border-radius: var(--skeleton-border-radius, 50%);\n }\n\n &.rect {\n border-radius: var(--skeleton-border-radius, 0px);\n }\n\n &.progress,\n &.progress-dark {\n -webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n background-size: 200px 100%;\n }\n\n &.progress {\n background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n }\n\n &.progress-dark {\n background-image: -webkit-linear-gradient(90deg, transparent, hsla(0, 0%, 0%, 0.2), transparent);\n background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n }\n\n &.pulse {\n -webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation-delay: 0.5s;\n }\n\n @media (prefers-reduced-motion: reduce) {\n &.pulse,\n &.progress-dark,\n &.progress {\n animation: none;\n }\n\n &.progress,\n &.progress-dark {\n background-image: none;\n }\n }\n}\n\n@-webkit-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-moz-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-ms-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n\n@-webkit-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-moz-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-ms-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n";export{g as ez_skeleton}
1
+ import{r as n,h as i}from"./p-23a36bb6.js";import{i as e}from"./p-3b7d9f30.js";import"@sankhyalabs/core";const r=["progress","pulse","false"],t=["circle","rect","text"],a="text",o="progress",s="circle",g=class{constructor(i){n(this,i),this.items=[],this.template=void 0,this.count=1,this.variant=a,this.width=null,this.height=null,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.animation=o}async componentWillLoad(){this.i18n=await e(),this.initializeItems()}componentWillUpdate(){this.initializeItems()}initializeItems(){this.items=Array(this.count).fill(1)}getSkeletonConfig(n){if(n)return(null==n?void 0:n.variant)==s?(n.width=n.width||"var(--skeleton-width, 40px)",n.height=n.height||"var(--skeleton-height, 40px)"):n.width=n.width||"var(--skeleton-width, 100%)",{skeletonClasses:{skeleton:!0,circle:n.variant===s,rect:"rect"===n.variant,progress:"progress"===n.animation,pulse:"pulse"===n.animation},styles:{width:(n.marginRight||n.marginLeft)&&n.width&&n.variant!=s?`calc(${n.width} ${n.marginRight?`- ${n.marginRight}`:""} ${n.marginLeft?`- ${n.marginLeft}`:""})`:n.width,height:n.height,marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft}}}validateVariant(n){return t.includes(n)?n:a}validateAnimation(n){return r.includes(n)?n:o}renderSkeletonTemplate(n){var e;const r=(null===(e=n.$attrs)||void 0===e?void 0:e.innerHTML)||n;if("string"==typeof r){const n=document.createElement("div");n.innerHTML=r;const e=(null==n?void 0:n.querySelectorAll(":not(.skeleton) > *"))||[];return Array.from(e).map((n=>{var e,r,t,a,o,s,g,l,d,p;if(null===(e=null==n?void 0:n.classList)||void 0===e?void 0:e.contains("skeleton")){const i=this.getSkeletonConfig({variant:this.validateVariant((null===(r=n.getAttribute("variant"))||void 0===r?void 0:r.replace(/[{}]/g,""))||this.variant),width:(null===(t=n.getAttribute("width"))||void 0===t?void 0:t.replace(/[{}]/g,""))||this.width,height:(null===(a=n.getAttribute("height"))||void 0===a?void 0:a.replace(/[{}]/g,""))||this.height,marginTop:(null===(o=n.getAttribute("marginTop"))||void 0===o?void 0:o.replace(/[{}]/g,""))||this.marginTop,marginLeft:(null===(s=n.getAttribute("marginLeft"))||void 0===s?void 0:s.replace(/[{}]/g,""))||this.marginLeft,marginRight:(null===(g=n.getAttribute("marginRight"))||void 0===g?void 0:g.replace(/[{}]/g,""))||this.marginRight,marginBottom:(null===(l=n.getAttribute("marginBottom"))||void 0===l?void 0:l.replace(/[{}]/g,""))||this.marginBottom,animation:this.validateAnimation((null===(d=n.getAttribute("animation"))||void 0===d?void 0:d.replace(/[{}]/g,""))||this.animation)}),e=Number(null===(p=n.getAttribute("count"))||void 0===p?void 0:p.replace(/[{}]/g,""))||1;return Array(e).fill(1).map(((n,e)=>this.renderSkeletonItem(e,i)))}return i("div",{innerHTML:n.outerHTML})}))}return n}renderSkeletonItem(n,i){const e=i||this.getSkeletonConfig({variant:this.validateVariant(this.variant),animation:this.validateAnimation(this.animation),width:this.width,height:this.height,marginTop:this.marginTop,marginRight:this.marginRight,marginBottom:this.marginBottom,marginLeft:this.marginLeft});return this.renderSkeletonSpan(n,e)}renderSkeletonSpan(n,e){return i("span",{key:n,class:null==e?void 0:e.skeletonClasses,style:null==e?void 0:e.styles,"data-busy":"true","data-valuemin":"0","data-valuemax":"100","data-valuetext":this.i18n("app.loading"),role:"progressbar",tabindex:"0"})}render(){return this.template?this.renderSkeletonTemplate(this.template):this.items.map(((n,i)=>this.renderSkeletonItem(i)))}};g.style=".skeleton {\n background: var(--skeleton-background, #f0f3f7) no-repeat;\n border-radius: var(--skeleton-border-radius, 12px);\n width: var(--skeleton-width, 100%);\n height: var(--skeleton-height, 20px);\n display: inline-block;\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n\tmargin-top: var(--skeleton-margin-top, 0px);\n\tmargin-right: var(--skeleton-margin-right, 0px);\n\tmargin-left: var(--skeleton-margin-left, 0px);\n box-sizing: border-box;\n outline: none;\n overflow: hidden;\n position: relative;\n -webkit-will-change: transform;\n -moz-will-change: transform;\n will-change: transform;\n\n &:after,\n &:before {\n box-sizing: border-box;\n }\n\n &.circle {\n width: var(--skeleton-width, 40px);\n height: var(--skeleton-height, 40px);\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n border-radius: var(--skeleton-border-radius, 50%);\n }\n\n &.rect {\n border-radius: var(--skeleton-border-radius, 0px);\n }\n\n &.progress,\n &.progress-dark {\n -webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n background-size: 200px 100%;\n }\n\n &.progress {\n background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n }\n\n &.progress-dark {\n background-image: -webkit-linear-gradient(90deg, transparent, hsla(0, 0%, 0%, 0.2), transparent);\n background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n }\n\n &.pulse {\n -webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation-delay: 0.5s;\n }\n\n @media (prefers-reduced-motion: reduce) {\n &.pulse,\n &.progress-dark,\n &.progress {\n animation: none;\n }\n\n &.progress,\n &.progress-dark {\n background-image: none;\n }\n }\n}\n\n@-webkit-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-moz-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-ms-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n\n@-webkit-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-moz-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-ms-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n";export{g as ez_skeleton}
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,h as i,F as a,H as e,g as n}from"./p-23a36bb6.js";import{Action as s,ElementIDUtils as o}from"@sankhyalabs/core";import{i as r}from"./p-3b7d9f30.js";const h=class{constructor(i){t(this,i),this._dataUnitInitialized=!1,this.leftButtonDisabled=void 0,this.rightButtonDisabled=void 0,this.dataUnit=void 0,this.primaryKeys=void 0,this.textPosition="right",this.disabled=!1}async previousRecord(){this.dataUnit&&await this.dataUnit.previousRecord()}async nextRecord(){this.dataUnit&&await this.dataUnit.nextRecord()}onDataUnitChange(){this.initializeDataUnit()}onDisabledChange(){this.setStatusButtonPagination()}renderPageTitle(){return this.primaryKeys?this.primaryKeys.map(((t,e)=>{var n;const s=this.dataUnit.getFieldValue(t),o=null===(n=this.dataUnit.getField(t))||void 0===n?void 0:n.label,r=e===this.primaryKeys.length-1;return i(a,null,i("ez-tooltip",{message:null!=o?o:s},i("span",{class:"record-navigation__label","aria-live":"polite","aria-atomic":"true"},null!=s?s:"-")),!r&&i("span",{class:"record-navigation__divider"}))})):null}dataUnitObserver(t){switch(t.type){case s.SELECTION_CHANGED:case s.PREVIOUS_SELECTED:case s.NEXT_SELECTED:this.setStatusButtonPagination()}}getLeftButtonDisabledStatus(){return!(this.dataUnit&&!this.disabled&&this.dataUnit.hasPrevious())}getRightButtonDisabledStatus(){return!(this.dataUnit&&!this.disabled&&this.dataUnit.hasNext())}setStatusButtonPagination(){this.leftButtonDisabled=this.getLeftButtonDisabledStatus(),this.rightButtonDisabled=this.getRightButtonDisabledStatus()}initializeDataUnit(){this.dataUnit&&!this._dataUnitInitialized&&(this.setStatusButtonPagination(),this._dataUnitObserverBound=this.dataUnitObserver.bind(this),this.dataUnit.subscribe(this._dataUnitObserverBound),this._dataUnitInitialized=!0)}addInfoId(){this._element&&o.addIDInfo(this._element)}async connectedCallback(){this.i18n=await r(),this.initializeDataUnit()}componentDidLoad(){this.addInfoId()}disconnectedCallback(){this.dataUnit&&this._dataUnitInitialized&&this._dataUnitObserverBound&&this.dataUnit.unsubscribe(this._dataUnitObserverBound)}render(){return i(e,null,i("div",{class:{"record-navigation__container":!0,"record-navigation-text-right":"right"===this.textPosition}},i("div",{class:"record-navigation__container-label"},this.renderPageTitle()),i("div",{id:"grid-record-navigation-tooltip",class:"record-navigation__buttons-container"},i("ez-tooltip",{message:this.i18n("ez-record-navigation.previousRecord")},i("ez-button",{iconName:"chevron-left",mode:"icon",isDisabled:this.leftButtonDisabled,onClick:()=>this.previousRecord(),label:this.i18n("ez-record-navigation.previousRecord")})),i("ez-tooltip",{message:this.i18n("ez-record-navigation.nextRecord")},i("ez-button",{iconName:"chevron-right",mode:"icon",isDisabled:this.rightButtonDisabled,onClick:()=>this.nextRecord(),label:this.i18n("ez-record-navigation.nextRecord")})))))}get _element(){return n(this)}static get watchers(){return{dataUnit:["onDataUnitChange"],disabled:["onDisabledChange"]}}};h.style=":host{display:block}.record-navigation__container{display:flex;align-items:center;flex-grow:1;flex-shrink:1;justify-content:flex-end;flex-wrap:nowrap}.record-navigation__buttons-container{display:flex;gap:var(--space--8, 8px)}.record-navigation__container-label{font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');color:var(--color--gray-600, #1C1D22);text-shadow:0 0 var(--color--gray-500, #494A4E), 0 0 1px transparent;margin-right:var(--space--12, 12px);display:flex;align-items:center}.record-navigation-contracted{width:100px}.record-navigation-expanded{min-width:150px}.record-navigation__label{width:100%;white-space:nowrap}.record-navigation__divider{width:3px;height:15px;background-color:var(--color--gray-300, #C1C2C6);margin-inline:var(--space--8, 8px)}.record-navigation-text-right{flex-direction:row-reverse}";export{h as ez_record_navigation}
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,H as e,g as l}from"./p-23a36bb6.js";import{KeyboardManager as s,FloatingManager as n}from"@sankhyalabs/core";import{i as a}from"./p-a61fdd20.js";const p=class{constructor(o){t(this,o),this.ezClosePopup=i(this,"ezClosePopup",7),this.ezPopupAction=i(this,"ezPopupAction",7),this.handleFooterSlotChange=t=>{this._hasFooterSlotContent=t.target.assignedElements().length>0},this._hasFooterSlotContent=!1,this.size="medium",this.opened=!1,this.useHeader=!0,this.heightMode="full",this.ezTitle=void 0,this.enabledScroll=!0,this.autoClose=!0,this.footerButtons=[]}observeConfig(){this.manageOverflow()}async componentWillLoad(){this.i18n=await a()}componentDidLoad(){this.popUpFocus(),this._keyboardManager=new s({propagate:!1,element:this._element,enableShadowDom:!0}).bind("Enter",this.ezPopupAction.emit.bind("OK")).bind("Escape",(()=>this.closePopup())).bind("Esc",(()=>this.closePopup()))}disconnectedCallback(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}closePopup(){this.opened=!1,this.manageOverflow(),this.ezClosePopup.emit()}manageOverflow(){window.document.body.style.overflow=this.opened?"hidden":""}manageOverlay(){this.opened?this._overlayId=n.subscribeOverlayControl(this._overlayRef):n.unsubscribeOverlayControl(this._overlayRef||this._overlayId)}popUpFocus(){this.opened&&this._popupRef&&this._popupRef.focus()}getGridSize(){var t;const i={"x-small":"col--sd-3 ez-popup__size-limit--x-small",small:"col--sd-5",medium:"col--sd-6",large:"col--sd-9","x-large":"col--sd-11",default:"ez-popup__size-limit--x-small",auto:""};return this.size&&i.hasOwnProperty(this.size)&&null!==(t=i[this.size])&&void 0!==t?t:i.medium}getDialogClass(){let t="popup__container";return"auto"===this.heightMode&&(t+=" popup__container--auto"),t+=` ${this.getGridSize()}`,t}componentDidRender(){this.manageOverlay()}handleAutoClose(t){if(!this.opened||!this._popupRef||!this.autoClose)return;if(this._popupRef.contains(t.target))return;const i=this._popupRef.querySelector("slot");if(i&&i.assignedElements().length>0){const o=i.assignedElements();for(const i of o)if(i.contains(t.target))return}this._popupRef.shadowRoot&&this._popupRef.shadowRoot.contains(t.target)||this.closePopup()}handleDefaultPropsButtonsByIndex(t){switch(t){case 0:return{label:this.i18n?this.i18n("app.confirm"):"Confirmar",variant:"primary",size:"small",onClick:()=>{this.closePopup(),this.ezPopupAction.emit("OK")}};case 1:return{label:this.i18n?this.i18n("app.cancel"):"Cancelar",variant:"secondary",size:"small",onClick:()=>{this.closePopup()}};case 2:return{label:this.i18n?this.i18n("app.close"):"Fechar",variant:"tertiary",size:"small",onClick:()=>{this.closePopup()}}}}renderFooterButtons(){return this.footerButtons.slice(0,3).map(((t,i)=>o("ez-button",Object.assign({key:i},this.handleDefaultPropsButtonsByIndex(i),t))))}render(){return o(e,null,this.opened&&o("div",{class:"overlay",ref:t=>this._overlayRef=t,tabIndex:-1,onClick:this.handleAutoClose.bind(this)},o("dialog",{ref:t=>this._popupRef=t,class:this.getDialogClass()},this.useHeader&&o("header",{class:"popup__header"},!!this.ezTitle&&o("h1",{class:"popup__title"},this.ezTitle),o("ez-button",{class:this.ezTitle?"btn-close":"btn-close btn-close--solo",variant:"tertiary",mode:"icon",iconName:"close",size:"small",onClick:this.closePopup.bind(this)})),o("main",{class:{"popup__expandable-content":!0,"popup__overflow-y--auto":this.enabledScroll}},o("slot",null)),o("footer",{class:{popup__footer:!0,"popup_margin-top":this.footerButtons.length>0||this._hasFooterSlotContent}},this.footerButtons.length>0&&this.renderFooterButtons(),o("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange})))))}get _element(){return l(this)}static get watchers(){return{opened:["observeConfig"]}}};p.style=':host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, "Roboto");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup__container{width:auto;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{flex-grow:1;box-sizing:border-box;width:100%;font-family:var(--font--pattern, "Roboto");font-size:var(--font-size--default, 14px);color:var(--title--primary, #00281D);font-weight:var(--font-weight--regular, 400)}.popup__header{flex-shrink:0;width:100%;display:flex;align-items:center;margin-bottom:var(--space--16, 16px)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:var(--line-height--32, 32px)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close--solo{width:100%}.popup__footer{flex-shrink:0;display:flex;width:100%;flex-direction:row-reverse;gap:var(--space--8, 8px)}.popup_margin-top{margin-top:var(--space--16, 16px)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{p as ez_popup}
1
+ import{r as t,c as i,h as o,H as e,g as l}from"./p-23a36bb6.js";import{KeyboardManager as s,FloatingManager as n}from"@sankhyalabs/core";import{i as a}from"./p-3b7d9f30.js";const p=class{constructor(o){t(this,o),this.ezClosePopup=i(this,"ezClosePopup",7),this.ezPopupAction=i(this,"ezPopupAction",7),this.handleFooterSlotChange=t=>{this._hasFooterSlotContent=t.target.assignedElements().length>0},this._hasFooterSlotContent=!1,this.size="medium",this.opened=!1,this.useHeader=!0,this.heightMode="full",this.ezTitle=void 0,this.enabledScroll=!0,this.autoClose=!0,this.footerButtons=[]}observeConfig(){this.manageOverflow()}async componentWillLoad(){this.i18n=await a()}componentDidLoad(){this.popUpFocus(),this._keyboardManager=new s({propagate:!1,element:this._element,enableShadowDom:!0}).bind("Enter",this.ezPopupAction.emit.bind("OK")).bind("Escape",(()=>this.closePopup())).bind("Esc",(()=>this.closePopup()))}disconnectedCallback(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}closePopup(){this.opened=!1,this.manageOverflow(),this.ezClosePopup.emit()}manageOverflow(){window.document.body.style.overflow=this.opened?"hidden":""}manageOverlay(){this.opened?this._overlayId=n.subscribeOverlayControl(this._overlayRef):n.unsubscribeOverlayControl(this._overlayRef||this._overlayId)}popUpFocus(){this.opened&&this._popupRef&&this._popupRef.focus()}getGridSize(){var t;const i={"x-small":"col--sd-3 ez-popup__size-limit--x-small",small:"col--sd-5",medium:"col--sd-6",large:"col--sd-9","x-large":"col--sd-11",default:"ez-popup__size-limit--x-small",auto:""};return this.size&&i.hasOwnProperty(this.size)&&null!==(t=i[this.size])&&void 0!==t?t:i.medium}getDialogClass(){let t="popup__container";return"auto"===this.heightMode&&(t+=" popup__container--auto"),t+=` ${this.getGridSize()}`,t}componentDidRender(){this.manageOverlay()}handleAutoClose(t){if(!this.opened||!this._popupRef||!this.autoClose)return;if(this._popupRef.contains(t.target))return;const i=this._popupRef.querySelector("slot");if(i&&i.assignedElements().length>0){const o=i.assignedElements();for(const i of o)if(i.contains(t.target))return}this._popupRef.shadowRoot&&this._popupRef.shadowRoot.contains(t.target)||this.closePopup()}handleDefaultPropsButtonsByIndex(t){switch(t){case 0:return{label:this.i18n?this.i18n("app.confirm"):"Confirmar",variant:"primary",size:"small",onClick:()=>{this.closePopup(),this.ezPopupAction.emit("OK")}};case 1:return{label:this.i18n?this.i18n("app.cancel"):"Cancelar",variant:"secondary",size:"small",onClick:()=>{this.closePopup()}};case 2:return{label:this.i18n?this.i18n("app.close"):"Fechar",variant:"tertiary",size:"small",onClick:()=>{this.closePopup()}}}}renderFooterButtons(){return this.footerButtons.slice(0,3).map(((t,i)=>o("ez-button",Object.assign({key:i},this.handleDefaultPropsButtonsByIndex(i),t))))}render(){return o(e,null,this.opened&&o("div",{class:"overlay",ref:t=>this._overlayRef=t,tabIndex:-1,onClick:this.handleAutoClose.bind(this)},o("dialog",{ref:t=>this._popupRef=t,class:this.getDialogClass()},this.useHeader&&o("header",{class:"popup__header"},!!this.ezTitle&&o("h1",{class:"popup__title"},this.ezTitle),o("ez-button",{class:this.ezTitle?"btn-close":"btn-close btn-close--solo",variant:"tertiary",mode:"icon",iconName:"close",size:"small",onClick:this.closePopup.bind(this)})),o("main",{class:{"popup__expandable-content":!0,"popup__overflow-y--auto":this.enabledScroll}},o("slot",null)),o("footer",{class:{popup__footer:!0,"popup_margin-top":this.footerButtons.length>0||this._hasFooterSlotContent}},this.footerButtons.length>0&&this.renderFooterButtons(),o("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange})))))}get _element(){return l(this)}static get watchers(){return{opened:["observeConfig"]}}};p.style=':host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, "Roboto");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup__container{width:auto;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{flex-grow:1;box-sizing:border-box;width:100%;font-family:var(--font--pattern, "Roboto");font-size:var(--font-size--default, 14px);color:var(--title--primary, #00281D);font-weight:var(--font-weight--regular, 400)}.popup__header{flex-shrink:0;width:100%;display:flex;align-items:center;margin-bottom:var(--space--16, 16px)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:var(--line-height--32, 32px)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close--solo{width:100%}.popup__footer{flex-shrink:0;display:flex;width:100%;flex-direction:row-reverse;gap:var(--space--8, 8px)}.popup_margin-top{margin-top:var(--space--16, 16px)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{p as ez_popup}
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as e,H as s,g as r}from"./p-23a36bb6.js";import{StringUtils as o,ElementIDUtils as a,ObjectUtils as l,HTMLBuilder as n,KeyboardManager as c}from"@sankhyalabs/core";import{a as h,r as d}from"./p-88a115b3.js";import{i as u}from"./p-3b7d9f30.js";import{C as m}from"./p-5895e687.js";import{R as p,a as b}from"./p-3e767a74.js";import{p as v}from"./p-5c440899.js";import{A as g}from"./p-320c401f.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-47e4a8ce.js";import"./p-112455b1.js";const _=class{constructor(e){i(this,e),this.changeValue=t(this,"changeValue",7),this.changePreSelection=t(this,"changePreSelection",7),this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this.MAX_HEIGHT=350,this.HEADER_MENU_HEIGHT=60,this.showLoading=void 0,this.visibleOptions=[],this.textEmptyList=void 0,this.canShowListOptions=void 0,this.value=void 0,this.showOptionValue=!0,this.preSelection=void 0}async nextOption(){const i=void 0===this.preSelection?0:Math.min(this.preSelection+1,this.visibleOptions.length-1);this.changePreSelection.emit(i),this.scrollToOption(this.visibleOptions[i])}async previousOption(){const i=void 0===this.preSelection?0:Math.max(this.preSelection-1,0);this.changePreSelection.emit(i),this.scrollToOption(this.visibleOptions[i])}selectOption(i){const t=Object.assign(Object.assign({},i),{value:h(null==i?void 0:i.value),label:h(null==i?void 0:i.label)}),e=Object.assign(Object.assign({},t),{value:d(null==t?void 0:t.value),label:d(null==t?void 0:t.label)});this.changeValue.emit(e)}createOption(i){let{key:t,title:e}=i;const s=new RegExp(this._startHighlightTag,"g"),r=new RegExp(this._endHighlightTag,"g");e=o.decodeHtmlEntities(e);const a={value:null==t?void 0:t.replace(s,"").replace(r,""),label:null==e?void 0:e.replace(s,"").replace(r,"")};this.selectOption(a)}scrollToOption(i){window.requestAnimationFrame((()=>{const t=(null==i?void 0:i.value)?this._optionsList.querySelector(`div#item_${i.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g,"\\$1")}`):void 0;t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}))}buildItem(i,t){i.label=i.label||i.value;const s={key:i.value,title:i.label,details:i.details};return e("div",{style:{height:"100%"},class:t===this.preSelection?"item preselected":"item",id:`item_${i.value}`,onMouseDown:()=>this.createOption(s),onMouseOver:()=>this.changePreSelection.emit(t)},e("ez-card-item",{item:s,compacted:!0,enableKey:this.showOptionValue}))}componentDidLoad(){this._optionsList&&(this._optionsList.style.maxHeight=`${this.MAX_HEIGHT}px`)}componentDidUpdate(){if(this._optionsList){const i=this._optionsList.getBoundingClientRect();window.innerHeight-i.bottom<0&&this.adjustMaxHeight(i)}}adjustMaxHeight(i){if(this._optionsList){const t=Math.min(i.top-this.HEADER_MENU_HEIGHT,this.MAX_HEIGHT);this._optionsList.style.maxHeight=`${t}px`}}cleanEmptyObjectArray(i){return i.filter((i=>void 0!==(null==i?void 0:i.value)))}render(){return e(s,null,e("ul",{class:"list-options",ref:i=>this._optionsList=i},!this.showLoading&&0===this.cleanEmptyObjectArray(this.visibleOptions).length&&e("div",{class:"message"},e("span",{class:"message__no-result"},this.textEmptyList)),this.showLoading&&e("div",{class:"message"},e("div",{class:"message__loading"})),this.canShowListOptions&&this.visibleOptions.map(((i,t)=>this.buildItem(i,t)))))}};_.style=":host{--ez-classic-search__list-title--primary:var(--title--primary, #2B3A54);--ez-classic-search__list-text--primary:var(--text--primary, #626e82);--ez-classic-search__list-height:calc(var(--ez-classic-search--font-size) + var(--ez-classic-search--space--medium) + 4px);--ez-classic-search__list-min-width:64px;--ez-classic-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-classic-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-classic-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-classic-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-classic-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-classic-search__scrollbar--width:var(--space--small, 6px);--ez-classic-search--border-radius-small:var(--border--radius-small, 6px);--ez-classic-search--font-size:var(--text--medium, 14px);--ez-classic-search--font-family:var(--font-pattern, Arial);--ez-classic-search--font-weight--large:var(--text-weight--large, 500);--ez-classic-search--font-weight--medium:var(--text-weight--medium, 400);--ez-classic-search--background-medium:var(--background--medium, #f0f3f7);--ez-classic-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-classic-search__scrollbar--color-clicked) var(--ez-classic-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-classic-search__scrollbar--color-background);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-classic-search__scrollbar--color-default);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-classic-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-classic-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-classic-search__list-height)}.message__no-result{color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--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-classic-search__list-title--primary);border-top:3px solid transparent}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size);line-height:var(--ez-classic-search--line-height)}.item__label{font-weight:var(--ez-classic-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-classic-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-classic-search__list-text--primary);font-weight:var(--ez-classic-search--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}.item__list>li:hover{background-color:var(--ez-classic-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-classic-search--border-radius-small);gap:var(--space--small, 6px)}.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)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";const z=class{constructor(e){i(this,e),this.changeValue=t(this,"changeValue",7),this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this.showLoading=void 0,this.visibleOptions=[],this.value=void 0,this.showOptionValue=!0,this._preSelection=void 0}observerVisivleOptions(i){i.length&&this.preSelectItemByIndex(0)}async nextOption(){const i=void 0===this._preSelection?0:Math.min(this._preSelection+1,this.visibleOptions.length-1);this.preSelectItemByIndex(i)}async previousOption(){const i=void 0===this._preSelection?0:Math.max(this._preSelection-1,0);this.preSelectItemByIndex(i)}preSelectItemByIndex(i){this._preSelection=i,this.scrollToOption(this.visibleOptions[i])}selectOption(i){const t=Object.assign(Object.assign({},i),{value:null==i?void 0:i.value,label:null==i?void 0:i.label}),e=Object.assign(Object.assign({},t),{value:this.removeHighLight(null==t?void 0:t.value),label:this.removeHighLight(null==t?void 0:t.label)});this.changeValue.emit(e)}removeHighLight(i){if(!i||"string"!=typeof i)return i;const t=new RegExp(this._startHighlightTag,"g"),e=new RegExp(this._endHighlightTag,"g");return i.replace(t,"").replace(e,"")}createAndSelectOption(i){let{key:t,title:e}=i;t=String(null!=t?t:""),e=o.decodeHtmlEntities(e);const s={value:this.removeHighLight(t),label:this.removeHighLight(e)};this.selectOption(s)}scrollToOption(i){(null==i?void 0:i.value)&&this._optionsList&&window.requestAnimationFrame((()=>{var t;const e=String(null!==(t=null==i?void 0:i.value)&&void 0!==t?t:""),s=e?this._optionsList.querySelector(`div#item_${e.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g,"\\$1")}`):void 0;s&&s.scrollIntoView({behavior:"smooth",block:"nearest"})}))}buildItem(i,t){var s;i.label=i.label||i.value;const r={key:String(null!==(s=i.presentationValue)&&void 0!==s?s:""),title:i.presentationLabel,details:i.details};return e("div",{style:{height:"100%"},class:t===this._preSelection?"item preselected":"item",id:`item_${i.value}`,onMouseDown:()=>this.createAndSelectOption(r),onMouseOver:()=>{this._preSelection=t}},e("ez-card-item",{item:r,compacted:!0,enableKey:this.showOptionValue}))}async selectCurrentItem(){this.selectOption(this.visibleOptions[this._preSelection])}async cancelSelection(){this.cancelPreselection()}cancelPreselection(){this._preSelection=void 0}canShowListOptions(){return!this.showLoading&&this.visibleOptions.length>0}async componentWillLoad(){this.i18n=await u()}render(){return e(s,null,e("ul",{class:"list-options",ref:i=>this._optionsList=i},!this.showLoading&&0===this.visibleOptions.length&&e("div",{class:"message"},e("span",{class:"message__no-result"},this.i18n("ez-classic-search-plus.emptyList"))),this.showLoading&&e("div",{class:"loading__container"},e("ez-skeleton",{count:4,height:"20px"})),this.canShowListOptions()&&this.visibleOptions.map(((i,t)=>this.buildItem(i,t)))))}static get watchers(){return{visibleOptions:["observerVisivleOptions"]}}};z.style=":host{--ez-classic-search__list-title--primary:var(--title--primary, #2B3A54);--ez-classic-search__list-text--primary:var(--text--primary, #626e82);--ez-classic-search__list-height:calc(var(--ez-classic-search--font-size) + var(--ez-classic-search--space--medium) + 4px);--ez-classic-search__list-min-width:64px;--ez-classic-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-classic-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-classic-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-classic-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-classic-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-classic-search__scrollbar--width:var(--space--small, 6px);--ez-classic-search--border-radius-small:var(--border--radius-small, 6px);--ez-classic-search--font-size:var(--text--medium, 14px);--ez-classic-search--font-family:var(--font-pattern, Arial);--ez-classic-search--font-weight--large:var(--text-weight--large, 500);--ez-classic-search--font-weight--medium:var(--text-weight--medium, 400);--ez-classic-search--background-medium:var(--background--medium, #f0f3f7);--ez-classic-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-classic-search__scrollbar--color-clicked) var(--ez-classic-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-classic-search__scrollbar--color-background);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-classic-search__scrollbar--color-default);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-classic-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-classic-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-classic-search__list-height)}.message__no-result{color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size)}.loading__container{display:flex;flex-direction:column;margin:var(--space--small)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size);line-height:var(--ez-classic-search--line-height)}.item__label{font-weight:var(--ez-classic-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-classic-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-classic-search__list-text--primary);font-weight:var(--ez-classic-search--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}.item__list>li:hover{background-color:var(--ez-classic-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-classic-search--border-radius-small);gap:var(--space--small, 6px)}.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)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";const x=class{constructor(t){i(this,t),this.showLoading=void 0,this.visibleOptions=void 0,this.textEmptyList=void 0,this.showOptionValue=void 0,this.preSelection=void 0,this.maxWidth=void 0,this.width=void 0,this.onOptionSelect=void 0,this.onOptionHover=void 0}async nextOption(){var i,t;(null===(i=this.visibleOptions)||void 0===i?void 0:i.length)&&(void 0!==this.preSelection&&this.preSelection>=this.visibleOptions.length-1||(this.preSelection=void 0===this.preSelection?0:this.preSelection+1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(t=this.onOptionHover)||void 0===t||t.call(this,this.preSelection)))}async previousOption(){var i,t;(null===(i=this.visibleOptions)||void 0===i?void 0:i.length)&&(void 0!==this.preSelection&&this.preSelection<=0||(this.preSelection=void 0===this.preSelection?this.visibleOptions.length-1:this.preSelection-1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(t=this.onOptionHover)||void 0===t||t.call(this,this.preSelection)))}async selectCurrentOption(){void 0!==this.preSelection&&(this.onOptionSelect(this.visibleOptions[this.preSelection]),this.preSelection=void 0)}observeWidth(i,t){i!==t&&this._listWrapper&&(this._listWrapper.style.width=`${this.width}px`)}observeMaxWidth(i,t){i!==t&&this._listWrapper&&(this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:"")}handleKeyDown(i){switch(i.key){case"ArrowDown":i.preventDefault(),i.stopPropagation(),this.nextOption();break;case"ArrowUp":i.preventDefault(),i.stopPropagation(),this.previousOption();break;case"Enter":this.selectCurrentOption();break;case"Escape":this.preSelection=void 0}}buildItem(i,t){const s=this.showOptionValue&&this.maxWidth>0?`${this.maxWidth}px`:"";return i.label=i.label||i.value,e("li",{tabIndex:1,class:t===this.preSelection?"item preselected":"item",id:`item_${i.value}_${t}`,key:`item_${i.value}_${t}`,onMouseDown:()=>this.onOptionSelect(i),onMouseOver:()=>this.preSelection=t},this.showOptionValue?e("span",{class:"item__value",title:i.value,style:{width:s,minWidth:s,maxWidth:s}},i.value):void 0,e("span",{class:"item__label "+(this.showOptionValue?"item__label--bold":""),title:i.label},i.label))}scrollToOption(i){if(!(null==i?void 0:i.value)||!this._optionsList)return;const t=this.visibleOptions.indexOf(i);if(-1===t)return;const e=this._optionsList.querySelector(`li#item_${CSS.escape(i.value)}_${CSS.escape(String(t))}`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}async componentWillLoad(){this.i18n=await u()}componentDidLoad(){this._listWrapper.style.width=`${this.width}px`,this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:""}componentDidRender(){var i;null===(i=this._optionsList)||void 0===i||i.querySelectorAll(".item").forEach((i=>{a.addIDInfoIfNotExists(i,"itemComboBox")}))}render(){return e("section",{class:"list-container"},e("div",{class:"list-wrapper",ref:i=>this._listWrapper=i},e("ul",{class:"list-options",ref:i=>this._optionsList=i},!this.showLoading&&0===this.visibleOptions.length&&e("div",{class:"message"},e("span",{class:"message__no-result"},this.textEmptyList||this.i18n("ez-combo-box.noResults"))),this.showLoading&&e("div",{class:"message"},e("div",{class:"message__loading"})),this.showOptionValue&&e("span",{class:"item__value item__value--hidden"}),!this.showLoading&&this.visibleOptions.length>0&&this.visibleOptions.map(((i,t)=>this.buildItem(i,t))))))}static get watchers(){return{width:["observeWidth"],maxWidth:["observeMaxWidth"]}}};x.style=":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;margin: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)}}";const f=class{constructor(t){i(this,t),this.gui=void 0,this.customEditor=void 0,this.formViewField=void 0,this.value=void 0,this.detailContext=void 0,this.builderFallback=void 0,this.selectedRecord=void 0}async setFocus(){var i,t;null===(t=null===(i=this.gui)||void 0===i?void 0:i.setFocus)||void 0===t||t.call(i)}async setBlur(){var i,t;null===(t=null===(i=this.gui)||void 0===i?void 0:i.setBlur)||void 0===t||t.call(i)}async isInvalid(){var i,t;return(null===(t=null===(i=this.gui)||void 0===i?void 0:i.isInvalid)||void 0===t?void 0:t.call(i))||!1}watchValue(){this.handleValue(this.gui)}watchCustomEditor(){this.getContent()}watchFormViewField(i,t){l.equals(i,t)||this.getContent()}watchDetailContext(){this.getContent()}watchBuilderFallback(){this.getContent()}watchSelectedRecord(i,t){(null==i?void 0:i.__record__id__)!==(null==t?void 0:t.__record__id__)&&this.getContent()}getContent(){var i,t,s,r,a;const l=new Map;for(const i in this.formViewField.props)l.set(i,this.formViewField.props[i]);const c={value:this.value,name:this.formViewField.name,currentEditor:this.builderFallback(this.formViewField),setValue:i=>this.setValue(i),getValue:this.getValue,record:this.selectedRecord,editorMetadata:{label:this.formViewField.label,hidden:!1===(null===(i=this.formViewField.props)||void 0===i?void 0:i.visible),userInterface:this.formViewField.userInterface,options:null===(t=this.formViewField.props)||void 0===t?void 0:t.options,props:this.formViewField.props?l:void 0,optionLoader:this.formViewField.optionLoader},source:m.FORM,detailContext:this.detailContext};let h=this.customEditor.getEditorElement(c);if(!h)return h=this.builderFallback(this.formViewField),this.handleValue(h),void(this.gui=h);if(!(h instanceof HTMLElement)&&"string"!=typeof h)return this.handleValue(h),void(this.gui=h);"string"==typeof h&&(h=n.parseElement(h));const d=null!==(a=null!==(r=null===(s=this.value)||void 0===s?void 0:s.value)&&void 0!==r?r:this.value)&&void 0!==a?a:"";h.setAttribute("value",d),this.gui=e("div",{key:o.generateUUID(),ref:i=>i&&i.appendChild(h)})}setValue(i){this.value=i}getValue(){return this.value}handleValue(i){var t;null===(t=i.i)||void 0===t||t.forEach((i=>{i.t.value=this.value}))}componentWillLoad(){this.getContent()}render(){return e(s,null,this.gui)}static get watchers(){return{value:["watchValue"],customEditor:["watchCustomEditor"],formViewField:["watchFormViewField"],detailContext:["watchDetailContext"],builderFallback:["watchBuilderFallback"],selectedRecord:["watchSelectedRecord"]}}},w=class{constructor(e){i(this,e),this.ezChange=t(this,"ezChange",7),this.ezError=t(this,"ezError",7),this.handleFileSelect=i=>{const t=i.target;t.files&&t.files[0]&&this.processFile(t.files[0])},this.handleDrop=i=>{var t;if(i.preventDefault(),i.stopPropagation(),this._isDragging=!1,!this.enabled)return;const e=null===(t=i.dataTransfer)||void 0===t?void 0:t.files;e&&e[0]&&this.processFile(e[0])},this.handleDragOver=i=>{i.preventDefault(),i.stopPropagation(),this.enabled&&(this._isDragging=!0)},this.handleDragLeave=i=>{i.preventDefault(),i.stopPropagation(),this._isDragging=!1},this.handleRemoveImage=i=>{i.stopPropagation(),this.value=void 0,this._hasImage=!1,this._inputElem&&(this._inputElem.value=""),this.ezChange.emit("")},this.handleEditImage=i=>{var t;i.stopPropagation(),null===(t=this._inputElem)||void 0===t||t.click()},this.handleClickDropZone=()=>{var i;this.enabled&&!this._hasImage&&(null===(i=this._inputElem)||void 0===i||i.click())},this.handleImageClick=i=>{i.stopPropagation(),this._hasImage&&this.value&&(this._showImagePopup=!0)},this.handlePopupAction=i=>{const t=i.detail;"CANCEL"!==t&&"OK"!==t||this.handleClosePopup()},this.handleClosePopup=()=>{this._showImagePopup=!1},this.enabled=!0,this.label=void 0,this.name=void 0,this.value=void 0,this.maxFileSize=20971520,this.accept="image/*",this.loading=!1,this._hasImage=!1,this._isDragging=!1,this._showImagePopup=!1}onValueChange(i,t){i!==t&&(this._hasImage=!!i),!i&&this._inputElem&&(this._inputElem.value="")}addInfoId(){this._element&&a.addIDInfo(this._element),this._inputElem&&a.addIDInfo(this._inputElem,"image-input",{id:"embedded"})}processFile(i){if(!i.type.startsWith("image/")){const i=this.i18n("ez-image-input.invalidFileType");return void this.ezError.emit(i)}if(this.maxFileSize&&i.size>this.maxFileSize){const i=(this.maxFileSize/1048576).toFixed(2),t=this.i18n("ez-image-input.fileTooLarge",{maxSize:`${i}MB`});return void this.ezError.emit(t)}const t=new FileReader;t.onload=i=>{var t;const e=null===(t=i.target)||void 0===t?void 0:t.result;this.value=e,this._hasImage=!0,this.ezChange.emit(e)},t.readAsDataURL(i)}async componentWillLoad(){this.i18n=await u(),this._hasImage=!!this.value}componentDidLoad(){this.addInfoId()}render(){if(this.loading)return e(s,null,e("ez-skeleton",{width:"280px",height:"200px"}));const i=this.label||this.i18n("ez-image-input.defaultLabel");return e(s,null,e("div",{class:{"image-input__container":!0,"image-input__container--disabled":!this.enabled,"image-input__container--dragging":this._isDragging,"image-input__container--has-image":this._hasImage},"data-enabled":this.enabled.toString(),"data-has-image":this._hasImage.toString(),onClick:this.handleClickDropZone,onDrop:this.handleDrop,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,role:"button","aria-label":i,tabindex:this.enabled?0:-1},e("input",{ref:i=>this._inputElem=i,type:"file",accept:this.accept,name:this.name,disabled:!this.enabled,onChange:this.handleFileSelect,class:"image-input__file-input","aria-hidden":"true"}),this._hasImage&&this.value?e("div",{class:"image-input__preview"},e("img",{src:this.value,alt:this.i18n("ez-image-input.imageAlt"),class:"image-input__image",onClick:this.handleImageClick}),this.enabled&&e("div",{class:"image-input__actions"},e("ez-button",{class:"image-input__remove-button",variant:"primary",type:"button",mode:"icon",size:"small",iconName:"trash-alt",onClick:this.handleRemoveImage,"aria-label":this.i18n("ez-image-input.removeImage"),title:this.i18n("ez-image-input.removeImage")}),e("ez-button",{class:"image-input__edit-button",variant:"secondary",type:"button",mode:"icon",size:"small",iconName:"edit",onClick:this.handleEditImage,"aria-label":this.i18n("ez-image-input.editImage"),title:this.i18n("ez-image-input.editImage")}))):e("div",{class:"image-input__dropzone"},e("ez-icon",{iconName:"image",size:"x-large"}),e("span",{class:"image-input__label"},i))),e("ez-popup",{opened:this._showImagePopup,ezTitle:this.i18n("ez-image-input.imagePreview"),size:"large",heightMode:"auto",onEzPopupAction:this.handlePopupAction,onEzClosePopup:this.handleClosePopup},e("div",{class:"image-input__popup-content"},e("img",{src:this.value,alt:this.i18n("ez-image-input.imageAlt"),class:"image-input__popup-image"}))))}get _element(){return r(this)}static get watchers(){return{value:["onValueChange"]}}};w.style=":host{display:block;--ez-image-input--container-height:200px;--ez-image-input--container-width:280px;--ez-image-input--background-color:var(--color--gray-80);--ez-image-input--border-color:var(--color--gray-200);--ez-image-input--border-color-hover:var(--color--ocean-green-600);--ez-image-input--border-color-dragging:var(--color--ocean-green-500);--ez-image-input--border-color-disabled:var(--color--gray-200);--ez-image-input--label-color:var(--color--petroleum-900);--ez-image-input--icon-color:var(--color--gray-400);--ez-image-input--border-radius:var(--border--radius-24);--ez-image-input--border-width:2px;--ez-image-input--remove-button-bg:var(--color--red-600);--ez-image-input--remove-button-bg-hover:var(--color--red-700);--ez-image-input--remove-button-color:var(--color--gray-70);--ez-image-input--remove-button-border:1px solid var(--color--red-700)}.image-input__container{display:flex;align-items:center;justify-content:center;position:relative;height:var(--ez-image-input--container-height);width:var(--ez-image-input--container-width);border:var(--ez-image-input--border-width) dashed var(--ez-image-input--border-color);border-radius:var(--ez-image-input--border-radius);background-color:var(--ez-image-input--background-color);cursor:pointer;transition:all 0.3s ease;overflow:hidden}.image-input__container:hover:not(.image-input__container--disabled){border-color:var(--ez-image-input--border-color-hover)}.image-input__container--dragging{border-color:var(--ez-image-input--border-color-dragging);background-color:var(--color--ocean-green-90)}.image-input__container--disabled{cursor:not-allowed;opacity:0.6;border-color:var(--ez-image-input--border-color-disabled)}.image-input__container--has-image{border-style:solid;padding:var(--space--0)}.image-input__file-input{display:none}.image-input__dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space--16);padding:var(--space--24);text-align:center}.image-input__dropzone ez-icon{color:var(--ez-image-input--icon-color)}.image-input__label{font-family:var(--font--pattern);font-size:var(--font-size--default);font-weight:var(--font-weight--medium);color:var(--ez-image-input--label-color);line-height:var(--line-height--20)}.image-input__preview{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.image-input__image{height:100%;object-fit:cover;border-radius:calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width))}.image-input__actions{position:absolute;top:var(--space--8);right:var(--space--8);display:flex;flex-direction:column;gap:var(--space--4);opacity:0;transition:opacity 0.2s ease}.image-input__container:hover .image-input__actions{opacity:1}.image-input__remove-button{--ez-button--background-color:var(--ez-image-input--remove-button-bg);--ez-button--hover--background-color:var(--ez-image-input--remove-button-bg-hover);--ez-button--color:var(--ez-image-input--remove-button-color);--ez-button--border:var(--ez-image-input--remove-button-border);--ez-button--hover--border:var(--ez-image-input--remove-button-border)}.image-input__edit-button{--ez-button--background-color:var(--ez-image-input--edit-button-bg);--ez-button--hover--background-color:var(--ez-image-input--edit-button-bg-hover);--ez-button--color:var(--ez-image-input--edit-button-color);--ez-button--border:var(--ez-image-input--edit-button-border);--ez-button--hover--border:var(--ez-image-input--edit-button-border);--ez-button--left-icon--color:var(--ez-image-input--edit-button-color);--ez-button--right-icon--color:var(--ez-image-input--edit-button-color)}.image-input__popup-content{display:flex;align-items:center;justify-content:center;padding:var(--space--16);height:100%}.image-input__popup-image{max-width:100%;max-height:70vh;object-fit:contain;border-radius:var(--border--radius-8)}.image-input__image{height:100%;object-fit:cover;border-radius:calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width));cursor:pointer;transition:transform 0.2s ease}.image-input__image:hover{transform:scale(1.02)}ez-skeleton{--skeleton-width:var(--ez-image-input--container-width);--skeleton-height:var(--ez-image-input--container-height)}";const y=class{constructor(e){i(this,e),this.ezChange=t(this,"ezChange",7),this._lastSelectionKey="",this.label=void 0,this.enabled=!0,this.errorMessage=void 0,this.hasInvalid=!1,this.canShowError=!0,this.mode="regular",this.noBorder=!1,this.options=void 0,this.dataSource=void 0,this.columnName=void 0,this.useOptions=!1,this.isTextSearch=!1,this.orderSelectedFirst=!1,this.value=void 0,this._selectedCount=0,this._isOpen=!1}observeHasInvalid(i,t){}observeOptions(i){if(!i)return this._selectedCount=0,void(this._lastSelectionKey="");this._selectedCount=i.filter((i=>i.check)).length,this._lastSelectionKey=this.selectionKey(i)}observeValue(i){Array.isArray(i)&&this.selectionKey(i)!==this._lastSelectionKey&&(this.options=i)}async getSelectedOptions(){var i,t;return(null!==(t=null!==(i=this.value)&&void 0!==i?i:this.options)&&void 0!==t?t:[]).filter((i=>i.check))}async clearSelection(){var i,t;const e=null!==(i=this._list)&&void 0!==i?i:null===(t=this._popover)||void 0===t?void 0:t.querySelector("ez-multi-selection-list");await(null==e?void 0:e.clearSelection()),this._selectedCount=0}handleTogglePopover(){this.enabled&&(this._isOpen?this._popover.hide():this._popover.showUnder(this._trigger))}handleKeyDown(i){"Enter"!==i.key&&" "!==i.key&&"Spacebar"!==i.key||(i.preventDefault(),this.handleTogglePopover())}handleVisibilityChange(i){this._isOpen=i.detail}stopInnerChangeEvents(i){i.stopPropagation()}handleSelectionChange(i){var t;const e=null!==(t=i.detail)&&void 0!==t?t:[];this._selectedCount=e.filter((i=>i.check)).length;const s=this.selectionKey(e);s!==this._lastSelectionKey&&(this._lastSelectionKey=s,this.value=e,this.ezChange.emit(e))}selectionKey(i){return(i||[]).filter((i=>i.check)).map((i=>i.value)).sort().join("|")}buildDisplayText(){return this._selectedCount>0?`${this._selectedCount} selecionado(s)`:""}buildTriggerClass(){const i=["trigger"];return this.enabled||i.push("trigger--disabled"),this._isOpen&&i.push("trigger--focused"),this.hasError()&&i.push("trigger--error"),this.noBorder&&i.push("trigger--no-border"),"slim"===this.mode&&i.push("trigger--slim"),i.join(" ")}hasError(){return!!this.canShowError&&(this.hasInvalid||"string"==typeof this.errorMessage&&""!==this.errorMessage.trim())}componentWillLoad(){Array.isArray(this.value)&&this.value!==this.options&&(this.options=this.value);const i=this.options;i&&(this._selectedCount=i.filter((i=>i.check)).length,this._lastSelectionKey=this.selectionKey(i))}render(){a.addIDInfoIfNotExists(this._hostElement,"multi-select-input");const i=this.buildDisplayText(),t=this.hasError(),r=this._selectedCount>0||this._isOpen;return e(s,null,e("div",{ref:i=>this._trigger=i,class:this.buildTriggerClass(),tabindex:this.enabled?"0":"-1",onClick:()=>this.handleTogglePopover(),onKeyDown:i=>this.handleKeyDown(i),"data-element-id":a.getInternalIDInfo("trigger")},this.label&&"slim"!==this.mode&&e("label",{class:{trigger__label:!0,"trigger__label--floated":r,"trigger__label--disabled":!this.enabled,"trigger__label--error":t},title:this.label},this.label),e("span",{class:{trigger__value:!0,"trigger__value--placeholder":0===this._selectedCount,"trigger__value--with-label":!!this.label&&"slim"!==this.mode}},i||("slim"===this.mode&&this.label?this.label:"")),e("ez-icon",{class:"trigger__chevron",iconName:this._isOpen?"chevron-up":"chevron-down"}),t&&"slim"!==this.mode&&this.errorMessage&&e("ez-tooltip",{type:"error",message:this.errorMessage,strategy:"fixed"},e("ez-icon",{class:"tooltip-icon hasError","data-element-id":a.getInternalIDInfo("tooltip-icon"),iconName:"alert-circle"}))),e("ez-popover-core",{ref:i=>this._popover=i,overlayType:"light",fitInViewport:!0,useAnchorSize:!0,onEzVisibilityChange:i=>this.handleVisibilityChange(i)},e("ez-multi-selection-list",{ref:i=>{this._list=i,null==i||i.removeEventListener("ezChange",this.stopInnerChangeEvents),null==i||i.addEventListener("ezChange",this.stopInnerChangeEvents)},columnName:this.columnName,dataSource:this.dataSource,useOptions:this.useOptions,options:this.options,isTextSearch:this.isTextSearch,orderSelectedFirst:this.orderSelectedFirst,onChangeFilteredOptions:i=>this.handleSelectionChange(i)})))}get _hostElement(){return r(this)}static get watchers(){return{hasInvalid:["observeHasInvalid"],errorMessage:["observeHasInvalid"],canShowError:["observeHasInvalid"],options:["observeOptions"],value:["observeValue"]}}};y.style=":host{--ez-multi-select-input--height:42px;--ez-multi-select-input--height--slim:32px;--ez-multi-select-input--width:100%;--ez-multi-select-input__min-width:0px;--ez-multi-select-input__max-width:100%;--ez-multi-select-input__icon--width:30px;--ez-multi-select-input--font-size:var(--text--medium, 14px);--ez-multi-select-input--font-family:var(--font-pattern, Arial);--ez-multi-select-input--font-weight:var(--text-weight--medium, 400);--ez-multi-select-input--color:var(--title--primary, #2B3A54);--ez-multi-select-input--border-radius:var(--border--radius-medium, 12px);--ez-multi-select-input__input--border:var(--border--small, 1px solid);--ez-multi-select-input__input--border-color:var(--color--strokes, #DCE0E8);--ez-multi-select-input__input--focus--border-color:var(--color--primary, #008561);--ez-multi-select-input__input--error--border-color:var(--color-alert--error-800, #BD0025);--ez-multi-select-input__input--background-color:var(--background--light, #ffffff);--ez-multi-select-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-multi-select-input__input--disabled--color:var(--text--primary, #626E82);--ez-multi-select-input__label--floating--top:6px;--ez-multi-select-input__label--padding-top:12px;--ez-multi-select-input__label--padding-left:14px;--ez-multi-select-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-multi-select-input__tooltip_icon--error--color:var(--color-alert--error-800, #BD0025);--ez-multi-select-input__tooltip-icon---width:var(--space--large);--ez-multi-select-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-multi-select-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-multi-select-input--width);min-width:var(--ez-multi-select-input__min-width);max-width:var(--ez-multi-select-input__max-width)}.trigger{position:relative;display:flex;align-items:center;box-sizing:border-box;cursor:pointer;width:100%;overflow:hidden;height:var(--ez-multi-select-input--height);border-radius:var(--ez-multi-select-input--border-radius);font-family:var(--ez-multi-select-input--font-family);font-size:var(--ez-multi-select-input--font-size);font-weight:var(--ez-multi-select-input--font-weight);color:var(--ez-multi-select-input--color);background-color:var(--ez-multi-select-input__input--background-color);border:var(--ez-multi-select-input__input--border);border-color:var(--ez-multi-select-input__input--border-color);padding:0 var(--ez-multi-select-input__icon--width) 0 14px;margin-bottom:var(--space--small)}.trigger:focus{outline:none}.trigger--focused{border:var(--border--medium, 2px solid);outline:none;border-color:var(--ez-multi-select-input__input--focus--border-color)}.trigger--error{border:var(--border--medium, 2px solid);border-color:var(--ez-multi-select-input__input--error--border-color)}.trigger--disabled{cursor:not-allowed;background-color:var(--ez-multi-select-input__input--disabled--background-color);color:var(--ez-multi-select-input__input--disabled--color)}.trigger--no-border{box-shadow:none;border:none}.trigger--slim{height:var(--ez-multi-select-input--height--slim)}.trigger__label{position:absolute;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;font-family:var(--ez-multi-select-input--font-family);font-size:var(--ez-multi-select-input--font-size);font-weight:var(--ez-multi-select-input--font-weight);color:var(--ez-multi-select-input--color);top:var(--ez-multi-select-input__label--padding-top);left:var(--ez-multi-select-input__label--padding-left)}.trigger__label--floated{font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-multi-select-input__label--floating--top)}.trigger__label--disabled{color:var(--ez-multi-select-input__input--disabled--color)}.trigger__label--error{color:var(--ez-multi-select-input__tooltip_icon--error--color)}.trigger__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trigger__value--placeholder{color:var(--ez-multi-select-input__placeholder--color)}.trigger__value--with-label{padding-top:14px}.trigger__chevron{position:absolute;right:8px;display:flex;align-items:center;color:var(--ez-multi-select-input--color)}.trigger--disabled .trigger__chevron{color:var(--ez-multi-select-input__input--disabled--color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-multi-select-input__tooltip-icon---width);height:22px;margin:var(--ez-multi-select-input__tooltip-icon---vertical-margin)\n var(--ez-multi-select-input__tooltip-icon---horizontal-margin);top:0;right:var(--ez-multi-select-input__icon--width);border-radius:var(--ez-multi-select-input--border-radius)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-multi-select-input__tooltip_icon--error--color)}ez-popover-core ez-multi-selection-list{padding:var(--space--2xs, 8px);--ez-multi-selection-default-width:100%}";const k=class{constructor(e){i(this,e),this.ezChange=t(this,"ezChange",7),this.historyStack=[],this.historyIndex=-1,this.previewMode=!1,this.showPreview=!0,this.value=void 0,this.label=void 0,this.mode="regular",this.enabled=!0,this.rows=6,this.errorMessage=void 0,this.canShowError=!0,this.showConfigs=!0,this.showTextFormat=!0,this.showUndoRedo=!0}observeValue(i,t){l.equals(i,t)||this.ezChange.emit(i)}observeErrorMessage(i){i&&this.previewMode&&(this.previewMode=!1)}async handleExecuteToolbarCommand(i){const{command:t,value:e}=i.detail;await this.executeCommand(t,e)}async setFocus(){this.handleFocus()}async setBlur(){var i;await(null===(i=this.textAreaRef)||void 0===i?void 0:i.setBlur())}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}bindPreview(){this._keyboardManager&&this.showPreview&&this._keyboardManager.bind("ctrl + p",(async()=>{await this.togglePreview()}),{description:"Entra em modo de pré visualização.",element:this.element})}bindConfigs(){this._keyboardManager&&this.showConfigs&&this._keyboardManager.bind("ctrl + l",(async()=>{await this.handleFormatSelection(p.LIST)}),{description:this.i18n("ez-rich-text.listShortcut"),element:this.element}).bind("ctrl + k",(async()=>{await this.handleLink()}),{description:this.i18n("ez-rich-text.linkShortcut"),element:this.element}).bind("ctrl + o",(async()=>{await this.handleImage()}),{description:this.i18n("ez-rich-text.imageShortcut"),element:this.element})}bindTextFormat(){this._keyboardManager&&this.showTextFormat&&this._keyboardManager.bind("ctrl + b",(async()=>{await this.handleFormatSelection(p.BOLD)}),{description:this.i18n("ez-rich-text.boldShortcut"),element:this.element}).bind("ctrl + i",(async()=>{await this.handleFormatSelection(p.ITALIC)}),{description:this.i18n("ez-rich-text.italicShortcut"),element:this.element}).bind("ctrl + u",(async()=>{await this.handleFormatSelection(p.UNDERLINE)}),{description:this.i18n("ez-rich-text.underlineShortcut"),element:this.element})}initKeyboardManager(){this._keyboardManager=new c({propagate:!1,element:this.element}),this._keyboardManager.bind("ctrl + Enter",(async()=>{await this.handleFormatSelection(p.BREAK_LINE)}),{description:this.i18n("ez-rich-text.breakLineShortcut"),element:this.element}).bind("ctrl + z",(async()=>{await this.handleUndo()}),{description:this.i18n("ez-rich-text.undoShortcut"),element:this.element}).bind("ctrl + x",(async()=>{await this.handleRedo()}),{description:this.i18n("ez-rich-text.redoShortcut"),element:this.element}),this.bindPreview(),this.bindConfigs(),this.bindTextFormat()}async executeCommand(i,t){switch(i){case b.FOCUS:this.handleFocus();break;case b.PREVIEW:await this.togglePreview();break;case b.FORMAT:await this.handleFormatSelection(t);break;case b.UNDO:await this.handleUndo();break;case b.REDO:await this.handleRedo();break;case b.LINK:await this.handleLink();break;case b.IMAGE:await this.handleImage()}}handleFocus(){this.previewMode=!1,requestAnimationFrame((async()=>{await this.textAreaRef.setFocus()}))}async handleLink(){this.previewMode=!1,requestAnimationFrame((async()=>{await this.linkBuilderRef.show(this.getSelectedText())}))}async handleImage(){this.previewMode=!1,await this.imageUploaderRef.show()}async handleRedo(){this.previewMode=!1,requestAnimationFrame((async()=>{this.redo(),await this.textAreaRef.setFocus()}))}async handleUndo(){this.previewMode=!1,requestAnimationFrame((async()=>{this.undo(),await this.textAreaRef.setFocus()}))}async handleFormatSelection(i){i&&(this.previewMode=!1,requestAnimationFrame((async()=>{await this.formatSelection(i),await this.textAreaRef.setFocus()})))}async togglePreview(){this.previewMode=!this.previewMode,this.previewMode&&await this.textAreaRef.setFocus()}getSelectedText(){const i=this.getTextAreaElement();if(i)return(this.textAreaRef.value||"").substring(i.selectionStart,i.selectionEnd)}getTextAreaElement(){return this.element.querySelector("ez-text-area").shadowRoot.querySelector("textarea")}async formatSelection(i){if(!this.textAreaRef)return;const t=i.replace("$selection",this.getSelectedText()||"");await this.textAreaRef.appendTextToSelection(t),this.value=this.textAreaRef.value,this.addToHistory(this.value)}addToHistory(i){this.historyIndex>=0&&i===this.historyStack[this.historyIndex]||(this.historyStack.length>=50&&this.historyStack.splice(0,this.historyStack.length-49),this.historyStack.push(i),this.historyIndex=this.historyStack.length-1)}undo(){if(!this.canExecuteUndo())return;this.historyIndex--;const i=this.historyStack[this.historyIndex];this.value=i,this.textAreaRef.value=i}canExecuteUndo(){return this.historyIndex>0}redo(){this.canExecuteRedo()&&(this.historyIndex++,this.getValueFromHistory())}canExecuteRedo(){return this.historyIndex<this.historyStack.length-1}getValueFromHistory(){const i=this.historyStack[this.historyIndex];this.value=i,this.textAreaRef.value=i}handleTextAreaChanged(i){this.value=i.detail,this.addToHistory(this.value)}async removeShortcuts(){var i;null===(i=this._keyboardManager)||void 0===i||i.unbindAllShortcutKeys()}async componentWillLoad(){this.i18n=await u()}componentDidLoad(){this.initKeyboardManager(),this.addToHistory(this.value)}async disconnectedCallback(){await this.removeShortcuts()}getSanitizedValue(){return v.sanitize(this.value,{ADD_ATTR:["target","rel"]})}renderContent(){return this.previewMode?e("div",{id:"rich-text-preview-container",class:"preview",innerHTML:this.getSanitizedValue()}):e("ez-text-area",{ref:i=>this.textAreaRef=i,label:this.label,value:this.value,enabled:this.enabled,rows:this.rows,mode:this.mode,canShowError:this.canShowError,errorMessage:this.errorMessage,onEzChange:this.handleTextAreaChanged.bind(this)})}render(){return e(s,null,e("div",{class:"editor-container bordered"},e("ez-rich-toolbar",{isPreviewMode:this.previewMode,showPreview:this.showPreview,showConfigs:this.showConfigs&&this.enabled,showTextFormat:this.showTextFormat&&this.enabled,showUndoRedo:this.showUndoRedo&&this.enabled}),this.renderContent()),e("ez-link-builder",{ref:i=>this.linkBuilderRef=i}),e("ez-simple-image-uploader",{ref:i=>this.imageUploaderRef=i}))}get element(){return r(this)}static get watchers(){return{value:["observeValue"],errorMessage:["observeErrorMessage"]}}};k.style=".sc-ez-rich-text-h{display:block;width:100%;font-family:Roboto;--ez-rich-text--box-shadow:0 0 3px 0 #DCE0E8;--ez-rich-text--shadow--outline:var(--shadow--outline) var(--color--strokes)}.editor-container.sc-ez-rich-text{width:100%;overflow:hidden;border-radius:12px;border:1px solid #DCE0E8}ez-text-area.sc-ez-rich-text{--text-area__input--border:1px solid}.preview.sc-ez-rich-text{min-height:20px;padding:12px;resize:both;overflow:auto;max-width:100%;border-top:1px solid #DCE0E8}";const E=class{constructor(e){i(this,e),this.saveEdition=t(this,"saveEdition",7),this.cancelEdition=t(this,"cancelEdition",7),this._newValue=void 0,this.value=void 0,this.styled=void 0}async applyFocusSelect(){this.calcSizeInput(this.value,!0)}calcSizeInput(i,t=!1){var e,s;const r=null===(s=null===(e=this._inputElement)||void 0===e?void 0:e.shadowRoot)||void 0===s?void 0:s.querySelector("input");if(null!=r){const e=this.getWidthValue(i);r.style.width=e+"px",t&&setTimeout((()=>r.select()),100)}}getWidthValue(i){if(null!=this._valueBasis){const t=this._valueBasis;if(null!=i){const e=2;return t.innerHTML=i,t.clientWidth>0?t.clientWidth+e:e}t.innerHTML=""}return 0}setStyledInput(){var i,t;let e="",s="",r="";null!=this.styled&&(e=this.styled.fontSize,s=this.styled.fontWeight,r=this.styled.fontFamily);const o=null===(t=null===(i=this._inputElement)||void 0===i?void 0:i.shadowRoot)||void 0===t?void 0:t.querySelector("input");null!=o&&(o.style.fontSize=e,o.style.fontWeight=s,o.style.fontFamily=r);const a=this._valueBasis;null!=a&&(a.style.fontSize=e,a.style.fontWeight=s,a.style.fontFamily=r)}handleSaveEdition(){this._newValue?this.saveEdition.emit({value:this.value,newValue:this._newValue}):g.alert(this.i18n("app.warning"),this.i18n("ez-text-edit.emptyFieldWarning")).then((()=>{this.setNewValue(this.value,!0)}))}handleCancelEdition(){this.cancelEdition.emit()}setNewValue(i,t=!1){this._newValue=i,this.calcSizeInput(this._newValue,t)}async componentWillLoad(){this.i18n=await u()}componentDidLoad(){this.applyFocusSelect(),this.setNewValue(this.value)}componentDidRender(){this.setStyledInput()}render(){return a.addIDInfoIfNotExists(this._element,"input"),e(s,null,e("span",{class:"text-edit__hidden-value",ref:i=>this._valueBasis=i}),e("ez-text-input",{"data-element-id":a.getInternalIDInfo("textInput"),onInput:()=>{this.calcSizeInput(this._newValue)},class:"text-edit__form-input",value:this._newValue,ref:i=>this._inputElement=i,mode:"slim",onEzChange:i=>this.setNewValue(null==i?void 0:i.detail),noBorder:!0}),e("ez-button",{class:"text-edit__icon-check",mode:"icon",iconName:"check",size:"small",onClick:()=>{this.handleSaveEdition()}}),e("ez-button",{class:"text-edit__icon-close",mode:"icon",iconName:"close",size:"small",onClick:()=>{this.handleCancelEdition()}}))}get _element(){return r(this)}};E.style=":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}";export{_ as classic_search_list,z as ez_classic_search_result_list,x as ez_combo_box_list,f as ez_custom_form_input,w as ez_image_input,y as ez_multi_select_input,k as ez_rich_text,E as ez_text_edit}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as s}from"./p-23a36bb6.js";import{ObjectUtils as o}from"@sankhyalabs/core";import{i as l}from"./p-80dfc50b.js";import{i as n}from"./p-a61fdd20.js";function h(t,e,i){if(!t.length)return[...e];if(!e.length)return[];const s=function(t,e){return t.map((t=>e.findIndex((e=>e.id===t))))}(t,e),o=0===(l=s).length?0:l.reduce(((t,e)=>e<t?e:t),l[0]);var l;const n=function(t){return 0===t.length?0:t.reduce(((t,e)=>e>t?e:t),t[0])}(s);return function(t,e,i,s){return t<0||e>=s.length||t>e?s:i?function(t,e,i){if(t===i.length-1)return i;const s=i.slice(0,e),o=i.slice(e,t+1),l=i.slice(t+1),n=l.shift();return n?[...s,n,...o,...l]:i}(e,t,s):function(t,e,i){if(0===t)return i;const s=i.slice(0,t-1),o=i.slice(t,e+1),l=i.slice(e+1);return[...s,...o,i[t-1],...l]}(t,e,s)}(o,n,i,e)}function r({from:t,to:e,selectedFrom:i,selectedTo:s}){return e=[...e.map((t=>d(t,!1))),...t.map((t=>d(t,!0)))],i=[],s=[...t.map((({id:t})=>t))],{from:t=[],to:e,selectedFrom:i,selectedTo:s}}function a({from:t,to:e,selectedFrom:i,selectedTo:s,insertIndex:o=e.length}){if(!t.length)return{from:t,to:e,selectedFrom:i,selectedTo:s};const l=function(t,e,i){const s=t.map((t=>t.id)),o=e.filter((t=>!s.includes(t)));return i.filter((({id:t})=>o.includes(t)))}(e,i,t);if(!l.length)return{from:t,to:e,selectedFrom:i,selectedTo:s};let n=e.map((t=>d(t,!1)));return n.splice(o,0,...l.map((t=>d(t,!0)))),{from:t.filter((t=>!i.includes(t.id))),to:n,selectedFrom:[],selectedTo:[...i]}}function d(t,e){return Object.assign(Object.assign({},t),{selected:e})}const c=class{constructor(i){t(this,i),this.ezLeftListChanged=e(this,"ezLeftListChanged",7),this.ezRightListChanged=e(this,"ezRightListChanged",7),this.LEFT_LIST_ID="LEFT-LIST-ID",this.RIGHT_LIST_ID="RIGHT-LIST-ID",this.leftList=[],this.leftTitle=void 0,this.rightList=[],this.entityLabel="item",this.entityLabelPlural="itens",this.leftListLabel="disponíveis",this.rightListLabel="selecionados",this.useOnlyRightList=!1,this.rightTitle=void 0,this.emptyMessage=void 0,this.slotsListBuilder=void 0,this.leftFilteredList=[],this.rightFilteredList=[],this.selectedLeftList=[],this.selectedRightList=[],this.isFilteringLeft=!1,this.isFilteringRight=!1}async resetSelectedLists(){this.selectedLeftList=[],this.selectedRightList=[]}observeLeftList(t,e){o.equals(t,e)||this.ezLeftListChanged.emit(t)}observeRightList(t,e){o.equals(t,e)||this.ezRightListChanged.emit(t)}async componentWillLoad(){this.i18n=await n()}async handleChangeLeft({detail:t}){t.to.getAttribute("id")&&t.to.getAttribute("id")===this.RIGHT_LIST_ID?(t.selectItens=t.selectItens.filter((t=>this.rightList.every((e=>e.id!==t)))),this.leftList=[...t.dataSource],this.selectedLeftList=[...t.selectItens],this.transferToRight(null==t?void 0:t.newIndex)):this.leftList=[...this.reorderArray(t.dataSource,t.selectItens,t.newIndex)]}async handleChangeRight({detail:t}){t.to.getAttribute("id")&&t.to.getAttribute("id")===this.LEFT_LIST_ID?(t.selectItens=t.selectItens.filter((t=>this.leftList.every((e=>e.id!==t)))),this.rightList=[...t.dataSource],this.selectedRightList=[...t.selectItens],this.transferToLeft(null==t?void 0:t.newIndex)):this.rightList=[...this.reorderArray(t.dataSource,t.selectItens,t.newIndex)]}reorderArray(t,e,i){const s=t.filter((t=>!e.includes(t.id))),o=t.filter((t=>e.includes(t.id)));return s.splice(i,0,...o),s}enableTransferAllToRight(){return this.leftList.length>0}enableTransferAllToLeft(){return this.rightList.length>0}enableTransferToRight(){return this.selectedLeftList.length>0}enableTransferToLeft(){return this.selectedRightList.length>0}enableMoveUp(t){if(this.isFilteringRight)return!1;const e=this.getRightSelectedItemsIndex();return this.selectedRightList.length>0&&!e.includes(0)&&(!!t||l(e))}enableMoveDown(t){if(this.isFilteringRight)return!1;const e=this.getRightSelectedItemsIndex();return this.selectedRightList.length>0&&!e.includes(this.rightList.length-1)&&(!!t||l(e))}getRightSelectedItemsIndex(){return this.selectedRightList.map((t=>this.rightList.findIndex((e=>e.id===t))))}transferToRight(t){const{from:e,to:i,selectedFrom:s,selectedTo:o}=a(Object.assign(Object.assign({},this.buildTransferToRightConfig()),{insertIndex:null!=t?t:0}));this.leftList=[],requestAnimationFrame((()=>this.leftList=[...e])),this.rightList=[...i],this.selectedLeftList=[...s],this.selectedRightList=[...o]}transferToLeft(t){const{from:e,to:i,selectedFrom:s,selectedTo:o}=a(Object.assign(Object.assign({},this.buildTransferToLeftConfig()),{insertIndex:null!=t?t:0}));this.rightList=[],requestAnimationFrame((()=>this.rightList=[...e])),this.leftList=[...i],this.selectedRightList=[...s],this.selectedLeftList=[...o]}async handleTransferAllToRight(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=r(this.buildTransferToRightConfig());this.leftList=[...t],this.rightList=[...e],this.selectedLeftList=[...i],this.selectedRightList=[...s],requestAnimationFrame((async()=>{await this.clearSelectionAll()}))}async handleTransferAllToLeft(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=r(this.buildTransferToLeftConfig());this.rightList=[...t],this.leftList=[...e],this.selectedRightList=[...i],this.selectedLeftList=[...s],requestAnimationFrame((async()=>{await this.clearSelectionAll()}))}buildTransferToRightConfig(){return{from:this.leftList,to:this.rightList,selectedFrom:this.selectedLeftList,selectedTo:this.selectedRightList}}buildTransferToLeftConfig(){return{from:this.rightList,to:this.leftList,selectedFrom:this.selectedRightList,selectedTo:this.selectedLeftList}}handleMoveUp(){this.rightList=[...h(this.selectedRightList,this.rightList,!1)]}handleMoveDown(){this.rightList=[...h(this.selectedRightList,this.rightList,!0)]}handleMoveToTop(){const{itemsToKeep:t,itemsToMove:e}=this.getItemsToKeepAndToMove();this.rightList=[...e,...t]}handleMoveToBottom(){const{itemsToKeep:t,itemsToMove:e}=this.getItemsToKeepAndToMove();this.rightList=[...t,...e]}handleSelectLeftItem({detail:t}){this.selectedLeftList=[...t.map((({id:t})=>t))]}handleSelectRightItem({detail:t}){this.selectedRightList=[...t.map((({id:t})=>t))]}getItemsToKeepAndToMove(){return{itemsToKeep:this.rightList.filter((t=>!this.selectedRightList.includes(t.id))),itemsToMove:this.rightList.filter((t=>this.selectedRightList.includes(t.id)))}}async handleTransferToRight(){this.transferToRight(),this.leftFilteredList=[],await this.leftEzListInstance.clearSelection()}async handleTransferToLeft(){this.transferToLeft(),this.rightFilteredList=[],await this.rightEzListInstance.clearSelection()}async clearSelectionAll(){await this.rightEzListInstance.clearSelection(),await this.leftEzListInstance.clearSelection()}handleChooseLeft(){requestAnimationFrame((async()=>{await this.rightEzListInstance.clearSelection()}))}handleChooseRight(){this.useOnlyRightList||requestAnimationFrame((async()=>{await this.leftEzListInstance.clearSelection()}))}renderList(t){const{idSortableList:e,list:s,isFiltering:o,filteredList:l,emptyMessage:n,slotConfig:h,callbacks:r,title:a}=t;return i("ez-sortable-list",{ref:null==r?void 0:r.setRef,title:a,idSortableList:e,emptyMessage:n,class:"ez-size-height--full",dataSource:o?l:s,hoverFeedback:!0,enableMultipleSelection:!0,removeItensMoved:!0,entityLabel:this.entityLabel,entityLabelPlural:this.entityLabelPlural,itemRightSlotBuilder:null==h?void 0:h.itemRightSlotBuilder,itemLeftSlotBuilder:null==h?void 0:h.itemLeftSlotBuilder,onItemsReordered:null==r?void 0:r.onChange.bind(this),onEzSelectItens:null==r?void 0:r.onSelect.bind(this),onEzDoubleClick:null==r?void 0:r.onDoubleClick.bind(this),onEzChoose:null==r?void 0:r.onChoose.bind(this)})}render(){var t,e,o,l,n,h,r,a,d,c;return i(s,null,!this.useOnlyRightList&&i("div",{class:"list__container"},this.leftList&&this.renderList({idSortableList:this.LEFT_LIST_ID,list:this.leftList,title:this.leftTitle,isFiltering:this.isFilteringLeft,filteredList:this.leftFilteredList,emptyMessage:(null===(t=this.emptyMessage)||void 0===t?void 0:t.LEFT_LIST)?this.emptyMessage.LEFT_LIST:this.i18n("ez-double-list.noItemsAvailable",{entity:this.entityLabel}),slotConfig:{itemRightSlotBuilder:null===(o=null===(e=this.slotsListBuilder)||void 0===e?void 0:e.LEFT_LIST)||void 0===o?void 0:o.itemRightSlotBuilder,itemLeftSlotBuilder:null===(n=null===(l=this.slotsListBuilder)||void 0===l?void 0:l.LEFT_LIST)||void 0===n?void 0:n.itemLeftSlotBuilder},callbacks:{setRef:t=>this.leftEzListInstance=t,onChange:t=>this.handleChangeLeft(t),onSelect:this.handleSelectLeftItem.bind(this),onDoubleClick:this.handleTransferToRight.bind(this),onChoose:this.handleChooseLeft.bind(this)}})),!this.useOnlyRightList&&i("div",{class:"actions__column"},i("ez-button",{mode:"icon",iconName:"dual-chevron-right",enabled:this.enableTransferAllToRight(),title:this.i18n("ez-double-list.moveAllTo",{list:this.rightListLabel}),size:"small",onClick:this.handleTransferAllToRight.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-right",enabled:this.enableTransferToRight(),title:this.i18n("ez-double-list.moveTo",{list:this.rightListLabel}),size:"small",onClick:this.handleTransferToRight.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-left",enabled:this.enableTransferToLeft(),title:this.i18n("ez-double-list.moveTo",{list:this.leftListLabel}),size:"small",onClick:this.handleTransferToLeft.bind(this)}),i("ez-button",{mode:"icon",iconName:"dual-chevron-left",enabled:this.enableTransferAllToLeft(),title:this.i18n("ez-double-list.moveAllTo",{list:this.leftListLabel}),size:"small",onClick:this.handleTransferAllToLeft.bind(this)})),i("div",{class:"list__container"},this.rightList&&this.renderList({idSortableList:this.RIGHT_LIST_ID,list:this.rightList,title:this.rightTitle,isFiltering:this.isFilteringRight,filteredList:this.rightFilteredList,emptyMessage:(null===(h=this.emptyMessage)||void 0===h?void 0:h.RIGHT_LIST)?this.emptyMessage.RIGHT_LIST:this.i18n("ez-double-list.noItemsSelected",{entity:this.entityLabel}),slotConfig:{itemRightSlotBuilder:null===(a=null===(r=this.slotsListBuilder)||void 0===r?void 0:r.RIGHT_LIST)||void 0===a?void 0:a.itemRightSlotBuilder,itemLeftSlotBuilder:null===(c=null===(d=this.slotsListBuilder)||void 0===d?void 0:d.RIGHT_LIST)||void 0===c?void 0:c.itemLeftSlotBuilder},callbacks:{setRef:t=>this.rightEzListInstance=t,onChange:t=>this.handleChangeRight(t),onSelect:this.handleSelectRightItem.bind(this),onDoubleClick:this.handleTransferToLeft.bind(this),onChoose:this.handleChooseRight.bind(this)}})),i("div",{class:"actions__column"},i("ez-button",{mode:"icon",iconName:"dual-chevron-up",enabled:this.enableMoveUp(!0),title:this.i18n("ez-double-list.moveToFirstPosition"),size:"small",onClick:this.handleMoveToTop.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-up",enabled:this.enableMoveUp(),title:this.i18n("ez-double-list.moveUp"),size:"small",onClick:this.handleMoveUp.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-down",enabled:this.enableMoveDown(),title:this.i18n("ez-double-list.moveDown"),size:"small",onClick:this.handleMoveDown.bind(this)}),i("ez-button",{mode:"icon",iconName:"dual-chevron-down",enabled:this.enableMoveDown(!0),title:this.i18n("ez-double-list.moveToLastPosition"),size:"small",onClick:this.handleMoveToBottom.bind(this)})))}static get watchers(){return{leftList:["observeLeftList"],rightList:["observeRightList"]}}};c.style='.sc-ez-double-list-h{display:flex;flex-direction:row;gap:8px;align-items:center;font-family:var(--font-pattern, "Roboto");width:100%}@media screen and (max-width: 1366px){.group.sc-ez-double-list{height:350px}}.list__container.sc-ez-double-list{height:100%;width:100%;min-height:150px;overflow:auto;display:flex}.actions__column.sc-ez-double-list{display:flex;flex-direction:column;gap:4px}';export{c as ez_double_list}
1
+ import{r as t,c as e,h as i,H as s}from"./p-23a36bb6.js";import{ObjectUtils as o}from"@sankhyalabs/core";import{i as l}from"./p-80dfc50b.js";import{i as n}from"./p-3b7d9f30.js";function h(t,e,i){if(!t.length)return[...e];if(!e.length)return[];const s=function(t,e){return t.map((t=>e.findIndex((e=>e.id===t))))}(t,e),o=0===(l=s).length?0:l.reduce(((t,e)=>e<t?e:t),l[0]);var l;const n=function(t){return 0===t.length?0:t.reduce(((t,e)=>e>t?e:t),t[0])}(s);return function(t,e,i,s){return t<0||e>=s.length||t>e?s:i?function(t,e,i){if(t===i.length-1)return i;const s=i.slice(0,e),o=i.slice(e,t+1),l=i.slice(t+1),n=l.shift();return n?[...s,n,...o,...l]:i}(e,t,s):function(t,e,i){if(0===t)return i;const s=i.slice(0,t-1),o=i.slice(t,e+1),l=i.slice(e+1);return[...s,...o,i[t-1],...l]}(t,e,s)}(o,n,i,e)}function r({from:t,to:e,selectedFrom:i,selectedTo:s}){return e=[...e.map((t=>d(t,!1))),...t.map((t=>d(t,!0)))],i=[],s=[...t.map((({id:t})=>t))],{from:t=[],to:e,selectedFrom:i,selectedTo:s}}function a({from:t,to:e,selectedFrom:i,selectedTo:s,insertIndex:o=e.length}){if(!t.length)return{from:t,to:e,selectedFrom:i,selectedTo:s};const l=function(t,e,i){const s=t.map((t=>t.id)),o=e.filter((t=>!s.includes(t)));return i.filter((({id:t})=>o.includes(t)))}(e,i,t);if(!l.length)return{from:t,to:e,selectedFrom:i,selectedTo:s};let n=e.map((t=>d(t,!1)));return n.splice(o,0,...l.map((t=>d(t,!0)))),{from:t.filter((t=>!i.includes(t.id))),to:n,selectedFrom:[],selectedTo:[...i]}}function d(t,e){return Object.assign(Object.assign({},t),{selected:e})}const c=class{constructor(i){t(this,i),this.ezLeftListChanged=e(this,"ezLeftListChanged",7),this.ezRightListChanged=e(this,"ezRightListChanged",7),this.LEFT_LIST_ID="LEFT-LIST-ID",this.RIGHT_LIST_ID="RIGHT-LIST-ID",this.leftList=[],this.leftTitle=void 0,this.rightList=[],this.entityLabel="item",this.entityLabelPlural="itens",this.leftListLabel="disponíveis",this.rightListLabel="selecionados",this.useOnlyRightList=!1,this.rightTitle=void 0,this.emptyMessage=void 0,this.slotsListBuilder=void 0,this.leftFilteredList=[],this.rightFilteredList=[],this.selectedLeftList=[],this.selectedRightList=[],this.isFilteringLeft=!1,this.isFilteringRight=!1}async resetSelectedLists(){this.selectedLeftList=[],this.selectedRightList=[]}observeLeftList(t,e){o.equals(t,e)||this.ezLeftListChanged.emit(t)}observeRightList(t,e){o.equals(t,e)||this.ezRightListChanged.emit(t)}async componentWillLoad(){this.i18n=await n()}async handleChangeLeft({detail:t}){t.to.getAttribute("id")&&t.to.getAttribute("id")===this.RIGHT_LIST_ID?(t.selectItens=t.selectItens.filter((t=>this.rightList.every((e=>e.id!==t)))),this.leftList=[...t.dataSource],this.selectedLeftList=[...t.selectItens],this.transferToRight(null==t?void 0:t.newIndex)):this.leftList=[...this.reorderArray(t.dataSource,t.selectItens,t.newIndex)]}async handleChangeRight({detail:t}){t.to.getAttribute("id")&&t.to.getAttribute("id")===this.LEFT_LIST_ID?(t.selectItens=t.selectItens.filter((t=>this.leftList.every((e=>e.id!==t)))),this.rightList=[...t.dataSource],this.selectedRightList=[...t.selectItens],this.transferToLeft(null==t?void 0:t.newIndex)):this.rightList=[...this.reorderArray(t.dataSource,t.selectItens,t.newIndex)]}reorderArray(t,e,i){const s=t.filter((t=>!e.includes(t.id))),o=t.filter((t=>e.includes(t.id)));return s.splice(i,0,...o),s}enableTransferAllToRight(){return this.leftList.length>0}enableTransferAllToLeft(){return this.rightList.length>0}enableTransferToRight(){return this.selectedLeftList.length>0}enableTransferToLeft(){return this.selectedRightList.length>0}enableMoveUp(t){if(this.isFilteringRight)return!1;const e=this.getRightSelectedItemsIndex();return this.selectedRightList.length>0&&!e.includes(0)&&(!!t||l(e))}enableMoveDown(t){if(this.isFilteringRight)return!1;const e=this.getRightSelectedItemsIndex();return this.selectedRightList.length>0&&!e.includes(this.rightList.length-1)&&(!!t||l(e))}getRightSelectedItemsIndex(){return this.selectedRightList.map((t=>this.rightList.findIndex((e=>e.id===t))))}transferToRight(t){const{from:e,to:i,selectedFrom:s,selectedTo:o}=a(Object.assign(Object.assign({},this.buildTransferToRightConfig()),{insertIndex:null!=t?t:0}));this.leftList=[],requestAnimationFrame((()=>this.leftList=[...e])),this.rightList=[...i],this.selectedLeftList=[...s],this.selectedRightList=[...o]}transferToLeft(t){const{from:e,to:i,selectedFrom:s,selectedTo:o}=a(Object.assign(Object.assign({},this.buildTransferToLeftConfig()),{insertIndex:null!=t?t:0}));this.rightList=[],requestAnimationFrame((()=>this.rightList=[...e])),this.leftList=[...i],this.selectedRightList=[...s],this.selectedLeftList=[...o]}async handleTransferAllToRight(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=r(this.buildTransferToRightConfig());this.leftList=[...t],this.rightList=[...e],this.selectedLeftList=[...i],this.selectedRightList=[...s],requestAnimationFrame((async()=>{await this.clearSelectionAll()}))}async handleTransferAllToLeft(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=r(this.buildTransferToLeftConfig());this.rightList=[...t],this.leftList=[...e],this.selectedRightList=[...i],this.selectedLeftList=[...s],requestAnimationFrame((async()=>{await this.clearSelectionAll()}))}buildTransferToRightConfig(){return{from:this.leftList,to:this.rightList,selectedFrom:this.selectedLeftList,selectedTo:this.selectedRightList}}buildTransferToLeftConfig(){return{from:this.rightList,to:this.leftList,selectedFrom:this.selectedRightList,selectedTo:this.selectedLeftList}}handleMoveUp(){this.rightList=[...h(this.selectedRightList,this.rightList,!1)]}handleMoveDown(){this.rightList=[...h(this.selectedRightList,this.rightList,!0)]}handleMoveToTop(){const{itemsToKeep:t,itemsToMove:e}=this.getItemsToKeepAndToMove();this.rightList=[...e,...t]}handleMoveToBottom(){const{itemsToKeep:t,itemsToMove:e}=this.getItemsToKeepAndToMove();this.rightList=[...t,...e]}handleSelectLeftItem({detail:t}){this.selectedLeftList=[...t.map((({id:t})=>t))]}handleSelectRightItem({detail:t}){this.selectedRightList=[...t.map((({id:t})=>t))]}getItemsToKeepAndToMove(){return{itemsToKeep:this.rightList.filter((t=>!this.selectedRightList.includes(t.id))),itemsToMove:this.rightList.filter((t=>this.selectedRightList.includes(t.id)))}}async handleTransferToRight(){this.transferToRight(),this.leftFilteredList=[],await this.leftEzListInstance.clearSelection()}async handleTransferToLeft(){this.transferToLeft(),this.rightFilteredList=[],await this.rightEzListInstance.clearSelection()}async clearSelectionAll(){await this.rightEzListInstance.clearSelection(),await this.leftEzListInstance.clearSelection()}handleChooseLeft(){requestAnimationFrame((async()=>{await this.rightEzListInstance.clearSelection()}))}handleChooseRight(){this.useOnlyRightList||requestAnimationFrame((async()=>{await this.leftEzListInstance.clearSelection()}))}renderList(t){const{idSortableList:e,list:s,isFiltering:o,filteredList:l,emptyMessage:n,slotConfig:h,callbacks:r,title:a}=t;return i("ez-sortable-list",{ref:null==r?void 0:r.setRef,title:a,idSortableList:e,emptyMessage:n,class:"ez-size-height--full",dataSource:o?l:s,hoverFeedback:!0,enableMultipleSelection:!0,removeItensMoved:!0,entityLabel:this.entityLabel,entityLabelPlural:this.entityLabelPlural,itemRightSlotBuilder:null==h?void 0:h.itemRightSlotBuilder,itemLeftSlotBuilder:null==h?void 0:h.itemLeftSlotBuilder,onItemsReordered:null==r?void 0:r.onChange.bind(this),onEzSelectItens:null==r?void 0:r.onSelect.bind(this),onEzDoubleClick:null==r?void 0:r.onDoubleClick.bind(this),onEzChoose:null==r?void 0:r.onChoose.bind(this)})}render(){var t,e,o,l,n,h,r,a,d,c;return i(s,null,!this.useOnlyRightList&&i("div",{class:"list__container"},this.leftList&&this.renderList({idSortableList:this.LEFT_LIST_ID,list:this.leftList,title:this.leftTitle,isFiltering:this.isFilteringLeft,filteredList:this.leftFilteredList,emptyMessage:(null===(t=this.emptyMessage)||void 0===t?void 0:t.LEFT_LIST)?this.emptyMessage.LEFT_LIST:this.i18n("ez-double-list.noItemsAvailable",{entity:this.entityLabel}),slotConfig:{itemRightSlotBuilder:null===(o=null===(e=this.slotsListBuilder)||void 0===e?void 0:e.LEFT_LIST)||void 0===o?void 0:o.itemRightSlotBuilder,itemLeftSlotBuilder:null===(n=null===(l=this.slotsListBuilder)||void 0===l?void 0:l.LEFT_LIST)||void 0===n?void 0:n.itemLeftSlotBuilder},callbacks:{setRef:t=>this.leftEzListInstance=t,onChange:t=>this.handleChangeLeft(t),onSelect:this.handleSelectLeftItem.bind(this),onDoubleClick:this.handleTransferToRight.bind(this),onChoose:this.handleChooseLeft.bind(this)}})),!this.useOnlyRightList&&i("div",{class:"actions__column"},i("ez-button",{mode:"icon",iconName:"dual-chevron-right",enabled:this.enableTransferAllToRight(),title:this.i18n("ez-double-list.moveAllTo",{list:this.rightListLabel}),size:"small",onClick:this.handleTransferAllToRight.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-right",enabled:this.enableTransferToRight(),title:this.i18n("ez-double-list.moveTo",{list:this.rightListLabel}),size:"small",onClick:this.handleTransferToRight.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-left",enabled:this.enableTransferToLeft(),title:this.i18n("ez-double-list.moveTo",{list:this.leftListLabel}),size:"small",onClick:this.handleTransferToLeft.bind(this)}),i("ez-button",{mode:"icon",iconName:"dual-chevron-left",enabled:this.enableTransferAllToLeft(),title:this.i18n("ez-double-list.moveAllTo",{list:this.leftListLabel}),size:"small",onClick:this.handleTransferAllToLeft.bind(this)})),i("div",{class:"list__container"},this.rightList&&this.renderList({idSortableList:this.RIGHT_LIST_ID,list:this.rightList,title:this.rightTitle,isFiltering:this.isFilteringRight,filteredList:this.rightFilteredList,emptyMessage:(null===(h=this.emptyMessage)||void 0===h?void 0:h.RIGHT_LIST)?this.emptyMessage.RIGHT_LIST:this.i18n("ez-double-list.noItemsSelected",{entity:this.entityLabel}),slotConfig:{itemRightSlotBuilder:null===(a=null===(r=this.slotsListBuilder)||void 0===r?void 0:r.RIGHT_LIST)||void 0===a?void 0:a.itemRightSlotBuilder,itemLeftSlotBuilder:null===(c=null===(d=this.slotsListBuilder)||void 0===d?void 0:d.RIGHT_LIST)||void 0===c?void 0:c.itemLeftSlotBuilder},callbacks:{setRef:t=>this.rightEzListInstance=t,onChange:t=>this.handleChangeRight(t),onSelect:this.handleSelectRightItem.bind(this),onDoubleClick:this.handleTransferToLeft.bind(this),onChoose:this.handleChooseRight.bind(this)}})),i("div",{class:"actions__column"},i("ez-button",{mode:"icon",iconName:"dual-chevron-up",enabled:this.enableMoveUp(!0),title:this.i18n("ez-double-list.moveToFirstPosition"),size:"small",onClick:this.handleMoveToTop.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-up",enabled:this.enableMoveUp(),title:this.i18n("ez-double-list.moveUp"),size:"small",onClick:this.handleMoveUp.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-down",enabled:this.enableMoveDown(),title:this.i18n("ez-double-list.moveDown"),size:"small",onClick:this.handleMoveDown.bind(this)}),i("ez-button",{mode:"icon",iconName:"dual-chevron-down",enabled:this.enableMoveDown(!0),title:this.i18n("ez-double-list.moveToLastPosition"),size:"small",onClick:this.handleMoveToBottom.bind(this)})))}static get watchers(){return{leftList:["observeLeftList"],rightList:["observeRightList"]}}};c.style='.sc-ez-double-list-h{display:flex;flex-direction:row;gap:8px;align-items:center;font-family:var(--font-pattern, "Roboto");width:100%}@media screen and (max-width: 1366px){.group.sc-ez-double-list{height:350px}}.list__container.sc-ez-double-list{height:100%;width:100%;min-height:150px;overflow:auto;display:flex}.actions__column.sc-ez-double-list{display:flex;flex-direction:column;gap:4px}';export{c as ez_double_list}
Binary file
Binary file