@heartlandone/vega 2.81.0 → 2.83.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 (516) hide show
  1. package/dist/cjs/{app-globals-25e1bfac.js → app-globals-40b1b1b2.js} +7 -7
  2. package/dist/cjs/{aria-dialog-focusable-trap-slimmer-ced9566d.js → aria-dialog-focusable-trap-slimmer-5507f917.js} +1 -1
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-dd0bb8b6.js → child-nodes-event-prevent-slimmer-9b7095a4.js} +1 -1
  4. package/dist/cjs/{code-block-24b3d0e7.js → code-block-b1f8aded.js} +3 -3
  5. package/dist/cjs/{component-value-history-controller-slimmer.abstract-bd662b32.js → component-value-history-controller-slimmer.abstract-99fbd1f2.js} +4 -4
  6. package/dist/cjs/{content-state-0f26036c.js → content-state-648652b4.js} +3 -3
  7. package/dist/cjs/{dark-mode-style-controller-3a04af3d.js → dark-mode-style-controller-bd765afb.js} +2 -322
  8. package/dist/cjs/{date-required-rule-4377217a.js → date-required-rule-6addf5dd.js} +1 -1
  9. package/dist/cjs/{design-token-40276b11.js → design-token-93070bb8.js} +6 -130
  10. package/dist/cjs/drop-file-accept-filter-slimmer-cd619cc7.js +64 -0
  11. package/dist/cjs/{dto-renderer-manager-ae5fcbba.js → dto-renderer-manager-7eb5c5ce.js} +42 -2
  12. package/dist/cjs/{element-appender-slimmer-be1b4d57.js → element-appender-slimmer-52c2b455.js} +87 -11
  13. package/dist/cjs/{event-emit-slimmer-bee6b676.js → event-emit-slimmer-bcb458b2.js} +1 -1
  14. package/dist/cjs/{form-field-controller-slimmer-982dbfe4.js → form-field-controller-slimmer-0f3a028e.js} +3 -3
  15. package/dist/cjs/{image-annotation-action-e0df5a20.js → image-annotation-action-0339e983.js} +3 -3
  16. package/dist/cjs/index-58ea899e.js +4 -0
  17. package/dist/cjs/index.cjs.js +19 -17
  18. package/dist/cjs/{inject-keyboard-manager-12b65e98.js → inject-keyboard-manager-2d9c4f92.js} +1 -1
  19. package/dist/cjs/{internal-translation-controller-9f58a4e4.js → internal-translation-controller-fb1532f4.js} +3 -0
  20. package/dist/cjs/{internal-vega-event-manager-cc0f511c.js → internal-vega-event-manager-fef893bf.js} +1 -0
  21. package/dist/cjs/{keyboard-manager-c89a66d3.js → keyboard-manager-5ed6c472.js} +1 -1
  22. package/dist/cjs/{keyboard-manager-slimmer-93fcbf46.js → keyboard-manager-slimmer-879ff4f3.js} +1 -1
  23. package/dist/cjs/loader.cjs.js +14 -13
  24. package/dist/cjs/{month-view-generator-0d25e950.js → month-view-generator-d262e6ce.js} +1 -1
  25. package/dist/cjs/{public-rules-652ec269.js → public-rules-bce88d4e.js} +10 -9
  26. package/dist/cjs/{range-cdd61881.js → range-5bd6d72b.js} +1 -1
  27. package/dist/cjs/{responsive-format-facade-9cae7f27.js → responsive-format-facade-2cab7344.js} +1 -1
  28. package/dist/cjs/{rich-text-editor-required-rule-4b919054.js → rich-text-editor-required-rule-e8a922be.js} +1 -1
  29. package/dist/cjs/{split-cell-operation-3596f738.js → split-cell-operation-bb388de6.js} +4 -4
  30. package/dist/cjs/state-border-formatter-4e5e4ed0.js +133 -0
  31. package/dist/cjs/{string-format-strategy.abstract-ebdb2573.js → string-format-strategy.abstract-9a35e3b4.js} +1 -1
  32. package/dist/cjs/{string-input-formatter-slimmer-9b6a8399.js → string-input-formatter-slimmer-1018ddec.js} +3 -3
  33. package/dist/cjs/{string-mask-strategy-6cc9f391.js → string-mask-strategy-3aa17744.js} +2 -2
  34. package/dist/cjs/{style-formatter-18289c4d.js → style-formatter-2226c869.js} +2 -2
  35. package/dist/cjs/{sub-state-notify-slimmer-39bfcfe3.js → sub-state-notify-slimmer-b33171b0.js} +1 -1
  36. package/dist/cjs/{sub-state-observer-slimmer-e5b50cbf.js → sub-state-observer-slimmer-b8f6f27b.js} +1 -1
  37. package/dist/cjs/{time-required-rule-3517beff.js → time-required-rule-970dfdca.js} +1 -1
  38. package/dist/cjs/tinycolor-polyfill-502efaa8.js +325 -0
  39. package/dist/cjs/{token-extension-addc97c1.js → token-extension-361273fb.js} +85 -28
  40. package/dist/cjs/{translation-slimmer-c069ca84.js → translation-slimmer-d0c77ad2.js} +1 -1
  41. package/dist/cjs/{type-guard-362d7da3.js → type-guard-3ec852d7.js} +28 -1
  42. package/dist/cjs/{valid-credit-card-number-rule-1d8bf49c.js → valid-credit-card-number-rule-99d1bb34.js} +1 -1
  43. package/dist/cjs/vega-accordion.cjs.entry.js +7 -6
  44. package/dist/cjs/vega-app-footer.cjs.entry.js +2 -1
  45. package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -7
  46. package/dist/cjs/vega-banner.cjs.entry.js +15 -4
  47. package/dist/cjs/vega-box.cjs.entry.js +6 -5
  48. package/dist/cjs/vega-brand-logo.cjs.entry.js +2 -1
  49. package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
  50. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -8
  51. package/dist/cjs/vega-button-group_2.cjs.entry.js +102 -13
  52. package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-button.cjs.entry.js +8 -8
  54. package/dist/cjs/vega-calendar_4.cjs.entry.js +10 -10
  55. package/dist/cjs/vega-card.cjs.entry.js +5 -4
  56. package/dist/cjs/vega-carousel.cjs.entry.js +5 -5
  57. package/dist/cjs/vega-checkbox_2.cjs.entry.js +44 -11
  58. package/dist/cjs/vega-chip.cjs.entry.js +8 -7
  59. package/dist/cjs/vega-code-block.cjs.entry.js +14 -13
  60. package/dist/cjs/vega-color-picker.cjs.entry.js +26 -8
  61. package/dist/cjs/vega-color-swatch.cjs.entry.js +245 -0
  62. package/dist/cjs/vega-combo-box.cjs.entry.js +10 -10
  63. package/dist/cjs/vega-date-picker_2.cjs.entry.js +20 -20
  64. package/dist/cjs/vega-dialog_2.cjs.entry.js +80 -247
  65. package/dist/cjs/vega-divider.cjs.entry.js +5 -4
  66. package/dist/cjs/vega-dropdown_5.cjs.entry.js +33 -15
  67. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  68. package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
  69. package/dist/cjs/vega-file-uploader.cjs.entry.js +40 -90
  70. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -4
  71. package/dist/cjs/vega-flex.cjs.entry.js +6 -5
  72. package/dist/cjs/vega-font.cjs.entry.js +5 -4
  73. package/dist/cjs/vega-form.cjs.entry.js +9 -9
  74. package/dist/cjs/vega-grid.cjs.entry.js +5 -4
  75. package/dist/cjs/vega-icon.cjs.entry.js +5 -4
  76. package/dist/cjs/vega-image-uploader.cjs.entry.js +78 -13
  77. package/dist/cjs/vega-input-credit-card.cjs.entry.js +11 -11
  78. package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -11
  79. package/dist/cjs/vega-input-passcode.cjs.entry.js +10 -10
  80. package/dist/cjs/vega-input-phone-number.cjs.entry.js +9 -9
  81. package/dist/cjs/vega-input-range.cjs.entry.js +8 -8
  82. package/dist/cjs/vega-input-select.cjs.entry.js +50 -15
  83. package/dist/cjs/vega-input.cjs.entry.js +11 -11
  84. package/dist/cjs/{vega-internal-event-id-a1837fa2.js → vega-internal-event-id-87014e4f.js} +2 -0
  85. package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
  86. package/dist/cjs/vega-left-nav_5.cjs.entry.js +14 -12
  87. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  88. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +4 -4
  89. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
  90. package/dist/cjs/vega-pagination.cjs.entry.js +9 -9
  91. package/dist/cjs/vega-popover_2.cjs.entry.js +12 -11
  92. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +34 -11
  93. package/dist/cjs/vega-radio_2.cjs.entry.js +10 -10
  94. package/dist/cjs/vega-rich-text-content.cjs.entry.js +11 -10
  95. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +75 -29
  96. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +13 -12
  97. package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
  98. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +10 -10
  99. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +8 -8
  100. package/dist/cjs/vega-sidenav_3.cjs.entry.js +8 -8
  101. package/dist/cjs/vega-signature-capture.cjs.entry.js +11 -10
  102. package/dist/cjs/vega-stepper.cjs.entry.js +9 -9
  103. package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
  104. package/dist/cjs/vega-table_11.cjs.entry.js +434 -287
  105. package/dist/cjs/vega-text.cjs.entry.js +16 -2
  106. package/dist/cjs/vega-textarea.cjs.entry.js +7 -7
  107. package/dist/cjs/vega-time-picker_2.cjs.entry.js +14 -14
  108. package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
  109. package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -8
  110. package/dist/cjs/vega.cjs.js +14 -13
  111. package/dist/cjs/{wait-for-component-did-render-b6d12d51.js → wait-for-component-did-render-16863a21.js} +1 -1
  112. package/dist/collection/collection-manifest.json +6 -0
  113. package/dist/collection/components/vega-banner/slimmers/renderers/vega-banner-renderer.js +11 -2
  114. package/dist/collection/components/vega-banner/vega-banner.js +3 -1
  115. package/dist/collection/components/vega-button/vega-button.css +4 -0
  116. package/dist/collection/components/vega-button-group/slimmers/controllers/vega-button-group-all-items-disabled-controller.js +64 -0
  117. package/dist/collection/components/vega-button-group/vega-button-group-item/slimmers/controllers/vega-button-group-item-sub-state-controller.js +7 -0
  118. package/dist/collection/components/vega-button-group/vega-button-group-item/slimmers/renderers/vega-button-group-item-renderer.js +6 -2
  119. package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +4 -2
  120. package/dist/collection/components/vega-button-group/vega-button-group.js +20 -1
  121. package/dist/collection/components/vega-checkbox/vega-checkbox.css +19 -14
  122. package/dist/collection/components/vega-checkbox/vega-checkbox.js +57 -3
  123. package/dist/collection/components/vega-color-picker/vega-color-picker.css +0 -1
  124. package/dist/collection/components/vega-color-picker/vega-color-picker.js +40 -1
  125. package/dist/collection/components/vega-color-swatch/slimmers/renderers/vega-color-swatch-renderer.js +127 -0
  126. package/dist/collection/components/vega-color-swatch/vega-color-swatch.css +155 -0
  127. package/dist/collection/components/vega-color-swatch/vega-color-swatch.js +314 -0
  128. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.js +7 -0
  129. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +5 -1
  130. package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +2 -1
  131. package/dist/collection/components/vega-dropdown/vega-dropdown.js +38 -0
  132. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +2 -2
  133. package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-default-content-renderer.js +45 -1
  134. package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-preview-content-renderer.js +16 -1
  135. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +5 -0
  136. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +17 -4
  137. package/dist/collection/components/vega-input-select/vega-input-select.js +76 -0
  138. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.js +9 -3
  139. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +0 -4
  140. package/dist/collection/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.js +17 -2
  141. package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +28 -28
  142. package/dist/collection/components/vega-modal/vega-modal.css +2 -2
  143. package/dist/collection/components/vega-modal/vega-modal.js +0 -5
  144. package/dist/collection/components/vega-pagination/internal/vega-pagination-go-to.js +1 -1
  145. package/dist/collection/components/vega-pagination/vega-pagination-page-selector-mobile/slimmers/renderers/page-selector-mobile-renderer.js +1 -1
  146. package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-step-controller.js +10 -2
  147. package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +1 -1
  148. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +39 -0
  149. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +28 -3
  150. package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +24 -6
  151. package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +23 -8
  152. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +2 -2
  153. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +18 -1
  154. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +1 -1
  155. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +5 -3
  156. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +8 -3
  157. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +47 -0
  158. package/dist/collection/components/vega-stepper/vega-stepper.css +12 -0
  159. package/dist/collection/components/vega-stepper/vega-stepper.js +2 -1
  160. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +25 -2
  161. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +28 -1
  162. package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +12 -10
  163. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +14 -12
  164. package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +5 -4
  165. package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.js +8 -1
  166. package/dist/collection/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.js +16 -2
  167. package/dist/collection/components/vega-text/vega-text.js +1 -1
  168. package/dist/collection/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.js +1 -0
  169. package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.css +1 -0
  170. package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.js +1 -1
  171. package/dist/collection/components/vega-tooltip/vega-tooltip.js +1 -1
  172. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +1 -0
  173. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  174. package/dist/collection/helpers/rte-manager/dto-renderer-manager.js +42 -2
  175. package/dist/collection/{components/vega-file-uploader/slimmers/controllers/vega-file-uploader-drop-file-filter-controller.js → helpers/slimmers/drop-file-accept-filter-slimmer.js} +13 -5
  176. package/dist/collection/helpers/slimmers/element-appender/body-positioned-wrapper/third-party-dialog-wrapper.js +73 -0
  177. package/dist/collection/helpers/slimmers/element-appender/element-appender-container-controller.js +6 -0
  178. package/dist/collection/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.js +96 -0
  179. package/dist/collection/helpers/translation/locales/en.js +3 -0
  180. package/dist/collection/types/type-guard.js +26 -0
  181. package/dist/esm/{app-globals-80a7d395.js → app-globals-f67d0eaf.js} +7 -7
  182. package/dist/esm/{aria-dialog-focusable-trap-slimmer-cc6a8c3e.js → aria-dialog-focusable-trap-slimmer-853a91de.js} +1 -1
  183. package/dist/esm/{child-nodes-event-prevent-slimmer-2ecc3e1f.js → child-nodes-event-prevent-slimmer-9c24d4fc.js} +1 -1
  184. package/dist/esm/{code-block-cd913077.js → code-block-b8be290a.js} +3 -3
  185. package/dist/esm/{component-value-history-controller-slimmer.abstract-e595761d.js → component-value-history-controller-slimmer.abstract-10ccf8e6.js} +4 -4
  186. package/dist/esm/{content-state-89f8eecb.js → content-state-72b513d1.js} +3 -3
  187. package/dist/esm/{dark-mode-style-controller-82e5c1c6.js → dark-mode-style-controller-e9a6b097.js} +1 -321
  188. package/dist/esm/{date-required-rule-2b08f32c.js → date-required-rule-891a6a57.js} +1 -1
  189. package/dist/esm/{design-token-7566d54c.js → design-token-59d07aa2.js} +6 -130
  190. package/dist/esm/drop-file-accept-filter-slimmer-ad759e4a.js +62 -0
  191. package/dist/esm/{dto-renderer-manager-12bc9121.js → dto-renderer-manager-abc7eb5f.js} +42 -2
  192. package/dist/esm/{element-appender-slimmer-df2a2da2.js → element-appender-slimmer-29c94a18.js} +87 -11
  193. package/dist/esm/{event-emit-slimmer-9abc9241.js → event-emit-slimmer-32da9d90.js} +1 -1
  194. package/dist/esm/{form-field-controller-slimmer-40fcb5c2.js → form-field-controller-slimmer-899864a8.js} +3 -3
  195. package/dist/esm/{image-annotation-action-6048d32e.js → image-annotation-action-ebd6c421.js} +3 -3
  196. package/dist/esm/index-090d31ca.js +4 -0
  197. package/dist/esm/index.js +19 -17
  198. package/dist/esm/{inject-keyboard-manager-c6557f50.js → inject-keyboard-manager-dc1d7135.js} +1 -1
  199. package/dist/esm/{internal-translation-controller-b08aa9ab.js → internal-translation-controller-4fb104b2.js} +3 -0
  200. package/dist/esm/{internal-vega-event-manager-59f5bd47.js → internal-vega-event-manager-8a657bac.js} +1 -0
  201. package/dist/esm/{keyboard-manager-c7b125d7.js → keyboard-manager-6ea9968b.js} +1 -1
  202. package/dist/esm/{keyboard-manager-slimmer-6109039b.js → keyboard-manager-slimmer-7eed4734.js} +1 -1
  203. package/dist/esm/loader.js +14 -13
  204. package/dist/esm/{month-view-generator-139ace5a.js → month-view-generator-aaa27fce.js} +1 -1
  205. package/dist/esm/{public-rules-e42bce9d.js → public-rules-f2005e11.js} +10 -9
  206. package/dist/esm/{range-b76edec7.js → range-ed532278.js} +1 -1
  207. package/dist/esm/{responsive-format-facade-151dbd10.js → responsive-format-facade-e9926018.js} +1 -1
  208. package/dist/esm/{rich-text-editor-required-rule-1fc7c040.js → rich-text-editor-required-rule-b559cf1a.js} +1 -1
  209. package/dist/esm/{split-cell-operation-548ea374.js → split-cell-operation-5587f594.js} +4 -4
  210. package/dist/esm/state-border-formatter-be51463d.js +129 -0
  211. package/dist/esm/{string-format-strategy.abstract-6488031a.js → string-format-strategy.abstract-0157b3c5.js} +1 -1
  212. package/dist/esm/{string-input-formatter-slimmer-625e17a2.js → string-input-formatter-slimmer-33ed3478.js} +3 -3
  213. package/dist/esm/{string-mask-strategy-a165d316.js → string-mask-strategy-b58891b5.js} +2 -2
  214. package/dist/esm/{style-formatter-280757ae.js → style-formatter-9662ae88.js} +2 -2
  215. package/dist/esm/{sub-state-notify-slimmer-6c972bb4.js → sub-state-notify-slimmer-1f907173.js} +1 -1
  216. package/dist/esm/{sub-state-observer-slimmer-53643b5c.js → sub-state-observer-slimmer-090c500a.js} +1 -1
  217. package/dist/esm/{time-required-rule-3f5a8822.js → time-required-rule-a9dc8473.js} +1 -1
  218. package/dist/esm/tinycolor-polyfill-7be0eb93.js +322 -0
  219. package/dist/esm/{token-extension-5ee7a3f1.js → token-extension-0710dbc5.js} +85 -28
  220. package/dist/esm/{translation-slimmer-35b1d0fa.js → translation-slimmer-4faae5a3.js} +1 -1
  221. package/dist/esm/{type-guard-f6c9c89d.js → type-guard-152070e9.js} +28 -2
  222. package/dist/esm/{valid-credit-card-number-rule-3bf19ad6.js → valid-credit-card-number-rule-a7907cb7.js} +1 -1
  223. package/dist/esm/vega-accordion.entry.js +7 -6
  224. package/dist/esm/vega-app-footer.entry.js +2 -1
  225. package/dist/esm/vega-app-header-button.entry.js +8 -7
  226. package/dist/esm/vega-banner.entry.js +15 -4
  227. package/dist/esm/vega-box.entry.js +6 -5
  228. package/dist/esm/vega-brand-logo.entry.js +2 -1
  229. package/dist/esm/vega-breadcrumb.entry.js +3 -3
  230. package/dist/esm/vega-button-circle.entry.js +9 -8
  231. package/dist/esm/vega-button-group_2.entry.js +102 -13
  232. package/dist/esm/vega-button-link.entry.js +3 -3
  233. package/dist/esm/vega-button.entry.js +8 -8
  234. package/dist/esm/vega-calendar_4.entry.js +10 -10
  235. package/dist/esm/vega-card.entry.js +5 -4
  236. package/dist/esm/vega-carousel.entry.js +5 -5
  237. package/dist/esm/vega-checkbox_2.entry.js +44 -11
  238. package/dist/esm/vega-chip.entry.js +8 -7
  239. package/dist/esm/vega-code-block.entry.js +14 -13
  240. package/dist/esm/vega-color-picker.entry.js +26 -8
  241. package/dist/esm/vega-color-swatch.entry.js +241 -0
  242. package/dist/esm/vega-combo-box.entry.js +10 -10
  243. package/dist/esm/vega-date-picker_2.entry.js +20 -20
  244. package/dist/esm/vega-dialog_2.entry.js +80 -247
  245. package/dist/esm/vega-divider.entry.js +5 -4
  246. package/dist/esm/vega-dropdown_5.entry.js +33 -15
  247. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  248. package/dist/esm/vega-field-label.entry.js +2 -2
  249. package/dist/esm/vega-file-uploader.entry.js +40 -90
  250. package/dist/esm/vega-flag-icon.entry.js +5 -4
  251. package/dist/esm/vega-flex.entry.js +6 -5
  252. package/dist/esm/vega-font.entry.js +5 -4
  253. package/dist/esm/vega-form.entry.js +9 -9
  254. package/dist/esm/vega-grid.entry.js +5 -4
  255. package/dist/esm/vega-icon.entry.js +5 -4
  256. package/dist/esm/vega-image-uploader.entry.js +78 -13
  257. package/dist/esm/vega-input-credit-card.entry.js +11 -11
  258. package/dist/esm/vega-input-numeric.entry.js +11 -11
  259. package/dist/esm/vega-input-passcode.entry.js +10 -10
  260. package/dist/esm/vega-input-phone-number.entry.js +9 -9
  261. package/dist/esm/vega-input-range.entry.js +8 -8
  262. package/dist/esm/vega-input-select.entry.js +50 -15
  263. package/dist/esm/vega-input.entry.js +11 -11
  264. package/dist/esm/{vega-internal-event-id-70bd893d.js → vega-internal-event-id-194bac82.js} +2 -1
  265. package/dist/esm/vega-item-toggle.entry.js +2 -2
  266. package/dist/esm/vega-left-nav_5.entry.js +14 -12
  267. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  268. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
  269. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
  270. package/dist/esm/vega-pagination.entry.js +9 -9
  271. package/dist/esm/vega-popover_2.entry.js +12 -11
  272. package/dist/esm/vega-progress-tracker_2.entry.js +34 -11
  273. package/dist/esm/vega-radio_2.entry.js +10 -10
  274. package/dist/esm/vega-rich-text-content.entry.js +11 -10
  275. package/dist/esm/vega-rich-text-editor_4.entry.js +75 -29
  276. package/dist/esm/vega-rich-text-table-properties_3.entry.js +13 -12
  277. package/dist/esm/vega-segment-control.entry.js +2 -2
  278. package/dist/esm/vega-selection-chip_2.entry.js +10 -10
  279. package/dist/esm/vega-selection-tile_2.entry.js +8 -8
  280. package/dist/esm/vega-sidenav_3.entry.js +8 -8
  281. package/dist/esm/vega-signature-capture.entry.js +11 -10
  282. package/dist/esm/vega-stepper.entry.js +9 -9
  283. package/dist/esm/vega-tab-group_2.entry.js +3 -3
  284. package/dist/esm/vega-table_11.entry.js +434 -287
  285. package/dist/esm/vega-text.entry.js +16 -2
  286. package/dist/esm/vega-textarea.entry.js +7 -7
  287. package/dist/esm/vega-time-picker_2.entry.js +14 -14
  288. package/dist/esm/vega-toggle-switch.entry.js +6 -6
  289. package/dist/esm/vega-tooltip_2.entry.js +9 -8
  290. package/dist/esm/vega.js +14 -13
  291. package/dist/esm/{wait-for-component-did-render-6980a1a6.js → wait-for-component-did-render-30cde59c.js} +1 -1
  292. package/dist/sri/vega-sri-manifest.json +367 -351
  293. package/dist/types/components/vega-banner/slimmers/renderers/vega-banner-renderer.d.ts +6 -0
  294. package/dist/types/components/vega-banner/vega-banner.d.ts +2 -0
  295. package/dist/types/components/vega-button-group/slimmers/controllers/vega-button-group-all-items-disabled-controller.d.ts +21 -0
  296. package/dist/types/components/vega-button-group/vega-button-group-item/slimmers/controllers/vega-button-group-item-sub-state-controller.d.ts +1 -0
  297. package/dist/types/components/vega-button-group/vega-button-group-item/slimmers/renderers/vega-button-group-item-renderer.d.ts +1 -0
  298. package/dist/types/components/vega-button-group/vega-button-group-item/vega-button-group-item.d.ts +1 -0
  299. package/dist/types/components/vega-button-group/vega-button-group.d.ts +5 -0
  300. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +22 -1
  301. package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +14 -0
  302. package/dist/types/components/vega-color-swatch/slimmers/renderers/vega-color-swatch-renderer.d.ts +48 -0
  303. package/dist/types/components/vega-color-swatch/types.d.ts +5 -0
  304. package/dist/types/components/vega-color-swatch/vega-color-swatch.d.ts +86 -0
  305. package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.d.ts +1 -0
  306. package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +1 -0
  307. package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +4 -0
  308. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +10 -0
  309. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +2 -2
  310. package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-default-content-renderer.d.ts +25 -0
  311. package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-preview-content-renderer.d.ts +10 -0
  312. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +2 -0
  313. package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +3 -0
  314. package/dist/types/components/vega-input-select/types.d.ts +14 -0
  315. package/dist/types/components/vega-input-select/vega-input-select.d.ts +19 -1
  316. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.d.ts +1 -0
  317. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +0 -1
  318. package/dist/types/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.d.ts +3 -2
  319. package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +3 -2
  320. package/dist/types/components/vega-modal/vega-modal.d.ts +0 -2
  321. package/dist/types/components/vega-pagination/types.d.ts +7 -1
  322. package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-step-controller.d.ts +1 -0
  323. package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +15 -0
  324. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +20 -2
  325. package/dist/types/components/vega-rich-text-editor/extensions/languages/language-extension.d.ts +13 -2
  326. package/dist/types/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.d.ts +15 -4
  327. package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +1 -1
  328. package/dist/types/components/vega-rich-text-editor/interface.d.ts +4 -0
  329. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +7 -0
  330. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +1 -0
  331. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.d.ts +4 -3
  332. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +14 -1
  333. package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +8 -1
  334. package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +5 -1
  335. package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +5 -0
  336. package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +5 -0
  337. package/dist/types/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.d.ts +1 -0
  338. package/dist/types/components/vega-table/vega-table-head-row/vega-table-head-row.d.ts +4 -0
  339. package/dist/types/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.d.ts +1 -0
  340. package/dist/types/components/vega-text/types.d.ts +5 -3
  341. package/dist/types/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.d.ts +4 -0
  342. package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +4 -0
  343. package/dist/types/components.d.ts +181 -8
  344. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  345. package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +56 -3
  346. package/dist/types/helpers/rte-manager/dto-renderer-manager.d.ts +26 -1
  347. package/dist/types/helpers/slimmers/drop-file-accept-filter-slimmer.d.ts +29 -0
  348. package/dist/types/helpers/slimmers/element-appender/body-positioned-wrapper/third-party-dialog-wrapper.d.ts +45 -0
  349. package/dist/types/helpers/slimmers/element-appender/element-appender-container-controller.d.ts +2 -0
  350. package/dist/types/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.d.ts +48 -0
  351. package/dist/types/helpers/translation/interface.d.ts +4 -1
  352. package/dist/types/types/components.type.d.ts +8 -0
  353. package/dist/types/types/public-api.d.ts +3 -1
  354. package/dist/types/types/type-guard.d.ts +15 -1
  355. package/dist/vega/index.esm.js +1 -1
  356. package/dist/vega/{p-2f99c511.js → p-02467b61.js} +1 -1
  357. package/dist/vega/p-075bb809.entry.js +1 -0
  358. package/dist/vega/{p-59c6f795.js → p-085de8fc.js} +1 -1
  359. package/dist/vega/{p-0fc2ccc4.entry.js → p-0915a8d3.entry.js} +1 -1
  360. package/dist/vega/p-0bcb2945.entry.js +1 -0
  361. package/dist/vega/{p-e22e5aa1.js → p-0bf8743f.js} +1 -1
  362. package/dist/vega/{p-a1d51bc2.js → p-0caf52e0.js} +1 -1
  363. package/dist/vega/{p-42da45e3.entry.js → p-0dbd7723.entry.js} +1 -1
  364. package/dist/vega/{p-98c44c03.js → p-103d20f5.js} +1 -1
  365. package/dist/vega/p-115d6053.entry.js +1 -0
  366. package/dist/vega/{p-0304c3a7.js → p-116e3963.js} +1 -1
  367. package/dist/vega/p-142f371b.entry.js +1 -0
  368. package/dist/vega/p-14de7ba0.entry.js +1 -0
  369. package/dist/vega/p-158c6a9f.entry.js +1 -0
  370. package/dist/vega/{p-42e246e4.entry.js → p-19a30f98.entry.js} +1 -1
  371. package/dist/vega/p-1b48e8a5.entry.js +1 -0
  372. package/dist/vega/{p-e1117034.entry.js → p-1ca95601.entry.js} +1 -1
  373. package/dist/vega/p-25ab7a33.entry.js +1 -0
  374. package/dist/vega/p-264b3309.entry.js +1 -0
  375. package/dist/vega/{p-c0d45f77.entry.js → p-280f63fa.entry.js} +1 -1
  376. package/dist/vega/p-29d31c98.entry.js +1 -0
  377. package/dist/vega/{p-7ac9e8ff.entry.js → p-29f42c27.entry.js} +1 -1
  378. package/dist/vega/p-2b5cf2b3.js +1 -0
  379. package/dist/vega/{p-679b1f00.entry.js → p-30445cd9.entry.js} +1 -1
  380. package/dist/vega/p-318f0df5.js +1 -0
  381. package/dist/vega/p-337a5e76.js +1 -0
  382. package/dist/vega/p-380abceb.entry.js +1 -0
  383. package/dist/vega/p-38af89b9.js +1 -0
  384. package/dist/vega/p-3fae8d3f.entry.js +1 -0
  385. package/dist/vega/{p-49ae8c79.js → p-42141782.js} +1 -1
  386. package/dist/vega/{p-d0ac7af8.js → p-44044ed7.js} +1 -1
  387. package/dist/vega/p-475bd8bf.entry.js +1 -0
  388. package/dist/vega/{p-e753fac2.entry.js → p-47611a83.entry.js} +1 -1
  389. package/dist/vega/p-4e95248c.entry.js +1 -0
  390. package/dist/vega/{p-eccabba7.entry.js → p-513f51ec.entry.js} +1 -1
  391. package/dist/vega/{p-e8fc8495.entry.js → p-51d2e0ab.entry.js} +1 -1
  392. package/dist/vega/p-54ba35e3.entry.js +1 -0
  393. package/dist/vega/{p-dff66a67.entry.js → p-58b6ac33.entry.js} +1 -1
  394. package/dist/vega/p-596bc4f6.entry.js +1 -0
  395. package/dist/vega/{p-757bfca2.entry.js → p-597588d0.entry.js} +1 -1
  396. package/dist/vega/p-5be546c5.js +1 -0
  397. package/dist/vega/p-5f377954.js +1 -1
  398. package/dist/vega/{p-4ed416e7.js → p-5ffdea8e.js} +1 -1
  399. package/dist/vega/{p-90a0b9f3.entry.js → p-608f234f.entry.js} +1 -1
  400. package/dist/vega/{p-3224e47c.js → p-6572e038.js} +1 -1
  401. package/dist/vega/p-6e9f832f.js +1 -0
  402. package/dist/vega/p-783531cf.entry.js +1 -0
  403. package/dist/vega/{p-47a2eec1.entry.js → p-7d85cc74.entry.js} +1 -1
  404. package/dist/vega/p-7df43192.entry.js +1 -0
  405. package/dist/vega/p-81a11dc6.entry.js +1 -0
  406. package/dist/vega/p-8559e36f.entry.js +1 -0
  407. package/dist/vega/{p-f0d605e9.entry.js → p-8583dd34.entry.js} +1 -1
  408. package/dist/vega/p-85abe824.entry.js +1 -0
  409. package/dist/vega/p-874bf8b2.js +1 -0
  410. package/dist/vega/p-8aee6b74.js +1 -0
  411. package/dist/vega/{p-9324dd2c.entry.js → p-8b217c7e.entry.js} +1 -1
  412. package/dist/vega/p-8da66d41.entry.js +1 -0
  413. package/dist/vega/p-90cb665e.entry.js +1 -0
  414. package/dist/vega/{p-fd5ddc55.js → p-956b170c.js} +1 -1
  415. package/dist/vega/{p-001d36af.js → p-9751c801.js} +1 -1
  416. package/dist/vega/p-988401c3.entry.js +1 -0
  417. package/dist/vega/{p-f40d479d.entry.js → p-9c1a48b9.entry.js} +1 -1
  418. package/dist/vega/p-9d854d43.js +1 -0
  419. package/dist/vega/{p-64e22fe5.js → p-a07c0f8c.js} +1 -1
  420. package/dist/vega/{p-6216c30e.js → p-a0c3968b.js} +1 -1
  421. package/dist/vega/p-a4738b70.entry.js +1 -0
  422. package/dist/vega/p-a6dbc63d.entry.js +1 -0
  423. package/dist/vega/p-aa985d73.js +1 -0
  424. package/dist/vega/{p-5f95a2fa.js → p-ab829745.js} +1 -1
  425. package/dist/vega/p-b08a70e6.entry.js +1 -0
  426. package/dist/vega/p-b19b1c08.js +1 -0
  427. package/dist/vega/p-b5497af2.entry.js +1 -0
  428. package/dist/vega/p-b6c3ce6d.js +1 -0
  429. package/dist/vega/p-b7624ce4.js +1 -0
  430. package/dist/vega/{p-83863463.js → p-b9386dd0.js} +1 -1
  431. package/dist/vega/p-b9728ca8.js +1 -0
  432. package/dist/vega/{p-88e6618d.js → p-b9947846.js} +1 -1
  433. package/dist/vega/p-b9a95aca.entry.js +1 -0
  434. package/dist/vega/{p-53ba1adb.entry.js → p-bb46d8e6.entry.js} +1 -1
  435. package/dist/vega/p-c36afa21.entry.js +1 -0
  436. package/dist/vega/{p-f509b439.js → p-c8435185.js} +1 -1
  437. package/dist/vega/{p-ab4b06c9.entry.js → p-c8d41cdc.entry.js} +1 -1
  438. package/dist/vega/{p-ff47aeee.entry.js → p-cab70b95.entry.js} +1 -1
  439. package/dist/vega/p-cc00135a.entry.js +1 -0
  440. package/dist/vega/p-cc18970f.entry.js +1 -0
  441. package/dist/vega/p-d320496e.entry.js +1 -0
  442. package/dist/vega/{p-ae0f03c1.js → p-d32e83e7.js} +1 -1
  443. package/dist/vega/{p-37a9f4b4.entry.js → p-d456386a.entry.js} +1 -1
  444. package/dist/vega/{p-d289a6af.js → p-d4f1f007.js} +1 -1
  445. package/dist/vega/{p-82016096.js → p-d5531d3c.js} +1 -1
  446. package/dist/vega/{p-9b14ac66.entry.js → p-d7bd2470.entry.js} +1 -1
  447. package/dist/vega/{p-add63fe0.entry.js → p-e00fb667.entry.js} +1 -1
  448. package/dist/vega/{p-5a8be21c.entry.js → p-e340d58c.entry.js} +1 -1
  449. package/dist/vega/{p-dc6e7a77.js → p-e71864ff.js} +1 -1
  450. package/dist/vega/{p-5e9f6fb6.entry.js → p-ea564928.entry.js} +1 -1
  451. package/dist/vega/p-eb0ebf50.entry.js +1 -0
  452. package/dist/vega/p-ebdb489c.entry.js +1 -0
  453. package/dist/vega/{p-01541820.entry.js → p-ed01657b.entry.js} +1 -1
  454. package/dist/vega/p-eda7cd76.entry.js +1 -0
  455. package/dist/vega/{p-68a531cf.js → p-edda10f7.js} +1 -1
  456. package/dist/vega/{p-24b45c85.js → p-ef59f6f0.js} +1 -1
  457. package/dist/vega/{p-77c6f14a.entry.js → p-efc8c09e.entry.js} +1 -1
  458. package/dist/vega/p-f020738c.entry.js +1 -0
  459. package/dist/vega/{p-f2cef51a.js → p-f7a5746b.js} +1 -1
  460. package/dist/vega/{p-27dc6562.entry.js → p-f89cf75a.entry.js} +1 -1
  461. package/dist/vega/p-fb5ea4b2.js +1 -0
  462. package/dist/vega/p-fc7ab79d.js +1 -0
  463. package/dist/vega/vega.esm.js +1 -1
  464. package/package.json +1 -1
  465. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.js +0 -182
  466. package/dist/types/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-drop-file-filter-controller.d.ts +0 -22
  467. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.d.ts +0 -51
  468. package/dist/vega/p-08f03a52.entry.js +0 -1
  469. package/dist/vega/p-0a145766.entry.js +0 -1
  470. package/dist/vega/p-0d205fbf.js +0 -1
  471. package/dist/vega/p-118aeed1.entry.js +0 -1
  472. package/dist/vega/p-1a4e8d8a.js +0 -1
  473. package/dist/vega/p-23dc4064.entry.js +0 -1
  474. package/dist/vega/p-262a27d0.js +0 -1
  475. package/dist/vega/p-2beace1c.entry.js +0 -1
  476. package/dist/vega/p-2ce2972f.js +0 -1
  477. package/dist/vega/p-2e7d5e28.entry.js +0 -1
  478. package/dist/vega/p-32592497.entry.js +0 -1
  479. package/dist/vega/p-33860e54.js +0 -1
  480. package/dist/vega/p-3d2d267d.js +0 -1
  481. package/dist/vega/p-3f3c771a.entry.js +0 -1
  482. package/dist/vega/p-4013d954.entry.js +0 -1
  483. package/dist/vega/p-479a169c.entry.js +0 -1
  484. package/dist/vega/p-55019e55.entry.js +0 -1
  485. package/dist/vega/p-565aac6e.entry.js +0 -1
  486. package/dist/vega/p-574586c9.entry.js +0 -1
  487. package/dist/vega/p-5781b9f4.entry.js +0 -1
  488. package/dist/vega/p-57827342.entry.js +0 -1
  489. package/dist/vega/p-5baff397.js +0 -1
  490. package/dist/vega/p-62e80151.entry.js +0 -1
  491. package/dist/vega/p-63d73fa0.entry.js +0 -1
  492. package/dist/vega/p-76daa632.entry.js +0 -1
  493. package/dist/vega/p-8ac2d165.js +0 -1
  494. package/dist/vega/p-9aa1c66a.entry.js +0 -1
  495. package/dist/vega/p-9b01a28a.entry.js +0 -1
  496. package/dist/vega/p-ac43be09.entry.js +0 -1
  497. package/dist/vega/p-b525c800.entry.js +0 -1
  498. package/dist/vega/p-be651266.entry.js +0 -1
  499. package/dist/vega/p-c2e7992b.js +0 -1
  500. package/dist/vega/p-c56aa01c.entry.js +0 -1
  501. package/dist/vega/p-c8feb644.entry.js +0 -1
  502. package/dist/vega/p-cc3c661c.entry.js +0 -1
  503. package/dist/vega/p-cda09e99.entry.js +0 -1
  504. package/dist/vega/p-d29e8972.entry.js +0 -1
  505. package/dist/vega/p-d47aa28f.js +0 -1
  506. package/dist/vega/p-d90eee9a.entry.js +0 -1
  507. package/dist/vega/p-dcf8f58f.entry.js +0 -1
  508. package/dist/vega/p-e223e0dc.entry.js +0 -1
  509. package/dist/vega/p-ea2b5dbb.js +0 -1
  510. package/dist/vega/p-f2c65579.entry.js +0 -1
  511. package/dist/vega/p-f5013494.entry.js +0 -1
  512. package/dist/vega/p-f5d3ce94.js +0 -1
  513. package/dist/vega/p-f69e2801.entry.js +0 -1
  514. package/dist/vega/p-fa654762.entry.js +0 -1
  515. package/dist/vega/p-fbc5a7f6.entry.js +0 -1
  516. package/dist/vega/p-fcabf0dc.js +0 -1
