@globalpayments/vega 2.34.0 → 2.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/cjs/{app-globals-4e819773.js → app-globals-48582633.js} +2 -2
  2. package/dist/cjs/{content-state-3a2724f6.js → content-state-6a5b9736.js} +64 -294
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/{text-color-toolbar-button-slimmer-b1c9f40e.js → text-color-toolbar-button-slimmer-21a166e4.js} +1 -1
  6. package/dist/cjs/{text-node-0d12da5a.js → text-node-494856f3.js} +0 -122
  7. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  8. package/dist/cjs/vega-pagination.cjs.entry.js +5 -2
  9. package/dist/cjs/vega-rich-text-content.cjs.entry.js +2 -2
  10. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +629 -416
  11. package/dist/cjs/vega-table_8.cjs.entry.js +1 -1
  12. package/dist/cjs/vega.cjs.js +3 -3
  13. package/dist/collection/components/vega-pagination/vega-pagination.js +5 -2
  14. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +0 -10
  15. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +0 -9
  16. package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +0 -44
  17. package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +0 -10
  18. package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +0 -42
  19. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +0 -9
  20. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +0 -14
  21. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +0 -11
  22. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +0 -26
  23. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +0 -44
  24. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +0 -11
  25. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +0 -18
  26. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +0 -13
  27. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +0 -19
  28. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +0 -27
  29. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +2 -14
  30. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +0 -10
  31. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +0 -32
  32. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +258 -0
  33. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +71 -0
  34. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +70 -0
  35. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +37 -0
  36. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.js +55 -0
  37. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +85 -0
  38. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +49 -0
  39. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.js +50 -0
  40. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.js +60 -0
  41. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.js +50 -0
  42. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +56 -0
  43. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +7 -3
  44. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +3 -0
  45. package/dist/esm/{app-globals-9971ccfd.js → app-globals-48531a04.js} +2 -2
  46. package/dist/esm/{content-state-acf55eb0.js → content-state-4b036bf1.js} +65 -295
  47. package/dist/esm/index.js +2 -2
  48. package/dist/esm/loader.js +3 -3
  49. package/dist/esm/{text-color-toolbar-button-slimmer-d0255b98.js → text-color-toolbar-button-slimmer-b2270b64.js} +1 -1
  50. package/dist/esm/{text-node-6f7d736c.js → text-node-a652ca87.js} +0 -122
  51. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  52. package/dist/esm/vega-pagination.entry.js +5 -2
  53. package/dist/esm/vega-rich-text-content.entry.js +2 -2
  54. package/dist/esm/vega-rich-text-editor_4.entry.js +630 -417
  55. package/dist/esm/vega-table_8.entry.js +1 -1
  56. package/dist/esm/vega.js +3 -3
  57. package/dist/types/components/vega-pagination/vega-pagination.d.ts +1 -0
  58. package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +0 -7
  59. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +0 -7
  60. package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +0 -14
  61. package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +0 -8
  62. package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +0 -14
  63. package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +0 -7
  64. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +0 -7
  65. package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +0 -7
  66. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +0 -7
  67. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +0 -14
  68. package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +0 -7
  69. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +0 -8
  70. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +0 -1
  71. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +0 -1
  72. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +0 -1
  73. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +0 -1
  74. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +0 -1
  75. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +0 -2
  76. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +111 -0
  77. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +32 -0
  78. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.d.ts +19 -0
  79. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +32 -0
  80. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.d.ts +31 -0
  81. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.d.ts +38 -0
  82. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.d.ts +35 -0
  83. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.d.ts +36 -0
  84. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.d.ts +31 -0
  85. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.d.ts +36 -0
  86. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.d.ts +31 -0
  87. package/dist/vega/index.esm.js +1 -1
  88. package/dist/vega/{p-d302f052.entry.js → p-0190095c.entry.js} +1 -1
  89. package/dist/vega/p-10393104.js +1 -0
  90. package/dist/vega/p-584dcd9b.js +1 -0
  91. package/dist/vega/p-5f377954.js +1 -1
  92. package/dist/vega/{p-c1d97d12.entry.js → p-734ea281.entry.js} +1 -1
  93. package/dist/vega/{p-49f4a666.js → p-8836c1b9.js} +1 -1
  94. package/dist/vega/p-8f004647.entry.js +1 -0
  95. package/dist/vega/p-9e732a26.entry.js +1 -0
  96. package/dist/vega/{p-2fc3af2f.js → p-9f39dd10.js} +1 -1
  97. package/dist/vega/vega.esm.js +1 -1
  98. package/package.json +1 -1
  99. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-handler.abstract.js +0 -135
  100. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-processor.js +0 -74
  101. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/image-to-dto-handler.js +0 -47
  102. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/inline-block-to-dto-handler.js +0 -39
  103. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/link-to-dto-handler.js +0 -50
  104. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-item-to-dto-handler.js +0 -41
  105. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-to-dto-handler.js +0 -57
  106. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/paragraph-to-dto-handler.js +0 -56
  107. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-block-to-dto-handler.js +0 -77
  108. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-to-dto-handler.js +0 -44
  109. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-handler.abstract.d.ts +0 -67
  110. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/element-to-dto-processor.d.ts +0 -29
  111. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/image-to-dto-handler.d.ts +0 -37
  112. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/inline-block-to-dto-handler.d.ts +0 -35
  113. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/link-to-dto-handler.d.ts +0 -37
  114. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-item-to-dto-handler.d.ts +0 -36
  115. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/list-to-dto-handler.d.ts +0 -39
  116. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/paragraph-to-dto-handler.d.ts +0 -39
  117. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-block-to-dto-handler.d.ts +0 -46
  118. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-handler/text-to-dto-handler.d.ts +0 -37
  119. package/dist/vega/p-315667f1.js +0 -1
  120. package/dist/vega/p-728b029a.entry.js +0 -1
  121. package/dist/vega/p-b6af0fc1.entry.js +0 -1
  122. package/dist/vega/p-e43c2a27.js +0 -1
