@globalpayments/vega 2.47.1 → 2.49.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 (381) hide show
  1. package/dist/cjs/{app-globals-fdf98585.js → app-globals-e17dedba.js} +3 -3
  2. package/dist/cjs/{content-state-b1ec39e3.js → content-state-6a48bcb5.js} +240 -5
  3. package/dist/cjs/{design-token-0c22ffa8.js → design-token-6e2c52f1.js} +1 -1
  4. package/dist/cjs/{element-appender-slimmer-b3109dd1.js → element-appender-slimmer-9fb99abd.js} +2 -2
  5. package/dist/cjs/{form-field-controller-slimmer-2432e295.js → form-field-controller-slimmer-527c25a0.js} +2 -2
  6. package/dist/cjs/{image-annotation-action-becd6f24.js → image-annotation-action-9c2b9c8e.js} +1 -1
  7. package/dist/cjs/{index-ec9a1f36.js → index-c4dec3aa.js} +1 -1
  8. package/dist/cjs/index.cjs.js +6 -6
  9. package/dist/cjs/{inject-keyboard-manager-d1eac696.js → inject-keyboard-manager-b301e887.js} +1 -1
  10. package/dist/cjs/{keyboard-manager-97d0ddfa.js → keyboard-manager-2ccf4b16.js} +25 -5
  11. package/dist/cjs/{keyboard-manager-slimmer-23ce5dcf.js → keyboard-manager-slimmer-900cf2f5.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +5 -5
  13. package/dist/cjs/{min-number-rule-5bcccc8f.js → min-number-rule-965fc43d.js} +2 -2
  14. package/dist/cjs/{public-rules-3c2a69b4.js → public-rules-10ec636d.js} +3 -3
  15. package/dist/cjs/{responsive-format-facade-e48962dd.js → responsive-format-facade-9be0a851.js} +1 -1
  16. package/dist/cjs/{rich-text-editor-required-rule-f08f5891.js → rich-text-editor-required-rule-5faded94.js} +1 -1
  17. package/dist/cjs/{string-input-formatter-slimmer-56a2401f.js → string-input-formatter-slimmer-50322824.js} +2 -2
  18. package/dist/cjs/{style-formatter-48ef74d4.js → style-formatter-5b95a2a6.js} +1 -1
  19. package/dist/cjs/{sub-state-notify-slimmer-b16c9094.js → sub-state-notify-slimmer-7f437b19.js} +1 -1
  20. package/dist/cjs/{sub-state-observer-slimmer-1b6de09f.js → sub-state-observer-slimmer-e90362cd.js} +1 -1
  21. package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
  22. package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
  23. package/dist/cjs/vega-box.cjs.entry.js +5 -5
  24. package/dist/cjs/vega-button-circle.cjs.entry.js +4 -4
  25. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  26. package/dist/cjs/vega-button.cjs.entry.js +3 -3
  27. package/dist/cjs/vega-calendar_3.cjs.entry.js +3 -3
  28. package/dist/cjs/vega-card.cjs.entry.js +4 -4
  29. package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
  30. package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
  31. package/dist/cjs/vega-chip.cjs.entry.js +4 -4
  32. package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
  33. package/dist/cjs/vega-combo-box.cjs.entry.js +5 -5
  34. package/dist/cjs/vega-date-picker_2.cjs.entry.js +10 -10
  35. package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
  36. package/dist/cjs/vega-divider.cjs.entry.js +4 -4
  37. package/dist/cjs/vega-dropdown_5.cjs.entry.js +8 -8
  38. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  39. package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
  40. package/dist/cjs/vega-flag-icon.cjs.entry.js +4 -4
  41. package/dist/cjs/vega-flex.cjs.entry.js +5 -5
  42. package/dist/cjs/vega-font.cjs.entry.js +4 -4
  43. package/dist/cjs/vega-form.cjs.entry.js +4 -4
  44. package/dist/cjs/vega-grid.cjs.entry.js +4 -4
  45. package/dist/cjs/vega-icon.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-image-uploader.cjs.entry.js +16 -7
  47. package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
  48. package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -8
  49. package/dist/cjs/vega-input-phone-number.cjs.entry.js +3 -3
  50. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  51. package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
  52. package/dist/cjs/vega-input.cjs.entry.js +8 -8
  53. package/dist/cjs/{vega-internal-event-id-dc866d43.js → vega-internal-event-id-bfea9b93.js} +4 -0
  54. package/dist/cjs/vega-left-nav_5.cjs.entry.js +447 -194
  55. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  56. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
  57. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  58. package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
  59. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  60. package/dist/cjs/vega-radio_2.cjs.entry.js +8 -5
  61. package/dist/cjs/vega-rich-text-content.cjs.entry.js +19 -13
  62. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +480 -196
  63. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +6 -6
  64. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
  65. package/dist/cjs/vega-sidenav_3.cjs.entry.js +5 -5
  66. package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -6
  67. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  68. package/dist/cjs/vega-tab-group_2.cjs.entry.js +55 -19
  69. package/dist/cjs/vega-table_8.cjs.entry.js +5 -5
  70. package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
  71. package/dist/cjs/vega-time-picker_2.cjs.entry.js +8 -8
  72. package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -4
  73. package/dist/cjs/vega-tooltip_2.cjs.entry.js +11 -11
  74. package/dist/cjs/vega.cjs.js +5 -5
  75. package/dist/collection/collection-manifest.json +1 -1
  76. package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.js +4 -1
  77. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +11 -1
  78. package/dist/collection/components/vega-input/vega-input.js +4 -4
  79. package/dist/collection/components/vega-nav/slimmers/vega-left-nav-group-hierarchy-controller.js +31 -0
  80. package/dist/collection/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.js +147 -0
  81. package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +42 -8
  82. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-initialize-selected-controller.js +56 -0
  83. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-link-click-controller.js +70 -0
  84. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-open-state-controller.js +47 -0
  85. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-other-groups-click-controller.js +60 -0
  86. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.js +10 -9
  87. package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +21 -6
  88. package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.js +21 -0
  89. package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.js +13 -1
  90. package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +5 -0
  91. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +3 -0
  92. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +6 -0
  93. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +6 -0
  94. package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +6 -0
  95. package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +6 -0
  96. package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +6 -0
  97. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +6 -0
  98. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +6 -0
  99. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +7 -0
  100. package/dist/collection/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.js +8 -0
  101. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +6 -0
  102. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +6 -0
  103. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +15 -0
  104. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +6 -0
  105. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +8 -0
  106. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +14 -0
  107. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +14 -0
  108. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +20 -0
  109. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +25 -1
  110. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +47 -2
  111. package/dist/collection/components/vega-rich-text-editor/dto/editor-state.js +36 -0
  112. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +6 -0
  113. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +8 -0
  114. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +7 -1
  115. package/dist/collection/components/vega-rich-text-editor/dto/range.js +8 -0
  116. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -1
  117. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -1
  118. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -1
  119. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +7 -1
  120. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +1 -1
  121. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +2 -2
  122. package/dist/collection/components/vega-rich-text-editor/dto/selection-state.js +17 -0
  123. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +15 -5
  124. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +3 -0
  125. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +3 -2
  126. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +16 -1
  127. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +18 -15
  128. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +137 -0
  129. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +54 -15
  130. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +13 -1
  131. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +116 -0
  132. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +12 -0
  133. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +5 -0
  134. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.js +4 -0
  135. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +2 -1
  136. package/dist/collection/components/vega-stepper/vega-stepper.js +2 -2
  137. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.js +22 -12
  138. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-renderer.js +6 -2
  139. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +20 -4
  140. package/dist/collection/components/vega-tab-group/vega-tab-group.css +16 -0
  141. package/dist/collection/components/vega-tab-group/vega-tab-group.js +32 -0
  142. package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +8 -2
  143. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +2 -0
  144. package/dist/collection/helpers/keyboard/keyboard-manager.js +25 -5
  145. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +204 -105
  146. package/dist/collection/helpers/validator/rules/max-number-rule.js +1 -1
  147. package/dist/collection/helpers/validator/rules/min-number-rule.js +1 -1
  148. package/dist/collection/helpers/validator/test/rules/max-number-rule.test.js +2 -2
  149. package/dist/collection/helpers/validator/test/rules/min-number-rule.test.js +2 -2
  150. package/dist/esm/{app-globals-53b6125a.js → app-globals-b7b43a4e.js} +3 -3
  151. package/dist/esm/{content-state-7437e069.js → content-state-dbc9f635.js} +240 -5
  152. package/dist/esm/{design-token-fb43f78a.js → design-token-e263e6a2.js} +1 -1
  153. package/dist/esm/{element-appender-slimmer-0a0b20e9.js → element-appender-slimmer-55d63b1f.js} +2 -2
  154. package/dist/esm/{form-field-controller-slimmer-2978abd4.js → form-field-controller-slimmer-e7dc3db1.js} +2 -2
  155. package/dist/esm/{image-annotation-action-51248df9.js → image-annotation-action-1aa938ab.js} +1 -1
  156. package/dist/esm/{index-96374234.js → index-4aa167d6.js} +1 -1
  157. package/dist/esm/index.js +6 -6
  158. package/dist/esm/{inject-keyboard-manager-ab0bfb8b.js → inject-keyboard-manager-f513be4a.js} +1 -1
  159. package/dist/esm/{keyboard-manager-8c4ef91b.js → keyboard-manager-262be5ce.js} +25 -5
  160. package/dist/esm/{keyboard-manager-slimmer-6f5cb52a.js → keyboard-manager-slimmer-42bf9773.js} +1 -1
  161. package/dist/esm/loader.js +5 -5
  162. package/dist/esm/{min-number-rule-a6082418.js → min-number-rule-86421853.js} +2 -2
  163. package/dist/esm/{public-rules-cfc196c9.js → public-rules-5cf6aa95.js} +3 -3
  164. package/dist/esm/{responsive-format-facade-ae799f25.js → responsive-format-facade-bc2f8ad3.js} +1 -1
  165. package/dist/esm/{rich-text-editor-required-rule-baf61553.js → rich-text-editor-required-rule-6a7cd3ee.js} +1 -1
  166. package/dist/esm/{string-input-formatter-slimmer-8c7987ac.js → string-input-formatter-slimmer-c61f82d6.js} +2 -2
  167. package/dist/esm/{style-formatter-bf71b8e7.js → style-formatter-0f221459.js} +1 -1
  168. package/dist/esm/{sub-state-notify-slimmer-2216c7dc.js → sub-state-notify-slimmer-4e3cf09d.js} +1 -1
  169. package/dist/esm/{sub-state-observer-slimmer-da938c88.js → sub-state-observer-slimmer-be7a6ce3.js} +1 -1
  170. package/dist/esm/vega-accordion.entry.js +4 -4
  171. package/dist/esm/vega-app-header-button.entry.js +4 -4
  172. package/dist/esm/vega-box.entry.js +5 -5
  173. package/dist/esm/vega-button-circle.entry.js +4 -4
  174. package/dist/esm/vega-button-group_2.entry.js +3 -3
  175. package/dist/esm/vega-button.entry.js +3 -3
  176. package/dist/esm/vega-calendar_3.entry.js +3 -3
  177. package/dist/esm/vega-card.entry.js +4 -4
  178. package/dist/esm/vega-carousel.entry.js +3 -3
  179. package/dist/esm/vega-checkbox_2.entry.js +3 -3
  180. package/dist/esm/vega-chip.entry.js +4 -4
  181. package/dist/esm/vega-color-picker.entry.js +3 -3
  182. package/dist/esm/vega-combo-box.entry.js +5 -5
  183. package/dist/esm/vega-date-picker_2.entry.js +10 -10
  184. package/dist/esm/vega-dialog_2.entry.js +4 -4
  185. package/dist/esm/vega-divider.entry.js +4 -4
  186. package/dist/esm/vega-dropdown_5.entry.js +8 -8
  187. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  188. package/dist/esm/vega-file-uploader.entry.js +3 -3
  189. package/dist/esm/vega-flag-icon.entry.js +4 -4
  190. package/dist/esm/vega-flex.entry.js +5 -5
  191. package/dist/esm/vega-font.entry.js +4 -4
  192. package/dist/esm/vega-form.entry.js +4 -4
  193. package/dist/esm/vega-grid.entry.js +4 -4
  194. package/dist/esm/vega-icon.entry.js +4 -4
  195. package/dist/esm/vega-image-uploader.entry.js +16 -7
  196. package/dist/esm/vega-input-credit-card.entry.js +3 -3
  197. package/dist/esm/vega-input-numeric.entry.js +11 -8
  198. package/dist/esm/vega-input-phone-number.entry.js +3 -3
  199. package/dist/esm/vega-input-range.entry.js +3 -3
  200. package/dist/esm/vega-input-select.entry.js +5 -5
  201. package/dist/esm/vega-input.entry.js +8 -8
  202. package/dist/esm/{vega-internal-event-id-7d1ff289.js → vega-internal-event-id-85ad403f.js} +3 -1
  203. package/dist/esm/vega-left-nav_5.entry.js +447 -194
  204. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  205. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
  206. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
  207. package/dist/esm/vega-pagination.entry.js +3 -3
  208. package/dist/esm/vega-popover_2.entry.js +11 -11
  209. package/dist/esm/vega-radio_2.entry.js +8 -5
  210. package/dist/esm/vega-rich-text-content.entry.js +19 -13
  211. package/dist/esm/vega-rich-text-editor_4.entry.js +480 -196
  212. package/dist/esm/vega-selection-chip_2.entry.js +6 -6
  213. package/dist/esm/vega-selection-tile_2.entry.js +4 -4
  214. package/dist/esm/vega-sidenav_3.entry.js +5 -5
  215. package/dist/esm/vega-signature-capture.entry.js +6 -6
  216. package/dist/esm/vega-stepper.entry.js +6 -6
  217. package/dist/esm/vega-tab-group_2.entry.js +55 -19
  218. package/dist/esm/vega-table_8.entry.js +5 -5
  219. package/dist/esm/vega-textarea.entry.js +3 -3
  220. package/dist/esm/vega-time-picker_2.entry.js +8 -8
  221. package/dist/esm/vega-toggle-switch.entry.js +10 -4
  222. package/dist/esm/vega-tooltip_2.entry.js +11 -11
  223. package/dist/esm/vega.js +5 -5
  224. package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.d.ts +1 -0
  225. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +3 -0
  226. package/dist/types/components/vega-input/vega-input.d.ts +2 -2
  227. package/dist/types/components/vega-nav/interface.d.ts +11 -0
  228. package/dist/types/components/vega-nav/slimmers/vega-left-nav-group-hierarchy-controller.d.ts +15 -0
  229. package/dist/types/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.d.ts +4 -0
  230. package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +21 -4
  231. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-initialize-selected-controller.d.ts +20 -0
  232. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-link-click-controller.d.ts +25 -0
  233. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-open-state-controller.d.ts +27 -0
  234. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-other-groups-click-controller.d.ts +17 -0
  235. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.d.ts +2 -1
  236. package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +12 -5
  237. package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.d.ts +5 -0
  238. package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.d.ts +2 -0
  239. package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +2 -0
  240. package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +1 -0
  241. package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +4 -0
  242. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +4 -0
  243. package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +4 -0
  244. package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +4 -0
  245. package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +4 -0
  246. package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +4 -0
  247. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +4 -0
  248. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +1 -0
  249. package/dist/types/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.d.ts +1 -0
  250. package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts +6 -0
  251. package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +4 -0
  252. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +4 -0
  253. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +4 -0
  254. package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +4 -0
  255. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +9 -1
  256. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +4 -0
  257. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +4 -0
  258. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +4 -0
  259. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +4 -0
  260. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +19 -1
  261. package/dist/types/components/vega-rich-text-editor/dto/editor-state.d.ts +20 -0
  262. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +4 -0
  263. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +9 -1
  264. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +4 -0
  265. package/dist/types/components/vega-rich-text-editor/dto/range.d.ts +6 -0
  266. package/dist/types/components/vega-rich-text-editor/dto/selection-state.d.ts +14 -0
  267. package/dist/types/components/vega-rich-text-editor/interface.d.ts +7 -1
  268. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +1 -0
  269. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +2 -2
  270. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/history-controller.d.ts +54 -0
  271. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +14 -1
  272. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +4 -1
  273. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
  274. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.d.ts +1 -0
  275. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-renderer.d.ts +1 -0
  276. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +3 -0
  277. package/dist/types/components/vega-tab-group/types.d.ts +2 -0
  278. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +7 -1
  279. package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +1 -0
  280. package/dist/types/components.d.ts +26 -14
  281. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
  282. package/dist/types/helpers/keyboard/keyboard-manager.d.ts +11 -1
  283. package/dist/types/types/components.type.d.ts +2 -1
  284. package/dist/types/types/ui.type.d.ts +1 -1
  285. package/dist/vega/index.esm.js +1 -1
  286. package/dist/vega/{p-df44a712.entry.js → p-01fd343e.entry.js} +1 -1
  287. package/dist/vega/{p-50a076d0.entry.js → p-0a18f5f6.entry.js} +1 -1
  288. package/dist/vega/{p-7bc3a42b.js → p-1abe125f.js} +1 -1
  289. package/dist/vega/{p-4b541ce8.entry.js → p-2198de3e.entry.js} +1 -1
  290. package/dist/vega/{p-0073c3de.entry.js → p-24e0cdcc.entry.js} +1 -1
  291. package/dist/vega/{p-4f7f93ef.entry.js → p-2565cb0c.entry.js} +1 -1
  292. package/dist/vega/p-26e4221c.entry.js +1 -0
  293. package/dist/vega/{p-1c08e94a.entry.js → p-27e3825f.entry.js} +1 -1
  294. package/dist/vega/{p-aa109e80.entry.js → p-2bd64faf.entry.js} +1 -1
  295. package/dist/vega/{p-ab26cad6.js → p-2da83c2a.js} +1 -1
  296. package/dist/vega/{p-410755ca.entry.js → p-2fadef27.entry.js} +1 -1
  297. package/dist/vega/{p-01b4d6ba.entry.js → p-33ffaa71.entry.js} +1 -1
  298. package/dist/vega/{p-343b4522.entry.js → p-34a70d18.entry.js} +1 -1
  299. package/dist/vega/{p-f9b07b5e.entry.js → p-353d32c0.entry.js} +1 -1
  300. package/dist/vega/{p-d6d9c300.entry.js → p-3aa244d4.entry.js} +1 -1
  301. package/dist/vega/p-429616af.entry.js +1 -0
  302. package/dist/vega/p-44b0a005.js +1 -0
  303. package/dist/vega/{p-e1a06741.entry.js → p-472727a4.entry.js} +1 -1
  304. package/dist/vega/p-4e167a8c.js +1 -0
  305. package/dist/vega/p-4e68dfd9.js +1 -0
  306. package/dist/vega/p-4e76904e.entry.js +1 -0
  307. package/dist/vega/{p-8c32ff75.entry.js → p-4fa94b35.entry.js} +1 -1
  308. package/dist/vega/{p-b64d5c3a.entry.js → p-52e17867.entry.js} +1 -1
  309. package/dist/vega/p-56a0b13d.js +1 -0
  310. package/dist/vega/{p-1b731247.entry.js → p-57cdacb1.entry.js} +1 -1
  311. package/dist/vega/{p-bcb43c54.entry.js → p-57e813f2.entry.js} +1 -1
  312. package/dist/vega/{p-b06e5916.entry.js → p-58b8c06b.entry.js} +1 -1
  313. package/dist/vega/{p-bd5ca7cc.entry.js → p-59ccf915.entry.js} +1 -1
  314. package/dist/vega/{p-324dd09a.entry.js → p-5a8f129f.entry.js} +1 -1
  315. package/dist/vega/p-5cbadf95.entry.js +1 -0
  316. package/dist/vega/{p-b2643e88.js → p-5e3a15a1.js} +1 -1
  317. package/dist/vega/p-5f377954.js +1 -1
  318. package/dist/vega/{p-4b1a7d31.entry.js → p-63414091.entry.js} +1 -1
  319. package/dist/vega/{p-0b56725e.entry.js → p-6aa569e5.entry.js} +1 -1
  320. package/dist/vega/{p-b9f48611.js → p-6b75fe39.js} +1 -1
  321. package/dist/vega/{p-69cc3fa2.js → p-6cabdb36.js} +1 -1
  322. package/dist/vega/{p-bab6ca81.js → p-6d7d923b.js} +1 -1
  323. package/dist/vega/{p-b6caa1e2.entry.js → p-6ec8a9d8.entry.js} +1 -1
  324. package/dist/vega/{p-d7642125.js → p-72ecfd40.js} +1 -1
  325. package/dist/vega/p-7db32dc0.entry.js +1 -0
  326. package/dist/vega/{p-f0bc8f6d.js → p-7f6702f7.js} +1 -1
  327. package/dist/vega/{p-c706de06.entry.js → p-84aac4b1.entry.js} +1 -1
  328. package/dist/vega/{p-213752bd.js → p-88c9efbb.js} +1 -1
  329. package/dist/vega/{p-b65de502.entry.js → p-8aec8dac.entry.js} +1 -1
  330. package/dist/vega/{p-1e2886b5.js → p-8afa2115.js} +1 -1
  331. package/dist/vega/p-8bc4c015.entry.js +1 -0
  332. package/dist/vega/p-96b4c0cc.entry.js +1 -0
  333. package/dist/vega/p-a8b681ed.entry.js +1 -0
  334. package/dist/vega/{p-b4dfa967.entry.js → p-ac82ca73.entry.js} +1 -1
  335. package/dist/vega/{p-c86a4896.entry.js → p-ba6c7f00.entry.js} +1 -1
  336. package/dist/vega/{p-2c1c88c0.entry.js → p-be40684b.entry.js} +1 -1
  337. package/dist/vega/p-bf1894ec.js +1 -0
  338. package/dist/vega/{p-79cc1f41.entry.js → p-c1e1adf9.entry.js} +1 -1
  339. package/dist/vega/p-c5f8b3a3.entry.js +1 -0
  340. package/dist/vega/p-c754b32c.js +1 -0
  341. package/dist/vega/{p-d4a61b1d.entry.js → p-c96effa5.entry.js} +1 -1
  342. package/dist/vega/{p-d6c37085.entry.js → p-ca34443a.entry.js} +1 -1
  343. package/dist/vega/{p-96410d71.entry.js → p-cb637815.entry.js} +1 -1
  344. package/dist/vega/{p-0523efe8.entry.js → p-ccdd49be.entry.js} +1 -1
  345. package/dist/vega/p-cd205d96.js +1 -0
  346. package/dist/vega/{p-a1bdf9a0.entry.js → p-ce70a54a.entry.js} +1 -1
  347. package/dist/vega/{p-e5695801.entry.js → p-d6591d70.entry.js} +1 -1
  348. package/dist/vega/{p-80c86d79.js → p-d7937711.js} +1 -1
  349. package/dist/vega/{p-59e9f57a.js → p-dbc82247.js} +1 -1
  350. package/dist/vega/{p-d6620b42.entry.js → p-e29da13d.entry.js} +1 -1
  351. package/dist/vega/p-e719b1a9.entry.js +1 -0
  352. package/dist/vega/{p-4f54ba1f.entry.js → p-f7423232.entry.js} +1 -1
  353. package/dist/vega/{p-611282a7.entry.js → p-fb853d5f.entry.js} +1 -1
  354. package/dist/vega/{p-8f80b321.entry.js → p-fd018044.entry.js} +1 -1
  355. package/dist/vega/p-fda0c179.entry.js +1 -0
  356. package/dist/vega/p-ff41dc6a.entry.js +1 -0
  357. package/dist/vega/vega.esm.js +1 -1
  358. package/package.json +1 -1
  359. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.js +0 -30
  360. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-sibling-observer-controller.js +0 -48
  361. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.d.ts +0 -11
  362. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-sibling-observer-controller.d.ts +0 -18
  363. package/dist/vega/p-08679cd9.entry.js +0 -1
  364. package/dist/vega/p-12d60f5f.js +0 -1
  365. package/dist/vega/p-214aa52e.js +0 -1
  366. package/dist/vega/p-2863aa51.entry.js +0 -1
  367. package/dist/vega/p-2e65e175.js +0 -1
  368. package/dist/vega/p-31de5cb4.entry.js +0 -1
  369. package/dist/vega/p-3d3cd394.js +0 -1
  370. package/dist/vega/p-3e285c35.js +0 -1
  371. package/dist/vega/p-7594875a.entry.js +0 -1
  372. package/dist/vega/p-8af3fc79.entry.js +0 -1
  373. package/dist/vega/p-8ee31f00.entry.js +0 -1
  374. package/dist/vega/p-952913fc.entry.js +0 -1
  375. package/dist/vega/p-b07add9c.entry.js +0 -1
  376. package/dist/vega/p-b9051ad2.js +0 -1
  377. package/dist/vega/p-c2321aa8.entry.js +0 -1
  378. package/dist/vega/p-ceb9f5aa.entry.js +0 -1
  379. package/dist/vega/p-db7a6878.entry.js +0 -1
  380. package/dist/vega/p-e59ff7d1.entry.js +0 -1
  381. package/dist/vega/p-f2373487.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
2
2
  import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
3
- import { a as VegaInternalRichTextEditorFlushChanges, b as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-7d1ff289.js';
3
+ import { a as VegaInternalRichTextEditorFlushChanges, b as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-85ad403f.js';
4
4
  import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
5
5
  import { i as isNonNullable } from './type-guard-158f6d7a.js';
6
6
  import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
@@ -147,6 +147,12 @@ class HorizontalAlignmentAnnotation extends BlockAnnotation {
147
147
  renderClass() {
148
148
  return `v-rte--horizontal-alignment-${this.textAlign}`;
149
149
  }
150
+ /**
151
+ * @inheritDoc
152
+ */
153
+ clone() {
154
+ return new HorizontalAlignmentAnnotation(this.textAlign);
155
+ }
150
156
  /**
151
157
  * Generate the style for the annotation
152
158
  *
@@ -183,6 +189,12 @@ class IndentAnnotation extends BlockAnnotation {
183
189
  toJSON() {
184
190
  return this.indent > 0 ? { indent: this.indent } : null;
185
191
  }
192
+ /**
193
+ * @inheritDoc
194
+ */
195
+ clone() {
196
+ return new IndentAnnotation(this.indent);
197
+ }
186
198
  /**
187
199
  * Generate the style for the annotation
188
200
  *
@@ -339,6 +351,14 @@ class RTEBlock {
339
351
  this.annotationMap.set(annotation.type, annotation);
340
352
  typeof this.doAnnotationActionApply === 'function' && this.doAnnotationActionApply(action);
341
353
  }
354
+ /**
355
+ * clone annotations of the block
356
+ *
357
+ * @returns {BlockAnnotations} - Cloned annotations
358
+ */
359
+ cloneAnnotations() {
360
+ return new Map(Array.from(this.annotationMap.entries()).map(([key, value]) => [key, value.clone()]));
361
+ }
342
362
  }
343
363
 
344
364
  var NodeTypeEnum;
@@ -414,6 +434,14 @@ class RTENode {
414
434
  }
415
435
  }
416
436
  }
437
+ /**
438
+ * Clones the annotations of the current RTETextNode.
439
+ *
440
+ * @returns {NodeAnnotations} A new Map containing cloned annotations.
441
+ */
442
+ cloneAnnotations() {
443
+ return new Map(Array.from(this.annotationMap.entries()).map(([key, value]) => [key, value.clone()]));
444
+ }
417
445
  }
