@sankhyalabs/ezui 7.0.1-dev.1 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (877) hide show
  1. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  2. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  3. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  4. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  5. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  6. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  7. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  8. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  9. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  10. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  11. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  12. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  14. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  16. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/ez-chart.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  36. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  38. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  40. package/dist/cjs/ez-classic-input.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  42. package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  44. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  46. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +3 -3
  47. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  50. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  52. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  56. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  58. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  59. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  61. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  63. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  65. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  67. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  69. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  70. package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
  71. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/ez-grid.cjs.entry.js +107 -767
  73. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  75. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  77. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  79. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
  81. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  83. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  84. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  85. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  87. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  88. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  89. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  90. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  91. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  93. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  94. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  95. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  96. package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
  97. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  99. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  100. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  101. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  103. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  104. package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
  105. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  106. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  107. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  108. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
  109. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  111. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/ez-search-plus.cjs.entry.js +1 -1
  113. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  115. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  117. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  119. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  121. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
  123. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  124. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  125. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  127. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  128. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  129. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  131. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  132. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  133. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-tag-input.cjs.entry.js +1 -1
  135. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/ez-tag.cjs.entry.js +1 -1
  137. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  138. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  139. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  141. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
  143. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  144. package/dist/cjs/ez-tile.cjs.entry.js +1 -1
  145. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  146. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  147. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  148. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  149. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  150. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  151. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  152. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  153. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  154. package/dist/cjs/ez-underface.cjs.entry.js +1 -1
  155. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  156. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  157. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  158. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  159. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  160. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  161. package/dist/cjs/ezui.cjs.js +1 -1
  162. package/dist/cjs/ezui.cjs.js.gz +0 -0
  163. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  164. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  165. package/dist/cjs/floating-ui.dom.esm-f4d87617.js.gz +0 -0
  166. package/dist/cjs/index-1be40f19.js.gz +0 -0
  167. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +0 -3
  168. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  169. package/dist/cjs/index.cjs.js.gz +0 -0
  170. package/dist/cjs/loader.cjs.js +1 -1
  171. package/dist/cjs/loader.cjs.js.gz +0 -0
  172. package/dist/cjs/{purify-47a2f27b.js → purify-3dbde2f7.js} +0 -1
  173. package/dist/cjs/purify-3dbde2f7.js.gz +0 -0
  174. package/dist/cjs/{search-column-49cdfdb2.js → search-column-39c6b195.js} +1 -1
  175. package/dist/cjs/search-column-39c6b195.js.gz +0 -0
  176. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  177. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  178. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  179. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  180. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  181. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  182. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  183. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  184. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  185. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  186. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  187. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  188. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  189. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  190. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  191. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  192. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  193. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  194. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  195. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  196. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  197. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  198. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  199. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  200. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  201. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  202. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  203. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  204. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  205. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  206. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  207. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  208. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  209. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  210. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  211. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  212. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  213. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  214. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  215. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  216. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  217. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  218. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  219. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  220. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  221. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  222. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  223. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  224. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  225. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  226. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  227. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  228. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  229. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  230. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  231. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  232. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  233. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  234. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  235. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  236. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  237. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  238. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  239. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  240. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  241. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  242. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  243. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  244. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  245. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  246. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  247. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  248. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  249. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  250. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  251. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  252. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  253. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  254. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  255. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  256. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  257. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  258. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  259. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  260. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  261. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  262. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  263. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  264. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  265. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  266. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  267. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  268. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  269. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  270. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  271. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  272. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  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.gz +0 -0
  275. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  276. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  277. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  278. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  279. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  280. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  281. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  282. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  283. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  284. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  285. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  286. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  287. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  288. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  289. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  290. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  291. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  292. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  293. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  294. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  295. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  296. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  297. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  298. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  299. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  300. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  301. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  302. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  303. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  304. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  305. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  306. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  307. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  308. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  309. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  310. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  311. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  312. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  313. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  314. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  315. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  316. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  317. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  318. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  319. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  320. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  321. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  322. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  323. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  324. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  325. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  326. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  327. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  328. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  329. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  330. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  331. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  332. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  333. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  334. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  335. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  336. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  337. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  338. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  339. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  340. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  341. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  342. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  343. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  344. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  345. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  346. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  347. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  348. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  349. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  350. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  351. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  352. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  353. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  354. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  355. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  356. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  357. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  358. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  359. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  360. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  361. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  362. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  363. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  364. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  365. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  366. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  367. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  368. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  369. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  370. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  371. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  372. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  373. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  374. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  375. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  376. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  377. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  378. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  379. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  380. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  381. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  382. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  383. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  384. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  385. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  386. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  387. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  388. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  389. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  390. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  391. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  392. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  393. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  394. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  395. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  396. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  397. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  398. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  399. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  400. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  401. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  402. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  403. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  404. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  405. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  406. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  407. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  408. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  409. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  410. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  411. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  412. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  413. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  414. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  415. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  416. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  417. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  418. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  419. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  420. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  421. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  422. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  423. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  424. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  425. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  426. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  427. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  428. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  429. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  430. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  431. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  432. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  433. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  434. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  435. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  436. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  437. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  438. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  439. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  440. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  441. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  442. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  443. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  444. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  445. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  446. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  447. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  448. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  449. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  450. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  451. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  452. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  453. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  454. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  455. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  456. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  457. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  458. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  459. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  460. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  461. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  462. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  463. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  464. package/dist/collection/global/app-init.js.gz +0 -0
  465. package/dist/collection/index.js.gz +0 -0
  466. package/dist/collection/servidor.js.gz +0 -0
  467. package/dist/collection/setupTests.js.gz +0 -0
  468. package/dist/collection/sw.js.gz +0 -0
  469. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  470. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  471. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  472. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  473. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  474. package/dist/collection/utils/constants.js.gz +0 -0
  475. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  476. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  477. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  478. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  479. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  480. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  481. package/dist/collection/utils/form/index.js.gz +0 -0
  482. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  483. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  484. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  485. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  486. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  487. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  488. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  489. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  490. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  491. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  492. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  493. package/dist/collection/utils/i18n/index.js.gz +0 -0
  494. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  495. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  496. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  497. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  498. package/dist/collection/utils/index.js.gz +0 -0
  499. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  500. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  501. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  502. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  503. package/dist/collection/utils/search/types.js.gz +0 -0
  504. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  505. package/dist/collection/utils/utils.js.gz +0 -0
  506. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  507. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  508. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  509. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  510. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  511. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  512. package/dist/custom-elements/index.js +105 -766
  513. package/dist/custom-elements/index.js.gz +0 -0
  514. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  515. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  516. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  517. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  518. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  519. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  520. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  521. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  522. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  523. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  524. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  525. package/dist/esm/ez-actions-button.entry.js +1 -1
  526. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  527. package/dist/esm/ez-alert-list.entry.js +1 -1
  528. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  529. package/dist/esm/ez-alert.entry.js +1 -1
  530. package/dist/esm/ez-alert.entry.js.gz +0 -0
  531. package/dist/esm/ez-application.entry.js +1 -1
  532. package/dist/esm/ez-application.entry.js.gz +0 -0
  533. package/dist/esm/ez-avatar.entry.js +1 -1
  534. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  535. package/dist/esm/ez-badge.entry.js +1 -1
  536. package/dist/esm/ez-badge.entry.js.gz +0 -0
  537. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  538. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  539. package/dist/esm/ez-button.entry.js +1 -1
  540. package/dist/esm/ez-button.entry.js.gz +0 -0
  541. package/dist/esm/ez-calendar.entry.js +1 -1
  542. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  543. package/dist/esm/ez-card-item.entry.js +1 -1
  544. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  545. package/dist/esm/ez-chart.entry.js +2 -2
  546. package/dist/esm/ez-chart.entry.js.gz +0 -0
  547. package/dist/esm/ez-check.entry.js +1 -1
  548. package/dist/esm/ez-check.entry.js.gz +0 -0
  549. package/dist/esm/ez-chip.entry.js +1 -1
  550. package/dist/esm/ez-chip.entry.js.gz +0 -0
  551. package/dist/esm/ez-classic-combo-box.entry.js +1 -1
  552. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  553. package/dist/esm/ez-classic-input.entry.js +1 -1
  554. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  555. package/dist/esm/ez-classic-text-area.entry.js +1 -1
  556. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  557. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  558. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  559. package/dist/esm/ez-combo-box-list_4.entry.js +3 -3
  560. package/dist/esm/ez-combo-box-list_4.entry.js.gz +0 -0
  561. package/dist/esm/ez-combo-box.entry.js +1 -1
  562. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  563. package/dist/esm/ez-date-input.entry.js +1 -1
  564. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  565. package/dist/esm/ez-date-time-input.entry.js +1 -1
  566. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  567. package/dist/esm/ez-dialog.entry.js +1 -1
  568. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  569. package/dist/esm/ez-double-list.entry.js +1 -1
  570. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  571. package/dist/esm/ez-dropdown.entry.js +1 -1
  572. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  573. package/dist/esm/ez-empty-card.entry.js +1 -1
  574. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  575. package/dist/esm/ez-file-item.entry.js +1 -1
  576. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  577. package/dist/esm/ez-filter-input.entry.js +1 -1
  578. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  579. package/dist/esm/ez-form-view.entry.js +1 -1
  580. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  581. package/dist/esm/ez-form.entry.js +2 -2
  582. package/dist/esm/ez-form.entry.js.gz +0 -0
  583. package/dist/esm/ez-grid-view.entry.js +1 -1
  584. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  585. package/dist/esm/ez-grid.entry.js +107 -767
  586. package/dist/esm/ez-grid.entry.js.gz +0 -0
  587. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  588. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  589. package/dist/esm/ez-icon.entry.js +1 -1
  590. package/dist/esm/ez-icon.entry.js.gz +0 -0
  591. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  592. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  593. package/dist/esm/ez-list-item.entry.js +1 -1
  594. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  595. package/dist/esm/ez-list.entry.js +1 -1
  596. package/dist/esm/ez-list.entry.js.gz +0 -0
  597. package/dist/esm/ez-loading-bar.entry.js +1 -1
  598. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  599. package/dist/esm/ez-modal-container.entry.js +1 -1
  600. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  601. package/dist/esm/ez-modal.entry.js +1 -1
  602. package/dist/esm/ez-modal.entry.js.gz +0 -0
  603. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  604. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  605. package/dist/esm/ez-number-input.entry.js +1 -1
  606. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  607. package/dist/esm/ez-pagination.entry.js +1 -1
  608. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  609. package/dist/esm/ez-popover-core.entry.js +1 -1
  610. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  611. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  612. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  613. package/dist/esm/ez-popover.entry.js +1 -1
  614. package/dist/esm/ez-popover.entry.js.gz +0 -0
  615. package/dist/esm/ez-popup.entry.js +1 -1
  616. package/dist/esm/ez-popup.entry.js.gz +0 -0
  617. package/dist/esm/ez-progress-bar.entry.js +1 -1
  618. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  619. package/dist/esm/ez-radio-button.entry.js +1 -1
  620. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  621. package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
  622. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  623. package/dist/esm/ez-scroller_2.entry.js +1 -1
  624. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  625. package/dist/esm/ez-search-plus.entry.js +1 -1
  626. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  627. package/dist/esm/ez-search-result-list.entry.js +1 -1
  628. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  629. package/dist/esm/ez-search.entry.js +1 -1
  630. package/dist/esm/ez-search.entry.js.gz +0 -0
  631. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  632. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  633. package/dist/esm/ez-skeleton.entry.js +1 -1
  634. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  635. package/dist/esm/ez-sortable-list.entry.js +1 -1
  636. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  637. package/dist/esm/ez-spinner.entry.js +1 -1
  638. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  639. package/dist/esm/ez-split-button.entry.js +1 -1
  640. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  641. package/dist/esm/ez-split-item.entry.js +1 -1
  642. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  643. package/dist/esm/ez-split-panel.entry.js +1 -1
  644. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  645. package/dist/esm/ez-tabselector.entry.js +1 -1
  646. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  647. package/dist/esm/ez-tag-input.entry.js +1 -1
  648. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  649. package/dist/esm/ez-tag.entry.js +1 -1
  650. package/dist/esm/ez-tag.entry.js.gz +0 -0
  651. package/dist/esm/ez-text-area.entry.js +1 -1
  652. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  653. package/dist/esm/ez-text-input.entry.js +1 -1
  654. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  655. package/dist/esm/ez-tile-medium.entry.js +1 -1
  656. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  657. package/dist/esm/ez-tile.entry.js +1 -1
  658. package/dist/esm/ez-tile.entry.js.gz +0 -0
  659. package/dist/esm/ez-time-input.entry.js +1 -1
  660. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  661. package/dist/esm/ez-toast.entry.js +1 -1
  662. package/dist/esm/ez-toast.entry.js.gz +0 -0
  663. package/dist/esm/ez-tooltip.entry.js +1 -1
  664. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  665. package/dist/esm/ez-tree.entry.js +1 -1
  666. package/dist/esm/ez-tree.entry.js.gz +0 -0
  667. package/dist/esm/ez-underface.entry.js +1 -1
  668. package/dist/esm/ez-underface.entry.js.gz +0 -0
  669. package/dist/esm/ez-upload.entry.js +1 -1
  670. package/dist/esm/ez-upload.entry.js.gz +0 -0
  671. package/dist/esm/ez-view-stack.entry.js +1 -1
  672. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  673. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  674. package/dist/esm/ezui.js +2 -2
  675. package/dist/esm/ezui.js.gz +0 -0
  676. package/dist/esm/filter-column.entry.js +1 -1
  677. package/dist/esm/filter-column.entry.js.gz +0 -0
  678. package/dist/esm/floating-ui.dom.esm-ad30f2f0.js.gz +0 -0
  679. package/dist/esm/index-41363fa6.js.gz +0 -0
  680. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +1 -3
  681. package/dist/esm/index-baa5e267.js.gz +0 -0
  682. package/dist/esm/index.js.gz +0 -0
  683. package/dist/esm/loader.js +2 -2
  684. package/dist/esm/loader.js.gz +0 -0
  685. package/dist/esm/polyfills/core-js.js.gz +0 -0
  686. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  687. package/dist/esm/polyfills/dom.js.gz +0 -0
  688. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  689. package/dist/esm/polyfills/index.js.gz +0 -0
  690. package/dist/esm/polyfills/system.js.gz +0 -0
  691. package/dist/esm/{purify-dc6814bf.js → purify-2b94dec9.js} +0 -1
  692. package/dist/esm/purify-2b94dec9.js.gz +0 -0
  693. package/dist/esm/{search-column-cc4d772a.js → search-column-55666829.js} +1 -1
  694. package/dist/esm/search-column-55666829.js.gz +0 -0
  695. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  696. package/dist/ezui/ezui.esm.js +1 -1
  697. package/dist/ezui/ezui.esm.js.gz +0 -0
  698. package/dist/ezui/index.esm.js.gz +0 -0
  699. package/dist/ezui/{p-9d6c5d17.entry.js → p-02d448bb.entry.js} +1 -1
  700. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  701. package/dist/ezui/{p-4463db7b.entry.js → p-05c32903.entry.js} +1 -1
  702. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  703. package/dist/ezui/{p-cf4e2a35.entry.js → p-0e49c0ff.entry.js} +1 -1
  704. package/dist/ezui/p-0e49c0ff.entry.js.gz +0 -0
  705. package/dist/ezui/{p-d1765c77.entry.js → p-0f7971cf.entry.js} +1 -1
  706. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  707. package/dist/ezui/p-112455b1.js.gz +0 -0
  708. package/dist/ezui/{p-feea8ad8.entry.js → p-14ceb733.entry.js} +1 -1
  709. package/dist/ezui/p-14ceb733.entry.js.gz +0 -0
  710. package/dist/ezui/{p-0aed37a1.entry.js → p-18384b91.entry.js} +1 -1
  711. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  712. package/dist/ezui/{p-55e30af1.entry.js → p-1b5aa969.entry.js} +1 -1
  713. package/dist/ezui/p-1b5aa969.entry.js.gz +0 -0
  714. package/dist/ezui/p-1ba2d983.entry.js +1 -0
  715. package/dist/ezui/p-1ba2d983.entry.js.gz +0 -0
  716. package/dist/ezui/p-1dfe17a1.entry.js +309 -0
  717. package/dist/ezui/p-1dfe17a1.entry.js.gz +0 -0
  718. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  719. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  720. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  721. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  722. package/dist/ezui/{p-8ea2a2f5.entry.js → p-1f8775ef.entry.js} +1 -1
  723. package/dist/ezui/p-1f8775ef.entry.js.gz +0 -0
  724. package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
  725. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  726. package/dist/ezui/{p-c3ff0370.entry.js → p-23739494.entry.js} +1 -1
  727. package/dist/ezui/p-23739494.entry.js.gz +0 -0
  728. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  729. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  730. package/dist/ezui/{p-169d460d.entry.js → p-2528e988.entry.js} +1 -1
  731. package/dist/ezui/p-2528e988.entry.js.gz +0 -0
  732. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  733. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  734. package/dist/ezui/p-2a806303.js.gz +0 -0
  735. package/dist/ezui/{p-172abd0f.entry.js → p-2c21b2b6.entry.js} +1 -1
  736. package/dist/ezui/p-2c21b2b6.entry.js.gz +0 -0
  737. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  738. package/dist/ezui/{p-c9d70dab.entry.js → p-34a476a9.entry.js} +1 -1
  739. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  740. package/dist/ezui/{p-201009ae.entry.js → p-35bfaa88.entry.js} +1 -1
  741. package/dist/ezui/p-35bfaa88.entry.js.gz +0 -0
  742. package/dist/ezui/{p-a8eadb43.entry.js → p-39761eca.entry.js} +1 -1
  743. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  744. package/dist/ezui/{p-ffdf68cd.entry.js → p-3afa1c6e.entry.js} +1 -1
  745. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  746. package/dist/ezui/{p-4ca4d920.entry.js → p-3ce867cf.entry.js} +1 -1
  747. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  748. package/dist/ezui/p-3e767a74.js.gz +0 -0
  749. package/dist/ezui/p-40a60148.js.gz +0 -0
  750. package/dist/ezui/{p-f7ca8634.entry.js → p-411c0222.entry.js} +1 -1
  751. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  752. package/dist/ezui/{p-8f0ed69d.entry.js → p-4314f87a.entry.js} +1 -1
  753. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  754. package/dist/ezui/{p-570cf58a.entry.js → p-48effc69.entry.js} +1 -1
  755. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  756. package/dist/ezui/{p-a27a1627.entry.js → p-49ea27ec.entry.js} +1 -1
  757. package/dist/ezui/p-49ea27ec.entry.js.gz +0 -0
  758. package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
  759. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  760. package/dist/ezui/p-5554704c.js.gz +0 -0
  761. package/dist/ezui/{p-4df117bb.js → p-57321fc3.js} +1 -1
  762. package/dist/ezui/p-57321fc3.js.gz +0 -0
  763. package/dist/ezui/{p-fcdc8089.entry.js → p-5c3a6717.entry.js} +1 -1
  764. package/dist/ezui/p-5c3a6717.entry.js.gz +0 -0
  765. package/dist/ezui/{p-a75c1bdc.entry.js → p-5d910b14.entry.js} +1 -1
  766. package/dist/ezui/p-5d910b14.entry.js.gz +0 -0
  767. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  768. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  769. package/dist/ezui/{p-c754774e.entry.js → p-6020f3d5.entry.js} +1 -1
  770. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  771. package/dist/ezui/{p-e6eaa5ed.entry.js → p-6c51ccd1.entry.js} +1 -1
  772. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  773. package/dist/ezui/{p-4f72c118.entry.js → p-6ca0815e.entry.js} +1 -1
  774. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  775. package/dist/ezui/{p-0b531233.entry.js → p-6d596a5a.entry.js} +1 -1
  776. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  777. package/dist/ezui/{p-1723f728.entry.js → p-6f77a359.entry.js} +1 -1
  778. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  779. package/dist/ezui/{p-6b6efa30.entry.js → p-721fd999.entry.js} +1 -1
  780. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  781. package/dist/ezui/p-7995dcb4.entry.js +1 -0
  782. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  783. package/dist/ezui/{p-2000464a.entry.js → p-79abad9e.entry.js} +1 -1
  784. package/dist/ezui/p-79abad9e.entry.js.gz +0 -0
  785. package/dist/ezui/{p-c291d6a0.entry.js → p-7f37ee99.entry.js} +1 -1
  786. package/dist/ezui/p-7f37ee99.entry.js.gz +0 -0
  787. package/dist/ezui/{p-e195eaad.entry.js → p-7f792043.entry.js} +1 -1
  788. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  789. package/dist/ezui/{p-0391f255.entry.js → p-7f8c1fce.entry.js} +1 -1
  790. package/dist/ezui/p-7f8c1fce.entry.js.gz +0 -0
  791. package/dist/ezui/{p-b7c6ce20.entry.js → p-7fe97ef5.entry.js} +1 -1
  792. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  793. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  794. package/dist/ezui/{p-6dbf8f75.entry.js → p-859e3134.entry.js} +1 -1
  795. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  796. package/dist/ezui/{p-b6a8112c.entry.js → p-8803e321.entry.js} +1 -1
  797. package/dist/ezui/p-8803e321.entry.js.gz +0 -0
  798. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  799. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  800. package/dist/ezui/{p-78e975b4.entry.js → p-91c9d50e.entry.js} +1 -1
  801. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  802. package/dist/ezui/{p-05e68ab3.entry.js → p-93e1c917.entry.js} +1 -1
  803. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  804. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  805. package/dist/ezui/{p-1857cfc0.entry.js → p-9b215871.entry.js} +1 -1
  806. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  807. package/dist/ezui/{p-d3779449.entry.js → p-9b2e6438.entry.js} +1 -1
  808. package/dist/ezui/p-9b2e6438.entry.js.gz +0 -0
  809. package/dist/ezui/{p-ad7c01c1.entry.js → p-9b3f3c02.entry.js} +1 -1
  810. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  811. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  812. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  813. package/dist/ezui/{p-bc693db6.entry.js → p-a0bf1fc7.entry.js} +1 -1
  814. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  815. package/dist/ezui/{p-228a4d2f.js → p-a1c0233e.js} +1 -1
  816. package/dist/ezui/p-a1c0233e.js.gz +0 -0
  817. package/dist/ezui/{p-9bcfa689.entry.js → p-a3075f52.entry.js} +1 -1
  818. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  819. package/dist/ezui/{p-f26b97e9.entry.js → p-a3ada561.entry.js} +1 -1
  820. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  821. package/dist/ezui/{p-71c55a72.entry.js → p-a4083a7a.entry.js} +1 -1
  822. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  823. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  824. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  825. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  826. package/dist/ezui/p-ab574d59.js.gz +0 -0
  827. package/dist/ezui/{p-b959b5a1.entry.js → p-b0a7713d.entry.js} +1 -1
  828. package/dist/ezui/p-b0a7713d.entry.js.gz +0 -0
  829. package/dist/ezui/p-b1e45320.js.gz +0 -0
  830. package/dist/ezui/p-b853763b.js.gz +0 -0
  831. package/dist/ezui/{p-09c2e631.entry.js → p-b989a33e.entry.js} +1 -1
  832. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  833. package/dist/ezui/{p-a48979a8.entry.js → p-ba7e908a.entry.js} +1 -1
  834. package/dist/ezui/p-ba7e908a.entry.js.gz +0 -0
  835. package/dist/ezui/p-baec56c9.js.gz +0 -0
  836. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  837. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  838. package/dist/ezui/{p-df5b5c3d.entry.js → p-ce0b36d7.entry.js} +1 -1
  839. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  840. package/dist/ezui/{p-c96e536d.entry.js → p-d2645bdf.entry.js} +1 -1
  841. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  842. package/dist/ezui/{p-b2ce629f.entry.js → p-d5eb2fad.entry.js} +1 -1
  843. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  844. package/dist/ezui/{p-a9432878.entry.js → p-d6742c1e.entry.js} +1 -1
  845. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  846. package/dist/ezui/{p-4837f475.entry.js → p-d6bb930d.entry.js} +1 -1
  847. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  848. package/dist/ezui/{p-770cf2b8.entry.js → p-d6f50207.entry.js} +1 -1
  849. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  850. package/dist/ezui/{p-45ee32ac.entry.js → p-d75a50a7.entry.js} +1 -1
  851. package/dist/ezui/p-d75a50a7.entry.js.gz +0 -0
  852. package/dist/ezui/p-d8cc640d.entry.js +1 -0
  853. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  854. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  855. package/dist/ezui/{p-5f4a66ec.entry.js → p-dee18824.entry.js} +1 -1
  856. package/dist/ezui/p-dee18824.entry.js.gz +0 -0
  857. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  858. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  859. package/dist/ezui/{p-e9b409c1.entry.js → p-e7a7c594.entry.js} +1 -1
  860. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  861. package/dist/ezui/{p-b21efe83.entry.js → p-e8c57463.entry.js} +1 -1
  862. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  863. package/dist/ezui/p-ec7db713.js.gz +0 -0
  864. package/dist/ezui/{p-35e3715c.entry.js → p-ef8bd3e8.entry.js} +1 -1
  865. package/dist/ezui/p-ef8bd3e8.entry.js.gz +0 -0
  866. package/dist/ezui/{p-4b444fe9.entry.js → p-f1de2cd6.entry.js} +1 -1
  867. package/dist/ezui/p-f1de2cd6.entry.js.gz +0 -0
  868. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  869. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  870. package/dist/index.cjs.js.gz +0 -0
  871. package/dist/index.js.gz +0 -0
  872. package/package.json +1 -1
  873. package/dist/ezui/p-14d6aeb8.entry.js +0 -1
  874. package/dist/ezui/p-386569ef.entry.js +0 -309
  875. package/dist/ezui/p-51e34317.entry.js +0 -1
  876. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  877. package/dist/ezui/p-cec6267a.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as i,c as t,h as e}from"./p-e4c7eb39.js";import{i as n}from"./p-a61fdd20.js";import"@sankhyalabs/core";const a=class{constructor(e){i(this,e),this.ezPageChange=t(this,"ezPageChange",7),this.handlePreviousPage=()=>{this.currentPage>1&&(this.currentPage--,this.ezPageChange.emit(this.currentPage))},this.handleNextPage=()=>{this.currentPage<this.getTotalPages()&&(this.currentPage++,this.ezPageChange.emit(this.currentPage))},this.handlePageClick=i=>{this.currentPage=i,this.ezPageChange.emit(this.currentPage)},this.type="default",this.currentPage=1,this.totalItems=0,this.pageSize=10,this.hideInfoLabel=!1,this.pageLimit=10}async componentWillLoad(){this.i18n=await n()}getTotalPages(){return Math.ceil(this.totalItems/this.pageSize)}renderNextBtn(){return e("ez-button",{"aria-label":this.i18n("ez-pagination.nextPage"),label:this.i18n("ez-pagination.nextPage"),"data-element-id":"pagination-next-button",size:"small",iconName:"arrow-right",class:"ez-button--primary",mode:"icon",enabled:this.currentPage<this.getTotalPages(),onClick:()=>this.handleNextPage()})}renderPreviousBtn(){return e("ez-button",{label:this.i18n("ez-pagination.previousPage"),"aria-label":this.i18n("ez-pagination.previousPage"),"data-element-id":"pagination-previous-button",size:"small",iconName:"arrow-left",mode:"icon",enabled:this.currentPage>1,onClick:()=>this.handlePreviousPage()})}renderPageButton(i){return e("button",{"aria-label":`page-${i}`,class:{"page-button":!0,"current-page":this.currentPage===i},onClick:()=>this.handlePageClick(i)},i)}renderEllipsis(){return e("span",{"aria-label":"page-ellipsis",class:"ellipsis"},"...")}renderPageButtons(i){return i.map((i=>"..."===i?this.renderEllipsis():this.renderPageButton(i)))}renderInfoLabel(i,t){return!this.hideInfoLabel&&e("div",{class:"info"},e("span",{class:"info-range"},i," até ",t)," de ",this.totalItems)}renderDefault(){const i=(this.currentPage-1)*this.pageSize+1,t=Math.min(this.currentPage*this.pageSize,this.totalItems);return e("div",{class:"pagination-container"},this.renderInfoLabel(i,t),e("div",{class:"controls controls-compact"},this.renderPreviousBtn(),this.renderNextBtn()))}renderNumber(){const i=this.getTotalPages(),{currentPage:t,pageLimit:n}=this,a=[];if(i<=n)for(let t=1;t<=i;t++)a.push(t);else{const e=(i,t)=>Array.from({length:t-i+1},((t,e)=>i+e)),o=n-2;if(t>o)if(t<i-o+1){const o=n-4,s=Math.floor((o-1)/2),r=t-s,p=t+(o-1-s);a.push(1),a.push("..."),a.push(...e(r,p)),a.push("..."),a.push(i)}else a.push(1),a.push("..."),a.push(...e(i-(n-3),i));else a.push(...e(1,n-2)),a.push("..."),a.push(i)}return e("div",{class:"pagination-container"},e("div",{class:"controls"},this.renderPreviousBtn(),e("div",{class:"pages-options"},this.renderPageButtons(a)),this.renderNextBtn()))}render(){return"number"===this.type?this.renderNumber():this.renderDefault()}};a.style=".sc-ez-pagination-h{--ez-pagination__info--color:var(--color--petroleum-500);--ez-pagination__info--margin-right:var(--space--sm);--ez-pagination__info--text-weight:var(--text-weight--medium);--ez-pagination__info--font-size:var(--text--medium);--ez-pagination__info-range--font-weight:var(--font-weight--bold);--ez-pagination__pages-option-padding:var(--space--nano);--ez-pagination__pages-option-color:var(--color--petroleum-500);--ez-pagination__pages-option-weight:var(--text-weight--medium);--ez-pagination__pages-option-size:var(--text--medium)}.pagination-container.sc-ez-pagination{display:flex;align-items:center;justify-content:flex-start;overflow:hidden}.info.sc-ez-pagination{color:var(--ez-pagination__info--color);margin-right:var(--ez-pagination__info--margin-right);font-weight:var(--ez-pagination__info--text-weight);font-size:var(--ez-pagination__info--font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.info-range.sc-ez-pagination{font-weight:var(--ez-pagination__info-range--font-weight)}.controls.sc-ez-pagination{display:flex;align-items:center;flex-shrink:0}.controls-compact.sc-ez-pagination{gap:var(--space--2xs)}.pages-options.sc-ez-pagination{display:flex;align-items:center;padding:0 var(--ez-pagination__pages-option-padding)}.page-button.sc-ez-pagination{color:var(--ez-pagination__pages-option-color);font-weight:var(--ez-pagination__pages-option-weight);font-size:var(--ez-pagination__pages-option-size);background-color:transparent;padding:0;border:none;cursor:pointer;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}.current-page.sc-ez-pagination{color:var(--color--primary)}.page-info.sc-ez-pagination{margin:0 8px}.ellipsis.sc-ez-pagination{color:var(--ez-pagination__pages-option-color);font-weight:var(--ez-pagination__pages-option-weight);font-size:var(--ez-pagination__pages-option-size);min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}";export{a as ez_pagination}
