@sankhyalabs/ezui 7.3.2 → 7.3.3

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 (949) hide show
  1. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  2. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  3. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  4. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  5. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  6. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  7. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  8. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  9. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  10. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  11. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  12. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  14. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  16. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/ez-card-item_5.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  36. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  38. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  40. package/dist/cjs/ez-classic-input.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  42. package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  44. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  46. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js +3 -3
  47. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  50. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  52. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  56. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  58. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  59. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  61. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  63. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  65. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/ez-form-view.cjs.entry.js +2 -2
  67. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  69. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  70. package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
  71. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/ez-grid.cjs.entry.js +25 -3
  73. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  75. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  77. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  79. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
  81. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  83. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  84. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  85. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  87. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  88. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  89. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  90. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  91. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  93. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  94. package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
  95. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  96. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  97. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  99. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  100. package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
  101. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  103. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  104. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
  105. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  106. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  107. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  108. package/dist/cjs/ez-search-plus.cjs.entry.js +1 -1
  109. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  111. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  113. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  115. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  117. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
  119. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  121. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  123. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  124. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  125. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  127. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  128. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  129. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/ez-tag-input.cjs.entry.js +1 -1
  131. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  132. package/dist/cjs/ez-tag.cjs.entry.js +1 -1
  133. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  135. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  137. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  138. package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
  139. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/ez-tile.cjs.entry.js +1 -1
  141. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  143. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  144. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  145. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  146. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  147. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  148. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  149. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  150. package/dist/cjs/ez-underface.cjs.entry.js +1 -1
  151. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  152. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  153. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  154. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  155. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  156. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  157. package/dist/cjs/ezui.cjs.js +1 -1
  158. package/dist/cjs/ezui.cjs.js.gz +0 -0
  159. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  160. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  161. package/dist/cjs/floating-ui.dom.esm-f1e4e440.js.gz +0 -0
  162. package/dist/cjs/index-1be40f19.js.gz +0 -0
  163. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +0 -3
  164. package/dist/cjs/{index-9e5554cb.js.gz → index-a7b0c73d.js.gz} +0 -0
  165. package/dist/cjs/index.cjs.js.gz +0 -0
  166. package/dist/cjs/loader.cjs.js +1 -1
  167. package/dist/cjs/loader.cjs.js.gz +0 -0
  168. package/dist/cjs/{purify-417f092d.js → purify-06a8724d.js} +96 -33
  169. package/dist/cjs/purify-06a8724d.js.gz +0 -0
  170. package/dist/cjs/{search-column-3031a7dd.js → search-column-316e2c59.js} +1 -1
  171. package/dist/cjs/search-column-316e2c59.js.gz +0 -0
  172. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  173. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  174. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  175. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  176. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  177. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  178. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  179. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  180. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  181. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  182. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  183. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  184. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  185. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  186. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  187. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  188. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  189. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  190. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  191. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  192. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  193. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  194. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  195. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  196. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  197. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  198. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  199. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  200. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  201. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  202. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  203. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  204. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  205. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  206. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  207. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  208. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  209. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  210. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  211. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  212. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  213. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  214. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  215. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  216. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  217. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  218. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  219. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  220. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  221. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  222. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  223. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  224. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  225. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  226. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  227. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  228. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  229. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  230. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  231. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  232. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  233. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  234. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  235. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  236. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  237. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  238. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  239. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  240. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  241. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  242. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  243. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  244. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  245. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  246. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  247. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  248. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  249. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  250. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  251. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  252. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  253. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  254. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  255. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  256. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  257. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  258. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  259. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  260. package/dist/collection/components/ez-form-view/ez-form-view.js +1 -1
  261. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  262. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  263. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  264. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  265. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  266. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  267. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  268. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  269. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  270. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  271. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  272. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  273. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  274. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  275. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  276. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  277. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  278. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +22 -0
  279. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  280. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  281. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  282. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  283. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  284. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  285. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  286. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  287. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  288. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  289. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  290. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  291. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  292. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  293. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  294. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  295. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  296. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  297. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  298. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  299. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  300. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  301. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  302. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  303. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  304. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  305. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  306. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  307. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  308. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  309. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  310. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  311. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  312. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  313. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  314. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  315. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  316. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  317. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  318. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  319. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  320. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  321. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  322. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  323. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  324. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  325. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  326. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  327. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  328. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  329. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  330. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  331. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  332. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  333. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  334. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  335. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  336. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  337. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  338. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  339. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  340. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  341. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  342. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  343. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  344. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  345. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  346. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  347. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  348. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  349. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  350. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  351. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  352. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  353. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  354. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  355. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  356. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  357. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  358. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  359. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  360. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  361. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  362. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  363. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  364. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  365. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  366. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  367. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  368. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  369. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  370. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  371. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  372. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  373. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  374. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  375. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  376. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  377. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  378. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  379. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  380. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  381. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  382. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  383. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  384. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  385. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  386. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  387. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  388. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  389. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  390. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  391. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  392. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  393. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  394. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  395. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  396. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  397. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  398. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  399. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  400. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  401. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  402. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  403. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  404. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  405. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  406. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  407. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  408. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  409. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  410. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  411. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  412. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  413. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  414. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  415. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  416. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  417. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  418. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  419. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  420. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  421. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  422. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  423. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  424. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  425. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  426. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  427. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  428. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  429. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  430. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  431. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  432. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  433. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  434. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  435. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  436. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  437. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  438. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  439. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  440. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  441. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  442. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  443. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  444. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  445. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  446. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  447. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  448. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  449. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  450. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  451. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  452. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  453. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  454. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  455. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  456. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  457. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  458. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  459. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  460. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  461. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  462. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  463. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  464. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  465. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  466. package/dist/collection/global/app-init.js.gz +0 -0
  467. package/dist/collection/index.js.gz +0 -0
  468. package/dist/collection/servidor.js.gz +0 -0
  469. package/dist/collection/setupTests.js.gz +0 -0
  470. package/dist/collection/sw.js.gz +0 -0
  471. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  472. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  473. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  474. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  475. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  476. package/dist/collection/utils/constants.js.gz +0 -0
  477. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  478. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  479. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  480. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  481. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  482. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  483. package/dist/collection/utils/form/index.js.gz +0 -0
  484. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  485. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  486. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  487. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  488. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  489. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  490. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  491. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  492. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  493. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  494. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  495. package/dist/collection/utils/i18n/index.js.gz +0 -0
  496. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  497. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  498. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  499. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  500. package/dist/collection/utils/index.js.gz +0 -0
  501. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  502. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  503. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  504. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  505. package/dist/collection/utils/search/types.js.gz +0 -0
  506. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  507. package/dist/collection/utils/utils.js.gz +0 -0
  508. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  509. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  510. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  511. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  512. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  513. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  514. package/dist/custom-elements/index.js +119 -34
  515. package/dist/custom-elements/index.js.gz +0 -0
  516. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  517. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  518. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  519. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  520. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  521. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  522. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  523. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  524. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  525. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  526. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  527. package/dist/esm/ez-actions-button.entry.js +1 -1
  528. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  529. package/dist/esm/ez-alert-list.entry.js +1 -1
  530. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  531. package/dist/esm/ez-alert.entry.js +1 -1
  532. package/dist/esm/ez-alert.entry.js.gz +0 -0
  533. package/dist/esm/ez-application.entry.js +1 -1
  534. package/dist/esm/ez-application.entry.js.gz +0 -0
  535. package/dist/esm/ez-avatar.entry.js +1 -1
  536. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  537. package/dist/esm/ez-badge.entry.js +1 -1
  538. package/dist/esm/ez-badge.entry.js.gz +0 -0
  539. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  540. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  541. package/dist/esm/ez-button.entry.js +1 -1
  542. package/dist/esm/ez-button.entry.js.gz +0 -0
  543. package/dist/esm/ez-calendar.entry.js +1 -1
  544. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  545. package/dist/esm/ez-card-item_5.entry.js +1 -1
  546. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  547. package/dist/esm/ez-chart.entry.js +1 -1
  548. package/dist/esm/ez-chart.entry.js.gz +0 -0
  549. package/dist/esm/ez-check.entry.js +1 -1
  550. package/dist/esm/ez-check.entry.js.gz +0 -0
  551. package/dist/esm/ez-chip.entry.js +1 -1
  552. package/dist/esm/ez-chip.entry.js.gz +0 -0
  553. package/dist/esm/ez-classic-combo-box.entry.js +1 -1
  554. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  555. package/dist/esm/ez-classic-input.entry.js +1 -1
  556. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  557. package/dist/esm/ez-classic-text-area.entry.js +1 -1
  558. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  559. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  560. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  561. package/dist/esm/ez-combo-box-list_5.entry.js +3 -3
  562. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  563. package/dist/esm/ez-combo-box.entry.js +1 -1
  564. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  565. package/dist/esm/ez-date-input.entry.js +1 -1
  566. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  567. package/dist/esm/ez-date-time-input.entry.js +1 -1
  568. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  569. package/dist/esm/ez-dialog.entry.js +1 -1
  570. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  571. package/dist/esm/ez-double-list.entry.js +1 -1
  572. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  573. package/dist/esm/ez-dropdown.entry.js +1 -1
  574. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  575. package/dist/esm/ez-empty-card.entry.js +1 -1
  576. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  577. package/dist/esm/ez-file-item.entry.js +1 -1
  578. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  579. package/dist/esm/ez-filter-input.entry.js +1 -1
  580. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  581. package/dist/esm/ez-form-view.entry.js +2 -2
  582. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  583. package/dist/esm/ez-form.entry.js +2 -2
  584. package/dist/esm/ez-form.entry.js.gz +0 -0
  585. package/dist/esm/ez-grid-view.entry.js +1 -1
  586. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  587. package/dist/esm/ez-grid.entry.js +25 -3
  588. package/dist/esm/ez-grid.entry.js.gz +0 -0
  589. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  590. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  591. package/dist/esm/ez-icon.entry.js +1 -1
  592. package/dist/esm/ez-icon.entry.js.gz +0 -0
  593. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  594. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  595. package/dist/esm/ez-list-item.entry.js +1 -1
  596. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  597. package/dist/esm/ez-list.entry.js +1 -1
  598. package/dist/esm/ez-list.entry.js.gz +0 -0
  599. package/dist/esm/ez-loading-bar.entry.js +1 -1
  600. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  601. package/dist/esm/ez-modal-container.entry.js +1 -1
  602. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  603. package/dist/esm/ez-modal.entry.js +1 -1
  604. package/dist/esm/ez-modal.entry.js.gz +0 -0
  605. package/dist/esm/ez-number-input.entry.js +1 -1
  606. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  607. package/dist/esm/ez-pagination.entry.js +1 -1
  608. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  609. package/dist/esm/ez-popover-core.entry.js +1 -1
  610. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  611. package/dist/esm/ez-popover.entry.js +1 -1
  612. package/dist/esm/ez-popover.entry.js.gz +0 -0
  613. package/dist/esm/ez-popup.entry.js +1 -1
  614. package/dist/esm/ez-popup.entry.js.gz +0 -0
  615. package/dist/esm/ez-progress-bar.entry.js +1 -1
  616. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  617. package/dist/esm/ez-radio-button.entry.js +1 -1
  618. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  619. package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
  620. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  621. package/dist/esm/ez-scroller_2.entry.js +1 -1
  622. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  623. package/dist/esm/ez-search-plus.entry.js +1 -1
  624. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  625. package/dist/esm/ez-search-result-list.entry.js +1 -1
  626. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  627. package/dist/esm/ez-search.entry.js +1 -1
  628. package/dist/esm/ez-search.entry.js.gz +0 -0
  629. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  630. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  631. package/dist/esm/ez-skeleton.entry.js +1 -1
  632. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  633. package/dist/esm/ez-sortable-list.entry.js +1 -1
  634. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  635. package/dist/esm/ez-spinner.entry.js +1 -1
  636. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  637. package/dist/esm/ez-split-button.entry.js +1 -1
  638. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  639. package/dist/esm/ez-split-item.entry.js +1 -1
  640. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  641. package/dist/esm/ez-split-panel.entry.js +1 -1
  642. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  643. package/dist/esm/ez-tabselector.entry.js +1 -1
  644. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  645. package/dist/esm/ez-tag-input.entry.js +1 -1
  646. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  647. package/dist/esm/ez-tag.entry.js +1 -1
  648. package/dist/esm/ez-tag.entry.js.gz +0 -0
  649. package/dist/esm/ez-text-area.entry.js +1 -1
  650. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  651. package/dist/esm/ez-text-input.entry.js +1 -1
  652. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  653. package/dist/esm/ez-tile-medium.entry.js +1 -1
  654. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  655. package/dist/esm/ez-tile.entry.js +1 -1
  656. package/dist/esm/ez-tile.entry.js.gz +0 -0
  657. package/dist/esm/ez-time-input.entry.js +1 -1
  658. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  659. package/dist/esm/ez-toast.entry.js +1 -1
  660. package/dist/esm/ez-toast.entry.js.gz +0 -0
  661. package/dist/esm/ez-tooltip.entry.js +1 -1
  662. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  663. package/dist/esm/ez-tree.entry.js +1 -1
  664. package/dist/esm/ez-tree.entry.js.gz +0 -0
  665. package/dist/esm/ez-underface.entry.js +1 -1
  666. package/dist/esm/ez-underface.entry.js.gz +0 -0
  667. package/dist/esm/ez-upload.entry.js +1 -1
  668. package/dist/esm/ez-upload.entry.js.gz +0 -0
  669. package/dist/esm/ez-view-stack.entry.js +1 -1
  670. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  671. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  672. package/dist/esm/ezui.js +2 -2
  673. package/dist/esm/ezui.js.gz +0 -0
  674. package/dist/esm/filter-column.entry.js +1 -1
  675. package/dist/esm/filter-column.entry.js.gz +0 -0
  676. package/dist/esm/floating-ui.dom.esm-c94d4011.js.gz +0 -0
  677. package/dist/esm/index-41363fa6.js.gz +0 -0
  678. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +1 -3
  679. package/dist/esm/{index-5a720e56.js.gz → index-baa5e267.js.gz} +0 -0
  680. package/dist/esm/index.js.gz +0 -0
  681. package/dist/esm/loader.js +2 -2
  682. package/dist/esm/loader.js.gz +0 -0
  683. package/dist/esm/polyfills/core-js.js.gz +0 -0
  684. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  685. package/dist/esm/polyfills/dom.js.gz +0 -0
  686. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  687. package/dist/esm/polyfills/index.js.gz +0 -0
  688. package/dist/esm/polyfills/system.js.gz +0 -0
  689. package/dist/esm/{purify-055bfb9f.js → purify-ca96ec34.js} +96 -33
  690. package/dist/esm/purify-ca96ec34.js.gz +0 -0
  691. package/dist/esm/{search-column-8b9d1486.js → search-column-c20d2b01.js} +1 -1
  692. package/dist/esm/search-column-c20d2b01.js.gz +0 -0
  693. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  694. package/dist/ezui/ezui.esm.js +1 -1
  695. package/dist/ezui/ezui.esm.js.gz +0 -0
  696. package/dist/ezui/index.esm.js.gz +0 -0
  697. package/dist/ezui/{p-9d6c5d17.entry.js → p-02d448bb.entry.js} +1 -1
  698. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  699. package/dist/ezui/{p-7c6ef008.js → p-04126429.js} +1 -1
  700. package/dist/ezui/p-04126429.js.gz +0 -0
  701. package/dist/ezui/{p-4463db7b.entry.js → p-05c32903.entry.js} +1 -1
  702. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  703. package/dist/ezui/{p-793b899a.entry.js → p-0ec37151.entry.js} +1 -1
  704. package/dist/ezui/p-0ec37151.entry.js.gz +0 -0
  705. package/dist/ezui/{p-d1765c77.entry.js → p-0f7971cf.entry.js} +1 -1
  706. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  707. package/dist/ezui/{p-01ca89ef.entry.js → p-110cfb7d.entry.js} +1 -1
  708. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  709. package/dist/ezui/p-112455b1.js.gz +0 -0
  710. package/dist/ezui/{p-0aed37a1.entry.js → p-18384b91.entry.js} +1 -1
  711. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  712. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  713. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  714. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  715. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  716. package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
  717. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  718. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  719. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  720. package/dist/ezui/p-24460bb2.js.gz +0 -0
  721. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  722. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  723. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  724. package/dist/ezui/{p-c9d70dab.entry.js → p-34a476a9.entry.js} +1 -1
  725. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  726. package/dist/ezui/{p-a8eadb43.entry.js → p-39761eca.entry.js} +1 -1
  727. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  728. package/dist/ezui/{p-ffdf68cd.entry.js → p-3afa1c6e.entry.js} +1 -1
  729. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  730. package/dist/ezui/{p-4ca4d920.entry.js → p-3ce867cf.entry.js} +1 -1
  731. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  732. package/dist/ezui/p-3e767a74.js.gz +0 -0
  733. package/dist/ezui/p-40a60148.js.gz +0 -0
  734. package/dist/ezui/{p-f7ca8634.entry.js → p-411c0222.entry.js} +1 -1
  735. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  736. package/dist/ezui/{p-8f0ed69d.entry.js → p-4314f87a.entry.js} +1 -1
  737. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  738. package/dist/ezui/p-477af30b.entry.js +1 -0
  739. package/dist/ezui/p-477af30b.entry.js.gz +0 -0
  740. package/dist/ezui/{p-570cf58a.entry.js → p-48effc69.entry.js} +1 -1
  741. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  742. package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
  743. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  744. package/dist/ezui/{p-98dfdeb1.entry.js → p-4fe123b6.entry.js} +1 -1
  745. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  746. package/dist/ezui/p-5554704c.js.gz +0 -0
  747. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  748. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  749. package/dist/ezui/{p-c754774e.entry.js → p-6020f3d5.entry.js} +1 -1
  750. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  751. package/dist/ezui/{p-e6eaa5ed.entry.js → p-6c51ccd1.entry.js} +1 -1
  752. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  753. package/dist/ezui/{p-4f72c118.entry.js → p-6ca0815e.entry.js} +1 -1
  754. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  755. package/dist/ezui/{p-2a81b6e7.entry.js → p-6cb82d33.entry.js} +1 -1
  756. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  757. package/dist/ezui/{p-0b531233.entry.js → p-6d596a5a.entry.js} +1 -1
  758. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  759. package/dist/ezui/{p-fce79a40.entry.js → p-6de4cae1.entry.js} +1 -1
  760. package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
  761. package/dist/ezui/{p-1723f728.entry.js → p-6f77a359.entry.js} +1 -1
  762. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  763. package/dist/ezui/{p-6b6efa30.entry.js → p-721fd999.entry.js} +1 -1
  764. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  765. package/dist/ezui/{p-d746f545.entry.js → p-7995dcb4.entry.js} +1 -1
  766. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  767. package/dist/ezui/{p-e195eaad.entry.js → p-7f792043.entry.js} +1 -1
  768. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  769. package/dist/ezui/{p-b7c6ce20.entry.js → p-7fe97ef5.entry.js} +1 -1
  770. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  771. package/dist/ezui/{p-776a0234.entry.js → p-80aeef27.entry.js} +2 -2
  772. package/dist/ezui/p-80aeef27.entry.js.gz +0 -0
  773. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  774. package/dist/ezui/{p-1a30c7b5.entry.js → p-82b0afe7.entry.js} +1 -1
  775. package/dist/ezui/p-82b0afe7.entry.js.gz +0 -0
  776. package/dist/ezui/{p-6dbf8f75.entry.js → p-859e3134.entry.js} +1 -1
  777. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  778. package/dist/ezui/{p-ef7e805b.entry.js → p-8bf077ea.entry.js} +1 -1
  779. package/dist/ezui/p-8bf077ea.entry.js.gz +0 -0
  780. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  781. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  782. package/dist/ezui/{p-78e975b4.entry.js → p-91c9d50e.entry.js} +1 -1
  783. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  784. package/dist/ezui/{p-05e68ab3.entry.js → p-93e1c917.entry.js} +1 -1
  785. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  786. package/dist/ezui/{p-14a13ff0.entry.js → p-948f0fb2.entry.js} +1 -1
  787. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  788. package/dist/ezui/{p-c26add3e.entry.js → p-94deb71e.entry.js} +1 -1
  789. package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
  790. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  791. package/dist/ezui/{p-ef8f37b9.entry.js → p-9ab2add9.entry.js} +1 -1
  792. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  793. package/dist/ezui/{p-1857cfc0.entry.js → p-9b215871.entry.js} +1 -1
  794. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  795. package/dist/ezui/{p-ad7c01c1.entry.js → p-9b3f3c02.entry.js} +1 -1
  796. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  797. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  798. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  799. package/dist/ezui/{p-bc693db6.entry.js → p-a0bf1fc7.entry.js} +1 -1
  800. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  801. package/dist/ezui/{p-9bcfa689.entry.js → p-a3075f52.entry.js} +1 -1
  802. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  803. package/dist/ezui/{p-f26b97e9.entry.js → p-a3ada561.entry.js} +1 -1
  804. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  805. package/dist/ezui/{p-71c55a72.entry.js → p-a4083a7a.entry.js} +1 -1
  806. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  807. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  808. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  809. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  810. package/dist/ezui/{p-5cfb8cfd.entry.js → p-a80e6b24.entry.js} +1 -1
  811. package/dist/ezui/p-a80e6b24.entry.js.gz +0 -0
  812. package/dist/ezui/p-ab574d59.js.gz +0 -0
  813. package/dist/ezui/p-b1e45320.js.gz +0 -0
  814. package/dist/ezui/{p-94d37b66.entry.js → p-b3d8034b.entry.js} +1 -1
  815. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  816. package/dist/ezui/p-b853763b.js.gz +0 -0
  817. package/dist/ezui/{p-09c2e631.entry.js → p-b989a33e.entry.js} +1 -1
  818. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  819. package/dist/ezui/p-baec56c9.js.gz +0 -0
  820. package/dist/ezui/{p-78dae70a.entry.js → p-bbeafaa1.entry.js} +1 -1
  821. package/dist/ezui/p-bbeafaa1.entry.js.gz +0 -0
  822. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  823. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  824. package/dist/ezui/{p-75a9a320.entry.js → p-cde41310.entry.js} +1 -1
  825. package/dist/ezui/{p-75a9a320.entry.js.gz → p-cde41310.entry.js.gz} +0 -0
  826. package/dist/ezui/{p-df5b5c3d.entry.js → p-ce0b36d7.entry.js} +1 -1
  827. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  828. package/dist/ezui/p-d0e354df.js +3 -0
  829. package/dist/ezui/p-d0e354df.js.gz +0 -0
  830. package/dist/ezui/{p-c96e536d.entry.js → p-d2645bdf.entry.js} +1 -1
  831. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  832. package/dist/ezui/{p-b2ce629f.entry.js → p-d5eb2fad.entry.js} +1 -1
  833. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  834. package/dist/ezui/{p-a9432878.entry.js → p-d6742c1e.entry.js} +1 -1
  835. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  836. package/dist/ezui/{p-4837f475.entry.js → p-d6bb930d.entry.js} +1 -1
  837. package/dist/ezui/{p-4837f475.entry.js.gz → p-d6bb930d.entry.js.gz} +0 -0
  838. package/dist/ezui/p-d8cc640d.entry.js +1 -0
  839. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  840. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  841. package/dist/ezui/{p-ee796c8f.entry.js → p-de862af4.entry.js} +1 -1
  842. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  843. package/dist/ezui/{p-62165e63.entry.js → p-e5de42e7.entry.js} +1 -1
  844. package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
  845. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  846. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  847. package/dist/ezui/{p-e9b409c1.entry.js → p-e7a7c594.entry.js} +1 -1
  848. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  849. package/dist/ezui/{p-b21efe83.entry.js → p-e8c57463.entry.js} +1 -1
  850. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  851. package/dist/ezui/p-ec7db713.js.gz +0 -0
  852. package/dist/ezui/{p-6c99bb50.entry.js → p-ecd6409d.entry.js} +1 -1
  853. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  854. package/dist/ezui/{p-8ed974f4.entry.js → p-f00c9dc2.entry.js} +1 -1
  855. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  856. package/dist/ezui/{p-7dbf71ae.entry.js → p-f181aea8.entry.js} +1 -1
  857. package/dist/ezui/p-f181aea8.entry.js.gz +0 -0
  858. package/dist/ezui/{p-980f1f18.entry.js → p-f34ec732.entry.js} +1 -1
  859. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  860. package/dist/ezui/{p-d7ae1e19.entry.js → p-f7b8d2b9.entry.js} +1 -1
  861. package/dist/ezui/p-f7b8d2b9.entry.js.gz +0 -0
  862. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  863. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  864. package/dist/index.cjs.js.gz +0 -0
  865. package/dist/index.js.gz +0 -0
  866. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
  867. package/package.json +1 -1
  868. package/dist/cjs/purify-417f092d.js.gz +0 -0
  869. package/dist/cjs/search-column-3031a7dd.js.gz +0 -0
  870. package/dist/esm/purify-055bfb9f.js.gz +0 -0
  871. package/dist/esm/search-column-8b9d1486.js.gz +0 -0
  872. package/dist/ezui/p-000159dc.entry.js.gz +0 -0
  873. package/dist/ezui/p-01ca89ef.entry.js.gz +0 -0
  874. package/dist/ezui/p-05e68ab3.entry.js.gz +0 -0
  875. package/dist/ezui/p-06f1b8e4.entry.js.gz +0 -0
  876. package/dist/ezui/p-09c2e631.entry.js.gz +0 -0
  877. package/dist/ezui/p-0aed37a1.entry.js.gz +0 -0
  878. package/dist/ezui/p-0b531233.entry.js.gz +0 -0
  879. package/dist/ezui/p-14a13ff0.entry.js.gz +0 -0
  880. package/dist/ezui/p-14d6aeb8.entry.js +0 -1
  881. package/dist/ezui/p-14d6aeb8.entry.js.gz +0 -0
  882. package/dist/ezui/p-1723f728.entry.js.gz +0 -0
  883. package/dist/ezui/p-1857cfc0.entry.js.gz +0 -0
  884. package/dist/ezui/p-1a30c7b5.entry.js.gz +0 -0
  885. package/dist/ezui/p-2a81b6e7.entry.js.gz +0 -0
  886. package/dist/ezui/p-4463db7b.entry.js.gz +0 -0
  887. package/dist/ezui/p-44b39e81.entry.js.gz +0 -0
  888. package/dist/ezui/p-4a876b8b.entry.js.gz +0 -0
  889. package/dist/ezui/p-4ca4d920.entry.js.gz +0 -0
  890. package/dist/ezui/p-4f72c118.entry.js.gz +0 -0
  891. package/dist/ezui/p-570cf58a.entry.js.gz +0 -0
  892. package/dist/ezui/p-5cfb8cfd.entry.js.gz +0 -0
  893. package/dist/ezui/p-62165e63.entry.js.gz +0 -0
  894. package/dist/ezui/p-6b51c9cc.entry.js.gz +0 -0
  895. package/dist/ezui/p-6b6efa30.entry.js.gz +0 -0
  896. package/dist/ezui/p-6c99bb50.entry.js.gz +0 -0
  897. package/dist/ezui/p-6dbf8f75.entry.js.gz +0 -0
  898. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  899. package/dist/ezui/p-6ec40dec.entry.js.gz +0 -0
  900. package/dist/ezui/p-6fc26622.entry.js.gz +0 -0
  901. package/dist/ezui/p-71c55a72.entry.js.gz +0 -0
  902. package/dist/ezui/p-776a0234.entry.js.gz +0 -0
  903. package/dist/ezui/p-78dae70a.entry.js.gz +0 -0
  904. package/dist/ezui/p-78e975b4.entry.js.gz +0 -0
  905. package/dist/ezui/p-793b899a.entry.js.gz +0 -0
  906. package/dist/ezui/p-7c6ef008.js.gz +0 -0
  907. package/dist/ezui/p-7dbf71ae.entry.js.gz +0 -0
  908. package/dist/ezui/p-81461d2f.entry.js.gz +0 -0
  909. package/dist/ezui/p-82fa4b09.entry.js.gz +0 -0
  910. package/dist/ezui/p-8ed974f4.entry.js.gz +0 -0
  911. package/dist/ezui/p-8f0ed69d.entry.js.gz +0 -0
  912. package/dist/ezui/p-94d37b66.entry.js.gz +0 -0
  913. package/dist/ezui/p-980f1f18.entry.js.gz +0 -0
  914. package/dist/ezui/p-98dfdeb1.entry.js.gz +0 -0
  915. package/dist/ezui/p-9bcfa689.entry.js.gz +0 -0
  916. package/dist/ezui/p-9d6c5d17.entry.js.gz +0 -0
  917. package/dist/ezui/p-a8eadb43.entry.js.gz +0 -0
  918. package/dist/ezui/p-a9432878.entry.js.gz +0 -0
  919. package/dist/ezui/p-ad7c01c1.entry.js.gz +0 -0
  920. package/dist/ezui/p-b21efe83.entry.js.gz +0 -0
  921. package/dist/ezui/p-b2ce629f.entry.js.gz +0 -0
  922. package/dist/ezui/p-b7c6ce20.entry.js.gz +0 -0
  923. package/dist/ezui/p-bc693db6.entry.js.gz +0 -0
  924. package/dist/ezui/p-c26add3e.entry.js.gz +0 -0
  925. package/dist/ezui/p-c2b20f78.entry.js.gz +0 -0
  926. package/dist/ezui/p-c754774e.entry.js.gz +0 -0
  927. package/dist/ezui/p-c96e536d.entry.js.gz +0 -0
  928. package/dist/ezui/p-c9d70dab.entry.js.gz +0 -0
  929. package/dist/ezui/p-cf33bc48.entry.js.gz +0 -0
  930. package/dist/ezui/p-d1765c77.entry.js.gz +0 -0
  931. package/dist/ezui/p-d746f545.entry.js.gz +0 -0
  932. package/dist/ezui/p-d7ae1e19.entry.js.gz +0 -0
  933. package/dist/ezui/p-df5b5c3d.entry.js.gz +0 -0
  934. package/dist/ezui/p-dfca5946.entry.js.gz +0 -0
  935. package/dist/ezui/p-e195eaad.entry.js.gz +0 -0
  936. package/dist/ezui/p-e4c7eb39.js.gz +0 -0
  937. package/dist/ezui/p-e6eaa5ed.entry.js.gz +0 -0
  938. package/dist/ezui/p-e9b409c1.entry.js.gz +0 -0
  939. package/dist/ezui/p-ec5a5d85.js +0 -3
  940. package/dist/ezui/p-ec5a5d85.js.gz +0 -0
  941. package/dist/ezui/p-ee796c8f.entry.js.gz +0 -0
  942. package/dist/ezui/p-ef7e805b.entry.js.gz +0 -0
  943. package/dist/ezui/p-ef8f37b9.entry.js.gz +0 -0
  944. package/dist/ezui/p-f02c917a.entry.js +0 -1
  945. package/dist/ezui/p-f02c917a.entry.js.gz +0 -0
  946. package/dist/ezui/p-f26b97e9.entry.js.gz +0 -0
  947. package/dist/ezui/p-f7ca8634.entry.js.gz +0 -0
  948. package/dist/ezui/p-fce79a40.entry.js.gz +0 -0
  949. package/dist/ezui/p-ffdf68cd.entry.js.gz +0 -0
