@sankhyalabs/ezui 7.3.3 → 7.3.4-rc.1

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 (1147) 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 +272 -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 +7 -5
  129. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/ez-split-panel.cjs.entry.js +6 -4
  131. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  132. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  133. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  137. package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
  138. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  139. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  141. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  142. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  143. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  144. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  145. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  146. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  147. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  148. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  149. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  150. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  151. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  152. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  153. package/dist/cjs/ezui.cjs.js +3 -3
  154. package/dist/cjs/ezui.cjs.js.gz +0 -0
  155. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  156. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  157. package/dist/cjs/{floating-ui.dom.esm-f1e4e440.js → floating-ui.dom.esm-4a0428c0.js} +309 -260
  158. package/dist/cjs/floating-ui.dom.esm-4a0428c0.js.gz +0 -0
  159. package/dist/cjs/index-a7b0c73d.js +58 -26
  160. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  161. package/dist/cjs/{index-1be40f19.js → index-d4a1cad8.js} +175 -30
  162. package/dist/cjs/index-d4a1cad8.js.gz +0 -0
  163. package/dist/cjs/index.cjs.js.gz +0 -0
  164. package/dist/cjs/loader.cjs.js +3 -3
  165. package/dist/cjs/loader.cjs.js.gz +0 -0
  166. package/dist/cjs/{purify-06a8724d.js → purify-ef86f048.js} +292 -117
  167. package/dist/cjs/purify-ef86f048.js.gz +0 -0
  168. package/dist/cjs/{search-column-316e2c59.js → search-column-c04897a9.js} +12 -10
  169. package/dist/cjs/search-column-c04897a9.js.gz +0 -0
  170. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  171. package/dist/cjs/searchFormatters-051f8677.js.gz +0 -0
  172. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  173. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  174. package/dist/cjs/types-6a5df0c7.js.gz +0 -0
  175. package/dist/collection/collection-manifest.json +64 -3
  176. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  177. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  178. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  179. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  180. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  181. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  182. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  183. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  184. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  185. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  186. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  187. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  188. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  189. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  190. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  191. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  192. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  193. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  194. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  195. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  196. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  197. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  198. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  199. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  200. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  201. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  202. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  203. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  204. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  205. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  206. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  207. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  208. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  209. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  210. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  211. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  212. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  213. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  214. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  215. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  216. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  217. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  218. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  219. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  220. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  221. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  222. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  223. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  224. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +96 -18
  225. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  226. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  227. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  228. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css.gz +0 -0
  229. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  230. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js.gz +0 -0
  231. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  232. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css.gz +0 -0
  233. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  234. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js.gz +0 -0
  235. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  236. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  237. package/dist/collection/components/ez-classic-input/ez-classic-input.js +200 -19
  238. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  239. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  240. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  241. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  242. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css.gz +0 -0
  243. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  244. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js.gz +0 -0
  245. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  246. package/dist/collection/components/ez-classic-search/ez-classic-search.css.gz +0 -0
  247. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  248. package/dist/collection/components/ez-classic-search/ez-classic-search.js.gz +0 -0
  249. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  250. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css.gz +0 -0
  251. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  252. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js.gz +0 -0
  253. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  254. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js.gz +0 -0
  255. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +428 -0
  256. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css.gz +0 -0
  257. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +1003 -0
  258. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js.gz +0 -0
  259. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  260. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css.gz +0 -0
  261. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  262. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js.gz +0 -0
  263. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +3 -2
  264. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  265. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  266. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  267. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  268. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  269. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css.gz +0 -0
  270. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +512 -0
  271. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js.gz +0 -0
  272. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  273. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  274. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  275. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  276. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  277. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  278. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  279. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  280. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  281. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  282. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  283. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  284. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  285. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  286. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  287. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  288. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  289. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  290. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  291. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  292. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  293. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  294. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  295. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  296. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  297. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  298. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  299. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  300. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  301. package/dist/collection/components/ez-form/ez-form.js +30 -4
  302. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  303. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  304. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  305. package/dist/collection/components/ez-form-view/ez-form-view.css +27 -8
  306. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  307. package/dist/collection/components/ez-form-view/ez-form-view.js +62 -4
  308. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  309. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
  310. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  311. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  312. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  313. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  314. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  315. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  316. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  317. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  318. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  319. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
  320. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js.gz +0 -0
  321. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  322. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  323. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  324. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  325. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  326. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  327. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  328. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  329. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  330. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  331. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  332. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  333. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  334. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  335. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  336. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  337. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  338. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  339. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +194 -13
  340. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  341. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +11 -1
  342. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  343. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  344. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  345. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  346. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  347. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  348. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  349. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  350. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  351. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  352. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  353. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  354. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  355. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  356. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  357. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  358. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  359. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  360. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  361. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  362. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  363. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  364. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  365. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js.gz +0 -0
  366. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  367. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  368. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  369. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js.gz +0 -0
  370. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  371. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  372. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  373. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  374. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  375. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  376. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js.gz +0 -0
  377. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  378. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  379. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  380. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  381. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  382. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  383. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  384. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  385. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  386. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  387. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  388. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  389. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  390. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  391. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  392. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +217 -0
  393. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css.gz +0 -0
  394. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +516 -0
  395. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js.gz +0 -0
  396. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +1 -0
  397. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js.gz +0 -0
  398. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  399. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  400. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  401. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  402. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  403. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  404. package/dist/collection/components/ez-icon/ez-icon.css +8 -7
  405. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  406. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  407. package/dist/collection/components/ez-image-input/ez-image-input.css +189 -0
  408. package/dist/collection/components/ez-image-input/ez-image-input.css.gz +0 -0
  409. package/dist/collection/components/ez-image-input/ez-image-input.js +329 -0
  410. package/dist/collection/components/ez-image-input/ez-image-input.js.gz +0 -0
  411. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  412. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  413. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  414. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  415. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  416. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  417. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  418. package/dist/collection/components/ez-modal/ez-modal.css +3 -0
  419. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  420. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  421. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  422. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  423. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  424. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  425. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  426. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  427. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  428. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  429. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  430. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  431. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  432. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  433. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  434. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  435. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  436. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  437. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  438. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  439. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  440. package/dist/collection/components/ez-popover/ez-popover.js +27 -0
  441. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  442. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  443. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  444. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  445. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  446. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  447. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  448. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  449. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  450. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  451. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  452. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  453. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  454. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css.gz +0 -0
  455. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  456. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js.gz +0 -0
  457. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  458. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  459. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  460. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  461. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  462. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  463. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  464. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  465. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  466. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  467. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  468. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  469. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  470. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  471. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  472. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  473. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  474. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  475. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  476. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  477. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  478. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  479. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js.gz +0 -0
  480. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  481. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  482. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  483. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  484. package/dist/collection/components/ez-search/ez-search.css +4 -0
  485. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  486. package/dist/collection/components/ez-search/ez-search.js +75 -3
  487. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  488. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  489. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  490. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  491. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  492. package/dist/collection/components/ez-search-plus/ez-search-plus.js +11 -2
  493. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  494. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  495. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  496. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  497. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  498. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  499. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  500. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  501. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  502. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  503. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  504. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  505. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  506. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  507. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  508. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  509. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  510. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  511. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  512. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  513. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  514. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  515. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  516. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  517. package/dist/collection/components/ez-split-panel/ez-split-panel.css +29 -0
  518. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  519. package/dist/collection/components/ez-split-panel/ez-split-panel.js +23 -3
  520. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  521. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  522. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +9 -0
  523. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  524. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
  525. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  526. package/dist/collection/components/ez-tabselector/ez-tabselector.css +33 -1
  527. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  528. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  529. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  530. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  531. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  532. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  533. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  534. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  535. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  536. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  537. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  538. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  539. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  540. package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
  541. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  542. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  543. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  544. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  545. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  546. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  547. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  548. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  549. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  550. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  551. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  552. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  553. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  554. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  555. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  556. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  557. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  558. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  559. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  560. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  561. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  562. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  563. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  564. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  565. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  566. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  567. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  568. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  569. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  570. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  571. package/dist/collection/global/app-init.js.gz +0 -0
  572. package/dist/collection/index.js.gz +0 -0
  573. package/dist/collection/servidor.js.gz +0 -0
  574. package/dist/collection/setupTests.js.gz +0 -0
  575. package/dist/collection/sw.js.gz +0 -0
  576. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  577. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  578. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  579. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  580. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  581. package/dist/collection/utils/constants.js.gz +0 -0
  582. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  583. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  584. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  585. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  586. package/dist/collection/utils/form/DataBinder.js +2 -2
  587. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  588. package/dist/collection/utils/form/FormMetadata.js +132 -74
  589. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  590. package/dist/collection/utils/form/index.js.gz +0 -0
  591. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  592. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  593. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  594. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  595. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  596. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  597. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  598. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  599. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  600. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  601. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  602. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  603. package/dist/collection/utils/i18n/index.js.gz +0 -0
  604. package/dist/collection/utils/i18n/locales/en-us.js +55 -4
  605. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  606. package/dist/collection/utils/i18n/locales/es-es.js +55 -4
  607. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  608. package/dist/collection/utils/i18n/locales/pt-br.js +55 -4
  609. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  610. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  611. package/dist/collection/utils/index.js.gz +0 -0
  612. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  613. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  614. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  615. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  616. package/dist/collection/utils/search/types.js.gz +0 -0
  617. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  618. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  619. package/dist/collection/utils/utils.js.gz +0 -0
  620. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  621. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  622. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  623. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  624. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  625. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  626. package/dist/custom-elements/index.d.ts +66 -0
  627. package/dist/custom-elements/index.js +4689 -851
  628. package/dist/custom-elements/index.js.gz +0 -0
  629. package/dist/esm/{ApplicationUtils-1569f757.js → ApplicationUtils-29d2709c.js} +1 -1
  630. package/dist/esm/ApplicationUtils-29d2709c.js.gz +0 -0
  631. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  632. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  633. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  634. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  635. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  636. package/dist/esm/FormLayout-bda67973.js +9 -0
  637. package/dist/esm/FormLayout-bda67973.js.gz +0 -0
  638. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  639. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  640. package/dist/esm/{app-globals-c0ac93c0.js → app-globals-44bdc4c4.js} +1 -1
  641. package/dist/esm/app-globals-44bdc4c4.js.gz +0 -0
  642. package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_8.entry.js} +363 -7
  643. package/dist/esm/classic-search-list_8.entry.js.gz +0 -0
  644. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  645. package/dist/esm/ez-actions-button.entry.js +4 -3
  646. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  647. package/dist/esm/ez-alert-list.entry.js +1 -1
  648. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  649. package/dist/esm/ez-alert.entry.js.gz +0 -0
  650. package/dist/esm/ez-application.entry.js.gz +0 -0
  651. package/dist/esm/ez-avatar.entry.js +1 -1
  652. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  653. package/dist/esm/ez-badge.entry.js.gz +0 -0
  654. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  655. package/dist/esm/ez-button.entry.js.gz +0 -0
  656. package/dist/esm/ez-calendar.entry.js +1 -1
  657. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  658. package/dist/esm/ez-card-item.entry.js +58 -0
  659. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  660. package/dist/esm/ez-chart.entry.js.gz +0 -0
  661. package/dist/esm/ez-check.entry.js.gz +0 -0
  662. package/dist/esm/ez-chip.entry.js.gz +0 -0
  663. package/dist/esm/ez-classic-combo-box.entry.js +38 -15
  664. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  665. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  666. package/dist/esm/ez-classic-date-input.entry.js.gz +0 -0
  667. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  668. package/dist/esm/ez-classic-date-time-input.entry.js.gz +0 -0
  669. package/dist/esm/ez-classic-input.entry.js +145 -19
  670. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  671. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  672. package/dist/esm/ez-classic-number-input.entry.js.gz +0 -0
  673. package/dist/esm/ez-classic-search-plus.entry.js +416 -0
  674. package/dist/esm/ez-classic-search-plus.entry.js.gz +0 -0
  675. package/dist/esm/ez-classic-search.entry.js +679 -0
  676. package/dist/esm/ez-classic-search.entry.js.gz +0 -0
  677. package/dist/esm/ez-classic-text-area.entry.js +13 -2
  678. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  679. package/dist/esm/ez-classic-time-input.entry.js +194 -0
  680. package/dist/esm/ez-classic-time-input.entry.js.gz +0 -0
  681. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  682. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  683. package/dist/esm/ez-combo-box.entry.js +4 -3
  684. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  685. package/dist/esm/ez-date-input.entry.js +1 -1
  686. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  687. package/dist/esm/ez-date-time-input.entry.js +1 -1
  688. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  689. package/dist/esm/ez-dialog.entry.js +1 -1
  690. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  691. package/dist/esm/ez-double-list.entry.js +1 -1
  692. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  693. package/dist/esm/ez-dropdown.entry.js +1 -1
  694. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  695. package/dist/esm/ez-empty-card.entry.js +1 -1
  696. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  697. package/dist/esm/ez-file-item.entry.js +1 -1
  698. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  699. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  700. package/dist/esm/ez-form-view.entry.js +130 -37
  701. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  702. package/dist/esm/ez-form.entry.js +144 -81
  703. package/dist/esm/ez-form.entry.js.gz +0 -0
  704. package/dist/esm/ez-grid-pagination.entry.js +327 -0
  705. package/dist/esm/ez-grid-pagination.entry.js.gz +0 -0
  706. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  707. package/dist/esm/ez-grid.entry.js +271 -159
  708. package/dist/esm/ez-grid.entry.js.gz +0 -0
  709. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  710. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  711. package/dist/esm/ez-icon.entry.js +1 -1
  712. package/dist/esm/ez-icon.entry.js.gz +0 -0
  713. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  714. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  715. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  716. package/dist/esm/ez-list.entry.js +1 -1
  717. package/dist/esm/ez-list.entry.js.gz +0 -0
  718. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  719. package/dist/esm/ez-modal-container.entry.js +1 -1
  720. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  721. package/dist/esm/ez-modal.entry.js +2 -2
  722. package/dist/esm/ez-modal.entry.js.gz +0 -0
  723. package/dist/esm/{ez-card-item_5.entry.js → ez-multi-selection-list_5.entry.js} +224 -58
  724. package/dist/esm/ez-multi-selection-list_5.entry.js.gz +0 -0
  725. package/dist/esm/ez-number-input.entry.js +1 -1
  726. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  727. package/dist/esm/ez-pagination.entry.js +1 -1
  728. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  729. package/dist/esm/ez-popover.entry.js +8 -0
  730. package/dist/esm/ez-popover.entry.js.gz +0 -0
  731. package/dist/esm/ez-popup.entry.js +1 -1
  732. package/dist/esm/ez-popup.entry.js.gz +0 -0
  733. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  734. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  735. package/dist/esm/ez-record-navigation.entry.js +117 -0
  736. package/dist/esm/ez-record-navigation.entry.js.gz +0 -0
  737. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  738. package/dist/esm/ez-scroller_2.entry.js +81 -14
  739. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  740. package/dist/esm/ez-search-plus.entry.js +15 -5
  741. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  742. package/dist/esm/ez-search-result-list.entry.js +1 -1
  743. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  744. package/dist/esm/ez-search.entry.js +44 -6
  745. package/dist/esm/ez-search.entry.js.gz +0 -0
  746. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  747. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  748. package/dist/esm/ez-skeleton.entry.js +1 -1
  749. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  750. package/dist/esm/ez-sortable-list.entry.js +2 -2
  751. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  752. package/dist/esm/ez-spinner.entry.js +1 -1
  753. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  754. package/dist/esm/ez-split-button.entry.js +16 -17
  755. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  756. package/dist/esm/ez-split-item.entry.js +7 -5
  757. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  758. package/dist/esm/ez-split-panel.entry.js +6 -4
  759. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  760. package/dist/esm/ez-tabselector.entry.js +209 -61
  761. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  762. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  763. package/dist/esm/ez-tag.entry.js.gz +0 -0
  764. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  765. package/dist/esm/ez-text-input.entry.js +37 -0
  766. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  767. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  768. package/dist/esm/ez-tile.entry.js.gz +0 -0
  769. package/dist/esm/ez-time-input.entry.js +1 -1
  770. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  771. package/dist/esm/ez-toast.entry.js.gz +0 -0
  772. package/dist/esm/ez-tooltip.entry.js +1 -1
  773. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  774. package/dist/esm/ez-tree.entry.js +1 -1
  775. package/dist/esm/ez-tree.entry.js.gz +0 -0
  776. package/dist/esm/ez-underface.entry.js.gz +0 -0
  777. package/dist/esm/ez-upload.entry.js +2 -2
  778. package/dist/esm/ez-upload.entry.js.gz +0 -0
  779. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  780. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  781. package/dist/esm/ezui.js +3 -3
  782. package/dist/esm/ezui.js.gz +0 -0
  783. package/dist/esm/filter-column.entry.js +1 -1
  784. package/dist/esm/filter-column.entry.js.gz +0 -0
  785. package/dist/esm/{floating-ui.dom.esm-c94d4011.js → floating-ui.dom.esm-ffa73324.js} +309 -260
  786. package/dist/esm/floating-ui.dom.esm-ffa73324.js.gz +0 -0
  787. package/dist/esm/{index-41363fa6.js → index-b5a15d4b.js} +175 -30
  788. package/dist/esm/index-b5a15d4b.js.gz +0 -0
  789. package/dist/esm/index-baa5e267.js +58 -26
  790. package/dist/esm/index-baa5e267.js.gz +0 -0
  791. package/dist/esm/index.js.gz +0 -0
  792. package/dist/esm/loader.js +3 -3
  793. package/dist/esm/loader.js.gz +0 -0
  794. package/dist/esm/polyfills/core-js.js.gz +0 -0
  795. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  796. package/dist/esm/polyfills/dom.js.gz +0 -0
  797. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  798. package/dist/esm/polyfills/index.js.gz +0 -0
  799. package/dist/esm/polyfills/system.js.gz +0 -0
  800. package/dist/esm/{purify-ca96ec34.js → purify-96c0d5c2.js} +292 -117
  801. package/dist/esm/purify-96c0d5c2.js.gz +0 -0
  802. package/dist/esm/{search-column-c20d2b01.js → search-column-9414ad22.js} +12 -10
  803. package/dist/esm/search-column-9414ad22.js.gz +0 -0
  804. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  805. package/dist/esm/searchFormatters-6d9b06e4.js.gz +0 -0
  806. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  807. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  808. package/dist/esm/types-6f6b2650.js.gz +0 -0
  809. package/dist/ezui/ezui.esm.js +1 -1
  810. package/dist/ezui/ezui.esm.js.gz +0 -0
  811. package/dist/ezui/index.esm.js.gz +0 -0
  812. package/dist/ezui/p-08e3184d.entry.js +1 -0
  813. package/dist/ezui/p-08e3184d.entry.js.gz +0 -0
  814. package/dist/ezui/p-093dac3e.entry.js +1 -0
  815. package/dist/ezui/p-093dac3e.entry.js.gz +0 -0
  816. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  817. package/dist/ezui/p-0d80e3ec.entry.js.gz +0 -0
  818. package/dist/ezui/p-0ddb9a95.entry.js +1 -0
  819. package/dist/ezui/p-0ddb9a95.entry.js.gz +0 -0
  820. package/dist/ezui/{p-3afa1c6e.entry.js → p-0fbf5842.entry.js} +1 -1
  821. package/dist/ezui/p-0fbf5842.entry.js.gz +0 -0
  822. package/dist/ezui/p-112455b1.js.gz +0 -0
  823. package/dist/ezui/{p-4fe123b6.entry.js → p-1160c33a.entry.js} +1 -1
  824. package/dist/ezui/p-1160c33a.entry.js.gz +0 -0
  825. package/dist/ezui/p-1222005d.entry.js +1 -0
  826. package/dist/ezui/p-1222005d.entry.js.gz +0 -0
  827. package/dist/ezui/p-178cb9df.entry.js +1 -0
  828. package/dist/ezui/p-178cb9df.entry.js.gz +0 -0
  829. package/dist/ezui/p-1c7aa5af.entry.js +1 -0
  830. package/dist/ezui/p-1c7aa5af.entry.js.gz +0 -0
  831. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  832. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  833. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  834. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  835. package/dist/ezui/{p-859e3134.entry.js → p-27236a0f.entry.js} +1 -1
  836. package/dist/ezui/p-27236a0f.entry.js.gz +0 -0
  837. package/dist/ezui/{p-02d448bb.entry.js → p-2c1c9ec6.entry.js} +1 -1
  838. package/dist/ezui/p-2c1c9ec6.entry.js.gz +0 -0
  839. package/dist/ezui/{p-baec56c9.js → p-320c401f.js} +1 -1
  840. package/dist/ezui/p-320c401f.js.gz +0 -0
  841. package/dist/ezui/p-34a09786.entry.js +1 -0
  842. package/dist/ezui/p-34a09786.entry.js.gz +0 -0
  843. package/dist/ezui/{p-82b0afe7.entry.js → p-359430a5.entry.js} +1 -1
  844. package/dist/ezui/p-359430a5.entry.js.gz +0 -0
  845. package/dist/ezui/{p-110cfb7d.entry.js → p-381570d2.entry.js} +1 -1
  846. package/dist/ezui/p-381570d2.entry.js.gz +0 -0
  847. package/dist/ezui/p-3b7d9f30.js +1 -0
  848. package/dist/ezui/p-3b7d9f30.js.gz +0 -0
  849. package/dist/ezui/{p-d5eb2fad.entry.js → p-3b9ccdb7.entry.js} +1 -1
  850. package/dist/ezui/p-3b9ccdb7.entry.js.gz +0 -0
  851. package/dist/ezui/p-3e767a74.js.gz +0 -0
  852. package/dist/ezui/p-40a0a773.entry.js +1 -0
  853. package/dist/ezui/p-40a0a773.entry.js.gz +0 -0
  854. package/dist/ezui/p-40a60148.js.gz +0 -0
  855. package/dist/ezui/{p-b3d8034b.entry.js → p-40c92fc7.entry.js} +1 -1
  856. package/dist/ezui/p-40c92fc7.entry.js.gz +0 -0
  857. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  858. package/dist/ezui/p-45d09b32.entry.js +1 -0
  859. package/dist/ezui/p-45d09b32.entry.js.gz +0 -0
  860. package/dist/ezui/p-46188bfe.entry.js +1 -0
  861. package/dist/ezui/p-46188bfe.entry.js.gz +0 -0
  862. package/dist/ezui/p-47e4a8ce.js +1 -0
  863. package/dist/ezui/p-47e4a8ce.js.gz +0 -0
  864. package/dist/ezui/p-49bc0b59.entry.js +1 -0
  865. package/dist/ezui/p-49bc0b59.entry.js.gz +0 -0
  866. package/dist/ezui/p-5124ba43.entry.js +1 -0
  867. package/dist/ezui/p-5124ba43.entry.js.gz +0 -0
  868. package/dist/ezui/{p-721fd999.entry.js → p-52122022.entry.js} +1 -1
  869. package/dist/ezui/p-52122022.entry.js.gz +0 -0
  870. package/dist/ezui/p-5895e687.js +1 -0
  871. package/dist/ezui/p-5895e687.js.gz +0 -0
  872. package/dist/ezui/{p-04126429.js → p-58fa7883.js} +1 -1
  873. package/dist/ezui/p-58fa7883.js.gz +0 -0
  874. package/dist/ezui/{p-0f7971cf.entry.js → p-5a217a52.entry.js} +1 -1
  875. package/dist/ezui/p-5a217a52.entry.js.gz +0 -0
  876. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  877. package/dist/ezui/p-63409a57.entry.js +1 -0
  878. package/dist/ezui/p-63409a57.entry.js.gz +0 -0
  879. package/dist/ezui/{p-ce0b36d7.entry.js → p-664b9f4c.entry.js} +1 -1
  880. package/dist/ezui/p-664b9f4c.entry.js.gz +0 -0
  881. package/dist/ezui/{p-9b3f3c02.entry.js → p-6c24ab67.entry.js} +1 -1
  882. package/dist/ezui/p-6c24ab67.entry.js.gz +0 -0
  883. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  884. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  885. package/dist/ezui/{p-34a476a9.entry.js → p-73bae77e.entry.js} +1 -1
  886. package/dist/ezui/p-73bae77e.entry.js.gz +0 -0
  887. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  888. package/dist/ezui/{p-a80e6b24.entry.js → p-7ecac0c4.entry.js} +1 -1
  889. package/dist/ezui/p-7ecac0c4.entry.js.gz +0 -0
  890. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  891. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  892. package/dist/ezui/{p-39761eca.entry.js → p-83ffba67.entry.js} +1 -1
  893. package/dist/ezui/p-83ffba67.entry.js.gz +0 -0
  894. package/dist/ezui/{p-d6bb930d.entry.js → p-852d6133.entry.js} +1 -1
  895. package/dist/ezui/p-852d6133.entry.js.gz +0 -0
  896. package/dist/ezui/p-88a115b3.js +1 -0
  897. package/dist/ezui/p-88a115b3.js.gz +0 -0
  898. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  899. package/dist/ezui/p-8ebe11f4.js +1 -0
  900. package/dist/ezui/p-8ebe11f4.js.gz +0 -0
  901. package/dist/ezui/p-90a0b52b.entry.js +1 -0
  902. package/dist/ezui/p-90a0b52b.entry.js.gz +0 -0
  903. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  904. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  905. package/dist/ezui/p-95fb50d1.entry.js +1 -0
  906. package/dist/ezui/p-95fb50d1.entry.js.gz +0 -0
  907. package/dist/ezui/{p-6c51ccd1.entry.js → p-97545f8e.entry.js} +1 -1
  908. package/dist/ezui/p-97545f8e.entry.js.gz +0 -0
  909. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  910. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  911. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  912. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  913. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  914. package/dist/ezui/{p-948f0fb2.entry.js → p-a62bbd49.entry.js} +1 -1
  915. package/dist/ezui/p-a62bbd49.entry.js.gz +0 -0
  916. package/dist/ezui/p-ab574d59.js.gz +0 -0
  917. package/dist/ezui/p-abfbbe1e.entry.js +1 -0
  918. package/dist/ezui/p-abfbbe1e.entry.js.gz +0 -0
  919. package/dist/ezui/{p-b989a33e.entry.js → p-ade1c43b.entry.js} +1 -1
  920. package/dist/ezui/p-ade1c43b.entry.js.gz +0 -0
  921. package/dist/ezui/{p-9ab2add9.entry.js → p-afb2f145.entry.js} +1 -1
  922. package/dist/ezui/p-afb2f145.entry.js.gz +0 -0
  923. package/dist/ezui/p-b1e45320.js.gz +0 -0
  924. package/dist/ezui/p-b29d9b0e.entry.js +1 -0
  925. package/dist/ezui/p-b29d9b0e.entry.js.gz +0 -0
  926. package/dist/ezui/p-b43fcdb6.js +1 -0
  927. package/dist/ezui/p-b43fcdb6.js.gz +0 -0
  928. package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
  929. package/dist/ezui/p-b50289bb.entry.js.gz +0 -0
  930. package/dist/ezui/p-b853763b.js.gz +0 -0
  931. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  932. package/dist/ezui/p-bcf0460e.entry.js +1 -0
  933. package/dist/ezui/p-bcf0460e.entry.js.gz +0 -0
  934. package/dist/ezui/p-be4b042f.entry.js +1 -0
  935. package/dist/ezui/p-be4b042f.entry.js.gz +0 -0
  936. package/dist/ezui/{p-05c32903.entry.js → p-c547f48f.entry.js} +1 -1
  937. package/dist/ezui/p-c547f48f.entry.js.gz +0 -0
  938. package/dist/ezui/{p-ecd6409d.entry.js → p-c6b9a72a.entry.js} +2 -2
  939. package/dist/ezui/p-c6b9a72a.entry.js.gz +0 -0
  940. package/dist/ezui/p-ca4c015a.entry.js +1 -0
  941. package/dist/ezui/p-ca4c015a.entry.js.gz +0 -0
  942. package/dist/ezui/{p-80aeef27.entry.js → p-d224f003.entry.js} +46 -46
  943. package/dist/ezui/p-d224f003.entry.js.gz +0 -0
  944. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  945. package/dist/ezui/p-d6f50207.entry.js +1 -0
  946. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  947. package/dist/ezui/p-d892e4c5.entry.js +1 -0
  948. package/dist/ezui/p-d892e4c5.entry.js.gz +0 -0
  949. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  950. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  951. package/dist/ezui/p-dcb7275b.entry.js +1 -0
  952. package/dist/ezui/p-dcb7275b.entry.js.gz +0 -0
  953. package/dist/ezui/p-dcd6a163.entry.js +1 -0
  954. package/dist/ezui/p-dcd6a163.entry.js.gz +0 -0
  955. package/dist/ezui/p-dcde2e69.entry.js +1 -0
  956. package/dist/ezui/p-dcde2e69.entry.js.gz +0 -0
  957. package/dist/ezui/p-ddf856db.entry.js +1 -0
  958. package/dist/ezui/p-ddf856db.entry.js.gz +0 -0
  959. package/dist/ezui/p-df6173c8.entry.js +1 -0
  960. package/dist/ezui/p-df6173c8.entry.js.gz +0 -0
  961. package/dist/ezui/{p-a4083a7a.entry.js → p-e60aa084.entry.js} +1 -1
  962. package/dist/ezui/p-e60aa084.entry.js.gz +0 -0
  963. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  964. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  965. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  966. package/dist/ezui/p-eb0cfd29.entry.js +1 -0
  967. package/dist/ezui/p-eb0cfd29.entry.js.gz +0 -0
  968. package/dist/ezui/p-ec7db713.js.gz +0 -0
  969. package/dist/ezui/{p-e5de42e7.entry.js → p-ef3cd4ef.entry.js} +1 -1
  970. package/dist/ezui/p-ef3cd4ef.entry.js.gz +0 -0
  971. package/dist/ezui/{p-fa6732f2.entry.js → p-efea2c79.entry.js} +1 -1
  972. package/dist/ezui/p-efea2c79.entry.js.gz +0 -0
  973. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  974. package/dist/ezui/{p-9b215871.entry.js → p-f7fb2587.entry.js} +1 -1
  975. package/dist/ezui/p-f7fb2587.entry.js.gz +0 -0
  976. package/dist/ezui/p-f90e8299.js +3 -0
  977. package/dist/ezui/p-f90e8299.js.gz +0 -0
  978. package/dist/ezui/p-fed3f5fe.entry.js +1 -0
  979. package/dist/ezui/p-fed3f5fe.entry.js.gz +0 -0
  980. package/dist/index.cjs.js.gz +0 -0
  981. package/dist/index.js.gz +0 -0
  982. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +11 -3
  983. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  984. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  985. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +24 -1
  986. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  987. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  988. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  989. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  990. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +189 -0
  991. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  992. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  993. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  994. package/dist/types/components/ez-form/ez-form.d.ts +6 -0
  995. package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
  996. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +9 -0
  997. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  998. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  999. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  1000. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  1001. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
  1002. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  1003. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  1004. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  1005. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  1006. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  1007. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  1008. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  1009. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +31 -0
  1010. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  1011. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  1012. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  1013. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  1014. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  1015. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +91 -0
  1016. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +7 -0
  1017. package/dist/types/components/ez-image-input/ez-image-input.d.ts +43 -0
  1018. package/dist/types/components/ez-popover/ez-popover.d.ts +9 -0
  1019. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  1020. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  1021. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  1022. package/dist/types/components/ez-search/ez-search.d.ts +12 -1
  1023. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  1024. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  1025. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +4 -0
  1026. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
  1027. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +42 -20
  1028. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  1029. package/dist/types/components.d.ts +3516 -2053
  1030. package/dist/types/utils/form/FormMetadata.d.ts +2 -1
  1031. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  1032. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
  1033. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
  1034. package/dist/types/utils/i18n/locales/en-us.d.ts +54 -3
  1035. package/dist/types/utils/i18n/locales/es-es.d.ts +54 -3
  1036. package/dist/types/utils/i18n/locales/pt-br.d.ts +54 -3
  1037. package/dist/types/utils/i18n/translations.d.ts +162 -9
  1038. package/package.json +11 -6
  1039. package/react/components.d.ts +11 -0
  1040. package/react/components.js +11 -0
  1041. package/react/components.js.map +1 -1
  1042. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  1043. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  1044. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  1045. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  1046. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  1047. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -227
  1048. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  1049. package/dist/cjs/floating-ui.dom.esm-f1e4e440.js.gz +0 -0
  1050. package/dist/cjs/index-1be40f19.js.gz +0 -0
  1051. package/dist/cjs/purify-06a8724d.js.gz +0 -0
  1052. package/dist/cjs/search-column-316e2c59.js.gz +0 -0
  1053. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  1054. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  1055. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  1056. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  1057. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  1058. package/dist/esm/ez-popover-core.entry.js +0 -223
  1059. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  1060. package/dist/esm/floating-ui.dom.esm-c94d4011.js.gz +0 -0
  1061. package/dist/esm/index-41363fa6.js.gz +0 -0
  1062. package/dist/esm/purify-ca96ec34.js.gz +0 -0
  1063. package/dist/esm/search-column-c20d2b01.js.gz +0 -0
  1064. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  1065. package/dist/ezui/p-04126429.js.gz +0 -0
  1066. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  1067. package/dist/ezui/p-0ec37151.entry.js +0 -1
  1068. package/dist/ezui/p-0ec37151.entry.js.gz +0 -0
  1069. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  1070. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  1071. package/dist/ezui/p-18384b91.entry.js +0 -1
  1072. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  1073. package/dist/ezui/p-24460bb2.js +0 -1
  1074. package/dist/ezui/p-24460bb2.js.gz +0 -0
  1075. package/dist/ezui/p-288631d1.entry.js +0 -1
  1076. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  1077. package/dist/ezui/p-30ffb9ed.js +0 -1
  1078. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  1079. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  1080. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  1081. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  1082. package/dist/ezui/p-3ce867cf.entry.js +0 -1
  1083. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  1084. package/dist/ezui/p-4314f87a.entry.js +0 -1
  1085. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  1086. package/dist/ezui/p-477af30b.entry.js +0 -1
  1087. package/dist/ezui/p-477af30b.entry.js.gz +0 -0
  1088. package/dist/ezui/p-48effc69.entry.js +0 -1
  1089. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  1090. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  1091. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  1092. package/dist/ezui/p-5554704c.js +0 -1
  1093. package/dist/ezui/p-5554704c.js.gz +0 -0
  1094. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  1095. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  1096. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  1097. package/dist/ezui/p-6ca0815e.entry.js +0 -1
  1098. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  1099. package/dist/ezui/p-6cb82d33.entry.js +0 -1
  1100. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  1101. package/dist/ezui/p-6de4cae1.entry.js +0 -1
  1102. package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
  1103. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  1104. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  1105. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  1106. package/dist/ezui/p-80aeef27.entry.js.gz +0 -0
  1107. package/dist/ezui/p-82b0afe7.entry.js.gz +0 -0
  1108. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  1109. package/dist/ezui/p-8bf077ea.entry.js +0 -1
  1110. package/dist/ezui/p-8bf077ea.entry.js.gz +0 -0
  1111. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  1112. package/dist/ezui/p-94deb71e.entry.js +0 -1
  1113. package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
  1114. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  1115. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  1116. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  1117. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  1118. package/dist/ezui/p-a61fdd20.js +0 -1
  1119. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  1120. package/dist/ezui/p-a80b1287.entry.js +0 -1
  1121. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  1122. package/dist/ezui/p-a80e6b24.entry.js.gz +0 -0
  1123. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  1124. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  1125. package/dist/ezui/p-baec56c9.js.gz +0 -0
  1126. package/dist/ezui/p-bbeafaa1.entry.js +0 -1
  1127. package/dist/ezui/p-bbeafaa1.entry.js.gz +0 -0
  1128. package/dist/ezui/p-cde41310.entry.js +0 -1
  1129. package/dist/ezui/p-cde41310.entry.js.gz +0 -0
  1130. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  1131. package/dist/ezui/p-d0e354df.js +0 -3
  1132. package/dist/ezui/p-d0e354df.js.gz +0 -0
  1133. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  1134. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  1135. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  1136. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  1137. package/dist/ezui/p-de862af4.entry.js +0 -1
  1138. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  1139. package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
  1140. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  1141. package/dist/ezui/p-f00c9dc2.entry.js +0 -1
  1142. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  1143. package/dist/ezui/p-f181aea8.entry.js +0 -1
  1144. package/dist/ezui/p-f181aea8.entry.js.gz +0 -0
  1145. package/dist/ezui/p-f7b8d2b9.entry.js +0 -1
  1146. package/dist/ezui/p-f7b8d2b9.entry.js.gz +0 -0
  1147. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{r as e,c as n,h as t,H as i,g as a}from"./p-23a36bb6.js";import{StringUtils as o,ElementIDUtils as d}from"@sankhyalabs/core";const r=class{constructor(t){e(this,t),this.ezClick=n(this,"ezClick",7),this.item=void 0,this.enableKey=!0,this.compacted=!1}componentWillRender(){this.createDetailList()}componentDidLoad(){var e,n;const t={id:o.toCamelCase((null===(e=this.item)||void 0===e?void 0:e.key)||(null===(n=this.item)||void 0===n?void 0:n.title)||"")};d.addIDInfo(this._element,null,t)}createDetailList(){var e,n,t;this._details={detailsLeft:[],detailsRight:[]};let i=0;if(null===(e=this.item)||void 0===e?void 0:e.details)for(const e in this.item.details)i<3?this._details.detailsLeft.push({label:e,value:null===(n=this.item.details[e])||void 0===n?void 0:n.toString()}):this._details.detailsRight.push({label:e,value:null===(t=this.item.details[e])||void 0===t?void 0:t.toString()}),i++}buildDetailContentTitle(e){var n,t;if(null!=(null==e?void 0:e.label)||null!=(null==e?void 0:e.value))return`${null===(n=o.replaceAccentuatedCharsHtmlEntities(null==e?void 0:e.label))||void 0===n?void 0:n.replace(/<[^>]*>/g,"")}: ${null===(t=o.replaceAccentuatedCharsHtmlEntities(null==e?void 0:e.value))||void 0===t?void 0:t.replace(/<[^>]*>/g,"")}`}buildDetailContent(e){return t("div",{class:"card-item__detail "+(this.compacted?"":"card-item__detail-default"),title:this.buildDetailContentTitle(e)},t("label",{class:"card-item__detail-label "+(this.compacted?"card-item__detail-label-compacted":"")},`${e.label}: `)," ",t("label",{class:"card-item__detail-value "+(this.compacted?"card-item__detail-value-compacted":""),innerHTML:e.value}))}render(){return t(i,null,this.item&&t("div",{class:`card-item ${this.compacted?"card-item__compacted":"card-item__expanded"} `,onClick:()=>{this.ezClick.emit(this.item)}},t("div",{class:"ez-row card-item__content"},t("div",{class:"ez-col ez-col--sd-11 card-item__details"},t("label",{class:"card-item__title "+(this.compacted?"card-item__title-compacted":"")},this.enableKey&&t("span",{class:"card-item__key",innerHTML:this.item.key}),t("span",{innerHTML:this.item.title})),t("div",{class:this.compacted?"card-item__details-container_compacted":"card-item__details-container_default"},t("div",{class:"card-item__details-container__left "+(this.compacted?"card-item__details-container__left-compacted":"")},this._details.detailsLeft.map((e=>this.buildDetailContent(e)))),t("div",{class:"card-item__details-container__right "+(this.compacted?"card-item__details-container__right-compacted":"")},this._details.detailsRight.map((e=>this.buildDetailContent(e)))))),t("div",{class:"ez-col ez-col--sd-1 card-item__details-slot"},t("slot",{name:"rightSlot"})))))}get _element(){return a(this)}};r.style=":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--font-weight--semi-bold, 600);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--font-weight--semi-bold, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define a cor da fonte do valor do detalhe do componente.*/\n --ez-card-item__detail-value--color: var(--color--petroleum-500, #404E65);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: 0.95;\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item__detail-value--color);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--2xs) var(--space--small);\n}\n\n.card-item__detail-label-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__detail-value-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__title-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__details-container__left-compacted{\n width: 100%;\n}\n\n.card-item__details-container__right-compacted {\n width: 100%;\n}\n\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";export{r as ez_card_item}
