@globalpayments/vega 2.47.0 → 2.48.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 (429) hide show
  1. package/dist/cjs/{app-globals-981f7aba.js → app-globals-22798708.js} +6 -6
  2. package/dist/cjs/brand-switch-state-controller-slimmer-5efa1b24.js +51 -0
  3. package/dist/cjs/{content-state-605de6a3.js → content-state-54d94562.js} +221 -5
  4. package/dist/cjs/{dark-mode-state-controller-slimmer-2af3e67c.js → dark-mode-state-controller-slimmer-add5d8a8.js} +1 -1
  5. package/dist/cjs/{dark-mode-style-controller-c93b94d2.js → dark-mode-style-controller-4adb7fb2.js} +20 -17
  6. package/dist/cjs/{design-token-117a19a8.js → design-token-1abb655a.js} +1 -1
  7. package/dist/cjs/{element-appender-slimmer-4bdbd76d.js → element-appender-slimmer-2d4c8c18.js} +4 -4
  8. package/dist/cjs/{form-field-controller-slimmer-6d69c74f.js → form-field-controller-slimmer-527c25a0.js} +4 -4
  9. package/dist/cjs/{image-annotation-action-5e3aa73c.js → image-annotation-action-b78404b8.js} +2 -2
  10. package/dist/cjs/{index-ec9a1f36.js → index-c4dec3aa.js} +1 -1
  11. package/dist/cjs/index.cjs.js +10 -10
  12. package/dist/cjs/{inject-keyboard-manager-d1eac696.js → inject-keyboard-manager-b301e887.js} +1 -1
  13. package/dist/cjs/{keyboard-manager-97d0ddfa.js → keyboard-manager-2ccf4b16.js} +25 -5
  14. package/dist/cjs/{keyboard-manager-slimmer-23ce5dcf.js → keyboard-manager-slimmer-900cf2f5.js} +1 -1
  15. package/dist/cjs/loader.cjs.js +9 -9
  16. package/dist/cjs/{min-number-rule-5bcccc8f.js → min-number-rule-965fc43d.js} +2 -2
  17. package/dist/cjs/{public-rules-66f53e7e.js → public-rules-c4d2df9d.js} +5 -5
  18. package/dist/cjs/{responsive-format-facade-3542fc47.js → responsive-format-facade-38f3763e.js} +3 -3
  19. package/dist/cjs/{rich-text-editor-required-rule-649ef4b4.js → rich-text-editor-required-rule-e73f2c4f.js} +1 -1
  20. package/dist/cjs/{static-subject-title-1d23c102.js → static-subject-title-7e7d791a.js} +2 -2
  21. package/dist/cjs/{string-input-formatter-slimmer-56a2401f.js → string-input-formatter-slimmer-50322824.js} +2 -2
  22. package/dist/cjs/{style-formatter-b735d506.js → style-formatter-ecb4d49c.js} +1 -1
  23. package/dist/cjs/{sub-state-notify-slimmer-b16c9094.js → sub-state-notify-slimmer-7f437b19.js} +1 -1
  24. package/dist/cjs/{sub-state-observer-slimmer-1b6de09f.js → sub-state-observer-slimmer-e90362cd.js} +1 -1
  25. package/dist/cjs/{translation-5173d223.js → translation-212b1875.js} +1 -1
  26. package/dist/cjs/{translation-slimmer-e900e8d4.js → translation-slimmer-d1512c6d.js} +1 -1
  27. package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
  28. package/dist/cjs/vega-app-footer.cjs.entry.js +38 -28
  29. package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -8
  30. package/dist/cjs/vega-box.cjs.entry.js +9 -9
  31. package/dist/cjs/vega-brand-logo.cjs.entry.js +3 -3
  32. package/dist/cjs/vega-button-circle.cjs.entry.js +8 -8
  33. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  34. package/dist/cjs/vega-button.cjs.entry.js +7 -7
  35. package/dist/cjs/vega-calendar_3.cjs.entry.js +6 -6
  36. package/dist/cjs/vega-card.cjs.entry.js +8 -8
  37. package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
  38. package/dist/cjs/vega-checkbox_2.cjs.entry.js +5 -5
  39. package/dist/cjs/vega-chip.cjs.entry.js +8 -8
  40. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  41. package/dist/cjs/vega-combo-box.cjs.entry.js +7 -7
  42. package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
  43. package/dist/cjs/vega-dialog_2.cjs.entry.js +8 -8
  44. package/dist/cjs/vega-divider.cjs.entry.js +8 -8
  45. package/dist/cjs/vega-dropdown_5.cjs.entry.js +14 -14
  46. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  47. package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
  48. package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
  49. package/dist/cjs/vega-flag-icon.cjs.entry.js +8 -8
  50. package/dist/cjs/vega-flex.cjs.entry.js +9 -9
  51. package/dist/cjs/vega-font.cjs.entry.js +8 -8
  52. package/dist/cjs/vega-form.cjs.entry.js +6 -6
  53. package/dist/cjs/vega-grid.cjs.entry.js +8 -8
  54. package/dist/cjs/vega-icon.cjs.entry.js +8 -8
  55. package/dist/cjs/vega-image-uploader.cjs.entry.js +20 -11
  56. package/dist/cjs/vega-input-credit-card.cjs.entry.js +5 -5
  57. package/dist/cjs/vega-input-numeric.cjs.entry.js +13 -10
  58. package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
  59. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  60. package/dist/cjs/vega-input-select.cjs.entry.js +10 -10
  61. package/dist/cjs/vega-input.cjs.entry.js +10 -10
  62. package/dist/cjs/{vega-internal-event-id-dc866d43.js → vega-internal-event-id-bfea9b93.js} +4 -0
  63. package/dist/cjs/vega-left-nav_5.cjs.entry.js +459 -198
  64. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
  65. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
  66. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +4 -4
  67. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  68. package/dist/cjs/vega-popover_2.cjs.entry.js +15 -15
  69. package/dist/cjs/vega-radio_2.cjs.entry.js +10 -7
  70. package/dist/cjs/vega-rich-text-content.cjs.entry.js +14 -14
  71. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +453 -197
  72. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +10 -10
  73. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
  74. package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
  75. package/dist/cjs/vega-signature-capture.cjs.entry.js +11 -11
  76. package/dist/cjs/{vega-skeleton-loader-controller-8cbd7656.js → vega-skeleton-loader-controller-db868c98.js} +3 -3
  77. package/dist/cjs/vega-stepper.cjs.entry.js +8 -8
  78. package/dist/cjs/vega-tab-group_2.cjs.entry.js +1 -1
  79. package/dist/cjs/vega-table_8.cjs.entry.js +10 -10
  80. package/dist/cjs/vega-textarea.cjs.entry.js +5 -5
  81. package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
  82. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  83. package/dist/cjs/vega-tooltip_2.cjs.entry.js +15 -15
  84. package/dist/cjs/vega.cjs.js +9 -9
  85. package/dist/collection/collection-manifest.json +1 -1
  86. package/dist/collection/components/vega-app-footer/vega-app-footer.js +42 -31
  87. package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +4 -2
  88. package/dist/collection/components/vega-dropdown/vega-dropdown.js +3 -0
  89. package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.js +4 -1
  90. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +11 -1
  91. package/dist/collection/components/vega-input/vega-input.js +4 -4
  92. package/dist/collection/components/vega-nav/slimmers/vega-left-nav-group-hierarchy-controller.js +31 -0
  93. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.js +5 -4
  94. package/dist/collection/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.js +147 -0
  95. package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +50 -8
  96. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-initialize-selected-controller.js +56 -0
  97. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-link-click-controller.js +70 -0
  98. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-open-state-controller.js +47 -0
  99. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-other-groups-click-controller.js +60 -0
  100. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.js +10 -9
  101. package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +21 -6
  102. package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.js +21 -0
  103. package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.js +13 -1
  104. package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +5 -0
  105. package/dist/collection/components/vega-popover/vega-popover.js +3 -0
  106. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +6 -0
  107. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +6 -0
  108. package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +6 -0
  109. package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +6 -0
  110. package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +6 -0
  111. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +6 -0
  112. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +6 -0
  113. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +7 -0
  114. package/dist/collection/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.js +8 -0
  115. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +6 -0
  116. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +6 -0
  117. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +6 -0
  118. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +6 -0
  119. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +8 -0
  120. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +14 -0
  121. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +14 -0
  122. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +20 -0
  123. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +14 -0
  124. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +47 -2
  125. package/dist/collection/components/vega-rich-text-editor/dto/editor-state.js +36 -0
  126. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +6 -0
  127. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +8 -0
  128. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +7 -1
  129. package/dist/collection/components/vega-rich-text-editor/dto/range.js +8 -0
  130. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -1
  131. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -1
  132. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -1
  133. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +1 -1
  134. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +1 -1
  135. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +2 -2
  136. package/dist/collection/components/vega-rich-text-editor/dto/selection-state.js +17 -0
  137. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +2 -2
  138. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +3 -2
  139. 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
  140. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +137 -0
  141. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +54 -15
  142. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +13 -1
  143. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +116 -0
  144. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +12 -0
  145. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +5 -0
  146. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.js +4 -0
  147. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +2 -1
  148. package/dist/collection/components/vega-stepper/vega-stepper.js +2 -2
  149. package/dist/collection/components/vega-tab-group/vega-tab-group.js +3 -0
  150. package/dist/collection/components/vega-time-picker/vega-time-picker.js +3 -0
  151. package/dist/collection/components/vega-tooltip/vega-tooltip.js +3 -0
  152. package/dist/collection/constants/misc.js +2 -0
  153. package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +1 -1
  154. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +2 -0
  155. package/dist/collection/helpers/keyboard/keyboard-manager.js +25 -5
  156. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +204 -105
  157. package/dist/collection/helpers/slimmers/brand-switch-state-controller-slimmer.js +46 -0
  158. package/dist/collection/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.js +75 -0
  159. package/dist/collection/helpers/theme/controllers/{new-brand-style-controller.js → brand-style-controller.js} +9 -9
  160. package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +1 -1
  161. package/dist/collection/helpers/theme/internal-theme-manager.js +12 -9
  162. package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +4 -4
  163. package/dist/collection/helpers/theme/theme-manager.js +2 -2
  164. package/dist/collection/helpers/validator/rules/max-number-rule.js +1 -1
  165. package/dist/collection/helpers/validator/rules/min-number-rule.js +1 -1
  166. package/dist/collection/helpers/validator/test/rules/max-number-rule.test.js +2 -2
  167. package/dist/collection/helpers/validator/test/rules/min-number-rule.test.js +2 -2
  168. package/dist/esm/{app-globals-c055c18a.js → app-globals-1bb57f5e.js} +6 -6
  169. package/dist/esm/brand-switch-state-controller-slimmer-05c85e6d.js +49 -0
  170. package/dist/esm/{content-state-8d0d38d7.js → content-state-6dba6625.js} +221 -5
  171. package/dist/esm/{dark-mode-state-controller-slimmer-0678a94b.js → dark-mode-state-controller-slimmer-f1c2c299.js} +1 -1
  172. package/dist/esm/{dark-mode-style-controller-e5915f26.js → dark-mode-style-controller-2ada8e22.js} +20 -17
  173. package/dist/esm/{design-token-7406782c.js → design-token-070b7326.js} +1 -1
  174. package/dist/esm/{element-appender-slimmer-16eaeb31.js → element-appender-slimmer-d196dd21.js} +4 -4
  175. package/dist/esm/{form-field-controller-slimmer-a383d067.js → form-field-controller-slimmer-e7dc3db1.js} +4 -4
  176. package/dist/esm/{image-annotation-action-de567e61.js → image-annotation-action-0b661259.js} +2 -2
  177. package/dist/esm/{index-96374234.js → index-4aa167d6.js} +1 -1
  178. package/dist/esm/index.js +10 -10
  179. package/dist/esm/{inject-keyboard-manager-ab0bfb8b.js → inject-keyboard-manager-f513be4a.js} +1 -1
  180. package/dist/esm/{keyboard-manager-8c4ef91b.js → keyboard-manager-262be5ce.js} +25 -5
  181. package/dist/esm/{keyboard-manager-slimmer-6f5cb52a.js → keyboard-manager-slimmer-42bf9773.js} +1 -1
  182. package/dist/esm/loader.js +9 -9
  183. package/dist/esm/{min-number-rule-a6082418.js → min-number-rule-86421853.js} +2 -2
  184. package/dist/esm/{public-rules-f9fe1987.js → public-rules-f9aaa527.js} +5 -5
  185. package/dist/esm/{responsive-format-facade-299d8ee9.js → responsive-format-facade-dfed6d94.js} +3 -3
  186. package/dist/esm/{rich-text-editor-required-rule-7fd7dcb3.js → rich-text-editor-required-rule-42b796eb.js} +1 -1
  187. package/dist/esm/{static-subject-title-4a9deb68.js → static-subject-title-ca83d6b6.js} +2 -2
  188. package/dist/esm/{string-input-formatter-slimmer-8c7987ac.js → string-input-formatter-slimmer-c61f82d6.js} +2 -2
  189. package/dist/esm/{style-formatter-2ebb1fd2.js → style-formatter-788dbacf.js} +1 -1
  190. package/dist/esm/{sub-state-notify-slimmer-2216c7dc.js → sub-state-notify-slimmer-4e3cf09d.js} +1 -1
  191. package/dist/esm/{sub-state-observer-slimmer-da938c88.js → sub-state-observer-slimmer-be7a6ce3.js} +1 -1
  192. package/dist/esm/{translation-78207e81.js → translation-cf7f020a.js} +1 -1
  193. package/dist/esm/{translation-slimmer-d49fcdf4.js → translation-slimmer-88966d5c.js} +1 -1
  194. package/dist/esm/vega-accordion.entry.js +8 -8
  195. package/dist/esm/vega-app-footer.entry.js +38 -28
  196. package/dist/esm/vega-app-header-button.entry.js +8 -8
  197. package/dist/esm/vega-box.entry.js +9 -9
  198. package/dist/esm/vega-brand-logo.entry.js +3 -3
  199. package/dist/esm/vega-button-circle.entry.js +8 -8
  200. package/dist/esm/vega-button-group_2.entry.js +3 -3
  201. package/dist/esm/vega-button.entry.js +7 -7
  202. package/dist/esm/vega-calendar_3.entry.js +6 -6
  203. package/dist/esm/vega-card.entry.js +8 -8
  204. package/dist/esm/vega-carousel.entry.js +7 -7
  205. package/dist/esm/vega-checkbox_2.entry.js +5 -5
  206. package/dist/esm/vega-chip.entry.js +8 -8
  207. package/dist/esm/vega-color-picker.entry.js +5 -5
  208. package/dist/esm/vega-combo-box.entry.js +7 -7
  209. package/dist/esm/vega-date-picker_2.entry.js +15 -15
  210. package/dist/esm/vega-dialog_2.entry.js +8 -8
  211. package/dist/esm/vega-divider.entry.js +8 -8
  212. package/dist/esm/vega-dropdown_5.entry.js +14 -14
  213. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  214. package/dist/esm/vega-field-error.entry.js +1 -1
  215. package/dist/esm/vega-file-uploader.entry.js +6 -6
  216. package/dist/esm/vega-flag-icon.entry.js +8 -8
  217. package/dist/esm/vega-flex.entry.js +9 -9
  218. package/dist/esm/vega-font.entry.js +8 -8
  219. package/dist/esm/vega-form.entry.js +6 -6
  220. package/dist/esm/vega-grid.entry.js +8 -8
  221. package/dist/esm/vega-icon.entry.js +8 -8
  222. package/dist/esm/vega-image-uploader.entry.js +20 -11
  223. package/dist/esm/vega-input-credit-card.entry.js +5 -5
  224. package/dist/esm/vega-input-numeric.entry.js +13 -10
  225. package/dist/esm/vega-input-phone-number.entry.js +5 -5
  226. package/dist/esm/vega-input-range.entry.js +6 -6
  227. package/dist/esm/vega-input-select.entry.js +10 -10
  228. package/dist/esm/vega-input.entry.js +10 -10
  229. package/dist/esm/{vega-internal-event-id-7d1ff289.js → vega-internal-event-id-85ad403f.js} +3 -1
  230. package/dist/esm/vega-left-nav_5.entry.js +459 -198
  231. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
  232. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
  233. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +4 -4
  234. package/dist/esm/vega-pagination.entry.js +8 -8
  235. package/dist/esm/vega-popover_2.entry.js +15 -15
  236. package/dist/esm/vega-radio_2.entry.js +10 -7
  237. package/dist/esm/vega-rich-text-content.entry.js +14 -14
  238. package/dist/esm/vega-rich-text-editor_4.entry.js +453 -197
  239. package/dist/esm/vega-selection-chip_2.entry.js +10 -10
  240. package/dist/esm/vega-selection-tile_2.entry.js +6 -6
  241. package/dist/esm/vega-sidenav_3.entry.js +9 -9
  242. package/dist/esm/vega-signature-capture.entry.js +11 -11
  243. package/dist/esm/{vega-skeleton-loader-controller-90e8d34d.js → vega-skeleton-loader-controller-c2a8bd27.js} +3 -3
  244. package/dist/esm/vega-stepper.entry.js +8 -8
  245. package/dist/esm/vega-tab-group_2.entry.js +1 -1
  246. package/dist/esm/vega-table_8.entry.js +10 -10
  247. package/dist/esm/vega-textarea.entry.js +5 -5
  248. package/dist/esm/vega-time-picker_2.entry.js +13 -13
  249. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  250. package/dist/esm/vega-tooltip_2.entry.js +15 -15
  251. package/dist/esm/vega.js +9 -9
  252. package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +8 -3
  253. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +3 -0
  254. package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.d.ts +1 -0
  255. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +3 -0
  256. package/dist/types/components/vega-input/vega-input.d.ts +2 -2
  257. package/dist/types/components/vega-nav/interface.d.ts +11 -0
  258. package/dist/types/components/vega-nav/slimmers/vega-left-nav-group-hierarchy-controller.d.ts +15 -0
  259. package/dist/types/components/vega-nav/vega-left-nav/slimmers/renderers/vega-left-nav-header-renderer.d.ts +1 -0
  260. package/dist/types/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.d.ts +4 -0
  261. package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +25 -4
  262. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-initialize-selected-controller.d.ts +20 -0
  263. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-link-click-controller.d.ts +25 -0
  264. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-open-state-controller.d.ts +27 -0
  265. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-other-groups-click-controller.d.ts +17 -0
  266. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.d.ts +2 -1
  267. package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +12 -5
  268. package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.d.ts +5 -0
  269. package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.d.ts +2 -0
  270. package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +2 -0
  271. package/dist/types/components/vega-popover/vega-popover.d.ts +3 -0
  272. package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +1 -0
  273. package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +4 -0
  274. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +4 -0
  275. package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +4 -0
  276. package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +4 -0
  277. package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +4 -0
  278. package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +4 -0
  279. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +4 -0
  280. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +1 -0
  281. package/dist/types/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.d.ts +1 -0
  282. package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts +6 -0
  283. package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +4 -0
  284. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +4 -0
  285. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +4 -0
  286. package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +4 -0
  287. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +9 -1
  288. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +4 -0
  289. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +4 -0
  290. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +4 -0
  291. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +4 -0
  292. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +19 -1
  293. package/dist/types/components/vega-rich-text-editor/dto/editor-state.d.ts +20 -0
  294. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +4 -0
  295. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +9 -1
  296. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +4 -0
  297. package/dist/types/components/vega-rich-text-editor/dto/range.d.ts +6 -0
  298. package/dist/types/components/vega-rich-text-editor/dto/selection-state.d.ts +14 -0
  299. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +2 -2
  300. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/history-controller.d.ts +54 -0
  301. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +14 -1
  302. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +4 -1
  303. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
  304. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +3 -0
  305. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +3 -0
  306. package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +3 -0
  307. package/dist/types/components.d.ts +23 -11
  308. package/dist/types/constants/misc.d.ts +2 -0
  309. package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +2 -2
  310. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
  311. package/dist/types/helpers/keyboard/keyboard-manager.d.ts +11 -1
  312. package/dist/types/helpers/slimmers/brand-switch-state-controller-slimmer.d.ts +22 -0
  313. package/dist/types/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.d.ts +1 -0
  314. package/dist/types/helpers/theme/controllers/{new-brand-style-controller.d.ts → brand-style-controller.d.ts} +3 -3
  315. package/dist/types/helpers/theme/internal-theme-manager.d.ts +8 -8
  316. package/dist/types/helpers/theme/theme-manager.d.ts +4 -4
  317. package/dist/types/helpers/theme/theme.d.ts +6 -1
  318. package/dist/types/types/components.type.d.ts +1 -0
  319. package/dist/types/types/public-api.d.ts +1 -1
  320. package/dist/types/types/ui.type.d.ts +1 -1
  321. package/dist/vega/index.esm.js +1 -1
  322. package/dist/vega/{p-f01300ea.entry.js → p-024cccab.entry.js} +1 -1
  323. package/dist/vega/{p-8f98e604.entry.js → p-07d1c3e1.entry.js} +1 -1
  324. package/dist/vega/{p-eaab3fea.entry.js → p-0969877b.entry.js} +1 -1
  325. package/dist/vega/{p-a9f2ad08.entry.js → p-09c13382.entry.js} +1 -1
  326. package/dist/vega/{p-b5f05d21.entry.js → p-09f7f841.entry.js} +1 -1
  327. package/dist/vega/{p-20af6415.entry.js → p-0a18f5f6.entry.js} +1 -1
  328. package/dist/vega/{p-d54c48b0.js → p-0d355793.js} +1 -1
  329. package/dist/vega/{p-f3f73fd3.entry.js → p-10f1429e.entry.js} +1 -1
  330. package/dist/vega/{p-0835a2fd.js → p-1503f791.js} +1 -1
  331. package/dist/vega/p-1b3f492f.entry.js +1 -0
  332. package/dist/vega/{p-d2947f32.entry.js → p-1d0cf3ae.entry.js} +1 -1
  333. package/dist/vega/{p-4b541ce8.entry.js → p-2198de3e.entry.js} +1 -1
  334. package/dist/vega/{p-e3b70eed.entry.js → p-2491d18f.entry.js} +1 -1
  335. package/dist/vega/{p-e309bfd1.entry.js → p-24e0cdcc.entry.js} +1 -1
  336. package/dist/vega/{p-aa29ccd4.entry.js → p-27e3825f.entry.js} +1 -1
  337. package/dist/vega/p-27e56c67.entry.js +1 -0
  338. package/dist/vega/{p-76a3a552.entry.js → p-292b421a.entry.js} +1 -1
  339. package/dist/vega/{p-d2a65457.entry.js → p-2ecae9fe.entry.js} +1 -1
  340. package/dist/vega/{p-562de411.entry.js → p-2fadef27.entry.js} +1 -1
  341. package/dist/vega/{p-b4108ddb.entry.js → p-31ec679b.entry.js} +1 -1
  342. package/dist/vega/{p-f5fdf1ae.entry.js → p-32c68611.entry.js} +1 -1
  343. package/dist/vega/{p-42b62b48.js → p-32ca74b1.js} +1 -1
  344. package/dist/vega/{p-4640d35d.entry.js → p-353d32c0.entry.js} +1 -1
  345. package/dist/vega/{p-63ea4f38.entry.js → p-371cc8e8.entry.js} +1 -1
  346. package/dist/vega/{p-84aa2ebc.entry.js → p-38fa38dc.entry.js} +1 -1
  347. package/dist/vega/{p-720d87f9.entry.js → p-472727a4.entry.js} +1 -1
  348. package/dist/vega/{p-12a8d705.js → p-48b7f20d.js} +1 -1
  349. package/dist/vega/p-4e68dfd9.js +1 -0
  350. package/dist/vega/{p-693934d5.entry.js → p-4fa94b35.entry.js} +1 -1
  351. package/dist/vega/{p-c17b7a1f.js → p-50677c8e.js} +1 -1
  352. package/dist/vega/{p-1486bc3f.js → p-50e80afa.js} +1 -1
  353. package/dist/vega/p-56a0b13d.js +1 -0
  354. package/dist/vega/p-575ca599.entry.js +1 -0
  355. package/dist/vega/{p-23a26150.js → p-5773a9a3.js} +1 -1
  356. package/dist/vega/{p-7a3826a0.entry.js → p-57e813f2.entry.js} +1 -1
  357. package/dist/vega/{p-90ebcda7.entry.js → p-5a8f129f.entry.js} +1 -1
  358. package/dist/vega/p-5c1eedc5.js +1 -0
  359. package/dist/vega/{p-0a3607f7.entry.js → p-5c3da7ed.entry.js} +1 -1
  360. package/dist/vega/{p-b2643e88.js → p-5e3a15a1.js} +1 -1
  361. package/dist/vega/p-5f377954.js +1 -1
  362. package/dist/vega/{p-23ff7605.entry.js → p-65a76f19.entry.js} +1 -1
  363. package/dist/vega/p-6be16084.js +1 -0
  364. package/dist/vega/{p-69cc3fa2.js → p-6cabdb36.js} +1 -1
  365. package/dist/vega/{p-d296cf86.entry.js → p-6cc32ffa.entry.js} +1 -1
  366. package/dist/vega/{p-d7642125.js → p-72ecfd40.js} +1 -1
  367. package/dist/vega/{p-be186a9f.entry.js → p-7581d242.entry.js} +1 -1
  368. package/dist/vega/{p-a0b6da44.js → p-75c68f51.js} +1 -1
  369. package/dist/vega/p-7db32dc0.entry.js +1 -0
  370. package/dist/vega/{p-f0c85061.js → p-7f6702f7.js} +1 -1
  371. package/dist/vega/{p-7f1a7346.entry.js → p-84298e28.entry.js} +1 -1
  372. package/dist/vega/{p-704d9730.js → p-8ade44bf.js} +1 -1
  373. package/dist/vega/p-8bc4c015.entry.js +1 -0
  374. package/dist/vega/{p-e66515c7.js → p-8d283666.js} +1 -1
  375. package/dist/vega/p-904d1b43.js +1 -0
  376. package/dist/vega/{p-c87b5c83.entry.js → p-971f7d3c.entry.js} +1 -1
  377. package/dist/vega/{p-1138fa63.entry.js → p-9dba10f7.entry.js} +1 -1
  378. package/dist/vega/p-aea89be5.entry.js +1 -0
  379. package/dist/vega/p-b1f9fca8.entry.js +1 -0
  380. package/dist/vega/{p-ff9e8753.entry.js → p-b3e1dc86.entry.js} +1 -1
  381. package/dist/vega/{p-327a017b.entry.js → p-baca6dfc.entry.js} +1 -1
  382. package/dist/vega/p-bf1894ec.js +1 -0
  383. package/dist/vega/p-c5f8b3a3.entry.js +1 -0
  384. package/dist/vega/p-c6a3fe8a.entry.js +1 -0
  385. package/dist/vega/p-c754b32c.js +1 -0
  386. package/dist/vega/p-cc43a4ca.js +1 -0
  387. package/dist/vega/{p-f3efc8f0.entry.js → p-ccdd49be.entry.js} +1 -1
  388. package/dist/vega/p-cd205d96.js +1 -0
  389. package/dist/vega/{p-414e7edc.entry.js → p-d033ed44.entry.js} +1 -1
  390. package/dist/vega/{p-7cc3feb4.entry.js → p-d6591d70.entry.js} +1 -1
  391. package/dist/vega/{p-80c86d79.js → p-d7937711.js} +1 -1
  392. package/dist/vega/{p-26005df1.js → p-db4112af.js} +1 -1
  393. package/dist/vega/{p-90e70662.entry.js → p-db7a6878.entry.js} +1 -1
  394. package/dist/vega/{p-0e7fc736.entry.js → p-dd33bc71.entry.js} +1 -1
  395. package/dist/vega/{p-fb6d87cd.entry.js → p-e8f16f1d.entry.js} +1 -1
  396. package/dist/vega/{p-ba0a76fe.entry.js → p-ed6cc75b.entry.js} +1 -1
  397. package/dist/vega/p-f4d3387c.entry.js +1 -0
  398. package/dist/vega/{p-27287998.entry.js → p-f5b19d4f.entry.js} +1 -1
  399. package/dist/vega/{p-1114896d.entry.js → p-f7423232.entry.js} +1 -1
  400. package/dist/vega/p-fba4bae5.js +1 -0
  401. package/dist/vega/p-fda0c179.entry.js +1 -0
  402. package/dist/vega/p-ff41dc6a.entry.js +1 -0
  403. package/dist/vega/vega.esm.js +1 -1
  404. package/package.json +1 -1
  405. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.js +0 -30
  406. package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-sibling-observer-controller.js +0 -48
  407. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.d.ts +0 -11
  408. package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-sibling-observer-controller.d.ts +0 -18
  409. package/dist/vega/p-06d7990e.js +0 -1
  410. package/dist/vega/p-1154e439.entry.js +0 -1
  411. package/dist/vega/p-12d60f5f.js +0 -1
  412. package/dist/vega/p-214aa52e.js +0 -1
  413. package/dist/vega/p-2c0d1ec9.entry.js +0 -1
  414. package/dist/vega/p-2e65e175.js +0 -1
  415. package/dist/vega/p-3165ee95.entry.js +0 -1
  416. package/dist/vega/p-380ba357.entry.js +0 -1
  417. package/dist/vega/p-41c48bcc.entry.js +0 -1
  418. package/dist/vega/p-4c62c178.entry.js +0 -1
  419. package/dist/vega/p-626dd54f.entry.js +0 -1
  420. package/dist/vega/p-6f2faa34.js +0 -1
  421. package/dist/vega/p-6f9731a1.entry.js +0 -1
  422. package/dist/vega/p-7f9dd834.entry.js +0 -1
  423. package/dist/vega/p-865b45dc.entry.js +0 -1
  424. package/dist/vega/p-b07add9c.entry.js +0 -1
  425. package/dist/vega/p-b9051ad2.js +0 -1
  426. package/dist/vega/p-da40b4c3.js +0 -1
  427. package/dist/vega/p-f2373487.js +0 -1
  428. package/dist/vega/p-ff8ef8af.entry.js +0 -1
  429. package/dist/vega/p-ff9ccfa8.js +0 -1
