@globalpayments/vega 2.87.0-beta.1 → 2.88.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 (602) hide show
  1. package/dist/cjs/action-color-accessibility-validator-15fa91e4.js +1817 -0
  2. package/dist/cjs/{app-globals-885090b1.js → app-globals-6fbbcb2f.js} +16 -7
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-b7498e5a.js → child-nodes-event-prevent-slimmer-01930b4e.js} +1 -1
  4. package/dist/cjs/{code-block-15411c14.js → code-block-00fee034.js} +31 -13
  5. package/dist/cjs/{component-value-history-controller-slimmer.abstract-5218e4b3.js → component-value-history-controller-slimmer.abstract-066645b3.js} +25 -5
  6. package/dist/cjs/{content-state-a69d99b4.js → content-state-d4f54659.js} +66 -54
  7. package/dist/cjs/{dark-mode-style-controller-bd765afb.js → dark-mode-style-controller-ed481250.js} +41 -2
  8. package/dist/cjs/{date-required-rule-d65727c5.js → date-required-rule-4cea8fc8.js} +1 -1
  9. package/dist/cjs/{design-token-3bc36220.js → design-token-ad9f413c.js} +3 -3
  10. package/dist/cjs/{element-appender-slimmer-f86e6811.js → element-appender-slimmer-d04aa177.js} +2 -2
  11. package/dist/cjs/{event-emit-slimmer-73c42d7e.js → event-emit-slimmer-5fd6e54a.js} +1 -1
  12. package/dist/cjs/{form-field-controller-slimmer-44091874.js → form-field-controller-slimmer-23d112bd.js} +1 -1
  13. package/dist/cjs/{image-annotation-action-aad07357.js → image-annotation-action-bcf2a1b4.js} +4 -4
  14. package/dist/cjs/index-58ea899e.js +4 -0
  15. package/dist/cjs/index.cjs.js +27 -17
  16. package/dist/cjs/{inject-keyboard-manager-d06b337e.js → inject-keyboard-manager-acaf1530.js} +1 -1
  17. package/dist/cjs/{internal-translation-controller-f0da24b2.js → internal-translation-controller-a1250419.js} +8 -0
  18. package/dist/cjs/{internal-vega-event-manager-063c17cb.js → internal-vega-event-manager-c515cf5e.js} +2 -2
  19. package/dist/cjs/{keyboard-manager-1e045791.js → keyboard-manager-6821709a.js} +1 -1
  20. package/dist/cjs/{keyboard-manager-slimmer-861d991f.js → keyboard-manager-slimmer-74528545.js} +1 -1
  21. package/dist/cjs/loader.cjs.js +13 -12
  22. package/dist/cjs/{month-view-generator-8ed9818e.js → month-view-generator-61578283.js} +1 -1
  23. package/dist/cjs/{public-rules-c7726702.js → public-rules-d2fbbbf5.js} +8 -8
  24. package/dist/cjs/{range-d6fb50a4.js → range-e797475c.js} +1 -1
  25. package/dist/cjs/replace-selected-text-action-a098523f.js +20 -0
  26. package/dist/cjs/{responsive-format-facade-9647775d.js → responsive-format-facade-bf330592.js} +1 -1
  27. package/dist/cjs/{rich-text-editor-required-rule-a1a070ce.js → rich-text-editor-required-rule-ba9d42fa.js} +1 -1
  28. package/dist/cjs/{split-cell-operation-39b19943.js → split-cell-operation-91ee6894.js} +79 -16
  29. package/dist/cjs/{state-border-formatter-1a483a9b.js → state-border-formatter-fd194e53.js} +1 -1
  30. package/dist/cjs/{string-format-strategy.abstract-2aec209d.js → string-format-strategy.abstract-af9fc35e.js} +1 -1
  31. package/dist/cjs/{string-input-formatter-slimmer-e061bd10.js → string-input-formatter-slimmer-a3fb1292.js} +1 -1
  32. package/dist/cjs/{string-mask-strategy-4bc07c00.js → string-mask-strategy-2054f3fb.js} +2 -2
  33. package/dist/cjs/{style-formatter-263d5eb6.js → style-formatter-7d60fb70.js} +2 -2
  34. package/dist/cjs/{time-required-rule-f9a7e897.js → time-required-rule-ba450bbd.js} +1 -1
  35. package/dist/cjs/{token-extension-927062b9.js → token-extension-8b69f7e1.js} +1136 -26
  36. package/dist/cjs/{translation-slimmer-a4a7f0eb.js → translation-slimmer-aee3fb1c.js} +1 -1
  37. package/dist/cjs/{type-guard-c1195e50.js → type-guard-424efe26.js} +1 -1
  38. package/dist/cjs/{valid-credit-card-number-rule-22f3e6cf.js → valid-credit-card-number-rule-6bd5834c.js} +1 -1
  39. package/dist/cjs/vega-accordion.cjs.entry.js +22 -15
  40. package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
  41. package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-box.cjs.entry.js +6 -6
  44. package/dist/cjs/vega-brand-logo.cjs.entry.js +1 -1
  45. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
  47. package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
  48. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  49. package/dist/cjs/vega-button.cjs.entry.js +7 -7
  50. package/dist/cjs/vega-calendar_4.cjs.entry.js +11 -11
  51. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  52. package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
  53. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  54. package/dist/cjs/vega-chip.cjs.entry.js +9 -9
  55. package/dist/cjs/vega-code-block.cjs.entry.js +16 -15
  56. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  57. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +7 -7
  58. package/dist/cjs/vega-color-swatch.cjs.entry.js +5 -5
  59. package/dist/cjs/vega-combo-box.cjs.entry.js +23 -10
  60. package/dist/cjs/vega-date-picker_2.cjs.entry.js +327 -267
  61. package/dist/cjs/vega-dialog_2.cjs.entry.js +7 -7
  62. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  63. package/dist/cjs/vega-dropdown_5.cjs.entry.js +11 -11
  64. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  65. package/dist/cjs/{vega-event-id-f95480b7.js → vega-event-id-39dedd17.js} +2 -0
  66. package/dist/cjs/vega-field-label.cjs.entry.js +22 -5
  67. package/dist/cjs/vega-file-uploader.cjs.entry.js +20 -7
  68. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  69. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  70. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  71. package/dist/cjs/vega-form.cjs.entry.js +7 -7
  72. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  73. package/dist/cjs/vega-icon.cjs.entry.js +5 -5
  74. package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
  75. package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
  76. package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
  77. package/dist/cjs/vega-input-passcode.cjs.entry.js +23 -10
  78. package/dist/cjs/vega-input-phone-number.cjs.entry.js +22 -9
  79. package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
  80. package/dist/cjs/vega-input-select.cjs.entry.js +9 -9
  81. package/dist/cjs/vega-input.cjs.entry.js +23 -10
  82. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  83. package/dist/cjs/vega-left-nav_5.cjs.entry.js +11 -11
  84. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  85. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  86. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  87. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
  88. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  89. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  90. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
  91. package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
  92. package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
  93. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +289 -193
  94. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +400 -0
  95. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +12 -12
  96. package/dist/cjs/vega-section-title.cjs.entry.js +3 -2
  97. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  98. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
  99. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
  100. package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
  101. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
  102. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  103. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  104. package/dist/cjs/vega-table_11.cjs.entry.js +20 -9
  105. package/dist/cjs/vega-textarea.cjs.entry.js +17 -7
  106. package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
  107. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  108. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
  109. package/dist/cjs/vega.cjs.js +13 -12
  110. package/dist/collection/collection-manifest.json +6 -0
  111. package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +12 -5
  112. package/dist/collection/components/vega-accordion/vega-accordion.css +23 -0
  113. package/dist/collection/components/vega-accordion/vega-accordion.js +28 -0
  114. package/dist/collection/components/vega-box/vega-box.js +3 -3
  115. package/dist/collection/components/vega-calendar/vega-calendar.js +5 -5
  116. package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-copy-button-renderer.js +2 -2
  117. package/dist/collection/components/vega-code-block/vega-code-block.js +4 -0
  118. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-renderer.js +4 -1
  119. package/dist/collection/components/vega-combo-box/vega-combo-box.js +34 -0
  120. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-size-controller.js +46 -0
  121. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +8 -4
  122. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +3 -3
  123. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +0 -3
  124. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +67 -6
  125. package/dist/collection/components/vega-field-label/vega-field-label.css +37 -0
  126. package/dist/collection/components/vega-field-label/vega-field-label.js +40 -0
  127. package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.js +4 -1
  128. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +34 -0
  129. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +4 -1
  130. package/dist/collection/components/vega-input/vega-input.js +34 -0
  131. package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +4 -1
  132. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +34 -0
  133. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.js +4 -1
  134. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +34 -0
  135. package/dist/collection/components/vega-rich-text-editor/assets/redo.js +3 -0
  136. package/dist/collection/components/vega-rich-text-editor/assets/undo.js +3 -0
  137. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +1 -1
  138. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +1 -1
  139. package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation-style.js +2 -2
  140. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +5 -0
  141. package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -0
  142. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +2 -0
  143. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +2 -0
  144. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +2 -0
  145. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +2 -0
  146. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +2 -0
  147. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +3 -0
  148. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.js +1 -1
  149. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +1 -1
  150. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +1 -1
  151. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.js +1 -1
  152. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +1 -1
  153. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.js +1 -1
  154. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.js +4 -4
  155. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.js +1 -2
  156. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +1 -1
  157. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +2 -0
  158. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -0
  159. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +5 -0
  160. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -0
  161. package/dist/collection/components/vega-rich-text-editor/dto/setup.js +29 -29
  162. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +105 -1
  163. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +50 -1
  164. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +2 -0
  165. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +2 -0
  166. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.js +2 -0
  167. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +4 -2
  168. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/action-handler-strategies/block-update-line-height-strategy.js +18 -0
  169. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.js +20 -0
  170. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/annotations/line-height-annotation.js +61 -0
  171. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/assets/line-height.js +3 -0
  172. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/constants.js +11 -0
  173. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.js +41 -0
  174. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-filter-styles-strategy.js +41 -0
  175. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-from-json-handler.js +65 -0
  176. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-extension.js +44 -0
  177. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.js +131 -0
  178. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/arrow-characters.js +24 -0
  179. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/currency-characters.js +38 -0
  180. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/default-categories.js +37 -0
  181. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/latin-characters.js +130 -0
  182. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/mathematical-characters.js +46 -0
  183. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/text-characters.js +29 -0
  184. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-extension.js +34 -0
  185. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-icon.js +3 -0
  186. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-toolbar-button-renderer.js +184 -0
  187. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/types.js +1 -0
  188. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/constants.js +11 -0
  189. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/controllers/special-characters-panel-keyboard-controller.js +85 -0
  190. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/renderers/special-characters-panel-renderer.js +210 -0
  191. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.css +66 -0
  192. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.js +174 -0
  193. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +1 -1
  194. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +1 -1
  195. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +1 -1
  196. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +2 -0
  197. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +2 -0
  198. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +2 -0
  199. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +2 -0
  200. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +2 -0
  201. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +2 -0
  202. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +2 -0
  203. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.js +1 -1
  204. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.js +1 -1
  205. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.js +1 -1
  206. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +4 -4
  207. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +5 -2
  208. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +2 -0
  209. package/dist/collection/components/vega-rich-text-editor/extensions/type.js +1 -0
  210. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +8 -2
  211. package/dist/collection/components/vega-rich-text-editor/public-api.js +4 -0
  212. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +1 -1
  213. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.js +1 -1
  214. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.js +1 -1
  215. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +3 -3
  216. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.js +1 -1
  217. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.js +1 -1
  218. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.js +1 -1
  219. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +1 -1
  220. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +1 -1
  221. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +1 -1
  222. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +1 -1
  223. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.js +1 -1
  224. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +1 -1
  225. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +1 -1
  226. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +1 -0
  227. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +1 -1
  228. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +14 -0
  229. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/redo-toolbar-button-slimmer.js +36 -0
  230. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/undo-toolbar-button-slimmer.js +36 -0
  231. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +4 -1
  232. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +44 -0
  233. package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +1 -1
  234. package/dist/collection/components/vega-section-title/vega-section-title.js +2 -1
  235. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +4 -0
  236. package/dist/collection/components/vega-table/vega-table.css +1 -1
  237. package/dist/collection/components/vega-table/vega-table.js +28 -0
  238. package/dist/collection/components/vega-textarea/vega-textarea.js +35 -1
  239. package/dist/collection/constants/runtime-metrics-payload-definition/public-api/ThemeManager/runtime-metrics-payload-definition.js +30 -10
  240. package/dist/collection/constants/ui.js +1 -0
  241. package/dist/collection/global/scripts/before-vega-load.js +13 -0
  242. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -2
  243. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
  244. package/dist/collection/helpers/slimmers/component-value-history-controller-slimmer.abstract.js +22 -2
  245. package/dist/collection/helpers/theme/controllers/action-color-accessibility-validator.js +34 -0
  246. package/dist/collection/helpers/theme/internal-theme-manager.js +39 -2
  247. package/dist/collection/helpers/theme/theme-manager.js +33 -2
  248. package/dist/collection/helpers/translation/locales/en.js +8 -0
  249. package/dist/esm/action-color-accessibility-validator-3d8efb64.js +1815 -0
  250. package/dist/esm/{app-globals-be458779.js → app-globals-98c3d676.js} +16 -7
  251. package/dist/esm/{child-nodes-event-prevent-slimmer-0a406a71.js → child-nodes-event-prevent-slimmer-2f823df2.js} +1 -1
  252. package/dist/esm/{code-block-ff52d912.js → code-block-6261a99d.js} +32 -14
  253. package/dist/esm/{component-value-history-controller-slimmer.abstract-ad5f29cd.js → component-value-history-controller-slimmer.abstract-07488472.js} +25 -5
  254. package/dist/esm/{content-state-6fccd284.js → content-state-9bf85e00.js} +66 -54
  255. package/dist/esm/{dark-mode-style-controller-e9a6b097.js → dark-mode-style-controller-fcda24ec.js} +40 -3
  256. package/dist/esm/{date-required-rule-70324452.js → date-required-rule-281aab50.js} +1 -1
  257. package/dist/esm/{design-token-0e6fb2c4.js → design-token-b7ce7ed4.js} +3 -3
  258. package/dist/esm/{element-appender-slimmer-afe5a638.js → element-appender-slimmer-3926470f.js} +2 -2
  259. package/dist/esm/{event-emit-slimmer-697ad0b7.js → event-emit-slimmer-0990037c.js} +1 -1
  260. package/dist/esm/{form-field-controller-slimmer-9e70a18d.js → form-field-controller-slimmer-24aca6c4.js} +1 -1
  261. package/dist/esm/{image-annotation-action-245eaa54.js → image-annotation-action-dadda36f.js} +4 -4
  262. package/dist/esm/index-090d31ca.js +4 -0
  263. package/dist/esm/index.js +18 -17
  264. package/dist/esm/{inject-keyboard-manager-05d5db90.js → inject-keyboard-manager-6317d1b3.js} +1 -1
  265. package/dist/esm/{internal-translation-controller-d8217d93.js → internal-translation-controller-0b9589d0.js} +8 -0
  266. package/dist/esm/{internal-vega-event-manager-1ac5ee9a.js → internal-vega-event-manager-dc4c3a37.js} +2 -2
  267. package/dist/esm/{keyboard-manager-26e2fc32.js → keyboard-manager-69761aa6.js} +1 -1
  268. package/dist/esm/{keyboard-manager-slimmer-012a9a9b.js → keyboard-manager-slimmer-c2d038f0.js} +1 -1
  269. package/dist/esm/loader.js +13 -12
  270. package/dist/esm/{month-view-generator-918f1f88.js → month-view-generator-4c1ee949.js} +1 -1
  271. package/dist/esm/polyfills/core-js.js +0 -0
  272. package/dist/esm/polyfills/dom.js +0 -0
  273. package/dist/esm/polyfills/es5-html-element.js +0 -0
  274. package/dist/esm/polyfills/index.js +0 -0
  275. package/dist/esm/polyfills/system.js +0 -0
  276. package/dist/esm/{public-rules-22320bdf.js → public-rules-da28b413.js} +8 -8
  277. package/dist/esm/{range-76f8e7dd.js → range-342cbce9.js} +1 -1
  278. package/dist/esm/replace-selected-text-action-a45bee4b.js +18 -0
  279. package/dist/esm/{responsive-format-facade-2a1d6398.js → responsive-format-facade-3ca1422d.js} +1 -1
  280. package/dist/esm/{rich-text-editor-required-rule-6eb90840.js → rich-text-editor-required-rule-46d0bc5b.js} +1 -1
  281. package/dist/esm/{split-cell-operation-7652e813.js → split-cell-operation-1d114aa3.js} +79 -16
  282. package/dist/esm/{state-border-formatter-a243f3fc.js → state-border-formatter-3ebc76a4.js} +1 -1
  283. package/dist/esm/{string-format-strategy.abstract-f6625ed7.js → string-format-strategy.abstract-95d691e1.js} +1 -1
  284. package/dist/esm/{string-input-formatter-slimmer-e801bd7e.js → string-input-formatter-slimmer-e18d202c.js} +1 -1
  285. package/dist/esm/{string-mask-strategy-53cb9b33.js → string-mask-strategy-43d846ac.js} +2 -2
  286. package/dist/esm/{style-formatter-a622a045.js → style-formatter-197e2fd3.js} +2 -2
  287. package/dist/esm/{time-required-rule-2fd8df50.js → time-required-rule-78d8ecf1.js} +1 -1
  288. package/dist/esm/{token-extension-5838c71b.js → token-extension-30011dc4.js} +1128 -27
  289. package/dist/esm/{translation-slimmer-32353a1c.js → translation-slimmer-49903fc8.js} +1 -1
  290. package/dist/esm/{type-guard-ed1004cc.js → type-guard-b18807dc.js} +1 -1
  291. package/dist/esm/{valid-credit-card-number-rule-7c9d6808.js → valid-credit-card-number-rule-fe1c8a9c.js} +1 -1
  292. package/dist/esm/vega-accordion.entry.js +22 -15
  293. package/dist/esm/vega-app-footer.entry.js +1 -1
  294. package/dist/esm/vega-app-header-button.entry.js +9 -9
  295. package/dist/esm/vega-banner.entry.js +3 -3
  296. package/dist/esm/vega-box.entry.js +6 -6
  297. package/dist/esm/vega-brand-logo.entry.js +1 -1
  298. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  299. package/dist/esm/vega-button-circle.entry.js +9 -9
  300. package/dist/esm/vega-button-group_2.entry.js +4 -4
  301. package/dist/esm/vega-button-link.entry.js +4 -4
  302. package/dist/esm/vega-button.entry.js +7 -7
  303. package/dist/esm/vega-calendar_4.entry.js +11 -11
  304. package/dist/esm/vega-card.entry.js +5 -5
  305. package/dist/esm/vega-carousel.entry.js +6 -6
  306. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  307. package/dist/esm/vega-chip.entry.js +9 -9
  308. package/dist/esm/vega-code-block.entry.js +16 -15
  309. package/dist/esm/vega-color-picker.entry.js +5 -5
  310. package/dist/esm/vega-color-swatch-picker.entry.js +7 -7
  311. package/dist/esm/vega-color-swatch.entry.js +5 -5
  312. package/dist/esm/vega-combo-box.entry.js +23 -10
  313. package/dist/esm/vega-date-picker_2.entry.js +327 -267
  314. package/dist/esm/vega-dialog_2.entry.js +7 -7
  315. package/dist/esm/vega-divider.entry.js +5 -5
  316. package/dist/esm/vega-dropdown_5.entry.js +11 -11
  317. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  318. package/dist/esm/{vega-event-id-578c6c6d.js → vega-event-id-20494454.js} +2 -1
  319. package/dist/esm/vega-field-label.entry.js +22 -5
  320. package/dist/esm/vega-file-uploader.entry.js +20 -7
  321. package/dist/esm/vega-flag-icon.entry.js +5 -5
  322. package/dist/esm/vega-flex.entry.js +6 -6
  323. package/dist/esm/vega-font.entry.js +5 -5
  324. package/dist/esm/vega-form.entry.js +7 -7
  325. package/dist/esm/vega-grid.entry.js +5 -5
  326. package/dist/esm/vega-icon.entry.js +5 -5
  327. package/dist/esm/vega-image-uploader.entry.js +10 -10
  328. package/dist/esm/vega-input-credit-card.entry.js +10 -10
  329. package/dist/esm/vega-input-numeric.entry.js +9 -9
  330. package/dist/esm/vega-input-passcode.entry.js +23 -10
  331. package/dist/esm/vega-input-phone-number.entry.js +22 -9
  332. package/dist/esm/vega-input-range.entry.js +7 -7
  333. package/dist/esm/vega-input-select.entry.js +9 -9
  334. package/dist/esm/vega-input.entry.js +23 -10
  335. package/dist/esm/vega-item-toggle.entry.js +3 -3
  336. package/dist/esm/vega-left-nav_5.entry.js +11 -11
  337. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  338. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  339. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  340. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
  341. package/dist/esm/vega-pagination.entry.js +8 -8
  342. package/dist/esm/vega-popover_2.entry.js +11 -11
  343. package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
  344. package/dist/esm/vega-radio_2.entry.js +9 -9
  345. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  346. package/dist/esm/vega-rich-text-editor_4.entry.js +285 -189
  347. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +396 -0
  348. package/dist/esm/vega-rich-text-table-properties_3.entry.js +12 -12
  349. package/dist/esm/vega-section-title.entry.js +3 -2
  350. package/dist/esm/vega-segment-control.entry.js +3 -3
  351. package/dist/esm/vega-selection-chip_2.entry.js +8 -8
  352. package/dist/esm/vega-selection-tile_2.entry.js +6 -6
  353. package/dist/esm/vega-sidenav_3.entry.js +6 -6
  354. package/dist/esm/vega-signature-capture.entry.js +10 -10
  355. package/dist/esm/vega-stepper.entry.js +6 -6
  356. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  357. package/dist/esm/vega-table_11.entry.js +20 -9
  358. package/dist/esm/vega-textarea.entry.js +17 -7
  359. package/dist/esm/vega-time-picker_2.entry.js +13 -13
  360. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  361. package/dist/esm/vega-tooltip_2.entry.js +6 -6
  362. package/dist/esm/vega.js +13 -12
  363. package/dist/sri/vega-sri-manifest.json +362 -350
  364. package/dist/types/components/vega-accordion/slimmers/vega-accordion-renderer.d.ts +1 -0
  365. package/dist/types/components/vega-accordion/vega-accordion.d.ts +14 -0
  366. package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +1 -1
  367. package/dist/types/components/vega-calendar/vega-calendar.d.ts +4 -4
  368. package/dist/types/components/vega-code-block/vega-code-block.d.ts +1 -0
  369. package/dist/types/components/vega-combo-box/slimmers/renderers/vega-combo-box-renderer.d.ts +1 -0
  370. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +10 -0
  371. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-size-controller.d.ts +20 -0
  372. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +2 -1
  373. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +1 -1
  374. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +0 -1
  375. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +22 -2
  376. package/dist/types/components/vega-field-label/vega-field-label.d.ts +12 -0
  377. package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.d.ts +1 -0
  378. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +10 -0
  379. package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +1 -0
  380. package/dist/types/components/vega-input/vega-input.d.ts +10 -0
  381. package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +1 -0
  382. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +10 -0
  383. package/dist/types/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.d.ts +1 -0
  384. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +10 -0
  385. package/dist/types/components/vega-rich-text-editor/assets/redo.d.ts +3 -0
  386. package/dist/types/components/vega-rich-text-editor/assets/undo.d.ts +3 -0
  387. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation-style.d.ts +1 -1
  388. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +5 -0
  389. package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +2 -0
  390. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +2 -0
  391. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +2 -0
  392. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +2 -0
  393. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +2 -0
  394. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +2 -0
  395. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +3 -0
  396. package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +2 -0
  397. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +2 -0
  398. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +5 -0
  399. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +2 -0
  400. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +31 -0
  401. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +19 -0
  402. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +2 -0
  403. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.d.ts +2 -0
  404. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.d.ts +2 -0
  405. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +2 -1
  406. package/dist/types/components/vega-rich-text-editor/extensions/line-height/action-handler-strategies/block-update-line-height-strategy.d.ts +18 -0
  407. package/dist/types/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.d.ts +16 -0
  408. package/dist/types/components/vega-rich-text-editor/extensions/line-height/annotations/line-height-annotation.d.ts +46 -0
  409. package/dist/types/components/vega-rich-text-editor/extensions/line-height/assets/line-height.d.ts +3 -0
  410. package/dist/types/components/vega-rich-text-editor/extensions/line-height/constants.d.ts +6 -0
  411. package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.d.ts +23 -0
  412. package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-filter-styles-strategy.d.ts +26 -0
  413. package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-from-json-handler.d.ts +17 -0
  414. package/dist/types/components/vega-rich-text-editor/extensions/line-height/line-height-extension.d.ts +19 -0
  415. package/dist/types/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.d.ts +44 -0
  416. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/arrow-characters.d.ts +2 -0
  417. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/currency-characters.d.ts +2 -0
  418. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/default-categories.d.ts +7 -0
  419. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/latin-characters.d.ts +2 -0
  420. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/mathematical-characters.d.ts +2 -0
  421. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/text-characters.d.ts +2 -0
  422. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-extension.d.ts +20 -0
  423. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-icon.d.ts +3 -0
  424. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-toolbar-button-renderer.d.ts +83 -0
  425. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/types.d.ts +20 -0
  426. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/constants.d.ts +11 -0
  427. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/controllers/special-characters-panel-keyboard-controller.d.ts +18 -0
  428. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/renderers/special-characters-panel-renderer.d.ts +66 -0
  429. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.d.ts +58 -0
  430. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +2 -0
  431. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +2 -0
  432. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +2 -0
  433. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +2 -0
  434. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +2 -0
  435. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +2 -0
  436. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +2 -0
  437. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +3 -1
  438. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -0
  439. package/dist/types/components/vega-rich-text-editor/extensions/type.d.ts +14 -0
  440. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +1 -1
  441. package/dist/types/components/vega-rich-text-editor/interface.d.ts +8 -0
  442. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +5 -0
  443. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +3 -1
  444. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +3 -0
  445. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/redo-toolbar-button-slimmer.d.ts +9 -0
  446. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/undo-toolbar-button-slimmer.d.ts +9 -0
  447. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +1 -0
  448. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +14 -0
  449. package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +1 -0
  450. package/dist/types/components/vega-table/vega-table.d.ts +7 -0
  451. package/dist/types/components/vega-textarea/vega-textarea.d.ts +10 -0
  452. package/dist/types/components.d.ts +185 -11
  453. package/dist/types/constants/ui.d.ts +1 -1
  454. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
  455. package/dist/types/helpers/slimmers/component-value-history-controller-slimmer.abstract.d.ts +13 -0
  456. package/dist/types/helpers/theme/controllers/action-color-accessibility-validator.d.ts +10 -0
  457. package/dist/types/helpers/theme/internal-theme-manager.d.ts +28 -1
  458. package/dist/types/helpers/theme/theme-manager.d.ts +24 -1
  459. package/dist/types/helpers/theme/theme.d.ts +8 -0
  460. package/dist/types/helpers/translation/interface.d.ts +10 -1
  461. package/dist/types/types/components.type.d.ts +11 -10
  462. package/dist/types/types/public-api.d.ts +1 -0
  463. package/dist/types/vega-color-token-contrast-checker/src/check/checker.d.ts +177 -0
  464. package/dist/types/vega-color-token-contrast-checker/src/check/color-math.d.ts +125 -0
  465. package/dist/types/vega-color-token-contrast-checker/src/check/contrast-check-strategy.d.ts +38 -0
  466. package/dist/types/vega-color-token-contrast-checker/src/check/search.d.ts +58 -0
  467. package/dist/types/vega-color-token-contrast-checker/src/check/token-checks.d.ts +122 -0
  468. package/dist/types/vega-color-token-contrast-checker/src/check/token-checks.generated.d.ts +2 -0
  469. package/dist/types/vega-color-token-contrast-checker/src/index.d.ts +2 -0
  470. package/dist/vega/index.esm.js +1 -1
  471. package/dist/vega/{p-636d890e.entry.js → p-01f617ee.entry.js} +1 -1
  472. package/dist/vega/{p-fdb97cb7.entry.js → p-03b32939.entry.js} +1 -1
  473. package/dist/vega/{p-2927b7a1.js → p-05dc6718.js} +1 -1
  474. package/dist/vega/{p-72e2a587.js → p-0b2ca33b.js} +1 -1
  475. package/dist/vega/p-0c460945.js +1 -0
  476. package/dist/vega/{p-d286da1d.entry.js → p-0d248322.entry.js} +1 -1
  477. package/dist/vega/{p-2b2fefc6.js → p-0d3830f1.js} +1 -1
  478. package/dist/vega/{p-c45acdc3.entry.js → p-0dafd071.entry.js} +1 -1
  479. package/dist/vega/{p-a67d52ce.entry.js → p-0edf9c6e.entry.js} +1 -1
  480. package/dist/vega/{p-a03341d8.entry.js → p-1385da31.entry.js} +1 -1
  481. package/dist/vega/{p-d1a6e126.entry.js → p-18d1d404.entry.js} +1 -1
  482. package/dist/vega/{p-aa8f4713.entry.js → p-1d752c37.entry.js} +1 -1
  483. package/dist/vega/p-1f563387.js +1 -0
  484. package/dist/vega/{p-e85497ec.entry.js → p-296c90bd.entry.js} +1 -1
  485. package/dist/vega/p-30f76962.js +3 -0
  486. package/dist/vega/p-3186995a.entry.js +1 -0
  487. package/dist/vega/p-3312e3dd.js +1 -0
  488. package/dist/vega/{p-a0dd08b1.js → p-36e46c4f.js} +1 -1
  489. package/dist/vega/p-36f3dd19.entry.js +1 -0
  490. package/dist/vega/{p-d5aad9f0.entry.js → p-3ab50c06.entry.js} +1 -1
  491. package/dist/vega/{p-31ebace1.js → p-3d6568cc.js} +1 -1
  492. package/dist/vega/{p-19df2831.entry.js → p-3e2e4b00.entry.js} +1 -1
  493. package/dist/vega/{p-ff5208f5.entry.js → p-416e89b0.entry.js} +1 -1
  494. package/dist/vega/{p-79bb216e.entry.js → p-4914a5f8.entry.js} +1 -1
  495. package/dist/vega/{p-ac26924d.entry.js → p-4f53b45d.entry.js} +1 -1
  496. package/dist/vega/p-50958342.js +1 -0
  497. package/dist/vega/{p-2d694684.js → p-518e0a24.js} +1 -1
  498. package/dist/vega/p-540bd78a.entry.js +1 -0
  499. package/dist/vega/p-5424e837.js +1 -0
  500. package/dist/vega/p-54ed506c.entry.js +1 -0
  501. package/dist/vega/{p-7e7e2f85.entry.js → p-5a960f83.entry.js} +1 -1
  502. package/dist/vega/{p-879d3cc9.entry.js → p-5c1a4fd7.entry.js} +1 -1
  503. package/dist/vega/{p-5b43a303.entry.js → p-5c8522eb.entry.js} +1 -1
  504. package/dist/vega/p-5f377954.js +1 -1
  505. package/dist/vega/{p-0b41b49a.entry.js → p-6205288e.entry.js} +1 -1
  506. package/dist/vega/{p-04a65b3f.js → p-6629a68b.js} +1 -1
  507. package/dist/vega/p-696d7b8f.js +1 -0
  508. package/dist/vega/{p-931dac8c.entry.js → p-6ab23e89.entry.js} +1 -1
  509. package/dist/vega/{p-154cc614.js → p-6bd37d32.js} +1 -1
  510. package/dist/vega/{p-ce034372.entry.js → p-6be01c6b.entry.js} +1 -1
  511. package/dist/vega/{p-294cff20.entry.js → p-70e0c3eb.entry.js} +1 -1
  512. package/dist/vega/{p-4a9c8ec0.entry.js → p-7168ef16.entry.js} +1 -1
  513. package/dist/vega/{p-ab04eff6.js → p-7292ac20.js} +1 -1
  514. package/dist/vega/p-7348a091.entry.js +1 -0
  515. package/dist/vega/{p-19adf714.js → p-788ada42.js} +1 -1
  516. package/dist/vega/p-7cd8d054.entry.js +1 -0
  517. package/dist/vega/{p-bee5dfb0.entry.js → p-7dcc0b23.entry.js} +1 -1
  518. package/dist/vega/{p-189d36ec.js → p-81d55efd.js} +1 -1
  519. package/dist/vega/{p-8077b117.js → p-8ee917b4.js} +1 -1
  520. package/dist/vega/{p-52645382.entry.js → p-92468c30.entry.js} +1 -1
  521. package/dist/vega/{p-3a3720c7.entry.js → p-92710213.entry.js} +1 -1
  522. package/dist/vega/{p-e8de9535.js → p-9c48e4e5.js} +1 -1
  523. package/dist/vega/{p-891815d6.js → p-9f03856e.js} +1 -1
  524. package/dist/vega/{p-7ffe8081.entry.js → p-a0dd5273.entry.js} +1 -1
  525. package/dist/vega/p-a0fa5ccc.entry.js +1 -0
  526. package/dist/vega/{p-4a954d9d.entry.js → p-a32ad1ac.entry.js} +1 -1
  527. package/dist/vega/{p-01a54c29.entry.js → p-a36d4199.entry.js} +1 -1
  528. package/dist/vega/{p-d97974be.entry.js → p-a53e1a60.entry.js} +1 -1
  529. package/dist/vega/{p-d4262f06.entry.js → p-a73d8915.entry.js} +1 -1
  530. package/dist/vega/{p-07225567.entry.js → p-a87bc75a.entry.js} +1 -1
  531. package/dist/vega/{p-09076646.js → p-abfe46ca.js} +1 -1
  532. package/dist/vega/p-ad815280.js +1 -0
  533. package/dist/vega/p-b0fb5099.entry.js +1 -0
  534. package/dist/vega/{p-d05915af.entry.js → p-b218141f.entry.js} +1 -1
  535. package/dist/vega/{p-e7c930d9.entry.js → p-b2a0d104.entry.js} +1 -1
  536. package/dist/vega/{p-3bf3c8bb.entry.js → p-b31802b3.entry.js} +1 -1
  537. package/dist/vega/{p-255a7387.entry.js → p-b3e97e2f.entry.js} +1 -1
  538. package/dist/vega/{p-15b4f1ce.entry.js → p-b519b9ab.entry.js} +1 -1
  539. package/dist/vega/{p-8aee6b74.js → p-b565a6a5.js} +1 -1
  540. package/dist/vega/{p-2e0bdc53.entry.js → p-b5a3de00.entry.js} +1 -1
  541. package/dist/vega/p-b5d00d38.entry.js +1 -0
  542. package/dist/vega/p-b72d7b57.entry.js +1 -0
  543. package/dist/vega/{p-f5ae99b4.entry.js → p-b7f30f68.entry.js} +1 -1
  544. package/dist/vega/p-b857a661.js +1 -0
  545. package/dist/vega/{p-d9d4bdbf.entry.js → p-ba4f23d8.entry.js} +1 -1
  546. package/dist/vega/{p-5df7ab03.entry.js → p-c0c13993.entry.js} +1 -1
  547. package/dist/vega/p-c4675cd2.entry.js +1 -0
  548. package/dist/vega/p-c51e3b9e.js +1 -0
  549. package/dist/vega/{p-bd47d8a7.entry.js → p-c6201e76.entry.js} +1 -1
  550. package/dist/vega/p-c84aa55a.js +1 -0
  551. package/dist/vega/{p-858ec529.js → p-c93dfe23.js} +1 -1
  552. package/dist/vega/p-cacec680.js +1 -0
  553. package/dist/vega/{p-186df871.entry.js → p-cd382652.entry.js} +1 -1
  554. package/dist/vega/{p-49341532.entry.js → p-cdd3af89.entry.js} +1 -1
  555. package/dist/vega/{p-ec663f00.entry.js → p-ce8a0aa6.entry.js} +1 -1
  556. package/dist/vega/{p-648be36d.entry.js → p-cf5c6172.entry.js} +1 -1
  557. package/dist/vega/{p-0a322971.entry.js → p-d1641644.entry.js} +1 -1
  558. package/dist/vega/p-d2237b95.entry.js +1 -0
  559. package/dist/vega/{p-76075a1c.entry.js → p-d24892d6.entry.js} +1 -1
  560. package/dist/vega/p-d25ca0c3.entry.js +1 -0
  561. package/dist/vega/{p-b69755c7.entry.js → p-d8591207.entry.js} +1 -1
  562. package/dist/vega/p-da42fde0.js +1 -0
  563. package/dist/vega/{p-aa4e9a4b.entry.js → p-dc0f7ef1.entry.js} +1 -1
  564. package/dist/vega/{p-70ae9157.entry.js → p-dcd3b421.entry.js} +1 -1
  565. package/dist/vega/{p-c19132c9.entry.js → p-df4f9264.entry.js} +1 -1
  566. package/dist/vega/p-e5726df7.entry.js +1 -0
  567. package/dist/vega/{p-4c91b13d.js → p-e7fb7eee.js} +1 -1
  568. package/dist/vega/{p-98dad153.entry.js → p-ea4b5520.entry.js} +1 -1
  569. package/dist/vega/p-ecbead18.entry.js +1 -0
  570. package/dist/vega/{p-b02b985d.js → p-f0d70de3.js} +1 -1
  571. package/dist/vega/{p-78ba7ca9.js → p-f7ad9349.js} +1 -1
  572. package/dist/vega/{p-a6565e02.js → p-fdf6f368.js} +1 -1
  573. package/dist/vega/{p-0a261b66.js → p-fea75b87.js} +1 -1
  574. package/dist/vega/{p-296c5e52.js → p-ffda64ac.js} +1 -1
  575. package/dist/vega/{p-74a1a82a.entry.js → p-ffe8a826.entry.js} +1 -1
  576. package/dist/vega/vega.esm.js +1 -1
  577. package/package.json +3 -2
  578. package/dist/vega/p-042933f1.js +0 -1
  579. package/dist/vega/p-0d97dcb9.js +0 -1
  580. package/dist/vega/p-1da42a63.entry.js +0 -1
  581. package/dist/vega/p-281fa1e0.js +0 -1
  582. package/dist/vega/p-32a0f887.js +0 -1
  583. package/dist/vega/p-4a6f241d.entry.js +0 -1
  584. package/dist/vega/p-4dd02704.js +0 -1
  585. package/dist/vega/p-50fb936f.entry.js +0 -1
  586. package/dist/vega/p-612808ce.entry.js +0 -1
  587. package/dist/vega/p-6399b5ed.js +0 -1
  588. package/dist/vega/p-686e0b6b.entry.js +0 -1
  589. package/dist/vega/p-6d4faebc.js +0 -1
  590. package/dist/vega/p-8d36afcc.entry.js +0 -1
  591. package/dist/vega/p-979a5e91.entry.js +0 -1
  592. package/dist/vega/p-a2b8d49d.js +0 -1
  593. package/dist/vega/p-ab4c307b.js +0 -1
  594. package/dist/vega/p-c41b42eb.entry.js +0 -1
  595. package/dist/vega/p-ce2d9efe.entry.js +0 -1
  596. package/dist/vega/p-e46a23fc.entry.js +0 -1
  597. package/dist/vega/p-e8ea3b16.js +0 -3
  598. package/dist/vega/p-ea0e922f.entry.js +0 -1
  599. package/dist/vega/p-ec2333f7.entry.js +0 -1
  600. package/dist/vega/p-ed2b0e01.entry.js +0 -1
  601. package/dist/vega/p-ef13b346.js +0 -1
  602. package/dist/vega/p-fe220f3a.entry.js +0 -1
