@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.
- package/dist/cjs/{app-globals-25e1bfac.js → app-globals-40b1b1b2.js} +7 -7
- package/dist/cjs/{aria-dialog-focusable-trap-slimmer-ced9566d.js → aria-dialog-focusable-trap-slimmer-5507f917.js} +1 -1
- package/dist/cjs/{child-nodes-event-prevent-slimmer-dd0bb8b6.js → child-nodes-event-prevent-slimmer-9b7095a4.js} +1 -1
- package/dist/cjs/{code-block-24b3d0e7.js → code-block-b1f8aded.js} +3 -3
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-bd662b32.js → component-value-history-controller-slimmer.abstract-99fbd1f2.js} +4 -4
- package/dist/cjs/{content-state-0f26036c.js → content-state-648652b4.js} +3 -3
- package/dist/cjs/{dark-mode-style-controller-3a04af3d.js → dark-mode-style-controller-bd765afb.js} +2 -322
- package/dist/cjs/{date-required-rule-4377217a.js → date-required-rule-6addf5dd.js} +1 -1
- package/dist/cjs/{design-token-40276b11.js → design-token-93070bb8.js} +6 -130
- package/dist/cjs/drop-file-accept-filter-slimmer-cd619cc7.js +64 -0
- package/dist/cjs/{dto-renderer-manager-ae5fcbba.js → dto-renderer-manager-7eb5c5ce.js} +42 -2
- package/dist/cjs/{element-appender-slimmer-be1b4d57.js → element-appender-slimmer-52c2b455.js} +87 -11
- package/dist/cjs/{event-emit-slimmer-bee6b676.js → event-emit-slimmer-bcb458b2.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-982dbfe4.js → form-field-controller-slimmer-0f3a028e.js} +3 -3
- package/dist/cjs/{image-annotation-action-e0df5a20.js → image-annotation-action-0339e983.js} +3 -3
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +19 -17
- package/dist/cjs/{inject-keyboard-manager-12b65e98.js → inject-keyboard-manager-2d9c4f92.js} +1 -1
- package/dist/cjs/{internal-translation-controller-9f58a4e4.js → internal-translation-controller-fb1532f4.js} +3 -0
- package/dist/cjs/{internal-vega-event-manager-cc0f511c.js → internal-vega-event-manager-fef893bf.js} +1 -0
- package/dist/cjs/{keyboard-manager-c89a66d3.js → keyboard-manager-5ed6c472.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-93fcbf46.js → keyboard-manager-slimmer-879ff4f3.js} +1 -1
- package/dist/cjs/loader.cjs.js +14 -13
- package/dist/cjs/{month-view-generator-0d25e950.js → month-view-generator-d262e6ce.js} +1 -1
- package/dist/cjs/{public-rules-652ec269.js → public-rules-bce88d4e.js} +10 -9
- package/dist/cjs/{range-cdd61881.js → range-5bd6d72b.js} +1 -1
- package/dist/cjs/{responsive-format-facade-9cae7f27.js → responsive-format-facade-2cab7344.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-4b919054.js → rich-text-editor-required-rule-e8a922be.js} +1 -1
- package/dist/cjs/{split-cell-operation-3596f738.js → split-cell-operation-bb388de6.js} +4 -4
- package/dist/cjs/state-border-formatter-4e5e4ed0.js +133 -0
- package/dist/cjs/{string-format-strategy.abstract-ebdb2573.js → string-format-strategy.abstract-9a35e3b4.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-9b6a8399.js → string-input-formatter-slimmer-1018ddec.js} +3 -3
- package/dist/cjs/{string-mask-strategy-6cc9f391.js → string-mask-strategy-3aa17744.js} +2 -2
- package/dist/cjs/{style-formatter-18289c4d.js → style-formatter-2226c869.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-39bfcfe3.js → sub-state-notify-slimmer-b33171b0.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-e5b50cbf.js → sub-state-observer-slimmer-b8f6f27b.js} +1 -1
- package/dist/cjs/{time-required-rule-3517beff.js → time-required-rule-970dfdca.js} +1 -1
- package/dist/cjs/tinycolor-polyfill-502efaa8.js +325 -0
- package/dist/cjs/{token-extension-addc97c1.js → token-extension-361273fb.js} +85 -28
- package/dist/cjs/{translation-slimmer-c069ca84.js → translation-slimmer-d0c77ad2.js} +1 -1
- package/dist/cjs/{type-guard-362d7da3.js → type-guard-3ec852d7.js} +28 -1
- package/dist/cjs/{valid-credit-card-number-rule-1d8bf49c.js → valid-credit-card-number-rule-99d1bb34.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +7 -6
- package/dist/cjs/vega-app-footer.cjs.entry.js +2 -1
- package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -7
- package/dist/cjs/vega-banner.cjs.entry.js +15 -4
- package/dist/cjs/vega-box.cjs.entry.js +6 -5
- package/dist/cjs/vega-brand-logo.cjs.entry.js +2 -1
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -8
- package/dist/cjs/vega-button-group_2.cjs.entry.js +102 -13
- package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +8 -8
- package/dist/cjs/vega-calendar_4.cjs.entry.js +10 -10
- package/dist/cjs/vega-card.cjs.entry.js +5 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +5 -5
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +44 -11
- package/dist/cjs/vega-chip.cjs.entry.js +8 -7
- package/dist/cjs/vega-code-block.cjs.entry.js +14 -13
- package/dist/cjs/vega-color-picker.cjs.entry.js +26 -8
- package/dist/cjs/vega-color-swatch.cjs.entry.js +245 -0
- package/dist/cjs/vega-combo-box.cjs.entry.js +10 -10
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +20 -20
- package/dist/cjs/vega-dialog_2.cjs.entry.js +80 -247
- package/dist/cjs/vega-divider.cjs.entry.js +5 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +33 -15
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +40 -90
- package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -4
- package/dist/cjs/vega-flex.cjs.entry.js +6 -5
- package/dist/cjs/vega-font.cjs.entry.js +5 -4
- package/dist/cjs/vega-form.cjs.entry.js +9 -9
- package/dist/cjs/vega-grid.cjs.entry.js +5 -4
- package/dist/cjs/vega-icon.cjs.entry.js +5 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +78 -13
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-passcode.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-range.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-select.cjs.entry.js +50 -15
- package/dist/cjs/vega-input.cjs.entry.js +11 -11
- package/dist/cjs/{vega-internal-event-id-a1837fa2.js → vega-internal-event-id-87014e4f.js} +2 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +14 -12
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +9 -9
- package/dist/cjs/vega-popover_2.cjs.entry.js +12 -11
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +34 -11
- package/dist/cjs/vega-radio_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +11 -10
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +75 -29
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +13 -12
- package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +8 -8
- package/dist/cjs/vega-signature-capture.cjs.entry.js +11 -10
- package/dist/cjs/vega-stepper.cjs.entry.js +9 -9
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-table_11.cjs.entry.js +434 -287
- package/dist/cjs/vega-text.cjs.entry.js +16 -2
- package/dist/cjs/vega-textarea.cjs.entry.js +7 -7
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -8
- package/dist/cjs/vega.cjs.js +14 -13
- package/dist/cjs/{wait-for-component-did-render-b6d12d51.js → wait-for-component-did-render-16863a21.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/vega-banner/slimmers/renderers/vega-banner-renderer.js +11 -2
- package/dist/collection/components/vega-banner/vega-banner.js +3 -1
- package/dist/collection/components/vega-button/vega-button.css +4 -0
- package/dist/collection/components/vega-button-group/slimmers/controllers/vega-button-group-all-items-disabled-controller.js +64 -0
- package/dist/collection/components/vega-button-group/vega-button-group-item/slimmers/controllers/vega-button-group-item-sub-state-controller.js +7 -0
- package/dist/collection/components/vega-button-group/vega-button-group-item/slimmers/renderers/vega-button-group-item-renderer.js +6 -2
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +4 -2
- package/dist/collection/components/vega-button-group/vega-button-group.js +20 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.css +19 -14
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +57 -3
- package/dist/collection/components/vega-color-picker/vega-color-picker.css +0 -1
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +40 -1
- package/dist/collection/components/vega-color-swatch/slimmers/renderers/vega-color-swatch-renderer.js +127 -0
- package/dist/collection/components/vega-color-swatch/vega-color-swatch.css +155 -0
- package/dist/collection/components/vega-color-swatch/vega-color-swatch.js +314 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.js +7 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +5 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +2 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +38 -0
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +2 -2
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-default-content-renderer.js +45 -1
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-preview-content-renderer.js +16 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +5 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +17 -4
- package/dist/collection/components/vega-input-select/vega-input-select.js +76 -0
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.js +9 -3
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +0 -4
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.js +17 -2
- package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +28 -28
- package/dist/collection/components/vega-modal/vega-modal.css +2 -2
- package/dist/collection/components/vega-modal/vega-modal.js +0 -5
- package/dist/collection/components/vega-pagination/internal/vega-pagination-go-to.js +1 -1
- package/dist/collection/components/vega-pagination/vega-pagination-page-selector-mobile/slimmers/renderers/page-selector-mobile-renderer.js +1 -1
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-step-controller.js +10 -2
- package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +1 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +39 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +28 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +24 -6
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +23 -8
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +18 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +8 -3
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +47 -0
- package/dist/collection/components/vega-stepper/vega-stepper.css +12 -0
- package/dist/collection/components/vega-stepper/vega-stepper.js +2 -1
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +25 -2
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +28 -1
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +12 -10
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +14 -12
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +5 -4
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.js +8 -1
- package/dist/collection/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.js +16 -2
- package/dist/collection/components/vega-text/vega-text.js +1 -1
- package/dist/collection/components/vega-tooltip/slimmers/controllers/vega-tooltip-element-appender-controller.js +1 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.css +1 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.js +1 -1
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +1 -1
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/rte-manager/dto-renderer-manager.js +42 -2
- 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
- package/dist/collection/helpers/slimmers/element-appender/body-positioned-wrapper/third-party-dialog-wrapper.js +73 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-container-controller.js +6 -0
- package/dist/collection/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.js +96 -0
- package/dist/collection/helpers/translation/locales/en.js +3 -0
- package/dist/collection/types/type-guard.js +26 -0
- package/dist/esm/{app-globals-80a7d395.js → app-globals-f67d0eaf.js} +7 -7
- package/dist/esm/{aria-dialog-focusable-trap-slimmer-cc6a8c3e.js → aria-dialog-focusable-trap-slimmer-853a91de.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-2ecc3e1f.js → child-nodes-event-prevent-slimmer-9c24d4fc.js} +1 -1
- package/dist/esm/{code-block-cd913077.js → code-block-b8be290a.js} +3 -3
- package/dist/esm/{component-value-history-controller-slimmer.abstract-e595761d.js → component-value-history-controller-slimmer.abstract-10ccf8e6.js} +4 -4
- package/dist/esm/{content-state-89f8eecb.js → content-state-72b513d1.js} +3 -3
- package/dist/esm/{dark-mode-style-controller-82e5c1c6.js → dark-mode-style-controller-e9a6b097.js} +1 -321
- package/dist/esm/{date-required-rule-2b08f32c.js → date-required-rule-891a6a57.js} +1 -1
- package/dist/esm/{design-token-7566d54c.js → design-token-59d07aa2.js} +6 -130
- package/dist/esm/drop-file-accept-filter-slimmer-ad759e4a.js +62 -0
- package/dist/esm/{dto-renderer-manager-12bc9121.js → dto-renderer-manager-abc7eb5f.js} +42 -2
- package/dist/esm/{element-appender-slimmer-df2a2da2.js → element-appender-slimmer-29c94a18.js} +87 -11
- package/dist/esm/{event-emit-slimmer-9abc9241.js → event-emit-slimmer-32da9d90.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-40fcb5c2.js → form-field-controller-slimmer-899864a8.js} +3 -3
- package/dist/esm/{image-annotation-action-6048d32e.js → image-annotation-action-ebd6c421.js} +3 -3
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/index.js +19 -17
- package/dist/esm/{inject-keyboard-manager-c6557f50.js → inject-keyboard-manager-dc1d7135.js} +1 -1
- package/dist/esm/{internal-translation-controller-b08aa9ab.js → internal-translation-controller-4fb104b2.js} +3 -0
- package/dist/esm/{internal-vega-event-manager-59f5bd47.js → internal-vega-event-manager-8a657bac.js} +1 -0
- package/dist/esm/{keyboard-manager-c7b125d7.js → keyboard-manager-6ea9968b.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-6109039b.js → keyboard-manager-slimmer-7eed4734.js} +1 -1
- package/dist/esm/loader.js +14 -13
- package/dist/esm/{month-view-generator-139ace5a.js → month-view-generator-aaa27fce.js} +1 -1
- package/dist/esm/{public-rules-e42bce9d.js → public-rules-f2005e11.js} +10 -9
- package/dist/esm/{range-b76edec7.js → range-ed532278.js} +1 -1
- package/dist/esm/{responsive-format-facade-151dbd10.js → responsive-format-facade-e9926018.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-1fc7c040.js → rich-text-editor-required-rule-b559cf1a.js} +1 -1
- package/dist/esm/{split-cell-operation-548ea374.js → split-cell-operation-5587f594.js} +4 -4
- package/dist/esm/state-border-formatter-be51463d.js +129 -0
- package/dist/esm/{string-format-strategy.abstract-6488031a.js → string-format-strategy.abstract-0157b3c5.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-625e17a2.js → string-input-formatter-slimmer-33ed3478.js} +3 -3
- package/dist/esm/{string-mask-strategy-a165d316.js → string-mask-strategy-b58891b5.js} +2 -2
- package/dist/esm/{style-formatter-280757ae.js → style-formatter-9662ae88.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-6c972bb4.js → sub-state-notify-slimmer-1f907173.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-53643b5c.js → sub-state-observer-slimmer-090c500a.js} +1 -1
- package/dist/esm/{time-required-rule-3f5a8822.js → time-required-rule-a9dc8473.js} +1 -1
- package/dist/esm/tinycolor-polyfill-7be0eb93.js +322 -0
- package/dist/esm/{token-extension-5ee7a3f1.js → token-extension-0710dbc5.js} +85 -28
- package/dist/esm/{translation-slimmer-35b1d0fa.js → translation-slimmer-4faae5a3.js} +1 -1
- package/dist/esm/{type-guard-f6c9c89d.js → type-guard-152070e9.js} +28 -2
- package/dist/esm/{valid-credit-card-number-rule-3bf19ad6.js → valid-credit-card-number-rule-a7907cb7.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +7 -6
- package/dist/esm/vega-app-footer.entry.js +2 -1
- package/dist/esm/vega-app-header-button.entry.js +8 -7
- package/dist/esm/vega-banner.entry.js +15 -4
- package/dist/esm/vega-box.entry.js +6 -5
- package/dist/esm/vega-brand-logo.entry.js +2 -1
- package/dist/esm/vega-breadcrumb.entry.js +3 -3
- package/dist/esm/vega-button-circle.entry.js +9 -8
- package/dist/esm/vega-button-group_2.entry.js +102 -13
- package/dist/esm/vega-button-link.entry.js +3 -3
- package/dist/esm/vega-button.entry.js +8 -8
- package/dist/esm/vega-calendar_4.entry.js +10 -10
- package/dist/esm/vega-card.entry.js +5 -4
- package/dist/esm/vega-carousel.entry.js +5 -5
- package/dist/esm/vega-checkbox_2.entry.js +44 -11
- package/dist/esm/vega-chip.entry.js +8 -7
- package/dist/esm/vega-code-block.entry.js +14 -13
- package/dist/esm/vega-color-picker.entry.js +26 -8
- package/dist/esm/vega-color-swatch.entry.js +241 -0
- package/dist/esm/vega-combo-box.entry.js +10 -10
- package/dist/esm/vega-date-picker_2.entry.js +20 -20
- package/dist/esm/vega-dialog_2.entry.js +80 -247
- package/dist/esm/vega-divider.entry.js +5 -4
- package/dist/esm/vega-dropdown_5.entry.js +33 -15
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +40 -90
- package/dist/esm/vega-flag-icon.entry.js +5 -4
- package/dist/esm/vega-flex.entry.js +6 -5
- package/dist/esm/vega-font.entry.js +5 -4
- package/dist/esm/vega-form.entry.js +9 -9
- package/dist/esm/vega-grid.entry.js +5 -4
- package/dist/esm/vega-icon.entry.js +5 -4
- package/dist/esm/vega-image-uploader.entry.js +78 -13
- package/dist/esm/vega-input-credit-card.entry.js +11 -11
- package/dist/esm/vega-input-numeric.entry.js +11 -11
- package/dist/esm/vega-input-passcode.entry.js +10 -10
- package/dist/esm/vega-input-phone-number.entry.js +9 -9
- package/dist/esm/vega-input-range.entry.js +8 -8
- package/dist/esm/vega-input-select.entry.js +50 -15
- package/dist/esm/vega-input.entry.js +11 -11
- package/dist/esm/{vega-internal-event-id-70bd893d.js → vega-internal-event-id-194bac82.js} +2 -1
- package/dist/esm/vega-item-toggle.entry.js +2 -2
- package/dist/esm/vega-left-nav_5.entry.js +14 -12
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +9 -9
- package/dist/esm/vega-popover_2.entry.js +12 -11
- package/dist/esm/vega-progress-tracker_2.entry.js +34 -11
- package/dist/esm/vega-radio_2.entry.js +10 -10
- package/dist/esm/vega-rich-text-content.entry.js +11 -10
- package/dist/esm/vega-rich-text-editor_4.entry.js +75 -29
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +13 -12
- package/dist/esm/vega-segment-control.entry.js +2 -2
- package/dist/esm/vega-selection-chip_2.entry.js +10 -10
- package/dist/esm/vega-selection-tile_2.entry.js +8 -8
- package/dist/esm/vega-sidenav_3.entry.js +8 -8
- package/dist/esm/vega-signature-capture.entry.js +11 -10
- package/dist/esm/vega-stepper.entry.js +9 -9
- package/dist/esm/vega-tab-group_2.entry.js +3 -3
- package/dist/esm/vega-table_11.entry.js +434 -287
- package/dist/esm/vega-text.entry.js +16 -2
- package/dist/esm/vega-textarea.entry.js +7 -7
- package/dist/esm/vega-time-picker_2.entry.js +14 -14
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +9 -8
- package/dist/esm/vega.js +14 -13
- package/dist/esm/{wait-for-component-did-render-6980a1a6.js → wait-for-component-did-render-30cde59c.js} +1 -1
- package/dist/sri/vega-sri-manifest.json +367 -351
- package/dist/types/components/vega-banner/slimmers/renderers/vega-banner-renderer.d.ts +6 -0
- package/dist/types/components/vega-banner/vega-banner.d.ts +2 -0
- package/dist/types/components/vega-button-group/slimmers/controllers/vega-button-group-all-items-disabled-controller.d.ts +21 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/slimmers/controllers/vega-button-group-item-sub-state-controller.d.ts +1 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/slimmers/renderers/vega-button-group-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/vega-button-group-item.d.ts +1 -0
- package/dist/types/components/vega-button-group/vega-button-group.d.ts +5 -0
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +22 -1
- package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +14 -0
- package/dist/types/components/vega-color-swatch/slimmers/renderers/vega-color-swatch-renderer.d.ts +48 -0
- package/dist/types/components/vega-color-swatch/types.d.ts +5 -0
- package/dist/types/components/vega-color-swatch/vega-color-swatch.d.ts +86 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +4 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +10 -0
- package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +2 -2
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-default-content-renderer.d.ts +25 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-preview-content-renderer.d.ts +10 -0
- package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +2 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +3 -0
- package/dist/types/components/vega-input-select/types.d.ts +14 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +19 -1
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.d.ts +1 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +0 -1
- package/dist/types/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.d.ts +3 -2
- package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +3 -2
- package/dist/types/components/vega-modal/vega-modal.d.ts +0 -2
- package/dist/types/components/vega-pagination/types.d.ts +7 -1
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-step-controller.d.ts +1 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +20 -2
- package/dist/types/components/vega-rich-text-editor/extensions/languages/language-extension.d.ts +13 -2
- package/dist/types/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.d.ts +15 -4
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.d.ts +4 -3
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +14 -1
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +8 -1
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +5 -1
- package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-head-row/vega-table-head-row.d.ts +4 -0
- package/dist/types/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.d.ts +1 -0
- package/dist/types/components/vega-text/types.d.ts +5 -3
- package/dist/types/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.d.ts +4 -0
- package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +4 -0
- package/dist/types/components.d.ts +181 -8
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +56 -3
- package/dist/types/helpers/rte-manager/dto-renderer-manager.d.ts +26 -1
- package/dist/types/helpers/slimmers/drop-file-accept-filter-slimmer.d.ts +29 -0
- package/dist/types/helpers/slimmers/element-appender/body-positioned-wrapper/third-party-dialog-wrapper.d.ts +45 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-container-controller.d.ts +2 -0
- package/dist/types/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.d.ts +48 -0
- package/dist/types/helpers/translation/interface.d.ts +4 -1
- package/dist/types/types/components.type.d.ts +8 -0
- package/dist/types/types/public-api.d.ts +3 -1
- package/dist/types/types/type-guard.d.ts +15 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-2f99c511.js → p-02467b61.js} +1 -1
- package/dist/vega/p-075bb809.entry.js +1 -0
- package/dist/vega/{p-59c6f795.js → p-085de8fc.js} +1 -1
- package/dist/vega/{p-0fc2ccc4.entry.js → p-0915a8d3.entry.js} +1 -1
- package/dist/vega/p-0bcb2945.entry.js +1 -0
- package/dist/vega/{p-e22e5aa1.js → p-0bf8743f.js} +1 -1
- package/dist/vega/{p-a1d51bc2.js → p-0caf52e0.js} +1 -1
- package/dist/vega/{p-42da45e3.entry.js → p-0dbd7723.entry.js} +1 -1
- package/dist/vega/{p-98c44c03.js → p-103d20f5.js} +1 -1
- package/dist/vega/p-115d6053.entry.js +1 -0
- package/dist/vega/{p-0304c3a7.js → p-116e3963.js} +1 -1
- package/dist/vega/p-142f371b.entry.js +1 -0
- package/dist/vega/p-14de7ba0.entry.js +1 -0
- package/dist/vega/p-158c6a9f.entry.js +1 -0
- package/dist/vega/{p-42e246e4.entry.js → p-19a30f98.entry.js} +1 -1
- package/dist/vega/p-1b48e8a5.entry.js +1 -0
- package/dist/vega/{p-e1117034.entry.js → p-1ca95601.entry.js} +1 -1
- package/dist/vega/p-25ab7a33.entry.js +1 -0
- package/dist/vega/p-264b3309.entry.js +1 -0
- package/dist/vega/{p-c0d45f77.entry.js → p-280f63fa.entry.js} +1 -1
- package/dist/vega/p-29d31c98.entry.js +1 -0
- package/dist/vega/{p-7ac9e8ff.entry.js → p-29f42c27.entry.js} +1 -1
- package/dist/vega/p-2b5cf2b3.js +1 -0
- package/dist/vega/{p-679b1f00.entry.js → p-30445cd9.entry.js} +1 -1
- package/dist/vega/p-318f0df5.js +1 -0
- package/dist/vega/p-337a5e76.js +1 -0
- package/dist/vega/p-380abceb.entry.js +1 -0
- package/dist/vega/p-38af89b9.js +1 -0
- package/dist/vega/p-3fae8d3f.entry.js +1 -0
- package/dist/vega/{p-49ae8c79.js → p-42141782.js} +1 -1
- package/dist/vega/{p-d0ac7af8.js → p-44044ed7.js} +1 -1
- package/dist/vega/p-475bd8bf.entry.js +1 -0
- package/dist/vega/{p-e753fac2.entry.js → p-47611a83.entry.js} +1 -1
- package/dist/vega/p-4e95248c.entry.js +1 -0
- package/dist/vega/{p-eccabba7.entry.js → p-513f51ec.entry.js} +1 -1
- package/dist/vega/{p-e8fc8495.entry.js → p-51d2e0ab.entry.js} +1 -1
- package/dist/vega/p-54ba35e3.entry.js +1 -0
- package/dist/vega/{p-dff66a67.entry.js → p-58b6ac33.entry.js} +1 -1
- package/dist/vega/p-596bc4f6.entry.js +1 -0
- package/dist/vega/{p-757bfca2.entry.js → p-597588d0.entry.js} +1 -1
- package/dist/vega/p-5be546c5.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-4ed416e7.js → p-5ffdea8e.js} +1 -1
- package/dist/vega/{p-90a0b9f3.entry.js → p-608f234f.entry.js} +1 -1
- package/dist/vega/{p-3224e47c.js → p-6572e038.js} +1 -1
- package/dist/vega/p-6e9f832f.js +1 -0
- package/dist/vega/p-783531cf.entry.js +1 -0
- package/dist/vega/{p-47a2eec1.entry.js → p-7d85cc74.entry.js} +1 -1
- package/dist/vega/p-7df43192.entry.js +1 -0
- package/dist/vega/p-81a11dc6.entry.js +1 -0
- package/dist/vega/p-8559e36f.entry.js +1 -0
- package/dist/vega/{p-f0d605e9.entry.js → p-8583dd34.entry.js} +1 -1
- package/dist/vega/p-85abe824.entry.js +1 -0
- package/dist/vega/p-874bf8b2.js +1 -0
- package/dist/vega/p-8aee6b74.js +1 -0
- package/dist/vega/{p-9324dd2c.entry.js → p-8b217c7e.entry.js} +1 -1
- package/dist/vega/p-8da66d41.entry.js +1 -0
- package/dist/vega/p-90cb665e.entry.js +1 -0
- package/dist/vega/{p-fd5ddc55.js → p-956b170c.js} +1 -1
- package/dist/vega/{p-001d36af.js → p-9751c801.js} +1 -1
- package/dist/vega/p-988401c3.entry.js +1 -0
- package/dist/vega/{p-f40d479d.entry.js → p-9c1a48b9.entry.js} +1 -1
- package/dist/vega/p-9d854d43.js +1 -0
- package/dist/vega/{p-64e22fe5.js → p-a07c0f8c.js} +1 -1
- package/dist/vega/{p-6216c30e.js → p-a0c3968b.js} +1 -1
- package/dist/vega/p-a4738b70.entry.js +1 -0
- package/dist/vega/p-a6dbc63d.entry.js +1 -0
- package/dist/vega/p-aa985d73.js +1 -0
- package/dist/vega/{p-5f95a2fa.js → p-ab829745.js} +1 -1
- package/dist/vega/p-b08a70e6.entry.js +1 -0
- package/dist/vega/p-b19b1c08.js +1 -0
- package/dist/vega/p-b5497af2.entry.js +1 -0
- package/dist/vega/p-b6c3ce6d.js +1 -0
- package/dist/vega/p-b7624ce4.js +1 -0
- package/dist/vega/{p-83863463.js → p-b9386dd0.js} +1 -1
- package/dist/vega/p-b9728ca8.js +1 -0
- package/dist/vega/{p-88e6618d.js → p-b9947846.js} +1 -1
- package/dist/vega/p-b9a95aca.entry.js +1 -0
- package/dist/vega/{p-53ba1adb.entry.js → p-bb46d8e6.entry.js} +1 -1
- package/dist/vega/p-c36afa21.entry.js +1 -0
- package/dist/vega/{p-f509b439.js → p-c8435185.js} +1 -1
- package/dist/vega/{p-ab4b06c9.entry.js → p-c8d41cdc.entry.js} +1 -1
- package/dist/vega/{p-ff47aeee.entry.js → p-cab70b95.entry.js} +1 -1
- package/dist/vega/p-cc00135a.entry.js +1 -0
- package/dist/vega/p-cc18970f.entry.js +1 -0
- package/dist/vega/p-d320496e.entry.js +1 -0
- package/dist/vega/{p-ae0f03c1.js → p-d32e83e7.js} +1 -1
- package/dist/vega/{p-37a9f4b4.entry.js → p-d456386a.entry.js} +1 -1
- package/dist/vega/{p-d289a6af.js → p-d4f1f007.js} +1 -1
- package/dist/vega/{p-82016096.js → p-d5531d3c.js} +1 -1
- package/dist/vega/{p-9b14ac66.entry.js → p-d7bd2470.entry.js} +1 -1
- package/dist/vega/{p-add63fe0.entry.js → p-e00fb667.entry.js} +1 -1
- package/dist/vega/{p-5a8be21c.entry.js → p-e340d58c.entry.js} +1 -1
- package/dist/vega/{p-dc6e7a77.js → p-e71864ff.js} +1 -1
- package/dist/vega/{p-5e9f6fb6.entry.js → p-ea564928.entry.js} +1 -1
- package/dist/vega/p-eb0ebf50.entry.js +1 -0
- package/dist/vega/p-ebdb489c.entry.js +1 -0
- package/dist/vega/{p-01541820.entry.js → p-ed01657b.entry.js} +1 -1
- package/dist/vega/p-eda7cd76.entry.js +1 -0
- package/dist/vega/{p-68a531cf.js → p-edda10f7.js} +1 -1
- package/dist/vega/{p-24b45c85.js → p-ef59f6f0.js} +1 -1
- package/dist/vega/{p-77c6f14a.entry.js → p-efc8c09e.entry.js} +1 -1
- package/dist/vega/p-f020738c.entry.js +1 -0
- package/dist/vega/{p-f2cef51a.js → p-f7a5746b.js} +1 -1
- package/dist/vega/{p-27dc6562.entry.js → p-f89cf75a.entry.js} +1 -1
- package/dist/vega/p-fb5ea4b2.js +1 -0
- package/dist/vega/p-fc7ab79d.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.js +0 -182
- package/dist/types/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-drop-file-filter-controller.d.ts +0 -22
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.d.ts +0 -51
- package/dist/vega/p-08f03a52.entry.js +0 -1
- package/dist/vega/p-0a145766.entry.js +0 -1
- package/dist/vega/p-0d205fbf.js +0 -1
- package/dist/vega/p-118aeed1.entry.js +0 -1
- package/dist/vega/p-1a4e8d8a.js +0 -1
- package/dist/vega/p-23dc4064.entry.js +0 -1
- package/dist/vega/p-262a27d0.js +0 -1
- package/dist/vega/p-2beace1c.entry.js +0 -1
- package/dist/vega/p-2ce2972f.js +0 -1
- package/dist/vega/p-2e7d5e28.entry.js +0 -1
- package/dist/vega/p-32592497.entry.js +0 -1
- package/dist/vega/p-33860e54.js +0 -1
- package/dist/vega/p-3d2d267d.js +0 -1
- package/dist/vega/p-3f3c771a.entry.js +0 -1
- package/dist/vega/p-4013d954.entry.js +0 -1
- package/dist/vega/p-479a169c.entry.js +0 -1
- package/dist/vega/p-55019e55.entry.js +0 -1
- package/dist/vega/p-565aac6e.entry.js +0 -1
- package/dist/vega/p-574586c9.entry.js +0 -1
- package/dist/vega/p-5781b9f4.entry.js +0 -1
- package/dist/vega/p-57827342.entry.js +0 -1
- package/dist/vega/p-5baff397.js +0 -1
- package/dist/vega/p-62e80151.entry.js +0 -1
- package/dist/vega/p-63d73fa0.entry.js +0 -1
- package/dist/vega/p-76daa632.entry.js +0 -1
- package/dist/vega/p-8ac2d165.js +0 -1
- package/dist/vega/p-9aa1c66a.entry.js +0 -1
- package/dist/vega/p-9b01a28a.entry.js +0 -1
- package/dist/vega/p-ac43be09.entry.js +0 -1
- package/dist/vega/p-b525c800.entry.js +0 -1
- package/dist/vega/p-be651266.entry.js +0 -1
- package/dist/vega/p-c2e7992b.js +0 -1
- package/dist/vega/p-c56aa01c.entry.js +0 -1
- package/dist/vega/p-c8feb644.entry.js +0 -1
- package/dist/vega/p-cc3c661c.entry.js +0 -1
- package/dist/vega/p-cda09e99.entry.js +0 -1
- package/dist/vega/p-d29e8972.entry.js +0 -1
- package/dist/vega/p-d47aa28f.js +0 -1
- package/dist/vega/p-d90eee9a.entry.js +0 -1
- package/dist/vega/p-dcf8f58f.entry.js +0 -1
- package/dist/vega/p-e223e0dc.entry.js +0 -1
- package/dist/vega/p-ea2b5dbb.js +0 -1
- package/dist/vega/p-f2c65579.entry.js +0 -1
- package/dist/vega/p-f5013494.entry.js +0 -1
- package/dist/vega/p-f5d3ce94.js +0 -1
- package/dist/vega/p-f69e2801.entry.js +0 -1
- package/dist/vega/p-fa654762.entry.js +0 -1
- package/dist/vega/p-fbc5a7f6.entry.js +0 -1
- package/dist/vega/p-fcabf0dc.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as ActionHandleStrategy, e as RTETextBlock, c as RTETextNode, h as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, q as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, r as BlockUpdateHorizontalAlignmentStrategy, l as ModifyContentActionType, t as BlockInsertLineBreakStrategy, u as BlockInsertLineBreakWithBlocksStrategy, v as BlockSplitWithTextNodeStrategy, w as BlockReplaceNodesStrategy, x as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, n as RemoveChildrenAction, S as SyncUpSelectionAction, j as InsertChildrenBeforeAction, B as BlockAnnotation, y as BlockAnnotationTypeEnum, d as RTEBlock, z as CustomStyleAnnotation, D as CustomClassAnnotation, o as CustomAttributeAnnotation, E as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, F as NodeAnnotationTypeEnum, G as RTEDecoratorNode, J as NodeTypeEnum, K as CommonAnnotation, m as AnnotationAction, L as ReplaceChildNodesAction, M as ModifyContentAction, O as SplitBlockWithNodeAction, P as HTML_VOID_TAGS, Q as BlockDeleteNodeContentStrategy, U as UpdateTextAction, W as RemoveChildrenStrategy, X as BOLD_FONT_WEIGHT_KEYWORD, Y as BOLD_FONT_WEIGHT, Z as createStyleMapFromElement, _ as RTE_TEXT_COLORS, $ as RTE_DEFAULT_TEXT_COLOR, a0 as ITALIC_FONT_STYLE, a1 as STRIKETHROUGH_TEXT_DECORATION, a2 as UNDERLINE_TEXT_DECORATION, R as RTEFilterStylesStrategyRegistry, a3 as TextStyleAnnotation, p as RTEFilterStylesStrategy, a4 as Predicate$1, a5 as HorizontalAlignmentAnnotation, a6 as CodeAnnotation, b as RTEDTOClassManager, a7 as LinkFilterStylesStrategy, a8 as CodeBlockFilterStylesStrategy, a9 as RTECodeBlockNode, aa as CodeBlockNodeFilterStylesStrategy } from './code-block-
|
|
1
|
+
import { g as ActionHandleStrategy, e as RTETextBlock, c as RTETextNode, h as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, q as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, r as BlockUpdateHorizontalAlignmentStrategy, l as ModifyContentActionType, t as BlockInsertLineBreakStrategy, u as BlockInsertLineBreakWithBlocksStrategy, v as BlockSplitWithTextNodeStrategy, w as BlockReplaceNodesStrategy, x as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, n as RemoveChildrenAction, S as SyncUpSelectionAction, j as InsertChildrenBeforeAction, B as BlockAnnotation, y as BlockAnnotationTypeEnum, d as RTEBlock, z as CustomStyleAnnotation, D as CustomClassAnnotation, o as CustomAttributeAnnotation, E as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, F as NodeAnnotationTypeEnum, G as RTEDecoratorNode, J as NodeTypeEnum, K as CommonAnnotation, m as AnnotationAction, L as ReplaceChildNodesAction, M as ModifyContentAction, O as SplitBlockWithNodeAction, P as HTML_VOID_TAGS, Q as BlockDeleteNodeContentStrategy, U as UpdateTextAction, W as RemoveChildrenStrategy, X as BOLD_FONT_WEIGHT_KEYWORD, Y as BOLD_FONT_WEIGHT, Z as createStyleMapFromElement, _ as RTE_TEXT_COLORS, $ as RTE_DEFAULT_TEXT_COLOR, a0 as ITALIC_FONT_STYLE, a1 as STRIKETHROUGH_TEXT_DECORATION, a2 as UNDERLINE_TEXT_DECORATION, R as RTEFilterStylesStrategyRegistry, a3 as TextStyleAnnotation, p as RTEFilterStylesStrategy, a4 as Predicate$1, a5 as HorizontalAlignmentAnnotation, a6 as CodeAnnotation, b as RTEDTOClassManager, a7 as LinkFilterStylesStrategy, a8 as CodeBlockFilterStylesStrategy, a9 as RTECodeBlockNode, aa as CodeBlockNodeFilterStylesStrategy } from './code-block-b8be290a.js';
|
|
2
2
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
3
|
-
import { i as isNonNullable } from './type-guard-
|
|
3
|
+
import { i as isNonNullable } from './type-guard-152070e9.js';
|
|
4
4
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
5
|
import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-aca0116e.js';
|
|
6
|
-
import { c as VegaInternalUpdateRTECursorPosition, d as VegaInternalRichTextEditorFlushChanges } from './vega-internal-event-id-
|
|
6
|
+
import { c as VegaInternalUpdateRTECursorPosition, d as VegaInternalRichTextEditorFlushChanges } from './vega-internal-event-id-194bac82.js';
|
|
7
7
|
import { r as rgbToHex, i as isHTMLElement } from './ui-b7600a48.js';
|
|
8
8
|
import { c as cleanObject } from './object-0c277f57.js';
|
|
9
9
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
package/dist/esm/{dark-mode-style-controller-82e5c1c6.js → dark-mode-style-controller-e9a6b097.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { D as DARK_MODE_CHANGE, G as GP_BRAND_CHANGE } from './static-subject-title-52f93124.js';
|
|
2
2
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
3
3
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
|
+
import { t as tinycolor } from './tinycolor-polyfill-7be0eb93.js';
|
|
4
5
|
import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
|
|
5
6
|
import { h as htmlSanitizer, s as styleSanitizeStrategy, e as emptySanitizeStrategy } from './index-3b327f29.js';
|
|
6
7
|
|
|
@@ -482,327 +483,6 @@ const DarkModeRingTokens = {
|
|
|
482
483
|
'ring-action-danger-focus': '255, 56, 97, 0.25',
|
|
483
484
|
};
|
|
484
485
|
|
|
485
|
-
/**
|
|
486
|
-
* TinyColor Polyfill - A lightweight color manipulation utility.
|
|
487
|
-
*
|
|
488
|
-
* This is a drop-in replacement for tinycolor2, implementing only the methods
|
|
489
|
-
* used in the Vega theme overriding system.
|
|
490
|
-
*
|
|
491
|
-
* @see VD-5026 - [Zero Dependencies] remove tinycolor2 dependency
|
|
492
|
-
*/
|
|
493
|
-
/**
|
|
494
|
-
* TinyColor polyfill class for color manipulation.
|
|
495
|
-
* Implements the same interface as tinycolor2.Instance for the methods used in Vega.
|
|
496
|
-
*/
|
|
497
|
-
class TinyColorPolyfill {
|
|
498
|
-
/**
|
|
499
|
-
* Create a new TinyColorPolyfill instance.
|
|
500
|
-
*
|
|
501
|
-
* @param {string | RgbaValue} color - The color to parse.
|
|
502
|
-
*/
|
|
503
|
-
constructor(color) {
|
|
504
|
-
const rgba = TinyColorPolyfill.parseColor(color);
|
|
505
|
-
this._r = rgba.r;
|
|
506
|
-
this._g = rgba.g;
|
|
507
|
-
this._b = rgba.b;
|
|
508
|
-
this._a = rgba.a;
|
|
509
|
-
}
|
|
510
|
-
// ==================== Private Static Helper Methods ====================
|
|
511
|
-
/**
|
|
512
|
-
* Clamp a value between a minimum and maximum.
|
|
513
|
-
*
|
|
514
|
-
* @param {number} value - The value to clamp.
|
|
515
|
-
* @param {number} min - The minimum allowed value.
|
|
516
|
-
* @param {number} max - The maximum allowed value.
|
|
517
|
-
* @returns {number} The clamped value.
|
|
518
|
-
*/
|
|
519
|
-
static clamp(value, min, max) {
|
|
520
|
-
return Math.min(Math.max(value, min), max);
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* Parse a color string or RGBA object into an RgbaValue.
|
|
524
|
-
*
|
|
525
|
-
* Supported formats:
|
|
526
|
-
* - Hex: #RGB, #RRGGBB, #RRGGBBAA
|
|
527
|
-
* - RGB: rgb(r, g, b)
|
|
528
|
-
* - RGBA: rgba(r, g, b, a)
|
|
529
|
-
* - Object: { r, g, b, a? }
|
|
530
|
-
*
|
|
531
|
-
* @param {string | RgbaValue} color - The color to parse.
|
|
532
|
-
* @returns {RgbaValue} The parsed RGBA value.
|
|
533
|
-
*/
|
|
534
|
-
static parseColor(color) {
|
|
535
|
-
if (typeof color === 'object' && 'r' in color && 'g' in color && 'b' in color) {
|
|
536
|
-
return {
|
|
537
|
-
r: Math.round(TinyColorPolyfill.clamp(color.r, 0, 255)),
|
|
538
|
-
g: Math.round(TinyColorPolyfill.clamp(color.g, 0, 255)),
|
|
539
|
-
b: Math.round(TinyColorPolyfill.clamp(color.b, 0, 255)),
|
|
540
|
-
a: color.a !== undefined ? TinyColorPolyfill.clamp(color.a, 0, 1) : 1,
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
if (typeof color !== 'string') {
|
|
544
|
-
return { r: 0, g: 0, b: 0, a: 1 };
|
|
545
|
-
}
|
|
546
|
-
const trimmed = color.trim().toLowerCase();
|
|
547
|
-
// Hex format
|
|
548
|
-
if (trimmed.startsWith('#')) {
|
|
549
|
-
return TinyColorPolyfill.parseHex(trimmed);
|
|
550
|
-
}
|
|
551
|
-
// RGB/RGBA format
|
|
552
|
-
if (trimmed.startsWith('rgb')) {
|
|
553
|
-
return TinyColorPolyfill.parseRgbString(trimmed);
|
|
554
|
-
}
|
|
555
|
-
// Fallback to black for unsupported formats
|
|
556
|
-
return { r: 0, g: 0, b: 0, a: 1 };
|
|
557
|
-
}
|
|
558
|
-
/* eslint-disable spellcheck/spell-checker */
|
|
559
|
-
/**
|
|
560
|
-
* Parse a hex color string into RGBA values.
|
|
561
|
-
*
|
|
562
|
-
* @param {string} hex - The hex color string (e.g., "#fff", "#ffffff", "#ffffffff").
|
|
563
|
-
* @returns {RgbaValue} The parsed RGBA value.
|
|
564
|
-
*/
|
|
565
|
-
static parseHex(hex) {
|
|
566
|
-
/* eslint-enable spellcheck/spell-checker */
|
|
567
|
-
// Remove the # prefix
|
|
568
|
-
let hexValue = hex.slice(1);
|
|
569
|
-
// Expand shorthand format (#RGB -> #RRGGBB)
|
|
570
|
-
if (hexValue.length === 3) {
|
|
571
|
-
hexValue = hexValue
|
|
572
|
-
.split('')
|
|
573
|
-
.map((c) => c + c)
|
|
574
|
-
.join('');
|
|
575
|
-
}
|
|
576
|
-
// Handle #RGBA shorthand
|
|
577
|
-
if (hexValue.length === 4) {
|
|
578
|
-
hexValue = hexValue
|
|
579
|
-
.split('')
|
|
580
|
-
.map((c) => c + c)
|
|
581
|
-
.join('');
|
|
582
|
-
}
|
|
583
|
-
const r = parseInt(hexValue.slice(0, 2), 16);
|
|
584
|
-
const g = parseInt(hexValue.slice(2, 4), 16);
|
|
585
|
-
const b = parseInt(hexValue.slice(4, 6), 16);
|
|
586
|
-
let a = 1;
|
|
587
|
-
// Handle #RRGGBBAA format
|
|
588
|
-
if (hexValue.length === 8) {
|
|
589
|
-
a = parseInt(hexValue.slice(6, 8), 16) / 255;
|
|
590
|
-
}
|
|
591
|
-
return {
|
|
592
|
-
r: Number.isNaN(r) ? 0 : r,
|
|
593
|
-
g: Number.isNaN(g) ? 0 : g,
|
|
594
|
-
b: Number.isNaN(b) ? 0 : b,
|
|
595
|
-
a: Number.isNaN(a) ? 1 : a,
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Parse an RGB or RGBA string into RGBA values.
|
|
600
|
-
*
|
|
601
|
-
* @param {string} rgbString - The RGB/RGBA string (e.g., "rgb(255, 128, 0)" or "rgba(255, 128, 0, 0.5)").
|
|
602
|
-
* @returns {RgbaValue} The parsed RGBA value.
|
|
603
|
-
*/
|
|
604
|
-
static parseRgbString(rgbString) {
|
|
605
|
-
// Match rgb(r, g, b) or rgba(r, g, b, a) with comma-separated integer values.
|
|
606
|
-
// Note: Does NOT support percentage values (e.g., rgb(100%, 50%, 0%)) or
|
|
607
|
-
// modern CSS space-separated syntax (e.g., rgb(255 128 0 / 0.5)).
|
|
608
|
-
const match = rgbString.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+\.?\d*))?\s*\)/);
|
|
609
|
-
if (!match) {
|
|
610
|
-
return { r: 0, g: 0, b: 0, a: 1 };
|
|
611
|
-
}
|
|
612
|
-
return {
|
|
613
|
-
r: TinyColorPolyfill.clamp(parseInt(match[1], 10), 0, 255),
|
|
614
|
-
g: TinyColorPolyfill.clamp(parseInt(match[2], 10), 0, 255),
|
|
615
|
-
b: TinyColorPolyfill.clamp(parseInt(match[3], 10), 0, 255),
|
|
616
|
-
a: match[4] !== undefined ? TinyColorPolyfill.clamp(parseFloat(match[4]), 0, 1) : 1,
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
* Convert RGB to HSL.
|
|
621
|
-
*
|
|
622
|
-
* @param {number} r - Red (0-255).
|
|
623
|
-
* @param {number} g - Green (0-255).
|
|
624
|
-
* @param {number} b - Blue (0-255).
|
|
625
|
-
* @returns {HslValue} The HSL values (h: 0-360, s: 0-1, l: 0-1).
|
|
626
|
-
*/
|
|
627
|
-
static rgbToHsl(r, g, b) {
|
|
628
|
-
r /= 255;
|
|
629
|
-
g /= 255;
|
|
630
|
-
b /= 255;
|
|
631
|
-
const max = Math.max(r, g, b);
|
|
632
|
-
const min = Math.min(r, g, b);
|
|
633
|
-
const l = (max + min) / 2;
|
|
634
|
-
let h = 0;
|
|
635
|
-
let s = 0;
|
|
636
|
-
if (max !== min) {
|
|
637
|
-
const d = max - min;
|
|
638
|
-
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
639
|
-
switch (max) {
|
|
640
|
-
case r:
|
|
641
|
-
h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
|
|
642
|
-
break;
|
|
643
|
-
case g:
|
|
644
|
-
h = ((b - r) / d + 2) / 6;
|
|
645
|
-
break;
|
|
646
|
-
case b:
|
|
647
|
-
h = ((r - g) / d + 4) / 6;
|
|
648
|
-
break;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
return { h: h * 360, s, l };
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* Convert HSL to RGB.
|
|
655
|
-
*
|
|
656
|
-
* @param {number} h - Hue (0-360).
|
|
657
|
-
* @param {number} s - Saturation (0-1).
|
|
658
|
-
* @param {number} l - Lightness (0-1).
|
|
659
|
-
* @returns {RgbValue} The RGB values (0-255).
|
|
660
|
-
*/
|
|
661
|
-
static hslToRgb(h, s, l) {
|
|
662
|
-
h /= 360;
|
|
663
|
-
let r;
|
|
664
|
-
let g;
|
|
665
|
-
let b;
|
|
666
|
-
if (s === 0) {
|
|
667
|
-
r = g = b = l;
|
|
668
|
-
}
|
|
669
|
-
else {
|
|
670
|
-
/**
|
|
671
|
-
* Helper function to convert hue to RGB component.
|
|
672
|
-
*
|
|
673
|
-
* @param {number} p - First intermediate value.
|
|
674
|
-
* @param {number} q - Second intermediate value.
|
|
675
|
-
* @param {number} t - Hue offset value.
|
|
676
|
-
* @returns {number} RGB component value (0-1).
|
|
677
|
-
*/
|
|
678
|
-
const hue2rgb = (p, q, t) => {
|
|
679
|
-
if (t < 0)
|
|
680
|
-
t += 1;
|
|
681
|
-
if (t > 1)
|
|
682
|
-
t -= 1;
|
|
683
|
-
if (t < 1 / 6)
|
|
684
|
-
return p + (q - p) * 6 * t;
|
|
685
|
-
if (t < 1 / 2)
|
|
686
|
-
return q;
|
|
687
|
-
if (t < 2 / 3)
|
|
688
|
-
return p + (q - p) * (2 / 3 - t) * 6;
|
|
689
|
-
return p;
|
|
690
|
-
};
|
|
691
|
-
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
692
|
-
const p = 2 * l - q;
|
|
693
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
694
|
-
g = hue2rgb(p, q, h);
|
|
695
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
696
|
-
}
|
|
697
|
-
return {
|
|
698
|
-
r: Math.round(r * 255),
|
|
699
|
-
g: Math.round(g * 255),
|
|
700
|
-
b: Math.round(b * 255),
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* Calculate the perceived brightness of a color using the YIQ formula.
|
|
705
|
-
* This matches tinycolor2's brightness calculation.
|
|
706
|
-
*
|
|
707
|
-
* @param {number} r - Red (0-255).
|
|
708
|
-
* @param {number} g - Green (0-255).
|
|
709
|
-
* @param {number} b - Blue (0-255).
|
|
710
|
-
* @returns {number} Brightness value (0-255).
|
|
711
|
-
*/
|
|
712
|
-
static getBrightness(r, g, b) {
|
|
713
|
-
return (r * 299 + g * 587 + b * 114) / 1000;
|
|
714
|
-
}
|
|
715
|
-
// ==================== Public Instance Methods ====================
|
|
716
|
-
/**
|
|
717
|
-
* Check if the color is dark (brightness < 128).
|
|
718
|
-
*
|
|
719
|
-
* @returns {boolean} True if the color is considered dark.
|
|
720
|
-
*/
|
|
721
|
-
isDark() {
|
|
722
|
-
return TinyColorPolyfill.getBrightness(this._r, this._g, this._b) < 128;
|
|
723
|
-
}
|
|
724
|
-
/**
|
|
725
|
-
* Check if the color is light (brightness >= 128).
|
|
726
|
-
*
|
|
727
|
-
* @returns {boolean} True if the color is considered light.
|
|
728
|
-
*/
|
|
729
|
-
isLight() {
|
|
730
|
-
return !this.isDark();
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* Create a copy of this color.
|
|
734
|
-
*
|
|
735
|
-
* @returns {TinyColorPolyfill} A new TinyColorPolyfill instance with the same values.
|
|
736
|
-
*/
|
|
737
|
-
clone() {
|
|
738
|
-
const cloned = new TinyColorPolyfill({
|
|
739
|
-
r: this._r,
|
|
740
|
-
g: this._g,
|
|
741
|
-
b: this._b,
|
|
742
|
-
a: this._a,
|
|
743
|
-
});
|
|
744
|
-
return cloned;
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
* Lighten the color by a given amount.
|
|
748
|
-
* Note: tinycolor2 accepts negative values to darken.
|
|
749
|
-
*
|
|
750
|
-
* @param {number} amount - The amount to lighten (0-100). Negative values darken.
|
|
751
|
-
* @returns {TinyColorPolyfill} This instance for chaining.
|
|
752
|
-
*/
|
|
753
|
-
lighten(amount = 10) {
|
|
754
|
-
const hsl = TinyColorPolyfill.rgbToHsl(this._r, this._g, this._b);
|
|
755
|
-
hsl.l = TinyColorPolyfill.clamp(hsl.l + amount / 100, 0, 1);
|
|
756
|
-
const rgb = TinyColorPolyfill.hslToRgb(hsl.h, hsl.s, hsl.l);
|
|
757
|
-
this._r = rgb.r;
|
|
758
|
-
this._g = rgb.g;
|
|
759
|
-
this._b = rgb.b;
|
|
760
|
-
return this;
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Darken the color by a given amount.
|
|
764
|
-
*
|
|
765
|
-
* @param {number} amount - The amount to darken (0-100).
|
|
766
|
-
* @returns {TinyColorPolyfill} This instance for chaining.
|
|
767
|
-
*/
|
|
768
|
-
darken(amount = 10) {
|
|
769
|
-
return this.lighten(-amount);
|
|
770
|
-
}
|
|
771
|
-
/**
|
|
772
|
-
* Set the alpha (opacity) of the color.
|
|
773
|
-
*
|
|
774
|
-
* @param {number} alpha - The alpha value (0-1).
|
|
775
|
-
* @returns {TinyColorPolyfill} This instance for chaining.
|
|
776
|
-
*/
|
|
777
|
-
setAlpha(alpha) {
|
|
778
|
-
this._a = TinyColorPolyfill.clamp(alpha, 0, 1);
|
|
779
|
-
return this;
|
|
780
|
-
}
|
|
781
|
-
/**
|
|
782
|
-
* Get the RGBA representation of the color.
|
|
783
|
-
*
|
|
784
|
-
* @returns {RgbaValue} The RGBA values.
|
|
785
|
-
*/
|
|
786
|
-
toRgb() {
|
|
787
|
-
return {
|
|
788
|
-
r: this._r,
|
|
789
|
-
g: this._g,
|
|
790
|
-
b: this._b,
|
|
791
|
-
a: this._a,
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* Factory function to create a TinyColorPolyfill instance.
|
|
797
|
-
* This provides API compatibility with tinycolor2's default export.
|
|
798
|
-
*
|
|
799
|
-
* @param {string | RgbaValue} color - The color to parse.
|
|
800
|
-
* @returns {TinyColorPolyfill} A new TinyColorPolyfill instance.
|
|
801
|
-
*/
|
|
802
|
-
function tinycolor(color) {
|
|
803
|
-
return new TinyColorPolyfill(color);
|
|
804
|
-
}
|
|
805
|
-
|
|
806
486
|
const formatValue$2 = (tinyColor) => {
|
|
807
487
|
if (!tinyColor) {
|
|
808
488
|
return '';
|
|
@@ -1,135 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as StateBackgroundColorFormatter, k as isSpacingTokenType, l as isBorderRadiusTokenType, m as isBorderColorTokenType, n as isBackgroundColorTokenType, o as isTextColorTokenType, p as isBreakpointsTokenType, q as isShadowsTokenType, h as Spacing, r as isBorderStyleType, B as BorderRadius, C as Colors, f as Shadows, s as isTypographyTokenType } from './type-guard-152070e9.js';
|
|
2
2
|
import { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
3
3
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
4
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-e9926018.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-396de03f.js';
|
|
6
|
+
import { S as StateBorderFormatter, a as StateShadowFormatter, b as StateBorderColorFormatter } from './state-border-formatter-be51463d.js';
|
|
6
7
|
import { B as BorderStyle } from './ui-93922c59.js';
|
|
7
8
|
|
|
8
|
-
/**
|
|
9
|
-
* The `StateBorderColorFormatter` class in TypeScript formats border color tokens based on
|
|
10
|
-
* input values and provides an array of CSS states.
|
|
11
|
-
*/
|
|
12
|
-
class StateBorderColorFormatter extends StateVariantFormatter {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.states = ['default', 'focus-visible', 'hover', 'active'];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The function `formatToken` takes a BorderColorsTokenType input, checks if it is a valid border
|
|
19
|
-
* color token type, and returns the corresponding CSS border-color value or logs a warning if the
|
|
20
|
-
* input is invalid.
|
|
21
|
-
*
|
|
22
|
-
* @param {BorderColorsTokenType} input - BorderColorsTokenType
|
|
23
|
-
* @returns {string} The `formatToken` function returns a string that represents a CSS style for border color
|
|
24
|
-
* based on the input `BorderColorsTokenType`. If the input is a valid border color token type, it
|
|
25
|
-
* retrieves the corresponding value from the `BorderColorMap` and returns a CSS style string with the
|
|
26
|
-
* border color value. If the input is not a valid border color token type, it logs a warning message
|
|
27
|
-
* and returns an
|
|
28
|
-
*/
|
|
29
|
-
formatToken(input) {
|
|
30
|
-
if (isBorderColorTokenType(input)) {
|
|
31
|
-
const tokenValue = BorderColorMap[input];
|
|
32
|
-
return `border-color: ${tokenValue};`;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
LogUtility.warn(`The borderColor value ${input} is invalid, it must be a value of: `, BorderColors);
|
|
36
|
-
return '';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The function `getStates` returns an array of `CssStatesType` objects.
|
|
41
|
-
*
|
|
42
|
-
* @returns {CssStatesType[]} An array of CssStatesType objects is being returned.
|
|
43
|
-
*/
|
|
44
|
-
getStates() {
|
|
45
|
-
return this.states;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const StateBorderColorFormatter$1 = new StateBorderColorFormatter();
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The `StateShadowFormatter` class in TypeScript formats a CSS `box-shadow` property based on a
|
|
52
|
-
* ShadowsTokenType input and provides an array of CssStatesType objects.
|
|
53
|
-
*/
|
|
54
|
-
class StateShadowFormatter extends StateVariantFormatter {
|
|
55
|
-
constructor() {
|
|
56
|
-
super(...arguments);
|
|
57
|
-
this.states = ['default', 'focus-visible', 'hover'];
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The `formatToken` function in TypeScript takes a ShadowsTokenType input, validates it, and returns a
|
|
61
|
-
* formatted CSS box-shadow property string or logs a warning if the input is invalid.
|
|
62
|
-
*
|
|
63
|
-
* @param {ShadowsTokenType} input - ShadowsTokenType
|
|
64
|
-
* @returns {string} The `formatToken` function takes a `ShadowsTokenType` input and returns a CSS `box-shadow`
|
|
65
|
-
* property with the corresponding value from the `ShadowMap` object. If the input is not a valid
|
|
66
|
-
* `ShadowsTokenType`, it logs a warning message using `LogUtility.warn` and returns an empty string.
|
|
67
|
-
*/
|
|
68
|
-
formatToken(input) {
|
|
69
|
-
if (isShadowsTokenType(input)) {
|
|
70
|
-
const tokenValue = ShadowMap[input];
|
|
71
|
-
return `box-shadow: ${tokenValue};`;
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
LogUtility.warn(`The shadow value ${input} is invalid, it must be a value of: `, Shadows);
|
|
75
|
-
return '';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* The function `getStates` returns an array of `CssStatesType` objects.
|
|
80
|
-
*
|
|
81
|
-
* @returns {CssStatesType[]}An array of CssStatesType objects is being returned.
|
|
82
|
-
*/
|
|
83
|
-
getStates() {
|
|
84
|
-
return this.states;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
const StateShadowFormatter$1 = new StateShadowFormatter();
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* The `StateBorderFormatter` class in TypeScript formats border token values into CSS border properties
|
|
91
|
-
* and provides state information.
|
|
92
|
-
*/
|
|
93
|
-
class StateBorderFormatter extends StateVariantFormatter {
|
|
94
|
-
constructor() {
|
|
95
|
-
super(...arguments);
|
|
96
|
-
this.states = ['default', 'focus-visible', 'hover', 'active'];
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* The `formatToken` function in TypeScript formats a border token value into a CSS border property
|
|
100
|
-
* string or logs a warning if the input is invalid.
|
|
101
|
-
*
|
|
102
|
-
* @param {BordersTokenType} input - The `formatToken` function takes a `BordersTokenType` as input
|
|
103
|
-
* and returns a formatted string representing a CSS border property based on the input token value.
|
|
104
|
-
* If the input is a valid border token type, it retrieves the corresponding CSS value from the
|
|
105
|
-
* `BorderMap` and returns it in a `border
|
|
106
|
-
* @returns {string} The `formatToken` function returns a string that represents a CSS border property based on
|
|
107
|
-
* the input `BordersTokenType`. If the input is a valid border token type, it retrieves the
|
|
108
|
-
* corresponding value from the `BorderMap` and returns a CSS `border` property string. If the input
|
|
109
|
-
* is not a valid border token type, it logs a warning message using `LogUtility.warn` and returns an
|
|
110
|
-
* empty
|
|
111
|
-
*/
|
|
112
|
-
formatToken(input) {
|
|
113
|
-
if (isBorderTokenType(input)) {
|
|
114
|
-
const tokenValue = BorderMap[input];
|
|
115
|
-
return `border: ${tokenValue};`;
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
LogUtility.warn(`The border value ${input} is invalid, it must be a value of: `, Borders);
|
|
119
|
-
return '';
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The function `getStates` returns an array of `CssStatesType` objects.
|
|
124
|
-
*
|
|
125
|
-
* @returns {CssStatesType[] } An array of objects of type CssStatesType, which represents the states.
|
|
126
|
-
*/
|
|
127
|
-
getStates() {
|
|
128
|
-
return this.states;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
const StateBorderFormatter$1 = new StateBorderFormatter();
|
|
132
|
-
|
|
133
9
|
/**
|
|
134
10
|
* The `StateFormatFacade` class in TypeScript provides a method to format different types of
|
|
135
11
|
* state variants based on a specified flag.
|
|
@@ -157,11 +33,11 @@ class StateFormatFacade {
|
|
|
157
33
|
case 'backgroundColor':
|
|
158
34
|
return StateBackgroundColorFormatter.format(input);
|
|
159
35
|
case 'borderColor':
|
|
160
|
-
return StateBorderColorFormatter
|
|
36
|
+
return StateBorderColorFormatter.format(input);
|
|
161
37
|
case 'shadow':
|
|
162
|
-
return StateShadowFormatter
|
|
38
|
+
return StateShadowFormatter.format(input);
|
|
163
39
|
case 'border':
|
|
164
|
-
return StateBorderFormatter
|
|
40
|
+
return StateBorderFormatter.format(input);
|
|
165
41
|
default:
|
|
166
42
|
throw new Error(`Invalid flag ${flag} passed into StateFormatFacade`);
|
|
167
43
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
+
|
|
3
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Filters dropped/selected files based on the accepted file types specified in the host component's `accept` property.
|
|
11
|
+
*
|
|
12
|
+
* The host component is expected to expose a string `accept` property using the same syntax as the standard
|
|
13
|
+
* HTML `<input type="file">` `accept` attribute (file extensions like `.png`, MIME types like `image/png`,
|
|
14
|
+
* MIME wildcards like `image/*`, or the universal wildcards `*` / `*\/*` / `/*`).
|
|
15
|
+
*
|
|
16
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
17
|
+
*/
|
|
18
|
+
class DropFileAcceptFilterSlimmer extends VegaSlimmer {
|
|
19
|
+
/**
|
|
20
|
+
* Filters the files based on accepted file types if specified.
|
|
21
|
+
*
|
|
22
|
+
* @param {FileList|null} fileList - FileList is a FileList object
|
|
23
|
+
* @returns {File[]} An array of `File` objects after filtering based on the accepted file types specified in the `accept` property
|
|
24
|
+
*/
|
|
25
|
+
process(fileList) {
|
|
26
|
+
const files = Array.from(fileList || []);
|
|
27
|
+
if (fileList && this.accept && this.accept !== '*' && this.accept !== '/*' && this.accept !== '*/*') {
|
|
28
|
+
const acceptFileTypes = this.accept.split(',');
|
|
29
|
+
return files.filter((file) => this.validateFileType(file, acceptFileTypes));
|
|
30
|
+
}
|
|
31
|
+
return files;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Checks if a given file matches any of the accepted file types based on file name, MIME type, or base type.
|
|
35
|
+
*
|
|
36
|
+
* @param {File} file - File object
|
|
37
|
+
* @param {string[]} acceptTypes - An array of strings that represent the file types that are accepted.
|
|
38
|
+
* @returns {boolean} A boolean value, indicating whether the provided file matches any of the accepted file types specified in the `acceptTypes` array.
|
|
39
|
+
*/
|
|
40
|
+
validateFileType(file, acceptTypes) {
|
|
41
|
+
const fileName = file.name;
|
|
42
|
+
const fileType = (file.type || '').toLowerCase();
|
|
43
|
+
const fileBaseType = fileType.replace(/\/.*$/, '');
|
|
44
|
+
return acceptTypes.some((acceptFileType) => {
|
|
45
|
+
acceptFileType = acceptFileType.trim().toLowerCase();
|
|
46
|
+
if (acceptFileType.startsWith('.')) {
|
|
47
|
+
return fileName.toLowerCase().endsWith(acceptFileType);
|
|
48
|
+
}
|
|
49
|
+
else if (acceptFileType.endsWith('/*')) {
|
|
50
|
+
return fileBaseType === acceptFileType.replace(/\/.*$/, '');
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return fileType === acceptFileType;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
__decorate([
|
|
59
|
+
MapToComponentField()
|
|
60
|
+
], DropFileAcceptFilterSlimmer.prototype, "accept", void 0);
|
|
61
|
+
|
|
62
|
+
export { DropFileAcceptFilterSlimmer as D };
|
|
@@ -7,6 +7,14 @@ class RTEDTORendererManager {
|
|
|
7
7
|
this.RTE_DTO_RENDERER_MAP = new Map();
|
|
8
8
|
// Register RTE Toolbar Button Renderers, mapping type strings to their respective renderer instances.
|
|
9
9
|
this.RTE_TOOLBAR_BUTTON_RENDERER_MAP = new Map();
|
|
10
|
+
/**
|
|
11
|
+
* Per-host toolbar button renderer map.
|
|
12
|
+
* Stores a host-specific renderer map so that extensions that register during
|
|
13
|
+
* {@link VegaRTEExtension#prepareBeforeLoad} can provide isolated renderer instances
|
|
14
|
+
* for each {@link HTMLVegaRichTextEditorElement}. At render time this map is checked
|
|
15
|
+
* first; the global singleton map is used as a fallback.
|
|
16
|
+
*/
|
|
17
|
+
this.hostToolbarButtonRendererMap = new WeakMap();
|
|
10
18
|
}
|
|
11
19
|
/**
|
|
12
20
|
* Registers a new RTE DTO renderer.
|
|
@@ -32,6 +40,24 @@ class RTEDTORendererManager {
|
|
|
32
40
|
registerRTEToolbarButtonRenderer(type, RTEToolbarButtonRenderer) {
|
|
33
41
|
this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(type, RTEToolbarButtonRenderer);
|
|
34
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Registers a host-specific toolbar button renderer.
|
|
45
|
+
* The per-host renderer takes precedence over the global singleton when the host
|
|
46
|
+
* element is passed to {@link getRTEToolbarButtonRenderer}.
|
|
47
|
+
*
|
|
48
|
+
* @typedef HTMLVegaRichTextEditorElement - The rich text editor host element type.
|
|
49
|
+
* @param {HTMLVegaRichTextEditorElement} host - The rich text editor host element.
|
|
50
|
+
* @param {string} type - The type identifier for the toolbar button renderer.
|
|
51
|
+
* @param {VegaRTEToolbarButtonRenderer} renderer - The renderer instance to register for this host.
|
|
52
|
+
*/
|
|
53
|
+
registerRTEToolbarButtonRendererForHost(host, type, renderer) {
|
|
54
|
+
let hostMap = this.hostToolbarButtonRendererMap.get(host);
|
|
55
|
+
if (!hostMap) {
|
|
56
|
+
hostMap = new Map();
|
|
57
|
+
this.hostToolbarButtonRendererMap.set(host, hostMap);
|
|
58
|
+
}
|
|
59
|
+
hostMap.set(type, renderer);
|
|
60
|
+
}
|
|
35
61
|
/**
|
|
36
62
|
* Retrieves the RTE renderer for a given type.
|
|
37
63
|
*
|
|
@@ -43,12 +69,26 @@ class RTEDTORendererManager {
|
|
|
43
69
|
}
|
|
44
70
|
/**
|
|
45
71
|
* Retrieves the RTE Toolbar Button Renderer for a given type.
|
|
72
|
+
* When a host element is provided the per-host map registered via
|
|
73
|
+
* {@link registerRTEToolbarButtonRendererForHost} is checked first; the global
|
|
74
|
+
* singleton map is used as a fallback so that extensions that do not override
|
|
75
|
+
* {@link VegaRTEExtension#prepareBeforeLoad} continue to work unchanged.
|
|
46
76
|
*
|
|
77
|
+
* @typedef HTMLVegaRichTextEditorElement - The rich text editor host element type.
|
|
47
78
|
* @param {string} type - The type identifier for the RTE Toolbar Button Renderer.
|
|
79
|
+
* @param {HTMLVegaRichTextEditorElement} [host] - Optional host element for per-host lookup.
|
|
48
80
|
* @returns {Nullable<VegaRTEToolbarButtonRenderer>} - The renderer instance for the RTE Toolbar Button, or null if not found.
|
|
49
81
|
*/
|
|
50
|
-
getRTEToolbarButtonRenderer(type) {
|
|
51
|
-
|
|
82
|
+
getRTEToolbarButtonRenderer(type, host) {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
if (host) {
|
|
85
|
+
const hostRenderer = (_a = this.hostToolbarButtonRendererMap
|
|
86
|
+
.get(host)) === null || _a === void 0 ? void 0 : _a.get(type);
|
|
87
|
+
if (hostRenderer) {
|
|
88
|
+
return hostRenderer;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return (_b = this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(type)) !== null && _b !== void 0 ? _b : null;
|
|
52
92
|
}
|
|
53
93
|
}
|
|
54
94
|
const RTEDTORendererManager$1 = new RTEDTORendererManager();
|