@globalpayments/vega 2.88.0 → 2.89.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/{action-color-accessibility-validator-15fa91e4.js → action-color-accessibility-validator-24498816.js} +2 -2
- package/dist/cjs/{app-globals-6fbbcb2f.js → app-globals-4872f4e6.js} +9 -8
- package/dist/cjs/{aria-dialog-focusable-trap-slimmer-c2ca46db.js → aria-dialog-focusable-trap-slimmer-a0ff1263.js} +2 -2
- package/dist/cjs/{brand-switch-state-controller-slimmer-3d41b2a4.js → brand-switch-state-controller-slimmer-97882447.js} +1 -1
- package/dist/cjs/{child-nodes-event-prevent-slimmer-01930b4e.js → child-nodes-event-prevent-slimmer-85a7fdb0.js} +1 -1
- package/dist/cjs/{child-nodes-notify-observer-slimmer-34a606b3.js → child-nodes-notify-observer-slimmer-7ae2a78f.js} +1 -1
- package/dist/cjs/{code-block-00fee034.js → code-block-7c49d175.js} +4 -4
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-066645b3.js → component-value-history-controller-slimmer.abstract-aae22ddf.js} +5 -5
- package/dist/cjs/{content-state-d4f54659.js → content-state-76b81780.js} +32 -7
- package/dist/cjs/{dark-mode-state-controller-slimmer-8a87ec08.js → dark-mode-state-controller-slimmer-b454645a.js} +1 -1
- package/dist/cjs/{dark-mode-style-controller-ed481250.js → dark-mode-style-controller-32d4054a.js} +2 -2
- package/dist/cjs/{date-required-rule-4cea8fc8.js → date-required-rule-71f71b32.js} +1 -1
- package/dist/cjs/{design-token-ad9f413c.js → design-token-c80d3f32.js} +3 -3
- package/dist/cjs/{dom-node-subject-observer-factory-ba6a95f3.js → dom-node-subject-observer-factory-c82df135.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-d04aa177.js → element-appender-slimmer-e95427b5.js} +5 -5
- package/dist/cjs/{event-emit-slimmer-5fd6e54a.js → event-emit-slimmer-146316b2.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-23d112bd.js → form-field-controller-slimmer-430b4f02.js} +5 -5
- package/dist/cjs/{image-annotation-action-bcf2a1b4.js → image-annotation-action-7959fd77.js} +5 -5
- package/dist/cjs/index.cjs.js +22 -21
- package/dist/cjs/{inject-keyboard-manager-acaf1530.js → inject-keyboard-manager-3ccf1cb6.js} +1 -1
- package/dist/cjs/{internal-translation-controller-a1250419.js → internal-translation-controller-5582d789.js} +5 -2
- package/dist/cjs/{internal-vega-event-manager-c515cf5e.js → internal-vega-event-manager-6e49d1ca.js} +3 -3
- package/dist/cjs/{keyboard-manager-6821709a.js → keyboard-manager-5babfda8.js} +2 -2
- package/dist/cjs/{keyboard-manager-slimmer-74528545.js → keyboard-manager-slimmer-a73354ca.js} +1 -1
- package/dist/cjs/loader.cjs.js +16 -16
- package/dist/cjs/{month-view-generator-61578283.js → month-view-generator-43e75062.js} +1 -1
- package/dist/cjs/{public-rules-d2fbbbf5.js → public-rules-b23ab52d.js} +11 -11
- package/dist/cjs/{range-e797475c.js → range-abe1b989.js} +2 -2
- package/dist/cjs/{replace-selected-text-action-a098523f.js → replace-selected-text-action-ef079fed.js} +1 -1
- package/dist/cjs/{responsive-format-facade-bf330592.js → responsive-format-facade-cc368403.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-ba9d42fa.js → rich-text-editor-required-rule-bbd727a2.js} +1 -1
- package/dist/cjs/{split-cell-operation-91ee6894.js → split-cell-operation-b1fe91b5.js} +5 -5
- package/dist/cjs/{state-border-formatter-fd194e53.js → state-border-formatter-398134c1.js} +1 -1
- package/dist/cjs/{static-subject-title-5829a298.js → static-subject-title-70c73b16.js} +2 -0
- package/dist/cjs/{string-format-strategy.abstract-af9fc35e.js → string-format-strategy.abstract-67421e2b.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-a3fb1292.js → string-input-formatter-slimmer-e84530b9.js} +3 -3
- package/dist/cjs/{string-mask-strategy-2054f3fb.js → string-mask-strategy-f9806f9b.js} +2 -2
- package/dist/cjs/{style-formatter-7d60fb70.js → style-formatter-da3a556b.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-757e3a76.js → sub-state-notify-slimmer-450277b6.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-aa93ab4f.js → sub-state-observer-slimmer-5bfe8e97.js} +2 -2
- package/dist/cjs/{time-required-rule-ba450bbd.js → time-required-rule-618109fa.js} +1 -1
- package/dist/cjs/{token-extension-8b69f7e1.js → token-extension-dfee303a.js} +525 -12
- package/dist/cjs/{translation-slimmer-aee3fb1c.js → translation-slimmer-1a7a2b6d.js} +1 -1
- package/dist/cjs/{type-guard-424efe26.js → type-guard-474dec0d.js} +1 -1
- package/dist/cjs/{ui-3727d685.js → ui-c91c37a7.js} +1 -31
- package/dist/cjs/{valid-credit-card-number-rule-6bd5834c.js → valid-credit-card-number-rule-00c18527.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +12 -12
- package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
- package/dist/cjs/vega-app-header-button.cjs.entry.js +15 -15
- package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/vega-banner.cjs.entry.js +5 -5
- package/dist/cjs/vega-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-brand-logo.cjs.entry.js +3 -3
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +7 -7
- package/dist/cjs/vega-button-circle.cjs.entry.js +12 -12
- package/dist/cjs/vega-button-group_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-button-link.cjs.entry.js +8 -8
- package/dist/cjs/vega-button.cjs.entry.js +10 -10
- package/dist/cjs/vega-calendar_4.cjs.entry.js +15 -15
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +9 -9
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +147 -18
- package/dist/cjs/vega-chip.cjs.entry.js +14 -14
- package/dist/cjs/vega-code-block.cjs.entry.js +16 -16
- package/dist/cjs/vega-color-picker.cjs.entry.js +21 -11
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +11 -11
- package/dist/cjs/vega-color-swatch.cjs.entry.js +8 -8
- package/dist/cjs/vega-combo-box.cjs.entry.js +42 -20
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +37 -24
- package/dist/cjs/vega-dialog_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-divider.cjs.entry.js +6 -6
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +18 -18
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-39dedd17.js → vega-event-id-37c1716f.js} +2 -0
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-field-label.cjs.entry.js +86 -14
- package/dist/cjs/vega-file-uploader.cjs.entry.js +10 -10
- package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -6
- package/dist/cjs/vega-flex.cjs.entry.js +8 -8
- package/dist/cjs/vega-font.cjs.entry.js +7 -7
- package/dist/cjs/vega-form.cjs.entry.js +13 -13
- package/dist/cjs/vega-grid.cjs.entry.js +7 -7
- package/dist/cjs/vega-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +29 -16
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +14 -14
- package/dist/cjs/vega-input-numeric.cjs.entry.js +28 -15
- package/dist/cjs/vega-input-passcode.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +12 -12
- package/dist/cjs/vega-input-range.cjs.entry.js +25 -12
- package/dist/cjs/vega-input-select.cjs.entry.js +34 -21
- package/dist/cjs/vega-input.cjs.entry.js +14 -14
- package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -5
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +17 -17
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +6 -6
- package/dist/cjs/vega-pagination.cjs.entry.js +11 -11
- package/dist/cjs/vega-popover_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-radio_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +13 -13
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +26 -26
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +11 -11
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +16 -16
- package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +32 -34
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +11 -11
- package/dist/cjs/vega-signature-capture.cjs.entry.js +28 -15
- package/dist/cjs/vega-stepper.cjs.entry.js +10 -10
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-table_11.cjs.entry.js +13 -13
- package/dist/cjs/vega-text.cjs.entry.js +177 -63
- package/dist/cjs/vega-textarea.cjs.entry.js +11 -11
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +31 -18
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +20 -10
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -9
- package/dist/cjs/vega.cjs.js +16 -16
- package/dist/cjs/{wait-for-component-did-render-a13f7eb9.js → wait-for-component-did-render-762084fc.js} +1 -1
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.css +1 -0
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +2 -2
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-collapsed-item-renderer.js +1 -1
- package/dist/collection/components/vega-button-link/vega-button-link.css +3 -0
- package/dist/collection/components/vega-button-link/vega-button-link.js +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +96 -4
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +148 -6
- package/dist/collection/components/vega-chip/vega-chip.css +1 -0
- package/dist/collection/components/vega-chip/vega-chip.js +1 -1
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +36 -2
- package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +14 -2
- package/dist/collection/components/vega-combo-box/vega-combo-box.css +12 -0
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +44 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +4 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +34 -0
- package/dist/collection/components/vega-field-label/slimmers/renderers/vega-field-label-label-announcement-renderer.js +69 -0
- package/dist/collection/components/vega-field-label/vega-field-label.css +12 -0
- package/dist/collection/components/vega-field-label/vega-field-label.js +11 -2
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-renderer.js +4 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +34 -0
- package/dist/collection/components/vega-input-numeric/slimmers/renderers/vega-input-numeric-renderer.js +4 -1
- package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +34 -0
- package/dist/collection/components/vega-input-range/slimmers/renderers/vega-input-range-renderer.js +4 -1
- package/dist/collection/components/vega-input-range/vega-input-range.js +34 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +6 -6
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-renderer.js +4 -1
- package/dist/collection/components/vega-input-select/vega-input-select.css +1 -0
- package/dist/collection/components/vega-input-select/vega-input-select.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/action-handler-strategies/horizontal-line-block-insert-strategy.js +79 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/action-handler-strategies/hr-to-horizontal-line-block-strategy.js +45 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/actions/insert-horizontal-line-block-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/assets/horizontal-line.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-annotation.js +63 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-block.js +89 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-node.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/filter-styles-strategies/horizontal-line-block/horizontal-line-filter-styles-strategy.js +45 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/filter-styles-strategies/horizontal-line-block/predicate.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/horizontal-line-extension.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-block-renderer.js +37 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-toolbar-button-renderer.js +77 -0
- package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/html-block-strategy.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-element-to-text-node-strategy.js +18 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +1 -1
- package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.js +1 -1
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.js +9 -21
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.css +1 -38
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +34 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +4 -1
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +34 -0
- package/dist/collection/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.js +153 -61
- package/dist/collection/components/vega-text/vega-text.css +37 -0
- package/dist/collection/components/vega-text/vega-text.js +48 -0
- package/dist/collection/components/vega-textarea/vega-textarea.js +1 -1
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-label-renderer.js +4 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +34 -0
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +35 -1
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +2 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -3
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/translation/locales/en.js +4 -1
- package/dist/esm/{action-color-accessibility-validator-3d8efb64.js → action-color-accessibility-validator-ce55cb07.js} +2 -2
- package/dist/esm/{app-globals-98c3d676.js → app-globals-081bbfd9.js} +9 -8
- package/dist/esm/{aria-dialog-focusable-trap-slimmer-7d9a9f5a.js → aria-dialog-focusable-trap-slimmer-7db3d5a7.js} +2 -2
- package/dist/esm/{brand-switch-state-controller-slimmer-60249013.js → brand-switch-state-controller-slimmer-9ca03c81.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-2f823df2.js → child-nodes-event-prevent-slimmer-1e3ac106.js} +1 -1
- package/dist/esm/{child-nodes-notify-observer-slimmer-8822d0d0.js → child-nodes-notify-observer-slimmer-499a3aa7.js} +1 -1
- package/dist/esm/{code-block-6261a99d.js → code-block-17f596fc.js} +5 -5
- package/dist/esm/{component-value-history-controller-slimmer.abstract-07488472.js → component-value-history-controller-slimmer.abstract-21e9126a.js} +5 -5
- package/dist/esm/{content-state-9bf85e00.js → content-state-96741bb0.js} +32 -7
- package/dist/esm/{dark-mode-state-controller-slimmer-f2b4f8ed.js → dark-mode-state-controller-slimmer-778dd929.js} +1 -1
- package/dist/esm/{dark-mode-style-controller-fcda24ec.js → dark-mode-style-controller-ca5afd2d.js} +2 -2
- package/dist/esm/{date-required-rule-281aab50.js → date-required-rule-d6ce832c.js} +1 -1
- package/dist/esm/{design-token-b7ce7ed4.js → design-token-0a575bf2.js} +3 -3
- package/dist/esm/{dom-node-subject-observer-factory-3897e95b.js → dom-node-subject-observer-factory-ddff8662.js} +1 -1
- package/dist/esm/{element-appender-slimmer-3926470f.js → element-appender-slimmer-44bbb5c6.js} +5 -5
- package/dist/esm/{event-emit-slimmer-0990037c.js → event-emit-slimmer-3eb4d8ad.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-24aca6c4.js → form-field-controller-slimmer-03894a51.js} +5 -5
- package/dist/esm/{image-annotation-action-dadda36f.js → image-annotation-action-e8ab7b64.js} +5 -5
- package/dist/esm/index.js +21 -21
- package/dist/esm/{inject-keyboard-manager-6317d1b3.js → inject-keyboard-manager-e5874185.js} +1 -1
- package/dist/esm/{internal-translation-controller-0b9589d0.js → internal-translation-controller-84958bc9.js} +5 -2
- package/dist/esm/{internal-vega-event-manager-dc4c3a37.js → internal-vega-event-manager-a9758b6e.js} +3 -3
- package/dist/esm/{keyboard-manager-69761aa6.js → keyboard-manager-404b9c17.js} +2 -2
- package/dist/esm/{keyboard-manager-slimmer-c2d038f0.js → keyboard-manager-slimmer-c8fcfe60.js} +1 -1
- package/dist/esm/loader.js +16 -16
- package/dist/esm/{month-view-generator-4c1ee949.js → month-view-generator-d341fa5a.js} +1 -1
- package/dist/esm/{public-rules-da28b413.js → public-rules-09387dcf.js} +11 -11
- package/dist/esm/{range-342cbce9.js → range-47d9f95e.js} +2 -2
- package/dist/esm/{replace-selected-text-action-a45bee4b.js → replace-selected-text-action-a217dc89.js} +1 -1
- package/dist/esm/{responsive-format-facade-3ca1422d.js → responsive-format-facade-51c0c2e1.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-46d0bc5b.js → rich-text-editor-required-rule-cca16fd0.js} +1 -1
- package/dist/esm/{split-cell-operation-1d114aa3.js → split-cell-operation-ddde4106.js} +5 -5
- package/dist/esm/{state-border-formatter-3ebc76a4.js → state-border-formatter-50394e9c.js} +1 -1
- package/dist/esm/{static-subject-title-52f93124.js → static-subject-title-1c86e974.js} +2 -1
- package/dist/esm/{string-format-strategy.abstract-95d691e1.js → string-format-strategy.abstract-de17b899.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-e18d202c.js → string-input-formatter-slimmer-c3d483ef.js} +3 -3
- package/dist/esm/{string-mask-strategy-43d846ac.js → string-mask-strategy-87efdb9e.js} +2 -2
- package/dist/esm/{style-formatter-197e2fd3.js → style-formatter-c20c1988.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-80ac7dee.js → sub-state-notify-slimmer-d5a21bb3.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-81538a8c.js → sub-state-observer-slimmer-d924288a.js} +2 -2
- package/dist/esm/{time-required-rule-78d8ecf1.js → time-required-rule-026c17a1.js} +1 -1
- package/dist/esm/{token-extension-30011dc4.js → token-extension-76323d76.js} +525 -13
- package/dist/esm/{translation-slimmer-49903fc8.js → translation-slimmer-7f195ba8.js} +1 -1
- package/dist/esm/{type-guard-b18807dc.js → type-guard-30eec79c.js} +1 -1
- package/dist/esm/{ui-64815a12.js → ui-d73f756a.js} +2 -30
- package/dist/esm/{valid-credit-card-number-rule-fe1c8a9c.js → valid-credit-card-number-rule-1ac471e8.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +12 -12
- package/dist/esm/vega-app-footer.entry.js +3 -3
- package/dist/esm/vega-app-header-button.entry.js +15 -15
- package/dist/esm/vega-backdrop.entry.js +1 -1
- package/dist/esm/vega-banner.entry.js +5 -5
- package/dist/esm/vega-box.entry.js +8 -8
- package/dist/esm/vega-brand-logo.entry.js +3 -3
- package/dist/esm/vega-breadcrumb.entry.js +7 -7
- package/dist/esm/vega-button-circle.entry.js +12 -12
- package/dist/esm/vega-button-group_2.entry.js +8 -8
- package/dist/esm/vega-button-link.entry.js +8 -8
- package/dist/esm/vega-button.entry.js +10 -10
- package/dist/esm/vega-calendar_4.entry.js +15 -15
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +9 -9
- package/dist/esm/vega-checkbox_2.entry.js +147 -18
- package/dist/esm/vega-chip.entry.js +14 -14
- package/dist/esm/vega-code-block.entry.js +16 -16
- package/dist/esm/vega-color-picker.entry.js +21 -11
- package/dist/esm/vega-color-swatch-picker.entry.js +11 -11
- package/dist/esm/vega-color-swatch.entry.js +8 -8
- package/dist/esm/vega-combo-box.entry.js +42 -20
- package/dist/esm/vega-date-picker_2.entry.js +37 -24
- package/dist/esm/vega-dialog_2.entry.js +11 -11
- package/dist/esm/vega-divider.entry.js +6 -6
- package/dist/esm/vega-dropdown_5.entry.js +18 -18
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-20494454.js → vega-event-id-92848bf5.js} +2 -1
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +86 -14
- package/dist/esm/vega-file-uploader.entry.js +10 -10
- package/dist/esm/vega-flag-icon.entry.js +6 -6
- package/dist/esm/vega-flex.entry.js +8 -8
- package/dist/esm/vega-font.entry.js +7 -7
- package/dist/esm/vega-form.entry.js +13 -13
- package/dist/esm/vega-grid.entry.js +7 -7
- package/dist/esm/vega-icon.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +29 -16
- package/dist/esm/vega-input-credit-card.entry.js +14 -14
- package/dist/esm/vega-input-numeric.entry.js +28 -15
- package/dist/esm/vega-input-passcode.entry.js +13 -13
- package/dist/esm/vega-input-phone-number.entry.js +12 -12
- package/dist/esm/vega-input-range.entry.js +25 -12
- package/dist/esm/vega-input-select.entry.js +34 -21
- package/dist/esm/vega-input.entry.js +14 -14
- package/dist/esm/vega-item-toggle.entry.js +5 -5
- package/dist/esm/vega-left-nav_5.entry.js +17 -17
- package/dist/esm/vega-loader-wrapper_2.entry.js +5 -5
- package/dist/esm/vega-page-notification_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +5 -5
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +6 -6
- package/dist/esm/vega-pagination.entry.js +11 -11
- package/dist/esm/vega-popover_2.entry.js +15 -15
- package/dist/esm/vega-progress-tracker_2.entry.js +11 -11
- package/dist/esm/vega-radio_2.entry.js +14 -14
- package/dist/esm/vega-rich-text-content.entry.js +13 -13
- package/dist/esm/vega-rich-text-editor_4.entry.js +26 -26
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +11 -11
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +16 -16
- package/dist/esm/vega-segment-control.entry.js +6 -6
- package/dist/esm/vega-selection-chip_2.entry.js +13 -13
- package/dist/esm/vega-selection-tile_2.entry.js +32 -34
- package/dist/esm/vega-sidenav_3.entry.js +11 -11
- package/dist/esm/vega-signature-capture.entry.js +28 -15
- package/dist/esm/vega-stepper.entry.js +10 -10
- package/dist/esm/vega-tab-group_2.entry.js +7 -7
- package/dist/esm/vega-table_11.entry.js +13 -13
- package/dist/esm/vega-text.entry.js +177 -63
- package/dist/esm/vega-textarea.entry.js +11 -11
- package/dist/esm/vega-time-picker_2.entry.js +31 -18
- package/dist/esm/vega-toggle-switch.entry.js +20 -10
- package/dist/esm/vega-tooltip_2.entry.js +9 -9
- package/dist/esm/vega.js +16 -16
- package/dist/esm/{wait-for-component-did-render-4069cbea.js → wait-for-component-did-render-b378bf16.js} +1 -1
- package/dist/sri/vega-sri-manifest.json +399 -399
- package/dist/types/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.d.ts +41 -1
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +60 -0
- package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +10 -0
- package/dist/types/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +21 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.d.ts +1 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +10 -0
- package/dist/types/components/vega-field-label/slimmers/renderers/vega-field-label-label-announcement-renderer.d.ts +21 -0
- package/dist/types/components/vega-field-label/vega-field-label.d.ts +2 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-renderer.d.ts +1 -0
- package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +10 -0
- package/dist/types/components/vega-input-numeric/slimmers/renderers/vega-input-numeric-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +10 -0
- package/dist/types/components/vega-input-range/slimmers/renderers/vega-input-range-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-range/vega-input-range.d.ts +10 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/action-handler-strategies/horizontal-line-block-insert-strategy.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/action-handler-strategies/hr-to-horizontal-line-block-strategy.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/actions/insert-horizontal-line-block-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/assets/horizontal-line.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-annotation.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-block.d.ts +53 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-node.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/filter-styles-strategies/horizontal-line-block/horizontal-line-filter-styles-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/filter-styles-strategies/horizontal-line-block/predicate.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/horizontal-line-extension.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-block-renderer.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-toolbar-button-renderer.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.d.ts +2 -1
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.d.ts +10 -0
- package/dist/types/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.d.ts +1 -0
- package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +10 -0
- package/dist/types/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.d.ts +34 -12
- package/dist/types/components/vega-text/vega-text.d.ts +19 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-label-renderer.d.ts +1 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +10 -0
- package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +10 -0
- package/dist/types/components.d.ts +172 -0
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +2 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +4 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-d24892d6.entry.js → p-00d2a013.entry.js} +1 -1
- package/dist/vega/{p-77fb5d5c.js → p-014cd411.js} +1 -1
- package/dist/vega/{p-b2a0d104.entry.js → p-059ba5f5.entry.js} +1 -1
- package/dist/vega/{p-fea75b87.js → p-091fbc35.js} +1 -1
- package/dist/vega/p-09deb867.entry.js +1 -0
- package/dist/vega/{p-9e0f8b46.entry.js → p-0e298ee8.entry.js} +1 -1
- package/dist/vega/p-157a2459.entry.js +1 -0
- package/dist/vega/p-1827a459.entry.js +1 -0
- package/dist/vega/{p-36e46c4f.js → p-1ab4c08d.js} +1 -1
- package/dist/vega/{p-4914a5f8.entry.js → p-1d16a7fa.entry.js} +1 -1
- package/dist/vega/p-1e68e217.entry.js +1 -0
- package/dist/vega/{p-416e89b0.entry.js → p-2649051e.entry.js} +1 -1
- package/dist/vega/{p-a87bc75a.entry.js → p-26a54a73.entry.js} +1 -1
- package/dist/vega/{p-ba4f23d8.entry.js → p-285b161c.entry.js} +1 -1
- package/dist/vega/{p-c93dfe23.js → p-2abdca42.js} +1 -1
- package/dist/vega/{p-c0c13993.entry.js → p-2c5352fe.entry.js} +1 -1
- package/dist/vega/{p-1f563387.js → p-2e86aee5.js} +1 -1
- package/dist/vega/p-2f2201d6.entry.js +1 -0
- package/dist/vega/p-306720b8.entry.js +1 -0
- package/dist/vega/{p-7292ac20.js → p-328dbe8e.js} +1 -1
- package/dist/vega/p-337440ce.entry.js +1 -0
- package/dist/vega/{p-0c460945.js → p-3390bb20.js} +1 -1
- package/dist/vega/{p-e7fb7eee.js → p-35e800ac.js} +1 -1
- package/dist/vega/{p-9c48e4e5.js → p-363e453b.js} +1 -1
- package/dist/vega/{p-518e0a24.js → p-3a49089e.js} +1 -1
- package/dist/vega/{p-ffda64ac.js → p-3a5737fa.js} +1 -1
- package/dist/vega/{p-b565a6a5.js → p-3e09aeed.js} +1 -1
- package/dist/vega/{p-6be01c6b.entry.js → p-3ef9c69d.entry.js} +1 -1
- package/dist/vega/{p-18d1d404.entry.js → p-43af604c.entry.js} +1 -1
- package/dist/vega/{p-c6201e76.entry.js → p-44d2f9e7.entry.js} +1 -1
- package/dist/vega/{p-a53e1a60.entry.js → p-4694fe27.entry.js} +1 -1
- package/dist/vega/p-46cab60a.js +1 -0
- package/dist/vega/{p-341d5e4e.js → p-46e0c6ca.js} +1 -1
- package/dist/vega/{p-7dcc0b23.entry.js → p-48ea74b5.entry.js} +1 -1
- package/dist/vega/p-4b34df4c.entry.js +1 -0
- package/dist/vega/{p-b5d00d38.entry.js → p-4c6baf92.entry.js} +1 -1
- package/dist/vega/p-4edd7f8c.js +1 -0
- package/dist/vega/{p-3312e3dd.js → p-50e7020c.js} +1 -1
- package/dist/vega/{p-11e2dcf5.js → p-526e3634.js} +1 -1
- package/dist/vega/p-528748fa.js +1 -0
- package/dist/vega/{p-1d752c37.entry.js → p-57b34bf9.entry.js} +1 -1
- package/dist/vega/{p-4f53b45d.entry.js → p-5a6e2c08.entry.js} +1 -1
- package/dist/vega/{p-b857a661.js → p-5f09aba8.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-d8591207.entry.js → p-5fd29f29.entry.js} +1 -1
- package/dist/vega/p-600f0316.entry.js +1 -0
- package/dist/vega/{p-92710213.entry.js → p-61536fcf.entry.js} +1 -1
- package/dist/vega/{p-6bd37d32.js → p-630cd479.js} +1 -1
- package/dist/vega/{p-a0dd5273.entry.js → p-66b2a285.entry.js} +1 -1
- package/dist/vega/p-6a3ea3f0.entry.js +1 -0
- package/dist/vega/p-6c484462.entry.js +1 -0
- package/dist/vega/p-73508c24.js +1 -0
- package/dist/vega/{p-3d6568cc.js → p-76454c9a.js} +1 -1
- package/dist/vega/{p-b7f30f68.entry.js → p-78a6e741.entry.js} +1 -1
- package/dist/vega/p-7fbd11b0.js +1 -0
- package/dist/vega/{p-a73d8915.entry.js → p-8258dc37.entry.js} +1 -1
- package/dist/vega/p-8457b6b7.entry.js +1 -0
- package/dist/vega/{p-92468c30.entry.js → p-8666f206.entry.js} +1 -1
- package/dist/vega/{p-a0fa5ccc.entry.js → p-8865613a.entry.js} +1 -1
- package/dist/vega/p-894fb9c9.entry.js +1 -0
- package/dist/vega/p-89947a43.js +1 -0
- package/dist/vega/{p-a36d4199.entry.js → p-89d55444.entry.js} +1 -1
- package/dist/vega/{p-ea48decc.js → p-8a34c08a.js} +1 -1
- package/dist/vega/p-8a3d12e6.js +1 -0
- package/dist/vega/p-8ce92f5f.entry.js +1 -0
- package/dist/vega/p-92e493ea.entry.js +1 -0
- package/dist/vega/{p-0d248322.entry.js → p-93cbc231.entry.js} +1 -1
- package/dist/vega/{p-f0d70de3.js → p-94a064a3.js} +1 -1
- package/dist/vega/{p-03b32939.entry.js → p-976536c7.entry.js} +1 -1
- package/dist/vega/{p-5a960f83.entry.js → p-9a35a34f.entry.js} +1 -1
- package/dist/vega/p-9a562813.entry.js +1 -0
- package/dist/vega/{p-b0fb5099.entry.js → p-9cb92fa3.entry.js} +1 -1
- package/dist/vega/{p-3967fa98.entry.js → p-a05a2f1e.entry.js} +1 -1
- package/dist/vega/{p-d2237b95.entry.js → p-a0705cd0.entry.js} +1 -1
- package/dist/vega/p-a18d280f.js +3 -0
- package/dist/vega/{p-10fa27d2.js → p-a58cacca.js} +1 -1
- package/dist/vega/p-a9b6ce74.js +1 -0
- package/dist/vega/{p-788ada42.js → p-ad89f499.js} +1 -1
- package/dist/vega/{p-f7ad9349.js → p-b2488adb.js} +1 -1
- package/dist/vega/{p-7cd2b93b.js → p-b3420fcf.js} +1 -1
- package/dist/vega/{p-d1641644.entry.js → p-b3b22e36.entry.js} +1 -1
- package/dist/vega/{p-0d3830f1.js → p-b66d46ce.js} +1 -1
- package/dist/vega/p-b9bd85d6.entry.js +1 -0
- package/dist/vega/{p-01f617ee.entry.js → p-baef217a.entry.js} +1 -1
- package/dist/vega/{p-ecbead18.entry.js → p-bd5566e3.entry.js} +1 -1
- package/dist/vega/{p-81d55efd.js → p-be6c1415.js} +1 -1
- package/dist/vega/p-c016b230.entry.js +1 -0
- package/dist/vega/{p-ce8a0aa6.entry.js → p-c3be0c29.entry.js} +1 -1
- package/dist/vega/{p-b5a3de00.entry.js → p-c4bd6cf8.entry.js} +1 -1
- package/dist/vega/{p-abfe46ca.js → p-c91e0a43.js} +1 -1
- package/dist/vega/{p-0dafd071.entry.js → p-ca4773c3.entry.js} +1 -1
- package/dist/vega/p-cb378636.js +1 -0
- package/dist/vega/p-cdde6e64.entry.js +1 -0
- package/dist/vega/p-d1cc3544.entry.js +1 -0
- package/dist/vega/{p-919de162.js → p-d2916121.js} +1 -1
- package/dist/vega/{p-5424e837.js → p-d319ebb5.js} +1 -1
- package/dist/vega/{p-6629a68b.js → p-d7790113.js} +1 -1
- package/dist/vega/{p-b3e97e2f.entry.js → p-d93574dd.entry.js} +1 -1
- package/dist/vega/{p-df4f9264.entry.js → p-dbb02b32.entry.js} +1 -1
- package/dist/vega/p-dd529875.js +1 -0
- package/dist/vega/{p-5c1a4fd7.entry.js → p-df3a649c.entry.js} +1 -1
- package/dist/vega/{p-b72d7b57.entry.js → p-df71c830.entry.js} +1 -1
- package/dist/vega/p-e80e7cd9.entry.js +1 -0
- package/dist/vega/{p-1385da31.entry.js → p-ed0cc518.entry.js} +1 -1
- package/dist/vega/{p-296c90bd.entry.js → p-efe48ed5.entry.js} +1 -1
- package/dist/vega/{p-e5726df7.entry.js → p-efe6e4e6.entry.js} +1 -1
- package/dist/vega/{p-b519b9ab.entry.js → p-f597b65e.entry.js} +1 -1
- package/dist/vega/p-f764b62e.entry.js +1 -0
- package/dist/vega/p-f7c6af07.js +1 -0
- package/dist/vega/{p-cdd3af89.entry.js → p-f7cab150.entry.js} +1 -1
- package/dist/vega/{p-0b2ca33b.js → p-f7e8081e.js} +1 -1
- package/dist/vega/{p-36f3dd19.entry.js → p-fa398acc.entry.js} +1 -1
- package/dist/vega/{p-cacec680.js → p-fae4d64e.js} +1 -1
- package/dist/vega/{p-9f03856e.js → p-fbde6153.js} +1 -1
- package/dist/vega/{p-b31802b3.entry.js → p-fc0ce3b5.entry.js} +1 -1
- package/dist/vega/p-fcefb62c.js +1 -0
- package/dist/vega/p-ff24b342.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-05dc6718.js +0 -1
- package/dist/vega/p-0edf9c6e.entry.js +0 -1
- package/dist/vega/p-30f76962.js +0 -3
- package/dist/vega/p-3186995a.entry.js +0 -1
- package/dist/vega/p-3ab50c06.entry.js +0 -1
- package/dist/vega/p-3e2e4b00.entry.js +0 -1
- package/dist/vega/p-50958342.js +0 -1
- package/dist/vega/p-540bd78a.entry.js +0 -1
- package/dist/vega/p-54ed506c.entry.js +0 -1
- package/dist/vega/p-5c8522eb.entry.js +0 -1
- package/dist/vega/p-6205288e.entry.js +0 -1
- package/dist/vega/p-696d7b8f.js +0 -1
- package/dist/vega/p-6ab23e89.entry.js +0 -1
- package/dist/vega/p-70e0c3eb.entry.js +0 -1
- package/dist/vega/p-7168ef16.entry.js +0 -1
- package/dist/vega/p-7348a091.entry.js +0 -1
- package/dist/vega/p-7cd8d054.entry.js +0 -1
- package/dist/vega/p-8ee917b4.js +0 -1
- package/dist/vega/p-a32ad1ac.entry.js +0 -1
- package/dist/vega/p-a528714c.js +0 -1
- package/dist/vega/p-a5713178.js +0 -1
- package/dist/vega/p-ad815280.js +0 -1
- package/dist/vega/p-b218141f.entry.js +0 -1
- package/dist/vega/p-c4675cd2.entry.js +0 -1
- package/dist/vega/p-c51e3b9e.js +0 -1
- package/dist/vega/p-c84aa55a.js +0 -1
- package/dist/vega/p-cd382652.entry.js +0 -1
- package/dist/vega/p-cf5c6172.entry.js +0 -1
- package/dist/vega/p-da42fde0.js +0 -1
- package/dist/vega/p-dc0f7ef1.entry.js +0 -1
- package/dist/vega/p-dcd3b421.entry.js +0 -1
- package/dist/vega/p-ea4b5520.entry.js +0 -1
- package/dist/vega/p-eb78a2f2.entry.js +0 -1
- package/dist/vega/p-ec2a1d4c.js +0 -1
- package/dist/vega/p-fdf6f368.js +0 -1
- package/dist/vega/p-ffe8a826.entry.js +0 -1
|
@@ -31,7 +31,7 @@ export class VegaImageUploaderRenderer extends VegaSlimmer {
|
|
|
31
31
|
this.renderHint()));
|
|
32
32
|
}
|
|
33
33
|
renderLabelDom() {
|
|
34
|
-
return (h("vega-field-label", { "is-field-required": this.required, disabled: this.disabled, label: this.label }));
|
|
34
|
+
return (h("vega-field-label", { "is-field-required": this.required, disabled: this.disabled, optional: this.optional, label: this.label }));
|
|
35
35
|
}
|
|
36
36
|
renderContentByStatus() {
|
|
37
37
|
if (this.status === 'uploading') {
|
|
@@ -85,6 +85,9 @@ __decorate([
|
|
|
85
85
|
__decorate([
|
|
86
86
|
MapToComponentField()
|
|
87
87
|
], VegaImageUploaderRenderer.prototype, "required", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
MapToComponentField()
|
|
90
|
+
], VegaImageUploaderRenderer.prototype, "optional", void 0);
|
|
88
91
|
__decorate([
|
|
89
92
|
MapToComponentField()
|
|
90
93
|
], VegaImageUploaderRenderer.prototype, "width", void 0);
|
|
@@ -115,6 +115,16 @@ export class VegaImageUploader {
|
|
|
115
115
|
* @vegaVersion 1.14.0
|
|
116
116
|
*/
|
|
117
117
|
this.required = false;
|
|
118
|
+
/**
|
|
119
|
+
* Indicates whether the field should be presented as optional.
|
|
120
|
+
*
|
|
121
|
+
* This property only takes effect when `required` is `false`.
|
|
122
|
+
* When `true`, an "optional" label is displayed next to the field label.
|
|
123
|
+
*
|
|
124
|
+
* @default false
|
|
125
|
+
* @vegaVersion 2.89.0
|
|
126
|
+
*/
|
|
127
|
+
this.optional = false;
|
|
118
128
|
/**
|
|
119
129
|
* Specifies the validation status.
|
|
120
130
|
*
|
|
@@ -372,6 +382,30 @@ export class VegaImageUploader {
|
|
|
372
382
|
"reflect": true,
|
|
373
383
|
"defaultValue": "false"
|
|
374
384
|
},
|
|
385
|
+
"optional": {
|
|
386
|
+
"type": "boolean",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "boolean",
|
|
390
|
+
"resolved": "boolean",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": false,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [{
|
|
397
|
+
"name": "default",
|
|
398
|
+
"text": "false"
|
|
399
|
+
}, {
|
|
400
|
+
"name": "vegaVersion",
|
|
401
|
+
"text": "2.89.0"
|
|
402
|
+
}],
|
|
403
|
+
"text": "Indicates whether the field should be presented as optional.\n\nThis property only takes effect when `required` is `false`.\nWhen `true`, an \"optional\" label is displayed next to the field label."
|
|
404
|
+
},
|
|
405
|
+
"attribute": "optional",
|
|
406
|
+
"reflect": true,
|
|
407
|
+
"defaultValue": "false"
|
|
408
|
+
},
|
|
375
409
|
"isValid": {
|
|
376
410
|
"type": "boolean",
|
|
377
411
|
"mutable": true,
|
|
@@ -47,7 +47,7 @@ export class VegaInputNumericRenderer extends VegaSlimmer {
|
|
|
47
47
|
if (this.integerOnly) {
|
|
48
48
|
maskOptions.precision = 0;
|
|
49
49
|
}
|
|
50
|
-
return (h("vega-input", { value: this.value || '', showClearIcon: this.showClearIcon, disabled: this.disabled, label: this.label, hint: this.hint, required: this.required, type: "number", placeholder: this.placeholder, size: this.size === 'small' ? 'small' : 'default', prefixIcon: this.prefixIcon, ref: (ref) => {
|
|
50
|
+
return (h("vega-input", { value: this.value || '', showClearIcon: this.showClearIcon, disabled: this.disabled, label: this.label, hint: this.hint, required: this.required, optional: this.optional, type: "number", placeholder: this.placeholder, size: this.size === 'small' ? 'small' : 'default', prefixIcon: this.prefixIcon, ref: (ref) => {
|
|
51
51
|
this.vegaInputRef = ref;
|
|
52
52
|
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange, (payload) => this.onInputChange(payload));
|
|
53
53
|
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaBlur, (payload) => this.onInputBlur(payload));
|
|
@@ -78,6 +78,9 @@ __decorate([
|
|
|
78
78
|
__decorate([
|
|
79
79
|
MapToComponentField()
|
|
80
80
|
], VegaInputNumericRenderer.prototype, "label", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
MapToComponentField()
|
|
83
|
+
], VegaInputNumericRenderer.prototype, "optional", void 0);
|
|
81
84
|
__decorate([
|
|
82
85
|
MapToComponentField()
|
|
83
86
|
], VegaInputNumericRenderer.prototype, "hint", void 0);
|
|
@@ -148,6 +148,16 @@ export class VegaInputNumeric {
|
|
|
148
148
|
* @vegaVersion 2.29.0
|
|
149
149
|
*/
|
|
150
150
|
this.label = '';
|
|
151
|
+
/**
|
|
152
|
+
* Indicates whether the field should be presented as optional.
|
|
153
|
+
*
|
|
154
|
+
* This property only takes effect when `required` is `false`.
|
|
155
|
+
* When `true`, an "optional" label is displayed next to the field label.
|
|
156
|
+
*
|
|
157
|
+
* @default false
|
|
158
|
+
* @vegaVersion 2.89.0
|
|
159
|
+
*/
|
|
160
|
+
this.optional = false;
|
|
151
161
|
/**
|
|
152
162
|
* An array of custom validation rules applied to the numeric input in
|
|
153
163
|
* addition to the built-in rules (`RequiredFieldRule`, `MinNumberRule`,
|
|
@@ -576,6 +586,30 @@ export class VegaInputNumeric {
|
|
|
576
586
|
"attribute": "required",
|
|
577
587
|
"reflect": false
|
|
578
588
|
},
|
|
589
|
+
"optional": {
|
|
590
|
+
"type": "boolean",
|
|
591
|
+
"mutable": false,
|
|
592
|
+
"complexType": {
|
|
593
|
+
"original": "boolean",
|
|
594
|
+
"resolved": "boolean",
|
|
595
|
+
"references": {}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": false,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [{
|
|
601
|
+
"name": "default",
|
|
602
|
+
"text": "false"
|
|
603
|
+
}, {
|
|
604
|
+
"name": "vegaVersion",
|
|
605
|
+
"text": "2.89.0"
|
|
606
|
+
}],
|
|
607
|
+
"text": "Indicates whether the field should be presented as optional.\n\nThis property only takes effect when `required` is `false`.\nWhen `true`, an \"optional\" label is displayed next to the field label."
|
|
608
|
+
},
|
|
609
|
+
"attribute": "optional",
|
|
610
|
+
"reflect": true,
|
|
611
|
+
"defaultValue": "false"
|
|
612
|
+
},
|
|
579
613
|
"validationRules": {
|
|
580
614
|
"type": "unknown",
|
|
581
615
|
"mutable": false,
|
package/dist/collection/components/vega-input-range/slimmers/renderers/vega-input-range-renderer.js
CHANGED
|
@@ -28,7 +28,7 @@ export class VegaInputRangeRenderer extends VegaSlimmer {
|
|
|
28
28
|
render() {
|
|
29
29
|
return (h(Fragment, null,
|
|
30
30
|
h("vega-flex", { class: "vega-input-range-container", direction: this.stack !== 'horizontal' ? 'col' : 'row', alignItems: this.stack !== 'horizontal' ? 'start' : 'center', gap: "size-8", ref: (dom) => (this.inputRangeContainerRef = dom) },
|
|
31
|
-
h("vega-field-label", { onClick: this.inputRangeInputRenderer.focusFirstInput, isFieldRequired: this.required, disabled: this.disabled, label: this.label }),
|
|
31
|
+
h("vega-field-label", { onClick: this.inputRangeInputRenderer.focusFirstInput, isFieldRequired: this.required, optional: this.optional, disabled: this.disabled, label: this.label }),
|
|
32
32
|
this.inputRangeInputRenderer.render()),
|
|
33
33
|
this.renderHintDom()));
|
|
34
34
|
}
|
|
@@ -49,6 +49,9 @@ export class VegaInputRangeRenderer extends VegaSlimmer {
|
|
|
49
49
|
__decorate([
|
|
50
50
|
MapToComponentField()
|
|
51
51
|
], VegaInputRangeRenderer.prototype, "required", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
MapToComponentField()
|
|
54
|
+
], VegaInputRangeRenderer.prototype, "optional", void 0);
|
|
52
55
|
__decorate([
|
|
53
56
|
MapToComponentField()
|
|
54
57
|
], VegaInputRangeRenderer.prototype, "disabled", void 0);
|
|
@@ -107,6 +107,16 @@ export class VegaInputRange {
|
|
|
107
107
|
*/
|
|
108
108
|
/* eslint-disable-next-line @stencil/strict-mutable */
|
|
109
109
|
this.required = false;
|
|
110
|
+
/**
|
|
111
|
+
* Indicates whether the field should be presented as optional.
|
|
112
|
+
*
|
|
113
|
+
* This property only takes effect when `required` is `false`.
|
|
114
|
+
* When `true`, an "optional" label is displayed next to the field label.
|
|
115
|
+
*
|
|
116
|
+
* @default false
|
|
117
|
+
* @vegaVersion 2.89.0
|
|
118
|
+
*/
|
|
119
|
+
this.optional = false;
|
|
110
120
|
/**
|
|
111
121
|
* Indicates whether the current value in the field is considered valid
|
|
112
122
|
* based on the defined validation rules.
|
|
@@ -346,6 +356,30 @@ export class VegaInputRange {
|
|
|
346
356
|
"reflect": true,
|
|
347
357
|
"defaultValue": "false"
|
|
348
358
|
},
|
|
359
|
+
"optional": {
|
|
360
|
+
"type": "boolean",
|
|
361
|
+
"mutable": false,
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "boolean",
|
|
364
|
+
"resolved": "boolean",
|
|
365
|
+
"references": {}
|
|
366
|
+
},
|
|
367
|
+
"required": false,
|
|
368
|
+
"optional": false,
|
|
369
|
+
"docs": {
|
|
370
|
+
"tags": [{
|
|
371
|
+
"name": "default",
|
|
372
|
+
"text": "false"
|
|
373
|
+
}, {
|
|
374
|
+
"name": "vegaVersion",
|
|
375
|
+
"text": "2.89.0"
|
|
376
|
+
}],
|
|
377
|
+
"text": "Indicates whether the field should be presented as optional.\n\nThis property only takes effect when `required` is `false`.\nWhen `true`, an \"optional\" label is displayed next to the field label."
|
|
378
|
+
},
|
|
379
|
+
"attribute": "optional",
|
|
380
|
+
"reflect": true,
|
|
381
|
+
"defaultValue": "false"
|
|
382
|
+
},
|
|
349
383
|
"isValid": {
|
|
350
384
|
"type": "boolean",
|
|
351
385
|
"mutable": true,
|
|
@@ -51,7 +51,7 @@ export class VegaInputSelectDropdownRenderer extends VegaSlimmer {
|
|
|
51
51
|
: // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
52
52
|
this.selectedLabel.multiple(this.value, this.selectedItem);
|
|
53
53
|
return (h("span", { class: "vega-input-select-selected" },
|
|
54
|
-
h("vega-text", { overflow: "ellipsis", tooltip: this.getSelectedLabelTooltipProps(), key: selectedLabelStr }
|
|
54
|
+
h("vega-text", { overflow: "ellipsis", tooltip: this.getSelectedLabelTooltipProps(), text: selectedLabelStr, key: selectedLabelStr })));
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
57
|
return (h("div", { class: "vega-input-select-placeholder" }, this.translationSlimmer.t(this.placeholder)));
|
|
@@ -68,15 +68,15 @@ export class VegaInputSelectDropdownRenderer extends VegaSlimmer {
|
|
|
68
68
|
(typeof this.selectedLabel != 'function' && selectedLabelStr)) {
|
|
69
69
|
if (typeof this.selectedLabel == 'function') {
|
|
70
70
|
return (h("span", { class: "vega-input-select-selected", part: "selected-box" },
|
|
71
|
-
h("vega-text", { overflow: "ellipsis", tooltip: this.getSelectedLabelTooltipProps(),
|
|
71
|
+
h("vega-text", { overflow: "ellipsis", tooltip: this.getSelectedLabelTooltipProps(),
|
|
72
72
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
73
|
-
selectedSourceItemItem.displayName
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
text: selectedSourceItemItem.displayName, key:
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
75
|
+
selectedSourceItemItem.displayName })));
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
78
|
return (h("span", { class: "vega-input-select-selected", part: "selected-box" },
|
|
79
|
-
h("vega-text", { overflow: "ellipsis", tooltip: this.getSelectedLabelTooltipProps(), key: selectedLabelStr }
|
|
79
|
+
h("vega-text", { overflow: "ellipsis", tooltip: this.getSelectedLabelTooltipProps(), text: selectedLabelStr, key: selectedLabelStr })));
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
@@ -35,7 +35,7 @@ export class VegaInputSelectRenderer extends VegaSlimmer {
|
|
|
35
35
|
this.hint && this.renderHelpMessage()));
|
|
36
36
|
}
|
|
37
37
|
renderLabel() {
|
|
38
|
-
return (this.label && (h("vega-field-label", { "is-field-required": this.required, disabled: this.disabled, label: this.label, suffixButtonConfig: this.labelSuffixButtonConfig, ref: (node) => {
|
|
38
|
+
return (this.label && (h("vega-field-label", { "is-field-required": this.required, disabled: this.disabled, optional: this.optional, label: this.label, suffixButtonConfig: this.labelSuffixButtonConfig, ref: (node) => {
|
|
39
39
|
DomNodeSubjectObserverFactory.addUniqueObserverToNode(node, VegaLabelButtonClick, this.handleLabelButtonClick);
|
|
40
40
|
} })));
|
|
41
41
|
}
|
|
@@ -55,6 +55,9 @@ __decorate([
|
|
|
55
55
|
__decorate([
|
|
56
56
|
MapToComponentField()
|
|
57
57
|
], VegaInputSelectRenderer.prototype, "required", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
MapToComponentField()
|
|
60
|
+
], VegaInputSelectRenderer.prototype, "optional", void 0);
|
|
58
61
|
__decorate([
|
|
59
62
|
MapToComponentField()
|
|
60
63
|
], VegaInputSelectRenderer.prototype, "labelSuffixButtonConfig", void 0);
|
|
@@ -99,6 +99,16 @@ export class VegaInputSelect {
|
|
|
99
99
|
* @vegaVersion 1.0.7
|
|
100
100
|
*/
|
|
101
101
|
this.required = false;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates whether the field should be presented as optional.
|
|
104
|
+
*
|
|
105
|
+
* This property only takes effect when `required` is `false`.
|
|
106
|
+
* When `true`, an "optional" label is displayed next to the field label.
|
|
107
|
+
*
|
|
108
|
+
* @default false
|
|
109
|
+
* @vegaVersion 2.89.0
|
|
110
|
+
*/
|
|
111
|
+
this.optional = false;
|
|
102
112
|
/**
|
|
103
113
|
* Allows customization of the text displayed within the
|
|
104
114
|
* select field when single or multiple items are selected.
|
|
@@ -341,6 +351,30 @@ export class VegaInputSelect {
|
|
|
341
351
|
"reflect": true,
|
|
342
352
|
"defaultValue": "false"
|
|
343
353
|
},
|
|
354
|
+
"optional": {
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "boolean",
|
|
359
|
+
"resolved": "boolean",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [{
|
|
366
|
+
"name": "default",
|
|
367
|
+
"text": "false"
|
|
368
|
+
}, {
|
|
369
|
+
"name": "vegaVersion",
|
|
370
|
+
"text": "2.89.0"
|
|
371
|
+
}],
|
|
372
|
+
"text": "Indicates whether the field should be presented as optional.\n\nThis property only takes effect when `required` is `false`.\nWhen `true`, an \"optional\" label is displayed next to the field label."
|
|
373
|
+
},
|
|
374
|
+
"attribute": "optional",
|
|
375
|
+
"reflect": true,
|
|
376
|
+
"defaultValue": "false"
|
|
377
|
+
},
|
|
344
378
|
"selectedLabel": {
|
|
345
379
|
"type": "unknown",
|
|
346
380
|
"mutable": false,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { AppendChildrenAction } from '../../../dto/actions/append-child-nodes-action';
|
|
2
|
+
import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
|
|
3
|
+
import { InsertChildrenBeforeAction } from '../../../dto/actions/insert-children-before-block';
|
|
4
|
+
import { SplitBlockWithNodeAction } from '../../../dto/actions/split-block-with-node-action';
|
|
5
|
+
import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
|
|
6
|
+
import { RTEHorizontalLineBlock } from '../dto/horizontal-line-block';
|
|
7
|
+
import { RTETextNode } from '../../../dto/nodes/text-node';
|
|
8
|
+
/**
|
|
9
|
+
* Strategy to handle the insertion of a horizontal line block into the rich text editor.
|
|
10
|
+
* Follows the same pattern as BlockInsertImageIntoTextStrategy (before/after/split).
|
|
11
|
+
*/
|
|
12
|
+
export class InsertHorizontalLineBlockStrategy extends ActionHandleStrategy {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
handleAction(action, target) {
|
|
17
|
+
const hrBlock = RTEHorizontalLineBlock.create();
|
|
18
|
+
if (action.splitPointNode instanceof RTETextNode) {
|
|
19
|
+
const splitNode = action.splitPointNode;
|
|
20
|
+
const startOffsetOfNode = action.startOffsetOfNode;
|
|
21
|
+
if (this.isCaretPositionAtBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
22
|
+
this.insertAfterWithFocus(action, target, hrBlock);
|
|
23
|
+
}
|
|
24
|
+
else if (this.isCaretPositionAtBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
25
|
+
target.parent.apply(new InsertChildrenBeforeAction(target, hrBlock));
|
|
26
|
+
action.nextFocusNode = target.getFirstNode();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const splitBlockAction = new SplitBlockWithNodeAction(splitNode, startOffsetOfNode);
|
|
30
|
+
target.apply(splitBlockAction);
|
|
31
|
+
const nextBlock = this.getNextSiblingBlock(target);
|
|
32
|
+
target.parent.apply(new InsertChildrenAfterAction(target, hrBlock));
|
|
33
|
+
action.nextFocusNode = nextBlock.getFirstNode();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else if (action.splitPointNode) {
|
|
37
|
+
// Decorator node selected (image, HR, etc.) — insert after current block
|
|
38
|
+
this.insertAfterWithFocus(action, target, hrBlock);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const emptyParagraph = super.createNewParagraph('');
|
|
42
|
+
target.apply(new AppendChildrenAction([hrBlock, emptyParagraph]));
|
|
43
|
+
action.nextFocusNode = emptyParagraph.children[0];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Insert HR after target. If next sibling is focusable (has a text node), move cursor there;
|
|
48
|
+
* otherwise create an empty paragraph after HR.
|
|
49
|
+
*
|
|
50
|
+
* @param {InsertHorizontalLineBlockAction} action - The insert action whose `nextFocusNode` is updated.
|
|
51
|
+
* @param {RTEBlock} target - The block after which the HR is inserted.
|
|
52
|
+
* @param {RTEHorizontalLineBlock} hrBlock - The HR block to insert.
|
|
53
|
+
*/
|
|
54
|
+
insertAfterWithFocus(action, target, hrBlock) {
|
|
55
|
+
const nextBlock = this.getNextSiblingBlock(target);
|
|
56
|
+
const nextFirstNode = nextBlock === null || nextBlock === void 0 ? void 0 : nextBlock.getFirstNode();
|
|
57
|
+
if (nextFirstNode instanceof RTETextNode) {
|
|
58
|
+
target.parent.apply(new InsertChildrenAfterAction(target, hrBlock));
|
|
59
|
+
action.nextFocusNode = nextFirstNode;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
const emptyParagraph = super.createNewParagraph('');
|
|
63
|
+
target.parent.apply(new InsertChildrenAfterAction(target, hrBlock, emptyParagraph));
|
|
64
|
+
action.nextFocusNode = emptyParagraph.children[0];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get the next sibling block of the given block.
|
|
69
|
+
*
|
|
70
|
+
* @param {RTEBlock} block - The current block.
|
|
71
|
+
* @returns {RTEBlock | undefined} The next sibling block, or undefined if none.
|
|
72
|
+
*/
|
|
73
|
+
getNextSiblingBlock(block) {
|
|
74
|
+
const parent = block.parent;
|
|
75
|
+
const siblings = parent.children;
|
|
76
|
+
const index = siblings.indexOf(block);
|
|
77
|
+
return siblings[index + 1];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ElementToDTOStrategy } from '../../../slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract';
|
|
2
|
+
import { RTEHorizontalLineBlock } from '../dto/horizontal-line-block';
|
|
3
|
+
import htmlElementToAnnotationGenerator from '../../../slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator';
|
|
4
|
+
/**
|
|
5
|
+
* Strategy to convert `<hr>` HTML elements into RTEHorizontalLineBlock instances.
|
|
6
|
+
*/
|
|
7
|
+
export class HrToHorizontalLineBlockStrategy extends ElementToDTOStrategy {
|
|
8
|
+
/**
|
|
9
|
+
* Determines if this strategy can handle the current element.
|
|
10
|
+
*
|
|
11
|
+
* @param {HTMLElement[]} elementsArray - Array of elements to process.
|
|
12
|
+
* @param {number} currentIndex - The current index in the array.
|
|
13
|
+
* @returns {number} The number of elements this strategy can handle (1 for `<hr>`, 0 otherwise).
|
|
14
|
+
*/
|
|
15
|
+
canHandle(elementsArray, currentIndex) {
|
|
16
|
+
return elementsArray[currentIndex].tagName === 'HR' ? 1 : 0;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Converts the `<hr>` element to an RTEHorizontalLineBlock.
|
|
20
|
+
* Uses `htmlElementToAnnotationGenerator` to extract annotations (handles refill + filter).
|
|
21
|
+
*
|
|
22
|
+
* @param {HTMLElement[]} elementsArray - Array of elements.
|
|
23
|
+
* @param {VegaRTETransformOptions} [options] - Transformation options.
|
|
24
|
+
* @returns {Nullable<RTEContentBlock>} The created horizontal line block.
|
|
25
|
+
*/
|
|
26
|
+
handle(elementsArray, options) {
|
|
27
|
+
const element = elementsArray[0];
|
|
28
|
+
const annotations = htmlElementToAnnotationGenerator.generate(RTEHorizontalLineBlock, element, options);
|
|
29
|
+
return RTEHorizontalLineBlock.create(annotations, options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
appendChildBlocks() {
|
|
35
|
+
// `<hr>` is a void element — no children to append.
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* `<hr>` is a void element — no children to process.
|
|
39
|
+
*
|
|
40
|
+
* @returns {boolean} Always false.
|
|
41
|
+
*/
|
|
42
|
+
shouldProceedToElementChildren() {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
|
|
2
|
+
export const INSERT_HORIZONTAL_LINE_BLOCK = 'INSERT_HORIZONTAL_LINE_BLOCK';
|
|
3
|
+
/**
|
|
4
|
+
* Action to insert a horizontal line block into the rich text editor.
|
|
5
|
+
* Carries cursor position info to support split-paragraph insertion (same pattern as InsertImageToBlockAction).
|
|
6
|
+
*/
|
|
7
|
+
export class InsertHorizontalLineBlockAction extends ModifyContentAction {
|
|
8
|
+
constructor(splitPointNode, startOffsetOfNode = 0) {
|
|
9
|
+
super();
|
|
10
|
+
this.type = INSERT_HORIZONTAL_LINE_BLOCK;
|
|
11
|
+
this.splitPointNode = splitPointNode;
|
|
12
|
+
this.startOffsetOfNode = startOffsetOfNode;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M0 224H32 608h32v64H608 32 0V224z"/></svg>`,
|
|
3
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BlockAnnotation } from '../../../dto/annotations/block-annotation.abstract';
|
|
2
|
+
import { HR_DEFAULT_STYLES } from '../filter-styles-strategies/horizontal-line-block/horizontal-line-filter-styles-strategy';
|
|
3
|
+
export var RTEHorizontalLineExtensionAnnotationTypeEnum;
|
|
4
|
+
(function (RTEHorizontalLineExtensionAnnotationTypeEnum) {
|
|
5
|
+
RTEHorizontalLineExtensionAnnotationTypeEnum["HORIZONTAL_LINE"] = "HORIZONTAL_LINE";
|
|
6
|
+
})(RTEHorizontalLineExtensionAnnotationTypeEnum || (RTEHorizontalLineExtensionAnnotationTypeEnum = {}));
|
|
7
|
+
/**
|
|
8
|
+
* Horizontal line annotation.
|
|
9
|
+
* Mirrors {@link TextStyleAnnotation}: emits the HR default visual styles in
|
|
10
|
+
* standalone mode (source edit) and the corresponding class in normal mode.
|
|
11
|
+
* Only added to the block when `autoMatchFormat` is enabled.
|
|
12
|
+
*/
|
|
13
|
+
export class HorizontalLineAnnotation extends BlockAnnotation {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.type = RTEHorizontalLineExtensionAnnotationTypeEnum.HORIZONTAL_LINE;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Generate the map item for the annotation.
|
|
20
|
+
*
|
|
21
|
+
* @returns {[RTEHorizontalLineExtensionAnnotationTypeEnum.HORIZONTAL_LINE, HorizontalLineAnnotation]} Map item.
|
|
22
|
+
*/
|
|
23
|
+
static from() {
|
|
24
|
+
return [RTEHorizontalLineExtensionAnnotationTypeEnum.HORIZONTAL_LINE, new HorizontalLineAnnotation()];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the default styles for the horizontal line element.
|
|
28
|
+
*
|
|
29
|
+
* @returns {AnnotationStyle} The default styles.
|
|
30
|
+
*/
|
|
31
|
+
static getDefaultStyles() {
|
|
32
|
+
return HR_DEFAULT_STYLES;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
toJSON() {
|
|
38
|
+
// HR identity is captured by the block type; nothing to serialize.
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
clone() {
|
|
45
|
+
return new HorizontalLineAnnotation();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
renderClass(options) {
|
|
51
|
+
if (options === null || options === void 0 ? void 0 : options.standalone)
|
|
52
|
+
return null;
|
|
53
|
+
return 'v-rte-horizontal-line-hr';
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
*/
|
|
58
|
+
renderStyle(options) {
|
|
59
|
+
if (!(options === null || options === void 0 ? void 0 : options.standalone))
|
|
60
|
+
return null;
|
|
61
|
+
return HorizontalLineAnnotation.getDefaultStyles();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { RTEBlock } from '../../../dto/blocks/block.abstract';
|
|
2
|
+
import { RTEHorizontalLineNode } from './horizontal-line-node';
|
|
3
|
+
import { generateUUID } from '../../../../../utils/misc';
|
|
4
|
+
import { HorizontalLineAnnotation } from './horizontal-line-annotation';
|
|
5
|
+
/**
|
|
6
|
+
* Horizontal line block — a block containing a single `<hr>` decorator node.
|
|
7
|
+
*/
|
|
8
|
+
export class RTEHorizontalLineBlock extends RTEBlock {
|
|
9
|
+
constructor(id, options) {
|
|
10
|
+
super(id);
|
|
11
|
+
this.dtoName = RTEHorizontalLineBlock.dtoName;
|
|
12
|
+
this.type = 'horizontal-line';
|
|
13
|
+
this.children = [];
|
|
14
|
+
const { autoMatchFormat = true } = options !== null && options !== void 0 ? options : {};
|
|
15
|
+
if (autoMatchFormat) {
|
|
16
|
+
this.annotationMap = new Map([HorizontalLineAnnotation.from()]);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Creates an RTEHorizontalLineBlock from a JSON representation.
|
|
21
|
+
*
|
|
22
|
+
* @param {VegaRTECustomBlock} block - The block JSON to convert.
|
|
23
|
+
* @param {VegaRTETransformOptions} [options] - Transformation options.
|
|
24
|
+
* @returns {RTEHorizontalLineBlock} The created block instance.
|
|
25
|
+
*/
|
|
26
|
+
static from(block, options = { autoMatchFormat: true }) {
|
|
27
|
+
var _a, _b;
|
|
28
|
+
const hrBlock = new RTEHorizontalLineBlock(block.id, options);
|
|
29
|
+
const nodeId = ((_b = (_a = block.children) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.id) || generateUUID();
|
|
30
|
+
const node = new RTEHorizontalLineNode(nodeId, hrBlock);
|
|
31
|
+
hrBlock.children = [node];
|
|
32
|
+
if (block.annotations) {
|
|
33
|
+
RTEBlock.convertAnnotationsToMap(hrBlock.annotationMap, block.annotations);
|
|
34
|
+
}
|
|
35
|
+
return hrBlock;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new RTEHorizontalLineBlock with a child node.
|
|
39
|
+
*
|
|
40
|
+
* @param {VegaRTEBlockAnnotations} [annotations] - Optional annotations (e.g. customStyle overrides).
|
|
41
|
+
* @param {VegaRTETransformOptions} [options] - Transformation options.
|
|
42
|
+
* @returns {RTEHorizontalLineBlock} A new block instance.
|
|
43
|
+
*/
|
|
44
|
+
static create(annotations, options = { autoMatchFormat: true }) {
|
|
45
|
+
const hrBlock = new RTEHorizontalLineBlock(generateUUID(), options);
|
|
46
|
+
const node = new RTEHorizontalLineNode(generateUUID(), hrBlock);
|
|
47
|
+
hrBlock.children = [node];
|
|
48
|
+
if (annotations) {
|
|
49
|
+
RTEBlock.convertAnnotationsToMap(hrBlock.annotationMap, annotations);
|
|
50
|
+
}
|
|
51
|
+
return hrBlock;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @inheritDoc
|
|
55
|
+
*/
|
|
56
|
+
toJSON() {
|
|
57
|
+
return Object.assign(Object.assign({}, super.toJSON()), { type: 'horizontal-line', children: this.children.map((node) => node.toJSON()) });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @inheritDoc
|
|
61
|
+
*/
|
|
62
|
+
toHtml(options) {
|
|
63
|
+
const attrStr = super.generateAttributeString(options);
|
|
64
|
+
return `<hr${attrStr}>`;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @inheritDoc
|
|
68
|
+
*/
|
|
69
|
+
isNotEmpty() {
|
|
70
|
+
return this.children.length > 0;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @inheritDoc
|
|
74
|
+
*/
|
|
75
|
+
getLastNode() {
|
|
76
|
+
return this.children[this.children.length - 1];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @inheritDoc
|
|
80
|
+
*/
|
|
81
|
+
clone(parent) {
|
|
82
|
+
const clonedBlock = new RTEHorizontalLineBlock(this.id);
|
|
83
|
+
clonedBlock.children = this.children.map((node) => node.clone(clonedBlock));
|
|
84
|
+
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
85
|
+
clonedBlock.parent = parent;
|
|
86
|
+
return clonedBlock;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
RTEHorizontalLineBlock.dtoName = 'RTEHorizontalLineBlock';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RTEDecoratorNode } from '../../../dto/nodes/decorator-node';
|
|
2
|
+
/**
|
|
3
|
+
* Horizontal line node — a decorator node representing `<hr>` in the editor.
|
|
4
|
+
*/
|
|
5
|
+
export class RTEHorizontalLineNode extends RTEDecoratorNode {
|
|
6
|
+
constructor(id, parentBlock, annotationMap) {
|
|
7
|
+
super(id, annotationMap);
|
|
8
|
+
this.type = 'horizontal-line';
|
|
9
|
+
this.parent = parentBlock;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
toJSON() {
|
|
15
|
+
return {
|
|
16
|
+
id: this.id,
|
|
17
|
+
type: 'horizontal-line',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
clone(parent) {
|
|
24
|
+
return new RTEHorizontalLineNode(this.id, parent, super.cloneAnnotations());
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
toHtml() {
|
|
30
|
+
return '<hr>';
|
|
31
|
+
}
|
|
32
|
+
}
|