@sankhyalabs/ezui 7.3.5-dev.1 → 7.3.5

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 (1036) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/{ApplicationUtils-34e43a14.js → ApplicationUtils-35a5354c.js} +1 -1
  3. package/dist/cjs/ApplicationUtils-35a5354c.js.gz +0 -0
  4. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  5. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  6. package/dist/cjs/{DataBinder-cdc66d4e.js → DataBinder-742af3eb.js} +4 -4
  7. package/dist/cjs/DataBinder-742af3eb.js.gz +0 -0
  8. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  9. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  10. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  11. package/dist/cjs/{types-6a5df0c7.js → FormLayout-18853e70.js} +6 -0
  12. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  13. package/dist/cjs/FormMetadata-d51a7331.js +220 -0
  14. package/dist/cjs/FormMetadata-d51a7331.js.gz +0 -0
  15. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  16. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  17. package/dist/cjs/{app-globals-a03da63f.js → app-globals-aff212c0.js} +1 -1
  18. package/dist/cjs/app-globals-aff212c0.js.gz +0 -0
  19. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  20. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -4
  21. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  29. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  31. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  33. package/dist/cjs/{ez-multi-selection-list_5.cjs.entry.js → ez-card-item_5.cjs.entry.js} +56 -222
  34. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  35. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  38. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  39. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +15 -38
  40. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  41. package/dist/cjs/ez-classic-input.cjs.entry.js +18 -144
  42. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  43. package/dist/cjs/ez-classic-text-area.cjs.entry.js +2 -13
  44. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
  46. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/{classic-search-list_11.cjs.entry.js → ez-combo-box-list_8.cjs.entry.js} +5 -364
  48. package/dist/cjs/ez-combo-box-list_8.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -4
  50. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  62. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  63. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  64. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/ez-filter.cjs.entry.js +4 -4
  67. package/dist/cjs/ez-filter.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/ez-form-view.cjs.entry.js +37 -130
  69. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  70. package/dist/cjs/ez-form.cjs.entry.js +9 -14
  71. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/ez-grid.cjs.entry.js +265 -981
  74. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  75. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  76. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  77. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  78. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  81. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  84. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  86. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  88. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  89. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  90. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/ez-popover-core.cjs.entry.js +227 -0
  92. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  93. package/dist/cjs/ez-popover.cjs.entry.js +0 -8
  94. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  95. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  96. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  97. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  99. package/dist/cjs/ez-rich-toolbar-arrows_3.cjs.entry.js +1 -1
  100. package/dist/cjs/ez-rich-toolbar-arrows_3.cjs.entry.js.gz +0 -0
  101. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/ez-scroller_2.cjs.entry.js +14 -81
  103. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  104. package/dist/cjs/ez-search-plus.cjs.entry.js +8 -18
  105. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  106. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  107. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  108. package/dist/cjs/ez-search.cjs.entry.js +11 -49
  109. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  111. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  113. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  115. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  117. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/ez-split-button.cjs.entry.js +17 -16
  119. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/ez-split-item.cjs.entry.js +5 -7
  121. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/ez-split-panel.cjs.entry.js +4 -6
  123. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  124. package/dist/cjs/ez-tabselector.cjs.entry.js +61 -209
  125. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  127. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  128. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  129. package/dist/cjs/ez-text-input.cjs.entry.js +0 -37
  130. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  132. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  133. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  134. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  137. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  138. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  139. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  141. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  143. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  144. package/dist/cjs/ezui.cjs.js +3 -3
  145. package/dist/cjs/ezui.cjs.js.gz +0 -0
  146. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  147. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  148. package/dist/cjs/floating-ui.dom.esm-4a0428c0.js.gz +0 -0
  149. package/dist/cjs/{index-f98939e1.js → index-24587208.js} +12 -165
  150. package/dist/cjs/index-24587208.js.gz +0 -0
  151. package/dist/cjs/index-a7b0c73d.js +26 -58
  152. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  153. package/dist/cjs/index.cjs.js.gz +0 -0
  154. package/dist/cjs/loader.cjs.js +3 -3
  155. package/dist/cjs/loader.cjs.js.gz +0 -0
  156. package/dist/cjs/{purify-4f39f037.js → purify-ef86f048.js} +0 -1
  157. package/dist/cjs/purify-ef86f048.js.gz +0 -0
  158. package/dist/cjs/{search-column-f1c7a355.js → search-column-58102e1b.js} +6 -8
  159. package/dist/cjs/search-column-58102e1b.js.gz +0 -0
  160. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  161. package/dist/collection/collection-manifest.json +3 -64
  162. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  163. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  164. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  165. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  166. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  167. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  168. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  169. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  170. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  171. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  172. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  173. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  174. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  175. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  176. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  177. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  178. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  179. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  180. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  181. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  182. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  183. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  184. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  185. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  186. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  187. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  188. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  189. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  190. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  191. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  192. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  193. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  194. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  195. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  196. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  197. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  198. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  199. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  200. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  201. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  202. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  203. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  204. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  205. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  206. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  207. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  208. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +0 -5
  209. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  210. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +18 -96
  211. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  212. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  213. package/dist/collection/components/ez-classic-input/ez-classic-input.css +5 -33
  214. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  215. package/dist/collection/components/ez-classic-input/ez-classic-input.js +19 -200
  216. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  217. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  218. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  219. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +2 -3
  220. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  221. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +1 -32
  222. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  223. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  224. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  225. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  226. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  227. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  228. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  229. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  230. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  231. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  232. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  233. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  234. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  235. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  236. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  237. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  238. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  239. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  240. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  241. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  242. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  243. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  244. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  245. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  246. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  247. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  248. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  249. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  250. package/dist/collection/components/ez-filter/ez-filter.css.gz +0 -0
  251. package/dist/collection/components/ez-filter/ez-filter.js.gz +0 -0
  252. package/dist/collection/components/ez-filter/interfaces/IFilterChange.js.gz +0 -0
  253. package/dist/collection/components/ez-filter/interfaces/IFilterCustomField.js.gz +0 -0
  254. package/dist/collection/components/ez-filter/interfaces/index.js.gz +0 -0
  255. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  256. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  257. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  258. package/dist/collection/components/ez-form/ez-form.js +4 -30
  259. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  260. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  261. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  262. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -27
  263. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  264. package/dist/collection/components/ez-form-view/ez-form-view.js +4 -62
  265. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  266. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +4 -9
  267. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  268. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +6 -9
  269. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  270. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -8
  271. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  272. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +6 -30
  273. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  274. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  275. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  276. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  277. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +5 -12
  278. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  279. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  280. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  281. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -9
  282. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  283. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +1 -8
  284. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  285. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -7
  286. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  287. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -8
  288. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  289. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  290. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  291. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  292. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  293. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  294. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +13 -138
  295. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  296. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +1 -11
  297. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  298. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  299. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  300. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  301. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  302. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  303. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  304. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  305. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  306. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  307. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  308. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  309. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  310. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  311. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  312. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  313. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  314. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  315. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  316. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  317. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  318. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  319. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  320. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  321. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  322. package/dist/collection/components/ez-grid/ez-grid.css +60 -5
  323. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  324. package/dist/collection/components/ez-grid/ez-grid.js +150 -52
  325. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  326. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  327. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  328. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  329. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  330. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  331. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  332. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  333. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  334. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  335. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  336. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  337. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  338. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  339. package/dist/collection/components/ez-grid/utils/index.js +0 -1
  340. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  341. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  342. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  343. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  344. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  345. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  346. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  347. package/dist/collection/components/ez-icon/ez-icon.css +7 -8
  348. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  349. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  350. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  351. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  352. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  353. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  354. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  355. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  356. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  357. package/dist/collection/components/ez-modal/ez-modal.css +0 -3
  358. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  359. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  360. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  361. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  362. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  363. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  364. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  365. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  366. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  367. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  368. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  369. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  370. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  371. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  372. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  373. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  374. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  375. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  376. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  377. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  378. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  379. package/dist/collection/components/ez-popover/ez-popover.js +0 -27
  380. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  381. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  382. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  383. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  384. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  385. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  386. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  387. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  388. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  389. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  390. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  391. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  392. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  393. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  394. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  395. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  396. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  397. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  398. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  399. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  400. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  401. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  402. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  403. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  404. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  405. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  406. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  407. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  408. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  409. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  410. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  411. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  412. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  413. package/dist/collection/components/ez-scroller/ez-scroller.css +11 -117
  414. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  415. package/dist/collection/components/ez-scroller/ez-scroller.js +13 -118
  416. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  417. package/dist/collection/components/ez-search/ez-search.css +0 -4
  418. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  419. package/dist/collection/components/ez-search/ez-search.js +3 -75
  420. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  421. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  422. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  423. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  424. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  425. package/dist/collection/components/ez-search-plus/ez-search-plus.js +2 -11
  426. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  427. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  428. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  429. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  430. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  431. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  432. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  433. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  434. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  435. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  436. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  437. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  438. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  439. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  440. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  441. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  442. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  443. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  444. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  445. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  446. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  447. package/dist/collection/components/ez-split-button/ez-split-button.js +15 -20
  448. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  449. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  450. package/dist/collection/components/ez-split-panel/ez-split-panel.css +0 -29
  451. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  452. package/dist/collection/components/ez-split-panel/ez-split-panel.js +3 -23
  453. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  454. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  455. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +0 -9
  456. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  457. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +1 -20
  458. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  459. package/dist/collection/components/ez-tabselector/ez-tabselector.css +1 -33
  460. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  461. package/dist/collection/components/ez-tabselector/ez-tabselector.js +62 -254
  462. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  463. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  464. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  465. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  466. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  467. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  468. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  469. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  470. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  471. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  472. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  473. package/dist/collection/components/ez-text-input/ez-text-input.js +1 -38
  474. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  475. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  476. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  477. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  478. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  479. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  480. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  481. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  482. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  483. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  484. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  485. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  486. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  487. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  488. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  489. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  490. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  491. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  492. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  493. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  494. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  495. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  496. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  497. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  498. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  499. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  500. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  501. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  502. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  503. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  504. package/dist/collection/global/app-init.js.gz +0 -0
  505. package/dist/collection/index.js.gz +0 -0
  506. package/dist/collection/servidor.js.gz +0 -0
  507. package/dist/collection/setupTests.js.gz +0 -0
  508. package/dist/collection/sw.js.gz +0 -0
  509. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  510. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  511. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  512. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  513. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  514. package/dist/collection/utils/constants.js.gz +0 -0
  515. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  516. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  517. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  518. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  519. package/dist/collection/utils/form/DataBinder.js +2 -2
  520. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  521. package/dist/collection/utils/form/FormMetadata.js +74 -132
  522. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  523. package/dist/collection/utils/form/index.js.gz +0 -0
  524. package/dist/collection/utils/form/interfaces/FormLayout.js +1 -3
  525. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  526. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  527. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  528. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  529. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  530. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  531. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  532. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  533. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  534. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  535. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  536. package/dist/collection/utils/i18n/index.js.gz +0 -0
  537. package/dist/collection/utils/i18n/locales/en-us.js +4 -55
  538. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  539. package/dist/collection/utils/i18n/locales/es-es.js +4 -55
  540. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  541. package/dist/collection/utils/i18n/locales/pt-br.js +4 -55
  542. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  543. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  544. package/dist/collection/utils/index.js.gz +0 -0
  545. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  546. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  547. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  548. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  549. package/dist/collection/utils/search/types.js.gz +0 -0
  550. package/dist/collection/utils/searchColumn/search-column.js +6 -8
  551. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  552. package/dist/collection/utils/utils.js.gz +0 -0
  553. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  554. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  555. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  556. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  557. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  558. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  559. package/dist/custom-elements/index.d.ts +0 -66
  560. package/dist/custom-elements/index.js +570 -4797
  561. package/dist/custom-elements/index.js.gz +0 -0
  562. package/dist/esm/{ApplicationUtils-aaf24be5.js → ApplicationUtils-cb109a04.js} +1 -1
  563. package/dist/esm/ApplicationUtils-cb109a04.js.gz +0 -0
  564. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  565. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  566. package/dist/esm/{DataBinder-81d15b1b.js → DataBinder-0a4d28c2.js} +4 -4
  567. package/dist/esm/DataBinder-0a4d28c2.js.gz +0 -0
  568. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  569. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  570. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  571. package/dist/esm/{types-6f6b2650.js → FormLayout-071d324c.js} +7 -1
  572. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  573. package/dist/esm/FormMetadata-6f14e2fe.js +218 -0
  574. package/dist/esm/FormMetadata-6f14e2fe.js.gz +0 -0
  575. package/dist/esm/RichToolbarHelper-cad0978a.js.gz +0 -0
  576. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  577. package/dist/esm/{app-globals-d5fb68f0.js → app-globals-86530738.js} +1 -1
  578. package/dist/esm/app-globals-86530738.js.gz +0 -0
  579. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  580. package/dist/esm/ez-actions-button.entry.js +3 -4
  581. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  582. package/dist/esm/ez-alert-list.entry.js +1 -1
  583. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  584. package/dist/esm/ez-alert.entry.js.gz +0 -0
  585. package/dist/esm/ez-application.entry.js.gz +0 -0
  586. package/dist/esm/ez-avatar.entry.js +1 -1
  587. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  588. package/dist/esm/ez-badge.entry.js.gz +0 -0
  589. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  590. package/dist/esm/ez-button.entry.js.gz +0 -0
  591. package/dist/esm/ez-calendar.entry.js +1 -1
  592. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  593. package/dist/esm/{ez-multi-selection-list_5.entry.js → ez-card-item_5.entry.js} +58 -224
  594. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  595. package/dist/esm/ez-chart.entry.js +1 -1
  596. package/dist/esm/ez-chart.entry.js.gz +0 -0
  597. package/dist/esm/ez-check.entry.js.gz +0 -0
  598. package/dist/esm/ez-chip.entry.js.gz +0 -0
  599. package/dist/esm/ez-classic-combo-box.entry.js +15 -38
  600. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  601. package/dist/esm/ez-classic-input.entry.js +19 -145
  602. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  603. package/dist/esm/ez-classic-text-area.entry.js +2 -13
  604. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  605. package/dist/esm/ez-collapsible-box.entry.js +3 -4
  606. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  607. package/dist/esm/{classic-search-list_11.entry.js → ez-combo-box-list_8.entry.js} +7 -363
  608. package/dist/esm/ez-combo-box-list_8.entry.js.gz +0 -0
  609. package/dist/esm/ez-combo-box.entry.js +3 -4
  610. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  611. package/dist/esm/ez-date-input.entry.js +1 -1
  612. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  613. package/dist/esm/ez-date-time-input.entry.js +1 -1
  614. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  615. package/dist/esm/ez-dialog.entry.js +1 -1
  616. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  617. package/dist/esm/ez-double-list.entry.js +1 -1
  618. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  619. package/dist/esm/ez-dropdown.entry.js +1 -1
  620. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  621. package/dist/esm/ez-empty-card.entry.js +1 -1
  622. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  623. package/dist/esm/ez-file-item.entry.js +1 -1
  624. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  625. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  626. package/dist/esm/ez-filter.entry.js +4 -4
  627. package/dist/esm/ez-filter.entry.js.gz +0 -0
  628. package/dist/esm/ez-form-view.entry.js +37 -130
  629. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  630. package/dist/esm/ez-form.entry.js +9 -14
  631. package/dist/esm/ez-form.entry.js.gz +0 -0
  632. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  633. package/dist/esm/ez-grid.entry.js +264 -980
  634. package/dist/esm/ez-grid.entry.js.gz +0 -0
  635. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  636. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  637. package/dist/esm/ez-icon.entry.js +1 -1
  638. package/dist/esm/ez-icon.entry.js.gz +0 -0
  639. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  640. package/dist/esm/ez-list.entry.js +1 -1
  641. package/dist/esm/ez-list.entry.js.gz +0 -0
  642. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  643. package/dist/esm/ez-modal-container.entry.js +1 -1
  644. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  645. package/dist/esm/ez-modal.entry.js +2 -2
  646. package/dist/esm/ez-modal.entry.js.gz +0 -0
  647. package/dist/esm/ez-number-input.entry.js +1 -1
  648. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  649. package/dist/esm/ez-pagination.entry.js +1 -1
  650. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  651. package/dist/esm/ez-popover-core.entry.js +223 -0
  652. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  653. package/dist/esm/ez-popover.entry.js +0 -8
  654. package/dist/esm/ez-popover.entry.js.gz +0 -0
  655. package/dist/esm/ez-popup.entry.js +1 -1
  656. package/dist/esm/ez-popup.entry.js.gz +0 -0
  657. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  658. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  659. package/dist/esm/ez-rich-toolbar-arrows_3.entry.js +1 -1
  660. package/dist/esm/ez-rich-toolbar-arrows_3.entry.js.gz +0 -0
  661. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  662. package/dist/esm/ez-scroller_2.entry.js +14 -81
  663. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  664. package/dist/esm/ez-search-plus.entry.js +5 -15
  665. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  666. package/dist/esm/ez-search-result-list.entry.js +1 -1
  667. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  668. package/dist/esm/ez-search.entry.js +6 -44
  669. package/dist/esm/ez-search.entry.js.gz +0 -0
  670. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  671. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  672. package/dist/esm/ez-skeleton.entry.js +1 -1
  673. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  674. package/dist/esm/ez-sortable-list.entry.js +2 -2
  675. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  676. package/dist/esm/ez-spinner.entry.js +1 -1
  677. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  678. package/dist/esm/ez-split-button.entry.js +17 -16
  679. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  680. package/dist/esm/ez-split-item.entry.js +5 -7
  681. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  682. package/dist/esm/ez-split-panel.entry.js +4 -6
  683. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  684. package/dist/esm/ez-tabselector.entry.js +61 -209
  685. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  686. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  687. package/dist/esm/ez-tag.entry.js.gz +0 -0
  688. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  689. package/dist/esm/ez-text-input.entry.js +0 -37
  690. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  691. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  692. package/dist/esm/ez-tile.entry.js.gz +0 -0
  693. package/dist/esm/ez-time-input.entry.js +1 -1
  694. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  695. package/dist/esm/ez-toast.entry.js.gz +0 -0
  696. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  697. package/dist/esm/ez-tree.entry.js +1 -1
  698. package/dist/esm/ez-tree.entry.js.gz +0 -0
  699. package/dist/esm/ez-underface.entry.js.gz +0 -0
  700. package/dist/esm/ez-upload.entry.js +2 -2
  701. package/dist/esm/ez-upload.entry.js.gz +0 -0
  702. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  703. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  704. package/dist/esm/ezui.js +3 -3
  705. package/dist/esm/ezui.js.gz +0 -0
  706. package/dist/esm/filter-column.entry.js +1 -1
  707. package/dist/esm/filter-column.entry.js.gz +0 -0
  708. package/dist/esm/floating-ui.dom.esm-ffa73324.js.gz +0 -0
  709. package/dist/esm/{index-d37095f4.js → index-b46be1e9.js} +12 -165
  710. package/dist/esm/index-b46be1e9.js.gz +0 -0
  711. package/dist/esm/index-baa5e267.js +26 -58
  712. package/dist/esm/index-baa5e267.js.gz +0 -0
  713. package/dist/esm/index.js.gz +0 -0
  714. package/dist/esm/loader.js +3 -3
  715. package/dist/esm/loader.js.gz +0 -0
  716. package/dist/esm/polyfills/core-js.js.gz +0 -0
  717. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  718. package/dist/esm/polyfills/dom.js.gz +0 -0
  719. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  720. package/dist/esm/polyfills/index.js.gz +0 -0
  721. package/dist/esm/polyfills/system.js.gz +0 -0
  722. package/dist/esm/{purify-f52f5419.js → purify-96c0d5c2.js} +0 -1
  723. package/dist/esm/purify-96c0d5c2.js.gz +0 -0
  724. package/dist/esm/{search-column-8b15de9a.js → search-column-52c9c7ec.js} +6 -8
  725. package/dist/esm/search-column-52c9c7ec.js.gz +0 -0
  726. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  727. package/dist/ezui/ezui.esm.js +1 -1
  728. package/dist/ezui/ezui.esm.js.gz +0 -0
  729. package/dist/ezui/index.esm.js.gz +0 -0
  730. package/dist/ezui/p-00b4fb46.entry.js +1 -0
  731. package/dist/ezui/p-00b4fb46.entry.js.gz +0 -0
  732. package/dist/ezui/p-0491c09f.js +1 -0
  733. package/dist/ezui/p-0491c09f.js.gz +0 -0
  734. package/dist/ezui/{p-bd7c1dd6.entry.js → p-064e6bec.entry.js} +1 -1
  735. package/dist/ezui/p-064e6bec.entry.js.gz +0 -0
  736. package/dist/ezui/{p-1b3151a3.entry.js → p-09071033.entry.js} +1 -1
  737. package/dist/ezui/p-09071033.entry.js.gz +0 -0
  738. package/dist/ezui/{p-9c0fdc8e.entry.js → p-099a9c4d.entry.js} +1 -1
  739. package/dist/ezui/p-099a9c4d.entry.js.gz +0 -0
  740. package/dist/ezui/p-0cd1da46.entry.js +1 -0
  741. package/dist/ezui/p-0cd1da46.entry.js.gz +0 -0
  742. package/dist/ezui/p-0ec37151.entry.js +1 -0
  743. package/dist/ezui/p-0ec37151.entry.js.gz +0 -0
  744. package/dist/ezui/{p-e95d93ba.entry.js → p-100d5993.entry.js} +1 -1
  745. package/dist/ezui/p-100d5993.entry.js.gz +0 -0
  746. package/dist/ezui/p-112455b1.js.gz +0 -0
  747. package/dist/ezui/p-11a12e01.entry.js +309 -0
  748. package/dist/ezui/p-11a12e01.entry.js.gz +0 -0
  749. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  750. package/dist/ezui/p-1f3867a8.entry.js +1 -0
  751. package/dist/ezui/p-1f3867a8.entry.js.gz +0 -0
  752. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  753. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  754. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  755. package/dist/ezui/p-2566cfac.entry.js +1 -0
  756. package/dist/ezui/p-2566cfac.entry.js.gz +0 -0
  757. package/dist/ezui/p-288631d1.entry.js +1 -0
  758. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  759. package/dist/ezui/{p-05af2c30.entry.js → p-2990acff.entry.js} +1 -1
  760. package/dist/ezui/p-2990acff.entry.js.gz +0 -0
  761. package/dist/ezui/p-30ffb9ed.js +1 -0
  762. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  763. package/dist/ezui/{p-e2defb84.entry.js → p-31add07b.entry.js} +1 -1
  764. package/dist/ezui/p-31add07b.entry.js.gz +0 -0
  765. package/dist/ezui/p-332d7425.js +1 -0
  766. package/dist/ezui/p-332d7425.js.gz +0 -0
  767. package/dist/ezui/{p-62f331fe.entry.js → p-339bebe2.entry.js} +1 -1
  768. package/dist/ezui/p-339bebe2.entry.js.gz +0 -0
  769. package/dist/ezui/{p-2b467976.entry.js → p-34d4e4a7.entry.js} +1 -1
  770. package/dist/ezui/p-34d4e4a7.entry.js.gz +0 -0
  771. package/dist/ezui/p-359430a5.entry.js.gz +0 -0
  772. package/dist/ezui/{p-3ff798b2.entry.js → p-35af6a55.entry.js} +1 -1
  773. package/dist/ezui/p-35af6a55.entry.js.gz +0 -0
  774. package/dist/ezui/{p-d878fb19.js → p-36805134.js} +1 -1
  775. package/dist/ezui/p-36805134.js.gz +0 -0
  776. package/dist/ezui/p-3c04dc5f.entry.js +1 -0
  777. package/dist/ezui/p-3c04dc5f.entry.js.gz +0 -0
  778. package/dist/ezui/{p-7a0a96fa.entry.js → p-3eff2f33.entry.js} +1 -1
  779. package/dist/ezui/p-3eff2f33.entry.js.gz +0 -0
  780. package/dist/ezui/p-40a60148.js.gz +0 -0
  781. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  782. package/dist/ezui/p-48effc69.entry.js +1 -0
  783. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  784. package/dist/ezui/{p-b50289bb.entry.js → p-4d30b703.entry.js} +1 -1
  785. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  786. package/dist/ezui/p-58946f57.entry.js +1 -0
  787. package/dist/ezui/p-58946f57.entry.js.gz +0 -0
  788. package/dist/ezui/{p-68107165.entry.js → p-5b23a588.entry.js} +1 -1
  789. package/dist/ezui/p-5b23a588.entry.js.gz +0 -0
  790. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  791. package/dist/ezui/p-6020f3d5.entry.js +1 -0
  792. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  793. package/dist/ezui/{p-4f48f23a.entry.js → p-6bff4bc7.entry.js} +1 -1
  794. package/dist/ezui/p-6bff4bc7.entry.js.gz +0 -0
  795. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  796. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  797. package/dist/ezui/{p-8ddeb58b.entry.js → p-6f918dc7.entry.js} +1 -1
  798. package/dist/ezui/p-6f918dc7.entry.js.gz +0 -0
  799. package/dist/ezui/{p-9bff4320.entry.js → p-716b0cd4.entry.js} +1 -1
  800. package/dist/ezui/p-716b0cd4.entry.js.gz +0 -0
  801. package/dist/ezui/p-71c26308.js +1 -0
  802. package/dist/ezui/p-71c26308.js.gz +0 -0
  803. package/dist/ezui/{p-e11574fb.entry.js → p-74b2132a.entry.js} +1 -1
  804. package/dist/ezui/p-74b2132a.entry.js.gz +0 -0
  805. package/dist/ezui/p-7995dcb4.entry.js +1 -0
  806. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  807. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  808. package/dist/ezui/p-7fe97ef5.entry.js +1 -0
  809. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  810. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  811. package/dist/ezui/{p-5a1abe6a.entry.js → p-81c2ee7a.entry.js} +1 -1
  812. package/dist/ezui/p-81c2ee7a.entry.js.gz +0 -0
  813. package/dist/ezui/p-8319329d.entry.js +1 -0
  814. package/dist/ezui/p-8319329d.entry.js.gz +0 -0
  815. package/dist/ezui/p-85859884.entry.js +1 -0
  816. package/dist/ezui/p-85859884.entry.js.gz +0 -0
  817. package/dist/ezui/p-86cadb4d.entry.js +1 -0
  818. package/dist/ezui/p-86cadb4d.entry.js.gz +0 -0
  819. package/dist/ezui/{p-c086e527.entry.js → p-86cc374a.entry.js} +1 -1
  820. package/dist/ezui/p-86cc374a.entry.js.gz +0 -0
  821. package/dist/ezui/p-8b123c6c.entry.js +1 -0
  822. package/dist/ezui/p-8b123c6c.entry.js.gz +0 -0
  823. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  824. package/dist/ezui/p-8ebe11f4.js.gz +0 -0
  825. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  826. package/dist/ezui/{p-0ec3061a.entry.js → p-935da85d.entry.js} +1 -1
  827. package/dist/ezui/p-935da85d.entry.js.gz +0 -0
  828. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  829. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  830. package/dist/ezui/{p-8d346a47.entry.js → p-99574818.entry.js} +1 -1
  831. package/dist/ezui/p-99574818.entry.js.gz +0 -0
  832. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  833. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  834. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  835. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  836. package/dist/ezui/p-a80b1287.entry.js +1 -0
  837. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  838. package/dist/ezui/p-ab574d59.js.gz +0 -0
  839. package/dist/ezui/{p-1878f204.entry.js → p-af692346.entry.js} +1 -1
  840. package/dist/ezui/p-af692346.entry.js.gz +0 -0
  841. package/dist/ezui/p-b1e45320.js.gz +0 -0
  842. package/dist/ezui/p-b50ed164.js.gz +0 -0
  843. package/dist/ezui/p-b853763b.js.gz +0 -0
  844. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  845. package/dist/ezui/p-bfbf8909.js +1 -0
  846. package/dist/ezui/p-bfbf8909.js.gz +0 -0
  847. package/dist/ezui/{p-ff79e5c2.entry.js → p-c3133b15.entry.js} +1 -1
  848. package/dist/ezui/p-c3133b15.entry.js.gz +0 -0
  849. package/dist/ezui/{p-ca707def.entry.js → p-c4234a7f.entry.js} +2 -2
  850. package/dist/ezui/p-c4234a7f.entry.js.gz +0 -0
  851. package/dist/ezui/p-c806d8d5.entry.js +1 -0
  852. package/dist/ezui/p-c806d8d5.entry.js.gz +0 -0
  853. package/dist/ezui/p-cb24cb7f.entry.js +1 -0
  854. package/dist/ezui/p-cb24cb7f.entry.js.gz +0 -0
  855. package/dist/ezui/p-ceab817e.entry.js +1 -0
  856. package/dist/ezui/p-ceab817e.entry.js.gz +0 -0
  857. package/dist/ezui/p-d2645bdf.entry.js +1 -0
  858. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  859. package/dist/ezui/{p-ce4d51eb.entry.js → p-d4d2ce43.entry.js} +1 -1
  860. package/dist/ezui/p-d4d2ce43.entry.js.gz +0 -0
  861. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  862. package/dist/ezui/{p-65215a4f.entry.js → p-d8b979af.entry.js} +1 -1
  863. package/dist/ezui/p-d8b979af.entry.js.gz +0 -0
  864. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  865. package/dist/ezui/{p-af0196b7.entry.js → p-d8f31356.entry.js} +1 -1
  866. package/dist/ezui/p-d8f31356.entry.js.gz +0 -0
  867. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  868. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  869. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  870. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  871. package/dist/ezui/p-ec7db713.js.gz +0 -0
  872. package/dist/ezui/p-f00c9dc2.entry.js +1 -0
  873. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  874. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  875. package/dist/ezui/{p-7f7b4b9b.js → p-f61fc4f4.js} +1 -1
  876. package/dist/ezui/p-f61fc4f4.js.gz +0 -0
  877. package/dist/ezui/p-f7b8d2b9.entry.js +1 -0
  878. package/dist/ezui/p-f7b8d2b9.entry.js.gz +0 -0
  879. package/dist/ezui/{p-58ce160e.js → p-f90e8299.js} +1 -1
  880. package/dist/ezui/p-f90e8299.js.gz +0 -0
  881. package/dist/ezui/{p-efea2c79.entry.js → p-fa6732f2.entry.js} +1 -1
  882. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  883. package/dist/index.cjs.js.gz +0 -0
  884. package/dist/index.js.gz +0 -0
  885. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +3 -11
  886. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +1 -24
  887. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +0 -3
  888. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  889. package/dist/types/components/ez-form/ez-form.d.ts +0 -6
  890. package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -11
  891. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +2 -3
  892. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +1 -2
  893. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +4 -5
  894. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +1 -2
  895. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +2 -3
  896. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +1 -2
  897. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -2
  898. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +1 -2
  899. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +1 -2
  900. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -2
  901. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -2
  902. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +0 -14
  903. package/dist/types/components/ez-grid/ez-grid.d.ts +27 -10
  904. package/dist/types/components/ez-grid/utils/index.d.ts +0 -1
  905. package/dist/types/components/ez-popover/ez-popover.d.ts +0 -9
  906. package/dist/types/components/ez-scroller/ez-scroller.d.ts +2 -16
  907. package/dist/types/components/ez-search/ez-search.d.ts +1 -12
  908. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +0 -1
  909. package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -1
  910. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +0 -4
  911. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -4
  912. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +20 -42
  913. package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -4
  914. package/dist/types/components.d.ts +2139 -3602
  915. package/dist/types/utils/form/FormMetadata.d.ts +1 -2
  916. package/dist/types/utils/form/interfaces/FormLayout.d.ts +1 -3
  917. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +0 -3
  918. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +0 -3
  919. package/dist/types/utils/i18n/locales/en-us.d.ts +3 -54
  920. package/dist/types/utils/i18n/locales/es-es.d.ts +3 -54
  921. package/dist/types/utils/i18n/locales/pt-br.d.ts +3 -54
  922. package/dist/types/utils/i18n/translations.d.ts +9 -162
  923. package/package.json +5 -5
  924. package/react/components.d.ts +0 -11
  925. package/react/components.js +0 -11
  926. package/react/components.js.map +1 -1
  927. package/dist/cjs/FormLayout-fe8da83c.js +0 -9
  928. package/dist/cjs/FormMetadata-16c68f51.js +0 -278
  929. package/dist/cjs/ez-card-item.cjs.entry.js +0 -62
  930. package/dist/cjs/ez-classic-date-input.cjs.entry.js +0 -201
  931. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +0 -246
  932. package/dist/cjs/ez-classic-number-input.cjs.entry.js +0 -205
  933. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +0 -420
  934. package/dist/cjs/ez-classic-search.cjs.entry.js +0 -683
  935. package/dist/cjs/ez-classic-time-input.cjs.entry.js +0 -198
  936. package/dist/cjs/ez-grid-pagination.cjs.entry.js +0 -331
  937. package/dist/cjs/ez-record-navigation.cjs.entry.js +0 -121
  938. package/dist/cjs/searchFormatters-051f8677.js +0 -23
  939. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +0 -44
  940. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +0 -541
  941. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +0 -44
  942. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +0 -586
  943. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +0 -16
  944. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +0 -583
  945. package/dist/collection/components/ez-classic-search/ez-classic-search.css +0 -126
  946. package/dist/collection/components/ez-classic-search/ez-classic-search.js +0 -1330
  947. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +0 -227
  948. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +0 -316
  949. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +0 -18
  950. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +0 -428
  951. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +0 -1003
  952. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +0 -221
  953. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +0 -298
  954. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +0 -14
  955. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +0 -512
  956. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +0 -4
  957. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +0 -23
  958. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +0 -24
  959. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +0 -1
  960. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +0 -217
  961. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +0 -516
  962. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +0 -1
  963. package/dist/collection/components/ez-image-input/ez-image-input.css +0 -189
  964. package/dist/collection/components/ez-image-input/ez-image-input.js +0 -329
  965. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +0 -51
  966. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +0 -246
  967. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +0 -5
  968. package/dist/esm/FormLayout-bda67973.js +0 -9
  969. package/dist/esm/FormMetadata-112f11d8.js +0 -276
  970. package/dist/esm/ez-card-item.entry.js +0 -58
  971. package/dist/esm/ez-classic-date-input.entry.js +0 -197
  972. package/dist/esm/ez-classic-date-time-input.entry.js +0 -242
  973. package/dist/esm/ez-classic-number-input.entry.js +0 -201
  974. package/dist/esm/ez-classic-search-plus.entry.js +0 -416
  975. package/dist/esm/ez-classic-search.entry.js +0 -679
  976. package/dist/esm/ez-classic-time-input.entry.js +0 -194
  977. package/dist/esm/ez-grid-pagination.entry.js +0 -327
  978. package/dist/esm/ez-record-navigation.entry.js +0 -117
  979. package/dist/esm/searchFormatters-6d9b06e4.js +0 -20
  980. package/dist/ezui/p-0583e935.entry.js +0 -1
  981. package/dist/ezui/p-0d80e3ec.entry.js +0 -1
  982. package/dist/ezui/p-0f6e6ff6.entry.js +0 -1
  983. package/dist/ezui/p-10da38bf.js +0 -1
  984. package/dist/ezui/p-1283b53a.entry.js +0 -1
  985. package/dist/ezui/p-133c9bac.entry.js +0 -1
  986. package/dist/ezui/p-178cb9df.entry.js +0 -1
  987. package/dist/ezui/p-1a017dc3.entry.js +0 -1
  988. package/dist/ezui/p-1e82a5b6.entry.js +0 -1
  989. package/dist/ezui/p-20059180.js +0 -1
  990. package/dist/ezui/p-2c74a7c2.entry.js +0 -1
  991. package/dist/ezui/p-2fe3d4c5.entry.js +0 -1
  992. package/dist/ezui/p-3a3926dd.entry.js +0 -1
  993. package/dist/ezui/p-47e4a8ce.js +0 -1
  994. package/dist/ezui/p-49bc0b59.entry.js +0 -1
  995. package/dist/ezui/p-53ed3234.entry.js +0 -1
  996. package/dist/ezui/p-5895e687.js +0 -1
  997. package/dist/ezui/p-5af2fb3b.entry.js +0 -1
  998. package/dist/ezui/p-63409a57.entry.js +0 -1
  999. package/dist/ezui/p-6369a0cd.entry.js +0 -1
  1000. package/dist/ezui/p-638a30d0.js +0 -1
  1001. package/dist/ezui/p-65b9fe4c.entry.js +0 -1
  1002. package/dist/ezui/p-83781530.entry.js +0 -1
  1003. package/dist/ezui/p-88a115b3.js +0 -1
  1004. package/dist/ezui/p-8c339d46.entry.js +0 -1
  1005. package/dist/ezui/p-989849b8.entry.js +0 -1
  1006. package/dist/ezui/p-abfbbe1e.entry.js +0 -1
  1007. package/dist/ezui/p-b29d9b0e.entry.js +0 -1
  1008. package/dist/ezui/p-bcf0460e.entry.js +0 -1
  1009. package/dist/ezui/p-bf3c7f5f.entry.js +0 -1
  1010. package/dist/ezui/p-c6f28649.entry.js +0 -309
  1011. package/dist/ezui/p-d393677b.entry.js +0 -1
  1012. package/dist/ezui/p-d6f50207.entry.js +0 -1
  1013. package/dist/ezui/p-df1cb82b.entry.js +0 -1
  1014. package/dist/ezui/p-df539dd1.entry.js +0 -1
  1015. package/dist/ezui/p-df6173c8.entry.js +0 -1
  1016. package/dist/ezui/p-e25a7874.entry.js +0 -1
  1017. package/dist/ezui/p-ea184272.entry.js +0 -1
  1018. package/dist/ezui/p-f60a6b1f.js +0 -1
  1019. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +0 -91
  1020. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +0 -95
  1021. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +0 -101
  1022. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +0 -219
  1023. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +0 -29
  1024. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +0 -2
  1025. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +0 -189
  1026. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +0 -29
  1027. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +0 -9
  1028. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +0 -2
  1029. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +0 -4
  1030. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +0 -2
  1031. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +0 -3
  1032. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +0 -91
  1033. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +0 -7
  1034. package/dist/types/components/ez-image-input/ez-image-input.d.ts +0 -43
  1035. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +0 -43
  1036. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +0 -4
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-23a36bb6.js";import{C as o}from"./p-ec7db713.js";import{ObjectUtils as r,StringUtils as n,ElementIDUtils as a}from"@sankhyalabs/core";import{A as l}from"./p-36805134.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as c}from"./p-bfbf8909.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=n.decodeHtmlEntities(e[0].label);const r={value:null===(s=e[0].value)||void 0===s?void 0:s.replace(i,"").replace(h,""),label:null==o?void 0:o.replace(i,"").replace(h,"")};this.selectOption(r,t)}}controlEmptySearch(t=!0){var i;(null===(i=this._visibleOptions)||void 0===i?void 0:i.length)?this.controlListWithOnlyOne(t):(this.clearSearch(),l.info(this.i18n("ez-search.emptyList")))}async loadDescriptionValue(t){var i,s,e;if(null==t)return;if((null===(i=this.options)||void 0===i?void 0:i.length)>0)return void this.loadOptionValue(t);const h={mode:this.hideDescriptionInput?d.LOAD_DESCRIPTION:d.PREDICTIVE,argument:t};try{const t=await(null===(s=this.optionLoader)||void 0===s?void 0:s.call(this,h,this.contextProperties));if(null==t)return;t instanceof Promise?t.then((t=>{this.setDescriptionValue(t)})):this.setDescriptionValue(t)}catch(t){throw"WarningException"===(null===(e=null==t?void 0:t.constructor)||void 0===e?void 0:e.name)&&(this.errorMessage=t.message),t}}setDescriptionValue(t){const i=(null==t?void 0:t[0])||t;null!=i&&Object.keys(i).length?(this._currentValue=i?Object.assign(Object.assign({},i),{value:v(i.value),label:v(i.label)}):i,this.value=this._currentValue,this.setTextInputValue()):this.showNoResultMessage()}setTextInputValue(){if(this._textInput&&null==this._textInput.value){if(null==this.value)return;const t="string"==typeof this.value?this.value:this.getFormattedText(this.value);this._textInput.value=u(t)}}loadOptionValue(t){var i;const s=null===(i=this.options)||void 0===i?void 0:i.find((i=>i.value===t));null!=s?this.selectOption(s):this.showNoResultMessage()}async showNoResultMessage(){var t;const i="string"==typeof this.value?this.value:null===(t=this.value)||void 0===t?void 0:t.value;this.clearSearch(),this.ezEmptySearch.emit(i);const s=this.i18n("ez-search.emptySearch",{field:this.getFieldLabel()});this.errorMessage=s,await l.info(s)}getFieldLabel(){var t;return null===(t=this.label)||void 0===t?void 0:t.replace(this.i18n("app.requiredInfo"),"").toUpperCase()}resetOptions(){this.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=>{a.addIDInfoIfNotExists(t,"itemSearch")}))}async componentDidLoad(){this._currentValue=this.value,o.applyVarsTextInput(this.el,this._textInput),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)}))})),this._intersectionObserver=new IntersectionObserver((t=>{t.forEach((t=>{!t.isIntersecting&&this._ezPopOverPlusElement&&this._ezPopOverPlusElement.hide()}))}),{threshold:.1}),this._textInput&&this._intersectionObserver.observe(this._textInput),await this.handleInitialValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),null===(i=this._intersectionObserver)||void 0===i||i.disconnect()}handlerIconClick(){this.loadOptions(d.ADVANCED)}buildNumberArgument(t){return this.isTextSearch?NaN:Number(t||void 0)}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim(),e=this.buildNumberArgument(s);this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this._showLoading=!1,this.clearSource(),this.ignoreLimitCharsToSearch||!isNaN(e)||s.length>=this._limitCharsToSearch?(this._showLoading=!0,this._changeDeboucingTimeout=window.setTimeout((()=>{this.loadOptions(d.PREDICTIVE,isNaN(e)?s:e.toString())}),this._deboucingTime),this.showOptions()):this.hideOptions()):(this.hideOptions(),this._showLoading=!1,this.clearSource())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}async keyDownHandler(t){switch(this._tabPressed=!1,t.ctrlKey&&("f"!==t.key&&"F"!==t.key||(this.loadOptions(d.ADVANCED),t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())),t.key){case"ArrowDown":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),this.isOptionsVisible()||this.showOptions(),await this._searchList.nextOption();break;case"ArrowUp":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),await this._searchList.previousOption();break;case"Enter":this.handleEventPropagation(t),this.selectCurrentOption();break;case"Escape":this.cancelPreselection();break;case"Tab":this._tabPressed=!0,this.selectCurrentOption(!1)}}handleEventPropagation(t){this._ezPopOverPlusElement.opened&&this.stopPropagateEnterKeyEvent&&t.stopPropagation()}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}canShowLoadSpinDescription(){return this._showLoadingDescription&&!this._ezPopOverPlusElement.opened}onChangePreSelection(t){this._preSelection=t}render(){var t;return a.addIDInfoIfNotExists(this.el,"input"),s(e,null,s("ez-text-input",{"data-element-id":a.getInternalIDInfo("textInput"),class:this.suppressSearch?"suppressed-search-input":"",ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder},s("button",{class:"btn",slot:"leftIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},this.canShowLoadSpinDescription()?s("div",{class:"message__loading"}):s("ez-icon",{iconName:"search"})),(null===(t=this._textInput)||void 0===t?void 0:t.value)&&(this._criteria||this.value)||this.ensureClearButtonVisible?s("button",{class:"btn btn__close",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.clearSearch()},s("ez-icon",{iconName:"close"})):void 0),s("ez-popover-plus",{ref:t=>this._ezPopOverPlusElement=t,autoClose:!1,overlayType:"none",useAnchorSize:!0,anchorElement:[this._textInput,this.el],"data-element-id":this.el.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("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
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,f as r,H as s,g as n}from"./p-23a36bb6.js";import{ApplicationContext as o,Action as h,StringUtils as a,KeyboardManager as l,DataUnit as u,ElementIDUtils as c}from"@sankhyalabs/core";import{D as f}from"./p-f61fc4f4.js";import{b as d}from"./p-332d7425.js";import{F as p}from"./p-30ffb9ed.js";import"./p-36805134.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{b as v,S as m,f as b,a as y}from"./p-0491c09f.js";import{i as w}from"./p-bfbf8909.js";function E(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var g="function"==typeof Symbol&&Symbol.observable||"@@observable",j=function(){return Math.random().toString(36).substring(7).split("").join(".")},z={INIT:"@@redux/INIT"+j(),REPLACE:"@@redux/REPLACE"+j(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+j()}};function F(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function C(t,i,e){var r;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(E(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(E(1));return e(C)(t,i)}if("function"!=typeof t)throw new Error(E(2));var s=t,n=i,o=[],h=o,a=!1;function l(){h===o&&(h=o.slice())}function u(){if(a)throw new Error(E(3));return n}function c(t){if("function"!=typeof t)throw new Error(E(4));if(a)throw new Error(E(5));var i=!0;return l(),h.push(t),function(){if(i){if(a)throw new Error(E(6));i=!1,l();var e=h.indexOf(t);h.splice(e,1),o=null}}}function f(t){if(!F(t))throw new Error(E(7));if(void 0===t.type)throw new Error(E(8));if(a)throw new Error(E(9));try{a=!0,n=s(n,t)}finally{a=!1}for(var i=o=h,e=0;e<i.length;e++)(0,i[e])();return t}function d(t){if("function"!=typeof t)throw new Error(E(10));s=t,f({type:z.REPLACE})}function p(){var t,i=c;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(E(11));function e(){t.next&&t.next(u())}return e(),{unsubscribe:i(e)}}})[g]=function(){return this},t}return f({type:z.INIT}),(r={dispatch:f,subscribe:c,getState:u,replaceReducer:d})[g]=p,r}const O={};function _(t=O,i){switch(i.type){case N.METADATA_LOADED:return Object.assign(Object.assign({},t),{formMetadata:i.payload,currentSheet:void 0});case N.CHANGE_TAB:return Object.assign(Object.assign({},t),{currentSheet:i.payload});default:return t}}function x(t){return t.formMetadata}function A(t){const i=function(t){return t.currentSheet}(t);return i?t.formMetadata.getSheet(i):Array.from(t.formMetadata.getAllSheets().values())[0]}var N;!function(t){t.METADATA_LOADED="FORM/METADATA_LOADED",t.CHANGE_TAB="FORM/CHANGE_TAB"}(N||(N={}));const S=class{constructor(e){t(this,e),this.ezFormRequestClearFieldToFocus=i(this,"ezFormRequestClearFieldToFocus",7),this.ezFormSetFields=i(this,"ezFormSetFields",7),this.ezReady=i(this,"ezReady",7),this.formItemsReady=i(this,"formItemsReady",7),this._customEditors=new Map,this._application=o.getContextValue("__SNK__APPLICATION__"),this.onDataUnitAction=t=>{t.type===h.METADATA_LOADED&&this.processMetadata()},this._fieldsProps=new Map,this._singleColumn=!1,this.dataUnit=void 0,this.config=void 0,this.recordsValidator=void 0,this.fieldToFocus=void 0,this.onlyStaticFields=!1,this.useSearchField=!0,this.elementFocusSearchField=void 0}validate(){return this._dataBinder.validate()}async addCustomEditor(t,i,e){if(this._formView)return void this._formView.addCustomEditor(t,i,e);const r=new Map(this._customEditors);r.set(t,{customEditor:i,detailContext:e}),this._customEditors=r}observeConfig(){this.processMetadata()}async setFieldProp(t,i,e){const r=new Map(this._fieldsProps),s=this._fieldsProps.get(t);r.set(t,Object.assign(Object.assign({},s),{[i]:e})),this._fieldsProps=r}getDynamicContent(){var t;const i=x(this._store.getState());if(!i)return null;const r=Array.from(i.getAllSheets().values()),s=A(null===(t=this._store)||void 0===t?void 0:t.getState());let n=[];if(r.length>1){const t=r.map(((t,i)=>({tabKey:t.name,label:t.label,index:i}))),i="selector";n.push(e("ez-tabselector",{tabs:this.buildIdTabSelector(t),onEzChange:t=>this._store.dispatch(function(t){return{type:N.CHANGE_TAB,payload:"string"==typeof t?t:t.tabKey}}(t.detail)),selectedTab:s.name,"data-element-id":i}))}return n=n.concat(this.buildFormContent(s)),n}buildFormContent(t){const i=null==t?void 0:t.fields;if(null==t)return;this.ezFormSetFields.emit(i);const r=`${a.replaceAccentuatedChars(a.toCamelCase(null==t?void 0:t.label),!1)}_selectorContainer`;return e("div",{class:"dynamic-content ez-box--no-outline","data-element-id":r,ref:t=>this._container=t,tabindex:"0"},e("ez-popover",{ref:t=>this._ezPopoverSearchField=t,overlayType:"none"},this.renderFieldColumn()),e("ez-form-view",{ref:t=>this._formView=t,class:"ez-row ez-padding-vertical--small",fields:i,singleColumn:this._singleColumn,selectedRecord:this.dataUnit.getSelectedRecord()}))}renderFieldColumn(){return null!=this._fieldSearch||(this._fieldSearch=v({value:a.generateUUID(),label:this._i18n("ez-form.labelSearchField")},(({argument:t})=>this.fieldsOptionLoader(t)),(t=>this.onSelectField(t)))),this._fieldSearch}getFormFields(){var t;return null===(t=this.config)||void 0===t?void 0:t.fields}fieldsOptionLoader(t){const i=null==t?void 0:t.toLowerCase(),e=this.getFormFields().map((t=>{var i;return null===(i=this.dataUnit)||void 0===i?void 0:i.getField(t.name)})).filter((t=>{var e,r;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(i))||(null===(r=t.label)||void 0===r?void 0:r.toLowerCase().includes(i))})).map((t=>({value:t.name,label:t.label})));return Promise.resolve(e)}onSelectField(t){null!=t&&null!=t.value?(this.fieldToFocus=t.value,this._ezPopoverSearchField.hide()):this.fieldToFocus=""}async initKeyboardManager(){var t,i;this._keyboardManager=new l({propagate:!1,element:null!==(t=this.elementFocusSearchField)&&void 0!==t?t:this._element}),this.useSearchField&&this._keyboardManager.bind(m,(async()=>{if(!this._container||!this._ezPopoverSearchField)return;const t=this._container.getBoundingClientRect();await b(this._fieldSearch),this._ezPopoverSearchField.showUnder(this._container,{horizontalGap:t.width-y,verticalGap:-1*t.height})}),{description:this._i18n("ez-form.labelSearchField"),element:null!==(i=this.elementFocusSearchField)&&void 0!==i?i:this._element})}componentDidLoad(){this.initKeyboardManager()}processMetadata(){if(this.bindFields()&&this.dataUnit&&this._store){const t=d(this.config,this.dataUnit);this._store.dispatch({type:N.METADATA_LOADED,payload:t})}}isStatic(){var t;return(null===(t=this._staticFields)||void 0===t?void 0:t.length)>0}bindFields(){return!this.isStatic()||!1===this.onlyStaticFields}async componentWillLoad(){var t;void 0===this.dataUnit&&(this.dataUnit=new u("ez-form")),this.dataUnit.unsubscribe(this.onDataUnitAction),this.dataUnit.subscribe(this.onDataUnitAction),this._dataBinder=new f(this.dataUnit),this._store=C(_),this._store.subscribe((()=>r(this))),this._staticFields=Array.from(this._element.querySelectorAll("[data-field-name]")),this.processMetadata(),c.addIDInfo(this._element,null,{dataUnit:this.dataUnit});const i=await(null===(t=this._application)||void 0===t?void 0:t.getLayoutFormConfig());this.setSingleColumn(i),this.registerNotifyListeners(i),this._i18n=await w()}async setSingleColumn(t){this._singleColumn=(null==t?void 0:t.config)===p.CASCADE}async registerNotifyListeners(t){t&&t.onConfigChange((t=>{this._singleColumn=t===p.CASCADE}))}componentDidRender(){const t=x(this._store.getState());t.addRequiredFields(this._staticFields.filter((t=>t.dataset.required)).map((t=>t.dataset.fieldName))),this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")),this.dataUnit.dataUnitId,t,this.recordsValidator),this.ezReady.emit(),this.handleFieldToFocus(),this.setCustomEditors(),this.setFieldsProps()}setCustomEditors(){if(this._formView)for(const[t,i]of this._customEditors)this._formView.addCustomEditor(t,i.customEditor,i.detailContext),this._customEditors.delete(t)}handleFieldToFocus(){var t;if(null==this.fieldToFocus)return;const i=A(null===(t=this._store)||void 0===t?void 0:t.getState());(null==i?void 0:i.fields).some((t=>t.name===this.fieldToFocus))&&requestAnimationFrame((()=>{this._dataBinder.setFocus(this.fieldToFocus),this.ezFormRequestClearFieldToFocus.emit(),this.fieldToFocus=null}))}setFieldsProps(){if(this._formView)for(const[t,i]of this._fieldsProps){for(const e in i)this._formView.setFieldProp(t,e,i[e]);this._fieldsProps.delete(t)}}disconnectedCallback(){var t;this.dataUnit.unsubscribe(this.onDataUnitAction),this._dataBinder.onDisconnectedCallback(),null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}buildIdTabSelector(t){return t&&t.forEach((t=>t[c.DATA_ELEMENT_ID_ATTRIBUTE_NAME]=a.toCamelCase(t.label))),t}render(){return e(s,null,this.isStatic()?null:this.getDynamicContent())}get _element(){return n(this)}static get watchers(){return{config:["observeConfig"]}}};S.style=".sc-ez-form-h{display:flex;flex-direction:column;width:100%}.dynamic-content.sc-ez-form ez-collapsible-box.sc-ez-form{--ez-collapsible-box__header--padding-right:var(--space-small, 6px);--ez-collapsible-box__header--padding-left:var(--space-small, 6px)}";export{S as ez_form}
Binary file
@@ -0,0 +1 @@
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 i,h as s,g as e}from"./p-23a36bb6.js";import{NumberUtils as h,StringUtils as r,ElementIDUtils as n}from"@sankhyalabs/core";import{C as a}from"./p-ec7db713.js";import{i as o}from"./p-638a30d0.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this.ezInput=i(this,"ezInput",7),this._focused=!1,this._changePending=!1,this._valuePromiseCallbacks=[],this._value=void 0,this.label=void 0,this.value=void 0,this.enabled=!0,this.canShowError=!0,this.errorMessage=void 0,this.allowNegative=!0,this.precision=void 0,this.prettyPrecision=void 0,this.mode="regular",this.autoFocus=!1,this.alternativePlaceholder=void 0}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){this._textInput&&t!=i&&this.handleNewValue(t,i),this._changePending=!1}observePrecision(){this._textInput&&this.setInputValue()}handleNewValue(t,i){const s=this.validateValue(t),e=this.validateValue(i);if(null===s&&(this._value=""),s===e)return;const h=this.getTextValue(s)||"",r=this.getParsedNumber(h);(this._value||"")===h||void 0===r&&this._focused||(this._value=h,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===s?void 0:s)}validateValue(t){return isNaN(t)||void 0===t?null:t}getTextValue(t){if(null==t)return;let i=this.precision>=0?h.format(t.toString(),Number(this.precision),Number(this.prettyPrecision)):t.toString();return 0===this.precision?r.replaceAll(i,".",""):i}changeValue(t){this.errorMessage="",this.value!=t?this.value=void 0===t?null:t:(this.setInputValue(),this.ezCancelWaitingChange.emit())}setError(t){this.value=null,this.errorMessage=t,this.ezCancelWaitingChange.emit()}handleBlur(){if(this._changePending)try{const t=this.getParsedNumber();if(void 0!==t&&isNaN(t))this.setError(this.i18n("ez-number-input.invalidNumber"));else try{this.changeValue(t)}catch(t){return void this.setError(t.message)}}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}handleInput(){const t=this.getParsedNumber();t!==this.value&&(this._focused=!0,this._changePending=!0,this.ezInput.emit(t),this.ezStartChange.emit({waitmessage:"",blocking:!1}))}getParsedNumber(t=this._textInput.value){return(null==t?void 0:t.trim())?h.stringToNumber(t):void 0}setInputValue(){const t=this.getTextValue(this.value)||"";(this._value||"")!==t&&(this._value=t,this._textInput.value=this._value)}async componentWillLoad(){this.i18n=await o()}componentDidLoad(){a.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){n.addIDInfoIfNotExists(this._elem,"input");let t=this.precision>0?"0123456789,.":"0123456789";return this.allowNegative&&(t+="-"),s("ez-text-input",{class:"number__input","data-element-id":n.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),restrict:t,enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError,value:this._value,alternativePlaceholder:this.alternativePlaceholder})}get _elem(){return e(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"],precision:["observePrecision"],prettyPrecision:["observePrecision"]}}};l.style=":host{--ez-number-input__min-width:0px;--ez-number-input__max-width:100%;display:block;width:100%}.number__input{height:100%;min-width:var(--ez-number-input__min-width);max-width:var(--ez-number-input__max-width)}";export{l as ez_number_input}
1
+ import{r as t,c as i,h as s,g as e}from"./p-23a36bb6.js";import{NumberUtils as h,StringUtils as r,ElementIDUtils as n}from"@sankhyalabs/core";import{C as a}from"./p-ec7db713.js";import{i as o}from"./p-bfbf8909.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this.ezInput=i(this,"ezInput",7),this._focused=!1,this._changePending=!1,this._valuePromiseCallbacks=[],this._value=void 0,this.label=void 0,this.value=void 0,this.enabled=!0,this.canShowError=!0,this.errorMessage=void 0,this.allowNegative=!0,this.precision=void 0,this.prettyPrecision=void 0,this.mode="regular",this.autoFocus=!1,this.alternativePlaceholder=void 0}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){this._textInput&&t!=i&&this.handleNewValue(t,i),this._changePending=!1}observePrecision(){this._textInput&&this.setInputValue()}handleNewValue(t,i){const s=this.validateValue(t),e=this.validateValue(i);if(null===s&&(this._value=""),s===e)return;const h=this.getTextValue(s)||"",r=this.getParsedNumber(h);(this._value||"")===h||void 0===r&&this._focused||(this._value=h,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===s?void 0:s)}validateValue(t){return isNaN(t)||void 0===t?null:t}getTextValue(t){if(null==t)return;let i=this.precision>=0?h.format(t.toString(),Number(this.precision),Number(this.prettyPrecision)):t.toString();return 0===this.precision?r.replaceAll(i,".",""):i}changeValue(t){this.errorMessage="",this.value!=t?this.value=void 0===t?null:t:(this.setInputValue(),this.ezCancelWaitingChange.emit())}setError(t){this.value=null,this.errorMessage=t,this.ezCancelWaitingChange.emit()}handleBlur(){if(this._changePending)try{const t=this.getParsedNumber();if(void 0!==t&&isNaN(t))this.setError(this.i18n("ez-number-input.invalidNumber"));else try{this.changeValue(t)}catch(t){return void this.setError(t.message)}}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}handleInput(){const t=this.getParsedNumber();t!==this.value&&(this._focused=!0,this._changePending=!0,this.ezInput.emit(t),this.ezStartChange.emit({waitmessage:"",blocking:!1}))}getParsedNumber(t=this._textInput.value){return(null==t?void 0:t.trim())?h.stringToNumber(t):void 0}setInputValue(){const t=this.getTextValue(this.value)||"";(this._value||"")!==t&&(this._value=t,this._textInput.value=this._value)}async componentWillLoad(){this.i18n=await o()}componentDidLoad(){a.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){n.addIDInfoIfNotExists(this._elem,"input");let t=this.precision>0?"0123456789,.":"0123456789";return this.allowNegative&&(t+="-"),s("ez-text-input",{class:"number__input","data-element-id":n.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),restrict:t,enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError,value:this._value,alternativePlaceholder:this.alternativePlaceholder})}get _elem(){return e(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"],precision:["observePrecision"],prettyPrecision:["observePrecision"]}}};l.style=":host{--ez-number-input__min-width:0px;--ez-number-input__max-width:100%;display:block;width:100%}.number__input{height:100%;min-width:var(--ez-number-input__min-width);max-width:var(--ez-number-input__max-width)}";export{l as ez_number_input}
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as e,c as i,h as t,g as r}from"./p-23a36bb6.js";import{StringUtils as o,ElementIDUtils as l}from"@sankhyalabs/core";import{i as s}from"./p-638a30d0.js";const a=class{constructor(t){e(this,t),this.ezClick=i(this,"ezClick",7),this.ezRemove=i(this,"ezRemove",7),this.canRemove=!0,this.fileName=void 0,this.iconName=void 0,this.fileSize=void 0,this.progress=100}observeProgress(e){if(e<0||e>100)throw new Error(this.i18n("ez-file-item.invalidProgress"));this._element.style.setProperty("--ez-file-item--upload-progress",100-e+"%")}getFileSize(){return this.fileSize&&0!==this.fileSize?`(${o.formatBytes(this.fileSize)})`:""}getIconName(){let e;if(this.iconName)return this.iconName;if(this.fileName.indexOf(".")>-1){const i=this.fileName.lastIndexOf(".");e=this.fileName.substring(i)}return n[e]||f}async componentWillLoad(){this.i18n=await s()}render(){return this._element.title=`${this.fileName} ${this.getFileSize()}`,l.addIDInfoIfNotExists(this._element,"ezFileIcon"),t("div",{class:"box",onClick:()=>this.ezClick.emit(this.fileName)},t("div",{class:"content"},t("ez-icon",{"data-element-id":l.getInternalIDInfo("fileIcon"),class:"file-type-icon",size:"medium","icon-name":this.getIconName()}),t("label",{class:"file-name"},this.fileName),t("label",{class:"file-size"},this.getFileSize())),this.canRemove?t("ez-icon",{"data-element-id":l.getInternalIDInfo("remove"),class:"btn-remove",size:"medium","icon-name":"close",title:this.i18n("app.remove"),onClick:e=>{this.ezRemove.emit(this.fileName),e.stopPropagation()}}):void 0)}get _element(){return r(this)}static get watchers(){return{progress:["observeProgress"]}}},n={".exe":"exe",".gif":"gif",".mp3":"mp3",".mp4":"mp4",".pdf":"pdf",".png":"png",".txt":"txt",".zip":"zip",".docx":"docx",".xlsx":"xlsx",".pptx":"pptx"},f="generic";a.style=':host{display:flex;width:100%;--ez-file-item--height:42px;--ez-file-item--padding:9px;--ez-file-item--border-radius:var(--border--radius-medium, 12px);--ez-file-item--border-color:var(--color--strokes, #DCE0E8);--ez-file-item--border-style:var(--border--small, 1px solid);--ez-file-item--font-family:var(--font-pattern, Arial);--ez-file-item--font-size:var(--text--medium, 14px);--ez-file-item--font-weight:var(--text-weight--medium, 400);--ez-file-item--color:var(--title--primary, #2B3A54);--ez-file-item__file-size--font-weight:var(--text-weight--large, 600);--ez-file-item__file-size--color:var(--color--primary, #008561);--ez-file-item__background-progress--color:var(--color--primary-300, E2F4EF);--ez-file-item--icon-color:var(--title--primary, #2B3A54)}.box{display:flex;box-sizing:border-box;position:relative;align-items:center;justify-content:space-between;width:100%;padding:var(--ez-file-item--padding);border:var(--ez-file-item--border-color) var(--ez-file-item--border-style);border-radius:var(--ez-file-item--border-radius);height:var(--ez-file-item--height)}.box::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;clip-path:inset(2px calc(var(--ez-file-item--upload-progress, 0%) + 2px) 2px 2px round calc(var(--ez-file-item--border-radius) - 4px));background-color:var(--ez-file-item__background-progress--color)}.content{display:flex;align-items:center;z-index:0;overflow:hidden}.file-name{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item--font-weight);color:var(--ez-file-item--color)}.file-type-icon{flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color);padding-right:var(--ez-file-item--padding)}.file-size{padding-left:2px;overflow:hidden;flex-shrink:0;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item__file-size--font-weight);color:var(--ez-file-item__file-size--color)}.btn-remove{cursor:pointer;flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color)}';export{a as ez_file_item}
1
+ import{r as e,c as i,h as t,g as r}from"./p-23a36bb6.js";import{StringUtils as o,ElementIDUtils as l}from"@sankhyalabs/core";import{i as s}from"./p-bfbf8909.js";const a=class{constructor(t){e(this,t),this.ezClick=i(this,"ezClick",7),this.ezRemove=i(this,"ezRemove",7),this.canRemove=!0,this.fileName=void 0,this.iconName=void 0,this.fileSize=void 0,this.progress=100}observeProgress(e){if(e<0||e>100)throw new Error(this.i18n("ez-file-item.invalidProgress"));this._element.style.setProperty("--ez-file-item--upload-progress",100-e+"%")}getFileSize(){return this.fileSize&&0!==this.fileSize?`(${o.formatBytes(this.fileSize)})`:""}getIconName(){let e;if(this.iconName)return this.iconName;if(this.fileName.indexOf(".")>-1){const i=this.fileName.lastIndexOf(".");e=this.fileName.substring(i)}return n[e]||f}async componentWillLoad(){this.i18n=await s()}render(){return this._element.title=`${this.fileName} ${this.getFileSize()}`,l.addIDInfoIfNotExists(this._element,"ezFileIcon"),t("div",{class:"box",onClick:()=>this.ezClick.emit(this.fileName)},t("div",{class:"content"},t("ez-icon",{"data-element-id":l.getInternalIDInfo("fileIcon"),class:"file-type-icon",size:"medium","icon-name":this.getIconName()}),t("label",{class:"file-name"},this.fileName),t("label",{class:"file-size"},this.getFileSize())),this.canRemove?t("ez-icon",{"data-element-id":l.getInternalIDInfo("remove"),class:"btn-remove",size:"medium","icon-name":"close",title:this.i18n("app.remove"),onClick:e=>{this.ezRemove.emit(this.fileName),e.stopPropagation()}}):void 0)}get _element(){return r(this)}static get watchers(){return{progress:["observeProgress"]}}},n={".exe":"exe",".gif":"gif",".mp3":"mp3",".mp4":"mp4",".pdf":"pdf",".png":"png",".txt":"txt",".zip":"zip",".docx":"docx",".xlsx":"xlsx",".pptx":"pptx"},f="generic";a.style=':host{display:flex;width:100%;--ez-file-item--height:42px;--ez-file-item--padding:9px;--ez-file-item--border-radius:var(--border--radius-medium, 12px);--ez-file-item--border-color:var(--color--strokes, #DCE0E8);--ez-file-item--border-style:var(--border--small, 1px solid);--ez-file-item--font-family:var(--font-pattern, Arial);--ez-file-item--font-size:var(--text--medium, 14px);--ez-file-item--font-weight:var(--text-weight--medium, 400);--ez-file-item--color:var(--title--primary, #2B3A54);--ez-file-item__file-size--font-weight:var(--text-weight--large, 600);--ez-file-item__file-size--color:var(--color--primary, #008561);--ez-file-item__background-progress--color:var(--color--primary-300, E2F4EF);--ez-file-item--icon-color:var(--title--primary, #2B3A54)}.box{display:flex;box-sizing:border-box;position:relative;align-items:center;justify-content:space-between;width:100%;padding:var(--ez-file-item--padding);border:var(--ez-file-item--border-color) var(--ez-file-item--border-style);border-radius:var(--ez-file-item--border-radius);height:var(--ez-file-item--height)}.box::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;clip-path:inset(2px calc(var(--ez-file-item--upload-progress, 0%) + 2px) 2px 2px round calc(var(--ez-file-item--border-radius) - 4px));background-color:var(--ez-file-item__background-progress--color)}.content{display:flex;align-items:center;z-index:0;overflow:hidden}.file-name{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item--font-weight);color:var(--ez-file-item--color)}.file-type-icon{flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color);padding-right:var(--ez-file-item--padding)}.file-size{padding-left:2px;overflow:hidden;flex-shrink:0;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item__file-size--font-weight);color:var(--ez-file-item__file-size--color)}.btn-remove{cursor:pointer;flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color)}';export{a as ez_file_item}
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as n,h as i}from"./p-23a36bb6.js";import{i as e}from"./p-638a30d0.js";import"@sankhyalabs/core";const r=["progress","pulse","false"],t=["circle","rect","text"],a="text",o="progress",s="circle",g=class{constructor(i){n(this,i),this.items=[],this.template=void 0,this.count=1,this.variant=a,this.width=null,this.height=null,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.animation=o}async componentWillLoad(){this.i18n=await e(),this.initializeItems()}componentWillUpdate(){this.initializeItems()}initializeItems(){this.items=Array(this.count).fill(1)}getSkeletonConfig(n){if(n)return(null==n?void 0:n.variant)==s?(n.width=n.width||"var(--skeleton-width, 40px)",n.height=n.height||"var(--skeleton-height, 40px)"):n.width=n.width||"var(--skeleton-width, 100%)",{skeletonClasses:{skeleton:!0,circle:n.variant===s,rect:"rect"===n.variant,progress:"progress"===n.animation,pulse:"pulse"===n.animation},styles:{width:(n.marginRight||n.marginLeft)&&n.width&&n.variant!=s?`calc(${n.width} ${n.marginRight?`- ${n.marginRight}`:""} ${n.marginLeft?`- ${n.marginLeft}`:""})`:n.width,height:n.height,marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft}}}validateVariant(n){return t.includes(n)?n:a}validateAnimation(n){return r.includes(n)?n:o}renderSkeletonTemplate(n){var e;const r=(null===(e=n.$attrs)||void 0===e?void 0:e.innerHTML)||n;if("string"==typeof r){const n=document.createElement("div");n.innerHTML=r;const e=(null==n?void 0:n.querySelectorAll(":not(.skeleton) > *"))||[];return Array.from(e).map((n=>{var e,r,t,a,o,s,g,l,d,p;if(null===(e=null==n?void 0:n.classList)||void 0===e?void 0:e.contains("skeleton")){const i=this.getSkeletonConfig({variant:this.validateVariant((null===(r=n.getAttribute("variant"))||void 0===r?void 0:r.replace(/[{}]/g,""))||this.variant),width:(null===(t=n.getAttribute("width"))||void 0===t?void 0:t.replace(/[{}]/g,""))||this.width,height:(null===(a=n.getAttribute("height"))||void 0===a?void 0:a.replace(/[{}]/g,""))||this.height,marginTop:(null===(o=n.getAttribute("marginTop"))||void 0===o?void 0:o.replace(/[{}]/g,""))||this.marginTop,marginLeft:(null===(s=n.getAttribute("marginLeft"))||void 0===s?void 0:s.replace(/[{}]/g,""))||this.marginLeft,marginRight:(null===(g=n.getAttribute("marginRight"))||void 0===g?void 0:g.replace(/[{}]/g,""))||this.marginRight,marginBottom:(null===(l=n.getAttribute("marginBottom"))||void 0===l?void 0:l.replace(/[{}]/g,""))||this.marginBottom,animation:this.validateAnimation((null===(d=n.getAttribute("animation"))||void 0===d?void 0:d.replace(/[{}]/g,""))||this.animation)}),e=Number(null===(p=n.getAttribute("count"))||void 0===p?void 0:p.replace(/[{}]/g,""))||1;return Array(e).fill(1).map(((n,e)=>this.renderSkeletonItem(e,i)))}return i("div",{innerHTML:n.outerHTML})}))}return n}renderSkeletonItem(n,i){const e=i||this.getSkeletonConfig({variant:this.validateVariant(this.variant),animation:this.validateAnimation(this.animation),width:this.width,height:this.height,marginTop:this.marginTop,marginRight:this.marginRight,marginBottom:this.marginBottom,marginLeft:this.marginLeft});return this.renderSkeletonSpan(n,e)}renderSkeletonSpan(n,e){return i("span",{key:n,class:null==e?void 0:e.skeletonClasses,style:null==e?void 0:e.styles,"data-busy":"true","data-valuemin":"0","data-valuemax":"100","data-valuetext":this.i18n("app.loading"),role:"progressbar",tabindex:"0"})}render(){return this.template?this.renderSkeletonTemplate(this.template):this.items.map(((n,i)=>this.renderSkeletonItem(i)))}};g.style=".skeleton {\n background: var(--skeleton-background, #f0f3f7) no-repeat;\n border-radius: var(--skeleton-border-radius, 12px);\n width: var(--skeleton-width, 100%);\n height: var(--skeleton-height, 20px);\n display: inline-block;\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n\tmargin-top: var(--skeleton-margin-top, 0px);\n\tmargin-right: var(--skeleton-margin-right, 0px);\n\tmargin-left: var(--skeleton-margin-left, 0px);\n box-sizing: border-box;\n outline: none;\n overflow: hidden;\n position: relative;\n -webkit-will-change: transform;\n -moz-will-change: transform;\n will-change: transform;\n\n &:after,\n &:before {\n box-sizing: border-box;\n }\n\n &.circle {\n width: var(--skeleton-width, 40px);\n height: var(--skeleton-height, 40px);\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n border-radius: var(--skeleton-border-radius, 50%);\n }\n\n &.rect {\n border-radius: var(--skeleton-border-radius, 0px);\n }\n\n &.progress,\n &.progress-dark {\n -webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n background-size: 200px 100%;\n }\n\n &.progress {\n background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n }\n\n &.progress-dark {\n background-image: -webkit-linear-gradient(90deg, transparent, hsla(0, 0%, 0%, 0.2), transparent);\n background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n }\n\n &.pulse {\n -webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation-delay: 0.5s;\n }\n\n @media (prefers-reduced-motion: reduce) {\n &.pulse,\n &.progress-dark,\n &.progress {\n animation: none;\n }\n\n &.progress,\n &.progress-dark {\n background-image: none;\n }\n }\n}\n\n@-webkit-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-moz-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-ms-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n\n@-webkit-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-moz-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-ms-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n";export{g as ez_skeleton}
1
+ import{r as n,h as i}from"./p-23a36bb6.js";import{i as e}from"./p-bfbf8909.js";import"@sankhyalabs/core";const r=["progress","pulse","false"],t=["circle","rect","text"],a="text",o="progress",s="circle",g=class{constructor(i){n(this,i),this.items=[],this.template=void 0,this.count=1,this.variant=a,this.width=null,this.height=null,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.animation=o}async componentWillLoad(){this.i18n=await e(),this.initializeItems()}componentWillUpdate(){this.initializeItems()}initializeItems(){this.items=Array(this.count).fill(1)}getSkeletonConfig(n){if(n)return(null==n?void 0:n.variant)==s?(n.width=n.width||"var(--skeleton-width, 40px)",n.height=n.height||"var(--skeleton-height, 40px)"):n.width=n.width||"var(--skeleton-width, 100%)",{skeletonClasses:{skeleton:!0,circle:n.variant===s,rect:"rect"===n.variant,progress:"progress"===n.animation,pulse:"pulse"===n.animation},styles:{width:(n.marginRight||n.marginLeft)&&n.width&&n.variant!=s?`calc(${n.width} ${n.marginRight?`- ${n.marginRight}`:""} ${n.marginLeft?`- ${n.marginLeft}`:""})`:n.width,height:n.height,marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft}}}validateVariant(n){return t.includes(n)?n:a}validateAnimation(n){return r.includes(n)?n:o}renderSkeletonTemplate(n){var e;const r=(null===(e=n.$attrs)||void 0===e?void 0:e.innerHTML)||n;if("string"==typeof r){const n=document.createElement("div");n.innerHTML=r;const e=(null==n?void 0:n.querySelectorAll(":not(.skeleton) > *"))||[];return Array.from(e).map((n=>{var e,r,t,a,o,s,g,l,d,p;if(null===(e=null==n?void 0:n.classList)||void 0===e?void 0:e.contains("skeleton")){const i=this.getSkeletonConfig({variant:this.validateVariant((null===(r=n.getAttribute("variant"))||void 0===r?void 0:r.replace(/[{}]/g,""))||this.variant),width:(null===(t=n.getAttribute("width"))||void 0===t?void 0:t.replace(/[{}]/g,""))||this.width,height:(null===(a=n.getAttribute("height"))||void 0===a?void 0:a.replace(/[{}]/g,""))||this.height,marginTop:(null===(o=n.getAttribute("marginTop"))||void 0===o?void 0:o.replace(/[{}]/g,""))||this.marginTop,marginLeft:(null===(s=n.getAttribute("marginLeft"))||void 0===s?void 0:s.replace(/[{}]/g,""))||this.marginLeft,marginRight:(null===(g=n.getAttribute("marginRight"))||void 0===g?void 0:g.replace(/[{}]/g,""))||this.marginRight,marginBottom:(null===(l=n.getAttribute("marginBottom"))||void 0===l?void 0:l.replace(/[{}]/g,""))||this.marginBottom,animation:this.validateAnimation((null===(d=n.getAttribute("animation"))||void 0===d?void 0:d.replace(/[{}]/g,""))||this.animation)}),e=Number(null===(p=n.getAttribute("count"))||void 0===p?void 0:p.replace(/[{}]/g,""))||1;return Array(e).fill(1).map(((n,e)=>this.renderSkeletonItem(e,i)))}return i("div",{innerHTML:n.outerHTML})}))}return n}renderSkeletonItem(n,i){const e=i||this.getSkeletonConfig({variant:this.validateVariant(this.variant),animation:this.validateAnimation(this.animation),width:this.width,height:this.height,marginTop:this.marginTop,marginRight:this.marginRight,marginBottom:this.marginBottom,marginLeft:this.marginLeft});return this.renderSkeletonSpan(n,e)}renderSkeletonSpan(n,e){return i("span",{key:n,class:null==e?void 0:e.skeletonClasses,style:null==e?void 0:e.styles,"data-busy":"true","data-valuemin":"0","data-valuemax":"100","data-valuetext":this.i18n("app.loading"),role:"progressbar",tabindex:"0"})}render(){return this.template?this.renderSkeletonTemplate(this.template):this.items.map(((n,i)=>this.renderSkeletonItem(i)))}};g.style=".skeleton {\n background: var(--skeleton-background, #f0f3f7) no-repeat;\n border-radius: var(--skeleton-border-radius, 12px);\n width: var(--skeleton-width, 100%);\n height: var(--skeleton-height, 20px);\n display: inline-block;\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n\tmargin-top: var(--skeleton-margin-top, 0px);\n\tmargin-right: var(--skeleton-margin-right, 0px);\n\tmargin-left: var(--skeleton-margin-left, 0px);\n box-sizing: border-box;\n outline: none;\n overflow: hidden;\n position: relative;\n -webkit-will-change: transform;\n -moz-will-change: transform;\n will-change: transform;\n\n &:after,\n &:before {\n box-sizing: border-box;\n }\n\n &.circle {\n width: var(--skeleton-width, 40px);\n height: var(--skeleton-height, 40px);\n margin-bottom: var(--skeleton-margin-bottom, 0px);\n border-radius: var(--skeleton-border-radius, 50%);\n }\n\n &.rect {\n border-radius: var(--skeleton-border-radius, 0px);\n }\n\n &.progress,\n &.progress-dark {\n -webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n background-size: 200px 100%;\n }\n\n &.progress {\n background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--skeleton-background-image, #e4eaf1), rgba(255, 255, 255, 0));\n }\n\n &.progress-dark {\n background-image: -webkit-linear-gradient(90deg, transparent, hsla(0, 0%, 0%, 0.2), transparent);\n background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n }\n\n &.pulse {\n -webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation-delay: 0.5s;\n }\n\n @media (prefers-reduced-motion: reduce) {\n &.pulse,\n &.progress-dark,\n &.progress {\n animation: none;\n }\n\n &.progress,\n &.progress-dark {\n background-image: none;\n }\n }\n}\n\n@-webkit-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-moz-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@-ms-keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n@keyframes progress {\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n}\n\n@-webkit-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-moz-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@-ms-keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n";export{g as ez_skeleton}
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
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
Binary file
@@ -1 +1 @@
1
- import{UserInterface as t,Action as i,StringUtils as s,ApplicationContext as e,ObjectUtils as n,WaitingChangeException as h,DataUnitAction as a}from"@sankhyalabs/core";import{A as r}from"./p-d878fb19.js";import{g as o}from"./p-638a30d0.js";const l=(i,s)=>{var e,n;let h,a,{name:r,label:o,group:l}=Object.assign({},s),{readOnly:c,required:d}=Object.assign({},s);return i&&(o=o||i.label,r=r||i.name,d=!!(t=>{var i;return!0===(null==t?void 0:t.required)||"S"===(null===(i=null==t?void 0:t.properties)||void 0===i?void 0:i.systemRequired)})(i)||(null!==(e=null==s?void 0:s.required)&&void 0!==e?e:i.required),c=!!(t=>{var i;return!0===(null==t?void 0:t.readOnly)||"S"===(null===(i=null==t?void 0:t.properties)||void 0===i?void 0:i.systemReadOnly)})(i)||(null!==(n=null==s?void 0:s.readOnly)&&void 0!==n?n:i.readOnly),h=i.properties,a=i.userInterface),{name:r,label:o,group:l,readOnly:c,required:d,props:h,userInterface:a||t.SHORTTEXT}};class c{constructor(t,i,s){this._dataUnit=t,this._validationSource=i,this._validator=s,this._i18n=o()}validate(t=!0){return new Promise(((i,s)=>{const e=this._dataUnit.getModifiedRecords();for(let i=0;i<e.length;i++){const n=e[i],h=[];let a=this.validateRequired(n);if(a&&!a.isValid&&h.push(a),this._validator&&(a=this._validator.validateRecord(n),a&&!a.isValid&&h.push(a)),h.length>0){if(!t&&h[0].invalidFields.length>0){this._validationSource.markAsInvalid(h[0].invalidFields[0],n.__record__id__),s();break}this.processValidationResult(h,n.__record__id__),s();break}}return i()}))}validateRequired(t){const i=this._validationSource.getRequiredFields(),s=[];if(new Set(i).forEach((i=>{const e=t[i];if(null==e||""===e){const e=this._validationSource.getMessageForField(i,t.__record__id__);s.push(e?{name:i,message:e}:{name:i,message:this._i18n("utils.requiredField")})}})),s.length>0)return{isValid:!1,invalidFields:s,infoMessage:this._i18n("utils.requiredFieldMessage")}}processValidationResult(t,i){t.forEach((t=>{const s=t.invalidFields;if(this._dataUnit.savingCanceled(s,i),s&&s.forEach((t=>{this.markAsInvalid(t,i)})),t.infoMessage&&r.info(t.infoMessage),t.errorMessage){const{errorTitle:i,errorMessage:s}=t;r.error(i,s)}}))}markAsInvalid(t,i){this._dataUnit.setInvalidField(t.name,t.message,i),this._validationSource.markAsInvalid(t,i)}}class d{constructor(t){this.onDataUnitEvent=t=>{var s;switch(t.type){case i.MULTIPLE_EDITION_CHANGED:this.clearInvalid(),this.updateAllFieldsValues();break;case i.DATA_LOADED:case i.DATA_SAVED:case i.RECORDS_REMOVED:case i.RECORDS_ADDED:case i.RECORDS_COPIED:case i.EDITION_CANCELED:case i.SELECTION_CHANGED:case i.NEXT_SELECTED:case i.PREVIOUS_SELECTED:this.clearInvalid();case i.DATA_CHANGED:case i.CHANGE_UNDONE:case i.CHANGE_REDONE:case i.RECORD_LOADED:this.updateAllFieldsValues(),this.clearFieldError(Object.keys(t.payload)[0]);break;case i.FIELD_INVALIDATED:null===(s=this._fields)||void 0===s||s.forEach((t=>{this.updateErrorMessage(t.fieldName,t.field)}))}},this._uuid=s.generateUUID(),this._fields=new Map,this._dataUnit=t,this.applyDefaultValues(),this._dataUnit.subscribe(this.onDataUnitEvent),this._dataUnit.addInterceptor(this),this.setContextDataBinder(t)}get dataBinderId(){return this._uuid}setContextDataBinder(t){const i=e.getContextValue("__DATABINDER_BY_DATAUNIT__")||new Map,s=[...i.get(t.dataUnitId)||[],this];i.set(t.dataUnitId,s),e.setContextValue("__DATABINDER_BY_DATAUNIT__",i)}applyDefaultValues(){const t=(this._dataUnit.getAddedRecords()||[]).map((t=>t.__record__id__));if(t.length>0){const i=this.getDefaultValues();i&&Object.keys(i).forEach((s=>{this._dataUnit.setFieldValue(s,i[s],t)}))}}bind(t,i,s,e){t.forEach((t=>{const{fieldName:s,contextName:e}=t.dataset;null!=e&&e!==i||this.updateBind(s,t)})),this._formMetadata=s,this._recordValidatorProcessor=new c(this._dataUnit,{getRequiredFields:()=>this.getFormRequiredFields(),markAsInvalid:t=>this.markInvalid(t),getMessageForField:t=>this.getErrorMessage(t)},e)}getFormRequiredFields(){return this._formMetadata.getRequiredFields()}disconnectDataUnit(){const t=e.getContextValue("__DATABINDER_BY_DATAUNIT__")||new Map,i=t.get(this._dataUnit.dataUnitId).filter((t=>t.dataBinderId!==this.dataBinderId));t.set(this._dataUnit.dataUnitId,i),e.setContextValue("__DATABINDER_BY_DATAUNIT__",t)}onDisconnectedCallback(){this._dataUnit.unsubscribe(this.onDataUnitEvent),this._dataUnit.removeInterceptor(this),this.disconnectDataUnit()}getCurrentRecordId(){const t=this._dataUnit.getSelectedRecord();return null==t?void 0:t.__record__id__}markInvalid(t){if(this._fields.has(t.name)){const i=this._fields.get(t.name).field;this.updateErrorMessage(t.name,i,t.message)}}setFocus(t){if(!this._fields.has(t))return;const i=this._fields.get(t).field;"function"==typeof i.setFocus&&i.setFocus()}clearInvalid(t){this._dataUnit.clearInvalid(t),this._fields.forEach((t=>{t.field.errorMessage=""}))}clearFieldError(t){var i;const s=null===(i=this._fields.get(t))||void 0===i?void 0:i.field;s&&s.errorMessage&&(s.errorMessage="",this._dataUnit.clearInvalid(this.getCurrentRecordId(),t))}updateFieldValue(t,i){const s=this._fields.get(t);try{s&&(s.listen=!1),this._dataUnit.isMultipleEdition&&this.hasMultipleValuesBetweenRecords(t)?(i.value=void 0,i.alternativePlaceholder="Múltiplos Valores"):(i.value=this._dataUnit.getFieldValue(t),i.alternativePlaceholder=void 0),this.updateErrorMessage(t,i)}finally{s&&(s.listen=!0)}}hasMultipleValuesBetweenRecords(t){var i,s;const e=null!==(s=null===(i=this._dataUnit.getSelectionInfo())||void 0===i?void 0:i.records)&&void 0!==s?s:[];if(e.length<=1)return!1;const h=e[0][t];return!e.every((i=>n.equals(i[t],h)))}validate(){return this._recordValidatorProcessor.validate()}static async validateByDataunit(t){try{const i=this.getDataBindersByDataUnit(t);return await Promise.all(i.map((t=>t.validate()))),!0}catch(t){return!1}}static getDataBindersByDataUnit(t){const i=e.getContextValue("__DATABINDER_BY_DATAUNIT__");return(null==i?void 0:i.get(t.dataUnitId))||[]}updateErrorMessage(t,i,s){null==s&&(s=this._dataUnit.getInvalidMessage(this.getCurrentRecordId(),t)),i.errorMessage||(i.errorMessage=s)}getErrorMessage(t){if(this._fields.has(t))return this._fields.get(t).field.errorMessage}updateBind(t,i){const s=this._fields.get(t);s&&s.destroy(),this.bindSearchOptionsLoader(t,i),this.updateFieldValue(t,i),this.updateErrorMessage(t,i),this._fields.set(t,u.create(t,i,((t,i)=>this.changeStarted(t,i)),(t=>this.cancelWaitingChange(t)),((t,i)=>this.setFieldValue(t,i)))),this.applyEzUploadContext(t,i)}changeStarted(t,i){if(0===this._dataUnit.records.length&&this._dataUnit.addRecord(),!i.blocking&&null==i.promise){const s=this._fields.get(t);s&&(i.promise=new Promise(((t,i)=>{s.waitingChangePromiseResolve=t,s.waitingChangePromiseReject=i})))}this._dataUnit.startChange(t,i)}cancelWaitingChange(t){if(this._dataUnit.waitingForChange(t)){this._dataUnit.cancelWaitingChange(t);const i=this._fields.get(t);i&&i.rejectWaitingChange(new h("Change canceled",t))}}setFieldValue(t,i){if(0===this._dataUnit.records.length&&this._dataUnit.addRecord(),this._dataUnit.clearInvalid(this.getCurrentRecordId(),t),this._dataUnit.isMultipleEdition){const s=this._dataUnit.getSelectionInfo();this._dataUnit.setFieldValue(t,i,s.recordIds)}else{const s=this._dataUnit.getSelectedRecord();this._dataUnit.setFieldValue(t,i,s?[s.__record__id__]:void 0)}if(this._dataUnit.waitingForChange(t)){const i=this._fields.get(t);i&&i.acceptWaitingChange()}}bindSearchOptionsLoader(t,i){if(("EZ-SEARCH"===i.nodeName||"EZ-CLASSIC-SEARCH"===i.nodeName||"EZ-SEARCH-PLUS"===i.nodeName||"EZ-CLASSIC-SEARCH-PLUS"===i.nodeName)&&null==i.optionLoader){const s=e.getContextValue("EZ-SEARCH-PLUS"===i.nodeName||"EZ-CLASSIC-SEARCH-PLUS"===i.nodeName?"__EZUI__SEARCH__PLUS__OPTION__LOADER__":"__EZUI__SEARCH__OPTION__LOADER__");s&&(i.optionLoader=(i,e)=>s(i,t,this._dataUnit,e))}}applyEzUploadContext(t,i){var s,n;if("EZ-UPLOAD"===i.nodeName){i.urlUpload=e.getContextValue("__EZUI__UPLOAD__ADD__URL__"),i.urlDelete=e.getContextValue("__EZUI__UPLOAD__DEL__URL__");const h=this._dataUnit.getField(t),a=null===(s=h.properties)||void 0===s?void 0:s.DESTINATION;a&&(i.requestHeaders={XTRAINF:`{"destination": "${a}"}`}),i.maxFiles=(null===(n=h.properties)||void 0===n?void 0:n.MAX_FILES)||0}}updateAllFieldsValues(){var t;null===(t=this._fields)||void 0===t||t.forEach((t=>{this.updateFieldValue(t.fieldName,t.field)}))}interceptAction(t){if(t.type===i.RECORDS_COPIED){const s=this._formMetadata.getCleanOnCopyFields();if(s)return new a(i.RECORDS_COPIED,t.payload.map((t=>{const i=Object.assign({},t);return s.forEach((t=>delete i[t])),i})))}if(t.type===i.SAVING_DATA)return new Promise((i=>{this.validate().then((()=>i(t))).catch((()=>{}))}));if(t.type===i.RECORDS_ADDED){const s=this.getDefaultValues();if(s)return new a(i.RECORDS_ADDED,t.payload.map((t=>Object.assign(Object.assign({},t),s))))}return t}getDefaultValues(){var t;const i=null===(t=this._formMetadata)||void 0===t?void 0:t.getDefaultValues();if(i){const t={};for(const s in i)t[s]=this._dataUnit.valueFromString(s,i[s]);return t}}}class u{constructor(){this.listen=!0,this.startChangeEventName="ezStartChange",this.cancelWaitingChangeEventName="ezCancelWaitingChange",this.changeEventName="ezChange"}destroy(){this.field.removeEventListener(this.startChangeEventName,this.startChangeListener),this.field.removeEventListener(this.cancelWaitingChangeEventName,this.cancelWaitingChangeListener),this.field.removeEventListener(this.changeEventName,this.changeListener)}acceptWaitingChange(){this.waitingChangePromiseResolve&&(this.waitingChangePromiseResolve(),this.waitingChangePromiseReject=void 0,this.waitingChangePromiseResolve=void 0)}rejectWaitingChange(t){this.waitingChangePromiseReject&&(this.waitingChangePromiseReject(t),this.waitingChangePromiseReject=void 0,this.waitingChangePromiseResolve=void 0)}static create(t,i,s,e,n){const h=new u;return h.field=i,h.fieldName=t,h.startChangeListener=i=>{h.listen&&s(t,i.detail)},h.field.addEventListener(h.startChangeEventName,h.startChangeListener),h.cancelWaitingChangeListener=()=>{h.listen&&e(t)},h.field.addEventListener(h.cancelWaitingChangeEventName,h.cancelWaitingChangeListener),h.changeListener=i=>{h.listen&&n(t,i.detail)},h.field.addEventListener(h.changeEventName,h.changeListener),h}}export{d as D,c as R,l as b}
1
+ import{UserInterface as t,Action as i,StringUtils as s,ApplicationContext as e,ObjectUtils as n,WaitingChangeException as h,DataUnitAction as a}from"@sankhyalabs/core";import{A as r}from"./p-36805134.js";import{g as o}from"./p-bfbf8909.js";const l=(i,s)=>{var e,n;let h,a,{name:r,label:o,group:l}=Object.assign({},s),{readOnly:c,required:d}=Object.assign({},s);return i&&(o=o||i.label,r=r||i.name,d=!!(t=>{var i;return!0===(null==t?void 0:t.required)||"S"===(null===(i=null==t?void 0:t.properties)||void 0===i?void 0:i.systemRequired)})(i)||(null!==(e=null==s?void 0:s.required)&&void 0!==e?e:i.required),c=!!(t=>{var i;return!0===(null==t?void 0:t.readOnly)||"S"===(null===(i=null==t?void 0:t.properties)||void 0===i?void 0:i.systemReadOnly)})(i)||(null!==(n=null==s?void 0:s.readOnly)&&void 0!==n?n:i.readOnly),h=i.properties,a=i.userInterface),{name:r,label:o,group:l,readOnly:c,required:d,props:h,userInterface:a||t.SHORTTEXT}};class c{constructor(t,i,s){this._dataUnit=t,this._validationSource=i,this._validator=s,this._i18n=o()}validate(t=!0){return new Promise(((i,s)=>{const e=this._dataUnit.getModifiedRecords();for(let i=0;i<e.length;i++){const n=e[i],h=[];let a=this.validateRequired(n);if(a&&!a.isValid&&h.push(a),this._validator&&(a=this._validator.validateRecord(n),a&&!a.isValid&&h.push(a)),h.length>0){if(!t&&h[0].invalidFields.length>0){this._validationSource.markAsInvalid(h[0].invalidFields[0],n.__record__id__),s();break}this.processValidationResult(h,n.__record__id__),s();break}}return i()}))}validateRequired(t){const i=this._validationSource.getRequiredFields(),s=[];if(new Set(i).forEach((i=>{const e=t[i];if(null==e||""===e){const e=this._validationSource.getMessageForField(i,t.__record__id__);s.push(e?{name:i,message:e}:{name:i,message:this._i18n("utils.requiredField")})}})),s.length>0)return{isValid:!1,invalidFields:s,infoMessage:this._i18n("utils.requiredFieldMessage")}}processValidationResult(t,i){t.forEach((t=>{const s=t.invalidFields;if(this._dataUnit.savingCanceled(s,i),s&&s.forEach((t=>{this.markAsInvalid(t,i)})),t.infoMessage&&r.info(t.infoMessage),t.errorMessage){const{errorTitle:i,errorMessage:s}=t;r.error(i,s)}}))}markAsInvalid(t,i){this._dataUnit.setInvalidField(t.name,t.message,i),this._validationSource.markAsInvalid(t,i)}}class d{constructor(t){this.onDataUnitEvent=t=>{var s;switch(t.type){case i.MULTIPLE_EDITION_CHANGED:this.clearInvalid(),this.updateAllFieldsValues();break;case i.DATA_LOADED:case i.DATA_SAVED:case i.RECORDS_REMOVED:case i.RECORDS_ADDED:case i.RECORDS_COPIED:case i.EDITION_CANCELED:case i.SELECTION_CHANGED:case i.NEXT_SELECTED:case i.PREVIOUS_SELECTED:this.clearInvalid();case i.DATA_CHANGED:case i.CHANGE_UNDONE:case i.CHANGE_REDONE:case i.RECORD_LOADED:this.updateAllFieldsValues(),this.clearFieldError(Object.keys(t.payload)[0]);break;case i.FIELD_INVALIDATED:null===(s=this._fields)||void 0===s||s.forEach((t=>{this.updateErrorMessage(t.fieldName,t.field)}))}},this._uuid=s.generateUUID(),this._fields=new Map,this._dataUnit=t,this.applyDefaultValues(),this._dataUnit.subscribe(this.onDataUnitEvent),this._dataUnit.addInterceptor(this),this.setContextDataBinder(t)}get dataBinderId(){return this._uuid}setContextDataBinder(t){const i=e.getContextValue("__DATABINDER_BY_DATAUNIT__")||new Map,s=[...i.get(t.dataUnitId)||[],this];i.set(t.dataUnitId,s),e.setContextValue("__DATABINDER_BY_DATAUNIT__",i)}applyDefaultValues(){const t=(this._dataUnit.getAddedRecords()||[]).map((t=>t.__record__id__));if(t.length>0){const i=this.getDefaultValues();i&&Object.keys(i).forEach((s=>{this._dataUnit.setFieldValue(s,i[s],t)}))}}bind(t,i,s,e){t.forEach((t=>{const{fieldName:s,contextName:e}=t.dataset;null!=e&&e!==i||this.updateBind(s,t)})),this._formMetadata=s,this._recordValidatorProcessor=new c(this._dataUnit,{getRequiredFields:()=>this.getFormRequiredFields(),markAsInvalid:t=>this.markInvalid(t),getMessageForField:t=>this.getErrorMessage(t)},e)}getFormRequiredFields(){return this._formMetadata.getRequiredFields()}disconnectDataUnit(){const t=e.getContextValue("__DATABINDER_BY_DATAUNIT__")||new Map,i=t.get(this._dataUnit.dataUnitId).filter((t=>t.dataBinderId!==this.dataBinderId));t.set(this._dataUnit.dataUnitId,i),e.setContextValue("__DATABINDER_BY_DATAUNIT__",t)}onDisconnectedCallback(){this._dataUnit.unsubscribe(this.onDataUnitEvent),this._dataUnit.removeInterceptor(this),this.disconnectDataUnit()}getCurrentRecordId(){const t=this._dataUnit.getSelectedRecord();return null==t?void 0:t.__record__id__}markInvalid(t){if(this._fields.has(t.name)){const i=this._fields.get(t.name).field;this.updateErrorMessage(t.name,i,t.message)}}setFocus(t){if(!this._fields.has(t))return;const i=this._fields.get(t).field;"function"==typeof i.setFocus&&i.setFocus()}clearInvalid(t){this._dataUnit.clearInvalid(t),this._fields.forEach((t=>{t.field.errorMessage=""}))}clearFieldError(t){var i;const s=null===(i=this._fields.get(t))||void 0===i?void 0:i.field;s&&s.errorMessage&&(s.errorMessage="",this._dataUnit.clearInvalid(this.getCurrentRecordId(),t))}updateFieldValue(t,i){const s=this._fields.get(t);try{s&&(s.listen=!1),this._dataUnit.isMultipleEdition&&this.hasMultipleValuesBetweenRecords(t)?(i.value=void 0,i.alternativePlaceholder="Múltiplos Valores"):(i.value=this._dataUnit.getFieldValue(t),i.alternativePlaceholder=void 0),this.updateErrorMessage(t,i)}finally{s&&(s.listen=!0)}}hasMultipleValuesBetweenRecords(t){var i,s;const e=null!==(s=null===(i=this._dataUnit.getSelectionInfo())||void 0===i?void 0:i.records)&&void 0!==s?s:[];if(e.length<=1)return!1;const h=e[0][t];return!e.every((i=>n.equals(i[t],h)))}validate(){return this._recordValidatorProcessor.validate()}static async validateByDataunit(t){try{const i=this.getDataBindersByDataUnit(t);return await Promise.all(i.map((t=>t.validate()))),!0}catch(t){return!1}}static getDataBindersByDataUnit(t){const i=e.getContextValue("__DATABINDER_BY_DATAUNIT__");return(null==i?void 0:i.get(t.dataUnitId))||[]}updateErrorMessage(t,i,s){null==s&&(s=this._dataUnit.getInvalidMessage(this.getCurrentRecordId(),t)),i.errorMessage||(i.errorMessage=s)}getErrorMessage(t){if(this._fields.has(t))return this._fields.get(t).field.errorMessage}updateBind(t,i){const s=this._fields.get(t);s&&s.destroy(),this.bindSearchOptionsLoader(t,i),this.updateFieldValue(t,i),this.updateErrorMessage(t,i),this._fields.set(t,u.create(t,i,((t,i)=>this.changeStarted(t,i)),(t=>this.cancelWaitingChange(t)),((t,i)=>this.setFieldValue(t,i)))),this.applyEzUploadContext(t,i)}changeStarted(t,i){if(0===this._dataUnit.records.length&&this._dataUnit.addRecord(),!i.blocking&&null==i.promise){const s=this._fields.get(t);s&&(i.promise=new Promise(((t,i)=>{s.waitingChangePromiseResolve=t,s.waitingChangePromiseReject=i})))}this._dataUnit.startChange(t,i)}cancelWaitingChange(t){if(this._dataUnit.waitingForChange(t)){this._dataUnit.cancelWaitingChange(t);const i=this._fields.get(t);i&&i.rejectWaitingChange(new h("Change canceled",t))}}setFieldValue(t,i){if(0===this._dataUnit.records.length&&this._dataUnit.addRecord(),this._dataUnit.clearInvalid(this.getCurrentRecordId(),t),this._dataUnit.isMultipleEdition){const s=this._dataUnit.getSelectionInfo();this._dataUnit.setFieldValue(t,i,s.recordIds)}else{const s=this._dataUnit.getSelectedRecord();this._dataUnit.setFieldValue(t,i,s?[s.__record__id__]:void 0)}if(this._dataUnit.waitingForChange(t)){const i=this._fields.get(t);i&&i.acceptWaitingChange()}}bindSearchOptionsLoader(t,i){if(("EZ-SEARCH"===i.nodeName||"EZ-SEARCH-PLUS"===i.nodeName)&&null==i.optionLoader){const s=e.getContextValue("EZ-SEARCH-PLUS"===i.nodeName?"__EZUI__SEARCH__PLUS__OPTION__LOADER__":"__EZUI__SEARCH__OPTION__LOADER__");s&&(i.optionLoader=(i,e)=>s(i,t,this._dataUnit,e))}}applyEzUploadContext(t,i){var s,n;if("EZ-UPLOAD"===i.nodeName){i.urlUpload=e.getContextValue("__EZUI__UPLOAD__ADD__URL__"),i.urlDelete=e.getContextValue("__EZUI__UPLOAD__DEL__URL__");const h=this._dataUnit.getField(t),a=null===(s=h.properties)||void 0===s?void 0:s.DESTINATION;a&&(i.requestHeaders={XTRAINF:`{"destination": "${a}"}`}),i.maxFiles=(null===(n=h.properties)||void 0===n?void 0:n.MAX_FILES)||0}}updateAllFieldsValues(){var t;null===(t=this._fields)||void 0===t||t.forEach((t=>{this.updateFieldValue(t.fieldName,t.field)}))}interceptAction(t){if(t.type===i.RECORDS_COPIED){const s=this._formMetadata.getCleanOnCopyFields();if(s)return new a(i.RECORDS_COPIED,t.payload.map((t=>{const i=Object.assign({},t);return s.forEach((t=>delete i[t])),i})))}if(t.type===i.SAVING_DATA)return new Promise((i=>{this.validate().then((()=>i(t))).catch((()=>{}))}));if(t.type===i.RECORDS_ADDED){const s=this.getDefaultValues();if(s)return new a(i.RECORDS_ADDED,t.payload.map((t=>Object.assign(Object.assign({},t),s))))}return t}getDefaultValues(){var t;const i=null===(t=this._formMetadata)||void 0===t?void 0:t.getDefaultValues();if(i){const t={};for(const s in i)t[s]=this._dataUnit.valueFromString(s,i[s]);return t}}}class u{constructor(){this.listen=!0,this.startChangeEventName="ezStartChange",this.cancelWaitingChangeEventName="ezCancelWaitingChange",this.changeEventName="ezChange"}destroy(){this.field.removeEventListener(this.startChangeEventName,this.startChangeListener),this.field.removeEventListener(this.cancelWaitingChangeEventName,this.cancelWaitingChangeListener),this.field.removeEventListener(this.changeEventName,this.changeListener)}acceptWaitingChange(){this.waitingChangePromiseResolve&&(this.waitingChangePromiseResolve(),this.waitingChangePromiseReject=void 0,this.waitingChangePromiseResolve=void 0)}rejectWaitingChange(t){this.waitingChangePromiseReject&&(this.waitingChangePromiseReject(t),this.waitingChangePromiseReject=void 0,this.waitingChangePromiseResolve=void 0)}static create(t,i,s,e,n){const h=new u;return h.field=i,h.fieldName=t,h.startChangeListener=i=>{h.listen&&s(t,i.detail)},h.field.addEventListener(h.startChangeEventName,h.startChangeListener),h.cancelWaitingChangeListener=()=>{h.listen&&e(t)},h.field.addEventListener(h.cancelWaitingChangeEventName,h.cancelWaitingChangeListener),h.changeListener=i=>{h.listen&&n(t,i.detail)},h.field.addEventListener(h.changeEventName,h.changeListener),h}}export{d as D,c as R,l as b}
Binary file
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,H as r,g as o}from"./p-23a36bb6.js";import{MaskFormatter as n,ElementIDUtils as s}from"@sankhyalabs/core";const a=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this._isOverflowing=!1,this.label=void 0,this.alternativePlaceholder=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.hasInvalid=!1,this.mask=void 0,this.cleanValueMask=!1,this.canShowError=!0,this.restrict=void 0,this.mode="regular",this.noBorder=!1,this.password=!1,this.autoFocus=!1,this.hasRightSlotContent=!1,this.forceLabelFloat=!1}observeHasInvalid(t,i){t!==i&&this.validateErrors()}observeMask(){this.mask&&(null==this._maskFormatter?this._maskFormatter=new n(this.mask):this._maskFormatter.mask=this.mask)}observeValue(t,i){this._inputElem&&t!=i&&(this._inputElem.value=this.value||"",this.handleChange(),this.applyMask(t),this.adjustFloatingLabel(),this.checkIsOverflowing(),this.isSlaveMode()||(this.errorMessage="",this.ezChange.emit(this.value)))}observeAlternativePlaceholder(t){this.forceLabelFloat=!!t}validateErrors(){const t=this.handleValidateErrorMessage(this.errorMessage);this.updateClassError(this.canShowError&&(t||this.hasInvalid))}handleValidateErrorMessage(t=this.errorMessage){return"string"==typeof t&&""!==t.trim()}updateClassError(t){this._inputElem&&(t?this._inputElem.classList.add("hasError"):this._inputElem.classList.remove("hasError"))}adjustFloatingLabel(){if(this.label&&this._labelElem){if(this._inputElem&&!this._inputElem.classList.contains("input--with--label")&&this._inputElem.classList.add("input--with--label"),this.forceLabelFloat)return;const t=this.value&&this.value.toString().length>0,i=this._labelElem.classList.contains("input__label--floated");t||this.isFocused()?i||this._labelElem.classList.add("input__label--floated"):i&&this._labelElem.classList.remove("input__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}isSlaveMode(){var t,i;return"true"===(null===(i=null===(t=this._hostElement)||void 0===t?void 0:t.dataset)||void 0===i?void 0:i.slaveMode)}adjustColorContentSlot(t=""){this._contentLeftSlot&&(this._contentLeftSlot.style.color=t)}adjustBorderInput(){this.noBorder&&this._inputElem.classList.add("input__slim--noborder")}async setFocus(t){const{selectText:i}=t||{};if(i&&this._inputElem.select(),this._inputElem.disabled)return this._inputElem.classList.add("focused"),void this._inputElem.scrollIntoView({behavior:"smooth",block:"start"});requestAnimationFrame((()=>this._inputElem.focus()))}async setBlur(){this._inputElem.blur()}async isInvalid(){return this.handleValidateErrorMessage()}handleFocusout(){const t=this._inputElem.value;if(t&&this._maskFormatter)try{const i=this.handleDefaultMask(t);this._maskFormatter.mask=i,this._inputElem.value=this._maskFormatter.format(this._maskFormatter.removeMask(t))}catch(t){this.errorMessage=t.message}this.controlChangeValue(),this.adjustFloatingLabel(),this.adjustColorContentSlot()}isValidValue(t){return!this.restrict||Array.from(t).reduce(((t,i)=>t&&this.restrict.indexOf(i)>-1),!0)}controlChangeValue(){this._inputElem&&(this.value||"")!==this._inputElem.value&&(this.value=this.cleanValueMask&&this._maskFormatter?this._maskFormatter.removeMask(this._inputElem.value):this._inputElem.value)}handleDefaultMask(t=this.value){return"cgc_cpf"===this.mask&&(this.mask=t&&t.length<=11?n.DEFAULT_MASKS.cpf:n.DEFAULT_MASKS.cnpj),this.mask}applyMask(t){if(!t||""===t)return t;if(this._maskFormatter)try{const i=this.handleDefaultMask(t);this._maskFormatter.mask=i;const e=this._maskFormatter.applyMask(this._maskFormatter.removeMask(t));return this._inputElem?(this._inputElem.value=e,this._inputElem.value):(this.cleanValueMask||(this.value=e),this.value)}catch(t){this.errorMessage=t.message}return t}handleChange(){if(!this._inputElem)return;let t=this._inputElem.value;this.restrict&&t!==t.trim()&&(t=t.trim(),this._inputElem.value=t),this.isValidValue(t)?this._lastValidValue=t:this._inputElem.value=null==this._lastValidValue?"":this._lastValidValue,this.controlChangeValue()}handleSlotChange(t){var i;const e=t.target,r=e.assignedElements()[0];this.hasRightSlotContent=!1,r&&(r.style.position="absolute",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.overflow="hidden",r.style.top="0px",r.style.width="var(--ez-text-input__icon--width)",r.style.height="slim"!=this.mode?"var(--ez-text-input--height)":"var(--ez-text-input--height--slim)","leftIcon"==e.name?(r.style.left="0px",r.style.borderRadius="var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)",this._inputElem.classList.add("icon--left"),this._labelElem&&this._labelElem.classList.add("input__label--left"),this._contentLeftSlot=r):"rightIcon"==e.name&&(r.style.right="0px",r.style.borderRadius="0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0",this._inputElem.classList.add("icon--right"),this._labelElem&&this._labelElem.classList.add("input__label--right"),this._tooltipIconElem&&this._tooltipIconElem.classList.add("rightIconSlot"),this.hasRightSlotContent=(null===(i=r.children)||void 0===i?void 0:i.length)>0),e.name&&s.addIDInfo(r,e.name)),this.validateErrors()}doFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("input__label--floated")&&this._labelElem.classList.add("input__label--floated"),this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)")}getValue(){return this.mask?this.applyMask(this.value):this.value}buildLabelClass(){let t=this.enabled?"input__label":"input__label input__label--disabled";return this.errorMessage&&(t+=" hasError"),this.forceLabelFloat&&(t+=" input__label--floated"),t}buildPlaceholder(){return this.alternativePlaceholder?this.alternativePlaceholder:"slim"===this.mode&&this.label?this.label:""}checkIsOverflowing(){this._isOverflowing=!!this._inputElem&&this._inputElem.offsetWidth<this._inputElem.scrollWidth}componentWillLoad(){if(this.observeMask(),this.forceLabelFloat=!!this.alternativePlaceholder,this.value){if(this._maskFormatter)try{this.applyMask(this.value)}catch(t){this.errorMessage=t.message}this.isValidValue(this.value)||(this._lastValidValue="",this.value="")}}componentDidLoad(){var t;this.validateErrors(),this.observeMask(),this.adjustFloatingLabel(),this.adjustBorderInput(),this.checkIsOverflowing(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})})),null===(t=this._inputElem)||void 0===t||t.addEventListener("focus",(()=>{var t;this._inputElem.setSelectionRange(0,null===(t=this._inputElem)||void 0===t?void 0:t.value.length)})),this.onClickOutside=t=>{this._inputElem.contains(t.target)||this._inputElem.classList.remove("focused")},document.addEventListener("click",this.onClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.onClickOutside)}componentDidRender(){this.adjustFloatingLabel()}render(){return s.addIDInfoIfNotExists(this._hostElement,"input"),e(r,{style:this._hostElement.classList.contains("grid_editor")?{height:"100%"}:null},e("slot",{name:"leftIcon",onSlotchange:t=>{this.handleSlotChange(t)}}),this.label&&"slim"!=this.mode?e("label",{ref:t=>this._labelElem=t,class:this.buildLabelClass(),onClick:()=>this._inputElem.focus(),title:this.label},this.label):null,e("input",{"data-element-id":s.getInternalIDInfo("input"),onFocus:()=>this.doFocus(),ref:t=>this._inputElem=t,type:this.password?"password":"text",class:"slim"===this.mode?"input--slim":"",placeholder:this.buildPlaceholder(),value:this.getValue(),disabled:!this.enabled,onInput:()=>{this.handleChange()},onFocusout:()=>{this.handleFocusout()}}),e("ez-tooltip",{anchoringElement:this._hostElement,message:this.getValue(),active:this._isOverflowing,useAnchorSize:!0}),this.canShowError&&"slim"!=this.mode&&this.errorMessage&&e("ez-tooltip",{type:"error",message:this.errorMessage},e("ez-icon",{class:`tooltip-icon ${this.errorMessage?"hasError":""} ${this.hasRightSlotContent?"rightIconSlot":""}`,"data-element-id":s.getInternalIDInfo("tooltip-icon"),ref:t=>this._tooltipIconElem=t,iconName:"alert-circle"})),e("slot",{name:"rightIcon",onSlotchange:t=>{this.handleSlotChange(t)}}," "))}get _hostElement(){return o(this)}static get watchers(){return{hasInvalid:["observeHasInvalid"],errorMessage:["observeHasInvalid"],canShowError:["observeHasInvalid"],mask:["observeMask"],value:["observeValue"],alternativePlaceholder:["observeAlternativePlaceholder"]}}};a.style=":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.focused{border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - (var(--ez-text-input__label--padding-right) + var(--ez-text-input__label--padding-left)));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - (var(--ez-text-input__icon--width) + var(--ez-text-input__label--padding-right)))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - (var(--ez-text-input__icon--width) + var(--ez-text-input__label--padding-left)))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";export{a as ez_text_input}
Binary file
@@ -1,3 +1,3 @@
1
1
  import{c as t,a as e}from"./p-112455b1.js";var n=t((function(t){
2
2
  /*! @license DOMPurify 3.4.14 | (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.14/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=M(Array.prototype.forEach),d=M(Array.prototype.lastIndexOf),h=M(Array.prototype.pop),y=M(Array.prototype.push),g=M(Array.prototype.splice),b=Array.isArray,w=M(String.prototype.toLowerCase),v=M(String.prototype.toString),x=M(String.prototype.match),S=M(String.prototype.replace),k=M(String.prototype.indexOf),T=M(String.prototype.trim),A=M(Number.prototype.toString),O=M(Boolean.prototype.toString),E="undefined"==typeof BigInt?null:M(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:M(Symbol.prototype.toString),D=M(Object.prototype.hasOwnProperty),R=M(Object.prototype.toString),_=M(RegExp.prototype.test),j=(L=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return p(L,e)});var L;function M(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 N(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 I(t){for(let e=0;e<t.length;e++)D(t,e)||(t[e]=null);return t}function C(t){const r=s(null);for(const i of n(t)){var o=e(i,2);const n=o[0],a=o[1];D(t,n)&&(r[n]=b(a)?I(a):a&&"object"==typeof a&&a.constructor===Object?C(a):a)}return r}function F(t){switch(typeof t){case"string":return t;case"number":return A(t);case"boolean":return O(t);case"bigint":return E?E(t):"0";case"symbol":return z?z(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 M(n.get);if("function"==typeof n.value)return M(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","pointer-events","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","vector-effect","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=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],wt=l(N({},bt)),vt=function(){const t={};return m(bt,(e=>{t[e]=c(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))})),l(t)}(),xt=function(){return"undefined"==typeof window?null:window},St=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 console.warn("TrustedTypes policy "+o+" could not be created."),null}},kt=function(t,e,n,r){return D(t,e)&&b(t[e])?N(r.base?C(r.base):{},t[e],r.transform):n},Tt=function(t,e,n){const r=D(t,e)?t[e]:void 0;return r&&"object"==typeof r?C(r):n()};var At=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt();const r=e=>t(e);if(r.version="3.4.14",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,O=e.trustedTypes,E=e.Element.prototype,z=B(E,"cloneNode"),R=B(E,"remove"),L=B(E,"nextSibling"),M=B(E,"childNodes"),I=B(E,"parentNode"),bt=B(E,"shadowRoot"),At=B(E,"attributes"),Ot=f&&f.prototype?B(f.prototype,"nodeType"):null,Et=f&&f.prototype?B(f.prototype,"nodeName"):null,zt=f&&f.prototype?B(f.prototype,"ownerDocument"):null,Dt=function(t){return Ot?Ot(t):t.nodeType},Rt=function(t){return Et?Et(t):t.nodeName};if("function"==typeof u){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let _t,jt,Lt="",Mt=!1,Nt=0;const It=function(){if(Nt>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.')},Ct=function(t){It(),Nt++;try{return _t.createHTML(t)}finally{Nt--}},Ft=function(t){It(),Nt++;try{return _t.createScriptURL(t)}finally{Nt--}},Bt=function(){return Mt||(jt=St(O,a),Mt=!0),jt},Pt=o.implementation,Ut=o.createNodeIterator,Yt=o.createDocumentFragment,Gt=o.getElementsByTagName,qt=i.importNode;let Ht={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof I&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=Q,$t=Z,Kt=tt,Vt=et,Xt=nt,Jt=ot,Qt=it,Zt=lt;let te=rt,ee=null;const ne=N({},[...U,...Y,...G,...H,...$]);let re=null;const oe=N({},[...K,...V,...X,...J]);let ie=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}})),ae=null,le=null;const ce=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let se=!0,ue=!0,fe=!1,pe=!0,me=!1,de=!0,he=!1,ye=!1,ge=null,be=null,we=!1,ve=!1,xe=!1,Se=!1,ke=!0,Te=!1;const Ae="user-content-";let Oe=!0,Ee=!1,ze={},De=null;const Re=N({},["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 _e=null;const je=N({},["audio","video","img","source","image","track"]);let Le=null;const Me=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml";let Fe=Ce,Be=!1,Pe=null;const Ue=N({},[Ne,Ie,Ce],v),Ye=l(["mi","mo","mn","ms","mtext"]);let Ge=N({},Ye);const qe=l(["annotation-xml"]);let He=N({},qe);const We=N({},["title","style","font","a","script"]);let $e=null;const Ke=["application/xhtml+xml","text/html"],Ve="text/html";let Xe=null,Je=null;const Qe=o.createElement("form"),Ze=function(t){return t instanceof RegExp||t instanceof Function},tn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Je&&Je===t)return;t&&"object"==typeof t||(t={}),t=C(t),$e=-1===Ke.indexOf(t.PARSER_MEDIA_TYPE)?Ve:t.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===$e?v:w,ee=kt(t,"ALLOWED_TAGS",ne,{transform:Xe}),re=kt(t,"ALLOWED_ATTR",oe,{transform:Xe}),Pe=kt(t,"ALLOWED_NAMESPACES",Ue,{transform:v}),Le=kt(t,"ADD_URI_SAFE_ATTR",Me,{transform:Xe,base:Me}),_e=kt(t,"ADD_DATA_URI_TAGS",je,{transform:Xe,base:je}),De=kt(t,"FORBID_CONTENTS",Re,{transform:Xe}),ae=kt(t,"FORBID_TAGS",C({}),{transform:Xe}),le=kt(t,"FORBID_ATTR",C({}),{transform:Xe}),ze=!!D(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?C(t.USE_PROFILES):t.USE_PROFILES),se=!1!==t.ALLOW_ARIA_ATTR,ue=!1!==t.ALLOW_DATA_ATTR,fe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,me=t.SAFE_FOR_TEMPLATES||!1,de=!1!==t.SAFE_FOR_XML,he=t.WHOLE_DOCUMENT||!1,ve=t.RETURN_DOM||!1,xe=t.RETURN_DOM_FRAGMENT||!1,Se=t.RETURN_TRUSTED_TYPE||!1,we=t.FORCE_BODY||!1,ke=!1!==t.SANITIZE_DOM,Te=t.SANITIZE_NAMED_PROPS||!1,Oe=!1!==t.KEEP_CONTENT,Ee=t.IN_PLACE||!1,te=P(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,Fe="string"==typeof t.NAMESPACE?t.NAMESPACE:Ce,Ge=Tt(t,"MATHML_TEXT_INTEGRATION_POINTS",(()=>N({},Ye))),He=Tt(t,"HTML_INTEGRATION_POINTS",(()=>N({},qe)));const e=Tt(t,"CUSTOM_ELEMENT_HANDLING",(()=>s(null)));if(ie=s(null),D(e,"tagNameCheck")&&Ze(e.tagNameCheck)&&(ie.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&Ze(e.attributeNameCheck)&&(ie.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ie.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),c(ie),me&&(ue=!1),xe&&(ve=!0),ze&&(ee=N({},$),re=s(null),!0===ze.html&&(N(ee,U),N(re,K)),!0===ze.svg&&(N(ee,Y),N(re,V),N(re,J)),!0===ze.svgFilters&&(N(ee,G),N(re,V),N(re,J)),!0===ze.mathMl&&(N(ee,H),N(re,X),N(re,J))),ce.tagCheck=null,ce.attributeCheck=null,D(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ce.tagCheck=t.ADD_TAGS:b(t.ADD_TAGS)&&(ee===ne&&(ee=C(ee)),N(ee,t.ADD_TAGS,Xe))),D(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ce.attributeCheck=t.ADD_ATTR:b(t.ADD_ATTR)&&(re===oe&&(re=C(re)),N(re,t.ADD_ATTR,Xe))),D(t,"ADD_FORBID_CONTENTS")&&b(t.ADD_FORBID_CONTENTS)&&(De===Re&&(De=C(De)),N(De,t.ADD_FORBID_CONTENTS,Xe)),Oe&&(ee["#text"]=!0),he&&N(ee,["html","head","body"]),ee.table&&(N(ee,["tbody"]),delete ae.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=_t;_t=t.TRUSTED_TYPES_POLICY;try{Lt=Ct("")}catch(t){throw _t=e,t}}else null===t.TRUSTED_TYPES_POLICY?(_t=void 0,Lt=""):(void 0===_t&&(_t=Bt()),_t&&"string"==typeof Lt&&(Lt=Ct("")));l&&l(t),Je=t},en=N({},[...Y,...G,...q]),nn=N({},[...H,...W]),rn=function(t,e,n){return e.namespaceURI===Ce?"svg"===t:e.namespaceURI===Ne?"svg"===t&&("annotation-xml"===n||Ge[n]):Boolean(en[t])},on=function(t,e,n){return e.namespaceURI===Ce?"math"===t:e.namespaceURI===Ie?"math"===t&&He[n]:Boolean(nn[t])},an=function(t,e,n){return!(e.namespaceURI===Ie&&!He[n])&&!(e.namespaceURI===Ne&&!Ge[n])&&!nn[t]&&(We[t]||!en[t])},ln=function(t){let e=I(t);e&&e.tagName||(e={namespaceURI:Fe,tagName:"template"});const n=w(t.tagName),r=w(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?rn(n,e,r):t.namespaceURI===Ne?on(n,e,r):t.namespaceURI===Ce?an(n,e,r):!("application/xhtml+xml"!==$e||!Pe[t.namespaceURI]))},cn=function(t){y(r.removed,{element:t});try{I(t).removeChild(t)}catch(e){if(R(t),!I(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")}},sn=function(t,e,n){try{t.removeAttributeNode(e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},un=function(t){mn(t);const e=M(t);if(e){const t=[];m(e,(e=>{y(t,e)})),m(t,(t=>{try{R(t)}catch(t){}}))}const n=At(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&sn(t,r,o)}},fn=function(t,e,n){if(!n)try{n=e.getAttributeNode(t)}catch(t){n=null}y(r.removed,{attribute:n||null,from:e});try{n?e.removeAttributeNode(n):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ve||xe)try{cn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},pn=function(t){const e=At(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||re[Xe(o)]||sn(t,r,o)}},mn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();Dt(t)===pt&&pn(t);const n=M(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},dn=function(t,e){return!!de&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},hn=function(t){if(!de)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Dt(t);if(n===dt||n===ht&&_(st,t.data)){try{R(t)}catch(t){}continue}if(n===pt){const e=t,n=Xe(Rt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&dn("for",n)&&e.removeAttribute("for")}catch(t){}}const r=M(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},yn=function(t){let e=null,n=null;if(we)t="<remove></remove>"+t;else{const e=x(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===$e&&Fe===Ce&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=_t?Ct(t):t;if(Fe===Ce)try{e=(new A).parseFromString(r,$e)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(Fe,"template",null);try{e.documentElement.innerHTML=Be?Lt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Fe===Ce?Gt.call(e,he?"html":"body")[0]:he?e.documentElement:i},gn=function(t){const e=zt?zt(t):t.ownerDocument;return Ut.call(e||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},bn=function(t){return t=S(t,Wt," "),t=S(t,$t," "),S(t,Kt," ")},wn=function(t){var e;t.normalize();const n=zt?zt(t):t.ownerDocument,r=Ut.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=bn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&m(i,(t=>{xn(t.content)&&wn(t.content)}))},vn=function(t){const e=Et?Et(t):null;return"string"==typeof e&&"form"===Xe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==At(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Ot(t)||t.childNodes!==M(t))},xn=function(t){if(!Ot||"object"!=typeof t||null===t)return!1;try{return Ot(t)===gt}catch(t){return!1}},Sn=function(t){if(!Ot||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Ot(t)}catch(t){return!1}};function kn(t,e,n){0!==t.length&&m(t,(t=>{t.call(r,e,n,Je)}))}const Tn=function(t,e){return!!(de&&t.hasChildNodes()&&!Sn(t.firstElementChild)&&_(ct,t.textContent)&&_(ct,t.innerHTML))||!!(de&&t.namespaceURI===Ce&&wt[e]&&(Sn(t.firstElementChild)||"string"==typeof t.textContent&&_(vt[e],t.textContent)))||t.nodeType===dt||!(!de||t.nodeType!==ht||!_(st,t.data))},An=function(t,e){if(t instanceof RegExp)return _(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},On=function(t,e,n){if(!ae[e]&&jn(e)&&An(ie.tagNameCheck,e))return!1;if(Oe&&!De[e]){const e=I(t),r=M(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?z(r[o],!0):r[o];e.insertBefore(i,L(t))}}return cn(t),!0},En=function(t,e,n,r){return 0===t.length?e:e===n||e===r?C(e):e},zn=function(t,e){return t!==e&&null===I(t)&&(Ee&&mn(t),!0)},Dn=function(t,e){if(kn(Ht.beforeSanitizeElements,t,null),zn(t,e))return!0;if(vn(t))return cn(t),!0;const n=Xe(Rt(t));if(ee=En(Ht.uponSanitizeElement,ee,ne,ge),kn(Ht.uponSanitizeElement,t,{tagName:n,allowedTags:ee}),zn(t,e))return!0;if(Tn(t,n))return cn(t),!0;if(ae[n]||!(ce.tagCheck instanceof Function&&ce.tagCheck(n))&&!ee[n]){const r=On(t,n,e);return!1===r&&kn(Ht.afterSanitizeElements,t,null),r}if(Dt(t)===pt&&!ln(t))return cn(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&_(ut,t.innerHTML))return cn(t),!0;if(me&&t.nodeType===mt){const e=bn(t.textContent);t.textContent!==e&&(y(r.removed,{element:t.cloneNode()}),t.textContent=e)}return kn(Ht.afterSanitizeElements,t,null),!1},Rn=function(t,e,n){if(le[e])return!1;if(dn(e,t))return!1;if(ke&&("id"===e||"name"===e)&&(n in o||n in Qe))return!1;const r=re[e]||ce.attributeCheck instanceof Function&&ce.attributeCheck(e,t);return!(!ue||!_(Vt,e))||!(!se||!_(Xt,e))||(r?!(!Le[e]&&!_(te,S(n,Qt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==k(n,"data:")||!_e[t])&&(!fe||_(Jt,S(n,Qt,"")))&&n):jn(t)&&An(ie.tagNameCheck,t)&&An(ie.attributeNameCheck,e,t)||"is"===e&&ie.allowCustomizedBuiltInElements&&An(ie.tagNameCheck,n))},_n=N({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),jn=function(t){return!_n[w(t)]&&_(Zt,t)},Ln=function(t,e,n,r){if(_t&&"object"==typeof O&&"function"==typeof O.getAttributeType&&!n)switch(O.getAttributeType(t,e)){case"TrustedHTML":return Ct(r);case"TrustedScriptURL":return Ft(r)}return r},Mn=function(t,e,n,o){try{n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),vn(t)?cn(t):h(r.removed)}catch(n){fn(e,t)}},Nn=function(t){kn(Ht.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||vn(t))return;re=En(Ht.uponSanitizeAttribute,re,oe,be);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re,forceKeepAttr:void 0};let r=e.length;const o=Xe(t.nodeName);for(;r--;){const i=e[r],a=i.name,l=i.namespaceURI,c=i.value,s=Xe(a),u=c;let f="value"===a?u:T(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,kn(Ht.uponSanitizeAttribute,t,n),f=n.attrValue,!Te||"id"!==s&&"name"!==s||0===k(f,Ae)||(fn(a,t,i),f=Ae+f),de&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&x(f,"href")?fn(a,t,i):n.forceKeepAttr||(!n.keepAttr||!pe&&_(ft,f)?fn(a,t,i):(me&&(f=bn(f)),Rn(o,s,f)?(f=Ln(o,s,l,f),f!==u&&Mn(t,a,l,f)):fn(a,t,i)))}kn(Ht.afterSanitizeAttributes,t,null)},In=function(t){let e=null;const n=gn(t);for(kn(Ht.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(kn(Ht.uponSanitizeShadowNode,e,null),Dn(e,t),Nn(e),xn(e.content)&&In(e.content),Dt(e)===pt){const t=bt(e);xn(t)&&(Cn(t),In(t))}kn(Ht.afterSanitizeShadowDOM,t,null)},Cn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){In(t.shadow);continue}const n=t.node,r=Dt(n)===pt,o=M(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Et?Et(n):null;if("string"==typeof t&&"template"===Xe(t)){const t=n.content;xn(t)&&e.push({node:t,shadow:null})}}if(r){const t=bt(n);xn(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(Be=!t,Be&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Sn(t)&&"string"!=typeof(t=F(t)))throw j("dirty is not a string, aborting");if(!r.isSupported)return t;ye?(ee=ge,re=be):tn(e),(Ht.uponSanitizeElement.length>0||Ht.uponSanitizeAttribute.length>0)&&(ee=C(ee)),Ht.uponSanitizeAttribute.length>0&&(re=C(re)),r.removed=[];const c=Ee&&"string"!=typeof t&&Sn(t);if(c){hn(t);const e=Rt(t);if("string"==typeof e){const n=Xe(e);if(!ee[n]||ae[n])throw un(t),j("root node is forbidden and cannot be sanitized in-place")}if(vn(t))throw un(t),j("root node is clobbered and cannot be sanitized in-place");try{Cn(t)}catch(e){throw un(t),e}}else if(Sn(t))n=yn("\x3c!----\x3e"),o=n.ownerDocument.importNode(t,!0),o.nodeType===pt&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),Cn(o);else{if(!ve&&!me&&!he&&-1===t.indexOf("<"))return _t&&Se?Ct(t):t;if(n=yn(t),!n)return ve?null:Se?Lt:""}n&&we&&cn(n.firstChild);const s=c?t:n;try{const t=gn(s);for(;a=t.nextNode();)Dn(a,s),Nn(a),xn(a.content)&&In(a.content)}catch(e){throw c&&(un(t),m(r.removed,(t=>{t.element&&mn(t.element)}))),e}if(c)return m(r.removed,(t=>{t.element&&mn(t.element)})),me&&wn(t),t;if(ve){if(me&&wn(n),xe)for(l=Yt.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(re.shadowroot||re.shadowrootmode)&&(l=qt.call(i,l,!0)),l}let u=he?n.outerHTML:n.innerHTML;return he&&ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(at,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),me&&(u=bn(u)),_t&&Se?Ct(u):u},r.setConfig=function(){tn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ye=!0,ge=ee,be=re},r.clearConfig=function(){Je=null,ye=!1,ge=null,be=null,_t=jt,Lt=""},r.isValidAttribute=function(t,e,n){Je||tn({});const r=Xe(t),o=Xe(e);return Rn(r,o,n)},r.addHook=function(t,e){"function"==typeof e&&D(Ht,t)&&y(Ht[t],e)},r.removeHook=function(t,e){if(D(Ht,t)){if(void 0!==e){const n=d(Ht[t],e);return-1===n?void 0:g(Ht[t],n,1)[0]}return h(Ht[t])}},r.removeHooks=function(t){D(Ht,t)&&(Ht[t]=[])},r.removeAllHooks=function(){Ht={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();return At}()}));export{n as p}
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=M(Array.prototype.forEach),d=M(Array.prototype.lastIndexOf),h=M(Array.prototype.pop),y=M(Array.prototype.push),g=M(Array.prototype.splice),b=Array.isArray,w=M(String.prototype.toLowerCase),v=M(String.prototype.toString),x=M(String.prototype.match),S=M(String.prototype.replace),k=M(String.prototype.indexOf),T=M(String.prototype.trim),A=M(Number.prototype.toString),O=M(Boolean.prototype.toString),E="undefined"==typeof BigInt?null:M(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:M(Symbol.prototype.toString),D=M(Object.prototype.hasOwnProperty),R=M(Object.prototype.toString),_=M(RegExp.prototype.test),j=(L=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return p(L,e)});var L;function M(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 N(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 I(t){for(let e=0;e<t.length;e++)D(t,e)||(t[e]=null);return t}function C(t){const r=s(null);for(const i of n(t)){var o=e(i,2);const n=o[0],a=o[1];D(t,n)&&(r[n]=b(a)?I(a):a&&"object"==typeof a&&a.constructor===Object?C(a):a)}return r}function F(t){switch(typeof t){case"string":return t;case"number":return A(t);case"boolean":return O(t);case"bigint":return E?E(t):"0";case"symbol":return z?z(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 M(n.get);if("function"==typeof n.value)return M(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","pointer-events","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","vector-effect","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=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],wt=l(N({},bt)),vt=function(){const t={};return m(bt,(e=>{t[e]=c(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))})),l(t)}(),xt=function(){return"undefined"==typeof window?null:window},St=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}},kt=function(t,e,n,r){return D(t,e)&&b(t[e])?N(r.base?C(r.base):{},t[e],r.transform):n},Tt=function(t,e,n){const r=D(t,e)?t[e]:void 0;return r&&"object"==typeof r?C(r):n()};var At=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt();const r=e=>t(e);if(r.version="3.4.14",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,O=e.trustedTypes,E=e.Element.prototype,z=B(E,"cloneNode"),R=B(E,"remove"),L=B(E,"nextSibling"),M=B(E,"childNodes"),I=B(E,"parentNode"),bt=B(E,"shadowRoot"),At=B(E,"attributes"),Ot=f&&f.prototype?B(f.prototype,"nodeType"):null,Et=f&&f.prototype?B(f.prototype,"nodeName"):null,zt=f&&f.prototype?B(f.prototype,"ownerDocument"):null,Dt=function(t){return Ot?Ot(t):t.nodeType},Rt=function(t){return Et?Et(t):t.nodeName};if("function"==typeof u){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let _t,jt,Lt="",Mt=!1,Nt=0;const It=function(){if(Nt>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.')},Ct=function(t){It(),Nt++;try{return _t.createHTML(t)}finally{Nt--}},Ft=function(t){It(),Nt++;try{return _t.createScriptURL(t)}finally{Nt--}},Bt=function(){return Mt||(jt=St(O,a),Mt=!0),jt},Pt=o.implementation,Ut=o.createNodeIterator,Yt=o.createDocumentFragment,Gt=o.getElementsByTagName,qt=i.importNode;let Ht={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof I&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=Q,$t=Z,Kt=tt,Vt=et,Xt=nt,Jt=ot,Qt=it,Zt=lt;let te=rt,ee=null;const ne=N({},[...U,...Y,...G,...H,...$]);let re=null;const oe=N({},[...K,...V,...X,...J]);let ie=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}})),ae=null,le=null;const ce=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let se=!0,ue=!0,fe=!1,pe=!0,me=!1,de=!0,he=!1,ye=!1,ge=null,be=null,we=!1,ve=!1,xe=!1,Se=!1,ke=!0,Te=!1;const Ae="user-content-";let Oe=!0,Ee=!1,ze={},De=null;const Re=N({},["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 _e=null;const je=N({},["audio","video","img","source","image","track"]);let Le=null;const Me=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml";let Fe=Ce,Be=!1,Pe=null;const Ue=N({},[Ne,Ie,Ce],v),Ye=l(["mi","mo","mn","ms","mtext"]);let Ge=N({},Ye);const qe=l(["annotation-xml"]);let He=N({},qe);const We=N({},["title","style","font","a","script"]);let $e=null;const Ke=["application/xhtml+xml","text/html"],Ve="text/html";let Xe=null,Je=null;const Qe=o.createElement("form"),Ze=function(t){return t instanceof RegExp||t instanceof Function},tn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Je&&Je===t)return;t&&"object"==typeof t||(t={}),t=C(t),$e=-1===Ke.indexOf(t.PARSER_MEDIA_TYPE)?Ve:t.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===$e?v:w,ee=kt(t,"ALLOWED_TAGS",ne,{transform:Xe}),re=kt(t,"ALLOWED_ATTR",oe,{transform:Xe}),Pe=kt(t,"ALLOWED_NAMESPACES",Ue,{transform:v}),Le=kt(t,"ADD_URI_SAFE_ATTR",Me,{transform:Xe,base:Me}),_e=kt(t,"ADD_DATA_URI_TAGS",je,{transform:Xe,base:je}),De=kt(t,"FORBID_CONTENTS",Re,{transform:Xe}),ae=kt(t,"FORBID_TAGS",C({}),{transform:Xe}),le=kt(t,"FORBID_ATTR",C({}),{transform:Xe}),ze=!!D(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?C(t.USE_PROFILES):t.USE_PROFILES),se=!1!==t.ALLOW_ARIA_ATTR,ue=!1!==t.ALLOW_DATA_ATTR,fe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,me=t.SAFE_FOR_TEMPLATES||!1,de=!1!==t.SAFE_FOR_XML,he=t.WHOLE_DOCUMENT||!1,ve=t.RETURN_DOM||!1,xe=t.RETURN_DOM_FRAGMENT||!1,Se=t.RETURN_TRUSTED_TYPE||!1,we=t.FORCE_BODY||!1,ke=!1!==t.SANITIZE_DOM,Te=t.SANITIZE_NAMED_PROPS||!1,Oe=!1!==t.KEEP_CONTENT,Ee=t.IN_PLACE||!1,te=P(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,Fe="string"==typeof t.NAMESPACE?t.NAMESPACE:Ce,Ge=Tt(t,"MATHML_TEXT_INTEGRATION_POINTS",(()=>N({},Ye))),He=Tt(t,"HTML_INTEGRATION_POINTS",(()=>N({},qe)));const e=Tt(t,"CUSTOM_ELEMENT_HANDLING",(()=>s(null)));if(ie=s(null),D(e,"tagNameCheck")&&Ze(e.tagNameCheck)&&(ie.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&Ze(e.attributeNameCheck)&&(ie.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ie.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),c(ie),me&&(ue=!1),xe&&(ve=!0),ze&&(ee=N({},$),re=s(null),!0===ze.html&&(N(ee,U),N(re,K)),!0===ze.svg&&(N(ee,Y),N(re,V),N(re,J)),!0===ze.svgFilters&&(N(ee,G),N(re,V),N(re,J)),!0===ze.mathMl&&(N(ee,H),N(re,X),N(re,J))),ce.tagCheck=null,ce.attributeCheck=null,D(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ce.tagCheck=t.ADD_TAGS:b(t.ADD_TAGS)&&(ee===ne&&(ee=C(ee)),N(ee,t.ADD_TAGS,Xe))),D(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ce.attributeCheck=t.ADD_ATTR:b(t.ADD_ATTR)&&(re===oe&&(re=C(re)),N(re,t.ADD_ATTR,Xe))),D(t,"ADD_FORBID_CONTENTS")&&b(t.ADD_FORBID_CONTENTS)&&(De===Re&&(De=C(De)),N(De,t.ADD_FORBID_CONTENTS,Xe)),Oe&&(ee["#text"]=!0),he&&N(ee,["html","head","body"]),ee.table&&(N(ee,["tbody"]),delete ae.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=_t;_t=t.TRUSTED_TYPES_POLICY;try{Lt=Ct("")}catch(t){throw _t=e,t}}else null===t.TRUSTED_TYPES_POLICY?(_t=void 0,Lt=""):(void 0===_t&&(_t=Bt()),_t&&"string"==typeof Lt&&(Lt=Ct("")));l&&l(t),Je=t},en=N({},[...Y,...G,...q]),nn=N({},[...H,...W]),rn=function(t,e,n){return e.namespaceURI===Ce?"svg"===t:e.namespaceURI===Ne?"svg"===t&&("annotation-xml"===n||Ge[n]):Boolean(en[t])},on=function(t,e,n){return e.namespaceURI===Ce?"math"===t:e.namespaceURI===Ie?"math"===t&&He[n]:Boolean(nn[t])},an=function(t,e,n){return!(e.namespaceURI===Ie&&!He[n])&&!(e.namespaceURI===Ne&&!Ge[n])&&!nn[t]&&(We[t]||!en[t])},ln=function(t){let e=I(t);e&&e.tagName||(e={namespaceURI:Fe,tagName:"template"});const n=w(t.tagName),r=w(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?rn(n,e,r):t.namespaceURI===Ne?on(n,e,r):t.namespaceURI===Ce?an(n,e,r):!("application/xhtml+xml"!==$e||!Pe[t.namespaceURI]))},cn=function(t){y(r.removed,{element:t});try{I(t).removeChild(t)}catch(e){if(R(t),!I(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")}},sn=function(t,e,n){try{t.removeAttributeNode(e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},un=function(t){mn(t);const e=M(t);if(e){const t=[];m(e,(e=>{y(t,e)})),m(t,(t=>{try{R(t)}catch(t){}}))}const n=At(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&sn(t,r,o)}},fn=function(t,e,n){if(!n)try{n=e.getAttributeNode(t)}catch(t){n=null}y(r.removed,{attribute:n||null,from:e});try{n?e.removeAttributeNode(n):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ve||xe)try{cn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},pn=function(t){const e=At(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||re[Xe(o)]||sn(t,r,o)}},mn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();Dt(t)===pt&&pn(t);const n=M(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},dn=function(t,e){return!!de&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},hn=function(t){if(!de)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Dt(t);if(n===dt||n===ht&&_(st,t.data)){try{R(t)}catch(t){}continue}if(n===pt){const e=t,n=Xe(Rt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&dn("for",n)&&e.removeAttribute("for")}catch(t){}}const r=M(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},yn=function(t){let e=null,n=null;if(we)t="<remove></remove>"+t;else{const e=x(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===$e&&Fe===Ce&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=_t?Ct(t):t;if(Fe===Ce)try{e=(new A).parseFromString(r,$e)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(Fe,"template",null);try{e.documentElement.innerHTML=Be?Lt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Fe===Ce?Gt.call(e,he?"html":"body")[0]:he?e.documentElement:i},gn=function(t){const e=zt?zt(t):t.ownerDocument;return Ut.call(e||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},bn=function(t){return t=S(t,Wt," "),t=S(t,$t," "),S(t,Kt," ")},wn=function(t){var e;t.normalize();const n=zt?zt(t):t.ownerDocument,r=Ut.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=bn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&m(i,(t=>{xn(t.content)&&wn(t.content)}))},vn=function(t){const e=Et?Et(t):null;return"string"==typeof e&&"form"===Xe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==At(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Ot(t)||t.childNodes!==M(t))},xn=function(t){if(!Ot||"object"!=typeof t||null===t)return!1;try{return Ot(t)===gt}catch(t){return!1}},Sn=function(t){if(!Ot||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Ot(t)}catch(t){return!1}};function kn(t,e,n){0!==t.length&&m(t,(t=>{t.call(r,e,n,Je)}))}const Tn=function(t,e){return!!(de&&t.hasChildNodes()&&!Sn(t.firstElementChild)&&_(ct,t.textContent)&&_(ct,t.innerHTML))||!!(de&&t.namespaceURI===Ce&&wt[e]&&(Sn(t.firstElementChild)||"string"==typeof t.textContent&&_(vt[e],t.textContent)))||t.nodeType===dt||!(!de||t.nodeType!==ht||!_(st,t.data))},An=function(t,e){if(t instanceof RegExp)return _(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},On=function(t,e,n){if(!ae[e]&&jn(e)&&An(ie.tagNameCheck,e))return!1;if(Oe&&!De[e]){const e=I(t),r=M(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?z(r[o],!0):r[o];e.insertBefore(i,L(t))}}return cn(t),!0},En=function(t,e,n,r){return 0===t.length?e:e===n||e===r?C(e):e},zn=function(t,e){return t!==e&&null===I(t)&&(Ee&&mn(t),!0)},Dn=function(t,e){if(kn(Ht.beforeSanitizeElements,t,null),zn(t,e))return!0;if(vn(t))return cn(t),!0;const n=Xe(Rt(t));if(ee=En(Ht.uponSanitizeElement,ee,ne,ge),kn(Ht.uponSanitizeElement,t,{tagName:n,allowedTags:ee}),zn(t,e))return!0;if(Tn(t,n))return cn(t),!0;if(ae[n]||!(ce.tagCheck instanceof Function&&ce.tagCheck(n))&&!ee[n]){const r=On(t,n,e);return!1===r&&kn(Ht.afterSanitizeElements,t,null),r}if(Dt(t)===pt&&!ln(t))return cn(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&_(ut,t.innerHTML))return cn(t),!0;if(me&&t.nodeType===mt){const e=bn(t.textContent);t.textContent!==e&&(y(r.removed,{element:t.cloneNode()}),t.textContent=e)}return kn(Ht.afterSanitizeElements,t,null),!1},Rn=function(t,e,n){if(le[e])return!1;if(dn(e,t))return!1;if(ke&&("id"===e||"name"===e)&&(n in o||n in Qe))return!1;const r=re[e]||ce.attributeCheck instanceof Function&&ce.attributeCheck(e,t);return!(!ue||!_(Vt,e))||!(!se||!_(Xt,e))||(r?!(!Le[e]&&!_(te,S(n,Qt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==k(n,"data:")||!_e[t])&&(!fe||_(Jt,S(n,Qt,"")))&&n):jn(t)&&An(ie.tagNameCheck,t)&&An(ie.attributeNameCheck,e,t)||"is"===e&&ie.allowCustomizedBuiltInElements&&An(ie.tagNameCheck,n))},_n=N({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),jn=function(t){return!_n[w(t)]&&_(Zt,t)},Ln=function(t,e,n,r){if(_t&&"object"==typeof O&&"function"==typeof O.getAttributeType&&!n)switch(O.getAttributeType(t,e)){case"TrustedHTML":return Ct(r);case"TrustedScriptURL":return Ft(r)}return r},Mn=function(t,e,n,o){try{n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),vn(t)?cn(t):h(r.removed)}catch(n){fn(e,t)}},Nn=function(t){kn(Ht.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||vn(t))return;re=En(Ht.uponSanitizeAttribute,re,oe,be);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re,forceKeepAttr:void 0};let r=e.length;const o=Xe(t.nodeName);for(;r--;){const i=e[r],a=i.name,l=i.namespaceURI,c=i.value,s=Xe(a),u=c;let f="value"===a?u:T(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,kn(Ht.uponSanitizeAttribute,t,n),f=n.attrValue,!Te||"id"!==s&&"name"!==s||0===k(f,Ae)||(fn(a,t,i),f=Ae+f),de&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&x(f,"href")?fn(a,t,i):n.forceKeepAttr||(!n.keepAttr||!pe&&_(ft,f)?fn(a,t,i):(me&&(f=bn(f)),Rn(o,s,f)?(f=Ln(o,s,l,f),f!==u&&Mn(t,a,l,f)):fn(a,t,i)))}kn(Ht.afterSanitizeAttributes,t,null)},In=function(t){let e=null;const n=gn(t);for(kn(Ht.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(kn(Ht.uponSanitizeShadowNode,e,null),Dn(e,t),Nn(e),xn(e.content)&&In(e.content),Dt(e)===pt){const t=bt(e);xn(t)&&(Cn(t),In(t))}kn(Ht.afterSanitizeShadowDOM,t,null)},Cn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){In(t.shadow);continue}const n=t.node,r=Dt(n)===pt,o=M(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Et?Et(n):null;if("string"==typeof t&&"template"===Xe(t)){const t=n.content;xn(t)&&e.push({node:t,shadow:null})}}if(r){const t=bt(n);xn(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(Be=!t,Be&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Sn(t)&&"string"!=typeof(t=F(t)))throw j("dirty is not a string, aborting");if(!r.isSupported)return t;ye?(ee=ge,re=be):tn(e),(Ht.uponSanitizeElement.length>0||Ht.uponSanitizeAttribute.length>0)&&(ee=C(ee)),Ht.uponSanitizeAttribute.length>0&&(re=C(re)),r.removed=[];const c=Ee&&"string"!=typeof t&&Sn(t);if(c){hn(t);const e=Rt(t);if("string"==typeof e){const n=Xe(e);if(!ee[n]||ae[n])throw un(t),j("root node is forbidden and cannot be sanitized in-place")}if(vn(t))throw un(t),j("root node is clobbered and cannot be sanitized in-place");try{Cn(t)}catch(e){throw un(t),e}}else if(Sn(t))n=yn("\x3c!----\x3e"),o=n.ownerDocument.importNode(t,!0),o.nodeType===pt&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),Cn(o);else{if(!ve&&!me&&!he&&-1===t.indexOf("<"))return _t&&Se?Ct(t):t;if(n=yn(t),!n)return ve?null:Se?Lt:""}n&&we&&cn(n.firstChild);const s=c?t:n;try{const t=gn(s);for(;a=t.nextNode();)Dn(a,s),Nn(a),xn(a.content)&&In(a.content)}catch(e){throw c&&(un(t),m(r.removed,(t=>{t.element&&mn(t.element)}))),e}if(c)return m(r.removed,(t=>{t.element&&mn(t.element)})),me&&wn(t),t;if(ve){if(me&&wn(n),xe)for(l=Yt.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(re.shadowroot||re.shadowrootmode)&&(l=qt.call(i,l,!0)),l}let u=he?n.outerHTML:n.innerHTML;return he&&ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(at,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),me&&(u=bn(u)),_t&&Se?Ct(u):u},r.setConfig=function(){tn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ye=!0,ge=ee,be=re},r.clearConfig=function(){Je=null,ye=!1,ge=null,be=null,_t=jt,Lt=""},r.isValidAttribute=function(t,e,n){Je||tn({});const r=Xe(t),o=Xe(e);return Rn(r,o,n)},r.addHook=function(t,e){"function"==typeof e&&D(Ht,t)&&y(Ht[t],e)},r.removeHook=function(t,e){if(D(Ht,t)){if(void 0!==e){const n=d(Ht[t],e);return-1===n?void 0:g(Ht[t],n,1)[0]}return h(Ht[t])}},r.removeHooks=function(t){D(Ht,t)&&(Ht[t]=[])},r.removeAllHooks=function(){Ht={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();return At}()}));export{n as p}
Binary file