@@ -6,12 +6,14 @@ import { LeftNavCounterBadgeConfig } from '../interface';
6
6
  import { EventEmitSlimmerBase } from '../../../helpers/event-manager/slimmers/event-emit-slimmer';
7
7
  import { DeprecatedPropertySlimmerBase } from '../../../helpers/slimmers/deprecated-property-slimmer';
8
8
  import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
9
+ import { VegaLeftNavHierarchyController } from '../slimmers/vega-left-nav-group-hierarchy-controller';
9
10
  /**
10
11
  * @vegaVersion 1.31.0
11
12
  */
12
13
  export declare class VegaLeftNavLink {
13
14
  protected readonly globalSlimmers: GlobalSlimmers;
14
15
  protected readonly renderer: VegaLeftNavLinkRenderer;
16
+ protected readonly vegaLeftNavHierarchyController: VegaLeftNavHierarchyController;
15
17
  protected readonly controller: VegaLeftNavLinkController;
16
18
  protected menuClickEventEmitter: EventEmitSlimmerBase;
17
19
  protected readonly deprecatedPropertySlimmer: DeprecatedPropertySlimmerBase<number>;
@@ -60,6 +60,9 @@ export declare class VegaPopover {
60
60
  * you can modify this property to specify a different element
61
61
  * as the container for the popover.
62
62
  *
63
+ * @VegaWarning The value of this property should be an element that is
64
+ * the parent of this component or an ancestor of the parent element.
65
+ * Using any other element may lead to unexpected behavior.
63
66
  * @vegaVersion 1.19.0
64
67
  */
65
68
  positionRelativeTo: string;
@@ -19,4 +19,5 @@ export declare abstract class BlockAnnotation extends Annotation {
19
19
  * @returns {Nullable<Record<string, unknown>>} JSON item of the annotation
20
20
  */
21
21
  abstract toJSON(): Nullable<Record<string, unknown>>;
22
+ abstract clone(): BlockAnnotation;
22
23
  }
@@ -21,6 +21,10 @@ export declare class BoldAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<string, unknown>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<string, unknown>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): BoldAnnotation;
24
28
  /**
25
29
  * Generate the style for the annotation
26
30
  *
@@ -21,6 +21,10 @@ export declare class CodeAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<string, unknown>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<string, unknown>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): CodeAnnotation;
24
28
  /**
25
29
  * Generate the class for the annotation
26
30
  *
@@ -27,6 +27,10 @@ export declare class HorizontalAlignmentAnnotation extends BlockAnnotation {
27
27
  * @returns {string} - Annotation class
28
28
  */
29
29
  renderClass(): string;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ clone(): HorizontalAlignmentAnnotation;
30
34
  /**
31
35
  * Generate the style for the annotation
32
36
  *
@@ -24,6 +24,10 @@ export declare class ImageAnnotation extends NodeAnnotation {
24
24
  * @returns {Nullable<Record<string, unknown>>} JSON representation of the annotation
25
25
  */
26
26
  toJSON(): Nullable<Record<string, unknown>>;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ clone(): ImageAnnotation;
27
31
  /**
28
32
  * Generate the style for the image
29
33
  *
@@ -21,6 +21,10 @@ export declare class IndentAnnotation extends BlockAnnotation {
21
21
  * @returns {Nullable<Record<string, unknown>>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Nullable<Record<string, unknown>>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): IndentAnnotation;
24
28
  /**
25
29
  * Generate the style for the annotation
26
30
  *
@@ -21,6 +21,10 @@ export declare class ItalicAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<string, unknown>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<string, unknown>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): ItalicAnnotation;
24
28
  /**
25
29
  * Generate the style for the annotation
26
30
  *
@@ -21,6 +21,10 @@ export declare class LinkAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<'link', VegaRTELink>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<'link', VegaRTELink>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): LinkAnnotation;
24
28
  /**
25
29
  * Verify whether two link annotation is same or not
26
30
  *
@@ -7,4 +7,5 @@ export declare class LinkGroupAnnotation extends Annotation {
7
7
  readonly type: InternalAnnotationTypeEnum;
8
8
  linkGroups: Map<string, RTETextNode[]>;
9
9
  constructor(groupKey: string);
10
+ clone(): LinkGroupAnnotation;
10
11
  }
@@ -25,4 +25,5 @@ export declare abstract class NodeAnnotation extends Annotation {
25
25
  * @returns {Nullable<Record<string, unknown>>} JSON representation of the annotation
26
26
  */
27
27
  abstract toJSON(): Nullable<Record<string, unknown>>;
28
+ abstract clone(): NodeAnnotation;
28
29
  }