@@ -0,0 +1,48 @@
1
+ import { VegaSlimmer } from '../../vega-slimmer/vega-slimmer-core';
2
+ import { Nullable } from '../../types/general';
3
+ import { VegaInternalEventID } from '../event-manager/event-id/vega-internal-event-id';
4
+ import { ColumnRenderInputModel } from '../../components/vega-table/slimmers/controllers/dto/column-render-input-model';
5
+ /**
6
+ * Shared render-input consumer APIs for vega-table child components.
7
+ *
8
+ * This slimmer centralizes remote invocation and change-manager wiring
9
+ * for table render-input retrieval/updates.
10
+ *
11
+ * The slimmer automatically registers and removes the change observer during
12
+ * connected/disconnected lifecycle hooks via {@link MapToComponentMethod}.
13
+ */
14
+ export declare class VegaTableChildRenderInputConsumerSlimmer extends VegaSlimmer {
15
+ host: HTMLVegaTableElement;
16
+ renderInput: Nullable<ColumnRenderInputModel | ColumnRenderInputModel[]>;
17
+ private observer;
18
+ private table;
19
+ private observerSubject;
20
+ constructor(subject: VegaInternalEventID);
21
+ /**
22
+ * Fetch and update render input before each render cycle.
23
+ */
24
+ componentWillRenderInput(): void;
25
+ /**
26
+ * Register render-input change observer when the component connects.
27
+ */
28
+ connectRenderInputObserver(): void;
29
+ /**
30
+ * Unregister render-input change observer when the component disconnects.
31
+ */
32
+ disconnectRenderInputObserver(): void;
33
+ /**
34
+ * Fetch render input for a table child node through remote invocation.
35
+ *
36
+ * @template TRenderInput
37
+ * @returns {Nullable<TRenderInput>} The render input associated with the host, or null when table is not found.
38
+ */
39
+ fetchRenderInput<TRenderInput>(): Nullable<TRenderInput>;
40
+ /**
41
+ * Create and register a render-input change observer on the given table.
42
+ */
43
+ private registerRenderInputChangeObserver;
44
+ /**
45
+ * Remove a previously registered render-input change observer from the given table.
46
+ */
47
+ private unregisterRenderInputChangeObserver;
48
+ }
@@ -186,4 +186,7 @@ export type StaticTranslationKey =
186
186
  | 'pm'