@@ -9,6 +9,8 @@ import { ActionHandlerInterceptorRegistry } from '../dto/action-handle-strategie
9
9
  import { methodPlaceholder } from 'vega-slimmer/core';
10
10
  import htmlElementToAnnotationGenerator from '../slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator';
11
11
  import { RTEFilterStylesStrategyRegistry } from '../dto/filter-styles-strategies/filter-styles-strategy-registry';
12
+ const patchedBlockClasses = new WeakSet();
13
+ const annotationHandlersByClass = new WeakMap();
12
14
  /**
13
15
  * Abstract class for Vega Rich Text Editor extensions.
14
16
  */
@@ -49,6 +51,53 @@ export class VegaRTEExtension {
49
51
  static registerFilterStylesStrategy(blockOrNodeClassName, strategy) {
50
52
  RTEFilterStylesStrategyRegistry.register(blockOrNodeClassName, strategy);
51
53
  }
54
+ /**
55
+ * Attach a custom JSON annotation handler to a block DTO class's static `from` flow.
56
+ *
57
+ * This is a reusable extension point: any extension can register a handler for an
58
+ * annotation key and transform the value into block annotations during JSON parsing.
59
+ *
60
+ * Safe to call multiple times per class/key/handler — duplicate registrations are no-ops.
61
+ *
62
+ * @param {BlockClassWithFrom} BlockClass - Block DTO class to patch.
63
+ * @param {string} annotationKey - JSON annotation key to read from `block.annotations`.
64
+ * @param {AnnotationFromJsonHandler} handler - Handler that applies annotation logic to the instance.
65
+ */
66
+ static attachAnnotationFromJson(BlockClass, annotationKey, handler) {
67
+ var _a, _b;
68
+ const handlerMap = (_a = annotationHandlersByClass.get(BlockClass)) !== null && _a !== void 0 ? _a : new Map();
69
+ const handlers = (_b = handlerMap.get(annotationKey)) !== null && _b !== void 0 ? _b : new Set();
70
+ handlers.add(handler);
71
+ handlerMap.set(annotationKey, handlers);
72
+ annotationHandlersByClass.set(BlockClass, handlerMap);
73
+ if (patchedBlockClasses.has(BlockClass)) {
74
+ return;
75
+ }
76
+ patchedBlockClasses.add(BlockClass);
77
+ const originalFrom = BlockClass.from.bind(BlockClass);
78
+ /**
79
+ * Wrapped static `from` that preserves original behavior and then applies
80
+ * all registered annotation-from-json handlers for this BlockClass.
81
+ *
82
+ * @param {VegaRTEBlockBase} block - Raw JSON block payload.
83
+ * @param {VegaRTETransformOptions} [options] - Optional transform options.
84
+ * @returns {RTEBlock} The transformed block instance.
85
+ */
86
+ BlockClass.from = function patchedFrom(block, options) {
87
+ const instance = originalFrom(block, options);
88
+ const annotations = block.annotations;
89
+ const currentHandlerMap = annotationHandlersByClass.get(BlockClass);
90
+ if (annotations && currentHandlerMap) {
91
+ currentHandlerMap.forEach((registeredHandlers, key) => {
92
+ const value = annotations[key];
93
+ registeredHandlers.forEach((registeredHandler) => {
94
+ registeredHandler(instance, value, block, options);
95
+ });
96
+ });
97
+ }
98
+ return instance;
99
+ };
100
+ }
52
101
  /**
53
102
  * Lifecycle hook called by the rich text editor before the first render
54
103
  * (during `componentWillLoad`). Override this method to perform per-host
@@ -71,7 +120,7 @@ export class VegaRTEExtension {
71
120
  */
72
121
  initialExtensionAfterLoad(context) {
73
122
  this.extensionContext = context;
74
- rteExtensionContextManager.setExtensionContext(context);
123
+ rteExtensionContextManager.updateExtensionContext(context);
75
124
  }
76
125
  /**
77
126
  * Callback method invoked when the extension is destroyed.
@@ -8,6 +8,7 @@ import { RTETextBlock } from '../../../dto/blocks/text-block';
8
8
  export class RTEFunctionBlock extends RTEBlock {
9
9
  constructor(id) {
10
10
  super(id);
11
+ this.dtoName = RTEFunctionBlock.dtoName;
11
12
  this.type = 'function-block';
12
13
  this.children = [];
13
14
  }
@@ -95,3 +96,4 @@ export class RTEFunctionBlock extends RTEBlock {
95
96
  return styles ? ` style="${styles}"` : '';
96
97
  }
97
98
  }
99
+ RTEFunctionBlock.dtoName = 'RTEFunctionBlock';
@@ -6,6 +6,7 @@ import { RTELogicControlNode } from '../dto/logic-control-node';
6
6
  export class RTELogicControlBlock extends RTEBlock {
7
7
  constructor(id, statementText, parent) {
8
8
  super(id);
9
+ this.dtoName = RTELogicControlBlock.dtoName;
9
10
  this.type = 'logic-control-block';
10
11
  this.children = [];
11
12
  this.statementText = '';
@@ -71,3 +72,4 @@ export class RTELogicControlBlock extends RTEBlock {
71
72
  };
72
73
  }
73
74
  }
75
+ RTELogicControlBlock.dtoName = 'RTELogicControlBlock';
@@ -6,6 +6,7 @@ import stateEntityRenderingRegistry from '../../../slimmers/controllers/state-en
6
6
  export class RTELogicControlNode extends RTENode {
7
7
  constructor(id, text, parent) {
8
8
  super(id);
9
+ this.dtoName = RTELogicControlNode.dtoName;
9
10
  this.type = 'logic-control-node';
10
11
  this.text = '';
11
12
  this.text = text;
@@ -67,3 +68,4 @@ export class RTELogicControlNode extends RTENode {
67
68
  return false;
68
69
  }
69
70
  }
71
+ RTELogicControlNode.dtoName = 'RTELogicControlNode';
@@ -27,7 +27,6 @@ const convertFunctionBlockStrategy = new DivToFunctionBlockStrategy();
27
27
  export class VegaRTEFunctionExtension extends VegaRTEExtension {
28
28
  constructor() {
29
29
  super();
30
- this.toolbarButtonRenderer = new FunctionToolbarButtonRenderer();
31
30
  this.registerBlockBasicStrategies(RTELogicControlBlock.name);
32
31
  this.registerBlockBasicStrategies(RTEFunctionBlock.name);
33
32
  this.preventFunctionBlockDefaultInsertNewParagraph();
@@ -35,11 +34,14 @@ export class VegaRTEFunctionExtension extends VegaRTEExtension {
35
34
  this.registerRenderer('logic-control-block', new RTELogicControlBlockRenderer());
36
35
  this.registerNode('function-block', RTEFunctionBlock);
37
36
  this.registerRenderer('function-block', new RTEFunctionBlockRenderer());
38
- this.registerToolbarButtonRenderer('functions', this.toolbarButtonRenderer);
39
37
  this.registerElementToBlockDTOClassStrategy(convertLogicControlBlockStrategy);
40
38
  this.registerElementToBlockDTOClassStrategy(convertFunctionContentStrategy);
41
39
  this.registerElementToBlockDTOClassStrategy(convertFunctionBlockStrategy);
42
40
  }
41
+ /** @inheritDoc */
42
+ prepareBeforeLoad(host) {
43
+ this.registerToolbarButtonRenderer('functions', new FunctionToolbarButtonRenderer(), host);
44
+ }
43
45
  /**
44
46
  * Remove the appen children strategies to prevent default insert new paragraph logic in function block
45
47
  */
@@ -0,0 +1,18 @@
1
+ import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
+ /**
3
+ * Update the block line height strategy.
4
+ *
5
+ * Registered for RTETextBlock and RTEListItemBlock, so the
6
+ * target type is widened to the common RTEBlock base.
7
+ */
8
+ export class BlockUpdateLineHeightStrategy extends ActionHandleStrategy {
9
+ /**
10
+ * Updating the line height of a block requires cascading updates to the custom style.
11
+ *
12
+ * @param {LineHeightAnnotationAction} _action - The line height annotation action.
13
+ * @param {RTEBlock} target - The current block.
14
+ */
15
+ handleAction(_action, target) {
16
+ this.updateCustomStyleAnnotation(target, ['lineHeight']);
17
+ }
18
+ }
@@ -0,0 +1,20 @@
1
+ import { AnnotationAction } from '../../../dto/actions/annotation-action.abstract';
2
+ import { LineHeightAnnotation } from '../annotations/line-height-annotation';
3
+ /**
4
+ * Action to update block line height annotation.
5
+ */
6
+ export class LineHeightAnnotationAction extends AnnotationAction {
7
+ constructor(lineHeight) {
8
+ super();
9
+ this.isFlushable = true;
10
+ this.lineHeight = lineHeight;
11
+ }
12
+ /**
13
+ * Converts the action to an annotation.
14
+ *
15
+ * @returns {LineHeightAnnotation} The annotation.
16
+ */
17
+ toAnnotation() {
18
+ return new LineHeightAnnotation(this.lineHeight);
19
+ }
20
+ }
@@ -0,0 +1,61 @@
1
+ import { BlockAnnotation } from '../../../dto/annotations/block-annotation.abstract';
2
+ export var RTELineHeightExtensionAnnotationTypeEnum;
3
+ (function (RTELineHeightExtensionAnnotationTypeEnum) {
4
+ RTELineHeightExtensionAnnotationTypeEnum["LINE_HEIGHT"] = "LINE_HEIGHT";
5
+ })(RTELineHeightExtensionAnnotationTypeEnum || (RTELineHeightExtensionAnnotationTypeEnum = {}));
6
+ /**
7
+ * Annotation to set block line height.
8
+ */
9
+ export class LineHeightAnnotation extends BlockAnnotation {
10
+ constructor(lineHeight) {
11
+ super();
12
+ this.type = RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT;
13
+ this.lineHeight = lineHeight;
14
+ }
15
+ /**
16
+ * Generate the map item for the annotation.
17
+ *
18
+ * @param {string} lineHeight - Line height value.
19
+ * @returns {[RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT, LineHeightAnnotation]} Map item for the annotation.
20
+ */
21
+ static from(lineHeight) {
22
+ return [RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT, new LineHeightAnnotation(lineHeight)];
23
+ }
24
+ /**
25
+ * Get the default standalone styles for a given line height value.
26
+ *
27
+ * @param {string} lineHeight - The line height value.
28
+ * @returns {AnnotationStyle} The default standalone styles.
29
+ */
30
+ static getDefaultStyles(lineHeight) {
31
+ return { lineHeight };
32
+ }
33
+ /**
34
+ * Generate the JSON item of the annotation.
35
+ *
36
+ * @returns {Record<string, unknown>} JSON representation of the annotation.
37
+ */
38
+ toJSON() {
39
+ return {
40
+ lineHeight: this.lineHeight,
41
+ };
42
+ }
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ renderClass() {
47
+ return null;
48
+ }
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ clone() {
53
+ return new LineHeightAnnotation(this.lineHeight);
54
+ }
55
+ /**
56
+ * @inheritDoc
57
+ */
58
+ renderStyle() {
59
+ return LineHeightAnnotation.getDefaultStyles(this.lineHeight);
60
+ }
61
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M113.8 39.9c-4.6-5.1-11-7.9-17.8-7.9s-13.3 2.9-17.8 7.9l-72 80c-8.9 9.9-8.1 25 1.8 33.9s25 8.1 33.9-1.8L72 118.5V393.5L41.8 359.9c-8.9-9.9-24-10.7-33.9-1.8s-10.7 24-1.8 33.9l72 80c4.6 5.1 11 7.9 17.8 7.9s13.3-2.9 17.8-7.9l72-80c8.9-9.9 8.1-25-1.8-33.9s-25-8.1-33.9 1.8L120 393.5V118.5l30.2 33.5c8.9 9.9 24 10.7 33.9 1.8s10.7-24 1.8-33.9l-72-80zM248 72c-13.3 0-24 10.7-24 24s10.7 24 24 24H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H248zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H248zM224 416c0 13.3 10.7 24 24 24H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H248c-13.3 0-24 10.7-24 24z"/></svg>`,
3
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Default line height options used by the line-height extension when no
3
+ * custom options are provided.
4
+ */
5
+ export const VegaRTEDefaultLineHeightOptions = [
6
+ { title: '0.5', value: '0.5' },
7
+ { title: '1', value: '1' },
8
+ { title: '1.5', value: '1.5' },
9
+ { title: '2', value: '2' },
10
+ { title: '2.5', value: '2.5' },
11
+ ];
@@ -0,0 +1,41 @@
1
+ import { AnnotationGeneratorStrategyAbstract } from '../../../slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/annotation-generator-strategy.abstract';
2
+ import { RTETextBlock } from '../../../dto/blocks/text-block';
3
+ import { RTEListItemBlock } from '../../../dto/blocks/list-item-block';
4
+ import { VegaRTEDefaultLineHeightOptions } from '../constants';
5
+ const LINE_HEIGHT_AWARE_BLOCK_NAMES = new Set([
6
+ RTETextBlock.name,
7
+ RTEListItemBlock.name,
8
+ ]);
9
+ /** Handle line height annotation. */
10
+ export class LineHeightAnnotationHandler extends AnnotationGeneratorStrategyAbstract {
11
+ constructor(options = VegaRTEDefaultLineHeightOptions) {
12
+ super();
13
+ this.allowedLineHeights = new Set(options.map((option) => option.value));
14
+ }
15
+ /**
16
+ * Can be handled.
17
+ *
18
+ * @param {RTEDtoClassPrototype} targetDto - Target DTO.
19
+ * @returns {boolean} Whether the target DTO supports line-height annotations.
20
+ */
21
+ canHandle(targetDto) {
22
+ return LINE_HEIGHT_AWARE_BLOCK_NAMES.has(targetDto.name);
23
+ }
24
+ /**
25
+ * Extract inline `line-height` as a semantic `lineHeight` annotation.
26
+ *
27
+ * @param {HTMLElement} [element] - Current element.
28
+ * @returns {VegaRTEBlockAnnotations} `{ lineHeight }` when present, otherwise `{}`.
29
+ */
30
+ handle(element) {
31
+ var _a, _b;
32
+ const lineHeight = (_b = (_a = element === null || element === void 0 ? void 0 : element.style.lineHeight) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
33
+ if (!lineHeight) {
34
+ return {};
35
+ }
36
+ if (!this.allowedLineHeights.has(lineHeight)) {
37
+ return {};
38
+ }
39
+ return { lineHeight };
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { RTEFilterStylesStrategy, } from '../../../dto/filter-styles-strategies/filter-styles-strategy.abstract';
2
+ /**
3
+ * Removes a redundant inline `customStyle.lineHeight` when it duplicates the
4
+ * semantic `lineHeight` annotation during HTML-to-DTO conversion.
5
+ *
6
+ * Note: moving out-of-list line-height values from the semantic annotation to
7
+ * `customStyle.lineHeight` is handled by the per-host interceptor in
8
+ * `line-height-host-interceptor.ts`, not here.
9
+ */
10
+ export class LineHeightFilterStylesStrategy extends RTEFilterStylesStrategy {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.stylesToBeFiltered = {};
14
+ }
15
+ /**
16
+ * Always run this strategy, even when autoMatchFormat is disabled.
17
+ *
18
+ * @returns {boolean} Always true.
19
+ */
20
+ get alwaysFilter() {
21
+ return true;
22
+ }
23
+ /**
24
+ * Drop `customStyle.lineHeight` when it duplicates the semantic `lineHeight`.
25
+ *
26
+ * @param {VegaRTEAnnotations} annotations - The annotations to filter.
27
+ * @returns {VegaRTEAnnotations} The same annotations reference.
28
+ */
29
+ filterAnnotations(annotations) {
30
+ const blockAnnotations = annotations;
31
+ const lineHeight = blockAnnotations.lineHeight;
32
+ const customStyle = blockAnnotations.customStyle;
33
+ if (lineHeight && customStyle && customStyle.lineHeight === lineHeight) {
34
+ delete customStyle.lineHeight;
35
+ }
36
+ if (customStyle && Object.keys(customStyle).length === 0) {
37
+ delete blockAnnotations.customStyle;
38
+ }
39
+ return annotations;
40
+ }
41
+ }
@@ -0,0 +1,65 @@
1
+ import { VegaRTEExtension } from '../../extension.abstract';
2
+ import { LineHeightAnnotation, RTELineHeightExtensionAnnotationTypeEnum, } from '../annotations/line-height-annotation';
3
+ import { CustomStyleAnnotation } from '../../../dto/annotations/custom-style-annotation';
4
+ import { CommonAnnotationTypeEnum } from '../../../dto/annotations/common-annotation.abstract';
5
+ /**
6
+ * Per-class set of allowed line-height values, updated as extension instances
7
+ * are constructed with (possibly custom) options.
8
+ */
9
+ const allowedLineHeightsByClass = new WeakMap();
10
+ /**
11
+ * Tracks which block classes have had their JSON `lineHeight` annotation
12
+ * handler installed, so we register it exactly once per class.
13
+ */
14
+ const handlerInstalledClasses = new WeakSet();
15
+ /**
16
+ * Move an out-of-range `lineHeight` annotation into `customStyle.lineHeight`.
17
+ *
18
+ * @param {RTEBlock} block - The block to inspect.
19
+ * @param {ReadonlySet<string>} allowed - Allowed line-height values.
20
+ */
21
+ function normalizeLineHeightStyle(block, allowed) {
22
+ const annotation = block.annotationMap.get(RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT);
23
+ if (!annotation || allowed.has(annotation.lineHeight)) {
24
+ return;
25
+ }
26
+ const value = annotation.lineHeight;
27
+ block.annotationMap.delete(RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT);
28
+ const existing = block.annotationMap.get(CommonAnnotationTypeEnum.CUSTOM_STYLE);
29
+ if (existing) {
30
+ existing.customStyle = Object.assign(Object.assign({}, existing.customStyle), { lineHeight: value });
31
+ }
32
+ else {
33
+ block.annotationMap.set(...CustomStyleAnnotation.from({ lineHeight: value }));
34
+ }
35
+ }
36
+ /**
37
+ * Install the JSON `lineHeight` annotation handler for a block class.
38
+ *
39
+ * @param {LineHeightBlockClass} BlockClass - Target block class.
40
+ */
41
+ export function attachLineHeightFromJson(BlockClass) {
42
+ if (handlerInstalledClasses.has(BlockClass)) {
43
+ return;
44
+ }
45
+ handlerInstalledClasses.add(BlockClass);
46
+ VegaRTEExtension.attachAnnotationFromJson(BlockClass, 'lineHeight', (instance, value) => {
47
+ if (typeof value !== 'string' || value === '') {
48
+ return;
49
+ }
50
+ instance.annotationMap.set(...LineHeightAnnotation.from(value));
51
+ const allowed = allowedLineHeightsByClass.get(BlockClass);
52
+ if (allowed && allowed.size > 0) {
53
+ normalizeLineHeightStyle(instance, allowed);
54
+ }
55
+ });
56
+ }
57
+ /**
58
+ * Update the set of allowed line-height values for a block class.
59
+ *
60
+ * @param {LineHeightBlockClass} BlockClass - Target block class.
61
+ * @param {VegaRTELineHeightOption[]} options - Allowed line-height options.
62
+ */
63
+ export function setAllowedLineHeights(BlockClass, options) {
64
+ allowedLineHeightsByClass.set(BlockClass, new Set(options.map((option) => option.value)));
65
+ }
@@ -0,0 +1,44 @@
1
+ import { VegaRTEDefaultLineHeightOptions } from './constants';
2
+ import { VegaRTEExtension } from '../extension.abstract';
3
+ import { RTETextBlock } from '../../dto/blocks/text-block';
4
+ import { RTEListItemBlock } from '../../dto/blocks/list-item-block';
5
+ import { LineHeightAnnotationAction } from './actions/line-height-annotation-action';
6
+ import { BlockUpdateLineHeightStrategy } from './action-handler-strategies/block-update-line-height-strategy';
7
+ import { RTELineHeightToolbarButtonRenderer } from './line-height-toolbar-button-renderer';
8
+ import { LineHeightAnnotationHandler } from './element-to-dto-strategies/line-height-annotation-handler';
9
+ import { LineHeightFilterStylesStrategy } from './element-to-dto-strategies/line-height-filter-styles-strategy';
10
+ import { attachLineHeightFromJson, setAllowedLineHeights, } from './element-to-dto-strategies/line-height-from-json-handler';
11
+ import { RTEFilterStylesStrategyRegistry } from '../../dto/filter-styles-strategies/filter-styles-strategy-registry';
12
+ /**
13
+ * Rich Text Editor extension that adds configurable line-height support
14
+ * (toolbar control, annotations, content transforms, and JSON parsing).
15
+ */
16
+ export class VegaRTELineHeightExtension extends VegaRTEExtension {
17
+ constructor(options = VegaRTEDefaultLineHeightOptions) {
18
+ super();
19
+ this.options = options;
20
+ this.toolbarButtonRenderer = null;
21
+ this.registerAnnotationHandler(new LineHeightAnnotationHandler(this.options));
22
+ [RTETextBlock, RTEListItemBlock].forEach((BlockClass) => {
23
+ setAllowedLineHeights(BlockClass, this.options);
24
+ });
25
+ }
26
+ /**
27
+ * Register the per-host toolbar renderer so each editor on the page gets
28
+ * its own isolated line-height renderer instance.
29
+ *
30
+ * @typedef HTMLVegaRichTextEditorElement - The type of the host rich text editor element.
31
+ * @param {HTMLVegaRichTextEditorElement} host - The host element.
32
+ */
33
+ prepareBeforeLoad(host) {
34
+ this.toolbarButtonRenderer = new RTELineHeightToolbarButtonRenderer(this.options);
35
+ this.registerToolbarButtonRenderer('lineHeight', this.toolbarButtonRenderer, host);
36
+ }
37
+ }
38
+ (() => {
39
+ [RTETextBlock, RTEListItemBlock].forEach((BlockClass) => {
40
+ VegaRTEExtension.registerActionHandleStrategy(BlockClass.name, LineHeightAnnotationAction.name, new BlockUpdateLineHeightStrategy());
41
+ RTEFilterStylesStrategyRegistry.register(BlockClass.name, new LineHeightFilterStylesStrategy());
42
+ attachLineHeightFromJson(BlockClass);
43
+ });
44
+ })();
@@ -0,0 +1,131 @@
1
+ import { ActionHandleStrategyRegistry } from '../../dto/action-handle-strategies/action-handle-strategy-registry';
2
+ import { RTEBlock } from '../../dto/blocks/block.abstract';
3
+ import { VegaInternalIconManager } from '../../../../helpers/icon/internal-icon-manager';
4
+ import lineHeight from './assets/line-height';
5
+ import { RTECodeBlock } from '../../dto/blocks/code-block';
6
+ import { RTEImageBlock } from '../../dto/blocks/image-block';
7
+ import { NodeAnnotationTypeEnum } from '../../dto/annotations/node-annotation.abstract';
8
+ import { LineHeightAnnotationAction } from './actions/line-height-annotation-action';
9
+ import { RTELineHeightExtensionAnnotationTypeEnum, } from './annotations/line-height-annotation';
10
+ import { VegaRTEToolbarButtonRenderer } from '../base-toolbar-button-renderer';
11
+ import { VegaInternalTranslation } from '../../../../helpers/translation/internal-translation-controller';
12
+ /**
13
+ * Renderer for the line-height toolbar button in the Vega Rich Text Editor.
14
+ */
15
+ export class RTELineHeightToolbarButtonRenderer extends VegaRTEToolbarButtonRenderer {
16
+ constructor(options) {
17
+ super();
18
+ this.options = options;
19
+ }
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ render(createElement, editorContext) {
24
+ const dropdownItems = this.options.map((item) => {
25
+ var _a;
26
+ return ({
27
+ key: item.value,
28
+ label: (_a = item.title) !== null && _a !== void 0 ? _a : item.value,
29
+ });
30
+ });
31
+ return this.renderDropdown(createElement, editorContext, {
32
+ selectType: 'single',
33
+ selectedSourceKey: this.getSelectedSourceValue(editorContext),
34
+ }, [
35
+ this.renderButton(createElement, editorContext, {
36
+ icon: 'line-height',
37
+ showArrowIcon: true,
38
+ tooltip: { text: VegaInternalTranslation.t('Line Height') },
39
+ }),
40
+ this.renderDropdownListTemplate(createElement, dropdownItems),
41
+ ]);
42
+ }
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ isSelected() {
47
+ return false;
48
+ }
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ isDisabled(editorContext) {
53
+ var _a;
54
+ if (editorContext.host.disabled) {
55
+ return true;
56
+ }
57
+ const extensionContext = this.getExtensionContext(editorContext.host);
58
+ const selectedNodes = (_a = extensionContext === null || extensionContext === void 0 ? void 0 : extensionContext.getSelectedNodes()) !== null && _a !== void 0 ? _a : [];
59
+ if (selectedNodes.some((node) => {
60
+ var _a;
61
+ return ((_a = node.getAnnotationByType(NodeAnnotationTypeEnum.CODE)) === null || _a === void 0 ? void 0 : _a.code) ||
62
+ node.parent instanceof RTECodeBlock;
63
+ })) {
64
+ return true;
65
+ }
66
+ const selectedBlocks = this.getSelectedBlocks(editorContext);
67
+ return selectedBlocks.some((block) => block instanceof RTECodeBlock ||
68
+ block instanceof RTEImageBlock ||
69
+ !ActionHandleStrategyRegistry.canHandle(LineHeightAnnotationAction.name, block));
70
+ }
71
+ /**
72
+ * @inheritDoc
73
+ */
74
+ handleDropdownClick(itemValue, editorContext) {
75
+ const selectedLineHeight = itemValue;
76
+ const selectedBlocks = this.getSelectedBlocks(editorContext);
77
+ selectedBlocks.forEach((block) => {
78
+ block.apply(new LineHeightAnnotationAction(selectedLineHeight));
79
+ });
80
+ }
81
+ /**
82
+ * Handle direct toolbar button click.
83
+ */
84
+ handleButtonClick() {
85
+ // No direct click action; selection happens in dropdown options.
86
+ }
87
+ /**
88
+ * Get the selected line-height key for dropdown selection state.
89
+ *
90
+ * @param {VegaRTEToolbarRenderContext} editorContext - Current toolbar context.
91
+ * @returns {string} Selected line-height key or empty string for mixed/none.
92
+ */
93
+ getSelectedSourceValue(editorContext) {
94
+ const selectedBlocks = this.getSelectedBlocks(editorContext);
95
+ if (selectedBlocks.length === 0) {
96
+ return '';
97
+ }
98
+ const firstAnnotation = selectedBlocks[0].getAnnotationByType(RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT);
99
+ const isSameLineHeight = selectedBlocks.every((block) => {
100
+ const annotation = block.getAnnotationByType(RTELineHeightExtensionAnnotationTypeEnum.LINE_HEIGHT);
101
+ return (annotation === null || annotation === void 0 ? void 0 : annotation.lineHeight) === (firstAnnotation === null || firstAnnotation === void 0 ? void 0 : firstAnnotation.lineHeight);
102
+ });
103
+ return isSameLineHeight && firstAnnotation ? firstAnnotation.lineHeight : '';
104
+ }
105
+ /**
106
+ * Resolve selected blocks from selected nodes with range fallback.
107
+ *
108
+ * @param {VegaRTEToolbarRenderContext} editorContext - Current toolbar context.
109
+ * @returns {RTEBlock[]} Selected blocks.
110
+ */
111
+ getSelectedBlocks(editorContext) {
112
+ var _a, _b;
113
+ const extensionContext = this.getExtensionContext(editorContext.host);
114
+ const selectedNodes = (_a = extensionContext === null || extensionContext === void 0 ? void 0 : extensionContext.getSelectedNodes()) !== null && _a !== void 0 ? _a : [];
115
+ const selectedBlocks = [];
116
+ selectedNodes.forEach((node) => {
117
+ if (node.parent instanceof RTEBlock && !selectedBlocks.includes(node.parent)) {
118
+ selectedBlocks.push(node.parent);
119
+ }
120
+ });
121
+ if (selectedBlocks.length === 0 && ((_b = editorContext.rteRange.startNode) === null || _b === void 0 ? void 0 : _b.parent) instanceof RTEBlock) {
122
+ selectedBlocks.push(editorContext.rteRange.startNode.parent);
123
+ }
124
+ return selectedBlocks;
125
+ }
126
+ }
127
+ (() => {
128
+ VegaInternalIconManager.register({
129
+ 'line-height': lineHeight,
130
+ });
131
+ })();
@@ -0,0 +1,24 @@
1
+ export const ARROW_CHARACTERS = [
2
+ { character: '←', title: 'leftwards simple arrow' },
3
+ { character: '→', title: 'rightwards simple arrow' },
4
+ { character: '↑', title: 'upwards simple arrow' },
5
+ { character: '↓', title: 'downwards simple arrow' },
6
+ { character: '⇐', title: 'leftwards double arrow' },
7
+ { character: '⇒', title: 'rightwards double arrow' },
8
+ { character: '⇑', title: 'upwards double arrow' },
9
+ { character: '⇓', title: 'downwards double arrow' },
10
+ { character: '⇠', title: 'leftwards dashed arrow' },
11
+ { character: '⇢', title: 'rightwards dashed arrow' },
12
+ { character: '⇡', title: 'upwards dashed arrow' },
13
+ { character: '⇣', title: 'downwards dashed arrow' },
14
+ { character: '⇤', title: 'leftwards arrow to bar' },
15
+ { character: '⇥', title: 'rightwards arrow to bar' },
16
+ { character: '⤒', title: 'upwards arrow to bar' },
17
+ { character: '⤓', title: 'downwards arrow to bar' },
18
+ { character: '↨', title: 'up down arrow with base' },
19
+ { character: '🔙', title: 'back with leftwards arrow above' },
20
+ { character: '🔚', title: 'end with leftwards arrow above' },
21
+ { character: '🔛', title: 'on with exclamation mark with left right arrow above' },
22
+ { character: '🔜', title: 'soon with rightwards arrow above' },
23
+ { character: '🔝', title: 'top with upwards arrow above' },
24
+ ];
@@ -0,0 +1,38 @@
1
+ export const CURRENCY_CHARACTERS = [
2
+ { character: '$', title: 'Dollar sign' },
3
+ { character: '€', title: 'Euro sign' },
4
+ { character: '¥', title: 'Yen sign' },
5
+ { character: '£', title: 'Pound sign' },
6
+ { character: '¢', title: 'Cent sign' },
7
+ { character: '₠', title: 'Euro-currency sign' },
8
+ { character: '₡', title: 'Colon sign' },
9
+ { character: '₢', title: 'Cruzeiro sign' },
10
+ { character: '₣', title: 'French franc sign' },
11
+ { character: '₤', title: 'Lira sign' },
12
+ { character: '¤', title: 'Currency sign' },
13
+ { character: '₿', title: 'Bitcoin sign' },
14
+ { character: '₥', title: 'Mill sign' },
15
+ { character: '₦', title: 'Naira sign' },
16
+ { character: '₧', title: 'Peseta sign' },
17
+ { character: '₨', title: 'Rupee sign' },
18
+ { character: '₩', title: 'Won sign' },
19
+ { character: '₪', title: 'New sheqel sign' },
20
+ { character: '₫', title: 'Dong sign' },
21
+ { character: '₭', title: 'Kip sign' },
22
+ { character: '₮', title: 'Tugrik sign' },
23
+ { character: '₯', title: 'Drachma sign' },
24
+ { character: '₰', title: 'German penny sign' },
25
+ { character: '₱', title: 'Peso sign' },
26
+ { character: '₲', title: 'Guarani sign' },
27
+ { character: '₳', title: 'Austral sign' },
28
+ { character: '₴', title: 'Hryvnia sign' },
29
+ { character: '₵', title: 'Cedi sign' },
30
+ { character: '₶', title: 'Livre tournois sign' },
31
+ { character: '₷', title: 'Spesmilo sign' },
32
+ { character: '₸', title: 'Tenge sign' },
33
+ { character: '₹', title: 'Indian rupee sign' },
34
+ { character: '₺', title: 'Turkish lira sign' },
35
+ { character: '₻', title: 'Nordic mark sign' },
36
+ { character: '₼', title: 'Manat sign' },
37
+ { character: '₽', title: 'Ruble sign' },
38
+ ];