@sankhyalabs/ezui 7.3.4-dev.1 → 7.3.4

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 (1009) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/{ApplicationUtils-9a9185fc.js → ApplicationUtils-999d2366.js} +1 -1
  3. package/dist/cjs/ApplicationUtils-999d2366.js.gz +0 -0
  4. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  5. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  6. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  7. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  8. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  9. package/dist/cjs/{types-6a5df0c7.js → FormLayout-18853e70.js} +6 -0
  10. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  11. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  12. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  13. package/dist/cjs/{app-globals-27a943d9.js → app-globals-1fea23aa.js} +1 -1
  14. package/dist/cjs/app-globals-1fea23aa.js.gz +0 -0
  15. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  16. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -4
  17. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  21. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  29. package/dist/cjs/{ez-multi-selection-list_5.cjs.entry.js → ez-card-item_5.cjs.entry.js} +56 -222
  30. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  31. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  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 +15 -38
  36. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/ez-classic-input.cjs.entry.js +18 -144
  38. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  39. package/dist/cjs/ez-classic-text-area.cjs.entry.js +2 -13
  40. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  41. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
  42. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  43. package/dist/cjs/{classic-search-list_8.cjs.entry.js → ez-combo-box-list_5.cjs.entry.js} +5 -364
  44. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -4
  46. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/ez-form-view.cjs.entry.js +37 -130
  63. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/ez-form.cjs.entry.js +81 -144
  65. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/ez-grid.cjs.entry.js +264 -980
  68. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  70. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  72. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  74. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  75. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  77. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  80. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  82. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  84. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  86. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/ez-popover-core.cjs.entry.js +227 -0
  88. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  89. package/dist/cjs/ez-popover.cjs.entry.js +0 -8
  90. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  92. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  93. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  94. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  95. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  96. package/dist/cjs/ez-scroller_2.cjs.entry.js +14 -81
  97. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/ez-search-plus.cjs.entry.js +8 -18
  99. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  100. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  101. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/ez-search.cjs.entry.js +11 -49
  103. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  104. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  105. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  106. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  107. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  108. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  109. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  111. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/ez-split-button.cjs.entry.js +17 -16
  113. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/ez-split-item.cjs.entry.js +5 -7
  115. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/ez-split-panel.cjs.entry.js +4 -6
  117. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/ez-tabselector.cjs.entry.js +61 -209
  119. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  121. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  123. package/dist/cjs/ez-text-input.cjs.entry.js +0 -37
  124. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  125. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  127. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  128. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  129. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  132. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  133. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  135. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  137. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  138. package/dist/cjs/ezui.cjs.js +3 -3
  139. package/dist/cjs/ezui.cjs.js.gz +0 -0
  140. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  141. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/floating-ui.dom.esm-4a0428c0.js.gz +0 -0
  143. package/dist/cjs/{index-d4a1cad8.js → index-637af219.js} +12 -165
  144. package/dist/cjs/index-637af219.js.gz +0 -0
  145. package/dist/cjs/index-a7b0c73d.js +26 -58
  146. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  147. package/dist/cjs/index.cjs.js.gz +0 -0
  148. package/dist/cjs/loader.cjs.js +3 -3
  149. package/dist/cjs/loader.cjs.js.gz +0 -0
  150. package/dist/cjs/{purify-4f39f037.js → purify-ef86f048.js} +0 -1
  151. package/dist/cjs/purify-ef86f048.js.gz +0 -0
  152. package/dist/cjs/{search-column-c04897a9.js → search-column-254df8ea.js} +10 -12
  153. package/dist/cjs/search-column-254df8ea.js.gz +0 -0
  154. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  155. package/dist/collection/collection-manifest.json +3 -64
  156. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  157. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  158. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  159. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  160. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  161. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  162. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  163. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  164. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  165. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  166. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  167. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  168. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  169. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  170. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  171. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  172. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  173. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  174. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  175. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  176. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  177. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  178. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  179. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  180. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  181. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  182. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  183. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  184. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  185. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  186. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  187. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  188. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  189. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  190. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  191. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  192. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  193. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  194. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  195. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  196. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  197. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  198. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  199. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  200. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  201. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  202. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +0 -5
  203. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  204. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +18 -96
  205. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  206. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  207. package/dist/collection/components/ez-classic-input/ez-classic-input.css +5 -33
  208. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  209. package/dist/collection/components/ez-classic-input/ez-classic-input.js +19 -200
  210. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  211. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  212. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  213. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +2 -3
  214. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  215. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +1 -32
  216. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  217. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  218. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  219. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  220. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  221. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  222. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  223. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  224. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  225. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  226. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  227. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  228. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  229. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  230. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  231. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  232. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  233. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  234. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  235. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  236. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  237. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  238. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  239. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  240. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  241. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  242. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  243. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  244. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  245. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  246. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  247. package/dist/collection/components/ez-form/ez-form.js +4 -30
  248. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  249. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  250. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  251. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -27
  252. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  253. package/dist/collection/components/ez-form-view/ez-form-view.js +4 -62
  254. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  255. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +4 -9
  256. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  257. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +6 -9
  258. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  259. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -8
  260. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  261. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +6 -30
  262. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  263. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  264. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  265. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  266. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +5 -12
  267. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  268. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  269. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  270. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -9
  271. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  272. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +1 -8
  273. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  274. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -7
  275. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  276. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -8
  277. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  278. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  279. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  280. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  281. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  282. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  283. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +13 -138
  284. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  285. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +1 -11
  286. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  287. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  288. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  289. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  290. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  291. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  292. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  293. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  294. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  295. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  296. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  297. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  298. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  299. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  300. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  301. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  302. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  303. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  304. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  305. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  306. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  307. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  308. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  309. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  310. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  311. package/dist/collection/components/ez-grid/ez-grid.css +60 -5
  312. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  313. package/dist/collection/components/ez-grid/ez-grid.js +150 -52
  314. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  315. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  316. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  317. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  318. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  319. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  320. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  321. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  322. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  323. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  324. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  325. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  326. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  327. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  328. package/dist/collection/components/ez-grid/utils/index.js +0 -1
  329. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  330. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  331. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  332. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  333. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  334. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  335. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  336. package/dist/collection/components/ez-icon/ez-icon.css +7 -8
  337. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  338. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  339. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  340. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  341. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  342. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  343. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  344. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  345. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  346. package/dist/collection/components/ez-modal/ez-modal.css +0 -3
  347. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  348. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  349. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  350. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  351. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  352. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  353. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  354. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  355. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  356. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  357. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  358. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  359. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  360. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  361. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  362. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  363. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  364. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  365. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  366. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  367. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  368. package/dist/collection/components/ez-popover/ez-popover.js +0 -27
  369. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  370. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  371. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  372. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  373. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  374. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  375. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  376. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  377. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  378. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  379. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  380. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  381. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  382. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  383. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  384. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  385. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  386. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  387. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  388. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  389. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  390. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  391. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  392. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  393. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  394. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  395. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  396. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  397. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  398. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  399. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  400. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  401. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  402. package/dist/collection/components/ez-scroller/ez-scroller.css +11 -117
  403. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  404. package/dist/collection/components/ez-scroller/ez-scroller.js +13 -118
  405. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  406. package/dist/collection/components/ez-search/ez-search.css +0 -4
  407. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  408. package/dist/collection/components/ez-search/ez-search.js +3 -75
  409. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  410. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  411. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  412. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  413. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  414. package/dist/collection/components/ez-search-plus/ez-search-plus.js +2 -11
  415. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  416. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  417. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  418. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  419. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  420. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  421. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  422. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  423. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  424. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  425. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  426. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  427. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  428. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  429. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  430. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  431. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  432. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  433. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  434. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  435. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  436. package/dist/collection/components/ez-split-button/ez-split-button.js +15 -20
  437. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  438. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  439. package/dist/collection/components/ez-split-panel/ez-split-panel.css +0 -29
  440. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  441. package/dist/collection/components/ez-split-panel/ez-split-panel.js +3 -23
  442. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  443. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  444. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +0 -9
  445. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  446. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +1 -20
  447. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  448. package/dist/collection/components/ez-tabselector/ez-tabselector.css +1 -33
  449. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  450. package/dist/collection/components/ez-tabselector/ez-tabselector.js +62 -254
  451. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  452. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  453. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  454. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  455. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  456. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  457. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  458. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  459. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  460. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  461. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  462. package/dist/collection/components/ez-text-input/ez-text-input.js +1 -38
  463. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  464. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  465. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  466. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  467. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  468. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  469. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  470. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  471. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  472. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  473. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  474. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  475. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  476. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  477. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  478. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  479. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  480. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  481. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  482. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  483. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  484. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  485. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  486. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  487. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  488. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  489. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  490. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  491. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  492. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  493. package/dist/collection/global/app-init.js.gz +0 -0
  494. package/dist/collection/index.js.gz +0 -0
  495. package/dist/collection/servidor.js.gz +0 -0
  496. package/dist/collection/setupTests.js.gz +0 -0
  497. package/dist/collection/sw.js.gz +0 -0
  498. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  499. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  500. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  501. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  502. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  503. package/dist/collection/utils/constants.js.gz +0 -0
  504. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  505. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  506. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  507. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  508. package/dist/collection/utils/form/DataBinder.js +2 -2
  509. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  510. package/dist/collection/utils/form/FormMetadata.js +74 -132
  511. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  512. package/dist/collection/utils/form/index.js.gz +0 -0
  513. package/dist/collection/utils/form/interfaces/FormLayout.js +1 -3
  514. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  515. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  516. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  517. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  518. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  519. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  520. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  521. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  522. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  523. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  524. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  525. package/dist/collection/utils/i18n/index.js.gz +0 -0
  526. package/dist/collection/utils/i18n/locales/en-us.js +4 -55
  527. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  528. package/dist/collection/utils/i18n/locales/es-es.js +4 -55
  529. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  530. package/dist/collection/utils/i18n/locales/pt-br.js +4 -55
  531. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  532. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  533. package/dist/collection/utils/index.js.gz +0 -0
  534. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  535. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  536. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  537. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  538. package/dist/collection/utils/search/types.js.gz +0 -0
  539. package/dist/collection/utils/searchColumn/search-column.js +6 -8
  540. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  541. package/dist/collection/utils/utils.js.gz +0 -0
  542. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  543. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  544. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  545. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  546. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  547. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  548. package/dist/custom-elements/index.d.ts +0 -66
  549. package/dist/custom-elements/index.js +570 -4797
  550. package/dist/custom-elements/index.js.gz +0 -0
  551. package/dist/esm/{ApplicationUtils-29d2709c.js → ApplicationUtils-7270d89f.js} +1 -1
  552. package/dist/esm/ApplicationUtils-7270d89f.js.gz +0 -0
  553. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  554. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  555. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  556. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  557. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  558. package/dist/esm/{types-6f6b2650.js → FormLayout-071d324c.js} +7 -1
  559. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  560. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  561. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  562. package/dist/esm/{app-globals-44bdc4c4.js → app-globals-6208a4b6.js} +1 -1
  563. package/dist/esm/app-globals-6208a4b6.js.gz +0 -0
  564. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  565. package/dist/esm/ez-actions-button.entry.js +3 -4
  566. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  567. package/dist/esm/ez-alert-list.entry.js +1 -1
  568. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  569. package/dist/esm/ez-alert.entry.js.gz +0 -0
  570. package/dist/esm/ez-application.entry.js.gz +0 -0
  571. package/dist/esm/ez-avatar.entry.js +1 -1
  572. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  573. package/dist/esm/ez-badge.entry.js.gz +0 -0
  574. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  575. package/dist/esm/ez-button.entry.js.gz +0 -0
  576. package/dist/esm/ez-calendar.entry.js +1 -1
  577. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  578. package/dist/esm/{ez-multi-selection-list_5.entry.js → ez-card-item_5.entry.js} +58 -224
  579. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  580. package/dist/esm/ez-chart.entry.js +1 -1
  581. package/dist/esm/ez-chart.entry.js.gz +0 -0
  582. package/dist/esm/ez-check.entry.js.gz +0 -0
  583. package/dist/esm/ez-chip.entry.js.gz +0 -0
  584. package/dist/esm/ez-classic-combo-box.entry.js +15 -38
  585. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  586. package/dist/esm/ez-classic-input.entry.js +19 -145
  587. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  588. package/dist/esm/ez-classic-text-area.entry.js +2 -13
  589. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  590. package/dist/esm/ez-collapsible-box.entry.js +3 -4
  591. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  592. package/dist/esm/{classic-search-list_8.entry.js → ez-combo-box-list_5.entry.js} +7 -363
  593. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  594. package/dist/esm/ez-combo-box.entry.js +3 -4
  595. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  596. package/dist/esm/ez-date-input.entry.js +1 -1
  597. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  598. package/dist/esm/ez-date-time-input.entry.js +1 -1
  599. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  600. package/dist/esm/ez-dialog.entry.js +1 -1
  601. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  602. package/dist/esm/ez-double-list.entry.js +1 -1
  603. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  604. package/dist/esm/ez-dropdown.entry.js +1 -1
  605. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  606. package/dist/esm/ez-empty-card.entry.js +1 -1
  607. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  608. package/dist/esm/ez-file-item.entry.js +1 -1
  609. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  610. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  611. package/dist/esm/ez-form-view.entry.js +37 -130
  612. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  613. package/dist/esm/ez-form.entry.js +81 -144
  614. package/dist/esm/ez-form.entry.js.gz +0 -0
  615. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  616. package/dist/esm/ez-grid.entry.js +263 -979
  617. package/dist/esm/ez-grid.entry.js.gz +0 -0
  618. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  619. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  620. package/dist/esm/ez-icon.entry.js +1 -1
  621. package/dist/esm/ez-icon.entry.js.gz +0 -0
  622. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  623. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  624. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  625. package/dist/esm/ez-list.entry.js +1 -1
  626. package/dist/esm/ez-list.entry.js.gz +0 -0
  627. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  628. package/dist/esm/ez-modal-container.entry.js +1 -1
  629. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  630. package/dist/esm/ez-modal.entry.js +2 -2
  631. package/dist/esm/ez-modal.entry.js.gz +0 -0
  632. package/dist/esm/ez-number-input.entry.js +1 -1
  633. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  634. package/dist/esm/ez-pagination.entry.js +1 -1
  635. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  636. package/dist/esm/ez-popover-core.entry.js +223 -0
  637. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  638. package/dist/esm/ez-popover.entry.js +0 -8
  639. package/dist/esm/ez-popover.entry.js.gz +0 -0
  640. package/dist/esm/ez-popup.entry.js +1 -1
  641. package/dist/esm/ez-popup.entry.js.gz +0 -0
  642. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  643. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  644. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  645. package/dist/esm/ez-scroller_2.entry.js +14 -81
  646. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  647. package/dist/esm/ez-search-plus.entry.js +5 -15
  648. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  649. package/dist/esm/ez-search-result-list.entry.js +1 -1
  650. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  651. package/dist/esm/ez-search.entry.js +6 -44
  652. package/dist/esm/ez-search.entry.js.gz +0 -0
  653. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  654. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  655. package/dist/esm/ez-skeleton.entry.js +1 -1
  656. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  657. package/dist/esm/ez-sortable-list.entry.js +2 -2
  658. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  659. package/dist/esm/ez-spinner.entry.js +1 -1
  660. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  661. package/dist/esm/ez-split-button.entry.js +17 -16
  662. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  663. package/dist/esm/ez-split-item.entry.js +5 -7
  664. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  665. package/dist/esm/ez-split-panel.entry.js +4 -6
  666. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  667. package/dist/esm/ez-tabselector.entry.js +61 -209
  668. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  669. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  670. package/dist/esm/ez-tag.entry.js.gz +0 -0
  671. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  672. package/dist/esm/ez-text-input.entry.js +0 -37
  673. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  674. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  675. package/dist/esm/ez-tile.entry.js.gz +0 -0
  676. package/dist/esm/ez-time-input.entry.js +1 -1
  677. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  678. package/dist/esm/ez-toast.entry.js.gz +0 -0
  679. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  680. package/dist/esm/ez-tree.entry.js +1 -1
  681. package/dist/esm/ez-tree.entry.js.gz +0 -0
  682. package/dist/esm/ez-underface.entry.js.gz +0 -0
  683. package/dist/esm/ez-upload.entry.js +2 -2
  684. package/dist/esm/ez-upload.entry.js.gz +0 -0
  685. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  686. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  687. package/dist/esm/ezui.js +3 -3
  688. package/dist/esm/ezui.js.gz +0 -0
  689. package/dist/esm/filter-column.entry.js +1 -1
  690. package/dist/esm/filter-column.entry.js.gz +0 -0
  691. package/dist/esm/floating-ui.dom.esm-ffa73324.js.gz +0 -0
  692. package/dist/esm/{index-b5a15d4b.js → index-8088eb6e.js} +12 -165
  693. package/dist/esm/index-8088eb6e.js.gz +0 -0
  694. package/dist/esm/index-baa5e267.js +26 -58
  695. package/dist/esm/index-baa5e267.js.gz +0 -0
  696. package/dist/esm/index.js.gz +0 -0
  697. package/dist/esm/loader.js +3 -3
  698. package/dist/esm/loader.js.gz +0 -0
  699. package/dist/esm/polyfills/core-js.js.gz +0 -0
  700. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  701. package/dist/esm/polyfills/dom.js.gz +0 -0
  702. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  703. package/dist/esm/polyfills/index.js.gz +0 -0
  704. package/dist/esm/polyfills/system.js.gz +0 -0
  705. package/dist/esm/{purify-f52f5419.js → purify-96c0d5c2.js} +0 -1
  706. package/dist/esm/purify-96c0d5c2.js.gz +0 -0
  707. package/dist/esm/{search-column-9414ad22.js → search-column-d98f7d96.js} +10 -12
  708. package/dist/esm/search-column-d98f7d96.js.gz +0 -0
  709. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  710. package/dist/ezui/ezui.esm.js +1 -1
  711. package/dist/ezui/ezui.esm.js.gz +0 -0
  712. package/dist/ezui/index.esm.js.gz +0 -0
  713. package/dist/ezui/{p-ade1c43b.entry.js → p-03eb09b0.entry.js} +1 -1
  714. package/dist/ezui/p-03eb09b0.entry.js.gz +0 -0
  715. package/dist/ezui/p-0ec37151.entry.js +1 -0
  716. package/dist/ezui/p-0ec37151.entry.js.gz +0 -0
  717. package/dist/ezui/p-112455b1.js.gz +0 -0
  718. package/dist/ezui/{p-852d6133.entry.js → p-1cfe7c1b.entry.js} +1 -1
  719. package/dist/ezui/p-1cfe7c1b.entry.js.gz +0 -0
  720. package/dist/ezui/p-1e21475d.entry.js +1 -0
  721. package/dist/ezui/p-1e21475d.entry.js.gz +0 -0
  722. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  723. package/dist/ezui/p-1f3867a8.entry.js +1 -0
  724. package/dist/ezui/p-1f3867a8.entry.js.gz +0 -0
  725. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  726. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  727. package/dist/ezui/p-21647085.entry.js +1 -0
  728. package/dist/ezui/p-21647085.entry.js.gz +0 -0
  729. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  730. package/dist/ezui/{p-320c401f.js → p-25c1aa0a.js} +1 -1
  731. package/dist/ezui/p-25c1aa0a.js.gz +0 -0
  732. package/dist/ezui/{p-27236a0f.entry.js → p-27fd20cf.entry.js} +1 -1
  733. package/dist/ezui/p-27fd20cf.entry.js.gz +0 -0
  734. package/dist/ezui/p-288631d1.entry.js +1 -0
  735. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  736. package/dist/ezui/p-29aa849f.js +1 -0
  737. package/dist/ezui/p-29aa849f.js.gz +0 -0
  738. package/dist/ezui/{p-0fbf5842.entry.js → p-30425ea2.entry.js} +1 -1
  739. package/dist/ezui/p-30425ea2.entry.js.gz +0 -0
  740. package/dist/ezui/p-30da1152.entry.js +1 -0
  741. package/dist/ezui/p-30da1152.entry.js.gz +0 -0
  742. package/dist/ezui/p-30ffb9ed.js +1 -0
  743. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  744. package/dist/ezui/p-359430a5.entry.js.gz +0 -0
  745. package/dist/ezui/p-3e767a74.js.gz +0 -0
  746. package/dist/ezui/p-40a60148.js.gz +0 -0
  747. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  748. package/dist/ezui/p-48effc69.entry.js +1 -0
  749. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  750. package/dist/ezui/{p-b50289bb.entry.js → p-4d30b703.entry.js} +1 -1
  751. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  752. package/dist/ezui/{p-afb2f145.entry.js → p-513baabe.entry.js} +1 -1
  753. package/dist/ezui/p-513baabe.entry.js.gz +0 -0
  754. package/dist/ezui/p-55cc66bb.entry.js +1 -0
  755. package/dist/ezui/p-55cc66bb.entry.js.gz +0 -0
  756. package/dist/ezui/p-5832d458.entry.js +1 -0
  757. package/dist/ezui/p-5832d458.entry.js.gz +0 -0
  758. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  759. package/dist/ezui/p-6020f3d5.entry.js +1 -0
  760. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  761. package/dist/ezui/p-65f830ba.entry.js +1 -0
  762. package/dist/ezui/p-65f830ba.entry.js.gz +0 -0
  763. package/dist/ezui/p-669dc773.entry.js +1 -0
  764. package/dist/ezui/p-669dc773.entry.js.gz +0 -0
  765. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  766. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  767. package/dist/ezui/p-7995dcb4.entry.js +1 -0
  768. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  769. package/dist/ezui/{p-5a217a52.entry.js → p-7ab75605.entry.js} +1 -1
  770. package/dist/ezui/p-7ab75605.entry.js.gz +0 -0
  771. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  772. package/dist/ezui/p-7fe97ef5.entry.js +1 -0
  773. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  774. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  775. package/dist/ezui/p-85deadad.entry.js +1 -0
  776. package/dist/ezui/p-85deadad.entry.js.gz +0 -0
  777. package/dist/ezui/{p-40c92fc7.entry.js → p-87d12992.entry.js} +1 -1
  778. package/dist/ezui/p-87d12992.entry.js.gz +0 -0
  779. package/dist/ezui/{p-73bae77e.entry.js → p-8a74deab.entry.js} +1 -1
  780. package/dist/ezui/p-8a74deab.entry.js.gz +0 -0
  781. package/dist/ezui/{p-f7fb2587.entry.js → p-8bbb3df7.entry.js} +1 -1
  782. package/dist/ezui/p-8bbb3df7.entry.js.gz +0 -0
  783. package/dist/ezui/{p-a62bbd49.entry.js → p-8ddeb513.entry.js} +1 -1
  784. package/dist/ezui/p-8ddeb513.entry.js.gz +0 -0
  785. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  786. package/dist/ezui/p-8dfd01b1.js +1 -0
  787. package/dist/ezui/p-8dfd01b1.js.gz +0 -0
  788. package/dist/ezui/p-8ebe11f4.js.gz +0 -0
  789. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  790. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  791. package/dist/ezui/p-941e02ff.entry.js +1 -0
  792. package/dist/ezui/p-941e02ff.entry.js.gz +0 -0
  793. package/dist/ezui/{p-97545f8e.entry.js → p-95a521ce.entry.js} +1 -1
  794. package/dist/ezui/p-95a521ce.entry.js.gz +0 -0
  795. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  796. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  797. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  798. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  799. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  800. package/dist/ezui/p-a80b1287.entry.js +1 -0
  801. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  802. package/dist/ezui/p-ab574d59.js.gz +0 -0
  803. package/dist/ezui/{p-1160c33a.entry.js → p-abe0dd62.entry.js} +1 -1
  804. package/dist/ezui/p-abe0dd62.entry.js.gz +0 -0
  805. package/dist/ezui/p-b1e45320.js.gz +0 -0
  806. package/dist/ezui/{p-381570d2.entry.js → p-b663ec25.entry.js} +1 -1
  807. package/dist/ezui/p-b663ec25.entry.js.gz +0 -0
  808. package/dist/ezui/{p-e60aa084.entry.js → p-b6bc4499.entry.js} +1 -1
  809. package/dist/ezui/p-b6bc4499.entry.js.gz +0 -0
  810. package/dist/ezui/p-b853763b.js.gz +0 -0
  811. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  812. package/dist/ezui/{p-6c24ab67.entry.js → p-bf5b6db2.entry.js} +1 -1
  813. package/dist/ezui/p-bf5b6db2.entry.js.gz +0 -0
  814. package/dist/ezui/{p-58fa7883.js → p-bf9ff8fe.js} +1 -1
  815. package/dist/ezui/p-bf9ff8fe.js.gz +0 -0
  816. package/dist/ezui/{p-3b9ccdb7.entry.js → p-ce269c9c.entry.js} +1 -1
  817. package/dist/ezui/p-ce269c9c.entry.js.gz +0 -0
  818. package/dist/ezui/p-d1421af5.entry.js +1 -0
  819. package/dist/ezui/p-d1421af5.entry.js.gz +0 -0
  820. package/dist/ezui/p-d2645bdf.entry.js +1 -0
  821. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  822. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  823. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  824. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  825. package/dist/ezui/{p-664b9f4c.entry.js → p-e2fe1b5d.entry.js} +1 -1
  826. package/dist/ezui/p-e2fe1b5d.entry.js.gz +0 -0
  827. package/dist/ezui/{p-2c1c9ec6.entry.js → p-e50e1c80.entry.js} +1 -1
  828. package/dist/ezui/p-e50e1c80.entry.js.gz +0 -0
  829. package/dist/ezui/p-e6ac0c4d.entry.js +309 -0
  830. package/dist/ezui/p-e6ac0c4d.entry.js.gz +0 -0
  831. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  832. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  833. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  834. package/dist/ezui/p-ec7db713.js.gz +0 -0
  835. package/dist/ezui/{p-c6b9a72a.entry.js → p-efd28447.entry.js} +2 -2
  836. package/dist/ezui/p-efd28447.entry.js.gz +0 -0
  837. package/dist/ezui/p-f00c9dc2.entry.js +1 -0
  838. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  839. package/dist/ezui/{p-83ffba67.entry.js → p-f14b1400.entry.js} +1 -1
  840. package/dist/ezui/p-f14b1400.entry.js.gz +0 -0
  841. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  842. package/dist/ezui/p-f67d789c.entry.js +1 -0
  843. package/dist/ezui/p-f67d789c.entry.js.gz +0 -0
  844. package/dist/ezui/p-f7b8d2b9.entry.js +1 -0
  845. package/dist/ezui/p-f7b8d2b9.entry.js.gz +0 -0
  846. package/dist/ezui/{p-7ecac0c4.entry.js → p-f9054bd6.entry.js} +1 -1
  847. package/dist/ezui/p-f9054bd6.entry.js.gz +0 -0
  848. package/dist/ezui/{p-58ce160e.js → p-f90e8299.js} +1 -1
  849. package/dist/ezui/p-f90e8299.js.gz +0 -0
  850. package/dist/ezui/{p-ef3cd4ef.entry.js → p-f949bb8b.entry.js} +1 -1
  851. package/dist/ezui/p-f949bb8b.entry.js.gz +0 -0
  852. package/dist/ezui/{p-c547f48f.entry.js → p-fa5cc755.entry.js} +1 -1
  853. package/dist/ezui/p-fa5cc755.entry.js.gz +0 -0
  854. package/dist/ezui/{p-efea2c79.entry.js → p-fa6732f2.entry.js} +1 -1
  855. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  856. package/dist/ezui/p-fa7fc44f.entry.js +1 -0
  857. package/dist/ezui/p-fa7fc44f.entry.js.gz +0 -0
  858. package/dist/ezui/{p-52122022.entry.js → p-fadf0509.entry.js} +1 -1
  859. package/dist/ezui/p-fadf0509.entry.js.gz +0 -0
  860. package/dist/index.cjs.js.gz +0 -0
  861. package/dist/index.js.gz +0 -0
  862. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +3 -11
  863. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +1 -24
  864. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +0 -3
  865. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  866. package/dist/types/components/ez-form/ez-form.d.ts +0 -6
  867. package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -11
  868. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +2 -3
  869. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +1 -2
  870. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +4 -5
  871. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +1 -2
  872. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +2 -3
  873. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +1 -2
  874. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -2
  875. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +1 -2
  876. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +1 -2
  877. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -2
  878. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -2
  879. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +0 -14
  880. package/dist/types/components/ez-grid/ez-grid.d.ts +27 -10
  881. package/dist/types/components/ez-grid/utils/index.d.ts +0 -1
  882. package/dist/types/components/ez-popover/ez-popover.d.ts +0 -9
  883. package/dist/types/components/ez-scroller/ez-scroller.d.ts +2 -16
  884. package/dist/types/components/ez-search/ez-search.d.ts +1 -12
  885. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +0 -1
  886. package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -1
  887. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +0 -4
  888. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -4
  889. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +20 -42
  890. package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -4
  891. package/dist/types/components.d.ts +2064 -3527
  892. package/dist/types/utils/form/FormMetadata.d.ts +1 -2
  893. package/dist/types/utils/form/interfaces/FormLayout.d.ts +1 -3
  894. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +0 -3
  895. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +0 -3
  896. package/dist/types/utils/i18n/locales/en-us.d.ts +3 -54
  897. package/dist/types/utils/i18n/locales/es-es.d.ts +3 -54
  898. package/dist/types/utils/i18n/locales/pt-br.d.ts +3 -54
  899. package/dist/types/utils/i18n/translations.d.ts +9 -162
  900. package/package.json +5 -5
  901. package/react/components.d.ts +0 -11
  902. package/react/components.js +0 -11
  903. package/react/components.js.map +1 -1
  904. package/dist/cjs/FormLayout-fe8da83c.js +0 -9
  905. package/dist/cjs/ez-card-item.cjs.entry.js +0 -62
  906. package/dist/cjs/ez-classic-date-input.cjs.entry.js +0 -201
  907. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +0 -246
  908. package/dist/cjs/ez-classic-number-input.cjs.entry.js +0 -205
  909. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +0 -420
  910. package/dist/cjs/ez-classic-search.cjs.entry.js +0 -683
  911. package/dist/cjs/ez-classic-time-input.cjs.entry.js +0 -198
  912. package/dist/cjs/ez-grid-pagination.cjs.entry.js +0 -331
  913. package/dist/cjs/ez-record-navigation.cjs.entry.js +0 -121
  914. package/dist/cjs/searchFormatters-051f8677.js +0 -23
  915. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +0 -44
  916. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +0 -541
  917. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +0 -44
  918. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +0 -586
  919. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +0 -16
  920. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +0 -583
  921. package/dist/collection/components/ez-classic-search/ez-classic-search.css +0 -126
  922. package/dist/collection/components/ez-classic-search/ez-classic-search.js +0 -1330
  923. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +0 -227
  924. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +0 -316
  925. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +0 -18
  926. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +0 -428
  927. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +0 -1003
  928. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +0 -221
  929. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +0 -298
  930. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +0 -14
  931. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +0 -512
  932. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +0 -4
  933. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +0 -23
  934. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +0 -24
  935. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +0 -1
  936. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +0 -217
  937. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +0 -516
  938. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +0 -1
  939. package/dist/collection/components/ez-image-input/ez-image-input.css +0 -189
  940. package/dist/collection/components/ez-image-input/ez-image-input.js +0 -329
  941. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +0 -51
  942. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +0 -246
  943. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +0 -5
  944. package/dist/esm/FormLayout-bda67973.js +0 -9
  945. package/dist/esm/ez-card-item.entry.js +0 -58
  946. package/dist/esm/ez-classic-date-input.entry.js +0 -197
  947. package/dist/esm/ez-classic-date-time-input.entry.js +0 -242
  948. package/dist/esm/ez-classic-number-input.entry.js +0 -201
  949. package/dist/esm/ez-classic-search-plus.entry.js +0 -416
  950. package/dist/esm/ez-classic-search.entry.js +0 -679
  951. package/dist/esm/ez-classic-time-input.entry.js +0 -194
  952. package/dist/esm/ez-grid-pagination.entry.js +0 -327
  953. package/dist/esm/ez-record-navigation.entry.js +0 -117
  954. package/dist/esm/searchFormatters-6d9b06e4.js +0 -20
  955. package/dist/ezui/p-08e3184d.entry.js +0 -1
  956. package/dist/ezui/p-0d80e3ec.entry.js +0 -1
  957. package/dist/ezui/p-0ddb9a95.entry.js +0 -1
  958. package/dist/ezui/p-1222005d.entry.js +0 -1
  959. package/dist/ezui/p-178cb9df.entry.js +0 -1
  960. package/dist/ezui/p-1c7aa5af.entry.js +0 -1
  961. package/dist/ezui/p-34a09786.entry.js +0 -1
  962. package/dist/ezui/p-3b7d9f30.js +0 -1
  963. package/dist/ezui/p-40a0a773.entry.js +0 -1
  964. package/dist/ezui/p-45d09b32.entry.js +0 -1
  965. package/dist/ezui/p-46188bfe.entry.js +0 -1
  966. package/dist/ezui/p-47e4a8ce.js +0 -1
  967. package/dist/ezui/p-49bc0b59.entry.js +0 -1
  968. package/dist/ezui/p-5124ba43.entry.js +0 -1
  969. package/dist/ezui/p-5895e687.js +0 -1
  970. package/dist/ezui/p-63409a57.entry.js +0 -1
  971. package/dist/ezui/p-6369a0cd.entry.js +0 -1
  972. package/dist/ezui/p-7b6c9097.entry.js +0 -309
  973. package/dist/ezui/p-88a115b3.js +0 -1
  974. package/dist/ezui/p-90a0b52b.entry.js +0 -1
  975. package/dist/ezui/p-95fb50d1.entry.js +0 -1
  976. package/dist/ezui/p-abfbbe1e.entry.js +0 -1
  977. package/dist/ezui/p-b29d9b0e.entry.js +0 -1
  978. package/dist/ezui/p-b43fcdb6.js +0 -1
  979. package/dist/ezui/p-b5d88625.entry.js +0 -1
  980. package/dist/ezui/p-bcf0460e.entry.js +0 -1
  981. package/dist/ezui/p-be4b042f.entry.js +0 -1
  982. package/dist/ezui/p-ca4c015a.entry.js +0 -1
  983. package/dist/ezui/p-d6f50207.entry.js +0 -1
  984. package/dist/ezui/p-d892e4c5.entry.js +0 -1
  985. package/dist/ezui/p-dcb7275b.entry.js +0 -1
  986. package/dist/ezui/p-dcd6a163.entry.js +0 -1
  987. package/dist/ezui/p-dcde2e69.entry.js +0 -1
  988. package/dist/ezui/p-ddf856db.entry.js +0 -1
  989. package/dist/ezui/p-df6173c8.entry.js +0 -1
  990. package/dist/ezui/p-eb0cfd29.entry.js +0 -1
  991. package/dist/ezui/p-fed3f5fe.entry.js +0 -1
  992. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +0 -91
  993. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +0 -95
  994. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +0 -101
  995. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +0 -219
  996. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +0 -29
  997. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +0 -2
  998. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +0 -189
  999. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +0 -29
  1000. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +0 -9
  1001. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +0 -2
  1002. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +0 -4
  1003. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +0 -2
  1004. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +0 -3
  1005. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +0 -91
  1006. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +0 -7
  1007. package/dist/types/components/ez-image-input/ez-image-input.d.ts +0 -43
  1008. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +0 -43
  1009. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +0 -4
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s,H as e,g as h}from"./p-23a36bb6.js";import{C as a}from"./p-ec7db713.js";import{ObjectUtils as r,StringUtils as o,ElementIDUtils as l}from"@sankhyalabs/core";import{A as n}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-88a115b3.js";const p=class{constructor(s){i(this,s),this.ezChange=t(this,"ezChange",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._criteria=void 0,this.value=void 0,this.label=void 0,this.enabled=!0,this.errorMessage=void 0,this.size="default",this.optionLoader=void 0,this.contextProperties=void 0,this.showSelectedValue=!0,this.showOptionValue=!0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!1,this.mode="regular",this.classic=!1,this.required=!1,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 i;this._textInput&&(this._textInput.errorMessage=this.errorMessage,!(null===(i=this.errorMessage)||void 0===i?void 0:i.trim())&&this.errorMessage&&this.setInputValue())}getValue(i){return"object"==typeof i?null==i?void 0:i.value:i}validateNewValue(i,t){const s=this.getValue(i),e=this.getValue(t);return!("[object Object]"===s||s===e)}async observeValue(i,t){if(this._textInput&&this.validateNewValue(i,t)){if("string"==typeof i)return void await this.handleValueAsString(i);const t=this.getSelectedOption(i),s=this.getSelectedOption(this._currentValue);this.isDifferentValues(s,t)&&(this._currentValue=t,this.setInputValue(),this.ezChange.emit(null!=t?t:void 0)),this.resetOptions()}}observeOptions(i,t){!i.length&&this.suppressPreLoad||(null==i?void 0:i.join(""))!==(null==t?void 0:t.join(""))&&this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?i=>{let t=setInterval((()=>{this._showLoading||(clearInterval(t),i(this.value))}),100)}:i=>i(this.value))}async setFocus(i){this._textInput&&this._textInput.setFocus(i)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}async handleValueAsString(i){this.getSelectedOption(i)?this.setInputValue():(await this.loadDescriptionValue(i),this._currentValue&&(this.setInputValue(),this.ezChange.emit(this.value),this._currentValue=this.value))}isDifferentValues(i,t){return r.objectToString(i||{})!==r.objectToString(t||{})}getFormattedText(i){if(null==i)return;let t=this.showSelectedValue&&null!=i.value?i.label?`${i.value} - ${i.label}`:i.value:i.label;return t=null==t?void 0:t.replace(new RegExp(this._startHighlightTag,"g"),"").replace(new RegExp(this._endHighlightTag,"g"),""),t}getText(){const i=this.getSelectedOption(this._currentValue),t=this.getFormattedText(i);return u(t)}getSelectedOption(i){return"string"==typeof i||i instanceof String?this._visibleOptions.find((t=>t.value===i)):i?Object.assign(Object.assign({},i),{value:v(null==i?void 0:i.value),label:v(null==i?void 0:i.label)}):i}updateVisibleOptions(){let i=this._source||[];this._visibleOptions=this.suppressEmptyOption?i:[{value:void 0,label:""}].concat(i),this._maxWidthValue=this.getMaxWidthValue()}getMaxWidthValue(){var i;const t=[];return null===(i=this._visibleOptions)||void 0===i||i.forEach((i=>{const s=this.getWidthValue(i.value);t.includes(s)||t.push(s)})),t.length>1?Math.max(...t):0}getWidthValue(i){if(null!=this._itemValueBasis){const t=this._itemValueBasis;if(null!=i)return t.innerHTML=i,t.clientWidth>0?t.clientWidth+2:0;t.innerHTML=""}return 0}showOptions(){this.enabled&&(this.isOptionsVisible()||this._ezPopOverPlusElement.showUnder(this._textInput))}hideOptions(){this._ezPopOverPlusElement.hide()}isOptionsVisible(){return this._ezPopOverPlusElement.opened}selectCurrentOption(i=!0){void 0!==this._preSelection?(this.selectOption(this._visibleOptions[this._preSelection],i),this._preSelection=void 0):this.controlListWithOnlyOne()}updateSource(i){this._startLoading=!1,i instanceof Promise?(this._showLoading=!0,i.then((i=>{this.updateSource(i)})).finally((()=>{this._showLoading=!1})),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(i)?(this._source=i,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1,this.controlEmptySearch(!1))):this.selectOption(i))}clearSource(){this._source=[],this.updateVisibleOptions()}selectOption(i,t=!0){var s,e;const h=this.getSelectedOption(this.value),a=Object.assign(Object.assign({},i),{value:v(null==i?void 0:i.value),label:v(null==i?void 0:i.label)}),r=Object.assign(Object.assign({},a),{value:u(null==a?void 0:a.value),label:u(null==a?void 0:a.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 i=(null==r?void 0:r.value)?r:void 0;this.value=i,this._currentValue=i}else this.setInputValue(),this.resetOptions();this._visibleOptions=[],this.clearSource(),t&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(i,t=""){this._criteria=t,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:i,argument:t},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(i=!0){if(this.suppressInputPersist)return void this.clearSearch();const t=this.getText();(this._textInput.value||"")!==t&&(this._textInput.value=t,i&&(this.errorMessage=null))}clearSearch(){this.value=null,this._currentValue=null,this._textInput.value=""}controlListWithOnlyOne(i=!0){var t,s;const e=null===(t=this._visibleOptions)||void 0===t?void 0:t.filter((i=>""!==i.label&&null!=i.value));if((null==e?void 0:e.length)>0){const t=new RegExp(this._startHighlightTag,"g"),h=new RegExp(this._endHighlightTag,"g");let a=o.decodeHtmlEntities(e[0].label);const r={value:null===(s=e[0].value)||void 0===s?void 0:s.replace(t,"").replace(h,""),label:null==a?void 0:a.replace(t,"").replace(h,"")};this.selectOption(r,i)}}controlEmptySearch(i=!0){var t;(null===(t=this._visibleOptions)||void 0===t?void 0:t.length)?this.controlListWithOnlyOne(i):(this.clearSearch(),n.info(this.i18n("ez-classic-search.emptyList")))}async loadDescriptionValue(i){var t,s,e;if(null==i)return;if((null===(t=this.options)||void 0===t?void 0:t.length)>0)return void this.loadOptionValue(i);const h={mode:this.hideDescriptionInput?d.LOAD_DESCRIPTION:d.PREDICTIVE,argument:i};try{const i=await(null===(s=this.optionLoader)||void 0===s?void 0:s.call(this,h,this.contextProperties));if(null==i)return;i instanceof Promise?i.then((i=>{this.setDescriptionValue(i)})):this.setDescriptionValue(i)}catch(i){throw"WarningException"===(null===(e=null==i?void 0:i.constructor)||void 0===e?void 0:e.name)&&(this.errorMessage=i.message),i}}setDescriptionValue(i){const t=(null==i?void 0:i[0])||i;null!=t&&Object.keys(t).length?(this._currentValue=t?Object.assign(Object.assign({},t),{value:v(t.value),label:v(t.label)}):t,this.value=this._currentValue,this.setTextInputValue()):this.showNoResultMessage()}setTextInputValue(){if(this._textInput&&null==this._textInput.value){if(null==this.value)return;const i="string"==typeof this.value?this.value:this.getFormattedText(this.value);this._textInput.value=u(i)}}loadOptionValue(i){var t;const s=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.value===i));null!=s?this.selectOption(s):this.showNoResultMessage()}async showNoResultMessage(){this.clearSearch(),n.info(this.i18n("ez-classic-search.emptySearch",{field:this.getFieldLabel()}))}getFieldLabel(){var i;return null===(i=this.label)||void 0===i?void 0:i.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 i=this.getFormattedText(this.value);i=u(i),this._textInput.value=i}async componentWillLoad(){if(this.i18n=await c(),void 0===this.options){this.options=[];const i=this.el.querySelectorAll("option");i&&i.forEach((i=>{let t=i.innerText,s=i.getAttribute("value"),e=i.getAttribute("details");s||(s=t),this.options.push({label:t,value:s,details:e}),i.hidden=!0}))}this.updateSource([])}componentDidRender(){var i;null===(i=this._optionsList)||void 0===i||i.querySelectorAll(".item").forEach((i=>{l.addIDInfoIfNotExists(i,"itemSearch")}))}async componentDidLoad(){this._currentValue=this.value,a.applyVarsTextInput(this.el,this._textInput),this._resizeObserver=new ResizeObserver((i=>{window.requestAnimationFrame((()=>{Array.isArray(i)}))})),this._intersectionObserver=new IntersectionObserver((i=>{i.forEach((i=>{!i.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 i,t;null===(i=this._resizeObserver)||void 0===i||i.disconnect(),null===(t=this._intersectionObserver)||void 0===t||t.disconnect()}handleClassicIconClick(i){const{icon:t}=i.detail;"left"!==t?this.clearSearch():this.loadOptions(d.ADVANCED)}buildNumberArgument(i){return this.isTextSearch?NaN:Number(i||void 0)}onTextInputChangeHandler(i){var t;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(i)}),this._deboucingTime));const s=null===(t=i.target.value)||void 0===t?void 0:t.trim(),e=this.buildNumberArgument(s);this._criteria||(this._textInput.value=i.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(i){switch(this._tabPressed=!1,i.ctrlKey&&("f"!==i.key&&"F"!==i.key||(this.loadOptions(d.ADVANCED),i.stopPropagation(),i.stopImmediatePropagation(),i.preventDefault())),i.key){case"ArrowDown":i.stopPropagation(),this.canShowListOptions()&&i.preventDefault(),this.isOptionsVisible()||this.showOptions(),await this._classicSearchList.nextOption();break;case"ArrowUp":i.stopPropagation(),this.canShowListOptions()&&i.preventDefault(),await this._classicSearchList.previousOption();break;case"Enter":this.handleEventPropagation(i),this.selectCurrentOption();break;case"Escape":this.cancelPreselection();break;case"Tab":this._tabPressed=!0,this.selectCurrentOption(!1)}}handleEventPropagation(i){this._ezPopOverPlusElement.opened&&this.stopPropagateEnterKeyEvent&&i.stopPropagation()}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}onChangePreSelection(i){this._preSelection=i}async handleClickShowMore(){var i,t;if(!this.optionLoader)return;const s=null!==(t=null===(i=this._textInput)||void 0===i?void 0:i.value)&&void 0!==t?t:"",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":l.getInternalIDInfo("showMore")},s("ez-button",{onClick:async()=>await this.handleClickShowMore(),variant:"tertiary",style:{width:"100%",justifyContent:"center"},label:this.i18n("ez-classic-search.showMore")}))}render(){var i;l.addIDInfoIfNotExists(this.el,"input");const t=!(!(null===(i=this._textInput)||void 0===i?void 0:i.value)||!this._criteria&&!this.value)||this.ensureClearButtonVisible;return s(e,null,s("ez-classic-input",{"data-element-id":l.getInternalIDInfo("textInput"),class:this.suppressSearch?"suppressed-search-input":"",ref:i=>this._textInput=i,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:i=>this.onTextInputChangeHandler(i),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:i=>this.keyDownHandler(i),label:this.label,helpText:this.canShowError?this.errorMessage:void 0,state:this.errorMessage&&this.canShowError?"error":"default",size:this.size,placeholder:this.alternativePlaceholder,leftIconName:"search",leftIconClickable:!0,rightIconName:t?"close":null,rightIconClickable:!0,required:this.required,onIconClick:i=>this.handleClassicIconClick(i),onEzChange:i=>i.stopPropagation()}),s("ez-popover-plus",{ref:i=>this._ezPopOverPlusElement=i,autoClose:!1,overlayType:"none",useAnchorSize:!0,anchorElement:[this._textInput,this.el],"data-element-id":this.el.getAttribute("data-element-id"),onEzVisibilityChange:i=>i.stopPropagation()},s("div",null,s("classic-search-list",{ref:i=>this._classicSearchList=i,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-classic-search.emptyList"),canShowListOptions:this.canShowListOptions(),value:this.value,showOptionValue:this.showOptionValue,preSelection:this._preSelection,onChangeValue:({detail:i})=>this.selectOption(i),onChangePreSelection:({detail:i})=>this.onChangePreSelection(i)}),this.renderShowMore())))}get el(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};p.style=":host{--ez-classic-search--height:42px;--ez-classic-search--width:100%;--ez-classic-search__icon--width:48px;--ez-classic-search--border-radius:var(--border--radius-medium, 12px);--ez-classic-search--border-radius-small:var(--border--radius-small, 6px);--ez-classic-search--font-size:var(--text--medium, 14px);--ez-classic-search--font-family:var(--font-pattern, Arial);--ez-classic-search--font-weight--large:var(--text-weight--large, 500);--ez-classic-search--font-weight--medium:var(--text-weight--medium, 400);--ez-classic-search--background-color--xlight:var(--background--xlight, #fff);--ez-classic-search--background-medium:var(--background--medium, #f0f3f7);--ez-classic-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-classic-search__input--background-color:var(--background--medium, #e0e0e0);--ez-classic-search__input--border:var(--border--medium, 2px solid);--ez-classic-search__input--border-color:var(--ez-classic-search__input--background-color);--ez-classic-search__input--focus--border-color:var(--color--primary, #008561);--ez-classic-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-classic-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-classic-search__input--error--border-color:#CC2936;--ez-classic-search__btn--color:var(--title--primary, #2B3A54);--ez-classic-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-classic-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-classic-search__label--color:var(--title--primary, #2B3A54);--ez-classic-search--space--medium:var(--space--medium, 12px);--ez-classic-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-classic-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-classic-input__input--border-color:var(--color--strokes, #dce0e8);--ez-classic-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-classic-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-classic-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-classic-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-classic-search__btn-disabled--color)}.btn:hover{color:var(--ez-classic-search__btn-hover--color)}.btn__close{visibility:hidden}ez-classic-input:hover .btn__close,ez-classic-input:focus .btn__close{visibility:visible}";export{p as ez_classic_search}
@@ -1 +0,0 @@
1
- import{r,h as e,H as o,g as t}from"./p-23a36bb6.js";import{ElementIDUtils as a}from"@sankhyalabs/core";const d=class{constructor(e){r(this,e),this.color="default",this.height=void 0,this.width=void 0}componentDidRender(){this._element&&a.addIDInfo(this._element),this._container&&a.addIDInfo(this._container,"empty-card",{id:"container"})}render(){const r=Object.assign(Object.assign({},this.height?{"--ez-empty-card--custom-height":`${this.height}${"number"==typeof this.height?"px":""}`}:{}),this.width?{"--ez-empty-card--custom-width":`${this.width}${"number"==typeof this.width?"px":""}`}:{});return e(o,{style:r},e("div",{ref:r=>this._container=r,class:`card_container ${this.color}`},e("slot",null)))}get _element(){return t(this)}};d.style=":host{--ez-empty-card--width:335px;--ez-empty-card--height:155px;--ez-empty-card--padding:var(--space--24, 24px);--ez-empty-card--border-radius:var(--border--radius-24, 24px);--ez-empty-card--background-color:var(--color--gray-70, #ffffff)}div{width:var(--ez-empty-card--custom-width, var(--ez-empty-card--width));height:var(--ez-empty-card--custom-height, var(--ez-empty-card--height));border-radius:var(--ez-empty-card--border-radius);background-color:var(--ez-empty-card--background-color);padding:var(--ez-empty-card--padding);display:block;overflow:hidden;outline:none;box-shadow:none;border:none;box-sizing:border-box}.gray{--ez-empty-card--background-color:var(--color--gray-80)}.green{--ez-empty-card--background-color:var(--color--ocean-green-90)}.yellow{--ez-empty-card--background-color:var(--color--yellow-100)}.red{--ez-empty-card--background-color:var(--color--red-100)}.petroleum{--ez-empty-card--background-color:var(--color--petroleum-90)}";export{d as ez_empty_card}
@@ -1 +0,0 @@
1
- import{r as l,c as i,h as o,g as e}from"./p-23a36bb6.js";import{ElementIDUtils as t}from"@sankhyalabs/core";import{A as s}from"./p-320c401f.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as a}from"./p-3b7d9f30.js";import"./p-5895e687.js";import"./p-47e4a8ce.js";const r=class{constructor(o){l(this,o),this.ezChange=i(this,"ezChange",7),this.ezRemove=i(this,"ezRemove",7),this.ezSaveEditLabel=i(this,"ezSaveEditLabel",7),this.ezEditLabelMode=i(this,"ezEditLabelMode",7),this._activeEditText=!1,this.value=!1,this.boxBordered=!1,this.label=void 0,this.subtitle=void 0,this.headerSize="small",this.iconPlacement="left",this.headerAlign="left",this.removable=!1,this.editable=!1,this.conditionalSave=void 0}async showHide(){this.value=!this.value}async applyFocusTextEdit(){var l;null===(l=this._refTextEdit)||void 0===l||l.applyFocusSelect()}async cancelEdition(){this._activeEditText=!1,this.ezEditLabelMode.emit(this._activeEditText)}observeCollapsedValue(){this.ezChange.emit(this.value)}getHeaderSize(){const l=this.headerSize&&this.headerSize.toLowerCase(),i=["xsmall","xlarge"].includes(l)?l.replace("x","x-"):l;return["x-small","small","medium","large","x-large"].includes(i)?i:"small"}removeElement(){this._hostElement&&this._hostElement.remove(),this.ezRemove.emit(this)}editLabel(l){l.preventDefault(),l.stopPropagation(),this._activeEditText=!0,this.ezEditLabelMode.emit(this._activeEditText)}async confirmRemove(l){l.stopPropagation();const i=this.i18n("ez-collapsible-box.confirmRemove",{label:this.label});await s.confirm(this.i18n("app.warning"),i)&&this.removeElement()}saveEditionText(l){const{value:i,newValue:o}=l.detail;if(i===o)return void this.cancelEdition();let e=!0;this.conditionalSave&&(e=this.conditionalSave(o)),this.label!==o&&e&&(this.label=o,this._activeEditText=!1,this.ezSaveEditLabel.emit(l.detail),this.ezEditLabelMode.emit(this._activeEditText))}getStyledLabel(){if(null!=this._refLabel)return{fontSize:window.getComputedStyle(this._refLabel).getPropertyValue("font-size"),fontWeight:window.getComputedStyle(this._refLabel).getPropertyValue("font-weight"),fontFamily:window.getComputedStyle(this._refLabel).getPropertyValue("font-family")}}async componentWillLoad(){this.i18n=await a()}componentDidLoad(){t.addIDInfo(this._hostElement)}render(){return o("div",{class:`collapsible-box ${this.boxBordered&&"collapsable-box--bordered"}`},o("div",{class:"collapsible-box__header"},o("button",Object.assign({},this._activeEditText?null:{onClick:()=>{this.showHide()}},{class:"collapsible-box__title collapsible-box__title--"+(this.headerAlign||"left")+("right"===this.iconPlacement?" collapsible-box__title--icon-right":"")+(this.value?" collapsible-box__title--no-margin":"")}),o("ez-icon",{slot:"icon","icon-name":"chevron-right",size:this.getHeaderSize(),class:"collapsible-box__icon collapsible-box__icon--"+this.getHeaderSize()+(this.value?" collapsible-box__icon--collapsed":""),id:"toggleCollapsible"}),this._activeEditText?o("ez-text-edit",{class:"collapsible-box__text-edit",ref:l=>this._refTextEdit=l,value:this.label,styled:this.getStyledLabel(),onSaveEdition:l=>this.saveEditionText(l),onCancelEdition:()=>this.cancelEdition()}):o("label",{class:"collapsible-box__label font--"+this.getHeaderSize(),title:this.label,ref:l=>this._refLabel=l},o("span",null,this.label),this.editable&&o("ez-icon",{slot:"icon","icon-name":"edit",onClick:l=>this.editLabel(l),title:this.i18n("app.edit")}),this.removable&&o("ez-icon",{slot:"icon","icon-name":"delete",onClick:l=>this.confirmRemove(l),title:this.i18n("app.remove")}))),o("slot",{name:"rightSlot"})),o("div",{class:"collapsible-box__content"+(this.value?"":" collapsible-box__content--show")},this.subtitle&&o("div",{class:"subtitle-box__content"},o("label",{class:"subtitle-box__label",title:this.subtitle},o("span",null,this.subtitle))),o("slot",null)))}get _hostElement(){return e(this)}static get watchers(){return{value:["observeCollapsedValue"]}}};r.style=":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--subtitle--font-size:var(--text--medium, 14px);--ez-collapsible-box--subtitle--font-family:var(--font-pattern, 'Roboto');--ez-collapsible-box--subtitle--font-weight:var(--text-weight--medium, 400);--ez-collapsible-box--subtitle--color:var(--text--primary);--ez-collapsible-box--subtitle--margin-bottom:var(--space--medium, 12px);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%;overflow:hidden}.collapsable-box--bordered{border:var(--border--small);border-color:var(--color--strokes);border-radius:var(--border--radius-medium);padding:var(--space--xs)}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:100%;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{display:flex;white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;gap:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.subtitle-box__label{display:flex;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;font-family:var(--ez-collapsible-box--subtitle--font-family);font-size:var(--ez-collapsible-box--subtitle--font-size);font-weight:var(--ez-collapsible-box--subtitle--font-weight);color:var(--ez-collapsible-box--subtitle--color);margin-bottom:var(--ez-collapsible-box--subtitle--margin-bottom)}.subtitle-box__content{width:100%}.collapsible-box__label ez-icon{visibility:hidden;transition:2s all ease-in-out}.collapsible-box__label:hover ez-icon{visibility:visible}.collapsible-box__text-edit{margin-left:6px}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--left{margin-right:auto}.collapsible-box__title--right{margin-left:auto}.collapsible-box__title--center{margin-left:auto;margin-right:auto}.collapsible-box__title--stretch{justify-content:space-between;width:100%}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";export{r as ez_collapsible_box}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,F as s,H as o,g as r}from"./p-23a36bb6.js";import{i as a}from"./p-3b7d9f30.js";import{ArrayUtils as l,ElementIDUtils as h,StringUtils as n}from"@sankhyalabs/core";import{c,f as d,s as p,a as u}from"./p-8ebe11f4.js";import{a as v,r as m}from"./p-40a60148.js";var b;!function(t){t.DATASOURCE_RESULTS="DATASOURCE_RESULTS",t.DATASOURCE_RESULTS_EMPTY="DATASOURCE_RESULTS_EMPTY",t.DATASOURCE_INIT="DATASOURCE_INIT",t.OPTIONS_EMPTY="OPTIONS_EMPTY",t.OPTIONS="OPTIONS"}(b||(b={}));const g=class{constructor(e){t(this,e),this.changeFilteredOptions=i(this,"changeFilteredOptions",7),this.columnName=void 0,this.dataSource=void 0,this.useOptions=!1,this.options=void 0,this.isTextSearch=!1,this.orderSelectedFirst=!0,this.filteredOptions=void 0,this.displayOptions=void 0,this.viewScenario=void 0,this.displayOptionToCheckAllItems=!0}async componentWillLoad(){this.i18n=await a()}async clearFilteredOptions(){this.setInitialScenario(),this.filteredOptions=[],this.searchInput&&await this.searchInput.clearValue(),this.filterInput&&(this.filterInput.value="")}async clearSelection(){this.filteredOptions=[...this.filteredOptions.map((t=>(t.check=!1,t)))],this.searchInput&&await this.searchInput.clearValue(),this.filterInput&&(this.filterInput.value=""),this.changeFilteredOptions.emit(this.filteredOptions)}onChangeUseOptions(){this.setInitialScenario()}onChangeOptions(){this.options&&(this.filteredOptions=this.ordenationByCheckStateAndAlphabetically(this.options)),this.checkInput&&this.changeCheckAllValeuFromFilteredOptions(),this.setInitialScenario()}onChangeFilteredOptions(t){var i;const e=null===(i=this.filterInput)||void 0===i?void 0:i.value;this.displayOptions=e?l.applyStringFilter(e,this.filteredOptions,!0):this.filteredOptions,this.displayOptionToCheckAllItems=this.filteredOptions.length>1,this.checkInput&&this.changeCheckAllValeuFromFilteredOptions(),this.changeFilteredOptions.emit(t)}componentDidLoad(){this.onChangeOptions()}componentDidRender(){this.changeCheckAllValeuFromFilteredOptions()}ordenationByCheckStateAndAlphabetically(t){if(!this.orderSelectedFirst)return t.map((t=>null==t.value||""===t.label?Object.assign(Object.assign({},t),{label:this.i18n("ez-multi-selection-list.empty")}):t));const i=[],e=[];let s;return t.forEach((t=>{null==t.value||""===t.label?s=Object.assign(Object.assign({},t),{label:this.i18n("ez-multi-selection-list.empty")}):t.check?i.push(t):e.push(t)})),(null==s?[]:[s]).concat(null==this.dataSource?l.sortAlphabetically(i):this.dataSource.sortItems(this.columnName,i)).concat(null==this.dataSource?l.sortAlphabetically(e):this.dataSource.sortItems(this.columnName,e))}changeCheckAllValeuFromFilteredOptions(){var t,i,e,s;const o=null===(t=this.filteredOptions)||void 0===t?void 0:t.every((t=>!0===t.check)),r=null===(i=this.filteredOptions)||void 0===i?void 0:i.every((t=>!1===t.check)),a=(null===(e=this.filteredOptions)||void 0===e?void 0:e.some((t=>!1===t.check)))&&(null===(s=this.filteredOptions)||void 0===s?void 0:s.some((t=>!0===t.check)))&&(!o||!r);return this.checkInput&&o?(this.checkInput.indeterminate=!1,void(this.checkInput.value=!0)):this.checkInput&&a?(this.checkInput.indeterminate=!0,void(this.checkInput.value=!1)):this.checkInput&&r?(this.checkInput.indeterminate=!1,void(this.checkInput.value=!1)):void 0}setInitialScenario(){if(this.useOptions)return this.viewScenario=b.OPTIONS,void this.changeCheckAllValeuFromFilteredOptions();this.viewScenario=this.options&&this.options.length>0?b.DATASOURCE_RESULTS:b.DATASOURCE_INIT}async searchWithDataSource(t,i){const{argument:e,mode:s}=t;if("PRELOAD"!==s&&i)return this.dataSource.fetchData(e,i)}async handleSearchOnDataSource(t){var i;if(!t.detail)return;const e=null!==(i=this.filteredOptions)&&void 0!==i?i:[];t.detail&&!e.some((i=>i.value==t.detail.value))&&(this.filteredOptions=this.ordenationByCheckStateAndAlphabetically([...e,t.detail])),this.viewScenario=b.DATASOURCE_RESULTS,await this.searchInput.clearValue()}async handleRemoveItemFromOptions(t){this.filteredOptions=this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter((i=>i.value!==t.value))),0===this.filteredOptions.length&&(this.viewScenario=b.DATASOURCE_INIT),this.searchInput&&await this.searchInput.clearValue()}handleSearchOnOption(t){if(t.detail)return this.displayOptions=l.applyStringFilter(t.detail,this.filteredOptions,!0),void(this.viewScenario=0===this.displayOptions.length?b.OPTIONS_EMPTY:b.OPTIONS);this.displayOptions=this.filteredOptions,this.viewScenario=b.OPTIONS}handleChangeSelectAllItems(t){const i=!!t.detail;this.filteredOptions=this.filteredOptions.map((t=>Object.assign(Object.assign({},t),{check:i})))}handleChangeSelectedItem(t){const{detail:i}=t;this.filteredOptions=this.filteredOptions.map((t=>t.label===i.label?Object.assign(Object.assign({},t),{check:i.check}):t))}buildViewList(t){return e(s,null,this.displayOptionToCheckAllItems&&e("ez-check",{ref:t=>this.checkInput=t,label:this.i18n("ez-multi-selection-list.selectAll"),class:"multi-selection__select-all",onEzChange:this.handleChangeSelectAllItems.bind(this)}),e("ez-list",{class:"multi-selection__list",dataSource:this.displayOptions.map((t=>Object.assign(Object.assign({},t),{id:t.value}))),listMode:"check",hoverFeedback:!0,onEzCheckChange:this.handleChangeSelectedItem.bind(this),itemSlotBuilder:t?this.buildDeleteIconSlot.bind(this):null}))}buildDeleteIconSlot(t){return e("ez-icon",{style:{cursor:"pointer"},iconName:"delete",onClick:()=>this.handleRemoveItemFromOptions(t)})}buildInitViewWithDataSource(){return e("multi-selection-box-message",{message:this.i18n("ez-multi-selection-list.initMessage")})}buildViewEmptyResults(){return e("multi-selection-box-message",{message:this.i18n("ez-multi-selection-list.emptyResults")})}scenarioToDisplay(t){const i={[b.DATASOURCE_INIT]:()=>this.buildInitViewWithDataSource(),[b.DATASOURCE_RESULTS]:()=>this.buildViewList(!0),[b.DATASOURCE_RESULTS_EMPTY]:()=>this.buildViewEmptyResults(),[b.OPTIONS_EMPTY]:()=>this.buildViewEmptyResults(),[b.OPTIONS]:()=>this.buildViewList(!1)}[t];return i?i():void 0}render(){return e(o,null,e("div",{class:"multi-selection"},this.useOptions?e("ez-filter-input",{ref:t=>this.filterInput=t,label:this.i18n("ez-multi-selection-list.search"),onEzChange:this.handleSearchOnOption.bind(this)}):e("ez-search",{class:"multi-selection__input",label:this.i18n("ez-multi-selection-list.search"),ref:t=>this.searchInput=t,suppressEmptyOption:!0,showOptionValue:!1,showSelectedValue:!1,optionLoader:t=>this.searchWithDataSource(t,this.columnName),onEzChange:this.handleSearchOnDataSource.bind(this),isTextSearch:this.isTextSearch}),e("ez-scroll",{class:"multi-selection__content-options"},this.scenarioToDisplay(this.viewScenario))))}static get watchers(){return{useOptions:["onChangeUseOptions"],options:["onChangeOptions"],filteredOptions:["onChangeFilteredOptions"]}}};g.style=".sc-ez-multi-selection-list-h{--ez-check--outter-gap:0px;--ez-multi-selection-default-max-height:calc(100vh - 435px);display:flex;flex-direction:column;box-sizing:border-box;width:var(--ez-multi-selection-default-width, 304px);min-width:0;max-width:100%;height:var(--ez-multi-selection-default-height, 322px);min-height:0;max-height:calc(100vh - 350px)}.multi-selection.sc-ez-multi-selection-list{display:flex;flex-direction:column;height:100%;min-height:0}.multi-selection__input.sc-ez-multi-selection-list{margin-bottom:var(--space--2xs, 8px);flex:0 0 auto}.multi-selection__content-options.sc-ez-multi-selection-list{position:relative;left:-4px;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}.multi-selection__select-all.sc-ez-multi-selection-list{height:var(--space--xl);margin:0 var(--space--small, 6px);flex:0 0 auto}.multi-selection__list.sc-ez-multi-selection-list{max-height:var(--ez-multi-selection-default-max-height);flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:clip}.multi-selection__list.sc-ez-multi-selection-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";const _=class{constructor(e){t(this,e),this.ezVisibilityChange=i(this,"ezVisibilityChange",7),this.autoClose=!0,this.boxWidth="fit-content",this.opened=!1,this.overlayType="light",this.anchorElement=void 0,this.options={horizontalGap:0,verticalGap:0,fromRight:!1},this.useAnchorSize=!1,this.minWidth=150,this.fitInViewport=!0}observeOpened(t,i){t!==i&&(t?this.openPopover():this.hidePopover())}async updatePosition(t,i){this.updateOptionPosition(t,i),await this.updatePositionPopover()}async show(t,i){this.updateOptionPosition(t,i),this.opened=!0}async showUnder(t,i){i&&(this.options=i),this.anchorElement=t,this.opened=!0}async hide(){this.opened=!1}async setOptions(t){Object.assign(this.options,t)}async setAnchorElement(t){this.anchorElement=t}parseSizePixel(t,i){return t?"string"==typeof t?Number(t.replace("px","")):null!=t?t:0:null!=i?i:0}updateOptionPosition(t,i){Object.assign(this.options,{horizontalGap:this.parseSizePixel(i,this.options.horizontalGap),verticalGap:this.parseSizePixel(t,this.options.verticalGap)})}getElement(t){return"string"==typeof t?document.getElementById(t):t}getAnchorElement(){if(!this.anchorElement)return this._host;if(Array.isArray(this.anchorElement)){for(const t of this.anchorElement){const i=this.getElement(t);if(i)return i}return this._host}return this.getElement(this.anchorElement)}async updatePositionPopover(){if(!this._box||!this.opened)return;const t=this.getAnchorElement(),i=[d(),p({padding:5})];this.fitInViewport&&i.push(u({padding:5,apply:({availableWidth:t,availableHeight:i,elements:e})=>{Object.assign(e.floating.style,{maxWidth:`${Math.max(0,t)}px`,maxHeight:`${Math.max(0,i)}px`})}})),await c(t,this._box,{placement:this.options.fromRight?"bottom-end":"bottom-start",middleware:i,strategy:"fixed"}).then((({x:t,y:i,placement:e})=>{const s=e.includes("bottom")?i+this.options.verticalGap:i-this.options.verticalGap,o=e.includes("start")?t+this.options.horizontalGap:t-this.options.horizontalGap;Object.assign(this._box.style,{top:`${s}px`,left:`${o}px`})}))}hidePopover(){this._box&&(this._box.style.display="",this._box.style.maxWidth="",this._box.style.maxHeight="",this._box.style.overflow="",this.hideOverlay(),this.ezVisibilityChange.emit(!1))}async openPopover(){if(this._box&&this.opened){if(this._box.style.display="flex",this._box.style.visibility="hidden",this.useAnchorSize){const t=this.getAnchorElement().getBoundingClientRect().width;this._box.style.width=`${t<this.minWidth?this.minWidth:t}px`}await this.updatePositionPopover(),this.openOverlay(),this.ezVisibilityChange.emit(!0),this._box.style.visibility="visible"}}openOverlay(){this._overlay&&this._overlayIsActive&&(this._overlay.style.display="block")}hideOverlay(){this._overlay&&(this._overlay.style.display="none")}checkStatusOverlay(){return"none"!==this.overlayType||!("none"!==this.overlayType||!this.autoClose)}handlePositionUpdate(){this.opened&&this.updatePositionPopover()}componentWillLoad(){window.addEventListener("scroll",this.handlePositionUpdate.bind(this),!0),window.addEventListener("resize",this.handlePositionUpdate.bind(this),!0)}componentDidLoad(){this._overlayIsActive=this.checkStatusOverlay(),this._resizeObserver=new ResizeObserver(this.updatePositionPopover.bind(this)),this._resizeObserver.observe(this._box),this.openPopover()}disconnectedCallback(){window.removeEventListener("scroll",this.handlePositionUpdate.bind(this),!0),window.removeEventListener("resize",this.handlePositionUpdate.bind(this),!0),this._resizeObserver.disconnect()}render(){return e(o,null,e("div",{ref:t=>this._overlay=t,onClick:()=>this.hide(),class:`popover__overlay popover__overlay--${this.overlayType}`}),e("section",{ref:t=>this._box=t,class:{popover__box:!0,"popover__box--fit-content":"fit-content"===this.boxWidth,"popover__box--full-width":"fit-content"!==this.boxWidth}},e("slot",null)))}get _host(){return r(this)}static get watchers(){return{opened:["observeOpened"]}}};_.style=":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--elevation--100, 100);--ez-popover__box--overlay-z-index:var(--elevation--24, 24);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--ez-popover__box--overlay-z-index)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";const x=class{constructor(e){t(this,e),this.ezVisibilityChange=i(this,"ezVisibilityChange",7),this.autoClose=!0,this.boxWidth="fit-content",this.opened=!1,this.overlayType="light",this.anchorElement=void 0,this.options={horizontalGap:0,verticalGap:0,fromRight:!1},this.useAnchorSize=!1,this.minWidth=150,this.fitInViewport=!0}async observeOpened(t){t&&!this._popOverCore&&this.renderPopoverCore(),this._popOverCore.opened=t}async updatePosition(t,i){var e;await(null===(e=this._popOverCore)||void 0===e?void 0:e.updatePosition(t,i))}async show(t,i){this._popOverCore||this.renderPopoverCore(),await this._popOverCore.show(t,i)}async showUnder(t,i){this._popOverCore||this.renderPopoverCore(),await this._popOverCore.showUnder(t,i)}async hide(){var t;await(null===(t=this._popOverCore)||void 0===t?void 0:t.hide())}async setOptions(t){var i;await(null===(i=this._popOverCore)||void 0===i?void 0:i.setOptions(t))}async setAnchorElement(t){var i;await(null===(i=this._popOverCore)||void 0===i?void 0:i.setAnchorElement(t)),this.anchorElement=t}getFirstElement(t){return Array.isArray(t)&&t.length?t[0]:!Array.isArray(t)&&t.item?t.item(0):null}buildElementId(t){const i=t.filter((t=>!!t));return h.getInternalIDInfo(i.join("_"))}renderPopoverCore(){var t;this._popOverCore=document.createElement("ez-popover-core"),this._popOverCore.opened=this.opened,this._popOverCore.anchorElement=this.anchorElement,this._popOverCore.autoClose=this.autoClose,this._popOverCore.boxWidth=this.boxWidth,this._popOverCore.overlayType=this.overlayType,this._popOverCore.options=this.options,this._popOverCore.useAnchorSize=this.useAnchorSize,this._popOverCore.minWidth=this.minWidth,this._popOverCore.fitInViewport=this.fitInViewport,this._popOverCore.setAttribute("data-element-id",this.buildElementId(["ez-popover-core",this._host.getAttribute("data-element-id")])),this._popOverCore.addEventListener("ezVisibilityChange",(({detail:t})=>{this.ezVisibilityChange.emit(t),this.opened=t}));const i=this.getFirstElement(this._host.children);i?this._popOverCore.appendChild(i):console.warn("O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.");const e=document.body.querySelector("#root"),s=this.getFirstElement(document.body.getElementsByTagName("div"));(null!==(t=null!=e?e:s)&&void 0!==t?t:document.body).appendChild(this._popOverCore)}render(){return e(o,null,e("slot",null))}get _host(){return r(this)}static get watchers(){return{opened:["observeOpened"]}}};x.style=":host{display:none}";const f=class{constructor(i){t(this,i),this.message=void 0}render(){return e("div",{class:"multi-selection__message"},e("span",{class:"multi-selection__text-message"},this.message))}};f.style=".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";const z=class{constructor(e){t(this,e),this.changeValue=i(this,"changeValue",7),this.changePreSelection=i(this,"changePreSelection",7),this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this.MAX_HEIGHT=350,this.HEADER_MENU_HEIGHT=60,this.showLoading=void 0,this.visibleOptions=[],this.textEmptyList=void 0,this.canShowListOptions=void 0,this.value=void 0,this.showOptionValue=!0,this.preSelection=void 0}async nextOption(){const t=void 0===this.preSelection?0:Math.min(this.preSelection+1,this.visibleOptions.length-1);this.changePreSelection.emit(t),this.scrollToOption(this.visibleOptions[t])}async previousOption(){const t=void 0===this.preSelection?0:Math.max(this.preSelection-1,0);this.changePreSelection.emit(t),this.scrollToOption(this.visibleOptions[t])}selectOption(t){const i=Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}),e=Object.assign(Object.assign({},i),{value:m(null==i?void 0:i.value),label:m(null==i?void 0:i.label)});this.changeValue.emit(e)}createOption(t){let{key:i,title:e}=t;const s=new RegExp(this._startHighlightTag,"g"),o=new RegExp(this._endHighlightTag,"g");e=n.decodeHtmlEntities(e);const r={value:null==i?void 0:i.replace(s,"").replace(o,""),label:null==e?void 0:e.replace(s,"").replace(o,"")};this.selectOption(r)}scrollToOption(t){window.requestAnimationFrame((()=>{const i=(null==t?void 0:t.value)?this._optionsList.querySelector(`div#item_${t.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g,"\\$1")}`):void 0;i&&i.scrollIntoView({behavior:"smooth",block:"nearest"})}))}buildItem(t,i){t.label=t.label||t.value;const s={key:t.value,title:t.label,details:t.details};return e("div",{style:{height:"100%"},class:i===this.preSelection?"item preselected":"item",id:`item_${t.value}`,onMouseDown:()=>this.createOption(s),onMouseOver:()=>this.changePreSelection.emit(i)},e("ez-card-item",{item:s,compacted:!0,enableKey:this.showOptionValue}))}componentDidLoad(){this._optionsList&&(this._optionsList.style.maxHeight=`${this.MAX_HEIGHT}px`)}componentDidUpdate(){if(this._optionsList){const t=this._optionsList.getBoundingClientRect();window.innerHeight-t.bottom<0&&this.adjustMaxHeight(t)}}adjustMaxHeight(t){if(this._optionsList){const i=Math.min(t.top-this.HEADER_MENU_HEIGHT,this.MAX_HEIGHT);this._optionsList.style.maxHeight=`${i}px`}}cleanEmptyObjectArray(t){return t.filter((t=>Object.values(t).some((t=>void 0!==t))))}render(){return e(o,null,e("ul",{class:"list-options",ref:t=>this._optionsList=t},!this.showLoading&&0===this.cleanEmptyObjectArray(this.visibleOptions).length&&e("div",{class:"message"},e("span",{class:"message__no-result"},this.textEmptyList)),this.showLoading&&e("div",{class:"message"},e("div",{class:"message__loading"})),this.canShowListOptions&&this.visibleOptions.map(((t,i)=>this.buildItem(t,i)))))}};z.style=":host{--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--small, 6px);--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-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);gap:var(--space--small, 6px)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";export{g as ez_multi_selection_list,_ as ez_popover_core,x as ez_popover_plus,f as multi_selection_box_message,z as search_list}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s,H as o,g as e}from"./p-23a36bb6.js";import{ElementIDUtils as h,KeyboardManager as a}from"@sankhyalabs/core";const c=class{constructor(s){i(this,s),this.ezChange=t(this,"ezChange",7),this.ezBlur=t(this,"ezBlur",7),this.iconClick=t(this,"iconClick",7),this.ezVisibilityChange=t(this,"ezVisibilityChange",7),this.ezType=t(this,"ezType",7),this._keyboardManager=void 0,this._boundHandleDocumentClick=this.handleDocumentClick.bind(this),this.popoverVisible=!1,this.hasSlotContent=!1,this.highlightedIndex=0,this.filteredOptions=[],this.inputValue="",this.value=null,this.label=void 0,this.placeholder=void 0,this.enabled=!0,this.required=!1,this.readonly=!1,this.name=void 0,this.state="default",this.size="default",this.helpText=void 0,this.errorMessage=void 0,this.iconName=void 0,this.titleIcon=void 0,this.iconClickable=!1,this.suppressSearch=!1,this.options=void 0,this.textEmptyOption=void 0,this.suppressEmptyOption=!1}async setFocus(i){var t;await(null===(t=this._inputElem)||void 0===t?void 0:t.setFocus(i))}async setBlur(){var i;await(null===(i=this._inputElem)||void 0===i?void 0:i.setBlur()),await this.hidePopover()}async showPopover(){var i,t,s;if(!this._popoverElem||!this._inputElem||this.popoverVisible)return;this.popoverVisible=!0;const o=null===(t=null===(i=this._inputElem)||void 0===i?void 0:i.shadowRoot)||void 0===t?void 0:t.querySelector(".input-container");await(null===(s=this._popoverElem)||void 0===s?void 0:s.showUnder(null!=o?o:this._inputElem))}async hidePopover(){var i;this.popoverVisible=!1,await(null===(i=this._popoverElem)||void 0===i?void 0:i.hide())}getFullOption(i){return"string"==typeof i?this.options.find((t=>t.value===i)):i}getOptionValue(i){return i?"string"==typeof i?i:i.value:null}compareOptionValues(i,t){return this.getOptionValue(i)===this.getOptionValue(t)}setEmptyValue(){this.value=null,this.inputValue=""}async setValue(i){if(!i||!this.options)return this.setEmptyValue(),void await this.hidePopover();this.compareOptionValues(this.value,i)||(this.getOptionValue(i)?(i=this.getFullOption(i),this.value=i,this.inputValue=i.label):this.setEmptyValue(),this.ezChange.emit(this.value)),await this.hidePopover()}async optionsChanged(){this.filterOptions("")}async valueChanged(i,t){var s;this.compareOptionValues(i,t)||(i?(this.value=this.getFullOption(i),this.inputValue=null===(s=this.value)||void 0===s?void 0:s.label,this.setHighlightedIndexToValue()):(this.inputValue="",this.highlightedIndex=0))}async handleIconClick(i){i.stopPropagation(),i.preventDefault(),"right"===i.detail.icon?this.popoverVisible?await this.hidePopover():await this.showPopover():this.iconClick.emit()}async handleEzChange(i){i.stopPropagation(),this.inputValue=i.detail,!this.popoverVisible&&this.inputValue.length>0&&await this.showPopover(),this.ezType.emit(this.inputValue),this.highlightedIndex=0,this.filterOptions(this.inputValue)}async handleEzBlur(i){i.stopPropagation();const t=this.getFullOption(this.value);(null==t?void 0:t.label)!==this.inputValue&&(this.inputValue=(null==t?void 0:t.label)||""),this.ezBlur.emit(t)}filterOptions(i){if(!this.options)return void(this.filteredOptions=[]);let t=[];if(i&&""!==i.trim()){const s=i.toLowerCase().trim();t=t.concat(this.options.filter((i=>i.label.toLowerCase().includes(s)||i.value.toLowerCase().includes(s))))}else t=t.concat([...this.options]);!this.suppressEmptyOption&&t.length>0&&(t=[{value:null,label:this.textEmptyOption||"Selecione um item"},...t]),this.filteredOptions=t,this.setHighlightedIndexToValue(),this.scrollToHighlightedOption()}scrollToHighlightedOption(){if(this.highlightedIndex<0||!this._listElem)return;const i=this._listElem.children[this.highlightedIndex];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}async selectOption(i){i&&!this.readonly&&this.enabled&&await this.setValue(i)}async handleArrowUp(){var i;this.popoverVisible?((null===(i=this.filteredOptions)||void 0===i?void 0:i.length)||0)<=0||this.highlightedIndex<=0||(this.highlightedIndex=Math.max(0,this.highlightedIndex-1),this.scrollToHighlightedOption()):await this.showPopover()}handleArrowDown(){var i;if(!this.popoverVisible)return void this.showPopover();const t=(null===(i=this.filteredOptions)||void 0===i?void 0:i.length)||0;t<=0||(this.highlightedIndex=Math.min(t-1,this.highlightedIndex+1),this.scrollToHighlightedOption())}async selectCurrentItem(){!this.popoverVisible||this.highlightedIndex<0||(this.hasSlotContent||0===this.filteredOptions.length||this.readonly||!this.enabled?await this.hidePopover():this.filteredOptions&&this.filteredOptions[this.highlightedIndex]&&this.selectOption(this.filteredOptions[this.highlightedIndex]))}handleVisibilityChange(i){this.popoverVisible=i.detail,this.ezVisibilityChange.emit(this.popoverVisible)}checkSlotContent(){const i=this._element.querySelector("slot")||this._element;this.hasSlotContent=i instanceof HTMLSlotElement?i.assignedNodes().length>0:i.children.length>0}setHighlightedIndexToValue(){if(this.value&&this.filteredOptions){const i=this.filteredOptions.findIndex((i=>i.value===this.getOptionValue(this.value)));if(i>=0)return void(this.highlightedIndex=i);this.highlightedIndex=0}}async handleDocumentClick(i){const t=i.target;this._element.contains(t)||this._popoverElem.contains(t)||await this.hidePopover()}addInfoId(){const i={id:"embedded"};this._element&&h.addIDInfo(this._element),this._inputElem&&h.addIDInfo(this._inputElem,"classic-combo-box-input",i),this._popoverElem&&h.addIDInfo(this._popoverElem,"classic-combo-box-popover",i)}async initKeyboardManager(){this._keyboardManager=new a({element:this._element,propagate:!0}),this._keyboardManager.bind("ArrowUp",(()=>this.handleArrowUp()),{propagate:!1}).bind("ArrowDown",(()=>this.handleArrowDown()),{propagate:!1}).bind("Enter",(()=>this.selectCurrentItem()),{propagate:!1}).bind("Tab",(()=>this.selectCurrentItem())).bind("shift+Tab",(()=>this.selectCurrentItem())).bind("Escape",(()=>this.hidePopover()))}async connectedCallback(){await this.initKeyboardManager(),document.addEventListener("mouseup",this._boundHandleDocumentClick)}disconnectedCallback(){this._keyboardManager.unbindAllShortcutKeys(),document.removeEventListener("mouseup",this._boundHandleDocumentClick)}componentWillLoad(){this.filterOptions("")}componentDidLoad(){this.addInfoId(),this.checkSlotContent(),this.value&&(this.inputValue=this.getFullOption(this.value).label,this.setHighlightedIndexToValue())}render(){var i;return s(o,null,s("ez-classic-input",{ref:i=>this._inputElem=i,name:this.name,label:this.label,placeholder:this.placeholder,value:this.inputValue,state:this.state,enabled:this.enabled,required:this.required,size:this.size,readonly:this.readonly||this.suppressSearch,leftIconName:this.iconName,leftIconTooltip:this.titleIcon,leftIconClickable:this.iconClickable,rightIconClickable:!0,helpText:this.helpText,errorMessage:this.errorMessage,rightIconName:this.popoverVisible?"chevron-up":"chevron-down",onIconClick:this.handleIconClick.bind(this),onEzChange:this.handleEzChange.bind(this),onEzFocus:this.showPopover.bind(this),onEzBlur:this.handleEzBlur.bind(this)}),s("ez-popover-core",{ref:i=>this._popoverElem=i,useAnchorSize:!0,onEzVisibilityChange:this.handleVisibilityChange.bind(this),overlayType:"none",options:{verticalGap:2,horizontalGap:0},autoClose:!1},s("slot",{onSlotchange:this.checkSlotContent.bind(this)}),!this.hasSlotContent&&((null===(i=this.filteredOptions)||void 0===i?void 0:i.length)>0?s("ul",{ref:i=>this._listElem=i,tabIndex:-1},this.filteredOptions.map(((i,t)=>{var o;return s("li",{key:null!==(o=i.value)&&void 0!==o?o:"__empty__",value:i.value,class:{highlighted:this.highlightedIndex===t,selected:this.getOptionValue(this.value)===i.value},onMouseDown:()=>this.selectOption(i)},i.label)}))):s("span",{class:"no-results"},"Nenhum resultado encontrado"))))}get _element(){return e(this)}static get watchers(){return{options:["optionsChanged"],value:["valueChanged"]}}};c.style=":host{display:block;box-sizing:border-box;font-family:var(--font--pattern, 'Roboto', Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--gray-500, #494A4E);--ez-classic-combo-box-highlighted-bg-color:var(--color--gray-90, #EAEAEA);--ez-classic-combo-box-max-height:180px;--ez-classic-combo-box-list-bg-color:var(--color--gray-70, #FFFFFF);--ez-classic-combo-box-item-hover-bg-color:var(--color--gray-100, #DEDEDE);--ez-classic-combo-box-selected-bg-color:var(--color--ocean-green-90, #E6F3EF);--ez-classic-combo-box-selected-text-color:var(--color--ocean-green-600, #008561);--ez-classic-combo-box-selected-font-weight:var(--font-weight--medium, 500);--ez-classic-combo-box-item-padding:var(--space--8, 8px) var(--space--4, 4px);--ez-classic-combo-box-item-border-radius:var(--border--radius-8, 8px);--ez-classic-combo-box-list-margin:var(--space--6, 6px);--ez-classic-combo-box-transition-duration:150ms;--ez-classic-combo-box-scrollbar-color:var(--color--gray-300, #C4C4C4);--ez-classic-combo-box-no-results-margin:var(--space--52, 52px) 0;--ez-classic-combo-box-item-text-color:inherit;--ez-classic-combo-box-item-min-height:auto;--ez-classic-combo-box-width:100%;width:var(--ez-classic-combo-box-width)}ul{list-style:none;padding:0;margin:var(--ez-classic-combo-box-list-margin);display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--ez-classic-combo-box-scrollbar-color) transparent;max-height:var(--ez-classic-combo-box-max-height);scroll-behavior:smooth;background-color:var(--ez-classic-combo-box-list-bg-color)}li{cursor:pointer;border-radius:var(--ez-classic-combo-box-item-border-radius);padding:var(--ez-classic-combo-box-item-padding);transition:var(--ez-classic-combo-box-transition-duration) background-color linear;color:var(--ez-classic-combo-box-item-text-color);min-height:var(--ez-classic-combo-box-item-min-height)}li:hover{background-color:var(--ez-classic-combo-box-item-hover-bg-color)}li.highlighted{background-color:var(--ez-classic-combo-box-highlighted-bg-color)}li.selected{background-color:var(--ez-classic-combo-box-selected-bg-color);color:var(--ez-classic-combo-box-selected-text-color);font-weight:var(--ez-classic-combo-box-selected-font-weight)}span.no-results{margin:var(--ez-classic-combo-box-no-results-margin);cursor:default;text-align:center;display:flex;align-items:center;justify-content:center}";export{c as ez_classic_combo_box}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i,H as r,g as s}from"./p-23a36bb6.js";import{StringUtils as a,KeyboardManager as o,ElementIDUtils as l}from"@sankhyalabs/core";import{A as n}from"./p-320c401f.js";import{C as h}from"./p-ec7db713.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";const u=class{constructor(i){e(this,i),this.ezChange=t(this,"ezChange",7),this.ezEmptySearch=t(this,"ezEmptySearch",7),this.SEARCH_DESCRIPTION_TIMEOUT=300,this.INTERVAL_TO_RETRY_ASYNC_VALUE=100,this._ignoreNextValue=!1,this.value=void 0,this.enabled=!0,this.disableCodeInput=!1,this.disableDescriptionInput=!1,this.label=void 0,this.codLabel=void 0,this.hideDescriptionInput=!1,this.canShowError=!0,this.errorMessage=void 0,this.mode="regular",this.contextProperties=void 0,this.optionLoader=void 0,this.showOptionValue=!0,this.stopPropagateEnterKeyEvent=!1,this.autoFocus=!1,this.showSelectedValue=!0,this.suppressEmptyOption=!1,this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.ignoreLimitCharsToSearch=!1,this.suppressSearch=!1,this.suppressPreLoad=!0,this.ensureClearButtonVisible=!1,this.descriptionValue="",this.codeValue="",this.isLoadingDescription=!1,this.searchDescriptionIsOpen=!1,this.visibleOptions=void 0,this.showLoading=!0}async observeValue(e,t){var i;if(this._ignoreNextValue)return void(this._ignoreNextValue=!1);const r=this.normalizeValueToCodeValue(e);if(r===this.normalizeValueToCodeValue(t))return;if(void 0===r)return this.codeValue=void 0,this.descriptionValue=void 0,this.cleanFieldsRef(),void this.ezChange.emit(void 0);this.codeValue=r;let s=!0;try{this.descriptionValue=await this.normalizeCodeToDescriptionValue(e),null==this.descriptionValue&&console.error(`Valor de descrição não encontrado! ${this.label}: ${this.codeValue}`)}catch(e){await n.info(e.message);const t="string"==typeof this.value?this.value:null===(i=this.value)||void 0===i?void 0:i.value;this.ezEmptySearch.emit(t),this.errorMessage=e.message,s=!1,this._ignoreNextValue=!0,this.clearSearch(),console.warn("[EzSearchPlus] Erro ao obter descrição do registro.",e)}this.value=this.buildCurrentValue(),this.ezChange.emit(this.value),s&&(this.errorMessage=null)}canShowLoadSpinDescription(){return this.isLoadingDescription}async setFocus(e){var t,i;this.disableCodeInput?null===(t=this._textInputDescriptionValue)||void 0===t||t.setFocus(e):this._latestFocusedInputElement?this._latestFocusedInputElement.setFocus(e):null===(i=this._textInputCodeValue)||void 0===i||i.setFocus(e)}async getValueAsync(){if(!this.isLoadingDescription){const e=this.buildCurrentValue();return new Promise((t=>t(e)))}return new Promise((e=>{let t=setInterval((()=>{if(!this.isLoadingDescription){clearInterval(t);const i=this.buildCurrentValue();e(i)}}),this.INTERVAL_TO_RETRY_ASYNC_VALUE)}))}async clearValue(){this.clearSearch()}async setBlur(){var e,t;null===(e=this._textInputCodeValue)||void 0===e||e.setBlur(),null===(t=this._textInputDescriptionValue)||void 0===t||t.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async componentWillLoad(){this.i18n=await c(),this.value&&a.isEmpty(this.codeValue)&&await this.observeValue(this.value,void 0)}componentDidLoad(){h.applyVarsTextInput(this.el,this._textInputCodeValue),h.applyVarsTextInput(this.el,this._textInputDescriptionValue)}connectedCallback(){this.initKeyboardManager(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}clearSearch(){this.value=null,this.codeValue=null,this.descriptionValue=null,!this.hideDescriptionInput&&this._textInputDescriptionValue&&(this._textInputDescriptionValue.value=null)}getCodLabel(){var e;return this.hideDescriptionInput?this.label:null!==(e=this.codLabel)&&void 0!==e?e:this.i18n("ez-search-plus.defaultCodeLabel")}async normalizeCodeToDescriptionValue(e){if(!e)return"";if("string"==typeof e)try{if((null==(e=JSON.parse(e))?void 0:e.value)&&!(null==e?void 0:e.label))return await this.loadDescriptionValueByCode(null==e?void 0:e.value)}catch(t){return await this.loadDescriptionValueByCode(e)}return"object"!=typeof e?await this.loadDescriptionValueByCode(e):null==e?void 0:e.label}normalizeValueToCodeValue(e){if(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){return e}return"object"!=typeof e?"number"==typeof e?String(e):e:null==e?void 0:e.value}}async loadDescriptionValueByCode(e){if(!this.optionLoader)return console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined")),"";try{this.isLoadingDescription=!0;const t={mode:d.LOAD_DESCRIPTION,argument:e},i=await this.optionLoader(t);return i?Array.isArray(i)?i[0].label:i.label:""}finally{this.isLoadingDescription=!1}}handleCodeInputFocusOut(){this.cancelSelection(),this.codeValue!=this._textInputCodeValue.value&&(this.value=this._textInputCodeValue.value)}handleSearchClick(){this.loadAdvancedSearch()}async loadAdvancedSearch(){if(!this.optionLoader)return void console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));const e={mode:d.ADVANCED,argument:""};let t;try{t=await this.optionLoader(e,this.contextProperties)}catch(e){}t&&(this.value=t)}buildCurrentValue(){if(!a.isEmpty(this.codeValue))return{value:this.codeValue,label:this.descriptionValue}}async handleTextInputChangeHandler(e){this.searchDescriptionIsOpen||this._popover.showUnder(this.el);const t=e.target.value;await this.debounceLoaderOptions(t)}async debounceLoaderOptions(e){return this._debounceSearch&&clearTimeout(this._debounceSearch),new Promise((t=>{this._debounceSearch=setTimeout((async()=>{await this.processOptionsLoader(e),t()}),this.SEARCH_DESCRIPTION_TIMEOUT)}))}updateKeyOption(e){return Object.assign(Object.assign({},e),{presentationValue:e.value,presentationLabel:e.label})}parseSearchOptions(e=[]){if(Array.isArray(e)){const t=e[0];return t?"label"in t||"value"in t?e.map((e=>this.updateKeyOption(e))):e:[]}return("label"in e||"value"in e)&&this.updateKeyOption(e),[e]}async processOptionsLoader(e){try{this.showLoading=!0;const t={mode:d.PREDICTIVE,argument:e},i=await this.optionLoader(t);this.visibleOptions=this.parseSearchOptions(i)}finally{this.showLoading=!1}}handleSelectItem(e){this.value=e.detail,this._popover.hide(),window.requestAnimationFrame((()=>{var e;null===(e=this._textInputDescriptionValue)||void 0===e||e.setFocus({selectText:!0})}))}async handleArrowUp(){this.isOptionsVisible()&&await this._searchList.previousOption()}async handleArrowDown(){this.isOptionsVisible()&&await this._searchList.nextOption()}async selectCurrentItem(){var e;await(null===(e=this._searchList)||void 0===e?void 0:e.selectCurrentItem())}async cancelSelection(){var e,t,i;const r="object"==typeof this.value?null===(e=this.value)||void 0===e?void 0:e.label:"";this._textInputDescriptionValue&&r&&this._textInputDescriptionValue.value!=r&&(this._textInputDescriptionValue.value=r),await(null===(t=this._searchList)||void 0===t?void 0:t.cancelSelection()),null===(i=this._popover)||void 0===i||i.hide()}async handleInputTab(){await this.cancelSelection()}async handleInputEsc(){var e;await this.cancelSelection(),await(null===(e=this._latestFocusedInputElement)||void 0===e?void 0:e.setFocus({selectText:!0}))}async initKeyboardManager(){this._keyboardManager=new o;const e={element:this.el,propagate:!0};this._keyboardManager.bind("ArrowUp",(()=>this.handleArrowUp()),Object.assign(Object.assign({},e),{propagate:!1})).bind("ArrowDown",(()=>this.handleArrowDown()),Object.assign(Object.assign({},e),{propagate:!1})).bind("Enter",(()=>this.selectCurrentItem()),Object.assign(Object.assign({},e),{propagate:!this.stopPropagateEnterKeyEvent})).bind("Tab",(()=>this.handleInputTab()),e).bind("Escape",(()=>this.handleInputEsc()),e)}disconnectedCallback(){this._keyboardManager.unbind("ArrowUp").unbind("ArrowDown").unbind("Enter").unbind("Tab").unbind("Escape")}isOptionsVisible(){return this._popover.opened}setLatestFocusedInputElement(e){this._latestFocusedInputElement=e}handleCodeInputFocus(){this.setLatestFocusedInputElement(this._textInputCodeValue)}handleDescriptionInputFocus(){this.setLatestFocusedInputElement(this._textInputDescriptionValue)}cleanFieldsRef(){this._textInputCodeValue&&(this._textInputCodeValue.value=null),this._textInputDescriptionValue&&(this._textInputDescriptionValue.value=null)}getRightIconElement(){var e,t;return this.ensureClearButtonVisible||this.value||(null===(e=this._textInputCodeValue)||void 0===e?void 0:e.value)||(null===(t=this._textInputDescriptionValue)||void 0===t?void 0:t.value)?i("button",{class:"btn btn__close",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.clearSearch()},i("ez-icon",{iconName:"close"})):null}getLeftIconElement(){return i("button",{class:"btn",slot:"leftIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handleSearchClick()},this.canShowLoadSpinDescription()?i("div",{class:"message__loading"}):i("ez-icon",{iconName:"search"}))}handleOnEzVisibilityChange(e){e.stopPropagation(),this.searchDescriptionIsOpen=e.detail}render(){return l.addIDInfoIfNotExists(this.el,"input"),i(r,null,i("div",{class:"ez-search-plus__container"},i("ez-text-input",{ref:e=>this._textInputCodeValue=e,class:{"ez-search-plus__code-input":!this.hideDescriptionInput,"ez-search-plus__code-input-no-border":!this.hideDescriptionInput,"ez-search-plus__code-input-full":this.hideDescriptionInput},"data-element-id":l.getInternalIDInfo("codeInput"),"data-slave-mode":"true",enabled:!this.disableCodeInput&&this.enabled,mode:this.mode,label:this.getCodLabel(),canShowError:this.canShowError,hasInvalid:!a.isEmpty(this.errorMessage),errorMessage:this.hideDescriptionInput?this.errorMessage:"",value:this.codeValue,onFocusout:()=>this.handleCodeInputFocusOut(),onFocus:()=>this.handleCodeInputFocus()},this.getLeftIconElement()),!this.hideDescriptionInput&&i("div",{class:"description-input-container"},i("ez-text-input",{ref:e=>this._textInputDescriptionValue=e,tabIndex:-1,class:"ez-search-plus__text-input","data-element-id":l.getInternalIDInfo("textInput"),"data-slave-mode":"true",enabled:!this.disableDescriptionInput&&this.enabled,label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,value:this.descriptionValue,onInput:e=>this.handleTextInputChangeHandler(e),onFocus:()=>this.handleDescriptionInputFocus()},this.getRightIconElement()),i("ez-popover-plus",{ref:e=>this._popover=e,anchorElement:this.el,autoClose:!0,boxWidth:"fit-content",overlayType:"none",useAnchorSize:!0,onEzVisibilityChange:e=>this.handleOnEzVisibilityChange(e),"data-element-id":this.el.getAttribute("data-element-id")},i("ez-search-result-list",{ref:e=>this._searchList=e,showLoading:this.showLoading,visibleOptions:this.visibleOptions,value:this.value,showOptionValue:this.showOptionValue,onChangeValue:e=>this.handleSelectItem(e)})))))}get el(){return s(this)}static get watchers(){return{value:["observeValue"]}}};u.style=":host{--ez-search--height:42px;--ez-search--width:100%;--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__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--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)}.list-container{min-width:var(--ez-search__list-min-width);overflow:auto;position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:350px;min-width:150px;background-color:var(--ez-search--background-color--xlight);border-radius:var(--ez-search--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.list-options{margin-top:0px;box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.preselected{background-color:var(--background--medium)}.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}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}.ez-search-plus__container{display:flex;flex-grow:1;gap:3px}.ez-search-plus__text-input{--ez-text-input--border-top-left-radius:0px;--ez-text-input--border-bottom-left-radius:0px;outline:none}.ez-search-plus__code-input-no-border{--ez-text-input--border-top-right-radius:0px;--ez-text-input--border-bottom-right-radius:0px}.ez-search-plus__code-input{max-width:85px}.ez-search-plus__code-input-full{width:100%}.description-input-container{width:100%;outline:none}";export{u as ez_search_plus}
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as i}from"./p-23a36bb6.js";import"./p-320c401f.js";import{C as s}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"@sankhyalabs/core";import{i as a}from"./p-3b7d9f30.js";import"./p-5895e687.js";import"./p-47e4a8ce.js";const o=class{constructor(e){t(this,e),this.label=void 0,this.enableExpand=!0,this._expanded=!1,this.size=void 0,this.structural=!1,this.outline=!1}toggleExpandItem(){var t,e;this._expanded=!this._expanded,null===(e=null===(t=this.expandButtonRef.shadowRoot)||void 0===t?void 0:t.querySelector("button"))||void 0===e||e.blur()}async componentWillLoad(){this.i18n=await a()}componentDidLoad(){s.applyVarsGrid(this._element,this._slot.children[0])}render(){return e(i,{class:`box_split-item ${this._expanded?"expanded__item":""} ${this.structural?"structural__item":"content__item"}${this.outline?" outline__item":""}`,ref:t=>this._element=t},e("div",{class:"ez-split-item--header"},e("slot",{name:"leftButtons"}),e("div",{class:"ez-split-item--header-title"},this.label&&e("h3",{class:"ez-text ez-text--primary ez-title ez-title--medium ez-margin--small",title:this.label},this.label)),e("div",{class:"ez-split-item--header-buttons"},e("slot",{name:"rightButtons"}),this.enableExpand&&e("ez-button",{ref:t=>this.expandButtonRef=t,size:"small",mode:"icon",iconName:"expand",class:"ez-button--tertiary",onClick:()=>this.toggleExpandItem(),title:this.i18n(this._expanded?"app.collapse":"app.expand")}))),e("div",{class:"ez-split-item--content grid_height-0",ref:t=>this._slot=t},e("slot",null)))}};o.style=".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow--xsmall);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-title{flex:1;white-space:nowrap;overflow:hidden}.ez-split-item--header-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.ez-split-item--header-buttons{display:flex;align-items:center;max-height:20px}.ez-split-item--content{display:block;height:100%}h3.ez-margin--small{margin-left:var(--space--small)}.structural__item{background:none;box-shadow:none;padding:0;margin:0;border:0}.content__item{margin:var(--space--extra-small);width:calc(100% - 2*(var(--space--extra-small)));height:calc(100% - 2*(var(--space--extra-small)))}.box_split-item.outline__item{background:none;box-shadow:none;border:1px solid var(--color--strokes, #E1E2E5);border-radius:var(--border--radius-medium, 12px)}";export{o as ez_split_item}
@@ -1 +0,0 @@
1
- import{ApplicationContext as e,LangUtils as t}from"@sankhyalabs/core";const i=e=>"string"==typeof e,o=()=>{let e,t;const i=new Promise(((i,o)=>{e=i,t=o}));return i.resolve=e,i.reject=t,i},a=e=>null==e?"":""+e,r=/###/g,s=e=>e&&e.indexOf("###")>-1?e.replace(r,"."):e,n=e=>!e||i(e),l=(e,t,o)=>{const a=i(t)?t.split("."):t;let r=0;for(;r<a.length-1;){if(n(e))return{};const t=s(a[r]);!e[t]&&o&&(e[t]=new o),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return n(e)?{}:{obj:e,k:s(a[r])}},u=(e,t,i)=>{const{obj:o,k:a}=l(e,t,Object);if(void 0!==o||1===t.length)return void(o[a]=i);let r=t[t.length-1],s=t.slice(0,t.length-1),n=l(e,s,Object);for(;void 0===n.obj&&s.length;)r=`${s[s.length-1]}.${r}`,s=s.slice(0,s.length-1),n=l(e,s,Object),n&&n.obj&&void 0!==n.obj[`${n.k}.${r}`]&&(n.obj=void 0);n.obj[`${n.k}.${r}`]=i},c=(e,t)=>{const{obj:i,k:o}=l(e,t);if(i)return i[o]},d=(e,t,i)=>{const o=c(e,i);return void 0!==o?o:c(t,i)},h=(e,t,o)=>{for(const a in t)"__proto__"!==a&&"constructor"!==a&&(a in e?i(e[a])||e[a]instanceof String||i(t[a])||t[a]instanceof String?o&&(e[a]=t[a]):h(e[a],t[a],o):e[a]=t[a]);return e},p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const g=e=>i(e)?e.replace(/[&<>"'\/]/g,(e=>m[e])):e,f=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}(20),b=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const o=t.split(i);let a=e;for(let e=0;e<o.length;){if(!a||"object"!=typeof a)return;let t,r="";for(let s=e;s<o.length;++s)if(s!==e&&(r+=i),r+=o[s],t=a[r],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<o.length-1)continue;e+=s-e+1;break}a=t}return a},y=e=>e&&e.replace("_","-"),x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class S{constructor(e){this.init(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,o,a){return a&&!this.debug?null:(i(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new S(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new S(this.logger,e)}}var w=new S;class C{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,o]=e;for(let e=0;e<o;e++)t(...i)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[o,a]=t;for(let t=0;t<a;t++)o.apply(o,[e,...i])}))}}class P extends C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,s=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let n;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],o&&(Array.isArray(o)?n.push(...o):i(o)&&r?n.push(...o.split(r)):n.push(o)));const l=c(this.data,n);return!l&&!t&&!o&&e.indexOf(".")>-1&&(e=n[0],t=n[1],o=n.slice(2).join(".")),!l&&s&&i(o)?b(this.data&&this.data[e]&&this.data[e][t],o,r):l}addResource(e,t,i,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const r=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let s=[e,t];i&&(s=s.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(s=e.split("."),o=t,t=s[1]),this.addNamespaces(t),u(this.data,s,o),a.silent||this.emit("added",e,t,i,o)}addResources(e,t,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const a in o)(i(o[a])||Array.isArray(o[a]))&&this.addResource(e,t,a,o[a],{silent:!0});a.silent||this.emit("added",e,t,o)}addResourceBundle(e,t,i,o,a){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),o=i,i=t,t=s[1]),this.addNamespaces(t);let n=c(this.data,s)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?h(n,i,a):n={...n,...i},u(this.data,s,n),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var z={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,o,a){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,i,o,a))})),t}};const L={};class N extends C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i,o;super(),i=e,o=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{i[e]&&(o[e]=i[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=w.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){if(null==e)return!1;const t=this.resolve(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}});return t&&void 0!==t.res}extractFromKey(e,t){let o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");const a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const s=o&&e.indexOf(o)>-1,n=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,i)=>{t=t||"",i=i||"";const o=f.filter((e=>t.indexOf(e)<0&&i.indexOf(e)<0));if(0===o.length)return!0;const a=v.getRegExp(`(${o.map((e=>"?"===e?"\\?":e)).join("|")})`);let r=!a.test(e);if(!r){const t=e.indexOf(i);t>0&&!a.test(e.substring(0,t))&&(r=!0)}return r})(e,o,a));if(s&&!n){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(r)?[r]:r};const s=e.split(o);(o!==a||o===a&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(a)}return{key:e,namespaces:i(r)?[r]:r}}translate(e,t,o){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:n}=this.extractFromKey(e[e.length-1],t),l=n[n.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${s}`}return a?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:s}const d=this.resolve(e,t);let h=d&&d.res;const p=d&&d.usedKey||s,m=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),f=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,b=!i(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&b&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||i(f)&&Array.isArray(h))if(v&&i(f)&&Array.isArray(h))h=h.join(f),h&&(h=this.extendTranslation(h,e,t,o));else{let a=!1,n=!1;const c=void 0!==t.count&&!i(t.count),p=N.hasDefaultValue(t),m=c?this.pluralResolver.getSuffix(u,t.count,t):"",g=t.ordinal&&c?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",f=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),v=f&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${m}`]||t[`defaultValue${g}`]||t.defaultValue;!this.isValidLookup(h)&&p&&(a=!0,h=v),this.isValidLookup(h)||(n=!0,h=s);const b=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:h,y=p&&v!==h&&this.options.updateMissing;if(n||a||y){if(this.logger.log(y?"updateKey":"missingKey",u,l,s,y?v:h),r){const e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t<i.length;t++)e.push(i[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const o=(e,i,o)=>{const a=p&&o!==h?o:b;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,i,a,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,i,a,y,t),this.emit("missingKey",e,l,i,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const i=this.pluralResolver.getSuffixes(e,t);f&&t[`defaultValue${this.options.pluralSeparator}zero`]&&i.indexOf(`${this.options.pluralSeparator}zero`)<0&&i.push(`${this.options.pluralSeparator}zero`),i.forEach((i=>{o([e],s+i,t[`defaultValue${i}`]||v)}))})):o(e,s,v))}h=this.extendTranslation(h,e,t,d,o),n&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${s}`),(n||a)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,a?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...t,ns:n}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(r){const e=Array.isArray(h),i=e?[]:{},o=e?m:p;for(const e in h)if(Object.prototype.hasOwnProperty.call(h,e)){const a=`${o}${r}${e}`;i[e]=this.translate(a,{...t,joinArrays:!1,ns:n}),i[e]===a&&(i[e]=h[e])}h=i}}return a?(d.res=h,d.usedParams=this.getUsedParamsDetails(t),d):h}extendTranslation(e,t,o,a,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const n=i(e)&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(n){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let u=o.replace&&!i(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,o.lng||this.language||a.usedLng,o),n){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(o.nest=!1)}!o.lng&&"v1"!==this.options.compatibilityAPI&&a&&a.res&&(o.lng=this.language||a.usedLng),!1!==o.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return r&&r[0]===i[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${t[0]}`),null):s.translate(...i,t)}),o)),o.interpolation&&this.interpolator.reset()}const n=o.postProcess||this.options.postProcess,l=i(n)?[n]:n;return null!=e&&l&&l.length&&!1!==o.applyPostProcessor&&(e=z.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let t,o,a,r,s,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,n),u=l.key;o=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!i(n.count),h=d&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==n.context&&(i(n.context)||"number"==typeof n.context)&&""!==n.context,m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(s=e,!L[`${m[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(L[`${m[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach((i=>{if(this.isValidLookup(t))return;r=i;const o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,i,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(i,n.count,n));const t=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(o.push(u+e),n.ordinal&&0===e.indexOf(a)&&o.push(u+e.replace(a,this.options.pluralSeparator)),h&&o.push(u+t)),p){const i=`${u}${this.options.contextSeparator}${n.context}`;o.push(i),d&&(o.push(i+e),n.ordinal&&0===e.indexOf(a)&&o.push(i+e.replace(a,this.options.pluralSeparator)),h&&o.push(i+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(a=s,t=this.getResource(i,e,s,n))})))}))})),{res:t,usedKey:o,exactUsedKey:a,usedLng:r,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,o):this.resourceStore.getResource(e,t,i,o)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!i(e.replace);let a=o?e.replace:e;if(o&&void 0!==e.count&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!o){a={...a};for(const e of t)delete a[e]}return a}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}const A=e=>e.charAt(0).toUpperCase()+e.slice(1);class R{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}getScriptPartFromCode(e){if(!(e=y(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=y(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map((e=>e.toLowerCase())):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=A(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=A(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=A(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const i=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(i)||(t=i)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find((e=>e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:e.indexOf("-")>0&&i.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}toResolveHierarchy(e,t){const o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],r=e=>{e&&(this.isSupportedCode(e)?a.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):i(e)&&r(this.formatLanguageCode(e)),o.forEach((e=>{a.indexOf(e)<0&&r(this.formatLanguageCode(e))})),a}}let k=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],T={1:e=>Number(e>1),2:e=>Number(1!=e),3:()=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const E=["v1","v2","v3"],M=["v4"],$={zero:0,one:1,two:2,few:3,many:4,other:5};class O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=w.create("pluralResolver"),this.options.compatibilityJSON&&!M.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return k.forEach((t=>{t.lngs.forEach((i=>{e[i]={numbers:t.nr,plurals:T[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const i=y("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let r;try{r=new Intl.PluralRules(i,{type:o})}catch(i){if(!e.match(/-|_/))return;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[a]=r,r}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){const t=this.getRule(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}getPluralFormsOfKey(e,t){return this.getSuffixes(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(((e,t)=>$[e]-$[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):i.numbers.map((i=>this.getSuffix(e,i,t))):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.getRule(e,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:this.getSuffixRetroCompatible(o,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const i=e.plurals(e.noAbs?t:Math.abs(t));let o=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?`_plural_${o.toString()}`:a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!E.includes(this.options.compatibilityJSON)}}const I=function(e,t,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=d(e,t,o);return!s&&r&&i(o)&&(s=b(e,o,a),void 0===s&&(s=b(t,o,a))),s},F=e=>e.replace(/\$/g,"$$$$");class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=w.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:i,useRawValueToEscape:o,prefix:a,prefixEscaped:r,suffix:s,suffixEscaped:n,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:f,nestingOptionsSeparator:v,maxReplaces:b,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==o&&o,this.prefix=a?p(a):r||"{{",this.suffix=s?p(s):n||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?p(d):h||p("$t("),this.nestingSuffix=m?p(m):f||p(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,o,r){let s,n,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const i=I(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,o,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),a=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(I(t,u,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,o,{...r,...t,interpolationkey:a})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>F(e)},{regex:this.regexp,safeValue:e=>F(this.escapeValue?this.escape(e):e)}].forEach((t=>{for(l=0;s=t.regex.exec(e);){const o=s[1].trim();if(n=c(o),void 0===n)if("function"==typeof d){const t=d(e,s,r);n=i(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,o))n="";else{if(h){n=s[0];continue}this.logger.warn(`missed to pass in variable ${o} for interpolating ${e}`),n=""}else i(n)||this.useRawValueToEscape||(n=a(n));const u=t.safeValue(n);if(e=e.replace(s[0],u),h?(t.regex.lastIndex+=n.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}})),e}nest(e,t){let o,r,s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=(e,t)=>{const i=this.nestingOptionsSeparator;if(e.indexOf(i)<0)return e;const o=e.split(new RegExp(`${i}[ ]*{`));let a=`{${o[1]}`;e=o[0],a=this.interpolate(a,s);const r=a.match(/'/g),n=a.match(/"/g);(r&&r.length%2==0&&!n||n.length%2!=0)&&(a=a.replace(/'/g,'"'));try{s=JSON.parse(a),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${a}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let u=[];s={...n},s=s.replace&&!i(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){const e=o[1].split(this.formatSeparator).map((e=>e.trim()));o[1]=e.shift(),u=e,c=!0}if(r=t(l.call(this,o[1].trim(),s),s),r&&o[0]===e&&!i(r))return r;i(r)||(r=a(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),r=""),c&&(r=u.reduce(((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()})),r.trim())),e=e.replace(o[0],r),this.regexp.lastIndex=0}return e}}const j=e=>{const t={};return(i,o,a)=>{let r=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(r={...r,[a.interpolationkey]:void 0});const s=o+JSON.stringify(r);let n=t[s];return n||(n=e(y(o),a),t[s]=n),n(i)}};class B{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=w.create("formatter"),this.options=e,this.formats={number:j(((e,t)=>{const i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)})),currency:j(((e,t)=>{const i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)})),datetime:j(((e,t)=>{const i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)})),relativetime:j(((e,t)=>{const i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")})),list:j(((e,t)=>{const i=new Intl.ListFormat(e,{...t});return e=>i.format(e)}))},this.init(e)}init(e){this.formatSeparator=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=j(t)}format(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find((e=>e.indexOf(")")>-1))){const e=a.findIndex((e=>e.indexOf(")")>-1));a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce(((e,t)=>{const{formatName:a,formatOptions:r}=(e=>{let t=e.toLowerCase().trim();const i={};if(e.indexOf("(")>-1){const o=e.split("(");t=o[0].toLowerCase().trim();const a=o[1].substring(0,o[1].length-1);"currency"===t&&a.indexOf(":")<0?i.currency||(i.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?i.range||(i.range=a.trim()):a.split(";").forEach((e=>{if(e){const[t,...o]=e.split(":"),a=o.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();i[r]||(i[r]=a),"false"===a&&(i[r]=!1),"true"===a&&(i[r]=!0),isNaN(a)||(i[r]=parseInt(a,10))}}))}return{formatName:t,formatOptions:i}})(t);if(this.formats[a]){let t=e;try{const s=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{};t=this.formats[a](e,s.locale||s.lng||o.locale||o.lng||i,{...r,...o,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e}),e)}}class q extends C{constructor(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=w.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(e,t,i,o){const a={},r={},s={},n={};return e.forEach((e=>{let o=!0;t.forEach((t=>{const s=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===r[s]&&(r[s]=!0):(this.state[s]=1,o=!1,void 0===r[s]&&(r[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===n[t]&&(n[t]=!0)))})),o||(s[e]=!0)})),(Object.keys(a).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(r),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(n)}}loaded(e,t,i){const o=e.split("|"),a=o[0],r=o[1];t&&this.emit("failedLoading",a,r,t),!t&&i&&this.store.addResourceBundle(a,r,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);const s={};this.queue.forEach((i=>{((e,t,i)=>{const{obj:o,k:a}=l(e,t,Object);o[a]=o[a]||[],o[a].push(i)})(i.loaded,[a],r),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach((e=>{s[e]||(s[e]={});const t=i.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!0)}))})),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((e=>!e.done))}read(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:i,tried:o,wait:a,callback:r});this.readingCalls++;const s=(s,n)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&n&&o<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,i,o+1,2*a,r)}),a):r(s,n)},n=this.backend[i].bind(this.backend);if(2!==n.length)return n(e,t,s);try{const i=n(e,t);i&&"function"==typeof i.then?i.then((e=>s(null,e))).catch(s):s(null,i)}catch(e){s(e)}}prepareLoading(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);const r=this.queueLoad(e,t,o,a);if(!r.toLoad.length)return r.pending.length||a(),null;r.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=e.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,((i,r)=>{i&&this.logger.warn(`${t}loading namespace ${a} for language ${o} failed`,i),!i&&r&&this.logger.log(`${t}loaded namespace ${a} for language ${o}`,r),this.loaded(e,i,r)}))}saveMissing(e,t,i,o,a){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=i&&""!==i){if(this.backend&&this.backend.create){const n={...r,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let a;a=5===l.length?l(e,t,i,o,n):l(e,t,i,o),a&&"function"==typeof a.then?a.then((e=>s(null,e))).catch(s):s(null,a)}catch(e){s(e)}else l(e,t,i,o,s,n)}e&&e[0]&&this.store.addResource(e[0],t,i,o)}}}const U=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const i=e[3]||e[2];Object.keys(i).forEach((e=>{t[e]=i[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),V=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),W=()=>{};class G extends C{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var i;if(super(),this.options=V(e),this.services={},this.logger=w,this.modules={external:[]},i=this,Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((e=>{"function"==typeof i[e]&&(i[e]=i[e].bind(i))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(a=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(i(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=U();this.options={...r,...this.options,...V(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const s=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;w.init(this.modules.logger?s(this.modules.logger):null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=B);const i=new R(this.options);this.store=new P(this.options.resources,this.options);const o=this.services;o.logger=w,o.resourceStore=this.store,o.languageUtils=i,o.pluralResolver=new O(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=s(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new D(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new q(s(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];e.emit(t,...o)})),this.modules.languageDetector&&(o.languageDetector=s(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=s(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new N(this.services,this.options),this.translator.on("*",(function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];e.emit(t,...o)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,a||(a=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const n=o(),l=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),n.resolve(t),a(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),n}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const o=i(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],i=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>i(e))),this.options.preload&&this.options.preload.forEach((e=>i(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,i){const a=o();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=W),this.services.backendConnector.reload(e,t,(e=>{a.resolve(),i(e)})),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&z.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var a=this;this.isLanguageChangingTo=e;const r=o();this.emit("languageChanging",e);const s=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},n=(e,i)=>{i?(s(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return a.t(...arguments)})),t&&t(e,(function(){return a.t(...arguments)}))},l=t=>{e||t||!this.services.languageDetector||(t=[]);const o=i(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);o&&(this.language||s(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(o)),this.loadResources(o,(e=>{n(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),r}getFixedT(e,t,o){var a=this;const r=function(e,t){let i;if("object"!=typeof t){for(var s=arguments.length,n=new Array(s>2?s-2:0),l=2;l<s;l++)n[l-2]=arguments[l];i=a.options.overloadTranslationOptionHandler([e,t].concat(n))}else i={...t};i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||o||r.keyPrefix);const u=a.options.keySeparator||".";let c;return c=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${u}${e}`)):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,a.t(c,i)};return i(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;const r=(e,t)=>{const i=this.services.backendConnector.state[`${e}|${t}`];return-1===i||0===i||2===i};if(t.precheck){const e=t.precheck(this,r);if(void 0!==e)return e}return!(!this.hasResourceBundle(i,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!r(i,e)||o&&!r(a,e)))}loadNamespaces(e,t){const a=o();return this.options.ns?(i(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}loadLanguages(e,t){const a=o();i(e)&&(e=[e]);const r=this.options.preload||[],s=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return s.length?(this.options.preload=r.concat(s),this.loadResources((e=>{a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new R(U());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new G(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},a=new G(o);return void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e)),["store","services","language"].forEach((e=>{a[e]=this[e]})),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new P(this.store.data,o),a.services.resourceStore=a.store),a.translator=new N(a.services,o),a.translator.on("*",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];a.emit(e,...i)})),a.init(o,t),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=G.createInstance();function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function J(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}function Y(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,J(o.key),o)}}H.createInstance=G.createInstance;var X=[],Z=X.forEach,Q=X.slice;function ee(e){return Z.call(Q.call(arguments,1),(function(t){if(t)for(var i in t)void 0===e[i]&&(e[i]=t[i])})),e}var te=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ie=function(e,t,i){var o=i||{};o.path=o.path||"/";var a=encodeURIComponent(t),r="".concat(e,"=").concat(a);if(o.maxAge>0){var s=o.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");r+="; Max-Age=".concat(Math.floor(s))}if(o.domain){if(!te.test(o.domain))throw new TypeError("option domain is invalid");r+="; Domain=".concat(o.domain)}if(o.path){if(!te.test(o.path))throw new TypeError("option path is invalid");r+="; Path=".concat(o.path)}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(r+="; HttpOnly"),o.secure&&(r+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r},oe={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var i=function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return null}(e.lookupCookie);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*i*1e3)),o&&(a.domain=o),document.cookie=ie(e,encodeURIComponent(t),a)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},ae={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=i.substring(1).split("&"),a=0;a<o.length;a++){var r=o[a].indexOf("=");r>0&&o[a].substring(0,r)===e.lookupQuerystring&&(t=o[a].substring(r+1))}}return t}},re=null,se=function(){if(null!==re)return re;try{re="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){re=!1}return re},ne={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&se()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&se()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},le=null,ue=function(){if(null!==le)return le;try{le="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){le=!1}return le},ce={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&ue()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&ue()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},de={name:"navigator",lookup:function(){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},he={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(t=i.getAttribute("lang")),t}},pe={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof i[e.lookupFromPathIndex])return;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}return t}},me={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,i="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}},ge=!1;try{ge=!0}catch(e){}var fe=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];function ve(){return{order:fe,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}ge||fe.splice(1,1);var be,ye=function(){return e=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)},t=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=ee(t,this.options||{},ve()),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(oe),this.addDetector(ae),this.addDetector(ne),this.addDetector(ce),this.addDetector(de),this.addDetector(he),this.addDetector(pe),this.addDetector(me)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var i=[];return e.forEach((function(e){if(t.detectors[e]){var o=t.detectors[e].lookup(t.options);o&&"string"==typeof o&&(o=[o]),o&&(i=i.concat(o))}})),i=i.map((function(e){return t.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var i=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){i.detectors[t]&&i.detectors[t].cacheUserLanguage(e,i.options)})))}}],t&&Y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();ye.type="languageDetector",function(e){e.PT_BR="pt_BR",e.EN_US="en_US",e.ES_ES="es_ES"}(be||(be={}));const xe={[be.PT_BR]:{translation:{app:{collapse:"Resumir",expand:"Expandir",close:"Fechar",profile:"Perfil",warning:"Aviso",edit:"Editar",remove:"Remover",yes:"Sim",no:"Não",loading:"Carregando",apply:"Aplicar",cancel:"Cancelar",confirm:"Confirmar",ok:"OK",alerts:"Avisos",requiredInfo:" (obrigatório) *"},"ez-upload":{enable:"Arraste e solte ou clique para adicionar arquivos",disable:"Somente leitura",replaceFileTitle:"Substituir arquivo",replaceFileMessage:'Já existe um arquivo chamado "{{fileName}}". Deseja substituí-lo?',maxFilesError:"A quantidade máxima de arquivos é {{maxFiles}}.",emptyFileError:'Erro de permissão: O arquivo "{{fileName}}" não pode ser enviado.',missingUploadUrlError:"Endereço de upload não informado.",maxFileSizeError:"O tamanho máximo dos arquivos é de {{maxSize}}.",uploadErrorTitle:"Enviando arquivo",uploadingMessage:"Há arquivos sendo enviados. Por favor aguarde a conclusão ou cancele o envio."},"ez-image-input":{defaultLabel:"Enviar Imagem",imageAlt:"Imagem carregada",removeImage:"Remover imagem",editImage:"Editar imagem",invalidFileType:"O arquivo selecionado não é uma imagem válida.",fileTooLarge:"A imagem deve ter menos de {{maxSize}}.",imagePreview:"Visualizar Imagem"},"ez-calendar":{month:{0:"Janeiro",1:"Fevereiro",2:"Março",3:"Abril",4:"Maio",5:"Junho",6:"Julho",7:"Agosto",8:"Setembro",9:"Outubro",10:"Novembro",11:"Dezembro"},weekDay:{0:"D",1:"S",2:"T",3:"Q",4:"Q",5:"S",6:"S"},today:"Hoje"},"ez-collapsible-box":{confirmRemove:"Deseja realmente remover o grupo <b>{{label}}</b>?"},"ez-combo-box":{placeholder:"Selecione um item",noResults:"Nenhum resultado encontrado"},"ez-classic-combo-box":{emptyOption:"Selecione um item",noResults:"Nenhum resultado encontrado"},"ez-date-time-input":{invalidDate:"O valor digitado não é uma data e hora válida"},"ez-date-input":{invalidDate:"O valor digitado não é uma data válida"},"ez-classic-date-input":{invalidDate:"O valor digitado não é uma data válida"},"ez-dialog":{confirmButton:"Botão de confirmação ou OK",closeButton:"Botão de fechar ou X"},"ez-double-list":{noItemsAvailable:"Nenhum {{entity}} disponível",noItemsSelected:"Nenhum {{entity}} selecionado",moveAllTo:"Mover todos para {{list}}",moveTo:"Mover para {{list}}",moveToFirstPosition:"Mover para a primeira posição",moveUp:"Mover para cima",moveDown:"Mover para baixo",moveToLastPosition:"Mover para a última posição"},"ez-file-item":{invalidProgress:"O progresso de upload deve ser um número entre 0 e 100."},"ez-record-navigation":{previousRecord:"Registro anterior",nextRecord:"Próximo registro"},"ez-grid-pagination":{cancelPagination:"Cancelar paginação",paginationLabel:"Paginação",firstPage:"Primeira página",lastPage:"Última página",previousPage:"Página anterior",nextPage:"Próxima página",remainingPageLabel:" de {{count}} ou mais",remainingTotalLabel:" de {{total}}",pageCounter:"Página {{currentPage}} de {{totalPages}}",largeLoad:{line1:"Carregando uma grande quantidade de registros",line2:"Recomendamos cancelar a paginação e aplicar filtros para melhorar o desempenho.",line3:"O que deseja fazer com a paginação?",loadAll:"Carregar tudo",continue:"Continuar",cancel:"Cancelar"}},"ez-grid":{filterAppliedSuccess:"Filtro de coluna aplicado com sucesso!",pageLabel:"Página {{currentPage}}",previousPage:"Página anterior",nextPage:"Próxima página",returnToPreviousPage:"Retorna à página anterior.",goToNextPage:"Avança para a próxima página.",nextRecord:"Avança para o próximo registro.",previousRecord:"Retorna ao registro anterior.",searchColumn:"Busca por coluna.",sortAscending:"Ordenar Ascendente",sortDescending:"Ordenar Descendente",pinColumn:"Fixar coluna",unpinColumn:"Desafixar coluna",filter:"Filtrar",columnCantBeOrder:"Coluna não pode ser ordenada",filterColumnHeader:"Filtro da coluna {{columnLabel}}",clearSelection:"Limpar Seleção",page:"Página",more:"mais",to:"para",of:"de",next:"Próximo",last:"Último",first:"Primeiro",previous:"Anterior",loadingOoo:"",selectAll:"Selecionar tudo",searchOoo:"Procurar",blanks:"Vazio",filterOoo:"Filtrar",applyFilter:"Aplicar filtro",equals:"Igual",lessThan:"Menor que",greaterThan:"Maior que",contains:"Contém",startsWith:"Começa com",endsWith:"Termina com",group:"Grupo",columns:"Colunas",rowGroupColumns:"Colunas do grupo de linhas",rowGroupColumnsEmptyMessage:"Colunas do grupo de linhas vazias",valueColumns:"Valores das colunas",pivotMode:"Modo pivô",groups:"Grupos",values:"Valores",pivots:"Pivôs",valueColumnsEmptyMessage:"Valores de colunas vazias",pivotColumnsEmptyMessage:"Pivôs de colunas vazias",toolPanelButton:"Botão de painel de ferramentas",noRowsToShow:"Não há registros para mostrar.",valueAggregation:"Agregar valor",autosizeThiscolumn:"Redimensionar esta coluna",autosizeAllColumns:"Redimensionar todas colunas",groupBy:"Agrupar por",ungroupBy:"Desagrupar por",resetColumns:"Resetar colunas",expandAll:"Expandir tudo",collapseAll:"Contrair tudo",toolPanel:"Painel de ferramentas",export:"Exportar",csvExport:"Exportar para CSV",excelExport:"Exportar para Excel",pinLeft:"Fixar coluna",pinRight:"Fixar a direita",noPin:"Desfixar coluna",sum:"Soma",min:"Mínimo",max:"Máximo",none:"Nenhum",count:"Contagem",average:"Média",copy:"Copiar",copyWithHeaders:"Copiar com cabeçalho",copyWithGroupHeaders:"Copiar com cabeçalhos de grupo",ctrlC:"Ctrl+C",paste:"Colar",ctrlV:"Ctrl+V",labelSearchColumn:"Buscar colunas (Ctrl+F)"},"ez-guide-navigator":{searchGuide:"Buscar guia",hideMenu:"Ocultar menu"},"ez-list":{moveToGroup:"Mover para {{groupName}}"},"ez-modal":{close:"Fechar modal"},"ez-multi-selection-list":{selectAll:"Selecionar todos",search:"Buscar...",empty:"(Vazio)",initMessage:"Selecione os valores a serem filtrados através do campo de busca.",emptyResults:"Nenhum resultado encontrado."},"ez-number-input":{invalidNumber:"O valor digitado não é um número válido"},"ez-pagination":{previousPage:"Página anterior",nextPage:"Próxima página"},"ez-rich-text":{listShortcut:"Aplica estilo de lista ao texto selecionado.",linkShortcut:"Abre popup de link.",imageShortcut:"Abre popup de imagem.",boldShortcut:"Aplica estilo negrito ao texto selecionado.",italicShortcut:"Aplica estilo itálico ao texto selecionado.",underlineShortcut:"Aplica estilo sublinhado ao texto selecionado.",breakLineShortcut:"Aplica quebra de linha.",undoShortcut:"Desfaz a última alteração de texto.",redoShortcut:"Refaz a última alteração de texto.",edit:"Editar",preview:"Pré-visualizar",title:{preview:"Ctrl + P",edit:"Ir para modo edição",undo:"Desfazer (Ctrl + Z)",redo:"Refazer (Ctrl + X)",link:"Inserir link (Ctrl + K)",image:"Inserir imagem (Ctrl + O)",list:"Lista (Ctrl + L)",underline:"Sublinhado (Ctrl + U)",italic:"Itálico (Ctrl + I)",bold:"Negrito (Ctrl + B)"}},"ez-link-builder":{addLinkTitle:"Adicionar link",addLinkSubtitle:"Insira um link no texto para abrir novas páginas.",submit:"Enviar",urlInputLabel:"Insira a URL destino",textInputLabel:"Insira o texto a ser exibido",openInNewPage:"Abrir em uma nova página."},"ez-simple-image-uploader":{uploadTitle:"Upload de imagens",uploadSubtitle:"Envie seus arquivos preenchendo apenas 1 campo por vez.",submit:"Enviar",tooltipMessage:"O arquivo selecionado abaixo será priorizado!",urlInputLabel:"Insira a URL da imagem",orText:"OU",removeFile:"Remover arquivo",dragDropText:"Arraste e solte ou clique para adicionar arquivos",imageAlt:"Imagem",imageTooLarge:"A imagem deve ter menos de {{maxSize}}."},"ez-search":{emptyList:"Nenhum resultado encontrado",emptySearch:"Nenhum resultado de {{field}} encontrado",showMore:"Mostrar mais"},"ez-search-plus":{emptyList:"Nenhum resultado encontrado",optionLoaderNotDefined:"optionLoader não definido",defaultCodeLabel:"Cód."},"ez-classic-search":{emptyList:"Nenhum resultado encontrado",emptySearch:"Nenhum resultado de {{field}} encontrado",showMore:"Mostrar mais"},"ez-classic-search-plus":{emptyList:"Nenhum resultado encontrado",optionLoaderNotDefined:"optionLoader não definido",defaultCodeLabel:"Cód.",clearValue:"Limpar valor"},"ez-sortable-list":{emptyMessage:"Nenhum item na lista",entityLabel:"item",entityLabelPlural:"itens",total:"Total de",search:"Buscar"},"ez-split-button":{moreOptions:"Mais opções"},"ez-text-edit":{emptyFieldWarning:"Não é possível salvar um campo em branco."},"ez-time-input":{invalidTime:"Favor inserir um horário válido."},"ez-classic-time-input":{invalidTime:"Favor inserir um horário válido."},"ez-sidebar":{unPinMenu:"Desafixar menu",pushPinMenu:"Fixar menu",hideMenu:"Recolher menu"},"ez-form":{mainTab:"Principal",labelSearchField:"Buscar campos (Ctrl+F)"},utils:{requiredFieldMessage:"Há pelo menos um campo obrigatório não preenchido.",requiredField:"Essa informação é obrigatória.",selectAllPage:"Selecionar apenas a página atual",loadingAllRecords:"Carregando todos os {{count}} registros",selectAllRecords:"Selecionar todos os {{total}} registros",waitForLoad:"Aguarde o carregamento para selecionar o registro de todas as páginas",allRecordsSelected:"Todos os <strong>{{selectionCount}} registros</strong> da grade estão selecionados.",selectedRecords:"Há <strong>{{selectionCount}} registro{{plural}}</strong> selecionado{{plural}} na grade."},spinner:{loading:"Carregando..."},"ez-scroller":{previousButton:"Anterior",nextButton:"Próximo"}}},[be.EN_US]:{translation:{app:{collapse:"Collapse",expand:"Expand",close:"Close",profile:"Profile",warning:"Warning",edit:"Edit",remove:"Remove",yes:"Yes",no:"No",loading:"Loading",apply:"Apply",cancel:"Cancel",confirm:"Confirm",ok:"OK",alerts:"Alerts",requiredInfo:" (required) *"},"ez-upload":{enable:"Drag and drop or click to add files",disable:"Read only",replaceFileTitle:"Replace file",replaceFileMessage:'A file named "{{fileName}}" already exists. Do you want to replace it?',maxFilesError:"The maximum number of files is {{maxFiles}}.",emptyFileError:'Permission error: The file "{{fileName}}" cannot be uploaded.',missingUploadUrlError:"Upload URL not provided.",maxFileSizeError:"The maximum file size is {{maxSize}}.",uploadErrorTitle:"Uploading file",uploadingMessage:"Files are being uploaded. Please wait for completion or cancel the upload."},"ez-image-input":{defaultLabel:"Upload Image",imageAlt:"Uploaded image",removeImage:"Remove image",editImage:"Edit image",invalidFileType:"The selected file is not a valid image.",fileTooLarge:"The image must be less than {{maxSize}}.",imagePreview:"Image Preview"},"ez-calendar":{month:{0:"January",1:"February",2:"March",3:"April",4:"May",5:"June",6:"July",7:"August",8:"September",9:"October",10:"November",11:"December"},weekDay:{0:"S",1:"M",2:"T",3:"W",4:"T",5:"F",6:"S"},today:"Today"},"ez-collapsible-box":{confirmRemove:"Do you really want to remove the group <b>{{label}}</b>?"},"ez-combo-box":{placeholder:"Select an item",noResults:"No results found"},"ez-classic-combo-box":{emptyOption:"Select an item",noResults:"No results found"},"ez-date-time-input":{invalidDate:"The entered value is not a valid date and time"},"ez-date-input":{invalidDate:"The entered value is not a valid date"},"ez-classic-date-input":{invalidDate:"The entered value is not a valid date"},"ez-dialog":{confirmButton:"Confirm or OK button",closeButton:"Close or X button"},"ez-double-list":{noItemsAvailable:"No {{entity}} available",noItemsSelected:"No {{entity}} selected",moveAllTo:"Move all to {{list}}",moveTo:"Move to {{list}}",moveToFirstPosition:"Move to the first position",moveUp:"Move up",moveDown:"Move down",moveToLastPosition:"Move to the last position"},"ez-file-item":{invalidProgress:"The upload progress must be a number between 0 and 100."},"ez-record-navigation":{previousRecord:"Previous record",nextRecord:"Next record"},"ez-grid-pagination":{cancelPagination:"Cancel pagination",paginationLabel:"Pagination",firstPage:"First page",lastPage:"Last page",previousPage:"Previous page",nextPage:"Next page",remainingPageLabel:" from {{count}} or more",remainingTotalLabel:" from {{total}}",pageCounter:"Page {{currentPage}} from {{totalPages}}",largeLoad:{line1:"Loading a large number of records",line2:"We recommend canceling pagination and applying filters to improve performance.",line3:"What do you want to do with pagination?",loadAll:"Load all",continue:"Continue",cancel:"Cancel"}},"ez-grid":{filterAppliedSuccess:"Column filter applied successfully!",pageLabel:"Page {{currentPage}}",previousPage:"Previous page",nextPage:"Next page",returnToPreviousPage:"Return to the previous page.",goToNextPage:"Move to the next page.",nextRecord:"Move to the next record.",previousRecord:"Return to the previous record.",searchColumn:"Search by column.",sortAscending:"Sort Ascending",sortDescending:"Sort Descending",pinColumn:"Pin column",unpinColumn:"Unpin column",filter:"Filter",columnCantBeOrder:"Column cannot be sorted",filterColumnHeader:"Filter for column {{columnLabel}}",clearSelection:"Clear Selection",page:"Page",more:"more",to:"to",of:"of",next:"Next",last:"Last",first:"First",previous:"Previous",loadingOoo:"",selectAll:"Select all",searchOoo:"Search",blanks:"Blanks",filterOoo:"Filter",applyFilter:"Apply filter",equals:"Equals",lessThan:"Less than",greaterThan:"Greater than",contains:"Contains",startsWith:"Starts with",endsWith:"Ends with",group:"Group",columns:"Columns",rowGroupColumns:"Row group columns",rowGroupColumnsEmptyMessage:"Row group columns empty",valueColumns:"Value columns",pivotMode:"Pivot mode",groups:"Groups",values:"Values",pivots:"Pivots",valueColumnsEmptyMessage:"Value columns empty",pivotColumnsEmptyMessage:"Pivot columns empty",toolPanelButton:"Tool panel button",noRowsToShow:"No rows to show.",valueAggregation:"Aggregate value",autosizeThiscolumn:"Autosize this column",autosizeAllColumns:"Autosize all columns",groupBy:"Group by",ungroupBy:"Ungroup by",resetColumns:"Reset columns",expandAll:"Expand all",collapseAll:"Collapse all",toolPanel:"Tool panel",export:"Export",csvExport:"Export to CSV",excelExport:"Export to Excel",pinLeft:"Pin left",pinRight:"Pin right",noPin:"Unpin column",sum:"Sum",min:"Min",max:"Max",none:"None",count:"Count",average:"Average",copy:"Copy",copyWithHeaders:"Copy with headers",copyWithGroupHeaders:"Copy with group headers",ctrlC:"Ctrl+C",paste:"Paste",ctrlV:"Ctrl+V",labelSearchColumn:"Search columns (Ctrl+F)"},"ez-guide-navigator":{searchGuide:"Search guide",hideMenu:"Hide menu"},"ez-list":{moveToGroup:"Move to {{groupName}}"},"ez-modal":{close:"Close modal"},"ez-multi-selection-list":{selectAll:"Select all",search:"Search...",empty:"(Empty)",initMessage:"Select the values to be filtered through the search field.",emptyResults:"No results found."},"ez-number-input":{invalidNumber:"The entered value is not a valid number"},"ez-pagination":{previousPage:"Previous page",nextPage:"Next page"},"ez-rich-text":{listShortcut:"Applies list style to the selected text.",linkShortcut:"Opens link popup.",imageShortcut:"Opens image popup.",boldShortcut:"Applies bold style to the selected text.",italicShortcut:"Applies italic style to the selected text.",underlineShortcut:"Applies underline style to the selected text.",breakLineShortcut:"Applies line break.",undoShortcut:"Undoes the last text change.",redoShortcut:"Redoes the last text change.",edit:"Edit",preview:"Preview",title:{preview:"Ctrl + P",edit:"Switch to edit mode",undo:"Undo (Ctrl + Z)",redo:"Redo (Ctrl + X)",link:"Insert link (Ctrl + K)",image:"Insert image (Ctrl + O)",list:"List (Ctrl + L)",underline:"Underline (Ctrl + U)",italic:"Italic (Ctrl + I)",bold:"Bold (Ctrl + B)"}},"ez-link-builder":{addLinkTitle:"Add link",addLinkSubtitle:"Insert a link into the text to open new pages.",submit:"Submit",urlInputLabel:"Enter the destination URL",textInputLabel:"Enter the text to display",openInNewPage:"Open in a new page."},"ez-simple-image-uploader":{uploadTitle:"Image Upload",uploadSubtitle:"Upload your files by filling only 1 field at a time.",submit:"Submit",tooltipMessage:"The selected file below will be prioritized!",urlInputLabel:"Enter the image URL",orText:"OR",removeFile:"Remove file",dragDropText:"Drag and drop or click to add files",imageAlt:"Image",imageTooLarge:"The image must be smaller than {{maxSize}}."},"ez-search":{emptyList:"No results found",emptySearch:"No results for {{field}} found",showMore:"Show more"},"ez-search-plus":{emptyList:"No results found",optionLoaderNotDefined:"optionLoader not defined",defaultCodeLabel:"Code"},"ez-classic-search":{emptyList:"No results found",emptySearch:"No results for {{field}} found",showMore:"Show more"},"ez-classic-search-plus":{emptyList:"No results found",optionLoaderNotDefined:"optionLoader not defined",defaultCodeLabel:"Code",clearValue:"Clear value"},"ez-sortable-list":{emptyMessage:"No items in the list",entityLabel:"item",entityLabelPlural:"items",total:"Total of",search:"Search"},"ez-split-button":{moreOptions:"More options"},"ez-text-edit":{emptyFieldWarning:"It is not possible to save an empty field."},"ez-time-input":{invalidTime:"Please enter a valid time."},"ez-classic-time-input":{invalidTime:"Please enter a valid time."},"ez-sidebar":{unPinMenu:"Unpin menu",pushPinMenu:"Pin menu",hideMenu:"Hide menu"},"ez-form":{mainTab:"Main",labelSearchField:"Search fields (Ctrl+F)"},utils:{requiredFieldMessage:"There is at least one required field not filled.",requiredField:"This information is required.",selectAllPage:"Select only the current page",loadingAllRecords:"Loading all {{count}} records",selectAllRecords:"Select all {{total}} records",waitForLoad:"Wait for loading to select records from all pages",allRecordsSelected:"All <strong>{{selectionCount}} records</strong> in the grid are selected.",selectedRecords:"There <strong>{{selectionCount}} record{{plural}}</strong> selected in the grid."},spinner:{loading:"Loading..."},"ez-scroller":{previousButton:"Previous",nextButton:"Next"}}},[be.ES_ES]:{translation:{app:{collapse:"Colapsar",expand:"Expandir",close:"Cerrar",profile:"Perfil",warning:"Aviso",edit:"Editar",remove:"Eliminar",yes:"Sí",no:"No",loading:"Cargando",apply:"Aplicar",cancel:"Cancelar",confirm:"Confirmar",ok:"OK",alerts:"Avisos",requiredInfo:" (obligatorio) *"},"ez-upload":{enable:"Arrastra y suelta o haz clic para subir archivos",disable:"Solo lectura",replaceFileTitle:"Reemplazar archivo",replaceFileMessage:'Ya existe un archivo llamado "{{fileName}}". ¿Desea reemplazarlo?',maxFilesError:"La cantidad máxima de archivos es {{maxFiles}}.",emptyFileError:'Error de permiso: El archivo "{{fileName}}" no puede ser enviado.',missingUploadUrlError:"Dirección de carga no informada.",maxFileSizeError:"El tamaño máximo de los archivos es de {{maxSize}}.",uploadErrorTitle:"Subiendo archivo",uploadingMessage:"Se están subiendo archivos. Por favor, espere a que se complete o cancele la subida."},"ez-image-input":{defaultLabel:"Subir Imagen",imageAlt:"Imagen cargada",removeImage:"Eliminar imagen",editImage:"Editar imagen",invalidFileType:"El archivo seleccionado no es una imagen válida.",fileTooLarge:"La imagen debe tener menos de {{maxSize}}.",imagePreview:"Vista Previa de Imagen"},"ez-calendar":{month:{0:"Enero",1:"Febrero",2:"Marzo",3:"Abril",4:"Mayo",5:"Junio",6:"Julio",7:"Agosto",8:"Septiembre",9:"Octubre",10:"Noviembre",11:"Diciembre"},weekDay:{0:"D",1:"L",2:"M",3:"M",4:"J",5:"V",6:"S"},today:"Hoy"},"ez-collapsible-box":{confirmRemove:"¿Realmente desea eliminar el grupo <b>{{label}}</b>?"},"ez-combo-box":{placeholder:"Seleccione un elemento",noResults:"No se encontraron resultados"},"ez-classic-combo-box":{emptyOption:"Seleccione un elemento",noResults:"No se encontraron resultados"},"ez-date-time-input":{invalidDate:"El valor ingresado no es una fecha y hora válida"},"ez-date-input":{invalidDate:"El valor ingresado no es una fecha válida"},"ez-classic-date-input":{invalidDate:"El valor ingresado no es una fecha válida"},"ez-dialog":{confirmButton:"Botón de confirmación o OK",closeButton:"Botón de cerrar o X"},"ez-double-list":{noItemsAvailable:"No hay {{entity}} disponible",noItemsSelected:"No hay {{entity}} seleccionado",moveAllTo:"Mover todos a {{list}}",moveTo:"Mover a {{list}}",moveToFirstPosition:"Mover a la primera posición",moveUp:"Mover hacia arriba",moveDown:"Mover hacia abajo",moveToLastPosition:"Mover a la última posición"},"ez-file-item":{invalidProgress:"El progreso de carga debe ser un número entre 0 y 100."},"ez-record-navigation":{previousRecord:"Registro anterior",nextRecord:"Siguiente registro"},"ez-grid-pagination":{cancelPagination:"Cancelar paginación",paginationLabel:"Paginación",firstPage:"Primeira página",lastPage:"Última página",previousPage:"Página anterior",nextPage:"Página siguiente",remainingPageLabel:" de {{count}} o más",remainingTotalLabel:" de {{total}}",pageCounter:"Página {{currentPage}} de {{totalPages}}",largeLoad:{line1:"Cargando una gran cantidad de registros",line2:"Recomendamos cancelar la paginación y aplicar filtros para mejorar el rendimiento.",line3:"¿Qué desea hacer con la paginación?",loadAll:"Cargar todo",continue:"Continuar",cancel:"Cancelar"}},"ez-grid":{filterAppliedSuccess:"¡Filtro de columna aplicado con éxito!",pageLabel:"Página {{currentPage}}",previousPage:"Página anterior",nextPage:"Página siguiente",returnToPreviousPage:"Volver a la página anterior.",goToNextPage:"Avanzar a la página siguiente.",nextRecord:"Avanzar al siguiente registro.",previousRecord:"Volver al registro anterior.",searchColumn:"Buscar por columna.",sortAscending:"Ordenar Ascendente",sortDescending:"Ordenar Descendente",pinColumn:"Fijar columna",unpinColumn:"Desafijar columna",filter:"Filtrar",columnCantBeOrder:"La columna no se puede ordenar",filterColumnHeader:"Filtro de la columna {{columnLabel}}",clearSelection:"Limpiar Selección",page:"Página",more:"más",to:"a",of:"de",next:"Siguiente",last:"Último",first:"Primero",previous:"Anterior",loadingOoo:"",selectAll:"Seleccionar todo",searchOoo:"Buscar",blanks:"Vacío",filterOoo:"Filtrar",applyFilter:"Aplicar filtro",equals:"Igual",lessThan:"Menor que",greaterThan:"Mayor que",contains:"Contiene",startsWith:"Empieza con",endsWith:"Termina con",group:"Grupo",columns:"Columnas",rowGroupColumns:"Columnas del grupo de filas",rowGroupColumnsEmptyMessage:"Columnas del grupo de filas vacías",valueColumns:"Valores de las columnas",pivotMode:"Modo pivote",groups:"Grupos",values:"Valores",pivots:"Pivotes",valueColumnsEmptyMessage:"Valores de columnas vacías",pivotColumnsEmptyMessage:"Pivotes de columnas vacías",toolPanelButton:"Botón del panel de herramientas",noRowsToShow:"No hay registros para mostrar.",valueAggregation:"Agregar valor",autosizeThiscolumn:"Redimensionar esta columna",autosizeAllColumns:"Redimensionar todas las columnas",groupBy:"Agrupar por",ungroupBy:"Desagrupar por",resetColumns:"Restablecer columnas",expandAll:"Expandir todo",collapseAll:"Contraer todo",toolPanel:"Panel de herramientas",export:"Exportar",csvExport:"Exportar a CSV",excelExport:"Exportar a Excel",pinLeft:"Fijar a la izquierda",pinRight:"Fijar a la derecha",noPin:"Desfijar columna",sum:"Suma",min:"Mínimo",max:"Máximo",none:"Ninguno",count:"Conteo",average:"Promedio",copy:"Copiar",copyWithHeaders:"Copiar con encabezados",copyWithGroupHeaders:"Copiar con encabezados de grupo",ctrlC:"Ctrl+C",paste:"Pegar",ctrlV:"Ctrl+V",labelSearchColumn:"Buscar columnas (Ctrl+F)"},"ez-guide-navigator":{searchGuide:"Buscar guía",hideMenu:"Ocultar menú"},"ez-list":{moveToGroup:"Mover a {{groupName}}"},"ez-modal":{close:"Cerrar modal"},"ez-multi-selection-list":{selectAll:"Seleccionar todos",search:"Buscar...",empty:"(Vacío)",initMessage:"Seleccione los valores a filtrar a través del campo de búsqueda.",emptyResults:"No se encontraron resultados."},"ez-number-input":{invalidNumber:"El valor ingresado no es un número válido"},"ez-pagination":{previousPage:"Página anterior",nextPage:"Página siguiente"},"ez-rich-text":{listShortcut:"Aplica estilo de lista al texto seleccionado.",linkShortcut:"Abre popup de enlace.",imageShortcut:"Abre popup de imagen.",boldShortcut:"Aplica estilo negrita al texto seleccionado.",italicShortcut:"Aplica estilo cursiva al texto seleccionado.",underlineShortcut:"Aplica estilo subrayado al texto seleccionado.",breakLineShortcut:"Aplica salto de línea.",undoShortcut:"Deshace el último cambio de texto.",redoShortcut:"Rehace el último cambio de texto.",edit:"Editar",preview:"Previsualizar",title:{preview:"Ctrl + P",edit:"Ir al modo de edición",undo:"Deshacer (Ctrl + Z)",redo:"Rehacer (Ctrl + X)",link:"Insertar enlace (Ctrl + K)",image:"Insertar imagen (Ctrl + O)",list:"Lista (Ctrl + L)",underline:"Subrayado (Ctrl + U)",italic:"Cursiva (Ctrl + I)",bold:"Negrita (Ctrl + B)"}},"ez-link-builder":{addLinkTitle:"Agregar enlace",addLinkSubtitle:"Inserte un enlace en el texto para abrir nuevas páginas.",submit:"Enviar",urlInputLabel:"Ingrese la URL de destino",textInputLabel:"Ingrese el texto a mostrar",openInNewPage:"Abrir en una nueva página."},"ez-simple-image-uploader":{uploadTitle:"Subida de imágenes",uploadSubtitle:"Sube tus archivos llenando solo 1 campo a la vez.",submit:"Enviar",tooltipMessage:"¡El archivo seleccionado a continuación será priorizado!",urlInputLabel:"Ingrese la URL de la imagen",orText:"O",removeFile:"Eliminar archivo",dragDropText:"Arrastra y suelta o haz clic para agregar archivos",imageAlt:"Imagen",imageTooLarge:"La imagen debe tener menos de {{maxSize}}."},"ez-search":{emptyList:"No se encontraron resultados",emptySearch:"No se encontraron resultados de {{field}}",showMore:"Mostrar más"},"ez-search-plus":{emptyList:"No se encontraron resultados",optionLoaderNotDefined:"optionLoader no definido",defaultCodeLabel:"Cód."},"ez-classic-search":{emptyList:"No se encontraron resultados",emptySearch:"No se encontraron resultados de {{field}}",showMore:"Mostrar más"},"ez-classic-search-plus":{emptyList:"No se encontraron resultados",optionLoaderNotDefined:"optionLoader no definido",defaultCodeLabel:"Cód.",clearValue:"Limpiar valor"},"ez-sortable-list":{emptyMessage:"No hay elementos en la lista",entityLabel:"elemento",entityLabelPlural:"elementos",total:"Total de",search:"Buscar"},"ez-split-button":{moreOptions:"Más opciones"},"ez-text-edit":{emptyFieldWarning:"No es posible guardar un campo vacío."},"ez-time-input":{invalidTime:"Por favor, ingrese una hora válida."},"ez-classic-time-input":{invalidTime:"Por favor, ingrese una hora válida."},"ez-sidebar":{unPinMenu:"Desanclar menú",pushPinMenu:"Anclar menú",hideMenu:"Ocultar menú"},"ez-form":{mainTab:"Principal",labelSearchField:"Buscar campos (Ctrl+F)"},utils:{requiredFieldMessage:"Hay al menos un campo obligatorio sin completar.",requiredField:"Esta información es obligatoria.",selectAllPage:"Seleccionar solo la página actual",loadingAllRecords:"Cargando todos los {{count}} registros",selectAllRecords:"Seleccionar todos los {{total}} registros",waitForLoad:"Espere a que se carguen para seleccionar los registros de todas las páginas",allRecordsSelected:"Todos los <strong>{{selectionCount}} registros</strong> en la cuadrícula están seleccionados.",selectedRecords:"Hay <strong>{{selectionCount}} registro{{plural}}</strong> seleccionado{{plural}} en la cuadrícula."},spinner:{loading:"Cargando..."},"ez-scroller":{previousButton:"Anterior",nextButton:"Siguiente"}}}},Se="__EZ_UI_I18N_INSTANCE__";function we(){return e.getContextValue(Se)}const Ce=async i=>{let o=we();if(!o){const a=H.createInstance(),r={resources:xe,fallbackLng:be.PT_BR};await a.use(ye).init(r);const s=t.getLanguage(),n=null!=i?i:s;await a.changeLanguage(n),e.setContextValue(Se,a.t),o=a.t}return o};export{we as g,Ce as i}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as i,H as e,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as n}from"@sankhyalabs/core";import{i as s}from"./p-3b7d9f30.js";const l=class{constructor(i){t(this,i),this.buttonClick=o(this,"buttonClick",7),this.dropdownItemClick=o(this,"dropdownItemClick",7),this.dropdownSubActionClick=o(this,"dropdownSubActionClick",7),this.rippleCounter=0,this.eventListeners=new WeakMap,this.createRipple=(t,o)=>{const i=o?this.leftButton:this.rightButton;if(!i||this.isButtonDisabled||this.suppressAnimation)return;const e=this.getEventCoordinates(t),r=i.getBoundingClientRect(),n=Object.assign(Object.assign({},{x:e.x-r.left,y:e.y-r.top}),{id:++this.rippleCounter});this.addRippleToButton(n,o)},this.positionDropdown=()=>{this.rightButton&&this.dropdownParent&&requestAnimationFrame((()=>{const{rightButton:t,dropdownParent:o}=this,i=t.getBoundingClientRect(),e=o.getBoundingClientRect(),r=window.innerHeight,n=window.innerWidth;Object.assign(o.style,{position:"fixed",top:r-i.bottom<e.height&&i.top>e.height?i.top-e.height+"px":`${i.bottom}px`,left:n-i.left<e.width&&i.left>e.width?i.right-e.width+"px":`${i.left}px`})}))},this.removeForcedFocusVisibleLeft=()=>{var t;null===(t=this.leftButton)||void 0===t||t.classList.remove("force-focus-visible")},this.removeForcedFocusVisibleRight=()=>{var t;null===(t=this.rightButton)||void 0===t||t.classList.remove("force-focus-visible")},this.leftRipples=[],this.rightRipples=[],this.isLeftPressed=!1,this.isRightPressed=!1,this.show=!1,this.enabled=!0,this.isDisabled=!1,this.iconName=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.image=void 0,this.items=void 0,this.label=void 0,this.leftTitle=void 0,this.rightTitle=void 0,this.mode="default",this.size="medium",this.variant=void 0,this.suppressAnimation=!1,this.itemBuilder=void 0}async setBlur(){this.leftButton.blur(),this.rightButton.blur()}async setLeftButtonFocus(){this.leftButton.focus(),this.leftButton.classList.add("force-focus-visible")}async setRightButtonFocus(){this.rightButton.focus(),this.rightButton.classList.add("force-focus-visible")}async toggleDropdown(){this.show=!this.show}async isOpenedDropdown(){return this.show}getEventCoordinates(t){return t instanceof MouseEvent?{x:t.clientX,y:t.clientY}:{x:t.touches[0].clientX,y:t.touches[0].clientY}}addRippleToButton(t,o){o?(this.leftRipples=[...this.leftRipples,t],this.setButtonPressed(!0,!0),this.scheduleRippleCleanup(t,!0)):(this.rightRipples=[...this.rightRipples,t],this.setButtonPressed(!1,!0),this.scheduleRippleCleanup(t,!1))}setButtonPressed(t,o){t?this.isLeftPressed=o:this.isRightPressed=o}scheduleRippleCleanup(t,o){setTimeout((()=>{this.setButtonPressed(o,!1)}),150),setTimeout((()=>{this.removeRipple(t.id,o)}),600)}removeRipple(t,o){o?this.leftRipples=this.leftRipples.filter((o=>o.id!==t)):this.rightRipples=this.rightRipples.filter((o=>o.id!==t))}onMouseDown(t){const o=t.composedPath(),i=o.includes(this.leftButton),e=o.includes(this.rightButton);i?this.createRipple(t,!0):e&&this.createRipple(t,!1)}onTouchStart(t){const o=t.composedPath(),i=o.includes(this.leftButton),e=o.includes(this.rightButton);i?this.createRipple(t,!0):e&&this.createRipple(t,!1)}onItemActionExecuted(){this.closeDropdown()}clickListener(t){(!this.enabled||!0===this.isDisabled||""===this.isDisabled||"full"===this.isDisabled)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}shouldShowLabelOnLeftButton(){return"icon-only"!==this.mode}shouldShowIconOnLeftButton(){return"default"!==this.mode}getIconSize(t="medium"){var o;const i=null===(o=this.size)||void 0===o?void 0:o.toLowerCase();return["small","medium","large"].includes(i)?i:t}closeDropdown(){this.show=!1}handleButtonClick(){this.buttonClick.emit()}handleDropdownItemClick(t){var o;this.dropdownItemClick.emit(t.detail),t.stopPropagation(),(null===(o=t.detail)||void 0===o?void 0:o.disableCloseOnSelect)||this.closeDropdown()}handleDropdownSubActionClick(t){this.dropdownSubActionClick.emit(t.detail),t.stopPropagation(),this.closeDropdown()}setupEventListeners(){const t=new AbortController,{signal:o}=t;window.addEventListener("scroll",this.positionDropdown,{signal:o,passive:!0}),window.addEventListener("resize",this.positionDropdown,{signal:o,passive:!0}),this.eventListeners.set(this._element,t)}cleanupEventListeners(){const t=this.eventListeners.get(this._element);t&&(t.abort(),this.eventListeners.delete(this._element))}async componentWillLoad(){this.i18n=await s()}componentDidLoad(){this.addElementIDs(),this.setupEventListeners(),this.addBlurListeners(),setTimeout((()=>this.positionDropdown()),0)}disconnectedCallback(){this.cleanupEventListeners(),this.removeBlurListeners()}componentDidUpdate(){this.show&&this.positionDropdown()}addElementIDs(){this._element&&n.addIDInfo(this._element),this.leftButton&&n.addIDInfo(this.leftButton,"leftButton",{id:"embedded"}),this.rightButton&&n.addIDInfo(this.rightButton,"rightButton",{id:"embedded"})}renderRipples(t){return t.map((t=>i("span",{key:t.id,class:"ripple",style:{left:t.x-10+"px",top:t.y-10+"px"}})))}render(){const t=this.shouldShowIconOnLeftButton(),o=this.shouldShowLabelOnLeftButton(),r=this.getIconSize();return i(e,{class:this.variant?`ez-split-button--${this.variant}`:""},i("div",{class:`ez-split-button ${this.size} ${this.mode}`},this.renderLeftButton(t,o,r),this.renderDivider(),this.renderDropdownSection(r)))}renderLeftButton(t,o,e){return i("ez-tooltip",{message:this.leftTitle||this.label},i("button",{class:`ez-split-button__left-button ${e} ${this.mode} ${this.isLeftPressed?"pressed":""}`,type:"button",disabled:this.isButtonDisabled,"aria-disabled":this.isButtonAriaDisabled,onClick:()=>this.handleButtonClick(),ref:t=>this.leftButton=t},t&&this.renderLeftIcon(e),o&&this.renderLabel(),!this.suppressAnimation&&this.renderRipples(this.leftRipples)))}renderDivider(){return i("div",{class:`ez-split-button__divider ${this.mode} ez-split-button__divider--${this.size} ${this.isButtonDisabled?"disabled":""}`,"aria-disabled":this.isButtonAriaDisabled})}renderDropdownSection(t){return i("div",{class:"dropdown"},this.renderRightButton(t),this.renderDropdownContent())}renderRightButton(t){return i("ez-tooltip",{message:this.rightTitle||this.i18n("ez-split-button.moreOptions")},i("button",{class:`ez-split-button__right-button ${t} ez-split-button__right-button--${t} ${this.isRightPressed?"pressed":""}`,type:"button",disabled:this.isButtonDisabled,"aria-disabled":this.isButtonAriaDisabled,onClick:()=>this.toggleDropdown(),ref:t=>this.rightButton=t},this.renderRightIcon(t),!this.suppressAnimation&&this.renderRipples(this.rightRipples)))}renderDropdownContent(){return i("div",{class:`dropdown-content dropdown-content--${this.size}`,ref:t=>this.dropdownParent=t},this.show&&this.renderDropdown())}renderLeftIcon(t){return i("ez-icon",{href:this.image,iconName:this.leftIconName||this.iconName,size:t})}renderLabel(){return i("label",{title:this.leftTitle||this.label},this.label)}renderRightIcon(t){return i("ez-icon",{class:"ez-split-button__right-button-container "+(t?`btn-icon--${t}`:""),iconName:this.rightIconName||"chevron-down",size:t})}renderDropdown(){return i("ez-dropdown",{items:this.items,onClick:t=>t.stopPropagation(),onEzOutsideClick:()=>this.closeDropdown(),onEzClick:t=>this.handleDropdownItemClick(t),onEzSubActionClick:t=>this.handleDropdownSubActionClick(t),itemBuilder:this.itemBuilder})}addBlurListeners(){var t,o;this.removeBlurListeners(),null===(t=this.leftButton)||void 0===t||t.addEventListener("blur",this.removeForcedFocusVisibleLeft),null===(o=this.rightButton)||void 0===o||o.addEventListener("blur",this.removeForcedFocusVisibleRight)}removeBlurListeners(){var t,o;null===(t=this.leftButton)||void 0===t||t.removeEventListener("blur",this.removeForcedFocusVisibleLeft),null===(o=this.rightButton)||void 0===o||o.removeEventListener("blur",this.removeForcedFocusVisibleRight)}connectedCallback(){this.addBlurListeners()}get isButtonDisabled(){return"full"===this.isDisabled||!this.enabled}get isButtonAriaDisabled(){return!0===this.isDisabled||""===this.isDisabled}get _element(){return r(this)}};l.style=':host{--ez-split-button--min-width:var(--space--40, 40px);--ez-split-button--width:auto;--ez-split-button--height:var(--space--32, 32px);--ez-split-button__medium-icon--width:var(--space--40, 40px);--ez-split-button__large-icon--width:var(--space--44, 44px);--ez-split-button__label--padding-top:var(--space--0, 0px);--ez-split-button__label--padding-bottom:var(--space--0, 0px);--ez-split-button__right-button--padding-left:var(--space--8, 8px);--ez-split-button__right-button--padding-right:var(--space--12, 12px);--ez-split-button--color:var(--color--ocean-green-600, #008561);--ez-split-button__left-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button__right-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button--background-color:var(--color--gray-70, #FFFFFF);--ez-split-button--border:1px solid var(--color--gray-90, #EAEAEA);--ez-split-button--font-size:var(--font-size--default, 14px);--ez-split-button--line-height:var(--line-height--28, 28px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--font-weight--medium, 500);--ez-split-button--border-radius:var(--border--radius-24, 24px);--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--disabled-color:var(--color--gray-400, #77777A);--ez-split-button--disabled--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;display:flex;width:fit-content}:host(.ez-split-button--primary){--ez-split-button--color:var(--color--gray-70);--ez-split-button--background-color:var(--color--ocean-green-500);--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button__left-icon--color:var(--color--gray-70);--ez-split-button__right-icon--color:var(--color--gray-70);--ez-split-button--hover-color:var(--color--gray-70);--ez-split-button--hover--background-color:var(--color--ocean-green-700);--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--gray-70);--ez-split-button--right-icon--hover-color:var(--color--gray-70);--ez-split-button--disabled-color:var(--color--gray-70);--ez-split-button--disabled--background-color:var(--color--gray-400);--ez-split-button--disabled--border:none;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}:host(.ez-split-button--secondary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:var(--color--gray-70);--ez-split-button--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-600);--ez-split-button--hover--background-color:var(--color--gray-80);--ez-split-button--hover--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:var(--color--gray-80);--ez-split-button--disabled--border:1px solid var(--color--gray-200);--ez-split-button--disabled-icon-color:var(--color--gray-400);--ez-split-button__left-icon--disabled-color:var(--color--gray-300);--ez-split-button__right-icon--disabled-color:var(--color--gray-300)}:host(.ez-split-button--tertiary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:transparent;--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-800);--ez-split-button--hover--background-color:transparent;--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:transparent;--ez-split-button--disabled--border:transparent;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}.ez-split-button.large{--ez-split-button--height:var(--space--42, 42px)}.ez-split-button.medium{--ez-split-button--height:var(--space--32, 32px)}.ez-split-button.small{--ez-split-button--height:var(--space--32, 32px);--ez-split-button--font-size:var(--text--small, 12px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear, transform 0.15s ease;white-space:nowrap;overflow:hidden;transform:scale(1);min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none}label{cursor:pointer;line-height:var(--ez-split-button--line-height)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none;gap:var(--space--8, 8px);padding-left:var(--space--12, 12px);padding-right:var(--space--8, 8px)}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button.force-focus-visible,.ez-split-button__left-button:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--ocean-green-200), \n -2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__right-button.force-focus-visible,.ez-split-button__right-button:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--ocean-green-200), \n 2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__left-button[aria-disabled].force-focus-visible,.ez-split-button__left-button[aria-disabled]:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--petroleum-100), \n -2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__right-button[aria-disabled].force-focus-visible,.ez-split-button__right-button[aria-disabled]:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--petroleum-100), \n 2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__left-button:disabled label,.ez-split-button__left-button[aria-disabled] label,.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__right-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-left:none}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__divider{width:1px;box-sizing:border-box;position:relative;background-color:var(--ez-split-button--background-color);height:var(--ez-split-button--height);border-top:var(--ez-split-button--border);border-bottom:var(--ez-split-button--border)}.ez-split-button__divider[aria-disabled],.ez-split-button__divider.disabled{cursor:not-allowed;background-color:var(--ez-split-button--disabled--background-color);border-top:var(--ez-split-button--disabled--border);border-bottom:var(--ez-split-button--disabled--border)}.ez-split-button__divider:before{content:"";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 10%);border-radius:2px;height:75%;top:10%;bottom:10%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left);padding-right:var(--ez-split-button__right-button--padding-right)}.ez-split-button{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:var(--elevation--8);border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}.ripple{position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(255, 255, 255, 0.3);pointer-events:none;transform:scale(0);animation:ripple-animation 0.6s linear;z-index:0}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}:host .ripple,:host(.ez-split-button--secondary) .ripple{background:rgba(0, 133, 97, 0.2)}:host(.ez-split-button--primary) .ripple{background:rgba(255, 255, 255, 0.3)}:host(.ez-split-button--tertiary) .ripple{background:rgba(0, 133, 97, 0.15)}.ez-split-button__left-button.pressed,.ez-split-button__right-button.pressed{transform:scale(0.98)}.ez-split-button__left-button>*:not(.ripple),.ez-split-button__right-button>*:not(.ripple){position:relative;z-index:1}.ez-split-button__left-button:disabled .ripple,.ez-split-button__left-button[aria-disabled] .ripple,.ez-split-button__right-button:disabled .ripple,.ez-split-button__right-button[aria-disabled] .ripple{display:none}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{transform:scale(1) !important}';export{l as ez_split_button}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as s,g as a}from"./p-23a36bb6.js";import{DateUtils as n,TimeFormatter as o,ElementIDUtils as h}from"@sankhyalabs/core";import{C as l}from"./p-ec7db713.js";import{i as r}from"./p-3b7d9f30.js";const c=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",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.showSeconds=!1,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 e=n.validateDate(t,!0),s=n.validateDate(i,!0);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(e)||"";!this.getParsedDateTime(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===e?void 0:e)}}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)}handleKeyDown(t){const i=this._textInput.shadowRoot.querySelector("input");if(t.shiftKey&&"Tab"===t.key){if(i.selectionStart>0){let e=i.value.lastIndexOf(" ",i.selectionStart);-1!==e&&(i.setSelectionRange(0,e),t.preventDefault())}}else if("Tab"===t.key&&i.value.length!==i.selectionEnd){let e=i.value.indexOf(" ",i.selectionEnd);e=-1===e?i.selectionEnd:e+1,i.setSelectionRange(e,i.value.length),t.preventDefault()}}handleFocus(){const t=this._textInput.shadowRoot.querySelector("input");if(t.selectionStart!==t.selectionEnd){let i=t.value.indexOf(" ",t.selectionStart);i=-1===i?t.value.length:i,t.setSelectionRange(0,i)}}handleClick(){const t=this._textInput.shadowRoot.querySelector("input");let i=t.value.lastIndexOf(" ",t.selectionEnd);i=-1===i?0:i+1,i=i>t.selectionEnd?0:i;let e=0===i?t.value.indexOf(" "):t.value.length;t.setSelectionRange(i,e)}changeValue(t){const i=n.validateDate(this.value,!0),e=n.validateDate(t,!0);(null==i?void 0:i.getTime())!==(null==e?void 0:e.getTime())&&(this.value=e)}hideCalendar(){this.changeValue(this._calendar.value),this._popover.hide()}getParsedDateTime(t){var i,e;if(void 0===t&&(t=(null===(e=null===(i=this._textInput)||void 0===i?void 0:i.value)||void 0===e?void 0:e.trim())||""),!t)return;const s=t.split(" "),a=s.length>0?s[0]:t,h=o.prepareValue(s[1]?s[1]:"",this.showSeconds);return n.strToDate(a+(h&&" "+h))}handleBlur(){var t,i;if(this._changePending)try{const e=(null===(i=null===(t=this._textInput)||void 0===t?void 0:t.value)||void 0===i?void 0:i.trim())||"",s=this.getParsedDateTime();if(s||!e){this.errorMessage="";const t=n.validateDate(this.value,!0),i=n.validateDate(s,!0);(null==t?void 0:t.getTime())===(null==i?void 0:i.getTime())?(i&&(this._textInput.value=this.getTextValue(i)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):this.changeValue(i)}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-classic-date-time-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){if(t)return n.formatDateTime(t,this.showSeconds)}handleInput(t){const i=this.getParsedDateTime(),e=n.validateDate(this.value,!0),s=n.validateDate(i,!0);(null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())&&(this._changePending=!0,this._focused=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"!==t.data&&"h"!==t.data||this.changeValue(new Date)}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(){l.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return h.addIDInfoIfNotExists(this._elem,"input"),e(s,null,e("ez-classic-input",{ref:t=>this._textInput=t,"data-element-id":h.getInternalIDInfo("textInput"),"data-slave-mode":"true",label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,size:this.size,onKeyDown:t=>{this.handleKeyDown(t)},onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),onFocus:()=>this.handleFocus(),onClick:()=>this.handleClick(),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()}),e("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")},e("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":h.getInternalIDInfo("calendar"),onEzChange:t=>{this.hideCalendar(),t.stopPropagation()},time:!0,showSeconds:this.showSeconds})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};c.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{c as ez_classic_date_time_input}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,H as e,g as h}from"./p-23a36bb6.js";import{TimeFormatter as r,MaskFormatter as a,NumberUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as l}from"./p-ec7db713.js";import{i as u}from"./p-3b7d9f30.js";const c=class{constructor(i){t(this,i),this.ezChange=s(this,"ezChange",7),this.ezStartChange=s(this,"ezStartChange",7),this.ezCancelWaitingChange=s(this,"ezCancelWaitingChange",7),this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.showSeconds=!1,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||(this.prepareValue(this._viewValue),(this._textInput.value||"")!==this._viewValue&&(this._textInput.value=this._viewValue)))}observeShowSeconds(){this.prepareMask(this.showSeconds?"##:##:##":"##:##")}observeValue(t,s){if(this._textInput&&t!=s){let i=this.validateValue(t);i!=this.validateValue(s)&&(this._viewValue=null==i?"":i.toString(),this.prepareValue(this._viewValue),this._viewValue&&!r.validateTime(this._viewValue,this.showSeconds)?(this.setError(this.i18n("ez-classic-time-input.invalidTime")),i=void 0):this.setError(""),this.ezChange.emit(null===i?void 0:i))}}prepareMask(t){null==this._maskFormatter?this._maskFormatter=new a(t):this._maskFormatter.mask=t}validateValue(t){return isNaN(t)||void 0===t?null:t}setError(t){this.errorMessage=t,this._textInput&&(null==t?void 0:t.trim())&&this.ezCancelWaitingChange.emit()}getViewValue(){return this._viewValue}prepareValue(t){try{this._viewValue=r.prepareValue(t,this.showSeconds),this._textInput&&this._textInput.value!==this._viewValue&&(this._textInput.value=this._viewValue)}catch(t){this.setError(t.message)}}async setFocus({selectText:t}){this._textInput.setFocus({selectText:t})}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}handleBlur(){if(this._textInput){this._viewValue=this._textInput.value,this.prepareValue(this._viewValue);const t=n.stringToNumber(this._viewValue.replace(/\D/g,""));this.value=["string","number"].includes(typeof t)?t:null}}handleInput(){const t=this._textInput.value;["string","number"].includes(typeof t)&&n.stringToNumber(t.replace(/\D/g,""))!==this.value&&this.ezStartChange.emit({waitmessage:"",blocking:!1})}async componentWillLoad(){this.i18n=await u(),this.observeShowSeconds(),this.value?this.prepareValue(this.value.toString()):this._viewValue&&this.prepareValue(this._viewValue)}componentDidLoad(){l.applyVarsTextInput(this._elem,this._textInput),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){o.addIDInfoIfNotExists(this._elem,"input");const t={class:"time__input","data-element-id":o.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",value:this._viewValue,enabled:this.enabled,label:this.label,mask:this.showSeconds?"##:##:##":"##:##",onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),errorMessage:this.errorMessage,mode:this.mode,size:this.size,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder,required:this.required,onEzChange:t=>t.stopPropagation()};return i(e,null,i("ez-classic-input",Object.assign({},t,{leftIconName:"timer-outline"})))}static get assetsDirs(){return["../assets"]}get _elem(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],showSeconds:["observeShowSeconds"],value:["observeValue"]}}};c.style=":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";export{c as ez_classic_time_input}
@@ -1 +0,0 @@
1
- var S;!function(S){S[S.CASCADE=0]="CASCADE",S[S.CLASSIC_CASCADE=1]="CLASSIC_CASCADE",S[S.SIDE_BY_SIDE=2]="SIDE_BY_SIDE",S[S.CLASSIC_SIDE_BY_SIDE=3]="CLASSIC_SIDE_BY_SIDE"}(S||(S={}));export{S as F}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as i,H as e,g as s}from"./p-23a36bb6.js";import{FloatingManager as r}from"@sankhyalabs/core";const h=class{constructor(i){t(this,i),this.ezVisibilityChange=o(this,"ezVisibilityChange",7),this._firstRender=!0,this.innerClickTest=(t,o,i)=>{const e=[t];this.innerElement&&("string"==typeof this.innerElement?e.push(document.querySelector(`#${this.innerElement}`)):this.innerElement.forEach((t=>{e.push(document.querySelector(`#${t}`))})));const s=(null==i?void 0:i.composedPath())||[];for(var r=0;r<e.length;r++){let t=e[r];if(null!=t){if(s.includes(t))return!0;if(t.contains(o))return!0;if(i&&"nodeType"in(null==i?void 0:i.target)&&t.contains(i.target))return!0;if(t.shadowRoot&&t.shadowRoot.contains(o))return!0;if(t=this._host,t.lastElementChild.shadowRoot?t.lastElementChild.shadowRoot.contains(o):t.contains(o))return!0}}return!1},this.backClickListener=()=>{this.ezVisibilityChange.emit(!1)},this.autoClose=!0,this.boxWidth="fit-content",this.opened=void 0,this.innerElement=void 0,this.overlayType="light"}observeOpened(t,o){t!=o&&(o?this.hide():this.show(),this.ezVisibilityChange.emit(t))}async updatePosition(t,o){r.updateFloatPosition(this._box,this._container,{autoClose:this.autoClose,top:t,left:o,innerClickTest:this.innerClickTest,backClickListener:this.backClickListener})}async show(t,o){this.float({top:t,left:o})}async showAbove(t){this.float(Object.assign({},t||{}))}async showUnder(t,o){t&&this._host?this.float(this.calculatePosition(t,Object.assign({verticalGap:0,horizontalGap:0,fromRight:!1},o))):this.show((null==o?void 0:o.verticalGap)?`${o.verticalGap}px`:void 0,(null==o?void 0:o.horizontalGap)?`${o.horizontalGap}px`:void 0)}calculatePosition(t,o){const i=this._host.getBoundingClientRect(),e=t.getBoundingClientRect(),s=`${(o.fromRight?i.right-e.right:e.x-i.x)+o.horizontalGap}px`;return{top:`${e.bottom-i.y+o.verticalGap}px`,left:o.fromRight?"":s,right:o.fromRight?s:""}}float(t){this._box.style.top="",this._box.style.left="",this._box.style.right="",this._box.style.bottom="";const o="none"!==this.overlayType,i=`ez-scrim ez-scrim--${this.overlayType}`;let e=Object.assign(Object.assign({},t),{autoClose:this.autoClose,innerClickTest:this.innerClickTest,backClickListener:this.backClickListener});o&&(e=Object.assign(Object.assign({},e),{autoClose:!0,useOverlay:o,overlayClassName:i})),this._floatingID=r.float(this._box,this._container,e),this.opened=!0}async hide(){void 0!==this._floatingID&&(r.close(this._floatingID),this._floatingID=void 0,this.opened=!1)}componentDidRender(){this._firstRender&&(this._box.remove(),this._firstRender=!1)}render(){return i(e,null,i("section",{ref:t=>this._container=t},i("div",{class:"popover__box "+("fit-content"===this.boxWidth?"popover__box--fit-content":"popover__box--full-width"),ref:t=>this._box=t},i("slot",null))))}get _host(){return s(this)}static get watchers(){return{opened:["observeOpened"]}}};h.style=":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--most-visible, 3);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";export{h as ez_popover}