@heartlandone/vega 2.75.1 → 2.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (861) hide show
  1. package/dist/cjs/{app-globals-35614ce8.js → app-globals-04e7024b.js} +28 -32
  2. package/dist/cjs/aria-attributes-value-mapper-f58c73f8.js +136 -0
  3. package/dist/cjs/breakpoints-751d433a.js +56 -0
  4. package/dist/cjs/{child-nodes-event-prevent-slimmer-aca87dac.js → child-nodes-event-prevent-slimmer-cc6d2919.js} +2 -2
  5. package/dist/cjs/{child-nodes-notify-observer-slimmer-257fedb3.js → child-nodes-notify-observer-slimmer-ed39283b.js} +1 -1
  6. package/dist/cjs/{code-block-c1d2e6a8.js → code-block-f1480ec3.js} +17 -17
  7. package/dist/cjs/{component-global-style-slimmer-adfa2e59.js → component-global-style-slimmer-93c5fb50.js} +2 -1
  8. package/dist/cjs/{component-usage-runtime-metrics-d10ace87.js → component-usage-runtime-metrics-4572c5b7.js} +1 -1
  9. package/dist/cjs/{component-value-history-controller-slimmer.abstract-787c67dc.js → component-value-history-controller-slimmer.abstract-a9264cc8.js} +5 -5
  10. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-e2e274e1.js → create-public-api-runtime-metrics-slimmer-9cb09fb2.js} +3 -41
  11. package/dist/cjs/{dark-mode-style-controller-c21172aa.js → dark-mode-style-controller-3a04af3d.js} +292 -1254
  12. package/dist/cjs/{date-required-rule-30ee62d0.js → date-required-rule-912469e0.js} +1 -1
  13. package/dist/cjs/{design-token-bb39e07e.js → design-token-c49717c8.js} +2 -2
  14. package/dist/cjs/dom-node-subject-observer-factory-c62823de.js +141 -0
  15. package/dist/cjs/{dto-renderer-manager-03e1a038.js → dto-renderer-manager-809c947b.js} +33 -33
  16. package/dist/cjs/{element-appender-slimmer-daa8b9f5.js → element-appender-slimmer-38583ca9.js} +349 -166
  17. package/dist/cjs/{event-emit-slimmer-2dacabbd.js → event-emit-slimmer-062cdcb8.js} +2 -2
  18. package/dist/cjs/{feature-flag-controller-ce2162c8.js → feature-flag-controller-9129ef52.js} +7 -1
  19. package/dist/cjs/{form-field-controller-slimmer-aef2fb1e.js → form-field-controller-slimmer-102f37c7.js} +13 -14
  20. package/dist/cjs/{internal-icon-manager-32f9ed63.js → icon-manager-c12c6ea9.js} +1 -52
  21. package/dist/cjs/{image-annotation-action-3fa501b7.js → image-annotation-action-8d9fa20c.js} +10 -9
  22. package/dist/cjs/index-592b4052.js +220 -0
  23. package/dist/cjs/{index-4d7bce1a.js → index-f054eb5d.js} +15 -3
  24. package/dist/cjs/index.cjs.js +68 -65
  25. package/dist/cjs/{inject-keyboard-manager-d21b4387.js → inject-keyboard-manager-0f5bd568.js} +1 -1
  26. package/dist/cjs/internal-icon-manager-c989189a.js +55 -0
  27. package/dist/cjs/{translation-5f9f9c0c.js → internal-translation-controller-053eb0f1.js} +0 -93
  28. package/dist/cjs/{internal-vega-event-manager-6befeb34.js → internal-vega-event-manager-f7ecf3d4.js} +81 -81
  29. package/dist/cjs/internal-vega-z-index-manager-f03ddb37.js +180 -0
  30. package/dist/cjs/{keyboard-manager-3dea6b28.js → keyboard-manager-055e9f67.js} +2 -2
  31. package/dist/cjs/{keyboard-manager-slimmer-0d45f944.js → keyboard-manager-slimmer-0cc0c1c7.js} +1 -1
  32. package/dist/cjs/legend-input-processor-1e53e5bc.js +2126 -0
  33. package/dist/cjs/loader.cjs.js +26 -23
  34. package/dist/cjs/misc-3d30df91.js +41 -0
  35. package/dist/cjs/{month-view-generator-49cc5fc2.js → month-view-generator-6a6dd527.js} +1 -1
  36. package/dist/cjs/{page-resize-observer-slimmer-11937d6f.js → page-resize-observer-slimmer-7f065ee1.js} +2 -54
  37. package/dist/cjs/{public-rules-dc2a8d62.js → public-rules-922849f3.js} +12 -13
  38. package/dist/cjs/{range-79b668e7.js → range-8aa49b08.js} +2 -2
  39. package/dist/cjs/{responsive-format-facade-d5dba942.js → responsive-format-facade-acc39a40.js} +13 -22
  40. package/dist/cjs/{rich-text-editor-required-rule-ba312af9.js → rich-text-editor-required-rule-22225840.js} +1 -1
  41. package/dist/cjs/{string-format-strategy.abstract-63514c60.js → string-format-strategy.abstract-f2575647.js} +1 -1
  42. package/dist/cjs/{string-input-formatter-slimmer-f3e0bbc7.js → string-input-formatter-slimmer-0a334fc6.js} +5 -5
  43. package/dist/cjs/{string-mask-strategy-d23ac21a.js → string-mask-strategy-dda58395.js} +2 -2
  44. package/dist/cjs/{style-formatter-49693da7.js → style-formatter-028af284.js} +2 -2
  45. package/dist/cjs/{sub-state-notify-slimmer-468e19aa.js → sub-state-notify-slimmer-58121111.js} +1 -1
  46. package/dist/cjs/{sub-state-observer-slimmer-5d0b8ac3.js → sub-state-observer-slimmer-1dfbc4c3.js} +2 -2
  47. package/dist/cjs/{time-required-rule-c96ecdc9.js → time-required-rule-d6fa7aa8.js} +1 -1
  48. package/dist/cjs/{function-extension-cfbbc57e.js → token-extension-ffcaeae0.js} +621 -486
  49. package/dist/cjs/{translation-slimmer-f0ebe710.js → translation-slimmer-4533bd67.js} +4 -4
  50. package/dist/cjs/{type-guard-a0f026d8.js → type-guard-407ba0b8.js} +3 -3
  51. package/dist/cjs/{ui-9e181079.js → ui-234ea151.js} +12 -0
  52. package/dist/cjs/{valid-credit-card-number-rule-c854bed9.js → valid-credit-card-number-rule-41a8b51b.js} +1 -1
  53. package/dist/cjs/vega-accordion.cjs.entry.js +23 -32
  54. package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
  55. package/dist/cjs/vega-app-header-button.cjs.entry.js +47 -38
  56. package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
  57. package/dist/cjs/vega-banner.cjs.entry.js +15 -13
  58. package/dist/cjs/vega-bar-chart.cjs.entry.js +3 -3
  59. package/dist/cjs/vega-box.cjs.entry.js +18 -33
  60. package/dist/cjs/vega-brand-logo.cjs.entry.js +7 -5
  61. package/dist/cjs/vega-breadcrumb.cjs.entry.js +14 -13
  62. package/dist/cjs/vega-button-circle.cjs.entry.js +37 -32
  63. package/dist/cjs/vega-button-group_2.cjs.entry.js +15 -15
  64. package/dist/cjs/vega-button-link.cjs.entry.js +15 -14
  65. package/dist/cjs/vega-button.cjs.entry.js +21 -30
  66. package/dist/cjs/vega-calendar_4.cjs.entry.js +48 -45
  67. package/dist/cjs/vega-card.cjs.entry.js +9 -28
  68. package/dist/cjs/vega-carousel.cjs.entry.js +15 -26
  69. package/dist/cjs/vega-checkbox_2.cjs.entry.js +22 -20
  70. package/dist/cjs/vega-chip.cjs.entry.js +22 -33
  71. package/dist/cjs/vega-code-block.cjs.entry.js +658 -2709
  72. package/dist/cjs/vega-color-picker.cjs.entry.js +15 -12
  73. package/dist/cjs/vega-combo-box.cjs.entry.js +29 -28
  74. package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
  75. package/dist/cjs/vega-date-picker_2.cjs.entry.js +78 -59
  76. package/dist/cjs/vega-dialog-controller-03ef4d9a.js +84 -0
  77. package/dist/cjs/vega-dialog_2.cjs.entry.js +37 -44
  78. package/dist/cjs/vega-divider.cjs.entry.js +12 -30
  79. package/dist/cjs/vega-dropdown_5.cjs.entry.js +49 -55
  80. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  81. package/dist/cjs/{dom-node-subject-observer-factory-b5e71bf6.js → vega-event-id-ee01d8dd.js} +0 -139
  82. package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
  83. package/dist/cjs/vega-field-label.cjs.entry.js +9 -8
  84. package/dist/cjs/vega-file-uploader.cjs.entry.js +28 -23
  85. package/dist/cjs/vega-flag-icon.cjs.entry.js +13 -27
  86. package/dist/cjs/vega-flex.cjs.entry.js +11 -28
  87. package/dist/cjs/vega-font.cjs.entry.js +12 -29
  88. package/dist/cjs/vega-form.cjs.entry.js +24 -22
  89. package/dist/cjs/vega-grid.cjs.entry.js +9 -28
  90. package/dist/cjs/vega-hint.cjs.entry.js +1 -1
  91. package/dist/cjs/vega-icon.cjs.entry.js +18 -31
  92. package/dist/cjs/vega-image-uploader.cjs.entry.js +34 -37
  93. package/dist/cjs/vega-input-credit-card.cjs.entry.js +31 -27
  94. package/dist/cjs/vega-input-numeric.cjs.entry.js +24 -22
  95. package/dist/cjs/vega-input-passcode.cjs.entry.js +26 -24
  96. package/dist/cjs/vega-input-phone-number.cjs.entry.js +4764 -5600
  97. package/dist/cjs/vega-input-range.cjs.entry.js +22 -20
  98. package/dist/cjs/vega-input-select.cjs.entry.js +41 -46
  99. package/dist/cjs/vega-input.cjs.entry.js +43 -31
  100. package/dist/cjs/vega-item-toggle.cjs.entry.js +8 -7
  101. package/dist/cjs/vega-left-nav_5.cjs.entry.js +38 -40
  102. package/dist/cjs/vega-line-chart.cjs.entry.js +326 -24
  103. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +16 -32
  104. package/dist/cjs/vega-page-notification_2.cjs.entry.js +5 -4
  105. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +12 -12
  106. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +9 -10
  107. package/dist/cjs/vega-pagination.cjs.entry.js +28 -38
  108. package/dist/cjs/vega-pie-chart.cjs.entry.js +6 -89
  109. package/dist/cjs/vega-popover_2.cjs.entry.js +21 -31
  110. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +66 -39
  111. package/dist/cjs/vega-radio_2.cjs.entry.js +25 -23
  112. package/dist/cjs/vega-rich-text-content.cjs.entry.js +36 -20
  113. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +58 -55
  114. package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
  115. package/dist/cjs/vega-segment-control.cjs.entry.js +10 -8
  116. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +25 -32
  117. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +22 -20
  118. package/dist/cjs/vega-sidenav_3.cjs.entry.js +34 -40
  119. package/dist/cjs/vega-signature-capture.cjs.entry.js +27 -31
  120. package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
  121. package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
  122. package/dist/cjs/vega-stepper.cjs.entry.js +23 -21
  123. package/dist/cjs/vega-tab-group_2.cjs.entry.js +15 -14
  124. package/dist/cjs/vega-table_11.cjs.entry.js +67 -68
  125. package/dist/cjs/vega-text.cjs.entry.js +4 -3
  126. package/dist/cjs/vega-textarea.cjs.entry.js +22 -20
  127. package/dist/cjs/vega-time-picker_2.cjs.entry.js +35 -41
  128. package/dist/cjs/vega-toggle-switch.cjs.entry.js +15 -12
  129. package/dist/cjs/vega-tooltip_2.cjs.entry.js +17 -28
  130. package/dist/cjs/vega.cjs.js +26 -23
  131. package/dist/cjs/{index-95fca64f.js → wait-for-component-did-render-70a01bf9.js} +1 -12
  132. package/dist/cjs/y-axis-input-processor-54a26515.js +832 -0
  133. package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +1 -1
  134. package/dist/collection/components/vega-accordion/vega-accordion.css +5 -0
  135. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +17 -2
  136. package/dist/collection/components/vega-box/slimmers/controllers/vega-box-responsive-style-controller.js +2 -1
  137. package/dist/collection/components/vega-box/slimmers/controllers/vega-box-state-styles-controller.js +2 -1
  138. package/dist/collection/components/vega-button/vega-button.js +2 -1
  139. package/dist/collection/components/vega-button-circle/vega-button-circle.js +19 -4
  140. package/dist/collection/components/vega-button-link/vega-button-link.css +1 -1
  141. package/dist/collection/components/vega-button-link/vega-button-link.js +2 -1
  142. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.js +1 -1
  143. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.js +1 -1
  144. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.js +1 -1
  145. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.js +1 -1
  146. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.js +1 -1
  147. package/dist/collection/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.js +5 -14
  148. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +2 -2
  149. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +1 -1
  150. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +1 -1
  151. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +16 -2
  152. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +184 -207
  153. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +32 -0
  154. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +2 -2
  155. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +2 -2
  156. package/dist/collection/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.js +3 -3
  157. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +6 -4
  158. package/dist/collection/components/vega-icon/vega-icon.js +2 -1
  159. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +10 -2
  160. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/country-select-controller.js +1 -1
  161. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +1 -1
  162. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +2 -2
  163. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +1 -1
  164. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +4 -4
  165. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +2 -2
  166. package/dist/collection/components/vega-pagination/vega-pagination.js +1 -1
  167. package/dist/collection/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.js +30 -6
  168. package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.js +1 -1
  169. package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +8 -1
  170. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +27 -0
  171. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +12 -0
  172. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +8 -3
  173. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +15 -0
  174. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -1
  175. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +11 -0
  176. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +15 -1
  177. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +2 -0
  178. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +0 -11
  179. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +23 -23
  180. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +0 -10
  181. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +7 -17
  182. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +12 -16
  183. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +31 -0
  184. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +19 -0
  185. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +1 -1
  186. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +1 -1
  187. package/dist/collection/components/vega-rich-text-editor/test/extensions/extension-test-utils.js +41 -0
  188. package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +2 -1
  189. package/dist/collection/components/vega-table/interface.js +3 -0
  190. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +1 -1
  191. package/dist/collection/global/scripts/before-vega-load.js +4 -3
  192. package/dist/collection/helpers/calendar/calendar-date.js +1 -1
  193. package/dist/collection/helpers/calendar/calendar-event.js +1 -1
  194. package/dist/collection/helpers/calendar/calendar-time.js +1 -1
  195. package/dist/collection/helpers/chart/input-processors/format-time-positions-input-processor.js +2 -2
  196. package/dist/collection/helpers/chart/input-processors/pie-chart-arc-path-input-processor.js +1 -1
  197. package/dist/collection/helpers/chart/input-processors/x-axis-input-processor.js +5 -3
  198. package/dist/collection/helpers/chart/input-processors/x-axis-label-formatter-input-processor.js +2 -1
  199. package/dist/collection/helpers/chart/input-processors/y-axis-input-processor.js +7 -5
  200. package/dist/collection/helpers/chart/interacting-entry-generator/arc-path-hover-generator.js +1 -1
  201. package/dist/collection/helpers/chart/interacting-entry-generator/pie-legend-hover-generator.js +1 -1
  202. package/dist/collection/helpers/chart/renderers/canvas-renderer.js +1 -1
  203. package/dist/collection/helpers/chart/renderers/svg-renderer.js +1 -1
  204. package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +1 -1
  205. package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +1 -1
  206. package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +1 -1
  207. package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +39 -0
  208. package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +61 -14
  209. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.js +39 -0
  210. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +14 -0
  211. package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +1 -1
  212. package/dist/collection/helpers/code-format/test/code-formatter.test.js +1 -1
  213. package/dist/collection/helpers/common/index.js +2 -37
  214. package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +67 -0
  215. package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +2 -2
  216. package/dist/collection/helpers/common/wait-for-component-did-render.js +27 -0
  217. package/dist/collection/helpers/common/wait-for-vega-handler.js +12 -1
  218. package/dist/collection/helpers/feature-control/feature-flags-map.js +6 -0
  219. package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-border-radius-style-formatter.js +1 -1
  220. package/dist/collection/helpers/public-api.js +0 -2
  221. package/dist/collection/helpers/slimmers/component-global-style-slimmer.js +2 -1
  222. package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +3 -4
  223. package/dist/collection/helpers/slimmers/form-field-message-translator.js +1 -1
  224. package/dist/collection/helpers/slimmers/global/vega-translate-observer-slimmer.js +1 -1
  225. package/dist/collection/helpers/slimmers/global/vega-watch-method-cancel-slimmer.js +1 -1
  226. package/dist/collection/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.js +132 -0
  227. package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +196 -0
  228. package/dist/collection/helpers/slimmers/position-calculation/base-position-calculation-strategy.js +162 -151
  229. package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +9 -0
  230. package/dist/collection/helpers/slimmers/position-calculation/screen-position-calculation-strategy.js +112 -1
  231. package/dist/collection/helpers/slimmers/position-calculation/screen-scroll-position-update.js +53 -0
  232. package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +103 -6
  233. package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +1 -1
  234. package/dist/collection/helpers/slimmers/translation/translation-slimmer.js +1 -1
  235. package/dist/collection/helpers/theme/controllers/brand-style-controller.js +3 -1
  236. package/dist/collection/helpers/theme/controllers/color-schema-overriding-controller.js +8 -6
  237. package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +3 -1
  238. package/dist/collection/helpers/theme/internal-theme-manager.js +2 -1
  239. package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +1 -2
  240. package/dist/collection/helpers/ui/element-appender.js +4 -5
  241. package/dist/collection/helpers/ui/test/element-appender.test.js +66 -17
  242. package/dist/collection/helpers/validator/rules/valid-phone-number-rule.js +1 -1
  243. package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +10 -0
  244. package/dist/collection/index.js +2 -0
  245. package/dist/collection/polyfill/d3/d3-array-polyfill.js +89 -0
  246. package/dist/collection/polyfill/d3/d3-axis-polyfill.js +195 -0
  247. package/dist/collection/polyfill/d3/d3-scale-polyfill.js +582 -0
  248. package/dist/collection/polyfill/d3/d3-selection-polyfill.js +274 -0
  249. package/dist/collection/polyfill/d3/d3-shape-polyfill.js +252 -0
  250. package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +207 -0
  251. package/dist/collection/polyfill/d3/d3-time-polyfill.js +99 -0
  252. package/dist/collection/polyfill/d3/index.js +31 -0
  253. package/dist/collection/polyfill/d3/test/d3-array-polyfill.test.js +72 -0
  254. package/dist/collection/polyfill/d3/test/d3-axis-polyfill.test.js +171 -0
  255. package/dist/collection/polyfill/d3/test/d3-integration.test.js +137 -0
  256. package/dist/collection/polyfill/d3/test/d3-scale-polyfill.test.js +382 -0
  257. package/dist/collection/polyfill/d3/test/d3-selection-polyfill.test.js +239 -0
  258. package/dist/collection/polyfill/d3/test/d3-shape-polyfill.test.js +225 -0
  259. package/dist/collection/polyfill/d3/test/d3-time-format-polyfill.test.js +162 -0
  260. package/dist/collection/polyfill/d3/test/d3-time-polyfill.test.js +76 -0
  261. package/dist/collection/polyfill/d3/test/index.test.js +78 -0
  262. package/dist/collection/polyfill/libphonenumber/as-you-type.js +405 -0
  263. package/dist/collection/polyfill/libphonenumber/format-helpers.js +186 -0
  264. package/dist/collection/polyfill/libphonenumber/index.js +22 -0
  265. package/dist/collection/polyfill/libphonenumber/metadata.js +150 -0
  266. package/dist/collection/polyfill/libphonenumber/metadata.json.js +3900 -0
  267. package/dist/collection/polyfill/libphonenumber/parse-phone-number.js +127 -0
  268. package/dist/collection/polyfill/libphonenumber/phone-number.js +38 -0
  269. package/dist/collection/polyfill/libphonenumber/test/as-you-type.test.js +309 -0
  270. package/dist/collection/polyfill/libphonenumber/test/format-helpers.test.js +192 -0
  271. package/dist/collection/polyfill/libphonenumber/test/index.test.js +16 -0
  272. package/dist/collection/polyfill/libphonenumber/test/metadata.test.js +196 -0
  273. package/dist/collection/polyfill/libphonenumber/test/parse-phone-number.test.js +218 -0
  274. package/dist/collection/polyfill/libphonenumber/test/phone-number.test.js +56 -0
  275. package/dist/collection/polyfill/libphonenumber/types.js +23 -0
  276. package/dist/collection/polyfill/prism/index.js +2 -0
  277. package/dist/collection/polyfill/prism/languages/css.js +86 -0
  278. package/dist/collection/polyfill/prism/languages/javascript.js +96 -0
  279. package/dist/collection/polyfill/prism/languages/jsx.js +46 -0
  280. package/dist/collection/polyfill/prism/languages/language-registry.js +41 -0
  281. package/dist/collection/polyfill/prism/languages/markup.js +71 -0
  282. package/dist/collection/polyfill/prism/languages/tsx.js +10 -0
  283. package/dist/collection/polyfill/prism/languages/typescript.js +64 -0
  284. package/dist/collection/polyfill/prism/test/css.test.js +61 -0
  285. package/dist/collection/polyfill/prism/test/javascript.test.js +113 -0
  286. package/dist/collection/polyfill/prism/test/jsx.test.js +48 -0
  287. package/dist/collection/polyfill/prism/test/language-registry.test.js +77 -0
  288. package/dist/collection/polyfill/prism/test/markup.test.js +57 -0
  289. package/dist/collection/polyfill/prism/test/test-utils.js +22 -0
  290. package/dist/collection/polyfill/prism/test/tokenizer.test.js +180 -0
  291. package/dist/collection/polyfill/prism/test/tsx.test.js +87 -0
  292. package/dist/collection/polyfill/prism/test/typescript.test.js +86 -0
  293. package/dist/collection/polyfill/prism/tokenizer.js +242 -0
  294. package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.js +320 -0
  295. package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.test.js +361 -0
  296. package/dist/collection/types/ui.type.js +12 -0
  297. package/dist/collection/utils/e2e-utils.js +10 -3
  298. package/dist/collection/utils/sanitize/constants/tag-sets.js +5 -0
  299. package/dist/collection/utils/sanitize/core/html-sanitizer.js +39 -0
  300. package/dist/collection/utils/sanitize/core/sanitize-strategy.js +62 -0
  301. package/dist/collection/utils/sanitize/core/types.js +4 -0
  302. package/dist/collection/utils/sanitize/index.js +12 -0
  303. package/dist/collection/utils/sanitize/strategies/empty-sanitize-strategy.js +17 -0
  304. package/dist/collection/utils/sanitize/strategies/index.js +3 -0
  305. package/dist/collection/utils/sanitize/strategies/label-sanitize-strategy.js +13 -0
  306. package/dist/collection/utils/sanitize/strategies/style-sanitize-strategy.js +50 -0
  307. package/dist/collection/utils/sanitize/test/empty-strategy.test.js +12 -0
  308. package/dist/collection/utils/sanitize/test/html-sanitizer.test.js +57 -0
  309. package/dist/collection/utils/sanitize/test/label-strategy.test.js +56 -0
  310. package/dist/collection/utils/sanitize/test/sanitize-strategy.test.js +85 -0
  311. package/dist/collection/utils/sanitize/test/sanitize.test.js +22 -0
  312. package/dist/collection/utils/sanitize/test/serialize-fragment.test.js +25 -0
  313. package/dist/collection/utils/sanitize/test/style-strategy.test.js +45 -0
  314. package/dist/collection/utils/sanitize/utils/serialize-fragment.js +17 -0
  315. package/dist/esm/{app-globals-2ac60ff5.js → app-globals-32055795.js} +12 -16
  316. package/dist/esm/aria-attributes-value-mapper-d4fef46a.js +134 -0
  317. package/dist/esm/breakpoints-56e5407b.js +53 -0
  318. package/dist/esm/{child-nodes-event-prevent-slimmer-e662bee2.js → child-nodes-event-prevent-slimmer-331312b8.js} +2 -2
  319. package/dist/esm/{child-nodes-notify-observer-slimmer-b676cd2b.js → child-nodes-notify-observer-slimmer-541dd6a4.js} +1 -1
  320. package/dist/esm/{code-block-8ee34ab6.js → code-block-b6247a45.js} +7 -7
  321. package/dist/esm/{component-global-style-slimmer-08046b38.js → component-global-style-slimmer-ac703085.js} +2 -1
  322. package/dist/esm/{component-usage-runtime-metrics-a84cc93e.js → component-usage-runtime-metrics-46020a03.js} +1 -1
  323. package/dist/esm/{component-value-history-controller-slimmer.abstract-a61bf821.js → component-value-history-controller-slimmer.abstract-2bb8533d.js} +6 -6
  324. package/dist/esm/{create-public-api-runtime-metrics-slimmer-bedf3a1e.js → create-public-api-runtime-metrics-slimmer-aaadaa08.js} +3 -38
  325. package/dist/esm/{dark-mode-style-controller-de88a117.js → dark-mode-style-controller-82e5c1c6.js} +292 -1254
  326. package/dist/esm/{date-required-rule-47ecc28f.js → date-required-rule-e771e7d9.js} +1 -1
  327. package/dist/esm/{design-token-007efbaa.js → design-token-5bc034e1.js} +2 -2
  328. package/dist/esm/dom-node-subject-observer-factory-82f346e3.js +138 -0
  329. package/dist/esm/{dto-renderer-manager-ee1a5864.js → dto-renderer-manager-6fd22ab7.js} +7 -7
  330. package/dist/esm/{element-appender-slimmer-35e26b5a.js → element-appender-slimmer-9ea377d0.js} +348 -165
  331. package/dist/esm/{event-emit-slimmer-09827cec.js → event-emit-slimmer-ffaecb9a.js} +2 -2
  332. package/dist/esm/{feature-flag-controller-51659753.js → feature-flag-controller-30f7b625.js} +7 -1
  333. package/dist/esm/{form-field-controller-slimmer-5d9dc384.js → form-field-controller-slimmer-5817d14d.js} +10 -11
  334. package/dist/esm/{internal-icon-manager-f0486245.js → icon-manager-539d7cf7.js} +2 -52
  335. package/dist/esm/{image-annotation-action-285d432e.js → image-annotation-action-6701b4c9.js} +6 -5
  336. package/dist/esm/index-3b327f29.js +215 -0
  337. package/dist/esm/{index-e9da316f.js → index-bfc6dfa2.js} +13 -1
  338. package/dist/esm/index.js +32 -29
  339. package/dist/esm/{inject-keyboard-manager-83d76ff5.js → inject-keyboard-manager-78730062.js} +1 -1
  340. package/dist/esm/internal-icon-manager-bd80b3bb.js +53 -0
  341. package/dist/esm/{translation-96e5debd.js → internal-translation-controller-911515f9.js} +1 -93
  342. package/dist/esm/{internal-vega-event-manager-efb6786e.js → internal-vega-event-manager-32a3d848.js} +1 -1
  343. package/dist/esm/internal-vega-z-index-manager-7d2b54c3.js +178 -0
  344. package/dist/esm/{keyboard-manager-c92808d8.js → keyboard-manager-38934f94.js} +2 -2
  345. package/dist/esm/{keyboard-manager-slimmer-79c78ce8.js → keyboard-manager-slimmer-9984d922.js} +1 -1
  346. package/dist/esm/legend-input-processor-122008c5.js +2116 -0
  347. package/dist/esm/loader.js +27 -24
  348. package/dist/esm/misc-9fdbcfbb.js +37 -0
  349. package/dist/esm/{month-view-generator-16192182.js → month-view-generator-eaf9029c.js} +1 -1
  350. package/dist/esm/{page-resize-observer-slimmer-8744cb44.js → page-resize-observer-slimmer-d6af0d86.js} +2 -52
  351. package/dist/esm/{public-rules-724873f5.js → public-rules-25cc3a39.js} +13 -14
  352. package/dist/esm/{range-5257c062.js → range-663f44dc.js} +2 -2
  353. package/dist/esm/{responsive-format-facade-28ee2dbd.js → responsive-format-facade-aa705823.js} +3 -12
  354. package/dist/esm/{rich-text-editor-required-rule-873e2e67.js → rich-text-editor-required-rule-a238b862.js} +1 -1
  355. package/dist/esm/{string-format-strategy.abstract-fc60db79.js → string-format-strategy.abstract-713fba36.js} +1 -1
  356. package/dist/esm/{string-input-formatter-slimmer-ee32b1fd.js → string-input-formatter-slimmer-5b413ff9.js} +4 -4
  357. package/dist/esm/{string-mask-strategy-0b0accaa.js → string-mask-strategy-6beaf664.js} +2 -2
  358. package/dist/esm/{style-formatter-314b37f3.js → style-formatter-28138f5c.js} +2 -2
  359. package/dist/esm/{sub-state-notify-slimmer-4453047a.js → sub-state-notify-slimmer-5133f1a8.js} +2 -2
  360. package/dist/esm/{sub-state-observer-slimmer-202ec7dc.js → sub-state-observer-slimmer-478c9f41.js} +3 -3
  361. package/dist/esm/{time-required-rule-5fa43804.js → time-required-rule-e4138a76.js} +1 -1
  362. package/dist/esm/{function-extension-e8c0e43e.js → token-extension-73e4460a.js} +609 -476
  363. package/dist/esm/{translation-slimmer-c936cb1b.js → translation-slimmer-2394b173.js} +1 -1
  364. package/dist/esm/{type-guard-c65a227d.js → type-guard-f50e34d6.js} +1 -1
  365. package/dist/esm/{ui-bb99c0c2.js → ui-ee31416b.js} +12 -0
  366. package/dist/esm/{valid-credit-card-number-rule-666c415d.js → valid-credit-card-number-rule-22ce81db.js} +1 -1
  367. package/dist/esm/vega-accordion.entry.js +21 -30
  368. package/dist/esm/vega-app-footer.entry.js +3 -3
  369. package/dist/esm/vega-app-header-button.entry.js +38 -29
  370. package/dist/esm/vega-backdrop.entry.js +2 -2
  371. package/dist/esm/vega-banner.entry.js +12 -10
  372. package/dist/esm/vega-bar-chart.entry.js +3 -3
  373. package/dist/esm/vega-box.entry.js +14 -29
  374. package/dist/esm/vega-brand-logo.entry.js +7 -5
  375. package/dist/esm/vega-breadcrumb.entry.js +11 -10
  376. package/dist/esm/vega-button-circle.entry.js +36 -31
  377. package/dist/esm/vega-button-group_2.entry.js +12 -12
  378. package/dist/esm/vega-button-link.entry.js +13 -12
  379. package/dist/esm/vega-button.entry.js +19 -28
  380. package/dist/esm/vega-calendar_4.entry.js +23 -20
  381. package/dist/esm/vega-card.entry.js +9 -28
  382. package/dist/esm/vega-carousel.entry.js +14 -25
  383. package/dist/esm/vega-checkbox_2.entry.js +19 -17
  384. package/dist/esm/vega-chip.entry.js +18 -29
  385. package/dist/esm/vega-code-block.entry.js +653 -2704
  386. package/dist/esm/vega-color-picker.entry.js +15 -12
  387. package/dist/esm/vega-combo-box.entry.js +22 -21
  388. package/dist/esm/vega-counter-badge.entry.js +1 -1
  389. package/dist/esm/vega-date-picker_2.entry.js +59 -40
  390. package/dist/esm/vega-dialog-controller-bbb2fc52.js +82 -0
  391. package/dist/esm/vega-dialog_2.entry.js +23 -30
  392. package/dist/esm/vega-divider.entry.js +11 -29
  393. package/dist/esm/vega-dropdown_5.entry.js +39 -45
  394. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  395. package/dist/esm/vega-event-id-38aa77a0.js +113 -0
  396. package/dist/esm/vega-field-error.entry.js +1 -1
  397. package/dist/esm/vega-field-label.entry.js +7 -6
  398. package/dist/esm/vega-file-uploader.entry.js +19 -14
  399. package/dist/esm/vega-flag-icon.entry.js +12 -26
  400. package/dist/esm/vega-flex.entry.js +11 -28
  401. package/dist/esm/vega-font.entry.js +11 -28
  402. package/dist/esm/vega-form.entry.js +20 -18
  403. package/dist/esm/vega-grid.entry.js +9 -28
  404. package/dist/esm/vega-hint.entry.js +1 -1
  405. package/dist/esm/vega-icon.entry.js +15 -28
  406. package/dist/esm/vega-image-uploader.entry.js +28 -31
  407. package/dist/esm/vega-input-credit-card.entry.js +25 -21
  408. package/dist/esm/vega-input-numeric.entry.js +21 -19
  409. package/dist/esm/vega-input-passcode.entry.js +20 -18
  410. package/dist/esm/vega-input-phone-number.entry.js +4760 -5596
  411. package/dist/esm/vega-input-range.entry.js +19 -17
  412. package/dist/esm/vega-input-select.entry.js +27 -32
  413. package/dist/esm/vega-input.entry.js +33 -21
  414. package/dist/esm/{vega-internal-event-id-4a06d705.js → vega-internal-event-id-799d012e.js} +1 -1
  415. package/dist/esm/vega-item-toggle.entry.js +6 -5
  416. package/dist/esm/vega-left-nav_5.entry.js +29 -31
  417. package/dist/esm/vega-line-chart.entry.js +312 -10
  418. package/dist/esm/vega-loader-wrapper_2.entry.js +13 -29
  419. package/dist/esm/vega-page-notification_2.entry.js +4 -3
  420. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +9 -9
  421. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -8
  422. package/dist/esm/vega-pagination.entry.js +20 -30
  423. package/dist/esm/vega-pie-chart.entry.js +6 -89
  424. package/dist/esm/vega-popover_2.entry.js +20 -30
  425. package/dist/esm/vega-progress-tracker_2.entry.js +64 -37
  426. package/dist/esm/vega-radio_2.entry.js +21 -19
  427. package/dist/esm/vega-rich-text-content.entry.js +32 -16
  428. package/dist/esm/vega-rich-text-editor_4.entry.js +33 -30
  429. package/dist/esm/vega-section-title.entry.js +1 -1
  430. package/dist/esm/vega-segment-control.entry.js +9 -7
  431. package/dist/esm/vega-selection-chip_2.entry.js +22 -29
  432. package/dist/esm/vega-selection-tile_2.entry.js +19 -17
  433. package/dist/esm/vega-sidenav_3.entry.js +24 -30
  434. package/dist/esm/vega-signature-capture.entry.js +24 -28
  435. package/dist/esm/vega-skeleton.entry.js +1 -1
  436. package/dist/esm/vega-slot-container.entry.js +1 -1
  437. package/dist/esm/vega-stepper.entry.js +18 -16
  438. package/dist/esm/vega-tab-group_2.entry.js +11 -10
  439. package/dist/esm/vega-table_11.entry.js +28 -29
  440. package/dist/esm/vega-text.entry.js +4 -3
  441. package/dist/esm/vega-textarea.entry.js +18 -16
  442. package/dist/esm/vega-time-picker_2.entry.js +26 -32
  443. package/dist/esm/vega-toggle-switch.entry.js +15 -12
  444. package/dist/esm/vega-tooltip_2.entry.js +18 -29
  445. package/dist/esm/vega.js +27 -24
  446. package/dist/esm/{index-51a7da7f.js → wait-for-component-did-render-b08ef07b.js} +3 -13
  447. package/dist/esm/y-axis-input-processor-c7e05353.js +826 -0
  448. package/dist/sri/vega-sri-manifest.json +425 -409
  449. package/dist/types/components/vega-app-footer/types.d.ts +18 -0
  450. package/dist/types/components/vega-app-header-button/types.d.ts +31 -0
  451. package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +2 -0
  452. package/dist/types/components/vega-banner/types.d.ts +9 -0
  453. package/dist/types/components/vega-box/interface.d.ts +46 -0
  454. package/dist/types/components/vega-breadcrumb/types.d.ts +28 -0
  455. package/dist/types/components/vega-button/types.d.ts +12 -0
  456. package/dist/types/components/vega-button-circle/types.d.ts +9 -0
  457. package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +2 -0
  458. package/dist/types/components/vega-button-group/types.d.ts +48 -0
  459. package/dist/types/components/vega-button-link/types.d.ts +3 -0
  460. package/dist/types/components/vega-calendar/types.d.ts +189 -0
  461. package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +6 -0
  462. package/dist/types/components/vega-chart/vega-bar-chart/types.d.ts +3 -0
  463. package/dist/types/components/vega-chip/types.d.ts +12 -0
  464. package/dist/types/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.d.ts +2 -10
  465. package/dist/types/components/vega-combo-box/types.d.ts +6 -0
  466. package/dist/types/components/vega-date-picker/types.d.ts +53 -0
  467. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +3 -0
  468. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +9 -1
  469. package/dist/types/components/vega-dialog/types.d.ts +5 -0
  470. package/dist/types/components/vega-divider/interface.d.ts +18 -0
  471. package/dist/types/components/vega-dropdown/types.d.ts +30 -0
  472. package/dist/types/components/vega-dropdown/vega-dropdown-item/types.d.ts +9 -1
  473. package/dist/types/components/vega-field-error/types.d.ts +12 -0
  474. package/dist/types/components/vega-field-label/types.d.ts +16 -0
  475. package/dist/types/components/vega-file-uploader/types.d.ts +12 -0
  476. package/dist/types/components/vega-font/types.d.ts +3 -0
  477. package/dist/types/components/vega-form/types.d.ts +45 -0
  478. package/dist/types/components/vega-image-uploader/types.d.ts +33 -1
  479. package/dist/types/components/vega-input/types.d.ts +31 -0
  480. package/dist/types/components/vega-input-phone-number/types.d.ts +15 -0
  481. package/dist/types/components/vega-input-range/types.d.ts +9 -0
  482. package/dist/types/components/vega-input-select/types.d.ts +45 -0
  483. package/dist/types/components/vega-item-toggle/types.d.ts +21 -0
  484. package/dist/types/components/vega-loading-indicator/types.d.ts +3 -0
  485. package/dist/types/components/vega-modal/types.d.ts +9 -0
  486. package/dist/types/components/vega-nav/interface.d.ts +108 -0
  487. package/dist/types/components/vega-page-notification/types.d.ts +15 -0
  488. package/dist/types/components/vega-pagination/types.d.ts +11 -0
  489. package/dist/types/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.d.ts +16 -4
  490. package/dist/types/components/vega-progress-tracker/type.d.ts +8 -0
  491. package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.d.ts +6 -0
  492. package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +2 -2
  493. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +6 -0
  494. package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +9 -1
  495. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +9 -1
  496. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +0 -7
  497. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.d.ts +5 -10
  498. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +1 -5
  499. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +3 -8
  500. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.d.ts +5 -9
  501. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +26 -0
  502. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.test.d.ts +1 -0
  503. package/dist/types/components/vega-rich-text-editor/interface.d.ts +477 -2
  504. package/dist/types/components/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +21 -0
  505. package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/types.d.ts +24 -0
  506. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types.d.ts +24 -0
  507. package/dist/types/components/vega-segment-control/types.d.ts +18 -0
  508. package/dist/types/components/vega-selection-chip/interface.d.ts +12 -0
  509. package/dist/types/components/vega-selection-chip/vega-selection-chip-group/interface.d.ts +4 -0
  510. package/dist/types/components/vega-selection-tile/interface.d.ts +9 -0
  511. package/dist/types/components/vega-sidenav/types.d.ts +51 -0
  512. package/dist/types/components/vega-signature-capture/types.d.ts +29 -2
  513. package/dist/types/components/vega-skeleton/interface.d.ts +6 -0
  514. package/dist/types/components/vega-tab-group/types.d.ts +36 -0
  515. package/dist/types/components/vega-table/interface.d.ts +237 -20
  516. package/dist/types/components/vega-table/vega-table-expand-row/types.d.ts +6 -0
  517. package/dist/types/components/vega-table/vega-table-foot/types.d.ts +9 -0
  518. package/dist/types/components/vega-table/vega-table-foot-row/types.d.ts +9 -0
  519. package/dist/types/components/vega-table/vega-table-head/types.d.ts +9 -0
  520. package/dist/types/components/vega-table/vega-table-head-row/types.d.ts +12 -0
  521. package/dist/types/components/vega-table/vega-table-row/types.d.ts +18 -0
  522. package/dist/types/components/vega-text/types.d.ts +6 -0
  523. package/dist/types/components/vega-time-picker/types.d.ts +33 -0
  524. package/dist/types/components/vega-virtual-scroll/types.d.ts +30 -1
  525. package/dist/types/components.d.ts +24 -4
  526. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +1 -0
  527. package/dist/types/helpers/common/index.d.ts +2 -15
  528. package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +1 -0
  529. package/dist/types/helpers/common/wait-for-component-did-render.d.ts +8 -0
  530. package/dist/types/helpers/common/wait-for-vega-handler.d.ts +6 -15
  531. package/dist/types/helpers/feature-control/feature-flag.d.ts +2 -1
  532. package/dist/types/helpers/public-api.d.ts +0 -2
  533. package/dist/types/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.d.ts +44 -0
  534. package/dist/types/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.d.ts +1 -0
  535. package/dist/types/helpers/slimmers/position-calculation/base-position-calculation-strategy.d.ts +57 -48
  536. package/dist/types/helpers/slimmers/position-calculation/position-calculation-controller.d.ts +5 -0
  537. package/dist/types/helpers/slimmers/position-calculation/screen-position-calculation-strategy.d.ts +41 -1
  538. package/dist/types/helpers/slimmers/position-calculation/screen-scroll-position-update.d.ts +39 -0
  539. package/dist/types/helpers/ui/element-appender.d.ts +0 -1
  540. package/dist/types/index.d.ts +2 -0
  541. package/dist/types/polyfill/d3/d3-array-polyfill.d.ts +48 -0
  542. package/dist/types/polyfill/d3/d3-axis-polyfill.d.ts +53 -0
  543. package/dist/types/polyfill/d3/d3-scale-polyfill.d.ts +42 -0
  544. package/dist/types/polyfill/d3/d3-selection-polyfill.d.ts +173 -0
  545. package/dist/types/polyfill/d3/d3-shape-polyfill.d.ts +129 -0
  546. package/dist/types/polyfill/d3/d3-time-format-polyfill.d.ts +28 -0
  547. package/dist/types/polyfill/d3/d3-time-polyfill.d.ts +68 -0
  548. package/dist/types/polyfill/d3/index.d.ts +27 -0
  549. package/dist/types/polyfill/d3/test/d3-array-polyfill.test.d.ts +1 -0
  550. package/dist/types/polyfill/d3/test/d3-axis-polyfill.test.d.ts +1 -0
  551. package/dist/types/polyfill/d3/test/d3-integration.test.d.ts +1 -0
  552. package/dist/types/polyfill/d3/test/d3-scale-polyfill.test.d.ts +1 -0
  553. package/dist/types/polyfill/d3/test/d3-selection-polyfill.test.d.ts +1 -0
  554. package/dist/types/polyfill/d3/test/d3-shape-polyfill.test.d.ts +1 -0
  555. package/dist/types/polyfill/d3/test/d3-time-format-polyfill.test.d.ts +1 -0
  556. package/dist/types/polyfill/d3/test/d3-time-polyfill.test.d.ts +1 -0
  557. package/dist/types/polyfill/d3/test/index.test.d.ts +1 -0
  558. package/dist/types/polyfill/libphonenumber/as-you-type.d.ts +154 -0
  559. package/dist/types/polyfill/libphonenumber/format-helpers.d.ts +64 -0
  560. package/dist/types/polyfill/libphonenumber/index.d.ts +22 -0
  561. package/dist/types/polyfill/libphonenumber/metadata.d.ts +45 -0
  562. package/dist/types/polyfill/libphonenumber/metadata.json.d.ts +470 -0
  563. package/dist/types/polyfill/libphonenumber/parse-phone-number.d.ts +26 -0
  564. package/dist/types/polyfill/libphonenumber/phone-number.d.ts +24 -0
  565. package/dist/types/polyfill/libphonenumber/test/as-you-type.test.d.ts +1 -0
  566. package/dist/types/polyfill/libphonenumber/test/format-helpers.test.d.ts +1 -0
  567. package/dist/types/polyfill/libphonenumber/test/index.test.d.ts +1 -0
  568. package/dist/types/polyfill/libphonenumber/test/metadata.test.d.ts +1 -0
  569. package/dist/types/polyfill/libphonenumber/test/parse-phone-number.test.d.ts +1 -0
  570. package/dist/types/polyfill/libphonenumber/test/phone-number.test.d.ts +1 -0
  571. package/dist/types/polyfill/libphonenumber/types.d.ts +77 -0
  572. package/dist/types/polyfill/prism/index.d.ts +3 -0
  573. package/dist/types/polyfill/prism/languages/css.d.ts +6 -0
  574. package/dist/types/polyfill/prism/languages/javascript.d.ts +7 -0
  575. package/dist/types/polyfill/prism/languages/jsx.d.ts +7 -0
  576. package/dist/types/polyfill/prism/languages/language-registry.d.ts +8 -0
  577. package/dist/types/polyfill/prism/languages/markup.d.ts +6 -0
  578. package/dist/types/polyfill/prism/languages/tsx.d.ts +7 -0
  579. package/dist/types/polyfill/prism/languages/typescript.d.ts +2 -0
  580. package/dist/types/polyfill/prism/test/css.test.d.ts +1 -0
  581. package/dist/types/polyfill/prism/test/javascript.test.d.ts +1 -0
  582. package/dist/types/polyfill/prism/test/jsx.test.d.ts +1 -0
  583. package/dist/types/polyfill/prism/test/language-registry.test.d.ts +1 -0
  584. package/dist/types/polyfill/prism/test/markup.test.d.ts +1 -0
  585. package/dist/types/polyfill/prism/test/test-utils.d.ts +10 -0
  586. package/dist/types/polyfill/prism/test/tokenizer.test.d.ts +1 -0
  587. package/dist/types/polyfill/prism/test/tsx.test.d.ts +1 -0
  588. package/dist/types/polyfill/prism/test/typescript.test.d.ts +1 -0
  589. package/dist/types/polyfill/prism/tokenizer.d.ts +17 -0
  590. package/dist/types/polyfill/prism/types.d.ts +25 -0
  591. package/dist/types/polyfill/tinycolor/tinycolor-polyfill.d.ts +149 -0
  592. package/dist/types/polyfill/tinycolor/tinycolor-polyfill.test.d.ts +1 -0
  593. package/dist/types/types/components.type.d.ts +5 -1
  594. package/dist/types/types/design-token.type.d.ts +36 -0
  595. package/dist/types/types/flag.type.d.ts +257 -3
  596. package/dist/types/types/general.d.ts +12 -0
  597. package/dist/types/types/ui.type.d.ts +372 -0
  598. package/dist/types/types/vega-chart.d.ts +292 -14
  599. package/dist/types/utils/e2e-utils.d.ts +2 -0
  600. package/dist/types/utils/sanitize/constants/tag-sets.d.ts +6 -0
  601. package/dist/types/utils/sanitize/core/html-sanitizer.d.ts +22 -0
  602. package/dist/types/utils/sanitize/core/sanitize-strategy.d.ts +27 -0
  603. package/dist/types/utils/sanitize/core/types.d.ts +13 -0
  604. package/dist/types/utils/sanitize/index.d.ts +12 -0
  605. package/dist/types/utils/sanitize/strategies/empty-sanitize-strategy.d.ts +14 -0
  606. package/dist/types/utils/sanitize/strategies/index.d.ts +3 -0
  607. package/dist/types/utils/sanitize/strategies/label-sanitize-strategy.d.ts +10 -0
  608. package/dist/types/utils/sanitize/strategies/style-sanitize-strategy.d.ts +24 -0
  609. package/dist/types/utils/sanitize/test/empty-strategy.test.d.ts +1 -0
  610. package/dist/types/utils/sanitize/test/html-sanitizer.test.d.ts +1 -0
  611. package/dist/types/utils/sanitize/test/label-strategy.test.d.ts +1 -0
  612. package/dist/types/utils/sanitize/test/sanitize-strategy.test.d.ts +1 -0
  613. package/dist/types/utils/sanitize/test/sanitize.test.d.ts +1 -0
  614. package/dist/types/utils/sanitize/test/serialize-fragment.test.d.ts +1 -0
  615. package/dist/types/utils/sanitize/test/style-strategy.test.d.ts +1 -0
  616. package/dist/types/utils/sanitize/utils/serialize-fragment.d.ts +12 -0
  617. package/dist/vega/index.esm.js +1 -1
  618. package/dist/vega/p-0037068c.entry.js +1 -0
  619. package/dist/vega/p-010ff53d.entry.js +1 -0
  620. package/dist/vega/p-021d4ae4.js +1 -0
  621. package/dist/vega/{p-66fa700b.js → p-02c9796a.js} +1 -1
  622. package/dist/vega/p-03004a05.entry.js +1 -0
  623. package/dist/vega/p-0572c393.entry.js +1 -0
  624. package/dist/vega/p-0a3a285b.entry.js +1 -0
  625. package/dist/vega/{p-e5af5a4d.entry.js → p-0b4880bd.entry.js} +1 -1
  626. package/dist/vega/p-0d4cb1c7.entry.js +1 -0
  627. package/dist/vega/{p-920719ad.js → p-0e679d8c.js} +1 -1
  628. package/dist/vega/p-100b44c3.entry.js +1 -0
  629. package/dist/vega/p-168bb296.entry.js +1 -0
  630. package/dist/vega/{p-e77a83e4.js → p-18e8d9b7.js} +1 -1
  631. package/dist/vega/p-1a011d47.entry.js +1 -0
  632. package/dist/vega/p-1a3236e7.entry.js +1 -0
  633. package/dist/vega/{p-c9b6b5a9.js → p-1a51bf6f.js} +1 -1
  634. package/dist/vega/{p-ad2055f4.entry.js → p-1deedff2.entry.js} +1 -1
  635. package/dist/vega/p-1f3cd061.entry.js +1 -0
  636. package/dist/vega/p-1fa0c7da.entry.js +1 -0
  637. package/dist/vega/p-22056609.entry.js +1 -0
  638. package/dist/vega/p-242fbcad.entry.js +1 -0
  639. package/dist/vega/p-2a10e2e5.js +1 -0
  640. package/dist/vega/p-2b142818.entry.js +1 -0
  641. package/dist/vega/p-2bb5a232.js +1 -0
  642. package/dist/vega/{p-e9b86dac.entry.js → p-2c1a85dd.entry.js} +1 -1
  643. package/dist/vega/p-2d69632d.js +1 -0
  644. package/dist/vega/p-31ac7386.js +1 -0
  645. package/dist/vega/p-33f9ad94.entry.js +1 -0
  646. package/dist/vega/p-34bcf4ed.entry.js +1 -0
  647. package/dist/vega/{p-4897bedd.entry.js → p-358b4a06.entry.js} +1 -1
  648. package/dist/vega/p-36a09524.entry.js +1 -0
  649. package/dist/vega/p-3afc025e.entry.js +1 -0
  650. package/dist/vega/p-3c05abd9.entry.js +1 -0
  651. package/dist/vega/p-3ce2b05c.entry.js +1 -0
  652. package/dist/vega/{p-ea04a387.entry.js → p-3f3c771a.entry.js} +1 -1
  653. package/dist/vega/{p-1f83cebf.js → p-415ffa35.js} +1 -1
  654. package/dist/vega/p-43ff48c0.entry.js +1 -0
  655. package/dist/vega/{p-d849e0f5.js → p-4415ad28.js} +1 -1
  656. package/dist/vega/{p-0575d22e.js → p-464559e3.js} +1 -1
  657. package/dist/vega/p-4742feef.entry.js +1 -0
  658. package/dist/vega/p-49845a91.js +1 -0
  659. package/dist/vega/p-4aa52ed2.entry.js +1 -0
  660. package/dist/vega/p-4aa94940.entry.js +1 -0
  661. package/dist/vega/p-4bee4202.entry.js +1 -0
  662. package/dist/vega/{p-e16b3adf.js → p-4bffdb28.js} +1 -1
  663. package/dist/vega/{p-a2aeb646.js → p-4ea30592.js} +1 -1
  664. package/dist/vega/p-50d074ed.entry.js +1 -0
  665. package/dist/vega/{p-0b38a01f.entry.js → p-51fcb07f.entry.js} +1 -1
  666. package/dist/vega/p-5485c387.entry.js +1 -0
  667. package/dist/vega/p-560d2f48.entry.js +1 -0
  668. package/dist/vega/p-5833f33b.entry.js +1 -0
  669. package/dist/vega/p-592296d7.entry.js +1 -0
  670. package/dist/vega/p-593e0f80.js +1 -0
  671. package/dist/vega/p-5a25014f.js +1 -0
  672. package/dist/vega/p-5cfce62d.entry.js +1 -0
  673. package/dist/vega/p-5eb7f382.js +1 -0
  674. package/dist/vega/p-5f377954.js +1 -1
  675. package/dist/vega/p-60f77f5f.entry.js +1 -0
  676. package/dist/vega/p-641cdb5c.entry.js +1 -0
  677. package/dist/vega/p-67745549.entry.js +1 -0
  678. package/dist/vega/{p-75f981ce.js → p-6b6f0fb4.js} +1 -1
  679. package/dist/vega/p-6d219c44.entry.js +1 -0
  680. package/dist/vega/p-70df91fb.entry.js +1 -0
  681. package/dist/vega/p-7425cedc.entry.js +1 -0
  682. package/dist/vega/p-781fd6e0.js +1 -0
  683. package/dist/vega/{p-5b71c85e.js → p-7c39ce96.js} +1 -1
  684. package/dist/vega/p-7d7aaff9.entry.js +1 -0
  685. package/dist/vega/{p-4dd6554e.entry.js → p-7f46cc1e.entry.js} +1 -1
  686. package/dist/vega/{p-badad9ed.js → p-81b044b9.js} +1 -1
  687. package/dist/vega/p-857069a5.entry.js +1 -0
  688. package/dist/vega/p-8ac2d165.js +1 -0
  689. package/dist/vega/p-8b5d3a52.js +1 -0
  690. package/dist/vega/{p-fff13ed1.entry.js → p-8b891f36.entry.js} +1 -1
  691. package/dist/vega/p-8e34b266.js +1 -0
  692. package/dist/vega/{p-dd11f735.js → p-9339c6c4.js} +1 -1
  693. package/dist/vega/p-9441f2ba.entry.js +1 -0
  694. package/dist/vega/p-95528b47.js +1 -0
  695. package/dist/vega/p-9fb877c1.entry.js +1 -0
  696. package/dist/vega/{p-6f8be8ea.js → p-a0b66c25.js} +1 -1
  697. package/dist/vega/p-a46e977b.entry.js +1 -0
  698. package/dist/vega/{p-d0e31633.js → p-a786259a.js} +1 -1
  699. package/dist/vega/p-a8792e3d.js +1 -0
  700. package/dist/vega/{p-60851f9d.js → p-aa1174dc.js} +1 -1
  701. package/dist/vega/p-ab834f06.js +1 -0
  702. package/dist/vega/p-ac82b9f9.entry.js +1 -0
  703. package/dist/vega/p-b1773281.entry.js +1 -0
  704. package/dist/vega/p-b201f379.js +1 -0
  705. package/dist/vega/p-b54dc37c.entry.js +1 -0
  706. package/dist/vega/p-b597393b.entry.js +1 -0
  707. package/dist/vega/p-b5f18f4b.entry.js +1 -0
  708. package/dist/vega/p-b7f3221f.js +1 -0
  709. package/dist/vega/p-be1a210b.js +1 -0
  710. package/dist/vega/p-bf6fc19f.entry.js +1 -0
  711. package/dist/vega/{p-691ba1ae.js → p-bff57aa4.js} +1 -1
  712. package/dist/vega/p-c165232c.entry.js +1 -0
  713. package/dist/vega/p-c292ade4.entry.js +1 -0
  714. package/dist/vega/p-c2d2faa0.js +1 -0
  715. package/dist/vega/p-c3d2f316.js +1 -0
  716. package/dist/vega/{p-671afda4.entry.js → p-c72e08c6.entry.js} +1 -1
  717. package/dist/vega/p-c801c85d.js +1 -0
  718. package/dist/vega/p-c8feb644.entry.js +1 -0
  719. package/dist/vega/p-cc5eaa1b.js +1 -0
  720. package/dist/vega/p-cccd7648.entry.js +1 -0
  721. package/dist/vega/p-cfecc1cb.entry.js +1 -0
  722. package/dist/vega/p-d07f5d5a.entry.js +1 -0
  723. package/dist/vega/p-d1cfe972.entry.js +1 -0
  724. package/dist/vega/p-d2ee5711.entry.js +1 -0
  725. package/dist/vega/p-d64fab3d.js +1 -0
  726. package/dist/vega/p-d78f6ede.js +1 -0
  727. package/dist/vega/p-d8180e42.entry.js +1 -0
  728. package/dist/vega/p-daa60a59.entry.js +1 -0
  729. package/dist/vega/p-dad3ba5f.js +1 -0
  730. package/dist/vega/p-db5fa164.entry.js +1 -0
  731. package/dist/vega/p-de64f6e6.js +1 -0
  732. package/dist/vega/p-e1fbfd20.js +1 -0
  733. package/dist/vega/p-e4917e76.js +1 -0
  734. package/dist/vega/{p-521d1d07.js → p-e52890db.js} +1 -1
  735. package/dist/vega/{p-1298b126.js → p-e632475e.js} +1 -1
  736. package/dist/vega/p-e6adf829.js +1 -0
  737. package/dist/vega/p-e6cf2ace.entry.js +1 -0
  738. package/dist/vega/p-e7fbef97.js +1 -0
  739. package/dist/vega/{p-77edf50c.js → p-e827d56d.js} +1 -1
  740. package/dist/vega/p-e8775a56.entry.js +1 -0
  741. package/dist/vega/p-f0e828d8.js +1 -0
  742. package/dist/vega/p-f2b0b58a.js +1 -0
  743. package/dist/vega/p-f3e6483c.js +1 -0
  744. package/dist/vega/p-f428086c.entry.js +1 -0
  745. package/dist/vega/p-fc9ac6e9.entry.js +1 -0
  746. package/dist/vega/p-ffd48e37.entry.js +1 -0
  747. package/dist/vega/vega.esm.js +1 -1
  748. package/package.json +3 -9
  749. package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
  750. package/dist/cjs/language-extension-8c4a56ff.js +0 -210
  751. package/dist/cjs/legend-input-processor-27c65353.js +0 -4759
  752. package/dist/cjs/sanitize-fb222510.js +0 -131
  753. package/dist/cjs/wait-for-vega-handler-5469ff80.js +0 -63
  754. package/dist/cjs/y-axis-input-processor-9fbfd5e7.js +0 -2302
  755. package/dist/collection/utils/sanitize.js +0 -126
  756. package/dist/collection/utils/test/sanitize.test.js +0 -65
  757. package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
  758. package/dist/esm/dom-node-subject-observer-factory-064ee2b2.js +0 -250
  759. package/dist/esm/language-extension-29bf8acd.js +0 -207
  760. package/dist/esm/legend-input-processor-5ecae3a7.js +0 -4742
  761. package/dist/esm/sanitize-fd0cb40d.js +0 -129
  762. package/dist/esm/wait-for-vega-handler-c2c07ac3.js +0 -61
  763. package/dist/esm/y-axis-input-processor-bc54314a.js +0 -2290
  764. package/dist/types/utils/sanitize.d.ts +0 -71
  765. package/dist/vega/p-011b94b1.entry.js +0 -1
  766. package/dist/vega/p-012753b5.entry.js +0 -1
  767. package/dist/vega/p-024331ce.entry.js +0 -1
  768. package/dist/vega/p-08a90cc6.entry.js +0 -1
  769. package/dist/vega/p-0bb3be0b.entry.js +0 -1
  770. package/dist/vega/p-0ede1fea.entry.js +0 -1
  771. package/dist/vega/p-10ac8b57.js +0 -1
  772. package/dist/vega/p-112455b1.js +0 -1
  773. package/dist/vega/p-17c55205.entry.js +0 -1
  774. package/dist/vega/p-1e0d8228.entry.js +0 -1
  775. package/dist/vega/p-3353b3d7.js +0 -1
  776. package/dist/vega/p-365b1b35.entry.js +0 -1
  777. package/dist/vega/p-3ae9ee3d.entry.js +0 -1
  778. package/dist/vega/p-3af92370.entry.js +0 -1
  779. package/dist/vega/p-3bf66be2.js +0 -1
  780. package/dist/vega/p-3c5a28e4.entry.js +0 -1
  781. package/dist/vega/p-3e5f362f.js +0 -1
  782. package/dist/vega/p-430be941.js +0 -1
  783. package/dist/vega/p-43f585f7.entry.js +0 -1
  784. package/dist/vega/p-45296fd4.entry.js +0 -1
  785. package/dist/vega/p-46b077d9.js +0 -1
  786. package/dist/vega/p-476a173a.js +0 -1
  787. package/dist/vega/p-491618a6.entry.js +0 -1
  788. package/dist/vega/p-4a537391.entry.js +0 -1
  789. package/dist/vega/p-4aa893ef.entry.js +0 -1
  790. package/dist/vega/p-4c47e8bb.entry.js +0 -1
  791. package/dist/vega/p-4da75f2b.js +0 -1
  792. package/dist/vega/p-509eb52e.entry.js +0 -1
  793. package/dist/vega/p-5110ba73.entry.js +0 -1
  794. package/dist/vega/p-556f9a21.entry.js +0 -1
  795. package/dist/vega/p-55b54ba0.entry.js +0 -1
  796. package/dist/vega/p-5910be31.entry.js +0 -1
  797. package/dist/vega/p-5d676a94.js +0 -1
  798. package/dist/vega/p-5ea2e43c.entry.js +0 -1
  799. package/dist/vega/p-5efc6fe1.entry.js +0 -1
  800. package/dist/vega/p-64cd1931.entry.js +0 -1
  801. package/dist/vega/p-67fcf6f2.entry.js +0 -9
  802. package/dist/vega/p-68df4288.js +0 -1
  803. package/dist/vega/p-6a2205a1.entry.js +0 -1
  804. package/dist/vega/p-6a4277df.entry.js +0 -1
  805. package/dist/vega/p-6e136980.js +0 -1
  806. package/dist/vega/p-6fa8e231.entry.js +0 -1
  807. package/dist/vega/p-7045e84c.entry.js +0 -1
  808. package/dist/vega/p-7288f8c4.js +0 -1
  809. package/dist/vega/p-749f96a4.js +0 -1
  810. package/dist/vega/p-7aaece55.entry.js +0 -1
  811. package/dist/vega/p-7ec6a104.entry.js +0 -1
  812. package/dist/vega/p-81134e9e.entry.js +0 -1
  813. package/dist/vega/p-89d685a8.js +0 -1
  814. package/dist/vega/p-8c0eb12f.entry.js +0 -1
  815. package/dist/vega/p-8c9ea6f4.js +0 -1
  816. package/dist/vega/p-8d0ca805.js +0 -1
  817. package/dist/vega/p-8d701832.entry.js +0 -1
  818. package/dist/vega/p-8e42a14c.entry.js +0 -1
  819. package/dist/vega/p-8ed0faa2.entry.js +0 -1
  820. package/dist/vega/p-94394df7.entry.js +0 -1
  821. package/dist/vega/p-99aa554b.entry.js +0 -1
  822. package/dist/vega/p-9a2446f1.entry.js +0 -1
  823. package/dist/vega/p-9fd503e9.entry.js +0 -1
  824. package/dist/vega/p-a4670e23.js +0 -1
  825. package/dist/vega/p-a475d525.entry.js +0 -1
  826. package/dist/vega/p-a530797f.entry.js +0 -1
  827. package/dist/vega/p-a85ad369.entry.js +0 -1
  828. package/dist/vega/p-ac5e9955.entry.js +0 -1
  829. package/dist/vega/p-aedf7146.js +0 -1
  830. package/dist/vega/p-b1f869fb.js +0 -1
  831. package/dist/vega/p-b4ea3fad.js +0 -1
  832. package/dist/vega/p-bb4a558d.entry.js +0 -1
  833. package/dist/vega/p-bb8339ed.entry.js +0 -1
  834. package/dist/vega/p-be23bef2.js +0 -1
  835. package/dist/vega/p-be930e85.entry.js +0 -1
  836. package/dist/vega/p-bf2bd6d0.entry.js +0 -1
  837. package/dist/vega/p-c2488ed6.js +0 -1
  838. package/dist/vega/p-c379a5a5.entry.js +0 -1
  839. package/dist/vega/p-c616c592.js +0 -1
  840. package/dist/vega/p-ca3472c1.entry.js +0 -1
  841. package/dist/vega/p-cc43bffb.js +0 -1
  842. package/dist/vega/p-cf5b80f9.entry.js +0 -1
  843. package/dist/vega/p-db60a38e.entry.js +0 -1
  844. package/dist/vega/p-db8cdba6.js +0 -1
  845. package/dist/vega/p-e93545fd.js +0 -1
  846. package/dist/vega/p-e9c4fd24.entry.js +0 -1
  847. package/dist/vega/p-eb60cfe1.entry.js +0 -1
  848. package/dist/vega/p-ec192283.entry.js +0 -1
  849. package/dist/vega/p-ef9cbad1.js +0 -1
  850. package/dist/vega/p-f2a3a1ec.entry.js +0 -1
  851. package/dist/vega/p-f2cdd212.entry.js +0 -1
  852. package/dist/vega/p-f3c3ff26.entry.js +0 -1
  853. package/dist/vega/p-f4c05b4a.entry.js +0 -1
  854. package/dist/vega/p-f52a0155.entry.js +0 -1
  855. package/dist/vega/p-f69f84a7.js +0 -1
  856. package/dist/vega/p-f8641214.entry.js +0 -1
  857. package/dist/vega/p-f89443aa.entry.js +0 -1
  858. package/dist/vega/p-f8f7cf48.entry.js +0 -1
  859. package/dist/vega/p-fe12eff6.js +0 -1
  860. /package/dist/{types/utils/test/sanitize.test.d.ts → collection/polyfill/prism/types.js} +0 -0
  861. /package/dist/vega/{p-d9671d27.js → p-6c170474.js} +0 -0