@@ -3558,7 +3558,7 @@ __decorate$b([
3558
3558
  MapToComponentField()
3559
3559
  ], SortIconRenderer.prototype, "sortOrder", void 0);
3560
3560
 
3561
- const vegaTableHeadCellCss = ":host(.v-hidden){display:none}@media (min-width: 320px){:host(.S\\:v-table-cell){display:table-cell}}@media (min-width: 768px){:host(.M\\:v-table-cell){display:table-cell}}@media (min-width: 1024px){:host(.L\\:v-table-cell){display:table-cell}}@media (min-width: 1440px){:host(.XL\\:v-table-cell){display:table-cell}}:host{display:table-cell;background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle}:host(.sortable){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.sortable:hover){background-color:rgba(var(--v-bg-table-row-hover, 241, 248, 251, 1))}th{display:block;padding:0px;padding:12px;font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center}.vega-table-column.right{justify-content:flex-end}.vega-table-column.left{justify-content:flex-start}.vega-table-column .vega-table-column-label{min-width:0px}.vega-table-column .vega-table-column-sorter{display:flex;align-items:center;justify-content:center;padding:2px;margin-left:8px;cursor:pointer;outline:none}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}";
3561
+ const vegaTableHeadCellCss = ":host(.v-hidden){display:none}@media (min-width: 320px){:host(.S\\:v-table-cell){display:table-cell}}@media (min-width: 768px){:host(.M\\:v-table-cell){display:table-cell}}@media (min-width: 1024px){:host(.L\\:v-table-cell){display:table-cell}}@media (min-width: 1440px){:host(.XL\\:v-table-cell){display:table-cell}}:host{display:table-cell;background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle}:host(.sortable){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.sortable:hover){background-color:rgba(var(--v-bg-table-row-hover, 241, 248, 251, 1))}th{display:block;padding:0px;padding:12px;font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}.vega-table-column .vega-table-column-sorter{display:flex;align-items:center;justify-content:center;padding:2px;margin-left:8px;cursor:pointer;outline:none}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}";
3562
3562
 
3563
3563
  var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3564
3564
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
package/dist/esm/vega.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './global-slimmer-registry-6887a59f.js';
2
- import { g as globalScripts } from './app-globals-9971ccfd.js';
2
+ import { g as globalScripts } from './app-globals-48531a04.js';
3
3
  import './feature-flag-controller-dfde0cfa.js';
4
4
  import './index-44c794b4.js';
5
5
  import './_commonjsHelpers-9943807e.js';
@@ -26,10 +26,10 @@ import './translation-b3fe8e74.js';
26
26
  import './typography-396de03f.js';
27
27
  import './valid-credit-card-number-rule-2aef3ad5.js';
28
28
  import './regex-dfe11abf.js';