418
446
 
419
447
  var NodeAnnotationTypeEnum;
@@ -469,6 +497,12 @@ class ImageAnnotation extends NodeAnnotation {
469
497
  size: this.size,
470
498
  };
471
499
  }
500
+ /**
501
+ * @inheritDoc
502
+ */
503
+ clone() {
504
+ return new ImageAnnotation(this.size, this.alt);
505
+ }
472
506
  /**
473
507
  * Generate the style for the image
474
508
  *
@@ -629,6 +663,12 @@ class RTEImageNode extends RTENode {
629
663
  }
630
664
  return Object.assign(Object.assign({ id: this.id }, (Object.keys(annotations).length > 0 ? { annotations } : {})), { type: 'image', url: this.url });
631
665
  }
666
+ /**
667
+ * @inheritDoc
668
+ */
669
+ clone() {
670
+ return new RTEImageNode(this.id, this.url, this.parentBlock, super.cloneAnnotations());
671
+ }
632
672
  /**
633
673
  * @inheritDoc
634
674
  */
@@ -1080,6 +1120,14 @@ class SelectionRangeAnnotation extends Annotation {
1080
1120
  this.type = InternalAnnotationTypeEnum.SELECTION_RANGE;
1081
1121
  this.range = range;
1082
1122
  }