@@ -1 +1 @@
1
- import{i as t,z as s,s as i}from"./p-6f8be8ea.js";import{i as h}from"./p-d9671d27.js";class e{constructor(t,s,i=0,h=0,e,n,r){this._startOffset=0,this._endOffset=0,this._startContainer=t,this._endContainer=s,this._startOffset=i,this._endOffset=h,this._startNode=e,this._endNode=n,r&&(this._oldNativeRange=r)}get startContainer(){return this._startContainer}get endContainer(){return this._endContainer}get startNode(){return this._startNode}get endNode(){return this._endNode}get startOffset(){return this._startOffset}get endOffset(){return this._endOffset}updateRTERange(s,i){const{startOffset:h,endOffset:n}=s;this._startOffset=h,this._endOffset=n;const r=s.startNode,o=s.endNode;if(r instanceof t){this._startNode=r,this._endNode=o;const t=this._startNode.getRangeContainer(),s=this._startNode===this._endNode?t:this._endNode.getRangeContainer();t&&(this._startContainer=t,this._endContainer=s)}else this._startContainer=r,this._endContainer=o,this._startNode=this.getRTENodeByElement(this._startContainer),this._endNode=this._startContainer===this._endContainer?this._startNode:this.getRTENodeByElement(this._endContainer),i&&(this._oldNativeRange=i);return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}clone(){return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}toNativeRange(){let t=null;if(this._startNode){const s=this._startNode.getRangeContainer(),i=this._startNode===this._endNode?s:this._endNode.getRangeContainer();if(s&&i)return t=new Range,t.setStart(s,this._startOffset),t.setEnd(i,this._endOffset),this._startContainer=s,this._endContainer=i,this._oldNativeRange=t,t}if(!t&&this._oldNativeRange)return this._oldNativeRange}getRTENodeByElement(t){if(t){const e=t.nodeType===Node.TEXT_NODE?t.parentElement:h(t)&&s.isDecoratorNodeContainerElement(t)?s.getDecoratorNodeElement(t):t;return i.getEntityByDOM(e)}}}export{e as R}
1
+ import{h as t,z as s,s as i}from"./p-a0b66c25.js";import{i as h}from"./p-6c170474.js";class e{constructor(t,s,i=0,h=0,e,n,r){this._startOffset=0,this._endOffset=0,this._startContainer=t,this._endContainer=s,this._startOffset=i,this._endOffset=h,this._startNode=e,this._endNode=n,r&&(this._oldNativeRange=r)}get startContainer(){return this._startContainer}get endContainer(){return this._endContainer}get startNode(){return this._startNode}get endNode(){return this._endNode}get startOffset(){return this._startOffset}get endOffset(){return this._endOffset}updateRTERange(s,i){const{startOffset:h,endOffset:n}=s;this._startOffset=h,this._endOffset=n;const r=s.startNode,o=s.endNode;if(r instanceof t){this._startNode=r,this._endNode=o;const t=this._startNode.getRangeContainer(),s=this._startNode===this._endNode?t:this._endNode.getRangeContainer();t&&(this._startContainer=t,this._endContainer=s)}else this._startContainer=r,this._endContainer=o,this._startNode=this.getRTENodeByElement(this._startContainer),this._endNode=this._startContainer===this._endContainer?this._startNode:this.getRTENodeByElement(this._endContainer),i&&(this._oldNativeRange=i);return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}clone(){return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}toNativeRange(){let t=null;if(this._startNode){const s=this._startNode.getRangeContainer(),i=this._startNode===this._endNode?s:this._endNode.getRangeContainer();if(s&&i)return t=new Range,t.setStart(s,this._startOffset),t.setEnd(i,this._endOffset),this._startContainer=s,this._endContainer=i,this._oldNativeRange=t,t}if(!t&&this._oldNativeRange)return this._oldNativeRange}getRTENodeByElement(t){if(t){const e=t.nodeType===Node.TEXT_NODE?t.parentElement:h(t)&&s.isDecoratorNodeContainerElement(t)?s.getDecoratorNodeElement(t):t;return i.getEntityByDOM(e)}}}export{e as R}
@@ -0,0 +1 @@
1
+ import"./p-6e1ab235.js";import{I as e,c as a}from"./p-593e0f80.js";const c=[{payloadKey:"IS_REGISTER_METHOD_CALLED",payloadDescription:"Indicate if the method register of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"register"===a,payloadValue:()=>!0},{payloadKey:"IS_GETICON_METHOD_CALLED",payloadDescription:"Indicate if the method getIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"getIcon"===a,payloadValue:()=>!0},{payloadKey:"IS_HASICON_METHOD_CALLED",payloadDescription:"Indicate if the method hasIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"hasIcon"===a,payloadValue:()=>!0}];class t{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=a(t,["register","getIcon","hasIcon"],c),this.icons=new Map}register(e){for(const a in e)this.icons.has(a)||this.icons.set(a,e[a])}getIcon(e){return this.icons.get(e)}hasIcon(e){return this.icons.has(e)}}!function(e,a,c,t){var o,n=arguments.length,i=n<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,c):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,a,c,t);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(i=(n<3?o(i):n>3?o(a,c,i):o(a,c))||i);n>3&&i&&Object.defineProperty(a,c,i)}([e()],t.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const o=new t;export{o as V}
@@ -0,0 +1 @@
1
+ import{h as e,F as t,r as i,c as r,H as o,g as n}from"./p-6b2342e0.js";import{C as s}from"./p-75b58efe.js";import{T as a,a as d}from"./p-4ea30592.js";import{s as l}from"./p-519a7d55.js";import{c as p,V as c,M as h,L as u,I as m}from"./p-6e1ab235.js";import{V as v,I as g}from"./p-4415ad28.js";import{F as f}from"./p-a8792e3d.js";import{D as b}from"./p-31ac7386.js";import{f as w,E as x,F as y,a as k}from"./p-d64fab3d.js";import{g as R,D as j}from"./p-6c170474.js";import{c as D}from"./p-86194314.js";import{R as I,a5 as S,i as C,a6 as T}from"./p-415ffa35.js";import{i as V}from"./p-d27ae9ff.js";import{F as O}from"./p-a528714c.js";import{C as A}from"./p-2d0d575f.js";import{E as F}from"./p-cc5eaa1b.js";import{C as E}from"./p-8187878e.js";import{K as M}from"./p-0e679d8c.js";import{I as $}from"./p-abd7aeaa.js";import{C as P}from"./p-1a51bf6f.js";import{c as z}from"./p-02c9796a.js";import{T as N}from"./p-6b6f0fb4.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-7c39ce96.js";import"./p-dad3ba5f.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-021d4ae4.js";import"./p-ab834f06.js";import"./p-40f39194.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-5eb7f382.js";import"./p-d884c644.js";import"./p-262ec334.js";import"./p-781fd6e0.js";import"./p-d78f6ede.js";import"./p-0c667d6a.js";import"./p-18e8d9b7.js";import"./p-5a25014f.js";import"./p-95528b47.js";import"./p-b7f3221f.js";import"./p-5f377954.js";var _=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class L extends c{constructor(){super(...arguments),this.onTimePickerFocus=async()=>{"single"===this.mode?await this.singleInputRenderer.getInputRef().doFocus():await this.rangeInputRenderer.getStartInputRef().doFocus()}}render(){return e("vega-field-label",{onClick:this.onTimePickerFocus,"is-field-required":this.required,disabled:this.disabled,label:this.label})}}_([p()],L.prototype,"label",void 0),_([p()],L.prototype,"mode",void 0),_([p()],L.prototype,"required",void 0),_([p()],L.prototype,"disabled",void 0),_([p()],L.prototype,"singleInputRenderer",void 0),_([p()],L.prototype,"rangeInputRenderer",void 0);var B=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class W extends c{constructor(){super(...arguments),this.onChildVegaInputChange=e=>{this.valueController.setValue(e.detail)}}getInputRef(){return this.timeInputRef}updateInputValue(e){this.timeInputRef.value=e}render(){return e("div",{class:"time-picker-input"},e("vega-input",{"prefix-icon":"clock-face",placeholder:this.getPlaceholder(),disabled:this.disabled,size:this.size,value:"string"==typeof this.value?this.value:"",ref:e=>{this.timeInputRef=e,this.handleVegaInputEvent(e)}}))}handleVegaInputEvent(e){b.addUniqueObserverToNode(e,w,(e=>{this.onChildVegaInputChange(e)})),b.addUniqueObserverToNode(e,x,(()=>{this.singleDropdownController.show()})),b.addUniqueObserverToNode(e,y,(e=>{this.valueController.checkValueAfterInputBlur(e)}))}getPlaceholder(){return this.placeholder&&"string"==typeof this.placeholder?this.placeholder:this.translationSlimmer.t("Select Time")}}B([p()],W.prototype,"placeholder",void 0),B([p()],W.prototype,"size",void 0),B([p()],W.prototype,"disabled",void 0),B([p()],W.prototype,"value",void 0),B([p()],W.prototype,"valueController",void 0),B([p()],W.prototype,"singleDropdownController",void 0),B([p()],W.prototype,"translationSlimmer",void 0);var K=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class U extends c{constructor(){super(...arguments),this.isMobileDevice=R()===j.MOBILE,this.isTabletDevice=R()===j.TABLET,this.renderDropdownByTimeSource=()=>e(t,null,this.renderDropdownColumn(this.dropdownSource.hours,"hour"),this.renderDropdownColumn(this.dropdownSource.minutes,"minute"),"12-hour"===this.timeFormat&&this.renderDropdownColumn(["AM","PM"],"amPm")),this.onItemClick=(e,t)=>{this.dropdownSelectedItemsController.setSelectedItems(Object.assign(Object.assign({},this.selectedTimeValue),{[t]:e}))},this.onNowButtonClick=()=>{this.dropdownSelectedItemsController.setSelectedItemsToCurrentTime(),this.singleDropdownController.hide()},this.onApplyButtonClick=()=>{this.valueController.updateValueBySelectedItems(),this.singleDropdownController.hide()}}componentDidRenderCallback(){this.dropdownContainer&&this.dropdownContainer.parentElement===this.dropdown&&this.dropdown.shadowRoot.append(this.dropdownContainer)}getDropdownRef(){return this.dropdown}getSelectedItem(){const e=[],t=this.dropdown.shadowRoot;return t.querySelectorAll(".vega-dropdown-item-selected").forEach((t=>{e.push(t)})),0===e.length&&t.querySelectorAll(".vega-time-picker-dropdown-panel li:first-child").forEach((t=>{e.push(t)})),e}render(){return e("vega-time-picker-dropdown",{class:{"vega-time-picker-dropdown":!0,mobile:this.isMobileDevice,tablet:this.isTabletDevice},ref:e=>this.dropdown=e},e("div",{class:"vega-time-picker-dropdown-container",ref:e=>this.dropdownContainer=e},e("div",{class:"vega-time-picker-dropdown-panel"},this.renderDropdownByTimeSource()),e("div",{class:"horizontal-divider v-my-size-12"}),this.renderDropdownFoot()))}renderDropdownColumn(t,i){return e("ul",{role:"menu","aria-label":"dropdown-ul",class:{"vega-time-picker-panel-column":!0}},t.map(((e,t)=>this.renderDropdownItem(e,i,t))))}renderDropdownItem(t,i,r){return e("li",{key:t,role:"menuitem","aria-label":t,class:{"vega-dropdown-item-selected":this.isItemSelected(t,i)},tabIndex:0===r?0:-1,"data-index":r,onClick:()=>this.onItemClick(t,i),onKeyDown:D()},e("span",{"data-index":r,innerHTML:t}))}renderDropdownFoot(){return e("div",{class:"vega-time-picker-dropdown-footer"},e("div",{class:"vega-time-picker-now"},e("vega-button-link",{size:"small",label:"Now",ref:e=>{b.addUniqueObserverToNode(e,k,(()=>{this.onNowButtonClick()}))}})),e("div",null,e("vega-button-link",{size:"small",label:"Apply",ref:e=>{b.addUniqueObserverToNode(e,k,(()=>{this.onApplyButtonClick()}))}})))}isItemSelected(e,t){return this.selectedTimeValue[`${t}`]===e}}K([p()],U.prototype,"timeFormat",void 0),K([p()],U.prototype,"dropdownSource",void 0),K([p()],U.prototype,"selectedTimeValue",void 0),K([p()],U.prototype,"valueController",void 0),K([p()],U.prototype,"dropdownSelectedItemsController",void 0),K([p()],U.prototype,"singleDropdownController",void 0),K([h("componentDidRender")],U.prototype,"componentDidRenderCallback",null);var q=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class G extends c{emitChangeEventOrClearTimePicker(e,t){"range"===this.mode&&V(e,t)||(this.valueGuard(e)?(this.changeEventEmitter.emit(e),A.notify(O,{host:this.host,detail:e})):"single"===this.mode?this.clearTimePicker():this.clearRangeTimePicker())}updateValueIfSelectedItemsChange(){"single"===this.mode&&Object.keys(this.selectedTimeValue).length>0&&this.updateValueBySelectedItems()}resetCurrentValueIfModeChange(){this.resetValue()}checkTheDefaultValueForRangeMode(){"range"===this.mode&&this.value&&!this.valueGuard(this.value)&&this.clearRangeTimePicker()}checkValueAfterInputBlur(e){const t=e.host;this.valueGuard(t.value)?this.increments>1&&this.value&&t.value&&t.value!==this.value&&(t.value=this.value):this.clearTimePicker()}setValue(e){this.valueGuard(e)&&(this.value=e)}resetValue(){this.value="single"===this.mode?"":["",""]}updateValueBySelectedItems(){const e=this.selectedTimeValue.hour?this.selectedTimeValue.hour:"12-hour"===this.timeFormat?"12":"00",t=this.selectedTimeValue.minute?this.selectedTimeValue.minute:"00";this.setValue("12-hour"===this.timeFormat?`${e}:${t} ${this.selectedTimeValue.amPm?this.selectedTimeValue.amPm:"AM"}`:`${e}:${t}`)}updateValueByRangeType(e,t){this.setValue("start"===t?[e,Array.isArray(this.value)&&this.value[1]&&I(this.value[1],this.timeFormat)?this.value[1]:""]:[Array.isArray(this.value)&&this.value[0]&&I(this.value[0],this.timeFormat)?this.value[0]:"",e])}clearRangeTimePicker(){this.value=["",""],this.rangeInputRenderer.getStartInputRef().value="",this.rangeInputRenderer.getEndInputRef().value=""}clearTimePicker(){this.value="",this.singleInputRenderer.getInputRef().value="",this.dropdownSelectedItemsController.setSelectedItems({})}valueGuard(e){let t;switch(this.mode){case"single":t=e&&"string"==typeof e&&I(e,this.timeFormat)||""===e;break;case"range":t=Array.isArray(e)&&2===e.length&&e.every((e=>I(e,this.timeFormat)||""===e))}return t||u.warn(`Invalid time picker value ${e} for ${this.mode} mode`),t}}q([p({writable:!0})],G.prototype,"value",void 0),q([p()],G.prototype,"mode",void 0),q([p()],G.prototype,"timeFormat",void 0),q([p()],G.prototype,"selectedTimeValue",void 0),q([p()],G.prototype,"increments",void 0),q([p()],G.prototype,"changeEventEmitter",void 0),q([p()],G.prototype,"singleInputRenderer",void 0),q([p()],G.prototype,"rangeInputRenderer",void 0),q([p()],G.prototype,"dropdownSelectedItemsController",void 0),q([p()],G.prototype,"host",void 0),q([h("watchValue")],G.prototype,"emitChangeEventOrClearTimePicker",null),q([h("watchSelectedTimeValue")],G.prototype,"updateValueIfSelectedItemsChange",null),q([h("watchMode")],G.prototype,"resetCurrentValueIfModeChange",null),q([h("componentDidLoad")],G.prototype,"checkTheDefaultValueForRangeMode",null);var H=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class Y extends F{constructor(){super((()=>({target:this.singleInputRenderer.getInputRef(),appendableElement:this.singleDropdownRenderer.getDropdownRef(),positionRelativeTo:this.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"]})),(()=>new E))}initValueAndDropdownSource(){this.valueController.resetValue(),this.initDropdownSource()}initDropdownSourceAndInputMaskConfig(){this.valueController.resetValue(),this.initDropdownSource(),this.inputMaskController.initInputMask()}initDropdownSourceAndSelectedItems(){this.initDropdownSource(),"single"===this.mode&&this.dropdownSelectedItemsController.initSelectedItemsByString(this.value)}hideDropdownWhenDisabled(){"single"===this.mode&&this.hide()}initDropdownSource(){this.dropdownSource={hours:this.getSourceHoursStrings(),minutes:this.getSourceMinutesStrings()}}getSourceMinutesStrings(){(this.increments<1||this.increments>59||isNaN(Number(this.increments)))&&(u.warn("The increments should be between 1 and 59."),this.increments=1);const e=[];for(let t=0;t<60;t+=this.increments)e.push(S(t));return e}getSourceHoursStrings(){const e=[];if("12-hour"===this.timeFormat){e.push("12");for(let t=1;t<12;t++)e.push(S(t))}else for(let t=0;t<24;t++)e.push(S(t));return e}}H([p({writable:!0})],Y.prototype,"isDropdownShow",void 0),H([p({writable:!0})],Y.prototype,"dropdownSource",void 0),H([p()],Y.prototype,"mode",void 0),H([p({writable:!0})],Y.prototype,"increments",void 0),H([p()],Y.prototype,"timeFormat",void 0),H([p()],Y.prototype,"value",void 0),H([p()],Y.prototype,"positionRelativeTo",void 0),H([p()],Y.prototype,"selectedTimeValue",void 0),H([p()],Y.prototype,"singleInputRenderer",void 0),H([p()],Y.prototype,"rangeInputRenderer",void 0),H([p()],Y.prototype,"singleDropdownRenderer",void 0),H([p()],Y.prototype,"valueController",void 0),H([p()],Y.prototype,"dropdownSelectedItemsController",void 0),H([p()],Y.prototype,"inputMaskController",void 0),H([h("watchIncrements")],Y.prototype,"initValueAndDropdownSource",null),H([h("watchTimeFormat")],Y.prototype,"initDropdownSourceAndInputMaskConfig",null),H([h("componentWillLoad")],Y.prototype,"initDropdownSourceAndSelectedItems",null),H([h("watchDisabled")],Y.prototype,"hideDropdownWhenDisabled",null);var X=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class J extends c{constructor(){super(...arguments),this.DROPDOWN_ITEM_DEFAULT_HEIGHT=32,this.initSelectedItemsByString=e=>{this.selectedTimeValue=""!==e&&I(e,this.timeFormat)?this.getClosetTimeValue(e):{}},this.scrollToSelectedElement=e=>{const t=e.closest("ul"),i=Number(e.dataset.index)*this.DROPDOWN_ITEM_DEFAULT_HEIGHT;t.scrollTop=i},this.getClosestMinuteForCurrent=e=>{const t=this.dropdownSource.minutes.filter((t=>Number(t)<=Number(e)));return t[t.length-1]},this.getCurrentTime=e=>{const t=new Date(Date.now()).getHours(),i=S(new Date(Date.now()).getMinutes());return"12-hour"===e?{hour:S(t>12?t-12:0===t?12:t),minute:i,amPm:t>=12?"PM":"AM"}:{hour:S(t),minute:i}},this.selectedElementScrollTop=()=>{("single"===this.mode?this.singleDropdownRenderer.getSelectedItem():this.rangeDropdownRenderer.getSelectedItem()).forEach((e=>{this.scrollToSelectedElement(e)}))}}syncSelectedItemsByValueChange(e){"single"===this.mode&&(!I(e,this.timeFormat)&&e||this.initSelectedItemsByString(e))}syncSelectedItemsPositionWhenDropdownShow(e){e&&(this.disabled||this.selectedElementScrollTop())}syncSelectedItemsPosition(){("single"===this.mode&&Object.keys(this.selectedTimeValue).length>0||"range"===this.mode&&Array.isArray(this.value)&&(this.value[0]||this.value[1]))&&this.selectedElementScrollTop()}setSelectedItems(e){this.selectedTimeValue=e}setSelectedItemsToCurrentTime(){this.selectedTimeValue=this.getCurrentTime(this.timeFormat)}getClosetTimeValue(e){const t=e.replace(" ",":").split(":");return{hour:t[0],minute:this.increments>1?this.getClosestMinuteForCurrent(t[1]):t[1],amPm:"12-hour"===this.timeFormat?t[2]:void 0}}}X([p({writable:!0})],J.prototype,"selectedTimeValue",void 0),X([p()],J.prototype,"mode",void 0),X([p()],J.prototype,"value",void 0),X([p()],J.prototype,"timeFormat",void 0),X([p()],J.prototype,"dropdownSource",void 0),X([p()],J.prototype,"increments",void 0),X([p()],J.prototype,"disabled",void 0),X([p()],J.prototype,"singleDropdownRenderer",void 0),X([p()],J.prototype,"rangeDropdownRenderer",void 0),X([h("watchValue")],J.prototype,"syncSelectedItemsByValueChange",null),X([h("watchIsDropdownShow")],J.prototype,"syncSelectedItemsPositionWhenDropdownShow",null),X([h("componentDidRender")],J.prototype,"syncSelectedItemsPosition",null);var Q=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class Z extends M{constructor(){super((e=>{const t=e.singleDropdownRenderer.getDropdownRef(),i=e.rangeDropdownRenderer.getStartDropdownRef(),r=e.rangeDropdownRenderer.getEndDropdownRef();return[{keyCode:"Enter",activeElementInScope:[e.host],callback:e.componentBlurAndHideDropdown},{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[t,i,r],callback:t=>{e.switchHourOrMinuteFocus(t)}},{keyCode:"Escape",activeElementInScope:[e.host,t,i,r],callback:e.componentBlurAndHideDropdown}]})),this.componentBlurAndHideDropdown=async()=>{"single"===this.mode?(await this.singleInputRenderer.getInputRef().doBlur(),this.singleDropdownController.hide()):(await this.rangeInputRenderer.getStartInputRef().doBlur(),await this.rangeInputRenderer.getEndInputRef().doBlur(),this.startDropdownController.hide(),this.endDropdownController.hide())}}switchHourOrMinuteFocus(e){const t=e.key,i=e.composedPath()[0];let r=null;"LI"===i.tagName&&"menuitem"===i.getAttribute("role")&&(r="ArrowDown"===t?i.nextElementSibling:i.previousElementSibling),r&&r.focus()}}Q([p()],Z.prototype,"host",void 0),Q([p()],Z.prototype,"mode",void 0),Q([p()],Z.prototype,"singleInputRenderer",void 0),Q([p()],Z.prototype,"singleDropdownRenderer",void 0),Q([p()],Z.prototype,"rangeDropdownRenderer",void 0),Q([p()],Z.prototype,"rangeInputRenderer",void 0),Q([p()],Z.prototype,"singleDropdownController",void 0),Q([p()],Z.prototype,"startDropdownController",void 0),Q([p()],Z.prototype,"endDropdownController",void 0);var ee=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class te extends c{constructor(){super(...arguments),this.isMobileDevice=R()===j.MOBILE,this.onInputChange=e=>{e.host.parentElement.classList.contains("time-picker-input-start")?this.valueController.updateValueByRangeType(e.detail,"start"):this.valueController.updateValueByRangeType(e.detail,"end")},this.timePickerInputFocus=e=>{const t=e.host,i=Array.isArray(this.value)?this.value:["",""];t.parentElement.classList.contains("time-picker-input-start")?this.startDropdownController.showAndScrollPosition(i[0]):this.endDropdownController.showAndScrollPosition(i[1]?i[1]:i[0])},this.timePickerInputBlur=e=>{const t=e.host,i=t.parentElement.classList.contains("time-picker-input-start")?"start":"end";if(I(t.value,this.timeFormat)){if(t.value&&this.increments>1){const{hour:e,minute:i,amPm:r}=this.dropdownSelectedItemsController.getClosetTimeValue(t.value);t.value=`${e}:${i}${r?" "+r:""}`}}else t.value="",this.valueController.updateValueByRangeType("",i)}}getStartInputRef(){return this.startTimeInputRef}getEndInputRef(){return this.endTimeInputRef}render(){const i=Array.isArray(this.value)?this.value[0]:"",r=Array.isArray(this.value)?this.value[1]:"";return e(t,null,e("vega-flex",{class:"v-w-full",gap:"0","align-items":"center",direction:this.isMobileDevice?"col":"row"},e("div",{class:"time-picker-input time-picker-input-start vega-flex-basis-0 vega-flex-grow"},e("vega-input",{"prefix-icon":"clock-face",placeholder:this.getPlaceholderBySourceType("start"),disabled:this.disabled,size:this.size,value:i,ref:e=>(this.handlerEvent(e),this.startTimeInputRef=e),"show-clear-icon":"false"})),e("span",{class:"range-input-divider v-min-w-min vega-flex-shrink-0"}),e("div",{class:"time-picker-input time-picker-input-end vega-flex-basis-0 vega-flex-grow"},e("vega-input",{placeholder:this.getPlaceholderBySourceType("end"),disabled:this.disabled,size:this.size,value:r,ref:e=>(this.handlerEvent(e),this.endTimeInputRef=e),"show-clear-icon":"false"}))),this.rangeClearButtonRenderer.render())}handlerEvent(e){b.addUniqueObserverToNode(e,y,(e=>{this.timePickerInputBlur(e)})),b.addUniqueObserverToNode(e,w,(e=>{this.onInputChange(e)})),b.addUniqueObserverToNode(e,x,(e=>{this.timePickerInputFocus(e)}))}getPlaceholderBySourceType(e){return"start"===e?Array.isArray(this.placeholder)&&this.placeholder[0]?this.placeholder[0]:this.translationSlimmer.t("Start Time"):Array.isArray(this.placeholder)&&this.placeholder[1]?this.placeholder[1]:this.translationSlimmer.t("End Time")}}ee([p()],te.prototype,"mode",void 0),ee([p()],te.prototype,"placeholder",void 0),ee([p()],te.prototype,"disabled",void 0),ee([p()],te.prototype,"size",void 0),ee([p()],te.prototype,"positionRelativeTo",void 0),ee([p()],te.prototype,"timeFormat",void 0),ee([p()],te.prototype,"increments",void 0),ee([p()],te.prototype,"value",void 0),ee([p()],te.prototype,"startDropdownController",void 0),ee([p()],te.prototype,"endDropdownController",void 0),ee([p()],te.prototype,"valueController",void 0),ee([p()],te.prototype,"rangeClearButtonRenderer",void 0),ee([p()],te.prototype,"rangeDropdownRenderer",void 0),ee([p()],te.prototype,"dropdownSelectedItemsController",void 0),ee([p()],te.prototype,"translationSlimmer",void 0);var ie=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class re extends c{constructor(){super(...arguments),this.isMobileDevice=R()===j.MOBILE,this.isTabletDevice=R()===j.TABLET,this.renderStartDropdown=()=>e("vega-time-picker-dropdown",{class:{"vega-time-picker-dropdown start-dropdown":!0,mobile:this.isMobileDevice,tablet:this.isTabletDevice},ref:e=>this.startDropdown=e},e("div",{class:"vega-time-picker-dropdown-container",ref:e=>this.startDropdownContainer=e},e("div",{class:"vega-time-picker-dropdown-panel"},this.renderDropdownList("start")))),this.renderEndDropdown=()=>e("vega-time-picker-dropdown",{class:{"vega-time-picker-dropdown end-dropdown":!0,mobile:this.isMobileDevice,tablet:this.isTabletDevice},ref:e=>this.endDropdown=e},e("div",{class:"vega-time-picker-dropdown-container",ref:e=>this.endDropdownContainer=e},e("div",{class:"vega-time-picker-dropdown-panel"},this.renderDropdownList("end")))),this.renderDropdownList=t=>{const i=this.getTimeArray();return e("ul",{role:"menu","aria-label":"dropdown-ul",class:{"vega-time-picker-panel-column":!0}},i.map(((e,i)=>this.renderDropdownItem(e,t,i))))}}componentDidRenderCallback(){this.startDropdownContainer&&this.startDropdownContainer.parentElement===this.startDropdown&&this.startDropdown.shadowRoot.append(this.startDropdownContainer),this.endDropdownContainer&&this.endDropdownContainer.parentElement===this.endDropdown&&this.endDropdown.shadowRoot.append(this.endDropdownContainer)}getStartDropdownRef(){return this.startDropdown}getEndDropdownRef(){return this.endDropdown}getSelectedItem(){const e=this.startDropdown.shadowRoot,t=this.endDropdown.shadowRoot;let i=[e.querySelector(".vega-dropdown-item-selected"),t.querySelector(".vega-dropdown-item-selected")].filter(C);return 0===i.length&&(i=[e.querySelector(".vega-time-picker-dropdown-panel li:first-child"),t.querySelector(".vega-time-picker-dropdown-panel li:first-child")].filter(C)),i}render(){return e(t,null,this.renderStartDropdown(),this.renderEndDropdown())}renderDropdownItem(t,i,r){return e("li",{key:t,role:"menuitem","aria-label":t,class:{"vega-dropdown-item-selected":this.isItemSelected(t,i)},tabIndex:0===r?0:-1,"data-index":r,onClick:()=>this.onItemClick(t,i),onKeyDown:D()},e("span",{"data-index":r,innerHTML:t}))}onItemClick(e,t){this.valueController.updateValueByRangeType(e,t),"start"===t?(this.startDropdownController.hide(),this.rangeInputRenderer.getEndInputRef().doFocus()):this.endDropdownController.hide()}isItemSelected(e,t){const i=this.value&&Array.isArray(this.value)?this.value:["",""];return"start"===t&&i[0]===e||"end"===t&&i[1]===e}getTimeArray(){const e=[],t=[],i=[],r=this.timeFormat,{hours:o,minutes:n}=this.dropdownSource;if(this.dropdownSource)for(let s=0;s<o.length;s++)for(let a=0;a<n.length;a++){const d=`${o[s]}:${n[a]}`;e.push(d),"12-hour"===r&&(i.push(d+" AM"),t.push(d+" PM"))}return"12-hour"===r?i.concat(t):e}}ie([p()],re.prototype,"timeFormat",void 0),ie([p()],re.prototype,"value",void 0),ie([p()],re.prototype,"dropdownSource",void 0),ie([p()],re.prototype,"valueController",void 0),ie([p()],re.prototype,"rangeInputRenderer",void 0),ie([p()],re.prototype,"startDropdownController",void 0),ie([p()],re.prototype,"endDropdownController",void 0),ie([h("componentDidRender")],re.prototype,"componentDidRenderCallback",null);var oe=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class ne extends c{constructor(){super(...arguments),this.onClickClearIcon=()=>{this.valueController.clearRangeTimePicker(),this.endDropdownController.hide(),this.rangeInputRenderer.getStartInputRef().doFocus()}}render(){return e("div",{class:{"vega-time-picker-range-clear-icon":!0,invisible:!this.isInvisible()},"aria-label":"clear input",role:"button",tabindex:this.disabled?-1:0,onClick:this.onClickClearIcon,onKeyDown:D()},e("vega-icon",{icon:"close",class:"v-min-w-min vega-flex-shrink-0"}))}isInvisible(){return!this.disabled&&Array.isArray(this.value)&&(Boolean(this.value[0])||Boolean(this.value[1]))}}oe([p()],ne.prototype,"disabled",void 0),oe([p()],ne.prototype,"value",void 0),oe([p()],ne.prototype,"valueController",void 0),oe([p()],ne.prototype,"endDropdownController",void 0),oe([p()],ne.prototype,"rangeInputRenderer",void 0);class se extends ${constructor(e){super(),this.config=e}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);const t=this.isStartTimeBeforeEndTime(e[0],e[1]);return{isValid:t,message:t?"":"The end time should be later than start time"}}isAcceptedInputType(e){return Array.isArray(e)&&2===e.length&&e.every((e=>I(e,this.config.timeFormat)))}isStartTimeBeforeEndTime(e,t){const i=new Date,r=`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`;return new Date(`${r}T${T(t)}`)>new Date(`${r}T${T(e)}`)}}var ae=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class de extends c{initInputMask(){const e={type:"custom",options:{mask:"12-hour"===this.timeFormat?"xx:xx xx":"xx:xx",slot:"x",accept:"12-hour"===this.timeFormat?/[0-9|A|P|M]/:/\d/}};"range"===this.mode?(this.rangeInputRenderer.getStartInputRef().maskConfig=e,this.rangeInputRenderer.getEndInputRef().maskConfig=e):this.singleInputRenderer.getInputRef().maskConfig=e}}ae([p()],de.prototype,"timeFormat",void 0),ae([p()],de.prototype,"mode",void 0),ae([p()],de.prototype,"singleInputRenderer",void 0),ae([p()],de.prototype,"rangeInputRenderer",void 0),ae([h("componentDidLoad")],de.prototype,"initInputMask",null);var le=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class pe extends F{constructor(e){super((()=>({target:"start"===e?this.rangeInputRenderer.getStartInputRef():this.rangeInputRenderer.getEndInputRef(),appendableElement:"start"===e?this.rangeDropdownRenderer.getStartDropdownRef():this.rangeDropdownRenderer.getEndDropdownRef(),positionRelativeTo:this.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],matchTargetWidth:!0})),(()=>new E),"isRangeDropdownShow"),this.isRangeDropdownShow=!1,this.rangeDropdownType="start",this.showAndScrollPosition=e=>{if(this.show(),e){const t=("start"===this.rangeDropdownType?this.rangeDropdownRenderer.getStartDropdownRef():this.rangeDropdownRenderer.getEndDropdownRef()).shadowRoot.querySelector(`[aria-label="${e}"]`);t&&this.dropdownSelectedItemsController.scrollToSelectedElement(t)}},this.rangeDropdownType=e}hideDropdownWhenDisabled(){"range"===this.mode&&this.isRangeDropdownShow&&this.hide()}}le([p()],pe.prototype,"positionRelativeTo",void 0),le([p()],pe.prototype,"mode",void 0),le([p()],pe.prototype,"rangeDropdownRenderer",void 0),le([p()],pe.prototype,"rangeInputRenderer",void 0),le([p()],pe.prototype,"dropdownSelectedItemsController",void 0),le([h("watchDisabled")],pe.prototype,"hideDropdownWhenDisabled",null);const ce=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the time picker during user input",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the time picker during user input",payloadValue:e=>!1===e.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the mode for selecting time in the time picker, `single` indicates the ability to select a single time.",payloadValue:e=>"single"===e.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the mode for selecting time in the time picker, `range` indicates the ability to select a time range",payloadValue:e=>"range"===e.mode}];var he=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};const ue=class{constructor(e){i(this,e),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new N,this.labelRenderer=new L,this.singleInputRenderer=new W,this.singleDropdownRenderer=new U,this.valueController=new G,this.singleDropdownController=new Y,this.dropdownSelectedItemsController=new J,this.keyboardController=new Z,this.formFieldController=new f({propertyRules:[{propertyName:"required",ruleFactory:(e,t,i)=>e?"range"===i?new a({timeFormat:t}):new d({timeFormat:t}):null,dependence:["timeFormat","mode"]},{propertyName:"timeFormat",ruleFactory:(e,t,i)=>e&&t?"range"===i?new a({timeFormat:e}):new d({timeFormat:e}):null,dependence:["required","mode"]},{propertyName:"mode",ruleFactory:(e,t)=>"range"===e?new se({timeFormat:t}):null,dependence:"timeFormat"}],validationRulesName:"validationRules",defaultValue:e=>"range"===e.mode?["",""]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>"single"===this.mode?[this.singleInputRenderer.getInputRef()]:[this.rangeInputRenderer.getStartInputRef(),this.rangeInputRenderer.getEndInputRef()]}),this.rangeInputRenderer=new te,this.rangeClearButtonRenderer=new ne,this.rangeDropdownRenderer=new re,this.startDropdownController=new pe("start"),this.endDropdownController=new pe("end"),this.inputMaskController=new de,this.inputEventPrevent=new P([w],(()=>this.inputContainerRef)),this.changeEventEmitter=z(ue,w),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(ce),this.isMobileDevice=R()===j.MOBILE,this.isTabletDevice=R()===j.TABLET,this.dropdownSource={hours:[],minutes:[]},this.isDropdownShow=!1,this.selectedTimeValue={},this.mode="single",this.required=!1,this.increments=1,this.timeFormat="24-hour",this.value="range"===this.mode?["",""]:"",this.size="default",this.disabled=!1,this.isValid=null,this.autoValidation=!0,this.validationRules=[]}async watchIsDropdownShow(e){}watchSelectedTimeValue(){}watchMode(){}watchIncrements(){}watchTimeFormat(){}watchValue(e,t){}watchDisabled(){}watchValidationRules(){}componentWillLoad(){}componentDidLoad(){}componentDidRender(){}render(){const t="range"===this.mode;return l(e(o,{class:{disabled:this.disabled}},this.labelRenderer.render(),e("div",{class:this.getTimePickerClass(t),ref:e=>this.inputContainerRef=e},t?this.rangeInputRenderer.render():this.singleInputRenderer.render()),t?this.rangeDropdownRenderer.render():this.singleDropdownRenderer.render()),this.host)}getTimePickerClass(e){return{"vega-time-picker-input-container":!0,"range-mode":e,mobile:e&&this.isMobileDevice,tablet:e&&this.isTabletDevice}}get host(){return n(this)}static get watchers(){return{isDropdownShow:["watchIsDropdownShow"],selectedTimeValue:["watchSelectedTimeValue"],mode:["watchMode"],increments:["watchIncrements"],timeFormat:["watchTimeFormat"],value:["watchValue"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};he([g()],ue.prototype,"globalSlimmers",void 0),he([m()],ue.prototype,"translationSlimmer",void 0),he([m()],ue.prototype,"labelRenderer",void 0),he([m()],ue.prototype,"singleInputRenderer",void 0),he([m()],ue.prototype,"singleDropdownRenderer",void 0),he([m()],ue.prototype,"valueController",void 0),he([m()],ue.prototype,"singleDropdownController",void 0),he([m()],ue.prototype,"dropdownSelectedItemsController",void 0),he([m()],ue.prototype,"keyboardController",void 0),he([m()],ue.prototype,"formFieldController",void 0),he([m()],ue.prototype,"rangeInputRenderer",void 0),he([m()],ue.prototype,"rangeClearButtonRenderer",void 0),he([m()],ue.prototype,"rangeDropdownRenderer",void 0),he([m()],ue.prototype,"startDropdownController",void 0),he([m()],ue.prototype,"endDropdownController",void 0),he([m()],ue.prototype,"inputMaskController",void 0),he([m()],ue.prototype,"inputEventPrevent",void 0),he([m()],ue.prototype,"changeEventEmitter",void 0),he([m()],ue.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),he([s()],ue.prototype,"watchValue",null),ue.style=':host{display:inline-block;text-align:left;line-height:normal;width:100%}vega-field-label{margin-bottom:8px}vega-input::part(field-error-message){display:none}.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-time-picker-input-container.error vega-input::part(input-container){border-width:0px}.vega-time-picker-input-container.error vega-input::part(input-container):hover{border-width:0px}.vega-time-picker-input-container.error vega-input::part(input-container):focus-within{outline:none}.vega-time-picker-input-container.error{border-radius:8px;border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-time-picker-input-container.error .vega-time-picker-range-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-time-picker-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-time-picker-input-container.error:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}.vega-hidden{display:none}.range-input-divider{width:1px;height:24px;border-style:solid;border-right-width:1px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}.mobile .range-input-divider{width:100%;height:1px;border-style:solid;border-right-width:0px;border-top-width:1px;border-bottom-width:0px;border-left-width:0px}.mobile .time-picker-input-end vega-input::part(input){padding-left:26px}.range-mode{position:relative;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}:host(.disabled) .range-mode{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host:not(.disabled) .range-mode:not(.error):hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.range-mode vega-input::part(input-container),:host(.disabled) .range-mode vega-input::part(input-container):hover{border-width:0px}.range-mode:not(.error) .time-picker-input-start vega-input::part(input-container):focus-within,.range-mode:not(.error) .time-picker-input-end vega-input::part(input-container):focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));margin:-1px}.range-mode .vega-time-picker-range-clear-icon{position:absolute;width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));top:50%;right:16px;transform:translateY(-50%)}.range-mode .vega-time-picker-range-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.range-mode.mobile .vega-time-picker-range-clear-icon{top:75%}.range-mode.mobile .time-picker-input{width:100%}vega-time-picker-dropdown.vega-force-hidden{display:none !important}.vega-time-picker-range-clear-icon.invisible{visibility:hidden}';var me=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};const ve=class{constructor(e){i(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return l(e(o,null),this.host)}get host(){return n(this)}};me([g()],ve.prototype,"globalSlimmers",void 0),me([m()],ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ve.style=':host(.vega-time-picker-dropdown){border-radius:12px;position:absolute;overflow:hidden}:host(.vega-force-hidden){display:none !important}.vega-time-picker-dropdown-container{flex-direction:column;position:relative;padding-top:16px;padding-bottom:16px;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:12px;box-shadow:var(--v-shadow-dropdown-menu, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1))}.vega-time-picker-dropdown-panel{display:flex;height:224px}.vega-time-picker-dropdown-panel>ul{flex-grow:1;overflow:hidden;padding-left:0px;margin:0px;width:72px;list-style-type:none;scroll-behavior:smooth}.vega-time-picker-dropdown-panel>ul:hover{overflow-y:auto}:host(.mobile) .vega-time-picker-dropdown-panel>ul,:host(.tablet) .vega-time-picker-dropdown-panel>ul{overflow-y:auto;overflow-x:hidden}.vega-time-picker-dropdown-panel>ul:hover::-webkit-scrollbar{width:4px}.vega-time-picker-dropdown-panel>ul:hover::-webkit-scrollbar-thumb{background-color:rgba(var(--v-bg-status-info, 205, 209, 211, 1));border-radius:9999px}.vega-time-picker-panel-column:not(:last-child){border-right-width:1px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-style:solid}.vega-time-picker-dropdown-panel>ul>li{padding-top:4px;padding-bottom:4px;padding-left:16px;cursor:pointer;display:flex;align-items:center;width:100%}.vega-time-picker-dropdown-panel>ul>li:focus{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-time-picker-dropdown-panel>ul>li:hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-time-picker-dropdown-panel>ul>li.vega-dropdown-item-selected{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-time-picker-dropdown-panel>ul>li{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;text-decoration:none;outline:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-time-picker-dropdown-panel>ul>li{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-time-picker-dropdown-panel>ul>li{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-time-picker-dropdown-panel>ul>li{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-time-picker-panel-column::after{display:block;height:192px;content:""}:host(.mobile) .vega-time-picker-panel-column::after{height:0}.vega-time-picker-dropdown-footer{display:flex;padding-left:16px;padding-right:16px;justify-content:flex-end}.vega-time-picker-dropdown-footer .vega-time-picker-now{flex-grow:1}.horizontal-divider{height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));width:100%;margin-top:12px;margin-bottom:12px}';export{ue as vega_time_picker,ve as vega_time_picker_dropdown}
@@ -0,0 +1 @@
1
+ import{M as t,L as e}from"./p-6e1ab235.js";import{M as n}from"./p-78a57a17.js";var r=function(t,e,n,r){var o,i=arguments.length,l=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(l=(i<3?o(l):i>3?o(e,n,l):o(e,n))||l);return i>3&&l&&Object.defineProperty(e,n,l),l};class o extends n{constructor(t,e){super({options:{attributes:!0,attributeFilter:Array.from(new Set(Object.values(e).reduce(((t,e)=>t.concat(e.dependency)),[])))},callback:t=>{this.handleMutations(t)}}),this.targetGetter=t,this.ariaMap=e}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}handleMutations(t){const e=new Set;if(t&&t.length)for(const n of t)n.attributeName&&e.add(n.attributeName);this.performMapping(e.size?e:void 0)}performMapping(t){const n=this.targetGetter?this.targetGetter():null;if(!n)return;const r=this.host;Object.keys(this.ariaMap).forEach((o=>{const{dependency:i,defaultValue:l}=this.ariaMap[o];if(t&&!i.some((e=>t.has(e))))return;let s=null;for(const t of i){let e=r.getAttribute(t);if(null==e||""===e){const n=t.replace(/-([a-z])/g,((t,e)=>e.toUpperCase())),o=r[t],i=r[n];null!=o?e=String(o):null!=i&&(e=String(i))}if(null!=e&&""!==String(e).trim()){s=e;break}}null!=s&&""!==String(s).trim()||(s=null!=l?l:"");try{if(""===String(s).trim())return void n.removeAttribute(o);n.getAttribute(o)!==s&&n.setAttribute(o,s)}catch(t){e.warn("Errors occurred when setting aria attribute:",{ariaAttr:o,finalValue:s,error:t})}}))}}r([t("componentDidLoad")],o.prototype,"componentDidLoad",null),r([t("componentDidRender")],o.prototype,"componentDidRender",null);export{o as A}
@@ -1 +1 @@
1
- import{V as t}from"./p-6e1ab235.js";import{c as s}from"./p-6a334573.js";import{C as a}from"./p-2d0d575f.js";import{O as o}from"./p-331a62d5.js";import{i as m,h as p}from"./p-5b71c85e.js";import{d as i}from"./p-8d0ca805.js";class e extends t{constructor({propName:t}){super(),this.isAcceptableObserverPayload=t=>t.host===this.host&&t.stateName===this.propName,this.propName=t}connectedCallback(){this.subStateObserver=new o(this.isAcceptableObserverPayload.bind(this),(t=>{t.callback(this.propValue)})),a.register(i.getSubject(this.host,m),this.subStateObserver)}disconnectedCallback(){a.unregister(i.getSubject(this.host,m),this.subStateObserver)}subStateNotify(){a.notify(i.getSubject(this.host,p),{host:this.host,stateName:this.propName,value:this.propValue})}}function c(t,a,o){const m=[{mapFrom:"connectedCallback",mapTo:"connectedCallback"},{mapFrom:"disconnectedCallback",mapTo:"disconnectedCallback"}];return o&&m.push({mapFrom:o,mapTo:"subStateNotify"}),s(t,e,[{mapFrom:"host",mapTo:"host"},{mapFrom:a,mapTo:"propValue"}],m,[{propName:a}])}export{c}
1
+ import{V as t}from"./p-6e1ab235.js";import{c as s}from"./p-6a334573.js";import{C as a}from"./p-2d0d575f.js";import{O as o}from"./p-331a62d5.js";import{h as m,g as p}from"./p-7c39ce96.js";import{d as c}from"./p-31ac7386.js";class e extends t{constructor({propName:t}){super(),this.isAcceptableObserverPayload=t=>t.host===this.host&&t.stateName===this.propName,this.propName=t}connectedCallback(){this.subStateObserver=new o(this.isAcceptableObserverPayload.bind(this),(t=>{t.callback(this.propValue)})),a.register(c.getSubject(this.host,m),this.subStateObserver)}disconnectedCallback(){a.unregister(c.getSubject(this.host,m),this.subStateObserver)}subStateNotify(){a.notify(c.getSubject(this.host,p),{host:this.host,stateName:this.propName,value:this.propValue})}}function i(t,a,o){const m=[{mapFrom:"connectedCallback",mapTo:"connectedCallback"},{mapFrom:"disconnectedCallback",mapTo:"disconnectedCallback"}];return o&&m.push({mapFrom:o,mapTo:"subStateNotify"}),s(t,e,[{mapFrom:"host",mapTo:"host"},{mapFrom:a,mapTo:"propValue"}],m,[{propName:a}])}export{i as c}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e,g as n}from"./p-6b2342e0.js";import{c as a}from"./p-86194314.js";import{s as o}from"./p-519a7d55.js";import{g as s,D as r,a as p}from"./p-6c170474.js";import{I as g}from"./p-6e1ab235.js";import{V as f,I as c}from"./p-4415ad28.js";import{D as h}from"./p-31ac7386.js";import{a as l}from"./p-d64fab3d.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";var x=function(t,i,e,n){var a,o=arguments.length,s=o<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(i,e,s):a(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const d={success:"checkmark-circle",warning:"warning-triangle-filled",error:"help-filled",info:"info-circle-filled"},m=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.isMobileDevice=s()===r.MOBILE,this.notificationTitle="",this.message="",this.type="info",this.duration=5e3,this.showCloseButton=!0,this.actionButtons=[],this.renderPrefixIcon=()=>i("div",{class:"vega-page-notification-prefix"},i("vega-icon",{icon:d[this.type],size:this.isMobileDevice?"size-16":"size-24"})),this.renderContent=()=>i("div",{class:"vega-page-notification-content"},this.notificationTitle&&i("div",{class:"vega-page-notification-title"},this.notificationTitle),i("div",{class:"vega-page-notification-message"},this.message)),this.autoCloseAfterDuration=()=>{this.duration>0&&setTimeout((()=>{this.close()}),this.duration)}}componentDidLoad(){this.autoCloseAfterDuration()}async close(){this.host.classList.add("vega-page-notification-fade-out"),setTimeout((()=>{this.host.remove()}),300)}render(){const t=p([this.type,this.isMobileDevice&&"mobile"].filter(Boolean));return o(i(e,{class:t},i("vega-box",{padding:this.isMobileDevice?"size-16":"size-24"},i("vega-flex",{gap:"size-16"},this.renderPrefixIcon(),this.renderContent(),this.renderCloseButtons()),this.renderActionButtons())),this.host)}renderCloseButtons(){if(this.showCloseButton)return i("div",{"aria-label":"Close Button",class:"vega-page-notification-close-btn",onClick:()=>this.close(),role:"button",tabIndex:0,onKeyDown:a()},i("vega-icon",{icon:"close",size:this.isMobileDevice?"size-12":"size-16"}))}renderActionButtons(){if(this.actionButtons&&0!==this.actionButtons.length)return i("div",{class:"vega-page-notification-actions-container"},this.actionButtons.map((t=>i("vega-button",{size:this.isMobileDevice?"small":"default",label:t.label,variant:"secondary",ref:i=>{h.addUniqueObserverToNode(i,l,t.onVegaClick)}}))))}get host(){return n(this)}};x([c()],m.prototype,"globalSlimmers",void 0),x([g()],m.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),m.style=':host{display:inline-block;box-sizing:border-box;border-radius:12px;max-width:480px;box-shadow:0 4px 8px rgba(2, 2, 15, 0.1), 0 12px 20px rgba(2, 2, 15, 0.15);animation:fade-in-right 300ms ease-in-out}:host(.mobile){width:100%;max-width:100%;animation:fade-in-up 300ms ease-in-out}:host(.vega-page-notification-fade-out){opacity:0;animation:fade-out 300ms ease-in-out}:host vega-icon{color:rgba(var(--v-text-page-notification-content, 32, 54, 69, 1))}:host .vega-page-notification-prefix{display:flex}:host(.mobile) .vega-page-notification-prefix{padding-top:4px}:host .vega-page-notification-content{flex:1 1 0%;overflow:auto}:host .vega-page-notification-close-btn{cursor:pointer;display:inline-flex;margin-top:4px}:host(.mobile) .vega-page-notification-close-btn{padding:2px}:host .vega-page-notification-actions-container{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;justify-content:flex-end;margin-top:24px}:host(.mobile) .vega-page-notification-actions-container{margin-top:16px}:host .vega-page-notification-title{color:rgba(var(--v-text-page-notification-content, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}}:host(.mobile) .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.mobile) .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.mobile) .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.mobile) .vega-page-notification-title{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}:host .vega-page-notification-message{color:rgba(var(--v-text-page-notification-content, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:28px;letter-spacing:0px;overflow-wrap:break-word;margin-top:2px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host(.mobile) .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.mobile) .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.mobile) .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.mobile) .vega-page-notification-message{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-page-notification-actions-container vega-button::part(button):hover,:host .vega-page-notification-actions-container vega-button::part(button){font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));color:rgba(var(--v-text-page-notification-content, 32, 54, 69, 1));border:2px solid rgba(var(--v-text-page-notification-content, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-page-notification-actions-container vega-button::part(button):hover,:host .vega-page-notification-actions-container vega-button::part(button){font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-page-notification-actions-container vega-button::part(button):hover,:host .vega-page-notification-actions-container vega-button::part(button){font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-page-notification-actions-container vega-button::part(button):hover,:host .vega-page-notification-actions-container vega-button::part(button){font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.success){background-color:rgba(var(--v-bg-status-success, 160, 233, 167, 1))}:host(.warning){background-color:rgba(var(--v-bg-status-warning, 255, 220, 131, 1))}:host(.error){background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1))}:host(.info){background-color:rgba(var(--v-bg-status-info, 205, 209, 211, 1))}.vega-page-notification-list{display:flex;flex-direction:column;align-items:flex-end;position:fixed}.vega-page-notification-list-topRight{top:24px;right:24px}.vega-page-notification-list-bottom{left:0px;right:0px;padding-left:16px;padding-right:16px;align-items:center;bottom:0px}@keyframes fade-in-right{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:none}}@keyframes fade-in-up{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:none}}@keyframes fade-out{from{opacity:1}to{opacity:0}}';var v=function(t,i,e,n){var a,o=arguments.length,s=o<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(i,e,s):a(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const b=class{constructor(i){t(this,i),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new f}render(){return i(e,null,i("slot",null))}get host(){return n(this)}};v([c()],b.prototype,"globalSlimmers",void 0),v([g()],b.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b.style=":host{position:fixed;display:flex;flex-direction:column;align-items:flex-end}:host(.vega-page-notification-list-topRight){top:24px;right:24px}:host(.vega-page-notification-list-bottom){align-items:center;padding-left:16px;padding-right:16px;left:0px;right:0px;bottom:0px}";export{m as vega_page_notification,b as vega_page_notification_list}
@@ -0,0 +1 @@
1
+ import{t}from"./p-b75ee3ba.js";class s{constructor(){this.preserveTextContent=!0}execute(t,s){var e;switch(t.nodeType){case Node.TEXT_NODE:return this.preserveTextContent?s.createTextNode(null!==(e=t.textContent)&&void 0!==e?e:""):null;case Node.ELEMENT_NODE:return this.sanitizeElement(t,s);default:return null}}sanitizeElement(t,s){var e;const n=t.tagName;if(!this.allowedTags.has(n)){const e=s.createDocumentFragment();return t.childNodes.forEach((t=>{const n=this.execute(t,s);n&&e.appendChild(n)})),e}const r=s.createElement(n.toLowerCase()),c=null===(e=this.allowedAttributes)||void 0===e?void 0:e.get(n);return c&&Array.from(t.attributes).forEach((t=>{c.has(t.name)&&r.setAttribute(t.name,t.value)})),t.childNodes.forEach((t=>{const e=this.execute(t,s);e&&r.appendChild(e)})),r}}const e=new Set(["B","I","STRONG","EM"]),n=new class{sanitize(s,e){if(!s||""===s.trim())return"";const n=t();if(!n)return"";const r=(new DOMParser).parseFromString(s,"text/html"),c=n.createDocumentFragment();return r.body.childNodes.forEach((t=>{const s=e.execute(t,n);s&&c.appendChild(s)})),function(t,s){var e;const n=s.createElement("div");return n.appendChild(t),0===n.children.length?null!==(e=n.textContent)&&void 0!==e?e:"":n.innerHTML}(c,n)}},r=new class extends s{constructor(){super(...arguments),this.allowedTags=e}},c=new class extends s{constructor(){super(...arguments),this.allowedTags=new Set,this.preserveTextContent=!0}execute(t,s){var e;switch(t.nodeType){case Node.TEXT_NODE:{const n=null!==(e=t.textContent)&&void 0!==e?e:"";return this.isSafeCss(n)?s.createTextNode(n):null}case Node.ELEMENT_NODE:{const e=s.createDocumentFragment();return t.childNodes.forEach((t=>{const n=this.execute(t,s);n&&e.appendChild(n)})),e}default:return null}}isSafeCss(t){return!/expression\s*\(|javascript:|url\s*\(/i.test(t)}},u=new class extends s{constructor(){super(...arguments),this.allowedTags=new Set,this.preserveTextContent=!1}execute(){return null}};export{u as e,n as h,r as l,c as s}
@@ -0,0 +1 @@
1
+ import{f as t,d as e,b as n,g as s,A as r,T as o,B as i,H as a,l,k as c,m as d,n as h,o as u,p as m,q as w,I as T,r as p,S as E,i as g,t as R,u as f,c as k,v as B,w as I,C as x,x as b,s as O,N as L,y as N,z as y,D as A,E as C,F as j,G as H,M as S,J as v,K as D,U as M,L as P,O as $,P as V,R as F}from"./p-a0b66c25.js";import{g as U}from"./p-8b5d3a52.js";import{i as z}from"./p-415ffa35.js";import{C as G}from"./p-2d0d575f.js";import{d as J}from"./p-31ac7386.js";import{V as K,a as W}from"./p-7c39ce96.js";import{d as X}from"./p-02841589.js";import{r as Y,i as Q}from"./p-6c170474.js";import{c as q}from"./p-bf19682d.js";import{L as Z}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);z(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(){return[`<li${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(U());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(U())}clone(t){var e;const n=new RTEListItemBlock(this.id);return n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(n))),n.parent=t,n}}r.register(o.name,RTEListItemBlock.name,new i),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new d),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new h),r.register(c.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new u),r.register(c.REPLACE_CHILD_NODES,RTEListItemBlock.name,new m),r.register(c.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(c.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new w),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class _ extends R{constructor(){super(...arguments),this.type=f.LIST}renderStyle(t){return(null==t?void 0:t.standalone)?{paddingLeft:"8px",marginLeft:"16px"}:null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new _}toJSON(){}}class RTEListBlock extends k{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(f.LIST,new _)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);z(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return x.from(e);case"customClass":return I.from(e);case"customStyle":return B.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag();return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new RTEListBlock(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}r.register(c.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new T(e,r)),e.parent.apply(new p(e)),n.forEach((t=>t.children.map((t=>t.apply(new E)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new T(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const o=t.selectedBlocks,i=o.map((t=>(t.children.map((t=>t.apply(new E))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new g(e,...i));else if(r)e.parent.apply(new T(e,...i));else{const t=e.children.indexOf(o[0]),n=e.children.indexOf(o[o.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new g(e,r,...i,a)),e.parent.apply(new p(e))}o.map((t=>{e.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}toParagraph(t){const n=new e(U(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new T(e,t.imageBlockToBeInserted):t)}});class tt{}class et{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter(z)),e}}const nt=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},st=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r]))continue;let o=0;for(const i of n)if(o=i.canHandle(t,r,e),o>0){const n=t.slice(r,r+o),a=new et(i,n);1===o&&i.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=o-1;break}if(0===o&&r<t.length){const n=Array.from(t[r].childNodes),o=this.process(Array.from(n),e);o.length>0&&s.push(...o)}}return s}isInvalidElement(t){return t.nodeType===Node.COMMENT_NODE||["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return nt.getElementToBlockStrategies()}};class rt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class ot extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class it extends ot{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class at extends L{constructor(t,e){super(),this.type=N.IMAGE,this.size=t,this.alt=e}static from(t,e){return[N.IMAGE,new at(t,e)]}toJSON(){return z(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new at(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={verticalAlign:"bottom"};switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}class RTEImageNode extends y{constructor(t,e,n,s){super(t,s),this.type=A.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,o=Object.assign({},t.annotations),{size:i}=o,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(o,["size"]),l=Object.assign(Object.assign({},a),{size:null!=i?i:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?at.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter(z)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof at||t instanceof C)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(t){return new RTEImageNode(this.id,this.url,t,super.cloneAnnotations())}toHtml(){const t=this.getAnnotationByType(N.IMAGE);return`<img${super.generateAttributeString(...[t&&t.alt?`alt="${t.alt}"`:null,`src="${this.url}"`,t&&t.size?`data-size="${t.size}"`:null].filter(z))}>`}doAnnotationActionApply(t){const e=r.get(j.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(c.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(j.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class lt extends S{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends k{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=super.generateAttributeString(),e=this.children.map((t=>t.toHtml())).join("");return super.shouldRenderAsInternalWrapper()?e:[`<div${t}>`,e,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(U())}clone(t){const e=new RTEImageBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}r.register(c.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new w),r.register(c.REPLACE_CHILD_NODES,RTEImageBlock.name,new m),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new H(t));const o=this.cloneWithNodes(r,n);return n.parent.apply(new T(n,o)),o}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new lt(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const o=e.from({id:U(),type:"paragraph",nodes:[{id:U(),type:"text",text:"\n"}]});r.parent.apply(new T(r,o));const i=this.concatBlocksNodes(t.slice(1));return(0===i.length||i[0]&&""===i[0].text)&&i.push(new n(U(),"\n",o)),o.apply(new s(i)),o.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new p(t)))})),e}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,o=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(o.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new T(e,o)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new g(e,o)):(e.apply(new v(n,r)),e.parent.apply(new T(e,o)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends k{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTEHtmlBlock(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(){const t=this.htmlTag,e=super.generateAttributeString();return RTEHtmlBlock.VOID_TAGS.has(this.htmlTag)?`<${t}${e}>`:[`<${t}${e}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}RTEHtmlBlock.VOID_TAGS=new Set(["hr","input","col"]);class ct extends S{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class dt extends D{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new p(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new M(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new p(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const o=n.isEmpty();if(e.children.length&&s&&s.parent!==e)o&&e.apply(new p(n)),e.type===s.parent.type&&s.parent.apply(new ct(e));else if(this.isContentFirstNode(n)&&o&&(r=this.getNextNode(n)),o&&e.apply(new p(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new p(t)),s||o||(r=n)}0===e.children.length&&e.parent.apply(new p(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),o=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(o=this.getNextNode(n)),1===t.children.length?t.parent.apply(new p(t)):t.apply(new p(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new p(e)),r||(t.nextNode=n))}r?t.previousNode=r:o&&(t.nextNode=o)}}class ht extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new T(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}n.parent.apply(new g(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(N.LINK),e.apply(new s([n]))),e}}}class ut extends S{constructor(t,e,n=!1){super(),this.isFlushable=!0,this.type=c.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n,this.immediatelyRun&&(this.isFlushable=!1)}}class mt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:o}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==o){const e=r.text.substring(0,o),n=r.text.substring(o),i=r.cloneWithText(e),a=r.cloneWithText(n),l=[i,s];n&&l.push(a),t.apply(new g(r,...l)),t.apply(new p(r))}else t.apply(new g(r,s));else t.apply(0!==o?new T(r,s):new g(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class wt extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,o=this.createNewParagraph(n);if(o){const t=o.children[0];e.apply(0!==s?new T(r,t):new g(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class Tt extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),o=this.copyInlineStyleToNewNode(t);if(r.apply(new s([o])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new g(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],o=1===n.children.length&&n.children[0].isEmpty();if(n===r&&o){const r=n.parent.parent;if("list-item"!==r.type){const o=e.from({id:U(),type:"paragraph",nodes:[]});return o.apply(new s(t.children)),r.apply(new T(n.parent,o)),n.parent.apply(new p(n)),o}r.parent.apply(new T(r,t)),n.parent.apply(new p(n))}else n.parent.apply(new T(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(N.LINK),e}}class pt extends S{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class Et extends P{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new pt(e):new p(e))}}class gt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let o=e;if(s===e.children[0]&&0===r)e.parent.apply(new g(e,...n));else{const t=new v(s,r);e.apply(t),e.parent.apply(new T(e,...n)),o=t.newBlock}t.futureFocusBlock=o}}}const Rt=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new Et:new P),r.register(c.APPEND_CHILDREN,t,new rt),r.register(c.INSERT_CHILDREN_BEFORE,t,new ot),r.register(c.INSERT_CHILDREN_AFTER,t,new it),r.register(c.DELETE_BLOCK_CONTENT,t,new dt),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new Tt:new ht),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new wt),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new mt),r.register(c.PASTE_CONTENT,t,new gt)}};class ft{}class kt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||"bold"===t.style.fontWeight||"700"===t.style.fontWeight||t.classList.contains("v-rte--bold")}}class Bt extends ft{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class It extends ft{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class xt extends ft{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.generateCustomStyleAnnotations(t);return Object.keys(e).length>0?{customStyle:e}:{}}generateCustomStyleAnnotations(t){const e=t.getAttribute("style");return e?e.split(";").filter(Boolean).filter((t=>" "!==t)).map((t=>{const e=t.replace(/(['"])(.*?)\1/g,"$2").split(":");return{[X(e[0].trim())]:e[1].trim().replace(";","")}})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{}):{}}}class bt extends ft{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class Ot extends ft{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class Lt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class Nt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=Y(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=$.filter((t=>t.key!==V.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of $)if(t.style.color.includes(e.key))return e.key;return null}}class yt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||"italic"===t.style.fontStyle||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class At extends ft{constructor(){super(...arguments),this.handlers=[new Bt,new It,new xt]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:"A"===t.tagName?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:U()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Ct extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes("line-through")||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class jt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes("underline")||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Ht extends ft{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte--text-style-(title|subtitle|heading-1|heading-2|heading-3|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class St extends ft{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class vt extends ft{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}class Dt extends ft{constructor(){super(...arguments),this.customAttributeHandler=new Bt,this.customStyleAnnotationHandler=new xt,this.customClassAnnotationHandler=new It}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(Dt.canHandleTags.includes(t.nodeName)){const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));if(n)return{inlineHtml:n}}return{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||1===t.childNodes.length&&t.childNodes[0].nodeType!==Node.TEXT_NODE){const e={htmlTag:t.nodeName.toLowerCase(),customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass};if(s){let n=s;for(;n.child&&t.parentNode&&n.child.htmlTag===t.parentNode.nodeName.toLowerCase();)n=n.child;n.child=e}else s=e}return s?Object.assign({},s):null}}Dt.canHandleTags=["A","ABBR","AUDIO","B","BDI","BDO","CITE","CODE","DEL","DFN","EMBED","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","VIDEO"];const Mt=new class{constructor(){this.handlers=[new Ot,new bt,new kt,new yt,new jt,new Ct,new Nt,new At,new Lt,new St,new vt,new Bt,new It,new xt,new At,new Ht,new Dt]}generate(t,e,n={autoMatchFormat:!0}){const s="A"===e.tagName;return this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof At)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{})}};class Pt extends tt{constructor(){super(...arguments),this.annotationHandler=new Ht}generateChildNodes(t,e,s){const r=[],o=!(!s||!1!==s.autoMatchFormat),i=Object.assign({},e);return t.forEach((t=>{const a=nt.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,i)),l)r.push(l);else if(Q(t)&&t.childNodes.length>0){const a=Mt.generate(n,t,Object.assign({parentAnnotations:o?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class $t extends Pt{canHandle(t,e,n){const s=t[e];return!n.autoMatchFormat&&("DIV"!==s.nodeName||s.childNodes.length>0&&"IMG"!==s.childNodes[0].nodeName)&&$t.canHandleTags.includes(t[e].nodeName)?1:0}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}generateHtmlBlock(t,e){return{id:U(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:Mt.generate(RTEHtmlBlock,t,e),children:[]}}}$t.canHandleTags=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","BUTTON","CAPTION","COL","COLGROUP","DIV","DD","DETAILS","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","HEADER","HR","HX","INPUT","LEGEND","MAIN","NAV","PRE","SECTION","SUMMARY","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR"];class Vt extends Pt{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return b.from({id:U(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class Ft extends Pt{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:U(),type:"image",nodes:[{id:U(),type:"image",url:t.src,annotations:Mt.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},Mt.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class Ut extends Pt{canHandle(t,e){let n=0;for(let s=e;s<t.length;s++){const e=t[s];if(e.nodeType!==Node.TEXT_NODE&&(!Ut.canHandleTags.includes(e.nodeName)||""===e.textContent&&e.querySelector("IMG")))break;n++}return n}handle(t,s){const r=t[0].parentElement,o=s&&s.autoMatchFormat,i=this.generateChildNodes(t,o?Mt.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=o?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!o&&!a;return e.from(Object.assign({id:U(),type:a||"paragraph",nodes:i},l?{annotations:{internalWrapper:l}}:{annotations:Mt.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}}Ut.canHandleTags=[...Dt.canHandleTags,"CODE","A","VEGA-RICH-TEXT-LINK-EDITOR","BR"];class zt extends tt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:U(),type:"text",text:t,annotations:e}}}F.registerRTEDTOClass("paragraph",e),F.registerRTEDTOClass("title",e),F.registerRTEDTOClass("subtitle",e),F.registerRTEDTOClass("heading-1",e),F.registerRTEDTOClass("heading-2",e),F.registerRTEDTOClass("heading-3",e),F.registerRTEDTOClass("heading-4",e),F.registerRTEDTOClass("heading-5",e),F.registerRTEDTOClass("heading-6",e),F.registerRTEDTOClass("heading-6",e),F.registerRTEDTOClass("list-item",RTEListItemBlock),F.registerRTEDTOClass("bullet-list",RTEListBlock),F.registerRTEDTOClass("number-list",RTEListBlock),F.registerRTEDTOClass("image",RTEImageBlock),F.registerRTEDTOClass("code-block",b),F.registerRTEDTOClass("html-block",RTEHtmlBlock),F.registerRTEDTOClass("text",n),F.registerRTEDTOClass("image",RTEImageNode),Rt.registerBlockBasicStrategies(e.name),Rt.registerBlockBasicStrategies(RTEListBlock.name),Rt.registerBlockBasicStrategies(RTEListItemBlock.name),Rt.registerBlockBasicStrategies(RTEImageBlock.name),Rt.registerBlockBasicStrategies(RTEHtmlBlock.name),nt.registerElementToBlockStrategy(new Ut),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if(z(s))return RTEImageBlock.from({id:U(),type:"image",nodes:[{id:U(),type:"image",url:s.src,annotations:Mt.generate(RTEImageNode,n,e)}],annotations:Mt.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:U(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:Mt.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new Vt),nt.registerElementToBlockStrategy(new class extends Vt{canHandle(t,e){return"VEGA-CODE-BLOCK"===t[e].tagName&&0==!!t[e].querySelector("vega-code-block")||this.isCodeBlockContainer(t[e])?1:0}handle(t){const e=this.isCodeBlockContainer(t[0])?t[0].querySelector("vega-code-block"):t[0],n=e.querySelector("code");if(n)return super.handle([n]);if(e.hasAttribute("data-content")){const t=document.createElement("code");return t.textContent=e.dataset.content,t.dataset.language=e.dataset.language,super.handle([t])}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isCodeBlockContainer(t){return"PRE"===t.tagName&&t.classList.contains("code-block-container")&&1===t.querySelectorAll("vega-code-block").length}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:U(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:U(),type:"list-item",annotations:Mt.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),Mt.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,o=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),i=z(s)&&["UL","OL"].includes(s.nodeName);return r&&!o&&i?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:U(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:U(),type:"number-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:U(),type:"bullet-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new $t),nt.registerElementToNodeStrategy(new class extends zt{canHandle(t,e){const n=t[e];return!Q(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),o=Object.assign({},s),i=t[0],a=Mt.generate(n,i,Object.assign({parentAnnotations:r?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:s},e));if("BR"===i.nodeName)return this.generateTextNode("\n",a);if(0===i.childNodes.length){const t=r?q(Object.assign(Object.assign({},n.supportsHtmlTag(i.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml,plainText:z(a.inlineHtml)})):a;return Object.assign({},this.generateTextNode("",t))}}}),nt.registerElementToNodeStrategy(new class extends zt{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),o=!(!e||!1!==e.autoMatchFormat),i=t[0],a=i.parentNode.nodeName.toLowerCase(),l=o&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(i.textContent),o?q(Object.assign(Object.assign({},"span"===a?r:{link:r.link,code:"code"===a?r.code:void 0}),{inlineHtml:r.inlineHtml,plainText:l||void 0})):r);return Object.assign({},c)}});class Gt{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new Jt(e)}}class Jt{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(Q(t)){const e=t.getAttribute("data-style");e&&(t.style.cssText=e,t.removeAttribute("data-style")),t.children.length>0&&this.walkNodes(Array.from(t.children))}}))}}class Kt{process(t){return t.replace(/(<[^>]+>)(\s+)(<[^>]+>)/g,((t,e,n,s)=>{const r=this.extractOpeningTagName(e),o=this.extractClosingTagName(s);return r&&o&&r===o?`${e}${n}${s}`:`${e}${s}`}))}extractOpeningTagName(t){const e=t.match(/<(\w[\w-]*)/);return e?e[1]:null}extractClosingTagName(t){const e=t.match(/<\/(\w[\w-]*)/);return e?e[1]:null}}class Wt{process(t){return t.replace(/(>)[\n\t]+(?=.)/g,"$1")}}class Xt{process(t){return t.replace(/(.?)[\n\t]+(?=<)/g,"$1")}}class Yt{constructor(){this.processors=[new Kt,new Wt,new Xt]}clean(t){if(!t||0===t.trim().length)return t;let e,n=t;do{e=n;for(const t of this.processors)n=t.process(n)}while(n!==e);return n}}class VegaRTEContent{constructor(t){t.forEach((t=>{t.parent=this})),this.children=t}static fromJSON(t,e={autoMatchFormat:!0}){const n=t.map((t=>{const n=F.getRTEBlockClass(t.type);if(n)return n.from(t,e);throw new Error(`[Vega] Unknown block type: ${t.type}`)}));return new VegaRTEContent(n)}static createEmptyContent(t={autoMatchFormat:!0}){return VegaRTEContent.fromJSON([{id:U(),type:"paragraph",annotations:{internalWrapper:!t.autoMatchFormat},nodes:[{id:U(),annotations:{plainText:!t.autoMatchFormat},type:"text",text:""}]}],t)}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=(new Yt).clean(t),s=Gt.preserve(n),r=s.getProcessedHtml(),o=(new DOMParser).parseFromString(r,"text/html").body,i=Array.from(o.childNodes);s.restore(i);const a=st.process(i,e).filter(z).map((t=>t.toDto(e))).filter(z);return new VegaRTEContent(a)}clone(t=!1){return new VegaRTEContent(t?this.children.map((t=>t.clone(this))):[...this.children])}toJSON(){return this.children.map((t=>t.toJSON()))}toHtml(t){return t&&Z.warn("The 'options' parameter in toHtml method is deprecated and will be removed in the future."),this.isEmpty()?"":this.children.map((t=>t.toHtml())).join("")}isEmpty(){return 0===this.children.length||1===this.children.length&&!this.children[0].isNotEmpty()}apply(t){if(r.executeTheStrategy(t,this),t.executedFlag&&t.isFlushable){const t=O.getDOMByEntity(this);t&&G.notify(J.getSubject(t,W),{})}}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new E)));const e=new RTEListItemBlock(U());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(U(),t)}findNodeById(t){return this.findNodeInBlocksById(t,this.children)}findNodeInBlocksById(t,e){for(const n of e){if("children"in n)for(const e of n.children)if(e.id===t)return e;if(n instanceof RTEListItemBlock&&n.nestList)for(const e of n.nestList){const n=this.findNodeInBlocksById(t,e.children);if(n)return n}if(n instanceof RTEListBlock&&n.children){const e=this.findNodeInBlocksById(t,n.children);if(e)return e}}return null}}r.register(c.DELETE_CHILDREN,VegaRTEContent.name,new P),r.register(c.APPEND_CHILDREN,VegaRTEContent.name,new rt),r.register(c.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new ot),r.register(c.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new it),r.register(c.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new b(U(),this.getCodeContent(n),"plainText");e.apply(new g(n[0],s)),t.newCodeBlock=s,this.removeSelectBlocks(n,e)}getCodeContent(t){return t.filter((t=>"image"!==t.type&&"list-item"!==t.type)).map((t=>t.children.map((t=>t.text)).join(""))).join("\n")}removeSelectBlocks(t,e){for(let n=0;n<t.length;n++)e.apply(new p(t[n]))}}),r.register(c.UPDATE_CURSOR_POSITION,VegaRTEContent.name,new class extends t{handleAction(t,e){const{offset:n,nextFocusNode:s,immediatelyRun:r}=t,o=O.getDOMByEntity(e);o&&G.notify(J.getSubject(o,K),{node:s,offset:n,updateDirectly:r})}});const Qt=new class{constructor(){this.RTE_DTO_RENDERER_MAP=new Map,this.RTE_TOOLBAR_BUTTON_RENDERER_MAP=new Map}registerRTEDTORenderer(t,e){const n=this.RTE_DTO_RENDERER_MAP.get(t);if(e&&n&&n.constructor.name!==e.constructor.name)throw new Error(`Renderer for type ${t} is already registered with a different class(${n.constructor.name}).`);this.RTE_DTO_RENDERER_MAP.set(t,e)}registerRTEToolbarButtonRenderer(t,e){this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(t,e)}getRTERenderer(t){return this.RTE_DTO_RENDERER_MAP.get(t)}getRTEToolbarButtonRenderer(t){return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(t)}};export{Pt as B,nt as E,lt as I,ct as M,Qt as R,Gt as S,ut as U,VegaRTEContent as V,Rt as a,tt as b,RTEImageBlock as c,RTEListItemBlock as d,RTEListBlock as e,RTEImageNode as f,at as g,Mt as h,st as i}
@@ -0,0 +1 @@
1
+ import{F as s}from"./p-18e8d9b7.js";import{V as t,a as o,b as l,c as a,d as c,w as e,e as i,f as n,g as r,h as b,i as f}from"./p-c2d2faa0.js";import{M as h,V as p,s as d,G as m}from"./p-6e1ab235.js";import{V as u}from"./p-c801c85d.js";import{T}from"./p-d884c644.js";import{V as g}from"./p-e6adf829.js";import{V as j,s as C}from"./p-dad3ba5f.js";import{V as O}from"./p-aa1174dc.js";import{v as E}from"./p-5f377954.js";import{U as k}from"./p-a528714c.js";import{C as v}from"./p-2d0d575f.js";import{O as R}from"./p-331a62d5.js";import{f as _}from"./p-6b2342e0.js";import{V}from"./p-f2b0b58a.js";import{v as A,s as L}from"./p-4866e390.js";import{V as y}from"./p-a0b66c25.js";var D=function(s,t,o,l){var a,c=arguments.length,e=c<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,t,o,l);else for(var i=s.length-1;i>=0;i--)(a=s[i])&&(e=(c<3?a(e):c>3?a(t,o,e):a(t,o))||e);return c>3&&e&&Object.defineProperty(t,o,e),e};class M extends p{constructor(t){super(),this.originalWatchers=new Map,this.hasDisconnected=!1,this.isEnabled=s.isEnabled("VEGA_REACT.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD")&&s.isEnabled("VEGA_FRAMEWORK.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD"),this.component=t.component}connectedCallback(){if(!this.isEnabled)return;if(this.hasDisconnected)return;const s=this.component.constructor.watchers;for(const t in s)s[t].forEach((s=>{this.originalWatchers.has(s)||(this.originalWatchers.set(s,this.component[s]),this.component[s]=function(){})}))}disconnectedCallback(){this.isEnabled&&(this.hasDisconnected=!0)}componentDidLoad(){this.isEnabled&&this.originalWatchers.forEach(((s,t)=>{const o=s;this.component[t]=function(...s){return o.apply(this,s)}}))}}D([h("connectedCallback")],M.prototype,"connectedCallback",null),D([h("disconnectedCallback")],M.prototype,"disconnectedCallback",null),D([h("componentDidLoad")],M.prototype,"componentDidLoad",null);var N=function(s,t,o,l){var a,c=arguments.length,e=c<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,t,o,l);else for(var i=s.length-1;i>=0;i--)(a=s[i])&&(e=(c<3?a(e):c>3?a(t,o,e):a(t,o))||e);return c>3&&e&&Object.defineProperty(t,o,e),e};class x extends p{constructor(s){super(),this.component=s.component}connectedCallback(){this.observer=new R(this.isAcceptable.bind(this),(()=>{_(this.component)})),v.register(k,this.observer)}disconnectedCallback(){this.observer&&(v.unregister(k,this.observer),this.observer=null)}isAcceptable(){var s,t;const o=this.component.host;return null!==(t=null===(s=j.getConnectedComponents().get(o.tagName))||void 0===s?void 0:s.has(o))&&void 0!==t&&t}}N([h("connectedCallback")],x.prototype,"connectedCallback",null),N([h("disconnectedCallback")],x.prototype,"disconnectedCallback",null);class F extends p{constructor(s){super(),this.component=s.component}connectedCallback(){const s=this.component.host.shadowRoot,t=s.insertBefore;s.insertBefore=function(s,o){if("STYLE"===s.nodeName){const t=A.nonce;void 0!==t&&s.setAttribute("nonce",t)}return t.call(this,s,o)}}}!function(s,t,o,l){var a,c=arguments.length,e=c<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,t,o,l);else for(var i=s.length-1;i>=0;i--)(a=s[i])&&(e=(c<3?a(e):c>3?a(t,o,e):a(t,o))||e);c>3&&e&&Object.defineProperty(t,o,e)}([h("connectedCallback")],F.prototype,"connectedCallback",null);const H=function(){globalThis.VegaDisabledFeatureKeys&&s.disable(...globalThis.VegaDisabledFeatureKeys),globalThis.VegaEnabledFeatureKeys&&s.enable(...globalThis.VegaEnabledFeatureKeys),globalThis.VegaLoader=t,globalThis.VegaNotify=o,globalThis.VegaThemeManager=l,globalThis.setVegaLogLevel=d,globalThis.VegaDialog=u,m.register([M,x,F]),globalThis.VegaEventManager=a,Object.keys(T).forEach((s=>{const{url:t}=T[s],o="vega-typography-"+s;if(!document.querySelector("#"+o)){const s=document.createElement("link");s.id=o,s.href=t,s.rel="stylesheet",document.head.append(s)}})),globalThis.VegaIconManager=g,globalThis.VegaZIndexManager=c,globalThis.ValidCreditCardNumberRule=O,globalThis.VegaEnvInfo=E.getVegaEnv(),import("./p-5a25014f.js").then((t=>{t.default.init(s)})),globalThis.waitForVega=e,globalThis.VegaSkeletonLoader=i,globalThis.VegaTranslation=n,globalThis.VegaTranslationResourceEN=C,globalThis.VegaRTEContent=V,globalThis.VegaRTETokenExtension=r,globalThis.VegaRTELanguageExtension=b,globalThis.VegaRTEPresetToolbarItems=y,globalThis.VegaRTEFunctionExtension=f,import("./p-c3d2f316.js").then((s=>{Object.entries(s).forEach((([s,t])=>{globalThis[s]=t}))})),globalThis.VegaThemeManagerApplyBranding&&l.applyBranding(globalThis.VegaThemeManagerApplyBranding),globalThis.setVegaNonce=L,A.patchHeadInsertBeforeWithNonceToStencil()};export{H as g}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as a,g as r}from"./p-6b2342e0.js";import{M as s,a as n}from"./p-cdbbdcc2.js";import{R as o}from"./p-280cbcdb.js";import{s as p}from"./p-519a7d55.js";import{I as h}from"./p-6e1ab235.js";import{V as d,I as l}from"./p-4415ad28.js";import{F as x}from"./p-a8792e3d.js";import{F as f}from"./p-a528714c.js";import{C as g}from"./p-2d0d575f.js";import{c as m}from"./p-02c9796a.js";import{f as c,F as v,v as b}from"./p-d64fab3d.js";import{C as u}from"./p-1a51bf6f.js";import{D as w}from"./p-31ac7386.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-6c170474.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-7c39ce96.js";import"./p-dad3ba5f.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-021d4ae4.js";import"./p-ab834f06.js";import"./p-40f39194.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-5eb7f382.js";import"./p-b7f3221f.js";import"./p-5f377954.js";import"./p-18e8d9b7.js";import"./p-5a25014f.js";const y=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>!1===t.autoValidation}];var j=function(t,e,i,a){var r,s=arguments.length,n=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const z=class{constructor(a){t(this,a),this.vegaChange=e(this,"vegaChange",7),this.change=e(this,"change",7),this.vegaBlur=e(this,"vegaBlur",7),this.blur=e(this,"blur",7),this.vegaLabelButtonClick=e(this,"vegaLabelButtonClick",7),this.labelButtonClick=e(this,"labelButtonClick",7),this.globalSlimmers={},this.formFieldController=new x({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new o:null},{propertyName:"minLength",ruleFactory:t=>t?new s({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new n({maxStrLength:t}):null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.textareaRef]}),this.changeEventEmitter=m(z,c),this.blurEventEmitter=m(z,v),this.labelButtonClickEventEmitter=m(z,b),this.textareaEventPrevent=new u([c],(()=>this.inputContainerRef)),this.vegaComponentUsageRuntimeMetricsSlimmer=new d(y),this.currentCharCount=0,this.placeholder="",this.hint="",this.disabled=!1,this.label="",this.labelSuffixButtonConfig=null,this.showCounter=!1,this.value="",this.isValid=null,this.autoValidation=!0,this.required=!1,this.maxLength=null,this.minLength=null,this.resizable=!0,this.rows=5,this.validationRules=[],this.renderTextareaContainer=()=>i("div",{class:{"vega-textarea-container":!0,"vega-textarea-not-resizable":!this.resizable},ref:t=>this.inputContainerRef=t},i("textarea",{rows:this.rows>=2?this.rows-1:4,placeholder:this.placeholder,disabled:this.disabled,required:this.required,ref:this.setTextareaRef,maxLength:this.maxLength,minLength:this.minLength,value:this.value,onBlur:this.handleTextareaBlur,"aria-label":this.label||"No label defined"}),this.showCounter&&this.renderCharacterCounter()),this.renderHintMessage=()=>i("vega-text",null,this.hint),this.renderCharacterCounter=()=>i("div",{class:{"vega-textarea-counter":!0,"counter-exceed-max-length":this.isExceedMaxLength(this.value,this.maxLength)}},i("span",{id:"current"},this.currentCharCount),null!=this.maxLength&&this.renderMaxLengthNumber()),this.renderMaxLengthNumber=()=>i("span",{id:"maximum"},"/",this.maxLength),this.setTextareaRef=t=>{t&&this.textareaRef!==t&&(this.textareaRef=t)},this.inputFocus=()=>{this.textareaRef.focus()},this.handleTextareaBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.isExceedMaxLength=(t,e)=>null!=e&&t.length>e,this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()}}watchValue(t){this.changeEventEmitter.emit(t),this.textareaRef.value!==this.value&&(this.textareaRef.value=this.value),t&&(this.currentCharCount=t.length),g.notify(f,{host:this.host,detail:t})}watchValidationRules(){}componentWillLoad(){this.currentCharCount=this.value.length}handleValueTextarea(){this.value=this.textareaRef.value,this.currentCharCount=this.value.length}render(){return p(i(a,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderTextareaContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{onClick:this.inputFocus,"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{w.addUniqueObserverToNode(t,b,this.handleLabelButtonClick)}})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};j([l()],z.prototype,"globalSlimmers",void 0),j([h()],z.prototype,"formFieldController",void 0),j([h()],z.prototype,"changeEventEmitter",void 0),j([h()],z.prototype,"blurEventEmitter",void 0),j([h()],z.prototype,"labelButtonClickEventEmitter",void 0),j([h()],z.prototype,"textareaEventPrevent",void 0),j([h()],z.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),z.style=':host{display:inline-block;width:100%;text-align:left}:host .vega-textarea-container{display:flex;position:relative;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));min-height:50px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host textarea{display:block;position:relative;padding-top:12px;padding-right:16px;padding-bottom:32px;padding-left:16px;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;outline:2px solid transparent;outline-offset:2px;border-style:none;overflow:auto;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));min-height:48px}@media screen and (min-width: 768px) and (max-width: 1023px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-textarea-container.vega-textarea-not-resizable{resize:none}:host .vega-textarea-container.vega-textarea-not-resizable textarea{resize:none}:host vega-field-label{margin-bottom:8px}:host .vega-textarea-counter{position:absolute;bottom:8px;right:8px;display:flex;padding-left:4px;padding-right:4px;padding-top:2px;padding-bottom:2px;border-radius:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));background-color:rgba(var(--v-bg-textarea-count, 4, 4, 28, 0.6))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-counter.counter-exceed-max-length{background-color:rgba(var(--v-bg-textarea-counter-exceed-max-length, 214, 46, 81))}:host textarea::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host vega-text{padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-textarea-container:focus-within{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .vega-textarea-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-textarea-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-textarea-container.error:focus-within{border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1));outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}:host(.disabled) textarea{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.disabled) .vega-textarea-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host .vega-hidden{display:none}';export{z as vega_textarea}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as n,H as i,g as a}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as l,I as s}from"./p-4415ad28.js";import{c as v}from"./p-02c9796a.js";import{a as g}from"./p-d64fab3d.js";import{C as b}from"./p-1a51bf6f.js";import{h as d,e as c}from"./p-f0e828d8.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-31ac7386.js";import"./p-331a62d5.js";import"./p-6c170474.js";import"./p-b7f3221f.js";import"./p-b75ee3ba.js";import"./p-5f377954.js";import"./p-18e8d9b7.js";import"./p-5a25014f.js";const u=[{payloadKey:"EVENTFUL_IS_TRUE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to true, the event will be emitted.",payloadValue:t=>!0===t.eventful},{payloadKey:"EVENTFUL_IS_FALSE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to false, the component will function as a regular link to another page or URL, and no events will be emitted.",payloadValue:t=>!1===t.eventful}];var h=function(t,e,n,i){var a,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(e,n,r):a(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r};const p=class{constructor(n){t(this,n),this.vegaClick=e(this,"vegaClick",7),this.click=e(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=v(p,g),this.eventPrevent=new b([g],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new l(u),this.link=p.defaultLink,this.size="default",this.iconType="icon",this.iconAlign="left",this.label="",this.disabled=!1,this.danger=!1,this.eventful=!1,this.target="_self",this.onClick=t=>{(this.isButton()||this.eventful)&&(this.disabled||this.clickEventEmitter.emit(this.host.dataset.key,t).defaultPrevented)&&t.preventDefault()}}componentWillLoad(){this.label||(this.label=this.host.textContent),this.host.innerHTML=d.sanitize("",c)}render(){const t=this.isButton(),e=t?p.defaultLink:this.link;return o(n(i,{class:{"vega-button-link-disabled":this.disabled}},n("a",{part:"link",tabIndex:this.disabled?-1:0,role:t?"button":"link","aria-label":this.label.trim()||"No label defined",href:e,onClick:this.onClick,class:{"vega-button-link":!0,[`vega-button-link-size-${this.size}`]:!0,"vega-button-link-left-button":this.hasIconButton("left"),"vega-button-link-right-button":this.hasIconButton("right"),"vega-button-link-danger":this.danger,icon:!!this.icon,[this.size]:!0},rel:"noopener noreferrer",target:this.target},n("div",{class:"vega-button-link-content"},this.renderContent()))),this.host)}hasIconButton(t){return this.icon&&"button"===this.iconType&&this.iconAlign===t}renderContent(){return this.icon?n("vega-flex",{alignItems:"center",gap:this.getGapByButtonSize(),justifyContent:"center"},"left"===this.iconAlign&&this.renderIcon(),this.renderLabel(),"right"===this.iconAlign&&this.renderIcon()):this.renderLabel()}getGapByButtonSize(){return"large"===this.size?"icon"===this.iconType?"size-8":"size-12":"small"===this.size?"icon"===this.iconType?"size-4":"size-8":"default"===this.size?"size-8":void 0}renderLabel(){return this.label&&n("span",{class:"vega-button-link-label",part:"label-container"},n("vega-text",{part:"label-text"},this.label))}renderIcon(){return n("div",{class:`vega-button-link-${this.iconType} vega-flex-shrink-0 v-min-w-min`},"icon"===this.iconType?this.renderVegaIcon():n("div",{class:"vega-button-link-button-container"},this.renderVegaIcon()))}renderVegaIcon(){return n("vega-icon",{icon:this.icon,size:"large"===this.size?"size-24":"size-16"})}isButton(){return!this.link||this.link===p.defaultLink}get host(){return a(this)}};p.defaultLink="javascript:void(0);",h([s()],p.prototype,"globalSlimmers",void 0),h([r()],p.prototype,"clickEventEmitter",void 0),h([r()],p.prototype,"eventPrevent",void 0),h([r()],p.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),p.style=':host{display:inline-block;position:relative;margin:0px;line-height:normal}a{text-decoration:none;color:rgba(var(--v-text-link, 19, 98, 226, 1));background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));display:inline-block;outline:none}a:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}a.default:focus-visible,a.large:focus-visible{border-radius:8px}a.small:focus-visible{border-radius:4px}a.icon:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:4px}a:not(.vega-button-link-danger):visited vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):visited vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:active{text-decoration:none}a:active:hover .vega-button-link-label{text-decoration:none}a.vega-button-link-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}a.vega-button-link-danger:hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-danger:focus-visible{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}a.vega-button-link-danger:focus-visible.default:focus-visible,a.vega-button-link-danger:focus-visible.large:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:4px}a.vega-button-link-danger:focus-visible.small:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}a .vega-button-link-button-container{border-radius:9999px;cursor:pointer;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1));box-sizing:border-box;border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:visited .vega-button-link-button-container{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1));border-color:var(--v-text-link-visited)}a:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a.vega-button-link-danger .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1))}a.vega-button-link-danger:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-size-default .vega-button-link-button-container{width:40px;height:40px;padding:10px}a.vega-button-link-size-large .vega-button-link-button-container{width:56px;height:56px;padding:14px}a.vega-button-link-size-small .vega-button-link-button-container{width:32px;height:32px;padding:6px}a.vega-button-link-size-default .vega-button-link-icon,a.vega-button-link-size-small .vega-button-link-icon{width:16px;height:16px;line-height:16px}a.vega-button-link-size-large .vega-button-link-icon{width:24px;height:24px;line-height:24px}a .vega-button-link-label{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.vega-button-link-disabled){pointer-events:none}:host(.vega-button-link-disabled) a{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));text-decoration:none;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}:host(.vega-button-link-disabled) a.vega-button-link .vega-button-link-button-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a:focus>.vega-button-link-content{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.button-group-item-button-tertiary.vega-button-link-disabled) a{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}';export{p as vega_button_link}
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as t,H as a,g as r}from"./p-6b2342e0.js";import{c as n}from"./p-86194314.js";import{s as o}from"./p-519a7d55.js";import{C as s}from"./p-590fd123.js";import{C as c}from"./p-2d0d575f.js";import{C as h,F as l,g as p}from"./p-a528714c.js";import{O as d}from"./p-331a62d5.js";import{f as g,a as x}from"./p-6c170474.js";import{c as b,M as f,V as v,I as m}from"./p-6e1ab235.js";import{V as u,I as k}from"./p-4415ad28.js";import{F as w}from"./p-a8792e3d.js";import{c as y}from"./p-02c9796a.js";import{f as j}from"./p-d64fab3d.js";import{e as z}from"./p-7c39ce96.js";import{d as C}from"./p-31ac7386.js";import{C as I}from"./p-1a51bf6f.js";import{R}from"./p-280cbcdb.js";import{C as D}from"./p-75b58efe.js";import{C as O}from"./p-e52890db.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-dad3ba5f.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-021d4ae4.js";import"./p-ab834f06.js";import"./p-40f39194.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-5eb7f382.js";import"./p-b7f3221f.js";import"./p-5f377954.js";import"./p-18e8d9b7.js";import"./p-5a25014f.js";var V=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};class E extends v{connectedCallback(){this.checkboxGroup=g(this.host,"vega-checkbox-group")||g(this.host,"vega-selection-tile-group"),this.fieldErrorObserver=new d(this.canAcceptFieldErrorObserver.bind(this),this.fieldErrorObserverListener.bind(this)),c.register(C.getSubject(this.checkboxGroup||this.host,z),this.fieldErrorObserver)}disconnectedCallback(){c.unregister(C.getSubject(this.checkboxGroup||this.host,z),this.fieldErrorObserver)}canAcceptFieldErrorObserver(){return!0}fieldErrorObserverListener(e){this.showError=e.showError}}V([b({writable:!0})],E.prototype,"showError",void 0),V([b()],E.prototype,"host",void 0),V([f("connectedCallback")],E.prototype,"connectedCallback",null),V([f("disconnectedCallback")],E.prototype,"disconnectedCallback",null);var F=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};const G=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.vegaCheckboxShowErrorController=new E,this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new s:null}],defaultValue:e=>""!==e.identifier&&"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.inputRef]}),this.changeEventEmitter=y(G,j),this.dropdownEventPrevent=new I([j],(()=>this.host),{customPreventHandle:e=>{e.stopPropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new u,this.groupDisabled=!1,this.showError=!1,this.identifier="",this.value=""!==this.identifier&&"",this.checked=!1,this.disabled=!1,this.size="default",this.required=!1,this.isValid=null,this.onCheckBoxChange=e=>{this.checked=e.currentTarget.checked},this.onSelectedIconClick=e=>{e.stopPropagation()}}watchCheckedChange(){this.initValue(),this.changeEventEmitter.emit(this.value),c.notify(h,{host:this.host,detail:this.value}),c.notify(l,{host:this.host,detail:this.value})}disconnectedCallback(){this.unRegisterGroupDisabledObserver()}componentWillLoad(){this.initValue(),this.initAndRegisterGroupDisabledObserver()}componentDidRender(){""===this.host.innerHTML.trim()&&this.labelElement.classList.add("vega-hidden")}async setValue(e){this.checked=this.identifier?e===this.identifier:!0===e}render(){var e;const i="VEGA-CHECKBOX-GROUP"==(null===(e=this.host.parentElement)||void 0===e?void 0:e.nodeName);return o(t(a,{class:{"vega-flex-shrink-0 v-min-w-min":i,checked:this.checked,disabled:this.isDisabled()}},t("label",{class:x(["vega-checkbox-container",this.showError&&"error",this.size&&`size-${this.size}`]),ref:e=>this.inputContainerRef=e},t("input",{ref:e=>this.inputRef=e,type:"checkbox",checked:this.checked,value:this.identifier,onChange:this.onCheckBoxChange,"aria-label":this.identifier||"No label defined",disabled:this.isDisabled(),role:"button",tabIndex:0,onKeyDown:n()}),t("span",{class:"vega-checkbox-icon",onClick:this.onSelectedIconClick,tabIndex:-1},this.renderIconDom()),t("div",{class:"vega-checkbox-label-container",ref:e=>this.labelElement=e},this.renderLabelDom(),this.renderRequireDom()))),this.host)}renderIconDom(){return this.checked?t("vega-icon",{icon:"checkmark",size:"small"===this.size?"size-12":"size-16"}):null}renderLabelDom(){return t("span",{class:"vega-checkbox-label"},t("slot",null))}renderRequireDom(){return t("span",{class:{"vega-require":this.required}},this.required?"*":"")}initValue(){this.value=""!==this.identifier?this.checked?this.identifier:"":this.checked}isDisabled(){return this.disabled||this.groupDisabled}canAcceptGroupDisabledObserver(e){return g(this.host,"vega-checkbox-group")===e.host}groupDisabledObserverListener(e){this.groupDisabled=e.host.disabled}initAndRegisterGroupDisabledObserver(){g(this.host,"vega-checkbox-group")&&(this.groupDisabledObserver=new d(this.canAcceptGroupDisabledObserver.bind(this),this.groupDisabledObserverListener.bind(this)),c.register(p,this.groupDisabledObserver))}unRegisterGroupDisabledObserver(){this.groupDisabledObserver&&c.unregister(p,this.groupDisabledObserver)}get host(){return r(this)}static get watchers(){return{checked:["watchCheckedChange"]}}};F([k()],G.prototype,"globalSlimmers",void 0),F([m()],G.prototype,"vegaCheckboxShowErrorController",void 0),F([m()],G.prototype,"formFieldController",void 0),F([m()],G.prototype,"changeEventEmitter",void 0),F([m()],G.prototype,"dropdownEventPrevent",void 0),F([m()],G.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),G.style=':host{display:inline-block;vertical-align:middle}.vega-checkbox-container{position:relative;display:flex;-webkit-tap-highlight-color:transparent}.vega-checkbox-container>input[type=checkbox]{position:absolute;left:0px;top:0px;opacity:0;width:24px;height:24px;padding:0px;margin:0px}.vega-checkbox-container>.vega-checkbox-icon{display:inline-block;box-sizing:border-box;width:24px;height:24px;border-style:solid;border-width:2px;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1));position:relative;left:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:4px;min-width:24px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-checkbox-container>.vega-checkbox-icon:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-checkbox-container>input[type=checkbox]:focus-visible+.vega-checkbox-icon{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px}.vega-checkbox-container>.vega-checkbox-icon:active{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon{display:inline-flex;align-items:center;justify-content:center}:host(.disabled) .vega-checkbox-container{cursor:not-allowed}:host(:not(.disabled)) .vega-checkbox-container{cursor:pointer}.vega-checkbox-container .vega-require{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px;vertical-align:middle}.vega-checkbox-container.error>.vega-checkbox-icon{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-checkbox-container.error>.vega-checkbox-icon:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon:hover{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-checkbox-container.error>input[type=checkbox]:focus-visible+.vega-checkbox-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}.vega-checkbox-container.error>.vega-checkbox-icon:active{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-danger-active, 189, 41, 71, 1))}:host(.disabled) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.checked.disabled) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.checked.disabled) .vega-checkbox-container>.vega-checkbox-icon>vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-checkbox-container>.vega-checkbox-label-container{display:inline-block;margin-left:12px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-checkbox-container>.vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-checkbox-container>.vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-checkbox-container>.vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.disabled) .vega-checkbox-container>.vega-checkbox-label-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.vega-error{display:block;margin-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-checkbox-label-container.vega-hidden{display:none}.vega-hidden{display:none}.size-default input[type=checkbox]{width:24px;height:24px}.size-default .vega-checkbox-icon{width:24px;height:24px;min-width:24px;border-radius:4px}.size-default .vega-checkbox-label-container{margin-left:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.size-default .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.size-default .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.size-default .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.size-small input[type=checkbox]{width:16px;height:16px}.size-small .vega-checkbox-icon{width:16px;height:16px;min-width:16px;border-radius:2px}.size-small .vega-checkbox-label-container{margin-left:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}';var P=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};const q=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new R:null}],defaultValue:[],validationRulesName:"validationRules",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>this.touchableAreaGetter()}),this.checkboxValueChangeObserver=new O(h,(e=>this.childCheckboxValueChange(e))),this.checkboxEventPrevent=new I([j],(()=>this.vegaFlexElement)),this.changeEventEmitter=y(q,j),this.vegaComponentUsageRuntimeMetricsSlimmer=new u,this.label="",this.value=[],this.vegaFlexProp={},this.disabled=!1,this.required=!1,this.hint="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.childCheckboxValueChange=e=>{this.syncCheckboxItemsValue(e.detail,e.host.identifier)},this.touchableAreaGetter=()=>{const e=[];return this.vegaCheckboxArray&&this.vegaCheckboxArray.forEach((async i=>{e.push(i.shadowRoot.querySelector("input"))})),e}}async watchValue(){this.initCheckboxArray(),this.changeEventEmitter.emit(this.value),c.notify(l,{host:this.host,detail:this.value})}watchVegaFlexProp(){this.setVegaFlexProperty()}async watchDisabled(){this.notifyGroupDisabledChange()}watchValidationRules(){}componentDidLoad(){this.setVegaFlexProperty(),this.initCheckboxArray(),this.notifyGroupDisabledChange()}render(){return o(t(a,null,this.renderLabelDom(),t("div",{class:"vega-checkbox-group-container",ref:e=>this.inputContainerRef=e},t("vega-flex",{ref:e=>{this.vegaFlexElement=e}},t("slot",null))),this.renderHintDom()),this.host)}renderLabelDom(){return this.label&&t("div",{class:"vega-label"},t("label",{"aria-label":this.label},this.label,this.renderRequireDom()))}renderRequireDom(){return this.required?t("span",{class:"vega-require"},"*"):null}renderHintDom(){return this.hint&&t("div",{class:"vega-hint"},t("label",null,this.hint))}setVegaFlexProperty(){this.vegaFlexProp&&Object.assign(this.vegaFlexElement,{gap:"size-16",direction:"col"},this.vegaFlexProp)}syncCheckboxItemsValue(e,i){e&&!this.value.includes(i)?this.value=[...this.value,i]:!e&&this.value.includes(i)&&(this.value=[...this.value.filter((e=>e!==i))])}initCheckboxArray(){this.vegaCheckboxArray=Array.from(this.host.querySelectorAll("vega-checkbox")),this.vegaCheckboxArray.forEach((e=>{e.checked=!!(this.value&&this.value.length>0)&&this.value.includes(e.identifier)}))}notifyGroupDisabledChange(){c.notify(p,{host:this.host})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],vegaFlexProp:["watchVegaFlexProp"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};P([k()],q.prototype,"globalSlimmers",void 0),P([m()],q.prototype,"formFieldController",void 0),P([m()],q.prototype,"checkboxValueChangeObserver",void 0),P([m()],q.prototype,"checkboxEventPrevent",void 0),P([m()],q.prototype,"changeEventEmitter",void 0),P([m()],q.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),P([D()],q.prototype,"watchVegaFlexProp",null),q.style=':host{display:block;text-align:left;line-height:normal}.vega-error{display:block;margin-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-label{margin-bottom:16px}.vega-label label{font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:30px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}.vega-require{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px}.vega-hint{padding-top:12px}.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}';export{G as vega_checkbox,q as vega_checkbox_group}