29
- import './text-node-6f7d736c.js';
29
+ import './text-node-a652ca87.js';
30
30
  import './type-guard-158f6d7a.js';
31
31
  import './accessibility-e5fd0fab.js';
32
- import './content-state-acf55eb0.js';
32
+ import './content-state-4b036bf1.js';
33
33
 
34
34
  /*
35
35
  Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -37,6 +37,7 @@ export declare class VegaPagination {
37
37
  * @vegaVersion 1.3.0
38
38
  */
39
39
  total: number;
40
+ watchTotal(): void;
40
41
  /**
41
42
  * Specifies the number of data items to be displayed per page in
42
43
  * the pagination component.
@@ -15,13 +15,6 @@ export declare class BoldAnnotation extends NodeAnnotation {
15
15
  * @returns {[NodeAnnotationTypeEnum.BOLD, BoldAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(bold: boolean): [NodeAnnotationTypeEnum.BOLD, BoldAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.BOLD, BoldAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): [NodeAnnotationTypeEnum.BOLD, BoldAnnotation];
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -15,13 +15,6 @@ export declare class CodeAnnotation extends NodeAnnotation {
15
15
  * @returns {[NodeAnnotationTypeEnum.CODE, CodeAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(code: boolean): [NodeAnnotationTypeEnum.CODE, CodeAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.CODE, CodeAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): [NodeAnnotationTypeEnum.CODE, CodeAnnotation];
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -15,20 +15,6 @@ export declare class HorizontalAlignmentAnnotation extends BlockAnnotation {
15
15
  * @returns {[BlockAnnotationTypeEnum.ALIGNMENT, HorizontalAlignmentAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(textAlign: VegaRTEBlockAlignment): [BlockAnnotationTypeEnum.ALIGNMENT, HorizontalAlignmentAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[BlockAnnotationTypeEnum.ALIGNMENT, HorizontalAlignmentAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): Nullable<[BlockAnnotationTypeEnum.ALIGNMENT, HorizontalAlignmentAnnotation]>;
25
- /**
26
- * Get the text alignment of an HTML element.
27
- *
28
- * @param {HTMLElement} node - An HTMLElement.
29
- * @returns {Nullable<VegaRTEBlockAlignment>} text alignment.
30
- */
31
- private static getTextAlign;
32
18
  /**
33
19
  * Generate the JSON item of the annotation
34
20
  *
@@ -18,14 +18,6 @@ export declare class ImageAnnotation extends NodeAnnotation {
18
18
  * @returns {[NodeAnnotationTypeEnum.IMAGE, ImageAnnotation]} Map item for the annotation
19
19
  */
20
20
  static from(size: VegaRichTextImageEditorSizeType, alt: string): [NodeAnnotationTypeEnum.IMAGE, ImageAnnotation];
21
- /**
22
- * Generate the map item for the annotation
23
- *
24
- * @param {VegaRichTextImageEditorSizeType} size - size.
25
- * @param {string} alt - alt.
26
- * @returns {[NodeAnnotationTypeEnum.IMAGE, ImageAnnotation]} Map item for the annotation
27
- */
28
- static fromHTML(size: VegaRichTextImageEditorSizeType, alt: string): [NodeAnnotationTypeEnum.IMAGE, ImageAnnotation];
29
21
  /**
30
22
  * Generate the JSON representation of the annotation
31
23
  *
@@ -15,20 +15,6 @@ export declare class IndentAnnotation extends BlockAnnotation {
15
15
  * @returns {[BlockAnnotationTypeEnum.INDENT, IndentAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(indent: number): [BlockAnnotationTypeEnum.INDENT, IndentAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[BlockAnnotationTypeEnum.INDENT, IndentAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): Nullable<[BlockAnnotationTypeEnum.INDENT, IndentAnnotation]>;
25
- /**
26
- * Retrieves the left margin value of an HTML element.
27
- *
28
- * @param {HTMLElement} node - An html element.
29
- * @returns {number} margin left.
30
- */
31
- private static getMarginLeft;
32
18
  /**
33
19
  * Generate the JSON item of the annotation
34
20
  *
@@ -15,13 +15,6 @@ export declare class ItalicAnnotation extends NodeAnnotation {
15
15
  * @returns {Nullable<[NodeAnnotationTypeEnum.ITALIC, ItalicAnnotation]>} Map item for the annotation
16
16
  */