1123
+ /**
1124
+ * Clone the selection range annotation
1125
+ *
1126
+ * @returns {SelectionRangeAnnotation} A cloned instance of the selection range annotation
1127
+ */
1128
+ clone() {
1129
+ return new SelectionRangeAnnotation(this.range);
1130
+ }
1083
1131
  }
1084
1132
 
1085
1133
  /**
@@ -1110,6 +1158,12 @@ class StrikethroughAnnotation extends NodeAnnotation {
1110
1158
  strikethrough: this.strikethrough,
1111
1159
  };
1112
1160
  }
1161
+ /**
1162
+ * @inheritDoc
1163
+ */
1164
+ clone() {
1165
+ return new StrikethroughAnnotation(this.strikethrough);
1166
+ }
1113
1167
  /**
1114
1168
  * Generate the class for the annotation
1115
1169
  *
@@ -1156,6 +1210,12 @@ class UnderlineAnnotation extends NodeAnnotation {
1156
1210
  underline: this.underline,
1157
1211
  };
1158
1212
  }
1213
+ /**
1214
+ * @inheritDoc
1215
+ */
1216
+ clone() {
1217
+ return new UnderlineAnnotation(this.underline);
1218
+ }
1159
1219
  /**
1160
1220
  * Generate the class for the annotation
1161
1221
  *
@@ -1202,6 +1262,12 @@ class ItalicAnnotation extends NodeAnnotation {
1202
1262
  italic: this.italic,
1203
1263
  };
1204
1264
  }
1265
+ /**
1266
+ * @inheritDoc
1267
+ */
1268
+ clone() {
1269
+ return new ItalicAnnotation(this.italic);
1270
+ }
1205
1271
  /**
1206
1272
  * Generate the style for the annotation
1207
1273
  *
@@ -1240,6 +1306,12 @@ class BoldAnnotation extends NodeAnnotation {
1240
1306
  bold: this.bold,
1241
1307
  };
1242
1308
  }
1309
+ /**
1310
+ * @inheritDoc
1311
+ */
1312
+ clone() {
1313
+ return new BoldAnnotation(this.bold);
1314
+ }
1243
1315
  /**
1244
1316
  * Generate the style for the annotation
1245
1317
  *
@@ -1278,6 +1350,12 @@ class CodeAnnotation extends NodeAnnotation {
1278
1350
  code: this.code,
1279
1351
  };
1280
1352
  }
1353
+ /**
1354
+ * @inheritDoc
1355
+ */
1356
+ clone() {
1357
+ return new CodeAnnotation(this.code);
1358
+ }
1281
1359
  /**
1282
1360
  * Generate the class for the annotation
1283
1361
  *
@@ -1358,6 +1436,12 @@ class TextColorAnnotation extends NodeAnnotation {
1358
1436
  textColor: this.textColor.key,
1359
1437
  };
1360
1438
  }
1439
+ /**
1440
+ * @inheritDoc
1441
+ */
1442
+ clone() {
1443
+ return new TextColorAnnotation(this.textColor.key);
1444
+ }
1361
1445
  /**
1362
1446
  * Generate the class for the annotation
1363
1447
  *
@@ -1416,6 +1500,12 @@ class LinkAnnotation extends NodeAnnotation {
1416
1500
  toJSON() {
1417
1501
  return { link: { href: this.link.href, groupKey: this.link.groupKey } };
1418
1502
  }
1503
+ /**
1504
+ * @inheritDoc
1505
+ */
1506
+ clone() {
1507
+ return new LinkAnnotation(this.link);
1508
+ }
1419
1509
  /**
1420
1510
  * Verify whether two link annotation is same or not
1421
1511
  *
@@ -1445,6 +1535,13 @@ class LinkGroupAnnotation extends Annotation {
1445
1535
  this.linkGroups = new Map();
1446
1536
  this.linkGroups = new Map([[groupKey, []]]);
1447
1537
  }
1538
+ clone() {
1539
+ const clonedAnnotation = new LinkGroupAnnotation('');
1540
+ this.linkGroups.forEach((nodes, key) => {
1541
+ clonedAnnotation.linkGroups.set(key, nodes.map((node) => node.clone()));
1542
+ });
1543
+ return clonedAnnotation;
1544
+ }
1448
1545
  }
1449
1546
 
1450
1547
  /**
@@ -1905,7 +2002,13 @@ class RTETextNode extends RTENode {
1905
2002
  * @returns {RTETextNode} An new RTETextNode
1906
2003
  */