@@ -6,4 +6,10 @@ export declare class SelectionRangeAnnotation extends Annotation {
6
6
  readonly type: InternalAnnotationTypeEnum;
7
7
  range: Range;
8
8
  constructor(range: Range);
9
+ /**
10
+ * Clone the selection range annotation
11
+ *
12
+ * @returns {SelectionRangeAnnotation} A cloned instance of the selection range annotation
13
+ */
14
+ clone(): SelectionRangeAnnotation;
9
15
  }
@@ -21,6 +21,10 @@ export declare class StrikethroughAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<string, unknown>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<string, unknown>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): StrikethroughAnnotation;
24
28
  /**
25
29
  * Generate the class for the annotation
26
30
  *
@@ -21,6 +21,10 @@ export declare class TextColorAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<string, unknown>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<string, unknown>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): TextColorAnnotation;
24
28
  /**
25
29
  * Generate the class for the annotation
26
30
  *
@@ -21,6 +21,10 @@ export declare class TextStyleAnnotation extends BlockAnnotation {
21
21
  * @returns {Nullable<Record<string, unknown>>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Nullable<Record<string, unknown>>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): TextStyleAnnotation;
24
28
  /**
25
29
  * Render the styles by block type
26
30
  *
@@ -21,6 +21,10 @@ export declare class UnderlineAnnotation extends NodeAnnotation {
21
21
  * @returns {Record<string, unknown>} JSON representation of the annotation
22
22
  */