@@ -0,0 +1,3 @@
1
+ import{c as t,a as e}from"./p-112455b1.js";var n=t((function(t){
2
+ /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
3
+ t.exports=function(){function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(e,n){return function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const n=Object.entries,r=Object.setPrototypeOf,o=Object.isFrozen,i=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor;let l=Object.freeze,c=Object.seal,s=Object.create,u="undefined"!=typeof Reflect&&Reflect,f=u.apply,p=u.construct;l||(l=function(t){return t}),c||(c=function(t){return t}),f||(f=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),p||(p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const m=L(Array.prototype.forEach),d=L(Array.prototype.lastIndexOf),h=L(Array.prototype.pop),y=L(Array.prototype.push),g=L(Array.prototype.splice),b=Array.isArray,w=L(String.prototype.toLowerCase),v=L(String.prototype.toString),x=L(String.prototype.match),S=L(String.prototype.replace),k=L(String.prototype.indexOf),T=L(String.prototype.trim),A=L(Number.prototype.toString),E=L(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:L(BigInt.prototype.toString),D="undefined"==typeof Symbol?null:L(Symbol.prototype.toString),z=L(Object.prototype.hasOwnProperty),R=L(Object.prototype.toString),_=L(RegExp.prototype.test),j=(N=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return p(N,e)});var N;function L(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(t,e,r)}}function I(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(r&&r(t,null),!b(e))return t;let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(o(e)||(e[i]=t),r=t)}t[r]=!0}return t}function M(t){for(let e=0;e<t.length;e++)z(t,e)||(t[e]=null);return t}function F(t){const r=s(null);for(const i of n(t)){var o=e(i,2);const n=o[0],a=o[1];z(t,n)&&(r[n]=b(a)?M(a):a&&"object"==typeof a&&a.constructor===Object?F(a):a)}return r}function C(t){switch(typeof t){case"string":return t;case"number":return A(t);case"boolean":return E(t);case"bigint":return O?O(t):"0";case"symbol":return D?D(t):"Symbol()";case"undefined":default:return R(t);case"function":case"object":{if(null===t)return R(t);const e=t,n=B(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:R(t)}return R(t)}}}function B(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}t=i(t)}return function(){return null}}function P(t){try{return _(t,""),!0}catch(t){return!1}}const U=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Y=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),q=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=l(["#text"]),K=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=l(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),J=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=c(/{{[\w\W]*|^[\w\W]*}}/g),Z=c(/<%[\w\W]*|^[\w\W]*%>/g),tt=c(/\${[\w\W]*/g),et=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),nt=c(/^aria-[\-\w]+$/),rt=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=c(/^(?:\w+script|data):/i),it=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=c(/^html$/i),lt=c(/^[a-z][.\w]*(-[.\w]+)+$/i),ct=c(/<[/\w!]/g),st=c(/<[/\w]/g),ut=c(/<\/no(script|embed|frames)/i),ft=c(/\/>/i),pt=1,mt=3,dt=7,ht=8,yt=9,gt=11,bt=function(){return"undefined"==typeof window?null:window},wt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return null}},vt=function(t,e,n,r){return z(t,e)&&b(t[e])?I(r.base?F(r.base):{},t[e],r.transform):n};var xt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt();const r=e=>t(e);if(r.version="3.4.13",r.removed=[],!e||!e.document||e.document.nodeType!==yt||!e.Element)return r.isSupported=!1,r;let o=e.document;const i=o,a=i.currentScript,u=e.HTMLTemplateElement,f=e.Node,p=e.NodeFilter,A=e.DOMParser,E=e.trustedTypes,O=e.Element.prototype,D=B(O,"cloneNode"),R=B(O,"remove"),N=B(O,"nextSibling"),L=B(O,"childNodes"),M=B(O,"parentNode"),xt=B(O,"shadowRoot"),St=B(O,"attributes"),kt=f&&f.prototype?B(f.prototype,"nodeType"):null,Tt=f&&f.prototype?B(f.prototype,"nodeName"):null,At=f&&f.prototype?B(f.prototype,"ownerDocument"):null;if("function"==typeof u){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let Et,Ot,Dt="",zt=!1,Rt=0;const _t=function(){if(Rt>0)throw j('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},jt=function(t){_t(),Rt++;try{return Et.createHTML(t)}finally{Rt--}},Nt=function(t){_t(),Rt++;try{return Et.createScriptURL(t)}finally{Rt--}},Lt=function(){return zt||(Ot=wt(E,a),zt=!0),Ot},It=o.implementation,Mt=o.createNodeIterator,Ft=o.createDocumentFragment,Ct=o.getElementsByTagName,Bt=i.importNode;let Pt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof M&&It&&void 0!==It.createHTMLDocument;const Ut=Q,Yt=Z,Gt=tt,qt=et,Ht=nt,Wt=ot,$t=it,Kt=lt;let Vt=rt,Xt=null;const Jt=I({},[...U,...Y,...G,...H,...$]);let Qt=null;const Zt=I({},[...K,...V,...X,...J]);let te=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,ne=null;const re=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let oe=!0,ie=!0,ae=!1,le=!0,ce=!1,se=!0,ue=!1,fe=!1,pe=null,me=null,de=!1,he=!1,ye=!1,ge=!1,be=!0,we=!1;const ve="user-content-";let xe=!0,Se=!1,ke={},Te=null;const Ae=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ee=null;const Oe=I({},["audio","video","img","source","image","track"]);let De=null;const ze=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",_e="http://www.w3.org/2000/svg",je="http://www.w3.org/1999/xhtml";let Ne=je,Le=!1,Ie=null;const Me=I({},[Re,_e,je],v),Fe=l(["mi","mo","mn","ms","mtext"]);let Ce=I({},Fe);const Be=l(["annotation-xml"]);let Pe=I({},Be);const Ue=I({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"],qe="text/html";let He=null,We=null;const $e=o.createElement("form"),Ke=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(We&&We===t)return;t&&"object"==typeof t||(t={}),t=F(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?qe:t.PARSER_MEDIA_TYPE,He="application/xhtml+xml"===Ye?v:w,Xt=vt(t,"ALLOWED_TAGS",Jt,{transform:He}),Qt=vt(t,"ALLOWED_ATTR",Zt,{transform:He}),Ie=vt(t,"ALLOWED_NAMESPACES",Me,{transform:v}),De=vt(t,"ADD_URI_SAFE_ATTR",ze,{transform:He,base:ze}),Ee=vt(t,"ADD_DATA_URI_TAGS",Oe,{transform:He,base:Oe}),Te=vt(t,"FORBID_CONTENTS",Ae,{transform:He}),ee=vt(t,"FORBID_TAGS",F({}),{transform:He}),ne=vt(t,"FORBID_ATTR",F({}),{transform:He}),ke=!!z(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?F(t.USE_PROFILES):t.USE_PROFILES),oe=!1!==t.ALLOW_ARIA_ATTR,ie=!1!==t.ALLOW_DATA_ATTR,ae=t.ALLOW_UNKNOWN_PROTOCOLS||!1,le=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ce=t.SAFE_FOR_TEMPLATES||!1,se=!1!==t.SAFE_FOR_XML,ue=t.WHOLE_DOCUMENT||!1,he=t.RETURN_DOM||!1,ye=t.RETURN_DOM_FRAGMENT||!1,ge=t.RETURN_TRUSTED_TYPE||!1,de=t.FORCE_BODY||!1,be=!1!==t.SANITIZE_DOM,we=t.SANITIZE_NAMED_PROPS||!1,xe=!1!==t.KEEP_CONTENT,Se=t.IN_PLACE||!1,Vt=P(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,Ne="string"==typeof t.NAMESPACE?t.NAMESPACE:je,Ce=z(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?F(t.MATHML_TEXT_INTEGRATION_POINTS):I({},Fe),Pe=z(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?F(t.HTML_INTEGRATION_POINTS):I({},Be);const e=z(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?F(t.CUSTOM_ELEMENT_HANDLING):s(null);if(te=s(null),z(e,"tagNameCheck")&&Ke(e.tagNameCheck)&&(te.tagNameCheck=e.tagNameCheck),z(e,"attributeNameCheck")&&Ke(e.attributeNameCheck)&&(te.attributeNameCheck=e.attributeNameCheck),z(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(te.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),c(te),ce&&(ie=!1),ye&&(he=!0),ke&&(Xt=I({},$),Qt=s(null),!0===ke.html&&(I(Xt,U),I(Qt,K)),!0===ke.svg&&(I(Xt,Y),I(Qt,V),I(Qt,J)),!0===ke.svgFilters&&(I(Xt,G),I(Qt,V),I(Qt,J)),!0===ke.mathMl&&(I(Xt,H),I(Qt,X),I(Qt,J))),re.tagCheck=null,re.attributeCheck=null,z(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?re.tagCheck=t.ADD_TAGS:b(t.ADD_TAGS)&&(Xt===Jt&&(Xt=F(Xt)),I(Xt,t.ADD_TAGS,He))),z(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?re.attributeCheck=t.ADD_ATTR:b(t.ADD_ATTR)&&(Qt===Zt&&(Qt=F(Qt)),I(Qt,t.ADD_ATTR,He))),z(t,"ADD_URI_SAFE_ATTR")&&b(t.ADD_URI_SAFE_ATTR)&&I(De,t.ADD_URI_SAFE_ATTR,He),z(t,"FORBID_CONTENTS")&&b(t.FORBID_CONTENTS)&&(Te===Ae&&(Te=F(Te)),I(Te,t.FORBID_CONTENTS,He)),z(t,"ADD_FORBID_CONTENTS")&&b(t.ADD_FORBID_CONTENTS)&&(Te===Ae&&(Te=F(Te)),I(Te,t.ADD_FORBID_CONTENTS,He)),xe&&(Xt["#text"]=!0),ue&&I(Xt,["html","head","body"]),Xt.table&&(I(Xt,["tbody"]),delete ee.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Et;Et=t.TRUSTED_TYPES_POLICY;try{Dt=jt("")}catch(t){throw Et=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Et=void 0,Dt=""):(void 0===Et&&(Et=Lt()),Et&&"string"==typeof Dt&&(Dt=jt("")));l&&l(t),We=t},Xe=I({},[...Y,...G,...q]),Je=I({},[...H,...W]),Qe=function(t,e,n){return e.namespaceURI===je?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||Ce[n]):Boolean(Xe[t])},Ze=function(t,e,n){return e.namespaceURI===je?"math"===t:e.namespaceURI===_e?"math"===t&&Pe[n]:Boolean(Je[t])},tn=function(t,e,n){return!(e.namespaceURI===_e&&!Pe[n])&&!(e.namespaceURI===Re&&!Ce[n])&&!Je[t]&&(Ue[t]||!Xe[t])},en=function(t){let e=M(t);e&&e.tagName||(e={namespaceURI:Ne,tagName:"template"});const n=w(t.tagName),r=w(e.tagName);return!!Ie[t.namespaceURI]&&(t.namespaceURI===_e?Qe(n,e,r):t.namespaceURI===Re?Ze(n,e,r):t.namespaceURI===je?tn(n,e,r):!("application/xhtml+xml"!==Ye||!Ie[t.namespaceURI]))},nn=function(t){y(r.removed,{element:t});try{M(t).removeChild(t)}catch(e){if(R(t),!M(t))throw j("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},rn=function(t){ln(t);const e=L(t);if(e){const t=[];m(e,(e=>{y(t,e)})),m(t,(t=>{try{R(t)}catch(t){}}))}const n=St(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;if("string"==typeof o)try{t.removeAttribute(o)}catch(t){}}},on=function(t,e){try{y(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){y(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(he||ye)try{nn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},an=function(t){const e=St(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;if("string"==typeof o&&!Qt[He(o)])try{t.removeAttribute(o)}catch(t){}}},ln=function(t){const e=[t];for(;e.length>0;){const t=e.pop();(kt?kt(t):t.nodeType)===pt&&an(t);const n=L(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},cn=function(t){if(!se)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=kt?kt(t):t.nodeType;if(n===dt||n===ht&&_(st,t.data)){try{R(t)}catch(t){}continue}if(n===pt){const e=t,n=He(Tt?Tt(t):t.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==n&&"output"!==n&&e.removeAttribute("for")}catch(t){}}const r=L(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},sn=function(t){let e=null,n=null;if(de)t="<remove></remove>"+t;else{const e=x(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Ne===je&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=Et?jt(t):t;if(Ne===je)try{e=(new A).parseFromString(r,Ye)}catch(t){}if(!e||!e.documentElement){e=It.createDocument(Ne,"template",null);try{e.documentElement.innerHTML=Le?Dt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ne===je?Ct.call(e,ue?"html":"body")[0]:ue?e.documentElement:i},un=function(t){const e=At?At(t):t.ownerDocument;return Mt.call(e||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},fn=function(t){return t=S(t,Ut," "),t=S(t,Yt," "),S(t,Gt," ")},pn=function(t){var e;t.normalize();const n=At?At(t):t.ownerDocument,r=Mt.call(n||t,t,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=fn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&m(i,(t=>{dn(t.content)&&pn(t.content)}))},mn=function(t){const e=Tt?Tt(t):null;return"string"==typeof e&&"form"===He(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==St(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==kt(t)||t.childNodes!==L(t))},dn=function(t){if(!kt||"object"!=typeof t||null===t)return!1;try{return kt(t)===gt}catch(t){return!1}},hn=function(t){if(!kt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof kt(t)}catch(t){return!1}};function yn(t,e,n){0!==t.length&&m(t,(t=>{t.call(r,e,n,We)}))}const gn=function(t,e){return!!(se&&t.hasChildNodes()&&!hn(t.firstElementChild)&&_(ct,t.textContent)&&_(ct,t.innerHTML))||!(!se||t.namespaceURI!==je||"style"!==e||!hn(t.firstElementChild))||t.nodeType===dt||!(!se||t.nodeType!==ht||!_(st,t.data))},bn=function(t,e,n){if(!ee[e]&&kn(e)){if(te.tagNameCheck instanceof RegExp&&_(te.tagNameCheck,e))return!1;if(te.tagNameCheck instanceof Function&&te.tagNameCheck(e))return!1}if(xe&&!Te[e]){const e=M(t),r=L(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?D(r[o],!0):r[o];e.insertBefore(i,N(t))}}return nn(t),!0},wn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?F(e):e},vn=function(t,e){if(yn(Pt.beforeSanitizeElements,t,null),t!==e&&null===M(t))return Se&&ln(t),!0;if(mn(t))return nn(t),!0;const n=He(Tt?Tt(t):t.nodeName);if(Xt=wn(Pt.uponSanitizeElement,Xt,Jt,pe),yn(Pt.uponSanitizeElement,t,{tagName:n,allowedTags:Xt}),t!==e&&null===M(t))return Se&&ln(t),!0;if(gn(t,n))return nn(t),!0;if(ee[n]||!(re.tagCheck instanceof Function&&re.tagCheck(n))&&!Xt[n]){const r=bn(t,n,e);return!1===r&&yn(Pt.afterSanitizeElements,t,null),r}if((kt?kt(t):t.nodeType)===pt&&!en(t))return nn(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&_(ut,t.innerHTML))return nn(t),!0;if(ce&&t.nodeType===mt){const e=fn(t.textContent);t.textContent!==e&&(y(r.removed,{element:t.cloneNode()}),t.textContent=e)}return yn(Pt.afterSanitizeElements,t,null),!1},xn=function(t,e,n){if(ne[e])return!1;if(se&&"patchsrc"===e)return!1;if(se&&"for"===e&&"label"!==t&&"output"!==t)return!1;if(be&&("id"===e||"name"===e)&&(n in o||n in $e))return!1;const r=Qt[e]||re.attributeCheck instanceof Function&&re.attributeCheck(e,t);if(ie&&_(qt,e));else if(oe&&_(Ht,e));else if(r){if(De[e]);else if(_(Vt,S(n,$t,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==k(n,"data:")||!Ee[t])if(ae&&!_(Wt,S(n,$t,"")));else if(n)return!1}else if(!(kn(t)&&(te.tagNameCheck instanceof RegExp&&_(te.tagNameCheck,t)||te.tagNameCheck instanceof Function&&te.tagNameCheck(t))&&(te.attributeNameCheck instanceof RegExp&&_(te.attributeNameCheck,e)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(e,t))||"is"===e&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&_(te.tagNameCheck,n)||te.tagNameCheck instanceof Function&&te.tagNameCheck(n))))return!1;return!0},Sn=I({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),kn=function(t){return!Sn[w(t)]&&_(Kt,t)},Tn=function(t,e,n,r){if(Et&&"object"==typeof E&&"function"==typeof E.getAttributeType&&!n)switch(E.getAttributeType(t,e)){case"TrustedHTML":return jt(r);case"TrustedScriptURL":return Nt(r)}return r},An=function(t,e,n,o){try{n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),mn(t)?nn(t):h(r.removed)}catch(n){on(e,t)}},En=function(t){yn(Pt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||mn(t))return;Qt=wn(Pt.uponSanitizeAttribute,Qt,Zt,me);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qt,forceKeepAttr:void 0};let r=e.length;const o=He(t.nodeName);for(;r--;){const i=e[r],a=i.name,l=i.namespaceURI,c=i.value,s=He(a),u=c;let f="value"===a?u:T(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,yn(Pt.uponSanitizeAttribute,t,n),f=n.attrValue,!we||"id"!==s&&"name"!==s||0===k(f,ve)||(on(a,t),f=ve+f),se&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&x(f,"href")?on(a,t):n.forceKeepAttr||(!n.keepAttr||!le&&_(ft,f)?on(a,t):(ce&&(f=fn(f)),xn(o,s,f)?(f=Tn(o,s,l,f),f!==u&&An(t,a,l,f)):on(a,t)))}yn(Pt.afterSanitizeAttributes,t,null)},On=function(t){let e=null;const n=un(t);for(yn(Pt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(yn(Pt.uponSanitizeShadowNode,e,null),vn(e,t),En(e),dn(e.content)&&On(e.content),(kt?kt(e):e.nodeType)===pt){const t=xt(e);dn(t)&&(Dn(t),On(t))}yn(Pt.afterSanitizeShadowDOM,t,null)},Dn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){On(t.shadow);continue}const n=t.node,r=(kt?kt(n):n.nodeType)===pt,o=L(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Tt?Tt(n):null;if("string"==typeof t&&"template"===He(t)){const t=n.content;dn(t)&&e.push({node:t,shadow:null})}}if(r){const t=xt(n);dn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,l=null;if(Le=!t,Le&&(t="\x3c!--\x3e"),"string"!=typeof t&&!hn(t)&&"string"!=typeof(t=C(t)))throw j("dirty is not a string, aborting");if(!r.isSupported)return t;fe?(Xt=pe,Qt=me):Ve(e),(Pt.uponSanitizeElement.length>0||Pt.uponSanitizeAttribute.length>0)&&(Xt=F(Xt)),Pt.uponSanitizeAttribute.length>0&&(Qt=F(Qt)),r.removed=[];const c=Se&&"string"!=typeof t&&hn(t);if(c){cn(t);const e=Tt?Tt(t):t.nodeName;if("string"==typeof e){const n=He(e);if(!Xt[n]||ee[n])throw rn(t),j("root node is forbidden and cannot be sanitized in-place")}if(mn(t))throw rn(t),j("root node is clobbered and cannot be sanitized in-place");try{Dn(t)}catch(e){throw rn(t),e}}else if(hn(t))n=sn("\x3c!----\x3e"),o=n.ownerDocument.importNode(t,!0),o.nodeType===pt&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),Dn(o);else{if(!he&&!ce&&!ue&&-1===t.indexOf("<"))return Et&&ge?jt(t):t;if(n=sn(t),!n)return he?null:ge?Dt:""}n&&de&&nn(n.firstChild);const s=c?t:n;try{const t=un(s);for(;a=t.nextNode();)vn(a,s),En(a),dn(a.content)&&On(a.content)}catch(e){throw c&&(rn(t),m(r.removed,(t=>{t.element&&ln(t.element)}))),e}if(c)return m(r.removed,(t=>{t.element&&ln(t.element)})),ce&&pn(t),t;if(he){if(ce&&pn(n),ye)for(l=Ft.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Qt.shadowroot||Qt.shadowrootmode)&&(l=Bt.call(i,l,!0)),l}let u=ue?n.outerHTML:n.innerHTML;return ue&&Xt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(at,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),ce&&(u=fn(u)),Et&&ge?jt(u):u},r.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),fe=!0,pe=Xt,me=Qt},r.clearConfig=function(){We=null,fe=!1,pe=null,me=null,Et=Ot,Dt=""},r.isValidAttribute=function(t,e,n){We||Ve({});const r=He(t),o=He(e);return xn(r,o,n)},r.addHook=function(t,e){"function"==typeof e&&z(Pt,t)&&y(Pt[t],e)},r.removeHook=function(t,e){if(z(Pt,t)){if(void 0!==e){const n=d(Pt[t],e);return-1===n?void 0:g(Pt[t],n,1)[0]}return h(Pt[t])}},r.removeHooks=function(t){z(Pt,t)&&(Pt[t]=[])},r.removeAllHooks=function(){Pt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();return xt}()}));export{n as p}
Binary file
@@ -1 +1 @@
1
- import{r,h as e,H as o,g as t}from"./p-e4c7eb39.js";import{ElementIDUtils as a}from"@sankhyalabs/core";const d=class{constructor(e){r(this,e),this.color="default",this.height=void 0,this.width=void 0}componentDidRender(){this._element&&a.addIDInfo(this._element),this._container&&a.addIDInfo(this._container,"empty-card",{id:"container"})}render(){const r=Object.assign(Object.assign({},this.height?{"--ez-empty-card--custom-height":`${this.height}px`}:{}),this.width?{"--ez-empty-card--custom-width":`${this.width}px`}:{});return e(o,{style:r},e("div",{ref:r=>this._container=r,class:`card_container ${this.color}`},e("slot",null)))}get _element(){return t(this)}};d.style=":host{--ez-empty-card--width:335px;--ez-empty-card--height:155px;--ez-empty-card--padding:var(--space--24, 24px);--ez-empty-card--border-radius:var(--border--radius-24, 24px);--ez-empty-card--background-color:var(--color--gray-70, #ffffff)}div{width:var(--ez-empty-card--custom-width, var(--ez-empty-card--width));height:var(--ez-empty-card--custom-height, var(--ez-empty-card--height));border-radius:var(--ez-empty-card--border-radius);background-color:var(--ez-empty-card--background-color);padding:var(--ez-empty-card--padding);display:block;overflow:hidden;outline:none;box-shadow:none;border:none;box-sizing:border-box}.gray{--ez-empty-card--background-color:var(--color--gray-80)}.green{--ez-empty-card--background-color:var(--color--ocean-green-90)}.yellow{--ez-empty-card--background-color:var(--color--yellow-100)}.red{--ez-empty-card--background-color:var(--color--red-100)}.petroleum{--ez-empty-card--background-color:var(--color--petroleum-90)}";export{d as ez_empty_card}
1
+ import{r,h as e,H as o,g as t}from"./p-23a36bb6.js";import{ElementIDUtils as a}from"@sankhyalabs/core";const d=class{constructor(e){r(this,e),this.color="default",this.height=void 0,this.width=void 0}componentDidRender(){this._element&&a.addIDInfo(this._element),this._container&&a.addIDInfo(this._container,"empty-card",{id:"container"})}render(){const r=Object.assign(Object.assign({},this.height?{"--ez-empty-card--custom-height":`${this.height}px`}:{}),this.width?{"--ez-empty-card--custom-width":`${this.width}px`}:{});return e(o,{style:r},e("div",{ref:r=>this._container=r,class:`card_container ${this.color}`},e("slot",null)))}get _element(){return t(this)}};d.style=":host{--ez-empty-card--width:335px;--ez-empty-card--height:155px;--ez-empty-card--padding:var(--space--24, 24px);--ez-empty-card--border-radius:var(--border--radius-24, 24px);--ez-empty-card--background-color:var(--color--gray-70, #ffffff)}div{width:var(--ez-empty-card--custom-width, var(--ez-empty-card--width));height:var(--ez-empty-card--custom-height, var(--ez-empty-card--height));border-radius:var(--ez-empty-card--border-radius);background-color:var(--ez-empty-card--background-color);padding:var(--ez-empty-card--padding);display:block;overflow:hidden;outline:none;box-shadow:none;border:none;box-sizing:border-box}.gray{--ez-empty-card--background-color:var(--color--gray-80)}.green{--ez-empty-card--background-color:var(--color--ocean-green-90)}.yellow{--ez-empty-card--background-color:var(--color--yellow-100)}.red{--ez-empty-card--background-color:var(--color--red-100)}.petroleum{--ez-empty-card--background-color:var(--color--petroleum-90)}";export{d as ez_empty_card}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as h}from"./p-e4c7eb39.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-a61fdd20.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.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-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(){return o.addIDInfoIfNotExists(this._elem,"input"),i(e,null,i("ez-text-input",{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,restrict:"0123456789:",onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder},i("ez-icon",{slot:"leftIcon",iconName:"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_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-a61fdd20.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.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-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(){return o.addIDInfoIfNotExists(this._elem,"input"),i(e,null,i("ez-text-input",{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,restrict:"0123456789:",onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder},i("ez-icon",{slot:"leftIcon",iconName:"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_time_input}
Binary file
@@ -1 +1 @@
1
- import{r as e,h as t,H as i}from"./p-e4c7eb39.js";const o=class{constructor(t){e(this,t),this.titleText=void 0,this.text=void 0,this.iconName=void 0}render(){return t(i,{class:"list-item"},t("div",{class:"list-item__header"},t("span",{class:"list-item__title"},this.titleText),this.iconName&&t("ez-icon",{"icon-name":this.iconName})),this.text&&t("span",{class:"list-item__text"},this.text))}};o.style=".sc-ez-list-item-h{--ez-list-item__title--color:var(--color--ocean-green-900, #003D2D);--ez-list-item__text--color:var(--color--ocean-green-1000, #00281D);--ez-list-item__icon--color:var(--color--ocean-green-600, #008561);--ez-list-item__background--color:var(--color--gray-80, #F9F9F9);--ez-list-item__border--color-hover:var(--color--gray-100, #DEDEDE);--ez-list-item__min-width:150;display:flex;flex-direction:column;background:var(--ez-list-item__background--color);padding:var(--space--12, 12px) var(--space--16, 16px);min-width:var(--ez-list-item__min-width);width:100%;border-radius:var(--border--radius-16, 16px);outline:none;transition:box-shadow 0.2s;cursor:pointer}.sc-ez-list-item-h:hover{outline:none;box-shadow:0 0 0 1px var(--ez-list-item__border--color-hover)}.list-item__header.sc-ez-list-item{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.list-item__title.sc-ez-list-item{color:var(--ez-list-item__title--color);font-size:var(--text--large);font-weight:var(--font-weight--medium)}.list-item__text.sc-ez-list-item{font-size:var(--text--medium);font-weight:var(--font-weight--regular);color:var(--ez-list-item__text--color)}ez-icon.sc-ez-list-item{--ez-icon--color:var(--ez-list-item__icon--color)}";export{o as ez_list_item}
1
+ import{r as e,h as t,H as i}from"./p-23a36bb6.js";const o=class{constructor(t){e(this,t),this.titleText=void 0,this.text=void 0,this.iconName=void 0}render(){return t(i,{class:"list-item"},t("div",{class:"list-item__header"},t("span",{class:"list-item__title"},this.titleText),this.iconName&&t("ez-icon",{"icon-name":this.iconName})),this.text&&t("span",{class:"list-item__text"},this.text))}};o.style=".sc-ez-list-item-h{--ez-list-item__title--color:var(--color--ocean-green-900, #003D2D);--ez-list-item__text--color:var(--color--ocean-green-1000, #00281D);--ez-list-item__icon--color:var(--color--ocean-green-600, #008561);--ez-list-item__background--color:var(--color--gray-80, #F9F9F9);--ez-list-item__border--color-hover:var(--color--gray-100, #DEDEDE);--ez-list-item__min-width:150;display:flex;flex-direction:column;background:var(--ez-list-item__background--color);padding:var(--space--12, 12px) var(--space--16, 16px);min-width:var(--ez-list-item__min-width);width:100%;border-radius:var(--border--radius-16, 16px);outline:none;transition:box-shadow 0.2s;cursor:pointer}.sc-ez-list-item-h:hover{outline:none;box-shadow:0 0 0 1px var(--ez-list-item__border--color-hover)}.list-item__header.sc-ez-list-item{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.list-item__title.sc-ez-list-item{color:var(--ez-list-item__title--color);font-size:var(--text--large);font-weight:var(--font-weight--medium)}.list-item__text.sc-ez-list-item{font-size:var(--text--medium);font-weight:var(--font-weight--regular);color:var(--ez-list-item__text--color)}ez-icon.sc-ez-list-item{--ez-icon--color:var(--ez-list-item__icon--color)}";export{o as ez_list_item}
Binary file
@@ -1 +1 @@
1
- import{r as i,c as t,f as e,h as a,g as o}from"./p-e4c7eb39.js";import{ElementIDUtils as s}from"@sankhyalabs/core";import{A as d}from"./p-baec56c9.js";import{i as l}from"./p-a61fdd20.js";import"./p-ab574d59.js";class r{constructor(i){this.file=i,this.size=i.size,this.name=i.name}abortUpload(){this._uploadingXhr&&(this._aborted=!0,this._uploadingXhr.abort(),this._uploadingXhr=void 0)}isUploading(){return void 0!==this._uploadingXhr}async upload(i,t,e){return new Promise(((a,o)=>{const s=new XMLHttpRequest;this._uploadingXhr=s,this._aborted=!1,this.progress=0,s.upload.onprogress=i=>{const t=i.loaded,a=i.total;this.progress=~~(t/a*100),e(this,t,a)},s.onreadystatechange=()=>{if(4==s.readyState){this._uploadingXhr=void 0;const i=s.status;this._aborted||(0===i?o("Servidor indisponível"):i>=500?o("Erro inesperado no servidor"):i>=400&&o("Operação não permitida"));const t=s.response;if(t)try{a(JSON.parse(t))}catch(i){o(`Servidor não retornou um objeto válido: ${t}.\n${i}`)}}},s.ontimeout=()=>{o("Tempo limite de transferência atingido.")};const d=new FormData;d.append("ARQUIVO",this.file,this.file.name),s.open("POST",i,!0),t&&t.forEach(((i,t)=>s.setRequestHeader(t,i))),s.send(d)}))}async delete(i,t,e){return new Promise(((a,o)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{4==s.readyState&&(0===s.status?o("Servidor indisponível"):s.status>=500?o("Erro inesperado no servidor"):s.status>=400&&o("Operação não permitida"),a(!0))},s.ontimeout=()=>{o("Tempo limite de remoção atingido.")},s.open("DELETE",t,!0),e&&e.forEach(((i,t)=>s.setRequestHeader(t,i))),s.send(JSON.stringify(i))}))}}const n=class{constructor(e){i(this,e),this.ezChange=t(this,"ezChange",7),this.ezStartChange=t(this,"ezStartChange",7),this.ezCancelWaitingChange=t(this,"ezCancelWaitingChange",7),this._filePointers=new Map,this.label=void 0,this.subtitle=void 0,this.enabled=!0,this.maxFileSize=void 0,this.maxFiles=void 0,this.requestHeaders=void 0,this.urlUpload=void 0,this.urlDelete=void 0,this.value=void 0}observeValue(i,t){(i!==this._updatingValue||null==i&&null!=t)&&(this._filePointers.forEach((i=>{this.isRemoteFile(i)&&i.abortUpload()})),this._filePointers=new Map,this.updateFilePointers(),this._updatingValue=void 0)}updateFilePointers(){Array.isArray(this.value)&&this.value.forEach((i=>this._filePointers.set(i.name,i)))}observeRequestHeaders(){if(this._requestHeaders=new Map,"string"==typeof this.requestHeaders)try{this.requestHeaders=JSON.parse(this.requestHeaders)}catch(i){this.requestHeaders=void 0}for(var i in this.requestHeaders)this._requestHeaders.set(i,this.requestHeaders[i])}async addFiles(i){if(this.maxFiles>0){let t=this._filePointers.size;if(i.forEach((i=>{this._filePointers.has(i.name)||t++})),t>this.maxFiles)return void this.showError(this.i18n("ez-upload.maxFilesError",{maxFiles:this.maxFiles}))}Array.prototype.forEach.call(i,this.addFile.bind(this))}async setFocus(){this._fileInput.focus()}async setBlur(){this._fileInput.blur()}async addFile(i){const t=this._filePointers.get(i.name);t?d.confirm(this.i18n("ez-upload.replaceFileTitle"),this.i18n("ez-upload.replaceFileMessage",{fileName:i.name})).then((e=>{e&&(this.isRemoteFile(t)&&t.abortUpload(),this.doAddFile(i))})):this.doAddFile(i)}async doAddFile(i){try{if(this.validateFile(i)){this.ezStartChange.emit({waitmessage:this.i18n("ez-upload.uploadingMessage"),blocking:!0});const t=new r(i),a=this._filePointers.get(i.name);a&&this.isRemoteFile(a)&&a.abortUpload(),this._filePointers.set(i.name,t),t.upload(this.urlUpload,this._requestHeaders,(i=>this.updateFeedback(i))).then((i=>i.forEach((i=>this.finishUpload(t.name,i))))).catch((i=>{this.ezCancelWaitingChange.emit(),this.showError(i)})),e(this)}}catch(i){throw this.ezCancelWaitingChange.emit(),i}}finishUpload(i,t){this._filePointers.set(i,t),this.updateValue()}updateValue(){this._updatingValue=[],this._filePointers.forEach((i=>{this.isRemoteFile(i)||this._updatingValue.push(i)})),this._filePointers.size===this._updatingValue.length&&(this.value=this._updatingValue,this.ezChange.emit(this.value))}buildProgressId(i){return`PROGRESS_${i.name.replace(/[^a-z0-9_]/gi,"_")}_${i.file.lastModified}`}updateFeedback(i){window.requestAnimationFrame((()=>{if(this._host){const t=this._host.shadowRoot.querySelector("#"+this.buildProgressId(i));t&&(t.value=i.progress)}}))}validateFile(i){return!this._filePointers.has(i.name)&&this.maxFiles>0&&this._filePointers.size>=this.maxFiles?(this.showError(this.i18n("ez-upload.maxFilesError",{maxFiles:this.maxFiles})),!1):0===i.size?(this.showError(this.i18n("ez-upload.emptyFileError",{fileName:i.name})),!1):this.urlUpload?!(this.maxFileSize>=0&&i.size>this.maxFileSize&&(this.showError(this.i18n("ez-upload.maxFileSizeError",{maxSize:this.formatBytes(this.maxFileSize)})),1)):(this.showError(this.i18n("ez-upload.missingUploadUrlError")),!1)}showError(i){d.alert(this.i18n("ez-upload.uploadErrorTitle"),i)}formatBytes(i,t=1){if(0===i)return"0 Bytes";const e=t<0?0:t,a=Math.floor(Math.log(i)/Math.log(1024));return parseFloat((i/Math.pow(1024,a)).toFixed(e))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}onFileInputChange(i){this.addFiles(Array.from(i.target.files)),this._fileInput.value=""}isRemoteFile(i){return"file"in i}removeFromList(i){this._filePointers.delete(i),this.updateValue()}removeFile(i){const t=this._filePointers.get(i);if(this.isRemoteFile(t))t.abortUpload(),this.removeFromList(i);else if(this.urlDelete){const e=new r(null);this._filePointers.set(t.name,e),e.delete(t,this.urlDelete,null).then((()=>this.removeFromList(i))).catch((i=>this.showError(i)))}else this.removeFromList(i)}openFilesDialog(){this.enabled&&this._fileInput.click()}componentDidLoad(){this.enabled&&this._dropZone&&window.FileList&&window.File&&(this._dropZone.addEventListener("dragover",(i=>{i.stopPropagation(),i.preventDefault(),i.dataTransfer.dropEffect="copy",this._dropZone.style.background="#c2dbff"})),this._dropZone.addEventListener("drop",(i=>{i.stopPropagation(),i.preventDefault(),this.addFiles(Array.from(i.dataTransfer.files)),this._dropZone.style.background=""})),this._dropZone.addEventListener("dragleave",(()=>{this._dropZone.style.background=""}))),this._host&&s.addIDInfo(this._host,"input"),this.observeRequestHeaders()}componentWillRender(){this.value&&this._filePointers.size<this.value.length&&this.updateFilePointers()}async componentWillLoad(){this.i18n=await l()}render(){return a("div",{ref:i=>this._dropZone=i,class:this.evalDisabledClass("iu","background--disabled")},a("div",{class:"iu__container",onClick:()=>this.openFilesDialog()},a("div",{class:"iu_header"},this.label?a("label",{class:this.evalDisabledClass("iu__label","text--disabled"),title:this.label},this.label):null,a("div",{class:"padding-large"},a("div",{class:this.evalDisabledClass("iu__icon-label","mouse-pointer--disabled")},a("button",{class:"iu__file-icon",disabled:!this.enabled}),a("div",{class:this.evalDisabledClass("text text--center text--medium text--primary","text--disabled")},this.i18n(this.enabled?"ez-upload.enable":"ez-upload.disable"))),this.subtitle&&a("div",{class:this.evalDisabledClass("padding-extra-small text text--center text--small text--secondary","text--disabled")},this.subtitle))),this.buildFooter()),a("input",{ref:i=>this._fileInput=i,onChange:i=>this.onFileInputChange(i),type:"file",multiple:!0,class:"appearanceNone"}))}buildFooter(){if(0===this._filePointers.size)return null;const i=[];return this._filePointers.forEach((t=>i.push(this.buildFileItem(t)))),a("div",{class:"iu__footer"},i)}buildFileItem(i){const t=i.name,e=Number(i.progress),o=i.downloadURL,s=i.size>0?`(${this.formatBytes(i.size)})`:"",d=`${t} ${s}`;return a("div",{class:"iu__item",key:t,onClick:i=>i.stopPropagation()},a("div",{class:"iu__item-label modificador"},a("div",{title:d,class:"col--stretch align--middle file__name text text--primary text--small text--ellipsis align--middle"},o?a("a",{href:o,download:!0},d):d)),isNaN(e)?null:a("div",{class:"col col--sd-4 col--stretch align--middle"},a("progress",{id:this.buildProgressId(i),value:e,max:"100"})),this.enabled?a("div",{class:"col col--stretch align--middle"},a("button",{class:"btn-cancel ",onClick:()=>this.removeFile(t)})):null)}evalDisabledClass(i,t){return this.enabled?i:`${i} ${t}`}get _host(){return o(this)}static get watchers(){return{value:["observeValue"],requestHeaders:["observeRequestHeaders"]}}};n.style=':host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--text--secondary:var(--text-secondary, #a2abb9);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="8x" width="8px"><path d="M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z"/></svg>\');--ez-upload__file-icon-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="11x" width="9px"><path d="M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z"/></svg>\');display:flex;flex-wrap:wrap;position:relative;padding-bottom:16px;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.padding-large{padding:var(--ez-upload--padding--large) 0px}.padding-extra-small{padding:var(--ez-upload--padding--extra-small) 0px}.text{font-family:var(--font-pattern, "Roboto");text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--secondary{color:var(--ez-upload--text--secondary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:\'\';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;box-sizing:border-box}.background--disabled{background-color:var(--color--disable-secondary, #F2F5F8)}.text--disabled{color:var(--text--disable, #AFB6C0)}.mouse-pointer--disabled{cursor:unset}.appearanceNone{width:0px;height:0px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{n as ez_upload}
1
+ import{r as i,c as t,f as e,h as a,g as o}from"./p-23a36bb6.js";import{ElementIDUtils as s}from"@sankhyalabs/core";import{A as d}from"./p-baec56c9.js";import{i as l}from"./p-a61fdd20.js";import"./p-ab574d59.js";class r{constructor(i){this.file=i,this.size=i.size,this.name=i.name}abortUpload(){this._uploadingXhr&&(this._aborted=!0,this._uploadingXhr.abort(),this._uploadingXhr=void 0)}isUploading(){return void 0!==this._uploadingXhr}async upload(i,t,e){return new Promise(((a,o)=>{const s=new XMLHttpRequest;this._uploadingXhr=s,this._aborted=!1,this.progress=0,s.upload.onprogress=i=>{const t=i.loaded,a=i.total;this.progress=~~(t/a*100),e(this,t,a)},s.onreadystatechange=()=>{if(4==s.readyState){this._uploadingXhr=void 0;const i=s.status;this._aborted||(0===i?o("Servidor indisponível"):i>=500?o("Erro inesperado no servidor"):i>=400&&o("Operação não permitida"));const t=s.response;if(t)try{a(JSON.parse(t))}catch(i){o(`Servidor não retornou um objeto válido: ${t}.\n${i}`)}}},s.ontimeout=()=>{o("Tempo limite de transferência atingido.")};const d=new FormData;d.append("ARQUIVO",this.file,this.file.name),s.open("POST",i,!0),t&&t.forEach(((i,t)=>s.setRequestHeader(t,i))),s.send(d)}))}async delete(i,t,e){return new Promise(((a,o)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{4==s.readyState&&(0===s.status?o("Servidor indisponível"):s.status>=500?o("Erro inesperado no servidor"):s.status>=400&&o("Operação não permitida"),a(!0))},s.ontimeout=()=>{o("Tempo limite de remoção atingido.")},s.open("DELETE",t,!0),e&&e.forEach(((i,t)=>s.setRequestHeader(t,i))),s.send(JSON.stringify(i))}))}}const n=class{constructor(e){i(this,e),this.ezChange=t(this,"ezChange",7),this.ezStartChange=t(this,"ezStartChange",7),this.ezCancelWaitingChange=t(this,"ezCancelWaitingChange",7),this._filePointers=new Map,this.label=void 0,this.subtitle=void 0,this.enabled=!0,this.maxFileSize=void 0,this.maxFiles=void 0,this.requestHeaders=void 0,this.urlUpload=void 0,this.urlDelete=void 0,this.value=void 0}observeValue(i,t){(i!==this._updatingValue||null==i&&null!=t)&&(this._filePointers.forEach((i=>{this.isRemoteFile(i)&&i.abortUpload()})),this._filePointers=new Map,this.updateFilePointers(),this._updatingValue=void 0)}updateFilePointers(){Array.isArray(this.value)&&this.value.forEach((i=>this._filePointers.set(i.name,i)))}observeRequestHeaders(){if(this._requestHeaders=new Map,"string"==typeof this.requestHeaders)try{this.requestHeaders=JSON.parse(this.requestHeaders)}catch(i){this.requestHeaders=void 0}for(var i in this.requestHeaders)this._requestHeaders.set(i,this.requestHeaders[i])}async addFiles(i){if(this.maxFiles>0){let t=this._filePointers.size;if(i.forEach((i=>{this._filePointers.has(i.name)||t++})),t>this.maxFiles)return void this.showError(this.i18n("ez-upload.maxFilesError",{maxFiles:this.maxFiles}))}Array.prototype.forEach.call(i,this.addFile.bind(this))}async setFocus(){this._fileInput.focus()}async setBlur(){this._fileInput.blur()}async addFile(i){const t=this._filePointers.get(i.name);t?d.confirm(this.i18n("ez-upload.replaceFileTitle"),this.i18n("ez-upload.replaceFileMessage",{fileName:i.name})).then((e=>{e&&(this.isRemoteFile(t)&&t.abortUpload(),this.doAddFile(i))})):this.doAddFile(i)}async doAddFile(i){try{if(this.validateFile(i)){this.ezStartChange.emit({waitmessage:this.i18n("ez-upload.uploadingMessage"),blocking:!0});const t=new r(i),a=this._filePointers.get(i.name);a&&this.isRemoteFile(a)&&a.abortUpload(),this._filePointers.set(i.name,t),t.upload(this.urlUpload,this._requestHeaders,(i=>this.updateFeedback(i))).then((i=>i.forEach((i=>this.finishUpload(t.name,i))))).catch((i=>{this.ezCancelWaitingChange.emit(),this.showError(i)})),e(this)}}catch(i){throw this.ezCancelWaitingChange.emit(),i}}finishUpload(i,t){this._filePointers.set(i,t),this.updateValue()}updateValue(){this._updatingValue=[],this._filePointers.forEach((i=>{this.isRemoteFile(i)||this._updatingValue.push(i)})),this._filePointers.size===this._updatingValue.length&&(this.value=this._updatingValue,this.ezChange.emit(this.value))}buildProgressId(i){return`PROGRESS_${i.name.replace(/[^a-z0-9_]/gi,"_")}_${i.file.lastModified}`}updateFeedback(i){window.requestAnimationFrame((()=>{if(this._host){const t=this._host.shadowRoot.querySelector("#"+this.buildProgressId(i));t&&(t.value=i.progress)}}))}validateFile(i){return!this._filePointers.has(i.name)&&this.maxFiles>0&&this._filePointers.size>=this.maxFiles?(this.showError(this.i18n("ez-upload.maxFilesError",{maxFiles:this.maxFiles})),!1):0===i.size?(this.showError(this.i18n("ez-upload.emptyFileError",{fileName:i.name})),!1):this.urlUpload?!(this.maxFileSize>=0&&i.size>this.maxFileSize&&(this.showError(this.i18n("ez-upload.maxFileSizeError",{maxSize:this.formatBytes(this.maxFileSize)})),1)):(this.showError(this.i18n("ez-upload.missingUploadUrlError")),!1)}showError(i){d.alert(this.i18n("ez-upload.uploadErrorTitle"),i)}formatBytes(i,t=1){if(0===i)return"0 Bytes";const e=t<0?0:t,a=Math.floor(Math.log(i)/Math.log(1024));return parseFloat((i/Math.pow(1024,a)).toFixed(e))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}onFileInputChange(i){this.addFiles(Array.from(i.target.files)),this._fileInput.value=""}isRemoteFile(i){return"file"in i}removeFromList(i){this._filePointers.delete(i),this.updateValue()}removeFile(i){const t=this._filePointers.get(i);if(this.isRemoteFile(t))t.abortUpload(),this.removeFromList(i);else if(this.urlDelete){const e=new r(null);this._filePointers.set(t.name,e),e.delete(t,this.urlDelete,null).then((()=>this.removeFromList(i))).catch((i=>this.showError(i)))}else this.removeFromList(i)}openFilesDialog(){this.enabled&&this._fileInput.click()}componentDidLoad(){this.enabled&&this._dropZone&&window.FileList&&window.File&&(this._dropZone.addEventListener("dragover",(i=>{i.stopPropagation(),i.preventDefault(),i.dataTransfer.dropEffect="copy",this._dropZone.style.background="#c2dbff"})),this._dropZone.addEventListener("drop",(i=>{i.stopPropagation(),i.preventDefault(),this.addFiles(Array.from(i.dataTransfer.files)),this._dropZone.style.background=""})),this._dropZone.addEventListener("dragleave",(()=>{this._dropZone.style.background=""}))),this._host&&s.addIDInfo(this._host,"input"),this.observeRequestHeaders()}componentWillRender(){this.value&&this._filePointers.size<this.value.length&&this.updateFilePointers()}async componentWillLoad(){this.i18n=await l()}render(){return a("div",{ref:i=>this._dropZone=i,class:this.evalDisabledClass("iu","background--disabled")},a("div",{class:"iu__container",onClick:()=>this.openFilesDialog()},a("div",{class:"iu_header"},this.label?a("label",{class:this.evalDisabledClass("iu__label","text--disabled"),title:this.label},this.label):null,a("div",{class:"padding-large"},a("div",{class:this.evalDisabledClass("iu__icon-label","mouse-pointer--disabled")},a("button",{class:"iu__file-icon",disabled:!this.enabled}),a("div",{class:this.evalDisabledClass("text text--center text--medium text--primary","text--disabled")},this.i18n(this.enabled?"ez-upload.enable":"ez-upload.disable"))),this.subtitle&&a("div",{class:this.evalDisabledClass("padding-extra-small text text--center text--small text--secondary","text--disabled")},this.subtitle))),this.buildFooter()),a("input",{ref:i=>this._fileInput=i,onChange:i=>this.onFileInputChange(i),type:"file",multiple:!0,class:"appearanceNone"}))}buildFooter(){if(0===this._filePointers.size)return null;const i=[];return this._filePointers.forEach((t=>i.push(this.buildFileItem(t)))),a("div",{class:"iu__footer"},i)}buildFileItem(i){const t=i.name,e=Number(i.progress),o=i.downloadURL,s=i.size>0?`(${this.formatBytes(i.size)})`:"",d=`${t} ${s}`;return a("div",{class:"iu__item",key:t,onClick:i=>i.stopPropagation()},a("div",{class:"iu__item-label modificador"},a("div",{title:d,class:"col--stretch align--middle file__name text text--primary text--small text--ellipsis align--middle"},o?a("a",{href:o,download:!0},d):d)),isNaN(e)?null:a("div",{class:"col col--sd-4 col--stretch align--middle"},a("progress",{id:this.buildProgressId(i),value:e,max:"100"})),this.enabled?a("div",{class:"col col--stretch align--middle"},a("button",{class:"btn-cancel ",onClick:()=>this.removeFile(t)})):null)}evalDisabledClass(i,t){return this.enabled?i:`${i} ${t}`}get _host(){return o(this)}static get watchers(){return{value:["observeValue"],requestHeaders:["observeRequestHeaders"]}}};n.style=':host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--text--secondary:var(--text-secondary, #a2abb9);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="8x" width="8px"><path d="M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z"/></svg>\');--ez-upload__file-icon-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="11x" width="9px"><path d="M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z"/></svg>\');display:flex;flex-wrap:wrap;position:relative;padding-bottom:16px;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.padding-large{padding:var(--ez-upload--padding--large) 0px}.padding-extra-small{padding:var(--ez-upload--padding--extra-small) 0px}.text{font-family:var(--font-pattern, "Roboto");text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--secondary{color:var(--ez-upload--text--secondary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:\'\';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;box-sizing:border-box}.background--disabled{background-color:var(--color--disable-secondary, #F2F5F8)}.text--disabled{color:var(--text--disable, #AFB6C0)}.mouse-pointer--disabled{cursor:unset}.appearanceNone{width:0px;height:0px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{n as ez_upload}
@@ -0,0 +1 @@
1
+ import{r,h as e,H as o,g as a}from"./p-23a36bb6.js";import{ElementIDUtils as c}from"@sankhyalabs/core";const n=class{constructor(e){r(this,e),this.color="default",this.customColor=void 0,this.height=void 0,this.width=void 0}componentDidRender(){this._element&&c.addIDInfo(this._element),this._container&&c.addIDInfo(this._container,"underface",{id:"container"})}render(){const r=Object.assign({},this.customColor&&{"--ez-underface--custom-background-color":`var(${this.customColor})`},this.height&&{"--ez-underface--custom-height":`${this.height}px`},this.width&&{"--ez-underface--custom-width":`${this.width}px`});return e(o,{style:r},e("div",{ref:r=>this._container=r,class:`underface_container ${this.color}`},e("slot",null)))}get _element(){return a(this)}};n.style=":host{--ez-underface--width:693px;--ez-underface--height:247px;--ez-underface--padding:var(--space--24, 24px);--ez-underface--border-radius:var(--border--radius-26, 26px)}div{width:var(--ez-underface--custom-width, var(--ez-underface--width));height:var(--ez-underface--custom-height, var(--ez-underface--height));border-radius:var(--ez-underface--border-radius);padding:var(--ez-underface--padding);display:block;overflow:hidden;outline:none;box-shadow:none;border:none;box-sizing:border-box;background-color:var(--ez-underface--custom-background-color, var(--color--petroleum-700, #222D42))}.light-green{background-color:var(--ez-underface--custom-background-color, var(--color--ocean-green-90))}.green{background-color:var(--ez-underface--custom-background-color, var(--color--green-600))}.light-gray{background-color:var(--ez-underface--custom-background-color, var(--color--gray-80))}.dark-petroleum{background-color:var(--ez-underface--custom-background-color, var(--color--petroleum-900))}.ocean-green{background-color:var(--ez-underface--custom-background-color, var(--color--ocean-green-600))}";export{n as ez_underface}
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e,g as h}from"./p-e4c7eb39.js";import{C as o}from"./p-ec7db713.js";import{ObjectUtils as r,StringUtils as a,ElementIDUtils as n}from"@sankhyalabs/core";import{A as l}from"./p-baec56c9.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as c}from"./p-a61fdd20.js";import{S as d}from"./p-30ffb9ed.js";import{r as u,a as v}from"./p-40a60148.js";const p=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezEmptySearch=i(this,"ezEmptySearch",7),this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._showLoadingDescription=!1,this._criteria=void 0,this.value=void 0,this.label=void 0,this.enabled=!0,this.errorMessage=void 0,this.optionLoader=void 0,this.contextProperties=void 0,this.showSelectedValue=!0,this.showOptionValue=!0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!1,this.mode="regular",this.canShowError=!0,this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.ignoreLimitCharsToSearch=!1,this.options=void 0,this.suppressSearch=!1,this.ensureClearButtonVisible=!1,this.suppressPreLoad=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0,this.hideDescriptionInput=!1}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,!(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())&&this.errorMessage&&this.setInputValue())}getValue(t){return"object"==typeof t?null==t?void 0:t.value:t}validateNewValue(t,i){const s=this.getValue(t),e=this.getValue(i);return!("[object Object]"===s||s===e)}async observeValue(t,i){if(this._textInput&&this.validateNewValue(t,i)){if("string"==typeof t)return void await this.handleValueAsString(t);const i=this.getSelectedOption(t),s=this.getSelectedOption(this._currentValue);this.isDifferentValues(s,i)&&(this._currentValue=i,this.setInputValue(),this.ezChange.emit(null!=i?i:void 0)),this.resetOptions()}}observeOptions(t,i){!t.length&&this.suppressPreLoad||(null==t?void 0:t.join(""))!==(null==i?void 0:i.join(""))&&this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.value))}),100)}:t=>t(this.value))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}async handleValueAsString(t){this.getSelectedOption(t)?this.setInputValue():(await this.loadDescriptionValue(t),this._currentValue&&(this.setInputValue(),this.ezChange.emit(this.value),this._currentValue=this.value))}isDifferentValues(t,i){return r.objectToString(t||{})!==r.objectToString(i||{})}getFormattedText(t){if(null==t)return;let i=this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label;return i=null==i?void 0:i.replace(new RegExp(this._startHighlightTag,"g"),"").replace(new RegExp(this._endHighlightTag,"g"),""),i}getText(){const t=this.getSelectedOption(this._currentValue),i=this.getFormattedText(t);return u(i)}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t?Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}):t}updateVisibleOptions(){let t=this._source||[];this._visibleOptions=this.suppressEmptyOption?t:[{value:void 0,label:""}].concat(t),this._maxWidthValue=this.getMaxWidthValue()}getMaxWidthValue(){var t;const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}showOptions(){this.enabled&&(this.isOptionsVisible()||this._ezPopOverPlusElement.showUnder(this._textInput))}hideOptions(){this._ezPopOverPlusElement.hide()}isOptionsVisible(){return this._ezPopOverPlusElement.opened}selectCurrentOption(t=!0){void 0!==this._preSelection?(this.selectOption(this._visibleOptions[this._preSelection],t),this._preSelection=void 0):this.controlListWithOnlyOne()}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,this._showLoadingDescription=!0,t.then((t=>{this.updateSource(t)})).finally((()=>{this._showLoading=!1,this._showLoadingDescription=!1})),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1,this.controlEmptySearch(!1))):this.selectOption(t))}clearSource(){this._source=[],this.updateVisibleOptions()}selectOption(t,i=!0){var s,e;const h=this.getSelectedOption(this.value),o=Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}),r=Object.assign(Object.assign({},o),{value:u(null==o?void 0:o.value),label:u(null==o?void 0:o.label)});if((null===(s=null==h?void 0:h.value)||void 0===s?void 0:s.toString())!==(null===(e=null==r?void 0:r.value)||void 0===e?void 0:e.toString())||null==h&&null!=r&&"value"in r){const t=(null==r?void 0:r.value)?r:void 0;this.value=t,this._currentValue=t}else this.setInputValue(),this.resetOptions();this._visibleOptions=[],this.clearSource(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i},this.contextProperties):this.options)}cancelPreselection(){!this._textInput.value&&this._currentValue&&this._source.length>0?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue()}),this._deboucingTime),this.resetOptions()}setInputValue(t=!0){const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null,this._currentValue=null,this.ezChange.emit(null)}controlListWithOnlyOne(t=!0){var i,s;const e=null===(i=this._visibleOptions)||void 0===i?void 0:i.filter((t=>""!==t.label&&null!=t.value));if((null==e?void 0:e.length)>0){const i=new RegExp(this._startHighlightTag,"g"),h=new RegExp(this._endHighlightTag,"g");let o=a.decodeHtmlEntities(e[0].label);const r={value:null===(s=e[0].value)||void 0===s?void 0:s.replace(i,"").replace(h,""),label:null==o?void 0:o.replace(i,"").replace(h,"")};this.selectOption(r,t)}}controlEmptySearch(t=!0){var i;(null===(i=this._visibleOptions)||void 0===i?void 0:i.length)?this.controlListWithOnlyOne(t):(this.clearSearch(),l.info(this.i18n("ez-search.emptyList")))}async loadDescriptionValue(t){var i,s,e;if(null==t)return;if((null===(i=this.options)||void 0===i?void 0:i.length)>0)return void this.loadOptionValue(t);const h={mode:this.hideDescriptionInput?d.LOAD_DESCRIPTION:d.PREDICTIVE,argument:t};try{const t=await(null===(s=this.optionLoader)||void 0===s?void 0:s.call(this,h,this.contextProperties));if(null==t)return;t instanceof Promise?t.then((t=>{this.setDescriptionValue(t)})):this.setDescriptionValue(t)}catch(t){throw"WarningException"===(null===(e=null==t?void 0:t.constructor)||void 0===e?void 0:e.name)&&(this.errorMessage=t.message),t}}setDescriptionValue(t){const i=(null==t?void 0:t[0])||t;null!=i&&Object.keys(i).length?(this._currentValue=i?Object.assign(Object.assign({},i),{value:v(i.value),label:v(i.label)}):i,this.value=this._currentValue,this.setTextInputValue()):this.showNoResultMessage()}setTextInputValue(){if(this._textInput&&null==this._textInput.value){if(null==this.value)return;const t="string"==typeof this.value?this.value:this.getFormattedText(this.value);this._textInput.value=u(t)}}loadOptionValue(t){var i;const s=null===(i=this.options)||void 0===i?void 0:i.find((i=>i.value===t));null!=s?this.selectOption(s):this.showNoResultMessage()}async showNoResultMessage(){var t;const i="string"==typeof this.value?this.value:null===(t=this.value)||void 0===t?void 0:t.value;this.clearSearch(),this.ezEmptySearch.emit(i);const s=this.i18n("ez-search.emptySearch",{field:this.getFieldLabel()});this.errorMessage=s,await l.info(s)}getFieldLabel(){var t;return null===(t=this.label)||void 0===t?void 0:t.replace(this.i18n("app.requiredInfo"),"").toUpperCase()}resetOptions(){this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}async handleInitialValue(){if(!this.getValue(this.value))return;if("string"==typeof this.value)return void await this.handleValueAsString(this.value);let t=this.getFormattedText(this.value);t=u(t),this._textInput.value=t}async componentWillLoad(){if(this.i18n=await c(),void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value"),e=t.getAttribute("details");s||(s=i),this.options.push({label:i,value:s,details:e}),t.hidden=!0}))}this.updateSource([])}componentDidRender(){var t;null===(t=this._optionsList)||void 0===t||t.querySelectorAll(".item").forEach((t=>{n.addIDInfoIfNotExists(t,"itemSearch")}))}async componentDidLoad(){this._currentValue=this.value,o.applyVarsTextInput(this.el,this._textInput),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)}))})),this._intersectionObserver=new IntersectionObserver((t=>{t.forEach((t=>{!t.isIntersecting&&this._ezPopOverPlusElement&&this._ezPopOverPlusElement.hide()}))}),{threshold:.1}),this._textInput&&this._intersectionObserver.observe(this._textInput),await this.handleInitialValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),null===(i=this._intersectionObserver)||void 0===i||i.disconnect()}handlerIconClick(){this.loadOptions(d.ADVANCED)}buildNumberArgument(t){return this.isTextSearch?NaN:Number(t||void 0)}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim(),e=this.buildNumberArgument(s);this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this._showLoading=!1,this.clearSource(),this.ignoreLimitCharsToSearch||!isNaN(e)||s.length>=this._limitCharsToSearch?(this._showLoading=!0,this._changeDeboucingTimeout=window.setTimeout((()=>{this.loadOptions(d.PREDICTIVE,isNaN(e)?s:e.toString())}),this._deboucingTime),this.showOptions()):this.hideOptions()):(this.hideOptions(),this._showLoading=!1,this.clearSource())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}async keyDownHandler(t){switch(this._tabPressed=!1,t.ctrlKey&&("f"!==t.key&&"F"!==t.key||(this.loadOptions(d.ADVANCED),t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())),t.key){case"ArrowDown":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),this.isOptionsVisible()||this.showOptions(),await this._searchList.nextOption();break;case"ArrowUp":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),await this._searchList.previousOption();break;case"Enter":this.handleEventPropagation(t),this.selectCurrentOption();break;case"Escape":this.cancelPreselection();break;case"Tab":this._tabPressed=!0,this.selectCurrentOption(!1)}}handleEventPropagation(t){this._ezPopOverPlusElement.opened&&this.stopPropagateEnterKeyEvent&&t.stopPropagation()}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}canShowLoadSpinDescription(){return this._showLoadingDescription&&!this._ezPopOverPlusElement.opened}onChangePreSelection(t){this._preSelection=t}render(){var t;return n.addIDInfoIfNotExists(this.el,"input"),s(e,null,s("ez-text-input",{"data-element-id":n.getInternalIDInfo("textInput"),class:this.suppressSearch?"suppressed-search-input":"",ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder},s("button",{class:"btn",slot:"leftIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},this.canShowLoadSpinDescription()?s("div",{class:"message__loading"}):s("ez-icon",{iconName:"search"})),(null===(t=this._textInput)||void 0===t?void 0:t.value)&&(this._criteria||this.value)||this.ensureClearButtonVisible?s("button",{class:"btn btn__close",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.clearSearch()},s("ez-icon",{iconName:"close"})):void 0),s("ez-popover-plus",{ref:t=>this._ezPopOverPlusElement=t,autoClose:!1,overlayType:"none",useAnchorSize:!0,anchorElement:[this._textInput,this.el],"data-element-id":this.el.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("search-list",{ref:t=>this._searchList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-search.emptyList"),canShowListOptions:this.canShowListOptions(),value:this.value,showOptionValue:this.showOptionValue,preSelection:this._preSelection,onChangeValue:({detail:t})=>this.selectOption(t),onChangePreSelection:({detail:t})=>this.onChangePreSelection(t)})))}get el(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};p.style=":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";export{p as ez_search}
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-23a36bb6.js";import{C as o}from"./p-ec7db713.js";import{ObjectUtils as r,StringUtils as a,ElementIDUtils as n}from"@sankhyalabs/core";import{A as l}from"./p-baec56c9.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as c}from"./p-a61fdd20.js";import{S as d}from"./p-30ffb9ed.js";import{r as u,a as v}from"./p-40a60148.js";const p=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezEmptySearch=i(this,"ezEmptySearch",7),this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._showLoadingDescription=!1,this._criteria=void 0,this.value=void 0,this.label=void 0,this.enabled=!0,this.errorMessage=void 0,this.optionLoader=void 0,this.contextProperties=void 0,this.showSelectedValue=!0,this.showOptionValue=!0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!1,this.mode="regular",this.canShowError=!0,this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.ignoreLimitCharsToSearch=!1,this.options=void 0,this.suppressSearch=!1,this.ensureClearButtonVisible=!1,this.suppressPreLoad=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0,this.hideDescriptionInput=!1}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,!(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())&&this.errorMessage&&this.setInputValue())}getValue(t){return"object"==typeof t?null==t?void 0:t.value:t}validateNewValue(t,i){const s=this.getValue(t),e=this.getValue(i);return!("[object Object]"===s||s===e)}async observeValue(t,i){if(this._textInput&&this.validateNewValue(t,i)){if("string"==typeof t)return void await this.handleValueAsString(t);const i=this.getSelectedOption(t),s=this.getSelectedOption(this._currentValue);this.isDifferentValues(s,i)&&(this._currentValue=i,this.setInputValue(),this.ezChange.emit(null!=i?i:void 0)),this.resetOptions()}}observeOptions(t,i){!t.length&&this.suppressPreLoad||(null==t?void 0:t.join(""))!==(null==i?void 0:i.join(""))&&this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.value))}),100)}:t=>t(this.value))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}async handleValueAsString(t){this.getSelectedOption(t)?this.setInputValue():(await this.loadDescriptionValue(t),this._currentValue&&(this.setInputValue(),this.ezChange.emit(this.value),this._currentValue=this.value))}isDifferentValues(t,i){return r.objectToString(t||{})!==r.objectToString(i||{})}getFormattedText(t){if(null==t)return;let i=this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label;return i=null==i?void 0:i.replace(new RegExp(this._startHighlightTag,"g"),"").replace(new RegExp(this._endHighlightTag,"g"),""),i}getText(){const t=this.getSelectedOption(this._currentValue),i=this.getFormattedText(t);return u(i)}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t?Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}):t}updateVisibleOptions(){let t=this._source||[];this._visibleOptions=this.suppressEmptyOption?t:[{value:void 0,label:""}].concat(t),this._maxWidthValue=this.getMaxWidthValue()}getMaxWidthValue(){var t;const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}showOptions(){this.enabled&&(this.isOptionsVisible()||this._ezPopOverPlusElement.showUnder(this._textInput))}hideOptions(){this._ezPopOverPlusElement.hide()}isOptionsVisible(){return this._ezPopOverPlusElement.opened}selectCurrentOption(t=!0){void 0!==this._preSelection?(this.selectOption(this._visibleOptions[this._preSelection],t),this._preSelection=void 0):this.controlListWithOnlyOne()}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,this._showLoadingDescription=!0,t.then((t=>{this.updateSource(t)})).finally((()=>{this._showLoading=!1,this._showLoadingDescription=!1})),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1,this.controlEmptySearch(!1))):this.selectOption(t))}clearSource(){this._source=[],this.updateVisibleOptions()}selectOption(t,i=!0){var s,e;const h=this.getSelectedOption(this.value),o=Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}),r=Object.assign(Object.assign({},o),{value:u(null==o?void 0:o.value),label:u(null==o?void 0:o.label)});if((null===(s=null==h?void 0:h.value)||void 0===s?void 0:s.toString())!==(null===(e=null==r?void 0:r.value)||void 0===e?void 0:e.toString())||null==h&&null!=r&&"value"in r){const t=(null==r?void 0:r.value)?r:void 0;this.value=t,this._currentValue=t}else this.setInputValue(),this.resetOptions();this._visibleOptions=[],this.clearSource(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i},this.contextProperties):this.options)}cancelPreselection(){!this._textInput.value&&this._currentValue&&this._source.length>0?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue()}),this._deboucingTime),this.resetOptions()}setInputValue(t=!0){const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null,this._currentValue=null,this.ezChange.emit(null)}controlListWithOnlyOne(t=!0){var i,s;const e=null===(i=this._visibleOptions)||void 0===i?void 0:i.filter((t=>""!==t.label&&null!=t.value));if((null==e?void 0:e.length)>0){const i=new RegExp(this._startHighlightTag,"g"),h=new RegExp(this._endHighlightTag,"g");let o=a.decodeHtmlEntities(e[0].label);const r={value:null===(s=e[0].value)||void 0===s?void 0:s.replace(i,"").replace(h,""),label:null==o?void 0:o.replace(i,"").replace(h,"")};this.selectOption(r,t)}}controlEmptySearch(t=!0){var i;(null===(i=this._visibleOptions)||void 0===i?void 0:i.length)?this.controlListWithOnlyOne(t):(this.clearSearch(),l.info(this.i18n("ez-search.emptyList")))}async loadDescriptionValue(t){var i,s,e;if(null==t)return;if((null===(i=this.options)||void 0===i?void 0:i.length)>0)return void this.loadOptionValue(t);const h={mode:this.hideDescriptionInput?d.LOAD_DESCRIPTION:d.PREDICTIVE,argument:t};try{const t=await(null===(s=this.optionLoader)||void 0===s?void 0:s.call(this,h,this.contextProperties));if(null==t)return;t instanceof Promise?t.then((t=>{this.setDescriptionValue(t)})):this.setDescriptionValue(t)}catch(t){throw"WarningException"===(null===(e=null==t?void 0:t.constructor)||void 0===e?void 0:e.name)&&(this.errorMessage=t.message),t}}setDescriptionValue(t){const i=(null==t?void 0:t[0])||t;null!=i&&Object.keys(i).length?(this._currentValue=i?Object.assign(Object.assign({},i),{value:v(i.value),label:v(i.label)}):i,this.value=this._currentValue,this.setTextInputValue()):this.showNoResultMessage()}setTextInputValue(){if(this._textInput&&null==this._textInput.value){if(null==this.value)return;const t="string"==typeof this.value?this.value:this.getFormattedText(this.value);this._textInput.value=u(t)}}loadOptionValue(t){var i;const s=null===(i=this.options)||void 0===i?void 0:i.find((i=>i.value===t));null!=s?this.selectOption(s):this.showNoResultMessage()}async showNoResultMessage(){var t;const i="string"==typeof this.value?this.value:null===(t=this.value)||void 0===t?void 0:t.value;this.clearSearch(),this.ezEmptySearch.emit(i);const s=this.i18n("ez-search.emptySearch",{field:this.getFieldLabel()});this.errorMessage=s,await l.info(s)}getFieldLabel(){var t;return null===(t=this.label)||void 0===t?void 0:t.replace(this.i18n("app.requiredInfo"),"").toUpperCase()}resetOptions(){this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}async handleInitialValue(){if(!this.getValue(this.value))return;if("string"==typeof this.value)return void await this.handleValueAsString(this.value);let t=this.getFormattedText(this.value);t=u(t),this._textInput.value=t}async componentWillLoad(){if(this.i18n=await c(),void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value"),e=t.getAttribute("details");s||(s=i),this.options.push({label:i,value:s,details:e}),t.hidden=!0}))}this.updateSource([])}componentDidRender(){var t;null===(t=this._optionsList)||void 0===t||t.querySelectorAll(".item").forEach((t=>{n.addIDInfoIfNotExists(t,"itemSearch")}))}async componentDidLoad(){this._currentValue=this.value,o.applyVarsTextInput(this.el,this._textInput),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)}))})),this._intersectionObserver=new IntersectionObserver((t=>{t.forEach((t=>{!t.isIntersecting&&this._ezPopOverPlusElement&&this._ezPopOverPlusElement.hide()}))}),{threshold:.1}),this._textInput&&this._intersectionObserver.observe(this._textInput),await this.handleInitialValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),null===(i=this._intersectionObserver)||void 0===i||i.disconnect()}handlerIconClick(){this.loadOptions(d.ADVANCED)}buildNumberArgument(t){return this.isTextSearch?NaN:Number(t||void 0)}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim(),e=this.buildNumberArgument(s);this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this._showLoading=!1,this.clearSource(),this.ignoreLimitCharsToSearch||!isNaN(e)||s.length>=this._limitCharsToSearch?(this._showLoading=!0,this._changeDeboucingTimeout=window.setTimeout((()=>{this.loadOptions(d.PREDICTIVE,isNaN(e)?s:e.toString())}),this._deboucingTime),this.showOptions()):this.hideOptions()):(this.hideOptions(),this._showLoading=!1,this.clearSource())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}async keyDownHandler(t){switch(this._tabPressed=!1,t.ctrlKey&&("f"!==t.key&&"F"!==t.key||(this.loadOptions(d.ADVANCED),t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())),t.key){case"ArrowDown":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),this.isOptionsVisible()||this.showOptions(),await this._searchList.nextOption();break;case"ArrowUp":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),await this._searchList.previousOption();break;case"Enter":this.handleEventPropagation(t),this.selectCurrentOption();break;case"Escape":this.cancelPreselection();break;case"Tab":this._tabPressed=!0,this.selectCurrentOption(!1)}}handleEventPropagation(t){this._ezPopOverPlusElement.opened&&this.stopPropagateEnterKeyEvent&&t.stopPropagation()}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}canShowLoadSpinDescription(){return this._showLoadingDescription&&!this._ezPopOverPlusElement.opened}onChangePreSelection(t){this._preSelection=t}render(){var t;return n.addIDInfoIfNotExists(this.el,"input"),s(e,null,s("ez-text-input",{"data-element-id":n.getInternalIDInfo("textInput"),class:this.suppressSearch?"suppressed-search-input":"",ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder},s("button",{class:"btn",slot:"leftIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},this.canShowLoadSpinDescription()?s("div",{class:"message__loading"}):s("ez-icon",{iconName:"search"})),(null===(t=this._textInput)||void 0===t?void 0:t.value)&&(this._criteria||this.value)||this.ensureClearButtonVisible?s("button",{class:"btn btn__close",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.clearSearch()},s("ez-icon",{iconName:"close"})):void 0),s("ez-popover-plus",{ref:t=>this._ezPopOverPlusElement=t,autoClose:!1,overlayType:"none",useAnchorSize:!0,anchorElement:[this._textInput,this.el],"data-element-id":this.el.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("search-list",{ref:t=>this._searchList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-search.emptyList"),canShowListOptions:this.canShowListOptions(),value:this.value,showOptionValue:this.showOptionValue,preSelection:this._preSelection,onChangeValue:({detail:t})=>this.selectOption(t),onChangePreSelection:({detail:t})=>this.onChangePreSelection(t)})))}get el(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};p.style=":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";export{p as ez_search}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,H as e,g as l}from"./p-e4c7eb39.js";import{KeyboardManager as s,FloatingManager as n}from"@sankhyalabs/core";import{i as a}from"./p-a61fdd20.js";const p=class{constructor(o){t(this,o),this.ezClosePopup=i(this,"ezClosePopup",7),this.ezPopupAction=i(this,"ezPopupAction",7),this.handleFooterSlotChange=t=>{this._hasFooterSlotContent=t.target.assignedElements().length>0},this._hasFooterSlotContent=!1,this.size="medium",this.opened=!1,this.useHeader=!0,this.heightMode="full",this.ezTitle=void 0,this.enabledScroll=!0,this.autoClose=!0,this.footerButtons=[]}observeConfig(){this.manageOverflow()}async componentWillLoad(){this.i18n=await a()}componentDidLoad(){this.popUpFocus(),this._keyboardManager=new s({propagate:!1,element:this._element,enableShadowDom:!0}).bind("Enter",this.ezPopupAction.emit.bind("OK")).bind("Escape",(()=>this.closePopup())).bind("Esc",(()=>this.closePopup()))}disconnectedCallback(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}closePopup(){this.opened=!1,this.manageOverflow(),this.ezClosePopup.emit()}manageOverflow(){window.document.body.style.overflow=this.opened?"hidden":""}manageOverlay(){this.opened?this._overlayId=n.subscribeOverlayControl(this._overlayRef):n.unsubscribeOverlayControl(this._overlayRef||this._overlayId)}popUpFocus(){this.opened&&this._popupRef&&this._popupRef.focus()}getGridSize(){var t;const i={"x-small":"col--sd-3 ez-popup__size-limit--x-small",small:"col--sd-5",medium:"col--sd-6",large:"col--sd-9","x-large":"col--sd-11",default:"ez-popup__size-limit--x-small",auto:""};return this.size&&i.hasOwnProperty(this.size)&&null!==(t=i[this.size])&&void 0!==t?t:i.medium}getDialogClass(){let t="popup__container";return"auto"===this.heightMode&&(t+=" popup__container--auto"),t+=` ${this.getGridSize()}`,t}componentDidRender(){this.manageOverlay()}handleAutoClose(t){if(!this.opened||!this._popupRef||!this.autoClose)return;if(this._popupRef.contains(t.target))return;const i=this._popupRef.querySelector("slot");if(i&&i.assignedElements().length>0){const o=i.assignedElements();for(const i of o)if(i.contains(t.target))return}this._popupRef.shadowRoot&&this._popupRef.shadowRoot.contains(t.target)||this.closePopup()}handleDefaultPropsButtonsByIndex(t){switch(t){case 0:return{label:this.i18n?this.i18n("app.confirm"):"Confirmar",variant:"primary",size:"small",onClick:()=>{this.closePopup(),this.ezPopupAction.emit("OK")}};case 1:return{label:this.i18n?this.i18n("app.cancel"):"Cancelar",variant:"secondary",size:"small",onClick:()=>{this.closePopup()}};case 2:return{label:this.i18n?this.i18n("app.close"):"Fechar",variant:"tertiary",size:"small",onClick:()=>{this.closePopup()}}}}renderFooterButtons(){return this.footerButtons.slice(0,3).map(((t,i)=>o("ez-button",Object.assign({key:i},this.handleDefaultPropsButtonsByIndex(i),t))))}render(){return o(e,null,this.opened&&o("div",{class:"overlay",ref:t=>this._overlayRef=t,tabIndex:-1,onClick:this.handleAutoClose.bind(this)},o("dialog",{ref:t=>this._popupRef=t,class:this.getDialogClass()},this.useHeader&&o("header",{class:"popup__header"},!!this.ezTitle&&o("h1",{class:"popup__title"},this.ezTitle),o("ez-button",{class:this.ezTitle?"btn-close":"btn-close btn-close--solo",variant:"tertiary",mode:"icon",iconName:"close",size:"small",onClick:this.closePopup.bind(this)})),o("main",{class:{"popup__expandable-content":!0,"popup__overflow-y--auto":this.enabledScroll}},o("slot",null)),o("footer",{class:{popup__footer:!0,"popup_margin-top":this.footerButtons.length>0||this._hasFooterSlotContent}},this.footerButtons.length>0&&this.renderFooterButtons(),o("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange})))))}get _element(){return l(this)}static get watchers(){return{opened:["observeConfig"]}}};p.style=':host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, "Roboto");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup__container{width:auto;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{flex-grow:1;box-sizing:border-box;width:100%;font-family:var(--font--pattern, "Roboto");font-size:var(--font-size--default, 14px);color:var(--title--primary, #00281D);font-weight:var(--font-weight--regular, 400)}.popup__header{flex-shrink:0;width:100%;display:flex;align-items:center;margin-bottom:var(--space--16, 16px)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:var(--line-height--32, 32px)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close--solo{width:100%}.popup__footer{flex-shrink:0;display:flex;width:100%;flex-direction:row-reverse;gap:var(--space--8, 8px)}.popup_margin-top{margin-top:var(--space--16, 16px)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{p as ez_popup}
1
+ import{r as t,c as i,h as o,H as e,g as l}from"./p-23a36bb6.js";import{KeyboardManager as s,FloatingManager as n}from"@sankhyalabs/core";import{i as a}from"./p-a61fdd20.js";const p=class{constructor(o){t(this,o),this.ezClosePopup=i(this,"ezClosePopup",7),this.ezPopupAction=i(this,"ezPopupAction",7),this.handleFooterSlotChange=t=>{this._hasFooterSlotContent=t.target.assignedElements().length>0},this._hasFooterSlotContent=!1,this.size="medium",this.opened=!1,this.useHeader=!0,this.heightMode="full",this.ezTitle=void 0,this.enabledScroll=!0,this.autoClose=!0,this.footerButtons=[]}observeConfig(){this.manageOverflow()}async componentWillLoad(){this.i18n=await a()}componentDidLoad(){this.popUpFocus(),this._keyboardManager=new s({propagate:!1,element:this._element,enableShadowDom:!0}).bind("Enter",this.ezPopupAction.emit.bind("OK")).bind("Escape",(()=>this.closePopup())).bind("Esc",(()=>this.closePopup()))}disconnectedCallback(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}closePopup(){this.opened=!1,this.manageOverflow(),this.ezClosePopup.emit()}manageOverflow(){window.document.body.style.overflow=this.opened?"hidden":""}manageOverlay(){this.opened?this._overlayId=n.subscribeOverlayControl(this._overlayRef):n.unsubscribeOverlayControl(this._overlayRef||this._overlayId)}popUpFocus(){this.opened&&this._popupRef&&this._popupRef.focus()}getGridSize(){var t;const i={"x-small":"col--sd-3 ez-popup__size-limit--x-small",small:"col--sd-5",medium:"col--sd-6",large:"col--sd-9","x-large":"col--sd-11",default:"ez-popup__size-limit--x-small",auto:""};return this.size&&i.hasOwnProperty(this.size)&&null!==(t=i[this.size])&&void 0!==t?t:i.medium}getDialogClass(){let t="popup__container";return"auto"===this.heightMode&&(t+=" popup__container--auto"),t+=` ${this.getGridSize()}`,t}componentDidRender(){this.manageOverlay()}handleAutoClose(t){if(!this.opened||!this._popupRef||!this.autoClose)return;if(this._popupRef.contains(t.target))return;const i=this._popupRef.querySelector("slot");if(i&&i.assignedElements().length>0){const o=i.assignedElements();for(const i of o)if(i.contains(t.target))return}this._popupRef.shadowRoot&&this._popupRef.shadowRoot.contains(t.target)||this.closePopup()}handleDefaultPropsButtonsByIndex(t){switch(t){case 0:return{label:this.i18n?this.i18n("app.confirm"):"Confirmar",variant:"primary",size:"small",onClick:()=>{this.closePopup(),this.ezPopupAction.emit("OK")}};case 1:return{label:this.i18n?this.i18n("app.cancel"):"Cancelar",variant:"secondary",size:"small",onClick:()=>{this.closePopup()}};case 2:return{label:this.i18n?this.i18n("app.close"):"Fechar",variant:"tertiary",size:"small",onClick:()=>{this.closePopup()}}}}renderFooterButtons(){return this.footerButtons.slice(0,3).map(((t,i)=>o("ez-button",Object.assign({key:i},this.handleDefaultPropsButtonsByIndex(i),t))))}render(){return o(e,null,this.opened&&o("div",{class:"overlay",ref:t=>this._overlayRef=t,tabIndex:-1,onClick:this.handleAutoClose.bind(this)},o("dialog",{ref:t=>this._popupRef=t,class:this.getDialogClass()},this.useHeader&&o("header",{class:"popup__header"},!!this.ezTitle&&o("h1",{class:"popup__title"},this.ezTitle),o("ez-button",{class:this.ezTitle?"btn-close":"btn-close btn-close--solo",variant:"tertiary",mode:"icon",iconName:"close",size:"small",onClick:this.closePopup.bind(this)})),o("main",{class:{"popup__expandable-content":!0,"popup__overflow-y--auto":this.enabledScroll}},o("slot",null)),o("footer",{class:{popup__footer:!0,"popup_margin-top":this.footerButtons.length>0||this._hasFooterSlotContent}},this.footerButtons.length>0&&this.renderFooterButtons(),o("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange})))))}get _element(){return l(this)}static get watchers(){return{opened:["observeConfig"]}}};p.style=':host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, "Roboto");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup__container{width:auto;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{flex-grow:1;box-sizing:border-box;width:100%;font-family:var(--font--pattern, "Roboto");font-size:var(--font-size--default, 14px);color:var(--title--primary, #00281D);font-weight:var(--font-weight--regular, 400)}.popup__header{flex-shrink:0;width:100%;display:flex;align-items:center;margin-bottom:var(--space--16, 16px)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:var(--line-height--32, 32px)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close--solo{width:100%}.popup__footer{flex-shrink:0;display:flex;width:100%;flex-direction:row-reverse;gap:var(--space--8, 8px)}.popup_margin-top{margin-top:var(--space--16, 16px)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{p as ez_popup}
Binary file
@@ -1 +1 @@
1
- import{r as e,h as a,H as t,g as i}from"./p-e4c7eb39.js";import{ElementIDUtils as d}from"@sankhyalabs/core";var s;!function(e){e.EXTRA_LARGE="extra-large",e.LARGE="large",e.MEDIUM="medium",e.SMALL_MEDIUM="small-medium",e.SMALL="small",e.EXTRA_SMALL="extra-small"}(s||(s={}));const n=class{constructor(a){e(this,a),this._sizes={[s.EXTRA_LARGE]:{sufix:"xl"},[s.LARGE]:{sufix:"lg"},[s.MEDIUM]:{sufix:"md"},[s.SMALL_MEDIUM]:{sufix:"sm"},[s.SMALL]:{sufix:"xs"},[s.EXTRA_SMALL]:{sufix:"2xs"}},this.hasSlot=!1,this.size="small",this.label=void 0,this.iconLeft=void 0,this.iconRight=void 0,this.position={horizontal:"right",vertical:"top"},this.alignItems="center"}getIconSize(){switch(this.size){case"large":return"large";case"medium":case"small-medium":return"small";case"small":return"x-small";default:return null}}getAlignItemsClass(){switch(this.alignItems){case"flex-end":return"end";case"flex-start":return"start";default:return"center"}}componentDidLoad(){this._element&&d.addIDInfo(this._element),this._badge&&d.addIDInfo(this._badge,"ezBadge",{id:"embedded"})}handleSlotChange(){this.hasSlot=!0}validateIconLeft(){return this.iconLeft&&""!==this.iconLeft.trim()}validateIconRight(){return this.iconRight&&""!==this.iconRight.trim()}validateLabel(){return this.label&&""!==this.label.trim()}createContainerClassName(){let e=this._sizes[this.size].sufix,a=["badge__content","badge__content--icon-align-"+this.getAlignItemsClass()];return this.hasSlot&&(a.push("badge__content--fill-"+e),"bottom"==this.position.vertical&&"right"==this.position.horizontal&&a.push("badge__content--fill-bottom-right"),"bottom"==this.position.vertical&&"left"==this.position.horizontal&&a.push("badge__content--fill-bottom-left"),"top"==this.position.vertical&&"right"==this.position.horizontal&&a.push("badge__content--fill-top-right"),"top"==this.position.vertical&&"left"==this.position.horizontal&&a.push("badge__content--fill-top-left")),a.push(this.label?"badge__content--text-"+e:this.iconLeft||this.iconRight?"badge__content--icon-"+e:"badge__content--fill-"+e),a.join(" ")}render(){return a(t,null,a("div",{class:"badge"},a("div",null,a("slot",{name:"child-badge",onSlotchange:()=>{this.handleSlotChange()}})),a("div",{class:this.createContainerClassName(),ref:e=>this._badge=e},this.validateIconLeft()&&a("ez-icon",{class:"icon",iconName:this.iconLeft,size:this.getIconSize()}),this.validateLabel()&&a("label",{title:this.label},this.label),this.validateIconRight()&&a("ez-icon",{class:"icon",iconName:this.iconRight,size:this.getIconSize()}))))}get _element(){return i(this)}};n.style=":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-align-center{align-items:center}.badge__content--icon-align-start{align-items:flex-start}.badge__content--icon-align-end{align-items:flex-end}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";export{n as ez_badge}
1
+ import{r as e,h as a,H as t,g as i}from"./p-23a36bb6.js";import{ElementIDUtils as d}from"@sankhyalabs/core";var s;!function(e){e.EXTRA_LARGE="extra-large",e.LARGE="large",e.MEDIUM="medium",e.SMALL_MEDIUM="small-medium",e.SMALL="small",e.EXTRA_SMALL="extra-small"}(s||(s={}));const n=class{constructor(a){e(this,a),this._sizes={[s.EXTRA_LARGE]:{sufix:"xl"},[s.LARGE]:{sufix:"lg"},[s.MEDIUM]:{sufix:"md"},[s.SMALL_MEDIUM]:{sufix:"sm"},[s.SMALL]:{sufix:"xs"},[s.EXTRA_SMALL]:{sufix:"2xs"}},this.hasSlot=!1,this.size="small",this.label=void 0,this.iconLeft=void 0,this.iconRight=void 0,this.position={horizontal:"right",vertical:"top"},this.alignItems="center"}getIconSize(){switch(this.size){case"large":return"large";case"medium":case"small-medium":return"small";case"small":return"x-small";default:return null}}getAlignItemsClass(){switch(this.alignItems){case"flex-end":return"end";case"flex-start":return"start";default:return"center"}}componentDidLoad(){this._element&&d.addIDInfo(this._element),this._badge&&d.addIDInfo(this._badge,"ezBadge",{id:"embedded"})}handleSlotChange(){this.hasSlot=!0}validateIconLeft(){return this.iconLeft&&""!==this.iconLeft.trim()}validateIconRight(){return this.iconRight&&""!==this.iconRight.trim()}validateLabel(){return this.label&&""!==this.label.trim()}createContainerClassName(){let e=this._sizes[this.size].sufix,a=["badge__content","badge__content--icon-align-"+this.getAlignItemsClass()];return this.hasSlot&&(a.push("badge__content--fill-"+e),"bottom"==this.position.vertical&&"right"==this.position.horizontal&&a.push("badge__content--fill-bottom-right"),"bottom"==this.position.vertical&&"left"==this.position.horizontal&&a.push("badge__content--fill-bottom-left"),"top"==this.position.vertical&&"right"==this.position.horizontal&&a.push("badge__content--fill-top-right"),"top"==this.position.vertical&&"left"==this.position.horizontal&&a.push("badge__content--fill-top-left")),a.push(this.label?"badge__content--text-"+e:this.iconLeft||this.iconRight?"badge__content--icon-"+e:"badge__content--fill-"+e),a.join(" ")}render(){return a(t,null,a("div",{class:"badge"},a("div",null,a("slot",{name:"child-badge",onSlotchange:()=>{this.handleSlotChange()}})),a("div",{class:this.createContainerClassName(),ref:e=>this._badge=e},this.validateIconLeft()&&a("ez-icon",{class:"icon",iconName:this.iconLeft,size:this.getIconSize()}),this.validateLabel()&&a("label",{title:this.label},this.label),this.validateIconRight()&&a("ez-icon",{class:"icon",iconName:this.iconRight,size:this.getIconSize()}))))}get _element(){return i(this)}};n.style=":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-align-center{align-items:center}.badge__content--icon-align-start{align-items:flex-start}.badge__content--icon-align-end{align-items:flex-end}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";export{n as ez_badge}
Binary file
@@ -1 +1 @@
1
- import{r as t,c as e,h as r,H as a,g as o}from"./p-e4c7eb39.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const l=class{constructor(r){t(this,r),this.ezChange=e(this,"ezChange",7),this.LINE_HEIGHT=24,this.HEIGHT_RATIO=1.4,this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.rows=4,this.canShowError=!0,this.mode="regular",this.enableResize=!0,this.autoRows=!1,this.autoFocus=!1,this.alternativePlaceholder=void 0,this.forceLabelFloat=!1}observeErrorMessage(){var t,e,r,a;"string"==typeof this.errorMessage&&""!==this.errorMessage?(null===(t=this._container)||void 0===t||t.classList.add("hasError"),null===(e=this._messageBoxElem)||void 0===e||e.classList.add("hasError")):(null===(r=this._container)||void 0===r||r.classList.remove("hasError"),null===(a=this._messageBoxElem)||void 0===a||a.classList.remove("hasError"))}observeValue(t,e){this._inputElem&&t!=e&&(this.canChangeValue()&&(this._inputElem.value=this.value||""),this.adjustFloatingLabel(),this.errorMessage="",this.ezChange.emit(this.value))}observeMode(){null==this._initialRows&&(this._initialRows=this.rows>0?this.rows:void 0);const t=this._initialRows>0?this._initialRows:"slim"!=this.mode?4:2;t!==this.rows&&(this.rows=t)}observeRows(){const t=this.rows>0?this.rows:"slim"!=this.mode?4:2;t!==this.rows&&this.updateRows(t)}observeAutoRows(){var t,e;this.autoRows?(null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this.initializeResizeObserver()):null===(e=this._resizeObserver)||void 0===e||e.disconnect()}observeAlternativePlaceholder(t){this.forceLabelFloat=!!t}async appendTextToSelection(t){var e,r,a,o;const i=this._inputElem.selectionStart,l=this._inputElem.selectionEnd,s=null!==(r=null===(e=this.value)||void 0===e?void 0:e.substring(0,i))&&void 0!==r?r:"",n=null!==(o=null===(a=this.value)||void 0===a?void 0:a.substring(l))&&void 0!==o?o:"";this.value=`${s}${t}${n}`;const c=i+t.length;this._inputElem.setSelectionRange(i===l?c:i,c),await this.setFocus()}async setFocus(){this._inputElem.focus()}async setBlur(){this._inputElem.blur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}canChangeValue(){return this._inputElem&&(this.value||"")!==this._inputElem.value}adjustFloatingLabel(){if(!this.forceLabelFloat&&this.label&&this._labelElem){const t=this.value&&this.value.toString().length>0,e=this._labelElem.classList.contains("textarea__label--floated");t||this.isFocused()?e||this._labelElem.classList.add("textarea__label--floated"):e&&this._labelElem.classList.remove("textarea__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}updateRows(t){this.rows=t,this._initialRows=t}calculateMaxRows(){const t=this._hostElement.parentElement;if(!t)return;const e=Math.max((null==t?void 0:t.clientHeight)||0,this.LINE_HEIGHT);if(e>0){const t=Math.floor(e/this.LINE_HEIGHT*this.HEIGHT_RATIO);t!==this.rows&&this.updateRows(t)}}initializeResizeObserver(){if(!this.autoRows)return;const t=this._hostElement.parentElement;if(t){try{null!=this._resizeObserver&&this._resizeObserver.unobserve(t),this._resizeObserver=new ResizeObserver(this.calculateMaxRows.bind(this)),this._resizeObserver.observe(t)}catch(t){console.warn(t)}this.calculateMaxRows()}}handleFocusout(){this.adjustFloatingLabel(),this._container&&this._container.classList.contains("textarea--focus")&&this._container.classList.remove("textarea--focus")}handleChange(){this.canChangeValue()&&(this.value=this._inputElem.value)}handleFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("textarea__label--floated")&&this._labelElem.classList.add("textarea__label--floated"),this._container&&!this._container.classList.contains("textarea--focus")&&this._container.classList.add("textarea--focus")}connectedCallback(){this.initializeResizeObserver()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect()}buildPlaceholder(){return this.alternativePlaceholder?this.alternativePlaceholder:"slim"===this.mode&&this.label?this.label:""}buildLabelClass(){let t=this.enabled?"textarea__label":"textarea__label textarea__label--disabled";return this.errorMessage&&(t+=" hasError"),this.forceLabelFloat&&(t+=" textarea__label--floated"),t}renderErrorTooltip(){if(this.canShowError&&"slim"!=this.mode&&this.errorMessage)return r("div",{class:"tooltip-container"},r("ez-tooltip",{type:"error",message:this.errorMessage},r("ez-icon",{class:"tooltip-icon "+(this.errorMessage?"hasError":""),"data-element-id":i.getInternalIDInfo("tooltip-icon"),iconName:"alert-circle"})))}renderLabel(){return this.label&&"slim"!=this.mode?r("label",{ref:t=>this._labelElem=t,class:this.buildLabelClass(),onClick:()=>this._inputElem.focus(),title:this.label},this.label):null}renderTextArea(){return r("textarea",{onFocus:()=>this.handleFocus(),"data-element-id":i.getInternalIDInfo("input"),ref:t=>this._inputElem=t,value:this.value,disabled:!this.enabled,class:{"textarea--slim":"slim"===this.mode},placeholder:this.buildPlaceholder(),onInput:()=>this.handleChange(),onFocusout:()=>this.handleFocusout(),rows:this.rows})}componentDidLoad(){this.observeErrorMessage(),this.adjustFloatingLabel(),this.observeMode(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus()}))}render(){return i.addIDInfoIfNotExists(this._hostElement,"input"),r(a,null,r("div",{class:"textarea "+(this.enabled?"":"textarea--disabled"),ref:t=>this._container=t},this.renderLabel(),r("div",{class:"input-container "+(this.enableResize?"textarea--resizable":"")},this.renderTextArea(),this.renderErrorTooltip())))}get _hostElement(){return o(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],mode:["observeMode"],rows:["observeRows"],autoRows:["observeAutoRows"],alternativePlaceholder:["observeAlternativePlaceholder"]}}};l.style=":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes, #DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes, #DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800, #BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800, #BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--small, 6px);--ez-text-area__tooltip-icon--spacing:var(--space--large);--ez-text-area__tooltip-icon---width:var(--space--large);--ez-text-area__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-area__tooltip-icon---vertical-margin:10px;--ez-text-area__tooltip_icon--error--color:var(--color-alert--error-800, #BD0025);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{display:flex;flex-direction:column;height:calc(100% - 16px);box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-area__tooltip_icon--error--color)}.input-container{display:flex;align-items:center}.textarea--resizable{resize:vertical;overflow:auto;min-height:42px}";export{l as ez_text_area}
1
+ import{r as t,c as e,h as a,H as r,g as o}from"./p-23a36bb6.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const l=class{constructor(a){t(this,a),this.ezChange=e(this,"ezChange",7),this.LINE_HEIGHT=24,this.HEIGHT_RATIO=1.4,this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.rows=4,this.canShowError=!0,this.mode="regular",this.enableResize=!0,this.autoRows=!1,this.autoFocus=!1,this.alternativePlaceholder=void 0,this.forceLabelFloat=!1}observeErrorMessage(){var t,e,a,r;"string"==typeof this.errorMessage&&""!==this.errorMessage?(null===(t=this._container)||void 0===t||t.classList.add("hasError"),null===(e=this._messageBoxElem)||void 0===e||e.classList.add("hasError")):(null===(a=this._container)||void 0===a||a.classList.remove("hasError"),null===(r=this._messageBoxElem)||void 0===r||r.classList.remove("hasError"))}observeValue(t,e){this._inputElem&&t!=e&&(this.canChangeValue()&&(this._inputElem.value=this.value||""),this.adjustFloatingLabel(),this.errorMessage="",this.ezChange.emit(this.value))}observeMode(){null==this._initialRows&&(this._initialRows=this.rows>0?this.rows:void 0);const t=this._initialRows>0?this._initialRows:"slim"!=this.mode?4:2;t!==this.rows&&(this.rows=t)}observeRows(){const t=this.rows>0?this.rows:"slim"!=this.mode?4:2;t!==this.rows&&this.updateRows(t)}observeAutoRows(){var t,e;this.autoRows?(null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this.initializeResizeObserver()):null===(e=this._resizeObserver)||void 0===e||e.disconnect()}observeAlternativePlaceholder(t){this.forceLabelFloat=!!t}async appendTextToSelection(t){var e,a,r,o;const i=this._inputElem.selectionStart,l=this._inputElem.selectionEnd,s=null!==(a=null===(e=this.value)||void 0===e?void 0:e.substring(0,i))&&void 0!==a?a:"",n=null!==(o=null===(r=this.value)||void 0===r?void 0:r.substring(l))&&void 0!==o?o:"";this.value=`${s}${t}${n}`;const c=i+t.length;this._inputElem.setSelectionRange(i===l?c:i,c),await this.setFocus()}async setFocus(){this._inputElem.focus()}async setBlur(){this._inputElem.blur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}canChangeValue(){return this._inputElem&&(this.value||"")!==this._inputElem.value}adjustFloatingLabel(){if(!this.forceLabelFloat&&this.label&&this._labelElem){const t=this.value&&this.value.toString().length>0,e=this._labelElem.classList.contains("textarea__label--floated");t||this.isFocused()?e||this._labelElem.classList.add("textarea__label--floated"):e&&this._labelElem.classList.remove("textarea__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}updateRows(t){this.rows=t,this._initialRows=t}calculateMaxRows(){const t=this._hostElement.parentElement;if(!t)return;const e=Math.max((null==t?void 0:t.clientHeight)||0,this.LINE_HEIGHT);if(e>0){const t=Math.floor(e/this.LINE_HEIGHT*this.HEIGHT_RATIO);t!==this.rows&&this.updateRows(t)}}initializeResizeObserver(){if(!this.autoRows)return;const t=this._hostElement.parentElement;if(t){try{null!=this._resizeObserver&&this._resizeObserver.unobserve(t),this._resizeObserver=new ResizeObserver(this.calculateMaxRows.bind(this)),this._resizeObserver.observe(t)}catch(t){console.warn(t)}this.calculateMaxRows()}}handleFocusout(){this.adjustFloatingLabel(),this._container&&this._container.classList.contains("textarea--focus")&&this._container.classList.remove("textarea--focus")}handleChange(){this.canChangeValue()&&(this.value=this._inputElem.value)}handleFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("textarea__label--floated")&&this._labelElem.classList.add("textarea__label--floated"),this._container&&!this._container.classList.contains("textarea--focus")&&this._container.classList.add("textarea--focus")}connectedCallback(){this.initializeResizeObserver()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect()}buildPlaceholder(){return this.alternativePlaceholder?this.alternativePlaceholder:"slim"===this.mode&&this.label?this.label:""}buildLabelClass(){let t=this.enabled?"textarea__label":"textarea__label textarea__label--disabled";return this.errorMessage&&(t+=" hasError"),this.forceLabelFloat&&(t+=" textarea__label--floated"),t}renderErrorTooltip(){if(this.canShowError&&"slim"!=this.mode&&this.errorMessage)return a("div",{class:"tooltip-container"},a("ez-tooltip",{type:"error",message:this.errorMessage},a("ez-icon",{class:"tooltip-icon "+(this.errorMessage?"hasError":""),"data-element-id":i.getInternalIDInfo("tooltip-icon"),iconName:"alert-circle"})))}renderLabel(){return this.label&&"slim"!=this.mode?a("label",{ref:t=>this._labelElem=t,class:this.buildLabelClass(),onClick:()=>this._inputElem.focus(),title:this.label},this.label):null}renderTextArea(){return a("textarea",{onFocus:()=>this.handleFocus(),"data-element-id":i.getInternalIDInfo("input"),ref:t=>this._inputElem=t,value:this.value,disabled:!this.enabled,class:{"textarea--slim":"slim"===this.mode},placeholder:this.buildPlaceholder(),onInput:()=>this.handleChange(),onFocusout:()=>this.handleFocusout(),rows:this.rows})}componentDidLoad(){this.observeErrorMessage(),this.adjustFloatingLabel(),this.observeMode(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus()}))}render(){return i.addIDInfoIfNotExists(this._hostElement,"input"),a(r,null,a("div",{class:"textarea "+(this.enabled?"":"textarea--disabled"),ref:t=>this._container=t},this.renderLabel(),a("div",{class:"input-container "+(this.enableResize?"textarea--resizable":"")},this.renderTextArea(),this.renderErrorTooltip())))}get _hostElement(){return o(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],mode:["observeMode"],rows:["observeRows"],autoRows:["observeAutoRows"],alternativePlaceholder:["observeAlternativePlaceholder"]}}};l.style=":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes, #DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes, #DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800, #BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800, #BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--small, 6px);--ez-text-area__tooltip-icon--spacing:var(--space--large);--ez-text-area__tooltip-icon---width:var(--space--large);--ez-text-area__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-area__tooltip-icon---vertical-margin:10px;--ez-text-area__tooltip_icon--error--color:var(--color-alert--error-800, #BD0025);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{display:flex;flex-direction:column;height:calc(100% - 16px);box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-area__tooltip_icon--error--color)}.input-container{display:flex;align-items:center}.textarea--resizable{resize:vertical;overflow:auto;min-height:42px}";export{l as ez_text_area}
Binary file
@@ -1 +1 @@
1
- import{r as i,h as t,g as s,H as e}from"./p-e4c7eb39.js";import{JSUtils as h,ElementIDUtils as l}from"@sankhyalabs/core";const o=class{constructor(t){i(this,t),this._dataKey=""}async show(i){i!==this._focusedIndex&&0<=i&&i<this._totalStackItems&&(this.policyHideRemove(),this.policyShowAppend(i),this._focusedIndex=i)}async getSelectedIndex(){return this._focusedIndex}policyHideRemove(){let i=this._hostElem.querySelector(`#${this._dataKey}_el_${this._focusedIndex}`);this.checkElementVisibility(i)}policyShowAppend(i){let t=this._hostElem.querySelector(`#${this._dataKey}_el_${i}`);t?t.setAttribute("style","visibility: visible"):this._hostElem.append(this._elemList[i])}checkElementVisibility(i){"hide"!==i.getAttribute("hidePolicy")&&i.getAttribute("hidePolicy")?"remove"===i.getAttribute("hidePolicy")&&i.remove():i.setAttribute("style","display: none")}componentWillRender(){this._dataKey="id_".concat(h.generateUUID()),this._elemList||(this._elemList=[],this._focusedIndex=0,this._totalStackItems=0,this._hostElem.classList.add("ez-view-stack__container"),this._hostElem.querySelectorAll(":scope > stack-item").forEach(((i,t)=>{i.setAttribute("id",`${this._dataKey}_el_${t}`),0!==t?this.checkElementVisibility(i):i.setAttribute("style","visibility: visible"),this._totalStackItems++,this._elemList.push(i)})))}componentDidLoad(){l.addIDInfo(this._hostElem)}disconectCallback(){this._hostElem=null,this._elemList=null}render(){return t(e,null)}get _hostElem(){return s(this)}};o.style=":host{width:100%;height:100%}.ez-view-stack__container{width:100%;height:100%}";export{o as ez_view_stack}
1
+ import{r as i,h as t,g as s,H as e}from"./p-23a36bb6.js";import{JSUtils as h,ElementIDUtils as l}from"@sankhyalabs/core";const o=class{constructor(t){i(this,t),this._dataKey=""}async show(i){i!==this._focusedIndex&&0<=i&&i<this._totalStackItems&&(this.policyHideRemove(),this.policyShowAppend(i),this._focusedIndex=i)}async getSelectedIndex(){return this._focusedIndex}policyHideRemove(){let i=this._hostElem.querySelector(`#${this._dataKey}_el_${this._focusedIndex}`);this.checkElementVisibility(i)}policyShowAppend(i){let t=this._hostElem.querySelector(`#${this._dataKey}_el_${i}`);t?t.setAttribute("style","visibility: visible"):this._hostElem.append(this._elemList[i])}checkElementVisibility(i){"hide"!==i.getAttribute("hidePolicy")&&i.getAttribute("hidePolicy")?"remove"===i.getAttribute("hidePolicy")&&i.remove():i.setAttribute("style","display: none")}componentWillRender(){this._dataKey="id_".concat(h.generateUUID()),this._elemList||(this._elemList=[],this._focusedIndex=0,this._totalStackItems=0,this._hostElem.classList.add("ez-view-stack__container"),this._hostElem.querySelectorAll(":scope > stack-item").forEach(((i,t)=>{i.setAttribute("id",`${this._dataKey}_el_${t}`),0!==t?this.checkElementVisibility(i):i.setAttribute("style","visibility: visible"),this._totalStackItems++,this._elemList.push(i)})))}componentDidLoad(){l.addIDInfo(this._hostElem)}disconectCallback(){this._hostElem=null,this._elemList=null}render(){return t(e,null)}get _hostElem(){return s(this)}};o.style=":host{width:100%;height:100%}.ez-view-stack__container{width:100%;height:100%}";export{o as ez_view_stack}
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{r as t,c as e,h as i,g as n}from"./p-e4c7eb39.js";import{ArrayUtils as r}from"@sankhyalabs/core";import{i as o}from"./p-a61fdd20.js";
1
+ import{r as t,c as e,h as i,g as n}from"./p-23a36bb6.js";import{ArrayUtils as r}from"@sankhyalabs/core";import{i as o}from"./p-a61fdd20.js";
2
2
  /**!
3
3
  * Sortable 1.15.7
4
4
  * @author RubaXa <trash@rubaxa.org>
Binary file
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e,g as o}from"./p-e4c7eb39.js";import{ElementIDUtils as r}from"@sankhyalabs/core";class a{constructor(t){this.mask=t,this.maskChars={"#":t=>/\d/.test(t),U:t=>/[a-zA-Z]/.test(t),L:t=>/[a-zA-Z]/.test(t),A:t=>/[a-zA-Z0-9]/.test(t),Z:t=>/[a-zA-Z0-9]/.test(t),"?":t=>/[a-zA-Z]/.test(t),"*":()=>!0}}format(t){if(!t||!this.mask)return t;const i=this.removeIncompatibleChars(t);let s="",e=0,o=0;for(;o<this.mask.length&&e<i.length;){const t=this.mask[o],r=i[e];if("'"!==t){if(this.maskChars[t]){if(!this.maskChars[t](r)){e++;continue}s+="U"===t||"Z"===t?r.toUpperCase():"L"===t?r.toLowerCase():r,e++}else s+=t,r===t&&e++;o++}else o++,o<this.mask.length&&(s+=this.mask[o],o++)}return s}removeIncompatibleChars(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];let o=!1;for(const t in this.maskChars)if(this.maskChars[t](e)){o=!0;break}if(!o)for(let t=0;t<this.mask.length;t++)if(this.mask[t]===e&&!this.maskChars[this.mask[t]]){o=!0;break}o&&(i+=e)}return i}removeMask(t){if(!t||!this.mask)return t;let i="",s=0,e=0;for(;s<t.length&&e<this.mask.length;){const o=this.mask[e],r=t[s];"'"!==o?(this.maskChars[o]?(this.maskChars[o](r)&&(i+=r),s++):r===o&&s++,e++):(e++,e<this.mask.length&&(r===this.mask[e]&&s++,e++))}for(;s<t.length;){const e=t[s];/[a-zA-Z0-9]/.test(e)&&(i+=e),s++}return i}getMask(){return this.mask}generatePlaceholder(){if(!this.mask)return"";let t="",i=0;for(;i<this.mask.length;){const s=this.mask[i];if("'"!==s){if(this.maskChars[s])switch(s){case"#":case"~":t+="0";break;case"U":case"L":case"?":case"A":t+="A";break;default:t+="_"}else t+=s;i++}else i++,i<this.mask.length&&(t+=this.mask[i],i++)}return t}}const c=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezBlur=i(this,"ezBlur",7),this.ezFocus=i(this,"ezFocus",7),this.iconClick=i(this,"iconClick",7),this._internalValueChange=!1,this.type="text",this.value=void 0,this.label=void 0,this.helpText=void 0,this.placeholder=void 0,this.enabled=!0,this.readonly=!1,this.name=void 0,this.minlength=void 0,this.maxlength=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.rightIconTooltip=void 0,this.leftIconTooltip=void 0,this.state="default",this.leftIconClickable=!1,this.rightIconClickable=!1,this.mask=void 0,this.emitMaskedValue=!1}async setFocus(t){(null==t?void 0:t.selectText)&&this._inputElem.select(),(null==t?void 0:t.preventScroll)||this._inputElem.scrollIntoView({behavior:"smooth",block:"center"}),this._inputElem.focus({preventScroll:!0})}async setBlur(){this._inputElem.blur()}async syncValue(){if(this._internalValueChange)this._internalValueChange=!1;else if(this.value&&this._maskFormatter&&this._inputElem){const t=this._maskFormatter.format(this.value);this._inputElem.value=t}else this._inputElem&&(this._inputElem.value=this.value||"")}onInput(t){try{const i=t.target;let s=i.value;if(this._maskFormatter){const t=this._maskFormatter.format(s),e=this._maskFormatter.removeMask(t);i.value=t,this._internalValueChange=!0,this.value=e,this.ezChange.emit(this.emitMaskedValue?t:e)}else this._internalValueChange=!0,this.value=s,this.ezChange.emit(s)}catch(t){console.error("Error processing input event:",t)}}onBlur(){this.ezBlur.emit(this.value)}onFocus(){this.ezFocus.emit(this.value)}handleIconClick(t,i){this.enabled&&("left"===i&&!this.leftIconClickable||"right"===i&&!this.rightIconClickable?this.setFocus({preventScroll:!0}):(t.stopPropagation(),this.iconClick.emit({icon:i})))}addInfoId(){this._element&&r.addIDInfo(this._element),this._inputElem&&r.addIDInfo(this._inputElem,"classic-input",{id:"embedded"})}componentWillLoad(){this.mask&&!this._maskFormatter&&(this._maskFormatter=new a(this.mask)),!this.placeholder&&this._maskFormatter&&(this.placeholder=this._maskFormatter.generatePlaceholder())}componentDidLoad(){this.syncValue(),this.addInfoId()}render(){return s(e,null,s("label",{title:this.label,htmlFor:this.name},this.label),s("div",{class:"input-container","data-state":this.state,"data-disabled":(!this.enabled).toString(),onClick:()=>this.setFocus({preventScroll:!0})},this.leftIconName&&s("ez-icon",{iconName:this.leftIconName,title:this.leftIconTooltip,onClick:t=>this.handleIconClick(t,"left"),class:{"icon-clickable":this.leftIconClickable}}),s("input",{ref:t=>this._inputElem=t,id:this.name,type:this.type,title:this.value,placeholder:this.placeholder,disabled:!this.enabled,readonly:this.readonly,name:this.name,minlength:this.minlength,maxlength:this.maxlength,onInput:t=>this.onInput(t),onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this)}),this.rightIconName&&s("ez-icon",{iconName:this.rightIconName,title:this.rightIconTooltip,onClick:t=>this.handleIconClick(t,"right"),class:{"icon-clickable":this.rightIconClickable}})),this.helpText&&s("span",{title:this.helpText},this.helpText))}get _element(){return o(this)}static get watchers(){return{value:["syncValue"]}}};c.style=':host{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);border:none;padding:0;--ez-classic-input--label-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-classic-input--border-color-focus:var(--color--gray-300, #A4A5A7);--ez-classic-input--border-color-success:var(--color--green-600, #157A00);--ez-classic-input--border-color-error:var(--color--red-600, #BD0025);--ez-classic-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-classic-input--background-color:var(--color--gray-70, #FFFFFF);--ez-classic-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-classic-input--text-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--placeholder-color:#bdbdbd;--ez-classic-input--icon-color:var(--color--gray-400, #77777A);--ez-classic-input--helptext-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--height:56px}.input-container{display:flex;flex-direction:row;align-items:center;width:100%;border:none;border-radius:var(--border--radius-8, 8px);padding:var(--space--16, 16px);box-sizing:border-box;gap:var(--space--10, 10px);margin:var(--space--4, 4px) var(--space--2, 2px);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);height:var(--ez-classic-input--height);background-color:var(--ez-classic-input--background-color)}.input-container,.input-container[data-state="default"]{box-shadow:0 0 0 1px var(--ez-classic-input--border-color-default)}.input-container[data-state="success"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-success)}.input-container[data-state="error"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-error)}.input-container[data-state="warning"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-warning)}.input-container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-focus)}ez-icon{min-width:var(--space--24, 24px);color:var(--ez-classic-input--icon-color)}input{flex:1;border:none;outline:none;background:transparent;height:100%;width:100%;padding:0;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);text-overflow:ellipsis;color:var(--ez-classic-input--text-color)}input::placeholder{color:var(--ez-classic-input--placeholder-color)}.input-container[data-disabled="true"]{cursor:not-allowed;background:var(--ez-classic-input--background-color-disabled);border-color:var(--ez-classic-input--border-color-default)}.input-container[data-disabled="true"]>*{cursor:not-allowed}.input-container input:read-only{cursor:default}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-classic-input--helptext-color)}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--line-height--20, 20px);color:var(--ez-classic-input--label-color)}.icon-clickable{cursor:pointer}';export{c as ez_classic_input}
1
+ import{r as t,c as i,h as s,H as e,g as o}from"./p-23a36bb6.js";import{ElementIDUtils as r}from"@sankhyalabs/core";class a{constructor(t){this.mask=t,this.maskChars={"#":t=>/\d/.test(t),U:t=>/[a-zA-Z]/.test(t),L:t=>/[a-zA-Z]/.test(t),A:t=>/[a-zA-Z0-9]/.test(t),Z:t=>/[a-zA-Z0-9]/.test(t),"?":t=>/[a-zA-Z]/.test(t),"*":()=>!0}}format(t){if(!t||!this.mask)return t;const i=this.removeIncompatibleChars(t);let s="",e=0,o=0;for(;o<this.mask.length&&e<i.length;){const t=this.mask[o],r=i[e];if("'"!==t){if(this.maskChars[t]){if(!this.maskChars[t](r)){e++;continue}s+="U"===t||"Z"===t?r.toUpperCase():"L"===t?r.toLowerCase():r,e++}else s+=t,r===t&&e++;o++}else o++,o<this.mask.length&&(s+=this.mask[o],o++)}return s}removeIncompatibleChars(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];let o=!1;for(const t in this.maskChars)if(this.maskChars[t](e)){o=!0;break}if(!o)for(let t=0;t<this.mask.length;t++)if(this.mask[t]===e&&!this.maskChars[this.mask[t]]){o=!0;break}o&&(i+=e)}return i}removeMask(t){if(!t||!this.mask)return t;let i="",s=0,e=0;for(;s<t.length&&e<this.mask.length;){const o=this.mask[e],r=t[s];"'"!==o?(this.maskChars[o]?(this.maskChars[o](r)&&(i+=r),s++):r===o&&s++,e++):(e++,e<this.mask.length&&(r===this.mask[e]&&s++,e++))}for(;s<t.length;){const e=t[s];/[a-zA-Z0-9]/.test(e)&&(i+=e),s++}return i}getMask(){return this.mask}generatePlaceholder(){if(!this.mask)return"";let t="",i=0;for(;i<this.mask.length;){const s=this.mask[i];if("'"!==s){if(this.maskChars[s])switch(s){case"#":case"~":t+="0";break;case"U":case"L":case"?":case"A":t+="A";break;default:t+="_"}else t+=s;i++}else i++,i<this.mask.length&&(t+=this.mask[i],i++)}return t}}const c=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezBlur=i(this,"ezBlur",7),this.ezFocus=i(this,"ezFocus",7),this.iconClick=i(this,"iconClick",7),this._internalValueChange=!1,this.type="text",this.value=void 0,this.label=void 0,this.helpText=void 0,this.placeholder=void 0,this.enabled=!0,this.readonly=!1,this.name=void 0,this.minlength=void 0,this.maxlength=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.rightIconTooltip=void 0,this.leftIconTooltip=void 0,this.state="default",this.leftIconClickable=!1,this.rightIconClickable=!1,this.mask=void 0,this.emitMaskedValue=!1}async setFocus(t){(null==t?void 0:t.selectText)&&this._inputElem.select(),(null==t?void 0:t.preventScroll)||this._inputElem.scrollIntoView({behavior:"smooth",block:"center"}),this._inputElem.focus({preventScroll:!0})}async setBlur(){this._inputElem.blur()}async syncValue(){if(this._internalValueChange)this._internalValueChange=!1;else if(this.value&&this._maskFormatter&&this._inputElem){const t=this._maskFormatter.format(this.value);this._inputElem.value=t}else this._inputElem&&(this._inputElem.value=this.value||"")}onInput(t){try{const i=t.target;let s=i.value;if(this._maskFormatter){const t=this._maskFormatter.format(s),e=this._maskFormatter.removeMask(t);i.value=t,this._internalValueChange=!0,this.value=e,this.ezChange.emit(this.emitMaskedValue?t:e)}else this._internalValueChange=!0,this.value=s,this.ezChange.emit(s)}catch(t){console.error("Error processing input event:",t)}}onBlur(){this.ezBlur.emit(this.value)}onFocus(){this.ezFocus.emit(this.value)}handleIconClick(t,i){this.enabled&&("left"===i&&!this.leftIconClickable||"right"===i&&!this.rightIconClickable?this.setFocus({preventScroll:!0}):(t.stopPropagation(),this.iconClick.emit({icon:i})))}addInfoId(){this._element&&r.addIDInfo(this._element),this._inputElem&&r.addIDInfo(this._inputElem,"classic-input",{id:"embedded"})}componentWillLoad(){this.mask&&!this._maskFormatter&&(this._maskFormatter=new a(this.mask)),!this.placeholder&&this._maskFormatter&&(this.placeholder=this._maskFormatter.generatePlaceholder())}componentDidLoad(){this.syncValue(),this.addInfoId()}render(){return s(e,null,s("label",{title:this.label,htmlFor:this.name},this.label),s("div",{class:"input-container","data-state":this.state,"data-disabled":(!this.enabled).toString(),onClick:()=>this.setFocus({preventScroll:!0})},this.leftIconName&&s("ez-icon",{iconName:this.leftIconName,title:this.leftIconTooltip,onClick:t=>this.handleIconClick(t,"left"),class:{"icon-clickable":this.leftIconClickable}}),s("input",{ref:t=>this._inputElem=t,id:this.name,type:this.type,title:this.value,placeholder:this.placeholder,disabled:!this.enabled,readonly:this.readonly,name:this.name,minlength:this.minlength,maxlength:this.maxlength,onInput:t=>this.onInput(t),onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this)}),this.rightIconName&&s("ez-icon",{iconName:this.rightIconName,title:this.rightIconTooltip,onClick:t=>this.handleIconClick(t,"right"),class:{"icon-clickable":this.rightIconClickable}})),this.helpText&&s("span",{title:this.helpText},this.helpText))}get _element(){return o(this)}static get watchers(){return{value:["syncValue"]}}};c.style=':host{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);border:none;padding:0;--ez-classic-input--label-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-classic-input--border-color-focus:var(--color--gray-300, #A4A5A7);--ez-classic-input--border-color-success:var(--color--green-600, #157A00);--ez-classic-input--border-color-error:var(--color--red-600, #BD0025);--ez-classic-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-classic-input--background-color:var(--color--gray-70, #FFFFFF);--ez-classic-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-classic-input--text-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--placeholder-color:#bdbdbd;--ez-classic-input--icon-color:var(--color--gray-400, #77777A);--ez-classic-input--helptext-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--height:56px}.input-container{display:flex;flex-direction:row;align-items:center;width:100%;border:none;border-radius:var(--border--radius-8, 8px);padding:var(--space--16, 16px);box-sizing:border-box;gap:var(--space--10, 10px);margin:var(--space--4, 4px) var(--space--2, 2px);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);height:var(--ez-classic-input--height);background-color:var(--ez-classic-input--background-color)}.input-container,.input-container[data-state="default"]{box-shadow:0 0 0 1px var(--ez-classic-input--border-color-default)}.input-container[data-state="success"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-success)}.input-container[data-state="error"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-error)}.input-container[data-state="warning"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-warning)}.input-container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-focus)}ez-icon{min-width:var(--space--24, 24px);color:var(--ez-classic-input--icon-color)}input{flex:1;border:none;outline:none;background:transparent;height:100%;width:100%;padding:0;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);text-overflow:ellipsis;color:var(--ez-classic-input--text-color)}input::placeholder{color:var(--ez-classic-input--placeholder-color)}.input-container[data-disabled="true"]{cursor:not-allowed;background:var(--ez-classic-input--background-color-disabled);border-color:var(--ez-classic-input--border-color-default)}.input-container[data-disabled="true"]>*{cursor:not-allowed}.input-container input:read-only{cursor:default}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-classic-input--helptext-color)}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--line-height--20, 20px);color:var(--ez-classic-input--label-color)}.icon-clickable{cursor:pointer}';export{c as ez_classic_input}
Binary file