@heartlandone/vega 2.71.0-RTE-table-preview → 2.72.0-RTE-table-preview
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-4d077e56.js +433 -0
- package/dist/cjs/child-nodes-event-prevent-slimmer-871855df.js +158 -0
- package/dist/cjs/code-block-bf3642ef.js +4436 -0
- package/dist/cjs/column-operation-1cac8386.js +1325 -0
- package/dist/cjs/component-value-history-controller-slimmer.abstract-ebecb74a.js +757 -0
- package/dist/cjs/date-required-rule-99cca681.js +92 -0
- package/dist/cjs/design-token-ac429fe9.js +402 -0
- package/dist/cjs/dom-node-subject-observer-factory-1c8f7880.js +305 -0
- package/dist/cjs/dto-renderer-manager-04428a77.js +3930 -0
- package/dist/cjs/element-appender-slimmer-1b062054.js +1508 -0
- package/dist/cjs/event-emit-slimmer-f7255138.js +267 -0
- package/dist/cjs/form-field-controller-slimmer-57525f26.js +1267 -0
- package/dist/cjs/image-annotation-action-7fa5d30d.js +312 -0
- package/dist/cjs/index-58ea899e.js +4 -4
- package/dist/cjs/index-c7fbf32b.js +43 -0
- package/dist/cjs/index.cjs.js +17 -19
- package/dist/cjs/inject-keyboard-manager-a6101379.js +37 -0
- package/dist/cjs/internal-vega-event-manager-0e1ba774.js +487 -0
- package/dist/cjs/keyboard-manager-d8adb0ed.js +140 -0
- package/dist/cjs/keyboard-manager-slimmer-15e65357.js +39 -0
- package/dist/cjs/language-extension-6ad0b5a0.js +210 -0
- package/dist/cjs/loader.cjs.js +14 -14
- package/dist/cjs/month-view-generator-706c5477.js +102 -0
- package/dist/cjs/public-rules-76bcf49c.js +47 -0
- package/dist/cjs/range-449bcdd0.js +178 -0
- package/dist/cjs/responsive-format-facade-e61c7f7e.js +925 -0
- package/dist/cjs/rich-text-editor-required-rule-40216fee.js +64 -0
- package/dist/cjs/string-format-strategy.abstract-a8264fca.js +60 -0
- package/dist/cjs/string-input-formatter-slimmer-4332d1c7.js +230 -0
- package/dist/cjs/string-mask-strategy-4e7d3780.js +172 -0
- package/dist/cjs/style-formatter-e2a0ad27.js +34 -0
- package/dist/cjs/sub-state-notify-slimmer-9fe1ab65.js +81 -0
- package/dist/cjs/sub-state-observer-slimmer-2f6f4d28.js +134 -0
- package/dist/cjs/table-extension-1f162c4c.js +4836 -0
- package/dist/cjs/time-required-rule-9d39a620.js +141 -0
- package/dist/cjs/type-guard-69d2cf01.js +1965 -0
- package/dist/cjs/valid-credit-card-number-rule-9f40d1d9.js +173 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +12 -13
- package/dist/cjs/vega-app-header-button.cjs.entry.js +17 -18
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +16 -17
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +16 -17
- package/dist/cjs/vega-button-group_2.cjs.entry.js +60 -10
- package/dist/cjs/vega-button-link.cjs.entry.js +5 -5
- package/dist/cjs/vega-button.cjs.entry.js +16 -16
- package/dist/cjs/vega-calendar_4.cjs.entry.js +87 -909
- package/dist/cjs/vega-card.cjs.entry.js +15 -16
- package/dist/cjs/vega-carousel.cjs.entry.js +15 -15
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-chip.cjs.entry.js +17 -18
- package/dist/cjs/vega-code-block.cjs.entry.js +13 -13
- package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
- package/dist/cjs/vega-combo-box.cjs.entry.js +13 -13
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +1758 -1568
- package/dist/cjs/vega-dialog_2.cjs.entry.js +14 -15
- package/dist/cjs/vega-divider.cjs.entry.js +11 -12
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +18 -29
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
- package/dist/cjs/vega-flag-icon.cjs.entry.js +11 -12
- package/dist/cjs/vega-flex.cjs.entry.js +16 -17
- package/dist/cjs/vega-font.cjs.entry.js +15 -16
- package/dist/cjs/vega-form.cjs.entry.js +9 -9
- package/dist/cjs/vega-grid.cjs.entry.js +15 -16
- package/dist/cjs/vega-icon.cjs.entry.js +15 -16
- package/dist/cjs/vega-image-uploader.cjs.entry.js +16 -16
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +14 -14
- package/dist/cjs/vega-input-numeric.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-passcode.cjs.entry.js +12 -12
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +14 -14
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +14 -14
- package/dist/cjs/vega-input.cjs.entry.js +11 -11
- package/dist/cjs/vega-internal-event-id-a5ef414b.js +112 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +15 -16
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +13 -13
- package/dist/cjs/vega-popover_2.cjs.entry.js +21 -21
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +905 -0
- package/dist/cjs/vega-radio_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +9 -8
- package/dist/cjs/vega-rich-text-editor_5.cjs.entry.js +20 -20
- package/dist/cjs/vega-rich-text-table-selection-widget.cjs.entry.js +8 -3
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +17 -17
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +13 -13
- package/dist/cjs/vega-signature-capture.cjs.entry.js +14 -15
- package/dist/cjs/vega-stepper.cjs.entry.js +7 -7
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +13 -13
- package/dist/cjs/vega-textarea.cjs.entry.js +7 -7
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +39 -40
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +15 -15
- package/dist/cjs/vega.cjs.js +14 -14
- package/dist/collection/collection-manifest.json +7 -5
- package/dist/collection/components/vega-button/vega-button.css +4 -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 +25 -2
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +31 -2
- package/dist/collection/components/vega-button-group/vega-button-group.js +37 -0
- package/dist/collection/components/vega-button-link/vega-button-link.css +4 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +149 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-format-controller.js +3 -1
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-keyboard-controller.js +1 -1
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-value-controller.js +10 -26
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +107 -445
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-input-renderer-base.abstract.js +5 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.js +24 -17
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +15 -20
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.js +6 -17
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/constants.js +14 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/dto/calendar-selection.js +126 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-allow-repick-controller.js +70 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-current-period-controller.js +204 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-min-max-date-controller.js +56 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-selection-controller.js +191 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-state-base.abstract.js +54 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-today-controller.js +37 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.js +76 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +192 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +168 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +669 -278
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +667 -3
- package/dist/collection/components/vega-date-picker/vega-date-picker.css +0 -11
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +23 -40
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +3 -15
- package/dist/collection/components/vega-input/vega-input.js +1 -1
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +1 -1
- package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
- package/dist/collection/components/vega-popover/vega-popover.js +14 -4
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.js +75 -0
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-direction-controller.js +88 -0
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-step-controller.js +153 -0
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.js +125 -0
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-render-mode-controller.js +40 -0
- package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +94 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/slimmers/controllers/vega-progress-tracker-step-state-controller.js +43 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.css +79 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +84 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +69 -153
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +88 -85
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +11 -63
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/insert-token-node-strategy.js +5 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.js +12 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +16 -10
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-style.test.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +9 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +15 -15
- package/dist/collection/constants/regex.js +1 -0
- package/dist/collection/constants/ui.js +3 -0
- package/dist/collection/helpers/calendar/calendar-date.js +273 -1
- package/dist/collection/helpers/calendar/calendar-period/calendar-period.abstract.js +9 -0
- package/dist/collection/helpers/calendar/calendar-period/month-period.js +16 -4
- package/dist/collection/helpers/calendar/test/calendar-date.test.js +73 -0
- package/dist/collection/helpers/calendar/test/calendar-period/day-period.test.js +9 -0
- package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +41 -0
- package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +11 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +3 -1
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +5 -2
- package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +2 -1
- package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +7 -0
- package/dist/collection/helpers/ui/element-appender.js +35 -5
- package/dist/collection/types/type-guard.js +10 -0
- package/dist/collection/utils/date.js +14 -3
- package/dist/collection/utils/e2e-utils.js +8 -2
- package/dist/collection/utils/test/date.test.js +2 -0
- package/dist/esm/app-globals-e7a8d0cc.js +431 -0
- package/dist/esm/child-nodes-event-prevent-slimmer-9ae34332.js +156 -0
- package/dist/esm/code-block-3d3a9030.js +4378 -0
- package/dist/esm/column-operation-4a93bf52.js +1300 -0
- package/dist/esm/component-value-history-controller-slimmer.abstract-d84e7bab.js +751 -0
- package/dist/esm/date-required-rule-a9980386.js +90 -0
- package/dist/esm/design-token-1575f6d9.js +388 -0
- package/dist/esm/dom-node-subject-observer-factory-f81f215f.js +248 -0
- package/dist/esm/dto-renderer-manager-23784148.js +3910 -0
- package/dist/esm/element-appender-slimmer-1a50e184.js +1506 -0
- package/dist/esm/event-emit-slimmer-966716fa.js +265 -0
- package/dist/esm/form-field-controller-slimmer-0020997d.js +1265 -0
- package/dist/esm/image-annotation-action-dba16587.js +306 -0
- package/dist/esm/index-090d31ca.js +4 -4
- package/dist/esm/index-d72e7fb3.js +40 -0
- package/dist/esm/index.js +19 -21
- package/dist/esm/inject-keyboard-manager-9241968c.js +35 -0
- package/dist/esm/internal-vega-event-manager-4f51b17c.js +483 -0
- package/dist/esm/keyboard-manager-89acac79.js +138 -0
- package/dist/esm/keyboard-manager-slimmer-e303cb7d.js +37 -0
- package/dist/esm/language-extension-710fe56d.js +207 -0
- package/dist/esm/loader.js +16 -16
- package/dist/esm/month-view-generator-4bec99fd.js +98 -0
- package/dist/esm/page-resize-observer-slimmer-8744cb44.js +171 -0
- package/dist/esm/public-rules-522ba4b1.js +32 -0
- package/dist/esm/range-cdd85d30.js +176 -0
- package/dist/esm/responsive-format-facade-405f90d2.js +921 -0
- package/dist/esm/rich-text-editor-required-rule-7d2d9615.js +62 -0
- package/dist/esm/string-format-strategy.abstract-75540c16.js +58 -0
- package/dist/esm/string-input-formatter-slimmer-96ccc8cf.js +228 -0
- package/dist/esm/string-mask-strategy-4a18ed1a.js +170 -0
- package/dist/esm/style-formatter-52cd20f7.js +32 -0
- package/dist/esm/sub-state-notify-slimmer-97953a87.js +79 -0
- package/dist/esm/sub-state-observer-slimmer-3f2b954f.js +132 -0
- package/dist/esm/table-extension-164b0d6c.js +4816 -0
- package/dist/esm/time-required-rule-8ec1faf5.js +138 -0
- package/dist/esm/type-guard-b48aec98.js +1894 -0
- package/dist/esm/ui-28fd4193.js +38 -0
- package/dist/esm/valid-credit-card-number-rule-96eaf9b1.js +171 -0
- package/dist/esm/vega-accordion.entry.js +14 -15
- package/dist/esm/vega-app-header-button.entry.js +19 -20
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +18 -19
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +18 -19
- package/dist/esm/vega-button-group_2.entry.js +60 -10
- package/dist/esm/vega-button-link.entry.js +5 -5
- package/dist/esm/vega-button.entry.js +18 -18
- package/dist/esm/vega-calendar_4.entry.js +46 -868
- package/dist/esm/vega-card.entry.js +17 -18
- package/dist/esm/vega-carousel.entry.js +17 -17
- package/dist/esm/vega-checkbox_2.entry.js +9 -9
- package/dist/esm/vega-chip.entry.js +19 -20
- package/dist/esm/vega-code-block.entry.js +14 -14
- package/dist/esm/vega-color-picker.entry.js +8 -8
- package/dist/esm/vega-combo-box.entry.js +15 -15
- package/dist/esm/vega-date-picker_2.entry.js +1745 -1555
- package/dist/esm/vega-dialog_2.entry.js +16 -17
- package/dist/esm/vega-divider.entry.js +13 -14
- package/dist/esm/vega-dropdown_5.entry.js +20 -31
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +8 -8
- package/dist/esm/vega-flag-icon.entry.js +13 -14
- package/dist/esm/vega-flex.entry.js +18 -19
- package/dist/esm/vega-font.entry.js +17 -18
- package/dist/esm/vega-form.entry.js +11 -11
- package/dist/esm/vega-grid.entry.js +17 -18
- package/dist/esm/vega-icon.entry.js +17 -18
- package/dist/esm/vega-image-uploader.entry.js +18 -18
- package/dist/esm/vega-input-credit-card.entry.js +16 -16
- package/dist/esm/vega-input-numeric.entry.js +15 -15
- package/dist/esm/vega-input-passcode.entry.js +14 -14
- package/dist/esm/vega-input-phone-number.entry.js +16 -16
- package/dist/esm/vega-input-range.entry.js +9 -9
- package/dist/esm/vega-input-select.entry.js +16 -16
- package/dist/esm/vega-input.entry.js +13 -13
- package/dist/esm/vega-internal-event-id-54ce7562.js +66 -0
- package/dist/esm/vega-item-toggle.entry.js +4 -4
- package/dist/esm/vega-left-nav_5.entry.js +17 -18
- package/dist/esm/vega-loader-wrapper_2.entry.js +12 -12
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +15 -15
- package/dist/esm/vega-popover_2.entry.js +23 -23
- package/dist/esm/vega-progress-tracker_2.entry.js +900 -0
- package/dist/esm/vega-radio_2.entry.js +12 -12
- package/dist/esm/vega-rich-text-content.entry.js +10 -9
- package/dist/esm/vega-rich-text-editor_5.entry.js +22 -22
- package/dist/esm/vega-rich-text-table-selection-widget.entry.js +9 -4
- package/dist/esm/vega-segment-control.entry.js +5 -5
- package/dist/esm/vega-selection-chip_2.entry.js +19 -19
- package/dist/esm/vega-selection-tile_2.entry.js +10 -10
- package/dist/esm/vega-sidenav_3.entry.js +15 -15
- package/dist/esm/vega-signature-capture.entry.js +16 -17
- package/dist/esm/vega-stepper.entry.js +9 -9
- package/dist/esm/vega-tab-group_2.entry.js +6 -6
- package/dist/esm/vega-table_11.entry.js +15 -15
- package/dist/esm/vega-text.entry.js +2 -2
- package/dist/esm/vega-textarea.entry.js +9 -9
- package/dist/esm/vega-time-picker_2.entry.js +20 -21
- package/dist/esm/vega-toggle-switch.entry.js +8 -8
- package/dist/esm/vega-tooltip_2.entry.js +17 -17
- package/dist/esm/vega.js +16 -16
- package/dist/sri/vega-sri-manifest.json +349 -357
- package/dist/types/components/vega-button-group/types.d.ts +2 -1
- 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 +11 -0
- package/dist/types/components/vega-button-group/vega-button-group-item/vega-button-group-item.d.ts +7 -0
- package/dist/types/components/vega-button-group/vega-button-group.d.ts +8 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.d.ts +60 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-value-controller.d.ts +3 -4
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +29 -124
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-input-renderer-base.abstract.d.ts +1 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.d.ts +5 -5
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.d.ts +2 -3
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.d.ts +1 -4
- package/dist/types/components/vega-date-picker/types.d.ts +9 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/constants.d.ts +1 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/dto/calendar-selection.d.ts +62 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-allow-repick-controller.d.ts +31 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-current-period-controller.d.ts +78 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-min-max-date-controller.d.ts +20 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-selection-controller.d.ts +75 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-state-base.abstract.d.ts +29 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-today-controller.d.ts +15 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +18 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +40 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +32 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +182 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +6 -14
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +0 -4
- package/dist/types/components/vega-input/vega-input.d.ts +1 -1
- package/dist/types/components/vega-popover/vega-popover.d.ts +2 -1
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.d.ts +55 -0
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-direction-controller.d.ts +27 -0
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-step-controller.d.ts +63 -0
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.d.ts +39 -0
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-render-mode-controller.d.ts +21 -0
- package/dist/types/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.d.ts +21 -0
- package/dist/types/components/vega-progress-tracker/type.d.ts +1 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/slimmers/controllers/vega-progress-tracker-step-state-controller.d.ts +12 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.d.ts +22 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +24 -10
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +6 -1
- package/dist/types/components.d.ts +224 -8
- package/dist/types/constants/regex.d.ts +1 -0
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/calendar/calendar-date.d.ts +86 -2
- package/dist/types/helpers/calendar/calendar-period/calendar-period.abstract.d.ts +7 -0
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +3 -1
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +5 -2
- package/dist/types/helpers/ui/element-appender.d.ts +14 -0
- package/dist/types/types/components.type.d.ts +4 -0
- package/dist/types/types/type-guard.d.ts +8 -0
- package/dist/types/utils/date.d.ts +11 -2
- package/dist/types/utils/e2e-utils.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-09561e90.entry.js +1 -0
- package/dist/vega/p-095c778c.entry.js +1 -0
- package/dist/vega/p-0bca50ab.entry.js +1 -0
- package/dist/vega/p-10ac8b57.js +1 -0
- package/dist/vega/p-11a7daad.entry.js +1 -0
- package/dist/vega/p-1282b67e.js +1 -0
- package/dist/vega/p-137e5c70.entry.js +1 -0
- package/dist/vega/p-161b9c5b.js +1 -0
- package/dist/vega/p-174db33b.js +1 -0
- package/dist/vega/p-1815e753.entry.js +1 -0
- package/dist/vega/p-18bcfd7a.js +1 -0
- package/dist/vega/p-194722fe.entry.js +1 -0
- package/dist/vega/p-1be7c6c4.js +1 -0
- package/dist/vega/p-1c33d25e.entry.js +1 -0
- package/dist/vega/p-1dd07d64.entry.js +1 -0
- package/dist/vega/p-1e0d8228.entry.js +1 -0
- package/dist/vega/p-207cfa6a.js +1 -0
- package/dist/vega/p-218e29c2.js +1 -0
- package/dist/vega/p-2249b040.entry.js +1 -0
- package/dist/vega/p-23183d4d.js +1 -0
- package/dist/vega/p-238ec2b9.entry.js +1 -0
- package/dist/vega/p-2428457e.entry.js +1 -0
- package/dist/vega/p-263ad7b6.js +1 -0
- package/dist/vega/p-2688bc6f.entry.js +1 -0
- package/dist/vega/p-26a43b4c.js +1 -0
- package/dist/vega/p-285815b5.entry.js +1 -0
- package/dist/vega/p-2c07b213.entry.js +1 -0
- package/dist/vega/p-31a65402.entry.js +1 -0
- package/dist/vega/p-34a1a0c5.entry.js +1 -0
- package/dist/vega/p-3d85411d.js +1 -0
- package/dist/vega/p-3f561dd5.entry.js +1 -0
- package/dist/vega/p-40f39194.js +1 -0
- package/dist/vega/p-475f7bda.js +1 -0
- package/dist/vega/p-4785203e.entry.js +1 -0
- package/dist/vega/p-5051f0c1.entry.js +1 -0
- package/dist/vega/p-529daab4.entry.js +1 -0
- package/dist/vega/p-53c6ce54.entry.js +1 -0
- package/dist/vega/p-5504ebdf.js +1 -0
- package/dist/vega/p-5585d2b5.js +1 -0
- package/dist/vega/p-56ce0c4b.entry.js +1 -0
- package/dist/vega/p-58f5da43.js +1 -0
- package/dist/vega/p-596895ec.js +1 -0
- package/dist/vega/p-5b472921.js +1 -0
- package/dist/vega/p-5d7e908a.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-5fb6a3b5.js +1 -0
- package/dist/vega/p-63c84ff6.entry.js +1 -0
- package/dist/vega/p-6961fac0.entry.js +1 -0
- package/dist/vega/p-699e46d1.entry.js +1 -0
- package/dist/vega/p-6aa7ace9.js +1 -0
- package/dist/vega/p-6b631ff1.entry.js +1 -0
- package/dist/vega/p-6c1ef2ed.js +1 -0
- package/dist/vega/p-6ee3b103.js +1 -0
- package/dist/vega/p-71f2235e.js +1 -0
- package/dist/vega/p-776b2f3d.entry.js +1 -0
- package/dist/vega/p-7ac32e71.js +1 -0
- package/dist/vega/p-7e6c5eb8.entry.js +1 -0
- package/dist/vega/p-7eaa8ac0.entry.js +1 -0
- package/dist/vega/p-8014cb45.entry.js +1 -0
- package/dist/vega/p-877b36ae.entry.js +1 -0
- package/dist/vega/p-883c5174.entry.js +1 -0
- package/dist/vega/p-8b969a71.entry.js +1 -0
- package/dist/vega/p-8f6d42b0.entry.js +1 -0
- package/dist/vega/p-8feb1298.entry.js +1 -0
- package/dist/vega/p-95188267.entry.js +1 -0
- package/dist/vega/p-96aa0f3b.js +1 -0
- package/dist/vega/p-9a83a6b0.js +1 -0
- package/dist/vega/p-9e2cf904.entry.js +1 -0
- package/dist/vega/p-9e545fde.entry.js +1 -0
- package/dist/vega/p-9f4364ec.entry.js +1 -0
- package/dist/vega/p-a33dc7eb.entry.js +1 -0
- package/dist/vega/p-a3a80712.js +1 -0
- package/dist/vega/p-a4ec6575.js +1 -0
- package/dist/vega/p-a8dad05d.js +1 -0
- package/dist/vega/p-b47df664.js +1 -0
- package/dist/vega/p-b737b93a.entry.js +1 -0
- package/dist/vega/p-baa44cf5.entry.js +1 -0
- package/dist/vega/p-badc14cc.entry.js +1 -0
- package/dist/vega/p-bc2451f7.entry.js +1 -0
- package/dist/vega/p-bdb5362c.entry.js +1 -0
- package/dist/vega/p-be33db7b.js +1 -0
- package/dist/vega/p-bfe01850.js +1 -0
- package/dist/vega/p-c141b10e.entry.js +1 -0
- package/dist/vega/p-c465b6dd.entry.js +1 -0
- package/dist/vega/p-d1d0f08a.js +1 -0
- package/dist/vega/p-d6032515.entry.js +1 -0
- package/dist/vega/p-d69a6454.entry.js +1 -0
- package/dist/vega/p-d6cc786a.entry.js +1 -0
- package/dist/vega/p-d85d7862.entry.js +1 -0
- package/dist/vega/p-d991fb11.js +1 -0
- package/dist/vega/p-da77d71f.entry.js +1 -0
- package/dist/vega/p-de70aac1.js +1 -0
- package/dist/vega/p-e47ae7bc.entry.js +1 -0
- package/dist/vega/p-e8495b6c.entry.js +1 -0
- package/dist/vega/p-e8654ab5.entry.js +1 -0
- package/dist/vega/p-e94701e2.entry.js +1 -0
- package/dist/vega/p-e9e1293a.entry.js +1 -0
- package/dist/vega/p-ef48178e.entry.js +1 -0
- package/dist/vega/p-f729743c.entry.js +9 -0
- package/dist/vega/p-fb6b3b98.js +1 -0
- package/dist/vega/p-fca7c998.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -3
- package/style/vega-icons.css +17266 -0
- package/dist/cjs/app-globals-246e5160.js +0 -432
- package/dist/cjs/child-nodes-event-prevent-slimmer-f8840f1b.js +0 -158
- package/dist/cjs/code-block-36fb0e69.js +0 -4488
- package/dist/cjs/column-operation-aa0673f6.js +0 -1325
- package/dist/cjs/component-value-history-controller-slimmer.abstract-eec38ad7.js +0 -757
- package/dist/cjs/date-0a6bb035.js +0 -95
- package/dist/cjs/date-required-rule-4e1f84fd.js +0 -92
- package/dist/cjs/design-token-6f95b09f.js +0 -403
- package/dist/cjs/dom-node-subject-observer-factory-f040608b.js +0 -301
- package/dist/cjs/dto-renderer-manager-fbc93cb5.js +0 -3930
- package/dist/cjs/element-appender-slimmer-ec537994.js +0 -1470
- package/dist/cjs/event-emit-slimmer-7afe8d78.js +0 -267
- package/dist/cjs/form-field-controller-slimmer-f865d397.js +0 -1267
- package/dist/cjs/image-annotation-action-ae1310ef.js +0 -312
- package/dist/cjs/index-4b896e76.js +0 -43
- package/dist/cjs/inject-keyboard-manager-13c66257.js +0 -37
- package/dist/cjs/internal-vega-event-manager-45d451de.js +0 -486
- package/dist/cjs/keyboard-manager-af0d08a6.js +0 -140
- package/dist/cjs/keyboard-manager-slimmer-62f072cd.js +0 -39
- package/dist/cjs/language-extension-2df8cfd3.js +0 -210
- package/dist/cjs/mobilefriendly-aa2e50e9.js +0 -13
- package/dist/cjs/public-rules-6432194e.js +0 -47
- package/dist/cjs/range-d24916d7.js +0 -178
- package/dist/cjs/responsive-format-facade-0b610205.js +0 -925
- package/dist/cjs/rich-text-editor-required-rule-eb34a576.js +0 -64
- package/dist/cjs/state-background-color-formatter-aa5570f6.js +0 -85
- package/dist/cjs/string-format-strategy.abstract-07a95352.js +0 -60
- package/dist/cjs/string-input-formatter-slimmer-8236b5e1.js +0 -230
- package/dist/cjs/string-mask-strategy-6bdad95e.js +0 -172
- package/dist/cjs/style-formatter-1450a252.js +0 -34
- package/dist/cjs/sub-state-notify-slimmer-78682046.js +0 -81
- package/dist/cjs/sub-state-observer-slimmer-73aecfff.js +0 -134
- package/dist/cjs/table-extension-3b713932.js +0 -4815
- package/dist/cjs/time-required-rule-ccf178e7.js +0 -141
- package/dist/cjs/type-guard-f12b5bae.js +0 -742
- package/dist/cjs/valid-credit-card-number-rule-ce5c9147.js +0 -173
- package/dist/cjs/vega-internal-event-id-6d4a2c53.js +0 -110
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +0 -252
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.js +0 -282
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-element-appender-controller.js +0 -35
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-mobile-controller.js +0 -53
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-month-year-change-event-controller.js +0 -139
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-zindex-controller.js +0 -49
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.js +0 -341
- package/dist/esm/app-globals-e3ba8241.js +0 -430
- package/dist/esm/child-nodes-event-prevent-slimmer-66a11e63.js +0 -156
- package/dist/esm/code-block-f2f0cff5.js +0 -4430
- package/dist/esm/column-operation-9805e482.js +0 -1300
- package/dist/esm/component-value-history-controller-slimmer.abstract-400e0bd2.js +0 -751
- package/dist/esm/date-c55b97f0.js +0 -87
- package/dist/esm/date-required-rule-8944f3bf.js +0 -90
- package/dist/esm/design-token-6f4086a9.js +0 -389
- package/dist/esm/dom-node-subject-observer-factory-4401eb10.js +0 -246
- package/dist/esm/dto-renderer-manager-8b93cc6f.js +0 -3910
- package/dist/esm/element-appender-slimmer-cc465622.js +0 -1468
- package/dist/esm/event-emit-slimmer-7fade5b2.js +0 -265
- package/dist/esm/form-field-controller-slimmer-d88dc81a.js +0 -1265
- package/dist/esm/image-annotation-action-f62cfec3.js +0 -306
- package/dist/esm/index-e7660797.js +0 -40
- package/dist/esm/inject-keyboard-manager-ffd351b9.js +0 -35
- package/dist/esm/internal-vega-event-manager-c171f709.js +0 -482
- package/dist/esm/keyboard-manager-5d8f3582.js +0 -138
- package/dist/esm/keyboard-manager-slimmer-f39214e4.js +0 -37
- package/dist/esm/language-extension-87abdcf0.js +0 -207
- package/dist/esm/mobilefriendly-c5d0573d.js +0 -11
- package/dist/esm/page-resize-observer-slimmer-0bf7fbf3.js +0 -171
- package/dist/esm/public-rules-b6ad63e6.js +0 -32
- package/dist/esm/range-686c5d0c.js +0 -176
- package/dist/esm/responsive-format-facade-603dddd7.js +0 -921
- package/dist/esm/rich-text-editor-required-rule-4d14da42.js +0 -62
- package/dist/esm/state-background-color-formatter-0f01d27a.js +0 -82
- package/dist/esm/string-format-strategy.abstract-452f4398.js +0 -58
- package/dist/esm/string-input-formatter-slimmer-47305317.js +0 -228
- package/dist/esm/string-mask-strategy-6232a1c1.js +0 -170
- package/dist/esm/style-formatter-d76a67cb.js +0 -32
- package/dist/esm/sub-state-notify-slimmer-0a927f34.js +0 -79
- package/dist/esm/sub-state-observer-slimmer-33e0dd73.js +0 -132
- package/dist/esm/table-extension-5da1a8db.js +0 -4795
- package/dist/esm/time-required-rule-a01163b5.js +0 -138
- package/dist/esm/type-guard-12f7654b.js +0 -692
- package/dist/esm/ui-8424715a.js +0 -38
- package/dist/esm/valid-credit-card-number-rule-81443274.js +0 -171
- package/dist/esm/vega-internal-event-id-49fef150.js +0 -65
- package/dist/esm/vega-progress-tracker.entry.js +0 -248
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.d.ts +0 -96
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-element-appender-controller.d.ts +0 -12
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-mobile-controller.d.ts +0 -18
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-month-year-change-event-controller.d.ts +0 -46
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-zindex-controller.d.ts +0 -15
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.d.ts +0 -97
- package/dist/vega/p-0492fb42.entry.js +0 -1
- package/dist/vega/p-06840396.entry.js +0 -1
- package/dist/vega/p-06bc02cb.entry.js +0 -1
- package/dist/vega/p-070c3970.js +0 -1
- package/dist/vega/p-07c1a2a2.entry.js +0 -1
- package/dist/vega/p-08835909.js +0 -1
- package/dist/vega/p-10e142f1.js +0 -1
- package/dist/vega/p-12faf818.entry.js +0 -1
- package/dist/vega/p-1546855d.entry.js +0 -1
- package/dist/vega/p-18711501.js +0 -1
- package/dist/vega/p-194e32a2.js +0 -1
- package/dist/vega/p-19522949.js +0 -1
- package/dist/vega/p-197affbe.entry.js +0 -1
- package/dist/vega/p-1a282bfa.entry.js +0 -9
- package/dist/vega/p-1e5c2206.entry.js +0 -1
- package/dist/vega/p-1fb466db.js +0 -1
- package/dist/vega/p-24e66056.entry.js +0 -1
- package/dist/vega/p-26bde99c.entry.js +0 -1
- package/dist/vega/p-2762e4a7.entry.js +0 -1
- package/dist/vega/p-2b079386.entry.js +0 -1
- package/dist/vega/p-2c88b9c9.js +0 -1
- package/dist/vega/p-2de37a60.entry.js +0 -1
- package/dist/vega/p-2f866855.entry.js +0 -1
- package/dist/vega/p-3185b22d.entry.js +0 -1
- package/dist/vega/p-33cb78bd.entry.js +0 -1
- package/dist/vega/p-35609e2d.entry.js +0 -1
- package/dist/vega/p-36753b56.entry.js +0 -1
- package/dist/vega/p-37fd6859.entry.js +0 -1
- package/dist/vega/p-388953e4.entry.js +0 -1
- package/dist/vega/p-3925c16b.js +0 -1
- package/dist/vega/p-3ae691a0.entry.js +0 -1
- package/dist/vega/p-3ce90ecd.entry.js +0 -1
- package/dist/vega/p-4115d58a.entry.js +0 -1
- package/dist/vega/p-4a895707.js +0 -1
- package/dist/vega/p-502b7062.entry.js +0 -1
- package/dist/vega/p-532ff2d2.entry.js +0 -13
- package/dist/vega/p-5e1e91db.entry.js +0 -1
- package/dist/vega/p-5f53c228.entry.js +0 -1
- package/dist/vega/p-61519b5c.entry.js +0 -1
- package/dist/vega/p-62bf35fd.entry.js +0 -1
- package/dist/vega/p-64994265.entry.js +0 -1
- package/dist/vega/p-651ac54f.entry.js +0 -1
- package/dist/vega/p-67f159c3.js +0 -1
- package/dist/vega/p-70c898c6.entry.js +0 -1
- package/dist/vega/p-71f9c4d4.js +0 -1
- package/dist/vega/p-71fc7286.js +0 -1
- package/dist/vega/p-74168615.js +0 -1
- package/dist/vega/p-78d6dead.js +0 -1
- package/dist/vega/p-7d083222.entry.js +0 -1
- package/dist/vega/p-7d397c32.js +0 -1
- package/dist/vega/p-7d9cd9c8.js +0 -1
- package/dist/vega/p-7edd4b79.js +0 -1
- package/dist/vega/p-824a06ba.js +0 -1
- package/dist/vega/p-84d34816.js +0 -1
- package/dist/vega/p-853abdfd.entry.js +0 -1
- package/dist/vega/p-867a4970.js +0 -1
- package/dist/vega/p-8da8c2cf.entry.js +0 -1
- package/dist/vega/p-8daadaf3.entry.js +0 -1
- package/dist/vega/p-8eefbd15.entry.js +0 -1
- package/dist/vega/p-8fae8f9e.js +0 -1
- package/dist/vega/p-9112f67d.js +0 -1
- package/dist/vega/p-924b4e24.js +0 -1
- package/dist/vega/p-932c3efc.entry.js +0 -1
- package/dist/vega/p-9443c292.js +0 -1
- package/dist/vega/p-96c941d5.entry.js +0 -1
- package/dist/vega/p-9939e407.entry.js +0 -1
- package/dist/vega/p-99c52315.entry.js +0 -1
- package/dist/vega/p-99c6df1e.entry.js +0 -1
- package/dist/vega/p-9ce249a9.js +0 -1
- package/dist/vega/p-9f6632cc.entry.js +0 -1
- package/dist/vega/p-a10b9f2e.js +0 -12
- package/dist/vega/p-a6010b93.entry.js +0 -1
- package/dist/vega/p-a996636d.js +0 -1
- package/dist/vega/p-ae0edda4.entry.js +0 -1
- package/dist/vega/p-afe7bb0b.entry.js +0 -1
- package/dist/vega/p-b06ceb0f.entry.js +0 -1
- package/dist/vega/p-b1faebe0.js +0 -1
- package/dist/vega/p-b390be9d.entry.js +0 -1
- package/dist/vega/p-b555b253.js +0 -1
- package/dist/vega/p-baaf9264.js +0 -1
- package/dist/vega/p-bbc12975.js +0 -1
- package/dist/vega/p-bc749d3f.entry.js +0 -1
- package/dist/vega/p-c0b986af.js +0 -1
- package/dist/vega/p-c11c0d61.js +0 -1
- package/dist/vega/p-c4f6e01c.entry.js +0 -1
- package/dist/vega/p-c6ee2d47.entry.js +0 -1
- package/dist/vega/p-c8b76028.entry.js +0 -1
- package/dist/vega/p-cad733c8.js +0 -1
- package/dist/vega/p-d54a1453.entry.js +0 -1
- package/dist/vega/p-d94f149a.entry.js +0 -1
- package/dist/vega/p-de44727f.entry.js +0 -1
- package/dist/vega/p-e2a0f7ae.js +0 -1
- package/dist/vega/p-e6879699.entry.js +0 -1
- package/dist/vega/p-ec7bc15a.js +0 -1
- package/dist/vega/p-f14578ee.entry.js +0 -1
- package/dist/vega/p-f2de3d76.entry.js +0 -1
- package/dist/vega/p-f2f6f24d.entry.js +0 -1
- package/dist/vega/p-f41ef9e2.entry.js +0 -1
- package/dist/vega/p-f782a531.js +0 -1
- package/dist/vega/p-fc6617cb.entry.js +0 -1
- package/dist/vega/p-fc79b3c3.entry.js +0 -1
- package/dist/vega/p-ff67a25f.js +0 -1
- package/style/vega_min.css +0 -1
- package/style/visual-screenshots (1)/builds/master.json +0 -13385
- package/style/visual-screenshots (1)/compare.html +0 -26
- package/style/visual-screenshots (1)/connector.js +0 -10
- package/style/visual-screenshots (1)/images/00c9dbc329ca6b1ad78ea743b91ee0bc.png +0 -0
- package/style/visual-screenshots (1)/images/00deb6ff94de798b3fcc6414aedc040c.png +0 -0
- package/style/visual-screenshots (1)/images/014c955d050d2ebb917fd03590730572.png +0 -0
- package/style/visual-screenshots (1)/images/0182583c546dba469600a0251240cf21.png +0 -0
- package/style/visual-screenshots (1)/images/01a0575c0db1270ea83316b5c6c20601.png +0 -0
- package/style/visual-screenshots (1)/images/027defd97df9a5b4a7653be56ccdb0ac.png +0 -0
- package/style/visual-screenshots (1)/images/02ba6083bbf1c0e01a725f1f9f92aff9.png +0 -0
- package/style/visual-screenshots (1)/images/036795373db4daaf365beee11d8c25a7.png +0 -0
- package/style/visual-screenshots (1)/images/04a8eee512eeb23c1c2b87cda93a6776.png +0 -0
- package/style/visual-screenshots (1)/images/04bb561662f78f189085275de6678f41.png +0 -0
- package/style/visual-screenshots (1)/images/04eef932b78ca112212112ce585f27ab.png +0 -0
- package/style/visual-screenshots (1)/images/050cba57fa9a35e3803c85fbb59b4024.png +0 -0
- package/style/visual-screenshots (1)/images/051edd1219d1ddca517459b788cc9d2b.png +0 -0
- package/style/visual-screenshots (1)/images/0528ddc76f74747fa440e96db6907a43.png +0 -0
- package/style/visual-screenshots (1)/images/05395d74d64a1da223fb94b2874f2d66.png +0 -0
- package/style/visual-screenshots (1)/images/0545ef2f0796fa5f1d878254825adaf4.png +0 -0
- package/style/visual-screenshots (1)/images/0582c1933e54f696b632a1e1659073b2.png +0 -0
- package/style/visual-screenshots (1)/images/059772f121132ead0d6fa0a48168338b.png +0 -0
- package/style/visual-screenshots (1)/images/05feee4ecb06f066f3dafb653f33b6fb.png +0 -0
- package/style/visual-screenshots (1)/images/0640963c7a9fddb30a953c2624ba42eb.png +0 -0
- package/style/visual-screenshots (1)/images/065795600809ccab42d0f13ba71eb633.png +0 -0
- package/style/visual-screenshots (1)/images/0666dfce480647c3cb8857d2bb059847.png +0 -0
- package/style/visual-screenshots (1)/images/0700cef6f6f83545e2e7d3ecedc042d4.png +0 -0
- package/style/visual-screenshots (1)/images/0723f0263fa389ae876735ff57f46681.png +0 -0
- package/style/visual-screenshots (1)/images/073c1445dacdaac8c0aa6480212492f9.png +0 -0
- package/style/visual-screenshots (1)/images/073d4f053baf4c24d6af8de20eeae2aa.png +0 -0
- package/style/visual-screenshots (1)/images/076e14b0ccac0c02052e66256be50d47.png +0 -0
- package/style/visual-screenshots (1)/images/0775b2b66ba608e1677bb4bd032f707e.png +0 -0
- package/style/visual-screenshots (1)/images/078f2e93590c93c74f514e02ac05e4a3.png +0 -0
- package/style/visual-screenshots (1)/images/080f0f2d3f06372a9302e80f14aeb74e.png +0 -0
- package/style/visual-screenshots (1)/images/08872613981eb5e038fd62286300c583.png +0 -0
- package/style/visual-screenshots (1)/images/08cfa8c87053192e64e3b0b448d0dfaa.png +0 -0
- package/style/visual-screenshots (1)/images/08fc2250530bdc6b684a493406e75dcb.png +0 -0
- package/style/visual-screenshots (1)/images/0918181ef6fad9b51bbf411785719c7f.png +0 -0
- package/style/visual-screenshots (1)/images/091c16a1900c15eaf442677f7b7712a4.png +0 -0
- package/style/visual-screenshots (1)/images/09271a89642f3deb1534537363d82adf.png +0 -0
- package/style/visual-screenshots (1)/images/0968ada1c88a12c121d7e4cd9d1a4c31.png +0 -0
- package/style/visual-screenshots (1)/images/098cf2d4feb36daa5935d431b4cc2af9.png +0 -0
- package/style/visual-screenshots (1)/images/098ee2f12b7cd94ed7e3d9678dca8d9d.png +0 -0
- package/style/visual-screenshots (1)/images/09afb7f891103d16ca4e69cced183010.png +0 -0
- package/style/visual-screenshots (1)/images/0a8740f45dfa3ef686362af82744d0f8.png +0 -0
- package/style/visual-screenshots (1)/images/0aecce7dd5c65d8a1cd2bc3007aa039c.png +0 -0
- package/style/visual-screenshots (1)/images/0afce1548cbbf477be056364879ed645.png +0 -0
- package/style/visual-screenshots (1)/images/0b0e6917a067495e267dea6d4f1d2c89.png +0 -0
- package/style/visual-screenshots (1)/images/0b422eacde0c1264cc993d15ce94f3f2.png +0 -0
- package/style/visual-screenshots (1)/images/0b462aed27368fadffaf4042b4bf124f.png +0 -0
- package/style/visual-screenshots (1)/images/0bd41559a47131117d6b5d48f9384e2b.png +0 -0
- package/style/visual-screenshots (1)/images/0cdf8442f9e597e7782a97d05b9f0167.png +0 -0
- package/style/visual-screenshots (1)/images/0ce13d831ed54f898c0ddc60c7a3bfe9.png +0 -0
- package/style/visual-screenshots (1)/images/0d7e570e1a0f76d5114975280c8e36dc.png +0 -0
- package/style/visual-screenshots (1)/images/0dd901512ef46e6320b55ebb543c7a38.png +0 -0
- package/style/visual-screenshots (1)/images/0de77d7c6aedecc1948bf82730e77f9b.png +0 -0
- package/style/visual-screenshots (1)/images/0e588e87d0e0617c6fefe1e8203ceaf5.png +0 -0
- package/style/visual-screenshots (1)/images/0eb8a80ddc22191daad2b765098af978.png +0 -0
- package/style/visual-screenshots (1)/images/0ee82b520727d5a484ae47df46170f6b.png +0 -0
- package/style/visual-screenshots (1)/images/0ef7219055c2204179e5a87ce6393ecd.png +0 -0
- package/style/visual-screenshots (1)/images/0f20d9909852d49d83662e354d774330.png +0 -0
- package/style/visual-screenshots (1)/images/0fe5e32a6e5d62baa9eb9e9ef32b8ac0.png +0 -0
- package/style/visual-screenshots (1)/images/101fe127c73e1204c7b0a9532ddf5f33.png +0 -0
- package/style/visual-screenshots (1)/images/10dc76469583d7bb071c415b4c2500f5.png +0 -0
- package/style/visual-screenshots (1)/images/111ceb449af342ffefc9bf18313e9f2d.png +0 -0
- package/style/visual-screenshots (1)/images/116f44589ef708d63b88f72c07020d65.png +0 -0
- package/style/visual-screenshots (1)/images/11809d0dd4f56bd7e75c1ee424ea6049.png +0 -0
- package/style/visual-screenshots (1)/images/11e8c569dc91a4263915d38d41797b7c.png +0 -0
- package/style/visual-screenshots (1)/images/11f644637e7bf9e488c92e597243b372.png +0 -0
- package/style/visual-screenshots (1)/images/11f85d78db6278a0b9309de5e1971968.png +0 -0
- package/style/visual-screenshots (1)/images/126484246367b441a4874bf1c80eb701.png +0 -0
- package/style/visual-screenshots (1)/images/12b7614a6bca5fba19b2c207c9399eec.png +0 -0
- package/style/visual-screenshots (1)/images/12f9db657f5f215db4fd81d60e61ac05.png +0 -0
- package/style/visual-screenshots (1)/images/12fd30dca14bdb10e138bf9957cb67d6.png +0 -0
- package/style/visual-screenshots (1)/images/12ff293bb7a3fb35ba9e71b36d1ede58.png +0 -0
- package/style/visual-screenshots (1)/images/132fad75fe05d0c78d642c7d18b36364.png +0 -0
- package/style/visual-screenshots (1)/images/133df50a253039a25dc23c11be89ceb7.png +0 -0
- package/style/visual-screenshots (1)/images/13b9e970f1e6fc8dde0c10722f66bb73.png +0 -0
- package/style/visual-screenshots (1)/images/13d533f8842a49a2a160723a46eb8a32.png +0 -0
- package/style/visual-screenshots (1)/images/14391d1ca80560f5e01b72b0a32a2e43.png +0 -0
- package/style/visual-screenshots (1)/images/14b81ce49feb5c4033d2b6bf9ce8b584.png +0 -0
- package/style/visual-screenshots (1)/images/16548b7507dad1afa018cf73f656e123.png +0 -0
- package/style/visual-screenshots (1)/images/16bbd810a35c9542672c143620dd124b.png +0 -0
- package/style/visual-screenshots (1)/images/17f1ac08aef0b15a2a93576bd0c69a8b.png +0 -0
- package/style/visual-screenshots (1)/images/1823fb8764090e5f139555434673b999.png +0 -0
- package/style/visual-screenshots (1)/images/184a290d2680a6b9ed5fd3e875866f6c.png +0 -0
- package/style/visual-screenshots (1)/images/1853b22c2e9f57c3c0465f1ad677fd02.png +0 -0
- package/style/visual-screenshots (1)/images/1917b4c75462018e96fd444a55f92fdb.png +0 -0
- package/style/visual-screenshots (1)/images/19cb20f82a883631ec08e6fce09c9346.png +0 -0
- package/style/visual-screenshots (1)/images/19d6ef3f0f09ad264bd4565a890f4de3.png +0 -0
- package/style/visual-screenshots (1)/images/19f0f11a1678b49278906815b94aa63b.png +0 -0
- package/style/visual-screenshots (1)/images/1a334e822ac119215ecd18f1289048cf.png +0 -0
- package/style/visual-screenshots (1)/images/1a396fba8af913178a057a63bc2812ef.png +0 -0
- package/style/visual-screenshots (1)/images/1a4712761391165e44e0399e574800c7.png +0 -0
- package/style/visual-screenshots (1)/images/1a6407989995cf5d9451432c30bd8af5.png +0 -0
- package/style/visual-screenshots (1)/images/1a66f2485b63b12007df9713afc7abbd.png +0 -0
- package/style/visual-screenshots (1)/images/1a9961bc790f0e542d0e1df7ec61162c.png +0 -0
- package/style/visual-screenshots (1)/images/1aad56b95fdc16ee9739410e31f4b04b.png +0 -0
- package/style/visual-screenshots (1)/images/1ab773baf811c86dcc3fd48c486b948e.png +0 -0
- package/style/visual-screenshots (1)/images/1acd824e815dd8290f73aa3eac0e9aa7.png +0 -0
- package/style/visual-screenshots (1)/images/1b7e059b6e4adb5f3a15dc7737195bef.png +0 -0
- package/style/visual-screenshots (1)/images/1b83910bbcff965492bf79d17f7f3952.png +0 -0
- package/style/visual-screenshots (1)/images/1b8acd3ed0bb87d0b41963d3c4566324.png +0 -0
- package/style/visual-screenshots (1)/images/1bcb2ad6de61cbc5cb2bfbc40dcf3c75.png +0 -0
- package/style/visual-screenshots (1)/images/1c01fa461439431ed056e345914504aa.png +0 -0
- package/style/visual-screenshots (1)/images/1c1622f4ff1c0169e2efe5af5fab7238.png +0 -0
- package/style/visual-screenshots (1)/images/1c2ae0a43c9aea9e17e639f2486ad76c.png +0 -0
- package/style/visual-screenshots (1)/images/1c2c279749b3bab613be5efd8411a9fb.png +0 -0
- package/style/visual-screenshots (1)/images/1cdb0dbdb6a4398f94988e3d40162f2c.png +0 -0
- package/style/visual-screenshots (1)/images/1cfacd6c8ac80ee3c4a7f8584bd1441c.png +0 -0
- package/style/visual-screenshots (1)/images/1d1444203dac3cbe71c951d381126d03.png +0 -0
- package/style/visual-screenshots (1)/images/1d73f593bed08ad694e2b573a39ae06f.png +0 -0
- package/style/visual-screenshots (1)/images/1dac4a7712234a30253ab6f9160d50a6.png +0 -0
- package/style/visual-screenshots (1)/images/1ebaf53fb8db94bb9a8154e86a3e5ed2.png +0 -0
- package/style/visual-screenshots (1)/images/1ec0c1febc3f0dd1786eea003e0dee38.png +0 -0
- package/style/visual-screenshots (1)/images/1ec3bebcdac3683aad4e93ea70ee4a1e.png +0 -0
- package/style/visual-screenshots (1)/images/1f7f87a3bfb22d7b6d5489170a691439.png +0 -0
- package/style/visual-screenshots (1)/images/217dca423214acf6733443967bd4bb91.png +0 -0
- package/style/visual-screenshots (1)/images/21a4579340bd071933dc4222aca885e8.png +0 -0
- package/style/visual-screenshots (1)/images/21e702dbfac3ae3c84ad5cf4a3a5fd33.png +0 -0
- package/style/visual-screenshots (1)/images/2205a5e15323173cf82e53036b89f3d2.png +0 -0
- package/style/visual-screenshots (1)/images/2239056187956d81a9a7a3ff086123ec.png +0 -0
- package/style/visual-screenshots (1)/images/22a392ca2f7b01e9145de8a1d16d8ac1.png +0 -0
- package/style/visual-screenshots (1)/images/2395e15caf0facec892a787fbf1baa61.png +0 -0
- package/style/visual-screenshots (1)/images/2430226e2b211252d8793d0b24bd105b.png +0 -0
- package/style/visual-screenshots (1)/images/249af52548a661890ebb3990c81e7bec.png +0 -0
- package/style/visual-screenshots (1)/images/24adff266f0ccc120bbab22610a7afef.png +0 -0
- package/style/visual-screenshots (1)/images/250d4d8b44fd5e3f83114560684c7a33.png +0 -0
- package/style/visual-screenshots (1)/images/2517969a2f9a119f248ef574ce68957a.png +0 -0
- package/style/visual-screenshots (1)/images/251e0de35a82707d6372ae27e6a28f19.png +0 -0
- package/style/visual-screenshots (1)/images/25596d87f964d9e9e48bcdcb815d97b0.png +0 -0
- package/style/visual-screenshots (1)/images/257aafcb25e5c45c1fdb794c500845af.png +0 -0
- package/style/visual-screenshots (1)/images/25eeda071a6e8ec33338f621edfccce7.png +0 -0
- package/style/visual-screenshots (1)/images/260117a8a096031e2d4a00137e1fb6e7.png +0 -0
- package/style/visual-screenshots (1)/images/2609faace1c9661a650574dcc408030d.png +0 -0
- package/style/visual-screenshots (1)/images/2613cd2759c32063cc30bd0bd33358dc.png +0 -0
- package/style/visual-screenshots (1)/images/2694ff3a617c6cf218bdd37a19c83b8a.png +0 -0
- package/style/visual-screenshots (1)/images/26e2f8a3530bb0e0ea2384f2bdc9a81a.png +0 -0
- package/style/visual-screenshots (1)/images/2729771eeefd444ff898c491f1273357.png +0 -0
- package/style/visual-screenshots (1)/images/27f11a528d6b5f15d45f2c420edc00fb.png +0 -0
- package/style/visual-screenshots (1)/images/2818dab1bc771c7ed5eb71d561228863.png +0 -0
- package/style/visual-screenshots (1)/images/28cf1d93f7722430ee1437df8a14127f.png +0 -0
- package/style/visual-screenshots (1)/images/2939e1e89e29a3b71f5be665edf472c2.png +0 -0
- package/style/visual-screenshots (1)/images/2a3e1613614fa6bf58ebcb820d6fc84f.png +0 -0
- package/style/visual-screenshots (1)/images/2a8fce144b32ae297bcc8650d13cdb1c.png +0 -0
- package/style/visual-screenshots (1)/images/2aa7766d32787734fc8a534acc98bf77.png +0 -0
- package/style/visual-screenshots (1)/images/2ae27049402468e5e2baf2b664365f8a.png +0 -0
- package/style/visual-screenshots (1)/images/2b1b3ff73541c559ff4f0f22f70db3d1.png +0 -0
- package/style/visual-screenshots (1)/images/2b3af1d887b41d5123e82575fbfa3958.png +0 -0
- package/style/visual-screenshots (1)/images/2b8c160de3305bb7deef1bd108bd0850.png +0 -0
- package/style/visual-screenshots (1)/images/2b8df5a2aa5bea6bb21551b1ea4a5fe3.png +0 -0
- package/style/visual-screenshots (1)/images/2bb42f7f640cb97e6ddd996cc4bdf0da.png +0 -0
- package/style/visual-screenshots (1)/images/2c0ab17426c134629732d0a71b6a0745.png +0 -0
- package/style/visual-screenshots (1)/images/2c20e396014f9b12f047545579b878ca.png +0 -0
- package/style/visual-screenshots (1)/images/2c2c8816739b979c0a3dbdcbea9c8f98.png +0 -0
- package/style/visual-screenshots (1)/images/2c532e1252a0775b10aed847a4f06e4a.png +0 -0
- package/style/visual-screenshots (1)/images/2cdd6aee7de3219ce296baef83119f45.png +0 -0
- package/style/visual-screenshots (1)/images/2cebfc565448f890d0a3fa2de61cfd61.png +0 -0
- package/style/visual-screenshots (1)/images/2d76b6c335af030ecc073359d3565529.png +0 -0
- package/style/visual-screenshots (1)/images/2d7f41ff4f3900f029adbcdbdfdef905.png +0 -0
- package/style/visual-screenshots (1)/images/2d8b857c7a81cd7e90b75c9fcb974e09.png +0 -0
- package/style/visual-screenshots (1)/images/2e1f9e506e8e09a191c0d86899e8975a.png +0 -0
- package/style/visual-screenshots (1)/images/2e8755615c5b55dfeb5ced872b9b89f6.png +0 -0
- package/style/visual-screenshots (1)/images/2efe3ccdf954982fb10f12ceb79cc902.png +0 -0
- package/style/visual-screenshots (1)/images/2f2a4fe573c824c9c651ae5fb24e26f6.png +0 -0
- package/style/visual-screenshots (1)/images/2f426e5f71eae6eaf7bb54b4aafa88d6.png +0 -0
- package/style/visual-screenshots (1)/images/2f4e9578c9f11b5c8e2d034824689dce.png +0 -0
- package/style/visual-screenshots (1)/images/2f5ec86f7334a79914c09ee94eae2f8d.png +0 -0
- package/style/visual-screenshots (1)/images/2f76ed17b978cfa3e663760d5c651b0f.png +0 -0
- package/style/visual-screenshots (1)/images/2f8832e36833e875c53bdf68ac53de11.png +0 -0
- package/style/visual-screenshots (1)/images/2fe54d475ff814eaf2b323bfa6990a25.png +0 -0
- package/style/visual-screenshots (1)/images/30423ab0c5ce8c26a9b4e30fb4ad50b5.png +0 -0
- package/style/visual-screenshots (1)/images/3079876e71da7c207489af4b38314ca3.png +0 -0
- package/style/visual-screenshots (1)/images/30ac31802c8421ee59c2b0e64fdd40d1.png +0 -0
- package/style/visual-screenshots (1)/images/30efef6537f882daf60ba808d25ab35c.png +0 -0
- package/style/visual-screenshots (1)/images/3111d7bc39ef23e1d19a8022f2f78d4f.png +0 -0
- package/style/visual-screenshots (1)/images/3155c15ead85acf928e71fc4958b1e65.png +0 -0
- package/style/visual-screenshots (1)/images/317b0753146b2d6c57ef618e2d6c9aff.png +0 -0
- package/style/visual-screenshots (1)/images/31bb19c3949134774cce7f0af132f001.png +0 -0
- package/style/visual-screenshots (1)/images/32009df7a0440dc1227d6c59fcdc22a8.png +0 -0
- package/style/visual-screenshots (1)/images/3205ce4d4ec27524cb360e23cb250a2e.png +0 -0
- package/style/visual-screenshots (1)/images/3221fe82f718cdb8d3a013e35e75d966.png +0 -0
- package/style/visual-screenshots (1)/images/322755f4d634ab3e62663c98413cf4bb.png +0 -0
- package/style/visual-screenshots (1)/images/3263cb4ecdc16ecec1cf03d96c1d83d1.png +0 -0
- package/style/visual-screenshots (1)/images/329d69f11e6409b7e7855c3e576057f6.png +0 -0
- package/style/visual-screenshots (1)/images/32b3faa4eb5356a1ac8b30c722b7f282.png +0 -0
- package/style/visual-screenshots (1)/images/332160dde332162d8e3b9e12dd376546.png +0 -0
- package/style/visual-screenshots (1)/images/33519a891e6922542f2b3fc18ab26670.png +0 -0
- package/style/visual-screenshots (1)/images/33a7eaf167f347d52bc910511d2fc029.png +0 -0
- package/style/visual-screenshots (1)/images/33b0ac3141f5f2ea19f81d742269bcab.png +0 -0
- package/style/visual-screenshots (1)/images/343327cf17cc3b6a5e451c4d86577491.png +0 -0
- package/style/visual-screenshots (1)/images/3474b54aac010b234998e46521894bde.png +0 -0
- package/style/visual-screenshots (1)/images/34a84ed26a53ffb27dbcdabeaf10c665.png +0 -0
- package/style/visual-screenshots (1)/images/34efd6c9f4e5031eeb8c1f1a51bd3eaa.png +0 -0
- package/style/visual-screenshots (1)/images/3531a86fca237cc6d8764eb9eeb8e394.png +0 -0
- package/style/visual-screenshots (1)/images/3598a332200dbe7f32ab86015e6cd61e.png +0 -0
- package/style/visual-screenshots (1)/images/35a2ea7b24e787bdea1313703512d37f.png +0 -0
- package/style/visual-screenshots (1)/images/35ea4500d8a65ff3e52c0404ded68018.png +0 -0
- package/style/visual-screenshots (1)/images/363f015a5323e01c8f7c421607ba7a85.png +0 -0
- package/style/visual-screenshots (1)/images/365a47a407c464a973116590d1280542.png +0 -0
- package/style/visual-screenshots (1)/images/3666d49f301336a1d92abe8c48811dd0.png +0 -0
- package/style/visual-screenshots (1)/images/36a3aa27abb0e8fb45cbe4e842bb793b.png +0 -0
- package/style/visual-screenshots (1)/images/36be2d1cc4bbea216ebfa024f2b5d9d3.png +0 -0
- package/style/visual-screenshots (1)/images/36d5ce3a43f8a8bbaddb83a756174e09.png +0 -0
- package/style/visual-screenshots (1)/images/3715717d75b5ec943086b9392d05747a.png +0 -0
- package/style/visual-screenshots (1)/images/3718308a2535e0badb74e0ed39da3e98.png +0 -0
- package/style/visual-screenshots (1)/images/376d9c365f202b555efc6152eb4dbb7a.png +0 -0
- package/style/visual-screenshots (1)/images/37ff2d44fb6261e53203d05e1d130b48.png +0 -0
- package/style/visual-screenshots (1)/images/3829933c4a23d7033a63119484708ab4.png +0 -0
- package/style/visual-screenshots (1)/images/38c924efe546ddde14e0cb343a2ed551.png +0 -0
- package/style/visual-screenshots (1)/images/390f5b1f49dc988e023255d1878b769a.png +0 -0
- package/style/visual-screenshots (1)/images/394ab2b92eacbc9f634b3d0618b877d0.png +0 -0
- package/style/visual-screenshots (1)/images/3961f21e98b5d1f616215c9588f0c8ea.png +0 -0
- package/style/visual-screenshots (1)/images/396af4eab814a3a2dc1429581b3452b3.png +0 -0
- package/style/visual-screenshots (1)/images/3a3ec2d1cafe6685d14ef24be74aace4.png +0 -0
- package/style/visual-screenshots (1)/images/3ae1c7c33ebd96fe70ad90acc7b1d693.png +0 -0
- package/style/visual-screenshots (1)/images/3b19874ff7c8b2b92d6e200634b760c5.png +0 -0
- package/style/visual-screenshots (1)/images/3b4f2951c9cbd00ad924a358e0f24304.png +0 -0
- package/style/visual-screenshots (1)/images/3bc5adf4dec1f65342d09fa825073ee7.png +0 -0
- package/style/visual-screenshots (1)/images/3be29fbf67e05c10ef9effda5b0d1b9c.png +0 -0
- package/style/visual-screenshots (1)/images/3bfdd784ff28564271d8067439c72fb2.png +0 -0
- package/style/visual-screenshots (1)/images/3c101349056155ee16f6d40d67566bb2.png +0 -0
- package/style/visual-screenshots (1)/images/3c24263abc9fe6f48efe83953f33d38f.png +0 -0
- package/style/visual-screenshots (1)/images/3c4b7cb9bc584cc8d417763e4e332cad.png +0 -0
- package/style/visual-screenshots (1)/images/3cb9028699d3dc4a5ff9ed62acf26f38.png +0 -0
- package/style/visual-screenshots (1)/images/3d5e1f1170e3c54f19f3966925138df0.png +0 -0
- package/style/visual-screenshots (1)/images/3d7ee9ac11ff5492525a094beaa220b1.png +0 -0
- package/style/visual-screenshots (1)/images/3d82c97ab6d96c4026d0f3ca072b02ae.png +0 -0
- package/style/visual-screenshots (1)/images/3ec93ead42526589356ac0b756d043ec.png +0 -0
- package/style/visual-screenshots (1)/images/3f1b42c8f0cb41c374b0893eb31f2fda.png +0 -0
- package/style/visual-screenshots (1)/images/3ff96bd3c1034fe2a3af47eb4f729eeb.png +0 -0
- package/style/visual-screenshots (1)/images/400b3fe6558f8ae340d796c834456f82.png +0 -0
- package/style/visual-screenshots (1)/images/404d5c7fe65c1df1162feb7af57adadd.png +0 -0
- package/style/visual-screenshots (1)/images/4060b53b47c6e063d1770980ecb101b2.png +0 -0
- package/style/visual-screenshots (1)/images/40dd05574156c243449caad139d9b9a2.png +0 -0
- package/style/visual-screenshots (1)/images/40f479e6d12eaa5687a4ac9784aa717e.png +0 -0
- package/style/visual-screenshots (1)/images/40f48b85da52ec3ef05fa4696c72f7ff.png +0 -0
- package/style/visual-screenshots (1)/images/4169f0823fcd903e16d7c3f9344cc491.png +0 -0
- package/style/visual-screenshots (1)/images/419a4e8e4b8708b8e6ff45f643a7cf5d.png +0 -0
- package/style/visual-screenshots (1)/images/41c7990e66fbed660d2b55e76fd2ea25.png +0 -0
- package/style/visual-screenshots (1)/images/423ae4e26846f800ea31ed24d79e7472.png +0 -0
- package/style/visual-screenshots (1)/images/427c562ebb511d853cd3437eb8c73c0f.png +0 -0
- package/style/visual-screenshots (1)/images/428ec68c1c5771403f8939976018c14e.png +0 -0
- package/style/visual-screenshots (1)/images/4291cb1eaed75fba4800f0033b689208.png +0 -0
- package/style/visual-screenshots (1)/images/42ed1e77d86bf5e0d7a8f90acf2ab6b2.png +0 -0
- package/style/visual-screenshots (1)/images/4313e10ac1318b7526eed35c0d704f05.png +0 -0
- package/style/visual-screenshots (1)/images/438f453be7d1213a8e2872e4608a410c.png +0 -0
- package/style/visual-screenshots (1)/images/439f69b339c6f6ca820a4b62382ca877.png +0 -0
- package/style/visual-screenshots (1)/images/43f6607e4b8ff0d5f6c4c5d323c96677.png +0 -0
- package/style/visual-screenshots (1)/images/44caefac207b436ffeffdef86eaae21a.png +0 -0
- package/style/visual-screenshots (1)/images/44eaf11aa4495c9d8d76941a1254dcb0.png +0 -0
- package/style/visual-screenshots (1)/images/453742c5e578099953f9bff69e3982ef.png +0 -0
- package/style/visual-screenshots (1)/images/459214ef33a21425f776796767256e3c.png +0 -0
- package/style/visual-screenshots (1)/images/45a13beb6b9356d7b1b4690370914252.png +0 -0
- package/style/visual-screenshots (1)/images/45a569fd48a72db5047a02e192c35363.png +0 -0
- package/style/visual-screenshots (1)/images/45c1ac110c0dc20d35d2c2be1e469e49.png +0 -0
- package/style/visual-screenshots (1)/images/466d83d9df37025413fcc77e2528d150.png +0 -0
- package/style/visual-screenshots (1)/images/46ffc37786e06461d5ffc3c101841ea6.png +0 -0
- package/style/visual-screenshots (1)/images/4708081357611e1ad1adb36ea5f91ebe.png +0 -0
- package/style/visual-screenshots (1)/images/4799a82b4f5b3242bcf158dc12aeb8da.png +0 -0
- package/style/visual-screenshots (1)/images/47a4ae1ed1de0348708e630718bf58e0.png +0 -0
- package/style/visual-screenshots (1)/images/47cd6b92f4697a387f4392729f019da0.png +0 -0
- package/style/visual-screenshots (1)/images/47d36e03c0973961a65d47f31bbce64d.png +0 -0
- package/style/visual-screenshots (1)/images/48812bb1c24cf4529f36152c045aefe4.png +0 -0
- package/style/visual-screenshots (1)/images/48b348f52bcf73e7b84273b59414d9c0.png +0 -0
- package/style/visual-screenshots (1)/images/48ccc273160dcf8a8eee6caa44dacdd1.png +0 -0
- package/style/visual-screenshots (1)/images/4946b39b68b5cf6879cab368a43dde2d.png +0 -0
- package/style/visual-screenshots (1)/images/494f07c31c273d35487cbacefb179211.png +0 -0
- package/style/visual-screenshots (1)/images/495c33cb81b92e71a59064b036deacb3.png +0 -0
- package/style/visual-screenshots (1)/images/4988de5d9c64f2451adb83cc9781f31d.png +0 -0
- package/style/visual-screenshots (1)/images/4a5c84ab5b32f8b3652f31aca7f82547.png +0 -0
- package/style/visual-screenshots (1)/images/4abedbcd1f3c2b3cb5af44393cc4edd3.png +0 -0
- package/style/visual-screenshots (1)/images/4ac246764de2e6eaea78d1eee8fa0680.png +0 -0
- package/style/visual-screenshots (1)/images/4b49f29e64109f5d844bae574d9368e9.png +0 -0
- package/style/visual-screenshots (1)/images/4ba5027ab476151e2ba4f16cade9a316.png +0 -0
- package/style/visual-screenshots (1)/images/4be038b7049b5639096cdf45dc0166d5.png +0 -0
- package/style/visual-screenshots (1)/images/4be0509c9e49770d5d3ab93a9d824c0c.png +0 -0
- package/style/visual-screenshots (1)/images/4c007d54467c97735191d53b1b89700a.png +0 -0
- package/style/visual-screenshots (1)/images/4c04913dd6ac89f9c03580ffcfc9dce2.png +0 -0
- package/style/visual-screenshots (1)/images/4c39dc9b5530f8cfa389453f323f2562.png +0 -0
- package/style/visual-screenshots (1)/images/4cf7eb7fbbfcbad4194ef321b793a243.png +0 -0
- package/style/visual-screenshots (1)/images/4d34a53adeaf6b96b5f910e0e57f91f7.png +0 -0
- package/style/visual-screenshots (1)/images/4d3538775024b65cc11c656ee312bfb7.png +0 -0
- package/style/visual-screenshots (1)/images/4d614a3bd7821f52b699427abf3440e2.png +0 -0
- package/style/visual-screenshots (1)/images/4d85b89464845f56b18d7e329f1394a4.png +0 -0
- package/style/visual-screenshots (1)/images/4d9140a7a2defdf17daec4df653cccb8.png +0 -0
- package/style/visual-screenshots (1)/images/4e52657b6cd66fa0e8da6225c3923833.png +0 -0
- package/style/visual-screenshots (1)/images/4eb94875d887dfece7a7e2cc00425848.png +0 -0
- package/style/visual-screenshots (1)/images/4f3481e7bcab3c6a115931bdc7bde793.png +0 -0
- package/style/visual-screenshots (1)/images/4f736b3787086298b179837d13ea2e27.png +0 -0
- package/style/visual-screenshots (1)/images/4f7e9c28d6d15df090c3857fe8172a90.png +0 -0
- package/style/visual-screenshots (1)/images/4f831bf4925c85ef517fd84fed27cefc.png +0 -0
- package/style/visual-screenshots (1)/images/4f8cc269620de9911fba4dff6724c7a5.png +0 -0
- package/style/visual-screenshots (1)/images/4f9cf3ca13066408925b4d1cdc856337.png +0 -0
- package/style/visual-screenshots (1)/images/4fe4b5357ee618b9ca1265408d74ad97.png +0 -0
- package/style/visual-screenshots (1)/images/5018ce083222fefeb9e4686ed2e1edaf.png +0 -0
- package/style/visual-screenshots (1)/images/5022d94c55bd146ad125a05b5c9f15dd.png +0 -0
- package/style/visual-screenshots (1)/images/503a0b5aa58f32f0892efbb58b46b996.png +0 -0
- package/style/visual-screenshots (1)/images/50a9c832d93ea3ba546abb94fd08af87.png +0 -0
- package/style/visual-screenshots (1)/images/5118ecf3e50d06897080ed1b2bafcef3.png +0 -0
- package/style/visual-screenshots (1)/images/5158dd83988845a3839627ad959dbb01.png +0 -0
- package/style/visual-screenshots (1)/images/51923db19fef9e029f0893a8a2003614.png +0 -0
- package/style/visual-screenshots (1)/images/51f5169578f81f7fb04205fa02f761c6.png +0 -0
- package/style/visual-screenshots (1)/images/52525fe087784b1fdffe1cfc03eed02d.png +0 -0
- package/style/visual-screenshots (1)/images/5266c70656af2dd7ea757c126c555489.png +0 -0
- package/style/visual-screenshots (1)/images/5273adef332dbb60fac11c48a989c42d.png +0 -0
- package/style/visual-screenshots (1)/images/52cfe294a3f7300731ce4dbe4717bdea.png +0 -0
- package/style/visual-screenshots (1)/images/5328d69dc10bb02003c30fed0e25a64b.png +0 -0
- package/style/visual-screenshots (1)/images/53e6290d0b3f1294543ba28828558bae.png +0 -0
- package/style/visual-screenshots (1)/images/53eeaa26642fb7b44a83b9bf5d285b1a.png +0 -0
- package/style/visual-screenshots (1)/images/540524e243acf3f3f5bfa8c392ffba52.png +0 -0
- package/style/visual-screenshots (1)/images/5436543a753e26c1c2224e9b8ed3f30c.png +0 -0
- package/style/visual-screenshots (1)/images/54c4e2aa7af0622b71ab1b91e0216497.png +0 -0
- package/style/visual-screenshots (1)/images/54cf609aa15fa2609c3079a322e9f60a.png +0 -0
- package/style/visual-screenshots (1)/images/54e4e6b63e13d2f360b1bd0d1ade4ebd.png +0 -0
- package/style/visual-screenshots (1)/images/5505895e66a4d80a8eb40be714de2da1.png +0 -0
- package/style/visual-screenshots (1)/images/554637773a92e812811d95933b06d047.png +0 -0
- package/style/visual-screenshots (1)/images/55b1e1c7415f8f22ab377f2e4fd5a91d.png +0 -0
- package/style/visual-screenshots (1)/images/55c30ec12d513e3c365e94ef76330703.png +0 -0
- package/style/visual-screenshots (1)/images/5737582ac302d9b30b549c875dc0e823.png +0 -0
- package/style/visual-screenshots (1)/images/5838b2544ecf964a999cab746d5bd97d.png +0 -0
- package/style/visual-screenshots (1)/images/58b847761ee38a8c47f208aeb558e0a9.png +0 -0
- package/style/visual-screenshots (1)/images/58cae6127379fa56b766c6c3528a286a.png +0 -0
- package/style/visual-screenshots (1)/images/58cd807e8212d20223020a0c6404765b.png +0 -0
- package/style/visual-screenshots (1)/images/5909df37c419a947f3725ea71a9680c3.png +0 -0
- package/style/visual-screenshots (1)/images/590d2d0fa1c7e1204816f4badda94716.png +0 -0
- package/style/visual-screenshots (1)/images/592abe77a6d530f6d9c77c1fe68d1315.png +0 -0
- package/style/visual-screenshots (1)/images/593cacdf991a89066c6887dda6214279.png +0 -0
- package/style/visual-screenshots (1)/images/597612a74ca61e8e3cee1183251cac24.png +0 -0
- package/style/visual-screenshots (1)/images/59b59b3d221c4be96d27770926f6eb7c.png +0 -0
- package/style/visual-screenshots (1)/images/59d0c2dc9de3c7ca52811e6d03005db0.png +0 -0
- package/style/visual-screenshots (1)/images/59e20e58e24364f8ea8e94f2708de92f.png +0 -0
- package/style/visual-screenshots (1)/images/5a0638a95840412ad0883e0e14dd22f4.png +0 -0
- package/style/visual-screenshots (1)/images/5a251791db123f6cf0fc8207cd34d605.png +0 -0
- package/style/visual-screenshots (1)/images/5a8cf1ada7ead3e071e59c233e45d826.png +0 -0
- package/style/visual-screenshots (1)/images/5a98898f2c6c913e34e6370769a2e419.png +0 -0
- package/style/visual-screenshots (1)/images/5aa02d6e18a0fa7b46ad23263f5372f9.png +0 -0
- package/style/visual-screenshots (1)/images/5ab4fc80d22b19429b70cd3a6ab8bb05.png +0 -0
- package/style/visual-screenshots (1)/images/5acd13c49bb19fc300b6a7c2460945db.png +0 -0
- package/style/visual-screenshots (1)/images/5add1e2e0f9c785f9e969cce0b11e0a6.png +0 -0
- package/style/visual-screenshots (1)/images/5aeed5c2ec2ca7b5ae286bae76bb6f72.png +0 -0
- package/style/visual-screenshots (1)/images/5b2591966426d8c77601565dfa914b5c.png +0 -0
- package/style/visual-screenshots (1)/images/5b424b673e5f6814bbcc687a2f5ba7ff.png +0 -0
- package/style/visual-screenshots (1)/images/5bd4d4b7e0890bcb1d81ede114ee4b72.png +0 -0
- package/style/visual-screenshots (1)/images/5beea7f2f00f4db6f09fcf15bd6b73de.png +0 -0
- package/style/visual-screenshots (1)/images/5c02af94f4d5ed86c881612dcfb31b02.png +0 -0
- package/style/visual-screenshots (1)/images/5c0c0f1dbdb3aca383c35ec0cb67c599.png +0 -0
- package/style/visual-screenshots (1)/images/5c520e4228567e2374f5d96b7f15c0d9.png +0 -0
- package/style/visual-screenshots (1)/images/5cb10edf424ba13d586e83e60ac14a2d.png +0 -0
- package/style/visual-screenshots (1)/images/5cca63b3d493de7befd4382f24a2aabd.png +0 -0
- package/style/visual-screenshots (1)/images/5d5ef2d78f31c874edb28ebdfbfbd8f9.png +0 -0
- package/style/visual-screenshots (1)/images/5d8110526b6ba5e9621d0f2fa57aa132.png +0 -0
- package/style/visual-screenshots (1)/images/5d8f7a0eff0b6d546331f921490f25b9.png +0 -0
- package/style/visual-screenshots (1)/images/5eab49b89384ab1f74be37d4e905021a.png +0 -0
- package/style/visual-screenshots (1)/images/5ebfae0149ca72238011292fa3e486cb.png +0 -0
- package/style/visual-screenshots (1)/images/5ecd509cfe196a8262a7e85d3d4c64b0.png +0 -0
- package/style/visual-screenshots (1)/images/5f153464c343cd768216633b852073e7.png +0 -0
- package/style/visual-screenshots (1)/images/5f69e3fcc20bdb527e040185048788e4.png +0 -0
- package/style/visual-screenshots (1)/images/5fb4421e5a6d1eaef21a54bb431bdacb.png +0 -0
- package/style/visual-screenshots (1)/images/5fd1665ddd85bf70339a29ddf3a98915.png +0 -0
- package/style/visual-screenshots (1)/images/602fb4d5d2c9707f008b0d6a1a0487a7.png +0 -0
- package/style/visual-screenshots (1)/images/604007e0cd1142f4e425d57ad9a1c5ef.png +0 -0
- package/style/visual-screenshots (1)/images/605d581f35cd72dc9d7083dcc8066af1.png +0 -0
- package/style/visual-screenshots (1)/images/6188b93026521a32345a4319fb10271e.png +0 -0
- package/style/visual-screenshots (1)/images/621e7fcf64cbb08d121b599a81acb46a.png +0 -0
- package/style/visual-screenshots (1)/images/626302e61eedc90d62298f66f46b8ec0.png +0 -0
- package/style/visual-screenshots (1)/images/6289549bdd1f3ba4ee0ffa76fa3a8636.png +0 -0
- package/style/visual-screenshots (1)/images/62a7d5f3d5afe23177d5dbab5f1e4c79.png +0 -0
- package/style/visual-screenshots (1)/images/6355a9180ed5c4dd8df56c9ead71b0c8.png +0 -0
- package/style/visual-screenshots (1)/images/63981d8aaadcbe9b9e73af3669b3c180.png +0 -0
- package/style/visual-screenshots (1)/images/63bd485372b912309753349358f50eda.png +0 -0
- package/style/visual-screenshots (1)/images/6415c0bc3637ea962fb1761ae69b5dda.png +0 -0
- package/style/visual-screenshots (1)/images/64174556b9d8b4d18b7b8cfd531987a7.png +0 -0
- package/style/visual-screenshots (1)/images/64443c554e8813c1fff9032b53c52b76.png +0 -0
- package/style/visual-screenshots (1)/images/6478d52ea2380b15c4b549d9a1f77bac.png +0 -0
- package/style/visual-screenshots (1)/images/649745ba63be2d7bf9d4f766d7b8ca38.png +0 -0
- package/style/visual-screenshots (1)/images/64f2a771825679d512c73923c1bd5184.png +0 -0
- package/style/visual-screenshots (1)/images/65147f30150f68dd99a34e3de9adb4a2.png +0 -0
- package/style/visual-screenshots (1)/images/651e96edc124365985fcf260c7695452.png +0 -0
- package/style/visual-screenshots (1)/images/6542deed80a8908b2ba2e40b482a5829.png +0 -0
- package/style/visual-screenshots (1)/images/6548c65bf55806aa5acde87bc4d2017e.png +0 -0
- package/style/visual-screenshots (1)/images/65be34b043114b668dad4ce359310ad3.png +0 -0
- package/style/visual-screenshots (1)/images/65f1fc5ed87fb18c756988c6719c3b05.png +0 -0
- package/style/visual-screenshots (1)/images/6618ae614b5a59f18f1f9f627b81f0ba.png +0 -0
- package/style/visual-screenshots (1)/images/6710405c63cd71667e3533429bc8ac74.png +0 -0
- package/style/visual-screenshots (1)/images/675177ec55467292992f6c641b44352e.png +0 -0
- package/style/visual-screenshots (1)/images/679ff4b5301290556ec91463a47cf018.png +0 -0
- package/style/visual-screenshots (1)/images/67d9619b97865d42f5617413a025f62a.png +0 -0
- package/style/visual-screenshots (1)/images/686cdd39835b173225bd0b6ce4448b88.png +0 -0
- package/style/visual-screenshots (1)/images/6874ed35cef726f65cda16ed1d544b35.png +0 -0
- package/style/visual-screenshots (1)/images/68a92328d49b056ca74e3abe51c91d76.png +0 -0
- package/style/visual-screenshots (1)/images/68b78b4cec15c23fa5e7d0148bead95f.png +0 -0
- package/style/visual-screenshots (1)/images/68bca5cfcf4cb2cf91bbae3869730a14.png +0 -0
- package/style/visual-screenshots (1)/images/68c9260329ceafbae03b1cf59a2dc832.png +0 -0
- package/style/visual-screenshots (1)/images/698a7f9c8600bee3c0154879e8642fb8.png +0 -0
- package/style/visual-screenshots (1)/images/698be3296b927df039453c078d8c5e90.png +0 -0
- package/style/visual-screenshots (1)/images/69995300e1755ca4f61767ebb603e28d.png +0 -0
- package/style/visual-screenshots (1)/images/69b579e4e3d21f8d7c6bb64fa7dec383.png +0 -0
- package/style/visual-screenshots (1)/images/69c6368a387225497235ea4cabbbe05d.png +0 -0
- package/style/visual-screenshots (1)/images/69cdde73ed1979a49fa379514fb747ea.png +0 -0
- package/style/visual-screenshots (1)/images/69d4879c64376442acf44968fb02d9a6.png +0 -0
- package/style/visual-screenshots (1)/images/6a152f420237560d826a59b1ba95c6e8.png +0 -0
- package/style/visual-screenshots (1)/images/6a1e34197166e3475343c3ba9a4ce398.png +0 -0
- package/style/visual-screenshots (1)/images/6a2d5d8d6ff350c3b22a97e221506c72.png +0 -0
- package/style/visual-screenshots (1)/images/6a7102578dc5e69e6eed2dd81169959d.png +0 -0
- package/style/visual-screenshots (1)/images/6a76062bfc3391871480fbaed258138f.png +0 -0
- package/style/visual-screenshots (1)/images/6a98dfe1e3633e72cf1fc24d6f6b641b.png +0 -0
- package/style/visual-screenshots (1)/images/6abbbe132416f98c6a1cb3a1897cc551.png +0 -0
- package/style/visual-screenshots (1)/images/6b443b374cbe7fd349b21cd82a439dd6.png +0 -0
- package/style/visual-screenshots (1)/images/6bb098fcece5553a617d03e539e2b14d.png +0 -0
- package/style/visual-screenshots (1)/images/6bcde51c95aafa27fed83fd83b8f0397.png +0 -0
- package/style/visual-screenshots (1)/images/6c156cba7e8245e73aefe4afbd35276d.png +0 -0
- package/style/visual-screenshots (1)/images/6c569ef8ad97932e1a82ac1ed9e30960.png +0 -0
- package/style/visual-screenshots (1)/images/6c91461ed0c3153c9c403d1ab687dbe5.png +0 -0
- package/style/visual-screenshots (1)/images/6cae73cd2745b0af1530ae4e9cb9ebfa.png +0 -0
- package/style/visual-screenshots (1)/images/6d470bf081f9dfcf72f63d5ef93e627e.png +0 -0
- package/style/visual-screenshots (1)/images/6d6fcb40cbe35f57b4a2caced4ab52c1.png +0 -0
- package/style/visual-screenshots (1)/images/6d8758b4434c1abb115eb61256323a84.png +0 -0
- package/style/visual-screenshots (1)/images/6d8bd755e87330765b74bce670116692.png +0 -0
- package/style/visual-screenshots (1)/images/6e42402b7dd8bc3a23292b766284e384.png +0 -0
- package/style/visual-screenshots (1)/images/6e9e15b49f9bd7e2b60f666b85f4c3b7.png +0 -0
- package/style/visual-screenshots (1)/images/6ecd70c7e06430c86fd514a412dcc6f4.png +0 -0
- package/style/visual-screenshots (1)/images/6f3b3334cd7e0046e583348aa29babcf.png +0 -0
- package/style/visual-screenshots (1)/images/6f5da1c8d233cf9d5e8e88fd2ef3ec0a.png +0 -0
- package/style/visual-screenshots (1)/images/6fa2cf8bec030e4a0749e769ba026482.png +0 -0
- package/style/visual-screenshots (1)/images/6fe1a8093050cb06ea5b1c3334503e24.png +0 -0
- package/style/visual-screenshots (1)/images/7005941c708d4fec5abcdc7e6e10bab8.png +0 -0
- package/style/visual-screenshots (1)/images/700ade8610923958d3f90d68dfa4e05b.png +0 -0
- package/style/visual-screenshots (1)/images/7038ca0faeb969aa8e7e62cd4f626e6f.png +0 -0
- package/style/visual-screenshots (1)/images/706755c17ed932b4bef33524f6daa4f5.png +0 -0
- package/style/visual-screenshots (1)/images/706dfb70e1074e2aad57ab8526b0f360.png +0 -0
- package/style/visual-screenshots (1)/images/70a28845b5c345c56575b55667b70da1.png +0 -0
- package/style/visual-screenshots (1)/images/70b41db21992f19bda5e6b0f70c1fc09.png +0 -0
- package/style/visual-screenshots (1)/images/70bdf7355dba6c76a2d79bde106e6d1d.png +0 -0
- package/style/visual-screenshots (1)/images/70be87330902c743947ed9e77285f871.png +0 -0
- package/style/visual-screenshots (1)/images/70c8dce297f073384a4e8079bff68adf.png +0 -0
- package/style/visual-screenshots (1)/images/7129b9342de7f5e37c6eeeb9e174e2de.png +0 -0
- package/style/visual-screenshots (1)/images/715b51ef2b67f378bba07e7ad9343754.png +0 -0
- package/style/visual-screenshots (1)/images/71efbcd39c9d1ace0e25003ceb0db23e.png +0 -0
- package/style/visual-screenshots (1)/images/7245e631025f99f3554df69b14a843fa.png +0 -0
- package/style/visual-screenshots (1)/images/7268f09b0b1a0e124434eca4bbd818fa.png +0 -0
- package/style/visual-screenshots (1)/images/7329d3d684fa7430845616c496c3e3d5.png +0 -0
- package/style/visual-screenshots (1)/images/73ff7a530dde350815d23ff6a24031a0.png +0 -0
- package/style/visual-screenshots (1)/images/743a4ff37dbc8c26ed1379fad764407d.png +0 -0
- package/style/visual-screenshots (1)/images/745ce91134a9c726aee22be8e5dfcd28.png +0 -0
- package/style/visual-screenshots (1)/images/7476eb8a4b6b6c21d7366cd7b839cd8e.png +0 -0
- package/style/visual-screenshots (1)/images/74a5d110629e8bed44951ecc69d46e37.png +0 -0
- package/style/visual-screenshots (1)/images/74d2a451e8fe666e4cdd4ee104e3fbcb.png +0 -0
- package/style/visual-screenshots (1)/images/76dcdcc9887459636f81578fa8e72f0d.png +0 -0
- package/style/visual-screenshots (1)/images/772fd7072ade47ddd50f5daf9fe78b06.png +0 -0
- package/style/visual-screenshots (1)/images/77555003b57945e07b81f4bbc8da45a5.png +0 -0
- package/style/visual-screenshots (1)/images/7845c6559ae2b8cfa3eec51d52e628c1.png +0 -0
- package/style/visual-screenshots (1)/images/784772bde66cc378572a46b681b6cafe.png +0 -0
- package/style/visual-screenshots (1)/images/791f88fcb8a69681a876b21c6059e038.png +0 -0
- package/style/visual-screenshots (1)/images/7a14e2ed34311c3ddd03ab2b7e8b57e5.png +0 -0
- package/style/visual-screenshots (1)/images/7a5376f8127ccbce92efa2dc7d6e434a.png +0 -0
- package/style/visual-screenshots (1)/images/7b05dd84aacb821c812f835a0580c001.png +0 -0
- package/style/visual-screenshots (1)/images/7b11547ab77114942b3590f5274ccb36.png +0 -0
- package/style/visual-screenshots (1)/images/7b6676b606f3fd4fa89d824c97473517.png +0 -0
- package/style/visual-screenshots (1)/images/7b6e5af31520f5e8813017dd4f98c8d6.png +0 -0
- package/style/visual-screenshots (1)/images/7b89bf68bb12f5cee6947bd5af2520d7.png +0 -0
- package/style/visual-screenshots (1)/images/7b90db4c1dcaeed7cf71f5bae65d327a.png +0 -0
- package/style/visual-screenshots (1)/images/7bb540ca4abee17cdffe6944c8ff0948.png +0 -0
- package/style/visual-screenshots (1)/images/7c01812ede9c4d58571ccf59904bb1b1.png +0 -0
- package/style/visual-screenshots (1)/images/7c096666a0954392e0d657c8759963eb.png +0 -0
- package/style/visual-screenshots (1)/images/7c7593da4f5a9d04f800284023edb554.png +0 -0
- package/style/visual-screenshots (1)/images/7c82ecbc586641289f31f0cc27b017cd.png +0 -0
- package/style/visual-screenshots (1)/images/7c8e1def6b12da12f07536140e2b88b3.png +0 -0
- package/style/visual-screenshots (1)/images/7c916534306207f114d952bfe9340e5e.png +0 -0
- package/style/visual-screenshots (1)/images/7d3331d3cf93defe00a04cd10c57c6c6.png +0 -0
- package/style/visual-screenshots (1)/images/7da3d1c71e1e4b088f77e751a940b6a2.png +0 -0
- package/style/visual-screenshots (1)/images/7da65ded5bfe4c858e0c24ff1e1aa22d.png +0 -0
- package/style/visual-screenshots (1)/images/7daca2b5b705d27e8d5090f7dbb8acac.png +0 -0
- package/style/visual-screenshots (1)/images/7e8b4c9c2ac796fd5c5c730a430ef2e4.png +0 -0
- package/style/visual-screenshots (1)/images/7f06654399aca40b333099bec24468af.png +0 -0
- package/style/visual-screenshots (1)/images/7f8ae3d8e54291115e892c51d485df16.png +0 -0
- package/style/visual-screenshots (1)/images/7fb8ddb922c39be025d60076f51efcbd.png +0 -0
- package/style/visual-screenshots (1)/images/7fc57b3e4c1d14d0a86891a6c80ff12f.png +0 -0
- package/style/visual-screenshots (1)/images/8062b189081773e44a640a8d067046a0.png +0 -0
- package/style/visual-screenshots (1)/images/8083c957effa18fb290a5b0bdf2ad6cb.png +0 -0
- package/style/visual-screenshots (1)/images/80bbb318ca9792a3f16de017ea346d0c.png +0 -0
- package/style/visual-screenshots (1)/images/81c89f3dbeafdd793458d9339c7c607b.png +0 -0
- package/style/visual-screenshots (1)/images/81d7507828e5d8d66f7e161f74e45405.png +0 -0
- package/style/visual-screenshots (1)/images/82045c605de46b4aa7f386601ddb8884.png +0 -0
- package/style/visual-screenshots (1)/images/8245fbfd4b80b96b0254563f86b726ba.png +0 -0
- package/style/visual-screenshots (1)/images/82497fc1570674a5421e926475feac1b.png +0 -0
- package/style/visual-screenshots (1)/images/8252196c9f384ba181cc026acd29d928.png +0 -0
- package/style/visual-screenshots (1)/images/82706af2011a1e7149813131c420a1fa.png +0 -0
- package/style/visual-screenshots (1)/images/82a37a51e30a418ac408149f02adbbee.png +0 -0
- package/style/visual-screenshots (1)/images/83080cdc524b169211c70c9dfdb6fd9e.png +0 -0
- package/style/visual-screenshots (1)/images/830ba1a526dd905bce415b056de3ddb9.png +0 -0
- package/style/visual-screenshots (1)/images/833dc08e69770233fa3915653b3dfb4d.png +0 -0
- package/style/visual-screenshots (1)/images/8375d9df6b63faa9f30eda79e8c80a83.png +0 -0
- package/style/visual-screenshots (1)/images/839c2b39bcaa6830906b9da5d890c1ae.png +0 -0
- package/style/visual-screenshots (1)/images/8431110776be033ec282fd895a9ae813.png +0 -0
- package/style/visual-screenshots (1)/images/851318a57f46c9da1144fe8faf984da4.png +0 -0
- package/style/visual-screenshots (1)/images/8514c1d4ee26054ee07d11a0fe33f0db.png +0 -0
- package/style/visual-screenshots (1)/images/855d767000e9a4a272a2e753628a8474.png +0 -0
- package/style/visual-screenshots (1)/images/85d83f9f94a1adc9dcb60e0c13db29c1.png +0 -0
- package/style/visual-screenshots (1)/images/86236e1f7726cc775fdfbd9d967b892e.png +0 -0
- package/style/visual-screenshots (1)/images/865d7994dfb71cc52f659c784ab77089.png +0 -0
- package/style/visual-screenshots (1)/images/867dba1a3a0e5d10d9852a57eaf4f7f2.png +0 -0
- package/style/visual-screenshots (1)/images/868a694b756597afd5cbd8991ed9fa6e.png +0 -0
- package/style/visual-screenshots (1)/images/86fd1791a257ca240a96d32f587a6798.png +0 -0
- package/style/visual-screenshots (1)/images/8731210b8a1307c635c914344026cd7c.png +0 -0
- package/style/visual-screenshots (1)/images/874d6a50e723c879a585b73e4e54229b.png +0 -0
- package/style/visual-screenshots (1)/images/8753b744d14e6bf1be2fd926a564c3e9.png +0 -0
- package/style/visual-screenshots (1)/images/87eeecd4041819cac6f766c67f879a0d.png +0 -0
- package/style/visual-screenshots (1)/images/8816c9e1431fdfd5465d5a40c052309b.png +0 -0
- package/style/visual-screenshots (1)/images/885b77ceaf7e7a8908fd5b147c5a5217.png +0 -0
- package/style/visual-screenshots (1)/images/8923cdd532219aac9e71558dbd1186f9.png +0 -0
- package/style/visual-screenshots (1)/images/894bd3d4137d2ca7f4f71b2d53de379c.png +0 -0
- package/style/visual-screenshots (1)/images/8a801b5532051d67612de96df713f59a.png +0 -0
- package/style/visual-screenshots (1)/images/8aca19545cb02a7fd00f5d84a1fc4ee1.png +0 -0
- package/style/visual-screenshots (1)/images/8ae35388a8ed4604acc175b6953b1a12.png +0 -0
- package/style/visual-screenshots (1)/images/8b12f8f1234a0fdcd5cb800f5fdd4704.png +0 -0
- package/style/visual-screenshots (1)/images/8b674a86e1db9dda1dedaa07cc25a569.png +0 -0
- package/style/visual-screenshots (1)/images/8b7cd1fafd046cdd7200189a3a8e424f.png +0 -0
- package/style/visual-screenshots (1)/images/8ba1ee43c2d10f779da98898000d6d6f.png +0 -0
- package/style/visual-screenshots (1)/images/8bfc88f25acf24bb557f3790231b9cc5.png +0 -0
- package/style/visual-screenshots (1)/images/8c0bc63f7d57338b59338292b4d20e1c.png +0 -0
- package/style/visual-screenshots (1)/images/8c2a062564d8b55e5686d80995c0132e.png +0 -0
- package/style/visual-screenshots (1)/images/8c98ce176a13df14843cbb6423fd6440.png +0 -0
- package/style/visual-screenshots (1)/images/8cc5eded9abb67747e8a18cefb51df6d.png +0 -0
- package/style/visual-screenshots (1)/images/8d31ec4d9f7bbc9f753f70f2e2fe7781.png +0 -0
- package/style/visual-screenshots (1)/images/8d4761d0c860b4bdc923c78a60c6c7db.png +0 -0
- package/style/visual-screenshots (1)/images/8d8c786a27f502d297333e0f65e5fe7e.png +0 -0
- package/style/visual-screenshots (1)/images/8da3dcbc2a7e12489844a3d5e034ce78.png +0 -0
- package/style/visual-screenshots (1)/images/8e4e5baa65c536003c41d48d4a9d468c.png +0 -0
- package/style/visual-screenshots (1)/images/8e8f3e052eed01419d45167ec3d31705.png +0 -0
- package/style/visual-screenshots (1)/images/8ec5450454d067c364839f82e25a956d.png +0 -0
- package/style/visual-screenshots (1)/images/8ed1408bb2065b8a868349005c1f140d.png +0 -0
- package/style/visual-screenshots (1)/images/8f1c9b14d29c9264c5491f98fa9de9e8.png +0 -0
- package/style/visual-screenshots (1)/images/8f5f36e9fcfb73d98fc44d844ead6bcd.png +0 -0
- package/style/visual-screenshots (1)/images/8f69a3e8bb80e42b327daa0413f484a3.png +0 -0
- package/style/visual-screenshots (1)/images/8fbd2b83ca71d26193f78355c1a7469d.png +0 -0
- package/style/visual-screenshots (1)/images/9026dfe577f38e5be6fec9dafa010056.png +0 -0
- package/style/visual-screenshots (1)/images/906cf5fcfc43ec7f7a1743b1fbba08d0.png +0 -0
- package/style/visual-screenshots (1)/images/909185691877d3ab730fbc98e563b5cc.png +0 -0
- package/style/visual-screenshots (1)/images/9093d74b6c429faa6d6098bb3b42122e.png +0 -0
- package/style/visual-screenshots (1)/images/90b4a73410a4a0f48bf9d2803fc71b38.png +0 -0
- package/style/visual-screenshots (1)/images/90c068953b90c743da83a12da5204a0e.png +0 -0
- package/style/visual-screenshots (1)/images/914841508f534fc579907f3ff4e94eda.png +0 -0
- package/style/visual-screenshots (1)/images/926a60a1ac5968259e786e8c4c8c9d26.png +0 -0
- package/style/visual-screenshots (1)/images/93f5b096a1eb89744a98d090479f90c9.png +0 -0
- package/style/visual-screenshots (1)/images/946bbf46e754018058a8a17e5781b37c.png +0 -0
- package/style/visual-screenshots (1)/images/94a53d14a1e5f3fcb2f22b91642dc2cb.png +0 -0
- package/style/visual-screenshots (1)/images/94f93fc2109c3efac0cc508846fc09c6.png +0 -0
- package/style/visual-screenshots (1)/images/953979d501129c69e5cc0e1fd9acedf9.png +0 -0
- package/style/visual-screenshots (1)/images/9554d90e572ac282fec64cefe1d65eae.png +0 -0
- package/style/visual-screenshots (1)/images/95a3854979faaf7e3da15b81212fdddd.png +0 -0
- package/style/visual-screenshots (1)/images/95d64ce8dc7d7f80747dbb433cbd69b2.png +0 -0
- package/style/visual-screenshots (1)/images/95f250a29638c7a592e162fe065bc851.png +0 -0
- package/style/visual-screenshots (1)/images/962f28dd09eac1fa2811894bf4be9b70.png +0 -0
- package/style/visual-screenshots (1)/images/964706df4434f4e905f967de3d3dc125.png +0 -0
- package/style/visual-screenshots (1)/images/9681d81d32fb1f90ca44c3f69b9f0921.png +0 -0
- package/style/visual-screenshots (1)/images/97660bd70cc5e96d6258c1ed95c0935c.png +0 -0
- package/style/visual-screenshots (1)/images/976ebf4299d8ca702219b1e74419f704.png +0 -0
- package/style/visual-screenshots (1)/images/97cf49835bd0c2bf7811a7bdf3be89bc.png +0 -0
- package/style/visual-screenshots (1)/images/97e8a0e95dcff699c46f9b1b88b87d8a.png +0 -0
- package/style/visual-screenshots (1)/images/9807fabc447e7dae30fbbe6754e02c0d.png +0 -0
- package/style/visual-screenshots (1)/images/98ee9e5fb88515a8dbf5fe0e091c993a.png +0 -0
- package/style/visual-screenshots (1)/images/9997cd9e92d50b13a900ecb22fc74e83.png +0 -0
- package/style/visual-screenshots (1)/images/9a0b82d87e48b2c9e146bfbd4b51a177.png +0 -0
- package/style/visual-screenshots (1)/images/9a41a04f72770185eb42d3941627c6a1.png +0 -0
- package/style/visual-screenshots (1)/images/9a5b6ff3d85a26850b93d3129de94bbc.png +0 -0
- package/style/visual-screenshots (1)/images/9a9397907d86e4bdce381d4017ec5c33.png +0 -0
- package/style/visual-screenshots (1)/images/9ae63f1d387740d15676acf9a5bc48b8.png +0 -0
- package/style/visual-screenshots (1)/images/9b00734aa8cbf1a9acd3fbf08c137b0a.png +0 -0
- package/style/visual-screenshots (1)/images/9b07449ac15dc7e1d1deb9b825be0924.png +0 -0
- package/style/visual-screenshots (1)/images/9b18a6ddb96cbd44795e2bbc536f4f2a.png +0 -0
- package/style/visual-screenshots (1)/images/9b4014c74037f975344b9ac678229e65.png +0 -0
- package/style/visual-screenshots (1)/images/9b5118241eb4c97880a8a53129b9ea63.png +0 -0
- package/style/visual-screenshots (1)/images/9b594e815378bc9a2ef6cd6251dc9d6b.png +0 -0
- package/style/visual-screenshots (1)/images/9bc0a1284fc2c56e95ff22ae764e02c0.png +0 -0
- package/style/visual-screenshots (1)/images/9bdf5a8be0ecbe48e58b74552e4c5888.png +0 -0
- package/style/visual-screenshots (1)/images/9ce93b76501e11f52d1d6c27c6d3afb7.png +0 -0
- package/style/visual-screenshots (1)/images/9d272894b4135cdb24bd6dd6d23dd421.png +0 -0
- package/style/visual-screenshots (1)/images/9d3806b2870669edff4fea8574250bf7.png +0 -0
- package/style/visual-screenshots (1)/images/9d6ec965e5a23731bd189dfbb3c80e84.png +0 -0
- package/style/visual-screenshots (1)/images/9da4037f79a0f2ad50f8adc04687eb12.png +0 -0
- package/style/visual-screenshots (1)/images/9dcd7eda71b2347d026409b2342b3e39.png +0 -0
- package/style/visual-screenshots (1)/images/9de702c3bb72425b0e61d0b4d5a30b82.png +0 -0
- package/style/visual-screenshots (1)/images/9e08fce5233bbc69e681eb1ef349acc0.png +0 -0
- package/style/visual-screenshots (1)/images/9ea6570856b521aa566047e92d0f8305.png +0 -0
- package/style/visual-screenshots (1)/images/9ebdf4d34c2713e0f0cedb0c778b2c35.png +0 -0
- package/style/visual-screenshots (1)/images/9ec5435fc1248519bcc369f282c010c9.png +0 -0
- package/style/visual-screenshots (1)/images/9ee6d0e821a1f9c789514aef157a40ee.png +0 -0
- package/style/visual-screenshots (1)/images/9f1bfd0ae43a5c83303dcf205dc86aac.png +0 -0
- package/style/visual-screenshots (1)/images/9f268b6848b910b5d9c8094077405609.png +0 -0
- package/style/visual-screenshots (1)/images/9f3bdce5cba7a4c333f3e4e32697ed1e.png +0 -0
- package/style/visual-screenshots (1)/images/9fa64b6dd5e2432e5ac5be0125de88c5.png +0 -0
- package/style/visual-screenshots (1)/images/a00ff5334e96e86b5de74ca70e158365.png +0 -0
- package/style/visual-screenshots (1)/images/a0273543e221b5e74f2f92eedff87bbf.png +0 -0
- package/style/visual-screenshots (1)/images/a0860b4739ea0bf437f0fa1dc983edcc.png +0 -0
- package/style/visual-screenshots (1)/images/a09b998ff83fe0c8ba190c43be2c8281.png +0 -0
- package/style/visual-screenshots (1)/images/a0a9b6948dfa55de2c2391e66f116bef.png +0 -0
- package/style/visual-screenshots (1)/images/a0d9fd7c91a3666c82a8a1d1473647ff.png +0 -0
- package/style/visual-screenshots (1)/images/a122b735ee40793efef3ad06ff66c62a.png +0 -0
- package/style/visual-screenshots (1)/images/a1595ea5cac31981a01027ab16de609d.png +0 -0
- package/style/visual-screenshots (1)/images/a19c2ba30b43cb891f2536ebda33b5b9.png +0 -0
- package/style/visual-screenshots (1)/images/a19daa3bfb03b36036e5954c38b3c09b.png +0 -0
- package/style/visual-screenshots (1)/images/a1c13afc2158133f6f248eeec0c213c9.png +0 -0
- package/style/visual-screenshots (1)/images/a234da24efdb5886b5017293c9ec4983.png +0 -0
- package/style/visual-screenshots (1)/images/a267c84cc70ffcfd9f9098872b4d0e33.png +0 -0
- package/style/visual-screenshots (1)/images/a29ab04f7b14796a43ec1004d07e1191.png +0 -0
- package/style/visual-screenshots (1)/images/a331b266be3fe60d1510fc44c8462f8b.png +0 -0
- package/style/visual-screenshots (1)/images/a3b55159499c5529bdb159350ea483f8.png +0 -0
- package/style/visual-screenshots (1)/images/a3d54f0bbe60534633595f92c0af0606.png +0 -0
- package/style/visual-screenshots (1)/images/a3f82ac3c6348fa4452a198cb503860d.png +0 -0
- package/style/visual-screenshots (1)/images/a481b24ed810261cbae6bce62a1fd6da.png +0 -0
- package/style/visual-screenshots (1)/images/a4da8641e0ebce45d567a27b1b9d71c9.png +0 -0
- package/style/visual-screenshots (1)/images/a4e17fa06168594ff442f3d84ca346e0.png +0 -0
- package/style/visual-screenshots (1)/images/a4ec66bb6e0a2bf7d26898a7ec6fa6cb.png +0 -0
- package/style/visual-screenshots (1)/images/a4f5b46346578f27b509ab8ba9062b2a.png +0 -0
- package/style/visual-screenshots (1)/images/a524cc5916040ea0985aa14f5039cd08.png +0 -0
- package/style/visual-screenshots (1)/images/a56c0004f5f488bc5f4f8812479ff919.png +0 -0
- package/style/visual-screenshots (1)/images/a5760e6af3aac912f3c69d88eabc9571.png +0 -0
- package/style/visual-screenshots (1)/images/a5823b26b36bef69818dc786e72722c7.png +0 -0
- package/style/visual-screenshots (1)/images/a59e098a82b3b2b4a8e6e6e0ae9a82ee.png +0 -0
- package/style/visual-screenshots (1)/images/a5b60fb10746df7698e43bccb21df11b.png +0 -0
- package/style/visual-screenshots (1)/images/a5e9bd136ccd404fa0c0a275e757246f.png +0 -0
- package/style/visual-screenshots (1)/images/a62e4c8295a725e4a66cc2ec4408c4bd.png +0 -0
- package/style/visual-screenshots (1)/images/a6492327cb0dabcd2d74dbd1816f422d.png +0 -0
- package/style/visual-screenshots (1)/images/a6cfa33b833e8507b5f3cbfa260ee54f.png +0 -0
- package/style/visual-screenshots (1)/images/a75a60a4aa5b275fd399051abf56d08e.png +0 -0
- package/style/visual-screenshots (1)/images/a770465023ed9653c5209e93264e927e.png +0 -0
- package/style/visual-screenshots (1)/images/a83dbd9419c386d226bee5eda2e6673b.png +0 -0
- package/style/visual-screenshots (1)/images/a87075c6eb331fcab77dedffee6c8321.png +0 -0
- package/style/visual-screenshots (1)/images/a8b8f7209998b3d0a72b9719083dc02a.png +0 -0
- package/style/visual-screenshots (1)/images/a9a1de0b8dd7b6ccab5b47f73dd7f842.png +0 -0
- package/style/visual-screenshots (1)/images/a9c7c835f865512a77038fc5c15de21b.png +0 -0
- package/style/visual-screenshots (1)/images/aa30e7b644de69d60faa5380ca95c5a1.png +0 -0
- package/style/visual-screenshots (1)/images/aa4abb72226bb8321d4b9258f9857b71.png +0 -0
- package/style/visual-screenshots (1)/images/aa51db31d331669430896690342d81dc.png +0 -0
- package/style/visual-screenshots (1)/images/aa9b522302f4dd7150ecbfbb275320e6.png +0 -0
- package/style/visual-screenshots (1)/images/aaa1b0619e13093f63d4156375b60010.png +0 -0
- package/style/visual-screenshots (1)/images/ab5d93b635bae2b5fe23f583eac012ce.png +0 -0
- package/style/visual-screenshots (1)/images/abb03b840550301215bf11bcfc214de4.png +0 -0
- package/style/visual-screenshots (1)/images/ac03f528e1ea478ed33ba9fb5322e3fb.png +0 -0
- package/style/visual-screenshots (1)/images/ac1974812f40ea59d34307ac02a5f70c.png +0 -0
- package/style/visual-screenshots (1)/images/ac2cf23c673a4453be9f71a678bf457e.png +0 -0
- package/style/visual-screenshots (1)/images/ac4258921c4fac19bf9d885fe18d1783.png +0 -0
- package/style/visual-screenshots (1)/images/ac5b064d25b63e5ecd63a91d495dfe5b.png +0 -0
- package/style/visual-screenshots (1)/images/ac8524eb52a8b18d3727f9755658f457.png +0 -0
- package/style/visual-screenshots (1)/images/acd224f13e0e43e4d81990ea06b683f1.png +0 -0
- package/style/visual-screenshots (1)/images/acd8684a795357b531129eb92d03dbf0.png +0 -0
- package/style/visual-screenshots (1)/images/ace6a74377e1fd6f83aa5dba48c8f4ee.png +0 -0
- package/style/visual-screenshots (1)/images/ad0b716887153cae4ebdd7a50e332ad1.png +0 -0
- package/style/visual-screenshots (1)/images/ad74bf7ecefe38d32f843eac59d05bcf.png +0 -0
- package/style/visual-screenshots (1)/images/adad3039bbf24803cc0c800fa1ab52b2.png +0 -0
- package/style/visual-screenshots (1)/images/add742b5f9addb0c591ef066157dd0d7.png +0 -0
- package/style/visual-screenshots (1)/images/adf3ec3a8e97c3b33e77394946ad2434.png +0 -0
- package/style/visual-screenshots (1)/images/adfd03e01df5610028a7b8c22de1d1b5.png +0 -0
- package/style/visual-screenshots (1)/images/ae308ee925b5ad76aea7d7c989003c6c.png +0 -0
- package/style/visual-screenshots (1)/images/ae5ba79ab620185002de1e0e2869fea8.png +0 -0
- package/style/visual-screenshots (1)/images/aed0d8ffabcb9d4680499b39bb909cfb.png +0 -0
- package/style/visual-screenshots (1)/images/af5ce31cf5f312b6bda76f748fabb52f.png +0 -0
- package/style/visual-screenshots (1)/images/af77365d82e0f07b3957f3c77dfa5810.png +0 -0
- package/style/visual-screenshots (1)/images/afc1be11da46a18bb8982a85c65fb4b0.png +0 -0
- package/style/visual-screenshots (1)/images/b011549fe677ebb17fa307dbc03d36d9.png +0 -0
- package/style/visual-screenshots (1)/images/b0bff9f5d7141b079b666e5fb16abd22.png +0 -0
- package/style/visual-screenshots (1)/images/b0dbbbef7ff3804d58ce28e9685b88e0.png +0 -0
- package/style/visual-screenshots (1)/images/b0dfa6af25989c4c3d2e9aef64daab17.png +0 -0
- package/style/visual-screenshots (1)/images/b10bf8e372bca5d68241320f75bc1748.png +0 -0
- package/style/visual-screenshots (1)/images/b10ed3d6ec38c9c253a4446e106e75ea.png +0 -0
- package/style/visual-screenshots (1)/images/b141a65b0038d524dd290c00eddace3d.png +0 -0
- package/style/visual-screenshots (1)/images/b16111054dc7e5c31d822180d54ea0e6.png +0 -0
- package/style/visual-screenshots (1)/images/b1776e0a89f070ea680f256ed27ebf1e.png +0 -0
- package/style/visual-screenshots (1)/images/b27ff00e501d23c43b509c1a0168ef39.png +0 -0
- package/style/visual-screenshots (1)/images/b2aa4c06bcefcb7c92204acdd30d3197.png +0 -0
- package/style/visual-screenshots (1)/images/b2fef056d1f15f4ba8619f31541dd0e5.png +0 -0
- package/style/visual-screenshots (1)/images/b35f5b3650f7806ab3390e0ba67df1a4.png +0 -0
- package/style/visual-screenshots (1)/images/b3dd87d68dcdfd82fa97cdf4e39c2b27.png +0 -0
- package/style/visual-screenshots (1)/images/b3e5876c63e8256843b4090dc4b441ad.png +0 -0
- package/style/visual-screenshots (1)/images/b3f19d58a18bfd34f92764ec41877c3c.png +0 -0
- package/style/visual-screenshots (1)/images/b43533c13c416aad326bc67d0f44929e.png +0 -0
- package/style/visual-screenshots (1)/images/b4382971635528760348cbe2b70605fe.png +0 -0
- package/style/visual-screenshots (1)/images/b45844d5501be7c8431cc1306e3f3ae5.png +0 -0
- package/style/visual-screenshots (1)/images/b468a14b6c8e54db94b61c71b9662af0.png +0 -0
- package/style/visual-screenshots (1)/images/b4a02c9fc04ef4dc159e7beccd7ccfa7.png +0 -0
- package/style/visual-screenshots (1)/images/b4b41ceb35d80f9f629859558b75b19e.png +0 -0
- package/style/visual-screenshots (1)/images/b4edb5a1c390edd5c541c18e1a4ab68f.png +0 -0
- package/style/visual-screenshots (1)/images/b513f66c5fdbab3a28e7db1b23bfb8c2.png +0 -0
- package/style/visual-screenshots (1)/images/b5160b2c865a5e7b7d8b1e1abbf8d002.png +0 -0
- package/style/visual-screenshots (1)/images/b52890091cf696f0150eae61232cb1dd.png +0 -0
- package/style/visual-screenshots (1)/images/b56bb2b3dd4141b8e698820a515b8798.png +0 -0
- package/style/visual-screenshots (1)/images/b5af14253c4cc74f16ddb0b6164f185c.png +0 -0
- package/style/visual-screenshots (1)/images/b63069789fa7ac11755ea759d30a64a5.png +0 -0
- package/style/visual-screenshots (1)/images/b651f7f296cf9f30e419d94a8c4895cf.png +0 -0
- package/style/visual-screenshots (1)/images/b65482e30ffb8bec6c85103dcb71113d.png +0 -0
- package/style/visual-screenshots (1)/images/b65b4bdb5c82820722ea76182517bc74.png +0 -0
- package/style/visual-screenshots (1)/images/b65b9d44dcba156ab3152a6ee2592277.png +0 -0
- package/style/visual-screenshots (1)/images/b68552f8eb800b1891a49bf1cd4d987d.png +0 -0
- package/style/visual-screenshots (1)/images/b68eacd41b21135a2c2431a3ddc2dae5.png +0 -0
- package/style/visual-screenshots (1)/images/b6a9a44405f5e4034c95f55ee8aed681.png +0 -0
- package/style/visual-screenshots (1)/images/b6d2d0f7d50094fd163351d07a5e9251.png +0 -0
- package/style/visual-screenshots (1)/images/b6ec4162d1414d4011b787dd127bad96.png +0 -0
- package/style/visual-screenshots (1)/images/b6fe711492d73a1ad83be68fd782b5be.png +0 -0
- package/style/visual-screenshots (1)/images/b702cca4b4fe43f208a58f37e4a7d0c8.png +0 -0
- package/style/visual-screenshots (1)/images/b74e84ef684b263e0390552911c7b630.png +0 -0
- package/style/visual-screenshots (1)/images/b76dc3cd48583a70f3f99348e259a192.png +0 -0
- package/style/visual-screenshots (1)/images/b79d300707e6efd85959e1727354cda9.png +0 -0
- package/style/visual-screenshots (1)/images/b7f774a62a166681f5e34f4f92e7df96.png +0 -0
- package/style/visual-screenshots (1)/images/b85b4a6d8172ec3d4fe3875d1d5be438.png +0 -0
- package/style/visual-screenshots (1)/images/b8fd7356a98d56ee49951392bc0a19f5.png +0 -0
- package/style/visual-screenshots (1)/images/b9239778dee867ed3f14d2f3ffecd8d5.png +0 -0
- package/style/visual-screenshots (1)/images/b936ab1e543d95bd0c818b0d2ddade05.png +0 -0
- package/style/visual-screenshots (1)/images/b9afd9043e717ea55cd0a7c2e8768ec0.png +0 -0
- package/style/visual-screenshots (1)/images/b9b032bae3f927fc7492af0717480a7c.png +0 -0
- package/style/visual-screenshots (1)/images/ba1fea1b865b3beef1a1135bd779a706.png +0 -0
- package/style/visual-screenshots (1)/images/ba2cbf010b08ef17e500a9a6f09756eb.png +0 -0
- package/style/visual-screenshots (1)/images/ba900133c62ae20a043c8145deb72e61.png +0 -0
- package/style/visual-screenshots (1)/images/bab341bf211ffe1d1cdcff9735458a37.png +0 -0
- package/style/visual-screenshots (1)/images/bb54094e275897982cdadf3573cae164.png +0 -0
- package/style/visual-screenshots (1)/images/bb551e3ba230869e0f7f74597ebdc929.png +0 -0
- package/style/visual-screenshots (1)/images/bb5dc88ef581957bcde4779c0b6f96be.png +0 -0
- package/style/visual-screenshots (1)/images/bb671a54edc0e2807e0ee792010765ce.png +0 -0
- package/style/visual-screenshots (1)/images/bb6a7307e19bf9e4c588df181c01cf82.png +0 -0
- package/style/visual-screenshots (1)/images/bb9c61c2c52257e6ac08122fc873e0a5.png +0 -0
- package/style/visual-screenshots (1)/images/bb9d4ba104d323a504b867a9e7c26fa7.png +0 -0
- package/style/visual-screenshots (1)/images/bbfc81ede881c3480dedc09c932b357c.png +0 -0
- package/style/visual-screenshots (1)/images/bc69c3fc828d0ccd43620f5d7789f687.png +0 -0
- package/style/visual-screenshots (1)/images/bc6a45c5e234c06fe2909be16df5cd68.png +0 -0
- package/style/visual-screenshots (1)/images/bc7fbfc8cfa6fbaf42c181a83bc8f12e.png +0 -0
- package/style/visual-screenshots (1)/images/bc812929e7194062888770b42ea680fa.png +0 -0
- package/style/visual-screenshots (1)/images/bcf29c250245fcd6d4cd80fbb2076fe6.png +0 -0
- package/style/visual-screenshots (1)/images/bd0adcbbc6b9f54fd8dc2c45f91118cf.png +0 -0
- package/style/visual-screenshots (1)/images/bd2c0d240faaa73548693dd8792bd334.png +0 -0
- package/style/visual-screenshots (1)/images/bd3c8aca71ef1e1bfcf54c9bdf7ec0c1.png +0 -0
- package/style/visual-screenshots (1)/images/bd742a3ba78f04988baceee07b34b4c8.png +0 -0
- package/style/visual-screenshots (1)/images/bde82fcc550d92789d65c593e33b9fa1.png +0 -0
- package/style/visual-screenshots (1)/images/be0d5c5d87ffd9eb20686d37ded21477.png +0 -0
- package/style/visual-screenshots (1)/images/be2d1a5e2a20ec9e70974dfd8ad15c05.png +0 -0
- package/style/visual-screenshots (1)/images/be343f108940ac377accd7cd07cdd1e7.png +0 -0
- package/style/visual-screenshots (1)/images/be40fd335f837d2f5a1d803b3aed4c94.png +0 -0
- package/style/visual-screenshots (1)/images/bea6a7939bf5c8f3034f9f36d3aa83a0.png +0 -0
- package/style/visual-screenshots (1)/images/bed34ed4f9077f51952b51283f4b473b.png +0 -0
- package/style/visual-screenshots (1)/images/bedd63152750246fbfff2f3b8694840a.png +0 -0
- package/style/visual-screenshots (1)/images/bf112e6d28f4ea8ab3c84b88d685cb92.png +0 -0
- package/style/visual-screenshots (1)/images/bf1e7977779e36731e8cf90de8a2c018.png +0 -0
- package/style/visual-screenshots (1)/images/bfbf13672d796f88652747c1c627c225.png +0 -0
- package/style/visual-screenshots (1)/images/c14ed538a5d1e19c581b8a480a410873.png +0 -0
- package/style/visual-screenshots (1)/images/c1a6e457a74e6f1e39d8056a575c6b61.png +0 -0
- package/style/visual-screenshots (1)/images/c1bf639cb4ef73d3097a86bbe242e67b.png +0 -0
- package/style/visual-screenshots (1)/images/c1e92e74a76d59360620dd36a44b48d7.png +0 -0
- package/style/visual-screenshots (1)/images/c25a03ca4b6a75b60ca989c922a8c0ea.png +0 -0
- package/style/visual-screenshots (1)/images/c29a6ce74d404486b42547c80ac64827.png +0 -0
- package/style/visual-screenshots (1)/images/c2a8fd8eb01504bdf199bc631948fd65.png +0 -0
- package/style/visual-screenshots (1)/images/c2b2a82c12745e02edc5a4296e64952e.png +0 -0
- package/style/visual-screenshots (1)/images/c2e70eb9bba973017e04fde58f20439f.png +0 -0
- package/style/visual-screenshots (1)/images/c31b279c27c044ff8023b74161774d65.png +0 -0
- package/style/visual-screenshots (1)/images/c3de791621e788d6d096d488fdbf7eb7.png +0 -0
- package/style/visual-screenshots (1)/images/c4347eb0e8a14227ad18be6b9de1cbc7.png +0 -0
- package/style/visual-screenshots (1)/images/c45a7afc0498379e5b620ff4394e1759.png +0 -0
- package/style/visual-screenshots (1)/images/c4bd15f6119ec6a9f86c7311605b8e9a.png +0 -0
- package/style/visual-screenshots (1)/images/c5d033ba89e8621d33f0c1251f26cb94.png +0 -0
- package/style/visual-screenshots (1)/images/c5f4925f4e800c08c097ac6cb57973c4.png +0 -0
- package/style/visual-screenshots (1)/images/c645ca1d792395177ed9f550dc65ef98.png +0 -0
- package/style/visual-screenshots (1)/images/c66f1911986c1798aa132cfda4c757c1.png +0 -0
- package/style/visual-screenshots (1)/images/c6835996ac4b2b3f962a7c89245faa9e.png +0 -0
- package/style/visual-screenshots (1)/images/c7295480cd7fd4a11a50458bb4bfc9c3.png +0 -0
- package/style/visual-screenshots (1)/images/c76344aa17e7856258e6a7aba903caab.png +0 -0
- package/style/visual-screenshots (1)/images/c7bbfb83d1e415c898256cc0fdcce3ca.png +0 -0
- package/style/visual-screenshots (1)/images/c7c0f8a05585087c37d8209208bbcb54.png +0 -0
- package/style/visual-screenshots (1)/images/c7de1a12552658b7fe3ce32a7f7ffb3e.png +0 -0
- package/style/visual-screenshots (1)/images/c914e1a43cca34efae86f296ac56fdee.png +0 -0
- package/style/visual-screenshots (1)/images/c9861de44663e597f55adc84ea88e5fc.png +0 -0
- package/style/visual-screenshots (1)/images/c99d35eeb0dc348c34f4c8a9fe1c5f1d.png +0 -0
- package/style/visual-screenshots (1)/images/ca32c8781f959efc16e24eeda14cc2d5.png +0 -0
- package/style/visual-screenshots (1)/images/ca9c87751da7c73377da05d1cbf34974.png +0 -0
- package/style/visual-screenshots (1)/images/cab16e07722c54b790e38a8b9995af8f.png +0 -0
- package/style/visual-screenshots (1)/images/cb4e5d44970f3d22cfd664c95d5c23c6.png +0 -0
- package/style/visual-screenshots (1)/images/cb99b0bf33401c42eebea1020004a1a8.png +0 -0
- package/style/visual-screenshots (1)/images/cba574213771f455a9bd90fdd5711b82.png +0 -0
- package/style/visual-screenshots (1)/images/cc30aaecf3c497e88d6e7aecae1b7583.png +0 -0
- package/style/visual-screenshots (1)/images/cc690d6b70d361022b64cfd7e15aced7.png +0 -0
- package/style/visual-screenshots (1)/images/ccc7eefe88ff7124ce9b7256a2754224.png +0 -0
- package/style/visual-screenshots (1)/images/cd0ec559f03f247915ac7f28d051477f.png +0 -0
- package/style/visual-screenshots (1)/images/cda5b907bdad7cc13b55cb525ff72402.png +0 -0
- package/style/visual-screenshots (1)/images/ce19129cba94fa6ccfd2ab5416d93033.png +0 -0
- package/style/visual-screenshots (1)/images/ce3c54aab036c6395dd8817abc6acfc6.png +0 -0
- package/style/visual-screenshots (1)/images/ce4c143e3f25acaecf95fc6c74091386.png +0 -0
- package/style/visual-screenshots (1)/images/ce639e1186fedb84b5d709bf36126612.png +0 -0
- package/style/visual-screenshots (1)/images/ceca1dbf2a40a6524da989acf8c45825.png +0 -0
- package/style/visual-screenshots (1)/images/cecd8cd95992457e1748c3bb0dd14f35.png +0 -0
- package/style/visual-screenshots (1)/images/ced9cb27f2fe15debe7cae42e1b6347d.png +0 -0
- package/style/visual-screenshots (1)/images/cf8ad194e11dfdb8aea6017def809c6f.png +0 -0
- package/style/visual-screenshots (1)/images/cf95c3fcdb08ca9fd096c2aa90538a9f.png +0 -0
- package/style/visual-screenshots (1)/images/d055162ca44e10714f581c72517de67a.png +0 -0
- package/style/visual-screenshots (1)/images/d0907dbf3bbf9051d9ab0090a74eb8a2.png +0 -0
- package/style/visual-screenshots (1)/images/d0dbadb5f8a71fe6a666cf4741ba583e.png +0 -0
- package/style/visual-screenshots (1)/images/d0fc1daaab9d8154ac99b9923aca965e.png +0 -0
- package/style/visual-screenshots (1)/images/d10379d630b08ba69cdbadef68160b74.png +0 -0
- package/style/visual-screenshots (1)/images/d1dec19c84cc7d9d44d9bdbdc4ed0113.png +0 -0
- package/style/visual-screenshots (1)/images/d1ecf153cbe7e6e5ab9df3ba963ac56a.png +0 -0
- package/style/visual-screenshots (1)/images/d2085cde486b22d26ed3ed7dd092ac67.png +0 -0
- package/style/visual-screenshots (1)/images/d21f0611ffb064596292ba09f7ae0aa7.png +0 -0
- package/style/visual-screenshots (1)/images/d26da906f6e40a9f2de474ef00ffe192.png +0 -0
- package/style/visual-screenshots (1)/images/d32bdba3c211974c488f05e49fdbd38e.png +0 -0
- package/style/visual-screenshots (1)/images/d3f2e40808a135432120eec842002667.png +0 -0
- package/style/visual-screenshots (1)/images/d3f4fb7a3520050add88a228446786c0.png +0 -0
- package/style/visual-screenshots (1)/images/d42695727875489f5c823fc6a7637fc0.png +0 -0
- package/style/visual-screenshots (1)/images/d43099f8107adb7d25c029fd861236c7.png +0 -0
- package/style/visual-screenshots (1)/images/d465de97945852f83e9cfec896fda7fd.png +0 -0
- package/style/visual-screenshots (1)/images/d4cb357a97d0069493f671c36973b023.png +0 -0
- package/style/visual-screenshots (1)/images/d507e6178365edabfc44712f507b1ad4.png +0 -0
- package/style/visual-screenshots (1)/images/d5c0ef8532ff82ac36069cd1a325ef27.png +0 -0
- package/style/visual-screenshots (1)/images/d5d677892ed26746228c30990678ac38.png +0 -0
- package/style/visual-screenshots (1)/images/d5ea4a9c77534f236c32e8f31e078587.png +0 -0
- package/style/visual-screenshots (1)/images/d5f1ba6ddf9bbc40e86be0e2b82118af.png +0 -0
- package/style/visual-screenshots (1)/images/d6069a71d1cf53673964d866460d32c8.png +0 -0
- package/style/visual-screenshots (1)/images/d6242fd259465d2ba316d672684afcf7.png +0 -0
- package/style/visual-screenshots (1)/images/d6b1c4c2db737fef0105bc33cda83309.png +0 -0
- package/style/visual-screenshots (1)/images/d6c65a3c2f45d3f68984a0be5f3490bb.png +0 -0
- package/style/visual-screenshots (1)/images/d6f1781682597261b255669cebe81e42.png +0 -0
- package/style/visual-screenshots (1)/images/d7d9fb5a7dfc870527fb24b3642a56e3.png +0 -0
- package/style/visual-screenshots (1)/images/d7deed321c78b937b9aac780d75a67e6.png +0 -0
- package/style/visual-screenshots (1)/images/d8291cc7ad6e1607c344ed2ed1368ea3.png +0 -0
- package/style/visual-screenshots (1)/images/d8560f2f2aeb2cf5601aac513f502b55.png +0 -0
- package/style/visual-screenshots (1)/images/d8ba46aafe0f9c6e1a513c118e4ed9bc.png +0 -0
- package/style/visual-screenshots (1)/images/d95148fef77af3db17d99a9e6d582f37.png +0 -0
- package/style/visual-screenshots (1)/images/d9579cafca730bedcd047d6b5e00d6a4.png +0 -0
- package/style/visual-screenshots (1)/images/d98fa9b6727f84959b2953eb2fb4bbd9.png +0 -0
- package/style/visual-screenshots (1)/images/d9ccd1f0853f04288d98faaa99ffd839.png +0 -0
- package/style/visual-screenshots (1)/images/d9d48b2652b1aec6a09d29ff489a2559.png +0 -0
- package/style/visual-screenshots (1)/images/d9d72a2b10b10048726ee220b48fa527.png +0 -0
- package/style/visual-screenshots (1)/images/d9d8147e7f3bb24b517f342fcccde022.png +0 -0
- package/style/visual-screenshots (1)/images/d9df19d7691aa789d2a8bc95bf35da2c.png +0 -0
- package/style/visual-screenshots (1)/images/da1074f521e0588e392120962859f25f.png +0 -0
- package/style/visual-screenshots (1)/images/da3533dfa11d516896891b192864e447.png +0 -0
- package/style/visual-screenshots (1)/images/dae067c3ccb9466b05711591ecd99896.png +0 -0
- package/style/visual-screenshots (1)/images/db652f7540592f22fce8d51c2db86e93.png +0 -0
- package/style/visual-screenshots (1)/images/db68bc1a1dabafb95a485a230f9a8891.png +0 -0
- package/style/visual-screenshots (1)/images/db9207243bf814e40de5d4f04ca70316.png +0 -0
- package/style/visual-screenshots (1)/images/db9f75240f51bca9b761494cedeccff2.png +0 -0
- package/style/visual-screenshots (1)/images/dbc774ff92faa624b4987219fa52042d.png +0 -0
- package/style/visual-screenshots (1)/images/dc0de0f379b7b76e387beb9d57e912eb.png +0 -0
- package/style/visual-screenshots (1)/images/dd3dcde1007bc96a7e41eeb1436699a5.png +0 -0
- package/style/visual-screenshots (1)/images/dda39199ff0717086ab54dd718ad525f.png +0 -0
- package/style/visual-screenshots (1)/images/ddcd258c6ad4c8489c1b51df313691e9.png +0 -0
- package/style/visual-screenshots (1)/images/ddcf43a676ca66b76dd293e2217bff54.png +0 -0
- package/style/visual-screenshots (1)/images/ddf8772071d057082129df7ddb91cb63.png +0 -0
- package/style/visual-screenshots (1)/images/de538ffe7bb41fe54ed51f548dbe2fba.png +0 -0
- package/style/visual-screenshots (1)/images/df18d193dd77c73ceb593e100945b30d.png +0 -0
- package/style/visual-screenshots (1)/images/df7a11e9552448272332cb2a6d8194b8.png +0 -0
- package/style/visual-screenshots (1)/images/df8a111e64e1601833438a267e53d53e.png +0 -0
- package/style/visual-screenshots (1)/images/dfb1101ae11b4e4cbcd14e109f2c2810.png +0 -0
- package/style/visual-screenshots (1)/images/dfd25ea8862f0ef09292b87930278f8b.png +0 -0
- package/style/visual-screenshots (1)/images/e010fa0f10828dfec180f664eb3b904e.png +0 -0
- package/style/visual-screenshots (1)/images/e019e72c9310bf80c7d8a060b05b9c37.png +0 -0
- package/style/visual-screenshots (1)/images/e0fad740e1ea1190ae5bafcc312b7345.png +0 -0
- package/style/visual-screenshots (1)/images/e129f142d3b5053ef5be1eb5b2c3e892.png +0 -0
- package/style/visual-screenshots (1)/images/e166d553d849e0c78ef876004aad7a5f.png +0 -0
- package/style/visual-screenshots (1)/images/e16f3ba70a3637f3220f043e2135e130.png +0 -0
- package/style/visual-screenshots (1)/images/e1e5fe1fd5d6ee275513f269c86d6305.png +0 -0
- package/style/visual-screenshots (1)/images/e23bd037d12d40a0719647cc0e872a58.png +0 -0
- package/style/visual-screenshots (1)/images/e2a3a5bb4365d8f726c66cdd0502df93.png +0 -0
- package/style/visual-screenshots (1)/images/e2c01035d03336301a1d9b296c8d9ab3.png +0 -0
- package/style/visual-screenshots (1)/images/e2d8e8137e7670d15c4607f1d656477f.png +0 -0
- package/style/visual-screenshots (1)/images/e302c8e4a9ea160a0a19968825d55dab.png +0 -0
- package/style/visual-screenshots (1)/images/e34b18aac8583e91e021b41bbfd7fd5f.png +0 -0
- package/style/visual-screenshots (1)/images/e356cf56ccaa076bbc8d34dc8f793843.png +0 -0
- package/style/visual-screenshots (1)/images/e35d22101819324c038cd263e9c8f518.png +0 -0
- package/style/visual-screenshots (1)/images/e3805efcd137ad98512fa1c3f8d54a1d.png +0 -0
- package/style/visual-screenshots (1)/images/e39ce053c84fc3a5528ac4b5641ac9cf.png +0 -0
- package/style/visual-screenshots (1)/images/e3a3c7767a5eb9522dea438bff6728cc.png +0 -0
- package/style/visual-screenshots (1)/images/e3aab7603407b6e1b444b0eac170a7ec.png +0 -0
- package/style/visual-screenshots (1)/images/e43a752514e8b393cb628520b605b584.png +0 -0
- package/style/visual-screenshots (1)/images/e442163823ed8edcc7160818be69b398.png +0 -0
- package/style/visual-screenshots (1)/images/e4b10dde183f07a84513d76d429a6958.png +0 -0
- package/style/visual-screenshots (1)/images/e4d50b654335e71fc4967b82c344dbfe.png +0 -0
- package/style/visual-screenshots (1)/images/e51ca2c2a84b03fc98f79f02fe7068aa.png +0 -0
- package/style/visual-screenshots (1)/images/e58ef5ed950fbb2b1079d74d45b7c881.png +0 -0
- package/style/visual-screenshots (1)/images/e5ade203143dc82491aa076121660e52.png +0 -0
- package/style/visual-screenshots (1)/images/e605ecbc474952712389539463a04aa7.png +0 -0
- package/style/visual-screenshots (1)/images/e6262e247906000955ae8374d655a906.png +0 -0
- package/style/visual-screenshots (1)/images/e6595c721f80b610721aaeeb5e2f75a6.png +0 -0
- package/style/visual-screenshots (1)/images/e6709d9c191735263eb3b486e7a72f85.png +0 -0
- package/style/visual-screenshots (1)/images/e6d314422345a30bf6c0ef3e18e583a0.png +0 -0
- package/style/visual-screenshots (1)/images/e6d939c8648a17c13549f5f2adb346e7.png +0 -0
- package/style/visual-screenshots (1)/images/e6dbee568bfdc18e352b077e374ff82f.png +0 -0
- package/style/visual-screenshots (1)/images/e703bac13e2532ce5533d2a57a8a5fa6.png +0 -0
- package/style/visual-screenshots (1)/images/e716cb5e49fdadf37afefab471babf94.png +0 -0
- package/style/visual-screenshots (1)/images/e7441187368963e6b130042df812ef91.png +0 -0
- package/style/visual-screenshots (1)/images/e7c2f6b6c968145071f9cb8636dfbc3e.png +0 -0
- package/style/visual-screenshots (1)/images/e7e9cbbc3d0dd144406d6a315ec0ddc0.png +0 -0
- package/style/visual-screenshots (1)/images/e7fa6277441b9b69cc3b5306e16b7cf1.png +0 -0
- package/style/visual-screenshots (1)/images/e83fb6530e1c56b78ecf6b7ecf9093b4.png +0 -0
- package/style/visual-screenshots (1)/images/e84d5f9378fbad753243b00f534b5a2b.png +0 -0
- package/style/visual-screenshots (1)/images/e874c84e2c3efc6531e1ed444ef48e0c.png +0 -0
- package/style/visual-screenshots (1)/images/e880df04bcd581fdc14320972bb587c7.png +0 -0
- package/style/visual-screenshots (1)/images/e888e0e6d4a78e02b76328fa84356ca8.png +0 -0
- package/style/visual-screenshots (1)/images/e8ae475c96c0350cab5788186441a468.png +0 -0
- package/style/visual-screenshots (1)/images/e8b5543222dd07074f913c0ee347cc2a.png +0 -0
- package/style/visual-screenshots (1)/images/e92d837bf473dd88b1644ce81eeb8271.png +0 -0
- package/style/visual-screenshots (1)/images/e9690ff4793f30325dfc007d07f11515.png +0 -0
- package/style/visual-screenshots (1)/images/e9a4edf0d472871407e3de2a94491d38.png +0 -0
- package/style/visual-screenshots (1)/images/e9da22cdb0b57bbbb78d72fa243613f1.png +0 -0
- package/style/visual-screenshots (1)/images/e9f7a5fc6028e6009408ba7587604837.png +0 -0
- package/style/visual-screenshots (1)/images/ea87140d4d01e99436eb8517e1a59744.png +0 -0
- package/style/visual-screenshots (1)/images/eb1e5e278264b3344fd8251f8e3a567c.png +0 -0
- package/style/visual-screenshots (1)/images/eb270de24170c48625abe27e1add013b.png +0 -0
- package/style/visual-screenshots (1)/images/eb321262ddafb26c0121bd595505ffd4.png +0 -0
- package/style/visual-screenshots (1)/images/eb89e9322f47193680a195eedec9ca1f.png +0 -0
- package/style/visual-screenshots (1)/images/eb8ba90ad716449ab1fbe18715131465.png +0 -0
- package/style/visual-screenshots (1)/images/ebea496ec420dde6eb11929ef25c9d4e.png +0 -0
- package/style/visual-screenshots (1)/images/ec06a26e681c9d07ecb4aa29d4e551f4.png +0 -0
- package/style/visual-screenshots (1)/images/ec418171a7341bd39a64ee5e1405de5c.png +0 -0
- package/style/visual-screenshots (1)/images/ec801a1f7ded7e4f72b3b83d56ef137b.png +0 -0
- package/style/visual-screenshots (1)/images/eceac800e5e5ec35a7ac973102588b9a.png +0 -0
- package/style/visual-screenshots (1)/images/ed32af8a6de2ef712782d8c700d5ea9c.png +0 -0
- package/style/visual-screenshots (1)/images/ed996049ed03540673123208a1939af9.png +0 -0
- package/style/visual-screenshots (1)/images/edea0089834ada9ac7c1955bbc7b60e8.png +0 -0
- package/style/visual-screenshots (1)/images/ee0321657e33c16d1cafb4124cc8b84e.png +0 -0
- package/style/visual-screenshots (1)/images/ee2e3f6e90b8c2a479d187d5c33257d9.png +0 -0
- package/style/visual-screenshots (1)/images/ee5c6318a17593c06dc4893c84e64535.png +0 -0
- package/style/visual-screenshots (1)/images/ee880fd8c1965895a4c79cf4c744feac.png +0 -0
- package/style/visual-screenshots (1)/images/eed96dc07ed46b9585a3fa2f9655268f.png +0 -0
- package/style/visual-screenshots (1)/images/efcf97ad2d48fcce21b8052fb8e1f02d.png +0 -0
- package/style/visual-screenshots (1)/images/f02927c03369f309483a9c4ddf1dd918.png +0 -0
- package/style/visual-screenshots (1)/images/f033f0f98be280ace4c6d4b0366bb46f.png +0 -0
- package/style/visual-screenshots (1)/images/f039bdda30367e329cf997e85fe4c5e8.png +0 -0
- package/style/visual-screenshots (1)/images/f04add34ff27aa15ee72e77d143d3ed8.png +0 -0
- package/style/visual-screenshots (1)/images/f05fc5650db3e0ecc2baf3860da0d195.png +0 -0
- package/style/visual-screenshots (1)/images/f095476fc0248cf27fa814706177534f.png +0 -0
- package/style/visual-screenshots (1)/images/f0ca029abc93f4e8105da3e5ab56e1c4.png +0 -0
- package/style/visual-screenshots (1)/images/f136123d6a6e67a75080296043b5e5de.png +0 -0
- package/style/visual-screenshots (1)/images/f14f173c0407db4e2e0d465809e3035f.png +0 -0
- package/style/visual-screenshots (1)/images/f1c37fd272da405acfb07e2bcd9e2e86.png +0 -0
- package/style/visual-screenshots (1)/images/f1d9cb85975d8f2259098078a9801e0f.png +0 -0
- package/style/visual-screenshots (1)/images/f1ec44ad9bd197b6cf6709425b1f493c.png +0 -0
- package/style/visual-screenshots (1)/images/f2357c90c5bc52def3fac87e0ec9997a.png +0 -0
- package/style/visual-screenshots (1)/images/f27d1e0db5abfe19d41b8158d4d2e864.png +0 -0
- package/style/visual-screenshots (1)/images/f28b1b0716ee2f45646a13b5b5c25ece.png +0 -0
- package/style/visual-screenshots (1)/images/f2a9936c632f6d5df93af4b94ca90234.png +0 -0
- package/style/visual-screenshots (1)/images/f2e3472901c35c71c0182432ed609d7f.png +0 -0
- package/style/visual-screenshots (1)/images/f3492d235f8072e4adf1060958453ee6.png +0 -0
- package/style/visual-screenshots (1)/images/f3e92ee96aa91f49801ea4202f6081ac.png +0 -0
- package/style/visual-screenshots (1)/images/f43bdfc49eaa4bc64a3d388173c76744.png +0 -0
- package/style/visual-screenshots (1)/images/f43fae61c6f1cfb638fd3741f3742d5b.png +0 -0
- package/style/visual-screenshots (1)/images/f44444b4e7bcd9cc38987cfbca3c88bc.png +0 -0
- package/style/visual-screenshots (1)/images/f457b6c69704125d620b062e0a63c81d.png +0 -0
- package/style/visual-screenshots (1)/images/f49bdba18143e37cebfccebb84983aaa.png +0 -0
- package/style/visual-screenshots (1)/images/f4a592740204a611f064fd861eea879f.png +0 -0
- package/style/visual-screenshots (1)/images/f4b874f85d61abcdb5d4dac56574e983.png +0 -0
- package/style/visual-screenshots (1)/images/f4d48a8d20e7217ab3bd4eb920e2e90b.png +0 -0
- package/style/visual-screenshots (1)/images/f4fa32cbd842631dda4967bb7b0805f4.png +0 -0
- package/style/visual-screenshots (1)/images/f5a634ee1f8883b9a9910709b1a70dd9.png +0 -0
- package/style/visual-screenshots (1)/images/f5f154f17b8ddd7fe6584229e3e433dc.png +0 -0
- package/style/visual-screenshots (1)/images/f5f5aa0c94bc0096ca632bde832e4ac0.png +0 -0
- package/style/visual-screenshots (1)/images/f611a4b1de325f7426c8b29b43cfae35.png +0 -0
- package/style/visual-screenshots (1)/images/f63233f9dc04d7dcfd4ff56369f0b130.png +0 -0
- package/style/visual-screenshots (1)/images/f692554ff308ca1cd0fbe7a22b3b22ca.png +0 -0
- package/style/visual-screenshots (1)/images/f75eda47bbe4bbe2ea30a65b7856a44b.png +0 -0
- package/style/visual-screenshots (1)/images/f781be55c666aac6c83ca4d07e9c42ca.png +0 -0
- package/style/visual-screenshots (1)/images/f7bf00972a29fdf599c8217b28de96d6.png +0 -0
- package/style/visual-screenshots (1)/images/f86fea7ffab0866bda8a3b414f7cd3b7.png +0 -0
- package/style/visual-screenshots (1)/images/f87eb71c300ab4b2d498be9a55ee1618.png +0 -0
- package/style/visual-screenshots (1)/images/f8b36602184f5158860506fe64079c89.png +0 -0
- package/style/visual-screenshots (1)/images/f8ee607f6421ba60f973b9bff376ae28.png +0 -0
- package/style/visual-screenshots (1)/images/f9080ba22d397d83f09047ebdfe84239.png +0 -0
- package/style/visual-screenshots (1)/images/f9145ef284d04f6336229ff666af70e3.png +0 -0
- package/style/visual-screenshots (1)/images/f93aaf6c9ea9f70abb350f5255767c3f.png +0 -0
- package/style/visual-screenshots (1)/images/f95685e60e185b4b3da22bb8bf70e7e2.png +0 -0
- package/style/visual-screenshots (1)/images/f97ab81b758db662a2eb1617a6efe217.png +0 -0
- package/style/visual-screenshots (1)/images/fa7325e4f52bb809c79c2f8df2699b93.png +0 -0
- package/style/visual-screenshots (1)/images/fa793989f4717dd55b1c603086785688.png +0 -0
- package/style/visual-screenshots (1)/images/faab9362d2ff082b2ec255bd3f87f52c.png +0 -0
- package/style/visual-screenshots (1)/images/fad9c13edad825e537ef70d1f5ac9ffc.png +0 -0
- package/style/visual-screenshots (1)/images/faf67bf2491d228a3147ca1b197ce7c0.png +0 -0
- package/style/visual-screenshots (1)/images/fb0bba6fa80d2f1d58b9fe1a3cae80fd.png +0 -0
- package/style/visual-screenshots (1)/images/fb21968682604e963f859ce4a3063449.png +0 -0
- package/style/visual-screenshots (1)/images/fb2756dae46b9f5078e264cd3419bb7f.png +0 -0
- package/style/visual-screenshots (1)/images/fc344f5b8408cc30060f888515927391.png +0 -0
- package/style/visual-screenshots (1)/images/fca29f7a114d6e4df2ca093e1d9cf90a.png +0 -0
- package/style/visual-screenshots (1)/images/fced6958bf1d22d95b4609bb6cb90c07.png +0 -0
- package/style/visual-screenshots (1)/images/fd92b9e1229dbd6160436f5b92cd21b0.png +0 -0
- package/style/visual-screenshots (1)/images/fdf7376c972f3c4f40789c0f217c0480.png +0 -0
- package/style/visual-screenshots (1)/images/fe13a66e7e5ede78792937bf010f022c.png +0 -0
- package/style/visual-screenshots (1)/images/fe2c4234c413f4ad2d054fd091242f8e.png +0 -0
- package/style/visual-screenshots (1)/images/fe4603d37d7b7abc55ebda66bb81b8d9.png +0 -0
- package/style/visual-screenshots (1)/images/fe9188d474135ba66971a9ea60921c3d.png +0 -0
- package/style/visual-screenshots (1)/images/febb9b60ded19124b91a836fcbc37936.png +0 -0
- package/style/visual-screenshots (1)/images/fedb6514016e34df2fcb29eef107d385.png +0 -0
- package/style/visual-screenshots (1)/images/ff5d801d62c71a38028c2d406af30b8f.png +0 -0
- package/style/visual-screenshots (1)/images/ffa3e2813a91c22ec33346792ba47461.png +0 -0
- package/style/visual-screenshots (1)/images/ffb7b8ff61c2ce675eaeaa8104a3f178.png +0 -0
|
@@ -1,3930 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const codeBlock = require('./code-block-36fb0e69.js');
|
|
4
|
-
const createPublicApiRuntimeMetricsSlimmer = require('./create-public-api-runtime-metrics-slimmer-e2e274e1.js');
|
|
5
|
-
const typeGuard = require('./type-guard-f12b5bae.js');
|
|
6
|
-
const changeManager = require('./change-manager-a297e4d2.js');
|
|
7
|
-
const domNodeSubjectObserverFactory = require('./dom-node-subject-observer-factory-f040608b.js');
|
|
8
|
-
const vegaInternalEventId = require('./vega-internal-event-id-6d4a2c53.js');
|
|
9
|
-
const string = require('./string-39438062.js');
|
|
10
|
-
const ui = require('./ui-9e181079.js');
|
|
11
|
-
const object = require('./object-e2e28e3d.js');
|
|
12
|
-
const globalSlimmerRegistry = require('./global-slimmer-registry-b3bce7e0.js');
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Remove list item nest list block strategy.
|
|
16
|
-
*/
|
|
17
|
-
class ListItemRemoveNestListStrategy extends codeBlock.ActionHandleStrategy {
|
|
18
|
-
/**
|
|
19
|
-
* Remove the nest list block from the list item, clear the property children when the children is empty.
|
|
20
|
-
*
|
|
21
|
-
* @param {RemoveNestListAction} action - The action instance.
|
|
22
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
23
|
-
*/
|
|
24
|
-
handleAction(action, target) {
|
|
25
|
-
if (target.nestList) {
|
|
26
|
-
if (target.nestList.length > 1) {
|
|
27
|
-
target.nestList = target.nestList.filter((child) => child !== action.nestListBlockToBeRemoved);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
target.nestList = undefined;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Replace list item nest list strategy.
|
|
38
|
-
*/
|
|
39
|
-
class ListItemReplaceNestListStrategy extends codeBlock.ActionHandleStrategy {
|
|
40
|
-
/**
|
|
41
|
-
* @inheritDoc
|
|
42
|
-
*/
|
|
43
|
-
handleAction(action, target) {
|
|
44
|
-
action.newList.forEach((listBlock) => {
|
|
45
|
-
listBlock.parent = target;
|
|
46
|
-
});
|
|
47
|
-
target.nestList = action.newList;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Insert image node to list item block strategy.
|
|
53
|
-
*/
|
|
54
|
-
class ListItemInsertImageStrategy extends codeBlock.ActionHandleStrategy {
|
|
55
|
-
/**
|
|
56
|
-
* The image node can not insert into list item block, so insert image after parent list block.
|
|
57
|
-
*
|
|
58
|
-
* @param {InsertImageToBlockAction} action - The action instance.
|
|
59
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
60
|
-
*/
|
|
61
|
-
handleAction(action, target) {
|
|
62
|
-
target.parent.apply(action);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* List item block
|
|
68
|
-
*/
|
|
69
|
-
class RTEListItemBlock extends codeBlock.RTETextBlock {
|
|
70
|
-
constructor(id, nestList, options) {
|
|
71
|
-
super(id, 'list-item', options);
|
|
72
|
-
/**
|
|
73
|
-
* TODO: Refactor the list item properties children and nestList, merge two properties together.
|
|
74
|
-
*
|
|
75
|
-
* 1. Update the type of `children` to include `RTEListBlock` as a possible type.
|
|
76
|
-
* 2. The list block children should text block array and nest list block array, The text block should wrap a `li` tag when rendering.
|
|
77
|
-
*/
|
|
78
|
-
this.nestList = [];
|
|
79
|
-
this.nestList = nestList;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Converts a VegaRTEListItemBlock object to an RTEListItemBlock
|
|
83
|
-
*
|
|
84
|
-
* @param {VegaRTEListBlock} block - Converts a `VegaRTEListItemBlock` object into an `RTEListItemBlock`.
|
|
85
|
-
* @param {VegaRTETransformOptions} options - Optional transformation options.
|
|
86
|
-
* @returns {RTEListItemBlock} Return an instance of `RTEListItemBlock`
|
|
87
|
-
*/
|
|
88
|
-
static from(block, options = { autoMatchFormat: true }) {
|
|
89
|
-
const listItemBlock = new RTEListItemBlock(block.id, undefined, options);
|
|
90
|
-
listItemBlock.children = block.nodes.map((richText) => codeBlock.RTETextNode.from(richText, listItemBlock, options));
|
|
91
|
-
if (block.children) {
|
|
92
|
-
listItemBlock.nestList = block.children.map((child) => {
|
|
93
|
-
const listBlock = RTEListBlock.from(child);
|
|
94
|
-
listBlock.parent = listItemBlock;
|
|
95
|
-
return listBlock;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
const { annotations } = block;
|
|
99
|
-
if (annotations) {
|
|
100
|
-
Object.entries(annotations).forEach(([type, value]) => {
|
|
101
|
-
const item = this.createAnnotationEntity(type, value);
|
|
102
|
-
if (typeGuard.isNonNullable(item)) {
|
|
103
|
-
listItemBlock.annotationMap.set(...item);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return listItemBlock;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @inheritDoc
|
|
111
|
-
*/
|
|
112
|
-
toJSON() {
|
|
113
|
-
var _a;
|
|
114
|
-
return Object.assign(Object.assign({}, super.toJSON()), { type: 'list-item', children: (_a = this.nestList) === null || _a === void 0 ? void 0 : _a.map((block) => block.toJSON()) });
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @inheritDoc
|
|
118
|
-
*/
|
|
119
|
-
toHtml() {
|
|
120
|
-
const attrStr = super.generateAttributeString();
|
|
121
|
-
return [
|
|
122
|
-
`<li${attrStr}>`,
|
|
123
|
-
this.children.map((node) => node.toHtml()).join(''),
|
|
124
|
-
`</li>`,
|
|
125
|
-
].join('');
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* @inheritDoc
|
|
129
|
-
*/
|
|
130
|
-
cloneWithNodes(nodes) {
|
|
131
|
-
const block = new RTEListItemBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
132
|
-
block.children = [];
|
|
133
|
-
block.apply(new codeBlock.AppendChildrenAction(nodes));
|
|
134
|
-
return block;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* @inheritDoc
|
|
138
|
-
*/
|
|
139
|
-
getLastNode() {
|
|
140
|
-
if (this.nestList && this.nestList.length > 0) {
|
|
141
|
-
const childListBlock = this.nestList[this.nestList.length - 1];
|
|
142
|
-
return childListBlock.getLastNode();
|
|
143
|
-
}
|
|
144
|
-
return super.getLastNode();
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Create a new list item block.
|
|
148
|
-
*
|
|
149
|
-
* @returns {RTEListItemBlock} - A list item block.
|
|
150
|
-
*/
|
|
151
|
-
createNewListItem() {
|
|
152
|
-
return new RTEListItemBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* @inheritDoc
|
|
156
|
-
*/
|
|
157
|
-
clone(parent) {
|
|
158
|
-
var _a;
|
|
159
|
-
const block = new RTEListItemBlock(this.id);
|
|
160
|
-
block.children = this.children.map((node) => node.clone(block));
|
|
161
|
-
block.annotationMap = super.cloneAnnotations();
|
|
162
|
-
block.nestList = (_a = this.nestList) === null || _a === void 0 ? void 0 : _a.map((child) => child.clone(block));
|
|
163
|
-
block.parent = parent;
|
|
164
|
-
return block;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
(() => {
|
|
168
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.TextStyleAnnotationAction.name, RTEListItemBlock.name, new codeBlock.BlockUpdateTextStyleStrategy());
|
|
169
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.HorizontalAlignmentAnnotationAction.name, RTEListItemBlock.name, new codeBlock.BlockUpdateHorizontalAlignmentStrategy());
|
|
170
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTEListItemBlock.name, new codeBlock.BlockInsertLineBreakStrategy());
|
|
171
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTEListItemBlock.name, new codeBlock.BlockInsertLineBreakWithBlocksStrategy());
|
|
172
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_NEST_LIST, RTEListItemBlock.name, new ListItemRemoveNestListStrategy());
|
|
173
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTEListItemBlock.name, new codeBlock.BlockSplitWithTextNodeStrategy());
|
|
174
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.REPLACE_CHILD_NODES, RTEListItemBlock.name, new codeBlock.BlockReplaceNodesStrategy());
|
|
175
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.REPLACE_NEST_LIST, RTEListItemBlock.name, new ListItemReplaceNestListStrategy());
|
|
176
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTEListItemBlock.name, new codeBlock.BlockMergeNodesStrategy());
|
|
177
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListItemBlock.name, new ListItemInsertImageStrategy());
|
|
178
|
-
})();
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Convert the selected blocks to list strategy.
|
|
182
|
-
*/
|
|
183
|
-
class ListTransformToListStrategy extends codeBlock.ActionHandleStrategy {
|
|
184
|
-
/**
|
|
185
|
-
* @inheritDoc
|
|
186
|
-
*/
|
|
187
|
-
handleAction(action, target) {
|
|
188
|
-
const selectedBlocks = action.selectedBlocks;
|
|
189
|
-
const bulletList = target.parent.createList(action.listType);
|
|
190
|
-
const isSameList = selectedBlocks.every((block) => block.parent === target);
|
|
191
|
-
if (isSameList) {
|
|
192
|
-
// Select one or more list items belonging to the same list, and all items in this list should be updated
|
|
193
|
-
bulletList.apply(new codeBlock.AppendChildrenAction(target.children));
|
|
194
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, bulletList));
|
|
195
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
196
|
-
selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new codeBlock.SyncUpSelectionAction())));
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
const listItems = action.selectedBlocks.map((block) => target.parent.toListItem(block));
|
|
200
|
-
bulletList.apply(new codeBlock.AppendChildrenAction(listItems));
|
|
201
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, bulletList));
|
|
202
|
-
action.selectedBlocks.forEach((block) => {
|
|
203
|
-
block.parent.apply(new codeBlock.RemoveChildrenAction(block));
|
|
204
|
-
});
|
|
205
|
-
if (target.children.length === 0) {
|
|
206
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Convert the selected list block to paragraph strategy.
|
|
214
|
-
*/
|
|
215
|
-
class ListTransformToParagraphStrategy extends codeBlock.ActionHandleStrategy {
|
|
216
|
-
/**
|
|
217
|
-
* @inheritDoc
|
|
218
|
-
*/
|
|
219
|
-
handleAction(action, target) {
|
|
220
|
-
let isSelectedFirstBlock = false;
|
|
221
|
-
let isSelectedLastBlock = false;
|
|
222
|
-
const selectedBlocks = action.selectedBlocks;
|
|
223
|
-
const currentParagraph = selectedBlocks.map((block) => {
|
|
224
|
-
block.children.map((node) => node.apply(new codeBlock.SyncUpSelectionAction()));
|
|
225
|
-
if (block === target.children[0])
|
|
226
|
-
isSelectedFirstBlock = true;
|
|
227
|
-
if (block === target.children[target.children.length - 1])
|
|
228
|
-
isSelectedLastBlock = true;
|
|
229
|
-
return this.toParagraph(block);
|
|
230
|
-
});
|
|
231
|
-
if (isSelectedFirstBlock) {
|
|
232
|
-
target.parent.apply(new codeBlock.InsertChildrenBeforeAction(target, ...currentParagraph));
|
|
233
|
-
}
|
|
234
|
-
else if (isSelectedLastBlock) {
|
|
235
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, ...currentParagraph));
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
const startIndex = target.children.indexOf(selectedBlocks[0]);
|
|
239
|
-
const lastIndex = target.children.indexOf(selectedBlocks[selectedBlocks.length - 1]);
|
|
240
|
-
const firstBulletList = target.parent.createList(target.type);
|
|
241
|
-
firstBulletList.apply(new codeBlock.AppendChildrenAction(target.children.slice(0, startIndex)));
|
|
242
|
-
const lastBulletList = target.parent.createList(target.type);
|
|
243
|
-
lastBulletList.apply(new codeBlock.AppendChildrenAction(target.children.slice(lastIndex + 1)));
|
|
244
|
-
target.parent.apply(new codeBlock.InsertChildrenBeforeAction(target, firstBulletList, ...currentParagraph, lastBulletList));
|
|
245
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
246
|
-
}
|
|
247
|
-
selectedBlocks.map((block) => {
|
|
248
|
-
target.apply(new codeBlock.RemoveChildrenAction(block));
|
|
249
|
-
});
|
|
250
|
-
if (target.children.length === 0) {
|
|
251
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Converts a RTEListItemBlock to a RTETextBlock representing a paragraph.
|
|
256
|
-
*
|
|
257
|
-
* @param {RTEListItemBlock} block - The block that will be covered
|
|
258
|
-
* @returns {RTETextBlock} Returns a `RTETextBlock`.
|
|
259
|
-
*/
|
|
260
|
-
toParagraph(block) {
|
|
261
|
-
const textBlock = new codeBlock.RTETextBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID(), 'paragraph');
|
|
262
|
-
textBlock.apply(new codeBlock.AppendChildrenAction(block['children']));
|
|
263
|
-
textBlock['annotationMap'] = block['annotationMap'];
|
|
264
|
-
return textBlock;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Insert image to list block strategy.
|
|
270
|
-
*/
|
|
271
|
-
class ListInsertImageStrategy extends codeBlock.ActionHandleStrategy {
|
|
272
|
-
/**
|
|
273
|
-
* Insert image block at behind of the list item block.
|
|
274
|
-
*
|
|
275
|
-
* @param {InsertImageToBlockAction} action - The insert image action instance.
|
|
276
|
-
* @param {RTEListBlock} target - The list block.
|
|
277
|
-
*/
|
|
278
|
-
handleAction(action, target) {
|
|
279
|
-
const imageBlock = action.imageBlockToBeInserted;
|
|
280
|
-
if (target.parent['type'] !== 'list-item') {
|
|
281
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, imageBlock));
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
target.parent.apply(action);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* List annotation
|
|
291
|
-
*/
|
|
292
|
-
class ListAnnotation extends codeBlock.BlockAnnotation {
|
|
293
|
-
constructor() {
|
|
294
|
-
super(...arguments);
|
|
295
|
-
this.type = codeBlock.BlockAnnotationTypeEnum.LIST;
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* @inheritDoc
|
|
299
|
-
*/
|
|
300
|
-
renderStyle(options) {
|
|
301
|
-
if (!(options === null || options === void 0 ? void 0 : options.standalone))
|
|
302
|
-
return null;
|
|
303
|
-
return {
|
|
304
|
-
paddingLeft: '8px',
|
|
305
|
-
marginLeft: '16px',
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* @inheritDoc
|
|
310
|
-
*/
|
|
311
|
-
renderClass(options) {
|
|
312
|
-
if (options === null || options === void 0 ? void 0 : options.standalone)
|
|
313
|
-
return null;
|
|
314
|
-
return 'v-rte--list';
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @inheritDoc
|
|
318
|
-
*/
|
|
319
|
-
clone() {
|
|
320
|
-
return new ListAnnotation();
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @inheritDoc
|
|
324
|
-
*/
|
|
325
|
-
toJSON() {
|
|
326
|
-
return undefined;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* List block
|
|
332
|
-
*/
|
|
333
|
-
class RTEListBlock extends codeBlock.RTEBlock {
|
|
334
|
-
constructor(id, type, options) {
|
|
335
|
-
super(id);
|
|
336
|
-
this.type = 'bullet-list';
|
|
337
|
-
this.children = [];
|
|
338
|
-
this.type = type;
|
|
339
|
-
const { autoMatchFormat } = options || { autoMatchFormat: true };
|
|
340
|
-
if (autoMatchFormat) {
|
|
341
|
-
this.annotationMap.set(codeBlock.BlockAnnotationTypeEnum.LIST, new ListAnnotation());
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* Converts a VegaRTEListBlock object to an RTEListBlock
|
|
346
|
-
*
|
|
347
|
-
* @param {VegaRTEListBlock} block - Converts a `VegaRTEListBlock` object into an `RTEListBlock`.
|
|
348
|
-
* @param {VegaRTETransformOptions} options - Optional transformation options.
|
|
349
|
-
* @returns {RTEListBlock} Return an instance of `RTEListBlock`
|
|
350
|
-
*/
|
|
351
|
-
static from(block, options = { autoMatchFormat: true }) {
|
|
352
|
-
const listBlock = new RTEListBlock(block.id, block.type, options);
|
|
353
|
-
const { annotations } = block;
|
|
354
|
-
if (annotations) {
|
|
355
|
-
Object.entries(annotations).forEach(([type, value]) => {
|
|
356
|
-
const item = this.createAnnotationEntity(type, value);
|
|
357
|
-
if (typeGuard.isNonNullable(item)) {
|
|
358
|
-
listBlock.annotationMap.set(...item);
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
listBlock.children = block.blocks.map((item) => {
|
|
363
|
-
const listItemBlock = RTEListItemBlock.from(item, options);
|
|
364
|
-
listItemBlock.parent = listBlock;
|
|
365
|
-
return listItemBlock;
|
|
366
|
-
});
|
|
367
|
-
return listBlock;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* The function `createAnnotationEntity` creates a block annotation entity based on the provided type
|
|
371
|
-
* and value.
|
|
372
|
-
*
|
|
373
|
-
* @param {keyof VegaRTEBlockAnnotations} type - The `type` parameter is a key of the `VegaRTEBlockAnnotations` enum, which specifies
|
|
374
|
-
* the type of annotation entity to create.
|
|
375
|
-
* @param {unknown} value - The `value` parameter in the `createAnnotationEntity` function is the value
|
|
376
|
-
* that will be used to create the annotation entity. It can be of any type depending on the specific
|
|
377
|
-
* annotation being created.
|
|
378
|
-
* @returns {Nullable<BlockAnnotationsEntity>} The `createAnnotationEntity` function returns a nullable tuple containing a
|
|
379
|
-
* `BlockAnnotationTypeEnum` and a `BlockAnnotation` object.
|
|
380
|
-
*/
|
|
381
|
-
static createAnnotationEntity(type, value) {
|
|
382
|
-
switch (type) {
|
|
383
|
-
case 'customAttribute':
|
|
384
|
-
return codeBlock.CustomAttributeAnnotation.from(value);
|
|
385
|
-
case 'customClass':
|
|
386
|
-
return codeBlock.CustomClassAnnotation.from(value);
|
|
387
|
-
case 'customStyle':
|
|
388
|
-
return codeBlock.CustomStyleAnnotation.from(value);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* @inheritDoc
|
|
393
|
-
*/
|
|
394
|
-
toJSON() {
|
|
395
|
-
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, blocks: this.children.map((block) => block.toJSON()) });
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* @inheritDoc
|
|
399
|
-
*/
|
|
400
|
-
toHtml() {
|
|
401
|
-
const BlockTag = this.getBlockTag();
|
|
402
|
-
const attrStr = super.generateAttributeString();
|
|
403
|
-
return [
|
|
404
|
-
`<${BlockTag}${attrStr}>`,
|
|
405
|
-
this.children.map((block) => block.toHtml()).join(''),
|
|
406
|
-
`</${BlockTag}>`,
|
|
407
|
-
].join('');
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* @inheritDoc
|
|
411
|
-
*/
|
|
412
|
-
isNotEmpty() {
|
|
413
|
-
return this.children.length > 0;
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* @inheritDoc
|
|
417
|
-
*/
|
|
418
|
-
getLastNode() {
|
|
419
|
-
return this.children[this.children.length - 1].getLastNode();
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* @inheritDoc
|
|
423
|
-
*/
|
|
424
|
-
clone(parent) {
|
|
425
|
-
const clonedListBlock = new RTEListBlock(this.id, this.type);
|
|
426
|
-
clonedListBlock.children = this.children.map((item) => item.clone(clonedListBlock));
|
|
427
|
-
clonedListBlock.annotationMap = super.cloneAnnotations();
|
|
428
|
-
clonedListBlock.parent = parent;
|
|
429
|
-
return clonedListBlock;
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* Returns the block tag based on the type of the list block.
|
|
433
|
-
*
|
|
434
|
-
* @returns {RTEListBlockTagType} - The block tag for the list block, either 'ol' or 'ul'.
|
|
435
|
-
*/
|
|
436
|
-
getBlockTag() {
|
|
437
|
-
return this.type === 'number-list' ? 'ol' : 'ul';
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
(() => {
|
|
441
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.TRANSFORM_LIST_BLOCK, RTEListBlock.name, new ListTransformToListStrategy());
|
|
442
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.TRANSFORM_PARAGRAPH_BLOCK, RTEListBlock.name, new ListTransformToParagraphStrategy());
|
|
443
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListBlock.name, new ListInsertImageStrategy());
|
|
444
|
-
})();
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Transform the selected text blocks to a code block strategy.
|
|
448
|
-
*/
|
|
449
|
-
class BlockTransformToCodeBlockStrategy extends codeBlock.ActionHandleStrategy {
|
|
450
|
-
/**
|
|
451
|
-
* Get the all select text and create a new code block.
|
|
452
|
-
*
|
|
453
|
-
* @param {TransformToCodeBlockAction} action - The action instance.
|
|
454
|
-
* @param {VegaRTEContent} target - The block top parent instance.
|
|
455
|
-
*/
|
|
456
|
-
handleAction(action, target) {
|
|
457
|
-
const selectedBlocks = action.selectedBlocks;
|
|
458
|
-
const codeBlock$1 = new codeBlock.RTECodeBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID(), this.getCodeContent(selectedBlocks), 'plainText');
|
|
459
|
-
target.apply(new codeBlock.InsertChildrenBeforeAction(selectedBlocks[0], codeBlock$1));
|
|
460
|
-
action.newCodeBlock = codeBlock$1;
|
|
461
|
-
this.removeSelectBlocks(selectedBlocks, target);
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Get the selected text block text content.
|
|
465
|
-
*
|
|
466
|
-
* @param {RTEBlock[]} selectedBlocks - The selected blocks.
|
|
467
|
-
* @returns {string} - The selected text content.
|
|
468
|
-
*/
|
|
469
|
-
getCodeContent(selectedBlocks) {
|
|
470
|
-
const selectedTextBlocks = selectedBlocks.filter((item) => item.type !== 'image' && item.type !== 'list-item');
|
|
471
|
-
return selectedTextBlocks
|
|
472
|
-
.map((block) => {
|
|
473
|
-
return block.children.map((node) => node.text).join('');
|
|
474
|
-
})
|
|
475
|
-
.join('\n');
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Remove the selected blocks after append new code block.
|
|
479
|
-
*
|
|
480
|
-
* @param {RTEBlock[]} selectedBlocks - The selected blocks.
|
|
481
|
-
* @param {VegaRTEContent} target - The selected block top parent object.
|
|
482
|
-
*/
|
|
483
|
-
removeSelectBlocks(selectedBlocks, target) {
|
|
484
|
-
for (let i = 0; i < selectedBlocks.length; i++) {
|
|
485
|
-
target.apply(new codeBlock.RemoveChildrenAction(selectedBlocks[i]));
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Abstract class to define strategies for processing HTML elements
|
|
492
|
-
*/
|
|
493
|
-
class ElementToDTOStrategy {
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Class to represent the output of a strategy applied to HTML elements
|
|
497
|
-
*/
|
|
498
|
-
class ElementToDTOStrategyOutput {
|
|
499
|
-
constructor(currentStrategy, currentElements) {
|
|
500
|
-
this.childrenOutput = [];
|
|
501
|
-
this.currentStrategy = currentStrategy;
|
|
502
|
-
this.currentElements = currentElements;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Set children output.
|
|
506
|
-
*
|
|
507
|
-
* @param {ElementToDTOStrategyOutput[]} childrenOutput - children outputs.
|
|
508
|
-
*/
|
|
509
|
-
setChildrenOutput(childrenOutput) {
|
|
510
|
-
this.childrenOutput = childrenOutput;
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Transform current output and children output to DTO
|
|
514
|
-
*
|
|
515
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
516
|
-
* @returns {Nullable<RTEContentBlock>} - DTO.
|
|
517
|
-
*/
|
|
518
|
-
toDto(options = { autoMatchFormat: true, skipCustomAnnotations: true }) {
|
|
519
|
-
const currentBlock = this.currentStrategy.handle(this.currentElements, options);
|
|
520
|
-
if (this.childrenOutput.length > 0 && currentBlock) {
|
|
521
|
-
this.currentStrategy.appendChildBlocks(currentBlock, this.childrenOutput
|
|
522
|
-
.map((childOutput) => childOutput.toDto(options))
|
|
523
|
-
.filter(typeGuard.isNonNullable));
|
|
524
|
-
}
|
|
525
|
-
return currentBlock;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Manager for registering and retrieving strategies that convert HTML elements to DTOs.
|
|
531
|
-
*/
|
|
532
|
-
class elementToDTOClassStrategyManager {
|
|
533
|
-
constructor() {
|
|
534
|
-
this.elementToBlockStrategies = [];
|
|
535
|
-
this.elementToNodeStrategies = [];
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
* Registers a element to block strategy for converting HTML elements to DTOs. The new strategy is added to the beginning of the list to give it higher priority.
|
|
539
|
-
*
|
|
540
|
-
* @param {ElementToDTOStrategy} strategy - The strategy to register.
|
|
541
|
-
*/
|
|
542
|
-
registerElementToBlockStrategy(strategy) {
|
|
543
|
-
if (!this.hasDuplicateStrategy(strategy, this.elementToBlockStrategies)) {
|
|
544
|
-
this.elementToBlockStrategies.unshift(strategy);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* Registers an element to node strategy for converting HTML elements to DTOs. The new strategy is added to the beginning of the list to give it higher priority.
|
|
549
|
-
*
|
|
550
|
-
* @param {ElementToDTOStrategy} strategy - The strategy to register.
|
|
551
|
-
*/
|
|
552
|
-
registerElementToNodeStrategy(strategy) {
|
|
553
|
-
if (!this.hasDuplicateStrategy(strategy, this.elementToNodeStrategies)) {
|
|
554
|
-
this.elementToNodeStrategies.unshift(strategy);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* Retrieves all registered element to block strategies for converting HTML elements to DTOs.
|
|
559
|
-
*
|
|
560
|
-
* @returns {ElementToDTOStrategy[]} - A set of all registered element to block strategies.
|
|
561
|
-
*/
|
|
562
|
-
getElementToBlockStrategies() {
|
|
563
|
-
return this.elementToBlockStrategies;
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* Retrieves all registered element to node strategies for converting HTML elements to DTOs.
|
|
567
|
-
*
|
|
568
|
-
* @returns {ElementToDTOStrategy[]} - A set of all registered element to node strategies.
|
|
569
|
-
*/
|
|
570
|
-
getElementToNodeStrategies() {
|
|
571
|
-
return this.elementToNodeStrategies;
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* Checks if a strategy is already registered in the provided strategy list.
|
|
575
|
-
*
|
|
576
|
-
* @param {ElementToDTOStrategy} strategy - The strategy to check for duplicates.
|
|
577
|
-
* @param {ElementToDTOStrategy[]} strategyList - The list of strategies to check against.
|
|
578
|
-
* @returns {boolean} - True if the strategy is a duplicate, false otherwise.
|
|
579
|
-
*/
|
|
580
|
-
hasDuplicateStrategy(strategy, strategyList) {
|
|
581
|
-
return strategyList.includes(strategy);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
const ElementToDTOClassStrategyManager = new elementToDTOClassStrategyManager();
|
|
585
|
-
|
|
586
|
-
/** Element to DTO processor */
|
|
587
|
-
class ElementToDtoStrategyProcessor {
|
|
588
|
-
/**
|
|
589
|
-
* Transform process.
|
|
590
|
-
*
|
|
591
|
-
* @param {HTMLElement[]} elements - Current elements.
|
|
592
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
593
|
-
* @returns {ElementToDTOStrategyOutput[]} - outputs.
|
|
594
|
-
*/
|
|
595
|
-
process(elements, options = { autoMatchFormat: true, skipCustomAnnotations: true }) {
|
|
596
|
-
const strategies = this.getElementToBlockStrategies();
|
|
597
|
-
const outputs = [];
|
|
598
|
-
for (let i = 0; i < elements.length; i++) {
|
|
599
|
-
if (this.isInvalidElement(elements[i]))
|
|
600
|
-
continue;
|
|
601
|
-
let canHandledCount = 0;
|
|
602
|
-
for (const strategy of strategies) {
|
|
603
|
-
canHandledCount = strategy.canHandle(elements, i, options);
|
|
604
|
-
if (canHandledCount > 0) {
|
|
605
|
-
const handledElements = elements.slice(i, i + canHandledCount);
|
|
606
|
-
const output = new ElementToDTOStrategyOutput(strategy, handledElements);
|
|
607
|
-
if (canHandledCount === 1 && strategy.shouldProceedToElementChildren()) {
|
|
608
|
-
output.setChildrenOutput(this.process(Array.from(handledElements[0].childNodes), options));
|
|
609
|
-
}
|
|
610
|
-
outputs.push(output);
|
|
611
|
-
i += canHandledCount - 1;
|
|
612
|
-
break;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
if (canHandledCount === 0 && i < elements.length) {
|
|
616
|
-
const elementChildren = Array.from(elements[i].childNodes);
|
|
617
|
-
const childrenOutputs = this.process(Array.from(elementChildren), options);
|
|
618
|
-
if (childrenOutputs.length > 0) {
|
|
619
|
-
outputs.push(...childrenOutputs);
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
return outputs;
|
|
624
|
-
}
|
|
625
|
-
/**
|
|
626
|
-
* Checks if the given element is valid to parse.
|
|
627
|
-
*
|
|
628
|
-
* @param {HTMLElement} element - The pasted element.
|
|
629
|
-
* @returns {boolean} Is valid
|
|
630
|
-
*/
|
|
631
|
-
isInvalidElement(element) {
|
|
632
|
-
if (element.nodeType === Node.COMMENT_NODE)
|
|
633
|
-
return true;
|
|
634
|
-
return ['META', 'STYLE'].includes(element.nodeName);
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* Get the register element to block strategies.
|
|
638
|
-
*
|
|
639
|
-
* @returns {ElementToDTOStrategy[]} - The register element to block strategies.
|
|
640
|
-
*/
|
|
641
|
-
getElementToBlockStrategies() {
|
|
642
|
-
return ElementToDTOClassStrategyManager.getElementToBlockStrategies();
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
const ElementToDtoStrategyProcessor$1 = new ElementToDtoStrategyProcessor();
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* Update the cursor position in the editor.
|
|
649
|
-
*/
|
|
650
|
-
class UpdateCursorPositionStrategy extends codeBlock.ActionHandleStrategy {
|
|
651
|
-
/**
|
|
652
|
-
* @inheritDoc
|
|
653
|
-
*/
|
|
654
|
-
handleAction(action, target) {
|
|
655
|
-
const { offset, nextFocusNode, immediatelyRun } = action;
|
|
656
|
-
const host = codeBlock.stateEntityRenderingRegistry.getDOMByEntity(target);
|
|
657
|
-
if (host) {
|
|
658
|
-
changeManager.ChangeManager.notify(domNodeSubjectObserverFactory.domNodeSubjectFactory.getSubject(host, vegaInternalEventId.VegaInternalUpdateRTECursorPosition), {
|
|
659
|
-
node: nextFocusNode,
|
|
660
|
-
offset,
|
|
661
|
-
updateDirectly: immediatelyRun,
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* Append new block array or node array to block or VegaRTEContent instance strategy.
|
|
669
|
-
*/
|
|
670
|
-
class AppendChildrenStrategy extends codeBlock.ActionHandleStrategy {
|
|
671
|
-
/**
|
|
672
|
-
* @inheritDoc
|
|
673
|
-
*/
|
|
674
|
-
handleAction(action, target) {
|
|
675
|
-
const newBlocks = action.entityToBeAppended;
|
|
676
|
-
if (target.children) {
|
|
677
|
-
newBlocks.forEach((block) => {
|
|
678
|
-
block.parent = target;
|
|
679
|
-
});
|
|
680
|
-
// This line is used to fix the typescript error `This expression is not callable`. https://github.com/microsoft/TypeScript/issues/44373
|
|
681
|
-
const arrayFixed = target.children;
|
|
682
|
-
target.children = arrayFixed.concat(newBlocks);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* Insert children at the front of the block strategy.
|
|
689
|
-
*/
|
|
690
|
-
class InsertChildrenBeforeStrategy extends codeBlock.ActionHandleStrategy {
|
|
691
|
-
/**
|
|
692
|
-
* @inheritDoc
|
|
693
|
-
*/
|
|
694
|
-
handleAction(action, target) {
|
|
695
|
-
this.replaceElementWithElements(target, action.referChildren, [
|
|
696
|
-
...action.childrenToBeInserted,
|
|
697
|
-
action.referChildren,
|
|
698
|
-
]);
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* Replaces a specific block or node with an array of blocks or nodes within RTEContentBlock array.
|
|
702
|
-
*
|
|
703
|
-
* @param {RTEBlock | VegaRTEContent} target - The block or the VegaRTEContent instance.
|
|
704
|
-
* @param {RTEBlock | RTENode} referElement - Used as a reference element to identify the element that needs to be replaced in the array.
|
|
705
|
-
* @param {RTEBlock[] | RTENode[]} elements - An array of block or node objects that you want to replace the `referElement` with in the array.
|
|
706
|
-
*/
|
|
707
|
-
replaceElementWithElements(target, referElement, elements) {
|
|
708
|
-
if (target.children) {
|
|
709
|
-
elements.forEach((block) => {
|
|
710
|
-
block.parent = target;
|
|
711
|
-
});
|
|
712
|
-
const arrayFixed = target.children;
|
|
713
|
-
target.children = arrayFixed.flatMap((block) => {
|
|
714
|
-
if (block === referElement) {
|
|
715
|
-
return elements;
|
|
716
|
-
}
|
|
717
|
-
else {
|
|
718
|
-
return block;
|
|
719
|
-
}
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Insert children at the front of the block strategy.
|
|
727
|
-
*/
|
|
728
|
-
class InsertChildrenAfterStrategy extends InsertChildrenBeforeStrategy {
|
|
729
|
-
/**
|
|
730
|
-
* @inheritDoc
|
|
731
|
-
*/
|
|
732
|
-
handleAction(action, target) {
|
|
733
|
-
this.replaceElementWithElements(target, action.referChildren, [
|
|
734
|
-
action.referChildren,
|
|
735
|
-
...action.childrenToBeInserted,
|
|
736
|
-
]);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* Annotation for image
|
|
742
|
-
*/
|
|
743
|
-
class ImageAnnotation extends codeBlock.NodeAnnotation {
|
|
744
|
-
constructor(size, alt) {
|
|
745
|
-
super();
|
|
746
|
-
this.type = codeBlock.NodeAnnotationTypeEnum.IMAGE;
|
|
747
|
-
this.size = size;
|
|
748
|
-
this.alt = alt;
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* Generate the map item for the annotation
|
|
752
|
-
*
|
|
753
|
-
* @param {string} size - Image size
|
|
754
|
-
* @param {string} alt - Image alt
|
|
755
|
-
* @returns {[NodeAnnotationTypeEnum.IMAGE, ImageAnnotation]} Map item for the annotation
|
|
756
|
-
*/
|
|
757
|
-
static from(size, alt) {
|
|
758
|
-
return [codeBlock.NodeAnnotationTypeEnum.IMAGE, new ImageAnnotation(size, alt)];
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* Generate the JSON representation of the annotation
|
|
762
|
-
*
|
|
763
|
-
* @returns {Nullable<Record<string, unknown>>} JSON representation of the annotation
|
|
764
|
-
*/
|
|
765
|
-
toJSON() {
|
|
766
|
-
return typeGuard.isNonNullable(this.alt)
|
|
767
|
-
? {
|
|
768
|
-
size: this.size,
|
|
769
|
-
alt: this.alt,
|
|
770
|
-
}
|
|
771
|
-
: {
|
|
772
|
-
size: this.size,
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* @inheritDoc
|
|
777
|
-
*/
|
|
778
|
-
clone() {
|
|
779
|
-
return new ImageAnnotation(this.size, this.alt);
|
|
780
|
-
}
|
|
781
|
-
/**
|
|
782
|
-
* @inheritDoc
|
|
783
|
-
*/
|
|
784
|
-
renderClass(options) {
|
|
785
|
-
if (options === null || options === void 0 ? void 0 : options.standalone)
|
|
786
|
-
return null;
|
|
787
|
-
return this.size ? `v-rte--image-size-${this.size}` : null;
|
|
788
|
-
}
|
|
789
|
-
/**
|
|
790
|
-
* @inheritDoc
|
|
791
|
-
*/
|
|
792
|
-
renderStyle(options) {
|
|
793
|
-
if (!(options === null || options === void 0 ? void 0 : options.standalone))
|
|
794
|
-
return null;
|
|
795
|
-
const baseStyle = { verticalAlign: 'bottom' };
|
|
796
|
-
switch (this.size) {
|
|
797
|
-
case 'sm': {
|
|
798
|
-
return Object.assign(Object.assign({}, baseStyle), { width: '25%' });
|
|
799
|
-
}
|
|
800
|
-
case 'md': {
|
|
801
|
-
return Object.assign(Object.assign({}, baseStyle), { width: '50%' });
|
|
802
|
-
}
|
|
803
|
-
case 'lg': {
|
|
804
|
-
return Object.assign(Object.assign({}, baseStyle), { width: '100%' });
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Update the image node annotation map strategy.
|
|
812
|
-
*/
|
|
813
|
-
class ImageSetAnnotationMapStrategy extends codeBlock.ActionHandleStrategy {
|
|
814
|
-
/**
|
|
815
|
-
* @inheritDoc
|
|
816
|
-
*/
|
|
817
|
-
handleAction(action, target) {
|
|
818
|
-
const annotation = action.toAnnotation();
|
|
819
|
-
target.annotationMap.set(annotation.type, annotation);
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
/**
|
|
824
|
-
* The image node update property url strategy.
|
|
825
|
-
*/
|
|
826
|
-
class ImageUpdateUrlStrategy extends codeBlock.ActionHandleStrategy {
|
|
827
|
-
/**
|
|
828
|
-
* @inheritDoc
|
|
829
|
-
*/
|
|
830
|
-
handleAction(action, target) {
|
|
831
|
-
target.url = action.url;
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
836
|
-
var t = {};
|
|
837
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
838
|
-
t[p] = s[p];
|
|
839
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
840
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
841
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
842
|
-
t[p[i]] = s[p[i]];
|
|
843
|
-
}
|
|
844
|
-
return t;
|
|
845
|
-
};
|
|
846
|
-
/**
|
|
847
|
-
* Image node
|
|
848
|
-
*/
|
|
849
|
-
class RTEImageNode extends codeBlock.RTEDecoratorNode {
|
|
850
|
-
constructor(id, url, parentBlock, annotationMap) {
|
|
851
|
-
super(id, annotationMap);
|
|
852
|
-
this.type = codeBlock.NodeTypeEnum.IMAGE;
|
|
853
|
-
this.url = url;
|
|
854
|
-
this.parent = parentBlock;
|
|
855
|
-
}
|
|
856
|
-
/**
|
|
857
|
-
* Converts a VegaRTEImageNode into an RTEImageNode by mapping nodes and creating annotations.
|
|
858
|
-
*
|
|
859
|
-
* @param {VegaRTEImageNode} node - The node to be converted.
|
|
860
|
-
* @param {RTEImageBlock} parentBlock - The parent block
|
|
861
|
-
* @param {VegaRTETransformOptions} options - Optional transformation options.
|
|
862
|
-
* @returns {RTEImageNode} An instance of `RTEImageBlock`
|
|
863
|
-
*/
|
|
864
|
-
static from(node, parentBlock, options = { autoMatchFormat: true }) {
|
|
865
|
-
const imageNode = new RTEImageNode(node.id, node.url, parentBlock);
|
|
866
|
-
const autoMatchFormat = !!options.autoMatchFormat;
|
|
867
|
-
const _a = Object.assign({}, node.annotations), { size } = _a, otherAnnotations = __rest(_a, ["size"]);
|
|
868
|
-
const annotations = Object.assign(Object.assign({}, otherAnnotations), { size: size !== null && size !== void 0 ? size : (autoMatchFormat ? 'md' : undefined) });
|
|
869
|
-
imageNode.annotationMap = new Map(Object.keys(annotations)
|
|
870
|
-
.map((type) => {
|
|
871
|
-
if (type === 'size' || type === 'alt') {
|
|
872
|
-
return ImageAnnotation.from(annotations.size, annotations.alt);
|
|
873
|
-
}
|
|
874
|
-
return this.createAnnotationEntity(type, annotations[type]);
|
|
875
|
-
})
|
|
876
|
-
.filter(typeGuard.isNonNullable));
|
|
877
|
-
return imageNode;
|
|
878
|
-
}
|
|
879
|
-
/**
|
|
880
|
-
* @inheritDoc
|
|
881
|
-
*/
|
|
882
|
-
toJSON() {
|
|
883
|
-
const annotations = Array.from(this.annotationMap.values())
|
|
884
|
-
.filter((annotation) => annotation instanceof ImageAnnotation || annotation instanceof codeBlock.CommonAnnotation)
|
|
885
|
-
.reduce((record, annotation) => {
|
|
886
|
-
return Object.assign(Object.assign({}, record), annotation.toJSON());
|
|
887
|
-
}, {});
|
|
888
|
-
if (annotations.alt == '')
|
|
889
|
-
delete annotations.alt;
|
|
890
|
-
return Object.assign(Object.assign({ id: this.id }, (Object.keys(annotations).length > 0 ? { annotations } : {})), { type: 'image', url: this.url });
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* @inheritDoc
|
|
894
|
-
*/
|
|
895
|
-
clone(parent) {
|
|
896
|
-
return new RTEImageNode(this.id, this.url, parent, super.cloneAnnotations());
|
|
897
|
-
}
|
|
898
|
-
/**
|
|
899
|
-
* @inheritDoc
|
|
900
|
-
*/
|
|
901
|
-
toHtml() {
|
|
902
|
-
const imageAnnotation = this.getAnnotationByType(codeBlock.NodeAnnotationTypeEnum.IMAGE);
|
|
903
|
-
const attrStr = super.generateAttributeString(...[
|
|
904
|
-
imageAnnotation && imageAnnotation.alt ? `alt="${imageAnnotation.alt}"` : null,
|
|
905
|
-
`src="${this.url}"`,
|
|
906
|
-
imageAnnotation && imageAnnotation.size ? `data-size="${imageAnnotation.size}"` : null,
|
|
907
|
-
].filter(typeGuard.isNonNullable));
|
|
908
|
-
return `<img${attrStr}>`;
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* @inheritDoc
|
|
912
|
-
*/
|
|
913
|
-
doAnnotationActionApply(action) {
|
|
914
|
-
const strategy = codeBlock.ActionHandleStrategyRegistry.get(codeBlock.AnnotationAction.name, RTEImageNode.name);
|
|
915
|
-
if (strategy) {
|
|
916
|
-
strategy.execute(action, this);
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
/**
|
|
920
|
-
* @inheritDoc
|
|
921
|
-
*/
|
|
922
|
-
doModifyActionApply(action) {
|
|
923
|
-
codeBlock.ActionHandleStrategyRegistry.executeTheStrategy(action, this);
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
(() => {
|
|
927
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.UPDATE_IMAGE_NODE_URL, RTEImageNode.name, new ImageUpdateUrlStrategy());
|
|
928
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.AnnotationAction.name, RTEImageNode.name, new ImageSetAnnotationMapStrategy());
|
|
929
|
-
})();
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Split the current image block with a special position strategy.
|
|
933
|
-
*/
|
|
934
|
-
class BlockSplitWithImageNodeStrategy extends codeBlock.ActionHandleStrategy {
|
|
935
|
-
/**
|
|
936
|
-
* @inheritDoc
|
|
937
|
-
*/
|
|
938
|
-
handleAction(action, target) {
|
|
939
|
-
action.newBlock = this.splitImageNodes(action.splitPointNode, action.startOffsetOfNode, target);
|
|
940
|
-
}
|
|
941
|
-
/**
|
|
942
|
-
* The image offset should be 0 or 1
|
|
943
|
-
* <vega-rich-text-image-editor><img /></vega-rich-text-image-editor>
|
|
944
|
-
*
|
|
945
|
-
* @param {RTEImageNode} imageNode The split point image node.
|
|
946
|
-
* @param {number} imageOffset The cursor point 0 | 1.
|
|
947
|
-
* @param {RTEImageBlock} target The image block.
|
|
948
|
-
* @returns {Nullable<RTEBlock>} The new block after split
|
|
949
|
-
*/
|
|
950
|
-
splitImageNodes(imageNode, imageOffset, target) {
|
|
951
|
-
const nodesSplitIndex = target.children.indexOf(imageNode);
|
|
952
|
-
if (nodesSplitIndex > -1) {
|
|
953
|
-
const beforeNodes = target.children.slice(0, nodesSplitIndex + imageOffset);
|
|
954
|
-
const afterNodes = target.children.slice(nodesSplitIndex + imageOffset);
|
|
955
|
-
target.apply(new codeBlock.ReplaceChildNodesAction(beforeNodes));
|
|
956
|
-
const newBlock = this.cloneWithNodes(afterNodes, target);
|
|
957
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, newBlock));
|
|
958
|
-
return newBlock;
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* Creates a new RTEImageBlock instance with the provided RTEImageNode instances appended to it.
|
|
963
|
-
*
|
|
964
|
-
* @param {RTEImageNode[]} nodes - An array of RTEImageNode objects that will be used to create a new RTEImageBlock instance.
|
|
965
|
-
* @param {RTEImageBlock} target The image block.
|
|
966
|
-
* @returns {RTEImageBlock} A new `RTEImageBlock` object with the provided `nodes` appended to it.
|
|
967
|
-
*/
|
|
968
|
-
cloneWithNodes(nodes, target) {
|
|
969
|
-
const block = target.createNewImageBlock();
|
|
970
|
-
block.children = [];
|
|
971
|
-
block.apply(new codeBlock.AppendChildrenAction(nodes));
|
|
972
|
-
return block;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Break the current block after press enter, this action is similar with the SplitBlockWithNodeAction,
|
|
978
|
-
* The SplitBlockWithNodeAction split the current block to two same type blocks, but this action will create new paragraph or list item when break at start or end.
|
|
979
|
-
* The property `newBlock` use to store the new create block if need.
|
|
980
|
-
*
|
|
981
|
-
* @example currentBlock.apply(new InsertNewParagraphAction(startContainerNode, startOffset))
|
|
982
|
-
*/
|
|
983
|
-
class InsertNewParagraphAction extends codeBlock.ModifyContentAction {
|
|
984
|
-
constructor(startContainerNode, startOffset) {
|
|
985
|
-
super();
|
|
986
|
-
this.type = codeBlock.ModifyContentActionType.INSERT_NEW_PARAGRAPH;
|
|
987
|
-
this.startContainerNode = startContainerNode;
|
|
988
|
-
this.startOffset = startOffset;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
/**
|
|
993
|
-
* The image block insert line break strategy.
|
|
994
|
-
*/
|
|
995
|
-
class ImageInsertLineBreakStrategy extends codeBlock.ActionHandleStrategy {
|
|
996
|
-
/**
|
|
997
|
-
* The image block not support insert the line break node, so invoke the insert new paragraph logic directly.
|
|
998
|
-
*
|
|
999
|
-
* @param {LineBreakSingleBlockAction} action - The action instance.
|
|
1000
|
-
* @param {RTEImageBlock} target - The image block.
|
|
1001
|
-
*/
|
|
1002
|
-
handleAction(action, target) {
|
|
1003
|
-
const insertNewParagraphAction = new InsertNewParagraphAction(action.startContainerNode, action.startOffset);
|
|
1004
|
-
target.apply(insertNewParagraphAction);
|
|
1005
|
-
const newBlock = insertNewParagraphAction.newBlock;
|
|
1006
|
-
if (newBlock) {
|
|
1007
|
-
action.lineBreakNode = newBlock.children[0];
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* Insert a line break node into multiple blocks selection at special position strategy.
|
|
1014
|
-
*/
|
|
1015
|
-
class ImageInsertLineBreakWithBlocksStrategy extends codeBlock.ActionHandleStrategy {
|
|
1016
|
-
/**
|
|
1017
|
-
* @inheritDoc
|
|
1018
|
-
*/
|
|
1019
|
-
handleAction(action, target) {
|
|
1020
|
-
action.lineBreakNode = this.lineBreakMultipleBlocks(action.selectedBlocks, target);
|
|
1021
|
-
}
|
|
1022
|
-
/**
|
|
1023
|
-
* Inserts a new paragraph block with a line break after a selected block of text in a rich text editor.
|
|
1024
|
-
*
|
|
1025
|
-
* @param {RTEBlock[]} selectedBlocks - An array of RTEBlock objects that represent the blocks that have been selected for a specific action in the Rich Text Editor.
|
|
1026
|
-
* @param {RTEImageBlock} target - The image block.
|
|
1027
|
-
* @returns {Nullable<RTETextNode>} Returns a Nullable RTETextNode.
|
|
1028
|
-
*/
|
|
1029
|
-
lineBreakMultipleBlocks(selectedBlocks, target) {
|
|
1030
|
-
const newParagraph = codeBlock.RTETextBlock.from({
|
|
1031
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
1032
|
-
type: 'paragraph',
|
|
1033
|
-
nodes: [{ id: createPublicApiRuntimeMetricsSlimmer.generateUUID(), type: 'text', text: '\n' }],
|
|
1034
|
-
});
|
|
1035
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, newParagraph));
|
|
1036
|
-
const afterNodes = this.concatBlocksNodes(selectedBlocks.slice(1));
|
|
1037
|
-
if (afterNodes.length === 0 || (afterNodes[0] && afterNodes[0].text === '')) {
|
|
1038
|
-
afterNodes.push(new codeBlock.RTETextNode(createPublicApiRuntimeMetricsSlimmer.generateUUID(), '\n', newParagraph));
|
|
1039
|
-
}
|
|
1040
|
-
newParagraph.apply(new codeBlock.AppendChildrenAction(afterNodes));
|
|
1041
|
-
return newParagraph['children'][0];
|
|
1042
|
-
}
|
|
1043
|
-
/**
|
|
1044
|
-
* Concat the child nodes of multiple RTEBlocks if both are not images.
|
|
1045
|
-
*
|
|
1046
|
-
* @param {RTEBlock[]} blocks - multiple block of content in a rich text editor, such as a paragraph, heading, image, etc.
|
|
1047
|
-
* @returns {RTENode[]} Array of connected block nodes
|
|
1048
|
-
*/
|
|
1049
|
-
concatBlocksNodes(blocks) {
|
|
1050
|
-
const nodes = [];
|
|
1051
|
-
blocks.map((block) => {
|
|
1052
|
-
if (block.type !== 'image') {
|
|
1053
|
-
nodes.push(...block.children);
|
|
1054
|
-
block.parent.apply(new codeBlock.RemoveChildrenAction(block));
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
return nodes;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
/**
|
|
1062
|
-
* Insert a image node at the special position of image block.
|
|
1063
|
-
*/
|
|
1064
|
-
class ImageBlockInsertImageStrategy extends codeBlock.ActionHandleStrategy {
|
|
1065
|
-
/**
|
|
1066
|
-
* @inheritDoc
|
|
1067
|
-
*/
|
|
1068
|
-
handleAction(action, target) {
|
|
1069
|
-
const splitNode = action.splitPointNode;
|
|
1070
|
-
const startOffsetOfNode = action.startOffsetOfNode;
|
|
1071
|
-
const newImageBlock = action.imageBlockToBeInserted;
|
|
1072
|
-
const newImageNodes = newImageBlock.children;
|
|
1073
|
-
if (target.children.length < 1) {
|
|
1074
|
-
target.apply(new codeBlock.AppendChildrenAction(newImageNodes));
|
|
1075
|
-
}
|
|
1076
|
-
else if (this.isCaretPositionAtBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
1077
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, newImageBlock));
|
|
1078
|
-
}
|
|
1079
|
-
else if (this.isCaretPositionAtBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
1080
|
-
target.parent.apply(new codeBlock.InsertChildrenBeforeAction(target, newImageBlock));
|
|
1081
|
-
}
|
|
1082
|
-
else {
|
|
1083
|
-
target.apply(new codeBlock.SplitBlockWithNodeAction(splitNode, startOffsetOfNode));
|
|
1084
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, newImageBlock));
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
/**
|
|
1090
|
-
* Image block
|
|
1091
|
-
*/
|
|
1092
|
-
class RTEImageBlock extends codeBlock.RTEBlock {
|
|
1093
|
-
constructor(id) {
|
|
1094
|
-
super(id);
|
|
1095
|
-
this.type = 'image';
|
|
1096
|
-
this.children = [];
|
|
1097
|
-
}
|
|
1098
|
-
/**
|
|
1099
|
-
* Converts a VegaRTEImageBlock object into an RTEImageBlock object by mapping nodes and creating annotations.
|
|
1100
|
-
*
|
|
1101
|
-
* @param {VegaRTEImageBlock} block - The block object to be converted.
|
|
1102
|
-
* @param {VegaRTETransformOptions} options - Optional transformation options.
|
|
1103
|
-
* @returns {RTEImageBlock} An instance of `RTEImageBlock`
|
|
1104
|
-
*/
|
|
1105
|
-
static from(block, options = { autoMatchFormat: true }) {
|
|
1106
|
-
const imageBlock = new RTEImageBlock(block.id);
|
|
1107
|
-
const { annotations } = block;
|
|
1108
|
-
imageBlock.children = block.nodes.map((image) => RTEImageNode.from(image, imageBlock, options));
|
|
1109
|
-
if (annotations) {
|
|
1110
|
-
super.convertAnnotationsToMap(imageBlock.annotationMap, annotations);
|
|
1111
|
-
}
|
|
1112
|
-
return imageBlock;
|
|
1113
|
-
}
|
|
1114
|
-
/**
|
|
1115
|
-
* @inheritDoc
|
|
1116
|
-
*/
|
|
1117
|
-
toJSON() {
|
|
1118
|
-
return Object.assign(Object.assign({}, super.toJSON()), { type: 'image', nodes: this.children.map((node) => node.toJSON()) });
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* @inheritDoc
|
|
1122
|
-
*/
|
|
1123
|
-
toHtml() {
|
|
1124
|
-
const attrStr = super.generateAttributeString();
|
|
1125
|
-
const children = this.children.map((node) => node.toHtml()).join('');
|
|
1126
|
-
return super.shouldRenderAsInternalWrapper()
|
|
1127
|
-
? children
|
|
1128
|
-
: [`<div${attrStr}>`, children, `</div>`].join('');
|
|
1129
|
-
}
|
|
1130
|
-
/**
|
|
1131
|
-
* @inheritDoc
|
|
1132
|
-
*/
|
|
1133
|
-
isNotEmpty() {
|
|
1134
|
-
return this.children.length > 0 && this.children.some((node) => node.url.length > 0);
|
|
1135
|
-
}
|
|
1136
|
-
/**
|
|
1137
|
-
* @inheritDoc
|
|
1138
|
-
*/
|
|
1139
|
-
getLastNode() {
|
|
1140
|
-
return this.children[this.children.length - 1];
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* Create a new image block.
|
|
1144
|
-
*
|
|
1145
|
-
* @returns {RTEImageBlock} - The empty image block.
|
|
1146
|
-
*/
|
|
1147
|
-
createNewImageBlock() {
|
|
1148
|
-
return new RTEImageBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
1149
|
-
}
|
|
1150
|
-
/**
|
|
1151
|
-
* @inheritDoc
|
|
1152
|
-
*/
|
|
1153
|
-
clone(parent) {
|
|
1154
|
-
const clonedBlock = new RTEImageBlock(this.id);
|
|
1155
|
-
clonedBlock.children = this.children.map((node) => node.clone(clonedBlock));
|
|
1156
|
-
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
1157
|
-
clonedBlock.parent = parent;
|
|
1158
|
-
return clonedBlock;
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
(() => {
|
|
1162
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTEImageBlock.name, new codeBlock.BlockMergeNodesStrategy());
|
|
1163
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.REPLACE_CHILD_NODES, RTEImageBlock.name, new codeBlock.BlockReplaceNodesStrategy());
|
|
1164
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTEImageBlock.name, new BlockSplitWithImageNodeStrategy());
|
|
1165
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTEImageBlock.name, new ImageInsertLineBreakStrategy());
|
|
1166
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTEImageBlock.name, new ImageInsertLineBreakWithBlocksStrategy());
|
|
1167
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEImageBlock.name, new ImageBlockInsertImageStrategy());
|
|
1168
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.HorizontalAlignmentAnnotationAction.name, RTEImageBlock.name, new codeBlock.BlockUpdateHorizontalAlignmentStrategy());
|
|
1169
|
-
})();
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* HTML Block
|
|
1173
|
-
*/
|
|
1174
|
-
class RTEHtmlBlock extends codeBlock.RTEBlock {
|
|
1175
|
-
constructor(id, htmlTag) {
|
|
1176
|
-
super(id);
|
|
1177
|
-
this.type = 'html-block';
|
|
1178
|
-
this.children = [];
|
|
1179
|
-
this.htmlTag = htmlTag;
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Converts a VegaRTEHtmlBlock to an RTEHtmlBlock.
|
|
1183
|
-
*
|
|
1184
|
-
* @param {VegaRTEHtmlBlock} block - The VegaRTEHtmlBlock to convert.
|
|
1185
|
-
* @param {VegaRTETransformOptions} [options] - Optional transformation options.
|
|
1186
|
-
* @returns {RTEHtmlBlock} The converted RTEHtmlBlock.
|
|
1187
|
-
*/
|
|
1188
|
-
static from(block, options) {
|
|
1189
|
-
const htmlBlock = new RTEHtmlBlock(block.id, block.htmlTag);
|
|
1190
|
-
const { annotations } = block;
|
|
1191
|
-
if (annotations) {
|
|
1192
|
-
super.convertAnnotationsToMap(htmlBlock.annotationMap, annotations);
|
|
1193
|
-
}
|
|
1194
|
-
htmlBlock.children = this.generateBlockChildren(block.children, options, htmlBlock);
|
|
1195
|
-
return htmlBlock;
|
|
1196
|
-
}
|
|
1197
|
-
/**
|
|
1198
|
-
* @inheritDoc
|
|
1199
|
-
*/
|
|
1200
|
-
clone(parent) {
|
|
1201
|
-
const clonedBlock = new RTEHtmlBlock(this.id, this.htmlTag);
|
|
1202
|
-
clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
|
|
1203
|
-
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
1204
|
-
clonedBlock.parent = parent;
|
|
1205
|
-
return clonedBlock;
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* @inheritDoc
|
|
1209
|
-
*/
|
|
1210
|
-
getLastNode() {
|
|
1211
|
-
return this.children[this.children.length - 1].getLastNode();
|
|
1212
|
-
}
|
|
1213
|
-
/**
|
|
1214
|
-
* @inheritDoc
|
|
1215
|
-
*/
|
|
1216
|
-
isNotEmpty() {
|
|
1217
|
-
return this.children.length > 0;
|
|
1218
|
-
}
|
|
1219
|
-
/**
|
|
1220
|
-
* @inheritDoc
|
|
1221
|
-
*/
|
|
1222
|
-
toHtml() {
|
|
1223
|
-
const BlockTag = this.htmlTag;
|
|
1224
|
-
const attrStr = super.generateAttributeString();
|
|
1225
|
-
return [
|
|
1226
|
-
`<${BlockTag}${attrStr}>`,
|
|
1227
|
-
this.children.map((block) => block.toHtml()).join(''),
|
|
1228
|
-
`</${BlockTag}>`,
|
|
1229
|
-
].join('');
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* @inheritDoc
|
|
1233
|
-
*/
|
|
1234
|
-
toJSON() {
|
|
1235
|
-
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, htmlTag: this.htmlTag, children: this.children.map((child) => child.toJSON()) });
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Merge the two blocks node into first block if the two blocks nodes type is same(text node or image node)
|
|
1241
|
-
*
|
|
1242
|
-
* @example firstBlock.apply(new MergeTwoBlocksNodesAction(secondBlock))
|
|
1243
|
-
*/
|
|
1244
|
-
class MergeTwoBlocksNodesAction extends codeBlock.ModifyContentAction {
|
|
1245
|
-
constructor(blockNeedToBeMerged) {
|
|
1246
|
-
super();
|
|
1247
|
-
this.type = codeBlock.ModifyContentActionType.MERGE_TWO_BLOCKS_NODES;
|
|
1248
|
-
this.blockNeedToBeMerged = blockNeedToBeMerged;
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
/**
|
|
1253
|
-
* Block delete text or decorator node strategy.
|
|
1254
|
-
*/
|
|
1255
|
-
class BlockDeleteTextOrDecoratorNodeStrategy extends codeBlock.BlockDeleteNodeContentStrategy {
|
|
1256
|
-
/**
|
|
1257
|
-
* @inheritDoc
|
|
1258
|
-
*/
|
|
1259
|
-
handleAction(action, target) {
|
|
1260
|
-
const { startContainerNode } = action;
|
|
1261
|
-
if (!startContainerNode.isContentEditable()) {
|
|
1262
|
-
this.deleteDecoratorNodeContent(action, target);
|
|
1263
|
-
}
|
|
1264
|
-
else if (startContainerNode.isTextNode()) {
|
|
1265
|
-
this.deleteTextNodeContent(action, target);
|
|
1266
|
-
}
|
|
1267
|
-
const parent = target.parent;
|
|
1268
|
-
if (parent && target.isListItemBlock() && parent.children.length === 0) {
|
|
1269
|
-
parent.parent.apply(new codeBlock.RemoveChildrenAction(parent));
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
/**
|
|
1273
|
-
* Handle the delete text logic when press delete key.
|
|
1274
|
-
*
|
|
1275
|
-
* @param {DeleteBlockContentAction} action - ModifyContentAction
|
|
1276
|
-
* @param {RTETextBlock} target - Current text block
|
|
1277
|
-
*/
|
|
1278
|
-
deleteTextNodeContent(action, target) {
|
|
1279
|
-
const startContainerNode = action.startContainerNode;
|
|
1280
|
-
const startOffset = action.startOffset;
|
|
1281
|
-
if (startOffset !== 0 && !startContainerNode.isEmpty()) {
|
|
1282
|
-
const newText = startContainerNode.text.slice(0, startOffset - 1) +
|
|
1283
|
-
startContainerNode.text.slice(startOffset);
|
|
1284
|
-
startContainerNode.apply(new codeBlock.UpdateTextAction(newText));
|
|
1285
|
-
if (newText) {
|
|
1286
|
-
action.previousNode = startContainerNode;
|
|
1287
|
-
return;
|
|
1288
|
-
}
|
|
1289
|
-
else {
|
|
1290
|
-
const previousNode = this.getPreviousNode(startContainerNode);
|
|
1291
|
-
// Remove the last character will not delete paragraph, the paragraph will removed after press delete again
|
|
1292
|
-
if ((previousNode && previousNode.parent === target && previousNode['text'] === '\n') ||
|
|
1293
|
-
target.children.length === 1) {
|
|
1294
|
-
action.previousNode = startContainerNode;
|
|
1295
|
-
return;
|
|
1296
|
-
}
|
|
1297
|
-
else {
|
|
1298
|
-
target.apply(new codeBlock.RemoveChildrenAction(startContainerNode));
|
|
1299
|
-
action.previousNode = previousNode;
|
|
1300
|
-
return;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
else {
|
|
1305
|
-
let previousNode = this.getPreviousNode(startContainerNode);
|
|
1306
|
-
let nextNode = null;
|
|
1307
|
-
const isCurrentNodeEmpty = startContainerNode.isEmpty();
|
|
1308
|
-
if (target.children.length && previousNode && previousNode.parent !== target) {
|
|
1309
|
-
if (isCurrentNodeEmpty) {
|
|
1310
|
-
target.apply(new codeBlock.RemoveChildrenAction(startContainerNode));
|
|
1311
|
-
}
|
|
1312
|
-
if (target.type === previousNode.parent.type) {
|
|
1313
|
-
previousNode.parent.apply(new MergeTwoBlocksNodesAction(target));
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
else {
|
|
1317
|
-
if (this.isContentFirstNode(startContainerNode) && isCurrentNodeEmpty) {
|
|
1318
|
-
nextNode = this.getNextNode(startContainerNode);
|
|
1319
|
-
}
|
|
1320
|
-
/**
|
|
1321
|
-
* Remove line break
|
|
1322
|
-
*
|
|
1323
|
-
* @example caret at the first line
|
|
1324
|
-
* \n
|
|
1325
|
-
* test
|
|
1326
|
-
*/
|
|
1327
|
-
if (isCurrentNodeEmpty) {
|
|
1328
|
-
target.apply(new codeBlock.RemoveChildrenAction(startContainerNode));
|
|
1329
|
-
}
|
|
1330
|
-
/**
|
|
1331
|
-
* Remove line break or non-editable node
|
|
1332
|
-
*
|
|
1333
|
-
* @example caret at the begin of second line
|
|
1334
|
-
* \n
|
|
1335
|
-
* test
|
|
1336
|
-
* @example caret at the end of non-editable node and start of the text node
|
|
1337
|
-
* <img/><span>test</span>
|
|
1338
|
-
*/
|
|
1339
|
-
if (previousNode &&
|
|
1340
|
-
previousNode.isTextNode() &&
|
|
1341
|
-
(previousNode.isEmpty() ||
|
|
1342
|
-
(!previousNode.isContentEditable() && previousNode.parent === target))) {
|
|
1343
|
-
const shouldRemoveNode = previousNode;
|
|
1344
|
-
previousNode = this.getPreviousNode(previousNode);
|
|
1345
|
-
shouldRemoveNode.parent.apply(new codeBlock.RemoveChildrenAction(shouldRemoveNode));
|
|
1346
|
-
if (!previousNode && !isCurrentNodeEmpty) {
|
|
1347
|
-
nextNode = startContainerNode;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
// Remove the paragraph block if the content is empty
|
|
1352
|
-
// TODO: Check whether need to remove below logic because already handled the same logic in remove node strategy
|
|
1353
|
-
if (target.children.length === 0) {
|
|
1354
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
1355
|
-
}
|
|
1356
|
-
if (previousNode) {
|
|
1357
|
-
action.previousNode = previousNode;
|
|
1358
|
-
}
|
|
1359
|
-
else if (nextNode) {
|
|
1360
|
-
action.nextNode = nextNode;
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
/**
|
|
1365
|
-
* Delete decorator node content
|
|
1366
|
-
*
|
|
1367
|
-
* @param {DeleteBlockContentAction} action - The delete block content action
|
|
1368
|
-
* @param {RTEBlock} target - The target block
|
|
1369
|
-
*/
|
|
1370
|
-
deleteDecoratorNodeContent(action, target) {
|
|
1371
|
-
const startContainerNode = action.startContainerNode, startOffset = action.startOffset;
|
|
1372
|
-
let previousNode = this.getPreviousNode(startContainerNode);
|
|
1373
|
-
let nextNode = null;
|
|
1374
|
-
if (startOffset !== 0) {
|
|
1375
|
-
const parentBlock = target;
|
|
1376
|
-
if (this.isContentFirstNode(startContainerNode)) {
|
|
1377
|
-
nextNode = this.getNextNode(startContainerNode);
|
|
1378
|
-
}
|
|
1379
|
-
if (parentBlock.children.length === 1) {
|
|
1380
|
-
parentBlock.parent.apply(new codeBlock.RemoveChildrenAction(parentBlock));
|
|
1381
|
-
}
|
|
1382
|
-
else {
|
|
1383
|
-
parentBlock.apply(new codeBlock.RemoveChildrenAction(startContainerNode));
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
else {
|
|
1387
|
-
const shouldRemoveNode = previousNode;
|
|
1388
|
-
if (shouldRemoveNode && !shouldRemoveNode.isContentEditable()) {
|
|
1389
|
-
previousNode = this.getPreviousNode(shouldRemoveNode);
|
|
1390
|
-
shouldRemoveNode.parent.apply(new codeBlock.RemoveChildrenAction(shouldRemoveNode));
|
|
1391
|
-
if (!previousNode) {
|
|
1392
|
-
action.nextNode = startContainerNode;
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
if (previousNode) {
|
|
1397
|
-
action.previousNode = previousNode;
|
|
1398
|
-
}
|
|
1399
|
-
else if (nextNode) {
|
|
1400
|
-
action.nextNode = nextNode;
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
/**
|
|
1406
|
-
* Insert new paragraph into current block at special position.
|
|
1407
|
-
*/
|
|
1408
|
-
class BlockInsertNewParagraphStrategy extends codeBlock.ActionHandleStrategy {
|
|
1409
|
-
/**
|
|
1410
|
-
* @inheritDoc
|
|
1411
|
-
*/
|
|
1412
|
-
handleAction(action, target) {
|
|
1413
|
-
const { startContainerNode } = action;
|
|
1414
|
-
action.newBlock = this.breakSingleBlock(startContainerNode, action.startOffset, target);
|
|
1415
|
-
}
|
|
1416
|
-
/**
|
|
1417
|
-
* breakSingleTextBlock
|
|
1418
|
-
*
|
|
1419
|
-
* @param {RTETextNode} splitNode -
|
|
1420
|
-
* @param {number} startOffsetOfNode -
|
|
1421
|
-
* @param {RTEBlock} target -
|
|
1422
|
-
* @returns {Nullable<RTEBlock>} Nullable<RTEBlock>
|
|
1423
|
-
*/
|
|
1424
|
-
breakSingleBlock(splitNode, startOffsetOfNode, target) {
|
|
1425
|
-
const newParagraph = this.getNewParagraph(splitNode);
|
|
1426
|
-
if (newParagraph) {
|
|
1427
|
-
if (this.isCaretPositionAtBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
1428
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, newParagraph));
|
|
1429
|
-
}
|
|
1430
|
-
else if (this.isCaretPositionAtBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
1431
|
-
target.parent.apply(new codeBlock.InsertChildrenBeforeAction(target, newParagraph));
|
|
1432
|
-
}
|
|
1433
|
-
else {
|
|
1434
|
-
const splitBlockAction = new codeBlock.SplitBlockWithNodeAction(splitNode, startOffsetOfNode);
|
|
1435
|
-
target.apply(splitBlockAction);
|
|
1436
|
-
return splitBlockAction.newBlock;
|
|
1437
|
-
}
|
|
1438
|
-
return newParagraph;
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
/**
|
|
1442
|
-
* Create new Paragraph
|
|
1443
|
-
*
|
|
1444
|
-
* @param {RTENode} splitNode - The split node of the block.
|
|
1445
|
-
* @returns {Nullable<RTETextBlock>} - The new text block.
|
|
1446
|
-
*/
|
|
1447
|
-
getNewParagraph(splitNode) {
|
|
1448
|
-
const newParagraph = this.createNewParagraph('');
|
|
1449
|
-
if (newParagraph) {
|
|
1450
|
-
let textNode = newParagraph.children[0];
|
|
1451
|
-
if (splitNode.isTextNode() && splitNode.isContentEditable()) {
|
|
1452
|
-
newParagraph.children = [];
|
|
1453
|
-
textNode = splitNode.cloneWithText('');
|
|
1454
|
-
// The link annotation don't need inherited
|
|
1455
|
-
textNode.annotationMap.delete(codeBlock.NodeAnnotationTypeEnum.LINK);
|
|
1456
|
-
newParagraph.apply(new codeBlock.AppendChildrenAction([textNode]));
|
|
1457
|
-
}
|
|
1458
|
-
return newParagraph;
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Update the cursor position in the editor.
|
|
1465
|
-
*
|
|
1466
|
-
* @example richEditorRef.value.apply(new UpdateCursorPositionAction(nextFocusNode, [offset], [immediatelyRun]))
|
|
1467
|
-
*/
|
|
1468
|
-
class UpdateCursorPositionAction extends codeBlock.ModifyContentAction {
|
|
1469
|
-
/**
|
|
1470
|
-
* Set the cursor position at end of the current node.
|
|
1471
|
-
*
|
|
1472
|
-
* @param {RTENode} nextFocusNode - The rich text editor needs focus node.
|
|
1473
|
-
* @param {number} offset - The cursor offset position.
|
|
1474
|
-
* @param {boolean} immediatelyRun - Whether to immediately set the cursor position after applying it. Usually the set action will trigger after the UI renders.
|
|
1475
|
-
*/
|
|
1476
|
-
constructor(nextFocusNode, offset, immediatelyRun = false) {
|
|
1477
|
-
super();
|
|
1478
|
-
this.isFlushable = true;
|
|
1479
|
-
this.type = codeBlock.ModifyContentActionType.UPDATE_CURSOR_POSITION;
|
|
1480
|
-
this.immediatelyRun = false;
|
|
1481
|
-
this.nextFocusNode = nextFocusNode;
|
|
1482
|
-
this.offset = offset;
|
|
1483
|
-
this.immediatelyRun = immediatelyRun;
|
|
1484
|
-
// Don't flush changes if we want to immediately run the cursor update. Usually the current value is the latest value.
|
|
1485
|
-
if (this.immediatelyRun) {
|
|
1486
|
-
this.isFlushable = false;
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
/**
|
|
1492
|
-
* Insert a new node in nearest position of parent block strategy.
|
|
1493
|
-
*/
|
|
1494
|
-
class InsertNodeToNearestRootStrategy extends codeBlock.ActionHandleStrategy {
|
|
1495
|
-
/**
|
|
1496
|
-
* @inheritDoc
|
|
1497
|
-
*/
|
|
1498
|
-
handleAction(action, target) {
|
|
1499
|
-
const { rteRange, nodeToBeInserted } = action;
|
|
1500
|
-
const { startNode, startOffset } = rteRange;
|
|
1501
|
-
if (startNode) {
|
|
1502
|
-
const parent = target;
|
|
1503
|
-
if (startNode.isContentEditable() && startNode.isTextNode()) {
|
|
1504
|
-
if (startNode.text === '\n' || !startNode.text || startOffset === 0) {
|
|
1505
|
-
parent.apply(new codeBlock.InsertChildrenBeforeAction(startNode, nodeToBeInserted));
|
|
1506
|
-
}
|
|
1507
|
-
else {
|
|
1508
|
-
const startText = startNode.text.substring(0, startOffset);
|
|
1509
|
-
const endText = startNode.text.substring(startOffset);
|
|
1510
|
-
const startTextNode = startNode.cloneWithText(startText);
|
|
1511
|
-
const endTextNode = startNode.cloneWithText(endText);
|
|
1512
|
-
const insertNodes = [startTextNode, nodeToBeInserted];
|
|
1513
|
-
if (endText) {
|
|
1514
|
-
insertNodes.push(endTextNode);
|
|
1515
|
-
}
|
|
1516
|
-
parent.apply(new codeBlock.InsertChildrenBeforeAction(startNode, ...insertNodes));
|
|
1517
|
-
parent.apply(new codeBlock.RemoveChildrenAction(startNode));
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
else {
|
|
1521
|
-
if (startOffset !== 0) {
|
|
1522
|
-
parent.apply(new codeBlock.InsertChildrenAfterAction(startNode, nodeToBeInserted));
|
|
1523
|
-
}
|
|
1524
|
-
else {
|
|
1525
|
-
parent.apply(new codeBlock.InsertChildrenBeforeAction(startNode, nodeToBeInserted));
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
this.updateCursorPosition(nodeToBeInserted);
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
/**
|
|
1532
|
-
* Update the cursor position to end of the inserted node.
|
|
1533
|
-
*
|
|
1534
|
-
* @param {RTENode} node - node to find root content
|
|
1535
|
-
*/
|
|
1536
|
-
updateCursorPosition(node) {
|
|
1537
|
-
const root = this.getRootContent(node.parent);
|
|
1538
|
-
if (root) {
|
|
1539
|
-
root.apply(new UpdateCursorPositionAction(node));
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* Strategy for inserting text into a decorator node. The decorator can not edit, so we insert the text as a new child.
|
|
1546
|
-
*/
|
|
1547
|
-
class InsertTextToDecoratorNodeStrategy extends codeBlock.ActionHandleStrategy {
|
|
1548
|
-
/**
|
|
1549
|
-
* @inheritDoc
|
|
1550
|
-
*/
|
|
1551
|
-
handleAction(action, target) {
|
|
1552
|
-
const { text, offset, decoratorNode } = action;
|
|
1553
|
-
const paragraph = this.createNewParagraph(text);
|
|
1554
|
-
if (paragraph) {
|
|
1555
|
-
const newTextNode = paragraph.children[0];
|
|
1556
|
-
if (offset !== 0) {
|
|
1557
|
-
target.apply(new codeBlock.InsertChildrenAfterAction(decoratorNode, newTextNode));
|
|
1558
|
-
}
|
|
1559
|
-
else {
|
|
1560
|
-
target.apply(new codeBlock.InsertChildrenBeforeAction(decoratorNode, newTextNode));
|
|
1561
|
-
}
|
|
1562
|
-
this.setTheCursorPosition(newTextNode);
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
/**
|
|
1566
|
-
* Set the cursor position to the new text node.
|
|
1567
|
-
*
|
|
1568
|
-
* @param {RTENode} focusNode - The new text node to focus on.
|
|
1569
|
-
*/
|
|
1570
|
-
setTheCursorPosition(focusNode) {
|
|
1571
|
-
const rootContent = this.getRootContent(focusNode.parent);
|
|
1572
|
-
if (rootContent) {
|
|
1573
|
-
rootContent.apply(new UpdateCursorPositionAction(focusNode));
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* Insert new paragraph into current list item block at special position.
|
|
1580
|
-
*/
|
|
1581
|
-
class ListItemInsertNewParagraphStrategy extends codeBlock.ActionHandleStrategy {
|
|
1582
|
-
/**
|
|
1583
|
-
* @inheritDoc
|
|
1584
|
-
*/
|
|
1585
|
-
handleAction(action, target) {
|
|
1586
|
-
action.newBlock = this.breakSingleListItemBlock(action.startContainerNode, action.startOffset, target);
|
|
1587
|
-
}
|
|
1588
|
-
/**
|
|
1589
|
-
* Breaks a single list item block at a specific position.
|
|
1590
|
-
*
|
|
1591
|
-
* @param {RTETextNode} splitNode - The node that needs to be split within a list item block.
|
|
1592
|
-
* @param {number} startOffsetOfNode - The index within the `splitNode` where the break operation should occur.
|
|
1593
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
1594
|
-
* @returns {Nullable<RTEBlock>} Returns either a new `RTEListItemBlock` if the caret
|
|
1595
|
-
* position is at the end of the `splitNode`, or it returns the result of splitting the block at the
|
|
1596
|
-
* caret position if it is neither at the start nor at the end.
|
|
1597
|
-
*/
|
|
1598
|
-
breakSingleListItemBlock(splitNode, startOffsetOfNode, target) {
|
|
1599
|
-
const newListItem = target.createNewListItem();
|
|
1600
|
-
const newBreakNode = this.copyInlineStyleToNewNode(splitNode);
|
|
1601
|
-
newListItem.apply(new codeBlock.AppendChildrenAction([newBreakNode]));
|
|
1602
|
-
if (this.isCaretPositionAtBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
1603
|
-
return this.breakListItemAtEnd(newListItem, target);
|
|
1604
|
-
}
|
|
1605
|
-
else if (this.isCaretPositionAtBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
1606
|
-
target.parent.apply(new codeBlock.InsertChildrenBeforeAction(target, newListItem));
|
|
1607
|
-
}
|
|
1608
|
-
else {
|
|
1609
|
-
const splitBlockAction = new codeBlock.SplitBlockWithNodeAction(splitNode, startOffsetOfNode);
|
|
1610
|
-
target.apply(splitBlockAction);
|
|
1611
|
-
return splitBlockAction.newBlock;
|
|
1612
|
-
}
|
|
1613
|
-
return newListItem;
|
|
1614
|
-
}
|
|
1615
|
-
/**
|
|
1616
|
-
* Breaks a list item at the end and handles the insertion of a new list item or paragraph accordingly.
|
|
1617
|
-
*
|
|
1618
|
-
* @param {RTEListItemBlock} newListItem - Item that represents a new list item to be added to the existing list.
|
|
1619
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
1620
|
-
* @returns {RTEBlock} Returns a `RTEBlock`.
|
|
1621
|
-
*/
|
|
1622
|
-
breakListItemAtEnd(newListItem, target) {
|
|
1623
|
-
const lastItem = target.parent.children[target.parent.children.length - 1];
|
|
1624
|
-
const currentItemIsEmpty = target.children.length === 1 && target.children[0].isEmpty();
|
|
1625
|
-
if (target === lastItem && currentItemIsEmpty) {
|
|
1626
|
-
const parentParent = target.parent.parent;
|
|
1627
|
-
if (parentParent['type'] !== 'list-item') {
|
|
1628
|
-
const newParagraph = codeBlock.RTETextBlock.from({
|
|
1629
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
1630
|
-
type: 'paragraph',
|
|
1631
|
-
nodes: [],
|
|
1632
|
-
});
|
|
1633
|
-
newParagraph.apply(new codeBlock.AppendChildrenAction(newListItem.children));
|
|
1634
|
-
parentParent.apply(new codeBlock.InsertChildrenAfterAction(target.parent, newParagraph));
|
|
1635
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
1636
|
-
return newParagraph;
|
|
1637
|
-
}
|
|
1638
|
-
else {
|
|
1639
|
-
parentParent.parent.apply(new codeBlock.InsertChildrenAfterAction(parentParent, newListItem));
|
|
1640
|
-
target.parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
else {
|
|
1644
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, newListItem));
|
|
1645
|
-
}
|
|
1646
|
-
return newListItem;
|
|
1647
|
-
}
|
|
1648
|
-
/**
|
|
1649
|
-
* Copy the inline style to new node
|
|
1650
|
-
*
|
|
1651
|
-
* @param {RTETextNode} needCopedNode - The node that needed to be copied to
|
|
1652
|
-
* @returns {RTETextNode} Returns a `RTETextNode`.
|
|
1653
|
-
*/
|
|
1654
|
-
copyInlineStyleToNewNode(needCopedNode) {
|
|
1655
|
-
const textNode = needCopedNode.cloneWithText('');
|
|
1656
|
-
// The link annotation doesn't need to inherit
|
|
1657
|
-
textNode.annotationMap.delete(codeBlock.NodeAnnotationTypeEnum.LINK);
|
|
1658
|
-
return textNode;
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Delete the nest list block action
|
|
1664
|
-
*
|
|
1665
|
-
* @example needRemovedNestList.parent.apply(new RemoveNestListAction(needRemovedNestList))
|
|
1666
|
-
*/
|
|
1667
|
-
class RemoveNestListAction extends codeBlock.ModifyContentAction {
|
|
1668
|
-
constructor(childList) {
|
|
1669
|
-
super();
|
|
1670
|
-
this.type = codeBlock.ModifyContentActionType.DELETE_NEST_LIST;
|
|
1671
|
-
this.nestListBlockToBeRemoved = childList;
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
/**
|
|
1676
|
-
* List remove list item strategy.
|
|
1677
|
-
*/
|
|
1678
|
-
class ListRemoveListItemStrategy extends codeBlock.RemoveChildrenStrategy {
|
|
1679
|
-
/**
|
|
1680
|
-
* Remove the list item, check the list item and remove self if the list item is empty.
|
|
1681
|
-
*
|
|
1682
|
-
* @param {RemoveChildrenAction} action - The remove action instance.
|
|
1683
|
-
* @param {RTEListBlock} target - The list block.
|
|
1684
|
-
*/
|
|
1685
|
-
handleAction(action, target) {
|
|
1686
|
-
super.handleAction(action, target);
|
|
1687
|
-
const parent = target.parent;
|
|
1688
|
-
if (target.children.length === 0 && parent) {
|
|
1689
|
-
// The parent is a list item mean the current block is a nest list, so we need to use RemoveNestListAction to remove the item
|
|
1690
|
-
if (parent['type'] === 'list-item') {
|
|
1691
|
-
parent.apply(new RemoveNestListAction(target));
|
|
1692
|
-
}
|
|
1693
|
-
else {
|
|
1694
|
-
parent.apply(new codeBlock.RemoveChildrenAction(target));
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
/**
|
|
1701
|
-
* Strategy to handle the paste content into function block.
|
|
1702
|
-
*/
|
|
1703
|
-
class PasteContentStrategy extends codeBlock.ActionHandleStrategy {
|
|
1704
|
-
/**
|
|
1705
|
-
* @inheritDoc
|
|
1706
|
-
*/
|
|
1707
|
-
handleAction(action, target) {
|
|
1708
|
-
if (target.parent) {
|
|
1709
|
-
const { blocksToBeInserted, startNode, startOffset } = action;
|
|
1710
|
-
let futureFocusBlock = target;
|
|
1711
|
-
if (startNode === target.children[0] && startOffset === 0) {
|
|
1712
|
-
target.parent.apply(new codeBlock.InsertChildrenBeforeAction(target, ...blocksToBeInserted));
|
|
1713
|
-
}
|
|
1714
|
-
else {
|
|
1715
|
-
const breakAction = new codeBlock.SplitBlockWithNodeAction(startNode, startOffset);
|
|
1716
|
-
target.apply(breakAction);
|
|
1717
|
-
target.parent.apply(new codeBlock.InsertChildrenAfterAction(target, ...blocksToBeInserted));
|
|
1718
|
-
futureFocusBlock = breakAction.newBlock;
|
|
1719
|
-
}
|
|
1720
|
-
action.futureFocusBlock = futureFocusBlock;
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
/**
|
|
1726
|
-
* Manager class for registering DTO action strategies.
|
|
1727
|
-
*/
|
|
1728
|
-
class RTEDTOActionStrategyManager {
|
|
1729
|
-
/**
|
|
1730
|
-
* Registers basic strategies for a given DTO class.
|
|
1731
|
-
*
|
|
1732
|
-
* @param {string} dtoClassName - The name of the RTE block class name.
|
|
1733
|
-
*/
|
|
1734
|
-
registerBlockBasicStrategies(dtoClassName) {
|
|
1735
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_CHILDREN, dtoClassName, dtoClassName === RTEListBlock.name
|
|
1736
|
-
? new ListRemoveListItemStrategy()
|
|
1737
|
-
: new codeBlock.RemoveChildrenStrategy());
|
|
1738
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.APPEND_CHILDREN, dtoClassName, new AppendChildrenStrategy());
|
|
1739
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_CHILDREN_BEFORE, dtoClassName, new InsertChildrenBeforeStrategy());
|
|
1740
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_CHILDREN_AFTER, dtoClassName, new InsertChildrenAfterStrategy());
|
|
1741
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_BLOCK_CONTENT, dtoClassName, new BlockDeleteTextOrDecoratorNodeStrategy());
|
|
1742
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_NEW_PARAGRAPH, dtoClassName, dtoClassName === RTEListItemBlock.name
|
|
1743
|
-
? new ListItemInsertNewParagraphStrategy()
|
|
1744
|
-
: new BlockInsertNewParagraphStrategy());
|
|
1745
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_TEXT_TO_DECORATOR_NODE, dtoClassName, new InsertTextToDecoratorNodeStrategy());
|
|
1746
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_NODE_TO_NEAREST_ROOT, dtoClassName, new InsertNodeToNearestRootStrategy());
|
|
1747
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.PASTE_CONTENT, dtoClassName, new PasteContentStrategy());
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
const RTEDTOActionStrategyManager$1 = new RTEDTOActionStrategyManager();
|
|
1751
|
-
|
|
1752
|
-
/**
|
|
1753
|
-
* Abstract class to define handler for generate the annotations
|
|
1754
|
-
*/
|
|
1755
|
-
class AnnotationGeneratorStrategyAbstract {
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
/** Handle bold annotation */
|
|
1759
|
-
class BoldAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
1760
|
-
/**
|
|
1761
|
-
* @inheritDoc
|
|
1762
|
-
*/
|
|
1763
|
-
canHandle(targetDto) {
|
|
1764
|
-
return targetDto.name === 'RTETextNode';
|
|
1765
|
-
}
|
|
1766
|
-
/**
|
|
1767
|
-
* Handle annotation.
|
|
1768
|
-
*
|
|
1769
|
-
* @param {HTMLElement} element - Current elements.
|
|
1770
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
1771
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
1772
|
-
*/
|
|
1773
|
-
handle(element, parentAnnotations = {}) {
|
|
1774
|
-
return this.isBold(element) || parentAnnotations.bold ? { bold: true } : {};
|
|
1775
|
-
}
|
|
1776
|
-
/**
|
|
1777
|
-
* Is bold element.
|
|
1778
|
-
*
|
|
1779
|
-
* @param {HTMLElement} element - current element.
|
|
1780
|
-
* @returns {boolean} - boolean.
|
|
1781
|
-
*/
|
|
1782
|
-
isBold(element) {
|
|
1783
|
-
return (element.nodeName === 'STRONG' ||
|
|
1784
|
-
element.nodeName === 'B' ||
|
|
1785
|
-
element.style.fontWeight === 'bold' ||
|
|
1786
|
-
element.style.fontWeight === '700' ||
|
|
1787
|
-
element.classList.contains('v-rte--bold'));
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
/** Handle custom attribute annotation */
|
|
1792
|
-
class CustomAttributeAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
1793
|
-
/**
|
|
1794
|
-
* Can be handle.
|
|
1795
|
-
*
|
|
1796
|
-
* @param {RTEDtoClassPrototype} targetDto - Target DTO.
|
|
1797
|
-
* @param {HtmlElementToAnnotationGenerateOptions} [options] - Options for annotation generator.
|
|
1798
|
-
* @returns {boolean} - .
|
|
1799
|
-
*/
|
|
1800
|
-
canHandle(targetDto, options) {
|
|
1801
|
-
return !options.skipCustomAnnotations && !!targetDto;
|
|
1802
|
-
}
|
|
1803
|
-
/**
|
|
1804
|
-
* Handle annotation.
|
|
1805
|
-
*
|
|
1806
|
-
* @param {HTMLElement} element - Current elements.
|
|
1807
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
1808
|
-
*/
|
|
1809
|
-
handle(element) {
|
|
1810
|
-
const attributes = this.getAttributes(element);
|
|
1811
|
-
return Object.keys(attributes).length > 0 ? { customAttribute: attributes } : {};
|
|
1812
|
-
}
|
|
1813
|
-
/**
|
|
1814
|
-
* Obtain the custom attributes of element, excluding 'style' and 'class'.
|
|
1815
|
-
*
|
|
1816
|
-
* @param {HTMLElement} element - current element.
|
|
1817
|
-
* @returns {Record<string, string>} - Record<string, string>.
|
|
1818
|
-
*/
|
|
1819
|
-
getAttributes(element) {
|
|
1820
|
-
const attributeNames = element
|
|
1821
|
-
.getAttributeNames()
|
|
1822
|
-
.filter((attr) => attr !== 'style' && attr !== 'class' && this.isValidAttr(attr));
|
|
1823
|
-
return attributeNames.reduce((acc, item) => {
|
|
1824
|
-
acc[item] = element.getAttribute(item);
|
|
1825
|
-
return acc;
|
|
1826
|
-
}, {});
|
|
1827
|
-
}
|
|
1828
|
-
/**
|
|
1829
|
-
* Check if the attribute name is valid.
|
|
1830
|
-
*
|
|
1831
|
-
* @param {string} attr - Attribute name.
|
|
1832
|
-
* @returns {boolean} - True if valid, false otherwise.
|
|
1833
|
-
*/
|
|
1834
|
-
isValidAttr(attr) {
|
|
1835
|
-
return /^[a-zA-Z_][\w-]*$/.test(attr);
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
/** Handle custom class annotation */
|
|
1840
|
-
class CustomClassAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
1841
|
-
/**
|
|
1842
|
-
* Can be handle.
|
|
1843
|
-
*
|
|
1844
|
-
* @param {RTEDtoClassPrototype} targetDto - Target DTO.
|
|
1845
|
-
* @param {HtmlElementToAnnotationGenerateOptions} [options] - Options for annotation generator.
|
|
1846
|
-
* @returns {boolean} - .
|
|
1847
|
-
*/
|
|
1848
|
-
canHandle(targetDto, options) {
|
|
1849
|
-
return !options.skipCustomAnnotations && !!targetDto;
|
|
1850
|
-
}
|
|
1851
|
-
/**
|
|
1852
|
-
* Handle annotation.
|
|
1853
|
-
*
|
|
1854
|
-
* @param {HTMLElement} element - Current elements.
|
|
1855
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
1856
|
-
*/
|
|
1857
|
-
handle(element) {
|
|
1858
|
-
const classes = this.getCustomClass(element);
|
|
1859
|
-
return classes.length > 0 ? { customClass: classes } : {};
|
|
1860
|
-
}
|
|
1861
|
-
/**
|
|
1862
|
-
* Get the custom class
|
|
1863
|
-
*
|
|
1864
|
-
* @param {HTMLElement} element - current element.
|
|
1865
|
-
* @returns {string[]} - the class after .
|
|
1866
|
-
*/
|
|
1867
|
-
getCustomClass(element) {
|
|
1868
|
-
return element.classList
|
|
1869
|
-
.toString()
|
|
1870
|
-
.split(' ')
|
|
1871
|
-
.filter((item) => !item.includes('v-rte') && item !== '');
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
/** Handle custom style annotation */
|
|
1876
|
-
class CustomStyleAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
1877
|
-
/**
|
|
1878
|
-
* Can be handle.
|
|
1879
|
-
*
|
|
1880
|
-
* @param {RTEDtoClassPrototype} targetDto - Target DTO.
|
|
1881
|
-
* @param {HtmlElementToAnnotationGenerateOptions} [options] - Options for annotation generator.
|
|
1882
|
-
* @returns {boolean} - .
|
|
1883
|
-
*/
|
|
1884
|
-
canHandle(targetDto, options) {
|
|
1885
|
-
return !options.skipCustomAnnotations && !!targetDto;
|
|
1886
|
-
}
|
|
1887
|
-
/**
|
|
1888
|
-
* Handle annotation.
|
|
1889
|
-
*
|
|
1890
|
-
* @param {HTMLElement} element - Current elements.
|
|
1891
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
1892
|
-
*/
|
|
1893
|
-
handle(element) {
|
|
1894
|
-
const styles = this.generateCustomStyleAnnotations(element);
|
|
1895
|
-
return Object.keys(styles).length > 0 ? { customStyle: styles } : {};
|
|
1896
|
-
}
|
|
1897
|
-
/**
|
|
1898
|
-
* Obtain and format the style of element.
|
|
1899
|
-
*
|
|
1900
|
-
* @param {HTMLElement} element - current element.
|
|
1901
|
-
* @returns {AnnotationStyle} - Record<string, string>.
|
|
1902
|
-
*/
|
|
1903
|
-
generateCustomStyleAnnotations(element) {
|
|
1904
|
-
const customStyle = element.getAttribute('style');
|
|
1905
|
-
if (!customStyle)
|
|
1906
|
-
return {};
|
|
1907
|
-
const styleValue = customStyle.split(';').filter(Boolean);
|
|
1908
|
-
return styleValue
|
|
1909
|
-
.filter((key) => key !== ' ')
|
|
1910
|
-
.map((key) => {
|
|
1911
|
-
// to remove redundant quote pairs if needed, for example: ['fontFamily: "Roboto Mono"'] will be updated to ['fontFamily: Roboto Mono']
|
|
1912
|
-
const styleObject = key.replace(/(['"])(.*?)\1/g, '$2').split(':');
|
|
1913
|
-
const styleKey = string.dashCaseToCamel(styleObject[0].trim());
|
|
1914
|
-
return {
|
|
1915
|
-
[styleKey]: styleObject[1].trim().replace(';', ''),
|
|
1916
|
-
};
|
|
1917
|
-
})
|
|
1918
|
-
.reduce((current, obj) => (Object.assign(Object.assign({}, current), obj)), {});
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
/** Handle indent annotation */
|
|
1923
|
-
class IndentAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
1924
|
-
/**
|
|
1925
|
-
* @inheritDoc
|
|
1926
|
-
*/
|
|
1927
|
-
canHandle(targetDto) {
|
|
1928
|
-
return ['RTETextBlock', 'RTEListItemBlock', 'RTEListBlock'].includes(targetDto.name);
|
|
1929
|
-
}
|
|
1930
|
-
/**
|
|
1931
|
-
* Handle annotation.
|
|
1932
|
-
*
|
|
1933
|
-
* @param {HTMLElement} element - Current elements.
|
|
1934
|
-
* @returns {VegaRTEBlockAnnotations} - Annotation.
|
|
1935
|
-
*/
|
|
1936
|
-
handle(element) {
|
|
1937
|
-
const indent = this.getIndent(element);
|
|
1938
|
-
return indent ? { indent: indent } : {};
|
|
1939
|
-
}
|
|
1940
|
-
/**
|
|
1941
|
-
* Get indent of current element.
|
|
1942
|
-
*
|
|
1943
|
-
* @param {HTMLElement} element - current element.
|
|
1944
|
-
* @returns {Nullable<number>} - Indent.
|
|
1945
|
-
*/
|
|
1946
|
-
getIndent(element) {
|
|
1947
|
-
const style = element.style;
|
|
1948
|
-
let marginLeft;
|
|
1949
|
-
if (style.marginLeft) {
|
|
1950
|
-
marginLeft = style.marginLeft;
|
|
1951
|
-
}
|
|
1952
|
-
else if (style.margin) {
|
|
1953
|
-
const margins = style.margin.split(' ');
|
|
1954
|
-
switch (margins.length) {
|
|
1955
|
-
case 4:
|
|
1956
|
-
marginLeft = margins[3];
|
|
1957
|
-
break;
|
|
1958
|
-
case 2:
|
|
1959
|
-
case 3:
|
|
1960
|
-
marginLeft = margins[1];
|
|
1961
|
-
break;
|
|
1962
|
-
default:
|
|
1963
|
-
marginLeft = margins[0];
|
|
1964
|
-
break;
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
else {
|
|
1968
|
-
return null;
|
|
1969
|
-
}
|
|
1970
|
-
const marginLeftNumber = Number(marginLeft.replace('px', ''));
|
|
1971
|
-
return marginLeftNumber && marginLeftNumber >= 0 ? Math.floor(marginLeftNumber / 16) : null;
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
/** Handle text align annotation */
|
|
1976
|
-
class TextAlignAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
1977
|
-
/**
|
|
1978
|
-
* Can be handle.
|
|
1979
|
-
*
|
|
1980
|
-
* @param {RTEDtoClassPrototype} targetDto - Target DTO.
|
|
1981
|
-
* @returns {boolean} - .
|
|
1982
|
-
*/
|
|
1983
|
-
canHandle(targetDto) {
|
|
1984
|
-
return ['RTETextBlock', 'RTEListItemBlock', 'RTEListBlock'].includes(targetDto.name);
|
|
1985
|
-
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Handle annotation.
|
|
1988
|
-
*
|
|
1989
|
-
* @param {HTMLElement} element - Current elements.
|
|
1990
|
-
* @returns {VegaRTEBlockAnnotations} - Annotation.
|
|
1991
|
-
*/
|
|
1992
|
-
handle(element) {
|
|
1993
|
-
const textAlign = this.getTextAlign(element);
|
|
1994
|
-
return textAlign ? { textAlign: textAlign } : {};
|
|
1995
|
-
}
|
|
1996
|
-
/**
|
|
1997
|
-
* Get text align of current element.
|
|
1998
|
-
*
|
|
1999
|
-
* @param {HTMLElement} element - current element.
|
|
2000
|
-
* @returns {Nullable<VegaRTEBlockAlignment>} - Text align.
|
|
2001
|
-
*/
|
|
2002
|
-
getTextAlign(element) {
|
|
2003
|
-
const classList = element.classList;
|
|
2004
|
-
if (classList.contains(`v-rte--horizontal-alignment-left`)) {
|
|
2005
|
-
return 'left';
|
|
2006
|
-
}
|
|
2007
|
-
else if (classList.contains(`v-rte--horizontal-alignment-center`)) {
|
|
2008
|
-
return 'center';
|
|
2009
|
-
}
|
|
2010
|
-
else if (classList.contains(`v-rte--horizontal-alignment-right`)) {
|
|
2011
|
-
return 'right';
|
|
2012
|
-
}
|
|
2013
|
-
else if (classList.contains(`v-rte--horizontal-alignment-justify`)) {
|
|
2014
|
-
return 'justify';
|
|
2015
|
-
}
|
|
2016
|
-
const style = element.style;
|
|
2017
|
-
switch (style.textAlign) {
|
|
2018
|
-
case 'center':
|
|
2019
|
-
return 'center';
|
|
2020
|
-
case 'right':
|
|
2021
|
-
return 'right';
|
|
2022
|
-
case 'justify':
|
|
2023
|
-
return 'justify';
|
|
2024
|
-
case 'left':
|
|
2025
|
-
return 'left';
|
|
2026
|
-
default:
|
|
2027
|
-
return null;
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
/** Handle code annotation */
|
|
2033
|
-
class CodeAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2034
|
-
/**
|
|
2035
|
-
* @inheritDoc
|
|
2036
|
-
*/
|
|
2037
|
-
canHandle(targetDto) {
|
|
2038
|
-
return targetDto.name === 'RTETextNode';
|
|
2039
|
-
}
|
|
2040
|
-
/**
|
|
2041
|
-
* Handle annotation.
|
|
2042
|
-
*
|
|
2043
|
-
* @param {HTMLElement} element - Current elements.
|
|
2044
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
2045
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
2046
|
-
*/
|
|
2047
|
-
handle(element, parentAnnotations = {}) {
|
|
2048
|
-
return this.isCode(element) || parentAnnotations.code ? { code: true } : {};
|
|
2049
|
-
}
|
|
2050
|
-
/**
|
|
2051
|
-
* Is code element.
|
|
2052
|
-
*
|
|
2053
|
-
* @param {HTMLElement} element - current element.
|
|
2054
|
-
* @returns {boolean} - boolean.
|
|
2055
|
-
*/
|
|
2056
|
-
isCode(element) {
|
|
2057
|
-
return (element.classList.contains('v-rte--code') ||
|
|
2058
|
-
element.nodeName === 'CODE' ||
|
|
2059
|
-
element.nodeName === 'PRE' ||
|
|
2060
|
-
element.style.fontFamily === 'monospace' ||
|
|
2061
|
-
element.style.fontFamily.replace(/["']/g, '') === 'Roboto Mono');
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
/** Handle color annotation */
|
|
2066
|
-
class ColorAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2067
|
-
/**
|
|
2068
|
-
* @inheritDoc
|
|
2069
|
-
*/
|
|
2070
|
-
canHandle(targetDto) {
|
|
2071
|
-
return targetDto.name === 'RTETextNode';
|
|
2072
|
-
}
|
|
2073
|
-
/**
|
|
2074
|
-
* Handle annotation.
|
|
2075
|
-
*
|
|
2076
|
-
* @param {HTMLElement} element - Current elements.
|
|
2077
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
2078
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
2079
|
-
*/
|
|
2080
|
-
handle(element, parentAnnotations = {}) {
|
|
2081
|
-
const color = this.getColor(element) || parentAnnotations.textColor;
|
|
2082
|
-
return color ? { textColor: color } : {};
|
|
2083
|
-
}
|
|
2084
|
-
/**
|
|
2085
|
-
* Get current color of element.
|
|
2086
|
-
*
|
|
2087
|
-
* @param {HTMLElement} element - current element.
|
|
2088
|
-
* @returns {Nullable<string>} - color.
|
|
2089
|
-
*/
|
|
2090
|
-
getColor(element) {
|
|
2091
|
-
var _a;
|
|
2092
|
-
const color = element.style.color;
|
|
2093
|
-
const hexColor = (_a = ui.rgbToHex(color)) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
2094
|
-
if (hexColor) {
|
|
2095
|
-
// We don't display default text color as inline style, because we defined it in the vega-rich-text-content.scss.
|
|
2096
|
-
const colorSchema = codeBlock.RTE_TEXT_COLORS.filter((item) => item.key !== codeBlock.RTE_DEFAULT_TEXT_COLOR.key).find((schema) => schema.light === hexColor || schema.dark === hexColor);
|
|
2097
|
-
if (colorSchema)
|
|
2098
|
-
return colorSchema.key;
|
|
2099
|
-
return null;
|
|
2100
|
-
}
|
|
2101
|
-
else {
|
|
2102
|
-
for (const color of codeBlock.RTE_TEXT_COLORS) {
|
|
2103
|
-
if (element.style.color.includes(color.key)) {
|
|
2104
|
-
return color.key;
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
return null;
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
/** Handle italic annotation */
|
|
2113
|
-
class ItalicAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2114
|
-
/**
|
|
2115
|
-
* @inheritDoc
|
|
2116
|
-
*/
|
|
2117
|
-
canHandle(targetDto) {
|
|
2118
|
-
return targetDto.name === 'RTETextNode';
|
|
2119
|
-
}
|
|
2120
|
-
/**
|
|
2121
|
-
* Handle annotation.
|
|
2122
|
-
*
|
|
2123
|
-
* @param {HTMLElement} element - Current elements.
|
|
2124
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
2125
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
2126
|
-
*/
|
|
2127
|
-
handle(element, parentAnnotations = {}) {
|
|
2128
|
-
return this.isItalic(element) || parentAnnotations.italic ? { italic: true } : {};
|
|
2129
|
-
}
|
|
2130
|
-
/**
|
|
2131
|
-
* Is italic element.
|
|
2132
|
-
*
|
|
2133
|
-
* @param {HTMLElement} element - current element.
|
|
2134
|
-
* @returns {boolean} - boolean.
|
|
2135
|
-
*/
|
|
2136
|
-
isItalic(element) {
|
|
2137
|
-
return (element.nodeName === 'I' ||
|
|
2138
|
-
element.style.fontStyle === 'italic' ||
|
|
2139
|
-
element.nodeName === 'EM' ||
|
|
2140
|
-
element.classList.contains('v-rte--italic'));
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
-
/** Handle link annotation */
|
|
2145
|
-
class LinkAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2146
|
-
constructor() {
|
|
2147
|
-
super(...arguments);
|
|
2148
|
-
this.handlers = [
|
|
2149
|
-
new CustomAttributeAnnotationHandler(),
|
|
2150
|
-
new CustomClassAnnotationHandler(),
|
|
2151
|
-
new CustomStyleAnnotationHandler(),
|
|
2152
|
-
];
|
|
2153
|
-
}
|
|
2154
|
-
/**
|
|
2155
|
-
* Can be handle.
|
|
2156
|
-
*
|
|
2157
|
-
* @param {RTEDtoClassPrototype} targetDto - Target DTO.
|
|
2158
|
-
* @returns {boolean} - .
|
|
2159
|
-
*/
|
|
2160
|
-
canHandle(targetDto) {
|
|
2161
|
-
return targetDto.name === 'RTETextNode';
|
|
2162
|
-
}
|
|
2163
|
-
/**
|
|
2164
|
-
* Handle annotation.
|
|
2165
|
-
*
|
|
2166
|
-
* @param {HTMLElement} element - Current elements.
|
|
2167
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
2168
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
2169
|
-
*/
|
|
2170
|
-
handle(element, parentAnnotations = {}) {
|
|
2171
|
-
if (parentAnnotations.link)
|
|
2172
|
-
return { link: parentAnnotations.link };
|
|
2173
|
-
return element.tagName === 'A' ? { link: this.generateLinkAnnotations(element) } : {};
|
|
2174
|
-
}
|
|
2175
|
-
/**
|
|
2176
|
-
* Generate link annotations.
|
|
2177
|
-
*
|
|
2178
|
-
* @param {HTMLElement} element - Current elements.
|
|
2179
|
-
* @returns {VegaRTELink} - link annotations.
|
|
2180
|
-
*/
|
|
2181
|
-
generateLinkAnnotations(element) {
|
|
2182
|
-
const annotations = {
|
|
2183
|
-
href: element.getAttribute('href') || '',
|
|
2184
|
-
groupKey: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2185
|
-
};
|
|
2186
|
-
this.handlers.forEach((handler) => {
|
|
2187
|
-
Object.assign(annotations, handler.handle(element));
|
|
2188
|
-
});
|
|
2189
|
-
return annotations;
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
/** Handle strike through annotation */
|
|
2194
|
-
class StrikeThroughAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2195
|
-
/**
|
|
2196
|
-
* @inheritDoc
|
|
2197
|
-
*/
|
|
2198
|
-
canHandle(targetDto) {
|
|
2199
|
-
return targetDto.name === 'RTETextNode';
|
|
2200
|
-
}
|
|
2201
|
-
/**
|
|
2202
|
-
* Handle annotation.
|
|
2203
|
-
*
|
|
2204
|
-
* @param {HTMLElement} element - Current elements.
|
|
2205
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
2206
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
2207
|
-
*/
|
|
2208
|
-
handle(element, parentAnnotations = {}) {
|
|
2209
|
-
return this.isStrikethrough(element) || parentAnnotations.strikethrough
|
|
2210
|
-
? { strikethrough: true }
|
|
2211
|
-
: {};
|
|
2212
|
-
}
|
|
2213
|
-
/**
|
|
2214
|
-
* Is strikethrough element.
|
|
2215
|
-
*
|
|
2216
|
-
* @param {HTMLElement} element - current element.
|
|
2217
|
-
* @returns {boolean} - boolean.
|
|
2218
|
-
*/
|
|
2219
|
-
isStrikethrough(element) {
|
|
2220
|
-
return (element.style.textDecoration.includes('line-through') ||
|
|
2221
|
-
element.nodeName === 'S' ||
|
|
2222
|
-
element.nodeName === 'DEL' ||
|
|
2223
|
-
element.classList.contains('v-rte--strikethrough'));
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
/** Handle underline annotation */
|
|
2228
|
-
class UnderlineAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2229
|
-
/**
|
|
2230
|
-
* @inheritDoc
|
|
2231
|
-
*/
|
|
2232
|
-
canHandle(targetDto) {
|
|
2233
|
-
return targetDto.name === 'RTETextNode';
|
|
2234
|
-
}
|
|
2235
|
-
/**
|
|
2236
|
-
* Handle annotation.
|
|
2237
|
-
*
|
|
2238
|
-
* @param {HTMLElement} element - Current elements.
|
|
2239
|
-
* @param {VegaRTETextAnnotations} parentAnnotations - Parent annotations.
|
|
2240
|
-
* @returns {VegaRTETextAnnotations} - Annotation.
|
|
2241
|
-
*/
|
|
2242
|
-
handle(element, parentAnnotations = {}) {
|
|
2243
|
-
return this.isUnderline(element) || parentAnnotations.underline ? { underline: true } : {};
|
|
2244
|
-
}
|
|
2245
|
-
/**
|
|
2246
|
-
* Is underline element.
|
|
2247
|
-
*
|
|
2248
|
-
* @param {HTMLElement} element - current element.
|
|
2249
|
-
* @returns {boolean} - boolean.
|
|
2250
|
-
*/
|
|
2251
|
-
isUnderline(element) {
|
|
2252
|
-
return (element.style.textDecoration.includes('underline') ||
|
|
2253
|
-
element.nodeName === 'U' ||
|
|
2254
|
-
element.nodeName === 'INS' ||
|
|
2255
|
-
element.classList.contains('v-rte--underline'));
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
/** Handle text style annotation */
|
|
2260
|
-
class TextStyleAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2261
|
-
/**
|
|
2262
|
-
* Can be handle.
|
|
2263
|
-
*
|
|
2264
|
-
* @param {RTEDtoClassPrototype} targetDto - Target DTO.
|
|
2265
|
-
* @param {HtmlElementToAnnotationGenerateOptions} options - Options for annotation generator.
|
|
2266
|
-
* @returns {boolean} - .
|
|
2267
|
-
*/
|
|
2268
|
-
canHandle(targetDto, options) {
|
|
2269
|
-
return !!options.autoMatchFormat && targetDto.name === 'RTETextBlock';
|
|
2270
|
-
}
|
|
2271
|
-
/**
|
|
2272
|
-
* Handle annotation.
|
|
2273
|
-
*
|
|
2274
|
-
* @param {HTMLElement} element - Current elements.
|
|
2275
|
-
* @returns {VegaRTETextBlockAnnotations} - Annotation.
|
|
2276
|
-
*/
|
|
2277
|
-
handle(element) {
|
|
2278
|
-
const textStyle = this.getTextStyle(element);
|
|
2279
|
-
return textStyle ? { textStyle: textStyle } : {};
|
|
2280
|
-
}
|
|
2281
|
-
/**
|
|
2282
|
-
* Get the node type of element. The element type is determined in the following
|
|
2283
|
-
* order: "data-type" attribute, node name, font size and class name.
|
|
2284
|
-
*
|
|
2285
|
-
* @param {HTMLElement} element - element.
|
|
2286
|
-
* @returns {Nullable<VegaRTETextStyleType>} - node type.
|
|
2287
|
-
*/
|
|
2288
|
-
getTextStyle(element) {
|
|
2289
|
-
const byDataType = this.getElementTypeByDataType(element);
|
|
2290
|
-
if (byDataType)
|
|
2291
|
-
return byDataType;
|
|
2292
|
-
const byNodeName = this.getElementTypeByNodeName(element);
|
|
2293
|
-
if (byNodeName)
|
|
2294
|
-
return byNodeName;
|
|
2295
|
-
const byFontSize = this.getElementTypeByFontSize(element);
|
|
2296
|
-
if (byFontSize)
|
|
2297
|
-
return byFontSize;
|
|
2298
|
-
const byClassName = this.getElementTypeByClassName(element);
|
|
2299
|
-
if (byClassName)
|
|
2300
|
-
return byClassName;
|
|
2301
|
-
return null;
|
|
2302
|
-
}
|
|
2303
|
-
/**
|
|
2304
|
-
* Get the element type by data-type attribute.
|
|
2305
|
-
*
|
|
2306
|
-
* @param {HTMLElement} element - element.
|
|
2307
|
-
* @returns {Nullable<VegaRTETextStyleType>} - element type or null if not found.
|
|
2308
|
-
*/
|
|
2309
|
-
getElementTypeByDataType(element) {
|
|
2310
|
-
if (element.nodeType !== Node.TEXT_NODE && element.hasAttribute('data-type')) {
|
|
2311
|
-
return element.getAttribute('data-type');
|
|
2312
|
-
}
|
|
2313
|
-
return null;
|
|
2314
|
-
}
|
|
2315
|
-
/**
|
|
2316
|
-
* Get the element type by font size.
|
|
2317
|
-
*
|
|
2318
|
-
* @param {HTMLElement} element - element.
|
|
2319
|
-
* @returns {Nullable<VegaRTETextStyleType>} - element type or null if not found.
|
|
2320
|
-
*/
|
|
2321
|
-
getElementTypeByFontSize(element) {
|
|
2322
|
-
var _a;
|
|
2323
|
-
switch ((_a = element.style) === null || _a === void 0 ? void 0 : _a.fontSize) {
|
|
2324
|
-
case '36px':
|
|
2325
|
-
return 'title';
|
|
2326
|
-
case '28px':
|
|
2327
|
-
return 'subtitle';
|
|
2328
|
-
case '22px':
|
|
2329
|
-
return 'heading-1';
|
|
2330
|
-
case '20px':
|
|
2331
|
-
return 'heading-2';
|
|
2332
|
-
case '18px':
|
|
2333
|
-
return 'heading-3';
|
|
2334
|
-
default:
|
|
2335
|
-
return null;
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
/**
|
|
2339
|
-
* Get the element type by node name.
|
|
2340
|
-
*
|
|
2341
|
-
* @param {HTMLElement} element - element.
|
|
2342
|
-
* @returns {Nullable<VegaRTETextStyleType>} - element type or null if not found.
|
|
2343
|
-
*/
|
|
2344
|
-
getElementTypeByNodeName(element) {
|
|
2345
|
-
switch (element.nodeName) {
|
|
2346
|
-
case 'H1':
|
|
2347
|
-
return 'heading-1';
|
|
2348
|
-
case 'H2':
|
|
2349
|
-
return 'heading-2';
|
|
2350
|
-
case 'H3':
|
|
2351
|
-
return 'heading-3';
|
|
2352
|
-
case 'H4':
|
|
2353
|
-
return 'heading-4';
|
|
2354
|
-
case 'H5':
|
|
2355
|
-
return 'heading-5';
|
|
2356
|
-
case 'H6':
|
|
2357
|
-
return 'heading-6';
|
|
2358
|
-
default:
|
|
2359
|
-
return null;
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
/**
|
|
2363
|
-
* Get the element type by class name.
|
|
2364
|
-
*
|
|
2365
|
-
* @param {HTMLElement} element - element.
|
|
2366
|
-
* @returns {Nullable<VegaRTETextStyleType>} - element type or null if not found.
|
|
2367
|
-
*/
|
|
2368
|
-
getElementTypeByClassName(element) {
|
|
2369
|
-
if (element.className) {
|
|
2370
|
-
const match = /\bv-rte--text-style-(title|subtitle|heading-1|heading-2|heading-3|paragraph)\b/.exec(element.className);
|
|
2371
|
-
if (match) {
|
|
2372
|
-
return match[1];
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
return null;
|
|
2376
|
-
}
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
/** Handle image size annotation */
|
|
2380
|
-
class ImageSizeAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2381
|
-
/**
|
|
2382
|
-
* @inheritDoc
|
|
2383
|
-
*/
|
|
2384
|
-
canHandle(targetDto) {
|
|
2385
|
-
return targetDto.name === 'RTEImageNode';
|
|
2386
|
-
}
|
|
2387
|
-
/**
|
|
2388
|
-
* Handle annotation.
|
|
2389
|
-
*
|
|
2390
|
-
* @param {HTMLElement} element - Current elements.
|
|
2391
|
-
* @returns {VegaRTEImageAnnotations} - Annotation.
|
|
2392
|
-
*/
|
|
2393
|
-
handle(element) {
|
|
2394
|
-
const size = this.getImageSize(element);
|
|
2395
|
-
return size ? { size: size } : {};
|
|
2396
|
-
}
|
|
2397
|
-
/**
|
|
2398
|
-
* Determine the image display size based on the width of the current element.
|
|
2399
|
-
*
|
|
2400
|
-
* @param {HTMLElement} element - current element.
|
|
2401
|
-
* @returns {Nullable<VegaRichTextImageEditorSizeType>} -Image size, default 'md'.
|
|
2402
|
-
*/
|
|
2403
|
-
getImageSize(element) {
|
|
2404
|
-
if (element.getAttribute('data-size')) {
|
|
2405
|
-
return element.getAttribute('data-size');
|
|
2406
|
-
}
|
|
2407
|
-
return null;
|
|
2408
|
-
}
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
/** Handle image alt annotation */
|
|
2412
|
-
class ImageAltAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2413
|
-
/**
|
|
2414
|
-
* @inheritDoc
|
|
2415
|
-
*/
|
|
2416
|
-
canHandle(targetDto) {
|
|
2417
|
-
return targetDto.name === 'RTEImageNode';
|
|
2418
|
-
}
|
|
2419
|
-
/**
|
|
2420
|
-
* Handle annotation.
|
|
2421
|
-
*
|
|
2422
|
-
* @param {HTMLElement} element - Current elements.
|
|
2423
|
-
* @returns {VegaRTEImageAnnotations} - Annotation.
|
|
2424
|
-
*/
|
|
2425
|
-
handle(element) {
|
|
2426
|
-
return element.hasAttribute('alt') ? { alt: element.getAttribute('alt') } : {};
|
|
2427
|
-
}
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
/**
|
|
2431
|
-
* Handle inline html annotation
|
|
2432
|
-
*/
|
|
2433
|
-
class InlineHtmlAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
|
|
2434
|
-
constructor() {
|
|
2435
|
-
super(...arguments);
|
|
2436
|
-
this.customAttributeHandler = new CustomAttributeAnnotationHandler();
|
|
2437
|
-
this.customStyleAnnotationHandler = new CustomStyleAnnotationHandler();
|
|
2438
|
-
this.customClassAnnotationHandler = new CustomClassAnnotationHandler();
|
|
2439
|
-
}
|
|
2440
|
-
/**
|
|
2441
|
-
* @inheritDoc
|
|
2442
|
-
*/
|
|
2443
|
-
canHandle(targetDto, options) {
|
|
2444
|
-
return targetDto.name === 'RTETextNode' && options.autoMatchFormat === false;
|
|
2445
|
-
}
|
|
2446
|
-
/**
|
|
2447
|
-
* @inheritDoc
|
|
2448
|
-
*/
|
|
2449
|
-
handle(element, parentAnnotations) {
|
|
2450
|
-
const canHandle = InlineHtmlAnnotationHandler.canHandleTags.includes(element.nodeName);
|
|
2451
|
-
if (canHandle) {
|
|
2452
|
-
const inlineHtml = this.generateInlineHtmlAnnotation(element, Object.assign({}, parentAnnotations));
|
|
2453
|
-
if (inlineHtml) {
|
|
2454
|
-
return { inlineHtml: inlineHtml };
|
|
2455
|
-
}
|
|
2456
|
-
}
|
|
2457
|
-
return {};
|
|
2458
|
-
}
|
|
2459
|
-
/**
|
|
2460
|
-
* Generate inline html annotation.
|
|
2461
|
-
*
|
|
2462
|
-
* @param {HTMLElement} child - Current element.
|
|
2463
|
-
* @param {VegaRTETextAnnotations} annotations - Current annotations.
|
|
2464
|
-
* @returns {Nullable<VegaInlineHtmlSchema>} - Inline html annotation.
|
|
2465
|
-
*/
|
|
2466
|
-
generateInlineHtmlAnnotation(child, annotations) {
|
|
2467
|
-
let { inlineHtml } = annotations;
|
|
2468
|
-
if (!codeBlock.RTETextNode.supportsHtmlTag(child.nodeName.toLowerCase()) ||
|
|
2469
|
-
(child.childNodes.length === 1 && child.childNodes[0].nodeType !== Node.TEXT_NODE)) {
|
|
2470
|
-
const childInlineHtmlNode = {
|
|
2471
|
-
htmlTag: child.nodeName.toLowerCase(),
|
|
2472
|
-
customAttribute: this.customAttributeHandler.handle(child).customAttribute,
|
|
2473
|
-
customStyle: this.customStyleAnnotationHandler.handle(child).customStyle,
|
|
2474
|
-
customClass: this.customClassAnnotationHandler.handle(child).customClass,
|
|
2475
|
-
};
|
|
2476
|
-
if (!inlineHtml) {
|
|
2477
|
-
inlineHtml = childInlineHtmlNode;
|
|
2478
|
-
}
|
|
2479
|
-
else {
|
|
2480
|
-
let lastChild = inlineHtml;
|
|
2481
|
-
while (lastChild.child &&
|
|
2482
|
-
child.parentNode &&
|
|
2483
|
-
lastChild.child.htmlTag === child.parentNode.nodeName.toLowerCase()) {
|
|
2484
|
-
lastChild = lastChild.child;
|
|
2485
|
-
}
|
|
2486
|
-
lastChild.child = childInlineHtmlNode;
|
|
2487
|
-
}
|
|
2488
|
-
}
|
|
2489
|
-
return inlineHtml ? Object.assign({}, inlineHtml) : null;
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
InlineHtmlAnnotationHandler.canHandleTags = [
|
|
2493
|
-
'A',
|
|
2494
|
-
'ABBR',
|
|
2495
|
-
'AUDIO',
|
|
2496
|
-
'B',
|
|
2497
|
-
'BDI',
|
|
2498
|
-
'BDO',
|
|
2499
|
-
'CITE',
|
|
2500
|
-
'CODE',
|
|
2501
|
-
'DEL',
|
|
2502
|
-
'DFN',
|
|
2503
|
-
'EMBED',
|
|
2504
|
-
'EM',
|
|
2505
|
-
'I',
|
|
2506
|
-
'INS',
|
|
2507
|
-
'KBD',
|
|
2508
|
-
'MARK',
|
|
2509
|
-
'METER',
|
|
2510
|
-
'OUTPUT',
|
|
2511
|
-
'PROGRESS',
|
|
2512
|
-
'Q',
|
|
2513
|
-
'S',
|
|
2514
|
-
'SMALL',
|
|
2515
|
-
'SPAN',
|
|
2516
|
-
'STRONG',
|
|
2517
|
-
'SUB',
|
|
2518
|
-
'SUP',
|
|
2519
|
-
'TIME',
|
|
2520
|
-
'U',
|
|
2521
|
-
'VAR',
|
|
2522
|
-
'VIDEO',
|
|
2523
|
-
];
|
|
2524
|
-
|
|
2525
|
-
/** Html element to annotations generator */
|
|
2526
|
-
class HtmlElementToAnnotationGenerator {
|
|
2527
|
-
constructor() {
|
|
2528
|
-
this.handlers = [
|
|
2529
|
-
new TextAlignAnnotationHandler(),
|
|
2530
|
-
new IndentAnnotationHandler(),
|
|
2531
|
-
new BoldAnnotationHandler(),
|
|
2532
|
-
new ItalicAnnotationHandler(),
|
|
2533
|
-
new UnderlineAnnotationHandler(),
|
|
2534
|
-
new StrikeThroughAnnotationHandler(),
|
|
2535
|
-
new ColorAnnotationHandler(),
|
|
2536
|
-
new LinkAnnotationHandler(),
|
|
2537
|
-
new CodeAnnotationHandler(),
|
|
2538
|
-
new ImageSizeAnnotationHandler(),
|
|
2539
|
-
new ImageAltAnnotationHandler(),
|
|
2540
|
-
new CustomAttributeAnnotationHandler(),
|
|
2541
|
-
new CustomClassAnnotationHandler(),
|
|
2542
|
-
new CustomStyleAnnotationHandler(),
|
|
2543
|
-
new LinkAnnotationHandler(),
|
|
2544
|
-
new TextStyleAnnotationHandler(),
|
|
2545
|
-
new InlineHtmlAnnotationHandler(),
|
|
2546
|
-
];
|
|
2547
|
-
}
|
|
2548
|
-
/**
|
|
2549
|
-
* The function generates annotations for a given target DTO and HTML element based on a set of
|
|
2550
|
-
* strategies.
|
|
2551
|
-
*
|
|
2552
|
-
* @typedef T class name of target DTO
|
|
2553
|
-
* @typedef V generated annotations type
|
|
2554
|
-
* @param {T} targetDto - Which DTO is the generated annotations to set.
|
|
2555
|
-
* @param {HTMLElement} element - Current html element.
|
|
2556
|
-
* @param {HtmlElementToAnnotationGenerateOptions} [options] - Options
|
|
2557
|
-
* @returns {V} Generated annotations.
|
|
2558
|
-
*/
|
|
2559
|
-
generate(targetDto, element, options = { autoMatchFormat: true }) {
|
|
2560
|
-
const isLinkElement = element.tagName === 'A';
|
|
2561
|
-
return this.handlers
|
|
2562
|
-
.filter((handler) => !options.autoMatchFormat && isLinkElement ? handler instanceof LinkAnnotationHandler : true)
|
|
2563
|
-
.filter((handler) => element.nodeType !== Node.TEXT_NODE &&
|
|
2564
|
-
handler.canHandle(targetDto, {
|
|
2565
|
-
skipCustomAnnotations: options.skipCustomAnnotations || isLinkElement,
|
|
2566
|
-
autoMatchFormat: options.autoMatchFormat,
|
|
2567
|
-
}))
|
|
2568
|
-
.reduce((annotations, handler) => {
|
|
2569
|
-
const result = handler.handle(element, options.parentAnnotations);
|
|
2570
|
-
return Object.assign(Object.assign({}, annotations), result);
|
|
2571
|
-
}, {});
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
const htmlElementToAnnotationGenerator = new HtmlElementToAnnotationGenerator();
|
|
2575
|
-
|
|
2576
|
-
/** Abstract class for block html element to RTE block dto */
|
|
2577
|
-
class BlockToRTEBlockStrategyAbstract extends ElementToDTOStrategy {
|
|
2578
|
-
constructor() {
|
|
2579
|
-
super(...arguments);
|
|
2580
|
-
this.annotationHandler = new TextStyleAnnotationHandler();
|
|
2581
|
-
}
|
|
2582
|
-
/**
|
|
2583
|
-
* Generate child nodes of block element, this will inherit all annotations from parent to text node and
|
|
2584
|
-
* flat the child nodes.
|
|
2585
|
-
*
|
|
2586
|
-
* Example:
|
|
2587
|
-
* <li>
|
|
2588
|
-
* <u><i>text1</i></u>
|
|
2589
|
-
* <span></span>
|
|
2590
|
-
* <span style='font-weight: bold;'><span>text2</span></span>
|
|
2591
|
-
* text3
|
|
2592
|
-
* </li>
|
|
2593
|
-
* will tranform to:
|
|
2594
|
-
* <li>
|
|
2595
|
-
* <span>text1</span> // with underline and italic annotations
|
|
2596
|
-
* <span></span> // empty span
|
|
2597
|
-
* <span>text2</span> // with bold annotations
|
|
2598
|
-
* <span>text3</span> // no annotations
|
|
2599
|
-
* </li>
|
|
2600
|
-
*
|
|
2601
|
-
* @param {HTMLElement[]} elements - Child elements.
|
|
2602
|
-
* @param {VegaRTETextAnnotations} annotations - Parent annotations.
|
|
2603
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
2604
|
-
* @returns {VegaRTETextNode[]} - Text node DTO.
|
|
2605
|
-
*/
|
|
2606
|
-
generateChildNodes(elements, annotations, options) {
|
|
2607
|
-
const childNodes = [];
|
|
2608
|
-
const disableAutoMatchFormat = !!(options && options.autoMatchFormat === false);
|
|
2609
|
-
const parentAnnotations = Object.assign({}, annotations);
|
|
2610
|
-
elements.forEach((child) => {
|
|
2611
|
-
const strategy = ElementToDTOClassStrategyManager.getElementToNodeStrategies().find((item) => item.canHandle([child], 0, options) > 0);
|
|
2612
|
-
let textNodeJson = null;
|
|
2613
|
-
if (strategy) {
|
|
2614
|
-
textNodeJson = strategy.handle([child], options, parentAnnotations);
|
|
2615
|
-
}
|
|
2616
|
-
if (textNodeJson) {
|
|
2617
|
-
childNodes.push(textNodeJson);
|
|
2618
|
-
}
|
|
2619
|
-
else if (ui.isHTMLElement(child) && child.childNodes.length > 0) {
|
|
2620
|
-
const curAnnotations = htmlElementToAnnotationGenerator.generate(codeBlock.RTETextNode, child, Object.assign({ parentAnnotations: disableAutoMatchFormat
|
|
2621
|
-
? {
|
|
2622
|
-
inlineHtml: parentAnnotations.inlineHtml,
|
|
2623
|
-
link: parentAnnotations.link,
|
|
2624
|
-
code: parentAnnotations.code,
|
|
2625
|
-
}
|
|
2626
|
-
: annotations }, options));
|
|
2627
|
-
childNodes.push(...this.generateChildNodes(Array.from(child.childNodes), curAnnotations, options));
|
|
2628
|
-
}
|
|
2629
|
-
});
|
|
2630
|
-
return childNodes;
|
|
2631
|
-
}
|
|
2632
|
-
/**
|
|
2633
|
-
* Get the node type of element. The element type is determined in the following
|
|
2634
|
-
* order: "data-type" attribute, node name, font size and class name.
|
|
2635
|
-
*
|
|
2636
|
-
* @param {HTMLElement} element - element.
|
|
2637
|
-
* @returns {VegaRTETextBlockType} - Block type.
|
|
2638
|
-
*/
|
|
2639
|
-
matchTextBlockType(element) {
|
|
2640
|
-
var _a;
|
|
2641
|
-
return (_a = this.annotationHandler.handle(element).textStyle) !== null && _a !== void 0 ? _a : 'paragraph';
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
/**
|
|
2646
|
-
* Converting HTML block elements into RTE blocks.
|
|
2647
|
-
*/
|
|
2648
|
-
class HtmlBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
2649
|
-
/**
|
|
2650
|
-
* @inheritDoc
|
|
2651
|
-
*/
|
|
2652
|
-
canHandle(elementsArray, currentIndex, options) {
|
|
2653
|
-
const element = elementsArray[currentIndex];
|
|
2654
|
-
// - div + img should be handled by RTEImageBlock
|
|
2655
|
-
const isCustomContainer = element.nodeName === 'DIV'
|
|
2656
|
-
? element.childNodes.length > 0 && element.childNodes[0].nodeName !== 'IMG'
|
|
2657
|
-
: true;
|
|
2658
|
-
return !options.autoMatchFormat &&
|
|
2659
|
-
isCustomContainer &&
|
|
2660
|
-
HtmlBlockStrategy.canHandleTags.includes(elementsArray[currentIndex].nodeName)
|
|
2661
|
-
? 1
|
|
2662
|
-
: 0;
|
|
2663
|
-
}
|
|
2664
|
-
/**
|
|
2665
|
-
* @inheritDoc
|
|
2666
|
-
*/
|
|
2667
|
-
handle(elementsArray, options) {
|
|
2668
|
-
const element = elementsArray[0];
|
|
2669
|
-
return RTEHtmlBlock.from(this.generateHtmlBlock(element, options), options);
|
|
2670
|
-
}
|
|
2671
|
-
/**
|
|
2672
|
-
* @inheritDoc
|
|
2673
|
-
*/
|
|
2674
|
-
appendChildBlocks(currentBlock, childBlocks) {
|
|
2675
|
-
currentBlock.children = childBlocks.map((block) => {
|
|
2676
|
-
block.parent = currentBlock;
|
|
2677
|
-
return block;
|
|
2678
|
-
});
|
|
2679
|
-
}
|
|
2680
|
-
/**
|
|
2681
|
-
* @inheritDoc
|
|
2682
|
-
*/
|
|
2683
|
-
shouldProceedToElementChildren() {
|
|
2684
|
-
return true;
|
|
2685
|
-
}
|
|
2686
|
-
/**
|
|
2687
|
-
* Generate HTML block DTO from an HTML element.
|
|
2688
|
-
*
|
|
2689
|
-
* @param {HTMLElement} element - HTML element to convert.
|
|
2690
|
-
* @param {VegaRTETransformOptions} options - Options for transformation.
|
|
2691
|
-
* @returns {VegaRTEHtmlBlock} - HTML block DTO.
|
|
2692
|
-
*/
|
|
2693
|
-
generateHtmlBlock(element, options) {
|
|
2694
|
-
return {
|
|
2695
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2696
|
-
type: 'html-block',
|
|
2697
|
-
htmlTag: element.nodeName.toLowerCase(),
|
|
2698
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEHtmlBlock, element, options),
|
|
2699
|
-
children: [],
|
|
2700
|
-
};
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
HtmlBlockStrategy.canHandleTags = [
|
|
2704
|
-
'ADDRESS',
|
|
2705
|
-
'ARTICLE',
|
|
2706
|
-
'ASIDE',
|
|
2707
|
-
'BLOCKQUOTE',
|
|
2708
|
-
'BUTTON',
|
|
2709
|
-
'CAPTION',
|
|
2710
|
-
'COL',
|
|
2711
|
-
'COLGROUP',
|
|
2712
|
-
'DIV',
|
|
2713
|
-
'DD',
|
|
2714
|
-
'DETAILS',
|
|
2715
|
-
'DL',
|
|
2716
|
-
'DT',
|
|
2717
|
-
'FIELDSET',
|
|
2718
|
-
'FIGCAPTION',
|
|
2719
|
-
'FIGURE',
|
|
2720
|
-
'FOOTER',
|
|
2721
|
-
'FORM',
|
|
2722
|
-
'HEADER',
|
|
2723
|
-
'HR',
|
|
2724
|
-
'HX',
|
|
2725
|
-
'INPUT',
|
|
2726
|
-
'LEGEND',
|
|
2727
|
-
'MAIN',
|
|
2728
|
-
'NAV',
|
|
2729
|
-
'PRE',
|
|
2730
|
-
'SECTION',
|
|
2731
|
-
'SUMMARY',
|
|
2732
|
-
'TABLE',
|
|
2733
|
-
'TBODY',
|
|
2734
|
-
'TD',
|
|
2735
|
-
'TFOOT',
|
|
2736
|
-
'TH',
|
|
2737
|
-
'THEAD',
|
|
2738
|
-
'TR',
|
|
2739
|
-
];
|
|
2740
|
-
|
|
2741
|
-
/** Transform ul element to list block DTO */
|
|
2742
|
-
class UlToRTEListBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
2743
|
-
/**
|
|
2744
|
-
* Can be handle.
|
|
2745
|
-
*
|
|
2746
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2747
|
-
* @param {number} currentIndex - Current element index.
|
|
2748
|
-
* @returns {number} - can be handled element count.
|
|
2749
|
-
*/
|
|
2750
|
-
canHandle(elementsArray, currentIndex) {
|
|
2751
|
-
return elementsArray[currentIndex].tagName === 'UL' ? 1 : 0;
|
|
2752
|
-
}
|
|
2753
|
-
/**
|
|
2754
|
-
* Parse to a block.
|
|
2755
|
-
*
|
|
2756
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2757
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
2758
|
-
* @returns {Nullable<RTEContentBlock>} - Bullet list block.
|
|
2759
|
-
*/
|
|
2760
|
-
handle(elementsArray, options) {
|
|
2761
|
-
if (elementsArray[0].childNodes.length === 0)
|
|
2762
|
-
return null;
|
|
2763
|
-
return RTEListBlock.from({
|
|
2764
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2765
|
-
type: 'bullet-list',
|
|
2766
|
-
blocks: [],
|
|
2767
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEListBlock, elementsArray[0], options),
|
|
2768
|
-
}, options);
|
|
2769
|
-
}
|
|
2770
|
-
/**
|
|
2771
|
-
* Append child list item blocks to current list block.
|
|
2772
|
-
*
|
|
2773
|
-
* @param {RTEListBlock} currentBlock - Current list block.
|
|
2774
|
-
* @param {RTEContentBlock[]} childBlocks - Current list item blocks.
|
|
2775
|
-
*/
|
|
2776
|
-
appendChildBlocks(currentBlock, childBlocks) {
|
|
2777
|
-
currentBlock.children = childBlocks.filter((block) => block instanceof RTEListItemBlock);
|
|
2778
|
-
childBlocks.forEach((block) => (block.parent = currentBlock));
|
|
2779
|
-
}
|
|
2780
|
-
/**
|
|
2781
|
-
* Should continue process to child elements.
|
|
2782
|
-
*
|
|
2783
|
-
* @returns {boolean} - boolean.
|
|
2784
|
-
*/
|
|
2785
|
-
shouldProceedToElementChildren() {
|
|
2786
|
-
return true;
|
|
2787
|
-
}
|
|
2788
|
-
}
|
|
2789
|
-
|
|
2790
|
-
/** Transform ol element to list block DTO */
|
|
2791
|
-
class OlToRTEListBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
2792
|
-
/**
|
|
2793
|
-
* Can be handle.
|
|
2794
|
-
*
|
|
2795
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2796
|
-
* @param {number} currentIndex - Current element index.
|
|
2797
|
-
* @returns {number} - can be handled element count.
|
|
2798
|
-
*/
|
|
2799
|
-
canHandle(elementsArray, currentIndex) {
|
|
2800
|
-
return elementsArray[currentIndex].tagName === 'OL' ? 1 : 0;
|
|
2801
|
-
}
|
|
2802
|
-
/**
|
|
2803
|
-
* Parse to a number list block.
|
|
2804
|
-
*
|
|
2805
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2806
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
2807
|
-
* @returns {Nullable<RTEContentBlock>} - Number list block.
|
|
2808
|
-
*/
|
|
2809
|
-
handle(elementsArray, options) {
|
|
2810
|
-
if (elementsArray[0].childNodes.length === 0)
|
|
2811
|
-
return null;
|
|
2812
|
-
return RTEListBlock.from({
|
|
2813
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2814
|
-
type: 'number-list',
|
|
2815
|
-
blocks: [],
|
|
2816
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEListBlock, elementsArray[0], options),
|
|
2817
|
-
}, options);
|
|
2818
|
-
}
|
|
2819
|
-
/**
|
|
2820
|
-
* Append child list item blocks to current list block.
|
|
2821
|
-
*
|
|
2822
|
-
* @param {RTEListBlock} currentBlock - Current list block.
|
|
2823
|
-
* @param {RTEContentBlock[]} childBlocks - Current list item blocks.
|
|
2824
|
-
*/
|
|
2825
|
-
appendChildBlocks(currentBlock, childBlocks) {
|
|
2826
|
-
currentBlock.children = childBlocks.filter((block) => block instanceof RTEListItemBlock);
|
|
2827
|
-
childBlocks.forEach((block) => (block.parent = currentBlock));
|
|
2828
|
-
}
|
|
2829
|
-
/**
|
|
2830
|
-
* Should continue process to child elements.
|
|
2831
|
-
*
|
|
2832
|
-
* @returns {boolean} - boolean.
|
|
2833
|
-
*/
|
|
2834
|
-
shouldProceedToElementChildren() {
|
|
2835
|
-
return true;
|
|
2836
|
-
}
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
/** Transform child element of UL element which are not LI element to list item block DTO */
|
|
2840
|
-
class ULNotLiChildToRTEListItemBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
2841
|
-
/**
|
|
2842
|
-
* Can be handle.
|
|
2843
|
-
*
|
|
2844
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2845
|
-
* @param {number} currentIndex - Current element index.
|
|
2846
|
-
* @returns {number} - can be handled element count.
|
|
2847
|
-
*/
|
|
2848
|
-
canHandle(elementsArray, currentIndex) {
|
|
2849
|
-
const element = elementsArray[currentIndex];
|
|
2850
|
-
const parent = element.parentElement;
|
|
2851
|
-
const isLiNode = element.nodeName !== 'LI';
|
|
2852
|
-
// while child is empty text node like newline or empty string, we should not covert it.
|
|
2853
|
-
const isEmptyNode = element.nodeType === Node.TEXT_NODE && element.textContent.trim() === '';
|
|
2854
|
-
// The node must be in list item.
|
|
2855
|
-
const isInList = typeGuard.isNonNullable(parent) && ['UL', 'OL'].includes(parent.nodeName);
|
|
2856
|
-
return isLiNode && !isEmptyNode && isInList ? 1 : 0;
|
|
2857
|
-
}
|
|
2858
|
-
/**
|
|
2859
|
-
* Parse to a list item block.
|
|
2860
|
-
*
|
|
2861
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2862
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
2863
|
-
* @returns {Nullable<RTEContentBlock>} - List item block.
|
|
2864
|
-
*/
|
|
2865
|
-
handle(elementsArray, options) {
|
|
2866
|
-
const nodes = this.generateChildNodes(elementsArray, {}, options);
|
|
2867
|
-
return RTEListItemBlock.from({
|
|
2868
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2869
|
-
type: 'list-item',
|
|
2870
|
-
nodes: nodes,
|
|
2871
|
-
annotations: {},
|
|
2872
|
-
}, options);
|
|
2873
|
-
}
|
|
2874
|
-
/* istanbul ignore next */
|
|
2875
|
-
/**
|
|
2876
|
-
* Append child blocks.
|
|
2877
|
-
*/
|
|
2878
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2879
|
-
appendChildBlocks() { }
|
|
2880
|
-
/**
|
|
2881
|
-
* Should continue process to child elements.
|
|
2882
|
-
*
|
|
2883
|
-
* @returns {boolean} - boolean.
|
|
2884
|
-
*/
|
|
2885
|
-
shouldProceedToElementChildren() {
|
|
2886
|
-
return false;
|
|
2887
|
-
}
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
|
-
/** Transform li element to list item block DTO */
|
|
2891
|
-
class LiToRTEListItemBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
2892
|
-
/**
|
|
2893
|
-
* Can be handled.
|
|
2894
|
-
*
|
|
2895
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2896
|
-
* @param {number} currentIndex - Current element index.
|
|
2897
|
-
* @returns {number} - can be handled element count.
|
|
2898
|
-
*/
|
|
2899
|
-
canHandle(elementsArray, currentIndex) {
|
|
2900
|
-
const parent = elementsArray[currentIndex].parentElement;
|
|
2901
|
-
if (!['UL', 'OL'].includes(parent.nodeName) &&
|
|
2902
|
-
elementsArray.some((element) => element.nodeName === 'LI')) {
|
|
2903
|
-
let count = 0;
|
|
2904
|
-
for (let i = currentIndex; i < elementsArray.length; i++) {
|
|
2905
|
-
if (elementsArray[i].nodeName === 'LI') {
|
|
2906
|
-
count++;
|
|
2907
|
-
}
|
|
2908
|
-
else {
|
|
2909
|
-
break;
|
|
2910
|
-
}
|
|
2911
|
-
}
|
|
2912
|
-
return count;
|
|
2913
|
-
}
|
|
2914
|
-
return elementsArray[currentIndex].tagName === 'LI' ? 1 : 0;
|
|
2915
|
-
}
|
|
2916
|
-
/**
|
|
2917
|
-
* Parse to a list item block.
|
|
2918
|
-
*
|
|
2919
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2920
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
2921
|
-
* @returns {Nullable<RTEContentBlock>} - List item block.
|
|
2922
|
-
*/
|
|
2923
|
-
handle(elementsArray, options) {
|
|
2924
|
-
const firstElement = elementsArray[0];
|
|
2925
|
-
const parent = firstElement.parentElement;
|
|
2926
|
-
if (!['UL', 'OL'].includes(parent.nodeName)) {
|
|
2927
|
-
return this.generateWithListBlock(elementsArray, options);
|
|
2928
|
-
}
|
|
2929
|
-
return RTEListItemBlock.from(this.generateListItemBlockDTO(firstElement, options), options);
|
|
2930
|
-
}
|
|
2931
|
-
/**
|
|
2932
|
-
* Append child list blocks to current list item block.
|
|
2933
|
-
*
|
|
2934
|
-
* @param {RTEListBlock} currentBlock - Current list item block.
|
|
2935
|
-
* @param {RTEListItemBlock[]} childBlocks - Current list blocks.
|
|
2936
|
-
*/
|
|
2937
|
-
appendChildBlocks(currentBlock, childBlocks) {
|
|
2938
|
-
currentBlock.nestList = childBlocks.filter((block) => ['bullet-list', 'number-list'].includes(block.type));
|
|
2939
|
-
}
|
|
2940
|
-
/**
|
|
2941
|
-
* Should continue process to child elements.
|
|
2942
|
-
*
|
|
2943
|
-
* @returns {boolean} - boolean.
|
|
2944
|
-
*/
|
|
2945
|
-
shouldProceedToElementChildren() {
|
|
2946
|
-
return true;
|
|
2947
|
-
}
|
|
2948
|
-
/**
|
|
2949
|
-
* Generate list block from a list of HTML elements.
|
|
2950
|
-
*
|
|
2951
|
-
* @param {HTMLElement[]} elements - List of HTML elements to convert.
|
|
2952
|
-
* @param {VegaRTETransformOptions} options - Options for transformation.
|
|
2953
|
-
* @returns {RTEListBlock} - List block DTO.
|
|
2954
|
-
*/
|
|
2955
|
-
generateWithListBlock(elements, options) {
|
|
2956
|
-
return RTEListBlock.from({
|
|
2957
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2958
|
-
type: 'bullet-list',
|
|
2959
|
-
blocks: elements.map((item) => {
|
|
2960
|
-
return this.generateListItemBlockDTO(item, options);
|
|
2961
|
-
}),
|
|
2962
|
-
}, options);
|
|
2963
|
-
}
|
|
2964
|
-
/**
|
|
2965
|
-
* Generate list item block DTO from an HTML element.
|
|
2966
|
-
*
|
|
2967
|
-
* @param {HTMLElement} element - HTML element to convert.
|
|
2968
|
-
* @param {VegaRTETransformOptions} options - Options for transformation.
|
|
2969
|
-
* @returns {VegaRTEListItemBlock} - List item block DTO.
|
|
2970
|
-
*/
|
|
2971
|
-
generateListItemBlockDTO(element, options) {
|
|
2972
|
-
return {
|
|
2973
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
2974
|
-
type: 'list-item',
|
|
2975
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEListItemBlock, element, options),
|
|
2976
|
-
nodes: this.generateChildNodes(Array.from(element.childNodes.length ? element.childNodes : [element]).filter((item) => {
|
|
2977
|
-
return !['UL', 'OL'].includes(item.nodeName);
|
|
2978
|
-
}), htmlElementToAnnotationGenerator.generate(codeBlock.RTETextNode, element, Object.assign(Object.assign({}, options), { skipCustomAnnotations: true })), options),
|
|
2979
|
-
};
|
|
2980
|
-
}
|
|
2981
|
-
}
|
|
2982
|
-
|
|
2983
|
-
/** Transform other editor code element which has attribute data-language to RTE code block DTO */
|
|
2984
|
-
class JiraCodeToRTECodeBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
2985
|
-
/**
|
|
2986
|
-
* Can be handle.
|
|
2987
|
-
*
|
|
2988
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
2989
|
-
* @param {number} currentIndex - Current element index.
|
|
2990
|
-
* @returns {number} - can be handled element count.
|
|
2991
|
-
*/
|
|
2992
|
-
canHandle(elementsArray, currentIndex) {
|
|
2993
|
-
return (elementsArray[currentIndex].tagName === 'PRE' ||
|
|
2994
|
-
elementsArray[currentIndex].tagName === 'CODE') &&
|
|
2995
|
-
elementsArray[currentIndex].hasAttribute('data-language')
|
|
2996
|
-
? 1
|
|
2997
|
-
: 0;
|
|
2998
|
-
}
|
|
2999
|
-
/**
|
|
3000
|
-
* Parse to a code block.
|
|
3001
|
-
*
|
|
3002
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3003
|
-
* @returns {Nullable<RTECodeBlock>} - Code block.
|
|
3004
|
-
*/
|
|
3005
|
-
handle(elementsArray) {
|
|
3006
|
-
const codeRef = elementsArray[0];
|
|
3007
|
-
if (codeRef) {
|
|
3008
|
-
const content = codeRef.textContent;
|
|
3009
|
-
const language = codeRef.dataset
|
|
3010
|
-
.language;
|
|
3011
|
-
return codeBlock.RTECodeBlock.from({
|
|
3012
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3013
|
-
type: 'code-block',
|
|
3014
|
-
content,
|
|
3015
|
-
language,
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
/* istanbul ignore next */
|
|
3020
|
-
/**
|
|
3021
|
-
* Append child blocks.
|
|
3022
|
-
*/
|
|
3023
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3024
|
-
appendChildBlocks() { }
|
|
3025
|
-
/**
|
|
3026
|
-
* Should continue process to child elements.
|
|
3027
|
-
*
|
|
3028
|
-
* @returns {boolean} - boolean.
|
|
3029
|
-
*/
|
|
3030
|
-
shouldProceedToElementChildren() {
|
|
3031
|
-
return false;
|
|
3032
|
-
}
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3035
|
-
/** Transform vega-code-block element to code block DTO */
|
|
3036
|
-
class VegaCodeBlockToRTECodeBlockStrategy extends JiraCodeToRTECodeBlockStrategy {
|
|
3037
|
-
/**
|
|
3038
|
-
* Can be handle.
|
|
3039
|
-
*
|
|
3040
|
-
* TODO: Update the browser clipboard data to fix the issue with nested vega-code-block elements.
|
|
3041
|
-
* In safari the html snippet will be like: <vega-code-block><p><span>paragraph</span></p><vega-code-block></vega-code-block></vega-code-block>
|
|
3042
|
-
* The vega-code-block nested inside the vega-code-block, so we need to check the child element.
|
|
3043
|
-
*
|
|
3044
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3045
|
-
* @param {number} currentIndex - Current element index.
|
|
3046
|
-
* @returns {number} - can be handled element count.
|
|
3047
|
-
*/
|
|
3048
|
-
canHandle(elementsArray, currentIndex) {
|
|
3049
|
-
return (elementsArray[currentIndex].tagName === 'VEGA-CODE-BLOCK' &&
|
|
3050
|
-
!!elementsArray[currentIndex].querySelector('vega-code-block') === false) ||
|
|
3051
|
-
this.isCodeBlockContainer(elementsArray[currentIndex])
|
|
3052
|
-
? 1
|
|
3053
|
-
: 0;
|
|
3054
|
-
}
|
|
3055
|
-
/**
|
|
3056
|
-
* Parse to a code block.
|
|
3057
|
-
*
|
|
3058
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3059
|
-
* @returns {Nullable<RTECodeBlock>} - Code block.
|
|
3060
|
-
*/
|
|
3061
|
-
handle(elementsArray) {
|
|
3062
|
-
const codeBlockElement = this.isCodeBlockContainer(elementsArray[0])
|
|
3063
|
-
? elementsArray[0].querySelector('vega-code-block')
|
|
3064
|
-
: elementsArray[0];
|
|
3065
|
-
const code = codeBlockElement.querySelector('code');
|
|
3066
|
-
if (code) {
|
|
3067
|
-
return super.handle([code]); // Call the parent method to handle the code element
|
|
3068
|
-
}
|
|
3069
|
-
else if (codeBlockElement.hasAttribute('data-content')) {
|
|
3070
|
-
// The code element in shadow dom could be empty in firefox.
|
|
3071
|
-
// eslint-disable-next-line no-restricted-globals
|
|
3072
|
-
const code = document.createElement('code');
|
|
3073
|
-
code.textContent = codeBlockElement.dataset.content;
|
|
3074
|
-
code.dataset.language = codeBlockElement.dataset.language;
|
|
3075
|
-
return super.handle([code]); // Call the parent method to handle the code element
|
|
3076
|
-
}
|
|
3077
|
-
}
|
|
3078
|
-
/* istanbul ignore next */
|
|
3079
|
-
/**
|
|
3080
|
-
* Append child blocks.
|
|
3081
|
-
*/
|
|
3082
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3083
|
-
appendChildBlocks() { }
|
|
3084
|
-
/**
|
|
3085
|
-
* Should continue process to child elements.
|
|
3086
|
-
*
|
|
3087
|
-
* @returns {boolean} - boolean.
|
|
3088
|
-
*/
|
|
3089
|
-
shouldProceedToElementChildren() {
|
|
3090
|
-
return false;
|
|
3091
|
-
}
|
|
3092
|
-
/**
|
|
3093
|
-
* Checks if the given element is a code block container.
|
|
3094
|
-
*
|
|
3095
|
-
* @param {HTMLElement} element - The element to check.
|
|
3096
|
-
* @returns {boolean} - Boolean result.
|
|
3097
|
-
*/
|
|
3098
|
-
isCodeBlockContainer(element) {
|
|
3099
|
-
return (element.tagName === 'PRE' &&
|
|
3100
|
-
element.classList.contains('code-block-container') &&
|
|
3101
|
-
element.querySelectorAll('vega-code-block').length === 1);
|
|
3102
|
-
}
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
|
-
/** Transform inline block element to text block DTO */
|
|
3106
|
-
class InlineBlockToRTETextBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
3107
|
-
/**
|
|
3108
|
-
* Can be handle.
|
|
3109
|
-
*
|
|
3110
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3111
|
-
* @param {number} currentIndex - Current element index.
|
|
3112
|
-
* @returns {number} - can be handled element count.
|
|
3113
|
-
*/
|
|
3114
|
-
canHandle(elementsArray, currentIndex) {
|
|
3115
|
-
return [
|
|
3116
|
-
'heading-1',
|
|
3117
|
-
'heading-2',
|
|
3118
|
-
'heading-3',
|
|
3119
|
-
'heading-4',
|
|
3120
|
-
'heading-5',
|
|
3121
|
-
'heading-6',
|
|
3122
|
-
'title',
|
|
3123
|
-
'subtitle',
|
|
3124
|
-
].includes(super.matchTextBlockType(elementsArray[currentIndex]))
|
|
3125
|
-
? 1
|
|
3126
|
-
: 0;
|
|
3127
|
-
}
|
|
3128
|
-
/**
|
|
3129
|
-
* Parse to a text block.
|
|
3130
|
-
*
|
|
3131
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3132
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
3133
|
-
* @returns {Nullable<RTEContentBlock>} - Text block.
|
|
3134
|
-
*/
|
|
3135
|
-
handle(elementsArray, options) {
|
|
3136
|
-
const nodes = this.generateChildNodes(Array.from(elementsArray[0].childNodes), {}, options);
|
|
3137
|
-
if (nodes.length === 0)
|
|
3138
|
-
return null;
|
|
3139
|
-
return codeBlock.RTETextBlock.from({
|
|
3140
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3141
|
-
type: super.matchTextBlockType(elementsArray[0]),
|
|
3142
|
-
nodes: nodes,
|
|
3143
|
-
annotations: htmlElementToAnnotationGenerator.generate(codeBlock.RTETextBlock, elementsArray[0], options),
|
|
3144
|
-
}, options);
|
|
3145
|
-
}
|
|
3146
|
-
/* istanbul ignore next */
|
|
3147
|
-
/**
|
|
3148
|
-
* Append child blocks.
|
|
3149
|
-
*/
|
|
3150
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3151
|
-
appendChildBlocks() { }
|
|
3152
|
-
/**
|
|
3153
|
-
* Should continue process to child elements.
|
|
3154
|
-
*
|
|
3155
|
-
* @returns {boolean} - boolean.
|
|
3156
|
-
*/
|
|
3157
|
-
shouldProceedToElementChildren() {
|
|
3158
|
-
return false;
|
|
3159
|
-
}
|
|
3160
|
-
}
|
|
3161
|
-
|
|
3162
|
-
/** Abstract class for block html element to RTE block dto */
|
|
3163
|
-
class ElementToRTEImageBlockStrategyAbstract extends BlockToRTEBlockStrategyAbstract {
|
|
3164
|
-
/**
|
|
3165
|
-
* Create a RTE Image block according to the img element.
|
|
3166
|
-
*
|
|
3167
|
-
* @param {HTMLElement} element - current element.
|
|
3168
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
3169
|
-
* @returns {RTEImageBlock} -RTE Image block.
|
|
3170
|
-
*/
|
|
3171
|
-
createRTEImageBlock(element, options) {
|
|
3172
|
-
// RTEImageBlock is also wrapped by a div, should not as internal wrapper if the parent is a div.
|
|
3173
|
-
const isInternalWrapper = !(options && options.autoMatchFormat) &&
|
|
3174
|
-
!!(element.parentNode && element.parentNode.nodeName !== 'DIV');
|
|
3175
|
-
return RTEImageBlock.from({
|
|
3176
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3177
|
-
type: 'image',
|
|
3178
|
-
nodes: [
|
|
3179
|
-
{
|
|
3180
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3181
|
-
type: 'image',
|
|
3182
|
-
url: element.src,
|
|
3183
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEImageNode, element, options),
|
|
3184
|
-
},
|
|
3185
|
-
],
|
|
3186
|
-
annotations: Object.assign(Object.assign({}, htmlElementToAnnotationGenerator.generate(RTEImageBlock, element.parentElement, options)), { internalWrapper: isInternalWrapper }),
|
|
3187
|
-
}, options);
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
/** Transform img element to image block DTO */
|
|
3192
|
-
class ImgToRTEImageBlockStrategy extends ElementToRTEImageBlockStrategyAbstract {
|
|
3193
|
-
/**
|
|
3194
|
-
* Can be handle.
|
|
3195
|
-
*
|
|
3196
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3197
|
-
* @param {number} currentIndex - Current element index.
|
|
3198
|
-
* @returns {number} - can be handled element count.
|
|
3199
|
-
*/
|
|
3200
|
-
canHandle(elementsArray, currentIndex) {
|
|
3201
|
-
return elementsArray[currentIndex].tagName === 'IMG' ? 1 : 0;
|
|
3202
|
-
}
|
|
3203
|
-
/**
|
|
3204
|
-
* Parse to a image block.
|
|
3205
|
-
*
|
|
3206
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3207
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
3208
|
-
* @returns {Nullable<RTEContentBlock>} - Image block.
|
|
3209
|
-
*/
|
|
3210
|
-
handle(elementsArray, options) {
|
|
3211
|
-
const element = elementsArray[0];
|
|
3212
|
-
return this.createRTEImageBlock(element, options);
|
|
3213
|
-
}
|
|
3214
|
-
/* istanbul ignore next */
|
|
3215
|
-
/**
|
|
3216
|
-
* Append child blocks.
|
|
3217
|
-
*/
|
|
3218
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3219
|
-
appendChildBlocks() { }
|
|
3220
|
-
/**
|
|
3221
|
-
* Should continue process to child elements.
|
|
3222
|
-
*
|
|
3223
|
-
* @returns {boolean} - boolean.
|
|
3224
|
-
*/
|
|
3225
|
-
shouldProceedToElementChildren() {
|
|
3226
|
-
return false;
|
|
3227
|
-
}
|
|
3228
|
-
}
|
|
3229
|
-
|
|
3230
|
-
/** Transform vega-rich-text-image-editor element to image block DTO */
|
|
3231
|
-
class VegaImageToRTEImageBlockStrategy extends ElementToRTEImageBlockStrategyAbstract {
|
|
3232
|
-
/**
|
|
3233
|
-
* Can be handle.
|
|
3234
|
-
*
|
|
3235
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3236
|
-
* @param {number} currentIndex - Current element index.
|
|
3237
|
-
* @returns {number} - can be handled element count.
|
|
3238
|
-
*/
|
|
3239
|
-
canHandle(elementsArray, currentIndex) {
|
|
3240
|
-
return elementsArray[currentIndex].tagName === 'VEGA-RICH-TEXT-IMAGE-EDITOR' ? 1 : 0;
|
|
3241
|
-
}
|
|
3242
|
-
/**
|
|
3243
|
-
* Parse to a image block.
|
|
3244
|
-
*
|
|
3245
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3246
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
3247
|
-
* @returns {Nullable<RTEContentBlock>} - Image block.
|
|
3248
|
-
*/
|
|
3249
|
-
handle(elementsArray, options) {
|
|
3250
|
-
const element = elementsArray[0];
|
|
3251
|
-
const image = element.querySelector('img');
|
|
3252
|
-
if (typeGuard.isNonNullable(image)) {
|
|
3253
|
-
return RTEImageBlock.from({
|
|
3254
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3255
|
-
type: 'image',
|
|
3256
|
-
nodes: [
|
|
3257
|
-
{
|
|
3258
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3259
|
-
type: 'image',
|
|
3260
|
-
url: image.src,
|
|
3261
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEImageNode, element, options),
|
|
3262
|
-
},
|
|
3263
|
-
],
|
|
3264
|
-
annotations: htmlElementToAnnotationGenerator.generate(RTEImageBlock, element.parentElement, options),
|
|
3265
|
-
}, options);
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
/* istanbul ignore next */
|
|
3269
|
-
/**
|
|
3270
|
-
* Append child blocks.
|
|
3271
|
-
*/
|
|
3272
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3273
|
-
appendChildBlocks() { }
|
|
3274
|
-
/**
|
|
3275
|
-
* Should continue process to child elements.
|
|
3276
|
-
*
|
|
3277
|
-
* @returns {boolean} - boolean.
|
|
3278
|
-
*/
|
|
3279
|
-
shouldProceedToElementChildren() {
|
|
3280
|
-
return false;
|
|
3281
|
-
}
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
/** Transform img in span or other inline element to image block DTO */
|
|
3285
|
-
class SpanImageToRTEImageBlockStrategy extends ElementToRTEImageBlockStrategyAbstract {
|
|
3286
|
-
/**
|
|
3287
|
-
* Can be handle.
|
|
3288
|
-
*
|
|
3289
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3290
|
-
* @param {number} currentIndex - Current element index.
|
|
3291
|
-
* @returns {number} - can be handled element count.
|
|
3292
|
-
*/
|
|
3293
|
-
canHandle(elementsArray, currentIndex) {
|
|
3294
|
-
const element = elementsArray[currentIndex];
|
|
3295
|
-
return element.nodeType === Node.ELEMENT_NODE &&
|
|
3296
|
-
element.textContent === '' &&
|
|
3297
|
-
element.querySelector('img')
|
|
3298
|
-
? 1
|
|
3299
|
-
: 0;
|
|
3300
|
-
}
|
|
3301
|
-
/**
|
|
3302
|
-
* Parse to a image block.
|
|
3303
|
-
*
|
|
3304
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3305
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
3306
|
-
* @returns {Nullable<RTEContentBlock>} - Image block.
|
|
3307
|
-
*/
|
|
3308
|
-
handle(elementsArray, options) {
|
|
3309
|
-
const element = elementsArray[0].querySelector('img');
|
|
3310
|
-
return this.createRTEImageBlock(element, options);
|
|
3311
|
-
}
|
|
3312
|
-
/* istanbul ignore next */
|
|
3313
|
-
/**
|
|
3314
|
-
* Append child blocks.
|
|
3315
|
-
*/
|
|
3316
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3317
|
-
appendChildBlocks() { }
|
|
3318
|
-
/**
|
|
3319
|
-
* Should continue process to child elements.
|
|
3320
|
-
*
|
|
3321
|
-
* @returns {boolean} - boolean.
|
|
3322
|
-
*/
|
|
3323
|
-
shouldProceedToElementChildren() {
|
|
3324
|
-
return false;
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
|
|
3328
|
-
/** Transform continue inline block elements to text block DTO */
|
|
3329
|
-
class ContinueInlineToRTETextBlockStrategy extends BlockToRTEBlockStrategyAbstract {
|
|
3330
|
-
/**
|
|
3331
|
-
* Can be handle.
|
|
3332
|
-
*
|
|
3333
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3334
|
-
* @param {number} currentIndex - Current element index.
|
|
3335
|
-
* @returns {number} - can be handled element count.
|
|
3336
|
-
*/
|
|
3337
|
-
canHandle(elementsArray, currentIndex) {
|
|
3338
|
-
let count = 0;
|
|
3339
|
-
for (let i = currentIndex; i < elementsArray.length; i++) {
|
|
3340
|
-
const element = elementsArray[i];
|
|
3341
|
-
if (element.nodeType === Node.TEXT_NODE ||
|
|
3342
|
-
(ContinueInlineToRTETextBlockStrategy.canHandleTags.includes(element.nodeName) &&
|
|
3343
|
-
!(element.textContent === '' && element.querySelector('IMG')))) {
|
|
3344
|
-
count++;
|
|
3345
|
-
}
|
|
3346
|
-
else {
|
|
3347
|
-
break;
|
|
3348
|
-
}
|
|
3349
|
-
}
|
|
3350
|
-
return count;
|
|
3351
|
-
}
|
|
3352
|
-
/**
|
|
3353
|
-
* Parse to a text block.
|
|
3354
|
-
*
|
|
3355
|
-
* @param {HTMLElement[]} elementsArray - Current elements.
|
|
3356
|
-
* @param {VegaRTETransformOptions} [options] - Options for transformation.
|
|
3357
|
-
* @returns {Nullable<RTEContentBlock>} - Text block.
|
|
3358
|
-
*/
|
|
3359
|
-
handle(elementsArray, options) {
|
|
3360
|
-
const parent = elementsArray[0].parentElement;
|
|
3361
|
-
const autoMatchFormat = options && options.autoMatchFormat;
|
|
3362
|
-
const nodes = this.generateChildNodes(elementsArray, autoMatchFormat
|
|
3363
|
-
? htmlElementToAnnotationGenerator.generate(codeBlock.RTETextNode, parent, Object.assign(Object.assign({}, options), { skipCustomAnnotations: true }))
|
|
3364
|
-
: {}, options);
|
|
3365
|
-
const blockType = autoMatchFormat
|
|
3366
|
-
? super.matchTextBlockType(parent)
|
|
3367
|
-
: this.matchTextBlockTypeByTagName(parent);
|
|
3368
|
-
const internalWrapper = !autoMatchFormat && !blockType;
|
|
3369
|
-
return codeBlock.RTETextBlock.from(Object.assign({ id: createPublicApiRuntimeMetricsSlimmer.generateUUID(), type: blockType || 'paragraph', nodes: nodes }, (internalWrapper
|
|
3370
|
-
? { annotations: { internalWrapper: internalWrapper } }
|
|
3371
|
-
: {
|
|
3372
|
-
annotations: htmlElementToAnnotationGenerator.generate(codeBlock.RTETextBlock, parent, options),
|
|
3373
|
-
})), options);
|
|
3374
|
-
}
|
|
3375
|
-
/* istanbul ignore next */
|
|
3376
|
-
/**
|
|
3377
|
-
* Append child blocks.
|
|
3378
|
-
*/
|
|
3379
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3380
|
-
appendChildBlocks() { }
|
|
3381
|
-
/**
|
|
3382
|
-
* Should continue process to child elements.
|
|
3383
|
-
*
|
|
3384
|
-
* @returns {boolean} - boolean.
|
|
3385
|
-
*/
|
|
3386
|
-
shouldProceedToElementChildren() {
|
|
3387
|
-
return false;
|
|
3388
|
-
}
|
|
3389
|
-
/**
|
|
3390
|
-
* Match the block type by tag name.
|
|
3391
|
-
*
|
|
3392
|
-
* @param {HTMLElement} element - Target element.
|
|
3393
|
-
* @returns {Nullable<VegaRTETextBlockType>} - Block type.
|
|
3394
|
-
*/
|
|
3395
|
-
matchTextBlockTypeByTagName(element) {
|
|
3396
|
-
switch (element.nodeName) {
|
|
3397
|
-
case 'P':
|
|
3398
|
-
return 'paragraph';
|
|
3399
|
-
default:
|
|
3400
|
-
return null;
|
|
3401
|
-
}
|
|
3402
|
-
}
|
|
3403
|
-
}
|
|
3404
|
-
ContinueInlineToRTETextBlockStrategy.canHandleTags = [
|
|
3405
|
-
...InlineHtmlAnnotationHandler.canHandleTags,
|
|
3406
|
-
'CODE',
|
|
3407
|
-
'A',
|
|
3408
|
-
'VEGA-RICH-TEXT-LINK-EDITOR',
|
|
3409
|
-
'BR',
|
|
3410
|
-
];
|
|
3411
|
-
|
|
3412
|
-
/**
|
|
3413
|
-
* Class to handle text node elements and convert them to text node DTOs
|
|
3414
|
-
*/
|
|
3415
|
-
class ElementToTextNodeStrategy extends ElementToDTOStrategy {
|
|
3416
|
-
/**
|
|
3417
|
-
* @inheritDoc
|
|
3418
|
-
*/
|
|
3419
|
-
shouldProceedToElementChildren() {
|
|
3420
|
-
return false;
|
|
3421
|
-
}
|
|
3422
|
-
/**
|
|
3423
|
-
* @inheritDoc
|
|
3424
|
-
*/
|
|
3425
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3426
|
-
appendChildBlocks() { }
|
|
3427
|
-
/**
|
|
3428
|
-
* Generate text node DTO object
|
|
3429
|
-
*
|
|
3430
|
-
* @param {string} text - text content.
|
|
3431
|
-
* @param {VegaRTETextAnnotations} annotations - Current annotations.
|
|
3432
|
-
* @returns {VegaRTETextNode} - Text node DTO.
|
|
3433
|
-
*/
|
|
3434
|
-
generateTextNode(text, annotations) {
|
|
3435
|
-
return {
|
|
3436
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3437
|
-
type: 'text',
|
|
3438
|
-
text: text,
|
|
3439
|
-
annotations: annotations,
|
|
3440
|
-
};
|
|
3441
|
-
}
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
/**
|
|
3445
|
-
* Class to handle plain text nodes and convert them to RTE text node DTOs
|
|
3446
|
-
*/
|
|
3447
|
-
class PlainTextToTextNodeStrategy extends ElementToTextNodeStrategy {
|
|
3448
|
-
/**
|
|
3449
|
-
* @inheritDoc
|
|
3450
|
-
*/
|
|
3451
|
-
canHandle(elementsArray, currentIndex) {
|
|
3452
|
-
const element = elementsArray[currentIndex];
|
|
3453
|
-
return element.nodeType === Node.TEXT_NODE ? 1 : 0;
|
|
3454
|
-
}
|
|
3455
|
-
/**
|
|
3456
|
-
* @inheritDoc
|
|
3457
|
-
*/
|
|
3458
|
-
handle(elementsArray, options, parentTextAnnotations) {
|
|
3459
|
-
const parentAnnotations = Object.assign({}, parentTextAnnotations);
|
|
3460
|
-
const disableAutoMatchFormat = !!(options && options.autoMatchFormat === false);
|
|
3461
|
-
const child = elementsArray[0];
|
|
3462
|
-
const parentNodeName = child.parentNode.nodeName.toLowerCase();
|
|
3463
|
-
const plainText = disableAutoMatchFormat && !codeBlock.RTETextNode.supportsHtmlTag(parentNodeName);
|
|
3464
|
-
const textNode = this.generateTextNode(String(child.textContent), disableAutoMatchFormat
|
|
3465
|
-
? object.cleanObject(Object.assign(Object.assign({}, (parentNodeName === 'span'
|
|
3466
|
-
? parentAnnotations
|
|
3467
|
-
: {
|
|
3468
|
-
// text node could be wrapped in <a> tag, so we need to keep the parent link annotation
|
|
3469
|
-
link: parentAnnotations.link,
|
|
3470
|
-
code: parentNodeName === 'code' ? parentAnnotations.code : undefined,
|
|
3471
|
-
})), { inlineHtml: parentAnnotations.inlineHtml, plainText: plainText || undefined }))
|
|
3472
|
-
: parentAnnotations);
|
|
3473
|
-
return Object.assign({}, textNode);
|
|
3474
|
-
}
|
|
3475
|
-
}
|
|
3476
|
-
|
|
3477
|
-
/**
|
|
3478
|
-
* Class to handle inline html element to text node dto
|
|
3479
|
-
*/
|
|
3480
|
-
class InlineElementToTextNodeStrategy extends ElementToTextNodeStrategy {
|
|
3481
|
-
/**
|
|
3482
|
-
* @inheritDoc
|
|
3483
|
-
*/
|
|
3484
|
-
canHandle(elementsArray, currentIndex) {
|
|
3485
|
-
const element = elementsArray[currentIndex];
|
|
3486
|
-
return ui.isHTMLElement(element) && (element.nodeName === 'BR' || element.childNodes.length === 0)
|
|
3487
|
-
? 1
|
|
3488
|
-
: 0;
|
|
3489
|
-
}
|
|
3490
|
-
/**
|
|
3491
|
-
* @inheritDoc
|
|
3492
|
-
*/
|
|
3493
|
-
handle(elementsArray, options, annotations) {
|
|
3494
|
-
const disableAutoMatchFormat = !!(options && options.autoMatchFormat === false);
|
|
3495
|
-
const parentAnnotations = Object.assign({}, annotations);
|
|
3496
|
-
const child = elementsArray[0];
|
|
3497
|
-
const curAnnotations = htmlElementToAnnotationGenerator.generate(codeBlock.RTETextNode, child, Object.assign({ parentAnnotations: disableAutoMatchFormat
|
|
3498
|
-
? {
|
|
3499
|
-
inlineHtml: parentAnnotations.inlineHtml,
|
|
3500
|
-
link: parentAnnotations.link,
|
|
3501
|
-
code: parentAnnotations.code,
|
|
3502
|
-
}
|
|
3503
|
-
: annotations }, options));
|
|
3504
|
-
if (child.nodeName === 'BR') {
|
|
3505
|
-
return this.generateTextNode('\n', curAnnotations);
|
|
3506
|
-
}
|
|
3507
|
-
else if (child.childNodes.length === 0) {
|
|
3508
|
-
// For empty dom, there will be no internal iteration, we need to handle it directly here.
|
|
3509
|
-
// Example: <span></span>, <video src='...'></video>
|
|
3510
|
-
const emptyNodeAnnotations = disableAutoMatchFormat
|
|
3511
|
-
? object.cleanObject(Object.assign(Object.assign({}, (codeBlock.RTETextNode.supportsHtmlTag(child.nodeName.toLowerCase()) ? curAnnotations : {})), { inlineHtml: curAnnotations.inlineHtml, plainText: typeGuard.isNonNullable(curAnnotations.inlineHtml) }))
|
|
3512
|
-
: curAnnotations;
|
|
3513
|
-
return Object.assign({}, this.generateTextNode('', emptyNodeAnnotations));
|
|
3514
|
-
}
|
|
3515
|
-
}
|
|
3516
|
-
}
|
|
3517
|
-
|
|
3518
|
-
/**
|
|
3519
|
-
* Register and setup the default DTO classes and their basic action strategies.
|
|
3520
|
-
*/
|
|
3521
|
-
// Register the default block DTOs
|
|
3522
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('paragraph', codeBlock.RTETextBlock);
|
|
3523
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('title', codeBlock.RTETextBlock);
|
|
3524
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('subtitle', codeBlock.RTETextBlock);
|
|
3525
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-1', codeBlock.RTETextBlock);
|
|
3526
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-2', codeBlock.RTETextBlock);
|
|
3527
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-3', codeBlock.RTETextBlock);
|
|
3528
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-4', codeBlock.RTETextBlock);
|
|
3529
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-5', codeBlock.RTETextBlock);
|
|
3530
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-6', codeBlock.RTETextBlock);
|
|
3531
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('heading-6', codeBlock.RTETextBlock);
|
|
3532
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('list-item', RTEListItemBlock);
|
|
3533
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('bullet-list', RTEListBlock);
|
|
3534
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('number-list', RTEListBlock);
|
|
3535
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('image', RTEImageBlock);
|
|
3536
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('code-block', codeBlock.RTECodeBlock);
|
|
3537
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('html-block', RTEHtmlBlock);
|
|
3538
|
-
// Register the default node DTOs
|
|
3539
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('text', codeBlock.RTETextNode);
|
|
3540
|
-
codeBlock.RTEDTOClassManager.registerRTEDTOClass('image', RTEImageNode);
|
|
3541
|
-
// Register basic strategies for default block DTOs
|
|
3542
|
-
RTEDTOActionStrategyManager$1.registerBlockBasicStrategies(codeBlock.RTETextBlock.name);
|
|
3543
|
-
RTEDTOActionStrategyManager$1.registerBlockBasicStrategies(RTEListBlock.name);
|
|
3544
|
-
RTEDTOActionStrategyManager$1.registerBlockBasicStrategies(RTEListItemBlock.name);
|
|
3545
|
-
RTEDTOActionStrategyManager$1.registerBlockBasicStrategies(RTEImageBlock.name);
|
|
3546
|
-
RTEDTOActionStrategyManager$1.registerBlockBasicStrategies(RTEHtmlBlock.name);
|
|
3547
|
-
// Register element to DTO strategies for default node DTOs, The order of registration matters, the later registered strategy has higher priority.
|
|
3548
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new ContinueInlineToRTETextBlockStrategy());
|
|
3549
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new SpanImageToRTEImageBlockStrategy());
|
|
3550
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new VegaImageToRTEImageBlockStrategy());
|
|
3551
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new ImgToRTEImageBlockStrategy());
|
|
3552
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new InlineBlockToRTETextBlockStrategy());
|
|
3553
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new JiraCodeToRTECodeBlockStrategy());
|
|
3554
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new VegaCodeBlockToRTECodeBlockStrategy());
|
|
3555
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new LiToRTEListItemBlockStrategy());
|
|
3556
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new ULNotLiChildToRTEListItemBlockStrategy());
|
|
3557
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new OlToRTEListBlockStrategy());
|
|
3558
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new UlToRTEListBlockStrategy());
|
|
3559
|
-
ElementToDTOClassStrategyManager.registerElementToBlockStrategy(new HtmlBlockStrategy());
|
|
3560
|
-
ElementToDTOClassStrategyManager.registerElementToNodeStrategy(new InlineElementToTextNodeStrategy());
|
|
3561
|
-
ElementToDTOClassStrategyManager.registerElementToNodeStrategy(new PlainTextToTextNodeStrategy());
|
|
3562
|
-
|
|
3563
|
-
/**
|
|
3564
|
-
* StylePreservator handles CSP-compliant style management by temporarily converting
|
|
3565
|
-
* inline styles to data attributes during HTML parsing operations.
|
|
3566
|
-
*
|
|
3567
|
-
* @example
|
|
3568
|
-
* ```typescript
|
|
3569
|
-
* const context = StylePreservator.preserve('<div style="color: red;">Content</div>');
|
|
3570
|
-
* const safeHtml = context.getProcessedHtml();
|
|
3571
|
-
* context.restore(parsedElements);
|
|
3572
|
-
* ```
|
|
3573
|
-
*/
|
|
3574
|
-
class StylePreservator {
|
|
3575
|
-
/**
|
|
3576
|
-
* Preserves inline styles by converting them to data attributes.
|
|
3577
|
-
*
|
|
3578
|
-
* @param {string} htmlString - The HTML string containing inline styles
|
|
3579
|
-
* @returns {StylePreservationContext} A context object for later style restoration
|
|
3580
|
-
*/
|
|
3581
|
-
static preserve(htmlString) {
|
|
3582
|
-
const processedHtml = htmlString.replace(/\s+style=/g, ' data-style=');
|
|
3583
|
-
return new StylePreservationContext(processedHtml);
|
|
3584
|
-
}
|
|
3585
|
-
}
|
|
3586
|
-
/**
|
|
3587
|
-
* Context class that manages the lifecycle of preserved styles.
|
|
3588
|
-
*/
|
|
3589
|
-
class StylePreservationContext {
|
|
3590
|
-
constructor(processedHtml) {
|
|
3591
|
-
this.processedHtml = processedHtml;
|
|
3592
|
-
}
|
|
3593
|
-
/**
|
|
3594
|
-
* Returns the HTML string with style attributes converted to data-style.
|
|
3595
|
-
*
|
|
3596
|
-
* @returns {string} The processed HTML string
|
|
3597
|
-
*/
|
|
3598
|
-
getProcessedHtml() {
|
|
3599
|
-
return this.processedHtml;
|
|
3600
|
-
}
|
|
3601
|
-
/**
|
|
3602
|
-
* Restores data-style attributes back to style attributes.
|
|
3603
|
-
*
|
|
3604
|
-
* @param {HTMLElement[]} elements - Array of HTML elements to process
|
|
3605
|
-
* @returns {void}
|
|
3606
|
-
*/
|
|
3607
|
-
restore(elements) {
|
|
3608
|
-
this.walkNodes(elements);
|
|
3609
|
-
}
|
|
3610
|
-
/**
|
|
3611
|
-
* Recursively walk through nodes and restore styles
|
|
3612
|
-
*
|
|
3613
|
-
* @param {HTMLElement[]} elements - list of nodes
|
|
3614
|
-
* @returns {void}
|
|
3615
|
-
*/
|
|
3616
|
-
walkNodes(elements) {
|
|
3617
|
-
elements.forEach((element) => {
|
|
3618
|
-
if (ui.isHTMLElement(element)) {
|
|
3619
|
-
// Restore data-style back to style
|
|
3620
|
-
const dataStyle = element.getAttribute('data-style');
|
|
3621
|
-
if (dataStyle) {
|
|
3622
|
-
element.style.cssText = dataStyle;
|
|
3623
|
-
element.removeAttribute('data-style');
|
|
3624
|
-
}
|
|
3625
|
-
// Recursively process child nodes
|
|
3626
|
-
if (element.children.length > 0) {
|
|
3627
|
-
this.walkNodes(Array.from(element.children));
|
|
3628
|
-
}
|
|
3629
|
-
}
|
|
3630
|
-
});
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
|
-
|
|
3634
|
-
/**
|
|
3635
|
-
* Class representing the content state of the rich text editor.
|
|
3636
|
-
*/
|
|
3637
|
-
class VegaRTEContent {
|
|
3638
|
-
constructor(blocks) {
|
|
3639
|
-
blocks.forEach((block) => {
|
|
3640
|
-
block.parent = this;
|
|
3641
|
-
});
|
|
3642
|
-
this.children = blocks;
|
|
3643
|
-
}
|
|
3644
|
-
/**
|
|
3645
|
-
* Converts a JSON array of blocks to a class array of RTEContentBlock.
|
|
3646
|
-
*
|
|
3647
|
-
* @param {VegaRTEContentBlock[]} value The JSON array of blocks to convert.
|
|
3648
|
-
* @param {VegaRTETransformOptions} options - Optional transformation options.
|
|
3649
|
-
* @returns {VegaRTEContent} The converted array of RTEContentBlock.
|
|
3650
|
-
*/
|
|
3651
|
-
static fromJSON(value, options = { autoMatchFormat: true }) {
|
|
3652
|
-
const blocks = value.map((block) => {
|
|
3653
|
-
const BlockClass = codeBlock.RTEDTOClassManager.getRTEBlockClass(block.type);
|
|
3654
|
-
if (BlockClass) {
|
|
3655
|
-
return BlockClass.from(block, options);
|
|
3656
|
-
}
|
|
3657
|
-
else {
|
|
3658
|
-
throw new Error(`[Vega] Unknown block type: ${block.type}`);
|
|
3659
|
-
}
|
|
3660
|
-
});
|
|
3661
|
-
return new VegaRTEContent(blocks);
|
|
3662
|
-
}
|
|
3663
|
-
/**
|
|
3664
|
-
* Create an empty content state
|
|
3665
|
-
*
|
|
3666
|
-
* @returns {VegaRTEContent} An empty content state
|
|
3667
|
-
*/
|
|
3668
|
-
static createEmptyContent() {
|
|
3669
|
-
return VegaRTEContent.fromJSON([
|
|
3670
|
-
{
|
|
3671
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3672
|
-
type: 'paragraph',
|
|
3673
|
-
nodes: [
|
|
3674
|
-
{
|
|
3675
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
3676
|
-
type: 'text',
|
|
3677
|
-
text: '',
|
|
3678
|
-
},
|
|
3679
|
-
],
|
|
3680
|
-
},
|
|
3681
|
-
]);
|
|
3682
|
-
}
|
|
3683
|
-
/**
|
|
3684
|
-
* Converts HTML content to a VegaRTEContent instance.
|
|
3685
|
-
*
|
|
3686
|
-
* @param {string} html - The HTML string to convert.
|
|
3687
|
-
* @param {VegaRTETransformOptions} options - Optional transformation options.
|
|
3688
|
-
* @returns {VegaRTEContent} The converted content state.
|
|
3689
|
-
*/
|
|
3690
|
-
static fromHtml(html, options = { autoMatchFormat: true, skipCustomAnnotations: false }) {
|
|
3691
|
-
/**
|
|
3692
|
-
* remove redundant spaces between tags, for example:
|
|
3693
|
-
* case1:
|
|
3694
|
-
* '<p>\n\t <span>test</span>\n\t </p>' will be formatted into '<p><span>test</span></p>'
|
|
3695
|
-
* '<p>
|
|
3696
|
-
* test
|
|
3697
|
-
* </p>' will be formatted into '<p>test</p>'
|
|
3698
|
-
*
|
|
3699
|
-
* case2:
|
|
3700
|
-
* <h1>
|
|
3701
|
-
* _test&*....
|
|
3702
|
-
* </h1> will be formatted into <h1>_test&*....</h1>
|
|
3703
|
-
*
|
|
3704
|
-
* The blank space between individual tags should be preserved:
|
|
3705
|
-
* <span> </span>
|
|
3706
|
-
*/
|
|
3707
|
-
const formattedHtml = html
|
|
3708
|
-
.replace(/>\s+<\/?/g, (match) => {
|
|
3709
|
-
return match.endsWith('</') ? match : '><';
|
|
3710
|
-
})
|
|
3711
|
-
.replace(/(>)[\n\t]+(?=[a-zA-Z0-9_\W])/g, '$1')
|
|
3712
|
-
.replace(/([a-zA-Z0-9_\W])[\n\t]+(?=<)/g, '$1');
|
|
3713
|
-
const context = StylePreservator.preserve(formattedHtml);
|
|
3714
|
-
const safeHtml = context.getProcessedHtml();
|
|
3715
|
-
const body = new DOMParser().parseFromString(safeHtml, 'text/html').body;
|
|
3716
|
-
const htmlElements = Array.from(body.childNodes);
|
|
3717
|
-
context.restore(htmlElements);
|
|
3718
|
-
const blocks = ElementToDtoStrategyProcessor$1.process(htmlElements, options)
|
|
3719
|
-
.filter(typeGuard.isNonNullable)
|
|
3720
|
-
.map((output) => output.toDto(options))
|
|
3721
|
-
.filter(typeGuard.isNonNullable);
|
|
3722
|
-
return new VegaRTEContent(blocks);
|
|
3723
|
-
}
|
|
3724
|
-
/**
|
|
3725
|
-
* Clones the content state.
|
|
3726
|
-
*
|
|
3727
|
-
* @param {boolean} deep - If true, performs a deep clone of the content state.
|
|
3728
|
-
* @returns {VegaRTEContent} The cloned content state.
|
|
3729
|
-
*/
|
|
3730
|
-
clone(deep = false) {
|
|
3731
|
-
return deep
|
|
3732
|
-
? new VegaRTEContent(this.children.map((block) => block.clone(this)))
|
|
3733
|
-
: new VegaRTEContent([...this.children]);
|
|
3734
|
-
}
|
|
3735
|
-
/**
|
|
3736
|
-
* Converts the content state to a JSON array of blocks.
|
|
3737
|
-
*
|
|
3738
|
-
* @returns {VegaRTEContentBlock[]} The JSON array of blocks.
|
|
3739
|
-
*/
|
|
3740
|
-
toJSON() {
|
|
3741
|
-
return this.children.map((block) => block.toJSON());
|
|
3742
|
-
}
|
|
3743
|
-
/**
|
|
3744
|
-
* Converts the content state to HTML.
|
|
3745
|
-
*
|
|
3746
|
-
* @deprecated The [`options`]{@link options} parameter is deprecated and will be removed in the future.
|
|
3747
|
-
* @param {VegaRTETransformOptions} [options] - Deprecated. Optional rendering context (currently unused).
|
|
3748
|
-
* @returns {string} The HTML representation of the content state.
|
|
3749
|
-
*/
|
|
3750
|
-
toHtml(options) {
|
|
3751
|
-
if (options) {
|
|
3752
|
-
globalSlimmerRegistry.LogUtility.warn(`The 'options' parameter in toHtml method is deprecated and will be removed in the future.`);
|
|
3753
|
-
}
|
|
3754
|
-
return this.children.map((block) => block.toHtml()).join('');
|
|
3755
|
-
}
|
|
3756
|
-
/**
|
|
3757
|
-
* Internal method to add the block item, remove the block item
|
|
3758
|
-
*
|
|
3759
|
-
* @param {ModifyContentAction} action - Modify content action
|
|
3760
|
-
*/
|
|
3761
|
-
apply(action) {
|
|
3762
|
-
codeBlock.ActionHandleStrategyRegistry.executeTheStrategy(action, this);
|
|
3763
|
-
// Check if the action has been executed and is flushable
|
|
3764
|
-
if (action['executedFlag'] && action.isFlushable) {
|
|
3765
|
-
const host = codeBlock.stateEntityRenderingRegistry.getDOMByEntity(this);
|
|
3766
|
-
if (host) {
|
|
3767
|
-
changeManager.ChangeManager.notify(domNodeSubjectObserverFactory.domNodeSubjectFactory.getSubject(host, vegaInternalEventId.VegaInternalRichTextEditorFlushChanges), {});
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3770
|
-
}
|
|
3771
|
-
/**
|
|
3772
|
-
* Get the last node in the content.
|
|
3773
|
-
*
|
|
3774
|
-
* @returns {Nullable<RTENode>} The last node in the content or null if there are no nodes.
|
|
3775
|
-
*/
|
|
3776
|
-
getLastNode() {
|
|
3777
|
-
if (this.children.length === 0) {
|
|
3778
|
-
return null;
|
|
3779
|
-
}
|
|
3780
|
-
const lastBlock = this.children[this.children.length - 1];
|
|
3781
|
-
return lastBlock.getLastNode();
|
|
3782
|
-
}
|
|
3783
|
-
/**
|
|
3784
|
-
* Convert text to list.
|
|
3785
|
-
*
|
|
3786
|
-
* @param {RTETextBlock} block - block
|
|
3787
|
-
* @returns {RTEListItemBlock} list item block dto.
|
|
3788
|
-
*/
|
|
3789
|
-
toListItem(block) {
|
|
3790
|
-
block.children.map((node) => node.apply(new codeBlock.SyncUpSelectionAction()));
|
|
3791
|
-
const listItemBlock = new RTEListItemBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
3792
|
-
listItemBlock.apply(new codeBlock.AppendChildrenAction(block['children']));
|
|
3793
|
-
listItemBlock['annotationMap'] = block['annotationMap'];
|
|
3794
|
-
return listItemBlock;
|
|
3795
|
-
}
|
|
3796
|
-
/**
|
|
3797
|
-
* create list.
|
|
3798
|
-
*
|
|
3799
|
-
* @param {ListType} type - type
|
|
3800
|
-
* @returns {RTEListBlock} list block dto.
|
|
3801
|
-
*/
|
|
3802
|
-
createList(type) {
|
|
3803
|
-
return new RTEListBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID(), type);
|
|
3804
|
-
}
|
|
3805
|
-
/**
|
|
3806
|
-
* Finds a node by its ID in the content.
|
|
3807
|
-
*
|
|
3808
|
-
* @param {string} id - The ID of the node to find.
|
|
3809
|
-
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
3810
|
-
*/
|
|
3811
|
-
findNodeById(id) {
|
|
3812
|
-
return this.findNodeInBlocksById(id, this.children);
|
|
3813
|
-
}
|
|
3814
|
-
/**
|
|
3815
|
-
* Recursively searches for a node by its ID in the given blocks.
|
|
3816
|
-
*
|
|
3817
|
-
* @param {string} id - The ID of the node to find.
|
|
3818
|
-
* @param {RTEContentBlock[]} blocks - The blocks to search within.
|
|
3819
|
-
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
3820
|
-
*/
|
|
3821
|
-
findNodeInBlocksById(id, blocks) {
|
|
3822
|
-
for (const block of blocks) {
|
|
3823
|
-
if ('children' in block) {
|
|
3824
|
-
for (const node of block.children) {
|
|
3825
|
-
if (node.id === id) {
|
|
3826
|
-
return node;
|
|
3827
|
-
}
|
|
3828
|
-
}
|
|
3829
|
-
}
|
|
3830
|
-
if (block instanceof RTEListItemBlock && block.nestList) {
|
|
3831
|
-
for (const cBlock of block.nestList) {
|
|
3832
|
-
const foundNode = this.findNodeInBlocksById(id, cBlock.children);
|
|
3833
|
-
if (foundNode) {
|
|
3834
|
-
return foundNode;
|
|
3835
|
-
}
|
|
3836
|
-
}
|
|
3837
|
-
}
|
|
3838
|
-
if (block instanceof RTEListBlock && block.children) {
|
|
3839
|
-
const foundNode = this.findNodeInBlocksById(id, block.children);
|
|
3840
|
-
if (foundNode) {
|
|
3841
|
-
return foundNode;
|
|
3842
|
-
}
|
|
3843
|
-
}
|
|
3844
|
-
}
|
|
3845
|
-
return null;
|
|
3846
|
-
}
|
|
3847
|
-
}
|
|
3848
|
-
(() => {
|
|
3849
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_CHILDREN, VegaRTEContent.name, new codeBlock.RemoveChildrenStrategy());
|
|
3850
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.APPEND_CHILDREN, VegaRTEContent.name, new AppendChildrenStrategy());
|
|
3851
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_CHILDREN_BEFORE, VegaRTEContent.name, new InsertChildrenBeforeStrategy());
|
|
3852
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_CHILDREN_AFTER, VegaRTEContent.name, new InsertChildrenAfterStrategy());
|
|
3853
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.TRANSFORM_TO_CODE_BLOCK, VegaRTEContent.name, new BlockTransformToCodeBlockStrategy());
|
|
3854
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.UPDATE_CURSOR_POSITION, VegaRTEContent.name, new UpdateCursorPositionStrategy());
|
|
3855
|
-
})();
|
|
3856
|
-
|
|
3857
|
-
/**
|
|
3858
|
-
* RTEDTORendererManager is a singleton class that manages the registration and retrieval of RTE DTO renderers.
|
|
3859
|
-
*/
|
|
3860
|
-
class RTEDTORendererManager {
|
|
3861
|
-
constructor() {
|
|
3862
|
-
// Register RTE DTO renderers, mapping type strings to their respective renderer instances.
|
|
3863
|
-
this.RTE_DTO_RENDERER_MAP = new Map();
|
|
3864
|
-
// Register RTE Toolbar Button Renderers, mapping type strings to their respective renderer instances.
|
|
3865
|
-
this.RTE_TOOLBAR_BUTTON_RENDERER_MAP = new Map();
|
|
3866
|
-
}
|
|
3867
|
-
/**
|
|
3868
|
-
* Registers a new RTE DTO renderer.
|
|
3869
|
-
*
|
|
3870
|
-
* @param {string} type - The type identifier for the RTE DTO renderer.
|
|
3871
|
-
* @param {VegaRTEBaseRenderer} RTEDTORenderer - The renderer instance for the RTE DTO.
|
|
3872
|
-
*/
|
|
3873
|
-
registerRTEDTORenderer(type, RTEDTORenderer) {
|
|
3874
|
-
const existRenderer = this.RTE_DTO_RENDERER_MAP.get(type);
|
|
3875
|
-
if (RTEDTORenderer &&
|
|
3876
|
-
existRenderer &&
|
|
3877
|
-
existRenderer.constructor.name !== RTEDTORenderer.constructor.name) {
|
|
3878
|
-
throw new Error(`Renderer for type ${type} is already registered with a different class(${existRenderer.constructor.name}).`);
|
|
3879
|
-
}
|
|
3880
|
-
this.RTE_DTO_RENDERER_MAP.set(type, RTEDTORenderer);
|
|
3881
|
-
}
|
|
3882
|
-
/**
|
|
3883
|
-
* Registers a new RTE Toolbar Button Renderer.
|
|
3884
|
-
*
|
|
3885
|
-
* @param {string} type - The type identifier for the RTE Toolbar Button Renderer.
|
|
3886
|
-
* @param {VegaRTEToolbarButtonRenderer} RTEToolbarButtonRenderer - The renderer instance for the RTE Toolbar Button.
|
|
3887
|
-
*/
|
|
3888
|
-
registerRTEToolbarButtonRenderer(type, RTEToolbarButtonRenderer) {
|
|
3889
|
-
this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(type, RTEToolbarButtonRenderer);
|
|
3890
|
-
}
|
|
3891
|
-
/**
|
|
3892
|
-
* Retrieves the RTE renderer for a given type.
|
|
3893
|
-
*
|
|
3894
|
-
* @param {string} type - The type identifier for the RTE block.
|
|
3895
|
-
* @returns {Nullable<BaseRenderer>} - The renderer instance for the RTE block, or null if not found.
|
|
3896
|
-
*/
|
|
3897
|
-
getRTERenderer(type) {
|
|
3898
|
-
return this.RTE_DTO_RENDERER_MAP.get(type);
|
|
3899
|
-
}
|
|
3900
|
-
/**
|
|
3901
|
-
* Retrieves the RTE Toolbar Button Renderer for a given type.
|
|
3902
|
-
*
|
|
3903
|
-
* @param {string} type - The type identifier for the RTE Toolbar Button Renderer.
|
|
3904
|
-
* @returns {Nullable<VegaRTEToolbarButtonRenderer>} - The renderer instance for the RTE Toolbar Button, or null if not found.
|
|
3905
|
-
*/
|
|
3906
|
-
getRTEToolbarButtonRenderer(type) {
|
|
3907
|
-
return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(type);
|
|
3908
|
-
}
|
|
3909
|
-
}
|
|
3910
|
-
const RTEDTORendererManager$1 = new RTEDTORendererManager();
|
|
3911
|
-
|
|
3912
|
-
exports.BlockToRTEBlockStrategyAbstract = BlockToRTEBlockStrategyAbstract;
|
|
3913
|
-
exports.ElementToDTOClassStrategyManager = ElementToDTOClassStrategyManager;
|
|
3914
|
-
exports.ElementToDTOStrategy = ElementToDTOStrategy;
|
|
3915
|
-
exports.ElementToDtoStrategyProcessor = ElementToDtoStrategyProcessor$1;
|
|
3916
|
-
exports.ImageAnnotation = ImageAnnotation;
|
|
3917
|
-
exports.InsertChildrenBeforeStrategy = InsertChildrenBeforeStrategy;
|
|
3918
|
-
exports.InsertNewParagraphAction = InsertNewParagraphAction;
|
|
3919
|
-
exports.MergeTwoBlocksNodesAction = MergeTwoBlocksNodesAction;
|
|
3920
|
-
exports.PasteContentStrategy = PasteContentStrategy;
|
|
3921
|
-
exports.RTEDTOActionStrategyManager = RTEDTOActionStrategyManager$1;
|
|
3922
|
-
exports.RTEDTORendererManager = RTEDTORendererManager$1;
|
|
3923
|
-
exports.RTEImageBlock = RTEImageBlock;
|
|
3924
|
-
exports.RTEImageNode = RTEImageNode;
|
|
3925
|
-
exports.RTEListBlock = RTEListBlock;
|
|
3926
|
-
exports.RTEListItemBlock = RTEListItemBlock;
|
|
3927
|
-
exports.StylePreservator = StylePreservator;
|
|
3928
|
-
exports.UpdateCursorPositionAction = UpdateCursorPositionAction;
|
|
3929
|
-
exports.VegaRTEContent = VegaRTEContent;
|
|
3930
|
-
exports.htmlElementToAnnotationGenerator = htmlElementToAnnotationGenerator;
|