devexpress-richedit 24.1.6-build-24232-0102 → 24.2.1-alpha-24260-0102

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 (273) hide show
  1. package/bin/gulpfile.js +1 -1
  2. package/bin/index-custom.js +1 -1
  3. package/bin/localization-builder.js +1 -1
  4. package/bin/nspell-index.js +1 -1
  5. package/bin/nspell.webpack.config.js +1 -1
  6. package/bin/webpack-externals.js +1 -1
  7. package/bin/webpack.config.js +1 -1
  8. package/dist/dx.richedit.d.ts +1 -1
  9. package/dist/dx.richedit.js +860 -788
  10. package/dist/dx.richedit.min.js +2 -2
  11. package/index.d.ts +1 -1
  12. package/index.js +1 -1
  13. package/lib/client/api/loading-panel.js +3 -3
  14. package/lib/client/bars/rich-edit-ribbon/ribbon-items-data.d.ts +2 -2
  15. package/lib/client/client-rich-edit.d.ts +1 -0
  16. package/lib/client/client-rich-edit.js +15 -11
  17. package/lib/client/commands/open-document-command.d.ts +1 -1
  18. package/lib/client/dialogs/dialog-base.js +3 -3
  19. package/lib/client/document-processor/public/processor.js +3 -3
  20. package/lib/client/formats/docx/export/data.js +5 -5
  21. package/lib/client/formats/docx/export/exporters/base/sections.js +4 -4
  22. package/lib/client/formats/docx/export/exporters/base.js +1 -1
  23. package/lib/client/formats/docx/export/exporters/content-types.js +4 -4
  24. package/lib/client/formats/docx/export/exporters/relations/relation-collection.js +1 -1
  25. package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.d.ts +1 -1
  26. package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.js +3 -3
  27. package/lib/client/formats/docx/export/exporters/sub-document/header-footer-sub-document-exporter.js +1 -1
  28. package/lib/client/formats/docx/import/data.js +2 -2
  29. package/lib/client/formats/docx/import/destination/character-properties/run-properties-base-destination.js +1 -1
  30. package/lib/client/formats/docx/import/destination/destination.d.ts +2 -2
  31. package/lib/client/formats/docx/import/destination/destination.js +7 -7
  32. package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-position-destination.js +9 -9
  33. package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-relative-size-destination.js +6 -6
  34. package/lib/client/formats/docx/import/destination/drawing/drawing-destination.js +38 -38
  35. package/lib/client/formats/docx/import/destination/drawing/non-visual-pucture-properties-destination.js +3 -3
  36. package/lib/client/formats/docx/import/destination/drawing/shape-properties-destination.js +9 -9
  37. package/lib/client/formats/docx/import/destination/notes/note-destination.d.ts +1 -1
  38. package/lib/client/formats/docx/import/destination/notes/note-properties-destination.js +3 -3
  39. package/lib/client/formats/docx/import/destination/numbering/numberings-destination.js +15 -15
  40. package/lib/client/formats/docx/import/destination/paragraph/paragraph-destination.js +3 -3
  41. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-numbering-reference-destination.js +5 -5
  42. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-base-destination.js +3 -3
  43. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-destination.js +7 -7
  44. package/lib/client/formats/docx/import/destination/relationships/relationships-destination.js +3 -3
  45. package/lib/client/formats/docx/import/destination/runs/inline-object-destination.js +3 -3
  46. package/lib/client/formats/docx/import/destination/style/destinations/style-paragraph-properties-destination.js +4 -4
  47. package/lib/client/formats/docx/import/destination/table/cell/properties/table-cell-properties-destination-core.js +3 -3
  48. package/lib/client/formats/docx/import/destination/table/cell/table-cell-destination.js +3 -3
  49. package/lib/client/formats/docx/import/destination/table/row/properties/table-row-properties-destination.js +3 -3
  50. package/lib/client/formats/docx/import/destination/table/row/table-row-destination.js +3 -3
  51. package/lib/client/formats/docx/import/destination/table/table/properties/table-cell-margins-destination.d.ts +1 -1
  52. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination-core.js +3 -3
  53. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination.js +3 -3
  54. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-leaf-element-destination.js +3 -3
  55. package/lib/client/formats/docx/import/destination/table/table/table-destination.js +3 -3
  56. package/lib/client/formats/docx/import/destination/themes/color/drawing-color-properties-destination-base.js +3 -3
  57. package/lib/client/formats/docx/import/destination/themes/font/office-theme-font-collection-scheme-destination.js +7 -7
  58. package/lib/client/formats/docx/import/destination/vml/v-mlshape-destination.js +7 -7
  59. package/lib/client/formats/docx/import/importers/character-importer.js +6 -6
  60. package/lib/client/formats/docx/import/importers/comments-importer.js +1 -1
  61. package/lib/client/formats/docx/import/importers/field-importer.js +2 -2
  62. package/lib/client/formats/docx/import/importers/table-importer.js +1 -1
  63. package/lib/client/formats/docx/import/list/open-xml-list-level-override.js +3 -3
  64. package/lib/client/formats/docx/import/list/open-xml-numbering-list-info.d.ts +1 -1
  65. package/lib/client/formats/docx/utils/constants.js +6 -6
  66. package/lib/client/formats/docx/zip/xml-reader.js +10 -10
  67. package/lib/client/i-rich-constructor-settings.d.ts +3 -1
  68. package/lib/client/model-api/api-utils/parameter-checker.d.ts +1 -1
  69. package/lib/client/model-api/fonts/control-font.js +4 -4
  70. package/lib/client/model-api/images/image-iterator.js +3 -3
  71. package/lib/client/model-api/interval.js +1 -1
  72. package/lib/client/public/api/authentication-options.js +3 -3
  73. package/lib/client/public/api/range-permission-options.js +3 -3
  74. package/lib/client/public/client-events.d.ts +2 -1
  75. package/lib/client/public/client-events.js +3 -1
  76. package/lib/client/public/commands/enum.d.ts +1 -1
  77. package/lib/client/public/context-menu/menu.js +5 -5
  78. package/lib/client/public/events.d.ts +6 -0
  79. package/lib/client/public/events.js +8 -0
  80. package/lib/client/public/nusa/external-types.d.ts +2 -2
  81. package/lib/client/public/nusa/settings.js +1 -1
  82. package/lib/client/public/options.d.ts +2 -0
  83. package/lib/client/public/ribbon/item-ids.d.ts +1 -1
  84. package/lib/client/public/ribbon/tab.d.ts +4 -4
  85. package/lib/client/public/ribbon/tab.js +2 -2
  86. package/lib/client/public/rich-edit.js +1 -1
  87. package/lib/client/ribbon/i-toolbar-item-options.d.ts +1 -1
  88. package/lib/client/ribbon/ribbon.d.ts +3 -3
  89. package/lib/client/ribbon/ribbon.js +1 -1
  90. package/lib/client/ribbon/toolbar-items/toolbar-interactive-item.d.ts +2 -2
  91. package/lib/client/settings.js +4 -0
  92. package/lib/client/utils/devextreme/devextreme-types.d.ts +17 -17
  93. package/lib/client/utils/devextreme/dxt-utils.d.ts +1 -1
  94. package/lib/common/auto-correct/auto-correct-providers.js +1 -1
  95. package/lib/common/bars/base.js +1 -1
  96. package/lib/common/canvas/canvas-manager.js +3 -3
  97. package/lib/common/canvas/canvas-scroll-manager.js +2 -2
  98. package/lib/common/canvas/listeners/anchor-listener.js +3 -3
  99. package/lib/common/canvas/listeners/resize-box-listener.js +5 -5
  100. package/lib/common/canvas/renderes/canvas-listener/canvas-listener.js +1 -1
  101. package/lib/common/canvas/renderes/change-active-sub-document/renderer.js +10 -10
  102. package/lib/common/canvas/renderes/common/document-renderer.d.ts +1 -1
  103. package/lib/common/canvas/renderes/common/document-renderer.js +1 -1
  104. package/lib/common/canvas/renderes/view-manager.js +3 -3
  105. package/lib/common/client-side-events.d.ts +1 -0
  106. package/lib/common/client-side-events.js +3 -0
  107. package/lib/common/commands/command-base.js +10 -10
  108. package/lib/common/commands/command-states.js +3 -3
  109. package/lib/common/commands/dialogs/dialog-spell-checker-command.js +3 -3
  110. package/lib/common/commands/document/print-document-on-client-command.js +4 -4
  111. package/lib/common/commands/fields/open-hyperlink-command.js +6 -2
  112. package/lib/common/commands/ruler/toggle-show-horizontal-ruler-command.js +3 -1
  113. package/lib/common/commands/text/change-text-case-commands.d.ts +1 -1
  114. package/lib/common/event-manager.js +4 -4
  115. package/lib/common/formats/html/export/html-document-exporter.js +1 -1
  116. package/lib/common/formats/html/export/html-export.js +4 -4
  117. package/lib/common/formats/html/import/html-importer.d.ts +1 -1
  118. package/lib/common/formats/html/import/html-importer.js +12 -12
  119. package/lib/common/formats/html/import/html-model-inserter.js +4 -4
  120. package/lib/common/formats/html/import/importers/base.js +1 -1
  121. package/lib/common/formats/html/import/utils/character-properties-utils.js +4 -4
  122. package/lib/common/formats/i-document-importer.d.ts +2 -2
  123. package/lib/common/formats/pdf/exporter.js +3 -3
  124. package/lib/common/formats/pdf/interfaces.d.ts +2 -2
  125. package/lib/common/formats/rtf/export/exporter.js +1 -1
  126. package/lib/common/formats/rtf/export/exporters/rtf-anchored-picture-run-exporter.js +5 -5
  127. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.d.ts +1 -1
  128. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.js +2 -2
  129. package/lib/common/formats/rtf/export/rtf-builder.d.ts +2 -2
  130. package/lib/common/formats/rtf/import/destination/base/destination.d.ts +4 -4
  131. package/lib/common/formats/rtf/import/destination/base/destination.js +1 -1
  132. package/lib/common/formats/rtf/import/destination/base/skip-destination.js +3 -3
  133. package/lib/common/formats/rtf/import/destination/base/string-property-base-destination.js +2 -2
  134. package/lib/common/formats/rtf/import/destination/base/string-property-destination.js +2 -2
  135. package/lib/common/formats/rtf/import/destination/base/unicode-destination.js +2 -2
  136. package/lib/common/formats/rtf/import/destination/fields/field-sub-destination.js +1 -1
  137. package/lib/common/formats/rtf/import/destination/fields/table-content-field-destination.js +1 -1
  138. package/lib/common/formats/rtf/import/destination/font-table-destination.js +3 -3
  139. package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-paragraph-numbering.js +1 -1
  140. package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-section-numbering-level.js +1 -1
  141. package/lib/common/formats/rtf/import/destination/picture/picture-destination.js +4 -4
  142. package/lib/common/formats/rtf/import/destination/shape/shape-properties-destination-base.js +2 -2
  143. package/lib/common/formats/rtf/import/destination/shape/shape-property-destination.js +2 -2
  144. package/lib/common/formats/rtf/import/destination/shape/shape-property-hsv-value-destination.js +2 -2
  145. package/lib/common/formats/rtf/import/destination/styles/character-style-destination.js +5 -5
  146. package/lib/common/formats/rtf/import/destination/styles/style-sheet-destination.js +3 -3
  147. package/lib/common/formats/rtf/import/destination/styles/table-style-destination.js +7 -7
  148. package/lib/common/formats/rtf/import/destination/sub-document/destination-sub-document.js +2 -2
  149. package/lib/common/formats/rtf/import/destination/sub-document/section-header-footer-destination-base.js +1 -1
  150. package/lib/common/formats/rtf/import/importers/character-importer.js +1 -1
  151. package/lib/common/formats/rtf/import/importers/field-importer.js +2 -2
  152. package/lib/common/formats/rtf/import/importers/paragraph-importer.js +4 -4
  153. package/lib/common/formats/rtf/import/importers/range-permission-importer.js +1 -1
  154. package/lib/common/formats/rtf/import/importers/section-importer.js +4 -4
  155. package/lib/common/formats/rtf/import/importers/styles/paragraph-style-importer.js +4 -4
  156. package/lib/common/formats/rtf/import/model/numbering-lists/rtf-old-list-level-info.js +10 -10
  157. package/lib/common/formats/rtf/import/rtf-import-data.js +13 -13
  158. package/lib/common/formats/txt/txt-exporter.js +1 -1
  159. package/lib/common/global-event-dispatcher.d.ts +1 -1
  160. package/lib/common/interfaces/i-control-owner.d.ts +1 -0
  161. package/lib/common/layout/main-structures/layout-boxes/layout-anchored-object-box.d.ts +1 -1
  162. package/lib/common/layout/main-structures/layout-boxes/layout-dash-box.js +1 -1
  163. package/lib/common/layout/main-structures/layout-boxes/layout-line-break-box.js +4 -4
  164. package/lib/common/layout/main-structures/layout-boxes/layout-numbering-list-box.js +10 -10
  165. package/lib/common/layout/main-structures/layout-boxes/layout-page-break-box.js +4 -4
  166. package/lib/common/layout/main-structures/layout-row.js +1 -1
  167. package/lib/common/layout/table/table-cell-iterator.js +6 -6
  168. package/lib/common/layout-engine/hit-test-manager/hit-test-result.d.ts +1 -1
  169. package/lib/common/layout-engine/selection/selection-formatter.js +1 -1
  170. package/lib/common/layout-formatter/box/generator/box-infos-generator.js +3 -3
  171. package/lib/common/layout-formatter/changes/changes/layout-change-base.js +12 -12
  172. package/lib/common/layout-formatter/invalidator/layout-invalidator.js +3 -3
  173. package/lib/common/layout-formatter/managers/formatter-manager.d.ts +1 -1
  174. package/lib/common/layout-formatter/managers/formatter-manager.js +2 -2
  175. package/lib/common/layout-formatter/row/result.js +3 -3
  176. package/lib/common/layout-formatter/row/size-engine/row-formatting-info.js +2 -2
  177. package/lib/common/layout-formatter/row/size-engine/row-height-calculator.js +3 -3
  178. package/lib/common/layout-formatter/row/tab-info.js +8 -8
  179. package/lib/common/layout-formatter/table/borders/border-helper.d.ts +1 -1
  180. package/lib/common/layout-formatter/table/borders/border-helper.js +5 -5
  181. package/lib/common/layout-formatter/table/formatter.js +12 -12
  182. package/lib/common/layout-formatter/table/grid-engine/calculators/column-interval.js +3 -3
  183. package/lib/common/layout-formatter/table/grid-engine/calculators/grid-calculator.js +3 -3
  184. package/lib/common/layout-formatter/table/grid-engine/calculators/table-properties-cache.js +7 -7
  185. package/lib/common/layout-formatter/table/info/cell-info.js +8 -8
  186. package/lib/common/layout-formatter/table/info/row-info.js +1 -1
  187. package/lib/common/layout-formatter/table/info/table-info.js +17 -17
  188. package/lib/common/model/bookmarks.js +7 -7
  189. package/lib/common/model/borders/border-base.js +3 -3
  190. package/lib/common/model/caches/hash-based-cache.d.ts +1 -1
  191. package/lib/common/model/caches/hash-based-cache.js +2 -2
  192. package/lib/common/model/caches/images.js +11 -11
  193. package/lib/common/model/changes/change.d.ts +1 -1
  194. package/lib/common/model/changes/sub-document/list/paragraph-numbering-list-changed.js +1 -1
  195. package/lib/common/model/changes/sub-document/table/cell-property-changed.js +1 -1
  196. package/lib/common/model/changes/sub-document/table/property-changed.js +1 -1
  197. package/lib/common/model/changes/sub-document/table/row-property-changed.js +1 -1
  198. package/lib/common/model/character/character-property-descriptor.d.ts +1 -1
  199. package/lib/common/model/color/color-model-info.js +6 -6
  200. package/lib/common/model/creator/font-corrector.js +5 -5
  201. package/lib/common/model/document-model.js +10 -10
  202. package/lib/common/model/fields/field-request-manager.d.ts +1 -1
  203. package/lib/common/model/fields/field-request-manager.js +2 -2
  204. package/lib/common/model/fields/parsers/field-code-parser.d.ts +2 -2
  205. package/lib/common/model/fields/tree-creator.js +1 -1
  206. package/lib/common/model/floating-objects/sizes.js +2 -2
  207. package/lib/common/model/fonts/control-font.js +9 -9
  208. package/lib/common/model/fonts/loader.js +1 -1
  209. package/lib/common/model/footnotes/footnote.d.ts +1 -1
  210. package/lib/common/model/history/base/history-item.js +6 -6
  211. package/lib/common/model/history/base/interval-based-history-item.js +2 -2
  212. package/lib/common/model/history/base/position-based-history-item.js +2 -2
  213. package/lib/common/model/history/items/insert-text-history-item.js +3 -3
  214. package/lib/common/model/history/selection/scroll-history-item.js +3 -3
  215. package/lib/common/model/history/selection/selection-history-item.js +3 -3
  216. package/lib/common/model/json/importers/sub-document/run-importers.d.ts +2 -2
  217. package/lib/common/model/manipulators/base-manipulator.js +2 -2
  218. package/lib/common/model/manipulators/document/sub-document-inserter.js +6 -6
  219. package/lib/common/model/manipulators/model-manipulator.js +1 -1
  220. package/lib/common/model/manipulators/picture-manipulator/insert-picture-manipulator-params.js +1 -1
  221. package/lib/common/model/manipulators/picture-manipulator/loader/image-loading-options.d.ts +1 -1
  222. package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.d.ts +1 -1
  223. package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.js +1 -1
  224. package/lib/common/model/manipulators/range/create-range-copy-operation.js +3 -3
  225. package/lib/common/model/manipulators/tables/insert-table-cell-operation.js +1 -1
  226. package/lib/common/model/manipulators/tables/insert-table-row-operation.js +1 -1
  227. package/lib/common/model/manipulators/tables/merge-table-cells-operation.js +1 -1
  228. package/lib/common/model/manipulators/tables/table-normalizator.d.ts +2 -2
  229. package/lib/common/model/options/fields.d.ts +2 -0
  230. package/lib/common/model/options/fields.js +7 -3
  231. package/lib/common/model/options/pdf.d.ts +2 -2
  232. package/lib/common/model/options/rich-options.js +3 -3
  233. package/lib/common/model/paragraph/paragraph-property-descriptors.d.ts +1 -1
  234. package/lib/common/model/paragraph/paragraph.js +1 -1
  235. package/lib/common/model/position/linked-interval.js +4 -4
  236. package/lib/common/model/range-permissions.js +3 -3
  237. package/lib/common/model/runs/anchored-picture-run.js +4 -4
  238. package/lib/common/model/runs/inline-picture-run.d.ts +1 -1
  239. package/lib/common/model/runs/inline-picture-run.js +1 -1
  240. package/lib/common/model/runs/run-base.js +4 -4
  241. package/lib/common/model/section/section-property-descriptor.d.ts +1 -1
  242. package/lib/common/model/shadings/shading-info.js +3 -3
  243. package/lib/common/model/styles-manager.d.ts +1 -1
  244. package/lib/common/model/tables/main-structures/table-row.js +1 -1
  245. package/lib/common/mouse-handler/base/manipulator-handler-state-base.js +2 -2
  246. package/lib/common/mouse-handler/mouse-handler/mouse-handler-drag-column-or-row-state.d.ts +1 -1
  247. package/lib/common/rich-edit-core.js +11 -11
  248. package/lib/common/rich-utils/debug/runtime-template-model-creator.js +6 -6
  249. package/lib/common/scroll/model-states.d.ts +1 -1
  250. package/lib/common/scroll/model-states.js +4 -4
  251. package/lib/common/selection/input-position.js +17 -6
  252. package/lib/common/selection/selected-cells-engine.js +12 -12
  253. package/lib/common/selection/selection-intervals-info.js +7 -7
  254. package/lib/common/selection/selection-state.js +5 -5
  255. package/lib/common/selection/selection.js +13 -13
  256. package/lib/common/ui/quick-search-panel.js +1 -1
  257. package/lib/common/ui/ruler/controls/base.js +1 -1
  258. package/lib/common/ui/ruler/controls/column.js +1 -1
  259. package/lib/common/ui/ruler/controls/divisions.js +1 -1
  260. package/lib/common/ui/ruler/controls/indent/first-line.js +5 -5
  261. package/lib/common/ui/ruler/controls/indent/left.js +2 -2
  262. package/lib/common/ui/ruler/controls/indent/right.js +5 -5
  263. package/lib/common/ui/ruler/controls/margin/left.js +3 -3
  264. package/lib/common/ui/ruler/controls/owner.js +1 -1
  265. package/lib/common/ui/ruler/controls/ruler.js +4 -4
  266. package/lib/common/ui/ruler/controls/tab/tab-type.js +2 -2
  267. package/lib/common/ui/ruler/manager.js +18 -18
  268. package/lib/common/ui/ruler/model-data.js +4 -4
  269. package/lib/common/ui/ruler/ruler.js +2 -2
  270. package/lib/common/utils/utils.d.ts +7 -0
  271. package/lib/common/utils/utils.js +26 -0
  272. package/lib/common/view-settings/views-settings.js +6 -6
  273. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { HistoryItem } from './history-item';