1907
2004
  cloneWithText(text) {
1908
- return new RTETextNode(generateUUID(), text, this.parentBlock, new Map(this.annotationMap));
2005
+ return new RTETextNode(generateUUID(), text, this.parentBlock, super.cloneAnnotations());
2006
+ }
2007
+ /**
2008
+ * @inheritDoc
2009
+ */
2010
+ clone() {
2011
+ return new RTETextNode(this.id, this.text, this.parentBlock, super.cloneAnnotations());
1909
2012
  }
1910
2013
  /**
1911
2014
  * Checks if a node is empty
@@ -2010,6 +2113,12 @@ class TextStyleAnnotation extends BlockAnnotation {
2010
2113
  toJSON() {
2011
2114
  return { textStyle: this.textStyle };
2012
2115
  }
2116
+ /**
2117
+ * @inheritDoc
2118
+ */
2119
+ clone() {
2120
+ return new TextStyleAnnotation(this.textStyle);
2121
+ }
2013
2122
  /**
2014
2123
  * Render the styles by block type
2015
2124
  *
@@ -2041,6 +2150,15 @@ class TextStyleAnnotation extends BlockAnnotation {
2041
2150
  case 'heading-3': {
2042
2151
  return { fontFamily: 'Inter', fontSize: '18px', lineHeight: '22px', fontWeight: '500' };
2043
2152
  }
2153
+ case 'heading-4': {
2154
+ return { fontFamily: 'Inter', fontSize: '16px', lineHeight: '22px', fontWeight: '500' };
2155
+ }
2156
+ case 'heading-5': {
2157
+ return { fontFamily: 'Inter', fontSize: '14px', lineHeight: '22px', fontWeight: '500' };
2158
+ }
2159
+ case 'heading-6': {
2160
+ return { fontFamily: 'Inter', fontSize: '12px', lineHeight: '22px', fontWeight: '500' };
2161
+ }
2044
2162
  }
2045
2163
  }
2046
2164
  }
@@ -2597,7 +2715,17 @@ class RTETextBlock extends RTEBlock {
2597
2715
  * @returns {boolean} Return a boolean value indicating whether the `type` parameter is valid.
2598
2716
  */
