@globalpayments/vega 2.34.0 → 2.35.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 (582) hide show
  1. package/dist/cjs/{app-globals-4e819773.js → app-globals-fb3693cc.js} +22 -21
  2. package/dist/cjs/{change-manager-bda1d107.js → change-manager-a297e4d2.js} +1 -1
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-e1a6e5ad.js → child-nodes-event-prevent-slimmer-96c3c4ae.js} +3 -3
  4. package/dist/cjs/{child-nodes-notify-observer-slimmer-03a3f79e.js → child-nodes-notify-observer-slimmer-be92f366.js} +5 -5
  5. package/dist/cjs/{component-63af66ea.js → component-73a88c4e.js} +1 -1
  6. package/dist/cjs/{component-global-style-slimmer-6b64a26c.js → component-global-style-slimmer-6749808c.js} +1 -1
  7. package/dist/cjs/{component-usage-runtime-metrics-019d3c00.js → component-usage-runtime-metrics-dcb32c24.js} +1 -1
  8. package/dist/cjs/content-state-3e4467a3.js +134 -0
  9. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-8c6a8fb7.js → create-public-api-runtime-metrics-slimmer-54c3f73b.js} +2 -2
  10. package/dist/cjs/{date-ffe382a4.js → date-0a6bb035.js} +1 -1
  11. package/dist/cjs/{deprecated-property-slimmer-f36e3779.js → deprecated-property-slimmer-fc729fd9.js} +2 -2
  12. package/dist/cjs/{design-token-908e3f69.js → design-token-30c069c1.js} +3 -3
  13. package/dist/cjs/{dom-node-subject-observer-factory-093462f1.js → dom-node-subject-factory-3ec114b8.js} +1 -41
  14. package/dist/cjs/dom-node-subject-observer-factory-5f0eae19.js +44 -0
  15. package/dist/cjs/{dynamic-slimmer-dc30600a.js → dynamic-slimmer-f31fdfd7.js} +1 -1
  16. package/dist/cjs/{element-appender-slimmer-0dd70e61.js → element-appender-slimmer-700b7004.js} +6 -6
  17. package/dist/cjs/{event-emit-slimmer-a46bb411.js → event-emit-slimmer-9c223f73.js} +7 -6
  18. package/dist/cjs/{feature-flag-controller-e97b5f29.js → feature-flag-controller-7b22e598.js} +1 -1
  19. package/dist/cjs/{form-field-controller-slimmer-9aeabcdc.js → form-field-controller-slimmer-dbb321ad.js} +61 -37
  20. package/dist/cjs/global-slimmer-registry-b3bce7e0.js +297 -0
  21. package/dist/cjs/{icon-manager-36dcfb65.js → icon-manager-edc2400b.js} +2 -2
  22. package/dist/cjs/{text-color-toolbar-button-slimmer-b1c9f40e.js → image-annotation-action-d3e1699c.js} +78 -27
  23. package/dist/cjs/{global-slimmer-registry-dd2691b8.js → index-09acd3c9.js} +282 -296
  24. package/dist/cjs/index.cjs.js +27 -28
  25. package/dist/cjs/{inject-keyboard-manager-af37c861.js → inject-keyboard-manager-4a5c27a2.js} +1 -1
  26. package/dist/cjs/{internal-icon-manager-2282a62f.js → internal-icon-manager-5ccb9443.js} +1 -1
  27. package/dist/cjs/{internal-vega-event-manager-d7643ec6.js → internal-vega-event-manager-e5e4bcf4.js} +72 -72
  28. package/dist/cjs/{internal-vega-z-index-manager-e24e4309.js → internal-vega-z-index-manager-f03ddb37.js} +1 -1
  29. package/dist/cjs/{keyboard-manager-5afbc8f1.js → keyboard-manager-2df53b2f.js} +1 -1
  30. package/dist/cjs/{keyboard-manager-slimmer-9be2a880.js → keyboard-manager-slimmer-feba3a83.js} +2 -2
  31. package/dist/cjs/{content-state-3a2724f6.js → list-block-91116257.js} +1393 -679
  32. package/dist/cjs/loader.cjs.js +21 -21
  33. package/dist/cjs/{mutation-observer-slimmer-98bbbdf0.js → mutation-observer-slimmer-895b3d3e.js} +1 -1
  34. package/dist/cjs/{node.abstract-f8075f84.js → node-annotation.abstract-e5d3a859.js} +37 -48
  35. package/dist/cjs/{page-resize-observer-slimmer-e54fa9d4.js → page-resize-observer-slimmer-bb1eaebe.js} +1 -1
  36. package/dist/cjs/{remote-invocation-registry-71a45468.js → remote-invocation-registry-ff9af278.js} +3 -3
  37. package/dist/cjs/{responsive-format-facade-74079f1b.js → responsive-format-facade-4363a00d.js} +1 -1
  38. package/dist/cjs/{state-background-color-formatter-d32a1098.js → state-background-color-formatter-e585a027.js} +1 -1
  39. package/dist/cjs/{string-input-formatter-slimmer-297765c0.js → string-input-formatter-slimmer-6155c9f5.js} +1 -1
  40. package/dist/cjs/{style-formatter-5deb065f.js → style-formatter-63218b76.js} +1 -1
  41. package/dist/cjs/{sub-state-notify-slimmer-73201c53.js → sub-state-notify-slimmer-c2e08e06.js} +8 -8
  42. package/dist/cjs/{sub-state-observer-slimmer-10c0d402.js → sub-state-observer-slimmer-b97e46b5.js} +8 -8
  43. package/dist/cjs/{translation-f6b7ee84.js → translation-b9be41e0.js} +3 -3
  44. package/dist/cjs/{translation-slimmer-90f9f71f.js → translation-slimmer-ec76c5a2.js} +2 -2
  45. package/dist/cjs/{ui-b5906704.js → ui-5fd9b267.js} +1 -1
  46. package/dist/cjs/vega-accordion.cjs.entry.js +41 -39
  47. package/dist/cjs/vega-app-footer.cjs.entry.js +13 -12
  48. package/dist/cjs/vega-app-header-button.cjs.entry.js +42 -40
  49. package/dist/cjs/vega-backdrop.cjs.entry.js +9 -8
  50. package/dist/cjs/vega-banner.cjs.entry.js +36 -34
  51. package/dist/cjs/vega-bar-chart.cjs.entry.js +6 -5
  52. package/dist/cjs/vega-box.cjs.entry.js +13 -12
  53. package/dist/cjs/vega-breadcrumb.cjs.entry.js +34 -32
  54. package/dist/cjs/vega-button-circle.cjs.entry.js +25 -23
  55. package/dist/cjs/vega-button-group_2.cjs.entry.js +32 -30
  56. package/dist/cjs/vega-button-link.cjs.entry.js +26 -24
  57. package/dist/cjs/vega-button.cjs.entry.js +26 -24
  58. package/dist/cjs/vega-calendar_3.cjs.entry.js +135 -133
  59. package/dist/cjs/vega-card.cjs.entry.js +11 -10
  60. package/dist/cjs/vega-carousel.cjs.entry.js +25 -23
  61. package/dist/cjs/vega-checkbox_2.cjs.entry.js +46 -44
  62. package/dist/cjs/vega-chip.cjs.entry.js +36 -34
  63. package/dist/cjs/vega-color-picker.cjs.entry.js +26 -24
  64. package/dist/cjs/vega-combo-box.cjs.entry.js +46 -44
  65. package/dist/cjs/vega-counter-badge.cjs.entry.js +10 -9
  66. package/dist/cjs/vega-date-picker_2.cjs.entry.js +92 -54
  67. package/dist/cjs/{vega-dialog-controller-aaf1f43e.js → vega-dialog-controller-fe610705.js} +2 -2
  68. package/dist/cjs/vega-dialog_2.cjs.entry.js +47 -45
  69. package/dist/cjs/vega-divider.cjs.entry.js +11 -10
  70. package/dist/cjs/vega-dropdown_5.cjs.entry.js +132 -130
  71. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  72. package/dist/cjs/vega-field-error.cjs.entry.js +8 -7
  73. package/dist/cjs/vega-field-label.cjs.entry.js +22 -20
  74. package/dist/cjs/vega-file-uploader.cjs.entry.js +67 -65
  75. package/dist/cjs/vega-flex.cjs.entry.js +14 -13
  76. package/dist/cjs/vega-font.cjs.entry.js +14 -13
  77. package/dist/cjs/vega-form.cjs.entry.js +47 -40
  78. package/dist/cjs/vega-grid.cjs.entry.js +11 -10
  79. package/dist/cjs/vega-hint.cjs.entry.js +7 -6
  80. package/dist/cjs/vega-icon.cjs.entry.js +16 -15
  81. package/dist/cjs/vega-image-uploader.cjs.entry.js +51 -49
  82. package/dist/cjs/vega-input-credit-card.cjs.entry.js +37 -35
  83. package/dist/cjs/vega-input-numeric.cjs.entry.js +30 -28
  84. package/dist/cjs/vega-input-phone-number.cjs.entry.js +98 -50
  85. package/dist/cjs/vega-input-range.cjs.entry.js +40 -38
  86. package/dist/cjs/vega-input-select.cjs.entry.js +62 -60
  87. package/dist/cjs/vega-input.cjs.entry.js +46 -44
  88. package/dist/cjs/vega-item-toggle.cjs.entry.js +21 -19
  89. package/dist/cjs/vega-left-nav_5.cjs.entry.js +102 -100
  90. package/dist/cjs/vega-line-chart.cjs.entry.js +7 -6
  91. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +16 -15
  92. package/dist/cjs/vega-page-notification_2.cjs.entry.js +20 -18
  93. package/dist/cjs/vega-pagination.cjs.entry.js +57 -52
  94. package/dist/cjs/vega-pie-chart.cjs.entry.js +7 -6
  95. package/dist/cjs/vega-popover_2.cjs.entry.js +34 -32
  96. package/dist/cjs/vega-progress-tracker.cjs.entry.js +29 -27
  97. package/dist/cjs/vega-radio_2.cjs.entry.js +50 -48
  98. package/dist/cjs/vega-rich-text-content.cjs.entry.js +323 -23
  99. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +999 -736
  100. package/dist/cjs/vega-section-title.cjs.entry.js +15 -14
  101. package/dist/cjs/vega-segment-control.cjs.entry.js +24 -22
  102. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +49 -47
  103. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +61 -59
  104. package/dist/cjs/vega-sidenav_3.cjs.entry.js +46 -44
  105. package/dist/cjs/vega-signature-capture.cjs.entry.js +40 -38
  106. package/dist/cjs/{block-annotation.abstract-4d88b939.js → vega-skeleton-loader-controller-7dac484f.js} +7 -21
  107. package/dist/cjs/vega-skeleton.cjs.entry.js +26 -25
  108. package/dist/cjs/vega-slot-container.cjs.entry.js +6 -5
  109. package/dist/cjs/vega-stepper.cjs.entry.js +34 -32
  110. package/dist/cjs/vega-tab-group_2.cjs.entry.js +88 -75
  111. package/dist/cjs/vega-table_8.cjs.entry.js +185 -183
  112. package/dist/cjs/vega-text.cjs.entry.js +9 -8
  113. package/dist/cjs/vega-textarea.cjs.entry.js +34 -32
  114. package/dist/cjs/vega-time-picker_2.cjs.entry.js +83 -81
  115. package/dist/cjs/vega-toggle-switch.cjs.entry.js +23 -21
  116. package/dist/cjs/vega-tooltip_2.cjs.entry.js +20 -19
  117. package/dist/cjs/vega.cjs.js +21 -21
  118. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +37 -0
  119. package/dist/collection/components/vega-date-picker/vega-date-picker.js +20 -0
  120. package/dist/collection/components/vega-form/vega-form.js +13 -4
  121. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +38 -3
  122. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +35 -0
  123. package/dist/collection/components/vega-pagination/vega-pagination.js +5 -2
  124. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +18 -1
  125. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +0 -10
  126. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +0 -9
  127. package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +0 -44
  128. package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +0 -10
  129. package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +0 -42
  130. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +0 -9
  131. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +0 -14
  132. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +0 -90
  133. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +0 -11
  134. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +0 -26
  135. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +0 -44
  136. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +0 -11
  137. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +0 -42
  138. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +67 -26
  139. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +45 -31
  140. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +68 -35
  141. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +113 -50
  142. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +23 -60
  143. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +0 -25
  144. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +95 -51
  145. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +35 -0
  146. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +104 -0
  147. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +15 -0
  148. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +14 -0
  149. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +14 -0
  150. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +28 -0
  151. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +49 -0
  152. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +35 -0
  153. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +24 -0
  154. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +258 -0
  155. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +71 -0
  156. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +72 -0
  157. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +37 -0
  158. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.js +55 -0
  159. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +85 -0
  160. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +49 -0
  161. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.js +50 -0
  162. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.js +60 -0
  163. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.js +49 -0
  164. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.js +50 -0
  165. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +56 -0
  166. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +7 -3
  167. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +0 -10
  168. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +0 -48
  169. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +0 -40
  170. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +0 -39
  171. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +0 -14
  172. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +0 -34
  173. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller.js +22 -22
  174. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller.js +9 -1
  175. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.js +4 -1
  176. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +3 -0
  177. package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +10 -16
  178. package/dist/collection/helpers/slimmers/form-field-message-translator.js +17 -0
  179. package/dist/collection/helpers/slimmers/form-field-valid-invoke-slimmer.js +6 -3
  180. package/dist/collection/helpers/validator/form-field-controller.js +9 -3
  181. package/dist/collection/helpers/validator/validation-rule-handler/form-field-validation-rule-handler-chain.js +7 -2
  182. package/dist/esm/{app-globals-9971ccfd.js → app-globals-5b154b6d.js} +13 -12
  183. package/dist/esm/{change-manager-8f5b72c2.js → change-manager-6a7eb88c.js} +1 -1
  184. package/dist/esm/{child-nodes-event-prevent-slimmer-8ceabe63.js → child-nodes-event-prevent-slimmer-97aae8a8.js} +3 -3
  185. package/dist/esm/{child-nodes-notify-observer-slimmer-afc15e00.js → child-nodes-notify-observer-slimmer-289caacc.js} +4 -4
  186. package/dist/esm/{component-051a594c.js → component-cae24190.js} +1 -1
  187. package/dist/esm/{component-global-style-slimmer-631f956f.js → component-global-style-slimmer-000e0c11.js} +1 -1
  188. package/dist/esm/{component-usage-runtime-metrics-21813c36.js → component-usage-runtime-metrics-385c7124.js} +1 -1
  189. package/dist/esm/content-state-f39c4bbf.js +132 -0
  190. package/dist/esm/{create-public-api-runtime-metrics-slimmer-14cb4599.js → create-public-api-runtime-metrics-slimmer-9ab05523.js} +2 -2
  191. package/dist/esm/{date-655c0af8.js → date-732bc749.js} +1 -1
  192. package/dist/esm/{deprecated-property-slimmer-9ea5019c.js → deprecated-property-slimmer-43d184b3.js} +2 -2
  193. package/dist/esm/{design-token-20fdba82.js → design-token-d06bc718.js} +3 -3
  194. package/dist/esm/{dom-node-subject-observer-factory-80358591.js → dom-node-subject-factory-5831cdd4.js} +2 -41
  195. package/dist/esm/dom-node-subject-observer-factory-dc486a8b.js +42 -0
  196. package/dist/esm/{dynamic-slimmer-85746483.js → dynamic-slimmer-90b8af32.js} +1 -1
  197. package/dist/esm/{element-appender-slimmer-4dfa326d.js → element-appender-slimmer-d71e3109.js} +6 -6
  198. package/dist/esm/{event-emit-slimmer-c03cf145.js → event-emit-slimmer-f285e3ac.js} +6 -5
  199. package/dist/esm/{feature-flag-controller-dfde0cfa.js → feature-flag-controller-4b3fe6f8.js} +1 -1
  200. package/dist/esm/{form-field-controller-slimmer-de5fe574.js → form-field-controller-slimmer-add614f1.js} +55 -31
  201. package/dist/esm/global-slimmer-registry-17c4efd4.js +283 -0
  202. package/dist/esm/{icon-manager-3cef32e7.js → icon-manager-b889176b.js} +2 -2
  203. package/dist/esm/{text-color-toolbar-button-slimmer-d0255b98.js → image-annotation-action-a8e00f28.js} +55 -6
  204. package/dist/esm/{global-slimmer-registry-6887a59f.js → index-187f71d1.js} +283 -284
  205. package/dist/esm/index.js +20 -21
  206. package/dist/esm/{inject-keyboard-manager-45309420.js → inject-keyboard-manager-b0135018.js} +1 -1
  207. package/dist/esm/{internal-icon-manager-7fc7535a.js → internal-icon-manager-900a5bb4.js} +1 -1
  208. package/dist/esm/{internal-vega-event-manager-3a3815d3.js → internal-vega-event-manager-07e1b3d9.js} +2 -2
  209. package/dist/esm/{internal-vega-z-index-manager-89e8b6f5.js → internal-vega-z-index-manager-7d2b54c3.js} +1 -1
  210. package/dist/esm/{keyboard-manager-2c06eafe.js → keyboard-manager-4c898a0d.js} +1 -1
  211. package/dist/esm/{keyboard-manager-slimmer-fd177285.js → keyboard-manager-slimmer-f80d6835.js} +2 -2
  212. package/dist/esm/{content-state-acf55eb0.js → list-block-ba82c846.js} +1273 -577
  213. package/dist/esm/loader.js +20 -20
  214. package/dist/esm/{mutation-observer-slimmer-ca2cb2e8.js → mutation-observer-slimmer-6cef9549.js} +1 -1
  215. package/dist/esm/{node.abstract-93746055.js → node-annotation.abstract-d7d52bce.js} +35 -47
  216. package/dist/esm/{page-resize-observer-slimmer-8589ebc8.js → page-resize-observer-slimmer-beb7b0bd.js} +1 -1
  217. package/dist/esm/{remote-invocation-registry-2ec6936d.js → remote-invocation-registry-d97fa3bc.js} +2 -2
  218. package/dist/esm/{responsive-format-facade-559ec469.js → responsive-format-facade-c2ab9c87.js} +1 -1
  219. package/dist/esm/{state-background-color-formatter-16031a43.js → state-background-color-formatter-121ae7d3.js} +1 -1
  220. package/dist/esm/{string-input-formatter-slimmer-c9fb1fa1.js → string-input-formatter-slimmer-73fa06e6.js} +1 -1
  221. package/dist/esm/{style-formatter-51845b6d.js → style-formatter-f91471e8.js} +1 -1
  222. package/dist/esm/{sub-state-notify-slimmer-6e97a58a.js → sub-state-notify-slimmer-48bad548.js} +4 -4
  223. package/dist/esm/{sub-state-observer-slimmer-0968ce04.js → sub-state-observer-slimmer-403cc4e7.js} +4 -4
  224. package/dist/esm/{translation-b3fe8e74.js → translation-a98970d8.js} +3 -3
  225. package/dist/esm/{translation-slimmer-860cd766.js → translation-slimmer-5ee9912b.js} +2 -2
  226. package/dist/esm/{ui-5600b48f.js → ui-62e4be97.js} +1 -1
  227. package/dist/esm/vega-accordion.entry.js +17 -15
  228. package/dist/esm/vega-app-footer.entry.js +4 -3
  229. package/dist/esm/vega-app-header-button.entry.js +20 -18
  230. package/dist/esm/vega-backdrop.entry.js +5 -4
  231. package/dist/esm/vega-banner.entry.js +15 -13
  232. package/dist/esm/vega-bar-chart.entry.js +3 -2
  233. package/dist/esm/vega-box.entry.js +10 -9
  234. package/dist/esm/vega-breadcrumb.entry.js +13 -11
  235. package/dist/esm/vega-button-circle.entry.js +16 -14
  236. package/dist/esm/vega-button-group_2.entry.js +15 -13
  237. package/dist/esm/vega-button-link.entry.js +13 -11
  238. package/dist/esm/vega-button.entry.js +15 -13
  239. package/dist/esm/vega-calendar_3.entry.js +23 -21
  240. package/dist/esm/vega-card.entry.js +8 -7
  241. package/dist/esm/vega-carousel.entry.js +14 -12
  242. package/dist/esm/vega-checkbox_2.entry.js +19 -17
  243. package/dist/esm/vega-chip.entry.js +17 -15
  244. package/dist/esm/vega-color-picker.entry.js +16 -14
  245. package/dist/esm/vega-combo-box.entry.js +20 -18
  246. package/dist/esm/vega-counter-badge.entry.js +4 -3
  247. package/dist/esm/vega-date-picker_2.entry.js +67 -29
  248. package/dist/esm/{vega-dialog-controller-5b23f68c.js → vega-dialog-controller-34eb8967.js} +2 -2
  249. package/dist/esm/vega-dialog_2.entry.js +20 -18
  250. package/dist/esm/vega-divider.entry.js +8 -7
  251. package/dist/esm/vega-dropdown_5.entry.js +27 -25
  252. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  253. package/dist/esm/vega-field-error.entry.js +5 -4
  254. package/dist/esm/vega-field-label.entry.js +11 -9
  255. package/dist/esm/vega-file-uploader.entry.js +19 -17
  256. package/dist/esm/vega-flex.entry.js +11 -10
  257. package/dist/esm/vega-font.entry.js +9 -8
  258. package/dist/esm/vega-form.entry.js +28 -21
  259. package/dist/esm/vega-grid.entry.js +8 -7
  260. package/dist/esm/vega-hint.entry.js +4 -3
  261. package/dist/esm/vega-icon.entry.js +11 -10
  262. package/dist/esm/vega-image-uploader.entry.js +21 -19
  263. package/dist/esm/vega-input-credit-card.entry.js +20 -18
  264. package/dist/esm/vega-input-numeric.entry.js +21 -19
  265. package/dist/esm/vega-input-phone-number.entry.js +70 -22
  266. package/dist/esm/vega-input-range.entry.js +19 -17
  267. package/dist/esm/vega-input-select.entry.js +22 -20
  268. package/dist/esm/vega-input.entry.js +18 -16
  269. package/dist/esm/vega-item-toggle.entry.js +12 -10
  270. package/dist/esm/vega-left-nav_5.entry.js +24 -22
  271. package/dist/esm/vega-line-chart.entry.js +4 -3
  272. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -6
  273. package/dist/esm/vega-page-notification_2.entry.js +8 -6
  274. package/dist/esm/vega-pagination.entry.js +21 -16
  275. package/dist/esm/vega-pie-chart.entry.js +4 -3
  276. package/dist/esm/vega-popover_2.entry.js +18 -16
  277. package/dist/esm/vega-progress-tracker.entry.js +12 -10
  278. package/dist/esm/vega-radio_2.entry.js +21 -19
  279. package/dist/esm/vega-rich-text-content.entry.js +317 -17
  280. package/dist/esm/vega-rich-text-editor_4.entry.js +704 -441
  281. package/dist/esm/vega-section-title.entry.js +4 -3
  282. package/dist/esm/vega-segment-control.entry.js +12 -10
  283. package/dist/esm/vega-selection-chip_2.entry.js +21 -19
  284. package/dist/esm/vega-selection-tile_2.entry.js +21 -19
  285. package/dist/esm/vega-sidenav_3.entry.js +19 -17
  286. package/dist/esm/vega-signature-capture.entry.js +22 -20
  287. package/dist/esm/{block-annotation.abstract-b0554e2b.js → vega-skeleton-loader-controller-0aaaf1fa.js} +8 -21
  288. package/dist/esm/vega-skeleton.entry.js +4 -3
  289. package/dist/esm/vega-slot-container.entry.js +3 -2
  290. package/dist/esm/vega-stepper.entry.js +18 -16
  291. package/dist/esm/vega-tab-group_2.entry.js +49 -36
  292. package/dist/esm/vega-table_8.entry.js +26 -24
  293. package/dist/esm/vega-text.entry.js +5 -4
  294. package/dist/esm/vega-textarea.entry.js +18 -16
  295. package/dist/esm/vega-time-picker_2.entry.js +25 -23
  296. package/dist/esm/vega-toggle-switch.entry.js +16 -14
  297. package/dist/esm/vega-tooltip_2.entry.js +13 -12
  298. package/dist/esm/vega.js +20 -20
  299. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +3 -0
  300. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +9 -0
  301. package/dist/types/components/vega-form/types.d.ts +1 -0
  302. package/dist/types/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.d.ts +19 -0
  303. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +9 -0
  304. package/dist/types/components/vega-pagination/vega-pagination.d.ts +1 -0
  305. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +2 -0
  306. package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +0 -7
  307. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +0 -7
  308. package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +0 -14
  309. package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +0 -8
  310. package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +0 -14
  311. package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +0 -7
  312. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +0 -7
  313. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +0 -6
  314. package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +0 -7
  315. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +0 -7
  316. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +0 -14
  317. package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +0 -7
  318. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -23
  319. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +68 -5
  320. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +45 -4
  321. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +68 -4
  322. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +110 -6
  323. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +21 -6
  324. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +1 -14
  325. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +86 -4
  326. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +28 -0
  327. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +14 -0
  328. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.d.ts +10 -0
  329. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +10 -0
  330. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +9 -0
  331. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +11 -0
  332. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +10 -0
  333. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +21 -0
  334. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +9 -0
  335. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +111 -0
  336. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +32 -0
  337. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.d.ts +19 -0
  338. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +32 -0
  339. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.d.ts +31 -0
  340. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.d.ts +38 -0
  341. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.d.ts +35 -0
  342. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.d.ts +36 -0
  343. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.d.ts +31 -0
  344. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.d.ts +31 -0
  345. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.d.ts +36 -0
  346. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.d.ts +31 -0
  347. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller.d.ts +6 -6
  348. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller.d.ts +1 -0
  349. package/dist/types/components.d.ts +21 -0
  350. package/dist/types/helpers/slimmers/field-error-ui-controller-slimmer.d.ts +2 -7
  351. package/dist/types/helpers/slimmers/form-field-message-translator.d.ts +12 -0
  352. package/dist/types/helpers/validator/form-field-controller.d.ts +5 -2
  353. package/dist/types/helpers/validator/validation-rule-handler/form-field-validation-rule-handler-chain.d.ts +2 -2
  354. package/dist/types/helpers/validator/validator.d.ts +1 -1
  355. package/dist/types/types/components.type.d.ts +1 -0
  356. package/dist/vega/index.esm.js +1 -1
  357. package/dist/vega/p-000b3ab0.js +1 -0
  358. package/dist/vega/p-00738ae9.entry.js +1 -0
  359. package/dist/vega/p-01d0dbe6.entry.js +1 -0
  360. package/dist/vega/p-032df16f.js +1 -0
  361. package/dist/vega/p-05f5e22b.entry.js +1 -0
  362. package/dist/vega/p-0634f06b.entry.js +1 -0
  363. package/dist/vega/p-0945a58d.entry.js +1 -0
  364. package/dist/vega/p-09c5de7f.entry.js +1 -0
  365. package/dist/vega/p-0a8b91f5.entry.js +1 -0
  366. package/dist/vega/{p-f763e2eb.js → p-0af4bda9.js} +1 -1
  367. package/dist/vega/p-0be711b6.entry.js +1 -0
  368. package/dist/vega/p-0c2eb135.entry.js +1 -0
  369. package/dist/vega/p-0ee10fd7.js +1 -0
  370. package/dist/vega/p-12ad8ada.entry.js +1 -0
  371. package/dist/vega/p-14514252.entry.js +1 -0
  372. package/dist/vega/{p-11a19ca0.js → p-149d2801.js} +1 -1
  373. package/dist/vega/p-14f85e30.entry.js +1 -0
  374. package/dist/vega/p-193d2c51.entry.js +1 -0
  375. package/dist/vega/p-1a64716b.entry.js +1 -0
  376. package/dist/vega/p-1c298d5a.js +2 -0
  377. package/dist/vega/p-1d805cc0.entry.js +1 -0
  378. package/dist/vega/p-211df22a.entry.js +1 -0
  379. package/dist/vega/p-21d59593.entry.js +1 -0
  380. package/dist/vega/p-2205ee4c.js +1 -0
  381. package/dist/vega/p-29b09aad.js +1 -0
  382. package/dist/vega/p-2bbcb1ca.entry.js +1 -0
  383. package/dist/vega/{p-443ad3b3.js → p-2d0d575f.js} +1 -1
  384. package/dist/vega/{p-368d0060.js → p-2fbda931.js} +1 -1
  385. package/dist/vega/p-3126edd6.entry.js +1 -0
  386. package/dist/vega/p-33b62194.js +1 -0
  387. package/dist/vega/p-42df8a42.js +1 -0
  388. package/dist/vega/{p-8f93242a.js → p-4387d550.js} +1 -1
  389. package/dist/vega/p-45dd4698.entry.js +1 -0
  390. package/dist/vega/p-4873be94.entry.js +1 -0
  391. package/dist/vega/{p-3b4bde3e.js → p-4b500240.js} +1 -1
  392. package/dist/vega/{p-e0b25eaf.js → p-4f0b56fc.js} +1 -1
  393. package/dist/vega/p-5298fd92.entry.js +1 -0
  394. package/dist/vega/p-5760619c.entry.js +1 -0
  395. package/dist/vega/p-5915634b.js +1 -0
  396. package/dist/vega/p-5dd923e0.entry.js +1 -0
  397. package/dist/vega/p-5f377954.js +1 -1
  398. package/dist/vega/{p-70151c27.js → p-5f589974.js} +1 -1
  399. package/dist/vega/p-61116634.entry.js +1 -0
  400. package/dist/vega/p-618b35e4.entry.js +1 -0
  401. package/dist/vega/p-625771d7.entry.js +1 -0
  402. package/dist/vega/{p-62774231.js → p-6705c68a.js} +1 -1
  403. package/dist/vega/p-68f0aa72.entry.js +1 -0
  404. package/dist/vega/{p-59bdf9b8.js → p-6a334573.js} +1 -1
  405. package/dist/vega/p-6a3989dd.js +1 -0
  406. package/dist/vega/{p-0e0c47ad.js → p-6a5a5c7b.js} +1 -1
  407. package/dist/vega/p-6c09b79a.entry.js +1 -0
  408. package/dist/vega/p-6d23c08b.entry.js +1 -0
  409. package/dist/vega/p-6e1ab235.js +1 -0
  410. package/dist/vega/p-71eeb279.entry.js +1 -0
  411. package/dist/vega/p-7258cb9c.entry.js +1 -0
  412. package/dist/vega/p-72eee5e2.js +1 -0
  413. package/dist/vega/{p-eac38d87.js → p-781fd6e0.js} +1 -1
  414. package/dist/vega/{p-1995e98e.js → p-79ec5d69.js} +1 -1
  415. package/dist/vega/p-7ecbf764.entry.js +1 -0
  416. package/dist/vega/{p-3f1b542a.js → p-81dbada7.js} +1 -1
  417. package/dist/vega/{p-a6a7d0c9.js → p-8284a445.js} +1 -1
  418. package/dist/vega/p-84f2f342.js +1 -0
  419. package/dist/vega/p-85365f8b.js +1 -0
  420. package/dist/vega/p-8ab356e8.entry.js +1 -0
  421. package/dist/vega/p-8ba43640.entry.js +1 -0
  422. package/dist/vega/p-8d69f9ef.entry.js +1 -0
  423. package/dist/vega/p-8fc170d9.entry.js +1 -0
  424. package/dist/vega/p-91aa058f.entry.js +1 -0
  425. package/dist/vega/{p-8c26227e.js → p-926596cc.js} +1 -1
  426. package/dist/vega/p-92707b74.entry.js +1 -0
  427. package/dist/vega/p-97453cd8.entry.js +1 -0
  428. package/dist/vega/{p-843a0c1c.js → p-987fbbd0.js} +1 -1
  429. package/dist/vega/{p-296cc56b.js → p-9b797118.js} +1 -1
  430. package/dist/vega/p-a01f149d.entry.js +1 -0
  431. package/dist/vega/{p-3953c705.js → p-af7a3154.js} +1 -1
  432. package/dist/vega/p-b0e824df.entry.js +13 -0
  433. package/dist/vega/p-b2bca332.entry.js +1 -0
  434. package/dist/vega/p-b57792b7.js +1 -0
  435. package/dist/vega/p-b5990090.js +1 -0
  436. package/dist/vega/p-b6815874.js +1 -0
  437. package/dist/vega/p-b688a71b.js +1 -0
  438. package/dist/vega/p-b6f09c98.entry.js +1 -0
  439. package/dist/vega/p-b9a09a76.js +1 -0
  440. package/dist/vega/p-bcb10ae3.entry.js +1 -0
  441. package/dist/vega/{p-39836361.js → p-be12fa36.js} +1 -1
  442. package/dist/vega/p-c016c3b2.entry.js +1 -0
  443. package/dist/vega/p-c02f650e.entry.js +1 -0
  444. package/dist/vega/p-c2b276f7.entry.js +1 -0
  445. package/dist/vega/p-c51a3e3c.entry.js +1 -0
  446. package/dist/vega/p-c56965fc.entry.js +1 -0
  447. package/dist/vega/p-c6f544fe.entry.js +1 -0
  448. package/dist/vega/p-c88acd87.entry.js +1 -0
  449. package/dist/vega/p-cb8f8458.entry.js +1 -0
  450. package/dist/vega/p-cda26bdf.entry.js +1 -0
  451. package/dist/vega/p-d09d153f.entry.js +1 -0
  452. package/dist/vega/p-d994874a.entry.js +1 -0
  453. package/dist/vega/p-dcdac4d0.entry.js +1 -0
  454. package/dist/vega/p-de25326f.js +1 -0
  455. package/dist/vega/{p-e1e1fcf0.js → p-de664bdd.js} +1 -1
  456. package/dist/vega/p-e04d4ba3.entry.js +1 -0
  457. package/dist/vega/p-e093b2c5.entry.js +1 -0
  458. package/dist/vega/p-e480babd.entry.js +1 -0
  459. package/dist/vega/p-e8f540d8.js +1 -0
  460. package/dist/vega/p-eaf6c3d8.entry.js +1 -0
  461. package/dist/vega/p-efbea85a.entry.js +1 -0
  462. package/dist/vega/p-f2cc36ae.entry.js +1 -0
  463. package/dist/vega/{p-81ead59a.js → p-f31bb1fd.js} +1 -1
  464. package/dist/vega/p-f48711fa.entry.js +1 -0
  465. package/dist/vega/p-f690539e.entry.js +1 -0
  466. package/dist/vega/p-f6b89936.entry.js +1 -0
  467. package/dist/vega/p-f84fd31c.js +1 -0
  468. package/dist/vega/p-fc6ea557.entry.js +1 -0
  469. package/dist/vega/{p-acf7f903.js → p-ff4bafa3.js} +1 -1
  470. package/dist/vega/p-ff50c204.entry.js +1 -0
  471. package/dist/vega/vega.esm.js +1 -1
  472. package/package.json +3 -2
  473. package/dist/cjs/text-node-0d12da5a.js +0 -1077
  474. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-handler.abstract.js +0 -135
  475. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-processor.js +0 -74
  476. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/image-to-dto-handler.js +0 -47
  477. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/inline-block-to-dto-handler.js +0 -39
  478. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/link-to-dto-handler.js +0 -50
  479. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-item-to-dto-handler.js +0 -41
  480. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-to-dto-handler.js +0 -57
  481. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/paragraph-to-dto-handler.js +0 -56
  482. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-block-to-dto-handler.js +0 -77
  483. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-to-dto-handler.js +0 -44
  484. package/dist/esm/text-node-6f7d736c.js +0 -1055
  485. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-handler.abstract.d.ts +0 -67
  486. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-processor.d.ts +0 -29
  487. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/image-to-dto-handler.d.ts +0 -37
  488. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/inline-block-to-dto-handler.d.ts +0 -35
  489. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/link-to-dto-handler.d.ts +0 -37
  490. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-item-to-dto-handler.d.ts +0 -36
  491. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-to-dto-handler.d.ts +0 -39
  492. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/paragraph-to-dto-handler.d.ts +0 -39
  493. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-block-to-dto-handler.d.ts +0 -46
  494. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-to-dto-handler.d.ts +0 -37
  495. package/dist/vega/p-034e6348.entry.js +0 -1
  496. package/dist/vega/p-0cd2b50f.entry.js +0 -1
  497. package/dist/vega/p-109a00cf.entry.js +0 -1
  498. package/dist/vega/p-11cb477b.js +0 -1
  499. package/dist/vega/p-1564cc4d.entry.js +0 -1
  500. package/dist/vega/p-18886765.entry.js +0 -1
  501. package/dist/vega/p-19b26168.entry.js +0 -1
  502. package/dist/vega/p-21992602.entry.js +0 -1
  503. package/dist/vega/p-22563151.entry.js +0 -1
  504. package/dist/vega/p-23795da1.entry.js +0 -1
  505. package/dist/vega/p-29277e41.entry.js +0 -1
  506. package/dist/vega/p-2a7e9422.entry.js +0 -1
  507. package/dist/vega/p-2ca6d977.entry.js +0 -1
  508. package/dist/vega/p-2e419309.entry.js +0 -1
  509. package/dist/vega/p-2fc3af2f.js +0 -1
  510. package/dist/vega/p-3039bef8.js +0 -1
  511. package/dist/vega/p-315667f1.js +0 -1
  512. package/dist/vega/p-34939c97.entry.js +0 -1
  513. package/dist/vega/p-3897bb2d.entry.js +0 -1
  514. package/dist/vega/p-390c5236.entry.js +0 -1
  515. package/dist/vega/p-3ce31dc3.js +0 -1
  516. package/dist/vega/p-452e284a.js +0 -1
  517. package/dist/vega/p-49f4a666.js +0 -1
  518. package/dist/vega/p-4c41dd64.js +0 -1
  519. package/dist/vega/p-55beac7f.entry.js +0 -1
  520. package/dist/vega/p-57405834.entry.js +0 -1
  521. package/dist/vega/p-589e6041.entry.js +0 -1
  522. package/dist/vega/p-5e95402a.entry.js +0 -1
  523. package/dist/vega/p-5eee21b4.entry.js +0 -1
  524. package/dist/vega/p-62cea2e7.entry.js +0 -1
  525. package/dist/vega/p-65b79fd7.js +0 -1
  526. package/dist/vega/p-6741e2b9.entry.js +0 -1
  527. package/dist/vega/p-6a084fe1.entry.js +0 -1
  528. package/dist/vega/p-6b286226.entry.js +0 -1
  529. package/dist/vega/p-6b722905.entry.js +0 -1
  530. package/dist/vega/p-6e4b2752.entry.js +0 -1
  531. package/dist/vega/p-7209d03b.js +0 -1
  532. package/dist/vega/p-728b029a.entry.js +0 -1
  533. package/dist/vega/p-76fc408e.entry.js +0 -1
  534. package/dist/vega/p-7a9f453e.entry.js +0 -1
  535. package/dist/vega/p-80ccd894.entry.js +0 -1
  536. package/dist/vega/p-84c597c8.entry.js +0 -1
  537. package/dist/vega/p-8b78c6a3.entry.js +0 -1
  538. package/dist/vega/p-8be45a45.entry.js +0 -1
  539. package/dist/vega/p-8d7b45f7.entry.js +0 -1
  540. package/dist/vega/p-8e17b9dd.entry.js +0 -1
  541. package/dist/vega/p-925a2137.js +0 -1
  542. package/dist/vega/p-92f88033.entry.js +0 -1
  543. package/dist/vega/p-94de7a02.entry.js +0 -1
  544. package/dist/vega/p-9968e71d.entry.js +0 -1
  545. package/dist/vega/p-9c1eeff2.js +0 -2
  546. package/dist/vega/p-9d1b9e70.entry.js +0 -1
  547. package/dist/vega/p-a5ffe912.js +0 -1
  548. package/dist/vega/p-a6104aa7.js +0 -1
  549. package/dist/vega/p-a6169ad6.entry.js +0 -1
  550. package/dist/vega/p-a8bf559a.js +0 -1
  551. package/dist/vega/p-afec17ad.entry.js +0 -1
  552. package/dist/vega/p-b3f9cc3a.entry.js +0 -13
  553. package/dist/vega/p-b693c1ac.entry.js +0 -1
  554. package/dist/vega/p-b6af0fc1.entry.js +0 -1
  555. package/dist/vega/p-b9e2add4.entry.js +0 -1
  556. package/dist/vega/p-bd894860.entry.js +0 -1
  557. package/dist/vega/p-c0d6a587.entry.js +0 -1
  558. package/dist/vega/p-c1d97d12.entry.js +0 -1
  559. package/dist/vega/p-c26e6820.entry.js +0 -1
  560. package/dist/vega/p-c34487e1.entry.js +0 -1
  561. package/dist/vega/p-c532b132.entry.js +0 -1
  562. package/dist/vega/p-ca2fb711.js +0 -1
  563. package/dist/vega/p-cebf93f1.entry.js +0 -1
  564. package/dist/vega/p-cfdc148a.entry.js +0 -1
  565. package/dist/vega/p-d0351d71.entry.js +0 -1
  566. package/dist/vega/p-d2ab6096.entry.js +0 -1
  567. package/dist/vega/p-d302f052.entry.js +0 -1
  568. package/dist/vega/p-d35643c5.entry.js +0 -1
  569. package/dist/vega/p-d400a1d9.entry.js +0 -1
  570. package/dist/vega/p-d6732a72.entry.js +0 -1
  571. package/dist/vega/p-d720b06a.entry.js +0 -1
  572. package/dist/vega/p-d987e404.entry.js +0 -1
  573. package/dist/vega/p-d9b86108.entry.js +0 -1
  574. package/dist/vega/p-e27e115d.entry.js +0 -1
  575. package/dist/vega/p-e43c2a27.js +0 -1
  576. package/dist/vega/p-e65c8ac7.entry.js +0 -1
  577. package/dist/vega/p-e79057cc.js +0 -1
  578. package/dist/vega/p-e89e9769.entry.js +0 -1
  579. package/dist/vega/p-ecd64c7f.entry.js +0 -1
  580. package/dist/vega/p-f5b2e72a.entry.js +0 -1
  581. package/dist/vega/p-f6af3749.js +0 -1
  582. package/dist/vega/p-fc622a75.js +0 -1