2
2
  export class IntervalBasedHistoryItem extends HistoryItem {
3
+ get boundSubDocument() { return this.subDocInterval.subDocument; }
4
+ get interval() { return this.subDocInterval.interval; }
3
5
  constructor(modelManipulator, subDocInterval) {
4
6
  super(modelManipulator);
5
7
  this.subDocInterval = subDocInterval;
6
8
  }
7
- get boundSubDocument() { return this.subDocInterval.subDocument; }
8
- get interval() { return this.subDocInterval.interval; }
9
9
  }
@@ -1,9 +1,9 @@
1
1
  import { HistoryItem } from './history-item';
2
2
  export class PositionBasedHistoryItem extends HistoryItem {
3
+ get boundSubDocument() { return this.subDocPos.subDocument; }
4
+ get position() { return this.subDocPos.position; }
3
5
  constructor(modelManipulator, subDocPos) {
4
6
  super(modelManipulator);
5
7
  this.subDocPos = subDocPos;
6
8
  }
7
- get boundSubDocument() { return this.subDocPos.subDocument; }
8
- get position() { return this.subDocPos.position; }
9
9
  }
@@ -1,13 +1,13 @@
1
1
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
2
2
  import { HistoryItem } from '../base/history-item';
3
3
  export class InsertTextHistoryItem extends HistoryItem {
4
+ canBeMerged() {
5
+ return true;
6
+ }
4
7
  constructor(modelManipulator, params) {
5
8
  super(modelManipulator);
6
9
  this.params = params.clone();
7
10
  }
8
- canBeMerged() {
9
- return true;
10
- }
11
11
  redo() {
12
12
  this.modelManipulator.text.insertTextInner(this.params);
13
13
  }
@@ -2,6 +2,9 @@ import { HistoryItem } from '../base/history-item';
2
2
  import { Flag } from '@devexpress/utils/lib/class/flag';
3
3
  import { HistoryItemDirection } from './history-item-direction';
4
4
  export class ScrollHistoryItem extends HistoryItem {
5
+ canBeMerged() {
6
+ return true;
7
+ }
5
8
  constructor(modelManipulator, selection, oldState, newState, directionValue = HistoryItemDirection.OnRedoAndUndo) {
6
9
  super(modelManipulator);
7
10
  this.selection = selection;
@@ -9,9 +12,6 @@ export class ScrollHistoryItem extends HistoryItem {
9
12
  this.oldState = oldState;
10
13
  this.directionFlag = new Flag(directionValue);
11
14
  }
12
- canBeMerged() {
13
- return true;
14
- }
15
15
  redo() {
16
16
  if (this.directionFlag.get(HistoryItemDirection.OnRedo))
17
17
  this.selection.scrollManager.setScroll(this.newState);
@@ -2,6 +2,9 @@ import { HistoryItem } from '../base/history-item';
2
2
  import { Flag } from '@devexpress/utils/lib/class/flag';
3
3
  import { HistoryItemDirection } from './history-item-direction';
4
4
  export class SelectionHistoryItem extends HistoryItem {
5
+ canBeMerged() {
6
+ return true;
7
+ }
5
8
  constructor(modelManipulator, selection, oldState, newState, directionValue = HistoryItemDirection.OnRedoAndUndo) {
6
9
  super(modelManipulator);
7
10
  this.selection = selection;
@@ -9,9 +12,6 @@ export class SelectionHistoryItem extends HistoryItem {
9
12
  this.newState = newState;
10
13
  this.directionFlag = new Flag(directionValue);
11
14
  }
12
- canBeMerged() {
13
- return true;
14
- }
15
15
  redo() {
16
16
  if (this.directionFlag.get(HistoryItemDirection.OnRedo))
17
17
  this.selection.setState(this.newState);
@@ -4,8 +4,8 @@ import { ImageCache } from '../../../caches/images';
4
4
  import { CharacterStyle } from '../../../character/character-style';
5
5
  import { Paragraph } from '../../../paragraph/paragraph';
6
6
  import { RunBase } from '../../../runs/run-base';
7
- export declare type SimpleRunConstructor = new (startOffset: number, paragraph: Paragraph, charPropsBundle: MaskedCharacterPropertiesBundle) => RunBase;
8
- export declare type NoteRunConstructor = new (startOffset: number, paragraph: Paragraph, charPropsBundle: MaskedCharacterPropertiesBundle, noteDocumentId: number) => RunBase;
7
+ export type SimpleRunConstructor = new (startOffset: number, paragraph: Paragraph, charPropsBundle: MaskedCharacterPropertiesBundle) => RunBase;
8
+ export type NoteRunConstructor = new (startOffset: number, paragraph: Paragraph, charPropsBundle: MaskedCharacterPropertiesBundle, noteDocumentId: number) => RunBase;
9
9
  export declare abstract class BaseRunImporter {
10
10
  private maskedCharacterPropertiesCache;
11
11
  private charStyles;
@@ -1,7 +1,7 @@
1
1
  export class BaseManipulator {
2
+ get history() { return this.modelManipulator.modelManager.history; }
3
+ get model() { return this.modelManipulator.modelManager.model; }
2
4
  constructor(manipulator) {
3
5
  this.modelManipulator = manipulator;
4
6
  }
5
- get history() { return this.modelManipulator.modelManager.history; }
6
- get model() { return this.modelManipulator.modelManager.model; }
7
7
  }
@@ -31,6 +31,12 @@ export class SubDocumentInserterOptions extends Initializer {
31
31
  }
32
32
  }
33
33
  export class SubDocumentInserter {
34
+ get history() { return this.targetModelManipulator.modelManager.history; }
35
+ get modelsConstOffset() { return this.targetStartPosition - this.sourceInterval.start; }
36
+ get sameModel() { return this.sourceDocumentModel === this.targetDocumentModel; }
37
+ get currInsertSubDocumentPosition() {
38
+ return new SubDocumentPosition(this.targetSubDocument, this.currentTargetPosition);
39
+ }
34
40
  constructor(targetModelManipulator, options, targetSubDocPos, sourceSubDocInterval) {
35
41
  this.numberingListCache = {};
36
42
  this.abstractNumberingListIndexesMap = {};
@@ -66,12 +72,6 @@ export class SubDocumentInserter {
66
72
  [RunType.NoteContinuationSeparatorRun]: this.notSupportedRunHandler.bind(this),
67
73
  };
68
74
  }
69
- get history() { return this.targetModelManipulator.modelManager.history; }
70
- get modelsConstOffset() { return this.targetStartPosition - this.sourceInterval.start; }
71
- get sameModel() { return this.sourceDocumentModel === this.targetDocumentModel; }
72
- get currInsertSubDocumentPosition() {
73
- return new SubDocumentPosition(this.targetSubDocument, this.currentTargetPosition);
74
- }
75
75
  insert() {
76
76
  this.sourceSubDocument = this.sourceSubDocInterval.subDocument;
77
77
  this.sourceInterval = this.sourceSubDocInterval.interval;
@@ -25,6 +25,7 @@ import { TextBoxManipulator } from './text-box-manipulator';
25
25
  import { TextCaseManipulator } from './text-case-manipulator';
26
26
  import { TextManipulator } from './text-manipulator/text-manipulator';
27
27
  export class ModelManipulator {
28
+ get model() { return this.modelManager.model; }
28
29
  constructor(modelManager, batchUpdatableObject) {
29
30
  this.modelListeners = [];
30
31
  this.onFontsChanged = new EventDispatcher();
@@ -57,7 +58,6 @@ export class ModelManipulator {
57
58
  this.section = new SectionManipulator(this);
58
59
  this.documentMerger = new DocumentMerger(this);
59
60
  }
60
- get model() { return this.modelManager.model; }
61
61
  notifyModelChanged(change) {
62
62
  this.modelListeners.forEach(listener => listener.modelChanged(change));
63
63
  }
@@ -4,13 +4,13 @@ import { PictureSize } from '../../floating-objects/sizes';
4
4
  import { Shape } from '../../shapes/shape';
5
5
  import { NonVisualDrawingObjectInfo } from './non-visual-drawing-object-info';
6
6
  export class BasePictureInfo {
7
+ get cacheInfo() { return this.size.cacheInfo; }
7
8
  constructor(size, shape, containerProperties, drawingProperties) {
8
9
  this.size = size;
9
10
  this.shape = shape;
10
11
  this.containerProperties = containerProperties;
11
12
  this.nonVisualDrawingProperties = drawingProperties;
12
13
  }
13
- get cacheInfo() { return this.size.cacheInfo; }
14
14
  }
15
15
  export class InlinePictureInfo extends BasePictureInfo {
16
16
  constructor(size, shape, publicAPIID, containerProperties, drawingProperties) {
@@ -1,7 +1,7 @@
1
1
  import { Size } from '@devexpress/utils/lib/geometry/size';
2
2
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
3
3
  import { CacheImageInfo } from '../../../caches/images';
4
- export declare type ImageLoadingOptionsCallback = (picInterval: FixedInterval, cacheInfo: CacheImageInfo) => void;
4
+ export type ImageLoadingOptionsCallback = (picInterval: FixedInterval, cacheInfo: CacheImageInfo) => void;
5
5
  export declare class ImageLoadingOptions {
6
6
  imageLoadedEvent: ImageLoadingOptionsCallback[];
7
7
  actualSize?: Size;
@@ -16,7 +16,7 @@ export declare class PicSizeUpdaterData {
16
16
  interface IPictureLoadedListener {
17
17
  notifyPictureLoaded(): void;
18
18
  }
19
- export declare type AllPicturesLoaded = (isLoaded: boolean) => void;
19
+ export type AllPicturesLoaded = (isLoaded: boolean) => void;
20
20
  export interface ISizeUpdater {
21
21
  getImageLoadingOptions(run: PictureRunType): ImageLoadingOptions;
22
22
  }
@@ -128,12 +128,12 @@ class CallbacksInfo {
128
128
  }
129
129
  }
130
130
  export class PictureLoader {
131
+ get imageCache() { return this.modelManipulator.model.cache.imageCache; }
131
132
  constructor(modelManipulator) {
132
133
  this.callbacksInfo = [];
133
134
  this.modelManipulator = modelManipulator;
134
135
  this.sizeUpdater = new PicSizeUpdater(modelManipulator, this);
135
136
  }
136
- get imageCache() { return this.modelManipulator.model.cache.imageCache; }
137
137
  notifyPictureLoaded() {
138
138
  if (this.sizeUpdater.allPicturesLoaded()) {
139
139
  const clbs = this.callbacksInfo;
@@ -25,6 +25,9 @@ import { TablesManipulator } from '../tables/tables-manipulator';
25
25
  import { isDefined } from '@devexpress/utils/lib/utils/common';
26
26
  import { SubDocumentInserterOptions } from '../document/sub-document-inserter';
27
27
  export class CreateRangeCopyOperation {
28
+ get documentModel() {
29
+ return this.subDocument.documentModel;
30
+ }
28
31
  constructor(subDocument, abstractNumberingListCache, numberingListCache) {
29
32
  this.newOffsetAtStartChunk = 0;
30
33
  this.additionalParagraphRunPositions = {};
@@ -32,9 +35,6 @@ export class CreateRangeCopyOperation {
32
35
  this.numberingListCache = numberingListCache;
33
36
  this.abstractNumberingListCache = abstractNumberingListCache;
34
37
  }
35
- get documentModel() {
36
- return this.subDocument.documentModel;
37
- }
38
38
  copyStyles(newDocumentModel) {
39
39
  newDocumentModel.characterStyles = ListUtils.deepCopy(this.documentModel.characterStyles);
40
40
  newDocumentModel.paragraphStyles = ListUtils.deepCopy(this.documentModel.paragraphStyles);
@@ -7,11 +7,11 @@ import { TableCellMergingState } from '../../tables/secondary-structures/table-b
7
7
  import { TableCellUtils } from '../../tables/table-utils';
8
8
  import { InsertParagraphManipulatorParams } from '../paragraph-manipulator/insert-paragraph-manipulator-params';
9
9
  export class InsertTableCellOperationBase {
10
+ get modelManipulator() { return this.modelManager.modelManipulator; }
10
11
  constructor(modelManager, subDocument) {
11
12
  this.subDocument = subDocument;
12
13
  this.modelManager = modelManager;
13
14
  }
14
- get modelManipulator() { return this.modelManager.modelManipulator; }
15
15
  execute(table, rowIndex, cellIndex, inpPos, options) {
16
16
  let row = table.rows[rowIndex];
17
17
  let cell = row.cells[cellIndex];
@@ -7,11 +7,11 @@ import { TableCellMergingState } from '../../tables/secondary-structures/table-b
7
7
  import { TableCellUtils } from '../../tables/table-utils';
8
8
  import { InsertParagraphManipulatorParams } from '../paragraph-manipulator/insert-paragraph-manipulator-params';
9
9
  export class InsertTableRowOperationBase {
10
+ get modelManipulator() { return this.modelManager.modelManipulator; }
10
11
  constructor(modelManager, subDocument) {
11
12
  this.modelManager = modelManager;
12
13
  this.subDocument = subDocument;
13
14
  }
14
- get modelManipulator() { return this.modelManager.modelManipulator; }
15
15
  execute(table, patternRowIndex) {
16
16
  let patternRow = table.rows[patternRowIndex];
17
17
  let insertParagraphsPositionInfo = this.getInsertParagraphsPositionInfo(table, patternRowIndex);
@@ -9,12 +9,12 @@ import { TableWidthUnit } from '../../tables/secondary-structures/table-units';
9
9
  import { TableCellUtils } from '../../tables/table-utils';
10
10
  import { InsertParagraphManipulatorParams } from '../paragraph-manipulator/insert-paragraph-manipulator-params';
11
11
  export class MergeTableCellsOperationBase {
12
+ get modelManipulator() { return this.modelManager.modelManipulator; }
12
13
  constructor(modelManager, subDocument) {
13
14
  this.needDeleteNextTableCell = false;
14
15
  this.modelManager = modelManager;
15
16
  this.subDocument = subDocument;
16
17
  }
17
- get modelManipulator() { return this.modelManager.modelManipulator; }
18
18
  execute(position, suppressNormalizeTableRows, inpPos) {
19
19
  let nextCellPosition = this.calculateNextCell(position);
20
20
  this.updateCellsProperties(position, nextCellPosition);
@@ -1,8 +1,8 @@
1
1
  import { Table } from '../../tables/main-structures/table';
2
2
  import { TableCellMergingState } from '../../tables/secondary-structures/table-base-structures';
3
3
  import { TableWidthUnit } from '../../tables/secondary-structures/table-units';
4
- export declare type TableNormalizatorRowPropertySetter<T> = (table: Table, rowIndex: number, newValue: T) => void;
5
- export declare type TableNormalizatorCellPropertySetter<T> = (table: Table, rowIndex: number, cellIndex: number, newValue: T) => void;
4
+ export type TableNormalizatorRowPropertySetter<T> = (table: Table, rowIndex: number, newValue: T) => void;
5
+ export type TableNormalizatorCellPropertySetter<T> = (table: Table, rowIndex: number, cellIndex: number, newValue: T) => void;
6
6
  export declare class TableNormalizator {
7
7
  private table;
8
8
  private tableCellGridInfos;
@@ -6,6 +6,8 @@ export declare class FieldsSettings {
6
6
  defaultTimeFormat: string;
7
7
  defaultDateFormat: string;
8
8
  openHyperlinkOnClick: boolean;
9
+ disableRelativeHyperlinkUri: boolean;
10
+ allowedHyperlinkUriProtocols: string[];
9
11
  keepHyperlinkResultForInvalidReference: boolean;
10
12
  createHyperlinkTooltip: (hyperlinkTooltip: string, hint: string) => string;
11
13
  constructor();
@@ -1,8 +1,10 @@
1
1
  import { convertToFunction } from '../../utils/utils';
2
2
  import { isDefined, isNonNullString } from '@devexpress/utils/lib/utils/common';
3
3
  export class FieldsSettings {
4
+ ;
4
5
  constructor() {
5
6
  this.openHyperlinkOnClick = false;
7
+ this.disableRelativeHyperlinkUri = false;
6
8
  this.updateFieldsBeforePrint = true;
7
9
  this.updateFieldsOnPaste = true;
8
10
  this.defaultTimeFormat = FieldsSettings.DEFAULT_TIME_FORMAT;
@@ -13,7 +15,6 @@ export class FieldsSettings {
13
15
  return `${hyperlinkTooltip}${hint}`;
14
16
  };
15
17
  }
16
- ;
17
18
  copyFrom(obj) {
18
19
  if (isDefined(obj.updateFieldsBeforePrint))
19
20
  this.updateFieldsBeforePrint = obj.updateFieldsBeforePrint;
@@ -27,9 +28,12 @@ export class FieldsSettings {
27
28
  this.openHyperlinkOnClick = obj.openHyperlinkOnClick;
28
29
  if (isDefined(obj.keepHyperlinkResultForInvalidReference))
29
30
  this.keepHyperlinkResultForInvalidReference = obj.keepHyperlinkResultForInvalidReference;
30
- if (isDefined(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '') {
31
+ if (isDefined(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '')
31
32
  this.createHyperlinkTooltip = convertToFunction(obj.createHyperlinkTooltip);
32
- }
33
+ if (isDefined(obj.disableRelativeHyperlinkUri))
34
+ this.disableRelativeHyperlinkUri = obj.disableRelativeHyperlinkUri;
35
+ if (isDefined(obj.allowedHyperlinkUriProtocols))
36
+ this.allowedHyperlinkUriProtocols = obj.allowedHyperlinkUriProtocols;
33
37
  }
34
38
  clone() {
35
39
  const result = new FieldsSettings();
@@ -1,8 +1,8 @@
1
- export declare type PdfKitContructor = new (options?: {
1
+ export type PdfKitContructor = new (options?: {
2
2
  autoFirstPage: boolean;
3
3
  font: any;
4
4
  }) => any;
5
- export declare type BlobStreamContructor = new () => any;
5
+ export type BlobStreamContructor = new () => any;
6
6
  export declare class PdfSettings {
7
7
  private _pdfDocument;
8
8
  private _blobStream;
@@ -10,6 +10,9 @@ import { DocumentProtectionSettings } from './protection';
10
10
  import { SearchSettings } from './search';
11
11
  import { SpellCheckerSettings } from './spell-checker';
12
12
  export class RichOptions {
13
+ get maxSpellRequestLength() {
14
+ return this.spellChecker.maxRequestLength;
15
+ }
13
16
  constructor(cultureOpts) {
14
17
  this.control = new ControlOptions();
15
18
  this.mailMerge = new MailMergeOptions();
@@ -24,9 +27,6 @@ export class RichOptions {
24
27
  this.fonts = new FontsSettings();
25
28
  this.cultureOpts = cultureOpts;
26
29
  }
27
- get maxSpellRequestLength() {
28
- return this.spellChecker.maxRequestLength;
29
- }
30
30
  clone() {
31
31
  const result = new RichOptions(this.cultureOpts);
32
32
  result.control = this.control.clone();
@@ -6,7 +6,7 @@ import { ModelManipulator } from '../manipulators/model-manipulator';
6
6
  import { ShadingInfo } from '../shadings/shading-info';
7
7
  import { SubDocumentInterval } from '../sub-document';
8
8
  import { ParagraphAlignment, ParagraphFirstLineIndent, ParagraphLineSpacingType, ParagraphProperties, ParagraphPropertiesMask } from './paragraph-properties';
9
- export declare type ParagraphPropertiesHistoryItemType<T> = new (modelManipulator: ModelManipulator, subDocInterval: SubDocumentInterval, newValue: T, newUse: boolean) => ParagraphPropertiesHistoryItemBase<T>;
9
+ export type ParagraphPropertiesHistoryItemType<T> = new (modelManipulator: ModelManipulator, subDocInterval: SubDocumentInterval, newValue: T, newUse: boolean) => ParagraphPropertiesHistoryItemBase<T>;
10
10
  export interface IParagraphPropertyDescriptor<T> {
11
11
  setProp(props: ParagraphProperties, newValue: T): any;
12
12
  getProp(props: ParagraphProperties): T;
@@ -21,6 +21,7 @@ export var TabAlign;
21
21
  TabAlign[TabAlign["Numbering"] = 4] = "Numbering";
22
22
  })(TabAlign || (TabAlign = {}));
23
23
  export class Paragraph {
24
+ get isEmpty() { return this.length <= 1; }
24
25
  constructor(subDocument, startLogPosition, length, paragraphStyle, maskedParagraphProperties, indexInMaskedParagraphProperitesCache = undefined) {
25
26
  this.numberingListIndex = NumberingList.NumberingListNotSettedIndex;
26
27
  this.listLevelIndex = -1;
@@ -39,7 +40,6 @@ export class Paragraph {
39
40
  this.mergedParagraphFormatting = null;
40
41
  this.tabs = new TabProperties();
41
42
  }
42
- get isEmpty() { return this.length <= 1; }
43
43
  getParagraphBundleFull(model) {
44
44
  return new MaskedParagraphPropertiesBundleFull(model.cache.maskedParagraphPropertiesCache.getItem(this.maskedParagraphProperties), model.stylesManager.addParagraphStyle(this.paragraphStyle), new ParagraphListInfo(this.numberingListIndex, this.listLevelIndex), this.tabs.clone());
45
45
  }
@@ -2,15 +2,15 @@ import { BoundaryInterval } from '@devexpress/utils/lib/intervals/boundary';
2
2
  import { ConstInterval } from '@devexpress/utils/lib/intervals/const';
3
3
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
4
4
  export class LinkedInterval extends ConstInterval {
5
+ get start() { return this._start.value; }
6
+ get length() { return this._end.value - this._start.value; }
7
+ get end() { return this._end.value; }
8
+ get center() { return (this.start + this.end) / 2; }
5
9
  constructor(manager, interval) {
6
10
  super();
7
11
  this._start = manager.registerPosition(interval.start);
8
12
  this._end = manager.registerPosition(interval.end);
9
13
  }
10
- get start() { return this._start.value; }
11
- get length() { return this._end.value - this._start.value; }
12
- get end() { return this._end.value; }
13
- get center() { return (this.start + this.end) / 2; }
14
14
  destructor(manager) {
15
15
  manager.unregisterPosition(this._start);
16
16
  manager.unregisterPosition(this._end);
@@ -52,15 +52,15 @@ RangePermission.Owners_GROUP_NAME = "Owners".toLowerCase();
52
52
  RangePermission.Contributors_GROUP_NAME = "Contributors".toLowerCase();
53
53
  RangePermission.Administrators_GROUP_NAME = "Administrators".toLowerCase();
54
54
  export class ConstRangePermission extends ConstInterval {
55
+ get start() { return this.interval.start; }
56
+ get length() { return this.interval.length; }
57
+ get end() { return this.interval.end; }
55
58
  constructor(interval, userName, group) {
56
59
  super();
57
60
  this.interval = BoundaryInterval.makeByConstInterval(interval);
58
61
  this.userName = userName;
59
62
  this.group = group;
60
63
  }
61
- get start() { return this.interval.start; }
62
- get length() { return this.interval.length; }
63
- get end() { return this.interval.end; }
64
64
  equals(obj) {
65
65
  return obj && this.userName == obj.userName && this.group == obj.group && this.interval.equals(obj.interval);
66
66
  }
@@ -2,14 +2,14 @@ import { MaskedCharacterPropertiesBundle } from '../../rich-utils/properties-bun
2
2
  import { PictureRun, RunBase } from './run-base';
3
3
  import { RunType } from './run-type';
4
4
  export class AnchoredPictureRun extends PictureRun {
5
- constructor(startOffset, paragraph, charPropsBundle, info, objectId) {
6
- super(startOffset, paragraph, charPropsBundle, info);
7
- this.anchoredObjectID = objectId < 0 ? RunBase.anchoredObjectIdCounter++ : objectId;
8
- }
9
5
  get anchorInfo() { return this.info.anchorInfo; }
10
6
  ;
11
7
  set anchorInfo(val) { this.info.anchorInfo = val; }
12
8
  ;
9
+ constructor(startOffset, paragraph, charPropsBundle, info, objectId) {
10
+ super(startOffset, paragraph, charPropsBundle, info);
11
+ this.anchoredObjectID = objectId < 0 ? RunBase.anchoredObjectIdCounter++ : objectId;
12
+ }
13
13
  getType() {
14
14
  return RunType.AnchoredPictureRun;
15
15
  }
@@ -6,7 +6,7 @@ import { SubDocument } from '../sub-document';
6
6
  import { AnchoredPictureRun } from './anchored-picture-run';
7
7
  import { PictureRun } from './run-base';
8
8
  import { RunType } from './run-type';
9
- export declare type PictureRunType = InlinePictureRun | AnchoredPictureRun;
9
+ export type PictureRunType = InlinePictureRun | AnchoredPictureRun;
10
10
  export declare class InlinePictureRun extends PictureRun<InlinePictureInfo> implements ISupportCopyFrom<InlinePictureRun>, ICloneable<InlinePictureRun> {
11
11
  private static nextPublicAPIId;
12
12
  get publicAPIId(): number;
@@ -2,11 +2,11 @@ import { MaskedCharacterPropertiesBundle } from '../../rich-utils/properties-bun
2
2
  import { PictureRun } from './run-base';
3
3
  import { RunType } from './run-type';
4
4
  export class InlinePictureRun extends PictureRun {
5
+ get publicAPIId() { return this.info.publicAPIID; }
5
6
  constructor(startOffset, paragraph, charPropsBundle, info) {
6
7
  super(startOffset, paragraph, charPropsBundle, info);
7
8
  this.info.publicAPIID = this.info.publicAPIID >= 0 ? this.info.publicAPIID : this.getNextPublicAPIId();
8
9
  }
9
- get publicAPIId() { return this.info.publicAPIID; }
10
10
  getType() {
11
11
  return RunType.InlinePictureRun;
12
12
  }
@@ -78,10 +78,6 @@ export class OneCharRun extends RunBase {
78
78
  }
79
79
  }
80
80
  export class PictureRun extends OneCharRun {
81
- constructor(startOffset, paragraph, charPropsBundle, info) {
82
- super(startOffset, paragraph, charPropsBundle);
83
- this.info = info;
84
- }
85
81
  get shape() { return this.info.shape; }
86
82
  ;
87
83
  set shape(val) { this.info.shape = val; }
@@ -92,6 +88,10 @@ export class PictureRun extends OneCharRun {
92
88
  ;
93
89
  get cacheInfo() { return this.info.cacheInfo; }
94
90
  ;
91
+ constructor(startOffset, paragraph, charPropsBundle, info) {
92
+ super(startOffset, paragraph, charPropsBundle);
93
+ this.info = info;
94
+ }
95
95
  getActualSize() {
96
96
  return this.info.size.actualSize;
97
97
  }
@@ -7,7 +7,7 @@ import { SectionStartType } from './enums';
7
7
  import { PaperKind } from './paper-kind';
8
8
  import { SectionColumnProperties } from './section-column-properties';
9
9
  import { SectionProperties } from './section-properties';
10
- export declare type SectionPropertiesHistoryItemType<T> = new (modelManipulator: ModelManipulator, interval: FixedInterval, newValue: T) => SectionPropertiesHistoryItemBase<T>;
10
+ export type SectionPropertiesHistoryItemType<T> = new (modelManipulator: ModelManipulator, interval: FixedInterval, newValue: T) => SectionPropertiesHistoryItemBase<T>;
11
11
  export interface ISectionPropertyDescriptor<T> {
12
12
  setProp(props: SectionProperties, newValue: T): any;
13
13
  getProp(props: SectionProperties): T;
@@ -4,14 +4,14 @@ import { JSONShadingInfoConverter } from '../json/importers/json-shading-info-co
4
4
  import { ShadingPattern } from './shading-pattern';
5
5
  import { ShadingHelper } from './shading-pattern-helper';
6
6
  export class ShadingInfo {
7
+ static get noColor() { return ShadingInfo.createByColor(ColorModelInfo.noColor); }
8
+ static get auto() { return ShadingInfo.createByColor(ColorModelInfo.auto); }
9
+ static get nullColor() { return ShadingInfo.createByColor(ColorModelInfo.makeByColor(0)); }
7
10
  constructor(shadingPattern, backColor, foreColor) {
8
11
  this.shadingPattern = shadingPattern;
9
12
  this.backColor = backColor;
10
13
  this.foreColor = foreColor;
11
14
  }
12
- static get noColor() { return ShadingInfo.createByColor(ColorModelInfo.noColor); }
13
- static get auto() { return ShadingInfo.createByColor(ColorModelInfo.auto); }
14
- static get nullColor() { return ShadingInfo.createByColor(ColorModelInfo.makeByColor(0)); }
15
15
  static createByColor(backColor) {
16
16
  return new ShadingInfo(ShadingPattern.Clear, backColor, ColorModelInfo.nullColor);
17
17
  }
@@ -4,7 +4,7 @@ import { NumberingListStyle } from './numbering-lists/numbering-list-style';
4
4
  import { ParagraphStyle } from './paragraph/paragraph-style';
5
5
  import { TableCellStyle } from './tables/styles/table-cell-style';
6
6
  import { TableStyle } from './tables/styles/table-style';
7
- export declare type StyleGalleryItem = {
7
+ export type StyleGalleryItem = {
8
8
  value: string;
9
9
  text: string;
10
10
  data: string;
@@ -4,6 +4,7 @@ import { TableProperties } from '../properties/table-properties';
4
4
  import { ConditionalTableStyleFormatting } from '../secondary-structures/table-base-structures';
5
5
  import { TableHeightUnit, TableWidthUnit } from '../secondary-structures/table-units';
6
6
  export class TableRow {
7
+ get logicColumnCount() { return this.gridBefore + this.gridAfter + ListUtils.accumulate(this.cells, 0, (acc, c) => acc += c.columnSpan); }
7
8
  constructor(parentTable, properties) {
8
9
  this.cells = [];
9
10
  this.widthBefore = TableWidthUnit.createDefault();
@@ -16,7 +17,6 @@ export class TableRow {
16
17
  this.parentTable = parentTable;
17
18
  this.properties = properties;
18
19
  }
19
- get logicColumnCount() { return this.gridBefore + this.gridAfter + ListUtils.accumulate(this.cells, 0, (acc, c) => acc += c.columnSpan); }
20
20
  get isLastRowInTable() {
21
21
  return ListUtils.last(this.parentTable.rows) === this;
22
22
  }
@@ -1,10 +1,10 @@
1
1
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
2
2
  export class ManipulatorHandlerStateBase {
3
+ start() { }
4
+ finish() { }
3
5
  constructor(handler) {
4
6
  this.handler = handler;
5
7
  }
6
- start() { }
7
- finish() { }
8
8
  dispose() { }
9
9
  resizeRotationChecker(action) {
10
10
  const activeSubDocument = this.handler.control.selection.activeSubDocument;
@@ -3,7 +3,7 @@ import { IRichEditControl } from '../../interfaces/i-rich-edit-core';
3
3
  import { ResizeTableVisualizer } from '../../layout-engine/visualizers/resize-table-visualizer';
4
4
  import { ResizeTableHelperBase } from '../resize-table-helper';
5
5
  import { MouseHandlerStateBase } from './mouse-handler-state-base';
6
- export declare type MouseHandlerDragResizeTableBaseHelperConstructorType = new (control: IRichEditControl, resizeTableVisualizer: ResizeTableVisualizer, evt: RichMouseEvent) => ResizeTableHelperBase;
6
+ export type MouseHandlerDragResizeTableBaseHelperConstructorType = new (control: IRichEditControl, resizeTableVisualizer: ResizeTableVisualizer, evt: RichMouseEvent) => ResizeTableHelperBase;
7
7
  export declare class MouseHandlerDragResizeTableBase extends MouseHandlerStateBase {
8
8
  private helper;
9
9
  onMouseDown(evt: RichMouseEvent): void;
@@ -45,6 +45,11 @@ import { HorizontalRulerControl } from './ui/ruler/ruler';
45
45
  import { SearchManager } from './ui/search-manager';
46
46
  import { isDefined } from '@devexpress/utils/lib/utils/common';
47
47
  export class RichEditCore {
48
+ get isReadOnlyPersistent() { return this.readOnly == ReadOnlyMode.Persistent; }
49
+ get model() { return this.modelManager.model; }
50
+ get isDisposed() {
51
+ return this._isDisposed;
52
+ }
48
53
  constructor(owner, name, element, clientGuid, readOnly, barHolder, unitsType, rulerSettings, richOptions, viewsSettings, stringResources) {
49
54
  this.isLoadingPictureFromClipboard = false;
50
55
  this.readOnly = ReadOnlyMode.None;
@@ -93,11 +98,6 @@ export class RichEditCore {
93
98
  this.invalidateLayoutAfterFontsLoaded();
94
99
  });
95
100
  }
96
- get isReadOnlyPersistent() { return this.readOnly == ReadOnlyMode.Persistent; }
97
- get model() { return this.modelManager.model; }
98
- get isDisposed() {
99
- return this._isDisposed;
100
- }
101
101
  beforeInitialization(_options) { }
102
102
  registerActiveContextTabManager() { }
103
103
  registerFontChangesListeners() { }
@@ -409,12 +409,6 @@ export class RichEditCore {
409
409
  }
410
410
  }
411
411
  export class DocumentInfo {
412
- constructor(fileName, documentHasSource, documentFormat = DocumentInfo.defaultDocumentFormat, documentExtension = FileNameHelper.convertToString(documentFormat)) {
413
- this._fileName = fileName;
414
- this._documentFormat = documentFormat;
415
- this._documentExtension = documentExtension;
416
- this.documentHasSource = documentHasSource;
417
- }
418
412
  get fileName() { return this._fileName; }
419
413
  set fileName(val) { this._fileName = val; }
420
414
  get documentFormat() { return this._documentFormat; }
@@ -426,6 +420,12 @@ export class DocumentInfo {
426
420
  this._documentExtension = FileNameHelper.convertToString(val);
427
421
  }
428
422
  get documentExtension() { return this._documentExtension; }
423
+ constructor(fileName, documentHasSource, documentFormat = DocumentInfo.defaultDocumentFormat, documentExtension = FileNameHelper.convertToString(documentFormat)) {
424
+ this._fileName = fileName;
425
+ this._documentFormat = documentFormat;
426
+ this._documentExtension = documentExtension;
427
+ this.documentHasSource = documentHasSource;
428
+ }
429
429
  getFileNameForDownload(fileName) {
430
430
  if (!StringUtils.isNullOrEmpty(fileName))
431
431
  return fileName;