@heartlandone/vega 2.78.0 → 2.80.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 (1535) hide show
  1. package/dist/cjs/align-left-4a76df69.js +22 -0
  2. package/dist/cjs/app-globals-7a48292d.js +430 -0
  3. package/dist/cjs/aria-dialog-focusable-trap-slimmer-5a0a78fe.js +272 -0
  4. package/dist/cjs/auto-run-when-re-render-task-queue-slimmer.abstract-5734634d.js +51 -0
  5. package/dist/cjs/breakpoints-1cc2c4c6.js +56 -0
  6. package/dist/cjs/child-nodes-notify-observer-slimmer-a8d13f4c.js +90 -0
  7. package/dist/cjs/code-block-71a330a1.js +4521 -0
  8. package/dist/cjs/component-value-history-controller-slimmer.abstract-fd077a6c.js +714 -0
  9. package/dist/cjs/content-state-afa26456.js +4459 -0
  10. package/dist/cjs/date-required-rule-9f0e3e99.js +92 -0
  11. package/dist/cjs/deprecated-property-slimmer-300a3929.js +51 -0
  12. package/dist/cjs/design-token-3f9589eb.js +402 -0
  13. package/dist/cjs/dom-node-subject-observer-factory-a3a60da4.js +141 -0
  14. package/dist/cjs/dto-renderer-manager-ae5fcbba.js +58 -0
  15. package/dist/cjs/element-appender-slimmer-7a66229b.js +1974 -0
  16. package/dist/cjs/event-emit-slimmer-024e26bb.js +267 -0
  17. package/dist/cjs/form-field-controller-slimmer-c487cf2b.js +1266 -0
  18. package/dist/cjs/image-annotation-action-4e72af4b.js +285 -0
  19. package/dist/cjs/index-58ea899e.js +4 -0
  20. package/dist/cjs/index.cjs.js +41 -36
  21. package/dist/cjs/inject-keyboard-manager-d1a82089.js +37 -0
  22. package/dist/cjs/internal-translation-controller-9f58a4e4.js +301 -0
  23. package/dist/cjs/keyboard-manager-9dbbb0d4.js +148 -0
  24. package/dist/cjs/keyboard-manager-slimmer-68cff676.js +39 -0
  25. package/dist/cjs/loader.cjs.js +26 -21
  26. package/dist/cjs/month-view-generator-65a2f883.js +101 -0
  27. package/dist/cjs/object-b53e9416.js +52 -0
  28. package/dist/cjs/page-resize-observer-slimmer-273d62ef.js +123 -0
  29. package/dist/cjs/public-rules-36f202b3.js +46 -0
  30. package/dist/cjs/range-fa15d524.js +178 -0
  31. package/dist/cjs/responsive-format-facade-4419b4ae.js +944 -0
  32. package/dist/cjs/rich-text-editor-required-rule-7d4c2973.js +64 -0
  33. package/dist/cjs/split-cell-operation-19f98afb.js +2411 -0
  34. package/dist/cjs/string-format-strategy.abstract-c65d9861.js +63 -0
  35. package/dist/cjs/string-input-formatter-slimmer-c2e04acc.js +230 -0
  36. package/dist/cjs/string-mask-strategy-418fc0b8.js +203 -0
  37. package/dist/cjs/style-formatter-3c9ce0e5.js +34 -0
  38. package/dist/cjs/sub-state-notify-slimmer-7a4c6061.js +81 -0
  39. package/dist/cjs/sub-state-observer-slimmer-f728e068.js +134 -0
  40. package/dist/cjs/time-required-rule-ad091302.js +141 -0
  41. package/dist/cjs/token-extension-90396de7.js +7438 -0
  42. package/dist/cjs/translation-slimmer-c069ca84.js +42 -0
  43. package/dist/cjs/type-guard-d760850a.js +2033 -0
  44. package/dist/cjs/ui-32120990.js +62 -0
  45. package/dist/cjs/ui-9e8c9732.js +283 -0
  46. package/dist/cjs/valid-credit-card-number-rule-5ce8e973.js +173 -0
  47. package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
  48. package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -10
  49. package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
  50. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  51. package/dist/cjs/vega-box.cjs.entry.js +9 -9
  52. package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-button-circle.cjs.entry.js +10 -10
  54. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  55. package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
  56. package/dist/cjs/vega-button.cjs.entry.js +10 -10
  57. package/dist/cjs/vega-calendar_4.cjs.entry.js +247 -173
  58. package/dist/cjs/vega-card.cjs.entry.js +7 -7
  59. package/dist/cjs/vega-carousel.cjs.entry.js +11 -11
  60. package/dist/cjs/vega-checkbox_2.cjs.entry.js +11 -11
  61. package/dist/cjs/vega-chip.cjs.entry.js +10 -10
  62. package/dist/cjs/vega-code-block.cjs.entry.js +16 -15
  63. package/dist/cjs/vega-color-picker.cjs.entry.js +10 -10
  64. package/dist/cjs/vega-combo-box.cjs.entry.js +13 -13
  65. package/dist/cjs/vega-date-picker_2.cjs.entry.js +109 -36
  66. package/dist/cjs/vega-dialog_2.cjs.entry.js +53 -15
  67. package/dist/cjs/vega-divider.cjs.entry.js +7 -7
  68. package/dist/cjs/vega-dropdown_5.cjs.entry.js +17 -17
  69. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  70. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  71. package/dist/cjs/vega-file-uploader.cjs.entry.js +11 -11
  72. package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -6
  73. package/dist/cjs/vega-flex.cjs.entry.js +9 -9
  74. package/dist/cjs/vega-font.cjs.entry.js +8 -8
  75. package/dist/cjs/vega-form.cjs.entry.js +13 -13
  76. package/dist/cjs/vega-grid.cjs.entry.js +9 -8
  77. package/dist/cjs/vega-icon.cjs.entry.js +7 -7
  78. package/dist/cjs/vega-image-uploader.cjs.entry.js +13 -13
  79. package/dist/cjs/vega-input-credit-card.cjs.entry.js +14 -14
  80. package/dist/cjs/vega-input-numeric.cjs.entry.js +14 -14
  81. package/dist/cjs/vega-input-passcode.cjs.entry.js +13 -13
  82. package/dist/cjs/vega-input-phone-number.cjs.entry.js +12 -12
  83. package/dist/cjs/vega-input-range.cjs.entry.js +11 -11
  84. package/dist/cjs/vega-input-select.cjs.entry.js +13 -13
  85. package/dist/cjs/vega-input.cjs.entry.js +56 -33
  86. package/dist/cjs/vega-internal-event-id-a1837fa2.js +126 -0
  87. package/dist/cjs/vega-item-toggle.cjs.entry.js +6 -6
  88. package/dist/cjs/vega-left-nav_5.cjs.entry.js +15 -15
  89. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
  90. package/dist/cjs/vega-page-notification_2.cjs.entry.js +2 -2
  91. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  92. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +5 -5
  93. package/dist/cjs/vega-pagination.cjs.entry.js +11 -11
  94. package/dist/cjs/vega-popover_2.cjs.entry.js +53 -16
  95. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +14 -14
  96. package/dist/cjs/vega-radio_2.cjs.entry.js +14 -14
  97. package/dist/cjs/vega-rich-text-content.cjs.entry.js +22 -24
  98. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +217 -252
  99. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +1527 -0
  100. package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
  101. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +13 -13
  102. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +12 -12
  103. package/dist/cjs/vega-sidenav_3.cjs.entry.js +12 -12
  104. package/dist/cjs/vega-signature-capture.cjs.entry.js +15 -15
  105. package/dist/cjs/vega-stepper.cjs.entry.js +10 -10
  106. package/dist/cjs/vega-tab-group_2.cjs.entry.js +6 -6
  107. package/dist/cjs/vega-table_11.cjs.entry.js +14 -14
  108. package/dist/cjs/vega-text.cjs.entry.js +4 -4
  109. package/dist/cjs/vega-textarea.cjs.entry.js +10 -10
  110. package/dist/cjs/vega-time-picker_2.cjs.entry.js +62 -20
  111. package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -10
  112. package/dist/cjs/vega-tooltip_2.cjs.entry.js +14 -14
  113. package/dist/cjs/vega.cjs.js +26 -21
  114. package/dist/cjs/wait-for-component-did-render-b6aba2de.js +32 -0
  115. package/dist/collection/collection-manifest.json +10 -0
  116. package/dist/collection/components/vega-backdrop/slimmers/renerers/vega-backdrop-renderer.js +1 -1
  117. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-day-view-focus-slimmer.js +34 -0
  118. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +1 -1
  119. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +2 -1
  120. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +28 -7
  121. package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +4 -4
  122. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.css +15 -12
  123. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +1 -1
  124. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +20 -3
  125. package/dist/collection/components/vega-calendar/vega-calendar.css +1 -1
  126. package/dist/collection/components/vega-calendar/vega-calendar.js +5 -0
  127. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +13 -1
  128. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +28 -2
  129. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-input-renderer-base.abstract.js +7 -1
  130. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.js +15 -2
  131. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +1 -1
  132. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.js +18 -1
  133. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +5 -5
  134. package/dist/collection/components/vega-grid/vega-grid.css +72 -0
  135. package/dist/collection/components/vega-grid/vega-grid.js +30 -0
  136. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +13 -12
  137. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +4 -1
  138. package/dist/collection/components/vega-input/vega-input.js +35 -1
  139. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +34 -1
  140. package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +7 -2
  141. package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +26 -1
  142. package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +6 -1
  143. package/dist/collection/components/vega-popover/vega-popover.js +7 -0
  144. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +9 -1
  145. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +10 -0
  146. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +2 -1
  147. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +13 -6
  148. package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +18 -9
  149. package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +11 -1
  150. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +2 -1
  151. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +12 -1
  152. package/dist/collection/components/vega-rich-text-editor/dto/annotations/list-annotation.js +12 -4
  153. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +2 -1
  154. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-format-default-styles.js +22 -0
  155. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +43 -32
  156. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +2 -1
  157. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +24 -2
  158. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +35 -0
  159. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.js +62 -0
  160. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/image-node/image-filter-styles-strategy.js +16 -0
  161. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +12 -0
  162. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +13 -0
  163. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/alignment-filter-styles-strategy.js +39 -0
  164. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/code-filter-styles-strategy.js +26 -0
  165. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/link-filter-styles-strategy.js +30 -0
  166. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/text-format-filter-styles-strategy.js +89 -0
  167. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +0 -10
  168. package/dist/collection/components/vega-rich-text-editor/dto/setup.js +18 -0
  169. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +2 -1
  170. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +10 -5
  171. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +18 -1
  172. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +42 -0
  173. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +26 -0
  174. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +23 -0
  175. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-table-insert-paragraph-interceptor.js +55 -0
  176. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/create-segment-table-cell-strategy.js +33 -0
  177. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +25 -0
  178. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +176 -0
  179. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +154 -0
  180. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +54 -0
  181. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +163 -0
  182. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-different-section-strategy.js +83 -0
  183. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-same-section-strategy.js +55 -0
  184. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/merge-cells-strategy.js +120 -0
  185. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/replace-table-cell-strategy.js +21 -0
  186. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +33 -0
  187. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-horizontally-strategy.js +143 -0
  188. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-vertically-strategy.js +80 -0
  189. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-table-cell-strategy.js +45 -0
  190. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +27 -0
  191. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-row-strategy.abstract.js +296 -0
  192. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +274 -0
  193. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +159 -0
  194. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.js +33 -0
  195. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.js +36 -0
  196. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/create-segment-table-cell-action.js +13 -0
  197. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +13 -0
  198. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +13 -0
  199. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +18 -0
  200. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +13 -0
  201. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +19 -0
  202. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-into-different-section-action.js +21 -0
  203. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-into-same-section-action.js +27 -0
  204. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.js +17 -0
  205. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/replace-table-cell-action.js +13 -0
  206. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.js +13 -0
  207. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-cell-horizontally-action.js +12 -0
  208. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-cell-vertically-action.js +12 -0
  209. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-table-cell-action.js +13 -0
  210. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +18 -0
  211. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +13 -0
  212. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +28 -0
  213. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +17 -0
  214. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +13 -0
  215. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +15 -0
  216. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +38 -0
  217. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +78 -0
  218. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +69 -0
  219. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +108 -0
  220. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +14 -0
  221. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +106 -0
  222. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +69 -0
  223. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +192 -0
  224. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.js +66 -0
  225. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +56 -0
  226. package/dist/collection/components/vega-rich-text-editor/extensions/table/constants/styles.constants.js +27 -0
  227. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +119 -0
  228. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +56 -0
  229. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +69 -0
  230. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +97 -0
  231. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +60 -0
  232. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +53 -0
  233. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +60 -0
  234. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.js +71 -0
  235. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.js +42 -0
  236. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.js +42 -0
  237. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.js +93 -0
  238. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.js +42 -0
  239. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.js +42 -0
  240. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +15 -0
  241. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +22 -0
  242. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +72 -0
  243. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +263 -0
  244. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +12 -0
  245. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +15 -0
  246. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-popover-base-renderer.js +19 -0
  247. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +116 -0
  248. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +15 -0
  249. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.js +148 -0
  250. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-toolbar-popover-renderer.js +178 -0
  251. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.js +78 -0
  252. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.js +17 -0
  253. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.js +15 -0
  254. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.js +19 -0
  255. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.js +136 -0
  256. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.js +109 -0
  257. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/merge-cells-operation.js +100 -0
  258. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +160 -0
  259. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +45 -0
  260. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/split-cell-operation.js +57 -0
  261. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.js +19 -0
  262. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.js +20 -0
  263. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.js +20 -0
  264. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.js +50 -0
  265. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +174 -0
  266. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-icon.js +3 -0
  267. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-selection.js +460 -0
  268. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +61 -0
  269. package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.js +55 -0
  270. package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +436 -0
  271. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.js +3 -0
  272. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.js +3 -0
  273. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.js +3 -0
  274. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.js +3 -0
  275. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.js +3 -0
  276. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.js +3 -0
  277. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/controllers/vega-rich-text-table-properties-color-controller.js +58 -0
  278. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-cell-properties-form-field-renderer.js +106 -0
  279. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.js +291 -0
  280. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-field-renderer.js +58 -0
  281. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-renderer.js +111 -0
  282. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.css +149 -0
  283. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +251 -0
  284. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.js +36 -0
  285. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.js +83 -0
  286. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.css +41 -0
  287. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +80 -0
  288. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.js +20 -0
  289. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.js +27 -0
  290. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.js +26 -0
  291. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +90 -0
  292. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.js +117 -0
  293. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +103 -0
  294. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.js +26 -0
  295. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.js +76 -0
  296. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.js +55 -0
  297. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +23 -0
  298. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +222 -0
  299. package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -0
  300. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +35 -6
  301. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +3 -2
  302. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +50 -2
  303. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +2 -1
  304. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +2 -1
  305. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +3 -1
  306. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +2 -1
  307. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.js +2 -1
  308. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +26 -2
  309. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +4 -0
  310. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +0 -5
  311. package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.js +5 -2
  312. package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.js +4 -1
  313. package/dist/collection/components/vega-time-picker/vega-time-picker.js +36 -0
  314. package/dist/collection/constants/runtime-metrics-payload-definition/vega-time-picker/runtime-metrics-payload-definition.js +24 -0
  315. package/dist/collection/constants/ui.js +2 -0
  316. package/dist/collection/global/scripts/before-vega-load.js +2 -0
  317. package/dist/collection/helpers/calendar/calendar-date.js +10 -0
  318. package/dist/collection/helpers/calendar/calendar-view-generator/calendar-view-generator.abstract.js +2 -2
  319. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +3 -0
  320. package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-format-facade.js +3 -0
  321. package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-grid-justify-items-formatter.js +29 -0
  322. package/dist/collection/helpers/formatter/string-formatter/custom-formatter-strategy.js +3 -1
  323. package/dist/collection/helpers/formatter/string-formatter/number-mask-strategy.js +3 -1
  324. package/dist/collection/helpers/formatter/string-formatter/number-thousand-comma-strategy.js +3 -2
  325. package/dist/collection/helpers/formatter/string-formatter/string-format-strategy.abstract.js +4 -1
  326. package/dist/collection/helpers/formatter/string-formatter/string-mask-strategy.js +38 -7
  327. package/dist/collection/helpers/formatter/string-formatter/thousand-comma-strategy.js +4 -0
  328. package/dist/collection/helpers/keyboard/keyboard-manager.js +11 -3
  329. package/dist/collection/helpers/slimmers/aria-dialog-focusable-trap-slimmer.js +267 -0
  330. package/dist/collection/helpers/slimmers/position-calculation/base-position-calculation-strategy.js +1 -1
  331. package/dist/collection/helpers/translation/locales/en.js +2 -0
  332. package/dist/collection/types/type-guard.js +10 -1
  333. package/dist/collection/utils/object.js +6 -4
  334. package/dist/collection/utils/ui.js +28 -2
  335. package/dist/esm/align-left-7f959adf.js +17 -0
  336. package/dist/esm/app-globals-e77015e3.js +428 -0
  337. package/dist/esm/aria-dialog-focusable-trap-slimmer-5a2f92be.js +270 -0
  338. package/dist/esm/auto-run-when-re-render-task-queue-slimmer.abstract-27820d4c.js +49 -0
  339. package/dist/esm/breakpoints-332702ed.js +53 -0
  340. package/dist/esm/child-nodes-event-prevent-slimmer-2ecc3e1f.js +156 -0
  341. package/dist/esm/child-nodes-notify-observer-slimmer-b7f0e419.js +88 -0
  342. package/dist/esm/code-block-7d6f231b.js +4455 -0
  343. package/dist/esm/component-value-history-controller-slimmer.abstract-acf65b17.js +709 -0
  344. package/dist/esm/content-state-084cd705.js +4439 -0
  345. package/dist/esm/date-required-rule-29608215.js +90 -0
  346. package/dist/esm/deprecated-property-slimmer-ea34fa7b.js +49 -0
  347. package/dist/esm/design-token-edcd787b.js +388 -0
  348. package/dist/esm/dom-node-subject-observer-factory-cea9248d.js +138 -0
  349. package/dist/esm/dto-renderer-manager-12bc9121.js +56 -0
  350. package/dist/esm/element-appender-slimmer-08ec429b.js +1972 -0
  351. package/dist/esm/event-emit-slimmer-4fba1b35.js +265 -0
  352. package/dist/esm/form-field-controller-slimmer-8dd39707.js +1264 -0
  353. package/dist/esm/image-annotation-action-a6b33a81.js +280 -0
  354. package/dist/esm/index-090d31ca.js +4 -0
  355. package/dist/esm/index.js +30 -26
  356. package/dist/esm/inject-keyboard-manager-7557816f.js +35 -0
  357. package/dist/esm/internal-translation-controller-b08aa9ab.js +298 -0
  358. package/dist/esm/internal-vega-event-manager-59f5bd47.js +494 -0
  359. package/dist/esm/keyboard-manager-1846c6a5.js +146 -0
  360. package/dist/esm/keyboard-manager-slimmer-1ae0aa4d.js +37 -0
  361. package/dist/esm/loader.js +26 -21
  362. package/dist/esm/month-view-generator-b700ed08.js +97 -0
  363. package/dist/esm/object-0c277f57.js +48 -0
  364. package/dist/esm/page-resize-observer-slimmer-e24d36c5.js +121 -0
  365. package/dist/esm/public-rules-fe2c7934.js +31 -0
  366. package/dist/esm/range-00afe462.js +176 -0
  367. package/dist/esm/responsive-format-facade-37d4d850.js +940 -0
  368. package/dist/esm/rich-text-editor-required-rule-6487ec94.js +62 -0
  369. package/dist/esm/split-cell-operation-9445e642.js +2360 -0
  370. package/dist/esm/string-format-strategy.abstract-ec6d627b.js +61 -0
  371. package/dist/esm/string-input-formatter-slimmer-959dff7a.js +228 -0
  372. package/dist/esm/string-mask-strategy-49be41f0.js +201 -0
  373. package/dist/esm/style-formatter-ad0b2bac.js +32 -0
  374. package/dist/esm/sub-state-notify-slimmer-ee8c417b.js +79 -0
  375. package/dist/esm/sub-state-observer-slimmer-4d30fa5c.js +132 -0
  376. package/dist/esm/time-required-rule-414b1590.js +138 -0
  377. package/dist/esm/token-extension-600b1c88.js +7417 -0
  378. package/dist/esm/translation-slimmer-35b1d0fa.js +40 -0
  379. package/dist/esm/type-guard-23a08026.js +1958 -0
  380. package/dist/esm/ui-93922c59.js +47 -0
  381. package/dist/esm/ui-ba5a4758.js +267 -0
  382. package/dist/esm/valid-credit-card-number-rule-60abddac.js +171 -0
  383. package/dist/esm/vega-accordion.entry.js +11 -11
  384. package/dist/esm/vega-app-header-button.entry.js +13 -13
  385. package/dist/esm/vega-backdrop.entry.js +2 -2
  386. package/dist/esm/vega-banner.entry.js +5 -5
  387. package/dist/esm/vega-box.entry.js +9 -9
  388. package/dist/esm/vega-breadcrumb.entry.js +6 -6
  389. package/dist/esm/vega-button-circle.entry.js +13 -13
  390. package/dist/esm/vega-button-group_2.entry.js +9 -9
  391. package/dist/esm/vega-button-link.entry.js +6 -6
  392. package/dist/esm/vega-button.entry.js +13 -13
  393. package/dist/esm/vega-calendar_4.entry.js +250 -176
  394. package/dist/esm/vega-card.entry.js +7 -7
  395. package/dist/esm/vega-carousel.entry.js +13 -13
  396. package/dist/esm/vega-checkbox_2.entry.js +14 -14
  397. package/dist/esm/vega-chip.entry.js +13 -13
  398. package/dist/esm/vega-code-block.entry.js +18 -17
  399. package/dist/esm/vega-color-picker.entry.js +12 -12
  400. package/dist/esm/vega-combo-box.entry.js +16 -16
  401. package/dist/esm/vega-date-picker_2.entry.js +112 -39
  402. package/dist/esm/vega-dialog_2.entry.js +56 -18
  403. package/dist/esm/vega-divider.entry.js +7 -7
  404. package/dist/esm/vega-dropdown_5.entry.js +20 -20
  405. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  406. package/dist/esm/vega-event-id-4ede557a.js +114 -0
  407. package/dist/esm/vega-field-label.entry.js +5 -5
  408. package/dist/esm/vega-file-uploader.entry.js +13 -13
  409. package/dist/esm/vega-flag-icon.entry.js +6 -6
  410. package/dist/esm/vega-flex.entry.js +9 -9
  411. package/dist/esm/vega-font.entry.js +8 -8
  412. package/dist/esm/vega-form.entry.js +16 -16
  413. package/dist/esm/vega-grid.entry.js +9 -8
  414. package/dist/esm/vega-icon.entry.js +7 -7
  415. package/dist/esm/vega-image-uploader.entry.js +16 -16
  416. package/dist/esm/vega-input-credit-card.entry.js +17 -17
  417. package/dist/esm/vega-input-numeric.entry.js +17 -17
  418. package/dist/esm/vega-input-passcode.entry.js +16 -16
  419. package/dist/esm/vega-input-phone-number.entry.js +15 -15
  420. package/dist/esm/vega-input-range.entry.js +14 -14
  421. package/dist/esm/vega-input-select.entry.js +16 -16
  422. package/dist/esm/vega-input.entry.js +58 -35
  423. package/dist/esm/vega-internal-event-id-70bd893d.js +73 -0
  424. package/dist/esm/vega-item-toggle.entry.js +8 -8
  425. package/dist/esm/vega-left-nav_5.entry.js +17 -17
  426. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
  427. package/dist/esm/vega-page-notification_2.entry.js +3 -3
  428. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +6 -6
  429. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +6 -6
  430. package/dist/esm/vega-pagination.entry.js +14 -14
  431. package/dist/esm/vega-popover_2.entry.js +55 -18
  432. package/dist/esm/vega-progress-tracker_2.entry.js +16 -16
  433. package/dist/esm/vega-radio_2.entry.js +17 -17
  434. package/dist/esm/vega-rich-text-content.entry.js +21 -23
  435. package/dist/esm/vega-rich-text-editor_4.entry.js +196 -231
  436. package/dist/esm/vega-rich-text-table-properties_3.entry.js +1521 -0
  437. package/dist/esm/vega-segment-control.entry.js +8 -8
  438. package/dist/esm/vega-selection-chip_2.entry.js +16 -16
  439. package/dist/esm/vega-selection-tile_2.entry.js +15 -15
  440. package/dist/esm/vega-sidenav_3.entry.js +14 -14
  441. package/dist/esm/vega-signature-capture.entry.js +17 -17
  442. package/dist/esm/vega-stepper.entry.js +13 -13
  443. package/dist/esm/vega-tab-group_2.entry.js +9 -9
  444. package/dist/esm/vega-table_11.entry.js +17 -17
  445. package/dist/esm/vega-text.entry.js +4 -4
  446. package/dist/esm/vega-textarea.entry.js +13 -13
  447. package/dist/esm/vega-time-picker_2.entry.js +65 -23
  448. package/dist/esm/vega-toggle-switch.entry.js +12 -12
  449. package/dist/esm/vega-tooltip_2.entry.js +14 -14
  450. package/dist/esm/vega.js +26 -21
  451. package/dist/esm/wait-for-component-did-render-03e7ccb2.js +30 -0
  452. package/dist/sri/vega-sri-manifest.json +384 -360
  453. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-day-view-focus-slimmer.d.ts +15 -0
  454. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +3 -0
  455. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +6 -0
  456. package/dist/types/components/vega-calendar/vega-calendar.d.ts +2 -0
  457. package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.d.ts +2 -0
  458. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +5 -0
  459. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-input-renderer-base.abstract.d.ts +2 -0
  460. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.d.ts +3 -0
  461. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.d.ts +5 -0
  462. package/dist/types/components/vega-grid/vega-grid.d.ts +13 -1
  463. package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +1 -0
  464. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +1 -0
  465. package/dist/types/components/vega-input/types.d.ts +30 -1
  466. package/dist/types/components/vega-input/vega-input.d.ts +10 -0
  467. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +13 -0
  468. package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +1 -0
  469. package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +7 -0
  470. package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +3 -0
  471. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +7 -0
  472. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +2 -5
  473. package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +3 -3
  474. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +6 -0
  475. package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation.d.ts +1 -1
  476. package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +7 -0
  477. package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +6 -0
  478. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +7 -0
  479. package/dist/types/components/vega-rich-text-editor/dto/annotations/list-annotation.d.ts +6 -0
  480. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-format-default-styles.d.ts +22 -0
  481. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +7 -0
  482. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +10 -6
  483. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.d.ts +28 -0
  484. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.d.ts +45 -0
  485. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/image-node/image-filter-styles-strategy.d.ts +10 -0
  486. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.d.ts +8 -0
  487. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.d.ts +9 -0
  488. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/alignment-filter-styles-strategy.d.ts +27 -0
  489. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/code-filter-styles-strategy.d.ts +17 -0
  490. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/link-filter-styles-strategy.d.ts +17 -0
  491. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/text-format-filter-styles-strategy.d.ts +41 -0
  492. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +0 -2
  493. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +15 -2
  494. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.d.ts +25 -0
  495. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.d.ts +20 -0
  496. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.d.ts +19 -0
  497. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-table-insert-paragraph-interceptor.d.ts +31 -0
  498. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/create-segment-table-cell-strategy.d.ts +20 -0
  499. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.d.ts +14 -0
  500. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +74 -0
  501. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +55 -0
  502. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +27 -0
  503. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +60 -0
  504. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-different-section-strategy.d.ts +21 -0
  505. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-same-section-strategy.d.ts +13 -0
  506. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/merge-cells-strategy.d.ts +38 -0
  507. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/replace-table-cell-strategy.d.ts +12 -0
  508. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.d.ts +12 -0
  509. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-horizontally-strategy.d.ts +43 -0
  510. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-vertically-strategy.d.ts +27 -0
  511. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-table-cell-strategy.d.ts +12 -0
  512. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +23 -0
  513. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-row-strategy.abstract.d.ts +120 -0
  514. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +86 -0
  515. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +55 -0
  516. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.d.ts +13 -0
  517. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.d.ts +12 -0
  518. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/create-segment-table-cell-action.d.ts +21 -0
  519. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +12 -0
  520. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +15 -0
  521. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +17 -0
  522. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +20 -0
  523. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +23 -0
  524. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-into-different-section-action.d.ts +20 -0
  525. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-into-same-section-action.d.ts +24 -0
  526. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.d.ts +33 -0
  527. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/replace-table-cell-action.d.ts +13 -0
  528. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.d.ts +18 -0
  529. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-cell-horizontally-action.d.ts +10 -0
  530. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-cell-vertically-action.d.ts +10 -0
  531. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-table-cell-action.d.ts +22 -0
  532. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +16 -0
  533. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +14 -0
  534. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +20 -0
  535. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +14 -0
  536. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +12 -0
  537. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +16 -0
  538. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +18 -0
  539. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +36 -0
  540. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.d.ts +26 -0
  541. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.d.ts +56 -0
  542. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.d.ts +13 -0
  543. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +73 -0
  544. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +32 -0
  545. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +100 -0
  546. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.d.ts +44 -0
  547. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +27 -0
  548. package/dist/types/components/vega-rich-text-editor/extensions/table/constants/styles.constants.d.ts +4 -0
  549. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +79 -0
  550. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +42 -0
  551. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +41 -0
  552. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +64 -0
  553. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +42 -0
  554. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +34 -0
  555. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +44 -0
  556. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.d.ts +37 -0
  557. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.d.ts +26 -0
  558. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.d.ts +26 -0
  559. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.d.ts +35 -0
  560. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.d.ts +26 -0
  561. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.d.ts +26 -0
  562. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +12 -0
  563. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +13 -0
  564. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +30 -0
  565. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +81 -0
  566. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +12 -0
  567. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +12 -0
  568. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-popover-base-renderer.d.ts +16 -0
  569. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +38 -0
  570. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +12 -0
  571. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +59 -0
  572. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-toolbar-popover-renderer.d.ts +59 -0
  573. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +36 -0
  574. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.d.ts +17 -0
  575. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.d.ts +15 -0
  576. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.d.ts +17 -0
  577. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.d.ts +62 -0
  578. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +55 -0
  579. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/merge-cells-operation.d.ts +44 -0
  580. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +69 -0
  581. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +48 -0
  582. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/split-cell-operation.d.ts +31 -0
  583. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.d.ts +19 -0
  584. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.d.ts +17 -0
  585. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.d.ts +17 -0
  586. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.d.ts +33 -0
  587. package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +36 -0
  588. package/dist/types/components/vega-rich-text-editor/extensions/table/table-icon.d.ts +3 -0
  589. package/dist/types/components/vega-rich-text-editor/extensions/table/table-selection.d.ts +164 -0
  590. package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +26 -0
  591. package/dist/types/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.d.ts +27 -0
  592. package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +190 -0
  593. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.d.ts +3 -0
  594. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.d.ts +3 -0
  595. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.d.ts +3 -0
  596. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.d.ts +3 -0
  597. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.d.ts +3 -0
  598. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.d.ts +3 -0
  599. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/controllers/vega-rich-text-table-properties-color-controller.d.ts +29 -0
  600. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-cell-properties-form-field-renderer.d.ts +49 -0
  601. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.d.ts +111 -0
  602. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-field-renderer.d.ts +27 -0
  603. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-renderer.d.ts +39 -0
  604. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.d.ts +60 -0
  605. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.d.ts +15 -0
  606. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.d.ts +31 -0
  607. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.d.ts +27 -0
  608. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.d.ts +2 -0
  609. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.d.ts +11 -0
  610. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.d.ts +11 -0
  611. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.d.ts +28 -0
  612. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.d.ts +23 -0
  613. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.d.ts +36 -0
  614. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.d.ts +11 -0
  615. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.d.ts +36 -0
  616. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.d.ts +12 -0
  617. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +58 -0
  618. package/dist/types/components/vega-rich-text-editor/interface.d.ts +34 -2
  619. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -0
  620. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +10 -0
  621. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +19 -0
  622. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +19 -6
  623. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +0 -2
  624. package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.d.ts +1 -0
  625. package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.d.ts +1 -0
  626. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +12 -0
  627. package/dist/types/components.d.ts +173 -2
  628. package/dist/types/constants/ui.d.ts +1 -0
  629. package/dist/types/helpers/calendar/calendar-date.d.ts +7 -0
  630. package/dist/types/helpers/calendar/calendar-view-generator/calendar-view-generator.abstract.d.ts +0 -1
  631. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -0
  632. package/dist/types/helpers/formatter/responsive-map-formatter/responsive-grid-justify-items-formatter.d.ts +19 -0
  633. package/dist/types/helpers/formatter/string-formatter/custom-formatter-strategy.d.ts +2 -1
  634. package/dist/types/helpers/formatter/string-formatter/number-mask-strategy.d.ts +2 -1
  635. package/dist/types/helpers/formatter/string-formatter/number-thousand-comma-strategy.d.ts +2 -1
  636. package/dist/types/helpers/formatter/string-formatter/string-format-strategy.abstract.d.ts +1 -0
  637. package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +32 -4
  638. package/dist/types/helpers/formatter/string-formatter/thousand-comma-strategy.d.ts +1 -0
  639. package/dist/types/helpers/keyboard/keyboard-manager.d.ts +1 -0
  640. package/dist/types/helpers/slimmers/aria-dialog-focusable-trap-slimmer.d.ts +112 -0
  641. package/dist/types/helpers/translation/interface.d.ts +3 -1
  642. package/dist/types/types/components.type.d.ts +5 -0
  643. package/dist/types/types/type-guard.d.ts +7 -0
  644. package/dist/types/types/ui.type.d.ts +13 -1
  645. package/dist/types/utils/object.d.ts +6 -2
  646. package/dist/types/utils/ui.d.ts +12 -1
  647. package/dist/vega/index.esm.js +1 -1
  648. package/dist/vega/p-010b5e74.js +1 -0
  649. package/dist/vega/p-01883ffc.entry.js +1 -0
  650. package/dist/vega/p-02578a59.js +1 -0
  651. package/dist/vega/p-0313393d.entry.js +1 -0
  652. package/dist/vega/p-043e685a.entry.js +1 -0
  653. package/dist/vega/p-04e56b0c.entry.js +1 -0
  654. package/dist/vega/p-07a2b42a.js +1 -0
  655. package/dist/vega/p-08780df0.entry.js +1 -0
  656. package/dist/vega/p-10fa4eac.js +1 -0
  657. package/dist/vega/p-1557ed92.entry.js +1 -0
  658. package/dist/vega/p-18619467.js +1 -0
  659. package/dist/vega/p-19ad4f15.entry.js +1 -0
  660. package/dist/vega/p-1a2f92a3.entry.js +1 -0
  661. package/dist/vega/p-1c45565d.js +1 -0
  662. package/dist/vega/p-1feb4f2a.entry.js +1 -0
  663. package/dist/vega/p-203bc4db.entry.js +1 -0
  664. package/dist/vega/p-204c7d41.js +1 -0
  665. package/dist/vega/p-21c9e1ca.entry.js +1 -0
  666. package/dist/vega/p-22336063.js +1 -0
  667. package/dist/vega/p-224b67ff.entry.js +1 -0
  668. package/dist/vega/p-2a9960c9.js +1 -0
  669. package/dist/vega/p-2c2df248.js +1 -0
  670. package/dist/vega/p-2d917e2d.entry.js +1 -0
  671. package/dist/vega/p-2e73582d.entry.js +1 -0
  672. package/dist/vega/p-3224e47c.js +1 -0
  673. package/dist/vega/p-334e3b02.entry.js +1 -0
  674. package/dist/vega/p-33860e54.js +1 -0
  675. package/dist/vega/p-35386999.entry.js +1 -0
  676. package/dist/vega/p-365d21ac.entry.js +1 -0
  677. package/dist/vega/p-367d44d9.entry.js +1 -0
  678. package/dist/vega/p-382b71a3.entry.js +1 -0
  679. package/dist/vega/p-3d2d267d.js +1 -0
  680. package/dist/vega/p-434fc427.entry.js +1 -0
  681. package/dist/vega/p-44c5cbb7.js +1 -0
  682. package/dist/vega/p-47ca1f69.entry.js +1 -0
  683. package/dist/vega/p-49a2e141.js +1 -0
  684. package/dist/vega/p-4d65756f.js +1 -0
  685. package/dist/vega/p-4eb282ef.entry.js +1 -0
  686. package/dist/vega/p-517434d4.entry.js +1 -0
  687. package/dist/vega/p-559197f8.js +1 -0
  688. package/dist/vega/p-576fe408.js +1 -0
  689. package/dist/vega/p-5ae4ea20.entry.js +1 -0
  690. package/dist/vega/p-5f377954.js +1 -1
  691. package/dist/vega/p-60cf2a68.js +1 -0
  692. package/dist/vega/p-612e3ded.js +1 -0
  693. package/dist/vega/p-65900dbf.entry.js +1 -0
  694. package/dist/vega/p-68124bc5.js +1 -0
  695. package/dist/vega/p-68a531cf.js +1 -0
  696. package/dist/vega/p-6af55f1c.entry.js +1 -0
  697. package/dist/vega/p-6c5250b3.js +1 -0
  698. package/dist/vega/p-6f2e5bc6.js +1 -0
  699. package/dist/vega/p-70f1cf4e.entry.js +1 -0
  700. package/dist/vega/p-716c71e6.js +1 -0
  701. package/dist/vega/p-7362723e.entry.js +1 -0
  702. package/dist/vega/p-7618dde4.js +1 -0
  703. package/dist/vega/p-76b80a0c.js +1 -0
  704. package/dist/vega/p-7912741f.entry.js +1 -0
  705. package/dist/vega/p-7942c042.entry.js +1 -0
  706. package/dist/vega/p-7c2fecfd.entry.js +1 -0
  707. package/dist/vega/p-7ceab8c7.entry.js +1 -0
  708. package/dist/vega/p-81dd00d0.js +1 -0
  709. package/dist/vega/p-82016096.js +1 -0
  710. package/dist/vega/p-8327635d.js +1 -0
  711. package/dist/vega/p-840ad046.entry.js +1 -0
  712. package/dist/vega/p-878851f6.js +1 -0
  713. package/dist/vega/p-89e56502.js +1 -0
  714. package/dist/vega/p-8adf9732.entry.js +1 -0
  715. package/dist/vega/p-90137c68.entry.js +1 -0
  716. package/dist/vega/p-9341c1a9.js +1 -0
  717. package/dist/vega/p-9390a94b.entry.js +1 -0
  718. package/dist/vega/p-9551da9c.entry.js +1 -0
  719. package/dist/vega/p-9862d1a8.entry.js +1 -0
  720. package/dist/vega/p-9dc23325.entry.js +1 -0
  721. package/dist/vega/p-a4dbf2cc.js +1 -0
  722. package/dist/vega/p-a841cf13.js +1 -0
  723. package/dist/vega/p-a99e75a1.entry.js +1 -0
  724. package/dist/vega/p-ab21fdf6.entry.js +1 -0
  725. package/dist/vega/p-b3e40faf.js +1 -0
  726. package/dist/vega/p-b5a6bd0f.entry.js +1 -0
  727. package/dist/vega/p-b5c2fff3.entry.js +1 -0
  728. package/dist/vega/p-b696a861.js +1 -0
  729. package/dist/vega/p-ba415db6.entry.js +1 -0
  730. package/dist/vega/p-be3517be.entry.js +1 -0
  731. package/dist/vega/p-c045e4c1.entry.js +1 -0
  732. package/dist/vega/p-c4e32125.entry.js +1 -0
  733. package/dist/vega/p-c5b698f6.entry.js +1 -0
  734. package/dist/vega/p-c5eb0fa6.js +1 -0
  735. package/dist/vega/p-c61279a7.entry.js +1 -0
  736. package/dist/vega/p-c6d62f0d.js +1 -0
  737. package/dist/vega/p-c78fe943.js +1 -0
  738. package/dist/vega/p-c9201bf4.js +1 -0
  739. package/dist/vega/p-cc055723.entry.js +1 -0
  740. package/dist/vega/p-cca5042b.entry.js +1 -0
  741. package/dist/vega/p-cda45d2a.entry.js +1 -0
  742. package/dist/vega/p-cdf5b2f0.entry.js +1 -0
  743. package/dist/vega/p-cf70c57d.js +1 -0
  744. package/dist/vega/p-d1494c7c.entry.js +1 -0
  745. package/dist/vega/p-d1ca70a1.js +1 -0
  746. package/dist/vega/p-d202e69d.entry.js +1 -0
  747. package/dist/vega/p-d4ea8e22.js +1 -0
  748. package/dist/vega/p-dc9b5063.entry.js +1 -0
  749. package/dist/vega/p-dcd18ab1.js +1 -0
  750. package/dist/vega/p-df5bfbc4.entry.js +1 -0
  751. package/dist/vega/p-e4726dcd.entry.js +1 -0
  752. package/dist/vega/p-e84b95d4.js +1 -0
  753. package/dist/vega/p-ea21462f.js +1 -0
  754. package/dist/vega/p-ec1d76c6.entry.js +1 -0
  755. package/dist/vega/p-f3456993.entry.js +1 -0
  756. package/dist/vega/p-f4190826.entry.js +1 -0
  757. package/dist/vega/p-f48c43f4.entry.js +1 -0
  758. package/dist/vega/p-fcabf0dc.js +1 -0
  759. package/dist/vega/p-fdac91c4.entry.js +1 -0
  760. package/dist/vega/p-ffa2e3a6.entry.js +1 -0
  761. package/dist/vega/vega.esm.js +1 -1
  762. package/package.json +3 -2
  763. package/dist/cjs/app-globals-55e26945.js +0 -428
  764. package/dist/cjs/breakpoints-a8ff22f0.js +0 -56
  765. package/dist/cjs/child-nodes-notify-observer-slimmer-ed39283b.js +0 -90
  766. package/dist/cjs/code-block-1a5fafed.js +0 -4422
  767. package/dist/cjs/component-value-history-controller-slimmer.abstract-42683f23.js +0 -736
  768. package/dist/cjs/date-required-rule-ad536cb5.js +0 -92
  769. package/dist/cjs/deprecated-property-slimmer-1eb8f031.js +0 -51
  770. package/dist/cjs/design-token-45ebd5e4.js +0 -402
  771. package/dist/cjs/dom-node-subject-observer-factory-c62823de.js +0 -141
  772. package/dist/cjs/dto-renderer-manager-7557d562.js +0 -4119
  773. package/dist/cjs/element-appender-slimmer-16ec8591.js +0 -1974
  774. package/dist/cjs/event-emit-slimmer-c84121c8.js +0 -267
  775. package/dist/cjs/form-field-controller-slimmer-73f5849e.js +0 -1266
  776. package/dist/cjs/image-annotation-action-f275863e.js +0 -313
  777. package/dist/cjs/inject-keyboard-manager-6667c0f1.js +0 -37
  778. package/dist/cjs/internal-translation-controller-24df468f.js +0 -299
  779. package/dist/cjs/keyboard-manager-7de7ecfd.js +0 -140
  780. package/dist/cjs/keyboard-manager-slimmer-b44f0dc9.js +0 -39
  781. package/dist/cjs/month-view-generator-36c42772.js +0 -102
  782. package/dist/cjs/object-e2e28e3d.js +0 -50
  783. package/dist/cjs/page-resize-observer-slimmer-e050cd26.js +0 -123
  784. package/dist/cjs/public-rules-6c6cb4ac.js +0 -46
  785. package/dist/cjs/range-e298d4aa.js +0 -178
  786. package/dist/cjs/responsive-format-facade-bddac47c.js +0 -916
  787. package/dist/cjs/rich-text-editor-required-rule-6346a888.js +0 -64
  788. package/dist/cjs/string-format-strategy.abstract-814d66c4.js +0 -60
  789. package/dist/cjs/string-input-formatter-slimmer-749e3cfe.js +0 -230
  790. package/dist/cjs/string-mask-strategy-d00871c2.js +0 -172
  791. package/dist/cjs/style-formatter-94c1a1ff.js +0 -34
  792. package/dist/cjs/sub-state-notify-slimmer-ac1dae32.js +0 -81
  793. package/dist/cjs/sub-state-observer-slimmer-e692d849.js +0 -134
  794. package/dist/cjs/time-required-rule-f1f3c8c2.js +0 -141
  795. package/dist/cjs/token-extension-1e98ddf3.js +0 -3062
  796. package/dist/cjs/translation-slimmer-3fa03d81.js +0 -42
  797. package/dist/cjs/type-guard-a0d9ff1f.js +0 -2012
  798. package/dist/cjs/ui-024696c0.js +0 -59
  799. package/dist/cjs/ui-234ea151.js +0 -256
  800. package/dist/cjs/valid-credit-card-number-rule-cba7d66a.js +0 -173
  801. package/dist/cjs/vega-internal-event-id-e0aeac45.js +0 -120
  802. package/dist/cjs/wait-for-component-did-render-cbebfc33.js +0 -32
  803. package/dist/collection/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.js +0 -195
  804. package/dist/collection/components/vega-calendar/slimmers/common/layout/test/long-event-layout-generator.test.js +0 -94
  805. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/day-view-event-layout-generator.test.js +0 -72
  806. package/dist/collection/components/vega-code-block/test/code-block-range.test.js +0 -81
  807. package/dist/collection/components/vega-dropdown/test/share.js +0 -13
  808. package/dist/collection/components/vega-input-credit-card/test/share.js +0 -21
  809. package/dist/collection/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.js +0 -147
  810. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +0 -19
  811. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.js +0 -51
  812. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.js +0 -26
  813. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.js +0 -71
  814. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-delete-node-content-strategy.test.js +0 -69
  815. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.js +0 -24
  816. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.js +0 -20
  817. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.js +0 -15
  818. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.js +0 -32
  819. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-set-annotation-map-strategy.test.js +0 -11
  820. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-update-url-strategy.test.js +0 -16
  821. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.js +0 -20
  822. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.js +0 -87
  823. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.js +0 -32
  824. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.js +0 -17
  825. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.js +0 -77
  826. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/update-selected-text-strategy.test.js +0 -23
  827. package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-actions.test.js +0 -39
  828. package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-style.test.js +0 -71
  829. package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +0 -381
  830. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +0 -54
  831. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +0 -167
  832. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +0 -90
  833. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +0 -176
  834. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +0 -188
  835. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +0 -193
  836. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +0 -3123
  837. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +0 -108
  838. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +0 -510
  839. package/dist/collection/components/vega-rich-text-editor/test/dto/range.test.js +0 -53
  840. package/dist/collection/components/vega-rich-text-editor/test/e2e-utils.js +0 -182
  841. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/custom-attribute-annotation-handler.test.js +0 -49
  842. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/element-to-text-node-strategy.test.js +0 -38
  843. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/html-element-to-annotation-generator.test.js +0 -26
  844. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.test.js +0 -32
  845. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.test.js +0 -61
  846. package/dist/collection/components/vega-rich-text-editor/test/extensions/extension-test-utils.js +0 -41
  847. package/dist/collection/components/vega-rich-text-editor/test/fixture.js +0 -257
  848. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.js +0 -186
  849. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.js +0 -22
  850. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.js +0 -22
  851. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.js +0 -26
  852. package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +0 -32
  853. package/dist/collection/components/vega-sidenav/test/test.helper.js +0 -68
  854. package/dist/collection/components/vega-table/slimmers/controllers/dto/test/column-render-input-model.test.js +0 -83
  855. package/dist/collection/components/vega-table/slimmers/controllers/dto/test/column-structure-model.test.js +0 -147
  856. package/dist/collection/components/vega-table/test/utils.js +0 -22
  857. package/dist/collection/components/vega-table/test/vega-table-sorter.test.js +0 -508
  858. package/dist/collection/constants/tests/validator.test.js +0 -24
  859. package/dist/collection/decorators/method-decorators/tests/component-load-required.test.js +0 -114
  860. package/dist/collection/decorators/property-decorators/tests/inject-element-appender-proxy.test.js +0 -237
  861. package/dist/collection/decorators/property-decorators/tests/inject-keyboard-manager.test.js +0 -91
  862. package/dist/collection/global/tests/before-vega-load.test.js +0 -62
  863. package/dist/collection/helpers/calendar/test/calendar-date-time.test.js +0 -27
  864. package/dist/collection/helpers/calendar/test/calendar-date.test.js +0 -172
  865. package/dist/collection/helpers/calendar/test/calendar-event.test.js +0 -263
  866. package/dist/collection/helpers/calendar/test/calendar-period/day-period.test.js +0 -118
  867. package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +0 -144
  868. package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +0 -114
  869. package/dist/collection/helpers/calendar/test/calendar-time.test.js +0 -45
  870. package/dist/collection/helpers/calendar/test/calendar-view-generator/day-view-generator.test.js +0 -19
  871. package/dist/collection/helpers/calendar/test/calendar-view-generator/month-view-generator.test.js +0 -123
  872. package/dist/collection/helpers/calendar/test/calendar-view-generator/week-view-generator.test.js +0 -43
  873. package/dist/collection/helpers/calendar/test/calendar-view.test.js +0 -9
  874. package/dist/collection/helpers/calendar/test/index.test.js +0 -13
  875. package/dist/collection/helpers/calendar/test/utils.test.js +0 -62
  876. package/dist/collection/helpers/change-manager/test/change-manager.test.js +0 -30
  877. package/dist/collection/helpers/change-manager/test/dom-node-subject-factory.test.js +0 -38
  878. package/dist/collection/helpers/chart/test/controllers/chart-dimension-controller.test.js +0 -63
  879. package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +0 -55
  880. package/dist/collection/helpers/chart/test/drawers/legend-drawer.test.js +0 -94
  881. package/dist/collection/helpers/chart/test/drawers/line-drawer.test.js +0 -25
  882. package/dist/collection/helpers/chart/test/drawers/path-drawer.test.js +0 -21
  883. package/dist/collection/helpers/chart/test/drawers/rect-drawer.test.js +0 -78
  884. package/dist/collection/helpers/chart/test/drawers/text-drawer.test.js +0 -25
  885. package/dist/collection/helpers/chart/test/drawers/x-axis-drawer.test.js +0 -38
  886. package/dist/collection/helpers/chart/test/drawers/y-axis-drawer.test.js +0 -44
  887. package/dist/collection/helpers/chart/test/graph-context-factory.test.js +0 -17
  888. package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +0 -62
  889. package/dist/collection/helpers/chart/test/input-processors/horizontal-x-axis-input-processor.test.js +0 -45
  890. package/dist/collection/helpers/chart/test/input-processors/horizontal-y-axis-input-processor.test.js +0 -80
  891. package/dist/collection/helpers/chart/test/input-processors/layout-input-processor.test.js +0 -40
  892. package/dist/collection/helpers/chart/test/input-processors/line-path-input-processor.test.js +0 -16
  893. package/dist/collection/helpers/chart/test/input-processors/pie-chart-filter-input-processor.test.js +0 -20
  894. package/dist/collection/helpers/chart/test/input-processors/pie-chart-radius-input-processor.test.js +0 -48
  895. package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +0 -53
  896. package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +0 -78
  897. package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +0 -109
  898. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.js +0 -39
  899. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +0 -55
  900. package/dist/collection/helpers/chart/test/interacting-entry-generator/arc-path-hover-generator.test.js +0 -11
  901. package/dist/collection/helpers/chart/test/interacting-entry-generator/pie-legend-hover-generator.test.js +0 -25
  902. package/dist/collection/helpers/chart/test/interactors/interactor-factory.test.js +0 -19
  903. package/dist/collection/helpers/chart/test/interactors/svg-interactor.test.js +0 -48
  904. package/dist/collection/helpers/chart/test/line-chart.test.js +0 -96
  905. package/dist/collection/helpers/chart/test/pie-chart.test.js +0 -38
  906. package/dist/collection/helpers/chart/test/renderers/canvas-renderer.test.js +0 -31
  907. package/dist/collection/helpers/chart/test/renderers/renderer-factory.test.js +0 -19
  908. package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +0 -99
  909. package/dist/collection/helpers/code-format/test/code-formatter.test.js +0 -410
  910. package/dist/collection/helpers/common/test/common.test.js +0 -7
  911. package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +0 -67
  912. package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +0 -17
  913. package/dist/collection/helpers/csp/test/styles-preservator.test.js +0 -207
  914. package/dist/collection/helpers/csp/test/vega-nonce-manager.test.js +0 -177
  915. package/dist/collection/helpers/dialog/test/vega-dialog-controller.test.js +0 -114
  916. package/dist/collection/helpers/event-manager/test/child-nodes-event-prevent-slimmer.test.js +0 -209
  917. package/dist/collection/helpers/event-manager/test/child-nodes-notify-observer-slimmer.test.js +0 -81
  918. package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +0 -16
  919. package/dist/collection/helpers/event-manager/test/event-emit-slimmer.test.js +0 -144
  920. package/dist/collection/helpers/event-manager/test/internal-vega-event-manager.test.js +0 -70
  921. package/dist/collection/helpers/event-manager/test/jquery-delegated-strategy-controller.test.js +0 -131
  922. package/dist/collection/helpers/event-manager/test/vega-event-id.test.js +0 -16
  923. package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +0 -97
  924. package/dist/collection/helpers/feature-control/tests/feature-flag-controller.test.js +0 -69
  925. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-formatter.test.js +0 -64
  926. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-style-formatter.test.js +0 -32
  927. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-box-display-formatter.test.js +0 -31
  928. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-custom-formatter.test.js +0 -17
  929. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-display-formatter.test.js +0 -23
  930. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-flex-direction-formatter.test.js +0 -19
  931. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-flex-wrap-formatter.test.js +0 -19
  932. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-format-mediator.test.js +0 -43
  933. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.js +0 -29
  934. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-column-formatter.test.js +0 -23
  935. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-row-formatter.test.js +0 -27
  936. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-margin-formatter.test.js +0 -43
  937. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-margin-style-formatter.test.js +0 -28
  938. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-padding-formatter.test.js +0 -43
  939. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-padding-style-formatter.test.js +0 -28
  940. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-size-formatter.test.js +0 -27
  941. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-text-align-formatter.test.js +0 -19
  942. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-translocation-formatter.test.js +0 -51
  943. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-width-and-height-formatter.test.js +0 -20
  944. package/dist/collection/helpers/formatter/test/state-formatter/state-background-color-formatter.test.js +0 -18
  945. package/dist/collection/helpers/formatter/test/state-formatter/state-border-color-formatter.test.js +0 -13
  946. package/dist/collection/helpers/formatter/test/state-formatter/state-border-formatter.test.js +0 -13
  947. package/dist/collection/helpers/formatter/test/state-formatter/state-format-facade.test.js +0 -27
  948. package/dist/collection/helpers/formatter/test/state-formatter/state-shadow-formatter.test.js +0 -13
  949. package/dist/collection/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.js +0 -13
  950. package/dist/collection/helpers/formatter/test/string-formatter/number-mask-strategy.test.js +0 -101
  951. package/dist/collection/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.js +0 -40
  952. package/dist/collection/helpers/formatter/test/string-formatter/string-mask-strategy.test.js +0 -147
  953. package/dist/collection/helpers/formatter/test/string-formatter/thousand-comma-strategy.test.js +0 -21
  954. package/dist/collection/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.js +0 -43
  955. package/dist/collection/helpers/formatter/test/style-formatter.test.js +0 -16
  956. package/dist/collection/helpers/icon/test/icon-manager-controller.test.js +0 -101
  957. package/dist/collection/helpers/icon/test/internal-icon-manager.test.js +0 -18
  958. package/dist/collection/helpers/immutable/test/immutable-array.test.js +0 -78
  959. package/dist/collection/helpers/immutable/test/immutable-map.test.js +0 -83
  960. package/dist/collection/helpers/immutable/test/immutable-set.test.js +0 -87
  961. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +0 -241
  962. package/dist/collection/helpers/level-tracker/test/nested-level-tracker.test.js +0 -33
  963. package/dist/collection/helpers/loading-indicator/tests/vega-loader-controller.test.js +0 -192
  964. package/dist/collection/helpers/notify/tests/vega-notify-controller.test.js +0 -165
  965. package/dist/collection/helpers/paginator/test/value-paginator.test.js +0 -15
  966. package/dist/collection/helpers/queue/test/synchronize-task-queue.test.js +0 -76
  967. package/dist/collection/helpers/remote-invocation/remote-invocation-registry.test.js +0 -17
  968. package/dist/collection/helpers/rte-manager/rte.manager.test.js +0 -94
  969. package/dist/collection/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.js +0 -194
  970. package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +0 -621
  971. package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +0 -248
  972. package/dist/collection/helpers/slimmers/mutation-observer/test/data-tab-index-value-mapper.test.js +0 -120
  973. package/dist/collection/helpers/slimmers/mutation-observer/test/mutation-observer-slimmer.test.js +0 -182
  974. package/dist/collection/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.js +0 -353
  975. package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +0 -365
  976. package/dist/collection/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.js +0 -96
  977. package/dist/collection/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.js +0 -228
  978. package/dist/collection/helpers/slimmers/test/auto-run-when-re-render-task-queue-slimmer.test.js +0 -46
  979. package/dist/collection/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.js +0 -75
  980. package/dist/collection/helpers/slimmers/test/component-global-style-slimmer.test.js +0 -104
  981. package/dist/collection/helpers/slimmers/test/component-usage-runtime-metrics.test.js +0 -72
  982. package/dist/collection/helpers/slimmers/test/dark-mode-state-controller.test.js +0 -65
  983. package/dist/collection/helpers/slimmers/test/deprecated-property-slimmer.test.js +0 -36
  984. package/dist/collection/helpers/slimmers/test/field-error-controller-slimmer.test.js +0 -55
  985. package/dist/collection/helpers/slimmers/test/form-field-controller-slimmer.test.js +0 -278
  986. package/dist/collection/helpers/slimmers/test/form-field-valid-invoke-slimmer.test.js +0 -106
  987. package/dist/collection/helpers/slimmers/test/global/vega-nonce-injector-slimmer.test.js +0 -64
  988. package/dist/collection/helpers/slimmers/test/global/vega-translate-observer-slimmer.test.js +0 -89
  989. package/dist/collection/helpers/slimmers/test/global/vega-watch-method-cancel-slimmer.test.js +0 -101
  990. package/dist/collection/helpers/slimmers/test/keyboard-manager-slimmer.test.js +0 -90
  991. package/dist/collection/helpers/slimmers/test/page-resize-observer-slimmer.test.js +0 -278
  992. package/dist/collection/helpers/slimmers/test/string-input-formatter-slimmer.test.js +0 -220
  993. package/dist/collection/helpers/slimmers/test/translation-slimmer.test.js +0 -89
  994. package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +0 -614
  995. package/dist/collection/helpers/touch-helper/test/touch-listener.test.js +0 -122
  996. package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +0 -286
  997. package/dist/collection/helpers/translation/tests/translation.test.js +0 -46
  998. package/dist/collection/helpers/ui/test/element-appender.test.js +0 -530
  999. package/dist/collection/helpers/validator/test/rules/check-box-required-rule.test.js +0 -88
  1000. package/dist/collection/helpers/validator/test/rules/custom-validation-rule.test.js +0 -56
  1001. package/dist/collection/helpers/validator/test/rules/date-range-rule.test.js +0 -67
  1002. package/dist/collection/helpers/validator/test/rules/date-required-rule.test.js +0 -120
  1003. package/dist/collection/helpers/validator/test/rules/email-field-rule.test.js +0 -69
  1004. package/dist/collection/helpers/validator/test/rules/file-uploader-required-rule.test.js +0 -7
  1005. package/dist/collection/helpers/validator/test/rules/input-phone-number-required-rule.test.js +0 -105
  1006. package/dist/collection/helpers/validator/test/rules/input-range-min-and-max-rule.test.js +0 -146
  1007. package/dist/collection/helpers/validator/test/rules/input-range-required-rule.test.js +0 -82
  1008. package/dist/collection/helpers/validator/test/rules/input-select-value-in-source-rule.test.js +0 -99
  1009. package/dist/collection/helpers/validator/test/rules/max-number-rule.test.js +0 -97
  1010. package/dist/collection/helpers/validator/test/rules/max-string-length-rule.test.js +0 -85
  1011. package/dist/collection/helpers/validator/test/rules/min-and-max-date-rule.test.js +0 -174
  1012. package/dist/collection/helpers/validator/test/rules/min-number-rule.test.js +0 -97
  1013. package/dist/collection/helpers/validator/test/rules/min-string-length-rule.test.js +0 -85
  1014. package/dist/collection/helpers/validator/test/rules/public-rules.test.js +0 -80
  1015. package/dist/collection/helpers/validator/test/rules/required-field-rule.test.js +0 -126
  1016. package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +0 -360
  1017. package/dist/collection/helpers/validator/test/rules/time-range-required-rule.test.js +0 -82
  1018. package/dist/collection/helpers/validator/test/rules/time-range-rule.test.js +0 -67
  1019. package/dist/collection/helpers/validator/test/rules/time-required-rule.test.js +0 -116
  1020. package/dist/collection/helpers/validator/test/rules/toggle-switch-required-rule.test.js +0 -72
  1021. package/dist/collection/helpers/validator/test/rules/valid-credit-card-number-rule.test.js +0 -135
  1022. package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +0 -95
  1023. package/dist/collection/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler-chain.test.js +0 -65
  1024. package/dist/collection/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler.test.js +0 -82
  1025. package/dist/collection/helpers/validator/test/validator/form-field-controller.test.js +0 -205
  1026. package/dist/collection/helpers/vega-telemetry-helper/test/vega-env-manager.test.js +0 -14
  1027. package/dist/collection/helpers/zindex/test/internal-vega-z-index-manager.test.js +0 -176
  1028. package/dist/collection/helpers/zindex/test/vega-z-index-manager.test.js +0 -46
  1029. package/dist/collection/polyfill/d3/test/d3-array-polyfill.test.js +0 -72
  1030. package/dist/collection/polyfill/d3/test/d3-axis-polyfill.test.js +0 -171
  1031. package/dist/collection/polyfill/d3/test/d3-integration.test.js +0 -137
  1032. package/dist/collection/polyfill/d3/test/d3-scale-polyfill.test.js +0 -382
  1033. package/dist/collection/polyfill/d3/test/d3-selection-polyfill.test.js +0 -239
  1034. package/dist/collection/polyfill/d3/test/d3-shape-polyfill.test.js +0 -225
  1035. package/dist/collection/polyfill/d3/test/d3-time-format-polyfill.test.js +0 -162
  1036. package/dist/collection/polyfill/d3/test/d3-time-polyfill.test.js +0 -76
  1037. package/dist/collection/polyfill/d3/test/index.test.js +0 -78
  1038. package/dist/collection/polyfill/libphonenumber/test/as-you-type.test.js +0 -309
  1039. package/dist/collection/polyfill/libphonenumber/test/format-helpers.test.js +0 -192
  1040. package/dist/collection/polyfill/libphonenumber/test/index.test.js +0 -16
  1041. package/dist/collection/polyfill/libphonenumber/test/metadata.test.js +0 -196
  1042. package/dist/collection/polyfill/libphonenumber/test/parse-phone-number.test.js +0 -218
  1043. package/dist/collection/polyfill/libphonenumber/test/phone-number.test.js +0 -56
  1044. package/dist/collection/polyfill/prism/test/css.test.js +0 -61
  1045. package/dist/collection/polyfill/prism/test/javascript.test.js +0 -113
  1046. package/dist/collection/polyfill/prism/test/jsx.test.js +0 -48
  1047. package/dist/collection/polyfill/prism/test/language-registry.test.js +0 -77
  1048. package/dist/collection/polyfill/prism/test/markup.test.js +0 -57
  1049. package/dist/collection/polyfill/prism/test/test-utils.js +0 -22
  1050. package/dist/collection/polyfill/prism/test/tokenizer.test.js +0 -180
  1051. package/dist/collection/polyfill/prism/test/tsx.test.js +0 -87
  1052. package/dist/collection/polyfill/prism/test/typescript.test.js +0 -86
  1053. package/dist/collection/polyfill/shadow-selection/test/shadow-selection-polyfill.test.js +0 -234
  1054. package/dist/collection/polyfill/test-polyfill/e2e/retry.js +0 -42
  1055. package/dist/collection/polyfill/test-polyfill/unit/create-touch-event.js +0 -31
  1056. package/dist/collection/polyfill/test-polyfill/unit/events.js +0 -100
  1057. package/dist/collection/polyfill/test-polyfill/unit/index.js +0 -3
  1058. package/dist/collection/polyfill/test-polyfill/unit/methods.js +0 -47
  1059. package/dist/collection/polyfill/test-polyfill/unit/range.js +0 -15
  1060. package/dist/collection/polyfill/test-polyfill/unit/shadow-selection.js +0 -17
  1061. package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.test.js +0 -361
  1062. package/dist/collection/test-assets/test-icons.js +0 -5
  1063. package/dist/collection/types/test/type-guard.test.js +0 -46
  1064. package/dist/collection/utils/e2e-utils.js +0 -341
  1065. package/dist/collection/utils/sanitize/test/empty-strategy.test.js +0 -12
  1066. package/dist/collection/utils/sanitize/test/html-sanitizer.test.js +0 -57
  1067. package/dist/collection/utils/sanitize/test/label-strategy.test.js +0 -56
  1068. package/dist/collection/utils/sanitize/test/sanitize-strategy.test.js +0 -85
  1069. package/dist/collection/utils/sanitize/test/sanitize.test.js +0 -22
  1070. package/dist/collection/utils/sanitize/test/serialize-fragment.test.js +0 -25
  1071. package/dist/collection/utils/sanitize/test/style-strategy.test.js +0 -45
  1072. package/dist/collection/utils/spec-utils.js +0 -225
  1073. package/dist/collection/utils/test/accessibility.test.js +0 -40
  1074. package/dist/collection/utils/test/api.test.js +0 -34
  1075. package/dist/collection/utils/test/array.test.js +0 -260
  1076. package/dist/collection/utils/test/breakpoint.test.js +0 -37
  1077. package/dist/collection/utils/test/component.test.js +0 -59
  1078. package/dist/collection/utils/test/date.test.js +0 -104
  1079. package/dist/collection/utils/test/design-token.test.js +0 -91
  1080. package/dist/collection/utils/test/effect.test.js +0 -64
  1081. package/dist/collection/utils/test/local-storage.test.js +0 -38
  1082. package/dist/collection/utils/test/log.test.js +0 -49
  1083. package/dist/collection/utils/test/misc.test.js +0 -40
  1084. package/dist/collection/utils/test/number.test.js +0 -18
  1085. package/dist/collection/utils/test/object.test.js +0 -77
  1086. package/dist/collection/utils/test/pagination.test.js +0 -40
  1087. package/dist/collection/utils/test/pixel.test.js +0 -29
  1088. package/dist/collection/utils/test/safe-document.test.js +0 -13
  1089. package/dist/collection/utils/test/spec-utils.test.js +0 -73
  1090. package/dist/collection/utils/test/string.test.js +0 -8
  1091. package/dist/collection/utils/test/test-utils.test.js +0 -70
  1092. package/dist/collection/utils/test/timer.test.js +0 -16
  1093. package/dist/collection/utils/test/ui.test.js +0 -301
  1094. package/dist/collection/utils/test-utils.js +0 -156
  1095. package/dist/esm/app-globals-3b97bb20.js +0 -426
  1096. package/dist/esm/breakpoints-13353e09.js +0 -53
  1097. package/dist/esm/child-nodes-event-prevent-slimmer-4feabae0.js +0 -156
  1098. package/dist/esm/child-nodes-notify-observer-slimmer-541dd6a4.js +0 -88
  1099. package/dist/esm/code-block-d65bab61.js +0 -4364
  1100. package/dist/esm/component-value-history-controller-slimmer.abstract-556fcf2a.js +0 -730
  1101. package/dist/esm/date-required-rule-4ffd9cae.js +0 -90
  1102. package/dist/esm/deprecated-property-slimmer-2c14df89.js +0 -49
  1103. package/dist/esm/design-token-b518a2aa.js +0 -388
  1104. package/dist/esm/dom-node-subject-observer-factory-82f346e3.js +0 -138
  1105. package/dist/esm/dto-renderer-manager-73df5cbe.js +0 -4101
  1106. package/dist/esm/element-appender-slimmer-36b7a572.js +0 -1972
  1107. package/dist/esm/event-emit-slimmer-f879fd58.js +0 -265
  1108. package/dist/esm/form-field-controller-slimmer-9a880420.js +0 -1264
  1109. package/dist/esm/image-annotation-action-eb3dcad5.js +0 -307
  1110. package/dist/esm/inject-keyboard-manager-e5481833.js +0 -35
  1111. package/dist/esm/internal-translation-controller-0787a7a7.js +0 -296
  1112. package/dist/esm/internal-vega-event-manager-3aebbe55.js +0 -494
  1113. package/dist/esm/keyboard-manager-4dfc625f.js +0 -138
  1114. package/dist/esm/keyboard-manager-slimmer-87bf68f1.js +0 -37
  1115. package/dist/esm/month-view-generator-94134ec5.js +0 -98
  1116. package/dist/esm/object-66c37948.js +0 -46
  1117. package/dist/esm/page-resize-observer-slimmer-e0505250.js +0 -121
  1118. package/dist/esm/public-rules-49912d52.js +0 -31
  1119. package/dist/esm/range-0a22b512.js +0 -176
  1120. package/dist/esm/responsive-format-facade-b3799ff9.js +0 -912
  1121. package/dist/esm/rich-text-editor-required-rule-d86e3a51.js +0 -62
  1122. package/dist/esm/string-format-strategy.abstract-e40a0df7.js +0 -58
  1123. package/dist/esm/string-input-formatter-slimmer-076764fc.js +0 -228
  1124. package/dist/esm/string-mask-strategy-df1f5707.js +0 -170
  1125. package/dist/esm/style-formatter-95255392.js +0 -32
  1126. package/dist/esm/sub-state-notify-slimmer-f4b3b0b9.js +0 -79
  1127. package/dist/esm/sub-state-observer-slimmer-058feaf0.js +0 -132
  1128. package/dist/esm/time-required-rule-b4af75ae.js +0 -138
  1129. package/dist/esm/token-extension-ffd98170.js +0 -3041
  1130. package/dist/esm/translation-slimmer-e788cae4.js +0 -40
  1131. package/dist/esm/type-guard-f69d2935.js +0 -1939
  1132. package/dist/esm/ui-41f725b7.js +0 -45
  1133. package/dist/esm/ui-ee31416b.js +0 -241
  1134. package/dist/esm/valid-credit-card-number-rule-c023326d.js +0 -171
  1135. package/dist/esm/vega-event-id-fdc58a67.js +0 -114
  1136. package/dist/esm/vega-internal-event-id-12783594.js +0 -70
  1137. package/dist/esm/wait-for-component-did-render-4d0a3428.js +0 -30
  1138. package/dist/types/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.d.ts +0 -1
  1139. package/dist/types/components/vega-calendar/slimmers/common/layout/test/long-event-layout-generator.test.d.ts +0 -1
  1140. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/day-view-event-layout-generator.test.d.ts +0 -1
  1141. package/dist/types/components/vega-code-block/test/code-block-range.test.d.ts +0 -1
  1142. package/dist/types/components/vega-dropdown/test/share.d.ts +0 -12
  1143. package/dist/types/components/vega-input-credit-card/test/share.d.ts +0 -18
  1144. package/dist/types/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.d.ts +0 -4
  1145. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.test.d.ts +0 -1
  1146. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.d.ts +0 -22
  1147. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.d.ts +0 -22
  1148. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.d.ts +0 -1
  1149. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-delete-node-content-strategy.test.d.ts +0 -1
  1150. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.d.ts +0 -1
  1151. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.d.ts +0 -1
  1152. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.d.ts +0 -1
  1153. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.d.ts +0 -1
  1154. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-set-annotation-map-strategy.test.d.ts +0 -1
  1155. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-update-url-strategy.test.d.ts +0 -1
  1156. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.d.ts +0 -1
  1157. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.d.ts +0 -1
  1158. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.d.ts +0 -1
  1159. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.d.ts +0 -1
  1160. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.d.ts +0 -1
  1161. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/update-selected-text-strategy.test.d.ts +0 -1
  1162. package/dist/types/components/vega-rich-text-editor/test/dto/annotation-actions.test.d.ts +0 -1
  1163. package/dist/types/components/vega-rich-text-editor/test/dto/annotation-style.test.d.ts +0 -1
  1164. package/dist/types/components/vega-rich-text-editor/test/dto/annotations.test.d.ts +0 -1
  1165. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/code-block.test.d.ts +0 -1
  1166. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/html-block.test.d.ts +0 -1
  1167. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/image-block.test.d.ts +0 -1
  1168. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/list-block.test.d.ts +0 -1
  1169. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/list-item.test.d.ts +0 -1
  1170. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/text-block.test.d.ts +0 -1
  1171. package/dist/types/components/vega-rich-text-editor/test/dto/content-state.test.d.ts +0 -1
  1172. package/dist/types/components/vega-rich-text-editor/test/dto/nodes/image-node.test.d.ts +0 -1
  1173. package/dist/types/components/vega-rich-text-editor/test/dto/nodes/text-node.test.d.ts +0 -1
  1174. package/dist/types/components/vega-rich-text-editor/test/dto/range.test.d.ts +0 -1
  1175. package/dist/types/components/vega-rich-text-editor/test/e2e-utils.d.ts +0 -67
  1176. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/custom-attribute-annotation-handler.test.d.ts +0 -1
  1177. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/element-to-text-node-strategy.test.d.ts +0 -1
  1178. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/html-element-to-annotation-generator.test.d.ts +0 -1
  1179. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.test.d.ts +0 -1
  1180. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.test.d.ts +0 -1
  1181. package/dist/types/components/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +0 -21
  1182. package/dist/types/components/vega-rich-text-editor/test/fixture.d.ts +0 -19
  1183. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.d.ts +0 -1
  1184. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.d.ts +0 -1
  1185. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.d.ts +0 -1
  1186. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.d.ts +0 -1
  1187. package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +0 -15
  1188. package/dist/types/components/vega-sidenav/test/test.helper.d.ts +0 -6
  1189. package/dist/types/components/vega-table/slimmers/controllers/dto/test/column-render-input-model.test.d.ts +0 -1
  1190. package/dist/types/components/vega-table/slimmers/controllers/dto/test/column-structure-model.test.d.ts +0 -1
  1191. package/dist/types/components/vega-table/test/utils.d.ts +0 -9
  1192. package/dist/types/components/vega-table/test/vega-table-sorter.test.d.ts +0 -1
  1193. package/dist/types/constants/tests/validator.test.d.ts +0 -1
  1194. package/dist/types/decorators/method-decorators/tests/component-load-required.test.d.ts +0 -1
  1195. package/dist/types/decorators/property-decorators/tests/inject-element-appender-proxy.test.d.ts +0 -1
  1196. package/dist/types/decorators/property-decorators/tests/inject-keyboard-manager.test.d.ts +0 -1
  1197. package/dist/types/global/tests/before-vega-load.test.d.ts +0 -1
  1198. package/dist/types/helpers/calendar/test/calendar-date-time.test.d.ts +0 -1
  1199. package/dist/types/helpers/calendar/test/calendar-date.test.d.ts +0 -1
  1200. package/dist/types/helpers/calendar/test/calendar-event.test.d.ts +0 -1
  1201. package/dist/types/helpers/calendar/test/calendar-period/day-period.test.d.ts +0 -1
  1202. package/dist/types/helpers/calendar/test/calendar-period/month-period.test.d.ts +0 -1
  1203. package/dist/types/helpers/calendar/test/calendar-period/week-period.test.d.ts +0 -1
  1204. package/dist/types/helpers/calendar/test/calendar-time.test.d.ts +0 -1
  1205. package/dist/types/helpers/calendar/test/calendar-view-generator/day-view-generator.test.d.ts +0 -1
  1206. package/dist/types/helpers/calendar/test/calendar-view-generator/month-view-generator.test.d.ts +0 -1
  1207. package/dist/types/helpers/calendar/test/calendar-view-generator/week-view-generator.test.d.ts +0 -1
  1208. package/dist/types/helpers/calendar/test/calendar-view.test.d.ts +0 -1
  1209. package/dist/types/helpers/calendar/test/index.test.d.ts +0 -1
  1210. package/dist/types/helpers/calendar/test/utils.test.d.ts +0 -1
  1211. package/dist/types/helpers/change-manager/test/change-manager.test.d.ts +0 -1
  1212. package/dist/types/helpers/change-manager/test/dom-node-subject-factory.test.d.ts +0 -1
  1213. package/dist/types/helpers/chart/test/controllers/chart-dimension-controller.test.d.ts +0 -1
  1214. package/dist/types/helpers/chart/test/drawers/arc-path-drawer.test.d.ts +0 -1
  1215. package/dist/types/helpers/chart/test/drawers/legend-drawer.test.d.ts +0 -1
  1216. package/dist/types/helpers/chart/test/drawers/line-drawer.test.d.ts +0 -1
  1217. package/dist/types/helpers/chart/test/drawers/path-drawer.test.d.ts +0 -1
  1218. package/dist/types/helpers/chart/test/drawers/rect-drawer.test.d.ts +0 -1
  1219. package/dist/types/helpers/chart/test/drawers/text-drawer.test.d.ts +0 -1
  1220. package/dist/types/helpers/chart/test/drawers/x-axis-drawer.test.d.ts +0 -1
  1221. package/dist/types/helpers/chart/test/drawers/y-axis-drawer.test.d.ts +0 -1
  1222. package/dist/types/helpers/chart/test/graph-context-factory.test.d.ts +0 -1
  1223. package/dist/types/helpers/chart/test/input-processors/format-time-positions-input-processor.test.d.ts +0 -1
  1224. package/dist/types/helpers/chart/test/input-processors/horizontal-x-axis-input-processor.test.d.ts +0 -1
  1225. package/dist/types/helpers/chart/test/input-processors/horizontal-y-axis-input-processor.test.d.ts +0 -1
  1226. package/dist/types/helpers/chart/test/input-processors/layout-input-processor.test.d.ts +0 -1
  1227. package/dist/types/helpers/chart/test/input-processors/line-path-input-processor.test.d.ts +0 -1
  1228. package/dist/types/helpers/chart/test/input-processors/pie-chart-filter-input-processor.test.d.ts +0 -1
  1229. package/dist/types/helpers/chart/test/input-processors/pie-chart-radius-input-processor.test.d.ts +0 -1
  1230. package/dist/types/helpers/chart/test/input-processors/sort-positions-input-processor.test.d.ts +0 -1
  1231. package/dist/types/helpers/chart/test/input-processors/x-axis-input-processor.test.d.ts +0 -1
  1232. package/dist/types/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.d.ts +0 -1
  1233. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +0 -1
  1234. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.test.d.ts +0 -1
  1235. package/dist/types/helpers/chart/test/interacting-entry-generator/arc-path-hover-generator.test.d.ts +0 -1
  1236. package/dist/types/helpers/chart/test/interacting-entry-generator/pie-legend-hover-generator.test.d.ts +0 -1
  1237. package/dist/types/helpers/chart/test/interactors/interactor-factory.test.d.ts +0 -1
  1238. package/dist/types/helpers/chart/test/interactors/svg-interactor.test.d.ts +0 -1
  1239. package/dist/types/helpers/chart/test/line-chart.test.d.ts +0 -1
  1240. package/dist/types/helpers/chart/test/pie-chart.test.d.ts +0 -1
  1241. package/dist/types/helpers/chart/test/renderers/canvas-renderer.test.d.ts +0 -1
  1242. package/dist/types/helpers/chart/test/renderers/renderer-factory.test.d.ts +0 -1
  1243. package/dist/types/helpers/chart/test/renderers/svg-renderer.test.d.ts +0 -1
  1244. package/dist/types/helpers/code-format/test/code-formatter.test.d.ts +0 -1
  1245. package/dist/types/helpers/common/test/common.test.d.ts +0 -1
  1246. package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +0 -1
  1247. package/dist/types/helpers/common/test/wait-for-vega-handler.test.d.ts +0 -1
  1248. package/dist/types/helpers/csp/test/styles-preservator.test.d.ts +0 -1
  1249. package/dist/types/helpers/csp/test/vega-nonce-manager.test.d.ts +0 -1
  1250. package/dist/types/helpers/dialog/test/vega-dialog-controller.test.d.ts +0 -1
  1251. package/dist/types/helpers/event-manager/test/child-nodes-event-prevent-slimmer.test.d.ts +0 -1
  1252. package/dist/types/helpers/event-manager/test/child-nodes-notify-observer-slimmer.test.d.ts +0 -1
  1253. package/dist/types/helpers/event-manager/test/component-event-id-map.test.d.ts +0 -1
  1254. package/dist/types/helpers/event-manager/test/event-emit-slimmer.test.d.ts +0 -1
  1255. package/dist/types/helpers/event-manager/test/internal-vega-event-manager.test.d.ts +0 -1
  1256. package/dist/types/helpers/event-manager/test/jquery-delegated-strategy-controller.test.d.ts +0 -1
  1257. package/dist/types/helpers/event-manager/test/vega-event-id.test.d.ts +0 -1
  1258. package/dist/types/helpers/event-manager/test/vega-event-manager.test.d.ts +0 -1
  1259. package/dist/types/helpers/feature-control/tests/feature-flag-controller.test.d.ts +0 -1
  1260. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-formatter.test.d.ts +0 -1
  1261. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-style-formatter.test.d.ts +0 -1
  1262. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-box-display-formatter.test.d.ts +0 -1
  1263. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-custom-formatter.test.d.ts +0 -1
  1264. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-display-formatter.test.d.ts +0 -1
  1265. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-flex-direction-formatter.test.d.ts +0 -1
  1266. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-flex-wrap-formatter.test.d.ts +0 -1
  1267. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-format-mediator.test.d.ts +0 -1
  1268. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.d.ts +0 -1
  1269. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-column-formatter.test.d.ts +0 -1
  1270. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-row-formatter.test.d.ts +0 -1
  1271. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-margin-formatter.test.d.ts +0 -1
  1272. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-margin-style-formatter.test.d.ts +0 -1
  1273. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-padding-formatter.test.d.ts +0 -1
  1274. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-padding-style-formatter.test.d.ts +0 -1
  1275. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-size-formatter.test.d.ts +0 -1
  1276. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-text-align-formatter.test.d.ts +0 -1
  1277. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-translocation-formatter.test.d.ts +0 -1
  1278. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-width-and-height-formatter.test.d.ts +0 -1
  1279. package/dist/types/helpers/formatter/test/state-formatter/state-background-color-formatter.test.d.ts +0 -1
  1280. package/dist/types/helpers/formatter/test/state-formatter/state-border-color-formatter.test.d.ts +0 -1
  1281. package/dist/types/helpers/formatter/test/state-formatter/state-border-formatter.test.d.ts +0 -1
  1282. package/dist/types/helpers/formatter/test/state-formatter/state-format-facade.test.d.ts +0 -1
  1283. package/dist/types/helpers/formatter/test/state-formatter/state-shadow-formatter.test.d.ts +0 -1
  1284. package/dist/types/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.d.ts +0 -1
  1285. package/dist/types/helpers/formatter/test/string-formatter/number-mask-strategy.test.d.ts +0 -1
  1286. package/dist/types/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.d.ts +0 -1
  1287. package/dist/types/helpers/formatter/test/string-formatter/string-mask-strategy.test.d.ts +0 -1
  1288. package/dist/types/helpers/formatter/test/string-formatter/thousand-comma-strategy.test.d.ts +0 -1
  1289. package/dist/types/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.d.ts +0 -1
  1290. package/dist/types/helpers/formatter/test/style-formatter.test.d.ts +0 -1
  1291. package/dist/types/helpers/icon/test/icon-manager-controller.test.d.ts +0 -1
  1292. package/dist/types/helpers/icon/test/internal-icon-manager.test.d.ts +0 -1
  1293. package/dist/types/helpers/immutable/test/immutable-array.test.d.ts +0 -1
  1294. package/dist/types/helpers/immutable/test/immutable-map.test.d.ts +0 -1
  1295. package/dist/types/helpers/immutable/test/immutable-set.test.d.ts +0 -1
  1296. package/dist/types/helpers/keyboard/test/keyboard-manager.test.d.ts +0 -1
  1297. package/dist/types/helpers/level-tracker/test/nested-level-tracker.test.d.ts +0 -1
  1298. package/dist/types/helpers/loading-indicator/tests/vega-loader-controller.test.d.ts +0 -1
  1299. package/dist/types/helpers/notify/tests/vega-notify-controller.test.d.ts +0 -1
  1300. package/dist/types/helpers/paginator/test/value-paginator.test.d.ts +0 -1
  1301. package/dist/types/helpers/queue/test/synchronize-task-queue.test.d.ts +0 -1
  1302. package/dist/types/helpers/remote-invocation/remote-invocation-registry.test.d.ts +0 -1
  1303. package/dist/types/helpers/rte-manager/rte.manager.test.d.ts +0 -1
  1304. package/dist/types/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.d.ts +0 -1
  1305. package/dist/types/helpers/slimmers/element-appender/test/element-appender-slimmer.test.d.ts +0 -1
  1306. package/dist/types/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.d.ts +0 -1
  1307. package/dist/types/helpers/slimmers/mutation-observer/test/data-tab-index-value-mapper.test.d.ts +0 -1
  1308. package/dist/types/helpers/slimmers/mutation-observer/test/mutation-observer-slimmer.test.d.ts +0 -1
  1309. package/dist/types/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.d.ts +0 -15
  1310. package/dist/types/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.d.ts +0 -1
  1311. package/dist/types/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.d.ts +0 -1
  1312. package/dist/types/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.d.ts +0 -1
  1313. package/dist/types/helpers/slimmers/test/auto-run-when-re-render-task-queue-slimmer.test.d.ts +0 -1
  1314. package/dist/types/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.d.ts +0 -1
  1315. package/dist/types/helpers/slimmers/test/component-global-style-slimmer.test.d.ts +0 -1
  1316. package/dist/types/helpers/slimmers/test/component-usage-runtime-metrics.test.d.ts +0 -1
  1317. package/dist/types/helpers/slimmers/test/dark-mode-state-controller.test.d.ts +0 -1
  1318. package/dist/types/helpers/slimmers/test/deprecated-property-slimmer.test.d.ts +0 -1
  1319. package/dist/types/helpers/slimmers/test/field-error-controller-slimmer.test.d.ts +0 -1
  1320. package/dist/types/helpers/slimmers/test/form-field-controller-slimmer.test.d.ts +0 -1
  1321. package/dist/types/helpers/slimmers/test/form-field-valid-invoke-slimmer.test.d.ts +0 -1
  1322. package/dist/types/helpers/slimmers/test/global/vega-nonce-injector-slimmer.test.d.ts +0 -1
  1323. package/dist/types/helpers/slimmers/test/global/vega-translate-observer-slimmer.test.d.ts +0 -1
  1324. package/dist/types/helpers/slimmers/test/global/vega-watch-method-cancel-slimmer.test.d.ts +0 -1
  1325. package/dist/types/helpers/slimmers/test/keyboard-manager-slimmer.test.d.ts +0 -1
  1326. package/dist/types/helpers/slimmers/test/page-resize-observer-slimmer.test.d.ts +0 -1
  1327. package/dist/types/helpers/slimmers/test/string-input-formatter-slimmer.test.d.ts +0 -1
  1328. package/dist/types/helpers/slimmers/test/translation-slimmer.test.d.ts +0 -1
  1329. package/dist/types/helpers/theme/tests/theme-manager-controller.test.d.ts +0 -1
  1330. package/dist/types/helpers/touch-helper/test/touch-listener.test.d.ts +0 -1
  1331. package/dist/types/helpers/translation/tests/internal-translation-controller.test.d.ts +0 -1
  1332. package/dist/types/helpers/translation/tests/translation.test.d.ts +0 -1
  1333. package/dist/types/helpers/ui/test/element-appender.test.d.ts +0 -1
  1334. package/dist/types/helpers/validator/test/rules/check-box-required-rule.test.d.ts +0 -1
  1335. package/dist/types/helpers/validator/test/rules/custom-validation-rule.test.d.ts +0 -1
  1336. package/dist/types/helpers/validator/test/rules/date-range-rule.test.d.ts +0 -1
  1337. package/dist/types/helpers/validator/test/rules/date-required-rule.test.d.ts +0 -1
  1338. package/dist/types/helpers/validator/test/rules/email-field-rule.test.d.ts +0 -1
  1339. package/dist/types/helpers/validator/test/rules/file-uploader-required-rule.test.d.ts +0 -1
  1340. package/dist/types/helpers/validator/test/rules/input-phone-number-required-rule.test.d.ts +0 -1
  1341. package/dist/types/helpers/validator/test/rules/input-range-min-and-max-rule.test.d.ts +0 -1
  1342. package/dist/types/helpers/validator/test/rules/input-range-required-rule.test.d.ts +0 -1
  1343. package/dist/types/helpers/validator/test/rules/input-select-value-in-source-rule.test.d.ts +0 -1
  1344. package/dist/types/helpers/validator/test/rules/max-number-rule.test.d.ts +0 -1
  1345. package/dist/types/helpers/validator/test/rules/max-string-length-rule.test.d.ts +0 -1
  1346. package/dist/types/helpers/validator/test/rules/min-and-max-date-rule.test.d.ts +0 -1
  1347. package/dist/types/helpers/validator/test/rules/min-number-rule.test.d.ts +0 -1
  1348. package/dist/types/helpers/validator/test/rules/min-string-length-rule.test.d.ts +0 -1
  1349. package/dist/types/helpers/validator/test/rules/public-rules.test.d.ts +0 -1
  1350. package/dist/types/helpers/validator/test/rules/required-field-rule.test.d.ts +0 -1
  1351. package/dist/types/helpers/validator/test/rules/rich-text-editor-required-rule.test.d.ts +0 -1
  1352. package/dist/types/helpers/validator/test/rules/time-range-required-rule.test.d.ts +0 -1
  1353. package/dist/types/helpers/validator/test/rules/time-range-rule.test.d.ts +0 -1
  1354. package/dist/types/helpers/validator/test/rules/time-required-rule.test.d.ts +0 -1
  1355. package/dist/types/helpers/validator/test/rules/toggle-switch-required-rule.test.d.ts +0 -1
  1356. package/dist/types/helpers/validator/test/rules/valid-credit-card-number-rule.test.d.ts +0 -1
  1357. package/dist/types/helpers/validator/test/rules/valid-phone-number-rule.test.d.ts +0 -1
  1358. package/dist/types/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler-chain.test.d.ts +0 -1
  1359. package/dist/types/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler.test.d.ts +0 -1
  1360. package/dist/types/helpers/validator/test/validator/form-field-controller.test.d.ts +0 -1
  1361. package/dist/types/helpers/vega-telemetry-helper/test/vega-env-manager.test.d.ts +0 -1
  1362. package/dist/types/helpers/zindex/test/internal-vega-z-index-manager.test.d.ts +0 -1
  1363. package/dist/types/helpers/zindex/test/vega-z-index-manager.test.d.ts +0 -1
  1364. package/dist/types/polyfill/d3/test/d3-array-polyfill.test.d.ts +0 -1
  1365. package/dist/types/polyfill/d3/test/d3-axis-polyfill.test.d.ts +0 -1
  1366. package/dist/types/polyfill/d3/test/d3-integration.test.d.ts +0 -1
  1367. package/dist/types/polyfill/d3/test/d3-scale-polyfill.test.d.ts +0 -1
  1368. package/dist/types/polyfill/d3/test/d3-selection-polyfill.test.d.ts +0 -1
  1369. package/dist/types/polyfill/d3/test/d3-shape-polyfill.test.d.ts +0 -1
  1370. package/dist/types/polyfill/d3/test/d3-time-format-polyfill.test.d.ts +0 -1
  1371. package/dist/types/polyfill/d3/test/d3-time-polyfill.test.d.ts +0 -1
  1372. package/dist/types/polyfill/d3/test/index.test.d.ts +0 -1
  1373. package/dist/types/polyfill/libphonenumber/test/as-you-type.test.d.ts +0 -1
  1374. package/dist/types/polyfill/libphonenumber/test/format-helpers.test.d.ts +0 -1
  1375. package/dist/types/polyfill/libphonenumber/test/index.test.d.ts +0 -1
  1376. package/dist/types/polyfill/libphonenumber/test/metadata.test.d.ts +0 -1
  1377. package/dist/types/polyfill/libphonenumber/test/parse-phone-number.test.d.ts +0 -1
  1378. package/dist/types/polyfill/libphonenumber/test/phone-number.test.d.ts +0 -1
  1379. package/dist/types/polyfill/prism/test/css.test.d.ts +0 -1
  1380. package/dist/types/polyfill/prism/test/javascript.test.d.ts +0 -1
  1381. package/dist/types/polyfill/prism/test/jsx.test.d.ts +0 -1
  1382. package/dist/types/polyfill/prism/test/language-registry.test.d.ts +0 -1
  1383. package/dist/types/polyfill/prism/test/markup.test.d.ts +0 -1
  1384. package/dist/types/polyfill/prism/test/test-utils.d.ts +0 -10
  1385. package/dist/types/polyfill/prism/test/tokenizer.test.d.ts +0 -1
  1386. package/dist/types/polyfill/prism/test/tsx.test.d.ts +0 -1
  1387. package/dist/types/polyfill/prism/test/typescript.test.d.ts +0 -1
  1388. package/dist/types/polyfill/shadow-selection/test/shadow-selection-polyfill.test.d.ts +0 -0
  1389. package/dist/types/polyfill/test-polyfill/e2e/retry.d.ts +0 -8
  1390. package/dist/types/polyfill/test-polyfill/unit/create-touch-event.d.ts +0 -11
  1391. package/dist/types/polyfill/test-polyfill/unit/events.d.ts +0 -1
  1392. package/dist/types/polyfill/test-polyfill/unit/index.d.ts +0 -3
  1393. package/dist/types/polyfill/test-polyfill/unit/methods.d.ts +0 -1
  1394. package/dist/types/polyfill/test-polyfill/unit/range.d.ts +0 -7
  1395. package/dist/types/polyfill/test-polyfill/unit/shadow-selection.d.ts +0 -0
  1396. package/dist/types/polyfill/tinycolor/tinycolor-polyfill.test.d.ts +0 -1
  1397. package/dist/types/test-assets/test-icons.d.ts +0 -4
  1398. package/dist/types/types/test/type-guard.test.d.ts +0 -1
  1399. package/dist/types/utils/e2e-utils.d.ts +0 -150
  1400. package/dist/types/utils/sanitize/test/empty-strategy.test.d.ts +0 -1
  1401. package/dist/types/utils/sanitize/test/html-sanitizer.test.d.ts +0 -1
  1402. package/dist/types/utils/sanitize/test/label-strategy.test.d.ts +0 -1
  1403. package/dist/types/utils/sanitize/test/sanitize-strategy.test.d.ts +0 -1
  1404. package/dist/types/utils/sanitize/test/sanitize.test.d.ts +0 -1
  1405. package/dist/types/utils/sanitize/test/serialize-fragment.test.d.ts +0 -1
  1406. package/dist/types/utils/sanitize/test/style-strategy.test.d.ts +0 -1
  1407. package/dist/types/utils/spec-utils.d.ts +0 -108
  1408. package/dist/types/utils/test/accessibility.test.d.ts +0 -1
  1409. package/dist/types/utils/test/api.test.d.ts +0 -1
  1410. package/dist/types/utils/test/array.test.d.ts +0 -1
  1411. package/dist/types/utils/test/breakpoint.test.d.ts +0 -1
  1412. package/dist/types/utils/test/component.test.d.ts +0 -1
  1413. package/dist/types/utils/test/date.test.d.ts +0 -1
  1414. package/dist/types/utils/test/design-token.test.d.ts +0 -1
  1415. package/dist/types/utils/test/effect.test.d.ts +0 -1
  1416. package/dist/types/utils/test/local-storage.test.d.ts +0 -1
  1417. package/dist/types/utils/test/log.test.d.ts +0 -1
  1418. package/dist/types/utils/test/misc.test.d.ts +0 -1
  1419. package/dist/types/utils/test/number.test.d.ts +0 -1
  1420. package/dist/types/utils/test/object.test.d.ts +0 -1
  1421. package/dist/types/utils/test/pagination.test.d.ts +0 -1
  1422. package/dist/types/utils/test/pixel.test.d.ts +0 -1
  1423. package/dist/types/utils/test/safe-document.test.d.ts +0 -1
  1424. package/dist/types/utils/test/spec-utils.test.d.ts +0 -1
  1425. package/dist/types/utils/test/string.test.d.ts +0 -1
  1426. package/dist/types/utils/test/test-utils.test.d.ts +0 -1
  1427. package/dist/types/utils/test/timer.test.d.ts +0 -1
  1428. package/dist/types/utils/test/ui.test.d.ts +0 -1
  1429. package/dist/types/utils/test-utils.d.ts +0 -61
  1430. package/dist/vega/p-0009e0bc.entry.js +0 -1
  1431. package/dist/vega/p-02976501.js +0 -1
  1432. package/dist/vega/p-03280f85.entry.js +0 -1
  1433. package/dist/vega/p-03b1e442.js +0 -1
  1434. package/dist/vega/p-0681ffee.entry.js +0 -1
  1435. package/dist/vega/p-093aa0cb.entry.js +0 -1
  1436. package/dist/vega/p-1828f9e6.entry.js +0 -1
  1437. package/dist/vega/p-19883e27.entry.js +0 -1
  1438. package/dist/vega/p-1e015382.js +0 -1
  1439. package/dist/vega/p-1ff45314.entry.js +0 -1
  1440. package/dist/vega/p-24b4c64f.js +0 -1
  1441. package/dist/vega/p-2e7ec8e0.entry.js +0 -1
  1442. package/dist/vega/p-309b5016.entry.js +0 -1
  1443. package/dist/vega/p-31ac7386.js +0 -1
  1444. package/dist/vega/p-3592a26d.entry.js +0 -1
  1445. package/dist/vega/p-383e235a.entry.js +0 -1
  1446. package/dist/vega/p-3992038a.js +0 -1
  1447. package/dist/vega/p-3a537cd0.js +0 -1
  1448. package/dist/vega/p-3b7ad04b.entry.js +0 -1
  1449. package/dist/vega/p-3d4b8066.entry.js +0 -1
  1450. package/dist/vega/p-3e484d99.entry.js +0 -1
  1451. package/dist/vega/p-3fd3861c.entry.js +0 -1
  1452. package/dist/vega/p-4079e932.js +0 -1
  1453. package/dist/vega/p-43df17a1.js +0 -1
  1454. package/dist/vega/p-473ceda5.entry.js +0 -1
  1455. package/dist/vega/p-474b97cf.entry.js +0 -1
  1456. package/dist/vega/p-47c202eb.entry.js +0 -1
  1457. package/dist/vega/p-4e0344bc.entry.js +0 -1
  1458. package/dist/vega/p-4efe9cd8.entry.js +0 -1
  1459. package/dist/vega/p-536ad3d7.entry.js +0 -1
  1460. package/dist/vega/p-53e0b2bd.entry.js +0 -1
  1461. package/dist/vega/p-57180993.entry.js +0 -1
  1462. package/dist/vega/p-5b238c6d.js +0 -1
  1463. package/dist/vega/p-5ba34330.js +0 -1
  1464. package/dist/vega/p-5e1d0f21.entry.js +0 -1
  1465. package/dist/vega/p-5ed5aa26.js +0 -1
  1466. package/dist/vega/p-5f81beae.js +0 -1
  1467. package/dist/vega/p-6a8ac66d.entry.js +0 -1
  1468. package/dist/vega/p-6b3776ec.js +0 -1
  1469. package/dist/vega/p-6b4021f0.entry.js +0 -1
  1470. package/dist/vega/p-6c170474.js +0 -1
  1471. package/dist/vega/p-6cf28c27.js +0 -1
  1472. package/dist/vega/p-71cd1d9e.entry.js +0 -1
  1473. package/dist/vega/p-7440325c.entry.js +0 -1
  1474. package/dist/vega/p-764425e4.entry.js +0 -1
  1475. package/dist/vega/p-77908e45.entry.js +0 -1
  1476. package/dist/vega/p-7ade785e.js +0 -1
  1477. package/dist/vega/p-7db5e003.js +0 -1
  1478. package/dist/vega/p-7db918f4.js +0 -1
  1479. package/dist/vega/p-7f398d23.entry.js +0 -1
  1480. package/dist/vega/p-7f665911.entry.js +0 -1
  1481. package/dist/vega/p-840f156e.entry.js +0 -1
  1482. package/dist/vega/p-87379d3c.js +0 -1
  1483. package/dist/vega/p-87ed06cd.entry.js +0 -1
  1484. package/dist/vega/p-882a220c.js +0 -1
  1485. package/dist/vega/p-8852361b.js +0 -1
  1486. package/dist/vega/p-898bcb24.js +0 -1
  1487. package/dist/vega/p-8fbb677e.entry.js +0 -1
  1488. package/dist/vega/p-9493d87a.js +0 -1
  1489. package/dist/vega/p-951c0172.js +0 -1
  1490. package/dist/vega/p-95919581.entry.js +0 -1
  1491. package/dist/vega/p-95d1b547.js +0 -1
  1492. package/dist/vega/p-99c8f9a4.entry.js +0 -1
  1493. package/dist/vega/p-9c713bc0.js +0 -1
  1494. package/dist/vega/p-9dc77b66.entry.js +0 -1
  1495. package/dist/vega/p-9f467a59.js +0 -1
  1496. package/dist/vega/p-a113fd15.entry.js +0 -1
  1497. package/dist/vega/p-a253e791.entry.js +0 -1
  1498. package/dist/vega/p-a3272850.entry.js +0 -1
  1499. package/dist/vega/p-a432708d.entry.js +0 -1
  1500. package/dist/vega/p-a57a7ab8.entry.js +0 -1
  1501. package/dist/vega/p-a58bd510.entry.js +0 -1
  1502. package/dist/vega/p-a957e15f.js +0 -1
  1503. package/dist/vega/p-abb81b7b.js +0 -1
  1504. package/dist/vega/p-ae6ed091.entry.js +0 -1
  1505. package/dist/vega/p-b5e31243.entry.js +0 -1
  1506. package/dist/vega/p-b88ca09b.js +0 -1
  1507. package/dist/vega/p-b901d624.js +0 -1
  1508. package/dist/vega/p-ba475520.entry.js +0 -1
  1509. package/dist/vega/p-bf04ff19.js +0 -1
  1510. package/dist/vega/p-bf19682d.js +0 -1
  1511. package/dist/vega/p-c208a3b7.js +0 -1
  1512. package/dist/vega/p-c25577ae.entry.js +0 -1
  1513. package/dist/vega/p-c2560608.entry.js +0 -1
  1514. package/dist/vega/p-c2df94f6.js +0 -1
  1515. package/dist/vega/p-c3eec160.entry.js +0 -1
  1516. package/dist/vega/p-c6031d3f.entry.js +0 -1
  1517. package/dist/vega/p-c72e08c6.entry.js +0 -1
  1518. package/dist/vega/p-c87cf96a.entry.js +0 -1
  1519. package/dist/vega/p-cc243e62.entry.js +0 -1
  1520. package/dist/vega/p-cd3d177b.entry.js +0 -1
  1521. package/dist/vega/p-d0687ec0.js +0 -1
  1522. package/dist/vega/p-d25db724.js +0 -1
  1523. package/dist/vega/p-d42dbe39.js +0 -1
  1524. package/dist/vega/p-d5570331.entry.js +0 -1
  1525. package/dist/vega/p-d5797747.js +0 -1
  1526. package/dist/vega/p-d7434f44.entry.js +0 -1
  1527. package/dist/vega/p-db92453f.entry.js +0 -1
  1528. package/dist/vega/p-e52890db.js +0 -1
  1529. package/dist/vega/p-e5be807b.entry.js +0 -1
  1530. package/dist/vega/p-e6f0097f.js +0 -1
  1531. package/dist/vega/p-e7a8b61e.entry.js +0 -1
  1532. package/dist/vega/p-f46f6679.entry.js +0 -1
  1533. package/dist/vega/p-f49e8cc5.entry.js +0 -1
  1534. package/dist/vega/p-f5b6059d.entry.js +0 -1
  1535. package/dist/vega/p-fb40a829.js +0 -1
