devexpress-richedit 24.1.8-build-24316-0102 → 24.2.2-beta

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 (315) 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 +12 -1
  9. package/dist/dx.richedit.js +1174 -907
  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/bars/rich-edit-ribbon/ribbon-items-data.js +2 -1
  16. package/lib/client/client-rich-edit.d.ts +1 -0
  17. package/lib/client/client-rich-edit.js +15 -11
  18. package/lib/client/commands/commands.js +3 -0
  19. package/lib/client/commands/new-document-command.js +2 -1
  20. package/lib/client/commands/open-document-command.d.ts +1 -1
  21. package/lib/client/default-localization.js +2 -0
  22. package/lib/client/dialogs/dialog-base.js +3 -3
  23. package/lib/client/document-processor/public/processor.js +3 -3
  24. package/lib/client/formats/docx/export/data.js +5 -5
  25. package/lib/client/formats/docx/export/exporters/base/sections.js +4 -4
  26. package/lib/client/formats/docx/export/exporters/base.js +1 -1
  27. package/lib/client/formats/docx/export/exporters/content-types.js +4 -4
  28. package/lib/client/formats/docx/export/exporters/relations/relation-collection.js +1 -1
  29. package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.d.ts +1 -1
  30. package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.js +3 -3
  31. package/lib/client/formats/docx/export/exporters/sub-document/header-footer-sub-document-exporter.js +1 -1
  32. package/lib/client/formats/docx/import/data.js +2 -2
  33. package/lib/client/formats/docx/import/destination/character-properties/run-properties-base-destination.js +1 -1
  34. package/lib/client/formats/docx/import/destination/destination.d.ts +2 -2
  35. package/lib/client/formats/docx/import/destination/destination.js +7 -7
  36. package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-position-destination.js +9 -9
  37. package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-relative-size-destination.js +6 -6
  38. package/lib/client/formats/docx/import/destination/drawing/drawing-destination.js +38 -38
  39. package/lib/client/formats/docx/import/destination/drawing/non-visual-pucture-properties-destination.js +3 -3
  40. package/lib/client/formats/docx/import/destination/drawing/shape-properties-destination.js +9 -9
  41. package/lib/client/formats/docx/import/destination/notes/note-destination.d.ts +1 -1
  42. package/lib/client/formats/docx/import/destination/notes/note-properties-destination.js +3 -3
  43. package/lib/client/formats/docx/import/destination/numbering/numberings-destination.js +15 -15
  44. package/lib/client/formats/docx/import/destination/paragraph/paragraph-destination.js +3 -3
  45. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-numbering-reference-destination.js +5 -5
  46. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-base-destination.js +3 -3
  47. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-destination.js +7 -7
  48. package/lib/client/formats/docx/import/destination/relationships/relationships-destination.js +3 -3
  49. package/lib/client/formats/docx/import/destination/runs/inline-object-destination.js +3 -3
  50. package/lib/client/formats/docx/import/destination/style/destinations/style-paragraph-properties-destination.js +4 -4
  51. package/lib/client/formats/docx/import/destination/table/cell/properties/table-cell-properties-destination-core.js +3 -3
  52. package/lib/client/formats/docx/import/destination/table/cell/table-cell-destination.js +3 -3
  53. package/lib/client/formats/docx/import/destination/table/row/properties/table-row-properties-destination.js +3 -3
  54. package/lib/client/formats/docx/import/destination/table/row/table-row-destination.js +3 -3
  55. package/lib/client/formats/docx/import/destination/table/table/properties/table-cell-margins-destination.d.ts +1 -1
  56. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination-core.js +3 -3
  57. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination.js +3 -3
  58. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-leaf-element-destination.js +3 -3
  59. package/lib/client/formats/docx/import/destination/table/table/table-destination.js +3 -3
  60. package/lib/client/formats/docx/import/destination/themes/color/drawing-color-properties-destination-base.js +3 -3
  61. package/lib/client/formats/docx/import/destination/themes/font/office-theme-font-collection-scheme-destination.js +7 -7
  62. package/lib/client/formats/docx/import/destination/vml/v-mlshape-destination.js +7 -7
  63. package/lib/client/formats/docx/import/importers/character-importer.js +6 -6
  64. package/lib/client/formats/docx/import/importers/comments-importer.js +1 -1
  65. package/lib/client/formats/docx/import/importers/field-importer.js +2 -2
  66. package/lib/client/formats/docx/import/importers/table-importer.js +1 -1
  67. package/lib/client/formats/docx/import/list/open-xml-list-level-override.js +3 -3
  68. package/lib/client/formats/docx/import/list/open-xml-numbering-list-info.d.ts +1 -1
  69. package/lib/client/formats/docx/utils/constants.js +6 -6
  70. package/lib/client/formats/docx/zip/xml-reader.js +10 -10
  71. package/lib/client/i-rich-constructor-settings.d.ts +2 -1
  72. package/lib/client/model-api/api-utils/parameter-checker.d.ts +1 -1
  73. package/lib/client/model-api/collections/drawing-object-collection.js +1 -1
  74. package/lib/client/model-api/fonts/control-font.js +4 -4
  75. package/lib/client/model-api/images/image-iterator.js +3 -3
  76. package/lib/client/model-api/interval.js +1 -1
  77. package/lib/client/public/api/authentication-options.js +3 -3
  78. package/lib/client/public/api/range-permission-options.js +3 -3
  79. package/lib/client/public/client-events.d.ts +2 -1
  80. package/lib/client/public/client-events.js +3 -1
  81. package/lib/client/public/commands/enum.d.ts +2 -1
  82. package/lib/client/public/commands/enum.js +1 -0
  83. package/lib/client/public/context-menu/menu.js +5 -5
  84. package/lib/client/public/events.d.ts +6 -0
  85. package/lib/client/public/events.js +8 -0
  86. package/lib/client/public/nusa/external-types.d.ts +2 -2
  87. package/lib/client/public/nusa/settings.js +1 -1
  88. package/lib/client/public/options.d.ts +1 -0
  89. package/lib/client/public/ribbon/item-ids.d.ts +2 -1
  90. package/lib/client/public/ribbon/item-ids.js +1 -0
  91. package/lib/client/public/ribbon/tab.d.ts +4 -4
  92. package/lib/client/public/ribbon/tab.js +2 -2
  93. package/lib/client/public/rich-edit.js +2 -2
  94. package/lib/client/ribbon/i-toolbar-item-options.d.ts +1 -1
  95. package/lib/client/ribbon/ribbon.d.ts +3 -3
  96. package/lib/client/ribbon/ribbon.js +1 -1
  97. package/lib/client/ribbon/toolbar-items/toolbar-interactive-item.d.ts +2 -2
  98. package/lib/client/settings.js +2 -0
  99. package/lib/client/utils/devextreme/devextreme-types.d.ts +17 -17
  100. package/lib/client/utils/devextreme/dxt-utils.d.ts +1 -1
  101. package/lib/common/auto-correct/auto-correct-providers.js +1 -1
  102. package/lib/common/bars/base.js +1 -1
  103. package/lib/common/canvas/canvas-manager.js +3 -3
  104. package/lib/common/canvas/canvas-scroll-manager.js +2 -2
  105. package/lib/common/canvas/listeners/anchor-listener.js +3 -3
  106. package/lib/common/canvas/listeners/resize-box-listener.js +5 -5
  107. package/lib/common/canvas/renderes/canvas-listener/canvas-listener.js +1 -1
  108. package/lib/common/canvas/renderes/change-active-sub-document/renderer.js +10 -10
  109. package/lib/common/canvas/renderes/common/document-renderer.d.ts +1 -1
  110. package/lib/common/canvas/renderes/common/document-renderer.js +1 -1
  111. package/lib/common/canvas/renderes/view-manager.js +3 -3
  112. package/lib/common/client-side-events.d.ts +1 -0
  113. package/lib/common/client-side-events.js +3 -0
  114. package/lib/common/commands/client-command.d.ts +2 -1
  115. package/lib/common/commands/client-command.js +1 -0
  116. package/lib/common/commands/command-base.js +10 -10
  117. package/lib/common/commands/command-manager.js +2 -1
  118. package/lib/common/commands/command-states.js +3 -3
  119. package/lib/common/commands/dialogs/dialog-spell-checker-command.js +3 -3
  120. package/lib/common/commands/document/print-document-on-client-command.js +4 -4
  121. package/lib/common/commands/fields/create-field-command.d.ts +4 -0
  122. package/lib/common/commands/fields/create-field-command.js +8 -0
  123. package/lib/common/commands/fields/open-hyperlink-command.js +3 -2
  124. package/lib/common/commands/floating-objects/floating-object-drag-drop-change-position-command.js +1 -1
  125. package/lib/common/commands/floating-objects/insert-anchored-text-box-command.js +1 -1
  126. package/lib/common/commands/ruler/toggle-show-horizontal-ruler-command.js +3 -1
  127. package/lib/common/commands/text/change-text-case-commands.d.ts +1 -1
  128. package/lib/common/event-manager.js +4 -4
  129. package/lib/common/formats/html/export/html-document-exporter.js +1 -1
  130. package/lib/common/formats/html/export/html-export.d.ts +7 -1
  131. package/lib/common/formats/html/export/html-export.js +38 -38
  132. package/lib/common/formats/html/import/html-importer.d.ts +1 -1
  133. package/lib/common/formats/html/import/html-importer.js +12 -12
  134. package/lib/common/formats/html/import/html-model-inserter.js +4 -4
  135. package/lib/common/formats/html/import/importers/base.js +1 -1
  136. package/lib/common/formats/html/import/importers/list-base.js +4 -4
  137. package/lib/common/formats/html/import/utils/character-properties-utils.js +4 -4
  138. package/lib/common/formats/i-document-importer.d.ts +2 -2
  139. package/lib/common/formats/pdf/exporter.js +3 -3
  140. package/lib/common/formats/pdf/interfaces.d.ts +2 -2
  141. package/lib/common/formats/rtf/export/exporter.js +1 -1
  142. package/lib/common/formats/rtf/export/exporters/rtf-anchored-picture-run-exporter.js +5 -5
  143. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.d.ts +1 -1
  144. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.js +2 -2
  145. package/lib/common/formats/rtf/export/rtf-builder.d.ts +2 -2
  146. package/lib/common/formats/rtf/import/destination/base/destination.d.ts +4 -4
  147. package/lib/common/formats/rtf/import/destination/base/destination.js +1 -1
  148. package/lib/common/formats/rtf/import/destination/base/skip-destination.js +3 -3
  149. package/lib/common/formats/rtf/import/destination/base/string-property-base-destination.js +2 -2
  150. package/lib/common/formats/rtf/import/destination/base/string-property-destination.js +2 -2
  151. package/lib/common/formats/rtf/import/destination/base/unicode-destination.js +2 -2
  152. package/lib/common/formats/rtf/import/destination/fields/field-sub-destination.js +1 -1
  153. package/lib/common/formats/rtf/import/destination/fields/table-content-field-destination.js +1 -1
  154. package/lib/common/formats/rtf/import/destination/font-table-destination.js +3 -3
  155. package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-paragraph-numbering.js +1 -1
  156. package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-section-numbering-level.js +1 -1
  157. package/lib/common/formats/rtf/import/destination/picture/picture-destination.js +4 -4
  158. package/lib/common/formats/rtf/import/destination/shape/shape-properties-destination-base.js +2 -2
  159. package/lib/common/formats/rtf/import/destination/shape/shape-property-destination.js +2 -2
  160. package/lib/common/formats/rtf/import/destination/shape/shape-property-hsv-value-destination.js +2 -2
  161. package/lib/common/formats/rtf/import/destination/styles/character-style-destination.js +5 -5
  162. package/lib/common/formats/rtf/import/destination/styles/style-sheet-destination.js +3 -3
  163. package/lib/common/formats/rtf/import/destination/styles/table-style-destination.js +7 -7
  164. package/lib/common/formats/rtf/import/destination/sub-document/destination-sub-document.js +2 -2
  165. package/lib/common/formats/rtf/import/destination/sub-document/section-header-footer-destination-base.js +1 -1
  166. package/lib/common/formats/rtf/import/importers/character-importer.js +1 -1
  167. package/lib/common/formats/rtf/import/importers/field-importer.js +2 -2
  168. package/lib/common/formats/rtf/import/importers/paragraph-importer.js +4 -4
  169. package/lib/common/formats/rtf/import/importers/range-permission-importer.js +1 -1
  170. package/lib/common/formats/rtf/import/importers/section-importer.js +4 -4
  171. package/lib/common/formats/rtf/import/importers/styles/paragraph-style-importer.js +4 -4
  172. package/lib/common/formats/rtf/import/model/numbering-lists/rtf-old-list-level-info.js +10 -10
  173. package/lib/common/formats/rtf/import/rtf-import-data.js +13 -13
  174. package/lib/common/formats/txt/txt-exporter.js +1 -1
  175. package/lib/common/global-event-dispatcher.d.ts +1 -1
  176. package/lib/common/input-controller.d.ts +14 -1
  177. package/lib/common/input-controller.js +58 -20
  178. package/lib/common/interfaces/i-control-owner.d.ts +1 -0
  179. package/lib/common/layout/document-layout.js +1 -1
  180. package/lib/common/layout/main-structures/layout-boxes/layout-anchored-object-box.d.ts +1 -1
  181. package/lib/common/layout/main-structures/layout-boxes/layout-dash-box.js +1 -1
  182. package/lib/common/layout/main-structures/layout-boxes/layout-line-break-box.js +4 -4
  183. package/lib/common/layout/main-structures/layout-boxes/layout-numbering-list-box.js +10 -10
  184. package/lib/common/layout/main-structures/layout-boxes/layout-page-break-box.js +4 -4
  185. package/lib/common/layout/main-structures/layout-boxes/layout-space-box.js +1 -1
  186. package/lib/common/layout/main-structures/layout-row.js +1 -1
  187. package/lib/common/layout/table/table-cell-iterator.js +6 -6
  188. package/lib/common/layout-engine/hit-test-manager/hit-test-result.d.ts +1 -1
  189. package/lib/common/layout-engine/selection/selection-formatter.js +1 -1
  190. package/lib/common/layout-formatter/box/generator/box-infos-generator.js +3 -3
  191. package/lib/common/layout-formatter/changes/changes/layout-change-base.js +12 -12
  192. package/lib/common/layout-formatter/invalidator/layout-invalidator.js +3 -3
  193. package/lib/common/layout-formatter/managers/formatter-manager.d.ts +1 -1
  194. package/lib/common/layout-formatter/managers/formatter-manager.js +2 -2
  195. package/lib/common/layout-formatter/row/result.js +3 -3
  196. package/lib/common/layout-formatter/row/size-engine/row-formatting-info.js +2 -2
  197. package/lib/common/layout-formatter/row/size-engine/row-height-calculator.js +3 -3
  198. package/lib/common/layout-formatter/row/tab-info.js +8 -8
  199. package/lib/common/layout-formatter/table/borders/border-helper.d.ts +1 -1
  200. package/lib/common/layout-formatter/table/borders/border-helper.js +5 -5
  201. package/lib/common/layout-formatter/table/formatter.js +12 -12
  202. package/lib/common/layout-formatter/table/grid-engine/calculators/column-interval.js +3 -3
  203. package/lib/common/layout-formatter/table/grid-engine/calculators/grid-calculator.js +3 -3
  204. package/lib/common/layout-formatter/table/grid-engine/calculators/table-properties-cache.js +7 -7
  205. package/lib/common/layout-formatter/table/info/cell-info.js +8 -8
  206. package/lib/common/layout-formatter/table/info/row-info.js +1 -1
  207. package/lib/common/layout-formatter/table/info/table-info.js +17 -17
  208. package/lib/common/model/bookmarks.js +7 -7
  209. package/lib/common/model/borders/border-base.js +3 -3
  210. package/lib/common/model/caches/hash-based-cache.d.ts +1 -1
  211. package/lib/common/model/caches/hash-based-cache.js +2 -2
  212. package/lib/common/model/caches/images.js +11 -11
  213. package/lib/common/model/changes/change.d.ts +1 -1
  214. package/lib/common/model/changes/sub-document/list/paragraph-numbering-list-changed.js +1 -1
  215. package/lib/common/model/changes/sub-document/table/cell-property-changed.js +1 -1
  216. package/lib/common/model/changes/sub-document/table/property-changed.js +1 -1
  217. package/lib/common/model/changes/sub-document/table/row-property-changed.js +1 -1
  218. package/lib/common/model/character/character-property-descriptor.d.ts +1 -1
  219. package/lib/common/model/color/color-model-info.js +6 -6
  220. package/lib/common/model/creator/font-corrector.js +5 -5
  221. package/lib/common/model/document-model.js +10 -10
  222. package/lib/common/model/fields/field-request-manager.d.ts +1 -1
  223. package/lib/common/model/fields/field-request-manager.js +2 -2
  224. package/lib/common/model/fields/names.d.ts +2 -1
  225. package/lib/common/model/fields/names.js +1 -0
  226. package/lib/common/model/fields/parsers/field-code-parser-client-updating-base.js +1 -1
  227. package/lib/common/model/fields/parsers/field-code-parser-doc-variable.js +1 -1
  228. package/lib/common/model/fields/parsers/field-code-parser-hyperlink.js +1 -1
  229. package/lib/common/model/fields/parsers/field-code-parser-if.d.ts +39 -0
  230. package/lib/common/model/fields/parsers/field-code-parser-if.js +138 -0
  231. package/lib/common/model/fields/parsers/field-code-parser-merge-field.js +1 -1
  232. package/lib/common/model/fields/parsers/field-code-parser.d.ts +5 -4
  233. package/lib/common/model/fields/parsers/field-code-parser.js +6 -12
  234. package/lib/common/model/fields/tree-creator.js +3 -1
  235. package/lib/common/model/floating-objects/sizes.js +2 -2
  236. package/lib/common/model/fonts/control-font.js +9 -9
  237. package/lib/common/model/fonts/loader.js +1 -1
  238. package/lib/common/model/footnotes/footnote.d.ts +1 -1
  239. package/lib/common/model/history/base/history-item.js +6 -6
  240. package/lib/common/model/history/base/interval-based-history-item.js +2 -2
  241. package/lib/common/model/history/base/position-based-history-item.js +2 -2
  242. package/lib/common/model/history/items/floating-objects/insert-anchored-picture-history-item.js +1 -0
  243. package/lib/common/model/history/items/insert-text-history-item.js +3 -3
  244. package/lib/common/model/history/items/switch-text-box-sub-documents-state-history-item.js +0 -1
  245. package/lib/common/model/history/selection/scroll-history-item.js +3 -3
  246. package/lib/common/model/history/selection/selection-history-item.js +3 -3
  247. package/lib/common/model/json/importers/sub-document/run-importers.d.ts +2 -2
  248. package/lib/common/model/manipulators/base-manipulator.js +2 -2
  249. package/lib/common/model/manipulators/document/sub-document-inserter.js +6 -6
  250. package/lib/common/model/manipulators/model-manipulator.js +1 -1
  251. package/lib/common/model/manipulators/picture-manipulator/insert-picture-manipulator-params.js +1 -1
  252. package/lib/common/model/manipulators/picture-manipulator/loader/image-loading-options.d.ts +1 -1
  253. package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.d.ts +1 -1
  254. package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.js +1 -1
  255. package/lib/common/model/manipulators/range/create-range-copy-operation.js +3 -3
  256. package/lib/common/model/manipulators/range/remove-interval-operation.js +8 -2
  257. package/lib/common/model/manipulators/tables/insert-table-cell-operation.js +1 -1
  258. package/lib/common/model/manipulators/tables/insert-table-row-operation.js +1 -1
  259. package/lib/common/model/manipulators/tables/merge-table-cells-operation.js +1 -1
  260. package/lib/common/model/manipulators/tables/table-normalizator.d.ts +2 -2
  261. package/lib/common/model/manipulators/text-box-manipulator.d.ts +1 -1
  262. package/lib/common/model/manipulators/text-box-manipulator.js +2 -1
  263. package/lib/common/model/options/fields.d.ts +1 -0
  264. package/lib/common/model/options/fields.js +3 -1
  265. package/lib/common/model/options/pdf.d.ts +2 -2
  266. package/lib/common/model/options/rich-options.js +3 -3
  267. package/lib/common/model/paragraph/paragraph-property-descriptors.d.ts +1 -1
  268. package/lib/common/model/paragraph/paragraph.js +1 -1
  269. package/lib/common/model/position/linked-interval.js +4 -4
  270. package/lib/common/model/range-permissions.js +3 -3
  271. package/lib/common/model/runs/anchored-picture-run.js +4 -4
  272. package/lib/common/model/runs/inline-picture-run.d.ts +1 -1
  273. package/lib/common/model/runs/inline-picture-run.js +1 -1
  274. package/lib/common/model/runs/run-base.js +4 -4
  275. package/lib/common/model/section/section-property-descriptor.d.ts +1 -1
  276. package/lib/common/model/shadings/shading-info.js +3 -3
  277. package/lib/common/model/styles-manager.d.ts +1 -1
  278. package/lib/common/model/tables/main-structures/table-row.js +1 -1
  279. package/lib/common/mouse-handler/base/manipulator-handler-state-base.js +2 -2
  280. package/lib/common/mouse-handler/mouse-handler/mouse-handler-drag-column-or-row-state.d.ts +1 -1
  281. package/lib/common/rich-edit-core.js +11 -11
  282. package/lib/common/rich-utils/debug/runtime-template-model-creator.js +6 -6
  283. package/lib/common/scroll/model-states.d.ts +1 -1
  284. package/lib/common/scroll/model-states.js +4 -4
  285. package/lib/common/selection/selected-cells-engine.js +12 -12
  286. package/lib/common/selection/selection-intervals-info.js +7 -7
  287. package/lib/common/selection/selection-state.js +5 -5
  288. package/lib/common/selection/selection.js +15 -14
  289. package/lib/common/ui/quick-search-panel.js +1 -1
  290. package/lib/common/ui/ruler/controls/base.js +1 -1
  291. package/lib/common/ui/ruler/controls/column.js +1 -1
  292. package/lib/common/ui/ruler/controls/divisions.js +1 -1
  293. package/lib/common/ui/ruler/controls/indent/first-line.js +7 -7
  294. package/lib/common/ui/ruler/controls/indent/left.js +6 -6
  295. package/lib/common/ui/ruler/controls/indent/right.js +7 -7
  296. package/lib/common/ui/ruler/controls/margin/left.js +4 -4
  297. package/lib/common/ui/ruler/controls/margin/right.js +1 -1
  298. package/lib/common/ui/ruler/controls/owner.js +1 -1
  299. package/lib/common/ui/ruler/controls/ruler.js +5 -5
  300. package/lib/common/ui/ruler/controls/tab/tab-type.js +5 -5
  301. package/lib/common/ui/ruler/controls/tab/tab.js +7 -7
  302. package/lib/common/ui/ruler/controls/tab/utils.d.ts +2 -2
  303. package/lib/common/ui/ruler/controls/tab/utils.js +5 -5
  304. package/lib/common/ui/ruler/controls/table.js +1 -1
  305. package/lib/common/ui/ruler/controls/vertical-line.d.ts +1 -2
  306. package/lib/common/ui/ruler/controls/vertical-line.js +2 -2
  307. package/lib/common/ui/ruler/controls/wrapper.js +1 -1
  308. package/lib/common/ui/ruler/manager.js +19 -19
  309. package/lib/common/ui/ruler/model-data.d.ts +8 -2
  310. package/lib/common/ui/ruler/model-data.js +10 -4
  311. package/lib/common/ui/ruler/ruler.js +4 -3
  312. package/lib/common/utils/utils.d.ts +8 -1
  313. package/lib/common/utils/utils.js +39 -8
  314. package/lib/common/view-settings/views-settings.js +6 -6
  315. package/package.json +3 -3