23
23
  toJSON(): Record<string, unknown>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ clone(): UnderlineAnnotation;
24
28
  /**
25
29
  * Generate the class for the annotation
26
30
  *
@@ -7,12 +7,13 @@ import { VegaRTEContent } from '../content-state';
7
7
  import { InternalAnnotationTypeEnum } from '../annotations/annotation.abstract';
8
8
  import { LinkGroupAnnotation } from '../annotations/link-group-annotation';
9
9
  import { RTENode } from '../nodes/node.abstract';
10
+ export declare type BlockAnnotations = Map<keyof typeof BlockAnnotationTypeEnum | InternalAnnotationTypeEnum.LINK_GROUP, BlockAnnotation | LinkGroupAnnotation>;
10
11
  /**
11
12
  * Abstract class for block
12
13
  */
13
14
  export declare abstract class RTEBlock {
14
15
  id: string;
15
- annotationMap: Map<keyof typeof BlockAnnotationTypeEnum | InternalAnnotationTypeEnum.LINK_GROUP, BlockAnnotation | LinkGroupAnnotation>;
16
+ annotationMap: BlockAnnotations;
16
17
  abstract type: RTEBlockType;
17
18
  abstract parent: VegaRTEContent | RTEBlock;
18
19
  protected constructor(id: string);
@@ -67,6 +68,12 @@ export declare abstract class RTEBlock {
67
68
  * @param {AnnotationAction} action - Annotation action
68
69
  */
69
70
  protected doAnnotationActionApply?(action: AnnotationAction): void;
71
+ /**
72
+ * clone annotations of the block
73
+ *
74
+ * @returns {BlockAnnotations} - Cloned annotations
75
+ */
76
+ protected cloneAnnotations(): BlockAnnotations;
70
77
  /**
71
78
  * abstract method to be overridden in each block to verify whether the block is not empty
72
79
  *
@@ -74,4 +81,5 @@ export declare abstract class RTEBlock {
74
81
  */
75
82
  abstract isNotEmpty(): boolean;
76
83
  abstract getLastNode(): RTENode;
84
+ abstract clone(): RTEBlock;
77
85
  }
@@ -35,4 +35,8 @@ export declare class RTEImageBlock extends RTEBlock {
35
35
  * @returns {RTEImageBlock} - The empty image block.
36
36
  */
37
37
  createNewImageBlock(): RTEImageBlock;
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ clone(): RTEImageBlock;
38
42
  }
@@ -30,4 +30,8 @@ export declare class RTEListBlock extends RTEBlock {
30
30
  * @inheritDoc
31
31
  */
32
32
  getLastNode(): RTETextNode;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ clone(): RTEListBlock;
33
37
  }
@@ -35,4 +35,8 @@ export declare class RTEListItemBlock extends RTETextBlock {
35
35
  * @returns {RTEListItemBlock} - A list item block.
36
36
  */
37
37
  createNewListItem(): RTEListItemBlock;
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ clone(): RTEListItemBlock;
38
42
  }
@@ -58,6 +58,10 @@ export declare class RTETextBlock extends RTEBlock {
58
58
  * @returns {RTEBlock} New block
59
59
  */
60
60
  cloneWithNodes(nodes: RTETextNode[]): RTEBlock;
61
+ /**
62
+ * @inheritDoc
63
+ */
64
+ clone(): RTETextBlock;
61
65
  /**
62
66
  * @inheritDoc
63
67
  */
@@ -3,6 +3,8 @@ import { RTEListBlock } from './blocks/list-block';
3
3
  import { RTETextBlock } from './blocks/text-block';
4
4
  import { ModifyContentAction } from './actions/modify-content-action.abstract';
5
5
  import { RTEListItemBlock } from './blocks/list-item-block';
6
+ import { RTENode } from './nodes/node.abstract';
7
+ import { Nullable } from '../../../types/general';
6
8
  /**
7
9
  * Class representing the content state of the rich text editor.
8
10
  */
@@ -25,9 +27,10 @@ export declare class VegaRTEContent {
25
27
  /**
26
28
  * Clones the content state.
27
29
  *
30
+ * @param {boolean} deep - If true, performs a deep clone of the content state.
28
31
  * @returns {VegaRTEContent} The cloned content state.
29
32
  */
30
- clone(): VegaRTEContent;
33
+ clone(deep?: boolean): VegaRTEContent;
31
34
  /**
32
35
  * Converts the content state to a JSON array of blocks.
33
36
  *
@@ -54,4 +57,19 @@ export declare class VegaRTEContent {
54
57
  * @returns {RTEListBlock} list block dto.
55
58
  */
56
59
  createList(type: ListType): RTEListBlock;
60
+ /**
61
+ * Finds a node by its ID in the content.
62
+ *
63
+ * @param {string} id - The ID of the node to find.
64
+ * @returns {Nullable<RTENode>} The found node or null if not found.
65
+ */
66
+ findNodeById(id: string): Nullable<RTENode>;
67
+ /**
68
+ * Recursively searches for a node by its ID in the given blocks.
69
+ *
70
+ * @param {string} id - The ID of the node to find.
71
+ * @param {RTEContentBlock[]} blocks - The blocks to search within.
72
+ * @returns {Nullable<RTENode>} The found node or null if not found.
73
+ */
74
+ private findNodeInBlocksById;
57
75
  }
@@ -0,0 +1,20 @@
1
+ import { VegaRTEContent } from './content-state';
2
+ import { RTESelectionState } from './selection-state';
3
+ /**
4
+ * Represents the state of the RTE
5
+ */
6
+ export declare class RTEEditorState {
7
+ content: VegaRTEContent;
8
+ selection: RTESelectionState;
9
+ constructor(content: VegaRTEContent, selection: RTESelectionState);
10
+ /**
11
+ * Clones the editor state, updating the content and selection based on the provided content.
12
+ *
13
+ * @returns {RTEEditorState} A new instance of RTEEditorState with the updated content and selection.
14
+ */
15
+ clone(): RTEEditorState;
16
+ /**
17
+ * Refreshes the selection nodes in the editor state.
18
+ */
19
+ private refreshSelectionNodes;
20
+ }
@@ -23,6 +23,10 @@ export declare class RTEImageNode extends RTENode {
23
23
  * @inheritDoc
24
24
  */
25
25
  toJSON(): VegaRTEImageNode;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ clone(): RTEImageNode;
26
30
  /**
27
31
  * @inheritDoc
28
32
  */
@@ -7,12 +7,13 @@ export declare enum NodeTypeEnum {
7
7
  TEXT = "TEXT",
8
8
  IMAGE = "IMAGE"
9
9
  }
10
+ export declare type NodeAnnotations = Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>;
10
11
  /**
11
12
  * Abstract class for all nodes
12
13
  */
13
14
  export declare abstract class RTENode {
14
15
  id: string;
15
- annotationMap: Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>;
16
+ annotationMap: NodeAnnotations;
16
17
  abstract readonly type: NodeTypeEnum;
17
18
  abstract parentBlock: RTEBlock;
18
19
  protected constructor(id: string, annotationMap?: Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>);
@@ -47,7 +48,14 @@ export declare abstract class RTENode {
47
48
  * Flush the value change
48
49
  */
49
50
  protected flushChange(): void;
51
+ /**
52
+ * Clones the annotations of the current RTETextNode.
53
+ *
54
+ * @returns {NodeAnnotations} A new Map containing cloned annotations.
55
+ */
56
+ protected cloneAnnotations(): NodeAnnotations;
50
57
  abstract toJSON(): VegaRTEBaseNode;
58
+ abstract clone(): RTENode;
51
59
  protected abstract doAnnotationActionApply(action: AnnotationAction): void;
52
60
  protected abstract doModifyActionApply(action: ModifyContentAction): void;
53
61
  }
@@ -42,6 +42,10 @@ export declare class RTETextNode extends RTENode {
42
42
  * @returns {RTETextNode} An new RTETextNode
43
43
  */
44
44
  cloneWithText(text: string): RTETextNode;
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ clone(): RTETextNode;
45
49
  /**
46
50
  * Checks if a node is empty
47
51
  *
@@ -77,6 +77,12 @@ export declare class RTERange {
77
77
  * @returns {RTERange} - The new RTERange instance
78
78
  */
79
79
  updateRTERange(options: RTERangeOptions, nativeRange?: Range): RTERange;
80
+ /**
81
+ * Creates a new instance of the `RTERange` class with the same properties as the current instance.
82
+ *
83
+ * @returns {RTERange} A new `RTERange` instance with the same start and end containers, offsets, and nodes.
84
+ */
85
+ clone(): RTERange;
80
86
  /**
81
87
  * Creates a Range object based on start and end nodes and offsets.
82
88
  * Invoke this method to get the future range state if the range content modified.
@@ -0,0 +1,14 @@
1
+ import { RTERange } from './range';
2
+ /**
3
+ * Represents the state of the selection in the RTE.
4
+ */
5
+ export declare class RTESelectionState {
6
+ range: RTERange;
7
+ constructor(range: RTERange);
8
+ /**
9
+ * Clones the selection state, updating the range nodes based on the provided content.
10
+ *
11
+ * @returns {RTESelectionState} A new instance of RTESelectionState with the updated range.
12
+ */
13
+ clone(): RTESelectionState;
14
+ }
@@ -26,7 +26,7 @@ export declare class ElementToDTOStrategyOutput {
26
26
  /**
27
27
  * Transform current output and children output to DTO
28
28
  *
29
- * @returns {RTEContentBlock} - DTO.
29
+ * @returns {Nullable<RTEContentBlock>} - DTO.
30
30
  */
31
- toDto(): RTEContentBlock;
31
+ toDto(): Nullable<RTEContentBlock>;
32
32
  }
@@ -0,0 +1,54 @@
1
+ import { RTEEditorState } from '../../dto/editor-state';
2
+ import { VegaRichTextEditor } from '../../vega-rich-text-editor';
3
+ import { KeyboardManagerSlimmer } from '../../../../helpers/slimmers/keyboard-manager-slimmer';
4
+ /**
5
+ * History controller for RTE.
6
+ */
7
+ export declare class HistoryController extends KeyboardManagerSlimmer {
8
+ protected host: VegaRichTextEditor['host'];
9
+ protected vegaRichTextEditorRenderer: VegaRichTextEditor['vegaRichTextEditorRenderer'];
10
+ protected valueController: VegaRichTextEditor['valueController'];
11
+ protected value: VegaRichTextEditor['value'];
12
+ protected selectionController: VegaRichTextEditor['selectionController'];
13
+ private redoStack;
14
+ private undoStack;
15
+ private readonly registerHistoryDelay;
16
+ private readonly registerHistoryDebounced;
17
+ constructor();
18
+ /**
19
+ * Component lifecycle - [componentDidLoad]
20
+ */
21
+ registerInitState(): void;
22
+ /**
23
+ * Restores the previous state from the undo stack.
24
+ */
25
+ undo(): Promise<void>;
26
+ /**
27
+ * Restores the next state from the redo stack.
28
+ */
29
+ redo(): Promise<void>;
30
+ /**
31
+ * Registers history based on the editor state.
32
+ *
33
+ * @param {RTEEditorState} editorState - The state to record in history.
34
+ */
35
+ registerHistory(editorState: RTEEditorState): void;
36
+ /**
37
+ * Internal function to register history immediately.
38
+ *
39
+ * @param {RTEEditorState} state - The state to record in history.
40
+ */
41
+ private internalRegisterHistory;
42
+ /**
43
+ * Restores the editor state based on the provided history state.
44
+ *
45
+ * @param {RTEEditorState} state - The state to restore to.
46
+ */
47
+ private restoreState;
48
+ /**
49
+ * Returns the keyboard shortcut options for undo/redo functionality.
50
+ *
51
+ * @returns {KeyboardEventListener[]} - An array of keyboard shortcut options.
52
+ */
53
+ private getKeyboardShortcutOptions;
54
+ }
@@ -3,6 +3,7 @@ import { VegaRichTextEditor } from '../../vega-rich-text-editor';
3
3
  import { RTEBlock } from '../../dto/blocks/block.abstract';
4
4
  import { RTENode } from '../../dto/nodes/node.abstract';
5
5
  import { RTERange } from '../../dto/range';
6
+ import { RTESelectionState } from '../../dto/selection-state';
6
7
  declare type SelectionStateType = {
7
8
  startNode: Node | RTENode;
8
9
  endNode: Node | RTENode;
@@ -21,11 +22,13 @@ export declare class SelectionController extends VegaSlimmer {
21
22
  protected readonly disabled: VegaRichTextEditor['disabled'];
22
23
  protected readonly valueController: VegaRichTextEditor['valueController'];
23
24
  protected insertCompositionTextController: VegaRichTextEditor['insertCompositionTextController'];
25
+ protected readonly historyController: VegaRichTextEditor['historyController'];
24
26
  private currentRange;
25
27
  private updateCaretPositionTaskQueue;
26
28
  private handleSelectionWithDebounce;
27
- private selectedNodes;
29
+ private pendingRestoreSelectionNodes;
28
30
  private selectionRangeChangeObserver;
31
+ private selectionState;
29
32
  /**
30
33
  * Component lifecycle - [connectedCallback]{@link VegaRichTextEditor.connectedCallback}
31
34
  */
@@ -64,6 +67,12 @@ export declare class SelectionController extends VegaSlimmer {
64
67
  * @returns {RTEBlock[]} Selected rich text blocks
65
68
  */
66
69
  getSelectedBlocks(): RTEBlock[];
70
+ /**
71
+ * Set the selection state
72
+ *
73
+ * @param {RTESelectionState} state - The selection state to set
74
+ */
75
+ setSelectionState(state: RTESelectionState): void;
67
76
  /**
68
77
  * Sets the next selection state with specified start and end nodes, offsets, push the update task to a queue
69
78
  *
@@ -121,5 +130,9 @@ export declare class SelectionController extends VegaSlimmer {
121
130
  * Register the selection range change observer
122
131
  */
123
132
  private registerSelectionRangeChangeObserver;
133
+ /**
134
+ * Prepare the selection state to restore
135
+ */
136
+ private prepareRestoreSelectionState;
124
137
  }
125
138
  export {};
@@ -10,6 +10,8 @@ export declare class ValueController extends VegaSlimmer {
10
10
  value: VegaRichTextEditor['value'];
11
11
  changeEventEmitter: VegaRichTextEditor['changeEventEmitter'];
12
12
  valueController: VegaRichTextEditor['valueController'];
13
+ historyController: VegaRichTextEditor['historyController'];
14
+ selectionController: VegaRichTextEditor['selectionController'];
13
15
  private flushChangeObserver;
14
16
  /**
15
17
  * Component lifecycle - [connectedCallback]{@link VegaRichTextEditor.connectedCallback}
@@ -31,8 +33,9 @@ export declare class ValueController extends VegaSlimmer {
31
33
  * Updates the value of the editor and restore the selection.
32
34
  *
33
35
  * @param {VegaRTEContent} newValue The new value to set.
36
+ * @param {boolean} recordHistory - Whether to record the change in history.
34
37
  */
35
- flushChanges(newValue: VegaRTEContent): Promise<void>;
38
+ flushChanges(newValue: VegaRTEContent, recordHistory?: boolean): Promise<void>;
36
39
  /**
37
40
  * Determines whether the observer should accept changes.
38
41
  *
@@ -38,6 +38,7 @@ import { TextNodeColorController } from './slimmers/controllers/text-node-color-
38
38
  import { InsertCompositionTextController } from './slimmers/controllers/insert-composition-text-controller';
39
39
  import { DeleteSelectedNodesController } from './slimmers/controllers/delete-selected-nodes-controller';
40
40
  import { TranslationSlimmer } from '../../helpers/slimmers/translation';
41
+ import { HistoryController } from './slimmers/controllers/history-controller';
41
42
  /**
42
43
  * @vegaVersion 2.34.0
43
44
  */
@@ -77,6 +78,7 @@ export declare class VegaRichTextEditor {
77
78
  protected changeEventPreventSlimmer: ChildNodesEventPreventSlimmer;
78
79
  protected readonly textNodeColorController: TextNodeColorController;
79
80
  protected readonly deleteSelectedNodesController: DeleteSelectedNodesController;
81
+ protected readonly historyController: HistoryController;
80
82
  host: HTMLVegaRichTextEditorElement;
81
83
  richTextContentEditable: boolean;
82
84
  watchRichTextContentEditable(): void;
@@ -99,6 +99,9 @@ export declare class VegaTabGroup {
99
99
  * - If not provided,
100
100
  * the popup will be appended to the body element by default.
101
101
  *
102
+ * @VegaWarning The value of this property should be an element that is
103
+ * the parent of this component or an ancestor of the parent element.
104
+ * Using any other element may lead to unexpected behavior.
102
105
  * @vegaVersion 1.3.0
103
106
  */
104
107
  positionRelativeTo: string;
@@ -157,6 +157,9 @@ export declare class VegaTimePicker {
157
157
  * the body by default. Adjust this property
158
158
  * when facing scrolling positioning problems.
159
159
  *
160
+ * @VegaWarning The value of this property should be an element that is
161
+ * the parent of this component or an ancestor of the parent element.
162
+ * Using any other element may lead to unexpected behavior.
160
163
  * @vegaVersion 1.12.0
161
164
  */
162
165
  positionRelativeTo: string;
@@ -95,6 +95,9 @@ export declare class VegaTooltip {
95
95
  * body by default. Adjust this property if you
96
96
  * encounter scrolling or positioning issues.
97
97
  *
98
+ * @VegaWarning The value of this property should be an element that is
99
+ * the parent of this component or an ancestor of the parent element.
100
+ * Using any other element may lead to unexpected behavior.
98
101
  * @vegaVersion 1.3.0
99
102
  */
100
103
  positionRelativeTo: string;