@@ -1,3123 +0,0 @@
1
- import { VegaRTEContent } from '../../dto/content-state';
2
- import { HTMLContentCleaner } from '../../slimmers/controllers/html-cleaner';
3
- import { RTETextBlock } from '../../dto/blocks/text-block';
4
- import { RTEImageBlock } from '../../dto/blocks/image-block';
5
- import { RTEListBlock } from '../../dto/blocks/list-block';
6
- import { BlockAnnotationTypeEnum } from '../../dto/annotations/block-annotation.abstract';
7
- import { NodeAnnotationTypeEnum } from '../../dto/annotations/node-annotation.abstract';
8
- import '../../../../polyfill/test-polyfill/unit/index';
9
- import CodeFormatter from '../../../../helpers/code-format/code-formatter';
10
- import { setVegaLogLevel } from '../../../../utils/log';
11
- describe('content state', () => {
12
- it('fromJSON should work as expect', () => {
13
- expect(() => VegaRTEContent.fromJSON([
14
- {
15
- id: '1',
16
- type: 'error-type',
17
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
18
- },
19
- ])).toThrowError('[Vega] Unknown block type: error-type');
20
- expect(VegaRTEContent.fromJSON([
21
- {
22
- id: '1',
23
- type: 'paragraph',
24
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
25
- },
26
- ]).children[0] instanceof RTETextBlock).toBeTruthy();
27
- expect(VegaRTEContent.fromJSON([
28
- { id: '2', type: 'title', nodes: [{ id: '2-1', type: 'text', text: 'This is a title' }] },
29
- ]).children[0] instanceof RTETextBlock).toBeTruthy();
30
- expect(VegaRTEContent.fromJSON([
31
- {
32
- id: '3',
33
- type: 'subtitle',
34
- nodes: [{ id: '3-1', type: 'text', text: 'This is a subtitle' }],
35
- },
36
- ]).children[0] instanceof RTETextBlock).toBeTruthy();
37
- expect(VegaRTEContent.fromJSON([
38
- {
39
- id: '4',
40
- type: 'heading-1',
41
- nodes: [{ id: '4-1', type: 'text', text: 'This is a heading-1' }],
42
- },
43
- ]).children[0] instanceof RTETextBlock).toBeTruthy();
44
- expect(VegaRTEContent.fromJSON([
45
- {
46
- id: '5',
47
- type: 'heading-2',
48
- nodes: [{ id: '5-1', type: 'text', text: 'This is a heading-2' }],
49
- },
50
- ]).children[0] instanceof RTETextBlock).toBeTruthy();
51
- expect(VegaRTEContent.fromJSON([
52
- {
53
- id: '6',
54
- type: 'heading-3',
55
- nodes: [{ id: '6-1', type: 'text', text: 'This is a heading-3' }],
56
- },
57
- ]).children[0] instanceof RTETextBlock).toBeTruthy();
58
- expect(VegaRTEContent.fromJSON([
59
- {
60
- id: '7',
61
- type: 'image',
62
- nodes: [{ id: '7-1', type: 'image', url: 'mock-url' }],
63
- },
64
- ]).children[0] instanceof RTEImageBlock).toBeTruthy();
65
- expect(VegaRTEContent.fromJSON([
66
- {
67
- id: '8',
68
- type: 'bullet-list',
69
- blocks: [
70
- {
71
- id: '8-1',
72
- type: 'list-item',
73
- nodes: [
74
- {
75
- id: '1-1-1-1-1',
76
- type: 'text',
77
- text: 'This is a bullet-list 3-1.',
78
- },
79
- ],
80
- },
81
- ],
82
- },
83
- ]).children[0] instanceof RTEListBlock).toBeTruthy();
84
- });
85
- it('toJSON method should work as expect', () => {
86
- expect(VegaRTEContent.fromJSON([
87
- {
88
- id: '1',
89
- type: 'paragraph',
90
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
91
- },
92
- ]).toJSON()).toEqual([
93
- {
94
- id: '1',
95
- type: 'paragraph',
96
- nodes: [{ id: '1-1', text: 'This is a paragraph', type: 'text' }],
97
- annotations: {
98
- textStyle: 'paragraph',
99
- },
100
- },
101
- ]);
102
- expect(VegaRTEContent.fromJSON([
103
- {
104
- id: '1',
105
- type: 'paragraph',
106
- nodes: [
107
- { id: '1-1', type: 'text', text: 'This is a paragraph', annotations: { bold: true } },
108
- ],
109
- annotations: { textAlign: 'right', indent: 2 },
110
- },
111
- ]).toJSON()).toEqual([
112
- {
113
- id: '1',
114
- type: 'paragraph',
115
- nodes: [
116
- { id: '1-1', text: 'This is a paragraph', type: 'text', annotations: { bold: true } },
117
- ],
118
- annotations: { textAlign: 'right', indent: 2, textStyle: 'paragraph' },
119
- },
120
- ]);
121
- });
122
- it('clone method should work as expect', () => {
123
- const contentState = VegaRTEContent.fromJSON([
124
- {
125
- id: '1',
126
- type: 'paragraph',
127
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
128
- },
129
- ]);
130
- const clonedContentState = contentState.clone();
131
- expect(clonedContentState).not.toBe(contentState);
132
- expect(clonedContentState).toEqual(contentState);
133
- });
134
- it('should deep clone content state', () => {
135
- const contentState = VegaRTEContent.fromJSON([
136
- {
137
- id: '1',
138
- type: 'paragraph',
139
- annotations: {
140
- textStyle: 'paragraph',
141
- },
142
- nodes: [
143
- { id: '1-1', type: 'text', text: 'This is a paragraph', annotations: { bold: true } },
144
- {
145
- id: '1-2',
146
- type: 'text',
147
- text: ', and inline HTML',
148
- annotations: {
149
- plainText: true,
150
- inlineHtml: {
151
- htmlTag: 'b',
152
- customAttribute: { id: 'b-element' },
153
- customClass: ['my-class-1', 'my-class-2'],
154
- customStyle: { background: 'yellow', color: 'red' },
155
- child: {
156
- htmlTag: 's',
157
- customAttribute: { id: 's-element' },
158
- },
159
- },
160
- },
161
- },
162
- ],
163
- },
164
- ]);
165
- const clonedContentState = contentState.clone(true);
166
- expect(clonedContentState).not.toBe(contentState);
167
- expect(clonedContentState).toEqual(contentState);
168
- const block = contentState.children[0];
169
- const clonedBlock = clonedContentState.children[0];
170
- expect(clonedBlock).toEqual(block);
171
- expect(clonedBlock).not.toBe(block);
172
- const node = block.children[0];
173
- const clonedNode = clonedBlock.children[0];
174
- expect(clonedNode).toEqual(node);
175
- expect(clonedNode).not.toBe(node);
176
- const blockAnnotations = block.annotationMap;
177
- const clonedBlockAnnotations = clonedBlock.annotationMap;
178
- expect(clonedBlockAnnotations).toEqual(blockAnnotations);
179
- expect(clonedBlockAnnotations).not.toBe(blockAnnotations);
180
- expect(clonedBlock.getAnnotationByType(BlockAnnotationTypeEnum.TEXT_STYLE)).toEqual(block.getAnnotationByType(BlockAnnotationTypeEnum.TEXT_STYLE));
181
- expect(clonedBlock.getAnnotationByType(BlockAnnotationTypeEnum.TEXT_STYLE)).not.toBe(block.getAnnotationByType(BlockAnnotationTypeEnum.TEXT_STYLE));
182
- const nodeAnnotations = node.annotationMap;
183
- const clonedNodeAnnotations = clonedNode.annotationMap;
184
- expect(clonedNodeAnnotations).toEqual(nodeAnnotations);
185
- expect(clonedNodeAnnotations).not.toBe(nodeAnnotations);
186
- expect(clonedNode.getAnnotationByType(NodeAnnotationTypeEnum.BOLD)).toEqual(node.getAnnotationByType(NodeAnnotationTypeEnum.BOLD));
187
- expect(clonedNode.getAnnotationByType(NodeAnnotationTypeEnum.BOLD)).not.toBe(node.getAnnotationByType(NodeAnnotationTypeEnum.BOLD));
188
- });
189
- it('the parent property should set as properly when create VegaRTEContent', () => {
190
- const contentState = VegaRTEContent.fromJSON([
191
- {
192
- id: '1',
193
- type: 'paragraph',
194
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
195
- },
196
- {
197
- id: '2',
198
- type: 'image',
199
- nodes: [{ id: '2-1', type: 'image', url: 'image url' }],
200
- },
201
- {
202
- id: '3',
203
- type: 'bullet-list',
204
- blocks: [
205
- {
206
- id: '3-1',
207
- type: 'list-item',
208
- nodes: [],
209
- children: [
210
- {
211
- id: '4-1',
212
- type: 'bullet-list',
213
- blocks: [{ id: '4-1', type: 'list-item', nodes: [] }],
214
- },
215
- ],
216
- },
217
- ],
218
- },
219
- ]);
220
- const paragraphBlock = contentState.children[0];
221
- const imageBlock = contentState.children[1];
222
- const listBlock = contentState.children[2];
223
- const listItemBlock = listBlock.children[0];
224
- const nestedListBlock = listItemBlock.nestList[0];
225
- const nestedListItemBlock = nestedListBlock.children[0];
226
- expect(paragraphBlock.parent).toEqual(contentState);
227
- expect(imageBlock.parent).toEqual(contentState);
228
- expect(listBlock.parent).toEqual(contentState);
229
- expect(listItemBlock.parent).toEqual(listBlock);
230
- expect(nestedListBlock.parent).toEqual(listItemBlock);
231
- expect(nestedListItemBlock.parent).toEqual(nestedListBlock);
232
- });
233
- describe('findNodeById', () => {
234
- let content;
235
- beforeAll(() => {
236
- content = VegaRTEContent.fromJSON([
237
- {
238
- id: '1',
239
- type: 'paragraph',
240
- nodes: [
241
- { id: '1-1', type: 'text', text: 'This ' },
242
- { id: '1-2', type: 'text', text: 'is a ' },
243
- { id: '1-3', type: 'text', text: 'paragraph.' },
244
- ],
245
- },
246
- {
247
- id: '2',
248
- type: 'image',
249
- nodes: [{ id: '2-1', type: 'image', url: 'img.png' }],
250
- },
251
- {
252
- id: '3',
253
- type: 'bullet-list',
254
- blocks: [
255
- {
256
- id: '3-1',
257
- type: 'list-item',
258
- nodes: [{ id: '3-1-1', type: 'text', text: 'List item 1' }],
259
- children: [
260
- {
261
- id: '3-2',
262
- type: 'number-list',
263
- blocks: [
264
- {
265
- id: '3-2-1',
266
- type: 'list-item',
267
- nodes: [
268
- { id: '3-2-1-1', type: 'text', text: 'Nested list item' },
269
- ],
270
- },
271
- ],
272
- },
273
- ],
274
- },
275
- ],
276
- },
277
- ]);
278
- });
279
- it('should find the node in text block', () => {
280
- expect(content.findNodeById('1-2').toJSON()).toEqual({ id: '1-2', type: 'text', text: 'is a ' });
281
- });
282
- it('should find the node in image block', () => {
283
- expect(content.findNodeById('2-1').toJSON()).toEqual({
284
- id: '2-1',
285
- type: 'image',
286
- url: 'img.png',
287
- annotations: {
288
- size: 'md',
289
- },
290
- });
291
- });
292
- it('should find the node in list item', () => {
293
- expect(content.findNodeById('3-1-1').toJSON()).toEqual({
294
- id: '3-1-1',
295
- type: 'text',
296
- text: 'List item 1',
297
- });
298
- });
299
- it('should find the node in nested list item', () => {
300
- expect(content.findNodeById('3-2-1-1').toJSON()).toEqual({
301
- id: '3-2-1-1',
302
- type: 'text',
303
- text: 'Nested list item',
304
- });
305
- });
306
- it('should return null for non-existent node', () => {
307
- expect(content.findNodeById('not-exist')).toBeNull();
308
- });
309
- });
310
- describe('toHtml', () => {
311
- it('should convert paragraph to HTML correctly', () => {
312
- const contentState = VegaRTEContent.fromJSON([
313
- {
314
- id: '1',
315
- type: 'paragraph',
316
- annotations: { textStyle: 'paragraph' },
317
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
318
- },
319
- ]);
320
- expect(contentState.toHtml()).toEqualHtml(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;"><span>This is a paragraph</span></p>`);
321
- });
322
- it('should convert text node with annotations to HTML correctly', () => {
323
- const contentState = VegaRTEContent.fromJSON([
324
- {
325
- id: '1',
326
- type: 'paragraph',
327
- annotations: { textStyle: 'paragraph' },
328
- nodes: [
329
- {
330
- id: '1-1',
331
- type: 'text',
332
- text: 'This is a paragraph.',
333
- annotations: { bold: true },
334
- },
335
- { id: '1-2', type: 'text', text: ' code', annotations: { code: true } },
336
- { id: '1-3', type: 'text', text: ' text', annotations: { code: false } },
337
- ],
338
- },
339
- ]);
340
- expect(contentState.toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="font-weight: 700;">This is a paragraph.</span><code style="font-family: Roboto Mono;white-space: pre-wrap;"> code</code><span> text</span></p>`);
341
- });
342
- it('should convert text block with annotations to HTML with inline styles correctly', () => {
343
- const contentState = VegaRTEContent.fromJSON([
344
- {
345
- id: '1',
346
- type: 'paragraph',
347
- annotations: { textStyle: 'paragraph', textAlign: 'right' },
348
- nodes: [
349
- {
350
- id: '1-1',
351
- type: 'text',
352
- text: 'This is a paragraph',
353
- annotations: { bold: true, underline: true },
354
- },
355
- ],
356
- },
357
- ]);
358
- expect(contentState.toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;text-align: right;"><span style="font-weight: 700;text-decoration: underline;">This is a paragraph</span></p>`);
359
- });
360
- it('should convert image block to HTML correctly', () => {
361
- const contentState = VegaRTEContent.fromJSON([
362
- {
363
- id: '1',
364
- type: 'image',
365
- nodes: [{ id: '1-1', type: 'image', url: 'https://example.com/image.jpg' }],
366
- },
367
- {
368
- id: '2',
369
- type: 'image',
370
- nodes: [
371
- {
372
- id: '2-1',
373
- type: 'image',
374
- url: 'https://example.com/image.jpg',
375
- annotations: {
376
- alt: 'example',
377
- },
378
- },
379
- ],
380
- },
381
- ]);
382
- expect(contentState.toHtml()).toEqual(`<div><img style="vertical-align: bottom;width: 50%;" src="https://example.com/image.jpg" data-size="md"></div><div><img style="vertical-align: bottom;width: 50%;" alt="example" src="https://example.com/image.jpg" data-size="md"></div>`);
383
- });
384
- it('should convert bullet list block to HTML correctly', () => {
385
- const contentState = VegaRTEContent.fromJSON([
386
- {
387
- id: '1',
388
- type: 'bullet-list',
389
- blocks: [
390
- {
391
- id: '1-1',
392
- type: 'list-item',
393
- nodes: [{ id: '1-1-1', type: 'text', text: 'Item 1' }],
394
- },
395
- {
396
- id: '1-2',
397
- type: 'list-item',
398
- nodes: [{ id: '1-2-1', type: 'text', text: 'Item 2' }],
399
- },
400
- ],
401
- },
402
- ]);
403
- expect(contentState.toHtml()).toEqual(`<ul style="padding-left: 8px;margin-left: 16px;"><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Item 1</span></li><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Item 2</span></li></ul>`);
404
- });
405
- it('should convert number list block to HTML correctly', () => {
406
- const contentState = VegaRTEContent.fromJSON([
407
- {
408
- id: '1',
409
- type: 'number-list',
410
- blocks: [
411
- {
412
- id: '1-1',
413
- type: 'list-item',
414
- nodes: [{ id: '1-1-1', type: 'text', text: 'Item 1' }],
415
- },
416
- {
417
- id: '1-2',
418
- type: 'list-item',
419
- nodes: [{ id: '1-2-1', type: 'text', text: 'Item 2' }],
420
- },
421
- ],
422
- },
423
- ]);
424
- expect(contentState.toHtml()).toEqual(`<ol style="padding-left: 8px;margin-left: 16px;"><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Item 1</span></li><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Item 2</span></li></ol>`);
425
- });
426
- it('should convert code block to HTML correctly', () => {
427
- const contentState = VegaRTEContent.fromJSON([
428
- {
429
- id: '1750424321364',
430
- type: 'code-block',
431
- content: '<div>This is a Plain Text.</div>',
432
- },
433
- {
434
- id: '1750424321364',
435
- type: 'code-block',
436
- content: '<div>This is an HTML.</div>',
437
- language: 'html',
438
- },
439
- ]);
440
- expect(contentState.toHtml()).toEqual(`<pre data-language="plainText" style="background-color: rgba(var(--v-bg-secondary, 245, 247, 247, 1)); padding: 12px"><code style='box-sizing: border-box;color: rgba(var(--v-text-primary, 32, 54, 69, 1));text-align: left;font-family: "Roboto Mono";font-weight: 400;line-height: 22px;font-size: 16px;white-space: pre-wrap;min-height: 22px;tab-size: 2px;'><div>This is a Plain Text.</div></code></pre><pre data-language="html" style="background-color: rgba(var(--v-bg-secondary, 245, 247, 247, 1)); padding: 12px"><code style='box-sizing: border-box;color: rgba(var(--v-text-primary, 32, 54, 69, 1));text-align: left;font-family: "Roboto Mono";font-weight: 400;line-height: 22px;font-size: 16px;white-space: pre-wrap;min-height: 22px;tab-size: 2px;'><div>This is an HTML.</div></code></pre>`);
441
- });
442
- it('should convert text with the link annotations to HTML correctly', () => {
443
- const contentState = VegaRTEContent.fromJSON([
444
- {
445
- id: '1',
446
- type: 'paragraph',
447
- annotations: { textStyle: 'paragraph' },
448
- nodes: [
449
- {
450
- id: '1-1',
451
- type: 'text',
452
- text: 'This is a link',
453
- annotations: {
454
- link: { href: 'https://example.com', groupKey: 'link-group-1' },
455
- },
456
- },
457
- ],
458
- },
459
- ]);
460
- expect(contentState.toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><a href="https://example.com" target="_blank" style="color: rgba(var(--v-text-link, 19, 98, 226, 1));"><span>This is a link</span></a></p>`);
461
- });
462
- it('should convert a complex value to HTML correctly', () => {
463
- const contentState = VegaRTEContent.fromJSON([
464
- {
465
- id: '1750041983988',
466
- annotations: {
467
- textStyle: 'title',
468
- },
469
- type: 'title',
470
- nodes: [
471
- {
472
- id: '1750041978250',
473
- annotations: {
474
- bold: true,
475
- },
476
- type: 'text',
477
- text: 'Title',
478
- },
479
- ],
480
- },
481
- {
482
- id: '1750041984711',
483
- annotations: {
484
- textStyle: 'subtitle',
485
- },
486
- type: 'subtitle',
487
- nodes: [
488
- {
489
- id: '1750041980352',
490
- type: 'text',
491
- text: 'Subtitle',
492
- },
493
- ],
494
- },
495
- {
496
- id: '1750041981840',
497
- annotations: {
498
- textStyle: 'heading-1',
499
- },
500
- type: 'heading-1',
501
- nodes: [
502
- {
503
- id: '1750041978195',
504
- annotations: {
505
- bold: true,
506
- },
507
- type: 'text',
508
- text: 'Heading 1',
509
- },
510
- ],
511
- },
512
- {
513
- id: '1750041975899',
514
- annotations: {
515
- textStyle: 'heading-2',
516
- },
517
- type: 'heading-2',
518
- nodes: [
519
- {
520
- id: '1750041981732',
521
- annotations: {
522
- bold: true,
523
- },
524
- type: 'text',
525
- text: 'Heading 2',
526
- },
527
- ],
528
- },
529
- {
530
- id: '1750041983133',
531
- annotations: {
532
- textStyle: 'heading-3',
533
- },
534
- type: 'heading-3',
535
- nodes: [
536
- {
537
- id: '1750041980106',
538
- annotations: {
539
- bold: true,
540
- },
541
- type: 'text',
542
- text: 'Heading 3',
543
- },
544
- ],
545
- },
546
- {
547
- id: '1750041984506',
548
- annotations: {
549
- textStyle: 'paragraph',
550
- },
551
- type: 'paragraph',
552
- nodes: [
553
- {
554
- id: '1750041974956',
555
- annotations: {},
556
- type: 'text',
557
- text: 'Paragraph',
558
- },
559
- ],
560
- },
561
- {
562
- id: '1750041983082',
563
- annotations: {
564
- textStyle: 'paragraph',
565
- },
566
- type: 'paragraph',
567
- nodes: [
568
- {
569
- id: '1750041983587',
570
- annotations: {
571
- bold: true,
572
- },
573
- type: 'text',
574
- text: 'Bold text',
575
- },
576
- ],
577
- },
578
- {
579
- id: '1750041980108',
580
- annotations: {
581
- textStyle: 'paragraph',
582
- },
583
- type: 'paragraph',
584
- nodes: [
585
- {
586
- id: '1750041983935',
587
- annotations: {
588
- italic: true,
589
- },
590
- type: 'text',
591
- text: 'Italic text',
592
- },
593
- ],
594
- },
595
- {
596
- id: '1750041978100',
597
- annotations: {
598
- textStyle: 'paragraph',
599
- },
600
- type: 'paragraph',
601
- nodes: [
602
- {
603
- id: '1750041978568',
604
- annotations: {
605
- underline: true,
606
- },
607
- type: 'text',
608
- text: 'Underline text',
609
- },
610
- ],
611
- },
612
- {
613
- id: '1750041984220',
614
- annotations: {
615
- textStyle: 'paragraph',
616
- },
617
- type: 'paragraph',
618
- nodes: [
619
- {
620
- id: '1750041982817',
621
- annotations: {
622
- underline: true,
623
- },
624
- type: 'text',
625
- text: 'Strikethrough text',
626
- },
627
- ],
628
- },
629
- {
630
- id: '1750041979619',
631
- annotations: {
632
- textStyle: 'paragraph',
633
- },
634
- type: 'paragraph',
635
- nodes: [
636
- {
637
- id: '1750041982051',
638
- annotations: {
639
- code: true,
640
- },
641
- type: 'text',
642
- text: 'Code text',
643
- },
644
- ],
645
- },
646
- {
647
- id: '1750041977487',
648
- annotations: {
649
- textStyle: 'paragraph',
650
- },
651
- type: 'paragraph',
652
- nodes: [
653
- {
654
- id: '1750041983700',
655
- annotations: {
656
- textColor: 'red',
657
- },
658
- type: 'text',
659
- text: 'Color text',
660
- },
661
- ],
662
- },
663
- {
664
- id: '1750041981507',
665
- annotations: {
666
- textStyle: 'paragraph',
667
- textAlign: 'left',
668
- },
669
- type: 'paragraph',
670
- nodes: [
671
- {
672
- id: '1750041979308',
673
- type: 'text',
674
- text: 'Left align',
675
- },
676
- ],
677
- },
678
- {
679
- id: '1750041977501',
680
- annotations: {
681
- textStyle: 'paragraph',
682
- textAlign: 'right',
683
- },
684
- type: 'paragraph',
685
- nodes: [
686
- {
687
- id: '1750041976836',
688
- type: 'text',
689
- text: 'Right align',
690
- },
691
- ],
692
- },
693
- {
694
- id: '1750041983771',
695
- type: 'bullet-list',
696
- blocks: [
697
- {
698
- id: '1750041977027',
699
- annotations: {
700
- textStyle: 'paragraph',
701
- },
702
- type: 'list-item',
703
- nodes: [
704
- {
705
- id: '1750041982061',
706
- type: 'text',
707
- text: 'list item 1',
708
- },
709
- ],
710
- children: [],
711
- },
712
- {
713
- id: '1750041975174',
714
- annotations: {
715
- textStyle: 'paragraph',
716
- },
717
- type: 'list-item',
718
- nodes: [
719
- {
720
- id: '1750041978832',
721
- type: 'text',
722
- text: 'list item 2',
723
- },
724
- ],
725
- children: [],
726
- },
727
- ],
728
- },
729
- {
730
- id: '1750041992884',
731
- annotations: {
732
- textStyle: 'paragraph',
733
- indent: 2,
734
- },
735
- type: 'paragraph',
736
- nodes: [
737
- {
738
- id: '1750041987297',
739
- type: 'text',
740
- text: 'More indent',
741
- },
742
- ],
743
- },
744
- {
745
- id: '1750042019645',
746
- annotations: {
747
- textStyle: 'paragraph',
748
- },
749
- type: 'paragraph',
750
- nodes: [
751
- {
752
- id: '1750042020364',
753
- annotations: {
754
- link: {
755
- href: 'https://www.google.com',
756
- groupKey: '1750042026536',
757
- },
758
- },
759
- type: 'text',
760
- text: 'Link text',
761
- },
762
- ],
763
- },
764
- {
765
- id: '1750042030016',
766
- annotations: {
767
- textStyle: 'paragraph',
768
- },
769
- type: 'paragraph',
770
- nodes: [
771
- {
772
- id: '1750042032454',
773
- type: 'text',
774
- text: '',
775
- },
776
- ],
777
- },
778
- {
779
- id: '1750041979184',
780
- annotations: {
781
- textStyle: 'paragraph',
782
- },
783
- type: 'paragraph',
784
- nodes: [
785
- {
786
- id: '1750041981796',
787
- type: 'text',
788
- text: '',
789
- },
790
- ],
791
- },
792
- ]);
793
- expect(contentState.toHtml()).toEqual(`<div style="font-family: Inter;font-size: 36px;line-height: 40px;min-height: 40px;font-weight: 500;"><span style="font-weight: 700;">Title</span></div><div style="font-family: Inter;font-size: 28px;line-height: 32px;min-height: 32px;font-weight: 500;"><span>Subtitle</span></div><h1 style="font-family: Inter;font-size: 22px;line-height: 24px;min-height: 24px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="font-weight: 700;">Heading 1</span></h1><h2 style="font-family: Inter;font-size: 20px;line-height: 24px;min-height: 24px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="font-weight: 700;">Heading 2</span></h2><h3 style="font-family: Inter;font-size: 18px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="font-weight: 700;">Heading 3</span></h3><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Paragraph</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="font-weight: 700;">Bold text</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="font-style: italic;">Italic text</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="text-decoration: underline;">Underline text</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="text-decoration: underline;">Strikethrough text</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><code style="font-family: Roboto Mono;white-space: pre-wrap;">Code text</code></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span style="color: #BD2947;">Color text</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;text-align: left;"><span>Left align</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;text-align: right;"><span>Right align</span></p><ul style="padding-left: 8px;margin-left: 16px;"><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>list item 1</span></li><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>list item 2</span></li></ul><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;margin-left: 32px;"><span>More indent</span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><a href="https://www.google.com" target="_blank" style="color: rgba(var(--v-text-link, 19, 98, 226, 1));"><span>Link text</span></a></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span></span></p><p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span></span></p>`);
794
- });
795
- it('should convert paragraph with custom attributes to HTML correctly', () => {
796
- const contentState = VegaRTEContent.fromJSON([
797
- {
798
- id: '1',
799
- type: 'paragraph',
800
- annotations: {
801
- textStyle: 'paragraph',
802
- customAttribute: {
803
- id: 'p-element',
804
- dir: 'dir-p',
805
- },
806
- },
807
- nodes: [
808
- {
809
- id: '1-1',
810
- type: 'text',
811
- text: 'This is a paragraph',
812
- annotations: {
813
- customAttribute: {
814
- id: 'span-element',
815
- dir: 'dir-span',
816
- },
817
- },
818
- },
819
- ],
820
- },
821
- ]);
822
- expect(contentState.toHtml()).toEqualHtml(`<p id="p-element" dir="dir-p" style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500; margin-top: 0px; margin-bottom: 0px;"><span id="span-element" dir="dir-span">This is a paragraph</span></p>`);
823
- });
824
- it('should convert text node with custom attributes to HTML correctly', () => {
825
- const contentState = VegaRTEContent.fromJSON([
826
- {
827
- id: '1',
828
- type: 'paragraph',
829
- annotations: {
830
- textStyle: 'paragraph',
831
- customAttribute: {
832
- id: 'p-element',
833
- dir: 'dir-p',
834
- },
835
- },
836
- nodes: [
837
- {
838
- id: '1-1',
839
- type: 'text',
840
- text: 'This is a paragraph.',
841
- annotations: {
842
- bold: true,
843
- customAttribute: {
844
- id: 'text1',
845
- },
846
- },
847
- },
848
- {
849
- id: '1-2',
850
- type: 'text',
851
- text: ' code',
852
- annotations: {
853
- code: true,
854
- customAttribute: {
855
- id: 'text2',
856
- },
857
- },
858
- },
859
- {
860
- id: '1-3',
861
- type: 'text',
862
- text: ' text',
863
- annotations: {
864
- customAttribute: {
865
- id: 'text3',
866
- },
867
- },
868
- },
869
- ],
870
- },
871
- ]);
872
- expect(contentState.toHtml()).toEqual(`<p id="p-element" dir="dir-p" style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span id="text1" style="font-weight: 700;">This is a paragraph.</span><code id="text2" style="font-family: Roboto Mono;white-space: pre-wrap;"> code</code><span id="text3"> text</span></p>`);
873
- });
874
- it('should convert bullet list block with custom attributes to HTML correctly', () => {
875
- const contentState = VegaRTEContent.fromJSON([
876
- {
877
- id: '1',
878
- type: 'bullet-list',
879
- blocks: [
880
- {
881
- id: '1-1',
882
- type: 'list-item',
883
- nodes: [{ id: '1-1-1', type: 'text', text: 'Item 1' }],
884
- annotations: {
885
- customAttribute: {
886
- id: 'list1',
887
- },
888
- },
889
- },
890
- {
891
- id: '1-2',
892
- type: 'list-item',
893
- nodes: [{ id: '1-2-1', type: 'text', text: 'Item 2' }],
894
- annotations: {
895
- customAttribute: {
896
- id: 'list2',
897
- },
898
- },
899
- },
900
- ],
901
- annotations: {
902
- customAttribute: {
903
- id: 'ul',
904
- },
905
- },
906
- },
907
- ]);
908
- expect(contentState.toHtml()).toEqual(`<ul id="ul" style="padding-left: 8px;margin-left: 16px;"><li id="list1" style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Item 1</span></li><li id="list2" style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>Item 2</span></li></ul>`);
909
- });
910
- it('should convert paragraph with custom class to HTML correctly', () => {
911
- const contentState = VegaRTEContent.fromJSON([
912
- {
913
- id: '1',
914
- type: 'paragraph',
915
- annotations: {
916
- textStyle: 'paragraph',
917
- customClass: ['p-class'],
918
- },
919
- nodes: [
920
- {
921
- id: '1-1',
922
- type: 'text',
923
- text: 'This is a paragraph',
924
- annotations: {
925
- customClass: ['span-class'],
926
- },
927
- },
928
- ],
929
- },
930
- ]);
931
- expect(contentState.toHtml()).toMatchSnapshot();
932
- });
933
- it('should convert text node with custom class to HTML correctly', () => {
934
- const contentState = VegaRTEContent.fromJSON([
935
- {
936
- id: '1',
937
- type: 'paragraph',
938
- annotations: {
939
- textStyle: 'paragraph',
940
- customClass: ['p-class'],
941
- },
942
- nodes: [
943
- {
944
- id: '1-1',
945
- type: 'text',
946
- text: 'This is a paragraph.',
947
- annotations: {
948
- bold: true,
949
- customClass: ['span1-class'],
950
- },
951
- },
952
- {
953
- id: '1-2',
954
- type: 'text',
955
- text: ' code',
956
- annotations: {
957
- code: true,
958
- customClass: ['span2-class'],
959
- },
960
- },
961
- {
962
- id: '1-3',
963
- type: 'text',
964
- text: ' text',
965
- annotations: {
966
- customClass: ['span3-class'],
967
- },
968
- },
969
- ],
970
- },
971
- ]);
972
- expect(contentState.toHtml()).toMatchSnapshot();
973
- });
974
- it('should convert bullet list block with custom class to HTML correctly', () => {
975
- const contentState = VegaRTEContent.fromJSON([
976
- {
977
- id: '1',
978
- type: 'bullet-list',
979
- blocks: [
980
- {
981
- id: '1-1',
982
- type: 'list-item',
983
- nodes: [{ id: '1-1-1', type: 'text', text: 'Item 1' }],
984
- annotations: {
985
- customClass: ['li1-class'],
986
- },
987
- },
988
- {
989
- id: '1-2',
990
- type: 'list-item',
991
- nodes: [{ id: '1-2-1', type: 'text', text: 'Item 2' }],
992
- annotations: {
993
- customClass: ['li2-class'],
994
- },
995
- },
996
- ],
997
- annotations: {
998
- customClass: ['ul-class'],
999
- },
1000
- },
1001
- ]);
1002
- expect(contentState.toHtml()).toMatchSnapshot();
1003
- });
1004
- it('should convert paragraph with custom style to HTML correctly', () => {
1005
- const contentState = VegaRTEContent.fromJSON([
1006
- {
1007
- id: '1',
1008
- type: 'paragraph',
1009
- annotations: {
1010
- textStyle: 'paragraph',
1011
- customStyle: {
1012
- fontWeight: '700',
1013
- },
1014
- },
1015
- nodes: [
1016
- {
1017
- id: '1-1',
1018
- type: 'text',
1019
- text: 'This is a paragraph',
1020
- annotations: {
1021
- customStyle: {
1022
- fontWeight: '700',
1023
- },
1024
- },
1025
- },
1026
- ],
1027
- },
1028
- ]);
1029
- expect(contentState.toHtml()).toEqualHtml(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 700; margin-top: 0px; margin-bottom: 0px;"><span style="font-weight: 700">This is a paragraph</span></p>`);
1030
- });
1031
- it('should convert text node with custom style to HTML correctly', () => {
1032
- const contentState = VegaRTEContent.fromJSON([
1033
- {
1034
- id: '1',
1035
- type: 'paragraph',
1036
- annotations: {
1037
- textStyle: 'paragraph',
1038
- customStyle: {
1039
- textAlign: 'right',
1040
- },
1041
- },
1042
- nodes: [
1043
- {
1044
- id: '1-1',
1045
- type: 'text',
1046
- text: 'This is a paragraph.',
1047
- annotations: {
1048
- bold: true,
1049
- customStyle: {
1050
- padding: '20px',
1051
- },
1052
- },
1053
- },
1054
- {
1055
- id: '1-2',
1056
- type: 'text',
1057
- text: ' code',
1058
- annotations: {
1059
- code: true,
1060
- customStyle: {
1061
- padding: '30px',
1062
- },
1063
- },
1064
- },
1065
- {
1066
- id: '1-3',
1067
- type: 'text',
1068
- text: ' text',
1069
- annotations: {
1070
- customStyle: {
1071
- padding: '40px',
1072
- },
1073
- },
1074
- },
1075
- ],
1076
- },
1077
- ]);
1078
- expect(contentState.toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;text-align: right;"><span style="font-weight: 700;padding: 20px;">This is a paragraph.</span><code style="font-family: Roboto Mono;white-space: pre-wrap;padding: 30px;"> code</code><span style="padding: 40px;"> text</span></p>`);
1079
- });
1080
- it('should convert bullet list block with custom style to HTML correctly', () => {
1081
- const contentState = VegaRTEContent.fromJSON([
1082
- {
1083
- id: '1',
1084
- type: 'bullet-list',
1085
- blocks: [
1086
- {
1087
- id: '1-1',
1088
- type: 'list-item',
1089
- nodes: [{ id: '1-1-1', type: 'text', text: 'Item 1' }],
1090
- annotations: {
1091
- customStyle: {
1092
- padding: '40px',
1093
- },
1094
- },
1095
- },
1096
- {
1097
- id: '1-2',
1098
- type: 'list-item',
1099
- nodes: [{ id: '1-2-1', type: 'text', text: 'Item 2' }],
1100
- annotations: {
1101
- customStyle: {
1102
- padding: '50px',
1103
- },
1104
- },
1105
- },
1106
- ],
1107
- annotations: {
1108
- customStyle: {
1109
- padding: '60px',
1110
- },
1111
- },
1112
- },
1113
- ]);
1114
- expect(contentState.toHtml()).toEqual(`<ul style="padding-left: 8px;margin-left: 16px;padding: 60px;"><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;padding: 40px;"><span>Item 1</span></li><li style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;padding: 50px;"><span>Item 2</span></li></ul>`);
1115
- });
1116
- it('should log warning when call toHtml with deprecated parameter', () => {
1117
- setVegaLogLevel('warn');
1118
- console.warn = jest.fn();
1119
- const content = VegaRTEContent.fromJSON([
1120
- {
1121
- id: '1',
1122
- type: 'paragraph',
1123
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
1124
- },
1125
- ]);
1126
- content.toHtml({ autoMatchFormat: false });
1127
- expect(console.warn).toBeCalledTimes(1);
1128
- expect(console.warn).toHaveBeenCalledWith('%c[Vega]', 'font-weight: bold', "The 'options' parameter in toHtml method is deprecated and will be removed in the future.");
1129
- });
1130
- });
1131
- describe('fromHtml', () => {
1132
- it('should convert a simple paragraph element to the expected RTEContentBlock', () => {
1133
- const sourceCode = '<p>Hello</p>';
1134
- const content = VegaRTEContent.fromHtml(sourceCode);
1135
- expect(content.toJSON()).toEqual([
1136
- {
1137
- id: expect.anything(),
1138
- type: 'paragraph',
1139
- annotations: { textStyle: 'paragraph' },
1140
- nodes: [
1141
- {
1142
- id: expect.anything(),
1143
- text: 'Hello',
1144
- type: 'text',
1145
- },
1146
- ],
1147
- },
1148
- ]);
1149
- });
1150
- it('should convert a bold text element to the expected RTEContentBlock', () => {
1151
- const sourceCode = '<span style="font-weight: 700;">Bold</span>';
1152
- const content = VegaRTEContent.fromHtml(sourceCode);
1153
- expect(content.toJSON()).toEqual([
1154
- {
1155
- id: expect.anything(),
1156
- type: 'paragraph',
1157
- annotations: { textStyle: 'paragraph' },
1158
- nodes: [
1159
- {
1160
- id: expect.anything(),
1161
- type: 'text',
1162
- text: 'Bold',
1163
- annotations: {
1164
- bold: true,
1165
- customStyle: {
1166
- fontWeight: '700',
1167
- },
1168
- },
1169
- },
1170
- ],
1171
- },
1172
- ]);
1173
- });
1174
- it('should convert a list element to the expected RTEContentBlock', () => {
1175
- const sourceCode = '<ul><li>Item 1</li><li>Item 2</li></ul>';
1176
- const content = VegaRTEContent.fromHtml(sourceCode);
1177
- expect(content.toJSON()).toEqual([
1178
- {
1179
- blocks: [
1180
- {
1181
- id: expect.anything(),
1182
- type: 'list-item',
1183
- annotations: { textStyle: 'paragraph' },
1184
- nodes: [
1185
- {
1186
- id: expect.anything(),
1187
- text: 'Item 1',
1188
- type: 'text',
1189
- },
1190
- ],
1191
- children: [],
1192
- },
1193
- {
1194
- id: expect.anything(),
1195
- type: 'list-item',
1196
- annotations: { textStyle: 'paragraph' },
1197
- nodes: [
1198
- {
1199
- id: expect.anything(),
1200
- text: 'Item 2',
1201
- type: 'text',
1202
- },
1203
- ],
1204
- children: [],
1205
- },
1206
- ],
1207
- id: expect.anything(),
1208
- type: 'bullet-list',
1209
- },
1210
- ]);
1211
- });
1212
- it('should convert a heading element to the expected RTEContentBlock', () => {
1213
- const sourceCode = '<h1>Heading</h1>';
1214
- const content = VegaRTEContent.fromHtml(sourceCode);
1215
- expect(content.toJSON()).toEqual([
1216
- {
1217
- id: expect.anything(),
1218
- type: 'heading-1',
1219
- annotations: { textStyle: 'heading-1' },
1220
- nodes: [
1221
- {
1222
- id: expect.anything(),
1223
- text: 'Heading',
1224
- type: 'text',
1225
- },
1226
- ],
1227
- },
1228
- ]);
1229
- });
1230
- it('should convert a complex html with RTE classes to DTO correctly', () => {
1231
- const sourceCode = `<div class='v-rte--text-style-title'>Title</div>
1232
- <div class='v-rte--text-style-subtitle'>Subtitle</div>
1233
- <h1 class='v-rte--text-style-heading-1'>Heading 1</h1>
1234
- <h2 class='v-rte--text-style-heading-2'>Heading 2</h2>
1235
- <h3 class='v-rte--text-style-heading-3'>Heading 3</h3>
1236
- <p class='v-rte--text-style-paragraph'>Paragraph</p>
1237
- <p class='v-rte--text-style-paragraph'>
1238
- <span class='v-rte--bold'>Bold text</span>
1239
- <span class='v-rte--italic'>Italic text</span>
1240
- <span class='v-rte--underline'>Underline text</span>
1241
- <span class='v-rte--strikethrough'>Strikethrough text</span>
1242
- <code class='v-rte--code'>Code text</code>
1243
- <span style="color: rgb(1, 128, 31);">Color text</span>
1244
- </p>
1245
- <ul>
1246
- <li class='v-rte--text-style-paragraph'>List item 1</li>
1247
- <li class='v-rte--text-style-paragraph'>List item 2</li>
1248
- </ul>
1249
- <ol>
1250
- <li class='v-rte--text-style-paragraph'>List item 1</li>
1251
- <li class='v-rte--text-style-paragraph'>List item 2</li>
1252
- </ol>
1253
- <p class="v-rte--text-style-paragraph v-rte--horizontal-alignment-left"><span class="">Left align</span></p>
1254
- <p class="v-rte--text-style-paragraph v-rte--horizontal-alignment-right"><span class="">Right align</span></p>
1255
- <p class="v-rte--text-style-paragraph v-rte--horizontal-alignment-left" style="margin-left: 16px;"><span class="">More indent 1</span></p>
1256
- <p class="v-rte--text-style-paragraph v-rte--horizontal-alignment-left" style="margin-left: 32px;"><span class="">More indent 2</span></p>
1257
- <p class="v-rte--text-style-paragraph"><a href="https://www.google.com" target="_blank" class="v-rte--link classA classB" id="a" data-link="link" style="fontSize: 8px; display: block;"><span class="">Link text</span></a></p>
1258
- <div><img src="mock-img-url" style="width: 100%;"></div>`;
1259
- const content = VegaRTEContent.fromHtml(sourceCode.replace(/[\t\n]/g, ''));
1260
- expect(content.toJSON()).toEqual([
1261
- {
1262
- id: expect.anything(),
1263
- type: 'title',
1264
- annotations: { textStyle: 'title' },
1265
- nodes: [
1266
- {
1267
- id: expect.anything(),
1268
- text: 'Title',
1269
- type: 'text',
1270
- },
1271
- ],
1272
- },
1273
- {
1274
- id: expect.anything(),
1275
- type: 'subtitle',
1276
- annotations: { textStyle: 'subtitle' },
1277
- nodes: [
1278
- {
1279
- id: expect.anything(),
1280
- text: 'Subtitle',
1281
- type: 'text',
1282
- },
1283
- ],
1284
- },
1285
- {
1286
- id: expect.anything(),
1287
- type: 'heading-1',
1288
- annotations: { textStyle: 'heading-1' },
1289
- nodes: [
1290
- {
1291
- id: expect.anything(),
1292
- type: 'text',
1293
- text: 'Heading 1',
1294
- },
1295
- ],
1296
- },
1297
- {
1298
- id: expect.anything(),
1299
- type: 'heading-2',
1300
- annotations: { textStyle: 'heading-2' },
1301
- nodes: [
1302
- {
1303
- id: expect.anything(),
1304
- type: 'text',
1305
- text: 'Heading 2',
1306
- },
1307
- ],
1308
- },
1309
- {
1310
- id: expect.anything(),
1311
- type: 'heading-3',
1312
- annotations: { textStyle: 'heading-3' },
1313
- nodes: [
1314
- {
1315
- id: expect.anything(),
1316
- text: 'Heading 3',
1317
- type: 'text',
1318
- },
1319
- ],
1320
- },
1321
- {
1322
- id: expect.anything(),
1323
- type: 'paragraph',
1324
- annotations: { textStyle: 'paragraph' },
1325
- nodes: [
1326
- {
1327
- id: expect.anything(),
1328
- text: 'Paragraph',
1329
- type: 'text',
1330
- },
1331
- ],
1332
- },
1333
- {
1334
- id: expect.anything(),
1335
- type: 'paragraph',
1336
- annotations: { textStyle: 'paragraph' },
1337
- nodes: [
1338
- {
1339
- annotations: {
1340
- bold: true,
1341
- },
1342
- id: expect.anything(),
1343
- text: 'Bold text',
1344
- type: 'text',
1345
- },
1346
- {
1347
- id: expect.anything(),
1348
- type: 'text',
1349
- annotations: {
1350
- italic: true,
1351
- },
1352
- text: 'Italic text',
1353
- },
1354
- {
1355
- id: expect.anything(),
1356
- annotations: {
1357
- underline: true,
1358
- },
1359
- text: 'Underline text',
1360
- type: 'text',
1361
- },
1362
- {
1363
- id: expect.anything(),
1364
- type: 'text',
1365
- annotations: {
1366
- strikethrough: true,
1367
- },
1368
- text: 'Strikethrough text',
1369
- },
1370
- {
1371
- id: expect.anything(),
1372
- type: 'text',
1373
- annotations: {
1374
- code: true,
1375
- },
1376
- text: 'Code text',
1377
- },
1378
- {
1379
- id: expect.anything(),
1380
- type: 'text',
1381
- annotations: {
1382
- textColor: 'green',
1383
- customStyle: {
1384
- color: 'rgb(1, 128, 31)',
1385
- },
1386
- },
1387
- text: 'Color text',
1388
- },
1389
- ],
1390
- },
1391
- {
1392
- id: expect.anything(),
1393
- type: 'bullet-list',
1394
- blocks: [
1395
- {
1396
- id: expect.anything(),
1397
- type: 'list-item',
1398
- annotations: { textStyle: 'paragraph' },
1399
- nodes: [
1400
- {
1401
- id: expect.anything(),
1402
- text: 'List item 1',
1403
- type: 'text',
1404
- },
1405
- ],
1406
- children: [],
1407
- },
1408
- {
1409
- id: expect.anything(),
1410
- type: 'list-item',
1411
- annotations: { textStyle: 'paragraph' },
1412
- nodes: [
1413
- {
1414
- id: expect.anything(),
1415
- text: 'List item 2',
1416
- type: 'text',
1417
- },
1418
- ],
1419
- children: [],
1420
- },
1421
- ],
1422
- },
1423
- {
1424
- id: expect.anything(),
1425
- type: 'number-list',
1426
- blocks: [
1427
- {
1428
- id: expect.anything(),
1429
- type: 'list-item',
1430
- annotations: { textStyle: 'paragraph' },
1431
- nodes: [
1432
- {
1433
- id: expect.anything(),
1434
- text: 'List item 1',
1435
- type: 'text',
1436
- },
1437
- ],
1438
- children: [],
1439
- },
1440
- {
1441
- id: expect.anything(),
1442
- type: 'list-item',
1443
- annotations: { textStyle: 'paragraph' },
1444
- nodes: [
1445
- {
1446
- id: expect.anything(),
1447
- text: 'List item 2',
1448
- type: 'text',
1449
- },
1450
- ],
1451
- children: [],
1452
- },
1453
- ],
1454
- },
1455
- {
1456
- id: expect.anything(),
1457
- type: 'paragraph',
1458
- annotations: { textAlign: 'left', textStyle: 'paragraph' },
1459
- nodes: [
1460
- {
1461
- id: expect.anything(),
1462
- type: 'text',
1463
- text: 'Left align',
1464
- },
1465
- ],
1466
- },
1467
- {
1468
- id: expect.anything(),
1469
- type: 'paragraph',
1470
- annotations: { textAlign: 'right', textStyle: 'paragraph' },
1471
- nodes: [
1472
- {
1473
- id: expect.anything(),
1474
- type: 'text',
1475
- text: 'Right align',
1476
- },
1477
- ],
1478
- },
1479
- {
1480
- id: expect.anything(),
1481
- type: 'paragraph',
1482
- annotations: {
1483
- indent: 1,
1484
- textAlign: 'left',
1485
- textStyle: 'paragraph',
1486
- customStyle: {
1487
- marginLeft: '16px',
1488
- },
1489
- },
1490
- nodes: [
1491
- {
1492
- id: expect.anything(),
1493
- type: 'text',
1494
- text: 'More indent 1',
1495
- },
1496
- ],
1497
- },
1498
- {
1499
- id: expect.anything(),
1500
- type: 'paragraph',
1501
- annotations: {
1502
- indent: 2,
1503
- textAlign: 'left',
1504
- textStyle: 'paragraph',
1505
- customStyle: {
1506
- marginLeft: '32px',
1507
- },
1508
- },
1509
- nodes: [
1510
- {
1511
- id: expect.anything(),
1512
- type: 'text',
1513
- text: 'More indent 2',
1514
- },
1515
- ],
1516
- },
1517
- {
1518
- id: expect.anything(),
1519
- type: 'paragraph',
1520
- annotations: { textStyle: 'paragraph' },
1521
- nodes: [
1522
- {
1523
- id: expect.anything(),
1524
- type: 'text',
1525
- annotations: {
1526
- link: {
1527
- groupKey: expect.anything(),
1528
- href: 'https://www.google.com',
1529
- customAttribute: {
1530
- 'href': 'https://www.google.com',
1531
- 'target': '_blank',
1532
- 'id': 'a',
1533
- 'data-link': 'link',
1534
- },
1535
- customStyle: { fontSize: '8px', display: 'block' },
1536
- customClass: ['classA', 'classB'],
1537
- },
1538
- },
1539
- text: 'Link text',
1540
- },
1541
- ],
1542
- },
1543
- {
1544
- id: expect.anything(),
1545
- type: 'image',
1546
- nodes: [
1547
- {
1548
- id: expect.anything(),
1549
- type: 'image',
1550
- annotations: {
1551
- size: 'md',
1552
- customAttribute: {
1553
- src: 'mock-img-url',
1554
- },
1555
- customStyle: {
1556
- width: '100%',
1557
- },
1558
- },
1559
- url: 'mock-img-url',
1560
- },
1561
- ],
1562
- },
1563
- ]);
1564
- });
1565
- it('should convert a paragraph element with custom attributes to the expected RTEContentBlock', () => {
1566
- const sourceCode = '<p id="block-element" dir="block-dir">Hello</p>';
1567
- const content = VegaRTEContent.fromHtml(sourceCode);
1568
- expect(content.toJSON()).toEqual([
1569
- {
1570
- id: expect.anything(),
1571
- type: 'paragraph',
1572
- annotations: {
1573
- textStyle: 'paragraph',
1574
- customAttribute: {
1575
- id: 'block-element',
1576
- dir: 'block-dir',
1577
- },
1578
- },
1579
- nodes: [
1580
- {
1581
- id: expect.anything(),
1582
- text: 'Hello',
1583
- type: 'text',
1584
- },
1585
- ],
1586
- },
1587
- ]);
1588
- });
1589
- it('should convert a text code element with custom attributes to the expected RTEContentBlock', () => {
1590
- const sourceCode = '<p id="p-element"><code id="code">Hello</code></p>';
1591
- const content = VegaRTEContent.fromHtml(sourceCode);
1592
- expect(content.toJSON()).toEqual([
1593
- {
1594
- id: expect.anything(),
1595
- type: 'paragraph',
1596
- annotations: {
1597
- textStyle: 'paragraph',
1598
- customAttribute: {
1599
- id: 'p-element',
1600
- },
1601
- },
1602
- nodes: [
1603
- {
1604
- id: expect.anything(),
1605
- text: 'Hello',
1606
- type: 'text',
1607
- annotations: {
1608
- code: true,
1609
- customAttribute: {
1610
- id: 'code',
1611
- },
1612
- },
1613
- },
1614
- ],
1615
- },
1616
- ]);
1617
- });
1618
- it('should convert a list element with custom attributes to the expected RTEContentBlock', () => {
1619
- const sourceCode = '<ul id="ul-element"><li id="li1-element">Item 1</li><li id="li2-element">Item 2</li></ul>';
1620
- const content = VegaRTEContent.fromHtml(sourceCode);
1621
- expect(content.toJSON()).toEqual([
1622
- {
1623
- blocks: [
1624
- {
1625
- id: expect.anything(),
1626
- type: 'list-item',
1627
- annotations: {
1628
- textStyle: 'paragraph',
1629
- customAttribute: {
1630
- id: 'li1-element',
1631
- },
1632
- },
1633
- nodes: [
1634
- {
1635
- id: expect.anything(),
1636
- text: 'Item 1',
1637
- type: 'text',
1638
- },
1639
- ],
1640
- children: [],
1641
- },
1642
- {
1643
- id: expect.anything(),
1644
- type: 'list-item',
1645
- annotations: {
1646
- textStyle: 'paragraph',
1647
- customAttribute: {
1648
- id: 'li2-element',
1649
- },
1650
- },
1651
- nodes: [
1652
- {
1653
- id: expect.anything(),
1654
- text: 'Item 2',
1655
- type: 'text',
1656
- },
1657
- ],
1658
- children: [],
1659
- },
1660
- ],
1661
- id: expect.anything(),
1662
- type: 'bullet-list',
1663
- annotations: {
1664
- customAttribute: {
1665
- id: 'ul-element',
1666
- },
1667
- },
1668
- },
1669
- ]);
1670
- });
1671
- it('should convert a heading element with custom class to the expected RTEContentBlock', () => {
1672
- const sourceCode = '<h1 class="v-rte-class h1-class">Heading</h1>';
1673
- const content = VegaRTEContent.fromHtml(sourceCode);
1674
- expect(content.toJSON()).toEqual([
1675
- {
1676
- id: expect.anything(),
1677
- type: 'heading-1',
1678
- annotations: {
1679
- textStyle: 'heading-1',
1680
- customClass: ['h1-class'],
1681
- },
1682
- nodes: [
1683
- {
1684
- id: expect.anything(),
1685
- text: 'Heading',
1686
- type: 'text',
1687
- },
1688
- ],
1689
- },
1690
- ]);
1691
- });
1692
- it('should convert a paragraph element with custom class to the expected RTEContentBlock', () => {
1693
- const sourceCode = '<p class="p-class1 p-class2">Hello</p>';
1694
- const content = VegaRTEContent.fromHtml(sourceCode);
1695
- expect(content.toJSON()).toEqual([
1696
- {
1697
- id: expect.anything(),
1698
- type: 'paragraph',
1699
- annotations: {
1700
- textStyle: 'paragraph',
1701
- customClass: ['p-class1', 'p-class2'],
1702
- },
1703
- nodes: [
1704
- {
1705
- id: expect.anything(),
1706
- text: 'Hello',
1707
- type: 'text',
1708
- },
1709
- ],
1710
- },
1711
- ]);
1712
- });
1713
- it('should convert a text code element with custom class to the expected RTEContentBlock', () => {
1714
- const sourceCode = '<p class="p-class"><code class="code-class">Hello</code></p>';
1715
- const content = VegaRTEContent.fromHtml(sourceCode);
1716
- expect(content.toJSON()).toEqual([
1717
- {
1718
- id: expect.anything(),
1719
- type: 'paragraph',
1720
- annotations: {
1721
- textStyle: 'paragraph',
1722
- customClass: ['p-class'],
1723
- },
1724
- nodes: [
1725
- {
1726
- id: expect.anything(),
1727
- text: 'Hello',
1728
- type: 'text',
1729
- annotations: {
1730
- code: true,
1731
- customClass: ['code-class'],
1732
- },
1733
- },
1734
- ],
1735
- },
1736
- ]);
1737
- });
1738
- it('should convert a list element with custom class to the expected RTEContentBlock', () => {
1739
- const sourceCode = '<ul class="ul-class"><li class="li1-class">Item 1</li><li class="li2-class">Item 2</li></ul>';
1740
- const content = VegaRTEContent.fromHtml(sourceCode);
1741
- expect(content.toJSON()).toEqual([
1742
- {
1743
- blocks: [
1744
- {
1745
- id: expect.anything(),
1746
- type: 'list-item',
1747
- annotations: {
1748
- textStyle: 'paragraph',
1749
- customClass: ['li1-class'],
1750
- },
1751
- nodes: [
1752
- {
1753
- id: expect.anything(),
1754
- text: 'Item 1',
1755
- type: 'text',
1756
- },
1757
- ],
1758
- children: [],
1759
- },
1760
- {
1761
- id: expect.anything(),
1762
- type: 'list-item',
1763
- annotations: {
1764
- textStyle: 'paragraph',
1765
- customClass: ['li2-class'],
1766
- },
1767
- nodes: [
1768
- {
1769
- id: expect.anything(),
1770
- text: 'Item 2',
1771
- type: 'text',
1772
- },
1773
- ],
1774
- children: [],
1775
- },
1776
- ],
1777
- id: expect.anything(),
1778
- type: 'bullet-list',
1779
- annotations: {
1780
- customClass: ['ul-class'],
1781
- },
1782
- },
1783
- ]);
1784
- });
1785
- it('should convert a heading element with custom attributes to the expected RTEContentBlock', () => {
1786
- const sourceCode = '<h1 id="h1-element">Heading</h1>';
1787
- const content = VegaRTEContent.fromHtml(sourceCode);
1788
- expect(content.toJSON()).toEqual([
1789
- {
1790
- id: expect.anything(),
1791
- type: 'heading-1',
1792
- annotations: {
1793
- textStyle: 'heading-1',
1794
- customAttribute: {
1795
- id: 'h1-element',
1796
- },
1797
- },
1798
- nodes: [
1799
- {
1800
- id: expect.anything(),
1801
- text: 'Heading',
1802
- type: 'text',
1803
- },
1804
- ],
1805
- },
1806
- ]);
1807
- });
1808
- it('should convert a paragraph element with custom style to the expected RTEContentBlock', () => {
1809
- const sourceCode = '<p style="text-align: center;">Hello</p>';
1810
- const content = VegaRTEContent.fromHtml(sourceCode);
1811
- expect(content.toJSON()).toEqual([
1812
- {
1813
- id: expect.anything(),
1814
- type: 'paragraph',
1815
- annotations: {
1816
- textStyle: 'paragraph',
1817
- textAlign: 'center',
1818
- customStyle: {
1819
- textAlign: 'center',
1820
- },
1821
- },
1822
- nodes: [
1823
- {
1824
- id: expect.anything(),
1825
- text: 'Hello',
1826
- type: 'text',
1827
- },
1828
- ],
1829
- },
1830
- ]);
1831
- });
1832
- it('should convert a text code element with custom style to the expected RTEContentBlock', () => {
1833
- const sourceCode = '<p style="text-align: center;"><code style="font-weight: 700;">Hello</code></p>';
1834
- const content = VegaRTEContent.fromHtml(sourceCode);
1835
- expect(content.toJSON()).toEqual([
1836
- {
1837
- id: expect.anything(),
1838
- type: 'paragraph',
1839
- annotations: {
1840
- textStyle: 'paragraph',
1841
- textAlign: 'center',
1842
- customStyle: {
1843
- textAlign: 'center',
1844
- },
1845
- },
1846
- nodes: [
1847
- {
1848
- id: expect.anything(),
1849
- text: 'Hello',
1850
- type: 'text',
1851
- annotations: {
1852
- bold: true,
1853
- code: true,
1854
- customStyle: {
1855
- fontWeight: '700',
1856
- },
1857
- },
1858
- },
1859
- ],
1860
- },
1861
- ]);
1862
- });
1863
- it('should convert a list element with custom style to the expected RTEContentBlock', () => {
1864
- const sourceCode = '<ul style="padding: 20px;"><li style="text-align: center;">Item 1</li><li style="padding: 20px;">Item 2</li></ul>';
1865
- const content = VegaRTEContent.fromHtml(sourceCode);
1866
- expect(content.toJSON()).toEqual([
1867
- {
1868
- blocks: [
1869
- {
1870
- id: expect.anything(),
1871
- type: 'list-item',
1872
- annotations: {
1873
- textStyle: 'paragraph',
1874
- textAlign: 'center',
1875
- customStyle: {
1876
- textAlign: 'center',
1877
- },
1878
- },
1879
- nodes: [
1880
- {
1881
- id: expect.anything(),
1882
- text: 'Item 1',
1883
- type: 'text',
1884
- },
1885
- ],
1886
- children: [],
1887
- },
1888
- {
1889
- id: expect.anything(),
1890
- type: 'list-item',
1891
- annotations: {
1892
- textStyle: 'paragraph',
1893
- customStyle: {
1894
- padding: '20px',
1895
- },
1896
- },
1897
- nodes: [
1898
- {
1899
- id: expect.anything(),
1900
- text: 'Item 2',
1901
- type: 'text',
1902
- },
1903
- ],
1904
- children: [],
1905
- },
1906
- ],
1907
- id: expect.anything(),
1908
- type: 'bullet-list',
1909
- annotations: {
1910
- customStyle: {
1911
- padding: '20px',
1912
- },
1913
- },
1914
- },
1915
- ]);
1916
- });
1917
- it('should convert the li elements into list block', () => {
1918
- const sourceCode = '<li>Item 1</li><li>Item 2</li><li>Item 3</li>';
1919
- const content = VegaRTEContent.fromHtml(sourceCode);
1920
- expect(content.toHtml()).toMatchSnapshot();
1921
- expect(content.toJSON()).toEqual([
1922
- {
1923
- id: expect.anything(),
1924
- type: 'bullet-list',
1925
- blocks: [
1926
- {
1927
- id: expect.anything(),
1928
- type: 'list-item',
1929
- annotations: { textStyle: 'paragraph' },
1930
- nodes: [{ id: expect.anything(), type: 'text', text: 'Item 1' }],
1931
- },
1932
- {
1933
- id: expect.anything(),
1934
- type: 'list-item',
1935
- annotations: { textStyle: 'paragraph' },
1936
- nodes: [{ id: expect.anything(), type: 'text', text: 'Item 2' }],
1937
- },
1938
- {
1939
- id: expect.anything(),
1940
- type: 'list-item',
1941
- annotations: { textStyle: 'paragraph' },
1942
- nodes: [{ id: expect.anything(), type: 'text', text: 'Item 3' }],
1943
- },
1944
- ],
1945
- },
1946
- ]);
1947
- });
1948
- });
1949
- describe('fromHtml with autoMatchFormat false', () => {
1950
- it('should not match bold style', () => {
1951
- const sourceCode = '<p style="font-weight: 700;">Hello</p>';
1952
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
1953
- expect(content.toHtml()).toEqual(`<p style="font-weight: 700;">Hello</p>`);
1954
- expect(content.toJSON()).toEqual([
1955
- {
1956
- id: expect.anything(),
1957
- type: 'paragraph',
1958
- annotations: {
1959
- customStyle: {
1960
- fontWeight: '700',
1961
- },
1962
- },
1963
- nodes: [
1964
- {
1965
- id: expect.anything(),
1966
- text: 'Hello',
1967
- type: 'text',
1968
- annotations: { plainText: true },
1969
- },
1970
- ],
1971
- },
1972
- ]);
1973
- });
1974
- it('should not match color style', () => {
1975
- const sourceCode = '<p style="color: red">Hello</p>';
1976
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
1977
- expect(content.toHtml()).toEqual(`<p style="color: red;">Hello</p>`);
1978
- expect(content.toJSON()).toEqual([
1979
- {
1980
- id: expect.anything(),
1981
- type: 'paragraph',
1982
- annotations: {
1983
- customStyle: {
1984
- color: 'red',
1985
- },
1986
- },
1987
- nodes: [
1988
- {
1989
- id: expect.anything(),
1990
- text: 'Hello',
1991
- type: 'text',
1992
- annotations: { plainText: true },
1993
- },
1994
- ],
1995
- },
1996
- ]);
1997
- });
1998
- it('should not match link style', () => {
1999
- const sourceCode = `<p><a href="https://example.com">Link</a></p>`;
2000
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2001
- expect(content.toHtml()).toEqual(`<p><a href="https://example.com">Link</a></p>`);
2002
- expect(content.toJSON()).toEqual([
2003
- {
2004
- id: expect.anything(),
2005
- type: 'paragraph',
2006
- nodes: [
2007
- {
2008
- id: expect.anything(),
2009
- type: 'text',
2010
- text: 'Link',
2011
- annotations: {
2012
- plainText: true,
2013
- link: {
2014
- customAttribute: {
2015
- href: 'https://example.com',
2016
- },
2017
- groupKey: expect.anything(),
2018
- href: 'https://example.com',
2019
- },
2020
- },
2021
- },
2022
- ],
2023
- },
2024
- ]);
2025
- });
2026
- it('should not match heading', () => {
2027
- const sourceCode = '<h1><span>Hello</span></h1>';
2028
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2029
- expect(content.toHtml()).toEqual(`<h1><span>Hello</span></h1>`);
2030
- expect(content.toJSON()).toEqual([
2031
- {
2032
- id: expect.anything(),
2033
- nodes: [{ id: expect.anything(), text: 'Hello', type: 'text' }],
2034
- type: 'heading-1',
2035
- },
2036
- ]);
2037
- });
2038
- it('should not match image style', () => {
2039
- const sourceCode = '<img src="https://example.com/image.jpg">';
2040
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2041
- expect(content.toHtml()).toEqual(`<img src="https://example.com/image.jpg">`);
2042
- expect(content.toJSON()).toEqual([
2043
- {
2044
- id: expect.anything(),
2045
- type: 'image',
2046
- annotations: { internalWrapper: true },
2047
- nodes: [
2048
- {
2049
- annotations: {
2050
- customAttribute: { src: 'https://example.com/image.jpg' },
2051
- size: undefined,
2052
- },
2053
- id: expect.anything(),
2054
- type: 'image',
2055
- url: 'https://example.com/image.jpg',
2056
- },
2057
- ],
2058
- },
2059
- ]);
2060
- });
2061
- it('should not match list style', () => {
2062
- const sourceCode = '<ul><li>Item 1</li><li>Item 2</li></ul>';
2063
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2064
- expect(content.toHtml()).toEqual(`<ul><li>Item 1</li><li>Item 2</li></ul>`);
2065
- expect(content.toJSON()).toEqual([
2066
- {
2067
- id: expect.anything(),
2068
- type: 'bullet-list',
2069
- blocks: [
2070
- {
2071
- id: expect.anything(),
2072
- type: 'list-item',
2073
- children: [],
2074
- nodes: [
2075
- {
2076
- id: expect.anything(),
2077
- text: 'Item 1',
2078
- type: 'text',
2079
- annotations: { plainText: true },
2080
- },
2081
- ],
2082
- },
2083
- {
2084
- id: expect.anything(),
2085
- type: 'list-item',
2086
- children: [],
2087
- nodes: [
2088
- {
2089
- id: expect.anything(),
2090
- text: 'Item 2',
2091
- type: 'text',
2092
- annotations: { plainText: true },
2093
- },
2094
- ],
2095
- },
2096
- ],
2097
- },
2098
- ]);
2099
- });
2100
- it('should not match div to internal style', () => {
2101
- const sourceCode = "<div class='my-class'><span> I want this be a sentence </span><span class='my-another-class'> I want this be another sentence </span></div>";
2102
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2103
- expect(content.toHtml()).toEqual(`<div class="my-class"><span> I want this be a sentence </span><span class="my-another-class"> I want this be another sentence </span></div>`);
2104
- expect(content.toJSON()).toEqual([
2105
- {
2106
- id: expect.anything(),
2107
- type: 'html-block',
2108
- htmlTag: 'div',
2109
- annotations: { customClass: ['my-class'] },
2110
- children: [
2111
- {
2112
- id: expect.anything(),
2113
- type: 'paragraph',
2114
- annotations: { internalWrapper: true },
2115
- nodes: [
2116
- { id: expect.anything(), text: ' I want this be a sentence ', type: 'text' },
2117
- {
2118
- id: expect.anything(),
2119
- type: 'text',
2120
- annotations: { customClass: ['my-another-class'] },
2121
- text: ' I want this be another sentence ',
2122
- },
2123
- ],
2124
- },
2125
- ],
2126
- },
2127
- ]);
2128
- });
2129
- it('should not match parent style', () => {
2130
- const sourceCode = `<p style="font-weight: bold;font-style: italic;text-decoration: line-through;color: pink;text-shadow: 2px 2px 5px gray;font-size: 24px;">mix</p>`;
2131
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2132
- expect(content.toHtml()).toEqual(`<p style="font-weight: bold;font-style: italic;text-decoration: line-through;color: pink;text-shadow: 2px 2px 5px gray;font-size: 24px;">mix</p>`);
2133
- });
2134
- it('should not match parent link style', () => {
2135
- const sourceCode = `<a id="readMoreLink" class="link read-more" href="https://example.com" style="color: #2980b9; text-decoration: underline;">Read more</a>`;
2136
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2137
- expect(content.toHtml()).toEqual(`<a id="readMoreLink" href="https://example.com" class="link read-more" style="color: #2980b9; text-decoration: underline;">Read more</a>`);
2138
- });
2139
- it('should not match code style', () => {
2140
- const sourceCode = `<p>This is <code>code text</code>.</p>`;
2141
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2142
- expect(content.toHtml()).toEqual(sourceCode);
2143
- expect(content.toJSON()).toEqual([
2144
- {
2145
- id: expect.anything(),
2146
- type: 'paragraph',
2147
- nodes: [
2148
- {
2149
- id: expect.anything(),
2150
- annotations: { plainText: true },
2151
- text: 'This is ',
2152
- type: 'text',
2153
- },
2154
- {
2155
- id: expect.anything(),
2156
- type: 'text',
2157
- text: 'code text',
2158
- annotations: { code: true },
2159
- },
2160
- { id: expect.anything(), type: 'text', annotations: { plainText: true }, text: '.' },
2161
- ],
2162
- },
2163
- ]);
2164
- });
2165
- it('should preserve plain text nodes correctly', () => {
2166
- const sourceCode = `<p>Plain text <span>with span</span> and <strong>bold</strong> text.</p>`;
2167
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2168
- const htmlOutput = content.toHtml();
2169
- expect(htmlOutput).toEqual(sourceCode);
2170
- const jsonData = content.toJSON();
2171
- expect(jsonData).toEqual([
2172
- {
2173
- id: expect.anything(),
2174
- type: 'paragraph',
2175
- nodes: [
2176
- {
2177
- id: expect.anything(),
2178
- text: 'Plain text ',
2179
- type: 'text',
2180
- annotations: { plainText: true },
2181
- },
2182
- { id: expect.anything(), text: 'with span', type: 'text' },
2183
- {
2184
- id: expect.anything(),
2185
- text: ' and ',
2186
- type: 'text',
2187
- annotations: { plainText: true },
2188
- },
2189
- {
2190
- id: expect.anything(),
2191
- text: 'bold',
2192
- type: 'text',
2193
- annotations: {
2194
- inlineHtml: {
2195
- htmlTag: 'strong',
2196
- },
2197
- plainText: true,
2198
- },
2199
- },
2200
- {
2201
- id: expect.anything(),
2202
- text: ' text.',
2203
- type: 'text',
2204
- annotations: { plainText: true },
2205
- },
2206
- ],
2207
- },
2208
- ]);
2209
- expect(VegaRTEContent.fromJSON(jsonData, { autoMatchFormat: false }).toHtml()).toEqual(htmlOutput);
2210
- });
2211
- it('should convert the html block to RTEContentBlock', () => {
2212
- const sourceCode = `
2213
- <div class='custom-container'>
2214
- <p class='custom-p'>
2215
- <span>Google Chrome is a free, </span><span style='font-weight: 700;'>open-source</span><span> web browser developed by Google, released in 2008.</span>
2216
- </p>
2217
- </div>`;
2218
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2219
- expect(content.toJSON()).toEqual([
2220
- {
2221
- id: expect.anything(),
2222
- type: 'html-block',
2223
- htmlTag: 'div',
2224
- annotations: { customClass: ['custom-container'] },
2225
- children: [
2226
- {
2227
- id: expect.anything(),
2228
- type: 'paragraph',
2229
- annotations: { customClass: ['custom-p'] },
2230
- nodes: [
2231
- { id: expect.anything(), type: 'text', text: 'Google Chrome is a free, ' },
2232
- {
2233
- id: expect.anything(),
2234
- type: 'text',
2235
- text: 'open-source',
2236
- annotations: { bold: true, customStyle: { fontWeight: '700' } },
2237
- },
2238
- {
2239
- id: expect.anything(),
2240
- type: 'text',
2241
- text: ' web browser developed by Google, released in 2008.',
2242
- },
2243
- ],
2244
- },
2245
- ],
2246
- },
2247
- ]);
2248
- });
2249
- it('should convert the html block with RTE node as expect', () => {
2250
- const sourceCode = `<section>111<span> 222 </span>333</section>`;
2251
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2252
- expect(content.toJSON()).toEqual([
2253
- {
2254
- id: expect.anything(),
2255
- type: 'html-block',
2256
- htmlTag: 'section',
2257
- children: [
2258
- {
2259
- id: expect.anything(),
2260
- type: 'paragraph',
2261
- annotations: { internalWrapper: true },
2262
- nodes: [
2263
- {
2264
- id: expect.anything(),
2265
- type: 'text',
2266
- annotations: { plainText: true },
2267
- text: '111',
2268
- },
2269
- { id: expect.anything(), type: 'text', text: ' 222 ' },
2270
- {
2271
- id: expect.anything(),
2272
- type: 'text',
2273
- annotations: { plainText: true },
2274
- text: '333',
2275
- },
2276
- ],
2277
- },
2278
- ],
2279
- },
2280
- ]);
2281
- expect(content.toHtml()).toEqual(sourceCode);
2282
- });
2283
- it('should convert the html block with an internal block wrapper to include the text nodes', () => {
2284
- const sourceCode = `<section>111<span> 222 </span>333</section>`;
2285
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2286
- expect(content.toJSON()).toEqual([
2287
- {
2288
- id: expect.anything(),
2289
- type: 'html-block',
2290
- htmlTag: 'section',
2291
- children: [
2292
- {
2293
- id: expect.anything(),
2294
- type: 'paragraph',
2295
- annotations: { internalWrapper: true },
2296
- nodes: [
2297
- {
2298
- id: expect.anything(),
2299
- type: 'text',
2300
- annotations: { plainText: true },
2301
- text: '111',
2302
- },
2303
- { id: expect.anything(), type: 'text', text: ' 222 ' },
2304
- {
2305
- id: expect.anything(),
2306
- type: 'text',
2307
- annotations: { plainText: true },
2308
- text: '333',
2309
- },
2310
- ],
2311
- },
2312
- ],
2313
- },
2314
- ]);
2315
- expect(content.toHtml()).toEqual(sourceCode);
2316
- });
2317
- it('should convert the img element with an internal block wrapper', () => {
2318
- const sourceCode = `<section><img src="mocked-url"></section><div><img src="mocked-url-2"></div><img src="mocked-url-3">`;
2319
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2320
- expect(content.toJSON()).toEqual([
2321
- {
2322
- id: expect.anything(),
2323
- type: 'html-block',
2324
- htmlTag: 'section',
2325
- children: [
2326
- {
2327
- id: expect.anything(),
2328
- type: 'image',
2329
- annotations: { internalWrapper: true },
2330
- nodes: [
2331
- {
2332
- id: expect.anything(),
2333
- type: 'image',
2334
- url: 'mocked-url',
2335
- annotations: { customAttribute: { src: 'mocked-url' }, size: undefined },
2336
- },
2337
- ],
2338
- },
2339
- ],
2340
- },
2341
- {
2342
- id: expect.anything(),
2343
- type: 'image',
2344
- nodes: [
2345
- {
2346
- id: expect.anything(),
2347
- type: 'image',
2348
- url: 'mocked-url-2',
2349
- annotations: { customAttribute: { src: 'mocked-url-2' }, size: undefined },
2350
- },
2351
- ],
2352
- },
2353
- {
2354
- id: expect.anything(),
2355
- type: 'image',
2356
- annotations: { internalWrapper: true },
2357
- nodes: [
2358
- {
2359
- id: expect.anything(),
2360
- type: 'image',
2361
- url: 'mocked-url-3',
2362
- annotations: { customAttribute: { src: 'mocked-url-3' }, size: undefined },
2363
- },
2364
- ],
2365
- },
2366
- ]);
2367
- expect(content.toHtml()).toEqual(sourceCode);
2368
- });
2369
- it('should show the internal block wrapper if the block has annotations', () => {
2370
- const data = [
2371
- {
2372
- id: expect.anything(),
2373
- type: 'html-block',
2374
- htmlTag: 'section',
2375
- children: [
2376
- {
2377
- id: expect.anything(),
2378
- type: 'paragraph',
2379
- annotations: { internalWrapper: true },
2380
- nodes: [
2381
- {
2382
- id: expect.anything(),
2383
- type: 'text',
2384
- annotations: {
2385
- plainText: true,
2386
- link: { href: 'https://example.com', groupKey: 'link-group-1' },
2387
- },
2388
- text: 'link',
2389
- },
2390
- ],
2391
- },
2392
- ],
2393
- },
2394
- ];
2395
- expect(VegaRTEContent.fromJSON(data, { autoMatchFormat: false }).toHtml()).toEqual(`<section><a href="https://example.com">link</a></section>`);
2396
- data[0].children[0].annotations = { textAlign: 'center' };
2397
- expect(VegaRTEContent.fromJSON(data, { autoMatchFormat: false }).toHtml()).toEqual(`<section><p style="text-align: center;"><a href="https://example.com">link</a></p></section>`);
2398
- });
2399
- it('should covert nested html block as expect', () => {
2400
- const sourceCode = `<section><nav>React<span> Vue </span>Angular</nav></section>`;
2401
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2402
- expect(content.toJSON()).toEqual([
2403
- {
2404
- id: expect.anything(),
2405
- type: 'html-block',
2406
- htmlTag: 'section',
2407
- children: [
2408
- {
2409
- id: expect.anything(),
2410
- type: 'html-block',
2411
- htmlTag: 'nav',
2412
- children: [
2413
- {
2414
- id: expect.anything(),
2415
- type: 'paragraph',
2416
- annotations: { internalWrapper: true },
2417
- nodes: [
2418
- {
2419
- id: expect.anything(),
2420
- type: 'text',
2421
- annotations: { plainText: true },
2422
- text: 'React',
2423
- },
2424
- { id: expect.anything(), type: 'text', text: ' Vue ' },
2425
- {
2426
- id: expect.anything(),
2427
- type: 'text',
2428
- annotations: { plainText: true },
2429
- text: 'Angular',
2430
- },
2431
- ],
2432
- },
2433
- ],
2434
- },
2435
- ],
2436
- },
2437
- ]);
2438
- expect(content.toHtml()).toEqual(sourceCode);
2439
- });
2440
- it('should not covert the unsupported html', () => {
2441
- const sourceCode = `<section><abc>test </abc>123</section>`;
2442
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2443
- expect(content.toHtml()).toEqual(`<section>test 123</section>`);
2444
- });
2445
- it('should convert as expect if it is internal element', () => {
2446
- const sourceCode = `<h1>123</h1>`;
2447
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2448
- expect(content.toHtml()).toEqual(`<h1>123</h1>`);
2449
- expect(content.toJSON()).toEqual([
2450
- {
2451
- id: expect.anything(),
2452
- type: 'heading-1',
2453
- nodes: [
2454
- {
2455
- id: expect.anything(),
2456
- text: '123',
2457
- type: 'text',
2458
- annotations: { plainText: true },
2459
- },
2460
- ],
2461
- },
2462
- ]);
2463
- });
2464
- it('should convert nested inline html node as expect', () => {
2465
- const sourceCode = `<p><b><u><s>111</s></u></b></p>`;
2466
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2467
- expect(content.toHtml()).toEqual(sourceCode);
2468
- expect(content.toJSON()).toEqual([
2469
- {
2470
- id: expect.anything(),
2471
- type: 'paragraph',
2472
- nodes: [
2473
- {
2474
- id: expect.anything(),
2475
- type: 'text',
2476
- text: '111',
2477
- annotations: {
2478
- plainText: true,
2479
- inlineHtml: {
2480
- htmlTag: 'b',
2481
- child: {
2482
- htmlTag: 'u',
2483
- child: {
2484
- htmlTag: 's',
2485
- },
2486
- },
2487
- },
2488
- },
2489
- },
2490
- ],
2491
- },
2492
- ]);
2493
- });
2494
- it('should convert the inline html node with custom attrs', () => {
2495
- const sourceCode = `<p><b id="b-element" class="my-class-1 my-class-2" style="color: red; background: yellow;">text</b></p>`;
2496
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2497
- expect(content.toHtml()).toEqual(sourceCode);
2498
- expect(content.toJSON()).toEqual([
2499
- {
2500
- id: expect.anything(),
2501
- type: 'paragraph',
2502
- nodes: [
2503
- {
2504
- id: expect.anything(),
2505
- type: 'text',
2506
- text: 'text',
2507
- annotations: {
2508
- plainText: true,
2509
- inlineHtml: {
2510
- htmlTag: 'b',
2511
- customAttribute: { id: 'b-element' },
2512
- customClass: ['my-class-1', 'my-class-2'],
2513
- customStyle: { background: 'yellow', color: 'red' },
2514
- },
2515
- },
2516
- },
2517
- ],
2518
- },
2519
- ]);
2520
- });
2521
- it('should convert the inline html node with text node as expect', () => {
2522
- const sourceCode = `<p>Do not forget to buy <mark>milk</mark> today.</p>`;
2523
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2524
- expect(content.toHtml()).toEqual(sourceCode);
2525
- expect(content.toJSON()).toEqual([
2526
- {
2527
- id: expect.anything(),
2528
- type: 'paragraph',
2529
- nodes: [
2530
- {
2531
- id: expect.anything(),
2532
- type: 'text',
2533
- annotations: { plainText: true },
2534
- text: 'Do not forget to buy ',
2535
- },
2536
- {
2537
- id: expect.anything(),
2538
- type: 'text',
2539
- text: 'milk',
2540
- annotations: { inlineHtml: { htmlTag: 'mark' }, plainText: true },
2541
- },
2542
- {
2543
- id: expect.anything(),
2544
- annotations: { plainText: true },
2545
- type: 'text',
2546
- text: ' today.',
2547
- },
2548
- ],
2549
- },
2550
- ]);
2551
- });
2552
- it('should convert the span as inline html when it includes not text node', () => {
2553
- const sourceCode = `<p>This is a <span style="color: red;"><b>red</b></span> word.</p>`;
2554
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2555
- expect(content.toHtml()).toEqual(sourceCode);
2556
- expect(content.toJSON()).toEqual([
2557
- {
2558
- id: expect.anything(),
2559
- type: 'paragraph',
2560
- nodes: [
2561
- {
2562
- id: expect.anything(),
2563
- type: 'text',
2564
- text: 'This is a ',
2565
- annotations: { plainText: true },
2566
- },
2567
- {
2568
- id: expect.anything(),
2569
- type: 'text',
2570
- text: 'red',
2571
- annotations: {
2572
- plainText: true,
2573
- inlineHtml: {
2574
- child: { htmlTag: 'b' },
2575
- customStyle: { color: 'red' },
2576
- htmlTag: 'span',
2577
- },
2578
- },
2579
- },
2580
- {
2581
- id: expect.anything(),
2582
- type: 'text',
2583
- annotations: { plainText: true },
2584
- text: ' word.',
2585
- },
2586
- ],
2587
- },
2588
- ]);
2589
- });
2590
- it('should convert the supported block html as expected', () => {
2591
- const sourceCode = `<header>
2592
- <h1>HEADER Example</h1>
2593
- </header>
2594
- <nav>
2595
- <ul>
2596
- <li>NAV Item 1</li>
2597
- <li>NAV Item 2</li>
2598
- </ul>
2599
- </nav>
2600
- <main>
2601
- <article>
2602
- <header>
2603
- <h2>ARTICLE Title (HX)</h2>
2604
- </header>
2605
- <section>
2606
- <h3>SECTION Heading</h3>
2607
- <p>This is inside a section.</p>
2608
- </section>
2609
- <aside>
2610
- <p>This is an ASIDE.</p>
2611
- </aside>
2612
- <footer>
2613
- <p>ARTICLE Footer</p>
2614
- </footer>
2615
- </article>
2616
- <address>ADDRESS: 123 Main St, City, Country</address>
2617
- <blockquote cite="https://example.com">BLOCKQUOTE: “This is a quoted text.”</blockquote>
2618
- <details>
2619
- <summary>DETAILS / SUMMARY Example</summary>
2620
- <p>Extra information shown when expanded.</p>
2621
- </details>
2622
- <dl>
2623
- <dt>DT: Term</dt>
2624
- <dd>DD: Description of the term.</dd>
2625
- </dl>
2626
- <form>
2627
- <fieldset>
2628
- <legend>LEGEND Example</legend>
2629
- <label>
2630
- INPUT: <input type="text" placeholder="Enter text">
2631
- </label>
2632
- <button type="submit">BUTTON Submit</button>
2633
- </fieldset>
2634
- </form>
2635
- <pre>
2636
- PRE Example:
2637
- Line 1
2638
- Line 2
2639
- Line 3
2640
- </pre>
2641
- <hr>
2642
- <figure>
2643
- <img src="https://via.placeholder.com/150" alt="Placeholder image">
2644
- <figcaption>FIGCAPTION Example</figcaption>
2645
- </figure>
2646
- <table border="1">
2647
- <caption>CAPTION Example</caption>
2648
- <colgroup>
2649
- <col span="1" style="background: #eee;">
2650
- <col span="1" style="background: #ddd;">
2651
- </colgroup>
2652
- <thead>
2653
- <tr>
2654
- <th>TH 1</th>
2655
- <th>TH 2</th>
2656
- </tr>
2657
- </thead>
2658
- <tbody>
2659
- <tr>
2660
- <td>TD A</td>
2661
- <td>TD B</td>
2662
- </tr>
2663
- </tbody>
2664
- <tfoot>
2665
- <tr>
2666
- <td colspan="2">TFOOT Example</td>
2667
- </tr>
2668
- </tfoot>
2669
- </table>
2670
- </main>
2671
- <footer>
2672
- <p>FOOTER Example</p>
2673
- </footer>
2674
- `;
2675
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2676
- expect(CodeFormatter.format(content.toHtml())).toMatchSnapshot();
2677
- });
2678
- it('should convert the supported inline html as expected', () => {
2679
- const sourceCode = `<p>
2680
- <abbr>Abbreviation</abbr>
2681
- <audio src="audio.mp3"></audio>
2682
- <b>Bold</b>
2683
- <bdi>BDI</bdi>
2684
- <bdo dir="rtl">BDO</bdo>
2685
- <cite>Citation</cite>
2686
- <del>Deleted</del>
2687
- <dfn>Definition</dfn>
2688
- <embed src="embed.mp4"></embed>
2689
- <em>Emphasis</em>
2690
- <i>Italic</i>
2691
- <ins>Inserted</ins>
2692
- <kbd>Keyboard</kbd>
2693
- <mark>Marked</mark>
2694
- <meter value="0.5">Meter</meter>
2695
- <output>Output</output>
2696
- <progress value="50" max="100">Progress</progress>
2697
- <q>Quote</q>
2698
- <s>Strikethrough</s>
2699
- <small>Small</small>
2700
- <span></span>
2701
- <span>Span</span>
2702
- <strong>Strong</strong>
2703
- <sub>Subscript</sub>
2704
- <sup>Superscript</sup>
2705
- <time>Time</time>
2706
- <u>Underline</u>
2707
- <var>Variable</var>
2708
- <video src="video.mp4"></video>
2709
- </p>`;
2710
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2711
- expect(content.toHtml()).toMatchSnapshot();
2712
- });
2713
- it('should convert the code as inline html', () => {
2714
- const sourceCode = `<code>1111</code>
2715
- <code>
2716
- <b>222</b>
2717
- </code>
2718
- <b>
2719
- <code>333</code>
2720
- </b>`;
2721
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2722
- expect(content.toHtml()).toMatchSnapshot();
2723
- });
2724
- it('should convert the link that allow plain text', () => {
2725
- const sourceCode = `<p><a href="https://example.com">Example <b>link</b></a></p>`;
2726
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2727
- expect(content.toHtml()).toEqual(sourceCode);
2728
- expect(content.toJSON()).toEqual([
2729
- {
2730
- id: expect.anything(),
2731
- nodes: [
2732
- {
2733
- annotations: {
2734
- plainText: true,
2735
- link: {
2736
- customAttribute: { href: 'https://example.com' },
2737
- groupKey: expect.anything(),
2738
- href: 'https://example.com',
2739
- },
2740
- },
2741
- id: expect.anything(),
2742
- text: 'Example ',
2743
- type: 'text',
2744
- },
2745
- {
2746
- annotations: {
2747
- plainText: true,
2748
- inlineHtml: { htmlTag: 'b' },
2749
- link: {
2750
- customAttribute: { href: 'https://example.com' },
2751
- groupKey: expect.anything(),
2752
- href: 'https://example.com',
2753
- },
2754
- },
2755
- id: expect.anything(),
2756
- text: 'link',
2757
- type: 'text',
2758
- },
2759
- ],
2760
- type: 'paragraph',
2761
- },
2762
- ]);
2763
- });
2764
- // TODO: will be tracked in https://gethired.atlassian.net/browse/VD-7062
2765
- it('should split the multiple nested inline html', () => {
2766
- const sourceCode = `<p><b><s>111</s><u>222</u></b></p>`;
2767
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2768
- expect(content.toHtml()).toEqual(`<p><b><s>111</s></b><b><u>222</u></b></p>`);
2769
- });
2770
- it('should convert li elements into a list block by default', () => {
2771
- const sourceCode = '<li>Item 1</li><li>Item 2</li><li>Item 3</li>';
2772
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2773
- expect(content.toHtml()).toEqual(`<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>`);
2774
- });
2775
- it('should convert all the ul children to list item', () => {
2776
- const sourceCode = '<ul><li>Item 1</li>Item 2<li>Item 3</li></ul>';
2777
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2778
- expect(content.toHtml()).toEqual(`<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>`);
2779
- });
2780
- it('should correctly handle both standalone li elements and li elements with ul/ol', () => {
2781
- const sourceCode = `<li>111</li><li>222</li><li>333</li><ol>444</ol><p>555</p>`;
2782
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2783
- expect(content.toHtml()).toEqual(`<ul><li>111</li><li>222</li><li>333</li></ul><ol><li>444</li></ol><p>555</p>`);
2784
- });
2785
- it('should handle non-contiguous li elements as separate lists', () => {
2786
- const sourceCode = '<li>Item 1</li><p>Middle</p>Plain text<li>Item 2</li><li>Item 3</li>';
2787
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2788
- expect(content.toHtml()).toEqual(`<ul><li>Item 1</li></ul><p>Middle</p>Plain text<ul><li>Item 2</li><li>Item 3</li></ul>`);
2789
- });
2790
- it('should not merge bold annotation with custom attr', () => {
2791
- const sourceCode = '<span style="font-weight: bold;">bold text</span>';
2792
- const content = VegaRTEContent.fromHtml(sourceCode, { autoMatchFormat: false });
2793
- expect(content.toHtml()).toEqual(sourceCode);
2794
- });
2795
- it('should not remove blank space between elements', () => {
2796
- const sourceCode = '<p><span>A</span><span> </span><span>paragraph</span></p>';
2797
- const content = VegaRTEContent.fromHtml(sourceCode);
2798
- const paragraph = content.children[0];
2799
- expect(paragraph.children[1].text).toEqual(' ');
2800
- });
2801
- it('should convert empty value as expect', async () => {
2802
- const emptyContent = VegaRTEContent.fromHtml('', { autoMatchFormat: false });
2803
- expect(emptyContent.toHtml()).toEqual('');
2804
- expect(emptyContent.toJSON()).toEqual([]);
2805
- });
2806
- });
2807
- describe('fromJSON', () => {
2808
- it('should translate the paragraph as expect JSON', () => {
2809
- const content = [
2810
- {
2811
- id: '1',
2812
- type: 'paragraph',
2813
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
2814
- },
2815
- ];
2816
- expect(VegaRTEContent.fromJSON(content).toJSON()).toEqual([
2817
- {
2818
- id: '1',
2819
- type: 'paragraph',
2820
- annotations: { textStyle: 'paragraph' },
2821
- nodes: [{ id: '1-1', text: 'This is a paragraph', type: 'text' }],
2822
- },
2823
- ]);
2824
- expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: true }).toJSON()).toEqual([
2825
- {
2826
- id: '1',
2827
- type: 'paragraph',
2828
- annotations: { textStyle: 'paragraph' },
2829
- nodes: [{ id: '1-1', text: 'This is a paragraph', type: 'text' }],
2830
- },
2831
- ]);
2832
- expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toJSON()).toEqual([
2833
- {
2834
- id: '1',
2835
- type: 'paragraph',
2836
- nodes: [{ id: '1-1', text: 'This is a paragraph', type: 'text' }],
2837
- },
2838
- ]);
2839
- });
2840
- it('should translate the paragraph as expect html', () => {
2841
- const content = [
2842
- {
2843
- id: '1',
2844
- type: 'paragraph',
2845
- nodes: [{ id: '1-1', type: 'text', text: 'This is a paragraph' }],
2846
- },
2847
- ];
2848
- expect(VegaRTEContent.fromJSON(content).toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>This is a paragraph</span></p>`);
2849
- expect(VegaRTEContent.fromJSON(content).toHtml()).toEqual(`<p style="font-family: Inter;font-size: 16px;line-height: 22px;min-height: 22px;font-weight: 500;margin-top: 0px;margin-bottom: 0px;"><span>This is a paragraph</span></p>`);
2850
- expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toHtml()).toEqual(`<p><span>This is a paragraph</span></p>`);
2851
- expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toHtml()).toEqual(`<p><span>This is a paragraph</span></p>`);
2852
- });
2853
- it('should translate the html block as expect html', () => {
2854
- const content = [
2855
- {
2856
- id: '1753954267610',
2857
- type: 'html-block',
2858
- htmlTag: 'section',
2859
- children: [
2860
- {
2861
- id: '1753954266383',
2862
- type: 'heading-1',
2863
- nodes: [
2864
- {
2865
- id: '1753954273029',
2866
- type: 'text',
2867
- text: 'WWF',
2868
- },
2869
- ],
2870
- },
2871
- {
2872
- id: '1753954263572',
2873
- type: 'paragraph',
2874
- nodes: [
2875
- {
2876
- id: '1753954266500',
2877
- type: 'text',
2878
- text: 'The World Wide Fund for Nature (WWF) is....',
2879
- },
2880
- ],
2881
- },
2882
- ],
2883
- },
2884
- {
2885
- id: '1753954266216',
2886
- type: 'html-block',
2887
- htmlTag: 'article',
2888
- children: [
2889
- {
2890
- id: '1753954270592',
2891
- type: 'heading-1',
2892
- nodes: [
2893
- {
2894
- id: '1753954272730',
2895
- type: 'text',
2896
- text: 'Google Chrome',
2897
- },
2898
- ],
2899
- },
2900
- {
2901
- id: '1753954265150',
2902
- type: 'paragraph',
2903
- nodes: [
2904
- {
2905
- id: '1753954272365',
2906
- type: 'text',
2907
- text: 'Google Chrome is a free, open-source web browser developed by Google, released in 2008.',
2908
- },
2909
- ],
2910
- },
2911
- ],
2912
- },
2913
- ];
2914
- expect(VegaRTEContent.fromJSON(content, { autoMatchFormat: false }).toHtml()).toMatchSnapshot();
2915
- expect(VegaRTEContent.fromJSON(content).toHtml()).toMatchSnapshot();
2916
- });
2917
- it('should getLastNode work properly', () => {
2918
- const content = [
2919
- {
2920
- id: '1753954267610',
2921
- type: 'html-block',
2922
- htmlTag: 'section',
2923
- children: [
2924
- {
2925
- id: '1753954266383',
2926
- type: 'heading-1',
2927
- nodes: [
2928
- {
2929
- id: '1753954273029',
2930
- type: 'text',
2931
- text: 'WWF',
2932
- },
2933
- ],
2934
- },
2935
- {
2936
- id: '1753954263572',
2937
- type: 'paragraph',
2938
- nodes: [
2939
- {
2940
- id: '1753954266500',
2941
- type: 'text',
2942
- text: 'The World Wide Fund for Nature (WWF) is....',
2943
- },
2944
- ],
2945
- },
2946
- ],
2947
- },
2948
- ];
2949
- let instance = VegaRTEContent.fromJSON([]);
2950
- expect(instance.getLastNode()).toBeNull();
2951
- instance = VegaRTEContent.fromJSON(content);
2952
- expect(instance.getLastNode().toJSON()).toEqual({
2953
- id: '1753954266500',
2954
- type: 'text',
2955
- text: 'The World Wide Fund for Nature (WWF) is....',
2956
- });
2957
- });
2958
- });
2959
- describe('cleanHtmlWhitespace', () => {
2960
- const cleaner = new HTMLContentCleaner();
2961
- const cleanHtmlWhitespace = (html) => {
2962
- return cleaner.clean(html);
2963
- };
2964
- it('should inline a table by removing all whitespace between tags', () => {
2965
- const input = `<table style="width: 400px; border-collapse: collapse;"> <thead> <tr> ` +
2966
- `<th style="padding: 12px; text-align: left; font-weight: bold;">Header 1</th> ` +
2967
- `<th style="padding: 12px; text-align: left; font-weight: bold;">Header 2</th> ` +
2968
- `<th style="padding: 12px; text-align: left; font-weight: bold;">Header 3</th> ` +
2969
- `</tr> </thead> <tbody> <tr> <td style="padding: 12px;">Cell 1-1</td> ` +
2970
- `<td style="padding: 12px;">Cell 1-2</td> <td style="padding: 12px;">Cell 1-3</td> ` +
2971
- `</tr> <tr> <td style="padding: 12px;">Cell 2-1</td> <td style="padding: 12px;">Cell 2-2</td> ` +
2972
- `<td style="padding: 12px;">Cell 2-3</td> </tr> <tr> <td style="padding: 12px;">Cell 3-1</td> ` +
2973
- `<td style="padding: 12px;">Cell 3-2</td> <td style="padding: 12px;">Cell 3-3</td> ` +
2974
- `</tr> </tbody> </table>`;
2975
- const expected = `<table style="width: 400px; border-collapse: collapse;"><thead><tr>` +
2976
- `<th style="padding: 12px; text-align: left; font-weight: bold;">Header 1</th>` +
2977
- `<th style="padding: 12px; text-align: left; font-weight: bold;">Header 2</th>` +
2978
- `<th style="padding: 12px; text-align: left; font-weight: bold;">Header 3</th>` +
2979
- `</tr></thead><tbody><tr>` +
2980
- `<td style="padding: 12px;">Cell 1-1</td>` +
2981
- `<td style="padding: 12px;">Cell 1-2</td>` +
2982
- `<td style="padding: 12px;">Cell 1-3</td>` +
2983
- `</tr><tr>` +
2984
- `<td style="padding: 12px;">Cell 2-1</td>` +
2985
- `<td style="padding: 12px;">Cell 2-2</td>` +
2986
- `<td style="padding: 12px;">Cell 2-3</td>` +
2987
- `</tr><tr>` +
2988
- `<td style="padding: 12px;">Cell 3-1</td>` +
2989
- `<td style="padding: 12px;">Cell 3-2</td>` +
2990
- `<td style="padding: 12px;">Cell 3-3</td>` +
2991
- `</tr></tbody></table>`;
2992
- expect(cleanHtmlWhitespace(input)).toBe(expected);
2993
- });
2994
- it('should remove \\n\\t after opening tag and before closing tag', () => {
2995
- const input = '<p>\n\t <span>test</span>\n\t </p>';
2996
- expect(cleanHtmlWhitespace(input)).toBe('<p><span>test</span></p>');
2997
- });
2998
- it('should remove all \\n and \\t characters', () => {
2999
- const input = '<p>\n\ttest\n</p>';
3000
- expect(cleanHtmlWhitespace(input)).toBe('<p>test</p>');
3001
- });
3002
- it('should preserve space between matching tags', () => {
3003
- const input = '<span> </span>';
3004
- expect(cleanHtmlWhitespace(input)).toBe('<span> </span>');
3005
- });
3006
- it('should preserve space with text between matching tags', () => {
3007
- const input = '<span> test </span>';
3008
- expect(cleanHtmlWhitespace(input)).toBe('<span> test </span>');
3009
- });
3010
- it('should preserve multiple spaces between matching tags', () => {
3011
- const input = '<span> </span>';
3012
- expect(cleanHtmlWhitespace(input)).toBe('<span> </span>');
3013
- });
3014
- it('should remove whitespace between opening tags', () => {
3015
- const input = '<div>\n\t<p></p></div>';
3016
- expect(cleanHtmlWhitespace(input)).toBe('<div><p></p></div>');
3017
- });
3018
- it('should remove \\n\\t after opening tag but preserve regular spaces', () => {
3019
- const input = '<p>\n\t Hello</p>';
3020
- expect(cleanHtmlWhitespace(input)).toBe('<p> Hello</p>');
3021
- });
3022
- it('should remove whitespace between multiple closing tags', () => {
3023
- const input = '<table><tbody><tr></tr> </tbody> </table>';
3024
- expect(cleanHtmlWhitespace(input)).toBe('<table><tbody><tr></tr></tbody></table>');
3025
- });
3026
- it('should remove whitespace between multiple opening tags', () => {
3027
- const input = '<div> <span></span></div>';
3028
- expect(cleanHtmlWhitespace(input)).toBe('<div><span></span></div>');
3029
- });
3030
- it('should handle complex nested structure', () => {
3031
- const input = '<div>\n\t<p>\n\t\t<span>Hello</span>\n\t</p>\n</div>';
3032
- expect(cleanHtmlWhitespace(input)).toBe('<div><p><span>Hello</span></p></div>');
3033
- });
3034
- it('should preserve regular spaces within text content', () => {
3035
- const input = '<p>Hello World</p>';
3036
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello World</p>');
3037
- });
3038
- it('should preserve multiple spaces in text content', () => {
3039
- const input = '<p>Hello World</p>';
3040
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello World</p>');
3041
- });
3042
- it('should not remove \\n between words in text content', () => {
3043
- const input = '<p>Hello\nWorld</p>';
3044
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello\nWorld</p>');
3045
- });
3046
- it('should not remove \\n between words with space in text content', () => {
3047
- const input = '<p>Hello\n World</p>';
3048
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello\n World</p>');
3049
- });
3050
- it('should remove newline after img tag', () => {
3051
- const input = '<div><img id="image-id" class="img-class" style="vertical-align: bottom; width: 25%; padding: 20px" alt="test alt" src="data:image/svg+xml;base64,xxx=" data-size="sm">\n</div>';
3052
- const expected = '<div><img id="image-id" class="img-class" style="vertical-align: bottom; width: 25%; padding: 20px" alt="test alt" src="data:image/svg+xml;base64,xxx=" data-size="sm"></div>';
3053
- expect(cleanHtmlWhitespace(input)).toBe(expected);
3054
- });
3055
- it('should handle 4-level deep nesting', () => {
3056
- const input = '<div>\n\t<section>\n\t\t<article>\n\t\t\t<p>Text</p>\n\t\t</article>\n\t</section>\n</div>';
3057
- expect(cleanHtmlWhitespace(input)).toBe('<div><section><article><p>Text</p></article></section></div>');
3058
- });
3059
- it('should handle 5-level deep nesting', () => {
3060
- const input = '<div>\n\t<section>\n\t\t<article>\n\t\t\t<main>\n\t\t\t\t<p>Text</p>\n\t\t\t</main>\n\t\t</article>\n\t</section>\n</div>';
3061
- expect(cleanHtmlWhitespace(input)).toBe('<div><section><article><main><p>Text</p></main></article></section></div>');
3062
- });
3063
- it('should handle 6-level deep nesting', () => {
3064
- const input = '<div>\n\t<section>\n\t\t<article>\n\t\t\t<main>\n\t\t\t\t<aside>\n\t\t\t\t\t<p>Text</p>\n\t\t\t\t</aside>\n\t\t\t</main>\n\t\t</article>\n\t</section>\n</div>';
3065
- expect(cleanHtmlWhitespace(input)).toBe('<div><section><article><main><aside><p>Text</p></aside></main></article></section></div>');
3066
- });
3067
- it('should remove whitespace after br and hr tags', () => {
3068
- const input1 = '<div><br>\n</div>';
3069
- expect(cleanHtmlWhitespace(input1)).toBe('<div><br></div>');
3070
- const input2 = '<div><hr>\n\t</div>';
3071
- expect(cleanHtmlWhitespace(input2)).toBe('<div><hr></div>');
3072
- const input3 = '<div><input type="text">\n</div>';
3073
- expect(cleanHtmlWhitespace(input3)).toBe('<div><input type="text"></div>');
3074
- });
3075
- it('should remove multiple consecutive \\n characters', () => {
3076
- const input = '<p>\n\n\n\nHello</p>';
3077
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello</p>');
3078
- });
3079
- it('should remove multiple consecutive \\t characters', () => {
3080
- const input = '<p>\t\t\tHello</p>';
3081
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello</p>');
3082
- });
3083
- it('should preserve empty matching tags', () => {
3084
- const input = '<span></span>';
3085
- expect(cleanHtmlWhitespace(input)).toBe('<span></span>');
3086
- });
3087
- it('should handle mixed spaces, tabs, and newlines', () => {
3088
- const input = '<div> \n\t <p>Text</p> \n\t </div>';
3089
- expect(cleanHtmlWhitespace(input)).toBe('<div><p>Text</p></div>');
3090
- });
3091
- it('should preserve spaces in attribute values', () => {
3092
- const input = '<p class="my custom class">Text</p>';
3093
- expect(cleanHtmlWhitespace(input)).toBe('<p class="my custom class">Text</p>');
3094
- });
3095
- it('should remove newlines after br tags', () => {
3096
- const input = '<p>Line 1<br>\nLine 2</p>';
3097
- expect(cleanHtmlWhitespace(input)).toBe('<p>Line 1<br>Line 2</p>');
3098
- });
3099
- it('should preserve spaces in code blocks between matching tags', () => {
3100
- const input = '<code> const x = 1; </code>';
3101
- expect(cleanHtmlWhitespace(input)).toBe('<code> const x = 1; </code>');
3102
- });
3103
- it('should handle empty string', () => {
3104
- expect(cleanHtmlWhitespace('')).toBe('');
3105
- });
3106
- it('should preserve plain text without tags', () => {
3107
- const input = 'Hello World';
3108
- expect(cleanHtmlWhitespace(input)).toBe('Hello World');
3109
- });
3110
- it('should remove whitespace between different inline elements', () => {
3111
- const input = '<span>text</span>\n\t<strong>bold</strong>';
3112
- expect(cleanHtmlWhitespace(input)).toBe('<span>text</span><strong>bold</strong>');
3113
- });
3114
- it('should remove \\t\\n combination', () => {
3115
- const input = '<p>\t\nHello</p>';
3116
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello</p>');
3117
- });
3118
- it('should remove complex \\n\\t\\n patterns', () => {
3119
- const input = '<p>\n\t\n\t\nHello</p>';
3120
- expect(cleanHtmlWhitespace(input)).toBe('<p>Hello</p>');
3121
- });
3122
- });
3123
- });