@@ -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;
@@ -17,6 +17,6 @@ export declare class BaseTextBoxInfo {
17
17
  constructor(innerSubDocument: SubDocument, size: AnchorTextBoxSize, shape: Shape, anchorInfo: AnchorInfo, textBoxProperties: TextBoxProperties, containerProperties: NonVisualDrawingObjectInfo);
18
18
  }
19
19
  export declare class TextBoxManipulator extends RunsBaseManipulator {
20
- insertAnchoredTextBoxViaHistoty(subDocPos: SubDocumentPosition, charPropsBundle: MaskedCharacterPropertiesBundle, textBoxInfo: BaseTextBoxInfo): void;
20
+ insertAnchoredTextBoxViaHistory(subDocPos: SubDocumentPosition, charPropsBundle: MaskedCharacterPropertiesBundle, textBoxInfo: BaseTextBoxInfo): void;
21
21
  insertAnchoredTextBox(subDocPos: SubDocumentPosition, charPropsBundle: MaskedCharacterPropertiesBundle, textBoxInfo: BaseTextBoxInfo): AnchoredTextBoxRun;
22
22
  }
@@ -16,7 +16,7 @@ export class BaseTextBoxInfo {
16
16
  }
17
17
  }
18
18
  export class TextBoxManipulator extends RunsBaseManipulator {
19
- insertAnchoredTextBoxViaHistoty(subDocPos, charPropsBundle, textBoxInfo) {
19
+ insertAnchoredTextBoxViaHistory(subDocPos, charPropsBundle, textBoxInfo) {
20
20
  this.history.addAndRedo(new InsertAnchoredTextBoxHistoryItem(this.modelManipulator, subDocPos, charPropsBundle, textBoxInfo));
21
21
  }
22
22
  insertAnchoredTextBox(subDocPos, charPropsBundle, textBoxInfo) {
@@ -33,6 +33,7 @@ export class TextBoxManipulator extends RunsBaseManipulator {
33
33
  let textBoxSubDoc = textBoxInfo.innerSubDocument ?
34
34
  textBoxInfo.innerSubDocument :
35
35
  this.model.createSubDocument(SubDocumentInfoType.TextBox, subDocument.id);
36
+ textBoxInfo.innerSubDocument = textBoxSubDoc;
36
37
  textBoxRun.subDocId = textBoxSubDoc.id;
37
38
  subDocument.chunks[insertedRun.chunkIndex].textRuns[insertedRun.runIndex].paragraph.length++;
38
39
  this.modelManipulator.notifyModelChanged(new AnchoredTextBoxInsertedSubDocumentChange(subDocument.id, textBoxRun.anchoredObjectID, textBoxRun.subDocId, insertPositionAtStartDocument, textBoxInfo.anchorInfo, textBoxRun.containerProperties));
@@ -6,6 +6,7 @@ export declare class FieldsSettings {
6
6
  defaultTimeFormat: string;
7
7
  defaultDateFormat: string;
8
8
  openHyperlinkOnClick: boolean;
9
+ allowedHyperlinkUriSchemes: string[];
9
10
  keepHyperlinkResultForInvalidReference: boolean;
10
11
  createHyperlinkTooltip: (hyperlinkTooltip: string, hint: string) => string;
11
12
  constructor();
@@ -1,6 +1,7 @@
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;
6
7
  this.updateFieldsBeforePrint = true;
@@ -13,7 +14,6 @@ export class FieldsSettings {
13
14
  return `${hyperlinkTooltip}${hint}`;
14
15
  };
15
16
  }
16
- ;
17
17
  copyFrom(obj) {
18
18
  if (isDefined(obj.updateFieldsBeforePrint))
19
19
  this.updateFieldsBeforePrint = obj.updateFieldsBeforePrint;
@@ -29,6 +29,8 @@ export class FieldsSettings {
29
29
  this.keepHyperlinkResultForInvalidReference = obj.keepHyperlinkResultForInvalidReference;
30
30
  if (isDefined(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '')
31
31
  this.createHyperlinkTooltip = convertToFunction(obj.createHyperlinkTooltip);
32
+ if (isDefined(obj.allowedHyperlinkUriSchemes))
33
+ this.allowedHyperlinkUriSchemes = obj.allowedHyperlinkUriSchemes;
32
34
  }
33
35
  clone() {
34
36
  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;
@@ -95,6 +95,12 @@ export class Options {
95
95
  }
96
96
  }
97
97
  export class Creator {
98
+ get documentModel() { ListUtils.addListOnTail(this.idMap.createdVariables, this.str); return this.idMap.createdVariables.join("\r\n"); }
99
+ get tables() { return this.subDocument.tables; }
100
+ get table() { return this.tables[this.tblIndex]; }
101
+ static create(model, layout = null, options = new Options()) {
102
+ return new Creator(model, layout, options).documentModel;
103
+ }
98
104
  constructor(model, layout = null, options = new Options()) {
99
105
  this.layout = layout;
100
106
  this.subDocument = model.mainSubDocument;
@@ -131,12 +137,6 @@ export class Creator {
131
137
  this.fillPage(p);
132
138
  this.str.push(`], model).getLayout();`);
133
139
  }
134
- get documentModel() { ListUtils.addListOnTail(this.idMap.createdVariables, this.str); return this.idMap.createdVariables.join("\r\n"); }
135
- get tables() { return this.subDocument.tables; }
136
- get table() { return this.tables[this.tblIndex]; }
137
- static create(model, layout = null, options = new Options()) {
138
- return new Creator(model, layout, options).documentModel;
139
- }
140
140
  static getSubDocumentVariableName(sd) {
141
141
  if (sd.isMain())
142
142
  return "subDocument";
@@ -4,7 +4,7 @@ import { ScrollTopInfo } from '../canvas/canvas-manager';
4
4
  import { CanvasSizeInfo } from '../canvas/canvas-size-info';
5
5
  import { Selection } from '../selection/selection';
6
6
  import { ICanvasState } from './canvas-states';
7
- export declare type GetVertivalOffset = (sizes: CanvasSizeInfo) => number;
7
+ export type GetVertivalOffset = (sizes: CanvasSizeInfo) => number;
8
8
  export declare enum RelativePosition {
9
9
  Top = 0,
10
10
  Bottom = 1,
@@ -21,15 +21,15 @@ export class ScrollState {
21
21
  get nothing() { return new ModelStateEmpty(); }
22
22
  }
23
23
  export class ModelStateByModelPosition {
24
+ get subDocument() {
25
+ var _a;
26
+ return this._subDocument = (_a = this._subDocument) === null || _a === void 0 ? void 0 : _a.getActualSubDocument();
27
+ }
24
28
  constructor(subDocument, endOfLine, pageIndex) {
25
29
  this._subDocument = subDocument;
26
30
  this.endOfLine = endOfLine;
27
31
  this.pageIndex = pageIndex;
28
32
  }
29
- get subDocument() {
30
- var _a;
31
- return this._subDocument = (_a = this._subDocument) === null || _a === void 0 ? void 0 : _a.getActualSubDocument();
32
- }
33
33
  getModelPosition() {
34
34
  return this.modelPosition;
35
35
  }
@@ -8,11 +8,11 @@ import { CellGridInfoManager } from '../layout-formatter/table/grid-engine/cell-
8
8
  import { Table, TablePosition } from '../model/tables/main-structures/table';
9
9
  import { TableCellMergingState } from '../model/tables/secondary-structures/table-base-structures';
10
10
  export class SelectedTableRowInfo {
11
+ get row() { return this.cells[0].cell.parentRow; }
11
12
  constructor(rowIndex, cells) {
12
13
  this.rowIndex = rowIndex;
13
14
  this.cells = cells;
14
15
  }
15
- get row() { return this.cells[0].cell.parentRow; }
16
16
  get isSeries() {
17
17
  return ListUtils.allOf(this.cells, (cellInfo, cellInd) => cellInfo.cellIndex == this.cells[cellInd - 1].cellIndex + 1, 1);
18
18
  }
@@ -27,16 +27,6 @@ export class SelectedTableCellInfo {
27
27
  }
28
28
  }
29
29
  export class TableSelectionData {
30
- constructor(info, rows) {
31
- this.info = info;
32
- this.rows = rows;
33
- if (!rows[0]) {
34
- this._isSquare = false;
35
- this._isSelectedEntireTable = false;
36
- this._withoutGapByRows = false;
37
- this._areCellsSelectedInSeries = false;
38
- }
39
- }
40
30
  get numRows() { return this.rows.length; }
41
31
  get startRowIndex() { return this.rows[0].rowIndex; }
42
32
  get isSquare() { return this._isSquare === undefined ? (this._isSquare = this.calculateIsSquare()) : this._isSquare; }
@@ -62,6 +52,16 @@ export class TableSelectionData {
62
52
  (this._areCellsSelectedInSeries = ListUtils.allOf(this.rows, (rowInfo, rowInd) => (rowInd == 0 || (rowInfo.rowIndex == this.rows[rowInd - 1].rowIndex + 1)) && rowInfo.isSeries)) :
63
53
  this._areCellsSelectedInSeries;
64
54
  }
55
+ constructor(info, rows) {
56
+ this.info = info;
57
+ this.rows = rows;
58
+ if (!rows[0]) {
59
+ this._isSquare = false;
60
+ this._isSelectedEntireTable = false;
61
+ this._withoutGapByRows = false;
62
+ this._areCellsSelectedInSeries = false;
63
+ }
64
+ }
65
65
  foreach(onEachRowCallback, onEachCellCallback) {
66
66
  for (let rowOffset = 0, rowInfo; rowInfo = this.rows[rowOffset]; rowOffset++) {
67
67
  onEachRowCallback(rowInfo);
@@ -99,13 +99,13 @@ export class TableSelectionData {
99
99
  }
100
100
  }
101
101
  export class SelectedTableInfo {
102
+ get isSelected() { return !!this.rawData.rows.length; }
102
103
  constructor(table, gridInfoManager, rawRowsData, extendedRowsData) {
103
104
  this.table = table;
104
105
  this.gridInfoManager = gridInfoManager;
105
106
  this.rawData = new TableSelectionData(this, rawRowsData);
106
107
  this.extendedData = new TableSelectionData(this, extendedRowsData);
107
108
  }
108
- get isSelected() { return !!this.rawData.rows.length; }
109
109
  }
110
110
  export class SelectedCellsCalculator {
111
111
  constructor() {
@@ -4,13 +4,6 @@ import { SubDocumentInterval, SubDocumentIntervals, SubDocumentPosition } from '
4
4
  import { SelectedCellsCalculator } from './selected-cells-engine';
5
5
  import { SelectedSpecialRunInfo } from './selected-special-run-info';
6
6
  export class SelectionIntervalsInfo {
7
- constructor(subDocument, intervals, lastIntervalIndex = intervals.length - 1) {
8
- this.specialRunInfo = new SelectedSpecialRunInfo();
9
- this.subDocument = subDocument;
10
- this._intervals = intervals;
11
- this.lastIntervalIndex = lastIntervalIndex;
12
- this._tableInfo = null;
13
- }
14
7
  resetTableInfo() {
15
8
  this._tableInfo = null;
16
9
  }
@@ -37,6 +30,13 @@ export class SelectionIntervalsInfo {
37
30
  get subDocPosition() { return new SubDocumentPosition(this.subDocument, this.position); }
38
31
  get multiselection() { return this.intervals.length > 1; }
39
32
  get isCollapsed() { return !this._intervals[1] && this._intervals[0].isCollapsed(); }
33
+ constructor(subDocument, intervals, lastIntervalIndex = intervals.length - 1) {
34
+ this.specialRunInfo = new SelectedSpecialRunInfo();
35
+ this.subDocument = subDocument;
36
+ this._intervals = intervals;
37
+ this.lastIntervalIndex = lastIntervalIndex;
38
+ this._tableInfo = null;
39
+ }
40
40
  static fromPosition(subDocument, position) {
41
41
  return new SelectionIntervalsInfo(subDocument, [new FixedInterval(position, 0)], 0);
42
42
  }
@@ -3,6 +3,11 @@ import { SelectionIntervalsInfo } from './selection-intervals-info';
3
3
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
4
4
  import { ListUtils } from '@devexpress/utils/lib/utils/list';
5
5
  export class SelectionState {
6
+ get interval() { return this.intervalsInfo.interval; }
7
+ ;
8
+ get anchorPostion() { return this.forwardDirection ? this.interval.start : this.interval.end; }
9
+ get activePostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
10
+ get reversedAnchorPostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
6
11
  constructor(intervalsInfo, forwardDirection, endOfLine, pageIndex) {
7
12
  this.forwardDirection = true;
8
13
  this.endOfLine = false;
@@ -13,11 +18,6 @@ export class SelectionState {
13
18
  this.endOfLine = endOfLine;
14
19
  this.pageIndex = pageIndex;
15
20
  }
16
- get interval() { return this.intervalsInfo.interval; }
17
- ;
18
- get anchorPostion() { return this.forwardDirection ? this.interval.start : this.interval.end; }
19
- get activePostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
20
- get reversedAnchorPostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
21
21
  setEndOfLine(endOfLine) {
22
22
  this.endOfLine = endOfLine;
23
23
  return this;
@@ -35,19 +35,6 @@ export class SetSelectionStateOptions {
35
35
  }
36
36
  }
37
37
  export class Selection extends BatchUpdatableObject {
38
- constructor(model, layout, activeSubDocument) {
39
- super();
40
- this.searchIntervals = [];
41
- this.misspelledIntervals = [];
42
- this.onChanged = new EventDispatcher();
43
- this.onSearchChanged = new EventDispatcher();
44
- this.onMisspelledSelectionChanged = new EventDispatcher();
45
- this.model = model;
46
- this.layout = layout;
47
- this.scrollManager = new ModelScrollManager();
48
- this._prevState = SelectionState.getDefault(activeSubDocument);
49
- this._state = SelectionState.getDefault(activeSubDocument);
50
- }
51
38
  get currState() { return this._state; }
52
39
  get keepX() { return this._state.keepX; }
53
40
  set keepX(val) { this._state.keepX = val; }
@@ -73,6 +60,19 @@ export class Selection extends BatchUpdatableObject {
73
60
  get specialRunInfo() { return this._state.intervalsInfo.specialRunInfo; }
74
61
  ;
75
62
  get tableInfo() { return this._state.intervalsInfo.tableInfo; }
63
+ constructor(model, layout, activeSubDocument) {
64
+ super();
65
+ this.searchIntervals = [];
66
+ this.misspelledIntervals = [];
67
+ this.onChanged = new EventDispatcher();
68
+ this.onSearchChanged = new EventDispatcher();
69
+ this.onMisspelledSelectionChanged = new EventDispatcher();
70
+ this.model = model;
71
+ this.layout = layout;
72
+ this.scrollManager = new ModelScrollManager();
73
+ this._prevState = SelectionState.getDefault(activeSubDocument);
74
+ this._state = SelectionState.getDefault(activeSubDocument);
75
+ }
76
76
  dispose() {
77
77
  this.onChanged.dispose();
78
78
  }
@@ -205,8 +205,9 @@ export class Selection extends BatchUpdatableObject {
205
205
  this.resetInputPositionIfNeeded();
206
206
  }
207
207
  shouldResetInputPosition() {
208
+ var _a;
208
209
  const currentState = this.getState();
209
- return currentState.intervalsInfo.subDocument.id != this.prevState.intervalsInfo.subDocument.id ||
210
+ return currentState.intervalsInfo.subDocument.id != ((_a = this.prevState.intervalsInfo.subDocument) === null || _a === void 0 ? void 0 : _a.id) ||
210
211
  !ListUtils.equals(currentState.intervalsInfo.intervals, this.prevState.intervalsInfo.intervals);
211
212
  }
212
213
  resetInputPositionIfNeeded() {
@@ -4,12 +4,12 @@ import { DomUtils } from '@devexpress/utils/lib/utils/dom';
4
4
  import { KeyCode, KeyUtils } from '@devexpress/utils/lib/utils/key';
5
5
  import { RichEditClientCommand } from '../commands/client-command';
6
6
  export class QuickSearchPanel {
7
+ get core() { return this.owner.core; }
7
8
  constructor(owner, searchManager) {
8
9
  this.owner = owner;
9
10
  this.searchManager = searchManager;
10
11
  this.initialize();
11
12
  }
12
- get core() { return this.owner.core; }
13
13
  dispose() {
14
14
  if (this.isVisible())
15
15
  this.onClose(true);