17
17
  static from(italic: boolean): [NodeAnnotationTypeEnum.ITALIC, ItalicAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.ITALIC, ItalicAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): [NodeAnnotationTypeEnum.ITALIC, ItalicAnnotation];
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -15,13 +15,6 @@ export declare class LinkAnnotation extends NodeAnnotation {
15
15
  * @returns {[NodeAnnotationTypeEnum.LINK, LinkAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(link: VegaRTELink): [NodeAnnotationTypeEnum.LINK, LinkAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.LINK, LinkAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): Nullable<[NodeAnnotationTypeEnum.LINK, LinkAnnotation]>;
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -15,13 +15,6 @@ export declare class StrikethroughAnnotation extends NodeAnnotation {
15
15
  * @returns {[NodeAnnotationTypeEnum.STRIKETHROUGH, StrikethroughAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(strikethrough: boolean): [NodeAnnotationTypeEnum.STRIKETHROUGH, StrikethroughAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.STRIKETHROUGH, StrikethroughAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): [NodeAnnotationTypeEnum.STRIKETHROUGH, StrikethroughAnnotation];
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -15,13 +15,6 @@ export declare class TextColorAnnotation extends NodeAnnotation {
15
15
  * @returns {[NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(textColor: string): [NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): Nullable<[NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation]>;
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -15,20 +15,6 @@ export declare class TextStyleAnnotation extends BlockAnnotation {
15
15
  * @returns {[BlockAnnotationTypeEnum.TEXT_STYLE, TextStyleAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(textStyle: VegaRTETextStyleType): [BlockAnnotationTypeEnum.TEXT_STYLE, TextStyleAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[BlockAnnotationTypeEnum.TEXT_STYLE, TextStyleAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): [BlockAnnotationTypeEnum.TEXT_STYLE, TextStyleAnnotation];
25
- /**
26
- * Get the type of block.
27
- *
28
- * @param {HTMLElement} node - An HTMLElement.
29
- * @returns {VegaRTETextStyleType} text style type.
30
- */
31
- private static getTextStyle;
32
18
  /**
33
19
  * Generate the JSON representation of the annotation
34
20
  *
@@ -15,13 +15,6 @@ export declare class UnderlineAnnotation extends NodeAnnotation {
15
15
  * @returns {[NodeAnnotationTypeEnum.UNDERLINE, UnderlineAnnotation]} Map item for the annotation
16
16
  */
17
17
  static from(underline: boolean): [NodeAnnotationTypeEnum.UNDERLINE, UnderlineAnnotation];
18
- /**
19
- * Generate the map item for the annotation by html element
20
- *
21
- * @param {HTMLElement} node - An html element.
22
- * @returns {[NodeAnnotationTypeEnum.UNDERLINE, UnderlineAnnotation]} Map item for the annotation
23
- */
24
- static fromHTML(node: HTMLElement): [NodeAnnotationTypeEnum.UNDERLINE, UnderlineAnnotation];
25
18
  /**
26
19
  * Generate the JSON representation of the annotation
27
20
  *
@@ -30,14 +30,6 @@ export declare abstract class RTEBlock extends BlockBaseOperator {
30
30
  * `BlockAnnotationTypeEnum` and a `BlockAnnotation` object.
31
31
  */
32
32
  protected static createAnnotationEntity(type: keyof VegaRTEBlockAnnotations, value: unknown): Nullable<[BlockAnnotationTypeEnum, BlockAnnotation]>;
33
- /**
34
- * Create annotations for block element.
35
- *
36
- * @param {string} type - Annotations type.
37
- * @param {HTMLElement} node - current node.
38
- * @returns {Nullable<[BlockAnnotationTypeEnum, BlockAnnotation]>} - result.
39
- */
40
- protected static createAnnotationEntityFromHTML(type: string, node: HTMLElement): Nullable<[BlockAnnotationTypeEnum, BlockAnnotation]>;
41
33
  /**
42
34
  * Class to JSON object
43
35
  *
@@ -12,7 +12,6 @@ export declare class RTEImageBlock extends RTEBlock {
12
12
  parent: VegaRTEContent;
13
13
  constructor(id: string);
14
14
  static from(block: VegaRTEImageBlock): RTEImageBlock;
15
- static fromHTML(node: HTMLImageElement | HTMLDivElement): RTEImageBlock;
16
15
  toJSON(): VegaRTEImageBlock;
17
16
  isNotEmpty(): boolean;
18
17
  getLastNode(): RTEImageNode;
@@ -10,7 +10,6 @@ export declare class RTEListBlock extends RTEBlock {
10
10
  parent: RTEListItemBlock | VegaRTEContent;
11
11
  constructor(id: string, type: VegaRTEListBlockType);
12
12
  static from(block: VegaRTEListBlock): RTEListBlock;
13
- static fromHTML(node: HTMLUListElement | HTMLOListElement): RTEListBlock;
14
13
  toJSON(): VegaRTEListBlock;
15
14
  isNotEmpty(): boolean;
16
15
  getLastNode(): RTETextNode;
@@ -9,7 +9,6 @@ export declare class RTEListItemBlock extends RTETextBlock {
9
9
  parent: RTEListBlock;
10
10
  constructor(id: string, children?: RTEListBlock[]);
11
11
  static from(block: VegaRTEListItemBlock): RTEListItemBlock;
12
- static fromHTML(node: HTMLLIElement): RTEListItemBlock;
13
12
  toJSON(): VegaRTEListItemBlock;
14
13
  cloneWithNodes(nodes: RTETextNode[]): RTEBlock;
15
14
  isNotEmpty(): boolean;
@@ -17,7 +17,6 @@ export declare class RTETextBlock extends RTEBlock {
17
17
  parent: VegaRTEContent | RTEListBlock;
18
18
  constructor(id: string, type: VegaRTETextBlockType);
19
19
  static from(block: VegaRTETextBlock): RTETextBlock;
20
- static fromHTML(node: HTMLElement, blockType: VegaRTETextBlockType): RTETextBlock;
21
20
  /**
22
21
  * The function `createAnnotationEntity` creates a block annotation entity based on the provided type
23
22
  * and value.
@@ -9,7 +9,6 @@ export declare class RTEImageNode extends RTENode {
9
9
  url: string;
10
10
  constructor(id: string, url: string, parentBlock: RTEImageBlock, annotationMap?: Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>);
11
11
  static from(image: VegaRTEImageNode, parentBlock: RTEImageBlock): RTEImageNode;
12
- static fromHTML(node: HTMLImageElement | HTMLVegaRichTextImageEditorElement, parentBlock: RTEImageBlock): RTEImageNode;
13
12
  toJSON(): VegaRTEImageNode;
14
13
  render({ editable }?: RTERenderContext): HTMLElement;
15
14
  protected doAnnotationActionApply(action: ImageAnnotationAction): void;
@@ -12,9 +12,7 @@ export declare class RTETextNode extends RTENode {
12
12
  parentBlock: RTETextBlock;
13
13
  constructor(id: string, text: string, parentBlock: RTETextBlock, annotationMap?: Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>);
14
14
  static from(richText: VegaRTETextNode, parentBlock: RTETextBlock): RTETextNode;
15
- static fromHTML(node: HTMLElement, parentBlock: RTETextBlock): RTETextNode;
16
15
  private static createAnnotationEntity;
17
- private static createAnnotationEntityFromHTML;
18
16
  toJSON(): VegaRTETextNode;
19
17
  cloneWithText(text: string): RTETextNode;
20
18
  isEmpty(): boolean;
@@ -0,0 +1,111 @@
1
+ import { VegaRTEBlockAnnotations, VegaRTETextAnnotations, VegaRTETextNode } from '../../../../interface';
2
+ import { ElementToDTOStrategy } from './element-to-dto-strategy.abstract';
3
+ /** Abstract class for block html element to RTE block dto */
4
+ export declare abstract class BlockToRTEBlockStrategyAbstract extends ElementToDTOStrategy {
5
+ /**
6
+ * Generate child nodes of block element, this will inherit all annotations from parent to text node and
7
+ * flat the child nodes.
8
+ *
9
+ * Example:
10
+ * <li>
11
+ * <u><i>text1</i></u>
12
+ * <span style='font-weight: bold;'><span>text2</span></span>
13
+ * text3
14
+ * </li>
15
+ * will tranform to:
16
+ * <li>
17
+ * <span>text1</span> // with underline and italic annotations
18
+ * <span>text2</span> // with bold annotations
19
+ * <span>text3</span> // no annotations
20
+ * </li>
21
+ *
22
+ * @param {HTMLElement[]} elements - Child elements.
23
+ * @param {HTMLElement[]} annotations - Parent annotations.
24
+ * @returns {VegaRTETextNode[]} - Text node DTO.
25
+ */
26
+ protected generateChildNodes(elements: HTMLElement[], annotations?: VegaRTETextAnnotations): VegaRTETextNode[];
27
+ /**
28
+ * Generate annotations map for block element.
29
+ *
30
+ * @param {HTMLElement} element - current element.
31
+ * @returns {VegaRTEBlockAnnotations} - Text block annotations.
32
+ */
33
+ protected generateBlockAnnotations(element: HTMLElement): VegaRTEBlockAnnotations;
34
+ /**
35
+ * Check is a invalid text node.
36
+ *
37
+ * @param {HTMLElement} element - Current node element.
38
+ * @returns {boolean} - boolean.
39
+ */
40
+ private isInvalidTextNode;
41
+ /**
42
+ * Generate annotations map for text node element.
43
+ *
44
+ * @param {HTMLElement} element - current element.
45
+ * @returns {VegaRTETextAnnotations | VegaRTECodeAnnotations} - Text node annotations.
46
+ */
47
+ private generateTextNodeAnnotations;
48
+ /**
49
+ * Is code element.
50
+ *
51
+ * @param {HTMLElement} element - current element.
52
+ * @returns {boolean} - boolean.
53
+ */
54
+ private isCode;
55
+ /**
56
+ * Is bold element.
57
+ *
58
+ * @param {HTMLElement} element - current element.
59
+ * @returns {boolean} - boolean.
60
+ */
61
+ private isBold;
62
+ /**
63
+ * Is italic element.
64
+ *
65
+ * @param {HTMLElement} element - current element.
66
+ * @returns {boolean} - boolean.
67
+ */
68
+ private isItalic;
69
+ /**
70
+ * Is underline element.
71
+ *
72
+ * @param {HTMLElement} element - current element.
73
+ * @returns {boolean} - boolean.
74
+ */
75
+ private isUnderline;
76
+ /**
77
+ * Is strikethrough element.
78
+ *
79
+ * @param {HTMLElement} element - current element.
80
+ * @returns {boolean} - boolean.
81
+ */
82
+ private isStrikethrough;
83
+ /**
84
+ * Get current color of element.
85
+ *
86
+ * @param {HTMLElement} element - current element.
87
+ * @returns {Nullable<string>} - color.
88
+ */
89
+ private getColor;
90
+ /**
91
+ * Get current link of element.
92
+ *
93
+ * @param {HTMLElement} element - current element.
94
+ * @returns {Nullable<VegaRTELink>} - link.
95
+ */
96
+ private getLink;
97
+ /**
98
+ * Get text align of current element.
99
+ *
100
+ * @param {HTMLElement} element - current element.
101
+ * @returns {Nullable<VegaRTEBlockAlignment>} - Text align.
102
+ */
103
+ private getTextAlign;
104
+ /**
105
+ * Get indent of current element.
106
+ *
107
+ * @param {HTMLElement} element - current element.
108
+ * @returns {Nullable<number>} - Indent.
109
+ */
110
+ private getIndent;
111
+ }
@@ -0,0 +1,32 @@
1
+ import { Nullable } from '../../../../../../types/general';
2
+ import { RTEContentBlock } from '../../../../interface';
3
+ import { BlockToRTEBlockStrategyAbstract } from './block-to-rte-block-strategy.abstract';
4
+ /** Transform continue inline block elements to text block DTO */
5
+ export declare class ContinueInlineToRTETextBlockStrategy extends BlockToRTEBlockStrategyAbstract {
6
+ private static canHandleTags;
7
+ /**
8
+ * Can be handle.
9
+ *
10
+ * @param {HTMLElement[]} elementsArray - Current elements.
11
+ * @param {number} currentIndex - Current element index.
12
+ * @returns {number} - can be handled element count.
13
+ */
14
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
15
+ /**
16
+ * Parse to a text block.
17
+ *
18
+ * @param {HTMLElement[]} elementsArray - Current elements.
19
+ * @returns {Nullable<RTEContentBlock>} - Text block.
20
+ */
21
+ handle(elementsArray: HTMLElement[]): Nullable<RTEContentBlock>;
22
+ /**
23
+ * Append child blocks.
24
+ */
25
+ appendChildBlocks(): void;
26
+ /**
27
+ * Should continue process to child elements.
28
+ *
29
+ * @returns {boolean} - boolean.
30
+ */
31
+ shouldProceedToElementChildren(): boolean;
32
+ }
@@ -0,0 +1,19 @@
1
+ import { ElementToDTOStrategyOutput } from './element-to-dto-strategy.abstract';
2
+ /** Element to DTO processor */
3
+ export declare class ElementToDtoStrategyProcessor {
4
+ private elementStrategies;
5
+ /**
6
+ * Transform process.
7
+ *
8
+ * @param {HTMLElement[]} elements - Current elements.
9
+ * @returns {ElementToDTOStrategyOutput[]} - outputs.
10
+ */
11
+ process(elements: HTMLElement[]): ElementToDTOStrategyOutput[];
12
+ /**
13
+ * Checks if the given element is valid to parse.
14
+ *
15
+ * @param {HTMLElement} element - The pasted element.
16
+ * @returns {boolean} Is valid
17
+ */
18
+ private isInvalidElement;
19
+ }
@@ -0,0 +1,32 @@
1
+ import { Nullable } from '../../../../../../types/general';
2
+ import { RTEContentBlock } from '../../../../interface';
3
+ /**
4
+ * Abstract class to define strategies for processing HTML elements
5
+ */
6
+ export declare abstract class ElementToDTOStrategy {
7
+ abstract canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
8
+ abstract handle(elementsArray: HTMLElement[]): Nullable<RTEContentBlock>;
9
+ abstract appendChildBlocks(currentBlock: RTEContentBlock, childBlocks: RTEContentBlock[]): void;
10
+ abstract shouldProceedToElementChildren(): boolean;
11
+ }
12
+ /**
13
+ * Class to represent the output of a strategy applied to HTML elements
14
+ */
15
+ export declare class ElementToDTOStrategyOutput {
16
+ private childrenOutput;
17
+ private readonly currentStrategy;
18
+ private readonly currentElements;
19
+ constructor(currentStrategy: ElementToDTOStrategy, currentElements: HTMLElement[]);
20
+ /**
21
+ * Set children output.
22
+ *
23
+ * @param {ElementToDTOStrategyOutput[]} childrenOutput - children outputs.
24
+ */
25
+ setChildrenOutput(childrenOutput: ElementToDTOStrategyOutput[]): void;
26
+ /**
27
+ * Transform current output and children output to DTO
28
+ *
29
+ * @returns {RTEContentBlock} - DTO.
30
+ */
31
+ toDto(): RTEContentBlock;
32
+ }
@@ -0,0 +1,31 @@
1
+ import { RTEContentBlock } from '../../../../interface';
2
+ import { Nullable } from '../../../../../../types/general';
3
+ import { BlockToRTEBlockStrategyAbstract } from './block-to-rte-block-strategy.abstract';
4
+ /** Transform img element to image block DTO */
5
+ export declare class ImgToRTEImageBlockStrategy extends BlockToRTEBlockStrategyAbstract {
6
+ /**
7
+ * Can be handle.
8
+ *
9
+ * @param {HTMLElement[]} elementsArray - Current elements.
10
+ * @param {number} currentIndex - Current element index.
11
+ * @returns {number} - can be handled element count.
12
+ */
13
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
14
+ /**
15
+ * Parse to a image block.
16
+ *
17
+ * @param {HTMLElement[]} elementsArray - Current elements.
18
+ * @returns {Nullable<RTEContentBlock>} - Image block.
19
+ */
20
+ handle(elementsArray: HTMLElement[]): Nullable<RTEContentBlock>;
21
+ /**
22
+ * Append child blocks.
23
+ */
24
+ appendChildBlocks(): void;
25
+ /**
26
+ * Should continue process to child elements.
27
+ *
28
+ * @returns {boolean} - boolean.
29
+ */
30
+ shouldProceedToElementChildren(): boolean;
31
+ }
@@ -0,0 +1,38 @@
1
+ import { Nullable } from '../../../../../../types/general';
2
+ import { RTEContentBlock } from '../../../../interface';
3
+ import { BlockToRTEBlockStrategyAbstract } from './block-to-rte-block-strategy.abstract';
4
+ /** Transform inline block element to text block DTO */
5
+ export declare class InlineBlockToRTETextBlockStrategy extends BlockToRTEBlockStrategyAbstract {
6
+ /**
7
+ * Can be handle.
8
+ *
9
+ * @param {HTMLElement[]} elementsArray - Current elements.
10
+ * @param {number} currentIndex - Current element index.
11
+ * @returns {number} - can be handled element count.
12
+ */
13
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
14
+ /**
15
+ * Parse to a text block.
16
+ *
17
+ * @param {HTMLElement[]} elementsArray - Current elements.
18
+ * @returns {Nullable<RTEContentBlock>} - Text block.
19
+ */
20
+ handle(elementsArray: HTMLElement[]): Nullable<RTEContentBlock>;
21
+ /**
22
+ * Append child blocks.
23
+ */
24
+ appendChildBlocks(): void;
25
+ /**
26
+ * Should continue process to child elements.
27
+ *
28
+ * @returns {boolean} - boolean.
29
+ */
30
+ shouldProceedToElementChildren(): boolean;
31
+ /**
32
+ * Get node type of element.
33
+ *
34
+ * @param {HTMLElement} element - element.
35
+ * @returns {string} - node type.
36
+ */
37
+ private getElementType;
38
+ }
@@ -0,0 +1,35 @@
1
+ import { Nullable } from '../../../../../../types/general';
2
+ import { RTEListItemBlock } from '../../../../dto/blocks/list-item-block';
3
+ import { RTEContentBlock } from '../../../../interface';
4
+ import { BlockToRTEBlockStrategyAbstract } from './block-to-rte-block-strategy.abstract';
5
+ /** Transform li element to list item block DTO */
6
+ export declare class LiToRTEListItemBlockStrategy extends BlockToRTEBlockStrategyAbstract {
7
+ /**
8
+ * Can be handle.
9
+ *
10
+ * @param {HTMLElement[]} elementsArray - Current elements.
11
+ * @param {number} currentIndex - Current element index.
12
+ * @returns {number} - can be handled element count.
13
+ */
14
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
15
+ /**
16
+ * Parse to a list item block.
17
+ *
18
+ * @param {HTMLElement[]} elementsArray - Current elements.
19
+ * @returns {Nullable<RTEContentBlock>} - List item block.
20
+ */
21
+ handle(elementsArray: HTMLElement[]): Nullable<RTEContentBlock>;
22
+ /**
23
+ * Append child list blocks to current list item block.
24
+ *
25
+ * @param {RTEListBlock} currentBlock - Current list item block.
26
+ * @param {RTEListItemBlock[]} childBlocks - Current list blocks.
27
+ */
28
+ appendChildBlocks(currentBlock: RTEListItemBlock, childBlocks: RTEContentBlock[]): void;
29
+ /**
30
+ * Should continue process to child elements.
31
+ *
32
+ * @returns {boolean} - boolean.
33
+ */
34
+ shouldProceedToElementChildren(): boolean;
35
+ }
@@ -0,0 +1,36 @@
1
+ import { RTEListBlock } from '../../../../dto/blocks/list-block';
2
+ import { RTEContentBlock } from '../../../../interface';
3
+ import { Nullable } from '../../../../../../types/general';
4
+ import { RTEListItemBlock } from '../../../../dto/blocks/list-item-block';
5
+ import { BlockToRTEBlockStrategyAbstract } from './block-to-rte-block-strategy.abstract';
6
+ /** Transform ol element to list block DTO */
7
+ export declare class OlToRTEListBlockStrategy extends BlockToRTEBlockStrategyAbstract {
8
+ /**
9
+ * Can be handle.
10
+ *
11
+ * @param {HTMLElement[]} elementsArray - Current elements.
12
+ * @param {number} currentIndex - Current element index.
13
+ * @returns {number} - can be handled element count.
14
+ */
15
+ canHandle(elementsArray: HTMLElement[], currentIndex: number): number;
16
+ /**
17
+ * Parse to a number list block.
18
+ *
19
+ * @param {HTMLElement[]} elementsArray - Current elements.
20
+ * @returns {Nullable<RTEContentBlock>} - Number list block.
21
+ */
22
+ handle(elementsArray: HTMLElement[]): Nullable<RTEContentBlock>;
23
+ /**
24
+ * Append child list item blocks to current list block.
25
+ *
26
+ * @param {RTEListBlock} currentBlock - Current list block.
27
+ * @param {RTEListItemBlock[]} childBlocks - Current list item blocks.
28
+ */
29
+ appendChildBlocks(currentBlock: RTEListBlock, childBlocks: RTEListItemBlock[]): void;
30
+ /**
31
+ * Should continue process to child elements.
32
+ *
33
+ * @returns {boolean} - boolean.
34
+ */
35
+ shouldProceedToElementChildren(): boolean;
36
+ }