2599
2717
  static isAcceptableTextStyle(type) {
2600
- return ['title', 'subtitle', 'paragraph', 'heading-1', 'heading-2', 'heading-3'].includes(type);
2718
+ return [
2719
+ 'title',
2720
+ 'subtitle',
2721
+ 'paragraph',
2722
+ 'heading-1',
2723
+ 'heading-2',
2724
+ 'heading-3',
2725
+ 'heading-4',
2726
+ 'heading-5',
2727
+ 'heading-6',
2728
+ ].includes(type);
2601
2729
  }
2602
2730
  /**
2603
2731
  * Merges RTETextNode nodes based on certain conditions.
@@ -2638,6 +2766,20 @@ class RTETextBlock extends RTEBlock {
2638
2766
  block.apply(new AppendChildNodesAction(nodes));
2639
2767
  return block;
2640
2768
  }
2769
+ /**
2770
+ * @inheritDoc
2771
+ */
2772
+ clone() {
2773
+ const clonedBlock = new RTETextBlock(this.id, this.type);
2774
+ clonedBlock.nodes = this.nodes.map((node) => {
2775
+ const clonedNode = node.clone();
2776
+ clonedNode.parentBlock = clonedBlock;
2777
+ return clonedNode;
2778
+ });
2779
+ clonedBlock.annotationMap = super.cloneAnnotations();
2780
+ clonedBlock.parent = this.parent;
2781
+ return clonedBlock;
2782
+ }
2641
2783
  /**
2642
2784
  * @inheritDoc
2643
2785
  */
