@globalpayments/vega 2.67.0 → 2.68.1

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 (455) hide show
  1. package/dist/cjs/{app-globals-ab28f910.js → app-globals-f7106a22.js} +15 -14
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-eb803b14.js → child-nodes-event-prevent-slimmer-f8840f1b.js} +1 -1
  3. package/dist/cjs/{code-block-ab97a0a0.js → code-block-39074880.js} +514 -319
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-5630341e.js → component-value-history-controller-slimmer.abstract-ddedf543.js} +2 -2
  5. package/dist/cjs/{design-token-847739f1.js → design-token-e14a4e66.js} +1 -1
  6. package/dist/cjs/{dto-renderer-manager-d0f0f2c0.js → dto-renderer-manager-b7969d6c.js} +1587 -1563
  7. package/dist/cjs/{element-appender-slimmer-aead9bbb.js → element-appender-slimmer-7ee27ab3.js} +5 -5
  8. package/dist/cjs/{event-emit-slimmer-d21a0935.js → event-emit-slimmer-7afe8d78.js} +1 -1
  9. package/dist/cjs/{token-extension-aa8d5cce.js → function-extension-f0e845f2.js} +1019 -96
  10. package/dist/cjs/{image-annotation-action-d84de785.js → image-annotation-action-7f0626c8.js} +15 -25
  11. package/dist/cjs/index-58ea899e.js +2 -2
  12. package/dist/cjs/index.cjs.js +36 -24
  13. package/dist/cjs/{internal-vega-event-manager-4d1ce667.js → internal-vega-event-manager-45d451de.js} +5 -2
  14. package/dist/cjs/{language-extension-d257e65d.js → language-extension-d0103d1a.js} +5 -5
  15. package/dist/cjs/loader.cjs.js +8 -8
  16. package/dist/cjs/{public-rules-d2b9b8f0.js → public-rules-8b67eaba.js} +3 -3
  17. package/dist/cjs/{range-d610028e.js → range-002671b6.js} +1 -1
  18. package/dist/cjs/{responsive-format-facade-71e7b74c.js → responsive-format-facade-347db035.js} +3 -3
  19. package/dist/cjs/{rich-text-editor-required-rule-a8fe5f50.js → rich-text-editor-required-rule-5392bd8a.js} +1 -1
  20. package/dist/cjs/{style-formatter-6facb42b.js → style-formatter-0a09f0dd.js} +1 -1
  21. package/dist/cjs/vega-accordion.cjs.entry.js +7 -7
  22. package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -8
  23. package/dist/cjs/vega-banner.cjs.entry.js +2 -2
  24. package/dist/cjs/vega-box.cjs.entry.js +8 -8
  25. package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
  26. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
  27. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  28. package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
  29. package/dist/cjs/vega-button.cjs.entry.js +8 -8
  30. package/dist/cjs/vega-calendar_4.cjs.entry.js +313 -273
  31. package/dist/cjs/vega-card.cjs.entry.js +7 -7
  32. package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
  33. package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
  34. package/dist/cjs/vega-chip.cjs.entry.js +9 -9
  35. package/dist/cjs/vega-code-block.cjs.entry.js +6 -6
  36. package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
  37. package/dist/cjs/vega-combo-box.cjs.entry.js +3 -3
  38. package/dist/cjs/vega-date-picker_2.cjs.entry.js +12 -12
  39. package/dist/cjs/vega-dialog_2.cjs.entry.js +15 -15
  40. package/dist/cjs/vega-divider.cjs.entry.js +7 -7
  41. package/dist/cjs/vega-dropdown_5.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  43. package/dist/cjs/vega-field-label.cjs.entry.js +24 -5
  44. package/dist/cjs/vega-file-uploader.cjs.entry.js +2 -2
  45. package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -6
  46. package/dist/cjs/vega-flex.cjs.entry.js +8 -8
  47. package/dist/cjs/vega-font.cjs.entry.js +7 -7
  48. package/dist/cjs/vega-form.cjs.entry.js +3 -3
  49. package/dist/cjs/vega-grid.cjs.entry.js +7 -7
  50. package/dist/cjs/vega-icon.cjs.entry.js +6 -6
  51. package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -8
  52. package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -3
  54. package/dist/cjs/vega-input-passcode.cjs.entry.js +3 -3
  55. package/dist/cjs/vega-input-phone-number.cjs.entry.js +6 -6
  56. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  57. package/dist/cjs/vega-input-select.cjs.entry.js +38 -14
  58. package/dist/cjs/vega-input.cjs.entry.js +14 -3
  59. package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
  60. package/dist/cjs/vega-left-nav_5.cjs.entry.js +11 -11
  61. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +8 -8
  62. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +2 -2
  63. package/dist/cjs/vega-pagination.cjs.entry.js +7 -7
  64. package/dist/cjs/vega-popover_2.cjs.entry.js +9 -9
  65. package/dist/cjs/vega-progress-tracker.cjs.entry.js +2 -2
  66. package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
  67. package/dist/cjs/vega-rich-text-content.cjs.entry.js +93 -16
  68. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +107 -54
  69. package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
  70. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
  71. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +3 -3
  72. package/dist/cjs/vega-sidenav_3.cjs.entry.js +10 -10
  73. package/dist/cjs/vega-signature-capture.cjs.entry.js +7 -7
  74. package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
  75. package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
  76. package/dist/cjs/{vega-table_8.cjs.entry.js → vega-table_11.cjs.entry.js} +750 -323
  77. package/dist/cjs/vega-textarea.cjs.entry.js +24 -4
  78. package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -9
  79. package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
  80. package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -7
  81. package/dist/cjs/vega.cjs.js +8 -8
  82. package/dist/collection/collection-manifest.json +6 -0
  83. package/dist/collection/components/vega-calendar/slimmers/common/helpers/calendar-event-sorter.js +3 -3
  84. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +1 -1
  85. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/day-view-timed-event-layout-column.js +3 -1
  86. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-day-event-layout-renderer.js +4 -4
  87. package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +3 -4
  88. package/dist/collection/components/vega-field-label/slimmers/renderers/vega-field-label-suffix-element-renderer.js +11 -3
  89. package/dist/collection/components/vega-field-label/vega-field-label.js +42 -0
  90. package/dist/collection/components/vega-input/vega-input.js +48 -2
  91. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-renderer.js +16 -5
  92. package/dist/collection/components/vega-input-select/vega-input-select.css +2 -44
  93. package/dist/collection/components/vega-input-select/vega-input-select.js +81 -1
  94. package/dist/collection/components/vega-rich-text-content/slimmers/controllers/vega-rich-text-content-extensions-styles-controller.js +60 -0
  95. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +7 -1
  96. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +17 -1
  97. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-interceptor-registry.js +61 -0
  98. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-interceptor.abstract.js +5 -0
  99. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.js +30 -6
  100. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +10 -3
  101. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-or-decorator-node-strategy.js +2 -1
  102. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.js +28 -0
  103. package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +1 -0
  104. package/dist/collection/components/vega-rich-text-editor/dto/actions/paste-content-action.js +17 -0
  105. package/dist/collection/components/vega-rich-text-editor/dto/actions/update-cursor-position-action.js +5 -0
  106. package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation-style.js +87 -0
  107. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +27 -9
  108. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +1 -12
  109. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +6 -0
  110. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +14 -5
  111. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +11 -0
  112. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +7 -37
  113. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +14 -3
  114. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +19 -1
  115. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +44 -3
  116. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +51 -1
  117. package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-interceptor/prevent-new-paragraph-interceptor.js +30 -0
  118. package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-interceptor/prevent-paste-content-interceptor.js +25 -0
  119. package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/function-block-insert-paragraph-strategy.js +30 -0
  120. package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/insert-function-block-strategy.js +99 -0
  121. package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/paste-plain-text-strategy.js +68 -0
  122. package/dist/collection/components/vega-rich-text-editor/extensions/functions/actions/insert-function-block-action.js +15 -0
  123. package/dist/collection/components/vega-rich-text-editor/extensions/functions/actions/paste-plain-text-action.js +17 -0
  124. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +97 -0
  125. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +73 -0
  126. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.js +69 -0
  127. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-block-strategy.js +49 -0
  128. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-content-strategy.js +27 -0
  129. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-logic-control-block-strategy.js +55 -0
  130. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +75 -0
  131. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.js +38 -0
  132. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +71 -0
  133. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.js +20 -0
  134. package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +1 -1
  135. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.js +3 -1
  136. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +5 -6
  137. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +1 -1
  138. package/dist/collection/components/vega-rich-text-editor/public-api.js +8 -1
  139. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.js +9 -1
  140. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +0 -12
  141. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +3 -1
  142. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +12 -10
  143. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.js +2 -4
  144. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +30 -5
  145. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.js +1 -4
  146. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.js +10 -1
  147. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.js +2 -4
  148. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +2 -1
  149. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +4 -1
  150. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.js +2 -4
  151. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.js +1 -4
  152. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +1 -4
  153. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.js +1 -4
  154. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.js +2 -4
  155. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +2 -4
  156. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +2 -5
  157. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.js +2 -4
  158. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.js +11 -0
  159. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +4 -1
  160. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.js +32 -2
  161. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-delete-node-content-strategy.test.js +69 -0
  162. package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-style.test.js +70 -0
  163. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.css +3 -0
  164. package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +1 -1
  165. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-children-controller.js +25 -1
  166. package/dist/collection/components/vega-table/vega-table-foot/slimmers/controllers/vega-table-foot-state-controller.js +67 -0
  167. package/dist/collection/components/vega-table/vega-table-foot/vega-table-foot.css +34 -0
  168. package/dist/collection/components/vega-table/vega-table-foot/vega-table-foot.js +65 -0
  169. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/controllers/vega-table-foot-cell-state-controller.js +43 -0
  170. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +32 -0
  171. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.css +116 -0
  172. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +130 -0
  173. package/dist/collection/components/vega-table/vega-table-foot-row/slimmers/controllers/vega-table-foot-row-state-controller.js +77 -0
  174. package/dist/collection/components/vega-table/vega-table-foot-row/slimmers/renderers/vega-table-foot-row-renderer.js +41 -0
  175. package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.css +52 -0
  176. package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.js +71 -0
  177. package/dist/collection/components/vega-table/vega-table.css +12 -1
  178. package/dist/collection/components/vega-table/vega-table.js +1 -1
  179. package/dist/collection/components/vega-textarea/vega-textarea.js +88 -2
  180. package/dist/collection/global/scripts/before-vega-load.js +2 -0
  181. package/dist/collection/helpers/calendar/calendar-date-time.js +136 -0
  182. package/dist/collection/helpers/calendar/calendar-date.js +10 -4
  183. package/dist/collection/helpers/calendar/calendar-event.js +38 -193
  184. package/dist/collection/helpers/calendar/calendar-time.js +120 -0
  185. package/dist/collection/helpers/calendar/index.js +2 -0
  186. package/dist/collection/helpers/calendar/test/calendar-date-time.test.js +27 -0
  187. package/dist/collection/helpers/calendar/test/calendar-event.test.js +24 -22
  188. package/dist/collection/helpers/calendar/test/calendar-period/day-period.test.js +2 -2
  189. package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +2 -2
  190. package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +6 -6
  191. package/dist/collection/helpers/calendar/test/calendar-time.test.js +45 -0
  192. package/dist/collection/helpers/calendar/test/utils.test.js +1 -29
  193. package/dist/collection/helpers/calendar/utils.js +0 -66
  194. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +5 -2
  195. package/dist/collection/helpers/rte-manager/dto-action-strategy-manager.js +2 -0
  196. package/dist/esm/{app-globals-37a60cc1.js → app-globals-2f689986.js} +6 -5
  197. package/dist/esm/{child-nodes-event-prevent-slimmer-735cb880.js → child-nodes-event-prevent-slimmer-76331524.js} +1 -1
  198. package/dist/esm/{code-block-11b2bc1c.js → code-block-e8839202.js} +511 -318
  199. package/dist/esm/{component-value-history-controller-slimmer.abstract-16c5cb96.js → component-value-history-controller-slimmer.abstract-c6f94113.js} +2 -2
  200. package/dist/esm/{design-token-297dc528.js → design-token-e9e6b011.js} +1 -1
  201. package/dist/esm/{dto-renderer-manager-a1a3b6d2.js → dto-renderer-manager-7abc53bf.js} +1587 -1565
  202. package/dist/esm/{element-appender-slimmer-f7233708.js → element-appender-slimmer-8dbc8387.js} +2 -2
  203. package/dist/esm/{event-emit-slimmer-28fd360c.js → event-emit-slimmer-4e28e9f8.js} +1 -1
  204. package/dist/esm/{token-extension-b690953f.js → function-extension-eb1d062f.js} +1018 -97
  205. package/dist/esm/{image-annotation-action-fc46c920.js → image-annotation-action-7957653a.js} +14 -24
  206. package/dist/esm/index-090d31ca.js +2 -2
  207. package/dist/esm/index.js +9 -9
  208. package/dist/esm/{internal-vega-event-manager-a5a5938d.js → internal-vega-event-manager-516aa721.js} +5 -2
  209. package/dist/esm/{language-extension-314a2b18.js → language-extension-3331131f.js} +3 -3
  210. package/dist/esm/loader.js +8 -8
  211. package/dist/esm/{public-rules-c6a6946d.js → public-rules-e613dead.js} +3 -3
  212. package/dist/esm/{range-b78254de.js → range-adf206fd.js} +1 -1
  213. package/dist/esm/{responsive-format-facade-a41e1be7.js → responsive-format-facade-b0712993.js} +3 -3
  214. package/dist/esm/{rich-text-editor-required-rule-d50c24da.js → rich-text-editor-required-rule-43857573.js} +1 -1
  215. package/dist/esm/{style-formatter-f7effaac.js → style-formatter-a20a1ef4.js} +1 -1
  216. package/dist/esm/vega-accordion.entry.js +7 -7
  217. package/dist/esm/vega-app-header-button.entry.js +8 -8
  218. package/dist/esm/vega-banner.entry.js +2 -2
  219. package/dist/esm/vega-box.entry.js +8 -8
  220. package/dist/esm/vega-breadcrumb.entry.js +3 -3
  221. package/dist/esm/vega-button-circle.entry.js +9 -9
  222. package/dist/esm/vega-button-group_2.entry.js +3 -3
  223. package/dist/esm/vega-button-link.entry.js +3 -3
  224. package/dist/esm/vega-button.entry.js +8 -8
  225. package/dist/esm/vega-calendar_4.entry.js +313 -273
  226. package/dist/esm/vega-card.entry.js +7 -7
  227. package/dist/esm/vega-carousel.entry.js +7 -7
  228. package/dist/esm/vega-checkbox_2.entry.js +3 -3
  229. package/dist/esm/vega-chip.entry.js +9 -9
  230. package/dist/esm/vega-code-block.entry.js +6 -6
  231. package/dist/esm/vega-color-picker.entry.js +2 -2
  232. package/dist/esm/vega-combo-box.entry.js +3 -3
  233. package/dist/esm/vega-date-picker_2.entry.js +8 -8
  234. package/dist/esm/vega-dialog_2.entry.js +9 -9
  235. package/dist/esm/vega-divider.entry.js +7 -7
  236. package/dist/esm/vega-dropdown_5.entry.js +9 -9
  237. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  238. package/dist/esm/vega-field-label.entry.js +24 -5
  239. package/dist/esm/vega-file-uploader.entry.js +2 -2
  240. package/dist/esm/vega-flag-icon.entry.js +6 -6
  241. package/dist/esm/vega-flex.entry.js +8 -8
  242. package/dist/esm/vega-font.entry.js +7 -7
  243. package/dist/esm/vega-form.entry.js +3 -3
  244. package/dist/esm/vega-grid.entry.js +7 -7
  245. package/dist/esm/vega-icon.entry.js +6 -6
  246. package/dist/esm/vega-image-uploader.entry.js +7 -7
  247. package/dist/esm/vega-input-credit-card.entry.js +3 -3
  248. package/dist/esm/vega-input-numeric.entry.js +3 -3
  249. package/dist/esm/vega-input-passcode.entry.js +3 -3
  250. package/dist/esm/vega-input-phone-number.entry.js +6 -6
  251. package/dist/esm/vega-input-range.entry.js +3 -3
  252. package/dist/esm/vega-input-select.entry.js +38 -14
  253. package/dist/esm/vega-input.entry.js +14 -3
  254. package/dist/esm/vega-item-toggle.entry.js +2 -2
  255. package/dist/esm/vega-left-nav_5.entry.js +7 -7
  256. package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
  257. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +2 -2
  258. package/dist/esm/vega-pagination.entry.js +7 -7
  259. package/dist/esm/vega-popover_2.entry.js +9 -9
  260. package/dist/esm/vega-progress-tracker.entry.js +2 -2
  261. package/dist/esm/vega-radio_2.entry.js +3 -3
  262. package/dist/esm/vega-rich-text-content.entry.js +93 -16
  263. package/dist/esm/vega-rich-text-editor_4.entry.js +107 -54
  264. package/dist/esm/vega-segment-control.entry.js +2 -2
  265. package/dist/esm/vega-selection-chip_2.entry.js +8 -8
  266. package/dist/esm/vega-selection-tile_2.entry.js +3 -3
  267. package/dist/esm/vega-sidenav_3.entry.js +6 -6
  268. package/dist/esm/vega-signature-capture.entry.js +7 -7
  269. package/dist/esm/vega-stepper.entry.js +3 -3
  270. package/dist/esm/vega-tab-group_2.entry.js +3 -3
  271. package/dist/esm/{vega-table_8.entry.js → vega-table_11.entry.js} +745 -321
  272. package/dist/esm/vega-textarea.entry.js +25 -5
  273. package/dist/esm/vega-time-picker_2.entry.js +9 -9
  274. package/dist/esm/vega-toggle-switch.entry.js +2 -2
  275. package/dist/esm/vega-tooltip_2.entry.js +7 -7
  276. package/dist/esm/vega.js +8 -8
  277. package/dist/sri/vega-sri-manifest.json +273 -273
  278. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-day-event-layout-renderer.d.ts +1 -1
  279. package/dist/types/components/vega-field-label/slimmers/renderers/vega-field-label-suffix-element-renderer.d.ts +1 -0
  280. package/dist/types/components/vega-field-label/types.d.ts +12 -0
  281. package/dist/types/components/vega-field-label/vega-field-label.d.ts +13 -1
  282. package/dist/types/components/vega-input/vega-input.d.ts +14 -2
  283. package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-renderer.d.ts +3 -0
  284. package/dist/types/components/vega-input-select/vega-input-select.d.ts +25 -0
  285. package/dist/types/components/vega-rich-text-content/slimmers/controllers/vega-rich-text-content-extensions-styles-controller.d.ts +26 -0
  286. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +1 -0
  287. package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +7 -0
  288. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-interceptor-registry.d.ts +42 -0
  289. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-interceptor.abstract.d.ts +26 -0
  290. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.d.ts +9 -2
  291. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.d.ts +7 -0
  292. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.d.ts +12 -0
  293. package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +2 -1
  294. package/dist/types/components/vega-rich-text-editor/dto/actions/paste-content-action.d.ts +20 -0
  295. package/dist/types/components/vega-rich-text-editor/dto/actions/update-cursor-position-action.d.ts +1 -0
  296. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation-style.d.ts +46 -0
  297. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +10 -1
  298. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +3 -3
  299. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +6 -0
  300. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +0 -11
  301. package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +16 -0
  302. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +19 -3
  303. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +36 -3
  304. package/dist/types/components/vega-rich-text-editor/extensions/functions/action-handler-interceptor/prevent-new-paragraph-interceptor.d.ts +25 -0
  305. package/dist/types/components/vega-rich-text-editor/extensions/functions/action-handler-interceptor/prevent-paste-content-interceptor.d.ts +17 -0
  306. package/dist/types/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/function-block-insert-paragraph-strategy.d.ts +18 -0
  307. package/dist/types/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/insert-function-block-strategy.d.ts +27 -0
  308. package/dist/types/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/paste-plain-text-strategy.d.ts +26 -0
  309. package/dist/types/components/vega-rich-text-editor/extensions/functions/actions/insert-function-block-action.d.ts +17 -0
  310. package/dist/types/components/vega-rich-text-editor/extensions/functions/actions/paste-plain-text-action.d.ts +17 -0
  311. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +58 -0
  312. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.d.ts +55 -0
  313. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.d.ts +48 -0
  314. package/dist/types/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-block-strategy.d.ts +27 -0
  315. package/dist/types/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-content-strategy.d.ts +14 -0
  316. package/dist/types/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-logic-control-block-strategy.d.ts +32 -0
  317. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +19 -0
  318. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.d.ts +25 -0
  319. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.d.ts +33 -0
  320. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.d.ts +12 -0
  321. package/dist/types/components/vega-rich-text-editor/extensions/languages/language-extension.d.ts +2 -2
  322. package/dist/types/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.d.ts +2 -2
  323. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +2 -2
  324. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +3 -4
  325. package/dist/types/components/vega-rich-text-editor/interface.d.ts +8 -2
  326. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +8 -1
  327. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +2 -11
  328. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.d.ts +1 -1
  329. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.d.ts +15 -0
  330. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.d.ts +1 -0
  331. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.d.ts +11 -0
  332. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +1 -0
  333. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-delete-node-content-strategy.test.d.ts +1 -0
  334. package/dist/types/components/vega-rich-text-editor/test/dto/annotation-style.test.d.ts +1 -0
  335. package/dist/types/components/vega-table/interface.d.ts +4 -0
  336. package/dist/types/components/vega-table/slimmers/controllers/vega-table-children-controller.d.ts +9 -1
  337. package/dist/types/components/vega-table/vega-table-foot/slimmers/controllers/vega-table-foot-state-controller.d.ts +22 -0
  338. package/dist/types/components/vega-table/vega-table-foot/types.d.ts +4 -0
  339. package/dist/types/components/vega-table/vega-table-foot/vega-table-foot.d.ts +23 -0
  340. package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/controllers/vega-table-foot-cell-state-controller.d.ts +10 -0
  341. package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +8 -0
  342. package/dist/types/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.d.ts +45 -0
  343. package/dist/types/components/vega-table/vega-table-foot-row/slimmers/controllers/vega-table-foot-row-state-controller.d.ts +20 -0
  344. package/dist/types/components/vega-table/vega-table-foot-row/slimmers/renderers/vega-table-foot-row-renderer.d.ts +11 -0
  345. package/dist/types/components/vega-table/vega-table-foot-row/types.d.ts +4 -0
  346. package/dist/types/components/vega-table/vega-table-foot-row/vega-table-foot-row.d.ts +41 -0
  347. package/dist/types/components/vega-textarea/vega-textarea.d.ts +26 -0
  348. package/dist/types/components.d.ts +134 -3
  349. package/dist/types/helpers/calendar/calendar-date-time.d.ts +76 -0
  350. package/dist/types/helpers/calendar/calendar-event.d.ts +18 -57
  351. package/dist/types/helpers/calendar/calendar-time.d.ts +64 -0
  352. package/dist/types/helpers/calendar/index.d.ts +2 -0
  353. package/dist/types/helpers/calendar/test/calendar-date-time.test.d.ts +1 -0
  354. package/dist/types/helpers/calendar/test/calendar-time.test.d.ts +1 -0
  355. package/dist/types/helpers/calendar/utils.d.ts +0 -25
  356. package/dist/types/types/components.type.d.ts +1 -1
  357. package/dist/types/types/public-api.d.ts +2 -0
  358. package/dist/vega/index.esm.js +1 -1
  359. package/dist/vega/{p-6f7d42a0.entry.js → p-00376f71.entry.js} +1 -1
  360. package/dist/vega/p-018d70a5.js +1 -0
  361. package/dist/vega/p-0849f85e.js +1 -0
  362. package/dist/vega/{p-b431f9d5.entry.js → p-0a55f984.entry.js} +1 -1
  363. package/dist/vega/p-0f7dec29.entry.js +1 -0
  364. package/dist/vega/{p-47cae62d.entry.js → p-113d305b.entry.js} +1 -1
  365. package/dist/vega/{p-015cdbe7.entry.js → p-115b42e6.entry.js} +1 -1
  366. package/dist/vega/p-16358fec.entry.js +1 -0
  367. package/dist/vega/{p-af5bfe34.js → p-16d68187.js} +1 -1
  368. package/dist/vega/{p-92a22562.entry.js → p-18e8c54a.entry.js} +1 -1
  369. package/dist/vega/{p-6f6ccf67.entry.js → p-1922303e.entry.js} +1 -1
  370. package/dist/vega/{p-74d61782.entry.js → p-19256107.entry.js} +1 -1
  371. package/dist/vega/{p-59298f5e.entry.js → p-1dcb1fcd.entry.js} +2 -2
  372. package/dist/vega/{p-7f69081b.entry.js → p-1dd7f8b2.entry.js} +1 -1
  373. package/dist/vega/{p-d006e732.entry.js → p-22fe8c61.entry.js} +1 -1
  374. package/dist/vega/{p-524693d8.entry.js → p-238afe1b.entry.js} +1 -1
  375. package/dist/vega/p-240d9d35.entry.js +1 -0
  376. package/dist/vega/{p-b82d3915.entry.js → p-24419ebe.entry.js} +1 -1
  377. package/dist/vega/p-2478f65e.js +1 -0
  378. package/dist/vega/{p-358e9800.entry.js → p-2c945862.entry.js} +1 -1
  379. package/dist/vega/{p-5f58d1da.entry.js → p-2e32fbe6.entry.js} +1 -1
  380. package/dist/vega/p-2f04d2ac.js +1 -0
  381. package/dist/vega/{p-a73dc4b3.entry.js → p-30a8d9d6.entry.js} +1 -1
  382. package/dist/vega/{p-e6cccee4.js → p-369810ae.js} +1 -1
  383. package/dist/vega/p-3ad87199.entry.js +1 -0
  384. package/dist/vega/{p-fe2e859f.entry.js → p-3b800f1b.entry.js} +1 -1
  385. package/dist/vega/p-437f865f.js +1 -0
  386. package/dist/vega/{p-de624f7d.entry.js → p-48bc03fa.entry.js} +1 -1
  387. package/dist/vega/{p-46830028.entry.js → p-54ddd06f.entry.js} +1 -1
  388. package/dist/vega/{p-5a0524ab.entry.js → p-56636a58.entry.js} +1 -1
  389. package/dist/vega/{p-fc8c5869.entry.js → p-56f77466.entry.js} +1 -1
  390. package/dist/vega/p-5a555092.entry.js +1 -0
  391. package/dist/vega/p-5f377954.js +1 -1
  392. package/dist/vega/{p-ab1001f5.entry.js → p-61d9cdf9.entry.js} +1 -1
  393. package/dist/vega/{p-39b9c57b.entry.js → p-626246b4.entry.js} +1 -1
  394. package/dist/vega/p-6609d87e.entry.js +1 -0
  395. package/dist/vega/p-69d27eaf.entry.js +1 -0
  396. package/dist/vega/{p-7efb5ebe.entry.js → p-705dad87.entry.js} +1 -1
  397. package/dist/vega/{p-8d574fbd.entry.js → p-75b5894f.entry.js} +1 -1
  398. package/dist/vega/{p-00071542.entry.js → p-76b1dae4.entry.js} +1 -1
  399. package/dist/vega/{p-54b62ecf.js → p-7747c163.js} +1 -1
  400. package/dist/vega/{p-0ed53cce.entry.js → p-787caad3.entry.js} +1 -1
  401. package/dist/vega/{p-129c0ce1.js → p-79e6e12c.js} +1 -1
  402. package/dist/vega/{p-cc519f53.entry.js → p-7dde3be9.entry.js} +1 -1
  403. package/dist/vega/p-82ef2de0.entry.js +1 -0
  404. package/dist/vega/{p-5e32866d.entry.js → p-83a50ac2.entry.js} +1 -1
  405. package/dist/vega/p-8506e8c3.js +1 -0
  406. package/dist/vega/{p-47fa359b.js → p-85407fb9.js} +1 -1
  407. package/dist/vega/{p-892cbe7c.entry.js → p-880569ec.entry.js} +1 -1
  408. package/dist/vega/{p-0113a83c.entry.js → p-8dba59a6.entry.js} +1 -1
  409. package/dist/vega/p-94e167b8.entry.js +1 -0
  410. package/dist/vega/{p-b2aaab66.entry.js → p-98fb9eaa.entry.js} +1 -1
  411. package/dist/vega/{p-3288a65b.entry.js → p-99bf5993.entry.js} +1 -1
  412. package/dist/vega/p-a211ae63.js +1 -0
  413. package/dist/vega/{p-fef846d5.entry.js → p-a2506cb5.entry.js} +1 -1
  414. package/dist/vega/{p-4e33fff6.entry.js → p-a6fb5a40.entry.js} +1 -1
  415. package/dist/vega/{p-bee1cc34.entry.js → p-b5060e84.entry.js} +1 -1
  416. package/dist/vega/{p-616cd622.entry.js → p-b78670c9.entry.js} +1 -1
  417. package/dist/vega/{p-d5761532.entry.js → p-b8558278.entry.js} +1 -1
  418. package/dist/vega/{p-8d655fd2.entry.js → p-bb0f2b5f.entry.js} +1 -1
  419. package/dist/vega/{p-a7631c6b.js → p-bb37a401.js} +1 -1
  420. package/dist/vega/p-bccee21e.js +1 -0
  421. package/dist/vega/{p-2553031f.entry.js → p-bd0e55a2.entry.js} +1 -1
  422. package/dist/vega/{p-65693321.entry.js → p-c0223a17.entry.js} +1 -1
  423. package/dist/vega/{p-2d430dc4.entry.js → p-c26332ae.entry.js} +1 -1
  424. package/dist/vega/{p-7f9ec104.entry.js → p-c54148fb.entry.js} +1 -1
  425. package/dist/vega/{p-276b1163.entry.js → p-d3905af1.entry.js} +2 -2
  426. package/dist/vega/p-d4893487.js +1 -0
  427. package/dist/vega/{p-d1dacaeb.entry.js → p-d67200e8.entry.js} +1 -1
  428. package/dist/vega/{p-725f0a2c.js → p-db57dddc.js} +1 -1
  429. package/dist/vega/{p-ed8bc4f0.entry.js → p-de02f404.entry.js} +1 -1
  430. package/dist/vega/{p-d4452dbc.entry.js → p-de8c5fae.entry.js} +1 -1
  431. package/dist/vega/{p-7b145620.js → p-de97c6d9.js} +1 -1
  432. package/dist/vega/{p-34800282.entry.js → p-e0979451.entry.js} +1 -1
  433. package/dist/vega/{p-1a3cb65e.entry.js → p-e6351dab.entry.js} +1 -1
  434. package/dist/vega/{p-8d096fea.entry.js → p-f0fb3fdd.entry.js} +1 -1
  435. package/dist/vega/{p-ea05a2fc.entry.js → p-f3399ef1.entry.js} +1 -1
  436. package/dist/vega/vega.esm.js +1 -1
  437. package/package.json +1 -1
  438. package/dist/vega/p-019f7f95.js +0 -1
  439. package/dist/vega/p-03a1e82e.entry.js +0 -1
  440. package/dist/vega/p-0d1eca78.entry.js +0 -1
  441. package/dist/vega/p-16370cfb.js +0 -1
  442. package/dist/vega/p-3a7f177a.entry.js +0 -1
  443. package/dist/vega/p-41c3fcb4.js +0 -1
  444. package/dist/vega/p-81105691.entry.js +0 -1
  445. package/dist/vega/p-822c6092.js +0 -1
  446. package/dist/vega/p-8edf3513.js +0 -1
  447. package/dist/vega/p-a1b7a179.entry.js +0 -1
  448. package/dist/vega/p-ab8f99e9.entry.js +0 -1
  449. package/dist/vega/p-bf7f755b.js +0 -1
  450. package/dist/vega/p-bf9476cd.entry.js +0 -1
  451. package/dist/vega/p-c6ce2869.js +0 -1
  452. package/dist/vega/p-d0e6454e.entry.js +0 -1
  453. package/dist/vega/p-d88e88a7.js +0 -1
  454. package/dist/vega/p-f360c9ba.js +0 -1
  455. package/dist/vega/p-ff3bb4e2.entry.js +0 -1
