@talrace/ngx-noder 0.0.7 → 0.0.9

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 (657) hide show
  1. package/README.md +75 -66
  2. package/esm2022/lib/apart-components/add-link-dialog/add-link-dialog.component.mjs +67 -0
  3. package/esm2022/lib/apart-components/add-link-dialog/validation.helper.mjs +7 -0
  4. package/esm2022/lib/apart-components/add-link-mobile/add-link-mobile.component.mjs +47 -0
  5. package/esm2022/lib/apart-components/confirm-dialog/confirm-dialog.component.mjs +32 -0
  6. package/esm2022/lib/apart-components/editor-search/editor-search-dialog.component.mjs +64 -0
  7. package/esm2022/lib/apart-components/editor-title/editor-title.component.mjs +89 -0
  8. package/esm2022/lib/apart-components/editor-title-mobile/editor-title-mobile.component.mjs +22 -0
  9. package/esm2022/lib/apart-components/editor-toolbar/components/base-toolbar.component.mjs +117 -0
  10. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/color-picker/color-picker.component.mjs +37 -0
  11. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/font/font.component.mjs +49 -0
  12. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/font-size/font-size.component.mjs +90 -0
  13. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/font-style/font-style.component.mjs +81 -0
  14. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/format/format.component.mjs +28 -0
  15. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/heading/heading.component.mjs +22 -0
  16. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/numbering/numbering.component.mjs +53 -0
  17. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/print/print.component.mjs +18 -0
  18. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/undo-redo/undo-redo.component.mjs +27 -0
  19. package/esm2022/lib/apart-components/editor-toolbar/components/buttons/zoom/zoom.component.mjs +71 -0
  20. package/esm2022/lib/apart-components/editor-toolbar/components/menu-dropdowns/menu-dropdowns.component.mjs +94 -0
  21. package/esm2022/lib/apart-components/editor-toolbar/components/menu-dropdowns-mobile/menu-dropdowns-mobile.component.mjs +24 -0
  22. package/esm2022/lib/apart-components/editor-toolbar/components/toolbar-actions/toolbar-actions.component.mjs +65 -0
  23. package/esm2022/lib/apart-components/editor-toolbar/editor-mobile-toolbar/editor-mobile-toolbar.component.mjs +84 -0
  24. package/esm2022/lib/apart-components/editor-toolbar/editor-toolbar/editor-toolbar.component.mjs +90 -0
  25. package/esm2022/lib/apart-components/editor-toolbar/editor-toolbar.module.mjs +117 -0
  26. package/esm2022/lib/apart-components/editor-toolbar/shared/constants/editor-toolbar-modes.const.mjs +8 -0
  27. package/esm2022/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/shared}/constants/numbering-templates.const.mjs +6 -6
  28. package/esm2022/lib/apart-components/editor-toolbar/shared/constants/svg-icons.const.mjs +157 -0
  29. package/esm2022/lib/apart-components/editor-toolbar/shared/enums/alignment.enum.mjs +8 -0
  30. package/esm2022/lib/apart-components/editor-toolbar/shared/enums/editor-toolbar-mode.enum.mjs +11 -0
  31. package/esm2022/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/shared}/enums/numbering-template-type.enum.mjs +1 -1
  32. package/esm2022/lib/apart-components/editor-toolbar/shared/enums/numbering-type.enum.mjs +6 -0
  33. package/esm2022/lib/apart-components/editor-toolbar/shared/services/custom-icon.service.mjs +34 -0
  34. package/esm2022/lib/apart-components/editor-toolbar/shared/services/editor-toolbar.service.mjs +26 -0
  35. package/esm2022/lib/apart-components/editor-toolbar/shared/services/toolbar-core.service.mjs +60 -0
  36. package/esm2022/lib/apart-components/editor-toolbar/shared/toolbar-styles.helper.mjs +48 -0
  37. package/esm2022/lib/apart-components/insert-table/insert-table.component.mjs +54 -0
  38. package/esm2022/lib/apart-components/insert-table-mobile/insert-table-mobile.component.mjs +84 -0
  39. package/esm2022/lib/apart-components/text-format-mobile/text-format-mobile.component.mjs +123 -0
  40. package/esm2022/lib/editor/components/edges/edge-element.model.mjs +9 -0
  41. package/esm2022/lib/editor/components/edges/edge-type.enum.mjs +6 -0
  42. package/esm2022/lib/editor/components/edges/edge.component.mjs +99 -0
  43. package/esm2022/lib/editor/components/edges/edges.mjs +127 -0
  44. package/esm2022/lib/editor/components/edges/page-type.enum.mjs +7 -0
  45. package/esm2022/lib/editor/components/editor.component.mjs +112 -0
  46. package/esm2022/lib/editor/components/external-element/external-element.service.mjs +6 -0
  47. package/esm2022/lib/editor/components/external-element/external-elements.const.mjs +4 -0
  48. package/esm2022/lib/editor/components/external-element/external-sidenav.interface.mjs +2 -0
  49. package/esm2022/lib/editor/components/external-element/external.component.mjs +41 -0
  50. package/esm2022/lib/editor/components/external-element/models/element-data.model.mjs +9 -0
  51. package/esm2022/lib/editor/components/external-element/models/external-element.model.mjs +11 -0
  52. package/esm2022/lib/editor/components/external-element/models/external-sidenav.model.mjs +15 -0
  53. package/esm2022/lib/editor/components/image/components/image.component.mjs +88 -0
  54. package/esm2022/lib/editor/components/image/image-api.service.mjs +36 -0
  55. package/esm2022/lib/editor/components/image/input-handler/image-input.handler.mjs +55 -0
  56. package/esm2022/lib/editor/components/image/resizer/coordinate.mjs +2 -0
  57. package/esm2022/lib/editor/components/image/resizer/direction-wrapper.mjs +19 -0
  58. package/esm2022/lib/editor/components/image/resizer/direction.enum.mjs +12 -0
  59. package/esm2022/lib/editor/components/image/resizer/resizer.component.mjs +106 -0
  60. package/esm2022/lib/editor/components/image/resizer/size-delta.mjs +2 -0
  61. package/esm2022/lib/editor/components/image/resizer/size-wrapper.mjs +52 -0
  62. package/esm2022/lib/editor/components/image/size.mjs +2 -0
  63. package/esm2022/lib/editor/components/shared/abstract/base.component.mjs +59 -0
  64. package/esm2022/lib/editor/components/shared/abstract/destroy.component.mjs +18 -0
  65. package/esm2022/lib/editor/components/shared/custom-component.hepler.mjs +43 -0
  66. package/esm2022/lib/editor/components/shared/custom-components.interface.mjs +2 -0
  67. package/esm2022/lib/editor/components/shared/custom-content-markers.const.mjs +3 -0
  68. package/esm2022/lib/editor/components/shared/custom-content.mjs +2 -0
  69. package/esm2022/lib/editor/components/shared/services/component.service.mjs +64 -0
  70. package/esm2022/lib/editor/components/shared/services/custom-content.service.mjs +129 -0
  71. package/esm2022/lib/editor/components/shared/services/overlay.service.mjs +55 -0
  72. package/esm2022/lib/editor/components/tab/tab.component.mjs +44 -0
  73. package/esm2022/lib/editor/components/tab/tab.helper.mjs +6 -0
  74. package/esm2022/lib/editor/components/table/cell-resizer/cell-resizer.mjs +118 -0
  75. package/esm2022/lib/editor/components/table/components/table-cell.component.mjs +97 -0
  76. package/esm2022/lib/editor/components/table/components/table.component.mjs +410 -0
  77. package/esm2022/lib/{+shared/editor/core → editor/components/table}/enums/hrule.enum.mjs +1 -1
  78. package/esm2022/lib/editor/components/table/enums/reisizer-side.enum.mjs +8 -0
  79. package/esm2022/lib/editor/components/table/enums/vertical-merge.enum.mjs +6 -0
  80. package/esm2022/lib/editor/components/table/models/cell-data.model.mjs +17 -0
  81. package/esm2022/lib/editor/components/table/models/cell-resizer-parameters.model.mjs +9 -0
  82. package/esm2022/lib/editor/components/table/models/row-data.model.mjs +8 -0
  83. package/esm2022/lib/editor/components/table/models/selection-range.model.mjs +7 -0
  84. package/esm2022/lib/editor/components/table/overlay-menu/overlay-menu.component.mjs +74 -0
  85. package/esm2022/lib/editor/components/table/selection/table-selection.mjs +376 -0
  86. package/esm2022/lib/editor/content/constants/display-values.const.mjs +8 -0
  87. package/esm2022/lib/editor/content/constants/document-info.const.mjs +13 -0
  88. package/esm2022/lib/editor/content/constants/editor.const.mjs +70 -0
  89. package/esm2022/lib/editor/content/contents.interface.mjs +2 -0
  90. package/esm2022/lib/editor/content/display-data/display-data.mjs +839 -0
  91. package/esm2022/lib/editor/content/display-data/display-token.model.mjs +12 -0
  92. package/esm2022/lib/editor/content/display-data/format-ext.model.mjs +10 -0
  93. package/esm2022/lib/editor/content/display-data/general-properties.model.mjs +11 -0
  94. package/esm2022/lib/editor/content/display-data/indent.model.mjs +9 -0
  95. package/esm2022/lib/editor/content/display-data/line-info.model.mjs +9 -0
  96. package/esm2022/lib/editor/content/display-data/lines.mjs +96 -0
  97. package/esm2022/lib/editor/content/display-data/models/paragraph-info.model.mjs +8 -0
  98. package/esm2022/lib/editor/content/display-data/paragraph-info.interface.mjs +2 -0
  99. package/esm2022/lib/editor/content/display-data/paragraph.mjs +56 -0
  100. package/esm2022/lib/editor/content/display-data/text-line-info.mjs +35 -0
  101. package/esm2022/lib/editor/content/display-data/toolbar-styles.interface.mjs +2 -0
  102. package/esm2022/lib/editor/content/helpers/content-style.helper.mjs +78 -0
  103. package/esm2022/lib/editor/content/helpers/display-token.helper.mjs +62 -0
  104. package/esm2022/lib/{+shared/editor → editor/content}/helpers/format.helper.mjs +1 -1
  105. package/esm2022/lib/{+shared/editor → editor/content}/helpers/indexed-element.helper.mjs +1 -1
  106. package/esm2022/lib/editor/content/helpers/scaling.helper.mjs +9 -0
  107. package/esm2022/lib/editor/content/margin.model.mjs +16 -0
  108. package/esm2022/lib/editor/content/page-vertical-data.model.mjs +9 -0
  109. package/esm2022/lib/{+shared/editor/core/enums → editor/content}/vertical-alignment.enum.mjs +1 -1
  110. package/esm2022/lib/editor/core/event-emitting.mjs +56 -0
  111. package/esm2022/lib/editor/display/cell.interface.mjs +2 -0
  112. package/esm2022/lib/editor/display/event.helper.mjs +18 -0
  113. package/esm2022/lib/editor/display/layers/cursor.layer.mjs +102 -0
  114. package/esm2022/lib/editor/display/layers/layer.config.mjs +2 -0
  115. package/esm2022/lib/editor/display/layers/pages.layer.mjs +97 -0
  116. package/esm2022/lib/editor/display/layers/print.pages.layer.mjs +7 -0
  117. package/esm2022/lib/editor/display/layers/print.text.layer.mjs +7 -0
  118. package/esm2022/lib/editor/display/layers/selection.layer.mjs +119 -0
  119. package/esm2022/lib/editor/display/layers/text.layer.mjs +201 -0
  120. package/esm2022/lib/editor/display/print/print.helper.mjs +40 -0
  121. package/esm2022/lib/editor/display/print/print.renderer.mjs +67 -0
  122. package/esm2022/lib/editor/display/print/print.rendering.helper.mjs +7 -0
  123. package/esm2022/lib/editor/display/render-changes.interface.mjs +2 -0
  124. package/esm2022/lib/editor/display/render-changes.model.mjs +25 -0
  125. package/esm2022/lib/editor/display/renderer.mjs +206 -0
  126. package/esm2022/lib/editor/display/rendering.helper.mjs +185 -0
  127. package/esm2022/lib/editor/display/renderloop.mjs +26 -0
  128. package/esm2022/lib/editor/display/virtual.renderer.mjs +317 -0
  129. package/esm2022/lib/editor/display/visible-range.interface.mjs +2 -0
  130. package/esm2022/lib/editor/editor.module.mjs +67 -0
  131. package/esm2022/lib/editor/execution/distance.model.mjs +10 -0
  132. package/esm2022/lib/editor/execution/edit.session.mjs +561 -0
  133. package/esm2022/lib/editor/execution/editor.mjs +1387 -0
  134. package/esm2022/lib/editor/execution/helpers/dom.helper.mjs +42 -0
  135. package/esm2022/lib/editor/execution/helpers/format-style.helper.mjs +32 -0
  136. package/esm2022/lib/editor/execution/helpers/image.helpet.mjs +12 -0
  137. package/esm2022/lib/editor/execution/helpers/page.helper.mjs +12 -0
  138. package/esm2022/lib/editor/execution/helpers/paragraph-style.helper.mjs +41 -0
  139. package/esm2022/lib/editor/execution/helpers/paragraph.helper.mjs +177 -0
  140. package/esm2022/lib/editor/execution/regulator.service.mjs +206 -0
  141. package/esm2022/lib/editor/execution/targeting/cell-session-source.model.mjs +19 -0
  142. package/esm2022/lib/editor/execution/targeting/edge-session-source.model.mjs +15 -0
  143. package/esm2022/lib/editor/execution/targeting/main-session-source.model.mjs +8 -0
  144. package/esm2022/lib/editor/execution/targeting/session-source.model.mjs +3 -0
  145. package/esm2022/lib/editor/execution/targeting/session.model.mjs +10 -0
  146. package/esm2022/lib/editor/gadgets/font-metrics/editor-version.const.mjs +2 -0
  147. package/esm2022/lib/editor/gadgets/font-metrics/font-metric-size.interface.mjs +2 -0
  148. package/esm2022/lib/editor/gadgets/font-metrics/font-metrics.helper.mjs +88 -0
  149. package/esm2022/lib/editor/gadgets/history/operation-history.mjs +206 -0
  150. package/esm2022/lib/editor/gadgets/history/operation.type.mjs +2 -0
  151. package/esm2022/lib/editor/gadgets/history/operations-history-info.model.mjs +7 -0
  152. package/esm2022/lib/editor/gadgets/numbering/numbering-data.model.mjs +9 -0
  153. package/esm2022/lib/{+shared/editor/core/enums → editor/gadgets/numbering}/numbering-marker-type.enum.mjs +1 -1
  154. package/esm2022/lib/editor/gadgets/numbering/numbering-paragraph-style.model.mjs +13 -0
  155. package/esm2022/lib/editor/gadgets/numbering/numbering.helper.mjs +149 -0
  156. package/esm2022/lib/editor/gadgets/page-break/break-types.enum.mjs +7 -0
  157. package/esm2022/lib/editor/gadgets/page-break/break.helper.mjs +18 -0
  158. package/esm2022/lib/editor/gadgets/scrollbar.mjs +81 -0
  159. package/esm2022/lib/editor/gadgets/search/replace.interface.mjs +2 -0
  160. package/esm2022/lib/editor/gadgets/search/search-iteration.interface.mjs +2 -0
  161. package/esm2022/lib/editor/gadgets/search/search.mjs +231 -0
  162. package/esm2022/lib/editor/gadgets/unicode/unicode-chars.const.mjs +5 -0
  163. package/esm2022/lib/editor/gadgets/unicode/unicode.helper.mjs +20 -0
  164. package/esm2022/lib/editor/interaction/base.handler.mjs +19 -0
  165. package/esm2022/lib/editor/interaction/document.handler.mjs +27 -0
  166. package/esm2022/lib/editor/interaction/editor.service.mjs +346 -0
  167. package/esm2022/lib/editor/interaction/input.handler.mjs +152 -0
  168. package/esm2022/lib/{+shared/enums → editor/interaction}/mode.enum.mjs +1 -1
  169. package/esm2022/lib/editor/interaction/mouse-button.enum.mjs +7 -0
  170. package/esm2022/lib/editor/interaction/mouse.handler.mjs +50 -0
  171. package/esm2022/lib/editor/interaction/text-input.mjs +53 -0
  172. package/esm2022/lib/editor/operations/commands.service.mjs +20 -0
  173. package/esm2022/lib/editor/operations/enums/command-type.enum.mjs +32 -0
  174. package/esm2022/lib/editor/operations/enums/target-type.enum.mjs +7 -0
  175. package/esm2022/lib/editor/operations/helpers/break-operations.helper.mjs +9 -0
  176. package/esm2022/lib/editor/operations/helpers/content-operations.helper.mjs +15 -0
  177. package/esm2022/lib/editor/operations/helpers/format-operations.helper.mjs +85 -0
  178. package/esm2022/lib/editor/operations/helpers/image-operations.helper.mjs +19 -0
  179. package/esm2022/lib/editor/operations/helpers/indexed-element-operations.helper.mjs +43 -0
  180. package/esm2022/lib/editor/operations/helpers/link-operations.helper.mjs +63 -0
  181. package/esm2022/lib/editor/operations/helpers/numbering-operations.helper.mjs +55 -0
  182. package/esm2022/lib/editor/operations/helpers/paragraph-operations.helper.mjs +114 -0
  183. package/esm2022/lib/editor/operations/helpers/tab-operations.helper.mjs +16 -0
  184. package/esm2022/lib/editor/operations/helpers/table-operations.helper.mjs +374 -0
  185. package/esm2022/lib/editor/operations/operations-helper.helper.mjs +431 -0
  186. package/esm2022/lib/editor/operations/save-commands.helper.mjs +127 -0
  187. package/esm2022/lib/editor/operations/target-operations.helper.mjs +23 -0
  188. package/esm2022/lib/editor/positioning/alignments.const.mjs +8 -0
  189. package/esm2022/lib/editor/positioning/content.helper.mjs +36 -0
  190. package/esm2022/lib/editor/positioning/cursor-paragraph.mjs +13 -0
  191. package/esm2022/lib/editor/positioning/cursor-position.interface.mjs +2 -0
  192. package/esm2022/lib/editor/positioning/insert-index.interface.mjs +2 -0
  193. package/esm2022/lib/editor/positioning/line-width.helper.mjs +13 -0
  194. package/esm2022/lib/editor/positioning/position.helper.mjs +196 -0
  195. package/esm2022/lib/editor/positioning/range.mjs +94 -0
  196. package/esm2022/lib/editor/positioning/selection.mjs +317 -0
  197. package/esm2022/lib/editor/revision.helper.mjs +92 -0
  198. package/esm2022/lib/models/generated/cell.model.mjs +1 -1
  199. package/esm2022/lib/models/generated/command.model.mjs +5 -1
  200. package/esm2022/lib/models/generated/insert-paragraph.model.mjs +20 -0
  201. package/esm2022/lib/models/generated/replace.model.mjs +5 -1
  202. package/esm2022/public-api.mjs +37 -31
  203. package/fesm2022/talrace-ngx-noder.mjs +8169 -7285
  204. package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
  205. package/lib/apart-components/add-link-dialog/add-link-dialog.component.d.ts +26 -0
  206. package/lib/apart-components/add-link-dialog/validation.helper.d.ts +5 -0
  207. package/lib/apart-components/add-link-mobile/add-link-mobile.component.d.ts +19 -0
  208. package/lib/{+shared → apart-components}/confirm-dialog/confirm-dialog.component.d.ts +2 -1
  209. package/lib/{+shared → apart-components}/editor-search/editor-search-dialog.component.d.ts +6 -7
  210. package/lib/apart-components/editor-title/editor-title.component.d.ts +25 -0
  211. package/lib/apart-components/editor-title-mobile/editor-title-mobile.component.d.ts +6 -0
  212. package/lib/apart-components/editor-toolbar/components/base-toolbar.component.d.ts +49 -0
  213. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/color-picker/color-picker.component.d.ts +1 -1
  214. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/font/font.component.d.ts +2 -2
  215. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/font-size/font-size.component.d.ts +1 -1
  216. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/font-style/font-style.component.d.ts +1 -1
  217. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/format/format.component.d.ts +2 -2
  218. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/heading/heading.component.d.ts +1 -1
  219. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/numbering/numbering.component.d.ts +3 -3
  220. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/print/print.component.d.ts +1 -1
  221. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/undo-redo/undo-redo.component.d.ts +1 -1
  222. package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/components/buttons}/zoom/zoom.component.d.ts +1 -1
  223. package/lib/apart-components/editor-toolbar/components/menu-dropdowns/menu-dropdowns.component.d.ts +36 -0
  224. package/lib/apart-components/editor-toolbar/components/menu-dropdowns-mobile/menu-dropdowns-mobile.component.d.ts +14 -0
  225. package/lib/apart-components/editor-toolbar/components/toolbar-actions/toolbar-actions.component.d.ts +23 -0
  226. package/lib/apart-components/editor-toolbar/editor-mobile-toolbar/editor-mobile-toolbar.component.d.ts +26 -0
  227. package/lib/apart-components/editor-toolbar/editor-toolbar/editor-toolbar.component.d.ts +40 -0
  228. package/lib/apart-components/editor-toolbar/editor-toolbar.module.d.ts +32 -0
  229. package/lib/apart-components/editor-toolbar/shared/constants/editor-toolbar-modes.const.d.ts +2 -0
  230. package/lib/apart-components/editor-toolbar/shared/constants/numbering-templates.const.d.ts +6 -0
  231. package/lib/apart-components/editor-toolbar/shared/enums/editor-toolbar-mode.enum.d.ts +9 -0
  232. package/lib/apart-components/editor-toolbar/shared/services/editor-toolbar.service.d.ts +14 -0
  233. package/lib/apart-components/editor-toolbar/shared/services/toolbar-core.service.d.ts +38 -0
  234. package/lib/apart-components/editor-toolbar/shared/toolbar-styles.helper.d.ts +4 -0
  235. package/lib/{+shared → apart-components}/insert-table/insert-table.component.d.ts +1 -1
  236. package/lib/apart-components/insert-table-mobile/insert-table-mobile.component.d.ts +30 -0
  237. package/lib/apart-components/text-format-mobile/text-format-mobile.component.d.ts +35 -0
  238. package/lib/{+shared/editor/core/models → editor/components/edges}/edge-element.model.d.ts +1 -1
  239. package/lib/editor/components/edges/edge.component.d.ts +44 -0
  240. package/lib/{+shared/editor/core → editor}/components/edges/edges.d.ts +7 -7
  241. package/lib/{+shared/editor → editor/components}/editor.component.d.ts +11 -11
  242. package/lib/{+shared/editor/custom-components → editor/components}/external-element/external-sidenav.interface.d.ts +1 -1
  243. package/lib/{+shared/editor/custom-components → editor/components}/external-element/external.component.d.ts +4 -4
  244. package/lib/{+shared/editor/custom-components → editor/components}/external-element/models/external-element.model.d.ts +2 -1
  245. package/lib/{+shared/editor/custom-components → editor/components}/image/components/image.component.d.ts +4 -4
  246. package/lib/editor/components/image/image-api.service.d.ts +17 -0
  247. package/lib/{+shared/editor/custom-components → editor/components}/image/input-handler/image-input.handler.d.ts +3 -0
  248. package/lib/{+shared/editor/custom-components → editor/components}/image/resizer/resizer.component.d.ts +2 -2
  249. package/lib/{+shared/editor/custom-components → editor/components}/image/resizer/size-wrapper.d.ts +1 -1
  250. package/lib/{+shared/editor/custom-components → editor/components}/shared/abstract/base.component.d.ts +6 -4
  251. package/lib/editor/components/shared/abstract/destroy.component.d.ts +9 -0
  252. package/lib/{+shared/editor/custom-components/shared/helpers → editor/components/shared}/custom-component.hepler.d.ts +3 -3
  253. package/lib/editor/components/shared/custom-components.interface.d.ts +13 -0
  254. package/lib/editor/components/shared/custom-content.d.ts +5 -0
  255. package/lib/{+shared/editor/custom-components/shared/services/component → editor/components/shared/services}/component.service.d.ts +1 -1
  256. package/lib/{+shared/editor/custom-components/shared/services/custom-content → editor/components/shared/services}/custom-content.service.d.ts +14 -13
  257. package/lib/{+shared/editor/custom-components → editor/components}/tab/tab.component.d.ts +2 -2
  258. package/lib/{+shared/editor/custom-components → editor/components}/table/cell-resizer/cell-resizer.d.ts +2 -1
  259. package/lib/editor/components/table/components/table-cell.component.d.ts +45 -0
  260. package/lib/{+shared/editor/custom-components → editor/components}/table/components/table.component.d.ts +27 -11
  261. package/lib/{+shared/editor/custom-components → editor/components}/table/models/cell-data.model.d.ts +1 -1
  262. package/lib/{+shared/editor/custom-components → editor/components}/table/overlay-menu/overlay-menu.component.d.ts +2 -2
  263. package/lib/{+shared/editor/custom-components → editor/components}/table/selection/table-selection.d.ts +5 -3
  264. package/lib/{+shared/editor/core → editor/content}/constants/editor.const.d.ts +5 -3
  265. package/lib/editor/content/contents.interface.d.ts +22 -0
  266. package/lib/editor/content/display-data/display-data.d.ts +103 -0
  267. package/lib/{+shared/editor/core/models → editor/content/display-data}/display-token.model.d.ts +1 -1
  268. package/lib/{+shared/editor/core/models → editor/content/display-data}/format-ext.model.d.ts +1 -1
  269. package/lib/editor/content/display-data/general-properties.model.d.ts +13 -0
  270. package/lib/{+shared/editor/core/models → editor/content/display-data}/line-info.model.d.ts +1 -0
  271. package/lib/{+shared/editor/core/layers → editor/content/display-data}/lines.d.ts +1 -1
  272. package/lib/editor/content/display-data/models/paragraph-info.model.d.ts +9 -0
  273. package/lib/{+shared/editor/core/paging → editor/content/display-data}/paragraph.d.ts +9 -5
  274. package/lib/{+shared/editor/core/paging → editor/content/display-data}/text-line-info.d.ts +5 -2
  275. package/lib/{+shared/editor/core/interfaces → editor/content/display-data}/toolbar-styles.interface.d.ts +1 -1
  276. package/lib/editor/content/helpers/content-style.helper.d.ts +10 -0
  277. package/lib/editor/content/helpers/display-token.helper.d.ts +6 -0
  278. package/lib/{+shared/editor → editor/content}/helpers/indexed-element.helper.d.ts +1 -1
  279. package/lib/editor/content/helpers/scaling.helper.d.ts +4 -0
  280. package/lib/{+shared/editor/core/paging → editor/content}/page-vertical-data.model.d.ts +1 -1
  281. package/lib/{+shared/editor/core/base → editor/core}/event-emitting.d.ts +0 -5
  282. package/lib/{+shared/editor/core → editor/display}/layers/cursor.layer.d.ts +7 -8
  283. package/lib/{+shared/editor/core/interfaces → editor/display/layers}/layer.config.d.ts +2 -2
  284. package/lib/{+shared/editor/core → editor/display}/layers/pages.layer.d.ts +5 -6
  285. package/lib/editor/display/layers/print.text.layer.d.ts +4 -0
  286. package/lib/{+shared/editor/core → editor/display}/layers/selection.layer.d.ts +5 -6
  287. package/lib/editor/display/layers/text.layer.d.ts +33 -0
  288. package/lib/{+shared/helpers → editor/display/print}/print.helper.d.ts +3 -3
  289. package/lib/editor/display/print/print.renderer.d.ts +21 -0
  290. package/lib/{+shared/editor/core/helpers → editor/display/print}/print.rendering.helper.d.ts +2 -2
  291. package/lib/{+shared/editor/core/models → editor/display}/render-changes.model.d.ts +1 -1
  292. package/lib/{+shared/editor/core → editor/display}/renderer.d.ts +10 -13
  293. package/lib/{+shared/editor/core/helpers → editor/display}/rendering.helper.d.ts +10 -10
  294. package/lib/{+shared/editor/core/layers → editor/display}/renderloop.d.ts +2 -2
  295. package/lib/{+shared/editor/core → editor/display}/virtual.renderer.d.ts +14 -29
  296. package/lib/editor/editor.module.d.ts +31 -0
  297. package/lib/editor/execution/edit.session.d.ts +113 -0
  298. package/lib/{+shared/editor/core → editor/execution}/editor.d.ts +55 -46
  299. package/lib/{+shared/editor/core → editor/execution}/helpers/format-style.helper.d.ts +1 -5
  300. package/lib/editor/execution/helpers/image.helpet.d.ts +4 -0
  301. package/lib/{+shared/editor/core → editor/execution}/helpers/page.helper.d.ts +1 -1
  302. package/lib/{+shared/editor/core → editor/execution}/helpers/paragraph-style.helper.d.ts +1 -1
  303. package/lib/{+shared/editor/core → editor/execution}/helpers/paragraph.helper.d.ts +14 -8
  304. package/lib/{+shared/editor → editor}/execution/regulator.service.d.ts +16 -15
  305. package/lib/{+shared/editor/execution/models → editor/execution/targeting}/cell-session-source.model.d.ts +3 -3
  306. package/lib/{+shared/editor/execution/models → editor/execution/targeting}/edge-session-source.model.d.ts +3 -3
  307. package/lib/{+shared/editor/execution/models → editor/execution/targeting}/main-session-source.model.d.ts +1 -1
  308. package/lib/{+shared/editor/execution/models → editor/execution/targeting}/session-source.model.d.ts +1 -1
  309. package/lib/{+shared/editor/execution/models → editor/execution/targeting}/session.model.d.ts +3 -3
  310. package/lib/{+shared/editor/core/helpers → editor/gadgets/font-metrics}/font-metrics.helper.d.ts +1 -1
  311. package/lib/{+shared/editor/operation-history → editor/gadgets/history}/operation-history.d.ts +9 -7
  312. package/lib/{+shared/editor/operation-history → editor/gadgets/history}/operation.type.d.ts +2 -1
  313. package/lib/{+shared/editor/core/models → editor/gadgets/numbering}/numbering-data.model.d.ts +1 -1
  314. package/lib/editor/gadgets/numbering/numbering-paragraph-style.model.d.ts +6 -0
  315. package/lib/editor/gadgets/numbering/numbering.helper.d.ts +26 -0
  316. package/lib/{+shared/editor/helpers → editor/gadgets/page-break}/break.helper.d.ts +2 -2
  317. package/lib/{+shared/editor/core/layers → editor/gadgets}/scrollbar.d.ts +9 -18
  318. package/lib/{+shared/editor/core → editor/gadgets/search}/search.d.ts +4 -4
  319. package/lib/editor/interaction/base.handler.d.ts +9 -0
  320. package/lib/editor/interaction/document.handler.d.ts +10 -0
  321. package/lib/{+shared/editor → editor}/interaction/editor.service.d.ts +36 -21
  322. package/lib/{+shared/editor → editor}/interaction/input.handler.d.ts +4 -5
  323. package/lib/{+shared/editor → editor}/interaction/mouse.handler.d.ts +1 -1
  324. package/lib/{+shared/editor → editor}/operations/enums/command-type.enum.d.ts +11 -10
  325. package/lib/{+shared/editor → editor}/operations/helpers/break-operations.helper.d.ts +2 -2
  326. package/lib/{+shared/editor → editor}/operations/helpers/format-operations.helper.d.ts +2 -2
  327. package/lib/editor/operations/helpers/image-operations.helper.d.ts +7 -0
  328. package/lib/{+shared/editor → editor}/operations/helpers/indexed-element-operations.helper.d.ts +1 -1
  329. package/lib/editor/operations/helpers/link-operations.helper.d.ts +8 -0
  330. package/lib/{+shared/editor → editor}/operations/helpers/numbering-operations.helper.d.ts +3 -3
  331. package/lib/{+shared/editor → editor}/operations/helpers/paragraph-operations.helper.d.ts +3 -2
  332. package/lib/{+shared/editor → editor}/operations/helpers/tab-operations.helper.d.ts +1 -1
  333. package/lib/{+shared/editor → editor}/operations/helpers/table-operations.helper.d.ts +6 -6
  334. package/lib/{+shared/editor/operations/helpers → editor/operations}/operations-helper.helper.d.ts +21 -19
  335. package/lib/{+shared/editor/operations/helpers → editor/operations}/save-commands.helper.d.ts +28 -22
  336. package/lib/editor/operations/target-operations.helper.d.ts +6 -0
  337. package/lib/editor/positioning/content.helper.d.ts +15 -0
  338. package/lib/editor/positioning/cursor-paragraph.d.ts +7 -0
  339. package/lib/{+shared/editor/core/interfaces → editor/positioning}/cursor-position.interface.d.ts +1 -1
  340. package/lib/{+shared/editor/core/helpers → editor/positioning}/line-width.helper.d.ts +2 -2
  341. package/lib/{+shared/editor/core/helpers → editor/positioning}/position.helper.d.ts +11 -11
  342. package/lib/{+shared/editor/core → editor/positioning}/range.d.ts +12 -12
  343. package/lib/{+shared/editor → editor}/positioning/selection.d.ts +13 -10
  344. package/lib/editor/revision.helper.d.ts +15 -0
  345. package/lib/models/generated/cell.model.d.ts +1 -0
  346. package/lib/models/generated/command.model.d.ts +2 -0
  347. package/lib/models/generated/insert-paragraph.model.d.ts +10 -0
  348. package/lib/models/generated/replace.model.d.ts +2 -0
  349. package/package.json +1 -1
  350. package/public-api.d.ts +36 -30
  351. package/src/_ngx-noder.theme.scss +49 -13
  352. package/src/assets/fonts/nc-iconfont.css +112 -106
  353. package/src/assets/fonts/nc-iconfont.eot +0 -0
  354. package/src/assets/fonts/nc-iconfont.svg +4 -1
  355. package/src/assets/fonts/nc-iconfont.ttf +0 -0
  356. package/src/assets/fonts/nc-iconfont.woff +0 -0
  357. package/src/lib/{+shared → apart-components}/add-link-dialog/_add-link-dialog.theme.scss +4 -4
  358. package/src/lib/apart-components/add-link-mobile/_add-link-mobile.theme.scss +25 -0
  359. package/src/lib/apart-components/confirm-dialog/_theme.scss +30 -0
  360. package/src/lib/apart-components/editor-title/_editor-title.theme.scss +28 -0
  361. package/src/lib/apart-components/editor-title-mobile/_editor-title-mobile.theme.scss +42 -0
  362. package/src/lib/apart-components/editor-toolbar/_editor-toolbar.theme.scss +27 -0
  363. package/src/lib/apart-components/editor-toolbar/_theme.scss +25 -0
  364. package/src/lib/apart-components/editor-toolbar/components/buttons/color-picker/_color-picker.theme.scss +12 -0
  365. package/src/lib/apart-components/editor-toolbar/components/buttons/font/_font.theme.scss +12 -0
  366. package/src/lib/apart-components/editor-toolbar/components/buttons/font-size/_font-size.theme.scss +14 -0
  367. package/src/lib/apart-components/editor-toolbar/components/buttons/font-style/_font-style.theme.scss +21 -0
  368. package/src/lib/apart-components/editor-toolbar/components/buttons/format/_format.theme.scss +21 -0
  369. package/src/lib/apart-components/editor-toolbar/components/buttons/numbering/_numbering.theme.scss +70 -0
  370. package/src/lib/apart-components/editor-toolbar/components/buttons/undo-redo/_undo-redo.theme.scss +16 -0
  371. package/src/lib/apart-components/editor-toolbar/components/menu-dropdowns/_menu-dropdowns.theme.scss +26 -0
  372. package/src/lib/apart-components/editor-toolbar/components/menu-dropdowns-mobile/_menu-dropdowns-mobile.theme.scss +33 -0
  373. package/src/lib/apart-components/editor-toolbar/components/toolbar-actions/_toolbar-actions.theme.scss +22 -0
  374. package/src/lib/{+shared → apart-components}/insert-table/_insert-table.theme.scss +10 -7
  375. package/src/lib/apart-components/insert-table-mobile/_insert-table-mobile.theme.scss +54 -0
  376. package/src/lib/apart-components/text-format-mobile/_text-format-mobile.theme.scss +86 -0
  377. package/src/lib/editor/_theme.scss +5 -0
  378. package/src/lib/editor/components/_editor.theme.scss +112 -0
  379. package/src/scss/_fonts.scss +3 -0
  380. package/src/scss/base-editor.scss +329 -0
  381. package/src/styles.scss +3 -58
  382. package/esm2022/lib/+shared/abstract/base-api.service.mjs +0 -99
  383. package/esm2022/lib/+shared/abstract/observer.component.mjs +0 -24
  384. package/esm2022/lib/+shared/confirm-dialog/confirm-dialog.component.mjs +0 -28
  385. package/esm2022/lib/+shared/constants/default-file-name.const.mjs +0 -2
  386. package/esm2022/lib/+shared/constants/paginator-sizes.const.mjs +0 -3
  387. package/esm2022/lib/+shared/editor/core/base/event-emitting.mjs +0 -71
  388. package/esm2022/lib/+shared/editor/core/components/edges/edge-type.enum.mjs +0 -6
  389. package/esm2022/lib/+shared/editor/core/components/edges/edge.component.mjs +0 -100
  390. package/esm2022/lib/+shared/editor/core/components/edges/edges.mjs +0 -104
  391. package/esm2022/lib/+shared/editor/core/constants/alignments.const.mjs +0 -8
  392. package/esm2022/lib/+shared/editor/core/constants/clipboardEventTypes.const.mjs +0 -6
  393. package/esm2022/lib/+shared/editor/core/constants/content-style-change.const.mjs +0 -15
  394. package/esm2022/lib/+shared/editor/core/constants/display-values.const.mjs +0 -8
  395. package/esm2022/lib/+shared/editor/core/constants/document-info.const.mjs +0 -13
  396. package/esm2022/lib/+shared/editor/core/constants/editor-version.const.mjs +0 -2
  397. package/esm2022/lib/+shared/editor/core/constants/editor.const.mjs +0 -62
  398. package/esm2022/lib/+shared/editor/core/constants/unicode-chars.const.mjs +0 -5
  399. package/esm2022/lib/+shared/editor/core/document.mjs +0 -134
  400. package/esm2022/lib/+shared/editor/core/edit.session.mjs +0 -1102
  401. package/esm2022/lib/+shared/editor/core/editor.mjs +0 -1279
  402. package/esm2022/lib/+shared/editor/core/enums/break-types.enum.mjs +0 -7
  403. package/esm2022/lib/+shared/editor/core/enums/mouse-button.enum.mjs +0 -7
  404. package/esm2022/lib/+shared/editor/core/enums/page-type.enum.mjs +0 -7
  405. package/esm2022/lib/+shared/editor/core/helpers/content-style.helper.mjs +0 -156
  406. package/esm2022/lib/+shared/editor/core/helpers/delta.helper.mjs +0 -18
  407. package/esm2022/lib/+shared/editor/core/helpers/dom.helper.mjs +0 -42
  408. package/esm2022/lib/+shared/editor/core/helpers/event.helper.mjs +0 -18
  409. package/esm2022/lib/+shared/editor/core/helpers/font-metrics.helper.mjs +0 -88
  410. package/esm2022/lib/+shared/editor/core/helpers/format-style.helper.mjs +0 -72
  411. package/esm2022/lib/+shared/editor/core/helpers/line-width.helper.mjs +0 -13
  412. package/esm2022/lib/+shared/editor/core/helpers/numbering.helper.mjs +0 -83
  413. package/esm2022/lib/+shared/editor/core/helpers/page.helper.mjs +0 -12
  414. package/esm2022/lib/+shared/editor/core/helpers/paragraph-style.helper.mjs +0 -41
  415. package/esm2022/lib/+shared/editor/core/helpers/paragraph.helper.mjs +0 -132
  416. package/esm2022/lib/+shared/editor/core/helpers/position.helper.mjs +0 -191
  417. package/esm2022/lib/+shared/editor/core/helpers/print.rendering.helper.mjs +0 -7
  418. package/esm2022/lib/+shared/editor/core/helpers/rendering.helper.mjs +0 -186
  419. package/esm2022/lib/+shared/editor/core/helpers/unicode.helper.mjs +0 -20
  420. package/esm2022/lib/+shared/editor/core/interfaces/cell.interface.mjs +0 -2
  421. package/esm2022/lib/+shared/editor/core/interfaces/cursor-position.interface.mjs +0 -2
  422. package/esm2022/lib/+shared/editor/core/interfaces/font-metric-size.interface.mjs +0 -2
  423. package/esm2022/lib/+shared/editor/core/interfaces/layer.config.mjs +0 -2
  424. package/esm2022/lib/+shared/editor/core/interfaces/paragraph-info.interface.mjs +0 -2
  425. package/esm2022/lib/+shared/editor/core/interfaces/render-changes.interface.mjs +0 -2
  426. package/esm2022/lib/+shared/editor/core/interfaces/replace.interface.mjs +0 -2
  427. package/esm2022/lib/+shared/editor/core/interfaces/search-iteration.interface.mjs +0 -2
  428. package/esm2022/lib/+shared/editor/core/interfaces/toolbar-styles.interface.mjs +0 -2
  429. package/esm2022/lib/+shared/editor/core/interfaces/visible-line-info.interface.mjs +0 -2
  430. package/esm2022/lib/+shared/editor/core/interfaces/visible-range.interface.mjs +0 -2
  431. package/esm2022/lib/+shared/editor/core/keyboard/text-input.mjs +0 -53
  432. package/esm2022/lib/+shared/editor/core/layers/cursor.layer.mjs +0 -103
  433. package/esm2022/lib/+shared/editor/core/layers/edges.layer.mjs +0 -99
  434. package/esm2022/lib/+shared/editor/core/layers/lines.mjs +0 -96
  435. package/esm2022/lib/+shared/editor/core/layers/pages.layer.mjs +0 -106
  436. package/esm2022/lib/+shared/editor/core/layers/print.edges.layer.mjs +0 -7
  437. package/esm2022/lib/+shared/editor/core/layers/print.pages.layer.mjs +0 -7
  438. package/esm2022/lib/+shared/editor/core/layers/print.text.layer.mjs +0 -7
  439. package/esm2022/lib/+shared/editor/core/layers/renderloop.mjs +0 -26
  440. package/esm2022/lib/+shared/editor/core/layers/scrollbar.mjs +0 -100
  441. package/esm2022/lib/+shared/editor/core/layers/selection.layer.mjs +0 -115
  442. package/esm2022/lib/+shared/editor/core/layers/text.layer.mjs +0 -124
  443. package/esm2022/lib/+shared/editor/core/models/display-token.model.mjs +0 -12
  444. package/esm2022/lib/+shared/editor/core/models/distance.model.mjs +0 -10
  445. package/esm2022/lib/+shared/editor/core/models/edge-element.model.mjs +0 -9
  446. package/esm2022/lib/+shared/editor/core/models/format-ext.model.mjs +0 -10
  447. package/esm2022/lib/+shared/editor/core/models/indent.model.mjs +0 -9
  448. package/esm2022/lib/+shared/editor/core/models/line-info.model.mjs +0 -9
  449. package/esm2022/lib/+shared/editor/core/models/margin.model.mjs +0 -16
  450. package/esm2022/lib/+shared/editor/core/models/numbering-data.model.mjs +0 -9
  451. package/esm2022/lib/+shared/editor/core/models/render-changes.model.mjs +0 -25
  452. package/esm2022/lib/+shared/editor/core/paging/page-vertical-data.model.mjs +0 -9
  453. package/esm2022/lib/+shared/editor/core/paging/pages.wrap.mjs +0 -219
  454. package/esm2022/lib/+shared/editor/core/paging/paragraph.mjs +0 -52
  455. package/esm2022/lib/+shared/editor/core/paging/text-line-info.mjs +0 -34
  456. package/esm2022/lib/+shared/editor/core/point.mjs +0 -13
  457. package/esm2022/lib/+shared/editor/core/print.renderer.mjs +0 -72
  458. package/esm2022/lib/+shared/editor/core/range.mjs +0 -94
  459. package/esm2022/lib/+shared/editor/core/renderer.mjs +0 -217
  460. package/esm2022/lib/+shared/editor/core/search.mjs +0 -231
  461. package/esm2022/lib/+shared/editor/core/virtual.renderer.mjs +0 -356
  462. package/esm2022/lib/+shared/editor/custom-components/external-element/element-toolbar/element-toolbar.component.mjs +0 -35
  463. package/esm2022/lib/+shared/editor/custom-components/external-element/external-element.service.mjs +0 -6
  464. package/esm2022/lib/+shared/editor/custom-components/external-element/external-elements.const.mjs +0 -4
  465. package/esm2022/lib/+shared/editor/custom-components/external-element/external-sidenav.interface.mjs +0 -2
  466. package/esm2022/lib/+shared/editor/custom-components/external-element/external.component.mjs +0 -41
  467. package/esm2022/lib/+shared/editor/custom-components/external-element/models/element-data.model.mjs +0 -9
  468. package/esm2022/lib/+shared/editor/custom-components/external-element/models/external-element.model.mjs +0 -10
  469. package/esm2022/lib/+shared/editor/custom-components/external-element/models/external-sidenav.model.mjs +0 -15
  470. package/esm2022/lib/+shared/editor/custom-components/image/components/image.component.mjs +0 -87
  471. package/esm2022/lib/+shared/editor/custom-components/image/input-handler/image-input.handler.mjs +0 -38
  472. package/esm2022/lib/+shared/editor/custom-components/image/interfaces/size.mjs +0 -2
  473. package/esm2022/lib/+shared/editor/custom-components/image/resizer/coordinate.mjs +0 -2
  474. package/esm2022/lib/+shared/editor/custom-components/image/resizer/direction-wrapper.mjs +0 -19
  475. package/esm2022/lib/+shared/editor/custom-components/image/resizer/direction.enum.mjs +0 -12
  476. package/esm2022/lib/+shared/editor/custom-components/image/resizer/resizer.component.mjs +0 -106
  477. package/esm2022/lib/+shared/editor/custom-components/image/resizer/size-delta.mjs +0 -2
  478. package/esm2022/lib/+shared/editor/custom-components/image/resizer/size-wrapper.mjs +0 -52
  479. package/esm2022/lib/+shared/editor/custom-components/image/services/image-api.service.mjs +0 -14
  480. package/esm2022/lib/+shared/editor/custom-components/shared/abstract/base.component.mjs +0 -57
  481. package/esm2022/lib/+shared/editor/custom-components/shared/constants/custom-content-markers.const.mjs +0 -3
  482. package/esm2022/lib/+shared/editor/custom-components/shared/helpers/custom-component.hepler.mjs +0 -43
  483. package/esm2022/lib/+shared/editor/custom-components/shared/interfaces/custom-components.interface.mjs +0 -2
  484. package/esm2022/lib/+shared/editor/custom-components/shared/services/component/component.service.mjs +0 -64
  485. package/esm2022/lib/+shared/editor/custom-components/shared/services/custom-content/custom-content.service.mjs +0 -120
  486. package/esm2022/lib/+shared/editor/custom-components/shared/services/overlay/overlay.service.mjs +0 -55
  487. package/esm2022/lib/+shared/editor/custom-components/shared/types/custom-content.mjs +0 -2
  488. package/esm2022/lib/+shared/editor/custom-components/tab/tab.component.mjs +0 -43
  489. package/esm2022/lib/+shared/editor/custom-components/table/cell-resizer/cell-resizer.mjs +0 -118
  490. package/esm2022/lib/+shared/editor/custom-components/table/components/table-cell.component.mjs +0 -95
  491. package/esm2022/lib/+shared/editor/custom-components/table/components/table.component.mjs +0 -293
  492. package/esm2022/lib/+shared/editor/custom-components/table/enums/reisizer-side.enum.mjs +0 -8
  493. package/esm2022/lib/+shared/editor/custom-components/table/enums/vertical-merge.enum.mjs +0 -6
  494. package/esm2022/lib/+shared/editor/custom-components/table/models/cell-data.model.mjs +0 -18
  495. package/esm2022/lib/+shared/editor/custom-components/table/models/cell-resizer-parameters.model.mjs +0 -9
  496. package/esm2022/lib/+shared/editor/custom-components/table/models/row-data.model.mjs +0 -8
  497. package/esm2022/lib/+shared/editor/custom-components/table/models/selection-range.model.mjs +0 -7
  498. package/esm2022/lib/+shared/editor/custom-components/table/overlay-menu/overlay-menu.component.mjs +0 -74
  499. package/esm2022/lib/+shared/editor/custom-components/table/selection/table-selection.mjs +0 -358
  500. package/esm2022/lib/+shared/editor/editor.component.mjs +0 -103
  501. package/esm2022/lib/+shared/editor/editor.module.mjs +0 -85
  502. package/esm2022/lib/+shared/editor/execution/models/cell-session-source.model.mjs +0 -19
  503. package/esm2022/lib/+shared/editor/execution/models/edge-session-source.model.mjs +0 -15
  504. package/esm2022/lib/+shared/editor/execution/models/general-properties.model.mjs +0 -11
  505. package/esm2022/lib/+shared/editor/execution/models/main-session-source.model.mjs +0 -8
  506. package/esm2022/lib/+shared/editor/execution/models/session-source.model.mjs +0 -3
  507. package/esm2022/lib/+shared/editor/execution/models/session.model.mjs +0 -10
  508. package/esm2022/lib/+shared/editor/execution/regulator.service.mjs +0 -193
  509. package/esm2022/lib/+shared/editor/helpers/break.helper.mjs +0 -18
  510. package/esm2022/lib/+shared/editor/helpers/content.helper.mjs +0 -30
  511. package/esm2022/lib/+shared/editor/helpers/tab.helper.mjs +0 -6
  512. package/esm2022/lib/+shared/editor/interaction/editor.service.mjs +0 -309
  513. package/esm2022/lib/+shared/editor/interaction/input.handler.mjs +0 -160
  514. package/esm2022/lib/+shared/editor/interaction/mouse.handler.mjs +0 -49
  515. package/esm2022/lib/+shared/editor/interfaces/contents.interface.mjs +0 -2
  516. package/esm2022/lib/+shared/editor/interfaces/insert-index.interface.mjs +0 -2
  517. package/esm2022/lib/+shared/editor/operation-history/operation-history.mjs +0 -184
  518. package/esm2022/lib/+shared/editor/operation-history/operation.type.mjs +0 -2
  519. package/esm2022/lib/+shared/editor/operation-history/operations-history-info.model.mjs +0 -7
  520. package/esm2022/lib/+shared/editor/operations/enums/command-type.enum.mjs +0 -31
  521. package/esm2022/lib/+shared/editor/operations/enums/target-type.enum.mjs +0 -7
  522. package/esm2022/lib/+shared/editor/operations/helpers/break-operations.helper.mjs +0 -9
  523. package/esm2022/lib/+shared/editor/operations/helpers/content-operations.helper.mjs +0 -15
  524. package/esm2022/lib/+shared/editor/operations/helpers/format-operations.helper.mjs +0 -56
  525. package/esm2022/lib/+shared/editor/operations/helpers/image-operations.helper.mjs +0 -19
  526. package/esm2022/lib/+shared/editor/operations/helpers/indexed-element-operations.helper.mjs +0 -43
  527. package/esm2022/lib/+shared/editor/operations/helpers/link-operations.helper.mjs +0 -28
  528. package/esm2022/lib/+shared/editor/operations/helpers/numbering-operations.helper.mjs +0 -55
  529. package/esm2022/lib/+shared/editor/operations/helpers/operations-helper.helper.mjs +0 -394
  530. package/esm2022/lib/+shared/editor/operations/helpers/paragraph-operations.helper.mjs +0 -83
  531. package/esm2022/lib/+shared/editor/operations/helpers/save-commands.helper.mjs +0 -118
  532. package/esm2022/lib/+shared/editor/operations/helpers/tab-operations.helper.mjs +0 -16
  533. package/esm2022/lib/+shared/editor/operations/helpers/table-operations.helper.mjs +0 -371
  534. package/esm2022/lib/+shared/editor/operations/helpers/target-operations.helper.mjs +0 -23
  535. package/esm2022/lib/+shared/editor/positioning/selection.mjs +0 -307
  536. package/esm2022/lib/+shared/editor/store/editor.actions.mjs +0 -13
  537. package/esm2022/lib/+shared/editor-header/editor-header.component.mjs +0 -314
  538. package/esm2022/lib/+shared/editor-search/editor-search-dialog.component.mjs +0 -71
  539. package/esm2022/lib/+shared/editor-toolbar/color-picker/color-picker.component.mjs +0 -32
  540. package/esm2022/lib/+shared/editor-toolbar/constants/svg-icons.const.mjs +0 -157
  541. package/esm2022/lib/+shared/editor-toolbar/editor-toolbar.component.mjs +0 -115
  542. package/esm2022/lib/+shared/editor-toolbar/editor-toolbar.module.mjs +0 -107
  543. package/esm2022/lib/+shared/editor-toolbar/enums/alignment.enum.mjs +0 -8
  544. package/esm2022/lib/+shared/editor-toolbar/enums/numbering-type.enum.mjs +0 -6
  545. package/esm2022/lib/+shared/editor-toolbar/font/font.component.mjs +0 -45
  546. package/esm2022/lib/+shared/editor-toolbar/font-size/font-size.component.mjs +0 -85
  547. package/esm2022/lib/+shared/editor-toolbar/font-style/font-style.component.mjs +0 -80
  548. package/esm2022/lib/+shared/editor-toolbar/format/format.component.mjs +0 -28
  549. package/esm2022/lib/+shared/editor-toolbar/heading/heading.component.mjs +0 -23
  550. package/esm2022/lib/+shared/editor-toolbar/helpers/toolbar-styles.helper.mjs +0 -55
  551. package/esm2022/lib/+shared/editor-toolbar/numbering/numbering.component.mjs +0 -53
  552. package/esm2022/lib/+shared/editor-toolbar/print/print.component.mjs +0 -18
  553. package/esm2022/lib/+shared/editor-toolbar/undo-redo/undo-redo.component.mjs +0 -27
  554. package/esm2022/lib/+shared/editor-toolbar/zoom/zoom.component.mjs +0 -74
  555. package/esm2022/lib/+shared/helpers/print.helper.mjs +0 -40
  556. package/esm2022/lib/+shared/insert-table/insert-table.component.mjs +0 -54
  557. package/esm2022/lib/+shared/services/commands.service.mjs +0 -20
  558. package/esm2022/lib/+shared/services/custom-icon.service.mjs +0 -34
  559. package/lib/+shared/abstract/base-api.service.d.ts +0 -23
  560. package/lib/+shared/abstract/observer.component.d.ts +0 -10
  561. package/lib/+shared/constants/default-file-name.const.d.ts +0 -1
  562. package/lib/+shared/constants/paginator-sizes.const.d.ts +0 -2
  563. package/lib/+shared/editor/core/components/edges/edge.component.d.ts +0 -45
  564. package/lib/+shared/editor/core/constants/clipboardEventTypes.const.d.ts +0 -5
  565. package/lib/+shared/editor/core/constants/content-style-change.const.d.ts +0 -14
  566. package/lib/+shared/editor/core/document.d.ts +0 -56
  567. package/lib/+shared/editor/core/edit.session.d.ts +0 -159
  568. package/lib/+shared/editor/core/helpers/content-style.helper.d.ts +0 -16
  569. package/lib/+shared/editor/core/helpers/delta.helper.d.ts +0 -6
  570. package/lib/+shared/editor/core/helpers/numbering.helper.d.ts +0 -19
  571. package/lib/+shared/editor/core/interfaces/visible-line-info.interface.d.ts +0 -5
  572. package/lib/+shared/editor/core/layers/edges.layer.d.ts +0 -24
  573. package/lib/+shared/editor/core/layers/print.edges.layer.d.ts +0 -4
  574. package/lib/+shared/editor/core/layers/print.text.layer.d.ts +0 -5
  575. package/lib/+shared/editor/core/layers/text.layer.d.ts +0 -22
  576. package/lib/+shared/editor/core/paging/pages.wrap.d.ts +0 -41
  577. package/lib/+shared/editor/core/point.d.ts +0 -7
  578. package/lib/+shared/editor/core/print.renderer.d.ts +0 -25
  579. package/lib/+shared/editor/custom-components/external-element/element-toolbar/element-toolbar.component.d.ts +0 -14
  580. package/lib/+shared/editor/custom-components/image/services/image-api.service.d.ts +0 -8
  581. package/lib/+shared/editor/custom-components/shared/interfaces/custom-components.interface.d.ts +0 -13
  582. package/lib/+shared/editor/custom-components/shared/types/custom-content.d.ts +0 -5
  583. package/lib/+shared/editor/custom-components/table/components/table-cell.component.d.ts +0 -45
  584. package/lib/+shared/editor/editor.module.d.ts +0 -30
  585. package/lib/+shared/editor/execution/models/general-properties.model.d.ts +0 -7
  586. package/lib/+shared/editor/helpers/content.helper.d.ts +0 -9
  587. package/lib/+shared/editor/interfaces/contents.interface.d.ts +0 -22
  588. package/lib/+shared/editor/operations/helpers/image-operations.helper.d.ts +0 -7
  589. package/lib/+shared/editor/operations/helpers/link-operations.helper.d.ts +0 -6
  590. package/lib/+shared/editor/operations/helpers/target-operations.helper.d.ts +0 -6
  591. package/lib/+shared/editor/store/editor.actions.d.ts +0 -11
  592. package/lib/+shared/editor-header/editor-header.component.d.ts +0 -101
  593. package/lib/+shared/editor-toolbar/constants/numbering-templates.const.d.ts +0 -6
  594. package/lib/+shared/editor-toolbar/editor-toolbar.component.d.ts +0 -44
  595. package/lib/+shared/editor-toolbar/editor-toolbar.module.d.ts +0 -28
  596. package/lib/+shared/editor-toolbar/helpers/toolbar-styles.helper.d.ts +0 -6
  597. package/src/lib/+shared/editor/_editor.theme.scss +0 -35
  598. package/src/lib/+shared/editor/custom-components/external-element/element-toolbar/_element-toolbar.theme.scss +0 -10
  599. package/src/lib/+shared/editor-header/_editor-header.theme.scss +0 -106
  600. package/src/lib/+shared/editor-toolbar/_editor-toolbar.theme.scss +0 -33
  601. package/src/lib/+shared/editor-toolbar/numbering/_numbering.theme.scss +0 -29
  602. /package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/shared}/constants/svg-icons.const.d.ts +0 -0
  603. /package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/shared}/enums/alignment.enum.d.ts +0 -0
  604. /package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/shared}/enums/numbering-template-type.enum.d.ts +0 -0
  605. /package/lib/{+shared/editor-toolbar → apart-components/editor-toolbar/shared}/enums/numbering-type.enum.d.ts +0 -0
  606. /package/lib/{+shared → apart-components/editor-toolbar/shared}/services/custom-icon.service.d.ts +0 -0
  607. /package/lib/{+shared/editor/core → editor}/components/edges/edge-type.enum.d.ts +0 -0
  608. /package/lib/{+shared/editor/core/enums → editor/components/edges}/page-type.enum.d.ts +0 -0
  609. /package/lib/{+shared/editor/custom-components → editor/components}/external-element/external-element.service.d.ts +0 -0
  610. /package/lib/{+shared/editor/custom-components → editor/components}/external-element/external-elements.const.d.ts +0 -0
  611. /package/lib/{+shared/editor/custom-components → editor/components}/external-element/models/element-data.model.d.ts +0 -0
  612. /package/lib/{+shared/editor/custom-components → editor/components}/external-element/models/external-sidenav.model.d.ts +0 -0
  613. /package/lib/{+shared/editor/custom-components → editor/components}/image/resizer/coordinate.d.ts +0 -0
  614. /package/lib/{+shared/editor/custom-components → editor/components}/image/resizer/direction-wrapper.d.ts +0 -0
  615. /package/lib/{+shared/editor/custom-components → editor/components}/image/resizer/direction.enum.d.ts +0 -0
  616. /package/lib/{+shared/editor/custom-components → editor/components}/image/resizer/size-delta.d.ts +0 -0
  617. /package/lib/{+shared/editor/custom-components/image/interfaces → editor/components/image}/size.d.ts +0 -0
  618. /package/lib/{+shared/editor/custom-components/shared/constants → editor/components/shared}/custom-content-markers.const.d.ts +0 -0
  619. /package/lib/{+shared/editor/custom-components/shared/services/overlay → editor/components/shared/services}/overlay.service.d.ts +0 -0
  620. /package/lib/{+shared/editor/helpers → editor/components/tab}/tab.helper.d.ts +0 -0
  621. /package/lib/{+shared/editor/core → editor/components/table}/enums/hrule.enum.d.ts +0 -0
  622. /package/lib/{+shared/editor/custom-components → editor/components}/table/enums/reisizer-side.enum.d.ts +0 -0
  623. /package/lib/{+shared/editor/custom-components → editor/components}/table/enums/vertical-merge.enum.d.ts +0 -0
  624. /package/lib/{+shared/editor/custom-components → editor/components}/table/models/cell-resizer-parameters.model.d.ts +0 -0
  625. /package/lib/{+shared/editor/custom-components → editor/components}/table/models/row-data.model.d.ts +0 -0
  626. /package/lib/{+shared/editor/custom-components → editor/components}/table/models/selection-range.model.d.ts +0 -0
  627. /package/lib/{+shared/editor/core → editor/content}/constants/display-values.const.d.ts +0 -0
  628. /package/lib/{+shared/editor/core → editor/content}/constants/document-info.const.d.ts +0 -0
  629. /package/lib/{+shared/editor/core/models → editor/content/display-data}/indent.model.d.ts +0 -0
  630. /package/lib/{+shared/editor/core/interfaces → editor/content/display-data}/paragraph-info.interface.d.ts +0 -0
  631. /package/lib/{+shared/editor → editor/content}/helpers/format.helper.d.ts +0 -0
  632. /package/lib/{+shared/editor/core/models → editor/content}/margin.model.d.ts +0 -0
  633. /package/lib/{+shared/editor/core/enums → editor/content}/vertical-alignment.enum.d.ts +0 -0
  634. /package/lib/{+shared/editor/core/interfaces → editor/display}/cell.interface.d.ts +0 -0
  635. /package/lib/{+shared/editor/core/helpers → editor/display}/event.helper.d.ts +0 -0
  636. /package/lib/{+shared/editor/core → editor/display}/layers/print.pages.layer.d.ts +0 -0
  637. /package/lib/{+shared/editor/core/interfaces → editor/display}/render-changes.interface.d.ts +0 -0
  638. /package/lib/{+shared/editor/core/interfaces → editor/display}/visible-range.interface.d.ts +0 -0
  639. /package/lib/{+shared/editor/core/models → editor/execution}/distance.model.d.ts +0 -0
  640. /package/lib/{+shared/editor/core → editor/execution}/helpers/dom.helper.d.ts +0 -0
  641. /package/lib/{+shared/editor/core/constants → editor/gadgets/font-metrics}/editor-version.const.d.ts +0 -0
  642. /package/lib/{+shared/editor/core/interfaces → editor/gadgets/font-metrics}/font-metric-size.interface.d.ts +0 -0
  643. /package/lib/{+shared/editor/operation-history → editor/gadgets/history}/operations-history-info.model.d.ts +0 -0
  644. /package/lib/{+shared/editor/core/enums → editor/gadgets/numbering}/numbering-marker-type.enum.d.ts +0 -0
  645. /package/lib/{+shared/editor/core/enums → editor/gadgets/page-break}/break-types.enum.d.ts +0 -0
  646. /package/lib/{+shared/editor/core/interfaces → editor/gadgets/search}/replace.interface.d.ts +0 -0
  647. /package/lib/{+shared/editor/core/interfaces → editor/gadgets/search}/search-iteration.interface.d.ts +0 -0
  648. /package/lib/{+shared/editor/core/constants → editor/gadgets/unicode}/unicode-chars.const.d.ts +0 -0
  649. /package/lib/{+shared/editor/core/helpers → editor/gadgets/unicode}/unicode.helper.d.ts +0 -0
  650. /package/lib/{+shared/enums → editor/interaction}/mode.enum.d.ts +0 -0
  651. /package/lib/{+shared/editor/core/enums → editor/interaction}/mouse-button.enum.d.ts +0 -0
  652. /package/lib/{+shared/editor/core/keyboard → editor/interaction}/text-input.d.ts +0 -0
  653. /package/lib/{+shared/services → editor/operations}/commands.service.d.ts +0 -0
  654. /package/lib/{+shared/editor → editor}/operations/enums/target-type.enum.d.ts +0 -0
  655. /package/lib/{+shared/editor → editor}/operations/helpers/content-operations.helper.d.ts +0 -0
  656. /package/lib/{+shared/editor/core/constants → editor/positioning}/alignments.const.d.ts +0 -0
  657. /package/lib/{+shared/editor/interfaces → editor/positioning}/insert-index.interface.d.ts +0 -0