Binary file
@@ -0,0 +1 @@
1
+ import{h as e,r as a,c as l,g as n,H as i}from"./p-23a36bb6.js";import{ObjectUtils as o,StringUtils as t,UserInterface as r,ElementIDUtils as s}from"@sankhyalabs/core";import{F as d}from"./p-47e4a8ce.js";import{C as c}from"./p-b853763b.js";import{g as m}from"./p-3b7d9f30.js";function u(a,l,n,i,o,t){return e("div",{class:"ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium ez-size-height--full "+((null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?"ez-margin-top--small":"")},e("ez-check",{enabled:!n,label:l,mode:o?c.SWITCH:c.REGULAR,"data-field-name":a,"data-context-name":i,key:a}))}function v(a,l,n,i,o,t,r,s,c,m){var u;return e("div",{class:"ez-col ez-col--sd-12"},(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-number-input",{class:"ez-input__no-margin",enabled:!n,label:l,precision:i,prettyPrecision:o,"data-field-name":a,"data-context-name":t,key:a,canShowError:r,size:null!==(u=null==m?void 0:m.size)&&void 0!==u?u:"small",required:c}):e("ez-number-input",{class:"ez-input__no-margin",enabled:!n,label:l,precision:i,prettyPrecision:o,"data-field-name":a,"data-context-name":t,key:a,canShowError:r}))}const p=({name:a,label:l,readOnly:n,contextName:i,canShowError:o,props:t,required:r},s)=>{var c;return e("div",{class:"ez-col ez-col--sd-12"},(null==s?void 0:s.formLayout)===d.CLASSIC_CASCADE||(null==s?void 0:s.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,mask:null==t?void 0:t.mask,"clean-value-mask":null==t?void 0:t.cleanValueMask,size:null!==(c=null==s?void 0:s.size)&&void 0!==c?c:"small",required:r}):e("ez-text-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,canShowError:o,mask:null==t?void 0:t.mask,"clean-value-mask":null==t?void 0:t.cleanValueMask}))},h=new Map;h.set(r.CHECKBOX,((e,a)=>u(e.name,e.label,e.readOnly,e.contextName,!1,a))),h.set(r.SWITCH,((e,a)=>u(e.name,e.label,e.readOnly,e.contextName,!0,a))),h.set(r.OPTIONSELECTOR,(({name:a,label:l,readOnly:n,required:i,props:o,contextName:t,canShowError:r},s)=>{var c;const m=(null==s?void 0:s.formLayout)===d.CLASSIC_CASCADE||(null==s?void 0:s.formLayout)===d.CLASSIC_SIDE_BY_SIDE,u=null==o?void 0:o.options;let v;if("string"==typeof u){const e=JSON.parse(u);v=Object.keys(e).map((a=>({value:a,label:e[a]})))}else v=u;return e("div",{class:"ez-col ez-col--sd-12"},m?e("ez-classic-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":t,key:a,options:v,size:null!==(c=null==s?void 0:s.size)&&void 0!==c?c:"small",required:i}):e("ez-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":t,key:a,options:v,canShowError:r}))})),h.set(r.DATE,(({name:a,label:l,readOnly:n,canShowError:i,required:o},t)=>{var r;return e("div",{class:"ez-col ez-col--sd-12"},(null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-date-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,size:null!==(r=null==t?void 0:t.size)&&void 0!==r?r:"small",required:o}):e("ez-date-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i}))})),h.set(r.TIME,(({name:a,label:l,readOnly:n,canShowError:i,props:o,required:t},r)=>{var s,c,m;return e("div",{class:"ez-col ez-col--sd-12"},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,"show-seconds":null!==(s=null==o?void 0:o.showSeconds)&&void 0!==s&&s,size:null!==(c=null==r?void 0:r.size)&&void 0!==c?c:"small",required:t}):e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,"show-seconds":null!==(m=null==o?void 0:o.showSeconds)&&void 0!==m&&m}))})),h.set(r.ELAPSEDTIME,(({name:a,label:l,readOnly:n,canShowError:i,required:o},t)=>{var r;return e("div",{class:"ez-col ez-col--sd-12"},(null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,showSeconds:!0,size:null!==(r=null==t?void 0:t.size)&&void 0!==r?r:"small",required:o}):e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,showSeconds:!0}))})),h.set(r.DATETIME,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,required:t},r)=>{var s;return e("div",{class:"ez-col ez-col--sd-12"},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,size:null!==(s=null==r?void 0:r.size)&&void 0!==s?s:"small",required:t}):e("ez-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o}))})),h.set(r.FILE,(({name:a,label:l,readOnly:n,contextName:i,props:t})=>{const r=o.removeEmptyValues({subTitle:t.subTitle,requestHeaders:Object.assign(Object.assign({},t.STORAGESTRATEGY&&{STORAGESTRATEGY:t.STORAGESTRATEGY}),t.INTERNAL_FILENAME&&{INTERNAL_FILENAME:t.INTERNAL_FILENAME})});return e("div",{class:"ez-col ez-col--sd-12"},e("ez-upload",Object.assign({enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a},r)))})),h.set(r.DECIMALNUMBER,(({name:e,label:a,readOnly:l,props:n,contextName:i,canShowError:o,required:t},r)=>{var s,d;const c=Number(null!==(s=null==n?void 0:n.precision)&&void 0!==s?s:2);return v(e,a,l,c,Number(null!==(d=null==n?void 0:n.prettyPrecision)&&void 0!==d?d:c),i,o,0,t,r)})),h.set(r.INTEGERNUMBER,(({name:e,label:a,readOnly:l,contextName:n,canShowError:i,props:o,required:t},r)=>v(e,a,l,0,0,n,i,0,t,r))),h.set(r.SEARCH,(({name:a,label:l,readOnly:n,required:i,contextName:o,canShowError:r,optionLoader:s,props:c},m)=>{var u,v,p;const h=!t.isEmpty(null==c?void 0:c.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":o,key:a,canShowError:r,optionLoader:s,ignoreLimitCharsToSearch:null!==(u=null==c?void 0:c.ignoreLimitCharsToSearch)&&void 0!==u&&u,hideDescriptionInput:!h,size:null!==(v=null==m?void 0:m.size)&&void 0!==v?v:"small",required:i}):e("ez-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":o,key:a,canShowError:r,optionLoader:s,ignoreLimitCharsToSearch:null!==(p=null==c?void 0:c.ignoreLimitCharsToSearch)&&void 0!==p&&p,hideDescriptionInput:!h}))})),h.set(r.SEARCHPLUS,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,optionLoader:r,props:s,required:c},m)=>{var u;const v=(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE,p=!t.isEmpty(null==s?void 0:s.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},v?e("ez-classic-search-plus",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,optionLoader:r,hideDescriptionInput:!p,size:null!==(u=null==m?void 0:m.size)&&void 0!==u?u:"small",required:c}):e("ez-search-plus",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,optionLoader:r,hideDescriptionInput:!p}))})),h.set(r.LONGTEXT,(({name:a,label:l,readOnly:n,rows:i,contextName:o,canShowError:t},r)=>e("div",{class:"ez-col ez-col--sd-12",key:a},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-text-area",{enabled:!n,label:l,"data-field-name":a,"data-context-name":o,rows:i}):e("ez-text-area",{enabled:!n,label:l,"data-field-name":a,"data-context-name":o,rows:i,canShowError:t})))),h.set(r.HTML,(({name:a,label:l,readOnly:n,contextName:i,rows:o,canShowError:t})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-rich-text",{key:a,enabled:!n,label:l,"data-field-name":a,"data-context-name":i,rows:o,canShowError:t})))),h.set(r.IMAGE,(({name:a,label:l,readOnly:n,contextName:i,props:o})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-image-input",Object.assign({enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,maxFileSize:1/0},o))))),h.set(r.MULTISELECTOR,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,props:t})=>{var r,s,d,c;const m=null==t?void 0:t.options;let u;if("string"==typeof m){const e=JSON.parse(m);u=Object.keys(e).map((a=>({value:a,label:e[a],check:!1})))}else u=m;const v=null!==(r=null==t?void 0:t.useOptions)&&void 0!==r?r:null!=u&&null==(null==t?void 0:t.dataSource);return e("div",{class:"ez-col ez-col--sd-12"},e("ez-multi-select-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,canShowError:o,options:u,dataSource:null==t?void 0:t.dataSource,columnName:null!==(s=null==t?void 0:t.columnName)&&void 0!==s?s:a,useOptions:v,isTextSearch:null!==(d=null==t?void 0:t.isTextSearch)&&void 0!==d&&d,orderSelectedFirst:null!==(c=null==t?void 0:t.orderSelectedFirst)&&void 0!==c&&c}))}));const z=(e,a=new Map,l)=>{const n=m(),i=(null==l?void 0:l.formLayout)===d.CLASSIC_CASCADE||(null==l?void 0:l.formLayout)===d.CLASSIC_SIDE_BY_SIDE,o=a.get(e.userInterface)||h.get(e.userInterface)||p,t=!i&&e.required?`${e.label}${n("app.requiredInfo")}`:e.label,r=o(Object.assign(Object.assign({},e),{label:t}),l);return r.l["data-form-item"]=e.name,r};class w{constructor(e){this.elem=e}addRightElement(e){this.removeRightElement(),e.classList.add("ez-padding-left--small","ez-margin-top--auto","ez-margin-bottom--extra-small"),e.setAttribute("data-custom-item","true"),this.elem.classList.add("ez-col--nowrap"),this.elem.appendChild(e)}removeRightElement(){Array.from(this.elem.querySelectorAll('[data-custom-item="true"]')).forEach((e=>e.remove()))}get fieldName(){return this.elem.getAttribute("data-form-item")}}class b{constructor(e,a){this.items=new Map,this.formId=a,e.forEach((e=>{const a=new w(e);this.items.set(a.fieldName,a)}))}getItem(e){return this.items.get(e)}get formName(){return this.formId}}const f=class{constructor(e){a(this,e),this.ezContentReady=l(this,"ezContentReady",7),this.formItemsReady=l(this,"formItemsReady",7),this.MAIN_GROUP_NAME="__main",this._customEditors=new Map,this.fields=void 0,this.selectedRecord=void 0,this.singleColumn=!1,this.formLayout=void 0,this.customUiBuilders=new Map}async showUp(){this.singleColumn||this._element.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(e,a,l){const n=new Map(this._customEditors);n.set(e,{customEditor:a,detailContext:l}),this._customEditors=n}async setFieldProp(e,a,l){const n=this.fields.map((n=>(n.name===e&&null!=l&&(n.props=n.props||{},n.props[a]=l),n)));this.fields=[...n]}getGroupByField(e){var a,l;const n=null!==(a=e.group)&&void 0!==a?a:null===(l=e.props)||void 0===l?void 0:l.UITabName;if(n&&n!==this.MAIN_GROUP_NAME)return n}groupFields(e){const a=new Map;return e.forEach((e=>{const l=this.getGroupByField(e);if(l){let n=a.get(l);null==n&&(n=[],a.set(l,n)),n.push(e)}else a.set(e.name,e)})),a}componentDidRender(){this._formElements=Array.from(this._element.querySelectorAll("[data-field-name]")),this.ezContentReady.emit(this._formElements);const e=new b(Array.from(this._element.querySelectorAll("[data-form-item]")));this.formItemsReady.emit(e)}isItemFullWidth(e){return[r.FILE,r.LONGTEXT,r.HTML].includes(e)}buildFormItemElement(a,l=""){var n;this.isItemFullWidth(a.userInterface)&&(l+=` input-full_width ${this.singleColumn&&"single-column"}`);const i={formLayout:this.formLayout,size:"xsmall"};if(this._customEditors.has(a.name)){const o=null===(n=this._formElements.map((e=>({name:e.dataset.fieldName,value:e.value}))).find((e=>e.name===a.name)))||void 0===n?void 0:n.value,t=this._customEditors.get(a.name).customEditor;return e("div",{class:l},e("ez-custom-form-input",{"data-field-name":a.name,customEditor:t,formViewField:a,builderFallback:e=>z(e,this.customUiBuilders,i),value:o,selectedRecord:this.selectedRecord}))}return e("div",{class:l},z(a,this.customUiBuilders,i))}render(){if(s.addIDInfoIfNotExists(this._element,"ezFormView"),null==this.fields)return;let a=[],l=Array.from(this.groupFields(this.fields).entries()).map((([l,n])=>{if(Array.isArray(n))return e("ez-collapsible-box",{id:`group-${l}`,label:l,"header-size":"large",key:l},e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n.map((e=>this.buildFormItemElement(e)))));a.push(n)})),n=a.map((e=>this.buildFormItemElement(e))),o=e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n);return e(i,null,o,l)}get _element(){return n(this)}};f.style=".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:250px;--ez-form-view__long-item--min-width:530px;--ez-form-view__item--max-width:512px;--ez-form-view__long-item--max-width:100%;--ez-form-view__item--gap:var(--space--14, 14px);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--gap);padding-inline:var(--ez-form-view__item--padding);width:100%}.form-view__content--single-column.sc-ez-form-view{grid-template-columns:1fr}.form-view__content--single-column.sc-ez-form-view>div.sc-ez-form-view:not(.input-full_width){width:clamp(var(--ez-form-view__item--min-width), 70%, var(--ez-form-view__item--max-width))}.input-full_width.sc-ez-form-view{grid-column:1/-1;width:clamp(var(--ez-form-view__long-item--min-width), 100%, var(--ez-form-view__long-item--max-width))}.single-column.sc-ez-form-view{--ez-form-view__long-item--max-width:1024px}*.sc-ez-form-view:has(*)+ez-collapsible-box.sc-ez-form-view{margin-top:var(--space--16, 16px)}";export{f as ez_form_view}
Binary file
Binary file
Binary file
@@ -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
+ 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
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as h,g as n}from"./p-23a36bb6.js";import{StringUtils as r}from"@sankhyalabs/core";var e=function(t,i){return Number(t.slice(0,-1*i.length))},o=function(t){return t.endsWith("px")?{value:t,type:"px",numeric:e(t,"px")}:t.endsWith("fr")?{value:t,type:"fr",numeric:e(t,"fr")}:t.endsWith("%")?{value:t,type:"%",numeric:e(t,"%")}:"auto"===t?{value:t,type:"auto"}:null},u=function(t){return t.split(" ").map(o)},c=function(t,i,s){return i.concat(s).map((function(i){return i.style[t]})).filter((function(t){return void 0!==t&&""!==t}))},a=function(t){for(var i=0;i<t.length;i++)if(t[i].numeric>0)return i;return null},l=function(){return!1},d=function(t,i,s){t.style[i]=s},f=function(t,i,s){var h=t[i];return void 0!==h?h:s};function m(t){var i;return(i=[]).concat.apply(i,Array.from(t.ownerDocument.styleSheets).map((function(t){var i=[];try{i=Array.from(t.cssRules||[])}catch(t){}return i}))).filter((function(i){var s=!1;try{s=t.matches(i.selectorText)}catch(t){}return s}))}var w=function(t,i,s){this.direction=t,this.element=i.element,this.track=i.track,"column"===t?(this.gridTemplateProp="grid-template-columns",this.gridGapProp="grid-column-gap",this.cursor=f(s,"columnCursor",f(s,"cursor","col-resize")),this.snapOffset=f(s,"columnSnapOffset",f(s,"snapOffset",30)),this.dragInterval=f(s,"columnDragInterval",f(s,"dragInterval",1)),this.clientAxis="clientX",this.optionStyle=f(s,"gridTemplateColumns")):"row"===t&&(this.gridTemplateProp="grid-template-rows",this.gridGapProp="grid-row-gap",this.cursor=f(s,"rowCursor",f(s,"cursor","row-resize")),this.snapOffset=f(s,"rowSnapOffset",f(s,"snapOffset",30)),this.dragInterval=f(s,"rowDragInterval",f(s,"dragInterval",1)),this.clientAxis="clientY",this.optionStyle=f(s,"gridTemplateRows")),this.onDragStart=f(s,"onDragStart",l),this.onDragEnd=f(s,"onDragEnd",l),this.onDrag=f(s,"onDrag",l),this.writeStyle=f(s,"writeStyle",d),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=i.minSizeStart,this.minSizeEnd=i.minSizeEnd,i.element&&(this.element.addEventListener("mousedown",this.startDragging),this.element.addEventListener("touchstart",this.startDragging))};w.prototype.getDimensions=function(){var t=this.grid.getBoundingClientRect(),i=t.width,s=t.height,h=t.bottom,n=t.left,r=t.right;"column"===this.direction?(this.start=t.top,this.end=h,this.size=s):"row"===this.direction&&(this.start=n,this.end=r,this.size=i)},w.prototype.getSizeAtTrack=function(t,i){return function(t,i,s,h){return void 0===s&&(s=0),void 0===h&&(h=!1),i.slice(0,h?t+1:t).reduce((function(t,i){return t+i.numeric}),0)+(s?t*s:0)}(t,this.computedPixels,this.computedGapPixels,i)},w.prototype.getSizeOfTrack=function(t){return this.computedPixels[t].numeric},w.prototype.getRawTracks=function(){var t=c(this.gridTemplateProp,[this.grid],m(this.grid));if(!t.length){if(this.optionStyle)return this.optionStyle;throw Error("Unable to determine grid template tracks from styles.")}return t[0]},w.prototype.getGap=function(){var t=c(this.gridGapProp,[this.grid],m(this.grid));return t.length?t[0]:null},w.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},w.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},w.prototype.setTracks=function(t){this.tracks=t.split(" "),this.trackValues=u(t)},w.prototype.setComputedTracks=function(t){this.computedTracks=t.split(" "),this.computedPixels=u(t)},w.prototype.setGap=function(t){this.gap=t},w.prototype.setComputedGap=function(t){var i;this.computedGap=t,this.computedGapPixels=((i=this.computedGap).endsWith("px")?Number(i.slice(0,-1*"px".length)):null)||0},w.prototype.getMousePosition=function(t){return"touches"in t?t.touches[0][this.clientAxis]:t[this.clientAxis]},w.prototype.startDragging=function(t){if(!("button"in t)||0===t.button){t.preventDefault(),this.grid=this.element?this.element.parentNode:t.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var i=this.trackValues.filter((function(t){return"%"===t.type})),s=this.trackValues.filter((function(t){return"fr"===t.type}));if(this.totalFrs=s.length,this.totalFrs){var h=a(s);null!==h&&(this.frToPixels=this.computedPixels[h].numeric/s[h].numeric)}if(i.length){var n=a(i);null!==n&&(this.percentageToPixels=this.computedPixels[n].numeric/i[n].numeric)}var r=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(t)-r,this.aTrack=this.track-1,!(this.track<this.tracks.length-1))throw Error("Invalid track index: "+this.track+". Track must be between two other tracks and only "+this.tracks.length+" tracks were found.");this.bTrack=this.track+1,this.aTrackStart=this.getSizeAtTrack(this.aTrack,!1)+this.start,this.bTrackEnd=this.getSizeAtTrack(this.bTrack,!0)+this.start,this.dragging=!0,window.addEventListener("mouseup",this.stopDragging),window.addEventListener("touchend",this.stopDragging),window.addEventListener("touchcancel",this.stopDragging),window.addEventListener("mousemove",this.drag),window.addEventListener("touchmove",this.drag),this.grid.addEventListener("selectstart",l),this.grid.addEventListener("dragstart",l),this.grid.style.userSelect="none",this.grid.style.webkitUserSelect="none",this.grid.style.MozUserSelect="none",this.grid.style.pointerEvents="none",this.grid.style.cursor=this.cursor,window.document.body.style.cursor=this.cursor,this.onDragStart(this.direction,this.track)}},w.prototype.stopDragging=function(){this.dragging=!1,this.cleanup(),this.onDragEnd(this.direction,this.track),this.needsDestroy&&(this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),this.destroyCb(),this.needsDestroy=!1,this.destroyCb=null)},w.prototype.drag=function(t){var i=this.getMousePosition(t),s=this.getSizeOfTrack(this.track),h=this.aTrackStart+this.minSizeStart+this.dragStartOffset+this.computedGapPixels,n=this.bTrackEnd-this.minSizeEnd-this.computedGapPixels-(s-this.dragStartOffset);i<h+this.snapOffset&&(i=h),i>n-this.snapOffset&&(i=n),i<h?i=h:i>n&&(i=n);var r=i-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,e=this.bTrackEnd-i+this.dragStartOffset-s-this.computedGapPixels;if(this.dragInterval>1){var o=Math.round(r/this.dragInterval)*this.dragInterval;e-=o-r,r=o}r<this.minSizeStart&&(r=this.minSizeStart),e<this.minSizeEnd&&(e=this.minSizeEnd),"px"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=r+"px":"fr"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=1===this.totalFrs?"1fr":r/this.frToPixels+"fr":"%"===this.trackValues[this.aTrack].type&&(this.tracks[this.aTrack]=r/this.percentageToPixels+"%"),"px"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=e+"px":"fr"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=1===this.totalFrs?"1fr":e/this.frToPixels+"fr":"%"===this.trackValues[this.bTrack].type&&(this.tracks[this.bTrack]=e/this.percentageToPixels+"%");var u=this.tracks.join(" ");this.writeStyle(this.grid,this.gridTemplateProp,u),this.onDrag(this.direction,this.track,u)},w.prototype.cleanup=function(){window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("touchend",this.stopDragging),window.removeEventListener("touchcancel",this.stopDragging),window.removeEventListener("mousemove",this.drag),window.removeEventListener("touchmove",this.drag),this.grid&&(this.grid.removeEventListener("selectstart",l),this.grid.removeEventListener("dragstart",l),this.grid.style.userSelect="",this.grid.style.webkitUserSelect="",this.grid.style.MozUserSelect="",this.grid.style.pointerEvents="",this.grid.style.cursor=""),window.document.body.style.cursor=""},w.prototype.destroy=function(t,i){void 0===t&&(t=!0),t||!1===this.dragging?(this.cleanup(),this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),i&&i()):(this.needsDestroy=!0,i&&(this.destroyCb=i))};var v=function(t,i,s){return i in t?t[i]:s},p=function(t,i){return function(s){if(s.track<1)throw Error("Invalid track index: "+s.track+". Track must be between two other tracks.");var h="column"===t?i.columnMinSizes||{}:i.rowMinSizes||{},n="column"===t?"columnMinSize":"rowMinSize";return new w(t,Object.assign({},{minSizeStart:v(h,s.track-1,f(i,n,f(i,"minSize",0))),minSizeEnd:v(h,s.track+1,f(i,n,f(i,"minSize",0)))},s),i)}},g=function(t){var i=this;this.columnGutters={},this.rowGutters={},this.options=Object.assign({},{columnGutters:t.columnGutters||[],rowGutters:t.rowGutters||[],columnMinSizes:t.columnMinSizes||{},rowMinSizes:t.rowMinSizes||{}},t),this.options.columnGutters.forEach((function(t){i.columnGutters[t.track]=p("column",i.options)(t)})),this.options.rowGutters.forEach((function(t){i.rowGutters[t.track]=p("row",i.options)(t)}))};g.prototype.addColumnGutter=function(t,i){this.columnGutters[i]&&this.columnGutters[i].destroy(),this.columnGutters[i]=p("column",this.options)({element:t,track:i})},g.prototype.addRowGutter=function(t,i){this.rowGutters[i]&&this.rowGutters[i].destroy(),this.rowGutters[i]=p("row",this.options)({element:t,track:i})},g.prototype.removeColumnGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.columnGutters[t]&&this.columnGutters[t].destroy(i,(function(){delete s.columnGutters[t]}))},g.prototype.removeRowGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.rowGutters[t]&&this.rowGutters[t].destroy(i,(function(){delete s.rowGutters[t]}))},g.prototype.handleDragStart=function(t,i,s){"column"===i?(this.columnGutters[s]&&this.columnGutters[s].destroy(),this.columnGutters[s]=p("column",this.options)({track:s}),this.columnGutters[s].startDragging(t)):"row"===i&&(this.rowGutters[s]&&this.rowGutters[s].destroy(),this.rowGutters[s]=p("row",this.options)({track:s}),this.rowGutters[s].startDragging(t))},g.prototype.destroy=function(t){var i=this;void 0===t&&(t=!0),Object.keys(this.columnGutters).forEach((function(s){return i.columnGutters[s].destroy(t,(function(){delete i.columnGutters[s]}))})),Object.keys(this.rowGutters).forEach((function(s){return i.rowGutters[s].destroy(t,(function(){delete i.rowGutters[s]}))}))};const b=class{constructor(s){t(this,s),this.resizeEnd=i(this,"resizeEnd",7),this._items=[],this._buildInProgress=!1,this.direction="column",this.anchorToExpand=!1,this.structural=!1}rebuildLayout(){Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach((t=>{t.remove()})),Array.from(this._element.getElementsByTagName("EzSplitPanel")).reverse().forEach((t=>{t.rebuildLayout()})),this.buildItems(),this.initSplit()}buildItems(){this._panelID=r.generateUUID(),this._element.dataset.panelId=this._panelID,this._element.dataset.uniqueId="EzSplitPanel";let t=Array.from(this._element.children);this._items=t.filter((t=>{var i;return"EZ-SPLIT-ITEM"===(null===(i=t.tagName)||void 0===i?void 0:i.toUpperCase())}));let i=1;this._items.forEach(((t,s)=>{t.dataset.trackNumber=i.toString(),this._items.length>1&&s!=this._items.length-1&&this.addItemGutter(t),i+=2}))}componentDidLoad(){this.buildItems(),this.initSplit(),this._mutationObserver=new MutationObserver((t=>{for(const i of t)if("childList"===i.type&&!this._buildInProgress){this._buildInProgress=!0,window.requestAnimationFrame((()=>{this.rebuildLayout()})),window.requestAnimationFrame((()=>this._buildInProgress=!1));break}})),this._mutationObserver.observe(this._element,{childList:!0,subtree:!1})}disconnectedCallback(){null!=this._mutationObserver&&this._mutationObserver.disconnect()}initSplit(){var t;this._items.length&&(this._element.style["row"===this.direction?"grid-template-rows":"grid-template-columns"]=this.getGridTemplate(),this.removeGuttersMargin(),t=this.getGutters(),new g(t))}handlePanelDragEnd(){const t=this._items.map((t=>({id:t.id,height:t.clientHeight,width:t.clientWidth})));this.resizeEnd.emit({panelId:this._element.id,items:t})}getGutters(){const t={columnGutters:[],rowGutters:[],onDragEnd:()=>this.handlePanelDragEnd()};if(!this._items.length)return t;const i="row"===this.direction?"rowGutters":"columnGutters";return this._items.forEach(((s,h)=>{if(h===this._items.length-1)return;let n=s.dataset.trackNumber;h===this._items.length-1&&(n=this._items.length.toString()),t[i].push({track:Number(n),element:this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${s.dataset.trackNumber}"]`)})})),t}addItemGutter(t){const i=document.createElement("div");i.classList.add("ez-split-gutter"),i.classList.add(this.direction),i.classList.add("row"===this.direction?"ez-split-gutter__row":"ez-split-gutter__column"),i.dataset.itemTrack=`${t.dataset.trackNumber}`,i.dataset.trackNumber=(Number(t.dataset.trackNumber)+1).toString(),t.parentNode.insertBefore(i,t.nextSibling)}getElementStyle(){return{display:"grid",height:"100%",width:"100%",position:this.anchorToExpand?"relative":"unset"}}calcFreeSpacePercentage(){const t=this._items.reduce(((t,i)=>{var s;return t+((null===(s=i.size)||void 0===s?void 0:s.includes("%"))?Number(i.size.replace("%","")):0)}),0),i=this._items.filter((t=>void 0===t.size)).length;return i&&t?(100-t)/i:null}getGridTemplate(){let t="";const i=this.calcFreeSpacePercentage();return this._items.forEach(((s,h)=>{let n=s.size||"1fr";!s.size&&i&&(n=`${i}%`),t+=h!==this._items.length-1?0!==h?` ${n} 5px`:`${n} 5px`:` ${n}`})),t}removeGuttersMargin(){this._items.length<=1||("column"!=this.direction?"row"!=this.direction||this.removeGuttersMarginRow():this.removeGuttersMarginColumn())}removeGuttersMarginColumn(){this._items.forEach(((t,i)=>{0!=i?i!==this._items.length-1?(t.style.marginRight="0",t.style.marginLeft="0"):t.style.marginLeft="0":t.style.marginRight="0"}))}removeGuttersMarginRow(){this._items.length<=1||this._items.forEach(((t,i)=>{0!=i?i!==this._items.length-1?(t.style.marginBottom="0",t.style.marginTop="0"):t.style.marginTop="0":t.style.marginBottom="0"}))}render(){return s(h,{class:this.structural?"structural__panel":"content__panel",style:this.getElementStyle()})}get _element(){return n(this)}};b.style=".ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}.ez-split-gutter__row{cursor:ns-resize}.ez-split-gutter__column{cursor:ew-resize}.structural__panel{background:none;box-shadow:none;outline:none;padding:0;margin:0;border:0}";export{b as ez_split_panel}
1
+ import{r as t,c as i,h as s,H as h,g as r}from"./p-23a36bb6.js";import{StringUtils as e}from"@sankhyalabs/core";var n=function(t,i){return Number(t.slice(0,-1*i.length))},o=function(t){return t.endsWith("px")?{value:t,type:"px",numeric:n(t,"px")}:t.endsWith("fr")?{value:t,type:"fr",numeric:n(t,"fr")}:t.endsWith("%")?{value:t,type:"%",numeric:n(t,"%")}:"auto"===t?{value:t,type:"auto"}:null},u=function(t){return t.split(" ").map(o)},a=function(t,i,s){return i.concat(s).map((function(i){return i.style[t]})).filter((function(t){return void 0!==t&&""!==t}))},c=function(t){for(var i=0;i<t.length;i++)if(t[i].numeric>0)return i;return null},l=function(){return!1},d=function(t,i,s){t.style[i]=s},f=function(t,i,s){var h=t[i];return void 0!==h?h:s};function p(t){var i;return(i=[]).concat.apply(i,Array.from(t.ownerDocument.styleSheets).map((function(t){var i=[];try{i=Array.from(t.cssRules||[])}catch(t){}return i}))).filter((function(i){var s=!1;try{s=t.matches(i.selectorText)}catch(t){}return s}))}var w=function(t,i,s){this.direction=t,this.element=i.element,this.track=i.track,"column"===t?(this.gridTemplateProp="grid-template-columns",this.gridGapProp="grid-column-gap",this.cursor=f(s,"columnCursor",f(s,"cursor","col-resize")),this.snapOffset=f(s,"columnSnapOffset",f(s,"snapOffset",30)),this.dragInterval=f(s,"columnDragInterval",f(s,"dragInterval",1)),this.clientAxis="clientX",this.optionStyle=f(s,"gridTemplateColumns")):"row"===t&&(this.gridTemplateProp="grid-template-rows",this.gridGapProp="grid-row-gap",this.cursor=f(s,"rowCursor",f(s,"cursor","row-resize")),this.snapOffset=f(s,"rowSnapOffset",f(s,"snapOffset",30)),this.dragInterval=f(s,"rowDragInterval",f(s,"dragInterval",1)),this.clientAxis="clientY",this.optionStyle=f(s,"gridTemplateRows")),this.onDragStart=f(s,"onDragStart",l),this.onDragEnd=f(s,"onDragEnd",l),this.onDrag=f(s,"onDrag",l),this.writeStyle=f(s,"writeStyle",d),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=i.minSizeStart,this.minSizeEnd=i.minSizeEnd,i.element&&(this.element.addEventListener("mousedown",this.startDragging),this.element.addEventListener("touchstart",this.startDragging))};w.prototype.getDimensions=function(){var t=this.grid.getBoundingClientRect(),i=t.width,s=t.height,h=t.bottom,r=t.left,e=t.right;"column"===this.direction?(this.start=t.top,this.end=h,this.size=s):"row"===this.direction&&(this.start=r,this.end=e,this.size=i)},w.prototype.getSizeAtTrack=function(t,i){return function(t,i,s,h){return void 0===s&&(s=0),void 0===h&&(h=!1),i.slice(0,h?t+1:t).reduce((function(t,i){return t+i.numeric}),0)+(s?t*s:0)}(t,this.computedPixels,this.computedGapPixels,i)},w.prototype.getSizeOfTrack=function(t){return this.computedPixels[t].numeric},w.prototype.getRawTracks=function(){var t=a(this.gridTemplateProp,[this.grid],p(this.grid));if(!t.length){if(this.optionStyle)return this.optionStyle;throw Error("Unable to determine grid template tracks from styles.")}return t[0]},w.prototype.getGap=function(){var t=a(this.gridGapProp,[this.grid],p(this.grid));return t.length?t[0]:null},w.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},w.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},w.prototype.setTracks=function(t){this.tracks=t.split(" "),this.trackValues=u(t)},w.prototype.setComputedTracks=function(t){this.computedTracks=t.split(" "),this.computedPixels=u(t)},w.prototype.setGap=function(t){this.gap=t},w.prototype.setComputedGap=function(t){var i;this.computedGap=t,this.computedGapPixels=((i=this.computedGap).endsWith("px")?Number(i.slice(0,-1*"px".length)):null)||0},w.prototype.getMousePosition=function(t){return"touches"in t?t.touches[0][this.clientAxis]:t[this.clientAxis]},w.prototype.startDragging=function(t){if(!("button"in t)||0===t.button){t.preventDefault(),this.grid=this.element?this.element.parentNode:t.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var i=this.trackValues.filter((function(t){return"%"===t.type})),s=this.trackValues.filter((function(t){return"fr"===t.type}));if(this.totalFrs=s.length,this.totalFrs){var h=c(s);null!==h&&(this.frToPixels=this.computedPixels[h].numeric/s[h].numeric)}if(i.length){var r=c(i);null!==r&&(this.percentageToPixels=this.computedPixels[r].numeric/i[r].numeric)}var e=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(t)-e,this.aTrack=this.track-1,!(this.track<this.tracks.length-1))throw Error("Invalid track index: "+this.track+". Track must be between two other tracks and only "+this.tracks.length+" tracks were found.");this.bTrack=this.track+1,this.aTrackStart=this.getSizeAtTrack(this.aTrack,!1)+this.start,this.bTrackEnd=this.getSizeAtTrack(this.bTrack,!0)+this.start,this.dragging=!0,window.addEventListener("mouseup",this.stopDragging),window.addEventListener("touchend",this.stopDragging),window.addEventListener("touchcancel",this.stopDragging),window.addEventListener("mousemove",this.drag),window.addEventListener("touchmove",this.drag),this.grid.addEventListener("selectstart",l),this.grid.addEventListener("dragstart",l),this.grid.style.userSelect="none",this.grid.style.webkitUserSelect="none",this.grid.style.MozUserSelect="none",this.grid.style.pointerEvents="none",this.grid.style.cursor=this.cursor,window.document.body.style.cursor=this.cursor,this.onDragStart(this.direction,this.track)}},w.prototype.stopDragging=function(){this.dragging=!1,this.cleanup(),this.onDragEnd(this.direction,this.track),this.needsDestroy&&(this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),this.destroyCb(),this.needsDestroy=!1,this.destroyCb=null)},w.prototype.drag=function(t){var i=this.getMousePosition(t),s=this.getSizeOfTrack(this.track),h=this.aTrackStart+this.minSizeStart+this.dragStartOffset+this.computedGapPixels,r=this.bTrackEnd-this.minSizeEnd-this.computedGapPixels-(s-this.dragStartOffset);i<h+this.snapOffset&&(i=h),i>r-this.snapOffset&&(i=r),i<h?i=h:i>r&&(i=r);var e=i-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,n=this.bTrackEnd-i+this.dragStartOffset-s-this.computedGapPixels;if(this.dragInterval>1){var o=Math.round(e/this.dragInterval)*this.dragInterval;n-=o-e,e=o}e<this.minSizeStart&&(e=this.minSizeStart),n<this.minSizeEnd&&(n=this.minSizeEnd),"px"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=e+"px":"fr"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=1===this.totalFrs?"1fr":e/this.frToPixels+"fr":"%"===this.trackValues[this.aTrack].type&&(this.tracks[this.aTrack]=e/this.percentageToPixels+"%"),"px"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=n+"px":"fr"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=1===this.totalFrs?"1fr":n/this.frToPixels+"fr":"%"===this.trackValues[this.bTrack].type&&(this.tracks[this.bTrack]=n/this.percentageToPixels+"%");var u=this.tracks.join(" ");this.writeStyle(this.grid,this.gridTemplateProp,u),this.onDrag(this.direction,this.track,u)},w.prototype.cleanup=function(){window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("touchend",this.stopDragging),window.removeEventListener("touchcancel",this.stopDragging),window.removeEventListener("mousemove",this.drag),window.removeEventListener("touchmove",this.drag),this.grid&&(this.grid.removeEventListener("selectstart",l),this.grid.removeEventListener("dragstart",l),this.grid.style.userSelect="",this.grid.style.webkitUserSelect="",this.grid.style.MozUserSelect="",this.grid.style.pointerEvents="",this.grid.style.cursor=""),window.document.body.style.cursor=""},w.prototype.destroy=function(t,i){void 0===t&&(t=!0),t||!1===this.dragging?(this.cleanup(),this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),i&&i()):(this.needsDestroy=!0,i&&(this.destroyCb=i))};var m=function(t,i,s){return i in t?t[i]:s},v=function(t,i){return function(s){if(s.track<1)throw Error("Invalid track index: "+s.track+". Track must be between two other tracks.");var h="column"===t?i.columnMinSizes||{}:i.rowMinSizes||{},r="column"===t?"columnMinSize":"rowMinSize";return new w(t,Object.assign({},{minSizeStart:m(h,s.track-1,f(i,r,f(i,"minSize",0))),minSizeEnd:m(h,s.track+1,f(i,r,f(i,"minSize",0)))},s),i)}},g=function(t){var i=this;this.columnGutters={},this.rowGutters={},this.options=Object.assign({},{columnGutters:t.columnGutters||[],rowGutters:t.rowGutters||[],columnMinSizes:t.columnMinSizes||{},rowMinSizes:t.rowMinSizes||{}},t),this.options.columnGutters.forEach((function(t){i.columnGutters[t.track]=v("column",i.options)(t)})),this.options.rowGutters.forEach((function(t){i.rowGutters[t.track]=v("row",i.options)(t)}))};g.prototype.addColumnGutter=function(t,i){this.columnGutters[i]&&this.columnGutters[i].destroy(),this.columnGutters[i]=v("column",this.options)({element:t,track:i})},g.prototype.addRowGutter=function(t,i){this.rowGutters[i]&&this.rowGutters[i].destroy(),this.rowGutters[i]=v("row",this.options)({element:t,track:i})},g.prototype.removeColumnGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.columnGutters[t]&&this.columnGutters[t].destroy(i,(function(){delete s.columnGutters[t]}))},g.prototype.removeRowGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.rowGutters[t]&&this.rowGutters[t].destroy(i,(function(){delete s.rowGutters[t]}))},g.prototype.handleDragStart=function(t,i,s){"column"===i?(this.columnGutters[s]&&this.columnGutters[s].destroy(),this.columnGutters[s]=v("column",this.options)({track:s}),this.columnGutters[s].startDragging(t)):"row"===i&&(this.rowGutters[s]&&this.rowGutters[s].destroy(),this.rowGutters[s]=v("row",this.options)({track:s}),this.rowGutters[s].startDragging(t))},g.prototype.destroy=function(t){var i=this;void 0===t&&(t=!0),Object.keys(this.columnGutters).forEach((function(s){return i.columnGutters[s].destroy(t,(function(){delete i.columnGutters[s]}))})),Object.keys(this.rowGutters).forEach((function(s){return i.rowGutters[s].destroy(t,(function(){delete i.rowGutters[s]}))}))};const b=class{constructor(s){t(this,s),this.resizeEnd=i(this,"resizeEnd",7),this._items=[],this._buildInProgress=!1,this.direction="column",this.anchorToExpand=!1,this.structural=!1,this.showGutter=!1}rebuildLayout(){Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach((t=>{t.remove()})),Array.from(this._element.getElementsByTagName("EzSplitPanel")).reverse().forEach((t=>{t.rebuildLayout()})),this.buildItems(),this.initSplit()}buildItems(){this._panelID=e.generateUUID(),this._element.dataset.panelId=this._panelID,this._element.dataset.uniqueId="EzSplitPanel";let t=Array.from(this._element.children);this._items=t.filter((t=>{var i;return"EZ-SPLIT-ITEM"===(null===(i=t.tagName)||void 0===i?void 0:i.toUpperCase())}));let i=1;this._items.forEach(((t,s)=>{t.dataset.trackNumber=i.toString(),this._items.length>1&&s!=this._items.length-1&&this.addItemGutter(t),i+=2}))}componentDidLoad(){this.buildItems(),this.initSplit(),this._mutationObserver=new MutationObserver((t=>{for(const i of t)if("childList"===i.type&&!this._buildInProgress){this._buildInProgress=!0,window.requestAnimationFrame((()=>{this.rebuildLayout()})),window.requestAnimationFrame((()=>this._buildInProgress=!1));break}})),this._mutationObserver.observe(this._element,{childList:!0,subtree:!1})}disconnectedCallback(){null!=this._mutationObserver&&this._mutationObserver.disconnect()}initSplit(){var t;this._items.length&&(this._element.style["row"===this.direction?"grid-template-rows":"grid-template-columns"]=this.getGridTemplate(),this.removeGuttersMargin(),t=this.getGutters(),new g(t))}handlePanelDragEnd(){const t=this._items.map((t=>({id:t.id,height:t.clientHeight,width:t.clientWidth})));this.resizeEnd.emit({panelId:this._element.id,items:t})}getGutters(){const t={columnGutters:[],rowGutters:[],onDragEnd:()=>this.handlePanelDragEnd()};if(!this._items.length)return t;const i="row"===this.direction?"rowGutters":"columnGutters";return this._items.forEach(((s,h)=>{if(h===this._items.length-1)return;let r=s.dataset.trackNumber;h===this._items.length-1&&(r=this._items.length.toString()),t[i].push({track:Number(r),element:this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${s.dataset.trackNumber}"]`)})})),t}addItemGutter(t){const i=document.createElement("div");i.classList.add("ez-split-gutter"),i.classList.add(this.direction),i.classList.add("row"===this.direction?"ez-split-gutter__row":"ez-split-gutter__column"),i.dataset.itemTrack=`${t.dataset.trackNumber}`,i.dataset.trackNumber=(Number(t.dataset.trackNumber)+1).toString(),t.parentNode.insertBefore(i,t.nextSibling)}getElementStyle(){return{display:"grid",height:"100%",width:"100%",position:this.anchorToExpand?"relative":"unset"}}calcFreeSpacePercentage(){const t=this._items.reduce(((t,i)=>{var s;return t+((null===(s=i.size)||void 0===s?void 0:s.includes("%"))?Number(i.size.replace("%","")):0)}),0),i=this._items.filter((t=>void 0===t.size)).length;return i&&t?(100-t)/i:null}getGridTemplate(){let t="";const i=this.showGutter?"12px":"5px",s=this.calcFreeSpacePercentage();return this._items.forEach(((h,r)=>{let e=h.size||"1fr";!h.size&&s&&(e=`${s}%`),t+=r!==this._items.length-1?0!==r?` ${e} ${i}`:`${e} ${i}`:` ${e}`})),t}removeGuttersMargin(){this._items.length<=1||("column"!=this.direction?"row"!=this.direction||this.removeGuttersMarginRow():this.removeGuttersMarginColumn())}removeGuttersMarginColumn(){this._items.forEach(((t,i)=>{0!=i?i!==this._items.length-1?(t.style.marginRight="0",t.style.marginLeft="0"):t.style.marginLeft="0":t.style.marginRight="0"}))}removeGuttersMarginRow(){this._items.length<=1||this._items.forEach(((t,i)=>{0!=i?i!==this._items.length-1?(t.style.marginBottom="0",t.style.marginTop="0"):t.style.marginTop="0":t.style.marginBottom="0"}))}render(){return s(h,{class:`${this.structural?"structural__panel":"content__panel"}${this.showGutter?" ez-split-panel--gutter":""}`,style:this.getElementStyle()})}get _element(){return r(this)}};b.style='.ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}.ez-split-gutter__row{cursor:ns-resize}.ez-split-gutter__column{cursor:ew-resize}.structural__panel{background:none;box-shadow:none;outline:none;padding:0;margin:0;border:0}.ez-split-panel--gutter .ez-split-gutter{display:flex;align-items:center;justify-content:center}.ez-split-panel--gutter .ez-split-gutter::before{content:"";border-radius:var(--border--radius-2, 2px);background:var(--color--strokes, #E1E2E5);transition:background 0.15s ease, width 0.15s ease, height 0.15s ease}.ez-split-panel--gutter .ez-split-gutter__row::before{width:var(--space--48, 48px);height:var(--space--4, 4px)}.ez-split-panel--gutter .ez-split-gutter__column::before{width:var(--space--4, 4px);height:var(--space--48, 48px)}.ez-split-panel--gutter .ez-split-gutter__row:hover::before{width:72px;background:var(--color--ocean-green-600, #008561)}.ez-split-panel--gutter .ez-split-gutter__column:hover::before{height:72px;background:var(--color--ocean-green-600, #008561)}';export{b as ez_split_panel}
Binary file
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