@@ -7,7 +7,9 @@ import { ElementToDTOStrategy } from '../slimmers/controllers/helper/element-to-
7
7
  import { Nullable } from '../../../types/general';
8
8
  import { RTEExtensionContext } from '../interface';
9
9
  import { ActionHandleStrategy } from '../dto/action-handle-strategies/action-handle-strategy.abstract';
10
- import { ModifyContentAction } from '../public-api';
10
+ import { ModifyContentAction } from '../dto/actions/modify-content-action.abstract';
11
+ import type { VegaRTEContent } from '../dto/content-state';
12
+ import { ActionHandlerInterceptor } from '../dto/action-handle-strategies/action-handle-interceptor.abstract';
11
13
  /**
12
14
  * Abstract class for Vega Rich Text Editor extensions.
13
15
  */
@@ -16,20 +18,36 @@ export declare abstract class VegaRTEExtension {
16
18
  * The context of the RTE extension, which may include references to the host editor and other relevant information.
17
19
  */
18
20
  protected extensionContext: Nullable<RTEExtensionContext>;
21
+ private hasCustomStylesRenderers;
19
22
  /**
20
23
  * Registers an action handle strategy for a specific node or block class.
21
24
  *
22
25
  * @param {string} nodeOrBlockClassName - The name of the node or block class.
23
26
  * @param {string} actionType - The type of the action.
24
- * @param {ActionHandleStrategy<ModifyContentAction, RTENode | RTEBlock>} strategy - The strategy to register.
27
+ * @param {ActionHandleStrategy<ModifyContentAction, RTENode | RTEBlock | VegaRTEContent>} strategy - The strategy to register.
25
28
  */
26
- static registerActionHandleStrategy(nodeOrBlockClassName: string, actionType: string, strategy: ActionHandleStrategy<ModifyContentAction, RTENode | RTEBlock>): void;
29
+ static registerActionHandleStrategy(nodeOrBlockClassName: string, actionType: string, strategy: ActionHandleStrategy<ModifyContentAction, RTENode | RTEBlock | VegaRTEContent>): void;
30
+ /**
31
+ * Registers an action handler interceptor for a specific node or block class.
32
+ *
33
+ * @param {string} nodeOrBlockClassName - The name of the node or block class.
34
+ * @param {string} actionType - The type of the action.
35
+ * @param {ActionHandlerInterceptor<ModifyContentAction, RTENode | RTEBlock | VegaRTEContent>} strategy - The interceptor to register.
36
+ */
37
+ static registerActionHandlerInterceptor(nodeOrBlockClassName: string, actionType: string, strategy: ActionHandlerInterceptor<ModifyContentAction, RTENode | RTEBlock | VegaRTEContent>): void;
27
38
  /**
28
39
  * Initializes the RTE extension with the provided context.
29
40
  *
30
41
  * @param {RTEExtensionContext} context - The context of the RTE extension.
31
42
  */
32
43
  initialExtension(context: RTEExtensionContext): void;
44
+ /**
45
+ * Collect custom styles for the extension renderers.
46
+ * If custom nodes have special styles, override this method to provide the styles.
47
+ *
48
+ * @returns {string} - The custom styles as a string.
49
+ */
50
+ collectExtensionRendererStyles(): string;
33
51
  /**
34
52
  * Register a node type with the extension.
35
53
  *
@@ -61,6 +79,21 @@ export declare abstract class VegaRTEExtension {
61
79
  * @param {string} blockClassName - The class name of the block to register strategies for.
62
80
  */
63
81
  protected registerBlockBasicStrategies(blockClassName: string): void;
82
+ /**
83
+ * Unregister a strategy for a specific action type and block class if not need.
84
+ *
85
+ * @param {string} actionType - The special action type or the action class name.
86
+ * @param {string} blockClassName - The class name of the block to unregister the strategy for.
87
+ */
88
+ protected unRegisterStrategy(actionType: string, blockClassName: string): void;
89
+ /**
90
+ * Unregister a strategy for a specific action type and block class if not need.
91
+ *
92
+ * @param {string} actionType - The special action type or the action class name.
93
+ * @param {string} blockClassName - The class name of the block to unregister the strategy for.
94
+ * @param {ActionHandlerInterceptor<ModifyContentAction, RTENode | RTEBlock | VegaRTEContent>} strategy - The interceptor to unregister.
95
+ */
96
+ protected unRegisterInterceptor(actionType: string, blockClassName: string, strategy: ActionHandlerInterceptor<ModifyContentAction, RTENode | RTEBlock | VegaRTEContent>): void;
64
97
  /**
65
98
  * Register an element to block DTO class strategy.
66
99
  *
@@ -0,0 +1,25 @@
1
+ import { ActionHandlerExecution, ActionHandlerInterceptor } from '../../../dto/action-handle-strategies/action-handle-interceptor.abstract';
2
+ import { InsertNewParagraphAction } from '../../../dto/actions/insert-new-paragraph-action';
3
+ import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
4
+ import { RTETextBlock } from '../../../dto/blocks/text-block';
5
+ /**
6
+ * Prevent special type input in function block.
7
+ */
8
+ export declare class PreventNewParagraphInterceptor extends ActionHandlerInterceptor<ModifyContentAction, RTETextBlock> {
9
+ /**
10
+ * Checks the target block parent whether is function block.
11
+ *
12
+ * @param {InsertNewParagraphAction} _action - the action to be intercepted
13
+ * @param {RTETextBlock} target - the target block
14
+ * @returns {boolean} - true if the target block parent is function block, false otherwise
15
+ */
16
+ canIntercept(_action: InsertNewParagraphAction, target: RTETextBlock): boolean;
17
+ /**
18
+ * Insert a new paragraph behind of the function block instead of the target block.
19
+ *
20
+ * @param {ActionHandlerExecution} _execution - the original execution function
21
+ * @param {ModifyContentAction} _action - the action to be intercepted
22
+ * @param {RTETextBlock} target - the target block
23
+ */
24
+ intercept(_execution: ActionHandlerExecution, _action: ModifyContentAction, target: RTETextBlock): void;
25
+ }
@@ -0,0 +1,17 @@
1
+ import { ActionHandlerExecution } from '../../../dto/action-handle-strategies/action-handle-interceptor.abstract';
2
+ import { RTETextBlock } from '../../../dto/blocks/text-block';
3
+ import { PreventNewParagraphInterceptor } from '../action-handler-interceptor/prevent-new-paragraph-interceptor';
4
+ import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
5
+ /**
6
+ * Prevent special type input in function block.
7
+ */
8
+ export declare class PreventPasteContentInterceptor extends PreventNewParagraphInterceptor {
9
+ /**
10
+ * Paste plain text into text block.
11
+ *
12
+ * @param {ActionHandlerExecution} _execution - the original execution function
13
+ * @param {ModifyContentAction} action - the action to be intercepted
14
+ * @param {RTETextBlock} target - the target block
15
+ */
16
+ intercept(_execution: ActionHandlerExecution, action: ModifyContentAction, target: RTETextBlock): void;
17
+ }
@@ -0,0 +1,18 @@
1
+ import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
+ import { InsertNewParagraphAction } from '../../../dto/actions/insert-new-paragraph-action';
3
+ import { RTEFunctionBlock } from '../dto/function-block';
4
+ /**
5
+ * Insert a new paragraph behind of current function block strategy.
6
+ */
7
+ export declare class FunctionBlockInsertParagraphStrategy extends ActionHandleStrategy<InsertNewParagraphAction, RTEFunctionBlock> {
8
+ /**
9
+ * @inheritDoc
10
+ */
11
+ protected handleAction(action: InsertNewParagraphAction, target: RTEFunctionBlock): void;
12
+ /**
13
+ * Focus to next paragraph.
14
+ *
15
+ * @param {RTETextBlock} block - The paragraph need to focus.
16
+ */
17
+ private focusToNextLine;
18
+ }
@@ -0,0 +1,27 @@
1
+ import { InsertFunctionBlockAction } from '../actions/insert-function-block-action';
2
+ import type { RTEBlock } from '../../../dto/blocks/block.abstract';
3
+ import { VegaRTEContent } from '../../../dto/content-state';
4
+ import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
5
+ /**
6
+ * Strategy to handle the insertion of a function block into the rich text editor.
7
+ */
8
+ export declare class InsertFunctionBlockStrategy extends ActionHandleStrategy<InsertFunctionBlockAction, RTEBlock | VegaRTEContent> {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ protected handleAction(action: InsertFunctionBlockAction, target: RTEBlock | VegaRTEContent): void;
13
+ /**
14
+ * Get a function block based on the specified type.
15
+ *
16
+ * @param {string} type - The type of function block to create.
17
+ * @returns {RTEFunctionBlock} The function block instance.
18
+ */
19
+ private getFunctionBlock;
20
+ /**
21
+ * We need to get the correct block if the current target is a function block element to avoid nesting function blocks.
22
+ *
23
+ * @param {RTEBlock | VegaRTEContent} currentTarget - The current target block or content.
24
+ * @returns {Nullable<RTEBlock>} The reference block.
25
+ */
26
+ private getReferenceBlock;
27
+ }
@@ -0,0 +1,26 @@
1
+ import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
3
+ import { PastePlainTextAction } from '../actions/paste-plain-text-action';
4
+ /**
5
+ * Strategy to handle the paste content into function block.
6
+ */
7
+ export declare class PastePlainTextStrategy extends ActionHandleStrategy<PastePlainTextAction, RTEBlock> {
8
+ /**
9
+ * @inheritDoc
10
+ */
11
+ protected handleAction(action: PastePlainTextAction, target: RTEBlock): void;
12
+ /**
13
+ * Focus to next paragraph.
14
+ *
15
+ * @param {RTETextNode} node - The text node need to focus.
16
+ * @param {number} startOffset - The offset need to focus.
17
+ */
18
+ private focusToNextLine;
19
+ /**
20
+ * Copy link group annotations from copied block to target block.
21
+ *
22
+ * @param {BlockAnnotations} blockAnnotationMap - The target block annotation map.
23
+ * @param {BlockAnnotations} copiedAnnotationMap - The copied block annotation map.
24
+ */
25
+ private copyLinkGroupAnnotations;
26
+ }
@@ -0,0 +1,17 @@
1
+ import { Nullable } from '../../../../../types/general';
2
+ import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
3
+ import { RTENode } from '../../../dto/nodes/node.abstract';
4
+ export declare const INSERT_FUNCTION_BLOCK: string;
5
+ export declare type RTEExtensionFunctionType = 'IF' | 'FOREACH';
6
+ /**
7
+ * Action to insert a function block into the rich text editor.
8
+ *
9
+ * @example focusedBlock.apply(new InsertFunctionBlockAction('IF'))
10
+ * @example host.value.apply(new InsertFunctionBlockAction('IF'))
11
+ */
12
+ export declare class InsertFunctionBlockAction extends ModifyContentAction {
13
+ type: string;
14
+ functionType: RTEExtensionFunctionType;
15
+ nextFocusNode: Nullable<RTENode>;
16
+ constructor(functionType: RTEExtensionFunctionType);
17
+ }
@@ -0,0 +1,17 @@
1
+ import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
3
+ import { RTENode } from '../../../dto/nodes/node.abstract';
4
+ export declare const PASTE_PLAIN_TEXT: string;
5
+ /**
6
+ * Action to paste plain text content into function block.
7
+ *
8
+ * @example functionBlock.apply(new PastePlainTextAction('content', range))
9
+ * @example host.value.apply(new PastePlainTextAction('content', range))
10
+ */
11
+ export declare class PastePlainTextAction extends ModifyContentAction {
12
+ type: string;
13
+ blocksToBeInserted: RTEBlock[];
14
+ startNode: RTENode;
15
+ startOffset: number;
16
+ constructor(blocksToBeInserted: RTEBlock[], startNode: RTENode, startOffset: number);
17
+ }
@@ -0,0 +1,58 @@
1
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
2
+ import { RTEHtmlBlock } from '../../../dto/blocks/html-block';
3
+ import { RTETextBlock } from '../../../dto/blocks/text-block';
4
+ import { VegaRTEContent } from '../../../dto/content-state';
5
+ import { RTENode } from '../../../dto/nodes/node.abstract';
6
+ import { VegaRTEBlockBase, VegaRTEContentBlock, VegaRTETransformOptions } from '../../../interface';
7
+ import { RTELogicControlBlock } from '../dto/logic-control-block';
8
+ export declare type VegaFunctionBlock = VegaRTEBlockBase & {
9
+ type: string;
10
+ children: VegaRTEContentBlock[];
11
+ };
12
+ export declare type RTEFunctionBlockChild = RTELogicControlBlock | RTETextBlock;
13
+ /**
14
+ * RTE Function Block
15
+ */
16
+ export declare class RTEFunctionBlock extends RTEBlock<VegaRTEContent | RTEHtmlBlock, RTEFunctionBlockChild> {
17
+ type: string;
18
+ parent: VegaRTEContent | RTEHtmlBlock;
19
+ children: RTEFunctionBlockChild[];
20
+ constructor(id: string);
21
+ /**
22
+ * Creates an RTEFunctionBlock from a VegaFunctionBlock.
23
+ *
24
+ * @param {VegaFunctionBlock} block - The custom block to convert.
25
+ * @param {VegaRTETransformOptions} [options] - Optional transformation options.
26
+ * @returns {RTEFunctionBlock} The resulting RTEFunctionBlock.
27
+ */
28
+ static from(block: VegaFunctionBlock, options?: VegaRTETransformOptions): RTEFunctionBlock;
29
+ /**
30
+ * Converts the RTEFunctionBlock and its children to an HTML string.
31
+ *
32
+ * @returns {string} The HTML string representation of the function block.
33
+ */
34
+ toHtml(): string;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ clone(parent: VegaRTEContent | RTEHtmlBlock): RTEFunctionBlock;
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ getLastNode(): RTENode;
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ isNotEmpty(): boolean;
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ toJSON(): VegaFunctionBlock;
51
+ /**
52
+ * Get the style string for function content block, excluding default paragraph styles.
53
+ *
54
+ * @param {RTETextBlock} block - The text block to extract styles from
55
+ * @returns {string} - The style attribute string
56
+ */
57
+ private getFunctionContentStyle;
58
+ }
@@ -0,0 +1,55 @@
1
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
2
+ import { VegaRTECustomBlock } from '../../../interface';
3
+ import { RTEFunctionBlock } from '../dto/function-block';
4
+ import { RTELogicControlNode } from '../dto/logic-control-node';
5
+ export declare type VegaRTELogicControlBlock = VegaRTECustomBlock & {
6
+ statementText: string;
7
+ };
8
+ /**
9
+ * Class representing a logic control block in the rich text editor.
10
+ */
11
+ export declare class RTELogicControlBlock extends RTEBlock {
12
+ type: string;
13
+ parent: RTEFunctionBlock;
14
+ children: RTELogicControlNode[];
15
+ statementText: string;
16
+ constructor(id: string, statementText: string, parent?: RTEFunctionBlock);
17
+ /**
18
+ * Create a logic control block from a JSON representation.
19
+ *
20
+ * @param {VegaRTELogicControlBlock} json - The JSON object representing the logic control block.
21
+ * @returns {RTELogicControlBlock} - The created logic control block.
22
+ */
23
+ static from(json: VegaRTELogicControlBlock): RTELogicControlBlock;
24
+ /**
25
+ * Check the block is not empty.
26
+ *
27
+ * @returns {boolean} - Always true for logic control block.
28
+ */
29
+ isNotEmpty(): boolean;
30
+ /**
31
+ * Get the last node of the block.
32
+ *
33
+ * @returns {RTELogicControlNode} - The last node in the block.
34
+ */
35
+ getLastNode(): RTELogicControlNode;
36
+ /**
37
+ * Convert the block to its HTML representation.
38
+ *
39
+ * @returns {string} - The HTML string of the logic control block.
40
+ */
41
+ toHtml(): string;
42
+ /**
43
+ * Clone the current block instance.
44
+ *
45
+ * @param { RTEFunctionBlock } parent - The parent function block for the cloned instance.
46
+ * @returns {RTELogicControlBlock} - A new instance of RTEStatementSyntaxBlock.
47
+ */
48
+ clone(parent: RTEFunctionBlock): RTELogicControlBlock;
49
+ /**
50
+ * Get the JSON representation of the block.
51
+ *
52
+ * @returns {VegaRTELogicControlBlock} - The JSON object of the logic control block.
53
+ */
54
+ toJSON(): VegaRTELogicControlBlock;
55
+ }
@@ -0,0 +1,48 @@
1
+ import { Nullable } from '../../../../../types/general';
2
+ import { RTENode } from '../../../dto/nodes/node.abstract';
3
+ import { RTELogicControlBlock } from './logic-control-block';
4
+ /**
5
+ * Class representing a logic control node in the rich text editor.
6
+ */
7
+ export declare class RTELogicControlNode extends RTENode {
8
+ type: string;
9
+ text: string;
10
+ parent: RTELogicControlBlock;
11
+ constructor(id: string, text: string, parent: RTELogicControlBlock);
12
+ /**
13
+ * Clone the current node instance.
14
+ *
15
+ * @returns {RTELogicControlNode} - A new instance of RTELogicControlNode.
16
+ */
17
+ clone(): RTELogicControlNode;
18
+ /**
19
+ * Convert the node to its HTML representation.
20
+ *
21
+ * @returns {string} - The HTML string of the logic control node.
22
+ */
23
+ toHtml(): string;
24
+ /**
25
+ * Convert the node to a JSON representation.
26
+ *
27
+ * @returns {unknown} - The JSON object of the statement syntax node.
28
+ */
29
+ toJSON(): unknown;
30
+ /**
31
+ * Get the end offset of the node's range.
32
+ *
33
+ * @returns {number} - The end offset of the node's range.
34
+ */
35
+ getRangeEndOffset(): number;
36
+ /**
37
+ * Get the container element for the node's range.
38
+ *
39
+ * @returns {Nullable<Node>} - The container node for the range.
40
+ */
41
+ getRangeContainer(): Nullable<Node>;
42
+ /**
43
+ * Get the content editable state of the node.
44
+ *
45
+ * @returns {boolean} - The content editable state of the node.
46
+ */
47
+ isContentEditable(): boolean;
48
+ }
@@ -0,0 +1,27 @@
1
+ import { Nullable } from '../../../../../types/general';
2
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
3
+ import { RTEHtmlBlock } from '../../../dto/blocks/html-block';
4
+ import { VegaRTECustomNode } from '../../../interface';
5
+ import { ElementToDTOStrategy } from '../../../slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract';
6
+ import { RTEFunctionBlockChild } from '../dto/function-block';
7
+ /**
8
+ * Strategy to convert a div with class 'statement' into an function block.
9
+ */
10
+ export declare class DivToFunctionBlockStrategy extends ElementToDTOStrategy {
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ handle(): Nullable<RTEBlock | VegaRTECustomNode>;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ appendChildBlocks(currentBlock: RTEHtmlBlock, childBlocks: RTEFunctionBlockChild[]): void;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ shouldProceedToElementChildren(): boolean;
27
+ }
@@ -0,0 +1,14 @@
1
+ import { Nullable } from '../../../../../types/general';
2
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
3
+ import { VegaRTETransformOptions } from '../../../interface';
4
+ import { DivToLogicControlBlockStrategy } from './div-to-logic-control-block-strategy';
5
+ /**
6
+ * Strategy to convert a div with class 'statementelement' into an function block.
7
+ */
8
+ export declare class DivToFunctionContentStrategy extends DivToLogicControlBlockStrategy {
9
+ protected blockClassName: string;
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ handle(elementsArray: HTMLElement[], options?: VegaRTETransformOptions): Nullable<RTEBlock>;
14
+ }
@@ -0,0 +1,32 @@
1
+ import { Nullable } from '../../../../../types/general';
2
+ import { BlockToRTEBlockStrategyAbstract } from '../../../slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract';
3
+ import { RTEBlock } from '../../../dto/blocks/block.abstract';
4
+ /**
5
+ * Strategy to convert a div with class 'statementsyntax' into an RTELogicControlBlock DTO.
6
+ */
7
+ export declare class DivToLogicControlBlockStrategy extends BlockToRTEBlockStrategyAbstract {
8
+ protected blockClassName: string;
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ handle(elementsArray: HTMLElement[]): Nullable<RTEBlock>;
17
+ /**
18
+ * The logic control block does not have child blocks to append. so this method is intentionally left empty.
19
+ */
20
+ appendChildBlocks(): void;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ shouldProceedToElementChildren(): boolean;
25
+ /**
26
+ * Checks if the given element is a child of a function block
27
+ *
28
+ * @param {HTMLElement} element - The HTML element to check
29
+ * @returns {boolean} True if the element is a child of a function block, false otherwise
30
+ */
31
+ private isFunctionBlockChild;
32
+ }
@@ -0,0 +1,19 @@
1
+ import { VegaRTEExtension } from '../extension.abstract';
2
+ import { RTEExtensionContext } from '../../interface';
3
+ /**
4
+ * Function extension class for Vega Rich Text Editor.
5
+ */
6
+ export declare class VegaRTEFunctionExtension extends VegaRTEExtension {
7
+ private toolbarButtonRenderer;
8
+ constructor();
9
+ /**
10
+ * Initializes the extension with the given context
11
+ *
12
+ * @param {RTEExtensionContext} context - extension context
13
+ */
14
+ initialExtension(context: RTEExtensionContext): void;
15
+ /**
16
+ * Remove the appen children strategies to prevent default insert new paragraph logic in function block
17
+ */
18
+ private preventFunctionBlockDefaultInsertNewParagraph;
19
+ }
@@ -0,0 +1,25 @@
1
+ import { VegaRTECreateElementFunction, VegaRTERenderResult } from '../../../interface';
2
+ import { VegaRTEExtensionRenderer } from '../../base-extension-renderer';
3
+ import { RTEFunctionBlock } from '../dto/function-block';
4
+ /**
5
+ * Renderer for Function Block
6
+ */
7
+ export declare class RTEFunctionBlockRenderer extends VegaRTEExtensionRenderer {
8
+ /**
9
+ * @inheritDoc
10
+ */
11
+ doRender(createElement: VegaRTECreateElementFunction, renderData: RTEFunctionBlock): VegaRTERenderResult;
12
+ /**
13
+ * Defines the function block styles to be injected into the RTE scope.
14
+ *
15
+ * @returns {string} - The styles as a string.
16
+ */
17
+ injectRTEScopeStyles(): string;
18
+ /**
19
+ * Gets the class name for the function block element.
20
+ *
21
+ * @param {RTEFunctionBlock} block - The function block.
22
+ * @returns {string} The class name for the function block element.
23
+ */
24
+ private getElementClassName;
25
+ }
@@ -0,0 +1,33 @@
1
+ import { VegaRTECreateElementFunction, VegaRTEToolbarRenderContext, VegaRTERenderResult, RTEDropdownListItem, RTEExtensionContext } from '../../../interface';
2
+ import { VegaRTEToolbarButtonRenderer } from '../../base-toolbar-button-renderer';
3
+ import { RTEExtensionFunctionType } from '../actions/insert-function-block-action';
4
+ /**
5
+ * Function toolbar button renderer class.
6
+ */
7
+ export declare class FunctionToolbarButtonRenderer extends VegaRTEToolbarButtonRenderer {
8
+ static FUNCTION_LIST: RTEDropdownListItem[];
9
+ private extensionContext?;
10
+ /**
11
+ * Injects the extension context
12
+ *
13
+ * @param {RTEExtensionContext} context - extension context
14
+ */
15
+ injectExtensionContext(context: RTEExtensionContext): void;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ render(h: VegaRTECreateElementFunction, editorContext: VegaRTEToolbarRenderContext): VegaRTERenderResult;
20
+ /**
21
+ * Overrides the isDisabled method to determine if the button should be disabled.
22
+ *
23
+ * @returns {boolean} - true if the button should be disabled, false otherwise.
24
+ */
25
+ protected isDisabled(): boolean;
26
+ protected handleButtonClick(): void;
27
+ /**
28
+ * Handles dropdown click event
29
+ *
30
+ * @param {RTEExtensionFunctionType} itemKey - key of the clicked item
31
+ */
32
+ protected handleDropdownClick(itemKey: RTEExtensionFunctionType): void;
33
+ }
@@ -0,0 +1,12 @@
1
+ import { VegaRTECreateElementFunction, VegaRTERenderResult } from '../../../interface';
2
+ import { VegaRTEExtensionRenderer } from '../../base-extension-renderer';
3
+ import { RTELogicControlBlock } from '../dto/logic-control-block';
4
+ /**
5
+ * Renders a logic control block in the rich text editor.
6
+ */
7
+ export declare class RTELogicControlBlockRenderer extends VegaRTEExtensionRenderer {
8
+ /**
9
+ * @inheritDoc
10
+ */
11
+ doRender(h: VegaRTECreateElementFunction, renderData: RTELogicControlBlock): VegaRTERenderResult;
12
+ }
@@ -1,4 +1,4 @@
1
- import { RTEDropdownListItem, RTEExtensionContext, RTELanguageExtensionState } from '../../interface';
1
+ import { RTEDropdownListGroup, RTEDropdownListItem, RTEExtensionContext, RTELanguageExtensionState } from '../../interface';
2
2
  import { VegaRTEExtension } from '../extension.abstract';
3
3
  /**
4
4
  * Language extension for Vega Rich Text Editor.
@@ -7,7 +7,7 @@ import { VegaRTEExtension } from '../extension.abstract';
7
7
  export declare class VegaRTELanguageExtension extends VegaRTEExtension {
8
8
  private languageToolbarButtonRenderer;
9
9
  private languageState;
10
- constructor(languageList: RTEDropdownListItem[], languagesState?: RTELanguageExtensionState);
10
+ constructor(languageList: (RTEDropdownListItem | RTEDropdownListGroup)[], languagesState?: RTELanguageExtensionState);
11
11
  /**
12
12
  * Initializes the language extension.
13
13
  * Applies the content for the selected language upon initialization.
@@ -1,4 +1,4 @@
1
- import { RTEDropdownListItem, VegaRTECreateElementFunction, VegaRTERenderResult, VegaRTEToolbarRenderContext } from '../../interface';
1
+ import { RTEDropdownListGroup, RTEDropdownListItem, VegaRTECreateElementFunction, VegaRTERenderResult, VegaRTEToolbarRenderContext } from '../../interface';
2
2
  import { VegaRTEToolbarButtonRenderer } from '../base-toolbar-button-renderer';
3
3
  export declare type LanguageSelectedCallback = (selectedLanguage: string) => void;
4
4
  /**
@@ -9,7 +9,7 @@ export declare class RTELanguageToolbarButtonRenderer extends VegaRTEToolbarButt
9
9
  private selectedLanguage;
10
10
  private labelRef;
11
11
  private languageChangeCallback;
12
- constructor(languageList: RTEDropdownListItem[], languageChangeCallback: LanguageSelectedCallback, selectedLanguage: string);
12
+ constructor(languageList: (RTEDropdownListItem | RTEDropdownListGroup)[], languageChangeCallback: LanguageSelectedCallback, selectedLanguage: string);
13
13
  /**
14
14
  * Public method to set the selected language.
15
15
  *
@@ -1,4 +1,4 @@
1
- import { RTEDropdownListItem, RTEExtensionContext } from '../../interface';
1
+ import { RTEDropdownListGroup, RTEDropdownListItem, RTEExtensionContext } from '../../interface';
2
2
  import { VegaRTEExtension } from '../extension.abstract';
3
3
  /**
4
4
  * Vega Rich Text Editor Token Extension
@@ -6,7 +6,7 @@ import { VegaRTEExtension } from '../extension.abstract';
6
6
  export declare class VegaRTETokenExtension extends VegaRTEExtension {
7
7
  private tokenRenderer;
8
8
  private tokenToolbarButtonRenderer;
9
- constructor(tokenList?: RTEDropdownListItem[]);
9
+ constructor(tokenList?: (RTEDropdownListItem | RTEDropdownListGroup)[]);
10
10
  /**
11
11
  * @inheritDoc
12
12
  */
@@ -22,12 +22,11 @@ export declare class RTETokenNodeRenderer extends VegaRTEExtensionRenderer {
22
22
  */
23
23
  injectExtensionContext(context: RTEExtensionContext): void;
24
24
  /**
25
- * Get the style for the token element.
25
+ * Override to inject RTE scope styles for the token node.
26
26
  *
27
- * @param {RTETokenNode} node - The token node.
28
- * @returns {Record<string, string>} The style object for the token element.
27
+ * @returns {string} The CSS styles for the token node.
29
28
  */
30
- protected getStyle(node: RTETokenNode): Record<string, string>;
29
+ injectRTEScopeStyles(): string;
31
30
  /**
32
31
  * Handle the click event on the token element.
33
32
  *
@@ -282,7 +282,7 @@ export type VegaRTECustomElementAction = {
282
282
 
283
283
  export type VegaRTECustomBlock = VegaRTEBlockBase & {
284
284
  type: string;
285
- children: VegaRTECustomNode[];
285
+ children?: (VegaRTECustomNode | VegaRTECustomBlock)[];
286
286
  };
287
287
 
288
288
  export type VegaRTECustomNode = VegaRTEBaseNode & {
@@ -357,8 +357,14 @@ export type RTEToolbarButtonProps = {
357
357
 
358
358
  export type RTEDropdownListItem = { key: string; label: string; icon?: string };
359
359
 
360
+ export type RTEDropdownListGroup = {
361
+ key: string;
362
+ label: string;
363
+ children: (RTEDropdownListItem | RTEDropdownListGroup)[];
364
+ };
365
+
360
366
  export type RTEToolbarDropdownProps = {
361
- source?: RTEDropdownListItem[];
367
+ source?: (RTEDropdownListItem | RTEDropdownListGroup)[];
362
368
  selectType?: 'none' | 'single';
363
369
  selectedSourceKey?: string;
364
370
  maxHeight?: number;