1
+ import{r as i,c as t,h as e}from"./p-23a36bb6.js";import{i as n}from"./p-a61fdd20.js";import"@sankhyalabs/core";const a=class{constructor(e){i(this,e),this.ezPageChange=t(this,"ezPageChange",7),this.handlePreviousPage=()=>{this.currentPage>1&&(this.currentPage--,this.ezPageChange.emit(this.currentPage))},this.handleNextPage=()=>{this.currentPage<this.getTotalPages()&&(this.currentPage++,this.ezPageChange.emit(this.currentPage))},this.handlePageClick=i=>{this.currentPage=i,this.ezPageChange.emit(this.currentPage)},this.type="default",this.currentPage=1,this.totalItems=0,this.pageSize=10,this.hideInfoLabel=!1,this.pageLimit=10}async componentWillLoad(){this.i18n=await n()}getTotalPages(){return Math.ceil(this.totalItems/this.pageSize)}renderNextBtn(){return e("ez-button",{"aria-label":this.i18n("ez-pagination.nextPage"),label:this.i18n("ez-pagination.nextPage"),"data-element-id":"pagination-next-button",size:"small",iconName:"arrow-right",class:"ez-button--primary",mode:"icon",enabled:this.currentPage<this.getTotalPages(),onClick:()=>this.handleNextPage()})}renderPreviousBtn(){return e("ez-button",{label:this.i18n("ez-pagination.previousPage"),"aria-label":this.i18n("ez-pagination.previousPage"),"data-element-id":"pagination-previous-button",size:"small",iconName:"arrow-left",mode:"icon",enabled:this.currentPage>1,onClick:()=>this.handlePreviousPage()})}renderPageButton(i){return e("button",{"aria-label":`page-${i}`,class:{"page-button":!0,"current-page":this.currentPage===i},onClick:()=>this.handlePageClick(i)},i)}renderEllipsis(){return e("span",{"aria-label":"page-ellipsis",class:"ellipsis"},"...")}renderPageButtons(i){return i.map((i=>"..."===i?this.renderEllipsis():this.renderPageButton(i)))}renderInfoLabel(i,t){return!this.hideInfoLabel&&e("div",{class:"info"},e("span",{class:"info-range"},i," até ",t)," de ",this.totalItems)}renderDefault(){const i=(this.currentPage-1)*this.pageSize+1,t=Math.min(this.currentPage*this.pageSize,this.totalItems);return e("div",{class:"pagination-container"},this.renderInfoLabel(i,t),e("div",{class:"controls controls-compact"},this.renderPreviousBtn(),this.renderNextBtn()))}renderNumber(){const i=this.getTotalPages(),{currentPage:t,pageLimit:n}=this,a=[];if(i<=n)for(let t=1;t<=i;t++)a.push(t);else{const e=(i,t)=>Array.from({length:t-i+1},((t,e)=>i+e)),o=n-2;if(t>o)if(t<i-o+1){const o=n-4,s=Math.floor((o-1)/2),r=t-s,p=t+(o-1-s);a.push(1),a.push("..."),a.push(...e(r,p)),a.push("..."),a.push(i)}else a.push(1),a.push("..."),a.push(...e(i-(n-3),i));else a.push(...e(1,n-2)),a.push("..."),a.push(i)}return e("div",{class:"pagination-container"},e("div",{class:"controls"},this.renderPreviousBtn(),e("div",{class:"pages-options"},this.renderPageButtons(a)),this.renderNextBtn()))}render(){return"number"===this.type?this.renderNumber():this.renderDefault()}};a.style=".sc-ez-pagination-h{--ez-pagination__info--color:var(--color--petroleum-500);--ez-pagination__info--margin-right:var(--space--sm);--ez-pagination__info--text-weight:var(--text-weight--medium);--ez-pagination__info--font-size:var(--text--medium);--ez-pagination__info-range--font-weight:var(--font-weight--bold);--ez-pagination__pages-option-padding:var(--space--nano);--ez-pagination__pages-option-color:var(--color--petroleum-500);--ez-pagination__pages-option-weight:var(--text-weight--medium);--ez-pagination__pages-option-size:var(--text--medium)}.pagination-container.sc-ez-pagination{display:flex;align-items:center;justify-content:flex-start;overflow:hidden}.info.sc-ez-pagination{color:var(--ez-pagination__info--color);margin-right:var(--ez-pagination__info--margin-right);font-weight:var(--ez-pagination__info--text-weight);font-size:var(--ez-pagination__info--font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.info-range.sc-ez-pagination{font-weight:var(--ez-pagination__info-range--font-weight)}.controls.sc-ez-pagination{display:flex;align-items:center;flex-shrink:0}.controls-compact.sc-ez-pagination{gap:var(--space--2xs)}.pages-options.sc-ez-pagination{display:flex;align-items:center;padding:0 var(--ez-pagination__pages-option-padding)}.page-button.sc-ez-pagination{color:var(--ez-pagination__pages-option-color);font-weight:var(--ez-pagination__pages-option-weight);font-size:var(--ez-pagination__pages-option-size);background-color:transparent;padding:0;border:none;cursor:pointer;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}.current-page.sc-ez-pagination{color:var(--color--primary)}.page-info.sc-ez-pagination{margin:0 8px}.ellipsis.sc-ez-pagination{color:var(--ez-pagination__pages-option-color);font-weight:var(--ez-pagination__pages-option-weight);font-size:var(--ez-pagination__pages-option-size);min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}";export{a as ez_pagination}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as r,g as o}from"./p-e4c7eb39.js";import{MaskFormatter as n,ElementIDUtils as s}from"@sankhyalabs/core";const a=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this._isOverflowing=!1,this.label=void 0,this.alternativePlaceholder=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.hasInvalid=!1,this.mask=void 0,this.cleanValueMask=!1,this.canShowError=!0,this.restrict=void 0,this.mode="regular",this.noBorder=!1,this.password=!1,this.autoFocus=!1,this.hasRightSlotContent=!1,this.forceLabelFloat=!1}observeHasInvalid(t,i){t!==i&&this.validateErrors()}observeMask(){this.mask&&(null==this._maskFormatter?this._maskFormatter=new n(this.mask):this._maskFormatter.mask=this.mask)}observeValue(t,i){this._inputElem&&t!=i&&(this._inputElem.value=this.value||"",this.handleChange(),this.adjustFloatingLabel(),this.checkIsOverflowing(),this.isSlaveMode()||(this.errorMessage="",this.ezChange.emit(this.value)))}observeAlternativePlaceholder(t){this.forceLabelFloat=!!t}validateErrors(){const t=this.handleValidateErrorMessage(this.errorMessage);this.updateClassError(this.canShowError&&(t||this.hasInvalid))}handleValidateErrorMessage(t=this.errorMessage){return"string"==typeof t&&""!==t.trim()}updateClassError(t){this._inputElem&&(t?this._inputElem.classList.add("hasError"):this._inputElem.classList.remove("hasError"))}adjustFloatingLabel(){if(this.label&&this._labelElem){if(this._inputElem&&!this._inputElem.classList.contains("input--with--label")&&this._inputElem.classList.add("input--with--label"),this.forceLabelFloat)return;const t=this.value&&this.value.toString().length>0,i=this._labelElem.classList.contains("input__label--floated");t||this.isFocused()?i||this._labelElem.classList.add("input__label--floated"):i&&this._labelElem.classList.remove("input__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}isSlaveMode(){var t,i;return"true"===(null===(i=null===(t=this._hostElement)||void 0===t?void 0:t.dataset)||void 0===i?void 0:i.slaveMode)}adjustColorContentSlot(t=""){this._contentLeftSlot&&(this._contentLeftSlot.style.color=t)}adjustBorderInput(){this.noBorder&&this._inputElem.classList.add("input__slim--noborder")}async setFocus(t){const{selectText:i}=t||{};if(i&&this._inputElem.select(),this._inputElem.disabled)return this._inputElem.classList.add("focused"),void this._inputElem.scrollIntoView({behavior:"smooth",block:"start"});requestAnimationFrame((()=>this._inputElem.focus()))}async setBlur(){this._inputElem.blur()}async isInvalid(){return this.handleValidateErrorMessage()}handleFocusout(){const t=this._inputElem.value;if(t&&this._maskFormatter)try{this.cleanValueMask?this.applyMask(t):this._inputElem.value=this._maskFormatter.format(t)}catch(t){this.errorMessage=t.message}this.controlChangeValue(),this.adjustFloatingLabel(),this.adjustColorContentSlot()}isValidValue(t){return!this.restrict||Array.from(t).reduce(((t,i)=>t&&this.restrict.indexOf(i)>-1),!0)}controlChangeValue(){this._inputElem&&(this.value||"")!==this._inputElem.value&&(this.value=this.cleanValueMask&&this._maskFormatter?this._maskFormatter.removeMask(this._inputElem.value):this._inputElem.value)}applyMask(t){if(!t||""===t)return t;if(this._maskFormatter)try{const i=this._maskFormatter.applyMask(this._maskFormatter.removeMask(t));return this._inputElem?(this._inputElem.value=i,this._inputElem.value):(this.value=i,this.value)}catch(t){this.errorMessage=t.message}return t}handleChange(){if(!this._inputElem)return;const t=this._inputElem.value;this.isValidValue(t)?this._lastValidValue=t:this._inputElem.value=null==this._lastValidValue?"":this._lastValidValue,this.controlChangeValue()}handleSlotChange(t){var i;const e=t.target,r=e.assignedElements()[0];this.hasRightSlotContent=!1,r&&(r.style.position="absolute",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.overflow="hidden",r.style.top="0px",r.style.width="var(--ez-text-input__icon--width)",r.style.height="slim"!=this.mode?"var(--ez-text-input--height)":"var(--ez-text-input--height--slim)","leftIcon"==e.name?(r.style.left="0px",r.style.borderRadius="var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)",this._inputElem.classList.add("icon--left"),this._labelElem&&this._labelElem.classList.add("input__label--left"),this._contentLeftSlot=r):"rightIcon"==e.name&&(r.style.right="0px",r.style.borderRadius="0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0",this._inputElem.classList.add("icon--right"),this._labelElem&&this._labelElem.classList.add("input__label--right"),this._tooltipIconElem&&this._tooltipIconElem.classList.add("rightIconSlot"),this.hasRightSlotContent=(null===(i=r.children)||void 0===i?void 0:i.length)>0),e.name&&s.addIDInfo(r,e.name)),this.validateErrors()}doFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("input__label--floated")&&this._labelElem.classList.add("input__label--floated"),this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)")}getValue(){return this.mask&&this.cleanValueMask?this.applyMask(this.value):this.value}buildLabelClass(){let t=this.enabled?"input__label":"input__label input__label--disabled";return this.errorMessage&&(t+=" hasError"),this.forceLabelFloat&&(t+=" input__label--floated"),t}buildPlaceholder(){return this.alternativePlaceholder?this.alternativePlaceholder:"slim"===this.mode&&this.label?this.label:""}checkIsOverflowing(){this._isOverflowing=!!this._inputElem&&this._inputElem.offsetWidth<this._inputElem.scrollWidth}componentWillLoad(){if(this.observeMask(),this.forceLabelFloat=!!this.alternativePlaceholder,this.value){if(this._maskFormatter)try{this.cleanValueMask?this.applyMask(this.value):this.value=this._maskFormatter.format(this.value)}catch(t){this.errorMessage=t.message}this.isValidValue(this.value)||(this._lastValidValue="",this.value="")}}componentDidLoad(){var t;this.validateErrors(),this.observeMask(),this.adjustFloatingLabel(),this.adjustBorderInput(),this.checkIsOverflowing(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})})),null===(t=this._inputElem)||void 0===t||t.addEventListener("focus",(()=>{var t;this._inputElem.setSelectionRange(0,null===(t=this._inputElem)||void 0===t?void 0:t.value.length)})),this.onClickOutside=t=>{this._inputElem.contains(t.target)||this._inputElem.classList.remove("focused")},document.addEventListener("click",this.onClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.onClickOutside)}componentDidRender(){this.adjustFloatingLabel()}render(){return s.addIDInfoIfNotExists(this._hostElement,"input"),e(r,{style:this._hostElement.classList.contains("grid_editor")?{height:"100%"}:null},e("slot",{name:"leftIcon",onSlotchange:t=>{this.handleSlotChange(t)}}),this.label&&"slim"!=this.mode?e("label",{ref:t=>this._labelElem=t,class:this.buildLabelClass(),onClick:()=>this._inputElem.focus(),title:this.label},this.label):null,e("input",{"data-element-id":s.getInternalIDInfo("input"),onFocus:()=>this.doFocus(),ref:t=>this._inputElem=t,type:this.password?"password":"text",class:"slim"===this.mode?"input--slim":"",placeholder:this.buildPlaceholder(),value:this.getValue(),disabled:!this.enabled,onInput:()=>{this.handleChange()},onFocusout:()=>{this.handleFocusout()}}),e("ez-tooltip",{anchoringElement:this._hostElement,message:this.getValue(),active:this._isOverflowing,useAnchorSize:!0}),this.canShowError&&"slim"!=this.mode&&this.errorMessage&&e("ez-tooltip",{type:"error",message:this.errorMessage},e("ez-icon",{class:`tooltip-icon ${this.errorMessage?"hasError":""} ${this.hasRightSlotContent?"rightIconSlot":""}`,"data-element-id":s.getInternalIDInfo("tooltip-icon"),ref:t=>this._tooltipIconElem=t,iconName:"alert-circle"})),e("slot",{name:"rightIcon",onSlotchange:t=>{this.handleSlotChange(t)}}," "))}get _hostElement(){return o(this)}static get watchers(){return{hasInvalid:["observeHasInvalid"],errorMessage:["observeHasInvalid"],canShowError:["observeHasInvalid"],mask:["observeMask"],value:["observeValue"],alternativePlaceholder:["observeAlternativePlaceholder"]}}};a.style=":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.focused{border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";export{a as ez_text_input}
1
+ import{r as t,c as i,h as e,H as r,g as o}from"./p-23a36bb6.js";import{MaskFormatter as n,ElementIDUtils as s}from"@sankhyalabs/core";const a=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this._isOverflowing=!1,this.label=void 0,this.alternativePlaceholder=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.hasInvalid=!1,this.mask=void 0,this.cleanValueMask=!1,this.canShowError=!0,this.restrict=void 0,this.mode="regular",this.noBorder=!1,this.password=!1,this.autoFocus=!1,this.hasRightSlotContent=!1,this.forceLabelFloat=!1}observeHasInvalid(t,i){t!==i&&this.validateErrors()}observeMask(){this.mask&&(null==this._maskFormatter?this._maskFormatter=new n(this.mask):this._maskFormatter.mask=this.mask)}observeValue(t,i){this._inputElem&&t!=i&&(this._inputElem.value=this.value||"",this.handleChange(),this.adjustFloatingLabel(),this.checkIsOverflowing(),this.isSlaveMode()||(this.errorMessage="",this.ezChange.emit(this.value)))}observeAlternativePlaceholder(t){this.forceLabelFloat=!!t}validateErrors(){const t=this.handleValidateErrorMessage(this.errorMessage);this.updateClassError(this.canShowError&&(t||this.hasInvalid))}handleValidateErrorMessage(t=this.errorMessage){return"string"==typeof t&&""!==t.trim()}updateClassError(t){this._inputElem&&(t?this._inputElem.classList.add("hasError"):this._inputElem.classList.remove("hasError"))}adjustFloatingLabel(){if(this.label&&this._labelElem){if(this._inputElem&&!this._inputElem.classList.contains("input--with--label")&&this._inputElem.classList.add("input--with--label"),this.forceLabelFloat)return;const t=this.value&&this.value.toString().length>0,i=this._labelElem.classList.contains("input__label--floated");t||this.isFocused()?i||this._labelElem.classList.add("input__label--floated"):i&&this._labelElem.classList.remove("input__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}isSlaveMode(){var t,i;return"true"===(null===(i=null===(t=this._hostElement)||void 0===t?void 0:t.dataset)||void 0===i?void 0:i.slaveMode)}adjustColorContentSlot(t=""){this._contentLeftSlot&&(this._contentLeftSlot.style.color=t)}adjustBorderInput(){this.noBorder&&this._inputElem.classList.add("input__slim--noborder")}async setFocus(t){const{selectText:i}=t||{};if(i&&this._inputElem.select(),this._inputElem.disabled)return this._inputElem.classList.add("focused"),void this._inputElem.scrollIntoView({behavior:"smooth",block:"start"});requestAnimationFrame((()=>this._inputElem.focus()))}async setBlur(){this._inputElem.blur()}async isInvalid(){return this.handleValidateErrorMessage()}handleFocusout(){const t=this._inputElem.value;if(t&&this._maskFormatter)try{this.cleanValueMask?this.applyMask(t):this._inputElem.value=this._maskFormatter.format(t)}catch(t){this.errorMessage=t.message}this.controlChangeValue(),this.adjustFloatingLabel(),this.adjustColorContentSlot()}isValidValue(t){return!this.restrict||Array.from(t).reduce(((t,i)=>t&&this.restrict.indexOf(i)>-1),!0)}controlChangeValue(){this._inputElem&&(this.value||"")!==this._inputElem.value&&(this.value=this.cleanValueMask&&this._maskFormatter?this._maskFormatter.removeMask(this._inputElem.value):this._inputElem.value)}applyMask(t){if(!t||""===t)return t;if(this._maskFormatter)try{const i=this._maskFormatter.applyMask(this._maskFormatter.removeMask(t));return this._inputElem?(this._inputElem.value=i,this._inputElem.value):(this.value=i,this.value)}catch(t){this.errorMessage=t.message}return t}handleChange(){if(!this._inputElem)return;const t=this._inputElem.value;this.isValidValue(t)?this._lastValidValue=t:this._inputElem.value=null==this._lastValidValue?"":this._lastValidValue,this.controlChangeValue()}handleSlotChange(t){var i;const e=t.target,r=e.assignedElements()[0];this.hasRightSlotContent=!1,r&&(r.style.position="absolute",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.overflow="hidden",r.style.top="0px",r.style.width="var(--ez-text-input__icon--width)",r.style.height="slim"!=this.mode?"var(--ez-text-input--height)":"var(--ez-text-input--height--slim)","leftIcon"==e.name?(r.style.left="0px",r.style.borderRadius="var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)",this._inputElem.classList.add("icon--left"),this._labelElem&&this._labelElem.classList.add("input__label--left"),this._contentLeftSlot=r):"rightIcon"==e.name&&(r.style.right="0px",r.style.borderRadius="0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0",this._inputElem.classList.add("icon--right"),this._labelElem&&this._labelElem.classList.add("input__label--right"),this._tooltipIconElem&&this._tooltipIconElem.classList.add("rightIconSlot"),this.hasRightSlotContent=(null===(i=r.children)||void 0===i?void 0:i.length)>0),e.name&&s.addIDInfo(r,e.name)),this.validateErrors()}doFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("input__label--floated")&&this._labelElem.classList.add("input__label--floated"),this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)")}getValue(){return this.mask&&this.cleanValueMask?this.applyMask(this.value):this.value}buildLabelClass(){let t=this.enabled?"input__label":"input__label input__label--disabled";return this.errorMessage&&(t+=" hasError"),this.forceLabelFloat&&(t+=" input__label--floated"),t}buildPlaceholder(){return this.alternativePlaceholder?this.alternativePlaceholder:"slim"===this.mode&&this.label?this.label:""}checkIsOverflowing(){this._isOverflowing=!!this._inputElem&&this._inputElem.offsetWidth<this._inputElem.scrollWidth}componentWillLoad(){if(this.observeMask(),this.forceLabelFloat=!!this.alternativePlaceholder,this.value){if(this._maskFormatter)try{this.cleanValueMask?this.applyMask(this.value):this.value=this._maskFormatter.format(this.value)}catch(t){this.errorMessage=t.message}this.isValidValue(this.value)||(this._lastValidValue="",this.value="")}}componentDidLoad(){var t;this.validateErrors(),this.observeMask(),this.adjustFloatingLabel(),this.adjustBorderInput(),this.checkIsOverflowing(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})})),null===(t=this._inputElem)||void 0===t||t.addEventListener("focus",(()=>{var t;this._inputElem.setSelectionRange(0,null===(t=this._inputElem)||void 0===t?void 0:t.value.length)})),this.onClickOutside=t=>{this._inputElem.contains(t.target)||this._inputElem.classList.remove("focused")},document.addEventListener("click",this.onClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.onClickOutside)}componentDidRender(){this.adjustFloatingLabel()}render(){return s.addIDInfoIfNotExists(this._hostElement,"input"),e(r,{style:this._hostElement.classList.contains("grid_editor")?{height:"100%"}:null},e("slot",{name:"leftIcon",onSlotchange:t=>{this.handleSlotChange(t)}}),this.label&&"slim"!=this.mode?e("label",{ref:t=>this._labelElem=t,class:this.buildLabelClass(),onClick:()=>this._inputElem.focus(),title:this.label},this.label):null,e("input",{"data-element-id":s.getInternalIDInfo("input"),onFocus:()=>this.doFocus(),ref:t=>this._inputElem=t,type:this.password?"password":"text",class:"slim"===this.mode?"input--slim":"",placeholder:this.buildPlaceholder(),value:this.getValue(),disabled:!this.enabled,onInput:()=>{this.handleChange()},onFocusout:()=>{this.handleFocusout()}}),e("ez-tooltip",{anchoringElement:this._hostElement,message:this.getValue(),active:this._isOverflowing,useAnchorSize:!0}),this.canShowError&&"slim"!=this.mode&&this.errorMessage&&e("ez-tooltip",{type:"error",message:this.errorMessage},e("ez-icon",{class:`tooltip-icon ${this.errorMessage?"hasError":""} ${this.hasRightSlotContent?"rightIconSlot":""}`,"data-element-id":s.getInternalIDInfo("tooltip-icon"),ref:t=>this._tooltipIconElem=t,iconName:"alert-circle"})),e("slot",{name:"rightIcon",onSlotchange:t=>{this.handleSlotChange(t)}}," "))}get _hostElement(){return o(this)}static get watchers(){return{hasInvalid:["observeHasInvalid"],errorMessage:["observeHasInvalid"],canShowError:["observeHasInvalid"],mask:["observeMask"],value:["observeValue"],alternativePlaceholder:["observeAlternativePlaceholder"]}}};a.style=":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.focused{border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";export{a as ez_text_input}
Binary file
@@ -1 +1 @@
1
- import{r as e,c as r,h as t,H as i}from"./p-e4c7eb39.js";import{StringUtils as a}from"@sankhyalabs/core";import{i as s}from"./p-a61fdd20.js";const l=class{constructor(t){e(this,t),this.changeValue=r(this,"changeValue",7),this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this.showLoading=void 0,this.visibleOptions=[],this.value=void 0,this.showOptionValue=!0,this._preSelection=void 0}observerVisivleOptions(e){e.length&&this.preSelectItemByIndex(0)}async nextOption(){const e=void 0===this._preSelection?0:Math.min(this._preSelection+1,this.visibleOptions.length-1);this.preSelectItemByIndex(e)}async previousOption(){const e=void 0===this._preSelection?0:Math.max(this._preSelection-1,0);this.preSelectItemByIndex(e)}preSelectItemByIndex(e){this._preSelection=e,this.scrollToOption(this.visibleOptions[e])}selectOption(e){const r=Object.assign(Object.assign({},e),{value:null==e?void 0:e.value,label:null==e?void 0:e.label}),t=Object.assign(Object.assign({},r),{value:this.removeHighLight(null==r?void 0:r.value),label:this.removeHighLight(null==r?void 0:r.label)});this.changeValue.emit(t)}removeHighLight(e){if(!e||"string"!=typeof e)return e;const r=new RegExp(this._startHighlightTag,"g"),t=new RegExp(this._endHighlightTag,"g");return e.replace(r,"").replace(t,"")}createAndSelectOption(e){let{key:r,title:t}=e;r=String(null!=r?r:""),t=a.decodeHtmlEntities(t);const i={value:this.removeHighLight(r),label:this.removeHighLight(t)};this.selectOption(i)}scrollToOption(e){(null==e?void 0:e.value)&&this._optionsList&&window.requestAnimationFrame((()=>{var r;const t=String(null!==(r=null==e?void 0:e.value)&&void 0!==r?r:""),i=t?this._optionsList.querySelector(`div#item_${t.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g,"\\$1")}`):void 0;i&&i.scrollIntoView({behavior:"smooth",block:"nearest"})}))}buildItem(e,r){var i;e.label=e.label||e.value;const a={key:String(null!==(i=e.presentationValue)&&void 0!==i?i:""),title:e.presentationLabel,details:e.details};return t("div",{style:{height:"100%"},class:r===this._preSelection?"item preselected":"item",id:`item_${e.value}`,onMouseDown:()=>this.createAndSelectOption(a),onMouseOver:()=>{this._preSelection=r}},t("ez-card-item",{item:a,compacted:!0,enableKey:this.showOptionValue}))}async selectCurrentItem(){this.selectOption(this.visibleOptions[this._preSelection])}async cancelSelection(){this.cancelPreselection()}cancelPreselection(){this._preSelection=void 0}canShowListOptions(){return!this.showLoading&&this.visibleOptions.length>0}async componentWillLoad(){this.i18n=await s()}render(){return t(i,null,t("ul",{class:"list-options",ref:e=>this._optionsList=e},!this.showLoading&&0===this.visibleOptions.length&&t("div",{class:"message"},t("span",{class:"message__no-result"},this.i18n("ez-search-plus.emptyList"))),this.showLoading&&t("div",{class:"loading__container"},t("ez-skeleton",{count:4,height:"20px"})),this.canShowListOptions()&&this.visibleOptions.map(((e,r)=>this.buildItem(e,r)))))}static get watchers(){return{visibleOptions:["observerVisivleOptions"]}}};l.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)}.loading__container{display:flex;flex-direction:column;margin:var(--space--small)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-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{l as ez_search_result_list}
1
+ import{r as e,c as r,h as t,H as i}from"./p-23a36bb6.js";import{StringUtils as a}from"@sankhyalabs/core";import{i as s}from"./p-a61fdd20.js";const l=class{constructor(t){e(this,t),this.changeValue=r(this,"changeValue",7),this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this.showLoading=void 0,this.visibleOptions=[],this.value=void 0,this.showOptionValue=!0,this._preSelection=void 0}observerVisivleOptions(e){e.length&&this.preSelectItemByIndex(0)}async nextOption(){const e=void 0===this._preSelection?0:Math.min(this._preSelection+1,this.visibleOptions.length-1);this.preSelectItemByIndex(e)}async previousOption(){const e=void 0===this._preSelection?0:Math.max(this._preSelection-1,0);this.preSelectItemByIndex(e)}preSelectItemByIndex(e){this._preSelection=e,this.scrollToOption(this.visibleOptions[e])}selectOption(e){const r=Object.assign(Object.assign({},e),{value:null==e?void 0:e.value,label:null==e?void 0:e.label}),t=Object.assign(Object.assign({},r),{value:this.removeHighLight(null==r?void 0:r.value),label:this.removeHighLight(null==r?void 0:r.label)});this.changeValue.emit(t)}removeHighLight(e){if(!e||"string"!=typeof e)return e;const r=new RegExp(this._startHighlightTag,"g"),t=new RegExp(this._endHighlightTag,"g");return e.replace(r,"").replace(t,"")}createAndSelectOption(e){let{key:r,title:t}=e;r=String(null!=r?r:""),t=a.decodeHtmlEntities(t);const i={value:this.removeHighLight(r),label:this.removeHighLight(t)};this.selectOption(i)}scrollToOption(e){(null==e?void 0:e.value)&&this._optionsList&&window.requestAnimationFrame((()=>{var r;const t=String(null!==(r=null==e?void 0:e.value)&&void 0!==r?r:""),i=t?this._optionsList.querySelector(`div#item_${t.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g,"\\$1")}`):void 0;i&&i.scrollIntoView({behavior:"smooth",block:"nearest"})}))}buildItem(e,r){var i;e.label=e.label||e.value;const a={key:String(null!==(i=e.presentationValue)&&void 0!==i?i:""),title:e.presentationLabel,details:e.details};return t("div",{style:{height:"100%"},class:r===this._preSelection?"item preselected":"item",id:`item_${e.value}`,onMouseDown:()=>this.createAndSelectOption(a),onMouseOver:()=>{this._preSelection=r}},t("ez-card-item",{item:a,compacted:!0,enableKey:this.showOptionValue}))}async selectCurrentItem(){this.selectOption(this.visibleOptions[this._preSelection])}async cancelSelection(){this.cancelPreselection()}cancelPreselection(){this._preSelection=void 0}canShowListOptions(){return!this.showLoading&&this.visibleOptions.length>0}async componentWillLoad(){this.i18n=await s()}render(){return t(i,null,t("ul",{class:"list-options",ref:e=>this._optionsList=e},!this.showLoading&&0===this.visibleOptions.length&&t("div",{class:"message"},t("span",{class:"message__no-result"},this.i18n("ez-search-plus.emptyList"))),this.showLoading&&t("div",{class:"loading__container"},t("ez-skeleton",{count:4,height:"20px"})),this.canShowListOptions()&&this.visibleOptions.map(((e,r)=>this.buildItem(e,r)))))}static get watchers(){return{visibleOptions:["observerVisivleOptions"]}}};l.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)}.loading__container{display:flex;flex-direction:column;margin:var(--space--small)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-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{l as ez_search_result_list}
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as e}from"./p-e4c7eb39.js";import{UserInterface as s}from"@sankhyalabs/core";import{a as l}from"./p-b1e45320.js";import{i as o}from"./p-a61fdd20.js";const n=window,a=new CustomEvent("onSubmitFilter",{detail:{showToast:!0}}),r=class{constructor(e){t(this,e),this.applyFilterColumnOptions=i(this,"applyFilterColumnOptions",7),this.opened=!0,this.columnName=void 0,this.columnLabel=void 0,this.gridHeaderHidden=!1,this.noHeaderTaskBar=!1,this.dataSource=void 0,this.dataUnit=void 0,this.options=void 0,this.selectedItems=void 0,this.fieldDescriptor=void 0,this.useOptions=!1,this.isTextSearch=!1}async hide(){await this.ezPopoverElement.hide(),await this.clearConfigs()}async show(t){var i;this.canShow(t)&&(this.fieldDescriptor=null!==(i=t.fieldDescriptor)&&void 0!==i?i:this.dataUnit.getField(t.columnName),this.buildIsTextSearch(),this.columnName=t.columnName,this.columnLabel=t.columnLabel,await this.setOptions(t),await this.ezPopoverElement.showUnder(`filter-column-${t.columnName}-${this.dataUnit.dataUnitId}`))}buildIsTextSearch(){var t,i;const e=null!==(i=null===(t=this.fieldDescriptor)||void 0===t?void 0:t.userInterface)&&void 0!==i?i:s.SHORTTEXT;this.isTextSearch=!(e===s.DECIMALNUMBER||e===s.INTEGERNUMBER)}async clearConfigs(){var t;await(null===(t=this.ezMultiSelectionList)||void 0===t?void 0:t.clearFilteredOptions()),this.options=null,this.columnName=null}canShow(t){return!this.ezPopoverElement.opened||t.columnName!==this.columnName}submit(){this.applyFilterColumnOptions.emit({field:this.columnName,values:this.selectedItems}),n.dispatchEvent(a),this.hide()}changeSelectedItems(t){this.selectedItems=t}hasToUseOptions(){return this.fieldDescriptor.userInterface===s.OPTIONSELECTOR||this.fieldDescriptor.userInterface===s.SWITCH||this.fieldDescriptor.userInterface===s.CHECKBOX}isCheckBoxOrSwitch(){return this.fieldDescriptor.userInterface===s.SWITCH||this.fieldDescriptor.userInterface===s.CHECKBOX}async setOptions(t){var i,e,s,o;const n=t.filteredOptions,a=this.hasToUseOptions();if(a)return this.useOptions=a,void(this.options=a?this.buildOptions(n):null!=n?n:null);let r=this.columnName;const h={onlyLabel:!1};(null===(e=null===(i=t.fieldDescriptor)||void 0===i?void 0:i.properties)||void 0===e?void 0:e[l])&&(r=null===(o=null===(s=t.fieldDescriptor)||void 0===s?void 0:s.properties)||void 0===o?void 0:o[l],h.onlyLabel=!0);const c=await this.dataSource.getStaticOptions(r,h);if(null!=c){const t=new Set((n||[]).filter((t=>t.check)).map((t=>t.label)));return this.useOptions=!0,void(this.options=0===t.size?c:c.map((i=>Object.assign(Object.assign({},i),{check:t.has(i.label)}))))}this.useOptions=!1,this.options=null}buildOptions(t){var i,e;if(t&&t.length>0)return t;if(this.isCheckBoxOrSwitch())return[{label:this.i18n("app.yes"),value:"true",check:!0},{label:this.i18n("app.no"),value:"false",check:!0}];const s=null===(e=null===(i=this.fieldDescriptor)||void 0===i?void 0:i.properties)||void 0===e?void 0:e.options;if(Array.isArray(s))return s.map((t=>({label:t.value,value:t.value,check:!0})));const l=JSON.parse(s);return Object.keys(l).map((t=>({label:l[t],value:t,check:!0})))}handleEzVisibilityChange(t){!1===t.detail&&this.clearConfigs()}async componentWillLoad(){this.i18n=await o()}render(){return e("ez-popover-plus",{ref:t=>this.ezPopoverElement=t,class:"filter-column__popover","overlay-type":"none",autoClose:!0,onEzVisibilityChange:this.handleEzVisibilityChange.bind(this)},e("section",{class:"filter-column"},e("header",{class:"filter-column__header"},e("span",{class:"ez-text ez-text--medium filter-column__header-title"},this.i18n("ez-grid.filterColumnHeader",{columnLabel:this.columnLabel})),e("ez-button",{mode:"icon","icon-name":"close",class:"ez-button--tertiary",onClick:()=>this.hide()})),e("ez-multi-selection-list",{id:"filter-column-selection-list",columnName:this.columnName,dataSource:this.dataSource,options:this.options,useOptions:this.useOptions,ref:t=>this.ezMultiSelectionList=t,onChangeFilteredOptions:t=>this.changeSelectedItems(t.detail),isTextSearch:this.isTextSearch,"data-element-id":this.columnName}),e("footer",{class:"filter-column__footer"},e("ez-button",{label:this.i18n("app.apply"),class:"ez-button--primary",onClick:this.submit.bind(this)}))))}};r.style=".filter-column{padding:var(--space--2xs, 8px);position:relative}.filter-column__header{margin-bottom:var(--space--2xs, 8px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:var(--space--xl, 32px)}.filter-column__footer{position:relative;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;bottom:0;left:0;padding-top:var(--space--2xs, 8px);border-top:var(--border--medium) var(--color--disable-secondary)}.filter-column__popover{position:absolute}.filter-column__header-title{margin-left:8px}#filter-column-selection-list{--ez-multi-selection-default-height:unset}";export{r as filter_column}
1
+ import{r as t,c as i,h as e}from"./p-23a36bb6.js";import{UserInterface as s}from"@sankhyalabs/core";import{a as l}from"./p-b1e45320.js";import{i as o}from"./p-a61fdd20.js";const n=window,a=new CustomEvent("onSubmitFilter",{detail:{showToast:!0}}),r=class{constructor(e){t(this,e),this.applyFilterColumnOptions=i(this,"applyFilterColumnOptions",7),this.opened=!0,this.columnName=void 0,this.columnLabel=void 0,this.gridHeaderHidden=!1,this.noHeaderTaskBar=!1,this.dataSource=void 0,this.dataUnit=void 0,this.options=void 0,this.selectedItems=void 0,this.fieldDescriptor=void 0,this.useOptions=!1,this.isTextSearch=!1}async hide(){await this.ezPopoverElement.hide(),await this.clearConfigs()}async show(t){var i;this.canShow(t)&&(this.fieldDescriptor=null!==(i=t.fieldDescriptor)&&void 0!==i?i:this.dataUnit.getField(t.columnName),this.buildIsTextSearch(),this.columnName=t.columnName,this.columnLabel=t.columnLabel,await this.setOptions(t),await this.ezPopoverElement.showUnder(`filter-column-${t.columnName}-${this.dataUnit.dataUnitId}`))}buildIsTextSearch(){var t,i;const e=null!==(i=null===(t=this.fieldDescriptor)||void 0===t?void 0:t.userInterface)&&void 0!==i?i:s.SHORTTEXT;this.isTextSearch=!(e===s.DECIMALNUMBER||e===s.INTEGERNUMBER)}async clearConfigs(){var t;await(null===(t=this.ezMultiSelectionList)||void 0===t?void 0:t.clearFilteredOptions()),this.options=null,this.columnName=null}canShow(t){return!this.ezPopoverElement.opened||t.columnName!==this.columnName}submit(){this.applyFilterColumnOptions.emit({field:this.columnName,values:this.selectedItems}),n.dispatchEvent(a),this.hide()}changeSelectedItems(t){this.selectedItems=t}hasToUseOptions(){return this.fieldDescriptor.userInterface===s.OPTIONSELECTOR||this.fieldDescriptor.userInterface===s.SWITCH||this.fieldDescriptor.userInterface===s.CHECKBOX}isCheckBoxOrSwitch(){return this.fieldDescriptor.userInterface===s.SWITCH||this.fieldDescriptor.userInterface===s.CHECKBOX}async setOptions(t){var i,e,s,o;const n=t.filteredOptions,a=this.hasToUseOptions();if(a)return this.useOptions=a,void(this.options=a?this.buildOptions(n):null!=n?n:null);let r=this.columnName;const h={onlyLabel:!1};(null===(e=null===(i=t.fieldDescriptor)||void 0===i?void 0:i.properties)||void 0===e?void 0:e[l])&&(r=null===(o=null===(s=t.fieldDescriptor)||void 0===s?void 0:s.properties)||void 0===o?void 0:o[l],h.onlyLabel=!0);const c=await this.dataSource.getStaticOptions(r,h);if(null!=c){const t=new Set((n||[]).filter((t=>t.check)).map((t=>t.label)));return this.useOptions=!0,void(this.options=0===t.size?c:c.map((i=>Object.assign(Object.assign({},i),{check:t.has(i.label)}))))}this.useOptions=!1,this.options=null}buildOptions(t){var i,e;if(t&&t.length>0)return t;if(this.isCheckBoxOrSwitch())return[{label:this.i18n("app.yes"),value:"true",check:!0},{label:this.i18n("app.no"),value:"false",check:!0}];const s=null===(e=null===(i=this.fieldDescriptor)||void 0===i?void 0:i.properties)||void 0===e?void 0:e.options;if(Array.isArray(s))return s.map((t=>({label:t.value,value:t.value,check:!0})));const l=JSON.parse(s);return Object.keys(l).map((t=>({label:l[t],value:t,check:!0})))}handleEzVisibilityChange(t){!1===t.detail&&this.clearConfigs()}async componentWillLoad(){this.i18n=await o()}render(){return e("ez-popover-plus",{ref:t=>this.ezPopoverElement=t,class:"filter-column__popover","overlay-type":"none",autoClose:!0,onEzVisibilityChange:this.handleEzVisibilityChange.bind(this)},e("section",{class:"filter-column"},e("header",{class:"filter-column__header"},e("span",{class:"ez-text ez-text--medium filter-column__header-title"},this.i18n("ez-grid.filterColumnHeader",{columnLabel:this.columnLabel})),e("ez-button",{mode:"icon","icon-name":"close",class:"ez-button--tertiary",onClick:()=>this.hide()})),e("ez-multi-selection-list",{id:"filter-column-selection-list",columnName:this.columnName,dataSource:this.dataSource,options:this.options,useOptions:this.useOptions,ref:t=>this.ezMultiSelectionList=t,onChangeFilteredOptions:t=>this.changeSelectedItems(t.detail),isTextSearch:this.isTextSearch,"data-element-id":this.columnName}),e("footer",{class:"filter-column__footer"},e("ez-button",{label:this.i18n("app.apply"),class:"ez-button--primary",onClick:this.submit.bind(this)}))))}};r.style=".filter-column{padding:var(--space--2xs, 8px);position:relative}.filter-column__header{margin-bottom:var(--space--2xs, 8px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:var(--space--xl, 32px)}.filter-column__footer{position:relative;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;bottom:0;left:0;padding-top:var(--space--2xs, 8px);border-top:var(--border--medium) var(--color--disable-secondary)}.filter-column__popover{position:absolute}.filter-column__header-title{margin-left:8px}#filter-column-selection-list{--ez-multi-selection-default-height:unset}";export{r as filter_column}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,H as n,g as s}from"./p-e4c7eb39.js";import{FloatingManager as e,ElementIDUtils as a}from"@sankhyalabs/core";import"./p-baec56c9.js";import{C as c}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-a61fdd20.js";import"./p-30ffb9ed.js";const r=class{constructor(o){t(this,o),this.ezAction=i(this,"ezAction",7),this.ezPopoverOpen=i(this,"ezPopoverOpen",7),this.ezDisconnectedActionButtons=i(this,"ezDisconnectedActionButtons",7),this._arrowOffset=5,this.innerClickCheck=(t,i)=>{var o;if(i&&t){if(i===t)return!0;const n=t.children;for(let t=0;t<n.length;t++)if(null===(o=n[t].shadowRoot)||void 0===o?void 0:o.contains(i))return!0;do{if(t.contains(i))return!0;i=i.offsetParent}while(null!=i&&i!=document.getRootNode())}return!1},this._selectedAction=void 0,this.enabled=!0,this.actions=void 0,this.size="medium",this.showLabel=!1,this.displayIcon=void 0,this.checkOption=!1,this.value=void 0,this.isTransparent=!1,this.arrowActive=!1}async hideActions(){null!=this._floatingID&&e.close(this._floatingID),this._floatingID=void 0}async showActions(){if(!this.enabled)return;const t=this.getFloatOptions();this._floatingID=e.float(this._actionsList,this._listContainer,t);const i=this.getSideLimit();null!=i&&(t.left=i,e.updateFloatPosition(this._actionsList,this._listContainer,t)),window.requestAnimationFrame((()=>{this._actionsList.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.ezPopoverOpen.emit(this._actionsList)}async isOpened(){return null!=this._floatingID}getFloatOptions(){return{autoClose:!0,innerClickTest:this.innerClickCheck,isFixed:!0,top:this.getPositionTop(),left:this.getPositionLeft(),backClickListener:()=>this._floatingID=void 0}}getSideLimit(){var t;const i=document.body.clientWidth,o=null===(t=this._actionsList)||void 0===t?void 0:t.getBoundingClientRect(),n=i-this._button.getBoundingClientRect().right;if((null==o?void 0:o.right)>=i||(null==o?void 0:o.right)===i-n)return i-o.width-n+"px"}updatePosition(){if(!this.enabled||null==this._floatingID)return;const t=this.getFloatOptions(),i=this.getSideLimit();null!=i&&(t.left=i),e.updateFloatPosition(this._actionsList,this._listContainer,t)}getPositionTop(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.y+i.height+"px"}getBoundingLeft(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.x-(this.arrowActive?this._arrowOffset:0)+"px"}getPositionLeft(){return this.getBoundingLeft()||(this.arrowActive?`-${this._arrowOffset}px`:null)}hasLabelOrCheckOption(){var t;return(this.showLabel||this.checkOption)&&(null===(t=this.actions)||void 0===t?void 0:t.length)>0}hasIconName(){var t;return null===(t=this.actions)||void 0===t?void 0:t.some((t=>null!=t.iconName))}controlScrollPage(){window.removeEventListener("scroll",this.updatePosition.bind(this)),window.addEventListener("scroll",this.updatePosition.bind(this))}handlerButtonClick(){this.showActions()}actionClick(t){this._selectedAction=t,this.hideActions(),this.ezAction.emit(t)}componentWillLoad(){if(null==this.actions){this.actions=[];const t=this._element.querySelectorAll("action");t&&t.forEach((t=>{let i=t.innerText,o=t.getAttribute("value"),n=!("false"===t.getAttribute("enabled"));o||(o=i),this.actions.push({label:i,value:o,enabled:n}),t.hidden=!0}))}}disconnectedCallback(){this.ezDisconnectedActionButtons.emit()}componentDidLoad(){c.applyVarsButton(this._element,this._button),a.addIDInfo(this._element),this.controlScrollPage()}componentDidRender(){var t;null==this._floatingID&&(null===(t=this._actionsList)||void 0===t||t.remove()),this.hasLabelOrCheckOption()&&(this.value?this._selectedAction=this.actions.find((t=>t.value===this.value)):this._selectedAction||(this._selectedAction=this.actions[0]))}buildActionElement(t){var i;if(t){if(null!=t.itemBuilder){const i=t.itemBuilder(this._element,t);return"string"==typeof i?o("div",{class:"ez-actions-button__btn-action",innerHTML:i}):i}return o("ez-button",{size:"small",label:t.label,onClick:()=>this.actionClick(t),enabled:t.enabled,class:"ez-actions-button__btn-action"+(this.checkOption||this.hasIconName()?" ez-actions-button__btn-action--spaced":"")},this.checkOption&&(null===(i=this._selectedAction)||void 0===i?void 0:i.value)===t.value&&o("ez-icon",{class:"ez-actions-button__icon-check",slot:"leftIcon",size:"small",iconName:"check"}),!this.checkOption&&t.iconName&&o("ez-icon",{class:"ez-actions-button__icon-item",slot:"leftIcon",size:"small",iconName:t.iconName}))}}render(){var t;return o(n,null,o("ez-button",{ref:t=>this._button=t,class:(this.isTransparent?"ez-actions-button__btn-transparent":"")+(this.showLabel?" ez-actions-button__btn-label":""),label:this.showLabel&&(null===(t=this._selectedAction)||void 0===t?void 0:t.label),enabled:this.enabled,mode:this.showLabel?void 0:"icon",iconName:this.showLabel?"":this.displayIcon||"dots-vertical",size:this.size,onClick:()=>this.handlerButtonClick()},this.showLabel&&o("ez-icon",{class:"ez-actions-button__icon-right",slot:"rightIcon",iconName:this.displayIcon||"dots-vertical"})),o("section",{class:"ez-actions-button__list-container",ref:t=>this._listContainer=t},this.arrowActive&&o("div",{class:"ez-actions-button__arrow ez-actions-button__arrow--"+(this.size||"small")+(this.isTransparent?" ez-actions-button__arrow--upped":"")}),o("div",{ref:t=>this._actionsList=t,class:"ez-actions-button__actions-list ez-actions-button__actions-list--max-height"+(this.arrowActive&&!this.isTransparent?" ez-actions-button__actions-list--lowered":"")},this.actions.map((t=>this.buildActionElement(t))))))}get _element(){return s(this)}};r.style=":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px);--ez-button--border:none}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none;--ez-button--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";export{r as ez_actions_button}
1
+ import{r as t,c as i,h as o,H as n,g as s}from"./p-23a36bb6.js";import{FloatingManager as e,ElementIDUtils as a}from"@sankhyalabs/core";import"./p-baec56c9.js";import{C as c}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-a61fdd20.js";import"./p-30ffb9ed.js";const r=class{constructor(o){t(this,o),this.ezAction=i(this,"ezAction",7),this.ezPopoverOpen=i(this,"ezPopoverOpen",7),this.ezDisconnectedActionButtons=i(this,"ezDisconnectedActionButtons",7),this._arrowOffset=5,this.innerClickCheck=(t,i)=>{var o;if(i&&t){if(i===t)return!0;const n=t.children;for(let t=0;t<n.length;t++)if(null===(o=n[t].shadowRoot)||void 0===o?void 0:o.contains(i))return!0;do{if(t.contains(i))return!0;i=i.offsetParent}while(null!=i&&i!=document.getRootNode())}return!1},this._selectedAction=void 0,this.enabled=!0,this.actions=void 0,this.size="medium",this.showLabel=!1,this.displayIcon=void 0,this.checkOption=!1,this.value=void 0,this.isTransparent=!1,this.arrowActive=!1}async hideActions(){null!=this._floatingID&&e.close(this._floatingID),this._floatingID=void 0}async showActions(){if(!this.enabled)return;const t=this.getFloatOptions();this._floatingID=e.float(this._actionsList,this._listContainer,t);const i=this.getSideLimit();null!=i&&(t.left=i,e.updateFloatPosition(this._actionsList,this._listContainer,t)),window.requestAnimationFrame((()=>{this._actionsList.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.ezPopoverOpen.emit(this._actionsList)}async isOpened(){return null!=this._floatingID}getFloatOptions(){return{autoClose:!0,innerClickTest:this.innerClickCheck,isFixed:!0,top:this.getPositionTop(),left:this.getPositionLeft(),backClickListener:()=>this._floatingID=void 0}}getSideLimit(){var t;const i=document.body.clientWidth,o=null===(t=this._actionsList)||void 0===t?void 0:t.getBoundingClientRect(),n=i-this._button.getBoundingClientRect().right;if((null==o?void 0:o.right)>=i||(null==o?void 0:o.right)===i-n)return i-o.width-n+"px"}updatePosition(){if(!this.enabled||null==this._floatingID)return;const t=this.getFloatOptions(),i=this.getSideLimit();null!=i&&(t.left=i),e.updateFloatPosition(this._actionsList,this._listContainer,t)}getPositionTop(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.y+i.height+"px"}getBoundingLeft(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.x-(this.arrowActive?this._arrowOffset:0)+"px"}getPositionLeft(){return this.getBoundingLeft()||(this.arrowActive?`-${this._arrowOffset}px`:null)}hasLabelOrCheckOption(){var t;return(this.showLabel||this.checkOption)&&(null===(t=this.actions)||void 0===t?void 0:t.length)>0}hasIconName(){var t;return null===(t=this.actions)||void 0===t?void 0:t.some((t=>null!=t.iconName))}controlScrollPage(){window.removeEventListener("scroll",this.updatePosition.bind(this)),window.addEventListener("scroll",this.updatePosition.bind(this))}handlerButtonClick(){this.showActions()}actionClick(t){this._selectedAction=t,this.hideActions(),this.ezAction.emit(t)}componentWillLoad(){if(null==this.actions){this.actions=[];const t=this._element.querySelectorAll("action");t&&t.forEach((t=>{let i=t.innerText,o=t.getAttribute("value"),n=!("false"===t.getAttribute("enabled"));o||(o=i),this.actions.push({label:i,value:o,enabled:n}),t.hidden=!0}))}}disconnectedCallback(){this.ezDisconnectedActionButtons.emit()}componentDidLoad(){c.applyVarsButton(this._element,this._button),a.addIDInfo(this._element),this.controlScrollPage()}componentDidRender(){var t;null==this._floatingID&&(null===(t=this._actionsList)||void 0===t||t.remove()),this.hasLabelOrCheckOption()&&(this.value?this._selectedAction=this.actions.find((t=>t.value===this.value)):this._selectedAction||(this._selectedAction=this.actions[0]))}buildActionElement(t){var i;if(t){if(null!=t.itemBuilder){const i=t.itemBuilder(this._element,t);return"string"==typeof i?o("div",{class:"ez-actions-button__btn-action",innerHTML:i}):i}return o("ez-button",{size:"small",label:t.label,onClick:()=>this.actionClick(t),enabled:t.enabled,class:"ez-actions-button__btn-action"+(this.checkOption||this.hasIconName()?" ez-actions-button__btn-action--spaced":"")},this.checkOption&&(null===(i=this._selectedAction)||void 0===i?void 0:i.value)===t.value&&o("ez-icon",{class:"ez-actions-button__icon-check",slot:"leftIcon",size:"small",iconName:"check"}),!this.checkOption&&t.iconName&&o("ez-icon",{class:"ez-actions-button__icon-item",slot:"leftIcon",size:"small",iconName:t.iconName}))}}render(){var t;return o(n,null,o("ez-button",{ref:t=>this._button=t,class:(this.isTransparent?"ez-actions-button__btn-transparent":"")+(this.showLabel?" ez-actions-button__btn-label":""),label:this.showLabel&&(null===(t=this._selectedAction)||void 0===t?void 0:t.label),enabled:this.enabled,mode:this.showLabel?void 0:"icon",iconName:this.showLabel?"":this.displayIcon||"dots-vertical",size:this.size,onClick:()=>this.handlerButtonClick()},this.showLabel&&o("ez-icon",{class:"ez-actions-button__icon-right",slot:"rightIcon",iconName:this.displayIcon||"dots-vertical"})),o("section",{class:"ez-actions-button__list-container",ref:t=>this._listContainer=t},this.arrowActive&&o("div",{class:"ez-actions-button__arrow ez-actions-button__arrow--"+(this.size||"small")+(this.isTransparent?" ez-actions-button__arrow--upped":"")}),o("div",{ref:t=>this._actionsList=t,class:"ez-actions-button__actions-list ez-actions-button__actions-list--max-height"+(this.arrowActive&&!this.isTransparent?" ez-actions-button__actions-list--lowered":"")},this.actions.map((t=>this.buildActionElement(t))))))}get _element(){return s(this)}};r.style=":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px);--ez-button--border:none}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none;--ez-button--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";export{r as ez_actions_button}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as s,g as a}from"./p-e4c7eb39.js";import{DateUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as r}from"./p-ec7db713.js";import{i as h}from"./p-a61fdd20.js";const l=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.ezStartChange=e(this,"ezStartChange",7),this.ezCancelWaitingChange=e(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.mode="regular",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,e){if(this._textInput&&t!=e){const i=n.validateDate(t),s=n.validateDate(e);if((null==i?void 0:i.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(i)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===i?void 0:i)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const e=n.validateDate(this.value),i=n.validateDate(t);(null==e?void 0:e.getTime())!==(null==i?void 0:i.getTime())?this.value=i:this._changePending=!1}hideCalendar(){this.changeValue(this._calendar.value),this._popover.hide()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,e=n.strToDate(t);if(e||!t){this.errorMessage="";const t=n.validateDate(this.value),i=n.validateDate(e);(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._focused=!1,this.changeValue(i))}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-date-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){return t?n.formatDate(t):void 0}handleInput(t){const e=n.strToDate(this._textInput.value),i=n.validateDate(this.value),s=n.validateDate(e);(null==i?void 0:i.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 h()}componentDidLoad(){r.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return o.addIDInfoIfNotExists(this._elem,"input"),i(s,null,i("ez-text-input",{"data-element-id":o.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),restrict:"0123456789/",enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder},i("button",{disabled:!this.enabled,tabindex:-1,class:"btn-open-cal",onClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},slot:"leftIcon"})),i("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},i("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":o.getInternalIDInfo("calendar"),onEzChange:t=>{this.hideCalendar(),t.stopPropagation()}})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};l.style=':host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-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-date-input__calendar-image);mask-image:var(--ez-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-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}';export{l as ez_date_input}
1
+ import{r as t,c as e,h as i,H as s,g as a}from"./p-23a36bb6.js";import{DateUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as r}from"./p-ec7db713.js";import{i as h}from"./p-a61fdd20.js";const l=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.ezStartChange=e(this,"ezStartChange",7),this.ezCancelWaitingChange=e(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.mode="regular",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,e){if(this._textInput&&t!=e){const i=n.validateDate(t),s=n.validateDate(e);if((null==i?void 0:i.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(i)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===i?void 0:i)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const e=n.validateDate(this.value),i=n.validateDate(t);(null==e?void 0:e.getTime())!==(null==i?void 0:i.getTime())?this.value=i:this._changePending=!1}hideCalendar(){this.changeValue(this._calendar.value),this._popover.hide()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,e=n.strToDate(t);if(e||!t){this.errorMessage="";const t=n.validateDate(this.value),i=n.validateDate(e);(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._focused=!1,this.changeValue(i))}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-date-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){return t?n.formatDate(t):void 0}handleInput(t){const e=n.strToDate(this._textInput.value),i=n.validateDate(this.value),s=n.validateDate(e);(null==i?void 0:i.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 h()}componentDidLoad(){r.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return o.addIDInfoIfNotExists(this._elem,"input"),i(s,null,i("ez-text-input",{"data-element-id":o.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),restrict:"0123456789/",enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder},i("button",{disabled:!this.enabled,tabindex:-1,class:"btn-open-cal",onClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},slot:"leftIcon"})),i("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},i("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":o.getInternalIDInfo("calendar"),onEzChange:t=>{this.hideCalendar(),t.stopPropagation()}})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};l.style=':host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-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-date-input__calendar-image);mask-image:var(--ez-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-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}';export{l as ez_date_input}
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e,c as s,g as o}from"./p-23a36bb6.js";import{ElementIDUtils as a,ObjectUtils as r,HTMLBuilder as h,StringUtils as l,KeyboardManager as n}from"@sankhyalabs/core";import{i as c}from"./p-a61fdd20.js";import{C as d}from"./p-30ffb9ed.js";import{R as b,a as m}from"./p-3e767a74.js";import{p as u}from"./p-a1c0233e.js";import{A as v}from"./p-baec56c9.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-112455b1.js";const p=class{constructor(i){t(this,i),this.showLoading=void 0,this.visibleOptions=void 0,this.textEmptyList=void 0,this.showOptionValue=void 0,this.preSelection=void 0,this.maxWidth=void 0,this.width=void 0,this.onOptionSelect=void 0,this.onOptionHover=void 0}async nextOption(){var t,i;(null===(t=this.visibleOptions)||void 0===t?void 0:t.length)&&(void 0!==this.preSelection&&this.preSelection>=this.visibleOptions.length-1||(this.preSelection=void 0===this.preSelection?0:this.preSelection+1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(i=this.onOptionHover)||void 0===i||i.call(this,this.preSelection)))}async previousOption(){var t,i;(null===(t=this.visibleOptions)||void 0===t?void 0:t.length)&&(void 0!==this.preSelection&&this.preSelection<=0||(this.preSelection=void 0===this.preSelection?this.visibleOptions.length-1:this.preSelection-1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(i=this.onOptionHover)||void 0===i||i.call(this,this.preSelection)))}async selectCurrentOption(){void 0!==this.preSelection&&(this.onOptionSelect(this.visibleOptions[this.preSelection]),this.preSelection=void 0)}observeWidth(t,i){t!==i&&this._listWrapper&&(this._listWrapper.style.width=`${this.width}px`)}observeMaxWidth(t,i){t!==i&&this._listWrapper&&(this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:"")}handleKeyDown(t){switch(t.key){case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.nextOption();break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),this.previousOption();break;case"Enter":this.selectCurrentOption();break;case"Escape":this.preSelection=void 0}}buildItem(t,e){const s=this.showOptionValue&&this.maxWidth>0?`${this.maxWidth}px`:"";return t.label=t.label||t.value,i("li",{tabIndex:1,class:e===this.preSelection?"item preselected":"item",id:`item_${t.value}_${e}`,key:`item_${t.value}_${e}`,onMouseDown:()=>this.onOptionSelect(t),onMouseOver:()=>this.preSelection=e},this.showOptionValue?i("span",{class:"item__value",title:t.value,style:{width:s,minWidth:s,maxWidth:s}},t.value):void 0,i("span",{class:"item__label "+(this.showOptionValue?"item__label--bold":""),title:t.label},t.label))}scrollToOption(t){if(!(null==t?void 0:t.value)||!this._optionsList)return;const i=this.visibleOptions.indexOf(t);if(-1===i)return;const e=this._optionsList.querySelector(`li#item_${CSS.escape(t.value)}_${CSS.escape(String(i))}`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}async componentWillLoad(){this.i18n=await c()}componentDidLoad(){this._listWrapper.style.width=`${this.width}px`,this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:""}componentDidRender(){var t;null===(t=this._optionsList)||void 0===t||t.querySelectorAll(".item").forEach((t=>{a.addIDInfoIfNotExists(t,"itemComboBox")}))}render(){return i("section",{class:"list-container"},i("div",{class:"list-wrapper",ref:t=>this._listWrapper=t},i("ul",{class:"list-options",ref:t=>this._optionsList=t},!this.showLoading&&0===this.visibleOptions.length&&i("div",{class:"message"},i("span",{class:"message__no-result"},this.textEmptyList||this.i18n("ez-combo-box.noResults"))),this.showLoading&&i("div",{class:"message"},i("div",{class:"message__loading"})),this.showOptionValue&&i("span",{class:"item__value item__value--hidden"}),!this.showLoading&&this.visibleOptions.length>0&&this.visibleOptions.map(((t,i)=>this.buildItem(t,i))))))}static get watchers(){return{width:["observeWidth"],maxWidth:["observeMaxWidth"]}}};p.style=":host{--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const x=class{constructor(i){t(this,i),this.gui=void 0,this.customEditor=void 0,this.formViewField=void 0,this.value=void 0,this.detailContext=void 0,this.builderFallback=void 0,this.selectedRecord=void 0}async setFocus(){var t,i;null===(i=null===(t=this.gui)||void 0===t?void 0:t.setFocus)||void 0===i||i.call(t)}async setBlur(){var t,i;null===(i=null===(t=this.gui)||void 0===t?void 0:t.setBlur)||void 0===i||i.call(t)}async isInvalid(){var t,i;return(null===(i=null===(t=this.gui)||void 0===t?void 0:t.isInvalid)||void 0===i?void 0:i.call(t))||!1}watchValue(){this.handleValue(this.gui)}watchCustomEditor(){this.getContent()}watchFormViewField(t,i){r.equals(t,i)||this.getContent()}watchDetailContext(){this.getContent()}watchBuilderFallback(){this.getContent()}watchSelectedRecord(t,i){(null==t?void 0:t.__record__id__)!==(null==i?void 0:i.__record__id__)&&this.getContent()}getContent(){var t,e,s,o,a;const r=new Map;for(const t in this.formViewField.props)r.set(t,this.formViewField.props[t]);const n={value:this.value,name:this.formViewField.name,currentEditor:this.builderFallback(this.formViewField),setValue:t=>this.setValue(t),getValue:this.getValue,record:this.selectedRecord,editorMetadata:{label:this.formViewField.label,hidden:!1===(null===(t=this.formViewField.props)||void 0===t?void 0:t.visible),userInterface:this.formViewField.userInterface,options:null===(e=this.formViewField.props)||void 0===e?void 0:e.options,props:this.formViewField.props?r:void 0,optionLoader:this.formViewField.optionLoader},source:d.FORM,detailContext:this.detailContext};let c=this.customEditor.getEditorElement(n);if(!c)return c=this.builderFallback(this.formViewField),this.handleValue(c),void(this.gui=c);if(!(c instanceof HTMLElement)&&"string"!=typeof c)return this.handleValue(c),void(this.gui=c);"string"==typeof c&&(c=h.parseElement(c));const b=null!==(a=null!==(o=null===(s=this.value)||void 0===s?void 0:s.value)&&void 0!==o?o:this.value)&&void 0!==a?a:"";c.setAttribute("value",b),this.gui=i("div",{key:l.generateUUID(),ref:t=>t&&t.appendChild(c)})}setValue(t){this.value=t}getValue(){return this.value}handleValue(t){var i;null===(i=t.t)||void 0===i||i.forEach((t=>{t.i.value=this.value}))}componentWillLoad(){this.getContent()}render(){return i(e,null,this.gui)}static get watchers(){return{value:["watchValue"],customEditor:["watchCustomEditor"],formViewField:["watchFormViewField"],detailContext:["watchDetailContext"],builderFallback:["watchBuilderFallback"],selectedRecord:["watchSelectedRecord"]}}},w=class{constructor(i){t(this,i),this.ezChange=s(this,"ezChange",7),this.historyStack=[],this.historyIndex=-1,this.previewMode=!1,this.showPreview=!0,this.value="",this.label=void 0,this.mode="regular",this.enabled=!0,this.rows=6,this.errorMessage=void 0,this.canShowError=!0,this.showConfigs=!0,this.showTextFormat=!0,this.showUndoRedo=!0}observeValue(t,i){r.equals(t,i)||this.ezChange.emit(t)}observeErrorMessage(t){t&&this.previewMode&&(this.previewMode=!1)}async handleExecuteToolbarCommand(t){const{command:i,value:e}=t.detail;await this.executeCommand(i,e)}async setFocus(){this.handleFocus()}async setBlur(){var t;await(null===(t=this.textAreaRef)||void 0===t?void 0:t.setBlur())}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}bindPreview(){this._keyboardManager&&this.showPreview&&this._keyboardManager.bind("ctrl + p",(async()=>{await this.togglePreview()}),{description:"Entra em modo de pré visualização.",element:this.element})}bindConfigs(){this._keyboardManager&&this.showConfigs&&this._keyboardManager.bind("ctrl + l",(async()=>{await this.handleFormatSelection(b.LIST)}),{description:this.i18n("ez-rich-text.listShortcut"),element:this.element}).bind("ctrl + k",(async()=>{await this.handleLink()}),{description:this.i18n("ez-rich-text.linkShortcut"),element:this.element}).bind("ctrl + o",(async()=>{await this.handleImage()}),{description:this.i18n("ez-rich-text.imageShortcut"),element:this.element})}bindTextFormat(){this._keyboardManager&&this.showTextFormat&&this._keyboardManager.bind("ctrl + b",(async()=>{await this.handleFormatSelection(b.BOLD)}),{description:this.i18n("ez-rich-text.boldShortcut"),element:this.element}).bind("ctrl + i",(async()=>{await this.handleFormatSelection(b.ITALIC)}),{description:this.i18n("ez-rich-text.italicShortcut"),element:this.element}).bind("ctrl + u",(async()=>{await this.handleFormatSelection(b.UNDERLINE)}),{description:this.i18n("ez-rich-text.underlineShortcut"),element:this.element})}initKeyboardManager(){this._keyboardManager=new n({propagate:!1,element:this.element}),this._keyboardManager.bind("ctrl + Enter",(async()=>{await this.handleFormatSelection(b.BREAK_LINE)}),{description:this.i18n("ez-rich-text.breakLineShortcut"),element:this.element}).bind("ctrl + z",(async()=>{await this.handleUndo()}),{description:this.i18n("ez-rich-text.undoShortcut"),element:this.element}).bind("ctrl + x",(async()=>{await this.handleRedo()}),{description:this.i18n("ez-rich-text.redoShortcut"),element:this.element}),this.bindPreview(),this.bindConfigs(),this.bindTextFormat()}async executeCommand(t,i){switch(t){case m.FOCUS:this.handleFocus();break;case m.PREVIEW:await this.togglePreview();break;case m.FORMAT:await this.handleFormatSelection(i);break;case m.UNDO:await this.handleUndo();break;case m.REDO:await this.handleRedo();break;case m.LINK:await this.handleLink();break;case m.IMAGE:await this.handleImage()}}handleFocus(){this.previewMode=!1,requestAnimationFrame((async()=>{await this.textAreaRef.setFocus()}))}async handleLink(){this.previewMode=!1,requestAnimationFrame((async()=>{await this.linkBuilderRef.show(this.getSelectedText())}))}async handleImage(){this.previewMode=!1,await this.imageUploaderRef.show()}async handleRedo(){this.previewMode=!1,requestAnimationFrame((async()=>{this.redo(),await this.textAreaRef.setFocus()}))}async handleUndo(){this.previewMode=!1,requestAnimationFrame((async()=>{this.undo(),await this.textAreaRef.setFocus()}))}async handleFormatSelection(t){t&&(this.previewMode=!1,requestAnimationFrame((async()=>{await this.formatSelection(t),await this.textAreaRef.setFocus()})))}async togglePreview(){this.previewMode=!this.previewMode,this.previewMode&&await this.textAreaRef.setFocus()}getSelectedText(){const t=this.getTextAreaElement();if(t)return(this.textAreaRef.value||"").substring(t.selectionStart,t.selectionEnd)}getTextAreaElement(){return this.element.querySelector("ez-text-area").shadowRoot.querySelector("textarea")}async formatSelection(t){if(!this.textAreaRef)return;const i=t.replace("$selection",this.getSelectedText()||"");await this.textAreaRef.appendTextToSelection(i),this.value=this.textAreaRef.value,this.addToHistory(this.value)}addToHistory(t){this.historyIndex>=0&&t===this.historyStack[this.historyIndex]||(this.historyStack.length>=50&&this.historyStack.splice(0,this.historyStack.length-49),this.historyStack.push(t),this.historyIndex=this.historyStack.length-1)}undo(){if(!this.canExecuteUndo())return;this.historyIndex--;const t=this.historyStack[this.historyIndex];this.value=t,this.textAreaRef.value=t}canExecuteUndo(){return this.historyIndex>0}redo(){this.canExecuteRedo()&&(this.historyIndex++,this.getValueFromHistory())}canExecuteRedo(){return this.historyIndex<this.historyStack.length-1}getValueFromHistory(){const t=this.historyStack[this.historyIndex];this.value=t,this.textAreaRef.value=t}handleTextAreaChanged(t){this.value=t.detail,this.addToHistory(this.value)}async removeShortcuts(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}async componentWillLoad(){this.i18n=await c()}componentDidLoad(){this.initKeyboardManager(),this.addToHistory(this.value)}async disconnectedCallback(){await this.removeShortcuts()}getSanitizedValue(){return u.sanitize(this.value,{ADD_ATTR:["target","rel"]})}renderContent(){return this.previewMode?i("div",{id:"rich-text-preview-container",class:"preview",innerHTML:this.getSanitizedValue()}):i("ez-text-area",{ref:t=>this.textAreaRef=t,label:this.label,value:this.value,enabled:this.enabled,rows:this.rows,mode:this.mode,canShowError:this.canShowError,errorMessage:this.errorMessage,onEzChange:this.handleTextAreaChanged.bind(this)})}render(){return i(e,null,i("div",{class:"editor-container bordered"},i("ez-rich-toolbar",{isPreviewMode:this.previewMode,showPreview:this.showPreview,showConfigs:this.showConfigs&&this.enabled,showTextFormat:this.showTextFormat&&this.enabled,showUndoRedo:this.showUndoRedo&&this.enabled}),this.renderContent()),i("ez-link-builder",{ref:t=>this.linkBuilderRef=t}),i("ez-simple-image-uploader",{ref:t=>this.imageUploaderRef=t}))}get element(){return o(this)}static get watchers(){return{value:["observeValue"],errorMessage:["observeErrorMessage"]}}};w.style=".sc-ez-rich-text-h{display:block;width:100%;font-family:Roboto;--ez-rich-text--box-shadow:0 0 3px 0 #DCE0E8;--ez-rich-text--shadow--outline:var(--shadow--outline) var(--color--strokes)}.editor-container.sc-ez-rich-text{width:100%;overflow:hidden;border-radius:12px;border:1px solid #DCE0E8}ez-text-area.sc-ez-rich-text{--text-area__input--border:1px solid}.preview.sc-ez-rich-text{min-height:20px;padding:12px;resize:both;overflow:auto;max-width:100%;border-top:1px solid #DCE0E8}";const _=class{constructor(i){t(this,i),this.saveEdition=s(this,"saveEdition",7),this.cancelEdition=s(this,"cancelEdition",7),this._newValue=void 0,this.value=void 0,this.styled=void 0}async applyFocusSelect(){this.calcSizeInput(this.value,!0)}calcSizeInput(t,i=!1){var e,s;const o=null===(s=null===(e=this._inputElement)||void 0===e?void 0:e.shadowRoot)||void 0===s?void 0:s.querySelector("input");if(null!=o){const e=this.getWidthValue(t);o.style.width=e+"px",i&&setTimeout((()=>o.select()),100)}}getWidthValue(t){if(null!=this._valueBasis){const i=this._valueBasis;if(null!=t){const e=2;return i.innerHTML=t,i.clientWidth>0?i.clientWidth+e:e}i.innerHTML=""}return 0}setStyledInput(){var t,i;let e="",s="",o="";null!=this.styled&&(e=this.styled.fontSize,s=this.styled.fontWeight,o=this.styled.fontFamily);const a=null===(i=null===(t=this._inputElement)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.querySelector("input");null!=a&&(a.style.fontSize=e,a.style.fontWeight=s,a.style.fontFamily=o);const r=this._valueBasis;null!=r&&(r.style.fontSize=e,r.style.fontWeight=s,r.style.fontFamily=o)}handleSaveEdition(){this._newValue?this.saveEdition.emit({value:this.value,newValue:this._newValue}):v.alert(this.i18n("app.warning"),this.i18n("ez-text-edit.emptyFieldWarning")).then((()=>{this.setNewValue(this.value,!0)}))}handleCancelEdition(){this.cancelEdition.emit()}setNewValue(t,i=!1){this._newValue=t,this.calcSizeInput(this._newValue,i)}async componentWillLoad(){this.i18n=await c()}componentDidLoad(){this.applyFocusSelect(),this.setNewValue(this.value)}componentDidRender(){this.setStyledInput()}render(){return a.addIDInfoIfNotExists(this._element,"input"),i(e,null,i("span",{class:"text-edit__hidden-value",ref:t=>this._valueBasis=t}),i("ez-text-input",{"data-element-id":a.getInternalIDInfo("textInput"),onInput:()=>{this.calcSizeInput(this._newValue)},class:"text-edit__form-input",value:this._newValue,ref:t=>this._inputElement=t,mode:"slim",onEzChange:t=>this.setNewValue(null==t?void 0:t.detail),noBorder:!0}),i("ez-button",{class:"text-edit__icon-check",mode:"icon",iconName:"check",size:"small",onClick:()=>{this.handleSaveEdition()}}),i("ez-button",{class:"text-edit__icon-close",mode:"icon",iconName:"close",size:"small",onClick:()=>{this.handleCancelEdition()}}))}get _element(){return o(this)}};_.style=":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";export{p as ez_combo_box_list,x as ez_custom_form_input,w as ez_rich_text,_ as ez_text_edit}
Binary file