@@ -0,0 +1,114 @@
1
+ import { DEFAULT_PARAGRAPH_STYLE } from '../../content/constants/editor.const';
2
+ import { IndexedElementOperationsHelper } from './indexed-element-operations.helper';
3
+ import { ParagraphModel } from '../../../models/generated/paragraph.model';
4
+ import { ParagraphStyleModel } from '../../../models/generated/paragraph-style.model';
5
+ export class ParagraphOperationsHelper {
6
+ static insertContent(paragraphs, text, textIndex) {
7
+ IndexedElementOperationsHelper.insertContent(paragraphs, textIndex, text.length);
8
+ this.insertParagraphsFromText(paragraphs, text, textIndex);
9
+ }
10
+ static replace(paragraphs, text, startIndex, endIndex) {
11
+ IndexedElementOperationsHelper.replaceContent(paragraphs, startIndex, endIndex, text.length);
12
+ this.insertParagraphsFromText(paragraphs, text, startIndex);
13
+ }
14
+ static insertParagraphsFromText(paragraphs, text, textIndex) {
15
+ const parentParagraph = paragraphs.find(x => x.insertIndex >= textIndex);
16
+ const createdParagraphs = [...text.matchAll(/\n/g)].map(x => new ParagraphModel({
17
+ insertIndex: x.index + textIndex,
18
+ paragraphStyle: parentParagraph?.paragraphStyle ?? DEFAULT_PARAGRAPH_STYLE
19
+ }));
20
+ const index = parentParagraph !== null ? paragraphs.findIndex(x => x === parentParagraph) : 0;
21
+ paragraphs.splice(index, 0, ...createdParagraphs);
22
+ }
23
+ static insertParagraphsFromModel(paragraphs, insertIndex) {
24
+ const currentParagraph = paragraphs
25
+ .slice()
26
+ .sort((a, b) => a.insertIndex - b.insertIndex)
27
+ .find(x => x.insertIndex >= insertIndex);
28
+ const previousParagraph = paragraphs
29
+ .slice()
30
+ .sort((a, b) => b.insertIndex - a.insertIndex)
31
+ .find(x => x.insertIndex < currentParagraph.insertIndex);
32
+ const currentParagraphIndex = paragraphs.findIndex(x => x === currentParagraph);
33
+ let createdParagraphs;
34
+ if (insertIndex === 0 || previousParagraph?.insertIndex === insertIndex - 1) {
35
+ createdParagraphs = [new ParagraphModel({ insertIndex, paragraphStyle: DEFAULT_PARAGRAPH_STYLE })];
36
+ IndexedElementOperationsHelper.insertContent(paragraphs, createdParagraphs[0].insertIndex, createdParagraphs.length);
37
+ paragraphs.splice(currentParagraphIndex, 0, ...createdParagraphs);
38
+ }
39
+ else if (currentParagraph.insertIndex === insertIndex) {
40
+ createdParagraphs = [new ParagraphModel({ insertIndex: insertIndex + 1, paragraphStyle: currentParagraph.paragraphStyle })];
41
+ IndexedElementOperationsHelper.insertContent(paragraphs, createdParagraphs[0].insertIndex, createdParagraphs.length);
42
+ paragraphs.splice(currentParagraphIndex + 1, 0, ...createdParagraphs);
43
+ }
44
+ else {
45
+ createdParagraphs = [
46
+ new ParagraphModel({ insertIndex, paragraphStyle: currentParagraph.paragraphStyle }),
47
+ new ParagraphModel({ insertIndex: insertIndex + 1, paragraphStyle: currentParagraph.paragraphStyle })
48
+ ];
49
+ IndexedElementOperationsHelper.insertContent(paragraphs, currentParagraph.insertIndex, createdParagraphs.length);
50
+ paragraphs.splice(currentParagraphIndex, 0, ...createdParagraphs);
51
+ }
52
+ return createdParagraphs;
53
+ }
54
+ static restoreParagraphs(paragraphs, paragraphsToRestore) {
55
+ for (const paragraph of paragraphsToRestore) {
56
+ this.applySingle(paragraphs, paragraph.insertIndex, paragraph.paragraphStyle);
57
+ }
58
+ }
59
+ static restoreNumberingParagraphs(paragraphs, paragraphsToRestore) {
60
+ const oldNumberingIds = [];
61
+ for (const paragraphToRestore of paragraphsToRestore) {
62
+ const paragraph = paragraphs.find(x => x.insertIndex === paragraphToRestore.insertIndex);
63
+ if (paragraph.paragraphStyle.numberingId !== null && !oldNumberingIds.includes(paragraph.paragraphStyle.numberingId)) {
64
+ oldNumberingIds.push(paragraph.paragraphStyle.numberingId);
65
+ }
66
+ paragraph.paragraphStyle = new ParagraphStyleModel({ ...paragraphToRestore.paragraphStyle });
67
+ }
68
+ return oldNumberingIds;
69
+ }
70
+ static applySingle(paragraphs, index, style) {
71
+ const paragraph = paragraphs.find(x => x.insertIndex === index);
72
+ paragraph.paragraphStyle = new ParagraphStyleModel({ ...style });
73
+ }
74
+ static applyNumbering(paragraphs, startIndex, endIndex, numberingId) {
75
+ const oldNumberingIds = [];
76
+ let index = paragraphs.findIndex(x => x.insertIndex >= startIndex);
77
+ while (index < paragraphs.length && paragraphs[index].insertIndex <= endIndex) {
78
+ const paragraphNumberingId = paragraphs[index].paragraphStyle.numberingId;
79
+ if (paragraphNumberingId !== null && !oldNumberingIds.includes(paragraphNumberingId)) {
80
+ oldNumberingIds.push(paragraphNumberingId);
81
+ }
82
+ paragraphs[index].paragraphStyle.numberingId = numberingId;
83
+ if (numberingId === null) {
84
+ paragraphs[index].paragraphStyle.numberingLevel = null;
85
+ }
86
+ else {
87
+ paragraphs[index].paragraphStyle.numberingLevel ??= 0;
88
+ }
89
+ index++;
90
+ }
91
+ return oldNumberingIds;
92
+ }
93
+ static apply(paragraphs, startIndex, endIndex, style) {
94
+ let index = paragraphs.findIndex(x => x.insertIndex >= startIndex);
95
+ for (; index < paragraphs.length && paragraphs[index].insertIndex <= endIndex; index++) {
96
+ this.applyParagraphStyles(paragraphs[index].paragraphStyle, style);
97
+ }
98
+ }
99
+ static applyParagraphStyles(target, value) {
100
+ target.alignment = value.alignment ?? target.alignment;
101
+ target.backgroundColor = value.backgroundColor ?? target.backgroundColor;
102
+ target.headingStyleId = value.headingStyleId ?? target.headingStyleId;
103
+ target.indentFirstLine = value.indentFirstLine ?? target.indentFirstLine;
104
+ target.indentHanging = value.indentHanging ?? target.indentHanging;
105
+ target.indentLeft = value.indentLeft ?? target.indentLeft;
106
+ target.indentRight = value.indentRight ?? target.indentRight;
107
+ target.lineSpacing = value.lineSpacing ?? target.lineSpacing;
108
+ target.numberingId = value.numberingId ?? target.numberingId;
109
+ target.numberingLevel = value.numberingLevel ?? target.numberingLevel;
110
+ target.spaceAfter = value.spaceAfter ?? target.spaceAfter;
111
+ target.spaceBefore = value.spaceBefore ?? target.spaceBefore;
112
+ }
113
+ }
114
+ //# sourceMappingUR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gcGFyYWdyYXBocy5maW5kKHggPT4geC5pbnNlcnRJbmRleCA+PSB0ZXh0SW5kZXgpO1xuICAgICAgICBjb25zdCBjcmVhdGVkUGFyYWdyYXBocyA9IFsuLi50ZXh0Lm1hdGNoQWxsKC9cXG4vZyldLm1hcChcbiAgICAgICAgICAgIHggPT5cbiAgICAgICAgICAgICAgICBuZXcgUGFyYWdyYXBoTW9kZWwoe1xuICAgICAgICAgICAgICAgICAgICBpbnNlcnRJbmRleDogeC5pbmRleCArIHRleHRJbmRleCxcbiAgICAgICAgICAgICAgICAgICAgcGFyYWdyYXBoU3R5bGU6IHBhcmVudFBhcmFncmFwaD8ucGFyYWdyYXBoU3R5bGUgPz8gREVGQVVMVF9QQVJBR1JBUEhfU1RZTEVcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICApO1xuICAgICAgICBjb25zdCBpbmRleCA9IHBhcmVudFBhcmFncmFwaCAhPT0gbnVsbCA/IHBhcmFncmFwaHMuZmluZEluZGV4KHggPT4geCA9PT0gcGFyZW50UGFyYWdyYXBoKSA6IDA7XG4gICAgICAgIHBhcmFncmFwaHMuc3BsaWNlKGluZGV4LCAwLCAuLi5jcmVhdGVkUGFyYWdyYXBocyk7XG4gICAgfVxuXG4gICAgc3RhdGljIGluc2VydFBhcmFncmFwaHNGcm9tTW9kZWwocGFyYWdyYXBoczogUGFyYWdyYXBoTW9kZWxbXSwgaW5zZXJ0SW5kZXg6IG51bWJlcik6IFBhcmFncmFwaE1vZGVsW10ge1xuICAgICAgICBjb25zdCBjdXJyZW50UGFyYWdyYXBoID0gcGFyYWdyYXBoc1xuICAgICAgICAgICAgLnNsaWNlKClcbiAgICAgICAgICAgIC5zb3J0KChhLCBiKSA9PiBhLmluc2VydEluZGV4IC0gYi5pbnNlcnRJbmRleClcbiAgICAgICAgICAgIC5maW5kKHggPT4geC5pbnNlcnRJbmRleCA+PSBpbnNlcnRJbmRleCk7XG4gICAgICAgIGNvbnN0IHByZXZpb3VzUGFyYWdyYX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yZ2V0LmluZGVudFJpZ2h0O1xuICAgICAgICB0YXJnZXQubGluZVNwYWNpbmcgPSB2YWx1ZS5saW5lU3BhY2luZyA/PyB0YXJnZXQubGluZVNwYWNpbmc7XG4gICAgICAgIHRhcmdldC5udW1iZXJpbmdJZCA9IHZhbHVlLm51bWJlcmluZ0lkID8/IHRhcmdldC5udW1iZXJpbmdJZDtcbiAgICAgICAgdGFyZ2V0Lm51bWJlcmluZ0xldmVsID0gdmFsdWUubnVtYmVyaW5nTGV2ZWwgPz8gdGFyZ2V0Lm51bWJlcmluZ0xldmVsO1xuICAgICAgICB0YXJnZXQuc3BhY2VBZnRlciA9IHZhbHVlLnNwYWNlQWZ0ZXIgPz8gdGFyZ2V0LnNwYWNlQWZ0ZXI7XG4gICAgICAgIHRhcmdldC5zcGFjZUJlZm9yZSA9IHZhbHVlLnNwYWNlQmVmb3JlID8/IHRhcmdldC5zcGFjZUJlZm9yZTtcbiAgICB9XG59XG4iXX0=
@@ -0,0 +1,16 @@
1
+ import { IndexedElementOperationsHelper } from './indexed-element-operations.helper';
2
+ import { TabModel } from '../../../models/generated/tab.model';
3
+ export class TabOperationsHelper {
4
+ static insertContent(elements, insertIndex) {
5
+ IndexedElementOperationsHelper.insertContent(elements, insertIndex, 1);
6
+ const element = new TabModel({ insertIndex });
7
+ const index = elements.findIndex(x => x.insertIndex > element.insertIndex);
8
+ if (index < 0) {
9
+ elements.push(element);
10
+ }
11
+ else {
12
+ elements.splice(index, 0, element);
13
+ }
14
+ }
15
+ }
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLW9wZXJhdGlvbnMuaGVscGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LW5vZGVyL3NyYy9saWIvZWRpdG9yL29wZXJhdGlvbnMvaGVscGVycy90YWItb3BlcmF0aW9ucy5oZWxwZXIudHM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