@sankhyalabs/ezui 7.2.0-rc.8 → 7.2.0

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 (1032) hide show
  1. package/dist/cjs/{ApplicationUtils-dc653b57.js → ApplicationUtils-9a9185fc.js} +1 -1
  2. package/dist/cjs/ApplicationUtils-9a9185fc.js.gz +0 -0
  3. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  4. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  5. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  6. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  7. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  8. package/dist/cjs/FormLayout-fe8da83c.js.gz +0 -0
  9. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  10. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  11. package/dist/cjs/{app-globals-16ec1ff7.js → app-globals-27a943d9.js} +1 -1
  12. package/dist/cjs/app-globals-27a943d9.js.gz +0 -0
  13. package/dist/cjs/{classic-search-list_7.cjs.entry.js → classic-search-list_8.cjs.entry.js} +202 -4
  14. package/dist/cjs/classic-search-list_8.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  16. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  21. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  29. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  31. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  33. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/ez-classic-date-input.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-classic-date-input.cjs.entry.js.gz +0 -0
  36. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js.gz +0 -0
  38. package/dist/cjs/ez-classic-input.cjs.entry.js +49 -3
  39. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  40. package/dist/cjs/ez-classic-number-input.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-classic-number-input.cjs.entry.js.gz +0 -0
  42. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +25 -12
  43. package/dist/cjs/ez-classic-search-plus.cjs.entry.js.gz +0 -0
  44. package/dist/cjs/ez-classic-search.cjs.entry.js +2 -2
  45. package/dist/cjs/ez-classic-search.cjs.entry.js.gz +0 -0
  46. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/ez-classic-time-input.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-classic-time-input.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  50. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/ez-combo-box.cjs.entry.js +7 -2
  52. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  62. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  63. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  65. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/ez-form-view.cjs.entry.js +20 -1
  68. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/ez-form.cjs.entry.js +65 -43
  70. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/ez-grid-pagination.cjs.entry.js +114 -10
  72. package/dist/cjs/ez-grid-pagination.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/ez-grid.cjs.entry.js +8 -7
  75. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  77. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  79. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  81. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  84. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  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_5.cjs.entry.js +675 -0
  91. package/dist/cjs/ez-multi-selection-list_5.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.cjs.entry.js +8 -0
  97. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/ez-popup.cjs.entry.js +4 -4
  99. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  100. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  101. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/ez-record-navigation.cjs.entry.js +1 -1
  103. package/dist/cjs/ez-record-navigation.cjs.entry.js.gz +0 -0
  104. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  105. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  106. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  107. package/dist/cjs/ez-search-plus.cjs.entry.js +11 -2
  108. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  109. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  110. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  111. package/dist/cjs/ez-search.cjs.entry.js +2 -2
  112. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  113. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  114. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  115. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  116. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  117. package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
  118. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  119. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  120. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  121. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  122. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  123. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  124. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  125. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  127. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  128. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  129. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/ez-text-input.cjs.entry.js +21 -15
  132. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  133. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  136. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  137. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  138. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  139. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  141. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  143. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  144. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  145. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  146. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  147. package/dist/cjs/ezui.cjs.js +3 -3
  148. package/dist/cjs/ezui.cjs.js.gz +0 -0
  149. package/dist/cjs/filter-column.cjs.entry.js +9 -3
  150. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  151. package/dist/cjs/{floating-ui.dom.esm-bea31048.js → floating-ui.dom.esm-9c8bfebb.js} +93 -0
  152. package/dist/cjs/floating-ui.dom.esm-9c8bfebb.js.gz +0 -0
  153. package/dist/cjs/index-a7b0c73d.js +8 -16
  154. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  155. package/dist/cjs/{index-a8537087.js → index-d4a1cad8.js} +33 -0
  156. package/dist/cjs/index-d4a1cad8.js.gz +0 -0
  157. package/dist/cjs/index.cjs.js.gz +0 -0
  158. package/dist/cjs/loader.cjs.js +3 -3
  159. package/dist/cjs/loader.cjs.js.gz +0 -0
  160. package/dist/cjs/purify-8c74770b.js.gz +0 -0
  161. package/dist/cjs/{search-column-cd0e44be.js → search-column-c04897a9.js} +16 -4
  162. package/dist/cjs/search-column-c04897a9.js.gz +0 -0
  163. package/dist/cjs/searchFormatters-051f8677.js.gz +0 -0
  164. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  165. package/dist/cjs/types-6a5df0c7.js.gz +0 -0
  166. package/dist/collection/collection-manifest.json +1 -0
  167. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  168. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  169. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  170. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  171. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  172. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  173. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  174. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  175. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  176. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  177. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  178. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  179. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  180. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  181. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  182. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  183. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  184. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  185. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  186. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  187. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  188. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  189. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  190. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  191. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  192. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  193. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  194. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  195. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  196. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  197. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  198. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  199. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  200. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  201. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  202. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  203. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  204. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  205. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  206. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  207. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  208. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  209. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  210. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  211. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  212. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  213. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  214. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  215. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  216. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css.gz +0 -0
  217. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js.gz +0 -0
  218. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css.gz +0 -0
  219. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js.gz +0 -0
  220. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  221. package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
  222. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  223. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  224. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -1
  225. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  226. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css.gz +0 -0
  227. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js.gz +0 -0
  228. package/dist/collection/components/ez-classic-search/ez-classic-search.css.gz +0 -0
  229. package/dist/collection/components/ez-classic-search/ez-classic-search.js.gz +0 -0
  230. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css.gz +0 -0
  231. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js.gz +0 -0
  232. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js.gz +0 -0
  233. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css.gz +0 -0
  234. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +26 -11
  235. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js.gz +0 -0
  236. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css.gz +0 -0
  237. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js.gz +0 -0
  238. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  239. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  240. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  241. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css.gz +0 -0
  242. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js.gz +0 -0
  243. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  244. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  245. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  246. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  247. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  248. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
  249. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  250. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  251. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  252. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  253. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  254. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  255. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  256. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  257. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  258. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  259. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  260. package/dist/collection/components/ez-dropdown/ez-dropdown.css +1 -1
  261. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  262. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  263. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  264. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  265. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  266. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  267. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  268. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  269. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  270. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  271. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  272. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  273. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  274. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  275. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  276. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  277. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
  278. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  279. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  280. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  281. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  282. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  283. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js.gz +0 -0
  284. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js +17 -0
  285. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  286. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  287. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  288. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  289. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  290. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  291. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  292. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  293. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  294. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  295. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  296. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -3
  297. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  298. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  299. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  300. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  301. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  302. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  303. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  304. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  305. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  306. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  307. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  308. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  309. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  310. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  311. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  312. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  313. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  314. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  315. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  316. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  317. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  318. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  319. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  320. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js.gz +0 -0
  321. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  322. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  323. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js.gz +0 -0
  324. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  325. package/dist/collection/components/ez-grid/ez-grid.css +4 -0
  326. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  327. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  328. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js.gz +0 -0
  329. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  330. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  331. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  332. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  333. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  334. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  335. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +10 -0
  336. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  337. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
  338. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  339. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  340. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  341. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  342. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  343. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  344. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  345. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +118 -12
  346. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css.gz +0 -0
  347. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +116 -10
  348. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js.gz +0 -0
  349. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +1 -0
  350. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js.gz +0 -0
  351. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  352. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  353. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  354. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  355. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  356. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  357. package/dist/collection/components/ez-icon/ez-icon.css +1151 -1142
  358. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  359. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  360. package/dist/collection/components/ez-image-input/ez-image-input.css +24 -8
  361. package/dist/collection/components/ez-image-input/ez-image-input.css.gz +0 -0
  362. package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
  363. package/dist/collection/components/ez-image-input/ez-image-input.js.gz +0 -0
  364. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  365. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  366. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  367. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  368. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  369. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  370. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  371. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  372. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  373. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  374. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  375. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  376. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  377. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  378. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css +221 -0
  379. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  380. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js +555 -0
  381. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  382. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +27 -6
  383. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  384. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +66 -10
  385. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  386. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  387. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  388. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  389. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  390. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  391. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  392. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  393. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  394. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  395. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  396. package/dist/collection/components/ez-popover/ez-popover.js +27 -0
  397. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  398. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  399. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +20 -0
  400. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  401. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  402. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +36 -2
  403. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  404. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  405. package/dist/collection/components/ez-popup/ez-popup.js +3 -3
  406. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  407. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  408. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  409. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  410. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  411. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  412. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css.gz +0 -0
  413. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js.gz +0 -0
  414. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  415. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  416. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  417. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  418. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  419. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  420. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  421. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  422. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  423. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  424. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  425. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  426. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  427. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  428. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  429. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  430. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  431. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  432. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  433. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  434. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  435. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js.gz +0 -0
  436. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  437. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  438. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  439. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  440. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  441. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  442. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  443. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  444. package/dist/collection/components/ez-search-plus/ez-search-plus.js +9 -0
  445. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  446. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  447. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  448. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  449. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  450. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  451. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  452. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  453. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  454. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  455. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  456. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  457. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  458. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  459. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  460. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  461. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  462. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  463. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  464. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  465. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  466. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  467. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  468. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  469. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  470. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  471. package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
  472. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  473. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  474. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  475. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  476. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  477. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  478. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  479. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  480. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  481. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  482. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  483. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  484. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  485. package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
  486. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  487. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  488. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  489. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  490. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  491. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  492. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  493. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  494. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  495. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  496. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  497. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  498. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  499. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  500. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  501. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  502. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  503. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  504. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  505. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  506. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  507. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  508. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  509. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  510. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  511. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  512. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  513. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  514. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  515. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  516. package/dist/collection/global/app-init.js.gz +0 -0
  517. package/dist/collection/index.js.gz +0 -0
  518. package/dist/collection/servidor.js.gz +0 -0
  519. package/dist/collection/setupTests.js.gz +0 -0
  520. package/dist/collection/sw.js.gz +0 -0
  521. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  522. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  523. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  524. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  525. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  526. package/dist/collection/utils/constants.js.gz +0 -0
  527. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  528. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  529. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  530. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  531. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  532. package/dist/collection/utils/form/FormMetadata.js +62 -40
  533. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  534. package/dist/collection/utils/form/index.js.gz +0 -0
  535. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  536. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  537. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  538. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  539. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  540. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  541. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  542. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  543. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  544. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  545. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  546. package/dist/collection/utils/i18n/index.js.gz +0 -0
  547. package/dist/collection/utils/i18n/locales/en-us.js +11 -0
  548. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  549. package/dist/collection/utils/i18n/locales/es-es.js +11 -0
  550. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  551. package/dist/collection/utils/i18n/locales/pt-br.js +11 -0
  552. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  553. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  554. package/dist/collection/utils/index.js.gz +0 -0
  555. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +14 -2
  556. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  557. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  558. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  559. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  560. package/dist/collection/utils/search/types.js.gz +0 -0
  561. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  562. package/dist/collection/utils/utils.js.gz +0 -0
  563. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  564. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  565. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  566. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  567. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  568. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  569. package/dist/custom-elements/index.d.ts +6 -0
  570. package/dist/custom-elements/index.js +938 -173
  571. package/dist/custom-elements/index.js.gz +0 -0
  572. package/dist/esm/{ApplicationUtils-e99e53c8.js → ApplicationUtils-29d2709c.js} +1 -1
  573. package/dist/esm/ApplicationUtils-29d2709c.js.gz +0 -0
  574. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  575. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  576. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  577. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  578. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  579. package/dist/esm/FormLayout-bda67973.js.gz +0 -0
  580. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  581. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  582. package/dist/esm/{app-globals-6e27b3bb.js → app-globals-44bdc4c4.js} +1 -1
  583. package/dist/esm/app-globals-44bdc4c4.js.gz +0 -0
  584. package/dist/esm/{classic-search-list_7.entry.js → classic-search-list_8.entry.js} +202 -5
  585. package/dist/esm/classic-search-list_8.entry.js.gz +0 -0
  586. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  587. package/dist/esm/ez-actions-button.entry.js +2 -2
  588. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  589. package/dist/esm/ez-alert-list.entry.js +1 -1
  590. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  591. package/dist/esm/ez-alert.entry.js.gz +0 -0
  592. package/dist/esm/ez-application.entry.js.gz +0 -0
  593. package/dist/esm/ez-avatar.entry.js +1 -1
  594. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  595. package/dist/esm/ez-badge.entry.js.gz +0 -0
  596. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  597. package/dist/esm/ez-button.entry.js.gz +0 -0
  598. package/dist/esm/ez-calendar.entry.js +1 -1
  599. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  600. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  601. package/dist/esm/ez-chart.entry.js.gz +0 -0
  602. package/dist/esm/ez-check.entry.js.gz +0 -0
  603. package/dist/esm/ez-chip.entry.js.gz +0 -0
  604. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  605. package/dist/esm/ez-classic-date-input.entry.js +1 -1
  606. package/dist/esm/ez-classic-date-input.entry.js.gz +0 -0
  607. package/dist/esm/ez-classic-date-time-input.entry.js +1 -1
  608. package/dist/esm/ez-classic-date-time-input.entry.js.gz +0 -0
  609. package/dist/esm/ez-classic-input.entry.js +49 -3
  610. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  611. package/dist/esm/ez-classic-number-input.entry.js +1 -1
  612. package/dist/esm/ez-classic-number-input.entry.js.gz +0 -0
  613. package/dist/esm/ez-classic-search-plus.entry.js +25 -12
  614. package/dist/esm/ez-classic-search-plus.entry.js.gz +0 -0
  615. package/dist/esm/ez-classic-search.entry.js +2 -2
  616. package/dist/esm/ez-classic-search.entry.js.gz +0 -0
  617. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  618. package/dist/esm/ez-classic-time-input.entry.js +1 -1
  619. package/dist/esm/ez-classic-time-input.entry.js.gz +0 -0
  620. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  621. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  622. package/dist/esm/ez-combo-box.entry.js +7 -2
  623. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  624. package/dist/esm/ez-date-input.entry.js +1 -1
  625. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  626. package/dist/esm/ez-date-time-input.entry.js +1 -1
  627. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  628. package/dist/esm/ez-dialog.entry.js +1 -1
  629. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  630. package/dist/esm/ez-double-list.entry.js +1 -1
  631. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  632. package/dist/esm/ez-dropdown.entry.js +1 -1
  633. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  634. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  635. package/dist/esm/ez-file-item.entry.js +1 -1
  636. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  637. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  638. package/dist/esm/ez-form-view.entry.js +20 -1
  639. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  640. package/dist/esm/ez-form.entry.js +65 -43
  641. package/dist/esm/ez-form.entry.js.gz +0 -0
  642. package/dist/esm/ez-grid-pagination.entry.js +114 -10
  643. package/dist/esm/ez-grid-pagination.entry.js.gz +0 -0
  644. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  645. package/dist/esm/ez-grid.entry.js +8 -7
  646. package/dist/esm/ez-grid.entry.js.gz +0 -0
  647. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  648. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  649. package/dist/esm/ez-icon.entry.js +1 -1
  650. package/dist/esm/ez-icon.entry.js.gz +0 -0
  651. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  652. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  653. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  654. package/dist/esm/ez-list.entry.js +1 -1
  655. package/dist/esm/ez-list.entry.js.gz +0 -0
  656. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  657. package/dist/esm/ez-modal-container.entry.js +1 -1
  658. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  659. package/dist/esm/ez-modal.entry.js +1 -1
  660. package/dist/esm/ez-modal.entry.js.gz +0 -0
  661. package/dist/esm/ez-multi-selection-list_5.entry.js +667 -0
  662. package/dist/esm/ez-multi-selection-list_5.entry.js.gz +0 -0
  663. package/dist/esm/ez-number-input.entry.js +1 -1
  664. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  665. package/dist/esm/ez-pagination.entry.js +1 -1
  666. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  667. package/dist/esm/ez-popover.entry.js +8 -0
  668. package/dist/esm/ez-popover.entry.js.gz +0 -0
  669. package/dist/esm/ez-popup.entry.js +4 -4
  670. package/dist/esm/ez-popup.entry.js.gz +0 -0
  671. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  672. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  673. package/dist/esm/ez-record-navigation.entry.js +1 -1
  674. package/dist/esm/ez-record-navigation.entry.js.gz +0 -0
  675. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  676. package/dist/esm/ez-scroller_2.entry.js +1 -1
  677. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  678. package/dist/esm/ez-search-plus.entry.js +11 -2
  679. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  680. package/dist/esm/ez-search-result-list.entry.js +1 -1
  681. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  682. package/dist/esm/ez-search.entry.js +2 -2
  683. package/dist/esm/ez-search.entry.js.gz +0 -0
  684. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  685. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  686. package/dist/esm/ez-skeleton.entry.js +1 -1
  687. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  688. package/dist/esm/ez-sortable-list.entry.js +1 -1
  689. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  690. package/dist/esm/ez-spinner.entry.js +1 -1
  691. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  692. package/dist/esm/ez-split-button.entry.js +1 -1
  693. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  694. package/dist/esm/ez-split-item.entry.js +2 -2
  695. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  696. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  697. package/dist/esm/ez-tabselector.entry.js +209 -61
  698. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  699. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  700. package/dist/esm/ez-tag.entry.js.gz +0 -0
  701. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  702. package/dist/esm/ez-text-input.entry.js +21 -15
  703. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  704. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  705. package/dist/esm/ez-tile.entry.js.gz +0 -0
  706. package/dist/esm/ez-time-input.entry.js +1 -1
  707. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  708. package/dist/esm/ez-toast.entry.js.gz +0 -0
  709. package/dist/esm/ez-tooltip.entry.js +1 -1
  710. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  711. package/dist/esm/ez-tree.entry.js +1 -1
  712. package/dist/esm/ez-tree.entry.js.gz +0 -0
  713. package/dist/esm/ez-underface.entry.js.gz +0 -0
  714. package/dist/esm/ez-upload.entry.js +2 -2
  715. package/dist/esm/ez-upload.entry.js.gz +0 -0
  716. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  717. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  718. package/dist/esm/ezui.js +3 -3
  719. package/dist/esm/ezui.js.gz +0 -0
  720. package/dist/esm/filter-column.entry.js +9 -3
  721. package/dist/esm/filter-column.entry.js.gz +0 -0
  722. package/dist/esm/{floating-ui.dom.esm-2964eae1.js → floating-ui.dom.esm-0c464cef.js} +93 -1
  723. package/dist/esm/floating-ui.dom.esm-0c464cef.js.gz +0 -0
  724. package/dist/esm/{index-a031816b.js → index-b5a15d4b.js} +33 -0
  725. package/dist/esm/index-b5a15d4b.js.gz +0 -0
  726. package/dist/esm/index-baa5e267.js +8 -16
  727. package/dist/esm/index-baa5e267.js.gz +0 -0
  728. package/dist/esm/index.js.gz +0 -0
  729. package/dist/esm/loader.js +3 -3
  730. package/dist/esm/loader.js.gz +0 -0
  731. package/dist/esm/polyfills/core-js.js.gz +0 -0
  732. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  733. package/dist/esm/polyfills/dom.js.gz +0 -0
  734. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  735. package/dist/esm/polyfills/index.js.gz +0 -0
  736. package/dist/esm/polyfills/system.js.gz +0 -0
  737. package/dist/esm/purify-ff423562.js.gz +0 -0
  738. package/dist/esm/{search-column-33d72c20.js → search-column-9414ad22.js} +16 -4
  739. package/dist/esm/search-column-9414ad22.js.gz +0 -0
  740. package/dist/esm/searchFormatters-6d9b06e4.js.gz +0 -0
  741. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  742. package/dist/esm/types-6f6b2650.js.gz +0 -0
  743. package/dist/ezui/ezui.esm.js +1 -1
  744. package/dist/ezui/ezui.esm.js.gz +0 -0
  745. package/dist/ezui/index.esm.js.gz +0 -0
  746. package/dist/ezui/{p-93097edc.entry.js → p-08e3184d.entry.js} +1 -1
  747. package/dist/ezui/p-08e3184d.entry.js.gz +0 -0
  748. package/dist/ezui/p-0ca765f4.entry.js +1 -0
  749. package/dist/ezui/p-0ca765f4.entry.js.gz +0 -0
  750. package/dist/ezui/p-0d80e3ec.entry.js.gz +0 -0
  751. package/dist/ezui/{p-0fc981e9.entry.js → p-0ddb9a95.entry.js} +1 -1
  752. package/dist/ezui/p-0ddb9a95.entry.js.gz +0 -0
  753. package/dist/ezui/{p-473a397f.entry.js → p-0fbf5842.entry.js} +1 -1
  754. package/dist/ezui/p-0fbf5842.entry.js.gz +0 -0
  755. package/dist/ezui/p-112455b1.js.gz +0 -0
  756. package/dist/ezui/{p-84be1391.entry.js → p-1160c33a.entry.js} +1 -1
  757. package/dist/ezui/p-1160c33a.entry.js.gz +0 -0
  758. package/dist/ezui/{p-a4735a12.entry.js → p-1222e1b6.entry.js} +1 -1
  759. package/dist/ezui/p-1222e1b6.entry.js.gz +0 -0
  760. package/dist/ezui/p-178cb9df.entry.js.gz +0 -0
  761. package/dist/ezui/p-1c7aa5af.entry.js +1 -0
  762. package/dist/ezui/p-1c7aa5af.entry.js.gz +0 -0
  763. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  764. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  765. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  766. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  767. package/dist/ezui/{p-4f76dc28.entry.js → p-27236a0f.entry.js} +1 -1
  768. package/dist/ezui/p-27236a0f.entry.js.gz +0 -0
  769. package/dist/ezui/{p-4991931a.entry.js → p-2c1c9ec6.entry.js} +1 -1
  770. package/dist/ezui/p-2c1c9ec6.entry.js.gz +0 -0
  771. package/dist/ezui/{p-24582dd6.js → p-320c401f.js} +1 -1
  772. package/dist/ezui/p-320c401f.js.gz +0 -0
  773. package/dist/ezui/{p-a383fbc5.entry.js → p-381570d2.entry.js} +1 -1
  774. package/dist/ezui/p-381570d2.entry.js.gz +0 -0
  775. package/dist/ezui/{p-69344c23.js → p-3b7d9f30.js} +1 -1
  776. package/dist/ezui/p-3b7d9f30.js.gz +0 -0
  777. package/dist/ezui/{p-510eccc7.entry.js → p-3b9ccdb7.entry.js} +1 -1
  778. package/dist/ezui/p-3b9ccdb7.entry.js.gz +0 -0
  779. package/dist/ezui/p-3e767a74.js.gz +0 -0
  780. package/dist/ezui/{p-91ff4511.entry.js → p-40a0a773.entry.js} +1 -1
  781. package/dist/ezui/p-40a0a773.entry.js.gz +0 -0
  782. package/dist/ezui/p-40a60148.js.gz +0 -0
  783. package/dist/ezui/{p-b5f45319.entry.js → p-40c92fc7.entry.js} +1 -1
  784. package/dist/ezui/p-40c92fc7.entry.js.gz +0 -0
  785. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  786. package/dist/ezui/p-41954f37.entry.js +1 -0
  787. package/dist/ezui/p-41954f37.entry.js.gz +0 -0
  788. package/dist/ezui/{p-39d2bce5.entry.js → p-45d09b32.entry.js} +1 -1
  789. package/dist/ezui/p-45d09b32.entry.js.gz +0 -0
  790. package/dist/ezui/{p-1244fac0.entry.js → p-46188bfe.entry.js} +1 -1
  791. package/dist/ezui/p-46188bfe.entry.js.gz +0 -0
  792. package/dist/ezui/p-47e4a8ce.js.gz +0 -0
  793. package/dist/ezui/p-49bc0b59.entry.js +1 -0
  794. package/dist/ezui/p-49bc0b59.entry.js.gz +0 -0
  795. package/dist/ezui/{p-ddc6432d.entry.js → p-5124ba43.entry.js} +1 -1
  796. package/dist/ezui/{p-ddc6432d.entry.js.gz → p-5124ba43.entry.js.gz} +0 -0
  797. package/dist/ezui/{p-3311e7ef.entry.js → p-52122022.entry.js} +1 -1
  798. package/dist/ezui/p-52122022.entry.js.gz +0 -0
  799. package/dist/ezui/p-5895e687.js.gz +0 -0
  800. package/dist/ezui/p-58fa7883.js +1 -0
  801. package/dist/ezui/p-58fa7883.js.gz +0 -0
  802. package/dist/ezui/{p-1ab5ba19.entry.js → p-5a217a52.entry.js} +1 -1
  803. package/dist/ezui/p-5a217a52.entry.js.gz +0 -0
  804. package/dist/ezui/p-5c440899.js.gz +0 -0
  805. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  806. package/dist/ezui/{p-f1390be9.entry.js → p-664b9f4c.entry.js} +1 -1
  807. package/dist/ezui/p-664b9f4c.entry.js.gz +0 -0
  808. package/dist/ezui/p-6791d05f.entry.js +1 -0
  809. package/dist/ezui/p-6791d05f.entry.js.gz +0 -0
  810. package/dist/ezui/{p-96e5eaa2.entry.js → p-6c24ab67.entry.js} +1 -1
  811. package/dist/ezui/p-6c24ab67.entry.js.gz +0 -0
  812. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  813. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  814. package/dist/ezui/{p-a8f807ed.entry.js → p-73bae77e.entry.js} +1 -1
  815. package/dist/ezui/p-73bae77e.entry.js.gz +0 -0
  816. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  817. package/dist/ezui/p-7df45688.entry.js.gz +0 -0
  818. package/dist/ezui/p-7ecac0c4.entry.js +1 -0
  819. package/dist/ezui/p-7ecac0c4.entry.js.gz +0 -0
  820. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  821. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  822. package/dist/ezui/{p-318d4dc9.entry.js → p-83ffba67.entry.js} +1 -1
  823. package/dist/ezui/p-83ffba67.entry.js.gz +0 -0
  824. package/dist/ezui/{p-0bc16f75.entry.js → p-852d6133.entry.js} +1 -1
  825. package/dist/ezui/p-852d6133.entry.js.gz +0 -0
  826. package/dist/ezui/p-88a115b3.js.gz +0 -0
  827. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  828. package/dist/ezui/{p-2b65728f.entry.js → p-90a0b52b.entry.js} +1 -1
  829. package/dist/ezui/p-90a0b52b.entry.js.gz +0 -0
  830. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  831. package/dist/ezui/{p-995c745b.entry.js → p-93d0f1aa.entry.js} +2 -2
  832. package/dist/ezui/p-93d0f1aa.entry.js.gz +0 -0
  833. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  834. package/dist/ezui/p-95fb50d1.entry.js +1 -0
  835. package/dist/ezui/p-95fb50d1.entry.js.gz +0 -0
  836. package/dist/ezui/{p-caf3cd8f.entry.js → p-97545f8e.entry.js} +1 -1
  837. package/dist/ezui/p-97545f8e.entry.js.gz +0 -0
  838. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  839. package/dist/ezui/p-9d06f315.entry.js +1 -0
  840. package/dist/ezui/p-9d06f315.entry.js.gz +0 -0
  841. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  842. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  843. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  844. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  845. package/dist/ezui/{p-d98dd01a.entry.js → p-a62bbd49.entry.js} +1 -1
  846. package/dist/ezui/p-a62bbd49.entry.js.gz +0 -0
  847. package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
  848. package/dist/ezui/p-a9ab6cb9.entry.js.gz +0 -0
  849. package/dist/ezui/p-ab574d59.js.gz +0 -0
  850. package/dist/ezui/{p-ab41edab.entry.js → p-ade1c43b.entry.js} +1 -1
  851. package/dist/ezui/p-ade1c43b.entry.js.gz +0 -0
  852. package/dist/ezui/{p-8980b477.entry.js → p-afb2f145.entry.js} +1 -1
  853. package/dist/ezui/p-afb2f145.entry.js.gz +0 -0
  854. package/dist/ezui/p-b1e45320.js.gz +0 -0
  855. package/dist/ezui/p-b43fcdb6.js +1 -0
  856. package/dist/ezui/p-b43fcdb6.js.gz +0 -0
  857. package/dist/ezui/{p-cf66ace0.entry.js → p-b50289bb.entry.js} +1 -1
  858. package/dist/ezui/p-b50289bb.entry.js.gz +0 -0
  859. package/dist/ezui/p-b853763b.js.gz +0 -0
  860. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  861. package/dist/ezui/{p-32b8f057.entry.js → p-be4b042f.entry.js} +1 -1
  862. package/dist/ezui/p-be4b042f.entry.js.gz +0 -0
  863. package/dist/ezui/{p-c33d46e0.entry.js → p-c547f48f.entry.js} +1 -1
  864. package/dist/ezui/p-c547f48f.entry.js.gz +0 -0
  865. package/dist/ezui/{p-2e07f3d5.entry.js → p-c6b9a72a.entry.js} +1 -1
  866. package/dist/ezui/p-c6b9a72a.entry.js.gz +0 -0
  867. package/dist/ezui/{p-3d772561.entry.js → p-ca4c015a.entry.js} +1 -1
  868. package/dist/ezui/p-ca4c015a.entry.js.gz +0 -0
  869. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  870. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  871. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  872. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  873. package/dist/ezui/p-dcb7275b.entry.js +1 -0
  874. package/dist/ezui/p-dcb7275b.entry.js.gz +0 -0
  875. package/dist/ezui/{p-dd5326e6.entry.js → p-dcd6a163.entry.js} +1 -1
  876. package/dist/ezui/{p-dd5326e6.entry.js.gz → p-dcd6a163.entry.js.gz} +0 -0
  877. package/dist/ezui/{p-2887cbf9.entry.js → p-dcde2e69.entry.js} +1 -1
  878. package/dist/ezui/p-dcde2e69.entry.js.gz +0 -0
  879. package/dist/ezui/p-ddf856db.entry.js +1 -0
  880. package/dist/ezui/p-ddf856db.entry.js.gz +0 -0
  881. package/dist/ezui/p-de14fe07.js +1 -0
  882. package/dist/ezui/p-de14fe07.js.gz +0 -0
  883. package/dist/ezui/p-df6173c8.entry.js +1 -0
  884. package/dist/ezui/p-df6173c8.entry.js.gz +0 -0
  885. package/dist/ezui/{p-ed6b6e0f.entry.js → p-e60aa084.entry.js} +1 -1
  886. package/dist/ezui/p-e60aa084.entry.js.gz +0 -0
  887. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  888. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  889. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  890. package/dist/ezui/{p-54975948.entry.js → p-eb0cfd29.entry.js} +1 -1
  891. package/dist/ezui/p-eb0cfd29.entry.js.gz +0 -0
  892. package/dist/ezui/p-ec7db713.js.gz +0 -0
  893. package/dist/ezui/p-ef3cd4ef.entry.js +1 -0
  894. package/dist/ezui/p-ef3cd4ef.entry.js.gz +0 -0
  895. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  896. package/dist/ezui/p-f7f7bb17.entry.js +1 -0
  897. package/dist/ezui/p-f7f7bb17.entry.js.gz +0 -0
  898. package/dist/ezui/{p-700af412.entry.js → p-f7fb2587.entry.js} +1 -1
  899. package/dist/ezui/p-f7fb2587.entry.js.gz +0 -0
  900. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  901. package/dist/ezui/p-fed3f5fe.entry.js +1 -0
  902. package/dist/ezui/p-fed3f5fe.entry.js.gz +0 -0
  903. package/dist/ezui/{p-879cee4d.entry.js → p-feffb6a5.entry.js} +1 -1
  904. package/dist/ezui/p-feffb6a5.entry.js.gz +0 -0
  905. package/dist/index.cjs.js.gz +0 -0
  906. package/dist/index.js.gz +0 -0
  907. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
  908. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
  909. package/dist/types/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.d.ts +2 -0
  910. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +18 -2
  911. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +7 -0
  912. package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -0
  913. package/dist/types/components/ez-multi-select-input/ez-multi-select-input.d.ts +119 -0
  914. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +8 -0
  915. package/dist/types/components/ez-popover/ez-popover.d.ts +9 -0
  916. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +7 -0
  917. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +9 -0
  918. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
  919. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  920. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
  921. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
  922. package/dist/types/components.d.ts +234 -4
  923. package/dist/types/utils/i18n/locales/en-us.d.ts +11 -0
  924. package/dist/types/utils/i18n/locales/es-es.d.ts +11 -0
  925. package/dist/types/utils/i18n/locales/pt-br.d.ts +11 -0
  926. package/dist/types/utils/i18n/translations.d.ts +33 -0
  927. package/package.json +4 -4
  928. package/react/components.d.ts +1 -0
  929. package/react/components.js +1 -0
  930. package/react/components.js.map +1 -1
  931. package/dist/cjs/ApplicationUtils-dc653b57.js.gz +0 -0
  932. package/dist/cjs/app-globals-16ec1ff7.js.gz +0 -0
  933. package/dist/cjs/classic-search-list_7.cjs.entry.js.gz +0 -0
  934. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -194
  935. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  936. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
  937. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  938. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -243
  939. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  940. package/dist/cjs/floating-ui.dom.esm-bea31048.js.gz +0 -0
  941. package/dist/cjs/index-a8537087.js.gz +0 -0
  942. package/dist/cjs/search-column-cd0e44be.js.gz +0 -0
  943. package/dist/esm/ApplicationUtils-e99e53c8.js.gz +0 -0
  944. package/dist/esm/app-globals-6e27b3bb.js.gz +0 -0
  945. package/dist/esm/classic-search-list_7.entry.js.gz +0 -0
  946. package/dist/esm/ez-multi-selection-list.entry.js +0 -190
  947. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  948. package/dist/esm/ez-popover-core.entry.js +0 -207
  949. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  950. package/dist/esm/ez-popover-plus_3.entry.js +0 -237
  951. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  952. package/dist/esm/floating-ui.dom.esm-2964eae1.js.gz +0 -0
  953. package/dist/esm/index-a031816b.js.gz +0 -0
  954. package/dist/esm/search-column-33d72c20.js.gz +0 -0
  955. package/dist/ezui/p-0bc16f75.entry.js.gz +0 -0
  956. package/dist/ezui/p-0fc981e9.entry.js.gz +0 -0
  957. package/dist/ezui/p-1244fac0.entry.js.gz +0 -0
  958. package/dist/ezui/p-160a268d.entry.js +0 -1
  959. package/dist/ezui/p-160a268d.entry.js.gz +0 -0
  960. package/dist/ezui/p-1ab5ba19.entry.js.gz +0 -0
  961. package/dist/ezui/p-2241dea1.js +0 -1
  962. package/dist/ezui/p-2241dea1.js.gz +0 -0
  963. package/dist/ezui/p-24582dd6.js.gz +0 -0
  964. package/dist/ezui/p-2528e988.entry.js +0 -1
  965. package/dist/ezui/p-2528e988.entry.js.gz +0 -0
  966. package/dist/ezui/p-2887cbf9.entry.js.gz +0 -0
  967. package/dist/ezui/p-2b65728f.entry.js.gz +0 -0
  968. package/dist/ezui/p-2e07f3d5.entry.js.gz +0 -0
  969. package/dist/ezui/p-318d4dc9.entry.js.gz +0 -0
  970. package/dist/ezui/p-32b8f057.entry.js.gz +0 -0
  971. package/dist/ezui/p-3311e7ef.entry.js.gz +0 -0
  972. package/dist/ezui/p-39d2bce5.entry.js.gz +0 -0
  973. package/dist/ezui/p-3d772561.entry.js.gz +0 -0
  974. package/dist/ezui/p-44183c39.entry.js +0 -1
  975. package/dist/ezui/p-44183c39.entry.js.gz +0 -0
  976. package/dist/ezui/p-473a397f.entry.js.gz +0 -0
  977. package/dist/ezui/p-4991931a.entry.js.gz +0 -0
  978. package/dist/ezui/p-4ca4e8d1.entry.js +0 -1
  979. package/dist/ezui/p-4ca4e8d1.entry.js.gz +0 -0
  980. package/dist/ezui/p-4f76dc28.entry.js.gz +0 -0
  981. package/dist/ezui/p-510eccc7.entry.js.gz +0 -0
  982. package/dist/ezui/p-54975948.entry.js.gz +0 -0
  983. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  984. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  985. package/dist/ezui/p-69344c23.js.gz +0 -0
  986. package/dist/ezui/p-6bb36afc.entry.js +0 -1
  987. package/dist/ezui/p-6bb36afc.entry.js.gz +0 -0
  988. package/dist/ezui/p-700af412.entry.js.gz +0 -0
  989. package/dist/ezui/p-7f475884.entry.js +0 -1
  990. package/dist/ezui/p-7f475884.entry.js.gz +0 -0
  991. package/dist/ezui/p-8305a4d4.entry.js +0 -1
  992. package/dist/ezui/p-8305a4d4.entry.js.gz +0 -0
  993. package/dist/ezui/p-84be1391.entry.js.gz +0 -0
  994. package/dist/ezui/p-879cee4d.entry.js.gz +0 -0
  995. package/dist/ezui/p-8980b477.entry.js.gz +0 -0
  996. package/dist/ezui/p-8a5efec5.entry.js +0 -1
  997. package/dist/ezui/p-8a5efec5.entry.js.gz +0 -0
  998. package/dist/ezui/p-91ff4511.entry.js.gz +0 -0
  999. package/dist/ezui/p-93097edc.entry.js.gz +0 -0
  1000. package/dist/ezui/p-96e5eaa2.entry.js.gz +0 -0
  1001. package/dist/ezui/p-995c745b.entry.js.gz +0 -0
  1002. package/dist/ezui/p-a0f51b99.entry.js +0 -1
  1003. package/dist/ezui/p-a0f51b99.entry.js.gz +0 -0
  1004. package/dist/ezui/p-a383fbc5.entry.js.gz +0 -0
  1005. package/dist/ezui/p-a4735a12.entry.js.gz +0 -0
  1006. package/dist/ezui/p-a4911d89.entry.js +0 -1
  1007. package/dist/ezui/p-a4911d89.entry.js.gz +0 -0
  1008. package/dist/ezui/p-a80b1287.entry.js +0 -1
  1009. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  1010. package/dist/ezui/p-a8f807ed.entry.js.gz +0 -0
  1011. package/dist/ezui/p-ab41edab.entry.js.gz +0 -0
  1012. package/dist/ezui/p-ab4da973.entry.js +0 -1
  1013. package/dist/ezui/p-ab4da973.entry.js.gz +0 -0
  1014. package/dist/ezui/p-adee66db.entry.js +0 -1
  1015. package/dist/ezui/p-adee66db.entry.js.gz +0 -0
  1016. package/dist/ezui/p-b5f45319.entry.js.gz +0 -0
  1017. package/dist/ezui/p-c2d44132.entry.js +0 -1
  1018. package/dist/ezui/p-c2d44132.entry.js.gz +0 -0
  1019. package/dist/ezui/p-c33d46e0.entry.js.gz +0 -0
  1020. package/dist/ezui/p-caf3cd8f.entry.js.gz +0 -0
  1021. package/dist/ezui/p-cf66ace0.entry.js.gz +0 -0
  1022. package/dist/ezui/p-d2601b25.js +0 -1
  1023. package/dist/ezui/p-d2601b25.js.gz +0 -0
  1024. package/dist/ezui/p-d98dd01a.entry.js.gz +0 -0
  1025. package/dist/ezui/p-ed6b6e0f.entry.js.gz +0 -0
  1026. package/dist/ezui/p-f1390be9.entry.js.gz +0 -0
  1027. package/dist/ezui/p-f71a4d97.js +0 -1
  1028. package/dist/ezui/p-f71a4d97.js.gz +0 -0
  1029. package/dist/ezui/p-fc72aeb8.entry.js +0 -1
  1030. package/dist/ezui/p-fc72aeb8.entry.js.gz +0 -0
  1031. package/dist/ezui/p-fcdd861e.entry.js +0 -1
  1032. package/dist/ezui/p-fcdd861e.entry.js.gz +0 -0
