@globalpayments/vega 2.95.0 → 2.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (518) hide show
  1. package/dist/cjs/{app-globals-76815382.js → app-globals-3f57f7b9.js} +10 -10
  2. package/dist/cjs/{code-block-493c7ce7.js → code-block-28a7732e.js} +1508 -56
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-ab21fcbf.js → component-value-history-controller-slimmer.abstract-50cdba6e.js} +3 -3
  4. package/dist/cjs/{content-state-fc34a814.js → content-state-e2ab0f06.js} +143 -581
  5. package/dist/cjs/{date-required-rule-4ab06a82.js → date-required-rule-5250f26d.js} +1 -1
  6. package/dist/cjs/{design-token-d3d12fa0.js → design-token-74674ee7.js} +3 -3
  7. package/dist/cjs/{element-appender-slimmer-1d6323c2.js → element-appender-slimmer-ccb2e3c2.js} +117 -2
  8. package/dist/cjs/{form-field-controller-slimmer-d638ba12.js → form-field-controller-slimmer-58621b5e.js} +5 -14
  9. package/dist/cjs/form-field-key-8d5edf75.js +25 -0
  10. package/dist/cjs/{image-annotation-action-7c4cd316.js → image-annotation-action-b54dc669.js} +2 -2
  11. package/dist/cjs/{image-extension-30a7c10f.js → image-extension-1e3eeaa3.js} +2 -2
  12. package/dist/cjs/index.cjs.js +19 -19
  13. package/dist/cjs/{inject-keyboard-manager-5a105612.js → inject-keyboard-manager-6a6f5c9f.js} +1 -1
  14. package/dist/cjs/{internal-calendar-period-factory-b76006f7.js → internal-calendar-period-factory-dfcdd3f6.js} +1 -1
  15. package/dist/cjs/{internal-translation-controller-eb02c3b1.js → internal-translation-controller-1dac2df8.js} +7 -0
  16. package/dist/cjs/{keyboard-manager-ca76d4dc.js → keyboard-manager-c56033b1.js} +1 -1
  17. package/dist/cjs/{keyboard-manager-slimmer-a1223714.js → keyboard-manager-slimmer-7043a106.js} +1 -1
  18. package/dist/cjs/{link-extension-92a63cb7.js → link-extension-71c27ff3.js} +3 -3
  19. package/dist/cjs/loader.cjs.js +12 -12
  20. package/dist/cjs/{month-view-generator-876c50d4.js → month-view-generator-7b704a80.js} +1 -1
  21. package/dist/cjs/{public-rules-9e1ea1d9.js → public-rules-55e34d2e.js} +7 -7
  22. package/dist/cjs/{range-30219330.js → range-eebe0e3c.js} +1 -1
  23. package/dist/cjs/{responsive-format-facade-25e9f30d.js → responsive-format-facade-493d1763.js} +1 -1
  24. package/dist/cjs/{rich-text-editor-required-rule-23bf7485.js → rich-text-editor-required-rule-4fdee376.js} +1 -1
  25. package/dist/cjs/{split-cell-operation-43752212.js → split-cell-operation-51097409.js} +3 -3
  26. package/dist/cjs/{state-border-formatter-f1ce0f3b.js → state-border-formatter-711c7aaa.js} +1 -1
  27. package/dist/cjs/{string-format-strategy.abstract-b22f7754.js → string-format-strategy.abstract-b61bdcbd.js} +1 -1
  28. package/dist/cjs/{string-input-formatter-slimmer-d2c248f7.js → string-input-formatter-slimmer-18d45942.js} +1 -1
  29. package/dist/cjs/{string-mask-strategy-fc01a500.js → string-mask-strategy-ad3fa0ac.js} +2 -2
  30. package/dist/cjs/{style-formatter-73205450.js → style-formatter-8f711cb0.js} +2 -2
  31. package/dist/cjs/{time-required-rule-12d2f394.js → time-required-rule-87417359.js} +1 -1
  32. package/dist/cjs/{token-extension-d123d9d0.js → token-extension-608bbf7b.js} +38 -14
  33. package/dist/cjs/{translation-slimmer-9099f56c.js → translation-slimmer-77c7f37d.js} +1 -1
  34. package/dist/cjs/{type-guard-f354af8b.js → type-guard-a57ef3ac.js} +1 -1
  35. package/dist/cjs/{valid-credit-card-number-rule-8d370163.js → valid-credit-card-number-rule-4c0a3040.js} +1 -1
  36. package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
  37. package/dist/cjs/vega-app-header-button.cjs.entry.js +5 -5
  38. package/dist/cjs/vega-backdrop.cjs.entry.js +63 -8
  39. package/dist/cjs/vega-box.cjs.entry.js +6 -6
  40. package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
  41. package/dist/cjs/vega-button.cjs.entry.js +3 -3
  42. package/dist/cjs/vega-calendar_5.cjs.entry.js +7 -7
  43. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  44. package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
  45. package/dist/cjs/vega-checkbox_2.cjs.entry.js +20 -3
  46. package/dist/cjs/vega-chip.cjs.entry.js +5 -5
  47. package/dist/cjs/vega-code-block.cjs.entry.js +8 -8
  48. package/dist/cjs/vega-color-picker.cjs.entry.js +11 -2
  49. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +12 -3
  50. package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
  51. package/dist/cjs/vega-combo-box.cjs.entry.js +17 -8
  52. package/dist/cjs/vega-date-picker_2.cjs.entry.js +22 -13
  53. package/dist/cjs/vega-dialog_2.cjs.entry.js +3 -3
  54. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  55. package/dist/cjs/vega-dropdown_5.cjs.entry.js +33 -10
  56. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  57. package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
  58. package/dist/cjs/vega-file-uploader.cjs.entry.js +12 -3
  59. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  60. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  61. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  62. package/dist/cjs/vega-form.cjs.entry.js +28 -25
  63. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  64. package/dist/cjs/vega-icon.cjs.entry.js +5 -5
  65. package/dist/cjs/vega-image-uploader.cjs.entry.js +14 -5
  66. package/dist/cjs/vega-input-credit-card.cjs.entry.js +16 -7
  67. package/dist/cjs/vega-input-numeric.cjs.entry.js +14 -5
  68. package/dist/cjs/vega-input-passcode.cjs.entry.js +14 -5
  69. package/dist/cjs/vega-input-phone-number.cjs.entry.js +13 -4
  70. package/dist/cjs/vega-input-range.cjs.entry.js +12 -3
  71. package/dist/cjs/vega-input-select.cjs.entry.js +14 -5
  72. package/dist/cjs/vega-input.cjs.entry.js +9 -7
  73. package/dist/cjs/vega-left-nav_5.cjs.entry.js +71 -11
  74. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  75. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
  76. package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
  77. package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
  78. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
  79. package/dist/cjs/vega-radio_2.cjs.entry.js +17 -5
  80. package/dist/cjs/vega-rich-text-content.cjs.entry.js +86 -14
  81. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +2122 -451
  82. package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +1 -1
  83. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +5 -5
  84. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +8 -8
  85. package/dist/cjs/vega-section-title.cjs.entry.js +896 -14
  86. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +13 -4
  87. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +11 -2
  88. package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
  89. package/dist/cjs/vega-signature-capture.cjs.entry.js +16 -7
  90. package/dist/cjs/vega-stepper.cjs.entry.js +12 -3
  91. package/dist/cjs/vega-table_11.cjs.entry.js +4 -4
  92. package/dist/cjs/vega-textarea.cjs.entry.js +12 -3
  93. package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -9
  94. package/dist/cjs/vega-toggle-switch.cjs.entry.js +12 -3
  95. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
  96. package/dist/cjs/vega.cjs.js +12 -12
  97. package/dist/collection/components/vega-backdrop/slimmers/controller/vega-backdrop-visible-controller.js +63 -8
  98. package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +33 -1
  99. package/dist/collection/components/vega-checkbox/vega-checkbox.js +34 -2
  100. package/dist/collection/components/vega-color-picker/vega-color-picker.js +33 -1
  101. package/dist/collection/components/vega-color-swatch/vega-color-swatch-picker/vega-color-swatch-picker.js +33 -1
  102. package/dist/collection/components/vega-combo-box/vega-combo-box.js +35 -3
  103. package/dist/collection/components/vega-date-picker/vega-date-picker.js +33 -1
  104. package/dist/collection/components/vega-dropdown/vega-dropdown.js +30 -7
  105. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +33 -1
  106. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-field-controller.js +9 -9
  107. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-field-validation-state-controller.js +5 -5
  108. package/dist/collection/components/vega-form/slimmers/renderers/native-form-renderer.js +4 -1
  109. package/dist/collection/components/vega-form/vega-form.js +32 -0
  110. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +33 -1
  111. package/dist/collection/components/vega-input/vega-input.js +5 -4
  112. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +34 -2
  113. package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +33 -1
  114. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +33 -1
  115. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +33 -1
  116. package/dist/collection/components/vega-input-range/vega-input-range.js +33 -1
  117. package/dist/collection/components/vega-input-select/vega-input-select.js +35 -3
  118. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.js +17 -1
  119. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.js +48 -5
  120. package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +18 -3
  121. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +4 -0
  122. package/dist/collection/components/vega-rich-text-editor/constants/constant.js +3 -0
  123. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +29 -0
  124. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-or-decorator-node-strategy.js +10 -1
  125. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-list-strategy.js +8 -3
  126. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-annotation-strategy.abstract.js +60 -0
  127. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.js +36 -4
  128. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-items-strategy.abstract.js +27 -0
  129. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-nest-items-strategy.js +74 -0
  130. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.js +81 -1
  131. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-selection.js +30 -0
  132. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.js +160 -9
  133. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +376 -10
  134. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-unnest-items-strategy.js +104 -0
  135. package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +2 -0
  136. package/dist/collection/components/vega-rich-text-editor/dto/actions/nest-list-items-action.js +12 -0
  137. package/dist/collection/components/vega-rich-text-editor/dto/actions/unnest-list-items-action.js +12 -0
  138. package/dist/collection/components/vega-rich-text-editor/dto/annotations/list-annotation.js +12 -0
  139. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +10 -1
  140. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +11 -3
  141. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +7 -1
  142. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +8 -4
  143. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +26 -3
  144. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +34 -1
  145. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +20 -3
  146. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +25 -1
  147. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +2 -0
  148. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/abstract-delete-content-handler.js +29 -0
  149. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +1 -1
  150. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/keyboard-link-handler.js +297 -0
  151. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.js +13 -0
  152. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +30 -1
  153. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/abstract-list-keyboard-handler.js +204 -0
  154. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-shift-tab-outdent-handler.js +42 -0
  155. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-tab-indent-handler.js +34 -0
  156. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/list-keyboard-slimmer.js +180 -0
  157. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +8 -2
  158. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +33 -1
  159. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.js +398 -0
  160. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-state-manager.js +111 -0
  161. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.js +173 -0
  162. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/link-type-handler.js +49 -0
  163. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +114 -106
  164. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/utils/link-url-normalizer.js +80 -0
  165. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +44 -1
  166. package/dist/collection/components/vega-section-title/slimmers/a11y-tree/build-section-title-a11y-tree.js +54 -0
  167. package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +4 -4
  168. package/dist/collection/components/vega-section-title/vega-section-title.js +18 -2
  169. package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.js +33 -1
  170. package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +33 -1
  171. package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +33 -1
  172. package/dist/collection/components/vega-stepper/vega-stepper.js +34 -2
  173. package/dist/collection/components/vega-textarea/vega-textarea.js +34 -2
  174. package/dist/collection/components/vega-time-picker/vega-time-picker.js +33 -1
  175. package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +34 -2
  176. package/dist/collection/helpers/a11y-tree/a11y-node-dto.js +210 -0
  177. package/dist/collection/helpers/a11y-tree/a11y-tree-applier.js +189 -0
  178. package/dist/collection/helpers/a11y-tree/a11y-tree.types.js +48 -0
  179. package/dist/collection/helpers/a11y-tree/strategies/baseline-strategy.js +78 -0
  180. package/dist/collection/helpers/a11y-tree/strategies/firefox-nvda-strategy.js +56 -0
  181. package/dist/collection/helpers/a11y-tree/strategies/webkit-voiceover-strategy.js +140 -0
  182. package/dist/collection/helpers/a11y-tree/strategy-resolver.js +172 -0
  183. package/dist/collection/helpers/slimmers/a11y-tree-slimmer.js +54 -0
  184. package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +29 -0
  185. package/dist/collection/helpers/slimmers/element-appender/visibility-modifiers/clip-on-scroll-modifier.js +70 -0
  186. package/dist/collection/helpers/slimmers/element-appender/visibility-modifiers/visibility-modifier.interface.js +1 -0
  187. package/dist/collection/helpers/slimmers/{field-error-controller-silmmer.js → form/field-error-controller-silmmer.js} +3 -3
  188. package/dist/collection/helpers/slimmers/{field-error-ui-controller-slimmer.js → form/field-error-ui-controller-slimmer.js} +9 -9
  189. package/dist/collection/helpers/slimmers/{form-field-controller-slimmer.js → form/form-field-controller-slimmer.js} +9 -18
  190. package/dist/collection/helpers/slimmers/{form-field-message-translator.js → form/form-field-message-translator.js} +1 -1
  191. package/dist/collection/helpers/slimmers/{form-field-state-controller-slimmer.js → form/form-field-state-controller-slimmer.js} +1 -1
  192. package/dist/collection/helpers/slimmers/{form-field-valid-invoke-slimmer.js → form/form-field-valid-invoke-slimmer.js} +2 -2
  193. package/dist/collection/helpers/slimmers/form/utils/form-field-key.js +20 -0
  194. package/dist/collection/helpers/translation/locales/en.js +7 -0
  195. package/dist/collection/helpers/ui/element-appender.js +16 -0
  196. package/dist/collection/helpers/validator/form-field-controller.js +5 -4
  197. package/dist/esm/{app-globals-eafcc7a1.js → app-globals-d3991e53.js} +10 -10
  198. package/dist/esm/{code-block-e12588fe.js → code-block-8df86434.js} +1499 -52
  199. package/dist/esm/{component-value-history-controller-slimmer.abstract-4e8eb313.js → component-value-history-controller-slimmer.abstract-e4b95997.js} +3 -3
  200. package/dist/esm/{content-state-8032467a.js → content-state-c63fbeda.js} +106 -542
  201. package/dist/esm/{date-required-rule-b88e1650.js → date-required-rule-85334d0c.js} +1 -1
  202. package/dist/esm/{design-token-76bd217c.js → design-token-10ff79b5.js} +3 -3
  203. package/dist/esm/{element-appender-slimmer-7fcb944b.js → element-appender-slimmer-24be8e94.js} +117 -2
  204. package/dist/esm/{form-field-controller-slimmer-395c23e3.js → form-field-controller-slimmer-d8628837.js} +5 -14
  205. package/dist/esm/form-field-key-44ab39d0.js +22 -0
  206. package/dist/esm/{image-annotation-action-08a20d5e.js → image-annotation-action-fcceff95.js} +2 -2
  207. package/dist/esm/{image-extension-b6c7e4a7.js → image-extension-3280bdb0.js} +2 -2
  208. package/dist/esm/index.js +17 -17
  209. package/dist/esm/{inject-keyboard-manager-86126b5b.js → inject-keyboard-manager-ea1aad5b.js} +1 -1
  210. package/dist/esm/{internal-calendar-period-factory-3a07dba0.js → internal-calendar-period-factory-7b294fb6.js} +1 -1
  211. package/dist/esm/{internal-translation-controller-16709132.js → internal-translation-controller-fac22598.js} +7 -0
  212. package/dist/esm/{keyboard-manager-a0c3e1cf.js → keyboard-manager-50da85d7.js} +1 -1
  213. package/dist/esm/{keyboard-manager-slimmer-f3f66c15.js → keyboard-manager-slimmer-1f7c8bfb.js} +1 -1
  214. package/dist/esm/{link-extension-97fcb8fb.js → link-extension-f92c06ef.js} +3 -3
  215. package/dist/esm/loader.js +12 -12
  216. package/dist/esm/{month-view-generator-fd0e1856.js → month-view-generator-a1a9a4ec.js} +1 -1
  217. package/dist/esm/{public-rules-c06f0d2a.js → public-rules-3695aaf7.js} +7 -7
  218. package/dist/esm/{range-e999837f.js → range-717d552d.js} +1 -1
  219. package/dist/esm/{responsive-format-facade-ced96b0b.js → responsive-format-facade-f19b601c.js} +1 -1
  220. package/dist/esm/{rich-text-editor-required-rule-71f8ee98.js → rich-text-editor-required-rule-2e39264a.js} +1 -1
  221. package/dist/esm/{split-cell-operation-359f8082.js → split-cell-operation-6c26af91.js} +3 -3
  222. package/dist/esm/{state-border-formatter-b680e922.js → state-border-formatter-bfda33aa.js} +1 -1
  223. package/dist/esm/{string-format-strategy.abstract-23faab71.js → string-format-strategy.abstract-1f4ff1b3.js} +1 -1
  224. package/dist/esm/{string-input-formatter-slimmer-4b4866a6.js → string-input-formatter-slimmer-68b2af39.js} +1 -1
  225. package/dist/esm/{string-mask-strategy-66586cd8.js → string-mask-strategy-bbbcdbef.js} +2 -2
  226. package/dist/esm/{style-formatter-f4e16af5.js → style-formatter-e9adc8f4.js} +2 -2
  227. package/dist/esm/{time-required-rule-6e80a9ab.js → time-required-rule-1ce2d0a0.js} +1 -1
  228. package/dist/esm/{token-extension-f5bf9c21.js → token-extension-5082a4d2.js} +33 -9
  229. package/dist/esm/{translation-slimmer-21748a0e.js → translation-slimmer-ee0f0e76.js} +1 -1
  230. package/dist/esm/{type-guard-ec5e8628.js → type-guard-f2624334.js} +1 -1
  231. package/dist/esm/{valid-credit-card-number-rule-ca5a47d6.js → valid-credit-card-number-rule-60212b1d.js} +1 -1
  232. package/dist/esm/vega-accordion.entry.js +6 -6
  233. package/dist/esm/vega-app-header-button.entry.js +5 -5
  234. package/dist/esm/vega-backdrop.entry.js +63 -8
  235. package/dist/esm/vega-box.entry.js +6 -6
  236. package/dist/esm/vega-button-circle.entry.js +5 -5
  237. package/dist/esm/vega-button.entry.js +3 -3
  238. package/dist/esm/vega-calendar_5.entry.js +7 -7
  239. package/dist/esm/vega-card.entry.js +5 -5
  240. package/dist/esm/vega-carousel.entry.js +3 -3
  241. package/dist/esm/vega-checkbox_2.entry.js +20 -3
  242. package/dist/esm/vega-chip.entry.js +5 -5
  243. package/dist/esm/vega-code-block.entry.js +8 -8
  244. package/dist/esm/vega-color-picker.entry.js +11 -2
  245. package/dist/esm/vega-color-swatch-picker.entry.js +12 -3
  246. package/dist/esm/vega-color-swatch.entry.js +2 -2
  247. package/dist/esm/vega-combo-box.entry.js +17 -8
  248. package/dist/esm/vega-date-picker_2.entry.js +22 -13
  249. package/dist/esm/vega-dialog_2.entry.js +3 -3
  250. package/dist/esm/vega-divider.entry.js +5 -5
  251. package/dist/esm/vega-dropdown_5.entry.js +33 -10
  252. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  253. package/dist/esm/vega-field-label.entry.js +2 -2
  254. package/dist/esm/vega-file-uploader.entry.js +12 -3
  255. package/dist/esm/vega-flag-icon.entry.js +5 -5
  256. package/dist/esm/vega-flex.entry.js +6 -6
  257. package/dist/esm/vega-font.entry.js +5 -5
  258. package/dist/esm/vega-form.entry.js +28 -25
  259. package/dist/esm/vega-grid.entry.js +5 -5
  260. package/dist/esm/vega-icon.entry.js +5 -5
  261. package/dist/esm/vega-image-uploader.entry.js +14 -5
  262. package/dist/esm/vega-input-credit-card.entry.js +16 -7
  263. package/dist/esm/vega-input-numeric.entry.js +14 -5
  264. package/dist/esm/vega-input-passcode.entry.js +14 -5
  265. package/dist/esm/vega-input-phone-number.entry.js +13 -4
  266. package/dist/esm/vega-input-range.entry.js +12 -3
  267. package/dist/esm/vega-input-select.entry.js +14 -5
  268. package/dist/esm/vega-input.entry.js +9 -7
  269. package/dist/esm/vega-left-nav_5.entry.js +71 -11
  270. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  271. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  272. package/dist/esm/vega-pagination.entry.js +4 -4
  273. package/dist/esm/vega-popover_2.entry.js +8 -8
  274. package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
  275. package/dist/esm/vega-radio_2.entry.js +17 -5
  276. package/dist/esm/vega-rich-text-content.entry.js +86 -14
  277. package/dist/esm/vega-rich-text-editor_4.entry.js +2118 -447
  278. package/dist/esm/vega-rich-text-find-replace-panel.entry.js +1 -1
  279. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +5 -5
  280. package/dist/esm/vega-rich-text-table-properties_3.entry.js +8 -8
  281. package/dist/esm/vega-section-title.entry.js +897 -15
  282. package/dist/esm/vega-selection-chip_2.entry.js +13 -4
  283. package/dist/esm/vega-selection-tile_2.entry.js +11 -2
  284. package/dist/esm/vega-sidenav_3.entry.js +3 -3
  285. package/dist/esm/vega-signature-capture.entry.js +16 -7
  286. package/dist/esm/vega-stepper.entry.js +12 -3
  287. package/dist/esm/vega-table_11.entry.js +4 -4
  288. package/dist/esm/vega-textarea.entry.js +12 -3
  289. package/dist/esm/vega-time-picker_2.entry.js +18 -9
  290. package/dist/esm/vega-toggle-switch.entry.js +12 -3
  291. package/dist/esm/vega-tooltip_2.entry.js +6 -6
  292. package/dist/esm/vega.js +12 -12
  293. package/dist/sri/vega-sri-manifest.json +319 -315
  294. package/dist/types/components/vega-backdrop/slimmers/controller/vega-backdrop-visible-controller.d.ts +21 -0
  295. package/dist/types/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.d.ts +9 -1
  296. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +9 -1
  297. package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +9 -1
  298. package/dist/types/components/vega-color-swatch/vega-color-swatch-picker/vega-color-swatch-picker.d.ts +9 -1
  299. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +15 -7
  300. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +9 -1
  301. package/dist/types/components/vega-dropdown/types.d.ts +2 -2
  302. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +32 -9
  303. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +9 -1
  304. package/dist/types/components/vega-form/slimmers/controllers/vega-form-field-controller.d.ts +3 -2
  305. package/dist/types/components/vega-form/slimmers/renderers/native-form-renderer.d.ts +1 -0
  306. package/dist/types/components/vega-form/vega-form.d.ts +8 -0
  307. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +9 -1
  308. package/dist/types/components/vega-input/vega-input.d.ts +3 -2
  309. package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +9 -1
  310. package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +9 -1
  311. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +9 -1
  312. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +9 -1
  313. package/dist/types/components/vega-input-range/vega-input-range.d.ts +9 -1
  314. package/dist/types/components/vega-input-select/vega-input-select.d.ts +15 -7
  315. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.d.ts +7 -0
  316. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.d.ts +17 -0
  317. package/dist/types/components/vega-radio/vega-radio-group/vega-radio-group.d.ts +5 -1
  318. package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +3 -0
  319. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-annotation-strategy.abstract.d.ts +36 -0
  320. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.d.ts +14 -2
  321. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-items-strategy.abstract.d.ts +22 -0
  322. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-nest-items-strategy.d.ts +21 -0
  323. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.d.ts +14 -0
  324. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-selection.d.ts +15 -0
  325. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.d.ts +30 -3
  326. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.d.ts +99 -3
  327. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-unnest-items-strategy.d.ts +22 -0
  328. package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +2 -0
  329. package/dist/types/components/vega-rich-text-editor/dto/actions/nest-list-items-action.d.ts +11 -0
  330. package/dist/types/components/vega-rich-text-editor/dto/actions/unnest-list-items-action.d.ts +11 -0
  331. package/dist/types/components/vega-rich-text-editor/dto/annotations/list-annotation.d.ts +8 -0
  332. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +6 -1
  333. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +5 -1
  334. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +2 -2
  335. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +2 -0
  336. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +8 -0
  337. package/dist/types/components/vega-rich-text-editor/extensions/link/type.d.ts +34 -0
  338. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +18 -0
  339. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.d.ts +4 -4
  340. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/keyboard-link-handler.d.ts +111 -0
  341. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.d.ts +7 -0
  342. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.d.ts +8 -0
  343. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/abstract-list-keyboard-handler.d.ts +99 -0
  344. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-shift-tab-outdent-handler.d.ts +15 -0
  345. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-tab-indent-handler.d.ts +15 -0
  346. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/list-keyboard-slimmer.d.ts +73 -0
  347. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +9 -1
  348. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.d.ts +149 -0
  349. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-state-manager.d.ts +84 -0
  350. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.d.ts +82 -0
  351. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/link-type-handler.d.ts +33 -0
  352. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.d.ts +24 -17
  353. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/utils/link-url-normalizer.d.ts +37 -0
  354. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types.d.ts +4 -0
  355. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.d.ts +12 -0
  356. package/dist/types/components/vega-section-title/slimmers/a11y-tree/build-section-title-a11y-tree.d.ts +41 -0
  357. package/dist/types/components/vega-section-title/vega-section-title.d.ts +9 -0
  358. package/dist/types/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.d.ts +9 -1
  359. package/dist/types/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.d.ts +9 -1
  360. package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +9 -1
  361. package/dist/types/components/vega-stepper/vega-stepper.d.ts +9 -1
  362. package/dist/types/components/vega-textarea/vega-textarea.d.ts +9 -1
  363. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +9 -1
  364. package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +9 -1
  365. package/dist/types/components.d.ts +297 -14
  366. package/dist/types/helpers/a11y-tree/a11y-node-dto.d.ts +173 -0
  367. package/dist/types/helpers/a11y-tree/a11y-tree-applier.d.ts +28 -0
  368. package/dist/types/helpers/a11y-tree/a11y-tree.types.d.ts +137 -0
  369. package/dist/types/helpers/a11y-tree/strategies/baseline-strategy.d.ts +18 -0
  370. package/dist/types/helpers/a11y-tree/strategies/firefox-nvda-strategy.d.ts +16 -0
  371. package/dist/types/helpers/a11y-tree/strategies/webkit-voiceover-strategy.d.ts +23 -0
  372. package/dist/types/helpers/a11y-tree/strategy-resolver.d.ts +59 -0
  373. package/dist/types/helpers/slimmers/a11y-tree-slimmer.d.ts +49 -0
  374. package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +9 -0
  375. package/dist/types/helpers/slimmers/element-appender/visibility-modifiers/clip-on-scroll-modifier.d.ts +37 -0
  376. package/dist/types/helpers/slimmers/element-appender/visibility-modifiers/visibility-modifier.interface.d.ts +56 -0
  377. package/dist/types/helpers/slimmers/{field-error-controller-silmmer.d.ts → form/field-error-controller-silmmer.d.ts} +1 -1
  378. package/dist/types/helpers/slimmers/{field-error-ui-controller-slimmer.d.ts → form/field-error-ui-controller-slimmer.d.ts} +2 -2
  379. package/dist/types/helpers/slimmers/{form-field-controller-slimmer.d.ts → form/form-field-controller-slimmer.d.ts} +6 -14
  380. package/dist/types/helpers/slimmers/{form-field-message-translator.d.ts → form/form-field-message-translator.d.ts} +2 -2
  381. package/dist/types/helpers/slimmers/{form-field-state-controller-slimmer.d.ts → form/form-field-state-controller-slimmer.d.ts} +2 -2
  382. package/dist/types/helpers/slimmers/{form-field-valid-invoke-slimmer.d.ts → form/form-field-valid-invoke-slimmer.d.ts} +3 -3
  383. package/dist/types/helpers/slimmers/form/utils/form-field-key.d.ts +17 -0
  384. package/dist/types/helpers/translation/interface.d.ts +7 -0
  385. package/dist/types/helpers/ui/element-appender.d.ts +7 -0
  386. package/dist/types/helpers/validator/form-field-controller.d.ts +3 -3
  387. package/dist/vega/index.esm.js +1 -1
  388. package/dist/vega/p-040ea356.entry.js +1 -0
  389. package/dist/vega/p-046203cb.entry.js +1 -0
  390. package/dist/vega/p-0499e65a.entry.js +1 -0
  391. package/dist/vega/{p-0be4df0a.js → p-0809c651.js} +1 -1
  392. package/dist/vega/{p-02355de8.js → p-09524fec.js} +1 -1
  393. package/dist/vega/{p-74f86ff9.entry.js → p-0cf3b5c1.entry.js} +1 -1
  394. package/dist/vega/p-10d43a80.entry.js +1 -0
  395. package/dist/vega/{p-3d6f761a.entry.js → p-1132a74e.entry.js} +1 -1
  396. package/dist/vega/{p-ba662fe5.js → p-12e8a1b2.js} +1 -1
  397. package/dist/vega/p-1d5e05d9.js +3 -0
  398. package/dist/vega/{p-3dee1e55.js → p-1e0a8fd3.js} +1 -1
  399. package/dist/vega/{p-919cddc3.js → p-1ea9ad9a.js} +1 -1
  400. package/dist/vega/p-21626b93.entry.js +1 -0
  401. package/dist/vega/p-21f608e8.entry.js +1 -0
  402. package/dist/vega/p-2540fd1c.entry.js +1 -0
  403. package/dist/vega/{p-9f201152.entry.js → p-26760c66.entry.js} +1 -1
  404. package/dist/vega/{p-892edf88.entry.js → p-2acf9b42.entry.js} +1 -1
  405. package/dist/vega/p-2bb60f89.js +1 -0
  406. package/dist/vega/{p-b1eb9ff0.js → p-2c2e8615.js} +1 -1
  407. package/dist/vega/p-2d158cbd.js +1 -0
  408. package/dist/vega/p-2d7388c9.entry.js +1 -0
  409. package/dist/vega/{p-b3a2ce06.entry.js → p-2eb8e167.entry.js} +1 -1
  410. package/dist/vega/p-2ff4ae1c.js +1 -0
  411. package/dist/vega/p-3488a3f1.entry.js +1 -0
  412. package/dist/vega/p-363ee8a5.entry.js +1 -0
  413. package/dist/vega/p-36c89520.entry.js +1 -0
  414. package/dist/vega/{p-e1737c8e.entry.js → p-3980dfa8.entry.js} +1 -1
  415. package/dist/vega/{p-14baa886.js → p-39c5054b.js} +1 -1
  416. package/dist/vega/p-3af5e87b.entry.js +1 -0
  417. package/dist/vega/{p-8db904dc.js → p-456f678b.js} +1 -1
  418. package/dist/vega/{p-6c9c2f8c.entry.js → p-461100b8.entry.js} +1 -1
  419. package/dist/vega/p-4c3a08be.entry.js +1 -0
  420. package/dist/vega/p-53fd3c41.entry.js +1 -0
  421. package/dist/vega/{p-6fcec7c7.entry.js → p-56417ec5.entry.js} +1 -1
  422. package/dist/vega/{p-8a001caa.js → p-5e37b041.js} +1 -1
  423. package/dist/vega/p-5f377954.js +1 -1
  424. package/dist/vega/{p-a0a58295.entry.js → p-5f96e741.entry.js} +1 -1
  425. package/dist/vega/p-65fee02f.entry.js +1 -0
  426. package/dist/vega/p-6b76b572.entry.js +1 -0
  427. package/dist/vega/{p-75e33859.js → p-6c95a6a3.js} +1 -1
  428. package/dist/vega/p-703ac992.entry.js +1 -0
  429. package/dist/vega/p-71909102.js +1 -0
  430. package/dist/vega/{p-e1b57e8f.entry.js → p-72ab5cd5.entry.js} +1 -1
  431. package/dist/vega/{p-8720816e.js → p-781b7a54.js} +1 -1
  432. package/dist/vega/{p-7950f3e2.entry.js → p-81d4dfcb.entry.js} +1 -1
  433. package/dist/vega/p-8611465f.entry.js +1 -0
  434. package/dist/vega/{p-0d18368b.js → p-874e5624.js} +1 -1
  435. package/dist/vega/{p-4fe40b76.js → p-8e7932bc.js} +1 -1
  436. package/dist/vega/p-8ed3b2b6.entry.js +1 -0
  437. package/dist/vega/{p-9c39f90b.entry.js → p-8ff92914.entry.js} +1 -1
  438. package/dist/vega/{p-9bdc6e11.entry.js → p-92528dc9.entry.js} +1 -1
  439. package/dist/vega/p-9664e914.entry.js +1 -0
  440. package/dist/vega/p-98fc5821.entry.js +1 -0
  441. package/dist/vega/{p-fe24b459.js → p-9be02fa5.js} +1 -1
  442. package/dist/vega/p-9c4c474e.entry.js +1 -0
  443. package/dist/vega/{p-8354cff0.entry.js → p-a034dfc0.entry.js} +1 -1
  444. package/dist/vega/{p-e48a870f.entry.js → p-a484e32d.entry.js} +1 -1
  445. package/dist/vega/{p-b9e72de2.entry.js → p-a8174ad8.entry.js} +1 -1
  446. package/dist/vega/{p-49e1cf4d.entry.js → p-a91927eb.entry.js} +1 -1
  447. package/dist/vega/{p-b187b82d.entry.js → p-abbceebf.entry.js} +1 -1
  448. package/dist/vega/{p-e4266b45.entry.js → p-ac94ba1b.entry.js} +1 -1
  449. package/dist/vega/{p-b775e51f.js → p-ae2abdfa.js} +1 -1
  450. package/dist/vega/{p-bb60e381.entry.js → p-aeb50cad.entry.js} +1 -1
  451. package/dist/vega/{p-a890d60b.entry.js → p-b00ec194.entry.js} +1 -1
  452. package/dist/vega/{p-f78944d7.entry.js → p-b3733762.entry.js} +1 -1
  453. package/dist/vega/p-b594a11c.entry.js +1 -0
  454. package/dist/vega/{p-b4e7c967.js → p-b622c455.js} +1 -1
  455. package/dist/vega/{p-1232b553.entry.js → p-b98ead05.entry.js} +1 -1
  456. package/dist/vega/{p-e5ff77f7.entry.js → p-c2277448.entry.js} +1 -1
  457. package/dist/vega/{p-9f7154d2.js → p-c29934ef.js} +1 -1
  458. package/dist/vega/p-c3646101.entry.js +1 -0
  459. package/dist/vega/p-ca270da3.entry.js +1 -0
  460. package/dist/vega/{p-b4c26035.entry.js → p-ccbe3f1b.entry.js} +1 -1
  461. package/dist/vega/{p-6cde45fc.js → p-cd69aeae.js} +1 -1
  462. package/dist/vega/{p-579cdeae.js → p-d25c1a48.js} +1 -1
  463. package/dist/vega/{p-5924adae.entry.js → p-d2cbcf5e.entry.js} +1 -1
  464. package/dist/vega/{p-df828d90.entry.js → p-d3413a78.entry.js} +1 -1
  465. package/dist/vega/{p-f1974321.js → p-d609c3fd.js} +1 -1
  466. package/dist/vega/{p-a7209700.js → p-dad7d2ac.js} +1 -1
  467. package/dist/vega/{p-61ce8029.js → p-dbb4b1d1.js} +1 -1
  468. package/dist/vega/p-dcd3e3a7.js +1 -0
  469. package/dist/vega/p-de8f0d98.js +1 -0
  470. package/dist/vega/{p-e235020b.entry.js → p-deaf037a.entry.js} +1 -1
  471. package/dist/vega/p-e1029acc.js +1 -0
  472. package/dist/vega/p-e18c0656.entry.js +1 -0
  473. package/dist/vega/p-e3fdb65c.entry.js +1 -0
  474. package/dist/vega/p-e7e963ba.entry.js +1 -0
  475. package/dist/vega/{p-f7e459cd.js → p-e9b005df.js} +1 -1
  476. package/dist/vega/{p-88be9ec5.js → p-e9d09211.js} +1 -1
  477. package/dist/vega/{p-3c309a38.js → p-f1078e63.js} +1 -1
  478. package/dist/vega/{p-595998d9.entry.js → p-f29ea345.entry.js} +1 -1
  479. package/dist/vega/p-f5095035.entry.js +1 -0
  480. package/dist/vega/{p-05d04c07.entry.js → p-f95d8d10.entry.js} +1 -1
  481. package/dist/vega/vega.esm.js +1 -1
  482. package/package.json +3 -2
  483. package/dist/vega/p-0512308f.entry.js +0 -1
  484. package/dist/vega/p-1d8312d3.entry.js +0 -1
  485. package/dist/vega/p-2d77ae73.entry.js +0 -1
  486. package/dist/vega/p-2d8d4d5b.entry.js +0 -1
  487. package/dist/vega/p-320091b7.js +0 -1
  488. package/dist/vega/p-36949349.js +0 -1
  489. package/dist/vega/p-38c9d782.js +0 -1
  490. package/dist/vega/p-4151f53a.entry.js +0 -1
  491. package/dist/vega/p-4ff48b84.js +0 -1
  492. package/dist/vega/p-513bc0d9.js +0 -1
  493. package/dist/vega/p-5e4517eb.entry.js +0 -1
  494. package/dist/vega/p-6680ba17.entry.js +0 -1
  495. package/dist/vega/p-80b7945a.entry.js +0 -1
  496. package/dist/vega/p-841b3281.entry.js +0 -1
  497. package/dist/vega/p-87e5cb56.entry.js +0 -1
  498. package/dist/vega/p-8d4b85e7.entry.js +0 -1
  499. package/dist/vega/p-91303402.entry.js +0 -1
  500. package/dist/vega/p-97215133.js +0 -1
  501. package/dist/vega/p-9d96d83f.entry.js +0 -1
  502. package/dist/vega/p-a05a2f1e.entry.js +0 -1
  503. package/dist/vega/p-a775825e.entry.js +0 -1
  504. package/dist/vega/p-ae146458.entry.js +0 -1
  505. package/dist/vega/p-b8c13ac9.entry.js +0 -1
  506. package/dist/vega/p-ba2b9663.entry.js +0 -1
  507. package/dist/vega/p-bbad318e.entry.js +0 -1
  508. package/dist/vega/p-c079c935.entry.js +0 -1
  509. package/dist/vega/p-c0e42c03.entry.js +0 -1
  510. package/dist/vega/p-c41f5684.entry.js +0 -1
  511. package/dist/vega/p-c54b5a8f.entry.js +0 -1
  512. package/dist/vega/p-c5d3b008.entry.js +0 -1
  513. package/dist/vega/p-cd1e976c.entry.js +0 -1
  514. package/dist/vega/p-d25ca0c3.entry.js +0 -1
  515. package/dist/vega/p-ebe32b25.entry.js +0 -1
  516. package/dist/vega/p-ec162599.entry.js +0 -1
  517. package/dist/vega/p-f4da615a.js +0 -3
  518. package/dist/vega/p-fc7e4c8a.entry.js +0 -1