@@ -104,7 +104,6 @@ export class VegaPagination {
104
104
  };
105
105
  this.onPageSizeSelectorChange = (pageSize) => {
106
106
  this.pageSize = pageSize;
107
- this.vegaPageSizeChangeEventEmitter.emit(this.pageSize);
108
107
  };
109
108
  this.calculatePages = () => {
110
109
  if (!this.total) {
@@ -155,7 +154,11 @@ export class VegaPagination {
155
154
  this.currentValueGuard();
156
155
  this.vegaChangeEventEmitter.emit(this.current);
157
156
  }
157
+ watchTotal() {
158
+ this.pageCount = this.calculatePages();
159
+ }
158
160
  watchPageSize() {
161
+ this.vegaPageSizeChangeEventEmitter.emit(this.pageSize);
159
162
  this.pageCount = this.calculatePages();
160
163
  }
161
164
  componentWillLoad() {
@@ -375,7 +378,7 @@ export class VegaPagination {
375
378
  "methodName": "watchCurrent"
376
379
  }, {
377
380
  "propName": "total",
378
- "methodName": "watchPageSize"
381
+ "methodName": "watchTotal"
379
382
  }, {
380
383
  "propName": "pageSize",
381
384
  "methodName": "watchPageSize"
@@ -8,9 +8,17 @@ import { MapToComponentField, VegaSlimmer } from 'vega-slimmer/core';
8
8
  import { h, Host } from '@stencil/core';
9
9
  import { VegaDarkModeStyleController } from '../../../../helpers/theme/controllers/dark-mode-style-controller';
10
10
  import { TextColorToolbarButtonSlimmer } from '../../../vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer';
11
+ import RTETextBlockRenderer from '../../../vega-rich-text-editor/dto/renderers/blocks/text-block-renderer';
12
+ import RTEImageBlockRenderer from '../../../vega-rich-text-editor/dto/renderers/blocks/image-block-renderer';
13
+ import RTEListBlockRenderer from '../../../vega-rich-text-editor/dto/renderers/blocks/list-block-renderer';
11
14
  export class VegaRichTextContentRenderer extends VegaSlimmer {
12
15
  constructor() {
13
16
  super();
17
+ this.blockRenderers = [
18
+ RTETextBlockRenderer,
19
+ RTEImageBlockRenderer,
20
+ RTEListBlockRenderer,
21
+ ];
14
22
  VegaDarkModeStyleController.registerCustomDarkModeColor(TextColorToolbarButtonSlimmer.formatDarkModeColor());
15
23
  }
16
24
  /**
@@ -30,7 +38,16 @@ export class VegaRichTextContentRenderer extends VegaSlimmer {
30
38
  }
31
39
  renderContent() {
32
40
  var _a;
33
- return (_a = this.content) === null || _a === void 0 ? void 0 : _a.blocks.map((block) => block.render({ editable: this.contentEditable }));
41
+ const renderContext = { editable: this.contentEditable };
42
+ return (_a = this.content) === null || _a === void 0 ? void 0 : _a.blocks.map((block) => {
43
+ const blockRenderer = this.getBlockRenderer(block);
44
+ if (blockRenderer) {
45
+ return blockRenderer.render(block, renderContext);
46
+ }
47
+ });
48
+ }
49
+ getBlockRenderer(block) {
50
+ return this.blockRenderers.find((renderer) => renderer.canHandle(block));
34
51
  }
35
52
  shouldShowPlaceholder() {
36
53
  var _a;
@@ -17,16 +17,6 @@ export class BoldAnnotation extends NodeAnnotation {
17
17
  static from(bold) {
18
18
  return [NodeAnnotationTypeEnum.BOLD, new BoldAnnotation(bold)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[NodeAnnotationTypeEnum.BOLD, BoldAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- const style = node.style;
28
- return this.from(node.nodeName === 'STRONG' || style.fontWeight === 'bold' || style.fontWeight === '700');
29
- }
30
20
  /**
31
21
  * Generate the JSON representation of the annotation
32
22
  *
@@ -17,15 +17,6 @@ export class CodeAnnotation extends NodeAnnotation {
17
17
  static from(code) {
18
18
  return [NodeAnnotationTypeEnum.CODE, new CodeAnnotation(code)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[NodeAnnotationTypeEnum.CODE, CodeAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- return this.from(node.classList.contains('v-rte--code') || node.nodeName === 'CODE');
28
- }
29
20
  /**
30
21
  * Generate the JSON representation of the annotation
31
22
  *
@@ -17,50 +17,6 @@ export class HorizontalAlignmentAnnotation extends BlockAnnotation {
17
17
  static from(textAlign) {
18
18
  return [BlockAnnotationTypeEnum.ALIGNMENT, new HorizontalAlignmentAnnotation(textAlign)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[BlockAnnotationTypeEnum.ALIGNMENT, HorizontalAlignmentAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- const alignment = this.getTextAlign(node);
28
- return alignment ? this.from(alignment) : null;
29
- }
30
- /**
31
- * Get the text alignment of an HTML element.
32
- *
33
- * @param {HTMLElement} node - An HTMLElement.
34
- * @returns {Nullable<VegaRTEBlockAlignment>} text alignment.
35
- */
36
- static getTextAlign(node) {
37
- const classList = node.classList;
38
- if (classList.contains(`v-rte--horizontal-alignment-left`)) {
39
- return 'left';
40
- }
41
- else if (classList.contains(`v-rte--horizontal-alignment-center`)) {
42
- return 'center';
43
- }
44
- else if (classList.contains(`v-rte--horizontal-alignment-right`)) {
45
- return 'right';
46
- }
47
- else if (classList.contains(`v-rte--horizontal-alignment-justify`)) {
48
- return 'justify';
49
- }
50
- const style = node.style;
51
- switch (style.textAlign) {
52
- case 'center':
53
- return 'center';
54
- case 'right':
55
- return 'right';
56
- case 'justify':
57
- return 'justify';
58
- case 'left':
59
- return 'left';
60
- default:
61
- return null;
62
- }
63
- }
64
20
  /**
65
21
  * Generate the JSON item of the annotation
66
22
  *
@@ -20,16 +20,6 @@ export class ImageAnnotation extends NodeAnnotation {
20
20
  static from(size, alt) {
21
21
  return [NodeAnnotationTypeEnum.IMAGE, new ImageAnnotation(size, alt)];
22
22
  }
23
- /**
24
- * Generate the map item for the annotation
25
- *
26
- * @param {VegaRichTextImageEditorSizeType} size - size.
27
- * @param {string} alt - alt.
28
- * @returns {[NodeAnnotationTypeEnum.IMAGE, ImageAnnotation]} Map item for the annotation
29
- */
30
- static fromHTML(size, alt) {
31
- return this.from(size || 'md', alt);
32
- }
33
23
  /**
34
24
  * Generate the JSON representation of the annotation
35
25
  *
@@ -17,48 +17,6 @@ export class IndentAnnotation extends BlockAnnotation {
17
17
  static from(indent) {
18
18
  return [BlockAnnotationTypeEnum.INDENT, new IndentAnnotation(indent)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[BlockAnnotationTypeEnum.INDENT, IndentAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- const marginLeft = this.getMarginLeft(node);
28
- return marginLeft && marginLeft >= 0 ? this.from(Math.floor(marginLeft / 16)) : null;
29
- }
30
- /**
31
- * Retrieves the left margin value of an HTML element.
32
- *
33
- * @param {HTMLElement} node - An html element.
34
- * @returns {number} margin left.
35
- */
36
- static getMarginLeft(node) {
37
- const style = node.style;
38
- let marginLeft;
39
- if (style.marginLeft) {
40
- marginLeft = style.marginLeft;
41
- }
42
- else if (style.margin) {
43
- const margins = style.margin.split(' ');
44
- switch (margins.length) {
45
- case 4:
46
- marginLeft = margins[3];
47
- break;
48
- case 2:
49
- case 3:
50
- marginLeft = margins[1];
51
- break;
52
- default:
53
- marginLeft = margins[0];
54
- break;
55
- }
56
- }
57
- else {
58
- return null;
59
- }
60
- return Number(marginLeft.replace('px', ''));
61
- }
62
20
  /**
63
21
  * Generate the JSON item of the annotation
64
22
  *
@@ -17,15 +17,6 @@ export class ItalicAnnotation extends NodeAnnotation {
17
17
  static from(italic) {
18
18
  return [NodeAnnotationTypeEnum.ITALIC, new ItalicAnnotation(italic)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[NodeAnnotationTypeEnum.ITALIC, ItalicAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- return this.from(node.nodeName === 'I' || node.style.fontStyle === 'italic' || node.nodeName === 'EM');
28
- }
29
20
  /**
30
21
  * Generate the JSON representation of the annotation
31
22
  *
@@ -20,20 +20,6 @@ export class LinkAnnotation extends NodeAnnotation {
20
20
  new LinkAnnotation({ href: link.href, groupKey: link.groupKey }),
21
21
  ];
22
22
  }
23
- /**
24
- * Generate the map item for the annotation by html element
25
- *
26
- * @param {HTMLElement} node - An html element.
27
- * @returns {[NodeAnnotationTypeEnum.LINK, LinkAnnotation]} Map item for the annotation
28
- */
29
- static fromHTML(node) {
30
- return node.hasAttribute('data-href')
31
- ? this.from({
32
- href: node.getAttribute('data-href'),
33
- groupKey: node.getAttribute('data-group-key'),
34
- })
35
- : null;
36
- }
37
23
  /**
38
24
  * Generate the JSON representation of the annotation
39
25
  *
@@ -1,12 +1,4 @@
1
- import { h } from '@stencil/core';
2
1
  import { Annotation, InternalAnnotationTypeEnum } from './annotation.abstract';
3
- import { generateUUID } from '../../../../utils/misc';
4
- import { LinkAnnotationAction } from '../actions/link-annotation-action';
5
- import { NodeAnnotationTypeEnum } from './node-annotation.abstract';
6
- import { DomNodeSubjectObserverFactory } from '../../../../helpers/change-manager/subject/dom-node-subject/dom-node-subject-observer-factory';
7
- import { VegaChange } from '../../../../helpers/event-manager/event-id/vega-event-id';
8
- import { isNonNullable } from '../../../../types/type-guard';
9
- import { createEnterKeyHandlerToTriggerClick } from '../../../../utils/accessibility';
10
2
  /**
11
3
  * Annotation to represent a link of grouped nodes
12
4
  */
@@ -17,86 +9,4 @@ export class LinkGroupAnnotation extends Annotation {
17
9
  this.linkGroups = new Map();
18
10
  this.linkGroups = new Map([[groupKey, []]]);
19
11
  }
20
- renderNodes(nodes, { editable }) {
21
- const blockNodes = this.groupNodesByLink(nodes);
22
- return blockNodes.flatMap((item) => {
23
- if (this.isLinkGroup(item)) {
24
- const linkAnnotation = item[0].getAnnotationByType(NodeAnnotationTypeEnum.LINK);
25
- return editable
26
- ? this.renderLinkEditorWrapper(item, linkAnnotation)
27
- : this.renderLink(item, linkAnnotation);
28
- }
29
- return item.render();
30
- });
31
- }
32
- renderLinkEditorWrapper(linkNodes, linkAnnotation) {
33
- const { href } = linkAnnotation.link;
34
- const textFromNodes = linkNodes.map((node) => node.text).join('');
35
- const handleChange = ({ detail, }) => {
36
- switch (detail.action) {
37
- case 'link': {
38
- const { url, text } = detail.payload;
39
- const textChanged = text !== textFromNodes;
40
- const groupKey = generateUUID();
41
- linkNodes.forEach((node) => {
42
- const linkAnnotationAction = new LinkAnnotationAction({
43
- link: { href: url, groupKey: groupKey },
44
- newText: textChanged ? text : undefined,
45
- needMergeNode: textChanged && linkNodes.length > 1,
46
- doSplit: false,
47
- });
48
- node.apply(linkAnnotationAction);
49
- });
50
- return;
51
- }
52
- case 'unlink': {
53
- linkNodes.forEach((node) => node.deleteAnnotationByType(NodeAnnotationTypeEnum.LINK));
54
- return;
55
- }
56
- }
57
- };
58
- let linkWrapperRef;
59
- return (h("span", { class: "link-editor-wrapper", role: "link", tabIndex: 0, onKeyDown: createEnterKeyHandlerToTriggerClick(), ref: (ref) => {
60
- if (ref) {
61
- linkWrapperRef = ref;
62
- }
63
- } },
64
- this.renderLink(linkNodes, linkAnnotation),
65
- h("vega-rich-text-link-editor", { record: {
66
- text: textFromNodes,
67
- url: href,
68
- }, ref: (ref) => {
69
- if (ref) {
70
- ref.target = linkWrapperRef;
71
- DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange, handleChange);
72
- }
73
- } })));
74
- }
75
- renderLink(linkNodes, linkAnnotation) {
76
- const { href } = linkAnnotation.link;
77
- return (h("a", { class: "v-rte--link", href: href, target: "_blank" }, linkNodes.map((node) => node.render())));
78
- }
79
- isLinkGroup(item) {
80
- return Array.isArray(item);
81
- }
82
- groupNodesByLink(nodes) {
83
- return nodes.reduce((acc, node) => {
84
- const nodeLinkAnnotation = node.getAnnotationByType(NodeAnnotationTypeEnum.LINK);
85
- const lastGroup = acc[acc.length - 1];
86
- if (isNonNullable(nodeLinkAnnotation)) {
87
- if (lastGroup &&
88
- this.isLinkGroup(lastGroup) &&
89
- lastGroup[0].getAnnotationByType(NodeAnnotationTypeEnum.LINK).toEqual(nodeLinkAnnotation)) {
90
- lastGroup.push(node);
91
- }
92
- else {
93
- acc.push([node]);
94
- }
95
- }
96
- else {
97
- acc.push(node);
98
- }
99
- return acc;
100
- }, []);
101
- }
102
12
  }
@@ -17,17 +17,6 @@ export class StrikethroughAnnotation extends NodeAnnotation {
17
17
  static from(strikethrough) {
18
18
  return [NodeAnnotationTypeEnum.STRIKETHROUGH, new StrikethroughAnnotation(strikethrough)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[NodeAnnotationTypeEnum.STRIKETHROUGH, StrikethroughAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- return this.from(node.style.textDecoration.includes('line-through') ||
28
- node.nodeName === 'S' ||
29
- node.classList.contains('v-rte--strikethrough'));
30
- }
31
20
  /**
32
21
  * Generate the JSON representation of the annotation
33
22
  *
@@ -1,6 +1,5 @@
1
1
  import { NodeAnnotation, NodeAnnotationTypeEnum } from './node-annotation.abstract';
2
2
  import { RTE_TEXT_COLORS } from '../../constants/constant';
3
- import { rgbToHex } from '../../../../utils/ui';
4
3
  import { VegaThemeManager } from '../../../../helpers/theme/theme-manager';
5
4
  /**
6
5
  * Annotation to make text with text color
@@ -20,31 +19,6 @@ export class TextColorAnnotation extends NodeAnnotation {
20
19
  static from(textColor) {
21
20
  return [NodeAnnotationTypeEnum.TEXT_COLOR, new TextColorAnnotation(textColor)];
22
21
  }
23
- /**
24
- * Generate the map item for the annotation by html element
25
- *
26
- * @param {HTMLElement} node - An html element.
27
- * @returns {[NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation]} Map item for the annotation
28
- */
29
- static fromHTML(node) {
30
- var _a;
31
- const color = node.style.color;
32
- const hexColor = (_a = rgbToHex(color)) === null || _a === void 0 ? void 0 : _a.toUpperCase();
33
- if (hexColor) {
34
- const colorSchema = RTE_TEXT_COLORS.find((schema) => schema.light === hexColor || schema.dark === hexColor);
35
- if (colorSchema)
36
- return this.from(colorSchema.key);
37
- return null;
38
- }
39
- else {
40
- for (const color of RTE_TEXT_COLORS) {
41
- if (node.style.color.includes(color.key)) {
42
- return this.from(color.key);
43
- }
44
- }
45
- return null;
46
- }
47
- }
48
22
  /**
49
23
  * Generate the JSON representation of the annotation
50
24
  *
@@ -17,50 +17,6 @@ export class TextStyleAnnotation extends BlockAnnotation {
17
17
  static from(textStyle) {
18
18
  return [BlockAnnotationTypeEnum.TEXT_STYLE, new TextStyleAnnotation(textStyle)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[BlockAnnotationTypeEnum.TEXT_STYLE, TextStyleAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- return this.from(this.getTextStyle(node));
28
- }
29
- /**
30
- * Get the type of block.
31
- *
32
- * @param {HTMLElement} node - An HTMLElement.
33
- * @returns {VegaRTETextStyleType} text style type.
34
- */
35
- static getTextStyle(node) {
36
- if (node.nodeType !== Node.TEXT_NODE && node.hasAttribute('data-type')) {
37
- return node.getAttribute('data-type');
38
- }
39
- switch (node.style.fontSize) {
40
- case '36px':
41
- return 'title';
42
- case '28px':
43
- return 'subtitle';
44
- case '22px':
45
- return 'heading-1';
46
- case '20px':
47
- return 'heading-2';
48
- case '18px':
49
- return 'heading-3';
50
- default:
51
- break;
52
- }
53
- switch (node.nodeName) {
54
- case 'H1':
55
- return 'heading-1';
56
- case 'H2':
57
- return 'heading-2';
58
- case 'H3':
59
- return 'heading-3';
60
- default:
61
- return 'paragraph';
62
- }
63
- }
64
20
  /**
65
21
  * Generate the JSON representation of the annotation
66
22
  *
@@ -17,17 +17,6 @@ export class UnderlineAnnotation extends NodeAnnotation {
17
17
  static from(underline) {
18
18
  return [NodeAnnotationTypeEnum.UNDERLINE, new UnderlineAnnotation(underline)];
19
19
  }
20
- /**
21
- * Generate the map item for the annotation by html element
22
- *
23
- * @param {HTMLElement} node - An html element.
24
- * @returns {[NodeAnnotationTypeEnum.UNDERLINE, UnderlineAnnotation]} Map item for the annotation
25
- */
26
- static fromHTML(node) {
27
- return this.from(node.style.textDecoration.includes('underline') ||
28
- node.nodeName === 'U' ||
29
- node.classList.contains('v-rte--underline'));
30
- }
31
20
  /**
32
21
  * Generate the JSON representation of the annotation
33
22
  *
@@ -3,7 +3,6 @@ import ChangeManager from '../../../../helpers/change-manager/change-manager';
3
3
  import domNodeSubjectFactory from '../../../../helpers/change-manager/subject/dom-node-subject/dom-node-subject-factory';
4
4
  import stateEntityRenderingRegistry from '../../slimmers/controllers/state-entity-rendering-registry';
5
5
  import { VegaInternalRichTextEditorFlushChanges } from '../../../../helpers/event-manager/event-id/vega-internal-event-id';
6
- import { isNonNullable } from '../../../../types/type-guard';
7
6
  import { ModifyContentAction } from '../actions/modify-content-action.abstract';
8
7
  import { HorizontalAlignmentAnnotation } from '../annotations/horizontal-alignment-annotation';
9
8
  import { IndentAnnotation } from '../annotations/indent-annotation';
@@ -11,7 +10,6 @@ import { BlockBaseOperator } from '../helper/block-base-operator';
11
10
  import { AppendChildNodesAction } from '../actions/append-child-nodes-action';
12
11
  import { RemoveChildAction } from '../actions/remove-child-action';
13
12
  import { ZERO_WIDTH_SPACE } from '../../constants/constant';
14
- import { TextStyleAnnotation } from '../annotations/text-style-annotation';
15
13
  /**
16
14
  * Abstract class for block
17
15
  */
@@ -41,23 +39,6 @@ export class RTEBlock extends BlockBaseOperator {
41
39
  return IndentAnnotation.from(value);
42
40
  }
43
41
  }
44
- /**
45
- * Create annotations for block element.
46
- *
47
- * @param {string} type - Annotations type.
48
- * @param {HTMLElement} node - current node.
49
- * @returns {Nullable<[BlockAnnotationTypeEnum, BlockAnnotation]>} - result.
50
- */
51
- static createAnnotationEntityFromHTML(type, node) {
52
- switch (type) {
53
- case 'ALIGNMENT':
54
- return HorizontalAlignmentAnnotation.fromHTML(node);
55
- case 'TEXT_STYLE':
56
- return TextStyleAnnotation.fromHTML(node);
57
- case 'INDENT':
58
- return IndentAnnotation.fromHTML(node);
59
- }
60
- }
61
42
  /**
62
43
  * Class to JSON object
63
44
  *
@@ -120,29 +101,6 @@ export class RTEBlock extends BlockBaseOperator {
120
101
  this.annotationMap.set(annotation.type, annotation);
121
102
  typeof this.doAnnotationActionApply === 'function' && this.doAnnotationActionApply(action);
122
103
  }
123
- /**
124
- * Get styles from annotations
125
- *
126
- * @returns {AnnotationStyle} - Annotation style
127
- */
128
- getStyles() {
129
- return Array.from(this.annotationMap.values())
130
- .filter((annotation) => annotation instanceof BlockAnnotation)
131
- .map((annotation) => annotation.render())
132
- .filter(isNonNullable)
133
- .reduce((current, obj) => (Object.assign(Object.assign({}, current), obj)), {});
134
- }
135
- /**
136
- * Get classes from annotations
137
- *
138
- * @returns {AnnotationStyle} - Annotation style
139
- */
140
- getClasses() {
141
- return Array.from(this.annotationMap.values())
142
- .map((annotation) => { var _a; return (_a = annotation.renderClass) === null || _a === void 0 ? void 0 : _a.call(annotation); })
143
- .filter(isNonNullable)
144
- .reduce((pre, cur) => [pre, cur].join(' '), '');
145
- }
146
104
  /**
147
105
  * Appends a list of RTENode objects to the current node's child nodes and sets the parent block of each node to the current node.
148
106
  *