@@ -1 +1 @@
1
- import{r as t,c as o,h as i,H as e,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as n}from"@sankhyalabs/core";import{i as s}from"./p-69344c23.js";const l=class{constructor(i){t(this,i),this.buttonClick=o(this,"buttonClick",7),this.dropdownItemClick=o(this,"dropdownItemClick",7),this.dropdownSubActionClick=o(this,"dropdownSubActionClick",7),this.rippleCounter=0,this.eventListeners=new WeakMap,this.createRipple=(t,o)=>{const i=o?this.leftButton:this.rightButton;if(!i||this.isButtonDisabled||this.suppressAnimation)return;const e=this.getEventCoordinates(t),r=i.getBoundingClientRect(),n=Object.assign(Object.assign({},{x:e.x-r.left,y:e.y-r.top}),{id:++this.rippleCounter});this.addRippleToButton(n,o)},this.positionDropdown=()=>{this.rightButton&&this.dropdownParent&&requestAnimationFrame((()=>{const{rightButton:t,dropdownParent:o}=this,i=t.getBoundingClientRect(),e=o.getBoundingClientRect(),r=window.innerHeight,n=window.innerWidth;Object.assign(o.style,{position:"fixed",top:r-i.bottom<e.height&&i.top>e.height?i.top-e.height+"px":`${i.bottom}px`,left:n-i.left<e.width&&i.left>e.width?i.right-e.width+"px":`${i.left}px`})}))},this.removeForcedFocusVisibleLeft=()=>{var t;null===(t=this.leftButton)||void 0===t||t.classList.remove("force-focus-visible")},this.removeForcedFocusVisibleRight=()=>{var t;null===(t=this.rightButton)||void 0===t||t.classList.remove("force-focus-visible")},this.leftRipples=[],this.rightRipples=[],this.isLeftPressed=!1,this.isRightPressed=!1,this.show=!1,this.enabled=!0,this.isDisabled=!1,this.iconName=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.image=void 0,this.items=void 0,this.label=void 0,this.leftTitle=void 0,this.rightTitle=void 0,this.mode="default",this.size="medium",this.variant=void 0,this.suppressAnimation=!1,this.itemBuilder=void 0}async setBlur(){this.leftButton.blur(),this.rightButton.blur()}async setLeftButtonFocus(){this.leftButton.focus(),this.leftButton.classList.add("force-focus-visible")}async setRightButtonFocus(){this.rightButton.focus(),this.rightButton.classList.add("force-focus-visible")}async toggleDropdown(){this.show=!this.show}async isOpenedDropdown(){return this.show}getEventCoordinates(t){return t instanceof MouseEvent?{x:t.clientX,y:t.clientY}:{x:t.touches[0].clientX,y:t.touches[0].clientY}}addRippleToButton(t,o){o?(this.leftRipples=[...this.leftRipples,t],this.setButtonPressed(!0,!0),this.scheduleRippleCleanup(t,!0)):(this.rightRipples=[...this.rightRipples,t],this.setButtonPressed(!1,!0),this.scheduleRippleCleanup(t,!1))}setButtonPressed(t,o){t?this.isLeftPressed=o:this.isRightPressed=o}scheduleRippleCleanup(t,o){setTimeout((()=>{this.setButtonPressed(o,!1)}),150),setTimeout((()=>{this.removeRipple(t.id,o)}),600)}removeRipple(t,o){o?this.leftRipples=this.leftRipples.filter((o=>o.id!==t)):this.rightRipples=this.rightRipples.filter((o=>o.id!==t))}onMouseDown(t){const o=t.composedPath(),i=o.includes(this.leftButton),e=o.includes(this.rightButton);i?this.createRipple(t,!0):e&&this.createRipple(t,!1)}onTouchStart(t){const o=t.composedPath(),i=o.includes(this.leftButton),e=o.includes(this.rightButton);i?this.createRipple(t,!0):e&&this.createRipple(t,!1)}onItemActionExecuted(){this.closeDropdown()}clickListener(t){(!this.enabled||!0===this.isDisabled||""===this.isDisabled||"full"===this.isDisabled)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}shouldShowLabelOnLeftButton(){return"icon-only"!==this.mode}shouldShowIconOnLeftButton(){return"default"!==this.mode}getIconSize(t="medium"){var o;const i=null===(o=this.size)||void 0===o?void 0:o.toLowerCase();return["small","medium","large"].includes(i)?i:t}closeDropdown(){this.show=!1}handleButtonClick(){this.buttonClick.emit()}handleDropdownItemClick(t){var o;this.dropdownItemClick.emit(t.detail),t.stopPropagation(),(null===(o=t.detail)||void 0===o?void 0:o.disableCloseOnSelect)||this.closeDropdown()}handleDropdownSubActionClick(t){this.dropdownSubActionClick.emit(t.detail),t.stopPropagation(),this.closeDropdown()}setupEventListeners(){const t=new AbortController,{signal:o}=t;window.addEventListener("scroll",this.positionDropdown,{signal:o,passive:!0}),window.addEventListener("resize",this.positionDropdown,{signal:o,passive:!0}),this.eventListeners.set(this._element,t)}cleanupEventListeners(){const t=this.eventListeners.get(this._element);t&&(t.abort(),this.eventListeners.delete(this._element))}async componentWillLoad(){this.i18n=await s()}componentDidLoad(){this.addElementIDs(),this.setupEventListeners(),this.addBlurListeners(),setTimeout((()=>this.positionDropdown()),0)}disconnectedCallback(){this.cleanupEventListeners(),this.removeBlurListeners()}componentDidUpdate(){this.show&&this.positionDropdown()}addElementIDs(){this._element&&n.addIDInfo(this._element),this.leftButton&&n.addIDInfo(this.leftButton,"leftButton",{id:"embedded"}),this.rightButton&&n.addIDInfo(this.rightButton,"rightButton",{id:"embedded"})}renderRipples(t){return t.map((t=>i("span",{key:t.id,class:"ripple",style:{left:t.x-10+"px",top:t.y-10+"px"}})))}render(){const t=this.shouldShowIconOnLeftButton(),o=this.shouldShowLabelOnLeftButton(),r=this.getIconSize();return i(e,{class:this.variant?`ez-split-button--${this.variant}`:""},i("div",{class:`ez-split-button ${this.size} ${this.mode}`},this.renderLeftButton(t,o,r),this.renderDivider(),this.renderDropdownSection(r)))}renderLeftButton(t,o,e){return i("ez-tooltip",{message:this.leftTitle||this.label},i("button",{class:`ez-split-button__left-button ${e} ${this.mode} ${this.isLeftPressed?"pressed":""}`,type:"button",disabled:this.isButtonDisabled,"aria-disabled":this.isButtonAriaDisabled,onClick:()=>this.handleButtonClick(),ref:t=>this.leftButton=t},t&&this.renderLeftIcon(e),o&&this.renderLabel(),!this.suppressAnimation&&this.renderRipples(this.leftRipples)))}renderDivider(){return i("div",{class:`ez-split-button__divider ${this.mode} ez-split-button__divider--${this.size} ${this.isButtonDisabled?"disabled":""}`,"aria-disabled":this.isButtonAriaDisabled})}renderDropdownSection(t){return i("div",{class:"dropdown"},this.renderRightButton(t),this.renderDropdownContent())}renderRightButton(t){return i("ez-tooltip",{message:this.rightTitle||this.i18n("ez-split-button.moreOptions")},i("button",{class:`ez-split-button__right-button ${t} ez-split-button__right-button--${t} ${this.isRightPressed?"pressed":""}`,type:"button",disabled:this.isButtonDisabled,"aria-disabled":this.isButtonAriaDisabled,onClick:()=>this.toggleDropdown(),ref:t=>this.rightButton=t},this.renderRightIcon(t),!this.suppressAnimation&&this.renderRipples(this.rightRipples)))}renderDropdownContent(){return i("div",{class:`dropdown-content dropdown-content--${this.size}`,ref:t=>this.dropdownParent=t},this.show&&this.renderDropdown())}renderLeftIcon(t){return i("ez-icon",{href:this.image,iconName:this.leftIconName||this.iconName,size:t})}renderLabel(){return i("label",{title:this.leftTitle||this.label},this.label)}renderRightIcon(t){return i("ez-icon",{class:"ez-split-button__right-button-container "+(t?`btn-icon--${t}`:""),iconName:this.rightIconName||"chevron-down",size:t})}renderDropdown(){return i("ez-dropdown",{items:this.items,onClick:t=>t.stopPropagation(),onEzOutsideClick:()=>this.closeDropdown(),onEzClick:t=>this.handleDropdownItemClick(t),onEzSubActionClick:t=>this.handleDropdownSubActionClick(t),itemBuilder:this.itemBuilder})}addBlurListeners(){var t,o;this.removeBlurListeners(),null===(t=this.leftButton)||void 0===t||t.addEventListener("blur",this.removeForcedFocusVisibleLeft),null===(o=this.rightButton)||void 0===o||o.addEventListener("blur",this.removeForcedFocusVisibleRight)}removeBlurListeners(){var t,o;null===(t=this.leftButton)||void 0===t||t.removeEventListener("blur",this.removeForcedFocusVisibleLeft),null===(o=this.rightButton)||void 0===o||o.removeEventListener("blur",this.removeForcedFocusVisibleRight)}connectedCallback(){this.addBlurListeners()}get isButtonDisabled(){return"full"===this.isDisabled||!this.enabled}get isButtonAriaDisabled(){return!0===this.isDisabled||""===this.isDisabled}get _element(){return r(this)}};l.style=':host{--ez-split-button--min-width:var(--space--40, 40px);--ez-split-button--width:auto;--ez-split-button--height:var(--space--32, 32px);--ez-split-button__medium-icon--width:var(--space--40, 40px);--ez-split-button__large-icon--width:var(--space--44, 44px);--ez-split-button__label--padding-top:var(--space--0, 0px);--ez-split-button__label--padding-bottom:var(--space--0, 0px);--ez-split-button__right-button--padding-left:var(--space--8, 8px);--ez-split-button__right-button--padding-right:var(--space--12, 12px);--ez-split-button--color:var(--color--ocean-green-600, #008561);--ez-split-button__left-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button__right-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button--background-color:var(--color--gray-70, #FFFFFF);--ez-split-button--border:1px solid var(--color--gray-90, #EAEAEA);--ez-split-button--font-size:var(--font-size--default, 14px);--ez-split-button--line-height:var(--line-height--28, 28px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--font-weight--medium, 500);--ez-split-button--border-radius:var(--border--radius-24, 24px);--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--disabled-color:var(--color--gray-400, #77777A);--ez-split-button--disabled--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;display:flex;width:fit-content}:host(.ez-split-button--primary){--ez-split-button--color:var(--color--gray-70);--ez-split-button--background-color:var(--color--ocean-green-500);--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button__left-icon--color:var(--color--gray-70);--ez-split-button__right-icon--color:var(--color--gray-70);--ez-split-button--hover-color:var(--color--gray-70);--ez-split-button--hover--background-color:var(--color--ocean-green-700);--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--gray-70);--ez-split-button--right-icon--hover-color:var(--color--gray-70);--ez-split-button--disabled-color:var(--color--gray-70);--ez-split-button--disabled--background-color:var(--color--gray-400);--ez-split-button--disabled--border:none;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}:host(.ez-split-button--secondary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:var(--color--gray-70);--ez-split-button--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-600);--ez-split-button--hover--background-color:var(--color--gray-80);--ez-split-button--hover--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:var(--color--gray-80);--ez-split-button--disabled--border:1px solid var(--color--gray-200);--ez-split-button--disabled-icon-color:var(--color--gray-400);--ez-split-button__left-icon--disabled-color:var(--color--gray-300);--ez-split-button__right-icon--disabled-color:var(--color--gray-300)}:host(.ez-split-button--tertiary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:transparent;--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-800);--ez-split-button--hover--background-color:transparent;--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:transparent;--ez-split-button--disabled--border:transparent;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}.ez-split-button.large{--ez-split-button--height:var(--space--42, 42px)}.ez-split-button.medium{--ez-split-button--height:var(--space--32, 32px)}.ez-split-button.small{--ez-split-button--height:var(--space--32, 32px);--ez-split-button--font-size:var(--text--small, 12px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear, transform 0.15s ease;white-space:nowrap;overflow:hidden;transform:scale(1);min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none}label{cursor:pointer;line-height:var(--ez-split-button--line-height)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none;gap:var(--space--8, 8px);padding-left:var(--space--12, 12px);padding-right:var(--space--8, 8px)}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button.force-focus-visible,.ez-split-button__left-button:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--ocean-green-200), \n -2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__right-button.force-focus-visible,.ez-split-button__right-button:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--ocean-green-200), \n 2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__left-button[aria-disabled].force-focus-visible,.ez-split-button__left-button[aria-disabled]:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--petroleum-100), \n -2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__right-button[aria-disabled].force-focus-visible,.ez-split-button__right-button[aria-disabled]:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--petroleum-100), \n 2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__left-button:disabled label,.ez-split-button__left-button[aria-disabled] label,.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__right-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-left:none}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__divider{width:1px;box-sizing:border-box;position:relative;background-color:var(--ez-split-button--background-color);height:var(--ez-split-button--height);border-top:var(--ez-split-button--border);border-bottom:var(--ez-split-button--border)}.ez-split-button__divider[aria-disabled],.ez-split-button__divider.disabled{cursor:not-allowed;background-color:var(--ez-split-button--disabled--background-color);border-top:var(--ez-split-button--disabled--border);border-bottom:var(--ez-split-button--disabled--border)}.ez-split-button__divider:before{content:"";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 10%);border-radius:2px;height:75%;top:10%;bottom:10%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left);padding-right:var(--ez-split-button__right-button--padding-right)}.ez-split-button{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:var(--elevation--8);border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}.ripple{position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(255, 255, 255, 0.3);pointer-events:none;transform:scale(0);animation:ripple-animation 0.6s linear;z-index:0}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}:host .ripple,:host(.ez-split-button--secondary) .ripple{background:rgba(0, 133, 97, 0.2)}:host(.ez-split-button--primary) .ripple{background:rgba(255, 255, 255, 0.3)}:host(.ez-split-button--tertiary) .ripple{background:rgba(0, 133, 97, 0.15)}.ez-split-button__left-button.pressed,.ez-split-button__right-button.pressed{transform:scale(0.98)}.ez-split-button__left-button>*:not(.ripple),.ez-split-button__right-button>*:not(.ripple){position:relative;z-index:1}.ez-split-button__left-button:disabled .ripple,.ez-split-button__left-button[aria-disabled] .ripple,.ez-split-button__right-button:disabled .ripple,.ez-split-button__right-button[aria-disabled] .ripple{display:none}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{transform:scale(1) !important}';export{l as ez_split_button}
1
+ import{r as t,c as o,h as i,H as e,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as n}from"@sankhyalabs/core";import{i as s}from"./p-3b7d9f30.js";const l=class{constructor(i){t(this,i),this.buttonClick=o(this,"buttonClick",7),this.dropdownItemClick=o(this,"dropdownItemClick",7),this.dropdownSubActionClick=o(this,"dropdownSubActionClick",7),this.rippleCounter=0,this.eventListeners=new WeakMap,this.createRipple=(t,o)=>{const i=o?this.leftButton:this.rightButton;if(!i||this.isButtonDisabled||this.suppressAnimation)return;const e=this.getEventCoordinates(t),r=i.getBoundingClientRect(),n=Object.assign(Object.assign({},{x:e.x-r.left,y:e.y-r.top}),{id:++this.rippleCounter});this.addRippleToButton(n,o)},this.positionDropdown=()=>{this.rightButton&&this.dropdownParent&&requestAnimationFrame((()=>{const{rightButton:t,dropdownParent:o}=this,i=t.getBoundingClientRect(),e=o.getBoundingClientRect(),r=window.innerHeight,n=window.innerWidth;Object.assign(o.style,{position:"fixed",top:r-i.bottom<e.height&&i.top>e.height?i.top-e.height+"px":`${i.bottom}px`,left:n-i.left<e.width&&i.left>e.width?i.right-e.width+"px":`${i.left}px`})}))},this.removeForcedFocusVisibleLeft=()=>{var t;null===(t=this.leftButton)||void 0===t||t.classList.remove("force-focus-visible")},this.removeForcedFocusVisibleRight=()=>{var t;null===(t=this.rightButton)||void 0===t||t.classList.remove("force-focus-visible")},this.leftRipples=[],this.rightRipples=[],this.isLeftPressed=!1,this.isRightPressed=!1,this.show=!1,this.enabled=!0,this.isDisabled=!1,this.iconName=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.image=void 0,this.items=void 0,this.label=void 0,this.leftTitle=void 0,this.rightTitle=void 0,this.mode="default",this.size="medium",this.variant=void 0,this.suppressAnimation=!1,this.itemBuilder=void 0}async setBlur(){this.leftButton.blur(),this.rightButton.blur()}async setLeftButtonFocus(){this.leftButton.focus(),this.leftButton.classList.add("force-focus-visible")}async setRightButtonFocus(){this.rightButton.focus(),this.rightButton.classList.add("force-focus-visible")}async toggleDropdown(){this.show=!this.show}async isOpenedDropdown(){return this.show}getEventCoordinates(t){return t instanceof MouseEvent?{x:t.clientX,y:t.clientY}:{x:t.touches[0].clientX,y:t.touches[0].clientY}}addRippleToButton(t,o){o?(this.leftRipples=[...this.leftRipples,t],this.setButtonPressed(!0,!0),this.scheduleRippleCleanup(t,!0)):(this.rightRipples=[...this.rightRipples,t],this.setButtonPressed(!1,!0),this.scheduleRippleCleanup(t,!1))}setButtonPressed(t,o){t?this.isLeftPressed=o:this.isRightPressed=o}scheduleRippleCleanup(t,o){setTimeout((()=>{this.setButtonPressed(o,!1)}),150),setTimeout((()=>{this.removeRipple(t.id,o)}),600)}removeRipple(t,o){o?this.leftRipples=this.leftRipples.filter((o=>o.id!==t)):this.rightRipples=this.rightRipples.filter((o=>o.id!==t))}onMouseDown(t){const o=t.composedPath(),i=o.includes(this.leftButton),e=o.includes(this.rightButton);i?this.createRipple(t,!0):e&&this.createRipple(t,!1)}onTouchStart(t){const o=t.composedPath(),i=o.includes(this.leftButton),e=o.includes(this.rightButton);i?this.createRipple(t,!0):e&&this.createRipple(t,!1)}onItemActionExecuted(){this.closeDropdown()}clickListener(t){(!this.enabled||!0===this.isDisabled||""===this.isDisabled||"full"===this.isDisabled)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}shouldShowLabelOnLeftButton(){return"icon-only"!==this.mode}shouldShowIconOnLeftButton(){return"default"!==this.mode}getIconSize(t="medium"){var o;const i=null===(o=this.size)||void 0===o?void 0:o.toLowerCase();return["small","medium","large"].includes(i)?i:t}closeDropdown(){this.show=!1}handleButtonClick(){this.buttonClick.emit()}handleDropdownItemClick(t){var o;this.dropdownItemClick.emit(t.detail),t.stopPropagation(),(null===(o=t.detail)||void 0===o?void 0:o.disableCloseOnSelect)||this.closeDropdown()}handleDropdownSubActionClick(t){this.dropdownSubActionClick.emit(t.detail),t.stopPropagation(),this.closeDropdown()}setupEventListeners(){const t=new AbortController,{signal:o}=t;window.addEventListener("scroll",this.positionDropdown,{signal:o,passive:!0}),window.addEventListener("resize",this.positionDropdown,{signal:o,passive:!0}),this.eventListeners.set(this._element,t)}cleanupEventListeners(){const t=this.eventListeners.get(this._element);t&&(t.abort(),this.eventListeners.delete(this._element))}async componentWillLoad(){this.i18n=await s()}componentDidLoad(){this.addElementIDs(),this.setupEventListeners(),this.addBlurListeners(),setTimeout((()=>this.positionDropdown()),0)}disconnectedCallback(){this.cleanupEventListeners(),this.removeBlurListeners()}componentDidUpdate(){this.show&&this.positionDropdown()}addElementIDs(){this._element&&n.addIDInfo(this._element),this.leftButton&&n.addIDInfo(this.leftButton,"leftButton",{id:"embedded"}),this.rightButton&&n.addIDInfo(this.rightButton,"rightButton",{id:"embedded"})}renderRipples(t){return t.map((t=>i("span",{key:t.id,class:"ripple",style:{left:t.x-10+"px",top:t.y-10+"px"}})))}render(){const t=this.shouldShowIconOnLeftButton(),o=this.shouldShowLabelOnLeftButton(),r=this.getIconSize();return i(e,{class:this.variant?`ez-split-button--${this.variant}`:""},i("div",{class:`ez-split-button ${this.size} ${this.mode}`},this.renderLeftButton(t,o,r),this.renderDivider(),this.renderDropdownSection(r)))}renderLeftButton(t,o,e){return i("ez-tooltip",{message:this.leftTitle||this.label},i("button",{class:`ez-split-button__left-button ${e} ${this.mode} ${this.isLeftPressed?"pressed":""}`,type:"button",disabled:this.isButtonDisabled,"aria-disabled":this.isButtonAriaDisabled,onClick:()=>this.handleButtonClick(),ref:t=>this.leftButton=t},t&&this.renderLeftIcon(e),o&&this.renderLabel(),!this.suppressAnimation&&this.renderRipples(this.leftRipples)))}renderDivider(){return i("div",{class:`ez-split-button__divider ${this.mode} ez-split-button__divider--${this.size} ${this.isButtonDisabled?"disabled":""}`,"aria-disabled":this.isButtonAriaDisabled})}renderDropdownSection(t){return i("div",{class:"dropdown"},this.renderRightButton(t),this.renderDropdownContent())}renderRightButton(t){return i("ez-tooltip",{message:this.rightTitle||this.i18n("ez-split-button.moreOptions")},i("button",{class:`ez-split-button__right-button ${t} ez-split-button__right-button--${t} ${this.isRightPressed?"pressed":""}`,type:"button",disabled:this.isButtonDisabled,"aria-disabled":this.isButtonAriaDisabled,onClick:()=>this.toggleDropdown(),ref:t=>this.rightButton=t},this.renderRightIcon(t),!this.suppressAnimation&&this.renderRipples(this.rightRipples)))}renderDropdownContent(){return i("div",{class:`dropdown-content dropdown-content--${this.size}`,ref:t=>this.dropdownParent=t},this.show&&this.renderDropdown())}renderLeftIcon(t){return i("ez-icon",{href:this.image,iconName:this.leftIconName||this.iconName,size:t})}renderLabel(){return i("label",{title:this.leftTitle||this.label},this.label)}renderRightIcon(t){return i("ez-icon",{class:"ez-split-button__right-button-container "+(t?`btn-icon--${t}`:""),iconName:this.rightIconName||"chevron-down",size:t})}renderDropdown(){return i("ez-dropdown",{items:this.items,onClick:t=>t.stopPropagation(),onEzOutsideClick:()=>this.closeDropdown(),onEzClick:t=>this.handleDropdownItemClick(t),onEzSubActionClick:t=>this.handleDropdownSubActionClick(t),itemBuilder:this.itemBuilder})}addBlurListeners(){var t,o;this.removeBlurListeners(),null===(t=this.leftButton)||void 0===t||t.addEventListener("blur",this.removeForcedFocusVisibleLeft),null===(o=this.rightButton)||void 0===o||o.addEventListener("blur",this.removeForcedFocusVisibleRight)}removeBlurListeners(){var t,o;null===(t=this.leftButton)||void 0===t||t.removeEventListener("blur",this.removeForcedFocusVisibleLeft),null===(o=this.rightButton)||void 0===o||o.removeEventListener("blur",this.removeForcedFocusVisibleRight)}connectedCallback(){this.addBlurListeners()}get isButtonDisabled(){return"full"===this.isDisabled||!this.enabled}get isButtonAriaDisabled(){return!0===this.isDisabled||""===this.isDisabled}get _element(){return r(this)}};l.style=':host{--ez-split-button--min-width:var(--space--40, 40px);--ez-split-button--width:auto;--ez-split-button--height:var(--space--32, 32px);--ez-split-button__medium-icon--width:var(--space--40, 40px);--ez-split-button__large-icon--width:var(--space--44, 44px);--ez-split-button__label--padding-top:var(--space--0, 0px);--ez-split-button__label--padding-bottom:var(--space--0, 0px);--ez-split-button__right-button--padding-left:var(--space--8, 8px);--ez-split-button__right-button--padding-right:var(--space--12, 12px);--ez-split-button--color:var(--color--ocean-green-600, #008561);--ez-split-button__left-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button__right-icon--color:var(--color--ocean-green-600, #008561);--ez-split-button--background-color:var(--color--gray-70, #FFFFFF);--ez-split-button--border:1px solid var(--color--gray-90, #EAEAEA);--ez-split-button--font-size:var(--font-size--default, 14px);--ez-split-button--line-height:var(--line-height--28, 28px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--font-weight--medium, 500);--ez-split-button--border-radius:var(--border--radius-24, 24px);--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--disabled-color:var(--color--gray-400, #77777A);--ez-split-button--disabled--background-color:var(--color--gray-80, #F9F9F9);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;display:flex;width:fit-content}:host(.ez-split-button--primary){--ez-split-button--color:var(--color--gray-70);--ez-split-button--background-color:var(--color--ocean-green-500);--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button__left-icon--color:var(--color--gray-70);--ez-split-button__right-icon--color:var(--color--gray-70);--ez-split-button--hover-color:var(--color--gray-70);--ez-split-button--hover--background-color:var(--color--ocean-green-700);--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--gray-70);--ez-split-button--right-icon--hover-color:var(--color--gray-70);--ez-split-button--disabled-color:var(--color--gray-70);--ez-split-button--disabled--background-color:var(--color--gray-400);--ez-split-button--disabled--border:none;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}:host(.ez-split-button--secondary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:var(--color--gray-70);--ez-split-button--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-600);--ez-split-button--hover--background-color:var(--color--gray-80);--ez-split-button--hover--border:1px solid var(--color--gray-90);--ez-split-button--left-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-600);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:var(--color--gray-80);--ez-split-button--disabled--border:1px solid var(--color--gray-200);--ez-split-button--disabled-icon-color:var(--color--gray-400);--ez-split-button__left-icon--disabled-color:var(--color--gray-300);--ez-split-button__right-icon--disabled-color:var(--color--gray-300)}:host(.ez-split-button--tertiary){--ez-split-button--color:var(--color--ocean-green-600);--ez-split-button--background-color:transparent;--ez-split-button--font-weight:var(--font-weight--regular);--ez-split-button--border:none;--ez-split-button--left-icon--color:var(--color--ocean-green-600);--ez-split-button--right-icon--color:var(--color--ocean-green-600);--ez-split-button--hover-color:var(--color--ocean-green-800);--ez-split-button--hover--background-color:transparent;--ez-split-button--hover--border:none;--ez-split-button--left-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--right-icon--hover-color:var(--color--ocean-green-800);--ez-split-button--disabled-color:var(--color--gray-400);--ez-split-button--disabled--background-color:transparent;--ez-split-button--disabled--border:transparent;--ez-split-button--disabled-icon-color:var(--color--gray-200);--ez-split-button__left-icon--disabled-color:var(--color--gray-200);--ez-split-button__right-icon--disabled-color:var(--color--gray-200)}.ez-split-button.large{--ez-split-button--height:var(--space--42, 42px)}.ez-split-button.medium{--ez-split-button--height:var(--space--32, 32px)}.ez-split-button.small{--ez-split-button--height:var(--space--32, 32px);--ez-split-button--font-size:var(--text--small, 12px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear, transform 0.15s ease;white-space:nowrap;overflow:hidden;transform:scale(1);min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none}label{cursor:pointer;line-height:var(--ez-split-button--line-height)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none;gap:var(--space--8, 8px);padding-left:var(--space--12, 12px);padding-right:var(--space--8, 8px)}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button.force-focus-visible,.ez-split-button__left-button:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--ocean-green-200), \n -2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__right-button.force-focus-visible,.ez-split-button__right-button:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--ocean-green-200), \n 2px 2px 0px 2px var(--color--ocean-green-200), \n 0px -2px 0px 2px var(--color--ocean-green-200), \n 0px 2px 0px 2px var(--color--ocean-green-200)}.ez-split-button__left-button[aria-disabled].force-focus-visible,.ez-split-button__left-button[aria-disabled]:focus-visible{box-shadow:-1px 1px 0px 1px var(--color--gray-70), \n -1px -1px 0px 1px var(--color--gray-70), \n -2px -2px 0px 2px var(--color--petroleum-100), \n -2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__right-button[aria-disabled].force-focus-visible,.ez-split-button__right-button[aria-disabled]:focus-visible{box-shadow:1px 1px 0px 1px var(--color--gray-70), \n 1px -1px 0px 1px var(--color--gray-70), \n 2px -2px 0px 2px var(--color--petroleum-100), \n 2px 2px 0px 2px var(--color--petroleum-100), \n 0px -2px 0px 2px var(--color--petroleum-100), \n 0px 2px 0px 2px var(--color--petroleum-100)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__left-button:disabled label,.ez-split-button__left-button[aria-disabled] label,.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__left-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{--ez-icon--color:var(--ez-split-button__right-icon--disabled-color);border:var(--ez-split-button--disabled-border);border-left:none}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__divider{width:1px;box-sizing:border-box;position:relative;background-color:var(--ez-split-button--background-color);height:var(--ez-split-button--height);border-top:var(--ez-split-button--border);border-bottom:var(--ez-split-button--border)}.ez-split-button__divider[aria-disabled],.ez-split-button__divider.disabled{cursor:not-allowed;background-color:var(--ez-split-button--disabled--background-color);border-top:var(--ez-split-button--disabled--border);border-bottom:var(--ez-split-button--disabled--border)}.ez-split-button__divider:before{content:"";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 10%);border-radius:2px;height:75%;top:10%;bottom:10%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left);padding-right:var(--ez-split-button__right-button--padding-right)}.ez-split-button{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:var(--elevation--8);border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}.ripple{position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(255, 255, 255, 0.3);pointer-events:none;transform:scale(0);animation:ripple-animation 0.6s linear;z-index:0}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}:host .ripple,:host(.ez-split-button--secondary) .ripple{background:rgba(0, 133, 97, 0.2)}:host(.ez-split-button--primary) .ripple{background:rgba(255, 255, 255, 0.3)}:host(.ez-split-button--tertiary) .ripple{background:rgba(0, 133, 97, 0.15)}.ez-split-button__left-button.pressed,.ez-split-button__right-button.pressed{transform:scale(0.98)}.ez-split-button__left-button>*:not(.ripple),.ez-split-button__right-button>*:not(.ripple){position:relative;z-index:1}.ez-split-button__left-button:disabled .ripple,.ez-split-button__left-button[aria-disabled] .ripple,.ez-split-button__right-button:disabled .ripple,.ez-split-button__right-button[aria-disabled] .ripple{display:none}.ez-split-button__left-button:disabled,.ez-split-button__left-button[aria-disabled],.ez-split-button__right-button:disabled,.ez-split-button__right-button[aria-disabled]{transform:scale(1) !important}';export{l as ez_split_button}
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,g as a}from"./p-23a36bb6.js";import{DateUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as h}from"./p-ec7db713.js";import{i as r}from"./p-69344c23.js";const l=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this.ezInput=i(this,"ezInput",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.mode="regular",this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i){const e=n.validateDate(t),s=n.validateDate(i);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(e)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===e?void 0:e)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const i=n.validateDate(this.value),e=n.validateDate(t);(null==i?void 0:i.getTime())!==(null==e?void 0:e.getTime())?this.value=e:this._changePending=!1}async handleChangeCalendar(t){this.changeValue(this._calendar.value),this.ezInput.emit(this._calendar.value),this._popover.hide(),await this.setFocus(),t.stopPropagation()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,i=n.strToDate(t);if(i||!t){this.errorMessage="";const t=n.validateDate(this.value),e=n.validateDate(i);(null==t?void 0:t.getTime())===(null==e?void 0:e.getTime())?(e&&(this._textInput.value=this.getTextValue(e)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):(this._focused=!1,this.changeValue(e))}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 i=n.strToDate(this._textInput.value),e=n.validateDate(this.value),s=n.validateDate(i);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())&&(this._changePending=!0,this._focused=!0,this.ezInput.emit(s),this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"===t.data||"h"===t.data){const t=new Date;this.ezInput.emit(t),this.changeValue(t)}}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}async componentWillLoad(){this.i18n=await r()}componentDidLoad(){h.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return o.addIDInfoIfNotExists(this._elem,"input"),e(s,null,e("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},e("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"})),e("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},e("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":o.getInternalIDInfo("calendar"),onEzChange:t=>this.handleChangeCalendar(t),value:this.value})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};l.style=':host{display:block;width:100%;--ez-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 i,h as e,H as s,g as a}from"./p-23a36bb6.js";import{DateUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as h}from"./p-ec7db713.js";import{i as r}from"./p-3b7d9f30.js";const l=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this.ezInput=i(this,"ezInput",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.mode="regular",this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i){const e=n.validateDate(t),s=n.validateDate(i);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(e)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===e?void 0:e)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const i=n.validateDate(this.value),e=n.validateDate(t);(null==i?void 0:i.getTime())!==(null==e?void 0:e.getTime())?this.value=e:this._changePending=!1}async handleChangeCalendar(t){this.changeValue(this._calendar.value),this.ezInput.emit(this._calendar.value),this._popover.hide(),await this.setFocus(),t.stopPropagation()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,i=n.strToDate(t);if(i||!t){this.errorMessage="";const t=n.validateDate(this.value),e=n.validateDate(i);(null==t?void 0:t.getTime())===(null==e?void 0:e.getTime())?(e&&(this._textInput.value=this.getTextValue(e)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):(this._focused=!1,this.changeValue(e))}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 i=n.strToDate(this._textInput.value),e=n.validateDate(this.value),s=n.validateDate(i);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())&&(this._changePending=!0,this._focused=!0,this.ezInput.emit(s),this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"===t.data||"h"===t.data){const t=new Date;this.ezInput.emit(t),this.changeValue(t)}}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}async componentWillLoad(){this.i18n=await r()}componentDidLoad(){h.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return o.addIDInfoIfNotExists(this._elem,"input"),e(s,null,e("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},e("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"})),e("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},e("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":o.getInternalIDInfo("calendar"),onEzChange:t=>this.handleChangeCalendar(t),value:this.value})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};l.style=':host{display:block;width:100%;--ez-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
Binary file
@@ -0,0 +1 @@
1
+ import{h as e,r as a,c as l,g as n,H as i}from"./p-23a36bb6.js";import{ObjectUtils as o,StringUtils as t,UserInterface as r,ElementIDUtils as s}from"@sankhyalabs/core";import{F as d}from"./p-47e4a8ce.js";import{C as c}from"./p-b853763b.js";import{g as m}from"./p-3b7d9f30.js";function u(a,l,n,i,o,t){return e("div",{class:"ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium ez-size-height--full "+((null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?"ez-margin-top--small":"")},e("ez-check",{enabled:!n,label:l,mode:o?c.SWITCH:c.REGULAR,"data-field-name":a,"data-context-name":i,key:a}))}function v(a,l,n,i,o,t,r,s,c,m){var u;return e("div",{class:"ez-col ez-col--sd-12"},(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-number-input",{class:"ez-input__no-margin",enabled:!n,label:l,precision:i,prettyPrecision:o,"data-field-name":a,"data-context-name":t,key:a,canShowError:r,size:null!==(u=null==m?void 0:m.size)&&void 0!==u?u:"small",required:c}):e("ez-number-input",{class:"ez-input__no-margin",enabled:!n,label:l,precision:i,prettyPrecision:o,"data-field-name":a,"data-context-name":t,key:a,canShowError:r}))}const p=({name:a,label:l,readOnly:n,contextName:i,canShowError:o,props:t,required:r},s)=>{var c;return e("div",{class:"ez-col ez-col--sd-12"},(null==s?void 0:s.formLayout)===d.CLASSIC_CASCADE||(null==s?void 0:s.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,mask:null==t?void 0:t.mask,"clean-value-mask":null==t?void 0:t.cleanValueMask,size:null!==(c=null==s?void 0:s.size)&&void 0!==c?c:"small",required:r}):e("ez-text-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,canShowError:o,mask:null==t?void 0:t.mask,"clean-value-mask":null==t?void 0:t.cleanValueMask}))},h=new Map;h.set(r.CHECKBOX,((e,a)=>u(e.name,e.label,e.readOnly,e.contextName,!1,a))),h.set(r.SWITCH,((e,a)=>u(e.name,e.label,e.readOnly,e.contextName,!0,a))),h.set(r.OPTIONSELECTOR,(({name:a,label:l,readOnly:n,required:i,props:o,contextName:t,canShowError:r},s)=>{var c;const m=(null==s?void 0:s.formLayout)===d.CLASSIC_CASCADE||(null==s?void 0:s.formLayout)===d.CLASSIC_SIDE_BY_SIDE,u=null==o?void 0:o.options;let v;if("string"==typeof u){const e=JSON.parse(u);v=Object.keys(e).map((a=>({value:a,label:e[a]})))}else v=u;return e("div",{class:"ez-col ez-col--sd-12"},m?e("ez-classic-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":t,key:a,options:v,size:null!==(c=null==s?void 0:s.size)&&void 0!==c?c:"small",required:i}):e("ez-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":t,key:a,options:v,canShowError:r}))})),h.set(r.DATE,(({name:a,label:l,readOnly:n,canShowError:i,required:o},t)=>{var r;return e("div",{class:"ez-col ez-col--sd-12"},(null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-date-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,size:null!==(r=null==t?void 0:t.size)&&void 0!==r?r:"small",required:o}):e("ez-date-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i}))})),h.set(r.TIME,(({name:a,label:l,readOnly:n,canShowError:i,props:o,required:t},r)=>{var s,c,m;return e("div",{class:"ez-col ez-col--sd-12"},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,"show-seconds":null!==(s=null==o?void 0:o.showSeconds)&&void 0!==s&&s,size:null!==(c=null==r?void 0:r.size)&&void 0!==c?c:"small",required:t}):e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,"show-seconds":null!==(m=null==o?void 0:o.showSeconds)&&void 0!==m&&m}))})),h.set(r.ELAPSEDTIME,(({name:a,label:l,readOnly:n,canShowError:i,required:o},t)=>{var r;return e("div",{class:"ez-col ez-col--sd-12"},(null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,showSeconds:!0,size:null!==(r=null==t?void 0:t.size)&&void 0!==r?r:"small",required:o}):e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,showSeconds:!0}))})),h.set(r.DATETIME,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,required:t},r)=>{var s;return e("div",{class:"ez-col ez-col--sd-12"},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,size:null!==(s=null==r?void 0:r.size)&&void 0!==s?s:"small",required:t}):e("ez-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o}))})),h.set(r.FILE,(({name:a,label:l,readOnly:n,contextName:i,props:t})=>{const r=o.removeEmptyValues({subTitle:t.subTitle,requestHeaders:Object.assign(Object.assign({},t.STORAGESTRATEGY&&{STORAGESTRATEGY:t.STORAGESTRATEGY}),t.INTERNAL_FILENAME&&{INTERNAL_FILENAME:t.INTERNAL_FILENAME})});return e("div",{class:"ez-col ez-col--sd-12"},e("ez-upload",Object.assign({enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a},r)))})),h.set(r.DECIMALNUMBER,(({name:e,label:a,readOnly:l,props:n,contextName:i,canShowError:o,required:t},r)=>{var s,d;const c=Number(null!==(s=null==n?void 0:n.precision)&&void 0!==s?s:2);return v(e,a,l,c,Number(null!==(d=null==n?void 0:n.prettyPrecision)&&void 0!==d?d:c),i,o,0,t,r)})),h.set(r.INTEGERNUMBER,(({name:e,label:a,readOnly:l,contextName:n,canShowError:i,props:o,required:t},r)=>v(e,a,l,0,0,n,i,0,t,r))),h.set(r.SEARCH,(({name:a,label:l,readOnly:n,required:i,contextName:o,canShowError:r,optionLoader:s,props:c},m)=>{var u,v,p;const h=!t.isEmpty(null==c?void 0:c.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":o,key:a,canShowError:r,optionLoader:s,ignoreLimitCharsToSearch:null!==(u=null==c?void 0:c.ignoreLimitCharsToSearch)&&void 0!==u&&u,hideDescriptionInput:!h,size:null!==(v=null==m?void 0:m.size)&&void 0!==v?v:"small",required:i}):e("ez-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":o,key:a,canShowError:r,optionLoader:s,ignoreLimitCharsToSearch:null!==(p=null==c?void 0:c.ignoreLimitCharsToSearch)&&void 0!==p&&p,hideDescriptionInput:!h}))})),h.set(r.SEARCHPLUS,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,optionLoader:r,props:s,required:c},m)=>{var u;const v=(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE,p=!t.isEmpty(null==s?void 0:s.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},v?e("ez-classic-search-plus",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,optionLoader:r,hideDescriptionInput:!p,size:null!==(u=null==m?void 0:m.size)&&void 0!==u?u:"small",required:c}):e("ez-search-plus",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,optionLoader:r,hideDescriptionInput:!p}))})),h.set(r.LONGTEXT,(({name:a,label:l,readOnly:n,rows:i,contextName:o,canShowError:t},r)=>e("div",{class:"ez-col ez-col--sd-12",key:a},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-text-area",{enabled:!n,label:l,"data-field-name":a,"data-context-name":o,rows:i}):e("ez-text-area",{enabled:!n,label:l,"data-field-name":a,"data-context-name":o,rows:i,canShowError:t})))),h.set(r.HTML,(({name:a,label:l,readOnly:n,contextName:i,rows:o,canShowError:t})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-rich-text",{key:a,enabled:!n,label:l,"data-field-name":a,"data-context-name":i,rows:o,canShowError:t})))),h.set(r.IMAGE,(({name:a,label:l,readOnly:n,contextName:i,props:o})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-image-input",Object.assign({enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,maxFileSize:1/0},o))))),h.set(r.MULTISELECTOR,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,props:t})=>{var r,s,d,c;const m=null==t?void 0:t.options;let u;if("string"==typeof m){const e=JSON.parse(m);u=Object.keys(e).map((a=>({value:a,label:e[a],check:!1})))}else u=m;const v=null!==(r=null==t?void 0:t.useOptions)&&void 0!==r?r:null!=u&&null==(null==t?void 0:t.dataSource);return e("div",{class:"ez-col ez-col--sd-12"},e("ez-multi-select-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,canShowError:o,options:u,dataSource:null==t?void 0:t.dataSource,columnName:null!==(s=null==t?void 0:t.columnName)&&void 0!==s?s:a,useOptions:v,isTextSearch:null!==(d=null==t?void 0:t.isTextSearch)&&void 0!==d&&d,orderSelectedFirst:null!==(c=null==t?void 0:t.orderSelectedFirst)&&void 0!==c&&c}))}));const z=(e,a=new Map,l)=>{const n=m(),i=(null==l?void 0:l.formLayout)===d.CLASSIC_CASCADE||(null==l?void 0:l.formLayout)===d.CLASSIC_SIDE_BY_SIDE,o=a.get(e.userInterface)||h.get(e.userInterface)||p,t=!i&&e.required?`${e.label}${n("app.requiredInfo")}`:e.label,r=o(Object.assign(Object.assign({},e),{label:t}),l);return r.l["data-form-item"]=e.name,r};class w{constructor(e){this.elem=e}addRightElement(e){this.removeRightElement(),e.classList.add("ez-padding-left--small","ez-margin-top--auto","ez-margin-bottom--extra-small"),e.setAttribute("data-custom-item","true"),this.elem.classList.add("ez-col--nowrap"),this.elem.appendChild(e)}removeRightElement(){Array.from(this.elem.querySelectorAll('[data-custom-item="true"]')).forEach((e=>e.remove()))}get fieldName(){return this.elem.getAttribute("data-form-item")}}class b{constructor(e,a){this.items=new Map,this.formId=a,e.forEach((e=>{const a=new w(e);this.items.set(a.fieldName,a)}))}getItem(e){return this.items.get(e)}get formName(){return this.formId}}const f=class{constructor(e){a(this,e),this.ezContentReady=l(this,"ezContentReady",7),this.formItemsReady=l(this,"formItemsReady",7),this.MAIN_GROUP_NAME="__main",this._customEditors=new Map,this.fields=void 0,this.selectedRecord=void 0,this.singleColumn=!1,this.formLayout=void 0,this.customUiBuilders=new Map}async showUp(){this.singleColumn||this._element.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(e,a,l){const n=new Map(this._customEditors);n.set(e,{customEditor:a,detailContext:l}),this._customEditors=n}async setFieldProp(e,a,l){const n=this.fields.map((n=>(n.name!==e||!l&&0!==l||(n.props=n.props||{},n.props[a]=l),n)));this.fields=[...n]}getGroupByField(e){var a,l;const n=null!==(a=e.group)&&void 0!==a?a:null===(l=e.props)||void 0===l?void 0:l.UITabName;if(n&&n!==this.MAIN_GROUP_NAME)return n}groupFields(e){const a=new Map;return e.forEach((e=>{const l=this.getGroupByField(e);if(l){let n=a.get(l);null==n&&(n=[],a.set(l,n)),n.push(e)}else a.set(e.name,e)})),a}componentDidRender(){this._formElements=Array.from(this._element.querySelectorAll("[data-field-name]")),this.ezContentReady.emit(this._formElements);const e=new b(Array.from(this._element.querySelectorAll("[data-form-item]")));this.formItemsReady.emit(e)}isItemFullWidth(e){return[r.FILE,r.LONGTEXT,r.HTML].includes(e)}buildFormItemElement(a,l=""){var n;this.isItemFullWidth(a.userInterface)&&(l+=` input-full_width ${this.singleColumn&&"single-column"}`);const i={formLayout:this.formLayout,size:"xsmall"};if(this._customEditors.has(a.name)){const o=null===(n=this._formElements.map((e=>({name:e.dataset.fieldName,value:e.value}))).find((e=>e.name===a.name)))||void 0===n?void 0:n.value,t=this._customEditors.get(a.name).customEditor;return e("div",{class:l},e("ez-custom-form-input",{"data-field-name":a.name,customEditor:t,formViewField:a,builderFallback:e=>z(e,this.customUiBuilders,i),value:o,selectedRecord:this.selectedRecord}))}return e("div",{class:l},z(a,this.customUiBuilders,i))}render(){if(s.addIDInfoIfNotExists(this._element,"ezFormView"),null==this.fields)return;let a=[],l=Array.from(this.groupFields(this.fields).entries()).map((([l,n])=>{if(Array.isArray(n))return e("ez-collapsible-box",{id:`group-${l}`,label:l,"header-size":"large",key:l},e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n.map((e=>this.buildFormItemElement(e)))));a.push(n)})),n=a.map((e=>this.buildFormItemElement(e))),o=e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n);return e(i,null,o,l)}get _element(){return n(this)}};f.style=".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:250px;--ez-form-view__long-item--min-width:530px;--ez-form-view__item--max-width:512px;--ez-form-view__long-item--max-width:100%;--ez-form-view__item--gap:var(--space--14, 14px);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--gap);padding-inline:var(--ez-form-view__item--padding);width:100%}.form-view__content--single-column.sc-ez-form-view{grid-template-columns:1fr}.form-view__content--single-column.sc-ez-form-view>div.sc-ez-form-view:not(.input-full_width){width:clamp(var(--ez-form-view__item--min-width), 70%, var(--ez-form-view__item--max-width))}.input-full_width.sc-ez-form-view{grid-column:1/-1;width:clamp(var(--ez-form-view__long-item--min-width), 100%, var(--ez-form-view__long-item--max-width))}.single-column.sc-ez-form-view{--ez-form-view__long-item--max-width:1024px}*.sc-ez-form-view:has(*)+ez-collapsible-box.sc-ez-form-view{margin-top:var(--space--16, 16px)}";export{f as ez_form_view}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,g as a}from"./p-23a36bb6.js";import{DateUtils as n,TimeFormatter as o,ElementIDUtils as h}from"@sankhyalabs/core";import{C as l}from"./p-ec7db713.js";import{i as r}from"./p-69344c23.js";const c=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.showSeconds=!1,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i){const e=n.validateDate(t,!0),s=n.validateDate(i,!0);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(e)||"";!this.getParsedDateTime(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===e?void 0:e)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}handleKeyDown(t){const i=this._textInput.shadowRoot.querySelector("input");if(t.shiftKey&&"Tab"===t.key){if(i.selectionStart>0){let e=i.value.lastIndexOf(" ",i.selectionStart);-1!==e&&(i.setSelectionRange(0,e),t.preventDefault())}}else if("Tab"===t.key&&i.value.length!==i.selectionEnd){let e=i.value.indexOf(" ",i.selectionEnd);e=-1===e?i.selectionEnd:e+1,i.setSelectionRange(e,i.value.length),t.preventDefault()}}handleFocus(){const t=this._textInput.shadowRoot.querySelector("input");if(t.selectionStart!==t.selectionEnd){let i=t.value.indexOf(" ",t.selectionStart);i=-1===i?t.value.length:i,t.setSelectionRange(0,i)}}handleClick(){const t=this._textInput.shadowRoot.querySelector("input");let i=t.value.lastIndexOf(" ",t.selectionEnd);i=-1===i?0:i+1,i=i>t.selectionEnd?0:i;let e=0===i?t.value.indexOf(" "):t.value.length;t.setSelectionRange(i,e)}changeValue(t){const i=n.validateDate(this.value,!0),e=n.validateDate(t,!0);(null==i?void 0:i.getTime())!==(null==e?void 0:e.getTime())&&(this.value=e)}hideCalendar(){this.changeValue(this._calendar.value),this._popover.hide()}getParsedDateTime(t){var i,e;if(void 0===t&&(t=(null===(e=null===(i=this._textInput)||void 0===i?void 0:i.value)||void 0===e?void 0:e.trim())||""),!t)return;const s=t.split(" "),a=s.length>0?s[0]:t,h=o.prepareValue(s[1]?s[1]:"",this.showSeconds);return n.strToDate(a+(h&&" "+h))}handleBlur(){var t,i;if(this._changePending)try{const e=(null===(i=null===(t=this._textInput)||void 0===t?void 0:t.value)||void 0===i?void 0:i.trim())||"",s=this.getParsedDateTime();if(s||!e){this.errorMessage="";const t=n.validateDate(this.value,!0),i=n.validateDate(s,!0);(null==t?void 0:t.getTime())===(null==i?void 0:i.getTime())?(i&&(this._textInput.value=this.getTextValue(i)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):this.changeValue(i)}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-classic-date-time-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){if(t)return n.formatDateTime(t,this.showSeconds)}handleInput(t){const i=this.getParsedDateTime(),e=n.validateDate(this.value,!0),s=n.validateDate(i,!0);(null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())&&(this._changePending=!0,this._focused=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"!==t.data&&"h"!==t.data||this.changeValue(new Date)}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}async componentWillLoad(){this.i18n=await r()}componentDidLoad(){l.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return h.addIDInfoIfNotExists(this._elem,"input"),e(s,null,e("ez-classic-input",{ref:t=>this._textInput=t,"data-element-id":h.getInternalIDInfo("textInput"),"data-slave-mode":"true",label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,size:this.size,onKeyDown:t=>{this.handleKeyDown(t)},onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),onFocus:()=>this.handleFocus(),onClick:()=>this.handleClick(),required:this.required,leftIconName:"calendar",leftIconClickable:this.enabled,onIconClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},onEzChange:t=>t.stopPropagation()}),e("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id")},e("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":h.getInternalIDInfo("calendar"),onEzChange:t=>{this.hideCalendar(),t.stopPropagation()},time:!0,showSeconds:this.showSeconds})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};c.style=':host{display:block;width:100%;--ez-classic-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-classic-date-input__input--border-color:var(--ez-classic-date-input__input--background-color);--ez-classic-date-input__calendar-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="15px"><path d="M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z"/></svg>\')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-classic-date-input__calendar-image);mask-image:var(--ez-classic-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-classic-input{--text-input__input--background-color:var(--ez-classic-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-classic-date-input__input--border-color, #DCE0E8)}';export{c as ez_classic_date_time_input}
1
+ import{r as t,c as i,h as e,H as s,g as a}from"./p-23a36bb6.js";import{DateUtils as n,TimeFormatter as o,ElementIDUtils as h}from"@sankhyalabs/core";import{C as l}from"./p-ec7db713.js";import{i as r}from"./p-3b7d9f30.js";const c=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.showSeconds=!1,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i){const e=n.validateDate(t,!0),s=n.validateDate(i,!0);if((null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(e)||"";!this.getParsedDateTime(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===e?void 0:e)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}handleKeyDown(t){const i=this._textInput.shadowRoot.querySelector("input");if(t.shiftKey&&"Tab"===t.key){if(i.selectionStart>0){let e=i.value.lastIndexOf(" ",i.selectionStart);-1!==e&&(i.setSelectionRange(0,e),t.preventDefault())}}else if("Tab"===t.key&&i.value.length!==i.selectionEnd){let e=i.value.indexOf(" ",i.selectionEnd);e=-1===e?i.selectionEnd:e+1,i.setSelectionRange(e,i.value.length),t.preventDefault()}}handleFocus(){const t=this._textInput.shadowRoot.querySelector("input");if(t.selectionStart!==t.selectionEnd){let i=t.value.indexOf(" ",t.selectionStart);i=-1===i?t.value.length:i,t.setSelectionRange(0,i)}}handleClick(){const t=this._textInput.shadowRoot.querySelector("input");let i=t.value.lastIndexOf(" ",t.selectionEnd);i=-1===i?0:i+1,i=i>t.selectionEnd?0:i;let e=0===i?t.value.indexOf(" "):t.value.length;t.setSelectionRange(i,e)}changeValue(t){const i=n.validateDate(this.value,!0),e=n.validateDate(t,!0);(null==i?void 0:i.getTime())!==(null==e?void 0:e.getTime())&&(this.value=e)}hideCalendar(){this.changeValue(this._calendar.value),this._popover.hide()}getParsedDateTime(t){var i,e;if(void 0===t&&(t=(null===(e=null===(i=this._textInput)||void 0===i?void 0:i.value)||void 0===e?void 0:e.trim())||""),!t)return;const s=t.split(" "),a=s.length>0?s[0]:t,h=o.prepareValue(s[1]?s[1]:"",this.showSeconds);return n.strToDate(a+(h&&" "+h))}handleBlur(){var t,i;if(this._changePending)try{const e=(null===(i=null===(t=this._textInput)||void 0===t?void 0:t.value)||void 0===i?void 0:i.trim())||"",s=this.getParsedDateTime();if(s||!e){this.errorMessage="";const t=n.validateDate(this.value,!0),i=n.validateDate(s,!0);(null==t?void 0:t.getTime())===(null==i?void 0:i.getTime())?(i&&(this._textInput.value=this.getTextValue(i)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):this.changeValue(i)}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-classic-date-time-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){if(t)return n.formatDateTime(t,this.showSeconds)}handleInput(t){const i=this.getParsedDateTime(),e=n.validateDate(this.value,!0),s=n.validateDate(i,!0);(null==e?void 0:e.getTime())!==(null==s?void 0:s.getTime())&&(this._changePending=!0,this._focused=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"!==t.data&&"h"!==t.data||this.changeValue(new Date)}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}async componentWillLoad(){this.i18n=await r()}componentDidLoad(){l.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return h.addIDInfoIfNotExists(this._elem,"input"),e(s,null,e("ez-classic-input",{ref:t=>this._textInput=t,"data-element-id":h.getInternalIDInfo("textInput"),"data-slave-mode":"true",label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,size:this.size,onKeyDown:t=>{this.handleKeyDown(t)},onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),onFocus:()=>this.handleFocus(),onClick:()=>this.handleClick(),required:this.required,leftIconName:"calendar",leftIconClickable:this.enabled,onIconClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},onEzChange:t=>t.stopPropagation()}),e("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id")},e("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":h.getInternalIDInfo("calendar"),onEzChange:t=>{this.hideCalendar(),t.stopPropagation()},time:!0,showSeconds:this.showSeconds})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};c.style=':host{display:block;width:100%;--ez-classic-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-classic-date-input__input--border-color:var(--ez-classic-date-input__input--background-color);--ez-classic-date-input__calendar-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="15px"><path d="M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z"/></svg>\')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-classic-date-input__calendar-image);mask-image:var(--ez-classic-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-classic-input{--text-input__input--background-color:var(--ez-classic-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-classic-date-input__input--border-color, #DCE0E8)}';export{c as ez_classic_date_time_input}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as h}from"./p-23a36bb6.js";import{TimeFormatter as r,MaskFormatter as a,NumberUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as l}from"./p-ec7db713.js";import{i as u}from"./p-69344c23.js";const c=class{constructor(i){t(this,i),this.ezChange=s(this,"ezChange",7),this.ezStartChange=s(this,"ezStartChange",7),this.ezCancelWaitingChange=s(this,"ezCancelWaitingChange",7),this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.showSeconds=!1,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||(this.prepareValue(this._viewValue),(this._textInput.value||"")!==this._viewValue&&(this._textInput.value=this._viewValue)))}observeShowSeconds(){this.prepareMask(this.showSeconds?"##:##:##":"##:##")}observeValue(t,s){if(this._textInput&&t!=s){let i=this.validateValue(t);i!=this.validateValue(s)&&(this._viewValue=null==i?"":i.toString(),this.prepareValue(this._viewValue),this._viewValue&&!r.validateTime(this._viewValue,this.showSeconds)?(this.setError(this.i18n("ez-classic-time-input.invalidTime")),i=void 0):this.setError(""),this.ezChange.emit(null===i?void 0:i))}}prepareMask(t){null==this._maskFormatter?this._maskFormatter=new a(t):this._maskFormatter.mask=t}validateValue(t){return isNaN(t)||void 0===t?null:t}setError(t){this.errorMessage=t,this._textInput&&(null==t?void 0:t.trim())&&this.ezCancelWaitingChange.emit()}getViewValue(){return this._viewValue}prepareValue(t){try{this._viewValue=r.prepareValue(t,this.showSeconds),this._textInput&&this._textInput.value!==this._viewValue&&(this._textInput.value=this._viewValue)}catch(t){this.setError(t.message)}}async setFocus({selectText:t}){this._textInput.setFocus({selectText:t})}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}handleBlur(){if(this._textInput){this._viewValue=this._textInput.value,this.prepareValue(this._viewValue);const t=n.stringToNumber(this._viewValue.replace(/\D/g,""));this.value=["string","number"].includes(typeof t)?t:null}}handleInput(){const t=this._textInput.value;["string","number"].includes(typeof t)&&n.stringToNumber(t.replace(/\D/g,""))!==this.value&&this.ezStartChange.emit({waitmessage:"",blocking:!1})}async componentWillLoad(){this.i18n=await u(),this.observeShowSeconds(),this.value?this.prepareValue(this.value.toString()):this._viewValue&&this.prepareValue(this._viewValue)}componentDidLoad(){l.applyVarsTextInput(this._elem,this._textInput),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){o.addIDInfoIfNotExists(this._elem,"input");const t={class:"time__input","data-element-id":o.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",value:this._viewValue,enabled:this.enabled,label:this.label,mask:this.showSeconds?"##:##:##":"##:##",onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),errorMessage:this.errorMessage,mode:this.mode,size:this.size,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder,required:this.required,onEzChange:t=>t.stopPropagation()};return i(e,null,i("ez-classic-input",Object.assign({},t,{leftIconName:"timer-outline"})))}static get assetsDirs(){return["../assets"]}get _elem(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],showSeconds:["observeShowSeconds"],value:["observeValue"]}}};c.style=":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";export{c as ez_classic_time_input}
1
+ import{r as t,c as s,h as i,H as e,g as h}from"./p-23a36bb6.js";import{TimeFormatter as r,MaskFormatter as a,NumberUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as l}from"./p-ec7db713.js";import{i as u}from"./p-3b7d9f30.js";const c=class{constructor(i){t(this,i),this.ezChange=s(this,"ezChange",7),this.ezStartChange=s(this,"ezStartChange",7),this.ezCancelWaitingChange=s(this,"ezCancelWaitingChange",7),this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.showSeconds=!1,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||(this.prepareValue(this._viewValue),(this._textInput.value||"")!==this._viewValue&&(this._textInput.value=this._viewValue)))}observeShowSeconds(){this.prepareMask(this.showSeconds?"##:##:##":"##:##")}observeValue(t,s){if(this._textInput&&t!=s){let i=this.validateValue(t);i!=this.validateValue(s)&&(this._viewValue=null==i?"":i.toString(),this.prepareValue(this._viewValue),this._viewValue&&!r.validateTime(this._viewValue,this.showSeconds)?(this.setError(this.i18n("ez-classic-time-input.invalidTime")),i=void 0):this.setError(""),this.ezChange.emit(null===i?void 0:i))}}prepareMask(t){null==this._maskFormatter?this._maskFormatter=new a(t):this._maskFormatter.mask=t}validateValue(t){return isNaN(t)||void 0===t?null:t}setError(t){this.errorMessage=t,this._textInput&&(null==t?void 0:t.trim())&&this.ezCancelWaitingChange.emit()}getViewValue(){return this._viewValue}prepareValue(t){try{this._viewValue=r.prepareValue(t,this.showSeconds),this._textInput&&this._textInput.value!==this._viewValue&&(this._textInput.value=this._viewValue)}catch(t){this.setError(t.message)}}async setFocus({selectText:t}){this._textInput.setFocus({selectText:t})}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}handleBlur(){if(this._textInput){this._viewValue=this._textInput.value,this.prepareValue(this._viewValue);const t=n.stringToNumber(this._viewValue.replace(/\D/g,""));this.value=["string","number"].includes(typeof t)?t:null}}handleInput(){const t=this._textInput.value;["string","number"].includes(typeof t)&&n.stringToNumber(t.replace(/\D/g,""))!==this.value&&this.ezStartChange.emit({waitmessage:"",blocking:!1})}async componentWillLoad(){this.i18n=await u(),this.observeShowSeconds(),this.value?this.prepareValue(this.value.toString()):this._viewValue&&this.prepareValue(this._viewValue)}componentDidLoad(){l.applyVarsTextInput(this._elem,this._textInput),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){o.addIDInfoIfNotExists(this._elem,"input");const t={class:"time__input","data-element-id":o.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",value:this._viewValue,enabled:this.enabled,label:this.label,mask:this.showSeconds?"##:##:##":"##:##",onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),errorMessage:this.errorMessage,mode:this.mode,size:this.size,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder,required:this.required,onEzChange:t=>t.stopPropagation()};return i(e,null,i("ez-classic-input",Object.assign({},t,{leftIconName:"timer-outline"})))}static get assetsDirs(){return["../assets"]}get _elem(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],showSeconds:["observeShowSeconds"],value:["observeValue"]}}};c.style=":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";export{c as ez_classic_time_input}
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,c as o,h as i,H as e,g as s}from"./p-23a36bb6.js";import{FloatingManager as r}from"@sankhyalabs/core";const h=class{constructor(i){t(this,i),this.ezVisibilityChange=o(this,"ezVisibilityChange",7),this._firstRender=!0,this.innerClickTest=(t,o,i)=>{const e=[t];this.innerElement&&("string"==typeof this.innerElement?e.push(document.querySelector(`#${this.innerElement}`)):this.innerElement.forEach((t=>{e.push(document.querySelector(`#${t}`))})));const s=(null==i?void 0:i.composedPath())||[];for(var r=0;r<e.length;r++){let t=e[r];if(null!=t){if(s.includes(t))return!0;if(t.contains(o))return!0;if(i&&"nodeType"in(null==i?void 0:i.target)&&t.contains(i.target))return!0;if(t.shadowRoot&&t.shadowRoot.contains(o))return!0;if(t=this._host,t.lastElementChild.shadowRoot?t.lastElementChild.shadowRoot.contains(o):t.contains(o))return!0}}return!1},this.backClickListener=()=>{this.ezVisibilityChange.emit(!1)},this.autoClose=!0,this.boxWidth="fit-content",this.opened=void 0,this.innerElement=void 0,this.overlayType="light"}observeOpened(t,o){t!=o&&(o?this.hide():this.show(),this.ezVisibilityChange.emit(t))}async updatePosition(t,o){r.updateFloatPosition(this._box,this._container,{autoClose:this.autoClose,top:t,left:o,innerClickTest:this.innerClickTest,backClickListener:this.backClickListener})}async show(t,o){this.float({top:t,left:o})}async showAbove(t){this.float(Object.assign({},t||{}))}async showUnder(t,o){t&&this._host?this.float(this.calculatePosition(t,Object.assign({verticalGap:0,horizontalGap:0,fromRight:!1},o))):this.show((null==o?void 0:o.verticalGap)?`${o.verticalGap}px`:void 0,(null==o?void 0:o.horizontalGap)?`${o.horizontalGap}px`:void 0)}calculatePosition(t,o){const i=this._host.getBoundingClientRect(),e=t.getBoundingClientRect(),s=`${(o.fromRight?i.right-e.right:e.x-i.x)+o.horizontalGap}px`;return{top:`${e.bottom-i.y+o.verticalGap}px`,left:o.fromRight?"":s,right:o.fromRight?s:""}}float(t){this._box.style.top="",this._box.style.left="",this._box.style.right="",this._box.style.bottom="";const o="none"!==this.overlayType,i=`ez-scrim ez-scrim--${this.overlayType}`;let e=Object.assign(Object.assign({},t),{autoClose:this.autoClose,innerClickTest:this.innerClickTest,backClickListener:this.backClickListener});o&&(e=Object.assign(Object.assign({},e),{autoClose:!0,useOverlay:o,overlayClassName:i})),this._floatingID=r.float(this._box,this._container,e),this.opened=!0}async hide(){void 0!==this._floatingID&&(r.close(this._floatingID),this._floatingID=void 0,this.opened=!1)}componentDidRender(){this._firstRender&&(this._box.remove(),this._firstRender=!1)}render(){return i(e,null,i("section",{ref:t=>this._container=t},i("div",{class:"popover__box "+("fit-content"===this.boxWidth?"popover__box--fit-content":"popover__box--full-width"),ref:t=>this._box=t},i("slot",null))))}get _host(){return s(this)}static get watchers(){return{opened:["observeOpened"]}}};h.style=":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--most-visible, 3);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";export{h as ez_popover}
Binary file
@@ -1 +1 @@
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-24582dd6.js";import{C as c}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-69344c23.js";import"./p-5895e687.js";import"./p-47e4a8ce.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-320c401f.js";import{C as c}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-3b7d9f30.js";import"./p-5895e687.js";import"./p-47e4a8ce.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 +1 @@
1
- import{r as a,c as e,f as r,h as t,g as l}from"./p-23a36bb6.js";import{FloatingManager as i}from"@sankhyalabs/core";import{i as s}from"./p-69344c23.js";const n=class{constructor(r){a(this,r),this.ezChange=e(this,"ezChange",7),this._firstRender=!0,this._hoursLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],this._minutosLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],this.value=new Date,this.floating=!1,this.time=!1,this.showSeconds=!1}async show(a,e,r,t){this.floating&&(this._floatingID=i.float(this._box,this._container,{isFixed:this.isFixed(),autoClose:!0,top:a,left:e,bottom:r,right:t}),this.isFixed()||(window.requestAnimationFrame((()=>{this._box.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.scroll()))}async fitVertical(a,e){const r=this._container.getBoundingClientRect().bottom+this._calendarHeight;(window.innerHeight||document.documentElement.clientHeight)>r?this.show(a+"px",void 0,"unset"):this.show("unset",void 0,e+"px")}async fitHorizontal(a){const e=this._container.getBoundingClientRect().right+this._calendarWidth;(window.innerWidth||document.documentElement.clientWidth)>e||this.show(void 0,"unset",void 0,a+"px")}async hide(){void 0!==this._floatingID&&(i.close(this._floatingID),this._floatingID=void 0)}observeValue(){this.value&&(this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1))}scrollListener(){this.floating&&this.isFixed()&&this.hide()}isFixed(){return"true"===this._hostElem.dataset.isFixed}getMonthLabel(){return this.i18n(`ez-calendar.month.${this._currentPosition.getMonth()}`)+" "+this._currentPosition.getFullYear()}isSelectedDate(a){return!!this.value&&this.value.getDate()==a.getDate()&&this.value.getMonth()==a.getMonth()&&this.value.getFullYear()==a.getFullYear()}changeMonth(a){this._currentPosition.setMonth(this._currentPosition.getMonth()+a),r(this)}selectDate(a){let e=a;this.value&&(this.time||this.showSeconds)&&(e.setHours(this.value.getHours()),e.setMinutes(this.value.getMinutes()),e.setSeconds(this.showSeconds?this.value.getSeconds():0)),this.value=e,this.ezChange.emit(this.value)}selectHours(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),a,this.value.getMinutes(),this.value.getSeconds()),this.ezChange.emit(this.value)}selectMinutes(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),a,this.value.getSeconds()),this.ezChange.emit(this.value)}selectSeconds(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),this.value.getMinutes(),a),this.ezChange.emit(this.value)}updateScroll(a){if(a){const{scrollHeight:e,clientHeight:r,scrollTop:t}=a;e-r-Math.ceil(t)>0?a.classList.add("endHidden"):a.classList.remove("endHidden")}}async componentWillLoad(){this.i18n=await s()}componentDidRender(){this.floating&&this._firstRender&&(this._calendarHeight=this._box.clientHeight,this._calendarWidth=this._box.clientWidth,this._box.remove(),this._firstRender=!1),this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.updateScroll(this._secondsScroll)}componentDidLoad(){this.scroll()}scroll(){(this.time||this.showSeconds)&&(this._hoursScroll.scrollTop=this._hoursSelect.offsetTop-64,this._minutesScroll.scrollTop=this._minutesSelect.offsetTop-64,this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.showSeconds&&(this._secondsScroll.scrollTop=this._secondsSelect.offsetTop-64,this.updateScroll(this._secondsScroll)))}render(){null==this._currentPosition&&(this._currentPosition=new Date,this.value&&this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1));const a=new Date;return a.setTime(this._currentPosition.getTime()),a.setDate(1-a.getDay()),t("section",{ref:a=>this._container=a},t("div",{ref:a=>this._box=a,class:"calendar__container"},t("div",{class:"calendar"},t("div",{class:"calendar__header"},t("button",{class:"calendar__btn-previous",onClick:()=>this.changeMonth(-1)}),t("label",{class:"calendar__lbl-month"},this.getMonthLabel()),t("button",{class:"calendar__btn-next",onClick:()=>this.changeMonth(1)})),t("div",{class:"calendar__body"},t("div",{class:"calendar__line"},[...Array(7).keys()].map((a=>t("div",{"data-day":this.i18n(`ez-calendar.weekDay.${a}`),class:"calendar__cell calendar__cell--unselectable"},this.i18n(`ez-calendar.weekDay.${a}`))))),[0,7,14,21,28,35].map((e=>t("div",{class:"calendar__line"},[0,1,2,3,4,5,6].map((r=>{const l=new Date;l.setTime(a.getTime()),l.setDate(l.getDate()+e+r);let i=`${l.getMonth()+1}-${l.getDate()}-${l.getFullYear()}`,s="calendar__cell";return this._currentPosition.getMonth()!=l.getMonth()?s+=" calendar__cell--secondary":this.isSelectedDate(l)&&(s+=" calendar__cell--selected"),t("div",{"data-day-month":i,class:s,onClick:()=>this.selectDate(l)},l.getDate())})))))),t("div",{class:"calendar__footer"},t("button",{class:"calendar__btn-today",onClick:()=>this.selectDate(new Date)},this.i18n("ez-calendar.today")))),(this.time||this.showSeconds)&&t("div",{class:"calendar-time"},t("div",{class:"calendar-time__header"},t("div",null,"H"),t("div",{class:"separatorTime"},":"),t("div",null,"M"),this.showSeconds&&t("div",{class:"separatorTime"},":"),this.showSeconds&&t("div",null,"S")),t("div",{class:"calendar__body ",style:{display:"flex",paddingLeft:"12px",paddingRight:"12px"}},t("div",{class:"calendar__column",ref:a=>this._hoursScroll=a,onScroll:()=>this.updateScroll(this._hoursScroll)},this._hoursLabel.map(((a,e)=>e===this.value.getHours()?t("div",{style:{display:"flex"},ref:a=>this._hoursSelect=a},t("div",{"data-hour":a,class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectHours(e)},a),t("div",{class:"separatorTime"},":")):t("div",{style:{display:"flex"}},t("div",{"data-hour":a,class:"calendar__cell",onClick:()=>this.selectHours(e)},a),t("div",{class:"separatorTime"},":"))))),t("div",{class:"calendar__column",ref:a=>this._minutesScroll=a,onScroll:()=>this.updateScroll(this._minutesScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getMinutes()?t("div",{style:{display:"flex"},ref:a=>this._minutesSelect=a},t("div",{"data-minute":a,class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&t("div",{class:"separatorTime"},":")):t("div",{style:{display:"flex"}},t("div",{"data-minute":a,class:"calendar__cell",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&t("div",{class:"separatorTime"},":"))))),this.showSeconds&&t("div",{class:"calendar__column",ref:a=>this._secondsScroll=a,onScroll:()=>this.updateScroll(this._secondsScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getSeconds()?t("div",{"data-second":a,class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectSeconds(e),ref:a=>this._secondsSelect=a},a):t("div",{"data-second":a,class:"calendar__cell",onClick:()=>this.selectSeconds(e)},a))))))))}get _hostElem(){return l(this)}static get watchers(){return{value:["observeValue"]}}};n.style=':host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>\');--ez-calendar__nav-btn--next-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>\');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:\'\';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}';export{n as ez_calendar}
1
+ import{r as a,c as e,f as r,h as t,g as l}from"./p-23a36bb6.js";import{FloatingManager as i}from"@sankhyalabs/core";import{i as s}from"./p-3b7d9f30.js";const n=class{constructor(r){a(this,r),this.ezChange=e(this,"ezChange",7),this._firstRender=!0,this._hoursLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],this._minutosLabel=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],this.value=new Date,this.floating=!1,this.time=!1,this.showSeconds=!1}async show(a,e,r,t){this.floating&&(this._floatingID=i.float(this._box,this._container,{isFixed:this.isFixed(),autoClose:!0,top:a,left:e,bottom:r,right:t}),this.isFixed()||(window.requestAnimationFrame((()=>{this._box.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.scroll()))}async fitVertical(a,e){const r=this._container.getBoundingClientRect().bottom+this._calendarHeight;(window.innerHeight||document.documentElement.clientHeight)>r?this.show(a+"px",void 0,"unset"):this.show("unset",void 0,e+"px")}async fitHorizontal(a){const e=this._container.getBoundingClientRect().right+this._calendarWidth;(window.innerWidth||document.documentElement.clientWidth)>e||this.show(void 0,"unset",void 0,a+"px")}async hide(){void 0!==this._floatingID&&(i.close(this._floatingID),this._floatingID=void 0)}observeValue(){this.value&&(this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1))}scrollListener(){this.floating&&this.isFixed()&&this.hide()}isFixed(){return"true"===this._hostElem.dataset.isFixed}getMonthLabel(){return this.i18n(`ez-calendar.month.${this._currentPosition.getMonth()}`)+" "+this._currentPosition.getFullYear()}isSelectedDate(a){return!!this.value&&this.value.getDate()==a.getDate()&&this.value.getMonth()==a.getMonth()&&this.value.getFullYear()==a.getFullYear()}changeMonth(a){this._currentPosition.setMonth(this._currentPosition.getMonth()+a),r(this)}selectDate(a){let e=a;this.value&&(this.time||this.showSeconds)&&(e.setHours(this.value.getHours()),e.setMinutes(this.value.getMinutes()),e.setSeconds(this.showSeconds?this.value.getSeconds():0)),this.value=e,this.ezChange.emit(this.value)}selectHours(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),a,this.value.getMinutes(),this.value.getSeconds()),this.ezChange.emit(this.value)}selectMinutes(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),a,this.value.getSeconds()),this.ezChange.emit(this.value)}selectSeconds(a){this.value||(this.value=new Date),this.value=new Date(this.value.getFullYear(),this.value.getMonth(),this.value.getDate(),this.value.getHours(),this.value.getMinutes(),a),this.ezChange.emit(this.value)}updateScroll(a){if(a){const{scrollHeight:e,clientHeight:r,scrollTop:t}=a;e-r-Math.ceil(t)>0?a.classList.add("endHidden"):a.classList.remove("endHidden")}}async componentWillLoad(){this.i18n=await s()}componentDidRender(){this.floating&&this._firstRender&&(this._calendarHeight=this._box.clientHeight,this._calendarWidth=this._box.clientWidth,this._box.remove(),this._firstRender=!1),this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.updateScroll(this._secondsScroll)}componentDidLoad(){this.scroll()}scroll(){(this.time||this.showSeconds)&&(this._hoursScroll.scrollTop=this._hoursSelect.offsetTop-64,this._minutesScroll.scrollTop=this._minutesSelect.offsetTop-64,this.updateScroll(this._hoursScroll),this.updateScroll(this._minutesScroll),this.showSeconds&&(this._secondsScroll.scrollTop=this._secondsSelect.offsetTop-64,this.updateScroll(this._secondsScroll)))}render(){null==this._currentPosition&&(this._currentPosition=new Date,this.value&&this._currentPosition.setTime(this.value.getTime()),this._currentPosition.setDate(1));const a=new Date;return a.setTime(this._currentPosition.getTime()),a.setDate(1-a.getDay()),t("section",{ref:a=>this._container=a},t("div",{ref:a=>this._box=a,class:"calendar__container"},t("div",{class:"calendar"},t("div",{class:"calendar__header"},t("button",{class:"calendar__btn-previous",onClick:()=>this.changeMonth(-1)}),t("label",{class:"calendar__lbl-month"},this.getMonthLabel()),t("button",{class:"calendar__btn-next",onClick:()=>this.changeMonth(1)})),t("div",{class:"calendar__body"},t("div",{class:"calendar__line"},[...Array(7).keys()].map((a=>t("div",{"data-day":this.i18n(`ez-calendar.weekDay.${a}`),class:"calendar__cell calendar__cell--unselectable"},this.i18n(`ez-calendar.weekDay.${a}`))))),[0,7,14,21,28,35].map((e=>t("div",{class:"calendar__line"},[0,1,2,3,4,5,6].map((r=>{const l=new Date;l.setTime(a.getTime()),l.setDate(l.getDate()+e+r);let i=`${l.getMonth()+1}-${l.getDate()}-${l.getFullYear()}`,s="calendar__cell";return this._currentPosition.getMonth()!=l.getMonth()?s+=" calendar__cell--secondary":this.isSelectedDate(l)&&(s+=" calendar__cell--selected"),t("div",{"data-day-month":i,class:s,onClick:()=>this.selectDate(l)},l.getDate())})))))),t("div",{class:"calendar__footer"},t("button",{class:"calendar__btn-today",onClick:()=>this.selectDate(new Date)},this.i18n("ez-calendar.today")))),(this.time||this.showSeconds)&&t("div",{class:"calendar-time"},t("div",{class:"calendar-time__header"},t("div",null,"H"),t("div",{class:"separatorTime"},":"),t("div",null,"M"),this.showSeconds&&t("div",{class:"separatorTime"},":"),this.showSeconds&&t("div",null,"S")),t("div",{class:"calendar__body ",style:{display:"flex",paddingLeft:"12px",paddingRight:"12px"}},t("div",{class:"calendar__column",ref:a=>this._hoursScroll=a,onScroll:()=>this.updateScroll(this._hoursScroll)},this._hoursLabel.map(((a,e)=>e===this.value.getHours()?t("div",{style:{display:"flex"},ref:a=>this._hoursSelect=a},t("div",{"data-hour":a,class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectHours(e)},a),t("div",{class:"separatorTime"},":")):t("div",{style:{display:"flex"}},t("div",{"data-hour":a,class:"calendar__cell",onClick:()=>this.selectHours(e)},a),t("div",{class:"separatorTime"},":"))))),t("div",{class:"calendar__column",ref:a=>this._minutesScroll=a,onScroll:()=>this.updateScroll(this._minutesScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getMinutes()?t("div",{style:{display:"flex"},ref:a=>this._minutesSelect=a},t("div",{"data-minute":a,class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&t("div",{class:"separatorTime"},":")):t("div",{style:{display:"flex"}},t("div",{"data-minute":a,class:"calendar__cell",onClick:()=>this.selectMinutes(e)},a),this.showSeconds&&t("div",{class:"separatorTime"},":"))))),this.showSeconds&&t("div",{class:"calendar__column",ref:a=>this._secondsScroll=a,onScroll:()=>this.updateScroll(this._secondsScroll)},this._minutosLabel.map(((a,e)=>e===this.value.getSeconds()?t("div",{"data-second":a,class:"calendar__cell calendar__cell--selected",onClick:()=>this.selectSeconds(e),ref:a=>this._secondsSelect=a},a):t("div",{"data-second":a,class:"calendar__cell",onClick:()=>this.selectSeconds(e)},a))))))))}get _hostElem(){return l(this)}static get watchers(){return{value:["observeValue"]}}};n.style=':host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>\');--ez-calendar__nav-btn--next-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>\');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:\'\';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}';export{n as ez_calendar}
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{UserInterface as t,Action as i,StringUtils as s,ApplicationContext as e,ObjectUtils as n,WaitingChangeException as a,DataUnitAction as r}from"@sankhyalabs/core";import{A as h}from"./p-320c401f.js";import{g as o}from"./p-3b7d9f30.js";import{h as l}from"./p-23a36bb6.js";const c=(i,s)=>{var e,n;let a,r,{name:h,label:o,group:l}=Object.assign({},s),{readOnly:c,required:d}=Object.assign({},s);return i&&(o=o||i.label,h=h||i.name,d=!!(t=>{var i;return!0===(null==t?void 0:t.required)||"S"===(null===(i=null==t?void 0:t.properties)||void 0===i?void 0:i.systemRequired)})(i)||(null!==(e=null==s?void 0:s.required)&&void 0!==e?e:i.required),c=!!(t=>{var i;return!0===(null==t?void 0:t.readOnly)||"S"===(null===(i=null==t?void 0:t.properties)||void 0===i?void 0:i.systemReadOnly)})(i)||(null!==(n=null==s?void 0:s.readOnly)&&void 0!==n?n:i.readOnly),a=i.properties,r=i.userInterface),{name:h,label:o,group:l,readOnly:c,required:d,props:a,userInterface:r||t.SHORTTEXT}};class d{constructor(t,i,s){this._dataUnit=t,this._validationSource=i,this._validator=s,this._i18n=o()}validate(t=!0){return new Promise(((i,s)=>{const e=this._dataUnit.getModifiedRecords();for(let i=0;i<e.length;i++){const n=e[i],a=[];let r=this.validateRequired(n);if(r&&!r.isValid&&a.push(r),this._validator&&(r=this._validator.validateRecord(n),r&&!r.isValid&&a.push(r)),a.length>0){if(!t&&a[0].invalidFields.length>0){this._validationSource.markAsInvalid(a[0].invalidFields[0],n.__record__id__),s();break}this.processValidationResult(a,n.__record__id__),s();break}}return i()}))}validateRequired(t){const i=this._validationSource.getRequiredFields(),s=[];if(new Set(i).forEach((i=>{const e=t[i];if(null==e||""===e){const e=this._validationSource.getMessageForField(i,t.__record__id__);s.push(e?{name:i,message:e}:{name:i,message:this._i18n("utils.requiredField")})}})),s.length>0)return{isValid:!1,invalidFields:s,infoMessage:this._i18n("utils.requiredFieldMessage")}}processValidationResult(t,i){t.forEach((t=>{const s=t.invalidFields;if(this._dataUnit.savingCanceled(s,i),s&&s.forEach((t=>{this.markAsInvalid(t,i)})),t.infoMessage&&h.info(t.infoMessage),t.errorMessage){const{errorTitle:i,errorMessage:s}=t;h.error(i,s)}}))}markAsInvalid(t,i){this._dataUnit.setInvalidField(t.name,t.message,i),this._validationSource.markAsInvalid(t,i)}}class u{constructor(t){this.onDataUnitEvent=t=>{var s;switch(t.type){case i.MULTIPLE_EDITION_CHANGED:this.clearInvalid(),this.updateAllFieldsValues();break;case i.DATA_LOADED:case i.DATA_SAVED:case i.RECORDS_REMOVED:case i.RECORDS_ADDED:case i.RECORDS_COPIED:case i.EDITION_CANCELED:case i.SELECTION_CHANGED:case i.NEXT_SELECTED:case i.PREVIOUS_SELECTED:this.clearInvalid();case i.DATA_CHANGED:case i.CHANGE_UNDONE:case i.CHANGE_REDONE:case i.RECORD_LOADED:this.updateAllFieldsValues(),this.clearFieldError(Object.keys(t.payload)[0]);break;case i.FIELD_INVALIDATED:null===(s=this._fields)||void 0===s||s.forEach((t=>{this.updateErrorMessage(t.fieldName,t.field)}))}},this._uuid=s.generateUUID(),this._fields=new Map,this._dataUnit=t,this.applyDefaultValues(),this._dataUnit.subscribe(this.onDataUnitEvent),this._dataUnit.addInterceptor(this),this.setContextDataBinder(t)}get dataBinderId(){return this._uuid}setContextDataBinder(t){const i=e.getContextValue("__DATABINDER_BY_DATAUNIT__")||new Map,s=[...i.get(t.dataUnitId)||[],this];i.set(t.dataUnitId,s),e.setContextValue("__DATABINDER_BY_DATAUNIT__",i)}applyDefaultValues(){const t=(this._dataUnit.getAddedRecords()||[]).map((t=>t.__record__id__));if(t.length>0){const i=this.getDefaultValues();i&&Object.keys(i).forEach((s=>{this._dataUnit.setFieldValue(s,i[s],t)}))}}bind(t,i,s,e){t.forEach((t=>{const{fieldName:s,contextName:e}=t.dataset;null!=e&&e!==i||this.updateBind(s,t)})),this._formMetadata=s,this._recordValidatorProcessor=new d(this._dataUnit,{getRequiredFields:()=>this.getFormRequiredFields(),markAsInvalid:t=>this.markInvalid(t),getMessageForField:t=>this.getErrorMessage(t)},e)}getFormRequiredFields(){return this._formMetadata.getRequiredFields()}disconnectDataUnit(){const t=e.getContextValue("__DATABINDER_BY_DATAUNIT__")||new Map,i=t.get(this._dataUnit.dataUnitId).filter((t=>t.dataBinderId!==this.dataBinderId));t.set(this._dataUnit.dataUnitId,i),e.setContextValue("__DATABINDER_BY_DATAUNIT__",t)}onDisconnectedCallback(){this._dataUnit.unsubscribe(this.onDataUnitEvent),this._dataUnit.removeInterceptor(this),this.disconnectDataUnit()}getCurrentRecordId(){const t=this._dataUnit.getSelectedRecord();return null==t?void 0:t.__record__id__}markInvalid(t){if(this._fields.has(t.name)){const i=this._fields.get(t.name).field;this.updateErrorMessage(t.name,i,t.message)}}setFocus(t){if(!this._fields.has(t))return;const i=this._fields.get(t).field;"function"==typeof i.setFocus&&i.setFocus()}clearInvalid(t){this._dataUnit.clearInvalid(t),this._fields.forEach((t=>{t.field.errorMessage=""}))}clearFieldError(t){var i;const s=null===(i=this._fields.get(t))||void 0===i?void 0:i.field;s&&s.errorMessage&&(s.errorMessage="",this._dataUnit.clearInvalid(this.getCurrentRecordId(),t))}updateFieldValue(t,i){const s=this._fields.get(t);try{s&&(s.listen=!1),this._dataUnit.isMultipleEdition&&this.hasMultipleValuesBetweenRecords(t)?(i.value=void 0,i.alternativePlaceholder="Múltiplos Valores"):(i.value=this._dataUnit.getFieldValue(t),i.alternativePlaceholder=void 0),this.updateErrorMessage(t,i)}finally{s&&(s.listen=!0)}}hasMultipleValuesBetweenRecords(t){var i,s;const e=null!==(s=null===(i=this._dataUnit.getSelectionInfo())||void 0===i?void 0:i.records)&&void 0!==s?s:[];if(e.length<=1)return!1;const a=e[0][t];return!e.every((i=>n.equals(i[t],a)))}validate(){return this._recordValidatorProcessor.validate()}static async validateByDataunit(t){try{const i=this.getDataBindersByDataUnit(t);return await Promise.all(i.map((t=>t.validate()))),!0}catch(t){return!1}}static getDataBindersByDataUnit(t){const i=e.getContextValue("__DATABINDER_BY_DATAUNIT__");return(null==i?void 0:i.get(t.dataUnitId))||[]}updateErrorMessage(t,i,s){null==s&&(s=this._dataUnit.getInvalidMessage(this.getCurrentRecordId(),t)),i.errorMessage||(i.errorMessage=s)}getErrorMessage(t){if(this._fields.has(t))return this._fields.get(t).field.errorMessage}updateBind(t,i){const s=this._fields.get(t);s&&s.destroy(),this.bindSearchOptionsLoader(t,i),this.updateFieldValue(t,i),this.updateErrorMessage(t,i),this._fields.set(t,_.create(t,i,((t,i)=>this.changeStarted(t,i)),(t=>this.cancelWaitingChange(t)),((t,i)=>this.setFieldValue(t,i)))),this.applyEzUploadContext(t,i)}changeStarted(t,i){if(0===this._dataUnit.records.length&&this._dataUnit.addRecord(),!i.blocking&&null==i.promise){const s=this._fields.get(t);s&&(i.promise=new Promise(((t,i)=>{s.waitingChangePromiseResolve=t,s.waitingChangePromiseReject=i})))}this._dataUnit.startChange(t,i)}cancelWaitingChange(t){if(this._dataUnit.waitingForChange(t)){this._dataUnit.cancelWaitingChange(t);const i=this._fields.get(t);i&&i.rejectWaitingChange(new a("Change canceled",t))}}setFieldValue(t,i){if(0===this._dataUnit.records.length&&this._dataUnit.addRecord(),this._dataUnit.clearInvalid(this.getCurrentRecordId(),t),this._dataUnit.isMultipleEdition){const s=this._dataUnit.getSelectionInfo();this._dataUnit.setFieldValue(t,i,s.recordIds)}else{const s=this._dataUnit.getSelectedRecord();this._dataUnit.setFieldValue(t,i,s?[s.__record__id__]:void 0)}if(this._dataUnit.waitingForChange(t)){const i=this._fields.get(t);i&&i.acceptWaitingChange()}}bindSearchOptionsLoader(t,i){if(("EZ-SEARCH"===i.nodeName||"EZ-CLASSIC-SEARCH"===i.nodeName||"EZ-SEARCH-PLUS"===i.nodeName||"EZ-CLASSIC-SEARCH-PLUS"===i.nodeName)&&null==i.optionLoader){const s=e.getContextValue("EZ-SEARCH-PLUS"===i.nodeName||"EZ-CLASSIC-SEARCH-PLUS"===i.nodeName?"__EZUI__SEARCH__PLUS__OPTION__LOADER__":"__EZUI__SEARCH__OPTION__LOADER__");s&&(i.optionLoader=(i,e)=>s(i,t,this._dataUnit,e))}}applyEzUploadContext(t,i){var s,n;if("EZ-UPLOAD"===i.nodeName){i.urlUpload=e.getContextValue("__EZUI__UPLOAD__ADD__URL__"),i.urlDelete=e.getContextValue("__EZUI__UPLOAD__DEL__URL__");const a=this._dataUnit.getField(t),r=null===(s=a.properties)||void 0===s?void 0:s.DESTINATION;r&&(i.requestHeaders={XTRAINF:`{"destination": "${r}"}`}),i.maxFiles=(null===(n=a.properties)||void 0===n?void 0:n.MAX_FILES)||0}}updateAllFieldsValues(){var t;null===(t=this._fields)||void 0===t||t.forEach((t=>{this.updateFieldValue(t.fieldName,t.field)}))}interceptAction(t){if(t.type===i.RECORDS_COPIED){const s=this._formMetadata.getCleanOnCopyFields();if(s)return new r(i.RECORDS_COPIED,t.payload.map((t=>{const i=Object.assign({},t);return s.forEach((t=>delete i[t])),i})))}if(t.type===i.SAVING_DATA)return new Promise((i=>{this.validate().then((()=>i(t))).catch((()=>{}))}));if(t.type===i.RECORDS_ADDED){const s=this.getDefaultValues();if(s)return new r(i.RECORDS_ADDED,t.payload.map((t=>Object.assign(Object.assign({},t),s))))}return t}getDefaultValues(){var t;const i=null===(t=this._formMetadata)||void 0===t?void 0:t.getDefaultValues();if(i){const t={};for(const s in i)t[s]=this._dataUnit.valueFromString(s,i[s]);return t}}}class _{constructor(){this.listen=!0,this.startChangeEventName="ezStartChange",this.cancelWaitingChangeEventName="ezCancelWaitingChange",this.changeEventName="ezChange"}destroy(){this.field.removeEventListener(this.startChangeEventName,this.startChangeListener),this.field.removeEventListener(this.cancelWaitingChangeEventName,this.cancelWaitingChangeListener),this.field.removeEventListener(this.changeEventName,this.changeListener)}acceptWaitingChange(){this.waitingChangePromiseResolve&&(this.waitingChangePromiseResolve(),this.waitingChangePromiseReject=void 0,this.waitingChangePromiseResolve=void 0)}rejectWaitingChange(t){this.waitingChangePromiseReject&&(this.waitingChangePromiseReject(t),this.waitingChangePromiseReject=void 0,this.waitingChangePromiseResolve=void 0)}static create(t,i,s,e,n){const a=new _;return a.field=i,a.fieldName=t,a.startChangeListener=i=>{a.listen&&s(t,i.detail)},a.field.addEventListener(a.startChangeEventName,a.startChangeListener),a.cancelWaitingChangeListener=()=>{a.listen&&e(t)},a.field.addEventListener(a.cancelWaitingChangeEventName,a.cancelWaitingChangeListener),a.changeListener=i=>{a.listen&&n(t,i.detail)},a.field.addEventListener(a.changeEventName,a.changeListener),a}}const v="ctrl+f",A=240,f=(t,i,s)=>l("ez-search",{class:"ez-padding--medium",style:{"--ez-search--min-width":"240px"},canShowError:!1,showSelectedValue:!1,showOptionValue:!1,suppressEmptyOption:!0,label:t.label,value:null,optionLoader:i,onEzChange:i=>{window.dispatchEvent(new CustomEvent("ezCloseSplitButtonDropdown",{detail:{action:t,value:i.detail}})),requestAnimationFrame((()=>{s(i.detail)}))},ignoreLimitCharsToSearch:!0}),p=async t=>{requestAnimationFrame((async()=>{if(t){const i=t.t;if(!i)return;i.value=null,await i.setFocus()}}))};export{u as D,d as R,v as S,f as a,c as b,A as c,p as f}
Binary file
@@ -1 +1 @@
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-69344c23.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-3b7d9f30.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
Binary file
@@ -1 +1 @@
1
- import{r as e,c as i,h as a,H as t,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as s}from"@sankhyalabs/core";import{E as n}from"./p-98bb8b16.js";import{i as o}from"./p-69344c23.js";const d=class{constructor(a){e(this,a),this.ezSelectionChange=i(this,"ezSelectionChange",7),this.open=!0,this.selectedId=void 0,this.items=[],this.tooltipResolver=void 0,this.filterText=""}async disableItem(e){[].concat(e).forEach((e=>this._tree.disableItem(e)))}async openGuideNavidator(){this.open=!0}async enableItem(e){[].concat(e).forEach((e=>this._tree.enableItem(e)))}async updateItem(e){[].concat(e).forEach((e=>this._tree.updateItem(e)))}async getItem(e){return this._tree.getItem(e)}async getCurrentPath(){var e;return null===(e=this._tree)||void 0===e?void 0:e.getCurrentPath()}async selectGuide(e){null!=this._tree&&null!=e&&(this._tree.selectItem(e),this.getCurrentPath().then((e=>{null==e||e.forEach((e=>{this._tree.openItem(e.id)}))})))}async getParent(e){return this._tree.getParent(e)}async componentWillLoad(){this.i18n=await o()}async handleToggleSidebar(){this.open=!this.open}handleFilterTree(e){"Enter"===e.key&&this._tree.applyFilter(this.filterText)}onFilterChanged(e){this.filterText=e.detail,e.stopPropagation()}render(){return s.addIDInfoIfNotExists(this._element),a(t,null,a("ez-sidebar-button",{class:this.open?"hidden":"",onEzClick:this.handleToggleSidebar.bind(this),"aria-controls":"navigator","aria-expanded":this.open,"data-element-id":s.getInternalIDInfo("openButton")}),a("aside",{tabIndex:-1,id:"navigator",class:"ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator "+(this.open?"":"hidden"),"data-element-id":s.getInternalIDInfo("sidebar")},a("div",{role:"search",class:"ez-guide-navigator__actions"},a("ez-filter-input",{mode:"slim",value:this.filterText,onEzChange:e=>this.onFilterChanged(e),label:this.i18n("ez-guide-navigator.searchGuide"),"aria-placeholder":this.i18n("ez-guide-navigator.searchGuide"),onKeyUp:this.handleFilterTree.bind(this),"data-element-id":s.getInternalIDInfo("textinput")}),a("ez-button",{onClick:this.handleToggleSidebar.bind(this),class:"inverted",mode:"icon",size:"small",iconName:"show_menu",title:this.i18n("ez-guide-navigator.hideMenu"),"aria-label":this.i18n("ez-guide-navigator.hideMenu"),"aria-controls":"navigator","data-element-id":s.getInternalIDInfo("closeButton")})),a("ez-scroller",{direction:n.VERTICAL,activeShadow:!0},a("ez-tree",{ref:e=>this._tree=e,items:this.items,"data-element-id":s.getInternalIDInfo("tree"),tooltipResolver:this.tooltipResolver,onEzChange:e=>this.ezSelectionChange.emit(e.detail),selectedId:this.selectedId}))))}get _element(){return r(this)}};d.style=":host{--ez-guide-navigator--padding-left:var(--space--large);--ez-guide-navigator--padding-right:var(--space--small);--ez-guide-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-guide-navigator--background-color:var(--color--inverted);--ez-guide-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-guide-navigator--actions-gap:var(--space--medium);--ez-guide-navigator--actions-margin:var(--space--large) 0 var(--space--medium);--ez-guide-navigator--actions-padding-right:calc(var(--space--medium, 12px) + var(--space--small, 6px))}.inverted{transform:rotate(180deg)}.ez-guide-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;padding-left:var(--ez-guide-navigator--padding-left);padding-right:var(--ez-guide-navigator--padding-right);background-color:var(--ez-guide-navigator--background-color);-webkit-box-shadow:var(--ez-guide-navigator--box-shadow);box-shadow:var(--ez-guide-navigator--box-shadow);border-radius:var(--ez-guide-navigator--border-radius)}.ez-guide-navigator__actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-guide-navigator--actions-gap);margin:var(--ez-guide-navigator--actions-margin);padding-right:var(--ez-guide-navigator--actions-padding-right)}.hidden{display:none}";export{d as ez_guide_navigator}
1
+ import{r as e,c as i,h as a,H as t,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as s}from"@sankhyalabs/core";import{E as n}from"./p-98bb8b16.js";import{i as o}from"./p-3b7d9f30.js";const d=class{constructor(a){e(this,a),this.ezSelectionChange=i(this,"ezSelectionChange",7),this.open=!0,this.selectedId=void 0,this.items=[],this.tooltipResolver=void 0,this.filterText=""}async disableItem(e){[].concat(e).forEach((e=>this._tree.disableItem(e)))}async openGuideNavidator(){this.open=!0}async enableItem(e){[].concat(e).forEach((e=>this._tree.enableItem(e)))}async updateItem(e){[].concat(e).forEach((e=>this._tree.updateItem(e)))}async getItem(e){return this._tree.getItem(e)}async getCurrentPath(){var e;return null===(e=this._tree)||void 0===e?void 0:e.getCurrentPath()}async selectGuide(e){null!=this._tree&&null!=e&&(this._tree.selectItem(e),this.getCurrentPath().then((e=>{null==e||e.forEach((e=>{this._tree.openItem(e.id)}))})))}async getParent(e){return this._tree.getParent(e)}async componentWillLoad(){this.i18n=await o()}async handleToggleSidebar(){this.open=!this.open}handleFilterTree(e){"Enter"===e.key&&this._tree.applyFilter(this.filterText)}onFilterChanged(e){this.filterText=e.detail,e.stopPropagation()}render(){return s.addIDInfoIfNotExists(this._element),a(t,null,a("ez-sidebar-button",{class:this.open?"hidden":"",onEzClick:this.handleToggleSidebar.bind(this),"aria-controls":"navigator","aria-expanded":this.open,"data-element-id":s.getInternalIDInfo("openButton")}),a("aside",{tabIndex:-1,id:"navigator",class:"ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator "+(this.open?"":"hidden"),"data-element-id":s.getInternalIDInfo("sidebar")},a("div",{role:"search",class:"ez-guide-navigator__actions"},a("ez-filter-input",{mode:"slim",value:this.filterText,onEzChange:e=>this.onFilterChanged(e),label:this.i18n("ez-guide-navigator.searchGuide"),"aria-placeholder":this.i18n("ez-guide-navigator.searchGuide"),onKeyUp:this.handleFilterTree.bind(this),"data-element-id":s.getInternalIDInfo("textinput")}),a("ez-button",{onClick:this.handleToggleSidebar.bind(this),class:"inverted",mode:"icon",size:"small",iconName:"show_menu",title:this.i18n("ez-guide-navigator.hideMenu"),"aria-label":this.i18n("ez-guide-navigator.hideMenu"),"aria-controls":"navigator","data-element-id":s.getInternalIDInfo("closeButton")})),a("ez-scroller",{direction:n.VERTICAL,activeShadow:!0},a("ez-tree",{ref:e=>this._tree=e,items:this.items,"data-element-id":s.getInternalIDInfo("tree"),tooltipResolver:this.tooltipResolver,onEzChange:e=>this.ezSelectionChange.emit(e.detail),selectedId:this.selectedId}))))}get _element(){return r(this)}};d.style=":host{--ez-guide-navigator--padding-left:var(--space--large);--ez-guide-navigator--padding-right:var(--space--small);--ez-guide-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-guide-navigator--background-color:var(--color--inverted);--ez-guide-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-guide-navigator--actions-gap:var(--space--medium);--ez-guide-navigator--actions-margin:var(--space--large) 0 var(--space--medium);--ez-guide-navigator--actions-padding-right:calc(var(--space--medium, 12px) + var(--space--small, 6px))}.inverted{transform:rotate(180deg)}.ez-guide-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;padding-left:var(--ez-guide-navigator--padding-left);padding-right:var(--ez-guide-navigator--padding-right);background-color:var(--ez-guide-navigator--background-color);-webkit-box-shadow:var(--ez-guide-navigator--box-shadow);box-shadow:var(--ez-guide-navigator--box-shadow);border-radius:var(--ez-guide-navigator--border-radius)}.ez-guide-navigator__actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-guide-navigator--actions-gap);margin:var(--ez-guide-navigator--actions-margin);padding-right:var(--ez-guide-navigator--actions-padding-right)}.hidden{display:none}";export{d as ez_guide_navigator}
Binary file