@@ -1,15 +1,47 @@
1
- import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
1
+ import { ListAnnotationStrategy } from './list-annotation-strategy.abstract';
2
2
  /**
3
3
  * Replace list item nest list strategy.
4
+ *
5
+ * This is the single write-through point for `nestList` mutations. It automatically
6
+ * normalizes the incoming array by merging adjacent lists only when their types
7
+ * and container annotations match. Styled list boundaries remain independent.
4
8
  */
5
- export class ListItemReplaceNestListStrategy extends ActionHandleStrategy {
9
+ export class ListItemReplaceNestListStrategy extends ListAnnotationStrategy {
6
10
  /**
7
11
  * @inheritDoc
8
12
  */
9
13
  handleAction(action, target) {
10
- action.newList.forEach((listBlock) => {
14
+ const normalized = this.mergeAdjacentSameType(action.newList);
15
+ normalized.forEach((listBlock) => {
11
16
  listBlock.parent = target;
12
17
  });
13
- target.nestList = action.newList;
18
+ target.nestList = normalized;
19
+ }
20
+ /**
21
+ * Merge adjacent entries that share the same list type and annotations.
22
+ * This is an idempotent O(n) pass — calling it on an already-normalized array is a no-op.
23
+ *
24
+ * @param {RTEListBlock[]} lists - The nest list array to normalize.
25
+ * @returns {RTEListBlock[]} A new array with adjacent same-type entries merged.
26
+ */
27
+ mergeAdjacentSameType(lists) {
28
+ if (lists.length <= 1) {
29
+ return lists;
30
+ }
31
+ const merged = [lists[0]];
32
+ for (let i = 1; i < lists.length; i++) {
33
+ const prev = merged[merged.length - 1];
34
+ const current = lists[i];
35
+ if (prev.type === current.type && this.haveSameListAnnotations(prev, current)) {
36
+ current.children.forEach((item) => {
37
+ item.parent = prev;
38
+ });
39
+ prev.children = prev.children.concat(current.children);
40
+ }
41
+ else {
42
+ merged.push(current);
43
+ }
44
+ }
45
+ return merged;
14
46
  }
15
47
  }
@@ -0,0 +1,27 @@
1
+ import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
2
+ /**
3
+ * Shared base strategy for list-item operations that require ordered contiguous
4
+ * item selection within the same target list.
5
+ */
6
+ export class AbstractListItemsStrategy extends ActionHandleStrategy {
7
+ /**
8
+ * Returns selected list items ordered by their position in target and validated
9
+ * as a contiguous range. Returns an empty array when selection is invalid.
10
+ *
11
+ * @param {RTEListBlock} target - The target list block containing selected items.
12
+ * @param {RTEListItemBlock[]} selectedBlocks - Selected list items from action payload.
13
+ * @returns {RTEListItemBlock[]} Ordered contiguous selected items, or empty array.
14
+ */
15
+ getOrderedContiguousItems(target, selectedBlocks) {
16
+ const orderedItems = [...selectedBlocks].sort((a, b) => target.children.indexOf(a) - target.children.indexOf(b));
17
+ const startIndex = target.children.indexOf(orderedItems[0]);
18
+ if (startIndex < 0) {
19
+ return [];
20
+ }
21
+ return target.children
22
+ .slice(startIndex, startIndex + orderedItems.length)
23
+ .every((item, index) => item === orderedItems[index])
24
+ ? orderedItems
25
+ : [];
26
+ }
27
+ }
@@ -0,0 +1,74 @@
1
+ import { generateUUID } from '../../../../../utils/misc';
2
+ import { SyncUpSelectionAction } from '../../actions/sync-up-selection-action';
3
+ import { ReplaceNestListAction } from '../../actions/replace-nest-list-action';
4
+ import { RTEListBlock } from '../../blocks/list-block';
5
+ import { AbstractListItemsStrategy } from './list-items-strategy.abstract';
6
+ /**
7
+ * Move selected list items into a nested list under the previous sibling.
8
+ */
9
+ export class ListNestItemsStrategy extends AbstractListItemsStrategy {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ handleAction(action, target) {
14
+ var _a, _b;
15
+ const selectedItems = this.getOrderedContiguousItems(target, action.selectedBlocks);
16
+ if (!selectedItems.length) {
17
+ return;
18
+ }
19
+ const startIndex = target.children.indexOf(selectedItems[0]);
20
+ if (startIndex <= 0) {
21
+ return;
22
+ }
23
+ const previousSibling = target.children[startIndex - 1];
24
+ const selectedItemSet = new Set(selectedItems);
25
+ // Tab behavior intentionally keeps using the last nested list entry if present,
26
+ // even when mixed nested-list types exist, to preserve current behavior.
27
+ // This also matches the behavior of other rich text editors, especially CKEditor.
28
+ let nestedList = (_a = previousSibling.nestList) === null || _a === void 0 ? void 0 : _a[previousSibling.nestList.length - 1];
29
+ if (!nestedList) {
30
+ nestedList = new RTEListBlock(generateUUID(), target.type);
31
+ previousSibling.apply(new ReplaceNestListAction([...((_b = previousSibling.nestList) !== null && _b !== void 0 ? _b : []), nestedList]));
32
+ }
33
+ target.children = target.children.filter((item) => !selectedItemSet.has(item));
34
+ nestedList.children = nestedList.children.concat(selectedItems);
35
+ selectedItems.forEach((item) => {
36
+ var _a;
37
+ item.parent = nestedList;
38
+ if ((_a = item.nestList) === null || _a === void 0 ? void 0 : _a.length) {
39
+ this.unifyDescendantNestLists(item, item.nestList[0].type);
40
+ }
41
+ item.children.forEach((node) => node.apply(new SyncUpSelectionAction()));
42
+ });
43
+ }
44
+ /**
45
+ * Recursively unify all nestLists of a list item (and its descendants) to the given type.
46
+ * Adjacent same-type merge is handled automatically by ListItemReplaceNestListStrategy
47
+ * when ReplaceNestListAction is applied, so this method only needs to set the type.
48
+ *
49
+ * @param {RTEListItemBlock} item - The list item whose descendants should be normalized.
50
+ * @param {RTEListBlock['type']} targetType - The target list type used for normalization.
51
+ */
52
+ unifyDescendantNestLists(item, targetType) {
53
+ var _a;
54
+ if (!((_a = item.nestList) === null || _a === void 0 ? void 0 : _a.length)) {
55
+ return;
56
+ }
57
+ let typeChanged = false;
58
+ for (const list of item.nestList) {
59
+ if (list.type !== targetType) {
60
+ list.type = targetType;
61
+ typeChanged = true;
62
+ }
63
+ // Recursively unify children
64
+ for (const child of list.children) {
65
+ this.unifyDescendantNestLists(child, targetType);
66
+ }
67
+ }
68
+ // If any type was changed, re-apply through ReplaceNestListAction so that the
69
+ // centralized normalize in ListItemReplaceNestListStrategy merges adjacent same-type entries.
70
+ if (typeChanged) {
71
+ item.apply(new ReplaceNestListAction([...item.nestList]));
72
+ }
73
+ }
74
+ }
@@ -1,5 +1,9 @@
1
1
  import { RemoveChildrenAction } from '../../actions/remove-child-action';
2
+ import { InsertChildrenAfterAction } from '../../actions/insert-children-after-block';
3
+ import { InsertChildrenBeforeAction } from '../../actions/insert-children-before-block';
2
4
  import { RemoveNestListAction } from '../../actions/remove-nest-list-action';
5
+ import { ReplaceNestListAction } from '../../actions/replace-nest-list-action';
6
+ import { RTEListItemBlock } from '../../blocks/list-item-block';
3
7
  import { RemoveChildrenStrategy } from './remove-children-strategy';
4
8
  /**
5
9
  * List remove list item strategy.
@@ -12,16 +16,92 @@ export class ListRemoveListItemStrategy extends RemoveChildrenStrategy {
12
16
  * @param {RTEListBlock} target - The list block.
13
17
  */
14
18
  handleAction(action, target) {
19
+ var _a, _b;
20
+ const removingListItem = action.entityToBeRemoved instanceof RTEListItemBlock ? action.entityToBeRemoved : null;
21
+ const removingIndex = removingListItem ? target.children.indexOf(removingListItem) : -1;
22
+ if (((_a = removingListItem === null || removingListItem === void 0 ? void 0 : removingListItem.nestList) === null || _a === void 0 ? void 0 : _a.length) && removingIndex >= 0) {
23
+ this.promoteNestListsToUpperLevel(removingListItem, target, removingIndex);
24
+ }
15
25
  super.handleAction(action, target);
16
26
  const parent = target.parent;
17
27
  if (target.children.length === 0 && parent) {
18
28
  // The parent is a list item mean the current block is a nest list, so we need to use RemoveNestListAction to remove the item
19
29
  if (parent['type'] === 'list-item') {
20
- parent.apply(new RemoveNestListAction(target));
30
+ const parentListItem = parent;
31
+ if ((_b = parentListItem.nestList) === null || _b === void 0 ? void 0 : _b.includes(target)) {
32
+ parentListItem.apply(new RemoveNestListAction(target));
33
+ }
21
34
  }
22
35
  else {
23
36
  parent.apply(new RemoveChildrenAction(target));
24
37
  }
25
38
  }
26
39
  }
40
+ /**
41
+ * Promote nested lists of the list item being removed by one level.
42
+ *
43
+ * Same-type nested lists are flattened into the current (target) list to avoid
44
+ * creating redundant list wrappers. Different-type nested lists stay nested under
45
+ * the parent list item as siblings of the target list, positioned relative to the
46
+ * target so document order is preserved. When the parent is the root content, the
47
+ * different-type lists are inserted right after the target list instead.
48
+ *
49
+ * @param {RTEListItemBlock} removingListItem - The list item being removed.
50
+ * @param {RTEListBlock} target - The list currently containing the item.
51
+ * @param {number} removingIndex - The original index of the removing item.
52
+ */
53
+ promoteNestListsToUpperLevel(removingListItem, target, removingIndex) {
54
+ var _a, _b;
55
+ const promotedLists = [...((_a = removingListItem.nestList) !== null && _a !== void 0 ? _a : [])];
56
+ let insertionIndex = removingIndex + 1;
57
+ const differentTypeLists = [];
58
+ promotedLists.forEach((listBlock) => {
59
+ if (listBlock.type === target.type) {
60
+ const promotedItems = [...listBlock.children];
61
+ if (promotedItems.length > 0) {
62
+ promotedItems.forEach((item) => {
63
+ item.parent = target;
64
+ });
65
+ target.children.splice(insertionIndex, 0, ...promotedItems);
66
+ insertionIndex += promotedItems.length;
67
+ }
68
+ }
69
+ else {
70
+ differentTypeLists.push(listBlock);
71
+ }
72
+ });
73
+ const parent = target.parent;
74
+ if (differentTypeLists.length > 0 && parent instanceof RTEListItemBlock) {
75
+ // Different-type promoted lists stay nested under the parent item, as siblings
76
+ // of the target list. When the removed item was merged into the parent, its
77
+ // own nested lists follow it up one level and belong to the parent item — not
78
+ // flattened into the grandparent list. Position them relative to the target so
79
+ // document order is preserved.
80
+ const currentNestLists = [...((_b = parent.nestList) !== null && _b !== void 0 ? _b : [])];
81
+ const targetIndex = currentNestLists.indexOf(target);
82
+ if (targetIndex >= 0) {
83
+ // When removing the first item, its nested lists were visually above the
84
+ // remaining items, so they must be placed before the target list to
85
+ // preserve document order.
86
+ const insertAt = removingIndex === 0 ? targetIndex : targetIndex + 1;
87
+ currentNestLists.splice(insertAt, 0, ...differentTypeLists);
88
+ }
89
+ else {
90
+ currentNestLists.push(...differentTypeLists);
91
+ }
92
+ parent.apply(new ReplaceNestListAction(currentNestLists));
93
+ }
94
+ else if (differentTypeLists.length > 0) {
95
+ // Mirror the nested-parent ordering rule: when removing the first item,
96
+ // its nested lists were visually above the remaining items, so insert
97
+ // before the target to preserve document order.
98
+ if (removingIndex === 0) {
99
+ parent.apply(new InsertChildrenBeforeAction(target, ...differentTypeLists));
100
+ }
101
+ else {
102
+ parent.apply(new InsertChildrenAfterAction(target, ...differentTypeLists));
103
+ }
104
+ }
105
+ removingListItem.apply(new ReplaceNestListAction([]));
106
+ }
27
107
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Normalize a mixed paragraph/list selection before rebuilding it as a list.
3
+ *
4
+ * Selected list items whose owning ancestor item is also selected remain inside
5
+ * that ancestor's nestList instead of being emitted again as flattened siblings.
6
+ * Their immediate list type is still updated because the nested item was part of
7
+ * the toolbar selection.
8
+ *
9
+ * @param {RTEBlock[]} selectedBlocks - Blocks selected by the toolbar action.
10
+ * @param {ListType} listType - Target list type.
11
+ * @returns {RTEBlock[]} Top-level selected blocks to emit into the rebuilt list.
12
+ */
13
+ export function normalizeMixedListSelection(selectedBlocks, listType) {
14
+ const selectedListItems = new Set(selectedBlocks.filter((block) => block.dtoName === 'RTEListItemBlock'));
15
+ return selectedBlocks.filter((block) => {
16
+ if (!(block.dtoName === 'RTEListItemBlock')) {
17
+ return true;
18
+ }
19
+ let parentList = block.parent;
20
+ while (parentList.parent && parentList.parent.dtoName === 'RTEListItemBlock') {
21
+ const ownerItem = parentList.parent;
22
+ if (selectedListItems.has(ownerItem)) {
23
+ block.parent.type = listType;
24
+ return false;
25
+ }
26
+ parentList = ownerItem.parent;
27
+ }
28
+ return true;
29
+ });
30
+ }
@@ -1,36 +1,187 @@
1
1
  import { AppendChildrenAction } from '../../actions/append-child-nodes-action';
2
2
  import { InsertChildrenAfterAction } from '../../actions/insert-children-after-block';
3
3
  import { RemoveChildrenAction } from '../../actions/remove-child-action';
4
+ import { ReplaceNestListAction } from '../../actions/replace-nest-list-action';
4
5
  import { SyncUpSelectionAction } from '../../actions/sync-up-selection-action';
5
- import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
6
+ import { RTEListBlock } from '../../blocks/list-block';
7
+ import { RTEListItemBlock } from '../../blocks/list-item-block';
8
+ import { normalizeMixedListSelection } from './list-transform-selection';
9
+ import { ListAnnotationStrategy } from './list-annotation-strategy.abstract';
6
10
  /**
7
11
  * Convert the selected blocks to list strategy.
8
12
  */
9
- export class ListTransformToListStrategy extends ActionHandleStrategy {
13
+ export class ListTransformToListStrategy extends ListAnnotationStrategy {
10
14
  /**
11
15
  * @inheritDoc
12
16
  */
13
17
  handleAction(action, target) {
18
+ var _a;
14
19
  const selectedBlocks = action.selectedBlocks;
15
- const bulletList = target.parent.createList(action.listType);
16
20
  const isSameList = selectedBlocks.every((block) => block.parent === target);
21
+ const rootContent = this.getRootContent(target);
22
+ if (!rootContent) {
23
+ return;
24
+ }
25
+ // Nested list case: target.parent is RTEListItemBlock, not VegaRTEContent.
26
+ // Replace the entry in the parent item's nestList using the existing ReplaceNestListAction.
27
+ if (target.parent instanceof RTEListItemBlock) {
28
+ if (isSameList) {
29
+ const newList = this.createListFromSource(rootContent, target, action.listType);
30
+ newList.apply(new AppendChildrenAction(target.children));
31
+ const parentListItem = target.parent;
32
+ const newNestList = ((_a = parentListItem.nestList) !== null && _a !== void 0 ? _a : []).map((list) => (list === target ? newList : list));
33
+ // Adjacent same-type merge is handled automatically by ListItemReplaceNestListStrategy.
34
+ parentListItem.apply(new ReplaceNestListAction(newNestList));
35
+ selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new SyncUpSelectionAction())));
36
+ }
37
+ else {
38
+ this.handleCrossListTransform(action, target);
39
+ }
40
+ return;
41
+ }
42
+ // Root list case: target.parent is VegaRTEContent.
43
+ // When all selected blocks are list items from different lists, convert each
44
+ // affected list's type in place (preserving nesting), then normalize adjacent
45
+ // same-type root lists into one.
46
+ if (!isSameList && selectedBlocks.every((block) => block instanceof RTEListItemBlock)) {
47
+ const affectedLists = new Set(selectedBlocks.map((block) => block.parent));
48
+ // Track which root lists result from conversion (new lists replace old ones).
49
+ const convertedRootLists = new Set();
50
+ affectedLists.forEach((list) => {
51
+ if (list.type !== action.listType) {
52
+ this.convertListTypeInPlace(list, action.listType);
53
+ }
54
+ });
55
+ // Collect current top-level lists that contain any selected item, grouped
56
+ // by their root or HTML-block container.
57
+ const affectedContainers = new Set();
58
+ selectedBlocks.forEach((block) => {
59
+ const parentList = block.parent;
60
+ if (!(parentList.parent instanceof RTEListItemBlock)) {
61
+ convertedRootLists.add(parentList);
62
+ affectedContainers.add(parentList.parent);
63
+ }
64
+ });
65
+ // Only merge adjacent root lists when BOTH are affected by this transform.
66
+ affectedContainers.forEach((container) => {
67
+ for (let i = 0; i < container.children.length - 1;) {
68
+ const current = container.children[i];
69
+ const next = container.children[i + 1];
70
+ if (current instanceof RTEListBlock &&
71
+ next instanceof RTEListBlock &&
72
+ current.type === next.type &&
73
+ this.haveSameListAnnotations(current, next) &&
74
+ convertedRootLists.has(current) &&
75
+ convertedRootLists.has(next)) {
76
+ current.apply(new AppendChildrenAction([...next.children]));
77
+ container.apply(new RemoveChildrenAction(next));
78
+ convertedRootLists.delete(next);
79
+ }
80
+ else {
81
+ i++;
82
+ }
83
+ }
84
+ });
85
+ selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new SyncUpSelectionAction())));
86
+ return;
87
+ }
88
+ const bulletList = this.createListFromSource(rootContent, target, action.listType);
89
+ const targetContainer = target.parent;
17
90
  if (isSameList) {
18
91
  // Select one or more list items belonging to the same list, and all items in this list should be updated
19
92
  bulletList.apply(new AppendChildrenAction(target.children));
20
- target.parent.apply(new InsertChildrenAfterAction(target, bulletList));
21
- target.parent.apply(new RemoveChildrenAction(target));
93
+ targetContainer.apply(new InsertChildrenAfterAction(target, bulletList));
94
+ targetContainer.apply(new RemoveChildrenAction(target));
22
95
  selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new SyncUpSelectionAction())));