187
187
  | '{0} Selected'
188
188
  | 'Close event preview detail'
189
- | 'More actions';
189
+ | 'More actions'
190
+ | 'Clear color'
191
+ | 'Color swatch'
192
+ | 'Color {0}';
@@ -116,6 +116,11 @@ export {
116
116
  VegaChipVariant,
117
117
  } from '../components/vega-chip/types';
118
118
  export { VegaCodeBlockValue } from '../components/vega-code-block/types';
119
+ export {
120
+ VegaColorSwatchShape,
121
+ VegaColorSwatchSize,
122
+ VegaColorSwatchVariant,
123
+ } from '../components/vega-color-swatch/types';
119
124
  export { VegaComboBoxSize, VegaDropdownPropsForComboBox } from '../components/vega-combo-box/types';
120
125
  export {
121
126
  DatePickerCalendarIndicator,
@@ -163,8 +168,10 @@ export {
163
168
  SelectType,
164
169
  SelectValueType,
165
170
  VegaDropdownPropsForSelect,
171
+ VegaInputSelectDropdownTooltipProps,
166
172
  VegaInputSelectSize,
167
173
  VegaInputSelectSourceLazyLoadCallback,
174
+ VegaInputSelectTooltipProps,
168
175
  } from '../components/vega-input-select/types';
169
176
  export { ItemToggleStatusMap } from '../components/vega-item-toggle/types';
170
177
  export {
@@ -200,6 +207,7 @@ export {
200
207
  VegaRichTextEditorImage,
201
208
  VegaRTEColorSchema,
202
209
  VegaRTESourceEditConfig,
210
+ VegaRTETextStyleItem,
203
211
  VegaRTEToolbarItem,
204
212
  } from '../components/vega-rich-text-editor/interface';
205
213
  export {
@@ -11,7 +11,7 @@ export { MaskConfig } from '../helpers/formatter/string-formatter/string-mask-st
11
11
  export { LeftNavSection, LeftNavGroup, LeftNavLink } from '../components/vega-nav/interface';
12
12
  export { LineChartOptionsType as VegaLineChartOptionsType } from '../helpers/chart/line-chart';
13
13
  export { EventSemanticsConfig, EventSemantics } from '../helpers/event-manager/internal-vega-event-manager';
14
- export { VegaComponentName, VegaNativeEventNameType, StateVariantType, CssStatesType, BreakpointsForPrefixType, DirectionalSpacingType, SpacingDirection, DirectionalBorderRadiusType, BorderRadiusDirection, } from './ui.type';
14
+ export { VegaComponentName, VegaNativeEventNameType, StateVariantType, CssStatesType, BreakpointsForPrefixType, DirectionalSpacingType, SpacingDirection, DirectionalBorderRadiusType, BorderRadiusDirection, DirectionalMarginType, MarginValueType, } from './ui.type';
15
15
  export { VegaLoaderOptions, VegaLoaderIndicatorOptions } from '../helpers/loading-indicator/vega-loader';
16
16
  export { VegaNotifyOption } from '../helpers/notify/vega-notify';
17
17
  export { OverrideColor } from '../helpers/theme/theme';
@@ -55,3 +55,5 @@ export type { BlockAnnotations } from '../components/vega-rich-text-editor/dto/b
55
55
  export type { CustomAttributeAnnotation } from '../components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation';
56
56
  export type { VegaRTELogicControlBlock } from '../components/vega-rich-text-editor/extensions/functions/dto/logic-control-block';
57
57
  export type { VegaFunctionBlock } from '../components/vega-rich-text-editor/extensions/functions/dto/function-block';
58
+ export type { StringFormatStrategy } from '../helpers/formatter/string-formatter/string-format-strategy.abstract';
59
+ export type { VegaPaginationPageSizeLabeledOption } from '../components/vega-pagination/types';
@@ -1,5 +1,5 @@
1
1
  import { BreakpointsTokenType } from './design-token.type';
2
- import { DirectionalSpacingType, SpacingDirection, ResponsiveType, ResponsiveScope, TranslocationType, AccordionObserverPayload, FlexAlignItemType, FlexJustifyContentType, DirectionalBorderRadiusType, BorderRadiusDirection, StateVariantType, CssStatesType, FlexWrapType, BorderStyleType, TextAlignType, MarginValueType, DirectionalMarginType } from './ui.type';
2
+ import { DirectionalSpacingType, SpacingDirection, ResponsiveType, ResponsiveScope, TranslocationType, AccordionObserverPayload, FlexAlignItemType, FlexJustifyContentType, DirectionalBorderRadiusType, BorderRadiusDirection, StateVariantType, CssStatesType, FlexWrapType, BorderStyleType, TextAlignType, MarginValueType, DirectionalMarginType, SizeType } from './ui.type';
3
3
  import { SelectSourceItem } from '../components/vega-input-select/types';
4
4
  import { DropdownSourceItem } from '../components/vega-dropdown/types';
5
5
  import { Nullable } from './general';
@@ -329,3 +329,17 @@ export declare const isMarginValueType: (input: unknown) => input is MarginValue
329
329
  * @returns {boolean} indicating if the input is type of {@link DirectionalMarginType}
330
330
  */
331
331
  export declare const isDirectionalMarginType: (input: unknown) => input is DirectionalMarginType;
332
+ /**
333
+ * Validates if the input is of type SizeType, which can be either a number or a string in the format of `${number}%`.
334
+ *
335
+ * @param {unknown} input - The value to check.
336
+ * @returns {boolean} indicating if the input is type of {@link SizeType}
337
+ */
338
+ export declare const isSizeType: (input: unknown) => input is SizeType;
339
+ /**
340
+ * Validates if the input is of type SizeType or an object with breakpoint keys and SizeType values.
341
+ *
342
+ * @param {unknown} input - The value to check.
343
+ * @returns {boolean} indicating if the input is type of {@link ResponsiveType<SizeType>}
344
+ */
345
+ export declare const isResponsiveSizeType: (input: unknown) => input is ResponsiveType<SizeType>;
@@ -1 +1 @@
1
- export{g as getCurrentBreakpoint}from"./p-49a2e141.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-ea2b5dbb.js";export{c as camelToDashCase}from"./p-02841589.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-83863463.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{d as BoxDisplay,e as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-d4ea8e22.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{A as ActionHandlerInterceptor,I as InsertNodeToNearestRootAction,o as RTELanguageToolbarButtonRenderer,m as RTETokenNode,n as RTETokenNodeRenderer,R as RTETokenToolbarButtonRenderer,b as VegaEventManager,V as VegaLoader,a as VegaNotify,j as VegaRTEExtension,k as VegaRTEExtensionRenderer,h as VegaRTEFunctionExtension,g as VegaRTELanguageExtension,i as VegaRTETableExtension,f as VegaRTETokenExtension,l as VegaRTEToolbarButtonRenderer,d as VegaSkeletonLoader,e as VegaTranslation,c as VegaZIndexManager,w as waitForVega}from"./p-f5d3ce94.js";export{F as FeatureFlag}from"./p-18e8d9b7.js";export{V as VegaThemeManager}from"./p-0304c3a7.js";export{V as VegaDialog}from"./p-c801c85d.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-3d2d267d.js";export{V as VegaIconManager}from"./p-e6adf829.js";export{V as ValidCreditCardNumberRule}from"./p-24b45c85.js";import"./p-6e70d3cc.js";export{s as VegaTranslationResourceEN}from"./p-82016096.js";export{s as setVegaNonce}from"./p-4866e390.js";export{g as ActionHandleStrategy,h as AppendChildrenAction,ab as CodeLanguage,o as CustomAttributeAnnotation,D as CustomClassAnnotation,z as CustomStyleAnnotation,I as InsertChildrenAfterAction,j as InsertChildrenBeforeAction,M as ModifyContentAction,l as ModifyContentActionType,f as RTEAnnotationStyle,d as RTEBlock,G as RTEDecoratorNode,p as RTEFilterStylesStrategy,i as RTENode,e as RTETextBlock,c as RTETextNode,n as RemoveChildrenAction,V as VegaRTEPresetToolbarItems}from"./p-4ed416e7.js";export{B as BlockToRTEBlockStrategyAbstract,a as ElementToDTOStrategy,I as InsertNewParagraphAction,b as RTEImageBlock,f as RTEImageNode,e as RTEListBlock,d as RTEListItemBlock,U as UpdateCursorPositionAction,V as VegaRTEContent,h as htmlElementToAnnotationGenerator}from"./p-d289a6af.js";export{G as GridColumns,a as GridRows}from"./p-0d205fbf.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-88e6618d.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-f509b439.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-fd5ddc55.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";export{R as RTERange}from"./p-ae0f03c1.js";import"./p-8b5d3a52.js";import"./p-593e0f80.js";import"./p-6a334573.js";import"./p-781fd6e0.js";import"./p-262ec334.js";import"./p-81dd00d0.js";import"./p-b75ee3ba.js";import"./p-fcabf0dc.js";import"./p-a7b5f497.js";import"./p-e1fbfd20.js";import"./p-f28a6074.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-c5eb0fa6.js";import"./p-77e64f26.js";import"./p-33860e54.js";import"./p-8ac2d165.js";import"./p-a528714c.js";import"./p-f0e828d8.js";import"./p-0c667d6a.js";import"./p-a841cf13.js";import"./p-1bc5b3bc.js";import"./p-5a25014f.js";import"./p-abd7aeaa.js";import"./p-d27ae9ff.js";const r=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{r as Rings}
1
+ export{g as getCurrentBreakpoint}from"./p-49a2e141.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-b7624ce4.js";export{c as camelToDashCase}from"./p-02841589.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-b9386dd0.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{d as BoxDisplay,e as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-d4ea8e22.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{A as ActionHandlerInterceptor,I as InsertNodeToNearestRootAction,o as RTELanguageToolbarButtonRenderer,m as RTETokenNode,n as RTETokenNodeRenderer,R as RTETokenToolbarButtonRenderer,b as VegaEventManager,V as VegaLoader,a as VegaNotify,j as VegaRTEExtension,k as VegaRTEExtensionRenderer,h as VegaRTEFunctionExtension,g as VegaRTELanguageExtension,i as VegaRTETableExtension,f as VegaRTETokenExtension,l as VegaRTEToolbarButtonRenderer,d as VegaSkeletonLoader,e as VegaTranslation,c as VegaZIndexManager,w as waitForVega}from"./p-5be546c5.js";export{F as FeatureFlag}from"./p-18e8d9b7.js";export{V as VegaThemeManager}from"./p-116e3963.js";export{V as VegaDialog}from"./p-c801c85d.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-6e9f832f.js";export{V as VegaIconManager}from"./p-e6adf829.js";export{V as ValidCreditCardNumberRule}from"./p-ef59f6f0.js";import"./p-6e70d3cc.js";export{s as VegaTranslationResourceEN}from"./p-d5531d3c.js";export{s as setVegaNonce}from"./p-4866e390.js";export{g as ActionHandleStrategy,h as AppendChildrenAction,ab as CodeLanguage,o as CustomAttributeAnnotation,D as CustomClassAnnotation,z as CustomStyleAnnotation,I as InsertChildrenAfterAction,j as InsertChildrenBeforeAction,M as ModifyContentAction,l as ModifyContentActionType,f as RTEAnnotationStyle,d as RTEBlock,G as RTEDecoratorNode,p as RTEFilterStylesStrategy,i as RTENode,e as RTETextBlock,c as RTETextNode,n as RemoveChildrenAction,V as VegaRTEPresetToolbarItems}from"./p-5ffdea8e.js";export{B as BlockToRTEBlockStrategyAbstract,a as ElementToDTOStrategy,I as InsertNewParagraphAction,b as RTEImageBlock,f as RTEImageNode,e as RTEListBlock,d as RTEListItemBlock,U as UpdateCursorPositionAction,V as VegaRTEContent,h as htmlElementToAnnotationGenerator}from"./p-d4f1f007.js";export{G as GridColumns,a as GridRows}from"./p-fc7ab79d.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-b9947846.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-c8435185.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-956b170c.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";export{R as RTERange}from"./p-d32e83e7.js";import"./p-2b5cf2b3.js";import"./p-8b5d3a52.js";import"./p-593e0f80.js";import"./p-6a334573.js";import"./p-781fd6e0.js";import"./p-262ec334.js";import"./p-81dd00d0.js";import"./p-b75ee3ba.js";import"./p-b6c3ce6d.js";import"./p-a7b5f497.js";import"./p-e1fbfd20.js";import"./p-f28a6074.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-c5eb0fa6.js";import"./p-77e64f26.js";import"./p-aa985d73.js";import"./p-8aee6b74.js";import"./p-a528714c.js";import"./p-fb5ea4b2.js";import"./p-f0e828d8.js";import"./p-0c667d6a.js";import"./p-a841cf13.js";import"./p-1bc5b3bc.js";import"./p-5a25014f.js";import"./p-abd7aeaa.js";import"./p-d27ae9ff.js";const r=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{r as Rings}
@@ -1 +1 @@
1
- import{c as t,M as s,V as i}from"./p-6e1ab235.js";import{i as h}from"./p-83863463.js";import{C as e}from"./p-2d0d575f.js";import{d as o}from"./p-f28a6074.js";import{r,s as n}from"./p-33860e54.js";import{w as a}from"./p-d47aa28f.js";var u=function(t,s,i,h){var e,o=arguments.length,r=o<3?s:null===h?h=Object.getOwnPropertyDescriptor(s,i):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,h);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(r=(o<3?e(r):o>3?e(s,i,r):e(s,i))||r);return o>3&&r&&Object.defineProperty(s,i,r),r};class p extends i{constructor(){super(...arguments),this.onFocus=t=>{if(this.host&&this.host.value){const s=this.host.value;t.target.value!==s&&(this.inputElement.value=s)}},this.onBlur=t=>{this.blurFormatStrategy&&this.formatValue(t.target.value,"blur")},this.onKeyDown=t=>{const s=t.target,i=s.value,h=s.selectionStart;this.inputFormatStrategy&&(this.formatValue(i,"input",{caretPosition:"insertFromPaste"===t.inputType?void 0:h}),this.updateInputCaretPosition(i,h))},this.onPaste=t=>{this.disableCopyPaste?t.preventDefault():e.notify(o.getSubject(this.host,r),t)}}componentDidRender(){e.notify(o.getSubject(this.host,n),{})}setup(){this.destroy();const t=this.getInputElementRef();t&&(this.inputElement=t,this.inputFormatStrategy=this.getInputModeStrategy(),this.blurFormatStrategy=this.getBlurModeStrategy(),this.formatValueAfterSetup(),this.inputFormatStrategy&&(this.inputElement.addEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.addEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.addEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.addEventListener("focus",this.onFocus,{capture:!0})))}destroy(){this.inputElement&&(this.inputFormatStrategy&&(this.inputElement.removeEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.removeEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.removeEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.removeEventListener("focus",this.onFocus,{capture:!0})))}formatValueAfterValueChange(){a(this.host).then((()=>{this.formatValue(this.inputElement.value,"change")}))}formatValueAfterSetup(){a(this.host).then((()=>{this.formatValue(this.inputElement.value,"init")}))}isOnFocus(){return this.inputElement.matches(":focus")}updateNativeInputValue(t,s){s!==t&&(this.inputElement.value=s)}updateComponentValue(t,s){s!==t&&(this.host.value=s)}updateInputCaretPosition(t,s){var i,e,o;const r=null!==(o=null===(e=(i=this.inputFormatStrategy).calculateCaretPosition)||void 0===e?void 0:e.call(i,t,s))&&void 0!==o?o:s;h(r)&&this.inputElement.setSelectionRange(r,r)}formatValue(t,s,i){const h=!this.isOnFocus(),e=null==i?void 0:i.caretPosition;if(this.inputFormatStrategy){if(this.inputFormatStrategy.canFormat(s,"component")){const s=this.inputFormatStrategy.format(t);this.updateComponentValue(t,s)}if(this.inputFormatStrategy.canFormat(s,"native-input")){const s=this.inputFormatStrategy.format(t,{caretPosition:e});this.updateNativeInputValue(t,s)}}if(this.blurFormatStrategy&&h){if(this.blurFormatStrategy.canFormat(s,"component",{isBlurred:h})){const s=this.blurFormatStrategy.format(t);this.updateComponentValue(t,s)}if(this.blurFormatStrategy.canFormat(s,"native-input",{isBlurred:h})){const s=this.blurFormatStrategy.format(t);this.updateNativeInputValue(t,s)}}}}u([t()],p.prototype,"host",void 0),u([s("componentDidRender")],p.prototype,"componentDidRender",null);export{p as S}
1
+ import{c as t,M as s,V as i}from"./p-6e1ab235.js";import{i as h}from"./p-b9386dd0.js";import{C as e}from"./p-2d0d575f.js";import{d as o}from"./p-f28a6074.js";import{r,s as n}from"./p-aa985d73.js";import{w as a}from"./p-38af89b9.js";var u=function(t,s,i,h){var e,o=arguments.length,r=o<3?s:null===h?h=Object.getOwnPropertyDescriptor(s,i):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,h);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(r=(o<3?e(r):o>3?e(s,i,r):e(s,i))||r);return o>3&&r&&Object.defineProperty(s,i,r),r};class p extends i{constructor(){super(...arguments),this.onFocus=t=>{if(this.host&&this.host.value){const s=this.host.value;t.target.value!==s&&(this.inputElement.value=s)}},this.onBlur=t=>{this.blurFormatStrategy&&this.formatValue(t.target.value,"blur")},this.onKeyDown=t=>{const s=t.target,i=s.value,h=s.selectionStart;this.inputFormatStrategy&&(this.formatValue(i,"input",{caretPosition:"insertFromPaste"===t.inputType?void 0:h}),this.updateInputCaretPosition(i,h))},this.onPaste=t=>{this.disableCopyPaste?t.preventDefault():e.notify(o.getSubject(this.host,r),t)}}componentDidRender(){e.notify(o.getSubject(this.host,n),{})}setup(){this.destroy();const t=this.getInputElementRef();t&&(this.inputElement=t,this.inputFormatStrategy=this.getInputModeStrategy(),this.blurFormatStrategy=this.getBlurModeStrategy(),this.formatValueAfterSetup(),this.inputFormatStrategy&&(this.inputElement.addEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.addEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.addEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.addEventListener("focus",this.onFocus,{capture:!0})))}destroy(){this.inputElement&&(this.inputFormatStrategy&&(this.inputElement.removeEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.removeEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.removeEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.removeEventListener("focus",this.onFocus,{capture:!0})))}formatValueAfterValueChange(){a(this.host).then((()=>{this.formatValue(this.inputElement.value,"change")}))}formatValueAfterSetup(){a(this.host).then((()=>{this.formatValue(this.inputElement.value,"init")}))}isOnFocus(){return this.inputElement.matches(":focus")}updateNativeInputValue(t,s){s!==t&&(this.inputElement.value=s)}updateComponentValue(t,s){s!==t&&(this.host.value=s)}updateInputCaretPosition(t,s){var i,e,o;const r=null!==(o=null===(e=(i=this.inputFormatStrategy).calculateCaretPosition)||void 0===e?void 0:e.call(i,t,s))&&void 0!==o?o:s;h(r)&&this.inputElement.setSelectionRange(r,r)}formatValue(t,s,i){const h=!this.isOnFocus(),e=null==i?void 0:i.caretPosition;if(this.inputFormatStrategy){if(this.inputFormatStrategy.canFormat(s,"component")){const s=this.inputFormatStrategy.format(t);this.updateComponentValue(t,s)}if(this.inputFormatStrategy.canFormat(s,"native-input")){const s=this.inputFormatStrategy.format(t,{caretPosition:e});this.updateNativeInputValue(t,s)}}if(this.blurFormatStrategy&&h){if(this.blurFormatStrategy.canFormat(s,"component",{isBlurred:h})){const s=this.blurFormatStrategy.format(t);this.updateComponentValue(t,s)}if(this.blurFormatStrategy.canFormat(s,"native-input",{isBlurred:h})){const s=this.blurFormatStrategy.format(t);this.updateNativeInputValue(t,s)}}}}u([t()],p.prototype,"host",void 0),u([s("componentDidRender")],p.prototype,"componentDidRender",null);export{p as S}
@@ -0,0 +1 @@
1
+ import{h as r,r as e,c as o,H as t,g as s}from"./p-6b2342e0.js";import{V as i,I as a}from"./p-4415ad28.js";import{c as l,V as c,I as d}from"./p-6e1ab235.js";import{s as h}from"./p-519a7d55.js";import{T as n}from"./p-fb5ea4b2.js";import{c as b}from"./p-86194314.js";import{i as p}from"./p-6e9f832f.js";import{c as v}from"./p-44044ed7.js";import{a as w}from"./p-c5eb0fa6.js";import{T as f}from"./p-6572e038.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-f28a6074.js";import"./p-331a62d5.js";import"./p-6e70d3cc.js";import"./p-b75ee3ba.js";import"./p-d5531d3c.js";import"./p-a528714c.js";var m=function(r,e,o,t){var s,i=arguments.length,a=i<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(r,e,o,t);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class g extends c{constructor(){super(...arguments),this.handleClick=r=>{this.disabled?r.stopPropagation():("vega"!==p.getSemantics(this.host).namespace&&r.stopPropagation(),this.clickEventEmitter.emit())}}render(){const e="clear"===this.variant,o=!e&&!!this.color;return r("div",{class:{"vega-color-swatch-container":!0,[`size-${this.size}`]:!0,[`shape-${this.shape}`]:!0,"swatch-clear":e},role:"button","aria-label":this.getAriaLabel(),"aria-disabled":this.disabled?"true":"false",tabIndex:this.disabled?-1:0,onClick:this.handleClick,onKeyDown:b()},r("div",{class:"swatch"},o&&r("span",{class:"color-fill",style:this.getFillColorStyles()}),e&&r("span",{class:"clear-line"}),this.selected&&!e&&r("vega-icon",{class:"check-icon",icon:"checkmark",size:"size-16",color:this.getCheckMarkColor()})),this.label&&this.renderLabel())}renderLabel(){return r("vega-font",{class:"swatch-label",variant:"font-field-value",color:this.disabled?"text-disabled":"text-primary"},this.label)}getAriaLabel(){return this.label?this.label:"clear"===this.variant?this.translationSlimmer.t("Clear color"):this.color?this.translationSlimmer.t("Color {0}",this.color):this.translationSlimmer.t("Color swatch")}getFillColorStyles(){const r={};return this.color&&(r.backgroundColor=this.color),r}getCheckMarkColor(){return this.color?new n(this.color).isDark()?"text-white":"text-black":"text-primary"}}m([l()],g.prototype,"host",void 0),m([l()],g.prototype,"variant",void 0),m([l()],g.prototype,"label",void 0),m([l()],g.prototype,"color",void 0),m([l()],g.prototype,"selected",void 0),m([l()],g.prototype,"size",void 0),m([l()],g.prototype,"disabled",void 0),m([l()],g.prototype,"shape",void 0),m([l()],g.prototype,"clickEventEmitter",void 0),m([l()],g.prototype,"translationSlimmer",void 0);var u=function(r,e,o,t){var s,i=arguments.length,a=i<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(r,e,o,t);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const x=class{constructor(r){e(this,r),this.vegaClick=o(this,"vegaClick",7),this.click=o(this,"click",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new i,this.translationSlimmer=new f,this.vegaColorSwatchRenderer=new g,this.clickEventEmitter=v(x,w),this.color="",this.selected=!1,this.label="",this.size="small",this.disabled=!1,this.variant="swatch",this.shape="basket"}render(){return h(r(t,{class:{disabled:this.disabled}},this.vegaColorSwatchRenderer.render()),this.host)}get host(){return s(this)}};u([a()],x.prototype,"globalSlimmers",void 0),u([d()],x.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),u([d()],x.prototype,"translationSlimmer",void 0),u([d()],x.prototype,"vegaColorSwatchRenderer",void 0),u([d()],x.prototype,"clickEventEmitter",void 0),x.style=":host{display:inline-block;vertical-align:middle}.vega-color-swatch-container{display:flex;flex-direction:row;align-items:center;border-radius:4px}.swatch{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:relative;flex-shrink:0;overflow:hidden}.shape-basket .swatch{border-radius:8px}.shape-block .swatch{border-radius:0px}.check-icon{position:relative;z-index:1}.swatch-clear .swatch{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1))}.swatch-clear .swatch .clear-line{position:absolute;width:141%;height:0;border-top-width:1px;border-left-width:0px;border-bottom-width:0px;border-right-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1));transform:rotate(-45deg);transform-origin:center}.color-fill{position:absolute;display:block;top:0;left:0;width:100%;height:100%}.size-extra-small .swatch{width:24px;height:24px;min-width:24px}.size-extra-small.shape-basket .swatch{border-radius:4px}.size-small .swatch{width:40px;height:40px;min-width:40px}.size-small.shape-basket{border-radius:8px}.size-medium .swatch{width:48px;height:48px;min-width:48px}.size-medium.shape-basket{border-radius:8px}@media (hover: hover){:host(:not(.disabled)) .swatch:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host(:not(.disabled)) .swatch-clear .swatch:hover{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}:host(:not(.disabled)) .swatch-clear .swatch:hover .clear-line{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}}.vega-color-swatch-container:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.vega-color-swatch-container:focus-visible .swatch{border-width:1px;border-style:solid;border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-color-swatch-container:focus-visible.swatch-clear{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-color-swatch-container:focus-visible.swatch-clear .swatch{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}.vega-color-swatch-container:focus-visible.swatch-clear .swatch .clear-line{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}:host(:not(.disabled)) .vega-color-swatch-container{cursor:pointer}:host(.disabled) .vega-color-swatch-container{cursor:not-allowed}:host(.disabled) .swatch{border-color:rgba(var(--v-border-color-input-field-disabled, 222, 225, 227, 1));pointer-events:none}:host(.disabled) .swatch .color-fill,:host(.disabled) .swatch .check-icon{opacity:0.5}:host(.disabled) .swatch .label-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.disabled) .swatch .clear-line{border-color:rgba(var(--v-border-color-input-field-disabled, 222, 225, 227, 1))}.swatch-label{margin-left:8px}";export{x as vega_color_swatch}
@@ -1 +1 @@
1
- import{b as e,e as t}from"./p-6e70d3cc.js";import{i as s}from"./p-83863463.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(e){e.map((e=>e.eventName||(e.eventName="keyup"))),this.listeners=this.listeners.concat(e)}deregister(e){this.listeners=this.listeners.filter((t=>!e.includes(t)))}listenKeyPress(){document.addEventListener("keydown",(e=>{this.invokeListeners("keydown",e)})),document.addEventListener("keyup",(e=>{this.invokeListeners("keyup",e)}))}invokeListeners(e,t){this.listeners.filter((s=>s.eventName===e&&this.shouldInvokeListener(s,t))).forEach((e=>{e.preventDefault&&t.preventDefault(),e.callback(t)}))}shouldInvokeListener(i,o){let n="";o.code?n=o.code:o.key&&"Unidentified"!==o.key&&(n=o.key);let r=[],c=[];const u=Array.isArray(i.keyCode)?i.keyCode.includes(n):i.keyCode===n;if(!u)return!1;"function"==typeof i.activeElementInScope?r=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(r=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const d=!i.activeElementInScope||r.some((s=>e(t(document,!0),s)));if(!d)return!1;const h=!i.activeElementOutScope||c.every((s=>!e(t(document,!0),s))),f=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),p=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return u&&d&&h&&f&&p}isModifierPressed(e){return/Mac|iPhone|iPad/.test(navigator.userAgent)?e.metaKey:e.ctrlKey}};export{i as K}
1
+ import{b as e,e as t}from"./p-6e70d3cc.js";import{i as s}from"./p-b9386dd0.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(e){e.map((e=>e.eventName||(e.eventName="keyup"))),this.listeners=this.listeners.concat(e)}deregister(e){this.listeners=this.listeners.filter((t=>!e.includes(t)))}listenKeyPress(){document.addEventListener("keydown",(e=>{this.invokeListeners("keydown",e)})),document.addEventListener("keyup",(e=>{this.invokeListeners("keyup",e)}))}invokeListeners(e,t){this.listeners.filter((s=>s.eventName===e&&this.shouldInvokeListener(s,t))).forEach((e=>{e.preventDefault&&t.preventDefault(),e.callback(t)}))}shouldInvokeListener(i,o){let n="";o.code?n=o.code:o.key&&"Unidentified"!==o.key&&(n=o.key);let r=[],c=[];const d=Array.isArray(i.keyCode)?i.keyCode.includes(n):i.keyCode===n;if(!d)return!1;"function"==typeof i.activeElementInScope?r=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(r=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const u=!i.activeElementInScope||r.some((s=>e(t(document,!0),s)));if(!u)return!1;const h=!i.activeElementOutScope||c.every((s=>!e(t(document,!0),s))),f=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),p=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return d&&u&&h&&f&&p}isModifierPressed(e){return/Mac|iPhone|iPad/.test(navigator.userAgent)?e.metaKey:e.ctrlKey}};export{i as K}
@@ -1 +1 @@
1
- import{h as t,r as e,c as i,H as n,g as s}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as a,a as r}from"./p-f0ff4463.js";import{M as l,a as p}from"./p-cdbbdcc2.js";import{R as c}from"./p-280cbcdb.js";import{s as d}from"./p-519a7d55.js";import{C as h}from"./p-75b58efe.js";import{c as u,V as f,M as g,I as v}from"./p-6e1ab235.js";import{s as m}from"./p-6bd5c49b.js";import{V as x,I as b}from"./p-4415ad28.js";import{F as w}from"./p-49ae8c79.js";import{c as y}from"./p-d0ac7af8.js";import{a as C,x as j,V as k,h as I,F as R,G as S,H as z,I as O,J as D}from"./p-c5eb0fa6.js";import{S as E}from"./p-98c44c03.js";import{S as T}from"./p-5f95a2fa.js";import{i as V}from"./p-83863463.js";import{S as M}from"./p-2f99c511.js";import{i as L}from"./p-d27ae9ff.js";import{d as F}from"./p-a841cf13.js";import{o as N,p as A,q as P,l as B}from"./p-33860e54.js";import{D as $,d as _}from"./p-f28a6074.js";import{P as U}from"./p-81dd00d0.js";import{S as W}from"./p-6216c30e.js";import{V as K}from"./p-e1fbfd20.js";import{c as q}from"./p-86194314.js";import{C as H}from"./p-2d0d575f.js";import{F as G}from"./p-a528714c.js";import{C as J}from"./p-8187878e.js";import{A as X}from"./p-bdb5180c.js";import{M as Y}from"./p-78a57a17.js";import"./p-262ec334.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-6e70d3cc.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-82016096.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-52b8f2d2.js";import"./p-3d2d267d.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-d47aa28f.js";import"./p-49a2e141.js";import"./p-e6adf829.js";import"./p-593e0f80.js";const Q=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class Z extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=Q.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class tt extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([u()],tt.prototype,"disableCopyPaste",void 0);var et=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class it extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16","aria-hidden":"true"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}et([u()],it.prototype,"host",void 0),et([u()],it.prototype,"prefixIcon",void 0);class nt extends T{constructor(t=!1){super(),this.overrideValue=t}format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),s=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((s.match(/,/g)||[]).length-o)}}class st extends T{constructor(t,e=!1){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.overrideValue=e,this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(V(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class ot extends T{constructor(t,e=!1,i=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e,this.overrideValue=i}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(V(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class at extends st{constructor(t,e=!1){super(t,e)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),s=t.substring(0,e),o=n.substring(0,e),a=(s.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-a)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",s=Number(e.split(".")[0]);return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s.toLocaleString("en-US")+n:e}}var rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class lt extends M{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=E.getPhoneMaskStrategy(e.overrideValue);break;case"taxId":i=E.getTaxIdMaskStrategy(e.overrideValue);break;case"zipcode":i=E.getZipcodeMaskStrategy(e.overrideValue);break;case"thousand-comma":i=new nt(e.overrideValue);break;case"number":i=this.getNumberTypeMaskStrategy(e.options,e.overrideValue);break;case"custom":i=e.strategy?e.strategy():new E(e.options,e.overrideValue);break;case"custom-formatter":i=new ot(e.formatter,e.resetCaretPosition,e.overrideValue)}return"number"!==this.type||"input"!==t||e||(i=new st({},null==e?void 0:e.overrideValue)),i}getNumberTypeMaskStrategy(t,e=!1){return t&&t.thousandComma?new at(t,e):new st(t,e)}isBlurModeMaskConfig(t){return"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return L(i,n,!0,((t,e)=>F(t,e)?0:-1))}initSetupMaskConfigObserver(){$.addUniqueObserverToNode(this.host,N,this.setup.bind(this))}removeSetupMaskConfigObserver(){$.removeUniqueObserverFromNode(this.host,N)}}rt([u()],lt.prototype,"maskConfig",void 0),rt([u()],lt.prototype,"disableCopyPaste",void 0),rt([u()],lt.prototype,"type",void 0),rt([u()],lt.prototype,"inputRenderer",void 0),rt([g("connectedCallback")],lt.prototype,"connectedCallback",null),rt([g("disconnectedCallback")],lt.prototype,"disconnectedCallback",null),rt([g("watchValue")],lt.prototype,"watchValue",null),rt([g("watchMaskChange")],lt.prototype,"watchMaskChange",null),rt([g("watchTypeChange")],lt.prototype,"watchTypeChange",null);const pt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class dt extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}ct([u()],dt.prototype,"host",void 0),ct([u()],dt.prototype,"value",void 0),ct([u()],dt.prototype,"placeholder",void 0),ct([u()],dt.prototype,"isCompactInputWidth",void 0),ct([u()],dt.prototype,"suffixText",void 0),ct([g("componentDidLoad")],dt.prototype,"componentDidLoad",null),ct([g("watchValue")],dt.prototype,"watchValue",null),ct([g("watchSuffixText")],dt.prototype,"watchSuffixText",null);var ht=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ut extends W{constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ht([u()],ut.prototype,"host",void 0),ht([u({writable:!0})],ut.prototype,"prefixText",void 0),ht([u({writable:!0})],ut.prototype,"suffixText",void 0),ht([u({writable:!0})],ut.prototype,"isCompactInputWidth",void 0);var ft=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class gt extends f{render(){return t("vega-button-circle",{icon:K.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){$.addUniqueObserverToNode(t,C,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}K.register({eye:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),ft([u()],gt.prototype,"host",void 0),ft([u({writable:!0})],gt.prototype,"isPasswordDisplay",void 0),ft([u()],gt.prototype,"type",void 0);var vt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class mt extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{H.notify(_.getSubject(this.host,A),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{H.notify(_.getSubject(this.host,P),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-disabled":this.disabled?"true":void 0,onKeyDown:q()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:q(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}vt([u()],mt.prototype,"host",void 0),vt([u()],mt.prototype,"value",void 0),vt([u()],mt.prototype,"size",void 0),vt([u()],mt.prototype,"disabled",void 0),vt([u()],mt.prototype,"type",void 0),vt([u()],mt.prototype,"showClearIcon",void 0),vt([u()],mt.prototype,"prefixText",void 0),vt([u()],mt.prototype,"suffixText",void 0),vt([u()],mt.prototype,"isCompactInputWidth",void 0),vt([u()],mt.prototype,"prefixSlotRenderer",void 0),vt([u()],mt.prototype,"passwordEyeRenderer",void 0),vt([u()],mt.prototype,"inputRenderer",void 0);var xt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class bt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,readOnly:this.readOnly,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){this.inputRef.value!==this.value&&this.nativeInputChangeEventEmitter.emit(this.inputRef.value),H.notify(_.getSubject(this.host,A),this.inputRef.value)}notifySetupMaskConfig(){H.notify(_.getSubject(this.host,N),{})}initInputFocusObserver(){$.addUniqueObserverToNode(this.host,P,this.focusInput.bind(this))}removeInputFocusObserver(){$.removeUniqueObserverFromNode(this.host,P)}focusInput(){this.inputRef.focus()}}xt([u()],bt.prototype,"host",void 0),xt([u()],bt.prototype,"value",void 0),xt([u()],bt.prototype,"disabled",void 0),xt([u()],bt.prototype,"type",void 0),xt([u()],bt.prototype,"name",void 0),xt([u()],bt.prototype,"autocomplete",void 0),xt([u()],bt.prototype,"inputmode",void 0),xt([u()],bt.prototype,"enterkeyhint",void 0),xt([u()],bt.prototype,"readOnly",void 0),xt([u()],bt.prototype,"placeholder",void 0),xt([u()],bt.prototype,"minLength",void 0),xt([u()],bt.prototype,"maxLength",void 0),xt([u()],bt.prototype,"isPasswordDisplay",void 0),xt([u()],bt.prototype,"valueUpdateTrigger",void 0),xt([u()],bt.prototype,"focusEventEmitter",void 0),xt([u()],bt.prototype,"blurEventEmitter",void 0),xt([u()],bt.prototype,"pasteEventEmitter",void 0),xt([u()],bt.prototype,"copyPasteController",void 0),xt([u()],bt.prototype,"nativeInputChangeEventEmitter",void 0),xt([g("connectedCallback")],bt.prototype,"connectedCallback",null),xt([g("disconnectedCallback")],bt.prototype,"disconnectedCallback",null),xt([g("doFocus")],bt.prototype,"doFocus",null),xt([g("doBlur")],bt.prototype,"doBlur",null);var wt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class yt extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{H.notify(_.getSubject(this.host,P),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.renderInputContainer(),this.renderHintDom())}renderInputContainer(){return this.renderModeController.isSource()||this.renderModeController.isTemplate()?this.inputSuggestionsRenderer.render(this.inputContainerRenderer.render()):this.inputContainerRenderer.render()}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{$.addUniqueObserverToNode(t,j,this.handleLabelButtonClick),$.addUniqueObserverToNode(t,C,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}wt([u()],yt.prototype,"host",void 0),wt([u()],yt.prototype,"disabled",void 0),wt([u()],yt.prototype,"required",void 0),wt([u()],yt.prototype,"label",void 0),wt([u()],yt.prototype,"hint",void 0),wt([u()],yt.prototype,"labelSuffixButtonProps",void 0),wt([u()],yt.prototype,"labelSuffixButtonConfig",void 0),wt([u()],yt.prototype,"labelButtonClickEventEmitter",void 0),wt([u()],yt.prototype,"inputContainerRenderer",void 0),wt([u()],yt.prototype,"inputSuggestionsRenderer",void 0),wt([u()],yt.prototype,"renderModeController",void 0);var Ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class jt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),H.notify(G,{host:this.host,detail:this.value})}initValueUpdateObserver(){$.addUniqueObserverToNode(this.host,A,this.setValue.bind(this))}removeValueUpdateObserver(){$.removeUniqueObserverFromNode(this.host,A)}setValue(t){this.value=t}}Ct([u()],jt.prototype,"host",void 0),Ct([u({writable:!0})],jt.prototype,"value",void 0),Ct([u()],jt.prototype,"changeEventEmitter",void 0),Ct([u()],jt.prototype,"inputRenderer",void 0),Ct([g("connectedCallback")],jt.prototype,"connectedCallback",null),Ct([g("disconnectedCallback")],jt.prototype,"disconnectedCallback",null),Ct([g("watchValue")],jt.prototype,"watchValue",null);var kt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class It extends f{constructor(){super(...arguments),this.templateItems=[],this.onDropdownItemClick=async t=>{const e=this.renderModeController.isTemplate()?this.templateItems:this.suggestionsDropdownSource,i=this.findItem(e,t.detail);if(i){const t=this.suggestionItemClickEventEmitter.emit(i);H.notify(_.getSubject(this.host,A),t.defaultPrevented?this.value:i.label)}}}appendHostItemsToDropdown(){this.renderModeController.isTemplate()&&this.itemsSlotRef&&this.dropdownRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(this.host.querySelector("[slot=items]")))}async showSuggestionsDropdown(t={}){this.suggestionsDropdownConfig=t,await this.showSuggestions()}async hideSuggestionsDropdown(){await this.dropdownRef.hide()}async watchValue(){await this.searchSuggestions()}async watchSuggestionsDropdownSource(){await this.searchSuggestions()}render(e){return t("vega-dropdown",Object.assign({},this.suggestionsDropdownConfig,{source:this.suggestionsDropdownSource,trigger:new J,matchTargetWidth:!0,searchable:!1,placement:["top","bottom"],translocation:{X:0,Y:6},ref:t=>{this.dropdownRef=t,this.addDropdownObserver(t)},style:{display:"block"}}),e,this.renderItemsSlot())}renderItemsSlot(){return this.renderModeController.isTemplate()&&t("div",{slot:"items",ref:t=>{this.itemsSlotRef=t}})}addDropdownObserver(t){$.addUniqueObserverToNode(t,k,this.onDropdownItemClick.bind(this)),$.addUniqueObserverToNode(t,B,(t=>{this.templateItems=Array.from(t).map((t=>({key:t.itemKey,label:t.label})))}))}findItem(t,e){for(const i of t){if(i.children&&i.children.length>0){const t=this.findItem(i.children,e);if(t)return t}if(i.key.toString()===e)return i}return null}async showSuggestions(){this.dropdownRef&&(this.renderModeController.isSource()||this.renderModeController.isTemplate())&&await this.dropdownRef.show()}async searchSuggestions(){this.dropdownRef&&this.renderModeController.isSource()&&this.suggestionsDropdownSource.length>0&&await this.dropdownRef.search(this.value)}}kt([u()],It.prototype,"host",void 0),kt([u()],It.prototype,"value",void 0),kt([u({writable:!0})],It.prototype,"suggestionsDropdownConfig",void 0),kt([u()],It.prototype,"suggestionsDropdownSource",void 0),kt([u()],It.prototype,"renderModeController",void 0),kt([u()],It.prototype,"suggestionItemClickEventEmitter",void 0),kt([g("componentDidLoad")],It.prototype,"appendHostItemsToDropdown",null),kt([g("showSuggestionsDropdown")],It.prototype,"showSuggestionsDropdown",null),kt([g("hideSuggestionsDropdown")],It.prototype,"hideSuggestionsDropdown",null),kt([g("watchValue")],It.prototype,"watchValue",null),kt([g("watchSuggestionsDropdownSource")],It.prototype,"watchSuggestionsDropdownSource",null);var Rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class St extends f{constructor(){super(...arguments),this.hasItemsSlot=!1}connectedCallback(){this.setRenderMode()}isSource(){return Array.isArray(this.suggestionsDropdownSource)}isTemplate(){return this.hasItemsSlot}setRenderMode(){this.hasItemsSlot=!!this.host.querySelector("[slot=items]")}}Rt([u()],St.prototype,"host",void 0),Rt([u()],St.prototype,"suggestionsDropdownSource",void 0),Rt([g("connectedCallback")],St.prototype,"connectedCallback",null);var zt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends Y{constructor(t){super({options:{attributes:!0,attributeFilter:[Ot.OBSERVED_ATTRIBUTE]},callback:()=>{this.performMapping()}}),this.targetGetter=t}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}performMapping(){const t=this.targetGetter?this.targetGetter():null;if(!t)return;const e=this.host.getAttribute(Ot.OBSERVED_ATTRIBUTE);if(this.shouldRemoveTabIndex(e))return void t.removeAttribute("tabindex");const i=String(e);t.getAttribute("tabindex")!==i&&t.setAttribute("tabindex",i)}shouldRemoveTabIndex(t){if(null==t)return!0;const e=String(t).trim().toLowerCase();return""===e||"null"===e||"undefined"===e}}Ot.OBSERVED_ATTRIBUTE="data-tabindex",zt([g("componentDidLoad")],Ot.prototype,"componentDidLoad",null),zt([g("componentDidRender")],Ot.prototype,"componentDidRender",null);var Dt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const Et=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaNativeInputChange=i(this,"vegaNativeInputChange",7),this.nativeInputChange=i(this,"nativeInputChange",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.vegaSuggestionItemClick=i(this,"vegaSuggestionItemClick",7),this.suggestionItemClick=i(this,"suggestionItemClick",7),this.globalSlimmers={},this.ariaAttributesValueMapper=new X((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"},"aria-hidden":{dependency:["data-aria-hidden"],defaultValue:null}}),this.dataTabIndexValueMapper=new Ot((()=>this.host.shadowRoot.querySelector("input"))),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new a({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new l({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new p({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new Z:null},{propertyName:"type",ruleFactory:t=>"email"===t?new Z:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new U({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.renderModeController=new St,this.copyPasteController=new tt,this.compactWidthController=new dt,this.stateController=new ut,this.maskConfigController=new lt,this.valueController=new jt,this.prefixSlotRenderer=new it,this.renderer=new yt,this.inputContainerRenderer=new mt,this.inputRenderer=new bt,this.inputSuggestionsRenderer=new It,this.changeEventEmitter=y(Et,I),this.nativeInputChangeEventEmitter=y(Et,R),this.focusEventEmitter=y(Et,S),this.blurEventEmitter=y(Et,z),this.labelButtonClickEventEmitter=y(Et,j),this.suggestionItemClickEventEmitter=y(Et,O),this.pasteEventEmitter=y(Et,D),this.vegaComponentUsageRuntimeMetricsSlimmer=new x(pt),this.passwordEyeRenderer=new gt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.readOnly=!1,this.email=!1,this.required=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}watchSuggestionsDropdownSource(){}async doFocus(){}async doBlur(){}async showSuggestionsDropdown(t){}async hideSuggestionsDropdown(){}render(){return m(t("slot",null)),d(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"],suggestionsDropdownSource:["watchSuggestionsDropdownSource"]}}};Dt([b()],Et.prototype,"globalSlimmers",void 0),Dt([v()],Et.prototype,"ariaAttributesValueMapper",void 0),Dt([v()],Et.prototype,"dataTabIndexValueMapper",void 0),Dt([v()],Et.prototype,"formFieldController",void 0),Dt([v()],Et.prototype,"pageResizeObserverSlimmer",void 0),Dt([v()],Et.prototype,"renderModeController",void 0),Dt([v()],Et.prototype,"copyPasteController",void 0),Dt([v()],Et.prototype,"compactWidthController",void 0),Dt([v()],Et.prototype,"stateController",void 0),Dt([v()],Et.prototype,"maskConfigController",void 0),Dt([v()],Et.prototype,"valueController",void 0),Dt([v()],Et.prototype,"prefixSlotRenderer",void 0),Dt([v()],Et.prototype,"renderer",void 0),Dt([v()],Et.prototype,"inputContainerRenderer",void 0),Dt([v()],Et.prototype,"inputRenderer",void 0),Dt([v()],Et.prototype,"inputSuggestionsRenderer",void 0),Dt([v()],Et.prototype,"changeEventEmitter",void 0),Dt([v()],Et.prototype,"nativeInputChangeEventEmitter",void 0),Dt([v()],Et.prototype,"focusEventEmitter",void 0),Dt([v()],Et.prototype,"blurEventEmitter",void 0),Dt([v()],Et.prototype,"labelButtonClickEventEmitter",void 0),Dt([v()],Et.prototype,"suggestionItemClickEventEmitter",void 0),Dt([v()],Et.prototype,"pasteEventEmitter",void 0),Dt([v()],Et.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt([v()],Et.prototype,"passwordEyeRenderer",void 0),Dt([h()],Et.prototype,"watchMaskChange",null),Et.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{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))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):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))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):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-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{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-input-input input{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-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.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}}.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-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-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}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{Et as vega_input}
1
+ import{h as t,r as e,c as i,H as n,g as s}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as a,a as r}from"./p-f0ff4463.js";import{M as l,a as p}from"./p-cdbbdcc2.js";import{R as c}from"./p-280cbcdb.js";import{s as d}from"./p-519a7d55.js";import{C as h}from"./p-75b58efe.js";import{c as u,V as f,M as g,I as v}from"./p-6e1ab235.js";import{s as m}from"./p-6bd5c49b.js";import{V as x,I as b}from"./p-4415ad28.js";import{F as w}from"./p-42141782.js";import{c as y}from"./p-44044ed7.js";import{a as C,x as j,V as k,h as I,F as R,G as S,H as z,I as O,J as D}from"./p-c5eb0fa6.js";import{S as E}from"./p-103d20f5.js";import{S as T}from"./p-ab829745.js";import{i as V}from"./p-b9386dd0.js";import{S as M}from"./p-02467b61.js";import{i as L}from"./p-d27ae9ff.js";import{d as F}from"./p-a841cf13.js";import{o as N,p as A,q as P,l as B}from"./p-aa985d73.js";import{D as $,d as _}from"./p-f28a6074.js";import{P as U}from"./p-81dd00d0.js";import{S as W}from"./p-a0c3968b.js";import{V as K}from"./p-e1fbfd20.js";import{c as q}from"./p-86194314.js";import{C as H}from"./p-2d0d575f.js";import{F as G}from"./p-a528714c.js";import{C as J}from"./p-8187878e.js";import{A as X}from"./p-bdb5180c.js";import{M as Y}from"./p-78a57a17.js";import"./p-262ec334.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-6e70d3cc.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-d5531d3c.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-52b8f2d2.js";import"./p-6e9f832f.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-38af89b9.js";import"./p-49a2e141.js";import"./p-e6adf829.js";import"./p-593e0f80.js";const Q=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class Z extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=Q.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class tt extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([u()],tt.prototype,"disableCopyPaste",void 0);var et=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class it extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16","aria-hidden":"true"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}et([u()],it.prototype,"host",void 0),et([u()],it.prototype,"prefixIcon",void 0);class nt extends T{constructor(t=!1){super(),this.overrideValue=t}format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),s=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((s.match(/,/g)||[]).length-o)}}class st extends T{constructor(t,e=!1){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.overrideValue=e,this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(V(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class ot extends T{constructor(t,e=!1,i=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e,this.overrideValue=i}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(V(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class at extends st{constructor(t,e=!1){super(t,e)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),s=t.substring(0,e),o=n.substring(0,e),a=(s.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-a)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",s=Number(e.split(".")[0]);return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s.toLocaleString("en-US")+n:e}}var rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class lt extends M{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=E.getPhoneMaskStrategy(e.overrideValue);break;case"taxId":i=E.getTaxIdMaskStrategy(e.overrideValue);break;case"zipcode":i=E.getZipcodeMaskStrategy(e.overrideValue);break;case"thousand-comma":i=new nt(e.overrideValue);break;case"number":i=this.getNumberTypeMaskStrategy(e.options,e.overrideValue);break;case"custom":i=e.strategy?e.strategy():new E(e.options,e.overrideValue);break;case"custom-formatter":i=new ot(e.formatter,e.resetCaretPosition,e.overrideValue)}return"number"!==this.type||"input"!==t||e||(i=new st({},null==e?void 0:e.overrideValue)),i}getNumberTypeMaskStrategy(t,e=!1){return t&&t.thousandComma?new at(t,e):new st(t,e)}isBlurModeMaskConfig(t){return"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return L(i,n,!0,((t,e)=>F(t,e)?0:-1))}initSetupMaskConfigObserver(){$.addUniqueObserverToNode(this.host,N,this.setup.bind(this))}removeSetupMaskConfigObserver(){$.removeUniqueObserverFromNode(this.host,N)}}rt([u()],lt.prototype,"maskConfig",void 0),rt([u()],lt.prototype,"disableCopyPaste",void 0),rt([u()],lt.prototype,"type",void 0),rt([u()],lt.prototype,"inputRenderer",void 0),rt([g("connectedCallback")],lt.prototype,"connectedCallback",null),rt([g("disconnectedCallback")],lt.prototype,"disconnectedCallback",null),rt([g("watchValue")],lt.prototype,"watchValue",null),rt([g("watchMaskChange")],lt.prototype,"watchMaskChange",null),rt([g("watchTypeChange")],lt.prototype,"watchTypeChange",null);const pt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class dt extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}ct([u()],dt.prototype,"host",void 0),ct([u()],dt.prototype,"value",void 0),ct([u()],dt.prototype,"placeholder",void 0),ct([u()],dt.prototype,"isCompactInputWidth",void 0),ct([u()],dt.prototype,"suffixText",void 0),ct([g("componentDidLoad")],dt.prototype,"componentDidLoad",null),ct([g("watchValue")],dt.prototype,"watchValue",null),ct([g("watchSuffixText")],dt.prototype,"watchSuffixText",null);var ht=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ut extends W{constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ht([u()],ut.prototype,"host",void 0),ht([u({writable:!0})],ut.prototype,"prefixText",void 0),ht([u({writable:!0})],ut.prototype,"suffixText",void 0),ht([u({writable:!0})],ut.prototype,"isCompactInputWidth",void 0);var ft=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class gt extends f{render(){return t("vega-button-circle",{icon:K.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){$.addUniqueObserverToNode(t,C,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}K.register({eye:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),ft([u()],gt.prototype,"host",void 0),ft([u({writable:!0})],gt.prototype,"isPasswordDisplay",void 0),ft([u()],gt.prototype,"type",void 0);var vt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class mt extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{H.notify(_.getSubject(this.host,A),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{H.notify(_.getSubject(this.host,P),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-disabled":this.disabled?"true":void 0,onKeyDown:q()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:q(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}vt([u()],mt.prototype,"host",void 0),vt([u()],mt.prototype,"value",void 0),vt([u()],mt.prototype,"size",void 0),vt([u()],mt.prototype,"disabled",void 0),vt([u()],mt.prototype,"type",void 0),vt([u()],mt.prototype,"showClearIcon",void 0),vt([u()],mt.prototype,"prefixText",void 0),vt([u()],mt.prototype,"suffixText",void 0),vt([u()],mt.prototype,"isCompactInputWidth",void 0),vt([u()],mt.prototype,"prefixSlotRenderer",void 0),vt([u()],mt.prototype,"passwordEyeRenderer",void 0),vt([u()],mt.prototype,"inputRenderer",void 0);var xt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class bt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,readOnly:this.readOnly,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){this.inputRef.value!==this.value&&this.nativeInputChangeEventEmitter.emit(this.inputRef.value),H.notify(_.getSubject(this.host,A),this.inputRef.value)}notifySetupMaskConfig(){H.notify(_.getSubject(this.host,N),{})}initInputFocusObserver(){$.addUniqueObserverToNode(this.host,P,this.focusInput.bind(this))}removeInputFocusObserver(){$.removeUniqueObserverFromNode(this.host,P)}focusInput(){this.inputRef.focus()}}xt([u()],bt.prototype,"host",void 0),xt([u()],bt.prototype,"value",void 0),xt([u()],bt.prototype,"disabled",void 0),xt([u()],bt.prototype,"type",void 0),xt([u()],bt.prototype,"name",void 0),xt([u()],bt.prototype,"autocomplete",void 0),xt([u()],bt.prototype,"inputmode",void 0),xt([u()],bt.prototype,"enterkeyhint",void 0),xt([u()],bt.prototype,"readOnly",void 0),xt([u()],bt.prototype,"placeholder",void 0),xt([u()],bt.prototype,"minLength",void 0),xt([u()],bt.prototype,"maxLength",void 0),xt([u()],bt.prototype,"isPasswordDisplay",void 0),xt([u()],bt.prototype,"valueUpdateTrigger",void 0),xt([u()],bt.prototype,"focusEventEmitter",void 0),xt([u()],bt.prototype,"blurEventEmitter",void 0),xt([u()],bt.prototype,"pasteEventEmitter",void 0),xt([u()],bt.prototype,"copyPasteController",void 0),xt([u()],bt.prototype,"nativeInputChangeEventEmitter",void 0),xt([g("connectedCallback")],bt.prototype,"connectedCallback",null),xt([g("disconnectedCallback")],bt.prototype,"disconnectedCallback",null),xt([g("doFocus")],bt.prototype,"doFocus",null),xt([g("doBlur")],bt.prototype,"doBlur",null);var wt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class yt extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{H.notify(_.getSubject(this.host,P),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.renderInputContainer(),this.renderHintDom())}renderInputContainer(){return this.renderModeController.isSource()||this.renderModeController.isTemplate()?this.inputSuggestionsRenderer.render(this.inputContainerRenderer.render()):this.inputContainerRenderer.render()}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{$.addUniqueObserverToNode(t,j,this.handleLabelButtonClick),$.addUniqueObserverToNode(t,C,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}wt([u()],yt.prototype,"host",void 0),wt([u()],yt.prototype,"disabled",void 0),wt([u()],yt.prototype,"required",void 0),wt([u()],yt.prototype,"label",void 0),wt([u()],yt.prototype,"hint",void 0),wt([u()],yt.prototype,"labelSuffixButtonProps",void 0),wt([u()],yt.prototype,"labelSuffixButtonConfig",void 0),wt([u()],yt.prototype,"labelButtonClickEventEmitter",void 0),wt([u()],yt.prototype,"inputContainerRenderer",void 0),wt([u()],yt.prototype,"inputSuggestionsRenderer",void 0),wt([u()],yt.prototype,"renderModeController",void 0);var Ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class jt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),H.notify(G,{host:this.host,detail:this.value})}initValueUpdateObserver(){$.addUniqueObserverToNode(this.host,A,this.setValue.bind(this))}removeValueUpdateObserver(){$.removeUniqueObserverFromNode(this.host,A)}setValue(t){this.value=t}}Ct([u()],jt.prototype,"host",void 0),Ct([u({writable:!0})],jt.prototype,"value",void 0),Ct([u()],jt.prototype,"changeEventEmitter",void 0),Ct([u()],jt.prototype,"inputRenderer",void 0),Ct([g("connectedCallback")],jt.prototype,"connectedCallback",null),Ct([g("disconnectedCallback")],jt.prototype,"disconnectedCallback",null),Ct([g("watchValue")],jt.prototype,"watchValue",null);var kt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class It extends f{constructor(){super(...arguments),this.templateItems=[],this.onDropdownItemClick=async t=>{const e=this.renderModeController.isTemplate()?this.templateItems:this.suggestionsDropdownSource,i=this.findItem(e,t.detail);if(i){const t=this.suggestionItemClickEventEmitter.emit(i);H.notify(_.getSubject(this.host,A),t.defaultPrevented?this.value:i.label)}}}appendHostItemsToDropdown(){this.renderModeController.isTemplate()&&this.itemsSlotRef&&this.dropdownRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(this.host.querySelector("[slot=items]")))}async showSuggestionsDropdown(t={}){this.suggestionsDropdownConfig=t,await this.showSuggestions()}async hideSuggestionsDropdown(){await this.dropdownRef.hide()}async watchValue(){await this.searchSuggestions()}async watchSuggestionsDropdownSource(){await this.searchSuggestions()}render(e){return t("vega-dropdown",Object.assign({},this.suggestionsDropdownConfig,{source:this.suggestionsDropdownSource,trigger:new J,matchTargetWidth:!0,searchable:!1,placement:["top","bottom"],translocation:{X:0,Y:6},ref:t=>{this.dropdownRef=t,this.addDropdownObserver(t)},style:{display:"block"}}),e,this.renderItemsSlot())}renderItemsSlot(){return this.renderModeController.isTemplate()&&t("div",{slot:"items",ref:t=>{this.itemsSlotRef=t}})}addDropdownObserver(t){$.addUniqueObserverToNode(t,k,this.onDropdownItemClick.bind(this)),$.addUniqueObserverToNode(t,B,(t=>{this.templateItems=Array.from(t).map((t=>({key:t.itemKey,label:t.label})))}))}findItem(t,e){for(const i of t){if(i.children&&i.children.length>0){const t=this.findItem(i.children,e);if(t)return t}if(i.key.toString()===e)return i}return null}async showSuggestions(){this.dropdownRef&&(this.renderModeController.isSource()||this.renderModeController.isTemplate())&&await this.dropdownRef.show()}async searchSuggestions(){this.dropdownRef&&this.renderModeController.isSource()&&this.suggestionsDropdownSource.length>0&&await this.dropdownRef.search(this.value)}}kt([u()],It.prototype,"host",void 0),kt([u()],It.prototype,"value",void 0),kt([u({writable:!0})],It.prototype,"suggestionsDropdownConfig",void 0),kt([u()],It.prototype,"suggestionsDropdownSource",void 0),kt([u()],It.prototype,"renderModeController",void 0),kt([u()],It.prototype,"suggestionItemClickEventEmitter",void 0),kt([g("componentDidLoad")],It.prototype,"appendHostItemsToDropdown",null),kt([g("showSuggestionsDropdown")],It.prototype,"showSuggestionsDropdown",null),kt([g("hideSuggestionsDropdown")],It.prototype,"hideSuggestionsDropdown",null),kt([g("watchValue")],It.prototype,"watchValue",null),kt([g("watchSuggestionsDropdownSource")],It.prototype,"watchSuggestionsDropdownSource",null);var Rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class St extends f{constructor(){super(...arguments),this.hasItemsSlot=!1}connectedCallback(){this.setRenderMode()}isSource(){return Array.isArray(this.suggestionsDropdownSource)}isTemplate(){return this.hasItemsSlot}setRenderMode(){this.hasItemsSlot=!!this.host.querySelector("[slot=items]")}}Rt([u()],St.prototype,"host",void 0),Rt([u()],St.prototype,"suggestionsDropdownSource",void 0),Rt([g("connectedCallback")],St.prototype,"connectedCallback",null);var zt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends Y{constructor(t){super({options:{attributes:!0,attributeFilter:[Ot.OBSERVED_ATTRIBUTE]},callback:()=>{this.performMapping()}}),this.targetGetter=t}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}performMapping(){const t=this.targetGetter?this.targetGetter():null;if(!t)return;const e=this.host.getAttribute(Ot.OBSERVED_ATTRIBUTE);if(this.shouldRemoveTabIndex(e))return void t.removeAttribute("tabindex");const i=String(e);t.getAttribute("tabindex")!==i&&t.setAttribute("tabindex",i)}shouldRemoveTabIndex(t){if(null==t)return!0;const e=String(t).trim().toLowerCase();return""===e||"null"===e||"undefined"===e}}Ot.OBSERVED_ATTRIBUTE="data-tabindex",zt([g("componentDidLoad")],Ot.prototype,"componentDidLoad",null),zt([g("componentDidRender")],Ot.prototype,"componentDidRender",null);var Dt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const Et=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaNativeInputChange=i(this,"vegaNativeInputChange",7),this.nativeInputChange=i(this,"nativeInputChange",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.vegaSuggestionItemClick=i(this,"vegaSuggestionItemClick",7),this.suggestionItemClick=i(this,"suggestionItemClick",7),this.globalSlimmers={},this.ariaAttributesValueMapper=new X((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"},"aria-hidden":{dependency:["data-aria-hidden"],defaultValue:null}}),this.dataTabIndexValueMapper=new Ot((()=>this.host.shadowRoot.querySelector("input"))),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new a({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new l({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new p({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new Z:null},{propertyName:"type",ruleFactory:t=>"email"===t?new Z:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new U({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.renderModeController=new St,this.copyPasteController=new tt,this.compactWidthController=new dt,this.stateController=new ut,this.maskConfigController=new lt,this.valueController=new jt,this.prefixSlotRenderer=new it,this.renderer=new yt,this.inputContainerRenderer=new mt,this.inputRenderer=new bt,this.inputSuggestionsRenderer=new It,this.changeEventEmitter=y(Et,I),this.nativeInputChangeEventEmitter=y(Et,R),this.focusEventEmitter=y(Et,S),this.blurEventEmitter=y(Et,z),this.labelButtonClickEventEmitter=y(Et,j),this.suggestionItemClickEventEmitter=y(Et,O),this.pasteEventEmitter=y(Et,D),this.vegaComponentUsageRuntimeMetricsSlimmer=new x(pt),this.passwordEyeRenderer=new gt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.readOnly=!1,this.email=!1,this.required=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}watchSuggestionsDropdownSource(){}async doFocus(){}async doBlur(){}async showSuggestionsDropdown(t){}async hideSuggestionsDropdown(){}render(){return m(t("slot",null)),d(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"],suggestionsDropdownSource:["watchSuggestionsDropdownSource"]}}};Dt([b()],Et.prototype,"globalSlimmers",void 0),Dt([v()],Et.prototype,"ariaAttributesValueMapper",void 0),Dt([v()],Et.prototype,"dataTabIndexValueMapper",void 0),Dt([v()],Et.prototype,"formFieldController",void 0),Dt([v()],Et.prototype,"pageResizeObserverSlimmer",void 0),Dt([v()],Et.prototype,"renderModeController",void 0),Dt([v()],Et.prototype,"copyPasteController",void 0),Dt([v()],Et.prototype,"compactWidthController",void 0),Dt([v()],Et.prototype,"stateController",void 0),Dt([v()],Et.prototype,"maskConfigController",void 0),Dt([v()],Et.prototype,"valueController",void 0),Dt([v()],Et.prototype,"prefixSlotRenderer",void 0),Dt([v()],Et.prototype,"renderer",void 0),Dt([v()],Et.prototype,"inputContainerRenderer",void 0),Dt([v()],Et.prototype,"inputRenderer",void 0),Dt([v()],Et.prototype,"inputSuggestionsRenderer",void 0),Dt([v()],Et.prototype,"changeEventEmitter",void 0),Dt([v()],Et.prototype,"nativeInputChangeEventEmitter",void 0),Dt([v()],Et.prototype,"focusEventEmitter",void 0),Dt([v()],Et.prototype,"blurEventEmitter",void 0),Dt([v()],Et.prototype,"labelButtonClickEventEmitter",void 0),Dt([v()],Et.prototype,"suggestionItemClickEventEmitter",void 0),Dt([v()],Et.prototype,"pasteEventEmitter",void 0),Dt([v()],Et.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt([v()],Et.prototype,"passwordEyeRenderer",void 0),Dt([h()],Et.prototype,"watchMaskChange",null),Et.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{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))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):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))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):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-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{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-input-input input{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-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.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}}.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-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-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}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{Et as vega_input}
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as t,H as a,g as n}from"./p-6b2342e0.js";import{c as r}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 d}from"./p-a528714c.js";import{O as p}from"./p-331a62d5.js";import{f as g,a as x}from"./p-6e70d3cc.js";import{c as b,M as v,V as f,I as m}from"./p-6e1ab235.js";import{V as k,I as u}from"./p-4415ad28.js";import{F as w}from"./p-42141782.js";import{c as y}from"./p-44044ed7.js";import{h as j}from"./p-c5eb0fa6.js";import{h as z}from"./p-aa985d73.js";import{d as C}from"./p-f28a6074.js";import{C as I}from"./p-edda10f7.js";import{R}from"./p-280cbcdb.js";import{C as D}from"./p-75b58efe.js";import{C as O}from"./p-76063dcb.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-d5531d3c.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-a0c3968b.js";import"./p-6e9f832f.js";import"./p-5f377954.js";import"./p-18e8d9b7.js";import"./p-5a25014f.js";var V=function(e,i,t,a){var n,r=arguments.length,o=r<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--)(n=e[s])&&(o=(r<3?n(o):r>3?n(i,t,o):n(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class E extends f{connectedCallback(){this.checkboxGroup=g(this.host,"vega-checkbox-group")||g(this.host,"vega-selection-tile-group"),this.fieldErrorObserver=new p(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([v("connectedCallback")],E.prototype,"connectedCallback",null),V([v("disconnectedCallback")],E.prototype,"disconnectedCallback",null);var F=function(e,i,t,a){var n,r=arguments.length,o=r<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--)(n=e[s])&&(o=(r<3?n(o):r>3?n(i,t,o):n(i,t))||o);return r>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 k,this.groupDisabled=!1,this.showError=!1,this.identifier="",this.value=""!==this.identifier&&"",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="default",this.required=!1,this.isValid=null,this.onCheckBoxChange=e=>{this.indeterminate&&(this.indeterminate=!1),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"),this.syncNativeIndeterminate()}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,indeterminate:this.indeterminate,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","aria-checked":this.indeterminate?"mixed":void 0,disabled:this.isDisabled(),tabIndex:0,onKeyDown:r()}),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.indeterminate?t("vega-icon",{icon:"minus-sign",size:"small"===this.size?"size-12":"size-16"}):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}syncNativeIndeterminate(){this.inputRef&&(this.inputRef.indeterminate=this.indeterminate)}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 p(this.canAcceptGroupDisabledObserver.bind(this),this.groupDisabledObserverListener.bind(this)),c.register(d,this.groupDisabledObserver))}unRegisterGroupDisabledObserver(){this.groupDisabledObserver&&c.unregister(d,this.groupDisabledObserver)}get host(){return n(this)}static get watchers(){return{checked:["watchCheckedChange"]}}};F([u()],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,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));display:inline-flex;align-items:center;justify-content:center}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:hover,:host(.indeterminate) .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,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}: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,:host(.indeterminate) .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,:host(.indeterminate) .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,:host(.indeterminate) .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,:host(.indeterminate.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,:host(.indeterminate.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 n,r=arguments.length,o=r<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--)(n=e[s])&&(o=(r<3?n(o):r>3?n(i,t,o):n(i,t))||o);return r>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 k,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(d,{host:this.host})}get host(){return n(this)}static get watchers(){return{value:["watchValue"],vegaFlexProp:["watchVegaFlexProp"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};P([u()],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}
@@ -1 +1 @@
1
- import{F as s}from"./p-18e8d9b7.js";import{V as o,a as t,b as l,c as a,w as e,d as i,e as c,f as n,g as r,h as f,i as b}from"./p-f5d3ce94.js";import{V as h}from"./p-0304c3a7.js";import{M as p,V as d,s as m,G as u}from"./p-6e1ab235.js";import{V as T}from"./p-c801c85d.js";import{T as g}from"./p-d884c644.js";import{V as j}from"./p-e6adf829.js";import{V as C,s as O}from"./p-82016096.js";import{V as E}from"./p-24b45c85.js";import{v as k}from"./p-5f377954.js";import{U as v}from"./p-a528714c.js";import{C as R}from"./p-2d0d575f.js";import{O as _}from"./p-331a62d5.js";import{f as V}from"./p-6b2342e0.js";import{V as A}from"./p-d289a6af.js";import{v as L,s as y}from"./p-4866e390.js";import{V as D}from"./p-4ed416e7.js";var M=function(s,o,t,l){var a,e=arguments.length,i=e<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(s,o,t,l);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(e<3?a(i):e>3?a(o,t,i):a(o,t))||i);return e>3&&i&&Object.defineProperty(o,t,i),i};class N extends d{constructor(o){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=o.component}connectedCallback(){if(!this.isEnabled)return;if(this.hasDisconnected)return;const s=this.component.constructor.watchers;for(const o in s)s[o].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,o)=>{const t=s;this.component[o]=function(...s){return t.apply(this,s)}}))}}M([p("connectedCallback")],N.prototype,"connectedCallback",null),M([p("disconnectedCallback")],N.prototype,"disconnectedCallback",null),M([p("componentDidLoad")],N.prototype,"componentDidLoad",null);var x=function(s,o,t,l){var a,e=arguments.length,i=e<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(s,o,t,l);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(e<3?a(i):e>3?a(o,t,i):a(o,t))||i);return e>3&&i&&Object.defineProperty(o,t,i),i};class F extends d{constructor(s){super(),this.component=s.component}connectedCallback(){this.observer=new _(this.isAcceptable.bind(this),(()=>{V(this.component)})),R.register(v,this.observer)}disconnectedCallback(){this.observer&&(R.unregister(v,this.observer),this.observer=null)}isAcceptable(){var s,o;const t=this.component.host;return null!==(o=null===(s=C.getConnectedComponents().get(t.tagName))||void 0===s?void 0:s.has(t))&&void 0!==o&&o}}x([p("connectedCallback")],F.prototype,"connectedCallback",null),x([p("disconnectedCallback")],F.prototype,"disconnectedCallback",null);class H extends d{constructor(s){super(),this.component=s.component}connectedCallback(){const s=this.component.host.shadowRoot,o=s.insertBefore;s.insertBefore=function(s,t){if("STYLE"===s.nodeName){const o=L.nonce;void 0!==o&&s.setAttribute("nonce",o)}return o.call(this,s,t)}}}!function(s,o,t,l){var a,e=arguments.length,i=e<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(s,o,t,l);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(e<3?a(i):e>3?a(o,t,i):a(o,t))||i);e>3&&i&&Object.defineProperty(o,t,i)}([p("connectedCallback")],H.prototype,"connectedCallback",null);const P=function(){globalThis.VegaDisabledFeatureKeys&&s.disable(...globalThis.VegaDisabledFeatureKeys),globalThis.VegaEnabledFeatureKeys&&s.enable(...globalThis.VegaEnabledFeatureKeys),globalThis.VegaLoader=o,globalThis.VegaNotify=t,globalThis.VegaThemeManager=h,globalThis.setVegaLogLevel=m,globalThis.VegaDialog=T,u.register([N,F,H]),globalThis.VegaEventManager=l,Object.keys(g).forEach((s=>{const{url:o}=g[s],t="vega-typography-"+s;if(!document.querySelector("#"+t)){const s=document.createElement("link");s.id=t,s.href=o,s.rel="stylesheet",document.head.append(s)}})),globalThis.VegaIconManager=j,globalThis.VegaZIndexManager=a,globalThis.ValidCreditCardNumberRule=E,globalThis.VegaEnvInfo=k.getVegaEnv(),import("./p-5a25014f.js").then((o=>{o.default.init(s)})),globalThis.waitForVega=e,globalThis.VegaSkeletonLoader=i,globalThis.VegaTranslation=c,globalThis.VegaTranslationResourceEN=O,globalThis.VegaRTEContent=A,globalThis.VegaRTETokenExtension=n,globalThis.VegaRTELanguageExtension=r,globalThis.VegaRTEPresetToolbarItems=D,globalThis.VegaRTEFunctionExtension=f,globalThis.VegaRTETableExtension=b,import("./p-5baff397.js").then((s=>{Object.entries(s).forEach((([s,o])=>{globalThis[s]=o}))})),globalThis.VegaThemeManagerApplyBranding&&h.applyBranding(globalThis.VegaThemeManagerApplyBranding),globalThis.setVegaNonce=y,L.patchHeadInsertBeforeWithNonceToStencil()};export{P as g}
1
+ import{F as s}from"./p-18e8d9b7.js";import{V as o,a as t,b as l,c as a,w as e,d as i,e as c,f as n,g as r,h as f,i as h}from"./p-5be546c5.js";import{V as b}from"./p-116e3963.js";import{M as p,V as d,s as m,G as u}from"./p-6e1ab235.js";import{V as T}from"./p-c801c85d.js";import{T as g}from"./p-d884c644.js";import{V as j}from"./p-e6adf829.js";import{V as C,s as O}from"./p-d5531d3c.js";import{V as E}from"./p-ef59f6f0.js";import{v as k}from"./p-5f377954.js";import{U as v}from"./p-a528714c.js";import{C as R}from"./p-2d0d575f.js";import{O as _}from"./p-331a62d5.js";import{f as V}from"./p-6b2342e0.js";import{V as A}from"./p-d4f1f007.js";import{v as L,s as y}from"./p-4866e390.js";import{V as D}from"./p-5ffdea8e.js";var M=function(s,o,t,l){var a,e=arguments.length,i=e<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(s,o,t,l);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(e<3?a(i):e>3?a(o,t,i):a(o,t))||i);return e>3&&i&&Object.defineProperty(o,t,i),i};class N extends d{constructor(o){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=o.component}connectedCallback(){if(!this.isEnabled)return;if(this.hasDisconnected)return;const s=this.component.constructor.watchers;for(const o in s)s[o].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,o)=>{const t=s;this.component[o]=function(...s){return t.apply(this,s)}}))}}M([p("connectedCallback")],N.prototype,"connectedCallback",null),M([p("disconnectedCallback")],N.prototype,"disconnectedCallback",null),M([p("componentDidLoad")],N.prototype,"componentDidLoad",null);var x=function(s,o,t,l){var a,e=arguments.length,i=e<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(s,o,t,l);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(e<3?a(i):e>3?a(o,t,i):a(o,t))||i);return e>3&&i&&Object.defineProperty(o,t,i),i};class F extends d{constructor(s){super(),this.component=s.component}connectedCallback(){this.observer=new _(this.isAcceptable.bind(this),(()=>{V(this.component)})),R.register(v,this.observer)}disconnectedCallback(){this.observer&&(R.unregister(v,this.observer),this.observer=null)}isAcceptable(){var s,o;const t=this.component.host;return null!==(o=null===(s=C.getConnectedComponents().get(t.tagName))||void 0===s?void 0:s.has(t))&&void 0!==o&&o}}x([p("connectedCallback")],F.prototype,"connectedCallback",null),x([p("disconnectedCallback")],F.prototype,"disconnectedCallback",null);class H extends d{constructor(s){super(),this.component=s.component}connectedCallback(){const s=this.component.host.shadowRoot,o=s.insertBefore;s.insertBefore=function(s,t){if("STYLE"===s.nodeName){const o=L.nonce;void 0!==o&&s.setAttribute("nonce",o)}return o.call(this,s,t)}}}!function(s,o,t,l){var a,e=arguments.length,i=e<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(s,o,t,l);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(e<3?a(i):e>3?a(o,t,i):a(o,t))||i);e>3&&i&&Object.defineProperty(o,t,i)}([p("connectedCallback")],H.prototype,"connectedCallback",null);const P=function(){globalThis.VegaDisabledFeatureKeys&&s.disable(...globalThis.VegaDisabledFeatureKeys),globalThis.VegaEnabledFeatureKeys&&s.enable(...globalThis.VegaEnabledFeatureKeys),globalThis.VegaLoader=o,globalThis.VegaNotify=t,globalThis.VegaThemeManager=b,globalThis.setVegaLogLevel=m,globalThis.VegaDialog=T,u.register([N,F,H]),globalThis.VegaEventManager=l,Object.keys(g).forEach((s=>{const{url:o}=g[s],t="vega-typography-"+s;if(!document.querySelector("#"+t)){const s=document.createElement("link");s.id=t,s.href=o,s.rel="stylesheet",document.head.append(s)}})),globalThis.VegaIconManager=j,globalThis.VegaZIndexManager=a,globalThis.ValidCreditCardNumberRule=E,globalThis.VegaEnvInfo=k.getVegaEnv(),import("./p-5a25014f.js").then((o=>{o.default.init(s)})),globalThis.waitForVega=e,globalThis.VegaSkeletonLoader=i,globalThis.VegaTranslation=c,globalThis.VegaTranslationResourceEN=O,globalThis.VegaRTEContent=A,globalThis.VegaRTETokenExtension=n,globalThis.VegaRTELanguageExtension=r,globalThis.VegaRTEPresetToolbarItems=D,globalThis.VegaRTEFunctionExtension=f,globalThis.VegaRTETableExtension=h,import("./p-9d854d43.js").then((s=>{Object.entries(s).forEach((([s,o])=>{globalThis[s]=o}))})),globalThis.VegaThemeManagerApplyBranding&&b.applyBranding(globalThis.VegaThemeManagerApplyBranding),globalThis.setVegaNonce=y,L.patchHeadInsertBeforeWithNonceToStencil()};export{P as g}
@@ -1 +1 @@
1
- import{M as t,V as s}from"./p-6e1ab235.js";import{l as i,m as n,e}from"./p-6e70d3cc.js";import{S as h}from"./p-1fb56e14.js";import{O as c}from"./p-331a62d5.js";import{C as o}from"./p-2d0d575f.js";import{C as a}from"./p-33860e54.js";import{d as l}from"./p-f28a6074.js";var r=function(t,s,i,n){var e,h=arguments.length,c=h<3?s:null===n?n=Object.getOwnPropertyDescriptor(s,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,i,n);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(c=(h<3?e(c):h>3?e(s,i,c):e(s,i))||c);return h>3&&c&&Object.defineProperty(s,i,c),c};class d extends s{constructor(t){super(),this.isVoiceOverClick=!1,this.focusTriggerElement=null,this.focusDialogTaskQueue=new h,this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null,this.isChildFocused=!1,this.eventListenerHandler=()=>{const t=this.entry.triggerEl()||window;t.addEventListener("click",this.handleClickEvent,{capture:!0}),t.addEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.eventListenerRemover=()=>{const t=this.entry.triggerEl();t&&t.removeEventListener("click",this.handleClickEvent,{capture:!0}),window.removeEventListener("click",this.handleClickEvent,{capture:!0}),t&&t.removeEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.handleClickEvent=t=>{this.isVoiceOverClick=i(t),this.isVoiceOverClick||(this.focusTriggerElement=null)},this.handleContextMenuEvent=t=>{this.isVoiceOverClick&&(t.preventDefault(),t.stopPropagation())},this.focusOnFirstFocusableElement=()=>{if(!this.isChildFocused){const t=this.entry.dialogEl(),s=n(t);s?(this.isChildFocused=!0,s.focus()):t.focus()}},this.entry=t}connectedCallback(){this.eventListenerHandler(),this.subscribeDialogContentReady()}disconnectedCallback(){this.eventListenerRemover(),this.unsubscribeDialogContentReady()}componentDidLoad(){this.eventListenerHandler(),this.subscribeDialogContentReady()}async componentDidRender(){await this.focusDialogTaskQueue.runTask()}async toggle(t){t?await this.show():await this.hide()}async show(){this.entry.dialogEl().removeAttribute("inert");const t=e(document,!0);t&&(this.isChildFocused=!1,await this.focusDialogTaskQueue.enqueue({run:async()=>{this.isVoiceOverClick&&(this.focusTriggerElement=t,this.focusOnFirstFocusableElement())}},!1))}async hide(){this.focusTriggerElement&&(this.entry.dialogEl().setAttribute("inert",""),await this.focusDialogTaskQueue.enqueue({run:async()=>{this.focusTriggerElement&&this.focusTriggerElement.focus(),this.focusTriggerElement=null}},!1))}subscribeDialogContentReady(){this.entry.dialogEl()&&!this.dialogContentReadySubject&&(this.dialogContentReadySubject=l.getSubject(this.entry.dialogEl(),a),this.dialogContentReadyObserver=new c((()=>!0),(()=>{this.isVoiceOverClick&&this.focusOnFirstFocusableElement()})),o.register(this.dialogContentReadySubject,this.dialogContentReadyObserver))}unsubscribeDialogContentReady(){this.dialogContentReadyObserver&&this.dialogContentReadySubject&&(o.unregister(this.dialogContentReadySubject,this.dialogContentReadyObserver),this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null)}}r([t("connectedCallback")],d.prototype,"connectedCallback",null),r([t("disconnectedCallback")],d.prototype,"disconnectedCallback",null),r([t("componentDidLoad")],d.prototype,"componentDidLoad",null),r([t("componentDidRender")],d.prototype,"componentDidRender",null);export{d as A}
1
+ import{M as t,V as s}from"./p-6e1ab235.js";import{l as i,m as n,e}from"./p-6e70d3cc.js";import{S as h}from"./p-1fb56e14.js";import{O as c}from"./p-331a62d5.js";import{C as a}from"./p-2d0d575f.js";import{C as o}from"./p-aa985d73.js";import{d as l}from"./p-f28a6074.js";var r=function(t,s,i,n){var e,h=arguments.length,c=h<3?s:null===n?n=Object.getOwnPropertyDescriptor(s,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,i,n);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(c=(h<3?e(c):h>3?e(s,i,c):e(s,i))||c);return h>3&&c&&Object.defineProperty(s,i,c),c};class d extends s{constructor(t){super(),this.isVoiceOverClick=!1,this.focusTriggerElement=null,this.focusDialogTaskQueue=new h,this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null,this.isChildFocused=!1,this.eventListenerHandler=()=>{const t=this.entry.triggerEl()||window;t.addEventListener("click",this.handleClickEvent,{capture:!0}),t.addEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.eventListenerRemover=()=>{const t=this.entry.triggerEl();t&&t.removeEventListener("click",this.handleClickEvent,{capture:!0}),window.removeEventListener("click",this.handleClickEvent,{capture:!0}),t&&t.removeEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.handleClickEvent=t=>{this.isVoiceOverClick=i(t),this.isVoiceOverClick||(this.focusTriggerElement=null)},this.handleContextMenuEvent=t=>{this.isVoiceOverClick&&(t.preventDefault(),t.stopPropagation())},this.focusOnFirstFocusableElement=()=>{if(!this.isChildFocused){const t=this.entry.dialogEl(),s=n(t);s?(this.isChildFocused=!0,s.focus()):t.focus()}},this.entry=t}connectedCallback(){this.eventListenerHandler(),this.subscribeDialogContentReady()}disconnectedCallback(){this.eventListenerRemover(),this.unsubscribeDialogContentReady()}componentDidLoad(){this.eventListenerHandler(),this.subscribeDialogContentReady()}async componentDidRender(){await this.focusDialogTaskQueue.runTask()}async toggle(t){t?await this.show():await this.hide()}async show(){this.entry.dialogEl().removeAttribute("inert");const t=e(document,!0);t&&(this.isChildFocused=!1,await this.focusDialogTaskQueue.enqueue({run:async()=>{this.isVoiceOverClick&&(this.focusTriggerElement=t,this.focusOnFirstFocusableElement())}},!1))}async hide(){this.focusTriggerElement&&(this.entry.dialogEl().setAttribute("inert",""),await this.focusDialogTaskQueue.enqueue({run:async()=>{this.focusTriggerElement&&this.focusTriggerElement.focus(),this.focusTriggerElement=null}},!1))}subscribeDialogContentReady(){this.entry.dialogEl()&&!this.dialogContentReadySubject&&(this.dialogContentReadySubject=l.getSubject(this.entry.dialogEl(),o),this.dialogContentReadyObserver=new c((()=>!0),(()=>{this.isVoiceOverClick&&this.focusOnFirstFocusableElement()})),a.register(this.dialogContentReadySubject,this.dialogContentReadyObserver))}unsubscribeDialogContentReady(){this.dialogContentReadyObserver&&this.dialogContentReadySubject&&(a.unregister(this.dialogContentReadySubject,this.dialogContentReadyObserver),this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null)}}r([t("connectedCallback")],d.prototype,"connectedCallback",null),r([t("disconnectedCallback")],d.prototype,"disconnectedCallback",null),r([t("componentDidLoad")],d.prototype,"componentDidLoad",null),r([t("componentDidRender")],d.prototype,"componentDidRender",null);export{d as A}