@@ -2906,6 +3048,20 @@ class RTEImageBlock extends RTEBlock {
2906
3048
  createNewImageBlock() {
2907
3049
  return new RTEImageBlock(generateUUID());
2908
3050
  }
3051
+ /**
3052
+ * @inheritDoc
3053
+ */
3054
+ clone() {
3055
+ const clonedBlock = new RTEImageBlock(this.id);
3056
+ clonedBlock.nodes = this.nodes.map((node) => {
3057
+ const clonedNode = node.clone();
3058
+ clonedNode.parentBlock = clonedBlock;
3059
+ return clonedNode;
3060
+ });
3061
+ clonedBlock.annotationMap = super.cloneAnnotations();
3062
+ clonedBlock.parent = this.parent;
3063
+ return clonedBlock;
3064
+ }
2909
3065
  }
2910
3066
  (() => {
2911
3067
  ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_BLOCK_CONTENT, RTEImageBlock.name, new BlockDeleteImageStrategy());
@@ -3165,6 +3321,26 @@ class RTEListItemBlock extends RTETextBlock {
3165
3321
  createNewListItem() {
3166
3322
  return new RTEListItemBlock(generateUUID());
3167
3323
  }
3324
+ /**
3325
+ * @inheritDoc
3326
+ */
3327
+ clone() {
3328
+ var _a;
3329
+ const block = new RTEListItemBlock(this.id);
3330
+ block.nodes = this.nodes.map((node) => {
3331
+ const clonedNode = node.clone();
3332
+ clonedNode.parentBlock = block;
3333
+ return clonedNode;
3334
+ });
3335
+ block.annotationMap = super.cloneAnnotations();
3336
+ block.children = (_a = this.children) === null || _a === void 0 ? void 0 : _a.map((child) => {
3337
+ const clonedChild = child.clone();
3338
+ clonedChild.parent = block;
3339
+ return clonedChild;
3340
+ });
3341
+ block.parent = this.parent;
3342
+ return block;
3343
+ }
3168
3344
  }
3169
3345
  (() => {
3170
3346
  ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_BLOCK_CONTENT, RTEListItemBlock.name, new ListItemDeleteTextContentStrategy());
@@ -3459,6 +3635,20 @@ class RTEListBlock extends RTEBlock {
3459
3635
  getLastNode() {
3460
3636
  return this.blocks[this.blocks.length - 1].getLastNode();
3461
3637
  }
3638
+ /**
3639
+ * @inheritDoc
3640
+ */
3641
+ clone() {
3642
+ const clonedListBlock = new RTEListBlock(this.id, this.type);
3643
+ clonedListBlock.blocks = this.blocks.map((item) => {
3644
+ const clonedListItemBlock = item.clone();
3645
+ clonedListItemBlock.parent = clonedListBlock;
3646
+ return clonedListItemBlock;
3647
+ });
3648
+ clonedListBlock.annotationMap = super.cloneAnnotations();
3649
+ clonedListBlock.parent = this.parent;
3650
+ return clonedListBlock;
3651
+ }
3462
3652
  }
3463
3653
  (() => {
3464
3654
  ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CHILD, RTEListBlock.name, new ListRemoveListItemStrategy());
@@ -3532,10 +3722,13 @@ class VegaRTEContent {
3532
3722
  /**
3533
3723
  * Clones the content state.
3534
3724
  *
3725
+ * @param {boolean} deep - If true, performs a deep clone of the content state.
3535
3726
  * @returns {VegaRTEContent} The cloned content state.
3536
3727
  */
3537
- clone() {
3538
- return new VegaRTEContent([...this.blocks]);
3728
+ clone(deep = false) {
3729
+ return deep
3730
+ ? new VegaRTEContent(this.blocks.map((block) => block.clone()))
3731
+ : new VegaRTEContent([...this.blocks]);
3539
3732
  }
3540
3733
  /**
3541
3734
  * Converts the content state to a JSON array of blocks.
@@ -3575,6 +3768,48 @@ class VegaRTEContent {
3575
3768
  createList(type) {
3576
3769
  return new RTEListBlock(generateUUID(), type);
3577
3770
  }
3771
+ /**
3772
+ * Finds a node by its ID in the content.
3773
+ *
3774
+ * @param {string} id - The ID of the node to find.
3775
+ * @returns {Nullable<RTENode>} The found node or null if not found.
3776
+ */
3777
+ findNodeById(id) {
3778
+ return this.findNodeInBlocksById(id, this.blocks);
3779
+ }
3780
+ /**
3781
+ * Recursively searches for a node by its ID in the given blocks.
3782
+ *
3783
+ * @param {string} id - The ID of the node to find.
3784
+ * @param {RTEContentBlock[]} blocks - The blocks to search within.
3785
+ * @returns {Nullable<RTENode>} The found node or null if not found.
3786
+ */
3787
+ findNodeInBlocksById(id, blocks) {
3788
+ for (const block of blocks) {
3789
+ if ('nodes' in block) {
3790
+ for (const node of block.nodes) {
3791
+ if (node.id === id) {
3792
+ return node;
3793
+ }
3794
+ }
3795
+ }
3796
+ if (block instanceof RTEListItemBlock && block.children) {
3797
+ for (const cBlock of block.children) {
3798
+ const foundNode = this.findNodeInBlocksById(id, cBlock.blocks);
3799
+ if (foundNode) {
3800
+ return foundNode;
3801
+ }
3802
+ }
3803
+ }
3804
+ if (block instanceof RTEListBlock && block.blocks) {
3805
+ const foundNode = this.findNodeInBlocksById(id, block.blocks);
3806
+ if (foundNode) {
3807
+ return foundNode;
3808
+ }
3809
+ }
3810
+ }
3811
+ return null;
3812
+ }
3578
3813
  }
3579
3814
  (() => {
3580
3815
  ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CHILD, VegaRTEContent.name, new BlockRemoveChildBlockStrategy());
@@ -1,7 +1,7 @@
1
1
  import { j as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, k as isShadowsTokenType, f as Shadows, g as ShadowMap, l as isBorderTokenType, m as Borders, n as BorderMap, o as isSpacingTokenType, p as isBorderRadiusTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, h as Spacing, t as isBorderStyleType, B as BorderRadius, C as Colors, u as isTypographyTokenType } from './type-guard-158f6d7a.js';
2
2
  import { B as Breakpoints } from './breakpoints-d9faf11c.js';
3
3
  import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
4
- import { R as ResponsiveFormatFacade } from './responsive-format-facade-ae799f25.js';
4
+ import { R as ResponsiveFormatFacade } from './responsive-format-facade-bc2f8ad3.js';
5
5
  import { a as TypographyKeys } from './typography-396de03f.js';
6
6
  import { S as StateVariantFormatter, s as stateBackgroundColorFormatter } from './state-background-color-formatter-121ae7d3.js';
7
7
  import { a as BorderStyle } from './ui-8424715a.js';
@@ -5,12 +5,12 @@ import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
5
5
  import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-15a84d26.js';
6
6
  import { P as Placements, A as Alignments } from './ui-8424715a.js';
7
7
  import { A as isTranslocationType } from './type-guard-158f6d7a.js';
8
- import { R as ResponsiveFormatFacade } from './responsive-format-facade-ae799f25.js';
8
+ import { R as ResponsiveFormatFacade } from './responsive-format-facade-bc2f8ad3.js';
9
9
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
10
10
  import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-ca83d6b6.js';
11
11
  import { O as Observer } from './observer-3959f9dd.js';
12
12
  import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
13
- import { p as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-7d1ff289.js';
13
+ import { p as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-85ad403f.js';
14
14
  import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-715dccf9.js';
15
15
 
16
16
  var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -7,7 +7,7 @@ import { f as findParent, c as isElementVisible } from './ui-ed1283bb.js';
7
7
  import { i as isAsyncFunction, g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
8
8
  import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
9
9
  import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
10
- import { c as VegaInternalFieldErrorStateChange, d as VegaInternalValid } from './vega-internal-event-id-7d1ff289.js';
10
+ import { c as VegaInternalFieldErrorStateChange, d as VegaInternalValid } from './vega-internal-event-id-85ad403f.js';
11
11
  import { V as VegaInternalTranslation } from './translation-cf7f020a.js';
12
12
  import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-15a84d26.js';
13
13
  import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
@@ -15,7 +15,7 @@ import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-
15
15
  import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-6cef9549.js';
16
16
  import { A as AttributeOldValueMutationFilter } from './mutation-observer-filters-7ee2b410.js';
17
17
  import { i as isArrayEqual } from './array-3113609f.js';
18
- import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-da938c88.js';
18
+ import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-be7a6ce3.js';
19
19
 
20
20
  /** The `FormFieldValidationRuleHandler` class is responsible for handling the validation rules for a form field. */
21
21
  class FormFieldValidationRuleHandler {
@@ -3,7 +3,7 @@ import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-reg
3
3
  import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-715dccf9.js';
4
4
  import { a as VegaClick, M as VegaPopoverShow, N as VegaPopoverHide, f as VegaChange } from './dom-node-subject-factory-f77cf9cc.js';
5
5
  import { V as VegaInternalIconManager } from './internal-icon-manager-58cf8aa6.js';
6
- import { T as TextSplittableAction, j as TextColorAnnotation, k as RTE_TEXT_COLORS, f as RTETextNode, h as NodeAnnotationTypeEnum, A as AnnotationAction, i as ImageAnnotation } from './content-state-7437e069.js';
6
+ import { T as TextSplittableAction, j as TextColorAnnotation, k as RTE_TEXT_COLORS, f as RTETextNode, h as NodeAnnotationTypeEnum, A as AnnotationAction, i as ImageAnnotation } from './content-state-dbc9f635.js';
7
7
  import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-2ada8e22.js';
8
8
 
9
9
  var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -2,7 +2,7 @@ import { W as WaitForVega } from './wait-for-vega-handler-b18eb955.js';
2
2
  import { O as Observer } from './observer-3959f9dd.js';
3
3
  import { C as ChangeManager } from './change-manager-6a7eb88c.js';
4
4
  import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
5
- import { V as VegaInternalComponentDidRender } from './vega-internal-event-id-7d1ff289.js';
5
+ import { V as VegaInternalComponentDidRender } from './vega-internal-event-id-85ad403f.js';
6
6
 
7
7
  /* istanbul ignore next */
8
8
  /**
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { g as getCurrentBreakpoint } from './page-resize-observer-slimmer-15a84d26.js';
2
2
  export { L as LogUtility, s as setVegaLogLevel } from './global-slimmer-registry-17c4efd4.js';
3
- export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-fb43f78a.js';
3
+ export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-e263e6a2.js';
4
4
  export { c as camelToDashCase } from './string-be824360.js';
5
5
  export { d as BackgroundColorMap, a as BackgroundColors, e as BorderColorMap, b as BorderColors, B as BorderRadius, C as Colors, F as FillBackgroundColors, g as ShadowMap, f as Shadows, h as Spacing, S as StrokeBackgroundColors, c as TextColorMap, T as TextColors } from './type-guard-158f6d7a.js';
6
6
  export { B as Breakpoints } from './breakpoints-d9faf11c.js';
@@ -13,16 +13,16 @@ export { F as FeatureFlag } from './feature-flag-controller-690eac1d.js';
13
13
  export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-87dc436c.js';
14
14
  export { V as VegaIconManager } from './icon-manager-638dd4d4.js';
15
15
  export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-cc497bec.js';
16
- export { w as waitForVega } from './index-96374234.js';
16
+ export { w as waitForVega } from './index-4aa167d6.js';
17
17
  export { a as VegaTranslation, s as VegaTranslationResourceEN } from './translation-cf7f020a.js';
18
- export { M as ModifyContentAction, d as RTEBlock, a as RTEImageBlock, e as RTEImageNode, c as RTEListBlock, b as RTEListItemBlock, g as RTENode, R as RTETextBlock, f as RTETextNode, V as VegaRTEContent } from './content-state-7437e069.js';
19
- export { G as GridColumns, a as GridRows } from './responsive-format-facade-ae799f25.js';
18
+ export { M as ModifyContentAction, d as RTEBlock, a as RTEImageBlock, e as RTEImageNode, c as RTEListBlock, b as RTEListItemBlock, g as RTENode, R as RTETextBlock, f as RTETextNode, V as VegaRTEContent } from './content-state-dbc9f635.js';
19
+ export { G as GridColumns, a as GridRows } from './responsive-format-facade-bc2f8ad3.js';
20
20
  export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
21
21
  export { D as DateRequiredRule } from './date-required-rule-8944f3bf.js';
22
22
  export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
23
23
  export { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
24
24
  export { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
25
- export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-baf61553.js';
25
+ export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-6a7cd3ee.js';
26
26
  export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-a01163b5.js';
27
27
  export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
28
28
  export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-ad886d01.js';
@@ -41,7 +41,7 @@ import './index-44c794b4.js';
41
41
  import './dom-node-subject-factory-f77cf9cc.js';
42
42
  import './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
43
43
  import './wait-for-vega-handler-b18eb955.js';
44
- import './vega-internal-event-id-7d1ff289.js';
44
+ import './vega-internal-event-id-85ad403f.js';
45
45
  import './pixel-f32c07ce.js';
46
46
  import './array-3113609f.js';
47
47
  import './date-c55b97f0.js';
@@ -1,4 +1,4 @@
1
- import { K as KeyboardManager } from './keyboard-manager-8c4ef91b.js';
1
+ import { K as KeyboardManager } from './keyboard-manager-262be5ce.js';
2
2
 
3
3
  /**
4
4
  * It takes a function that returns an array of keyboard event listeners, and returns a decorator
@@ -1,4 +1,5 @@
1
1
  import { i as isParent, d as getDeepActiveElementInShadow } from './ui-ed1283bb.js';
2
+ import { i as isNonNullable } from './type-guard-158f6d7a.js';
2
3
 
3
4
  /**
4
5
  * It listens to the keyup event on the window and calls the appropriate method on the registered elements
@@ -54,9 +55,8 @@ class KeyboardManager {
54
55
  * listener.
55
56
  */
56
57
  invokeListeners(eventName, event) {
57
- const keyCode = event.code;
58
58
  this.listeners
59
- .filter((listener) => listener.eventName === eventName && this.shouldInvokeListener(listener, keyCode))
59
+ .filter((listener) => listener.eventName === eventName && this.shouldInvokeListener(listener, event))
60
60
  .forEach((listener) => listener.callback(event));
61
61
  }
62
62
  /**
@@ -65,10 +65,11 @@ class KeyboardManager {
65
65
  *
66
66
  * @param {KeyboardEventListener} listener - KeyboardEventListener - the listener object that we're
67
67
  * checking
68
- * @param {string} keyCode - The key code of the key that was pressed.
68
+ * @param {KeyboardEvent} event - The keyboard event that triggered the listener.
69
69
  * @returns {boolean} - should invoke
70
70
  */
71
- shouldInvokeListener(listener, keyCode) {
71
+ shouldInvokeListener(listener, event) {
72
+ const keyCode = event.code;
72
73
  let activeElementInScope = [];
73
74
  let activeElementOutScope = [];
74
75
  const isKeyCodeAccepted = Array.isArray(listener.keyCode)
@@ -96,7 +97,26 @@ class KeyboardManager {
96
97
  const isActiveElementOutScope = listener.activeElementOutScope
97
98
  ? activeElementOutScope.every((element) => !isParent(getDeepActiveElementInShadow(), element))
98
99
  : true;
99
- return isKeyCodeAccepted && isActiveElementInScope && isActiveElementOutScope;
100
+ const isExpectedModifierPressed = isNonNullable(listener.modifierPressed)
101
+ ? listener.modifierPressed === this.isModifierPressed(event)
102
+ : true;
103
+ const isExpectedShiftKeyPressed = isNonNullable(listener.shiftKey)
104
+ ? listener.shiftKey === event.shiftKey
105
+ : true;
106
+ return (isKeyCodeAccepted &&
107
+ isActiveElementInScope &&
108
+ isActiveElementOutScope &&
109
+ isExpectedModifierPressed &&
110
+ isExpectedShiftKeyPressed);
111
+ }
112
+ /**
113
+ * Checks if the platform modifier key (Meta on Mac, Ctrl on Windows) is pressed.
114
+ *
115
+ * @param {KeyboardEvent} e - The keyboard event to check.
116
+ * @returns {boolean} - True if the platform modifier key is pressed, false otherwise.
117
+ */
118
+ isModifierPressed(e) {
119
+ return /Mac|iPhone|iPad/.test(navigator.userAgent) ? e.metaKey : e.ctrlKey;
100
120
  }
101
121
  }
102
122
  const KeyboardManager$1 = new KeyboardManager();
@@ -1,5 +1,5 @@
1
1
  import { M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
2
- import { K as KeyboardManager } from './keyboard-manager-8c4ef91b.js';
2
+ import { K as KeyboardManager } from './keyboard-manager-262be5ce.js';
3
3
 
4
4
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;