23
96
  }
24
97
  else {
25
- const listItems = action.selectedBlocks.map((block) => target.parent.toListItem(block));
98
+ const mixedSelection = normalizeMixedListSelection(action.selectedBlocks, action.listType);
99
+ const listItems = mixedSelection.map((block) => rootContent.toListItem(block));
26
100
  bulletList.apply(new AppendChildrenAction(listItems));
27
- target.parent.apply(new InsertChildrenAfterAction(target, bulletList));
28
- action.selectedBlocks.forEach((block) => {
101
+ targetContainer.apply(new InsertChildrenAfterAction(target, bulletList));
102
+ mixedSelection.forEach((block) => {
29
103
  block.parent.apply(new RemoveChildrenAction(block));
30
104
  });
31
105
  if (target.children.length === 0) {
32
- target.parent.apply(new RemoveChildrenAction(target));
106
+ targetContainer.apply(new RemoveChildrenAction(target));
33
107
  }
34
108
  }
35
109
  }
110
+ /**
111
+ * Convert a single list's type in place, preserving its items and their nested
112
+ * structure. Root lists are swapped in the content children; nested lists are
113
+ * swapped inside their parent item's nestList.
114
+ *
115
+ * @param {RTEListBlock} list - The list whose type should be converted.
116
+ * @param {RTEListBlock['type']} listType - The target list type.
117
+ */
118
+ convertListTypeInPlace(list, listType) {
119
+ var _a;
120
+ const rootContent = this.getRootContent(list);
121
+ if (!rootContent) {
122
+ return;
123
+ }
124
+ const parent = list.parent;
125
+ const newList = this.createListFromSource(rootContent, list, listType);
126
+ newList.apply(new AppendChildrenAction([...list.children]));
127
+ if (parent instanceof RTEListItemBlock) {
128
+ // Adjacent same-type merge is handled automatically by ListItemReplaceNestListStrategy.
129
+ const newNestList = ((_a = parent.nestList) !== null && _a !== void 0 ? _a : []).map((entry) => entry === list ? newList : entry);
130
+ parent.apply(new ReplaceNestListAction(newNestList));
131
+ }
132
+ else {
133
+ parent.apply(new InsertChildrenAfterAction(list, newList));
134
+ parent.apply(new RemoveChildrenAction(list));
135
+ }
136
+ }
137
+ /**
138
+ * Handle the case where selected blocks span multiple nestLists under the same parent item.
139
+ * Transform each affected list and then merge adjacent same-type lists.
140
+ *
141
+ * @param {TransformListAction} action - The transform action with selection and target list type.
142
+ * @param {RTEListBlock} target - The nested list where transformation starts.
143
+ */
144
+ handleCrossListTransform(action, target) {
145
+ if (!(target.parent instanceof RTEListItemBlock)) {
146
+ return;
147
+ }
148
+ const rootContent = this.getRootContent(target);
149
+ if (!rootContent) {
150
+ return;
151
+ }
152
+ const parentListItem = target.parent;
153
+ const parentNestLists = parentListItem.nestList;
154
+ const affectedLists = new Set(action.selectedBlocks
155
+ .filter((block) => block instanceof RTEListItemBlock)
156
+ .map((block) => block.parent)
157
+ .filter((list) => parentNestLists.includes(list)));
158
+ if (!affectedLists.size) {
159
+ return;
160
+ }
161
+ const newNestList = parentNestLists.map((list) => {
162
+ if (!affectedLists.has(list)) {
163
+ return list;
164
+ }
165
+ const newList = this.createListFromSource(rootContent, list, action.listType);
166
+ newList.apply(new AppendChildrenAction(list.children));
167
+ return newList;
168
+ });
169
+ // Adjacent same-type merge is handled automatically by ListItemReplaceNestListStrategy.
170
+ parentListItem.apply(new ReplaceNestListAction(newNestList));
171
+ action.selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new SyncUpSelectionAction())));
172
+ }
173
+ /**
174
+ * Create a replacement list through the owning content factory while retaining
175
+ * the source list's container annotations.
176
+ *
177
+ * @param {VegaRTEContent} rootContent - Editor content owning the factory.
178
+ * @param {RTEListBlock} source - List whose annotations should be retained.
179
+ * @param {RTEListBlock['type']} listType - Replacement list type.
180
+ * @returns {RTEListBlock} New annotated list shell.
181
+ */
182
+ createListFromSource(rootContent, source, listType) {
183
+ const list = rootContent.createList(listType);
184
+ this.copyListAnnotations(source, list);
185
+ return list;
186
+ }
36
187
  }