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
@@ -2,12 +2,12 @@ import { MapCreator } from '../../../../../../../../common/utils/map-creator';
2
2
  import { TableStyleDestination } from '../../table-style-destination';
3
3
  import { TablePropertiesDestinationCore } from './table-properties-destination-core';
4
4
  export class TablePropertiesDestination extends TablePropertiesDestinationCore {
5
- constructor(data, table) {
6
- super(data, table, table.properties);
7
- }
8
5
  get elementHandlerTable() {
9
6
  return TablePropertiesDestination.handlerTable;
10
7
  }
8
+ constructor(data, table) {
9
+ super(data, table, table.properties);
10
+ }
11
11
  static getThis(data) {
12
12
  return data.destinationStack.getThis();
13
13
  }
@@ -1,13 +1,13 @@
1
1
  import { ElementDestination } from '../../../destination';
2
2
  export class TablePropertiesLeafElementDestination extends ElementDestination {
3
+ get elementHandlerTable() {
4
+ return {};
5
+ }
3
6
  constructor(data, table, tableProperties) {
4
7
  super(data);
5
8
  this.table = table;
6
9
  this.tableProperties = tableProperties;
7
10
  }
8
- get elementHandlerTable() {
9
- return {};
10
- }
11
11
  static getProperties(data) {
12
12
  return data.destinationStack.getThis().tableProperties;
13
13
  }
@@ -18,6 +18,9 @@ import { TableRowDestination } from '../row/table-row-destination';
18
18
  import { TablePropertiesDestination } from './properties/table-properties-destination';
19
19
  import { TableGridDestination } from './table-grid-destination';
20
20
  export class TableDestination extends ElementDestination {
21
+ get elementHandlerTable() {
22
+ return TableDestination.handlerTable;
23
+ }
21
24
  constructor(data, parentCell = null) {
22
25
  super(data);
23
26
  this.table = new Table(this.data.subDocumentInfo.tableImporter.createDefaultTableProperties(), this.data.documentModel.stylesManager.getDefaultTableStyle());
@@ -25,9 +28,6 @@ export class TableDestination extends ElementDestination {
25
28
  this.table.parentCell = parentCell;
26
29
  this.tableGrid = [];
27
30
  }
28
- get elementHandlerTable() {
29
- return TableDestination.handlerTable;
30
- }
31
31
  static getThis(data) {
32
32
  return data.destinationStack.getThis();
33
33
  }
@@ -31,14 +31,14 @@ import { ColorTransformDestinationSaturationOffset } from './props/color-transfo
31
31
  import { ColorTransformDestinationShade } from './props/color-transform-destination-shade';
32
32
  import { ColorTransformDestinationTint } from './props/color-transform-destination-tint';
33
33
  export class DrawingColorPropertiesDestinationBase extends ElementDestination {
34
+ get elementHandlerTable() {
35
+ return DrawingColorPropertiesDestinationBase.handlerTable;
36
+ }
34
37
  constructor(data, color) {
35
38
  super(data);
36
39
  this.color = color;
37
40
  this.colorModelInfo = new DrawingColorModelInfo();
38
41
  }
39
- get elementHandlerTable() {
40
- return DrawingColorPropertiesDestinationBase.handlerTable;
41
- }
42
42
  static getThis(data) {
43
43
  return data.destinationStack.getThis();
44
44
  }
@@ -4,13 +4,6 @@ import { ElementDestination } from '../../destination';
4
4
  import { DrawingTextFontDestination } from './drawing-text-font-destination';
5
5
  import { OfficeThemeSupplementalFontSchemeDestination } from './office-theme-supplemental-font-scheme-destination';
6
6
  export class OfficeThemeFontCollectionSchemeDestination extends ElementDestination {
7
- constructor(data, fontPart) {
8
- super(data);
9
- this.hasLatin = false;
10
- this.hasEastAsian = false;
11
- this.hasComplexScript = false;
12
- this.fontPart = fontPart;
13
- }
14
7
  get elementHandlerTable() {
15
8
  return OfficeThemeFontCollectionSchemeDestination.handlerTable;
16
9
  }
@@ -26,6 +19,13 @@ export class OfficeThemeFontCollectionSchemeDestination extends ElementDestinati
26
19
  get fonts() {
27
20
  return this.fontPart.supplementalFonts;
28
21
  }
22
+ constructor(data, fontPart) {
23
+ super(data);
24
+ this.hasLatin = false;
25
+ this.hasEastAsian = false;
26
+ this.hasComplexScript = false;
27
+ this.fontPart = fontPart;
28
+ }
29
29
  static getThis(data) {
30
30
  return data.destinationStack.getThis();
31
31
  }
@@ -18,10 +18,6 @@ import { ShapeType } from '../../model/floating-object-import-info';
18
18
  import { ElementDestination, LeafElementDestination } from '../destination';
19
19
  import { TextBoxContentDestination } from '../drawing/drawing-destination';
20
20
  export class VMLShapeDestination extends ElementDestination {
21
- constructor(data, inlineObjectDestination) {
22
- super(data);
23
- this.inlineObjectDestination = inlineObjectDestination;
24
- }
25
21
  get elementHandlerTable() {
26
22
  return VMLShapeDestination.handlerTable;
27
23
  }
@@ -31,6 +27,10 @@ export class VMLShapeDestination extends ElementDestination {
31
27
  get style() {
32
28
  return this.inlineObjectDestination.style;
33
29
  }
30
+ constructor(data, inlineObjectDestination) {
31
+ super(data);
32
+ this.inlineObjectDestination = inlineObjectDestination;
33
+ }
34
34
  static getThis(data) {
35
35
  return data.destinationStack.getThis();
36
36
  }
@@ -211,15 +211,15 @@ export class AnchorLockDestination extends LeafElementDestination {
211
211
  }
212
212
  }
213
213
  export class VMLTextBoxDestination extends ElementDestination {
214
+ get elementHandlerTable() {
215
+ return VMLTextBoxDestination.handlerTable;
216
+ }
214
217
  constructor(data, floatingObjectImportInfo) {
215
218
  super(data);
216
219
  this.floatingObjectImportInfo = floatingObjectImportInfo;
217
220
  this.floatingObjectImportInfo.shapeType = ShapeType.TextBox;
218
221
  this.data.pushCurrentSubDocument(this.documentModel.createSubDocument(SubDocumentInfoType.TextBox, this.data.subDocument.id, true));
219
222
  }
220
- get elementHandlerTable() {
221
- return VMLTextBoxDestination.handlerTable;
222
- }
223
223
  static onTextBoxContent(data, _reader) {
224
224
  return new TextBoxContentDestination(data);
225
225
  }
@@ -6,12 +6,6 @@ import { MaskedCharacterPropertiesBundle } from '../../../../../common/rich-util
6
6
  import { ListUtils } from '@devexpress/utils/lib/utils/list';
7
7
  import { SearchUtils } from '@devexpress/utils/lib/utils/search';
8
8
  export class CharacterImporter {
9
- constructor(data) {
10
- this.data = data;
11
- this.resetProperties();
12
- if (!this.data.subDocument.chunks[0])
13
- this.data.subDocument.chunks = [new Chunk(this.data.subDocument.positionManager.registerPosition(0), '', true)];
14
- }
15
9
  get style() {
16
10
  if (!this._style)
17
11
  this.resetStyle();
@@ -21,6 +15,12 @@ export class CharacterImporter {
21
15
  this._style = value;
22
16
  }
23
17
  get charPropsBundle() { return new MaskedCharacterPropertiesBundle(this.properties, this.style); }
18
+ constructor(data) {
19
+ this.data = data;
20
+ this.resetProperties();
21
+ if (!this.data.subDocument.chunks[0])
22
+ this.data.subDocument.chunks = [new Chunk(this.data.subDocument.positionManager.registerPosition(0), '', true)];
23
+ }
24
24
  resetProperties() {
25
25
  this.properties = MaskedCharacterProperties.createDefault(this.data.documentModel);
26
26
  return this;
@@ -1,6 +1,6 @@
1
1
  export class CommentsImporter {
2
+ get comments() { return this.data.subDocumentInfo.comments; }
2
3
  constructor(data) {
3
4
  this.data = data;
4
5
  }
5
- get comments() { return this.data.subDocumentInfo.comments; }
6
6
  }
@@ -3,12 +3,12 @@ import { RichUtils } from '../../../../../common/model/rich-utils';
3
3
  import { FieldCodeEndRun, FieldCodeStartRun, FieldResultEndRun } from '../../../../../common/model/runs/simple-runs';
4
4
  import { ListUtils } from '@devexpress/utils/lib/utils/list';
5
5
  export class FieldImporter {
6
+ get fieldInfoStack() { return this.data.subDocumentInfo.fieldInfoStack; }
7
+ get lastField() { return this.fieldInfoStack.last; }
6
8
  constructor(data) {
7
9
  this.currIndex = 0;
8
10
  this.data = data;
9
11
  }
10
- get fieldInfoStack() { return this.data.subDocumentInfo.fieldInfoStack; }
11
- get lastField() { return this.fieldInfoStack.last; }
12
12
  applyToLastField(action) {
13
13
  const lastField = this.lastField;
14
14
  if (lastField)
@@ -2,10 +2,10 @@ import { TableCellProperties } from '../../../../../common/model/tables/properti
2
2
  import { TableProperties } from '../../../../../common/model/tables/properties/table-properties';
3
3
  import { TableRowProperties } from '../../../../../common/model/tables/properties/table-row-properties';
4
4
  export class TableImporter {
5
+ get isInsideTable() { return this.data.subDocumentInfo.tableStack.count > 0; }
5
6
  constructor(data) {
6
7
  this.data = data;
7
8
  }
8
- get isInsideTable() { return this.data.subDocumentInfo.tableStack.count > 0; }
9
9
  cancelTable(table) {
10
10
  const tables = this.data.subDocument.tables;
11
11
  tables.splice(tables.indexOf(table), 1);
@@ -3,9 +3,6 @@ import { OverrideListLevel } from '../../../../../common/model/numbering-lists/l
3
3
  import { ListLevelProperties } from '../../../../../common/model/numbering-lists/list-level-properties';
4
4
  import { MaskedParagraphProperties } from '../../../../../common/model/paragraph/paragraph-properties';
5
5
  export class OpenXmlListLevelOverride {
6
- constructor(documentModel) {
7
- this.documentModel = documentModel;
8
- }
9
6
  get newStart() { return this._newStart; }
10
7
  set newStart(val) {
11
8
  this._newStart = val;
@@ -13,6 +10,9 @@ export class OpenXmlListLevelOverride {
13
10
  if (this.level != null)
14
11
  this.applyStartOverride(this.level);
15
12
  }
13
+ constructor(documentModel) {
14
+ this.documentModel = documentModel;
15
+ }
16
16
  getOverrideListLevel() {
17
17
  if (this.level == null) {
18
18
  this.level = new OverrideListLevel(this.documentModel, MaskedCharacterProperties.createDefault(this.documentModel), MaskedParagraphProperties.createDefault(this.documentModel), new ListLevelProperties());
@@ -1,5 +1,5 @@
1
1
  import { OpenXmlListLevelOverride } from './open-xml-list-level-override';
2
- export declare type OpenXmlListLevelOverrideCollection = OpenXmlListLevelOverride[];
2
+ export type OpenXmlListLevelOverrideCollection = OpenXmlListLevelOverride[];
3
3
  export declare class OpenXmlNumberingListInfo {
4
4
  id: number;
5
5
  abstractNumberingListId: string;
@@ -34,6 +34,12 @@ export class NamespaceInfo {
34
34
  }
35
35
  }
36
36
  export class DocxConstants {
37
+ get wordProcessingNamespaceConst() { return this.namespaces[DocxNsType.WordProcessing].namespace; }
38
+ get relsNamespaceConst() { return this.namespaces[DocxNsType.Rels].namespace; }
39
+ get officeNamespace() { return this.namespaces[DocxNsType.Office].namespace; }
40
+ get w14NamespaceConst() { return this.namespaces[DocxNsType.w14].namespace; }
41
+ get w15NamespaceConst() { return this.namespaces[DocxNsType.w15].namespace; }
42
+ get drawingMLNamespaceConst() { return this.namespaces[DocxNsType.DrawingML].namespace; }
37
43
  constructor() {
38
44
  this.namespaces = new MapCreator()
39
45
  .add(DocxNsType.DrawingMLPicture, new NamespaceInfo(DocxConstants.drawingMLPicturePrefix, DocxConstants.drawingMLPictureNamespace))
@@ -65,12 +71,6 @@ export class DocxConstants {
65
71
  this.rels = new DocxRelationsConstants(DocxConstants.openXMLOfficeDocumentPrefix);
66
72
  this.fillMaps();
67
73
  }
68
- get wordProcessingNamespaceConst() { return this.namespaces[DocxNsType.WordProcessing].namespace; }
69
- get relsNamespaceConst() { return this.namespaces[DocxNsType.Rels].namespace; }
70
- get officeNamespace() { return this.namespaces[DocxNsType.Office].namespace; }
71
- get w14NamespaceConst() { return this.namespaces[DocxNsType.w14].namespace; }
72
- get w15NamespaceConst() { return this.namespaces[DocxNsType.w15].namespace; }
73
- get drawingMLNamespaceConst() { return this.namespaces[DocxNsType.DrawingML].namespace; }
74
74
  getNamespace(type) {
75
75
  return this.namespaces[type].namespace;
76
76
  }
@@ -26,16 +26,23 @@ var ElementStages;
26
26
  ElementStages[ElementStages["ToNextNode"] = 3] = "ToNextNode";
27
27
  })(ElementStages || (ElementStages = {}));
28
28
  class ElementInfo {
29
+ get localName() { return this.node.localName; }
30
+ get name() { return this.node.nodeName; }
31
+ get namespaceURI() { return this.node.namespaceURI; }
29
32
  constructor(node, nodeType) {
30
33
  this.elementStage = ElementStages.ElementStart;
31
34
  this.node = node;
32
35
  this.nodeType = nodeType;
33
36
  }
34
- get localName() { return this.node.localName; }
35
- get name() { return this.node.nodeName; }
36
- get namespaceURI() { return this.node.namespaceURI; }
37
37
  }
38
38
  export class XmlReader {
39
+ get elementInfo() { return this.elementStack.last; }
40
+ get nodeType() { return this.elementInfo.nodeType; }
41
+ get localName() { return this.elementInfo.localName; }
42
+ get name() { return this.elementInfo.name; }
43
+ get namespaceURI() { return this.elementInfo.namespaceURI; }
44
+ get attributes() { return this.elementInfo.node.attributes; }
45
+ get value() { return this.elementInfo.node.nodeValue; }
39
46
  constructor(str, options, filePath) {
40
47
  str = StringUtils.trimStart(str);
41
48
  this.filePath = filePath;
@@ -46,13 +53,6 @@ export class XmlReader {
46
53
  this.handleNewNode(this.document.firstChild);
47
54
  this.options = options;
48
55
  }
49
- get elementInfo() { return this.elementStack.last; }
50
- get nodeType() { return this.elementInfo.nodeType; }
51
- get localName() { return this.elementInfo.localName; }
52
- get name() { return this.elementInfo.name; }
53
- get namespaceURI() { return this.elementInfo.namespaceURI; }
54
- get attributes() { return this.elementInfo.node.attributes; }
55
- get value() { return this.elementInfo.node.nodeValue; }
56
56
  getAttribute(name) {
57
57
  return this.elementInfo.node.getAttribute(name);
58
58
  }
@@ -13,7 +13,7 @@ import { Ribbon } from './public/ribbon/ribbon';
13
13
  import { PrintMode, RichEdit, ViewType } from './public/rich-edit';
14
14
  import { IInterval } from './model-api/interval';
15
15
  import { SubDocumentClientApi } from './api/sub-document';
16
- export declare type InnerEventHandlers = EventHandlers & {
16
+ export type InnerEventHandlers = EventHandlers & {
17
17
  init?: string | ((s: RichEdit, e: EventArgs) => void);
18
18
  };
19
19
  export interface IRichEditSettings {
@@ -80,6 +80,8 @@ export interface IRichEditFieldsSettings {
80
80
  defaultDateFormat?: string;
81
81
  openHyperlinkOnClick?: boolean;
82
82
  keepHyperlinkResultForInvalidReference?: boolean;
83
+ disableRelativeHyperlinkUri?: boolean;
84
+ allowedHyperlinkUriProtocols?: string[];
83
85
  createHyperlinkTooltip?: (hyperlinkTooltip: string, hint: string) => string;
84
86
  }
85
87
  export interface IRichEditRangePermissionsSettings {
@@ -6,7 +6,7 @@ export declare class ApiParameterDescriptor<T, TResult> {
6
6
  constructor(parameterName: string, parameterType: string, typeAssertion: (value: any) => boolean, getResult: (value: T) => TResult);
7
7
  getStringRepresentation(canBeUndefined: boolean): string;
8
8
  }
9
- export declare type ArgsCheckerParameterIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
9
+ export type ArgsCheckerParameterIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
10
10
  export declare class ApiParametersChecker {
11
11
  static check<TResult>(value: any, parameterIndex: ArgsCheckerParameterIndex, canBeUndefined: boolean, pairs: Array<ApiParameterDescriptor<any, TResult>>): TResult;
12
12
  static showErrorString<TResult>(parameterIndex: number, canBeUndefined: boolean, pairs: Array<ApiParameterDescriptor<any, TResult>>): string;
@@ -1,10 +1,6 @@
1
1
  import { FontLoadStatus } from '../../../common/model/fonts/control-font';
2
2
  import { ControlFontsLoader } from '../../../common/model/fonts/loader';
3
3
  export class ControlFontApi {
4
- constructor(processor, font) {
5
- this._font = font;
6
- this._processor = processor;
7
- }
8
4
  get fontFamily() { return this._font.fontFamily; }
9
5
  get status() {
10
6
  switch (this._font.status) {
@@ -19,6 +15,10 @@ export class ControlFontApi {
19
15
  get sourceUrls() { return this._font.allSourceUrls(this._processor.modelManager.richOptions.fonts.defaultFolder); }
20
16
  set sourceUrls(val) { this._font.sourceUrls = val; }
21
17
  set sourceUrl(val) { this._font.sourceUrls = [val]; }
18
+ constructor(processor, font) {
19
+ this._font = font;
20
+ this._processor = processor;
21
+ }
22
22
  load(reloadFailed = false, callback) {
23
23
  if (!callback)
24
24
  callback = () => { };
@@ -1,15 +1,15 @@
1
1
  import { ModelIterator } from '../../../common/model/model-iterator';
2
2
  import { getImageApiFromRun } from './images';
3
3
  export class ImageIteratorApi {
4
+ get image() {
5
+ return this._currImage;
6
+ }
4
7
  constructor(processor, subDocument, pos) {
5
8
  this._processor = processor;
6
9
  this._subDocument = subDocument;
7
10
  this._iterator = new ModelIterator(subDocument, true);
8
11
  this._iterator.setPosition(pos);
9
12
  }
10
- get image() {
11
- return this._currImage;
12
- }
13
13
  next() {
14
14
  do {
15
15
  this._currImage = getImageApiFromRun(this._processor, this._subDocument, this._iterator);
@@ -1,10 +1,10 @@
1
1
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
2
2
  export class IntervalApi {
3
+ get end() { return this.start + this.length; }
3
4
  constructor(start, length) {
4
5
  this.start = start;
5
6
  this.length = Math.max(0, length);
6
7
  }
7
- get end() { return this.start + this.length; }
8
8
  }
9
9
  export function convertToIntervalApi(curr) {
10
10
  return new IntervalApi(curr.start, curr.length);
@@ -1,7 +1,4 @@
1
1
  export class AuthenticationOptionsApi {
2
- constructor(native) {
3
- this._native = native;
4
- }
5
2
  get userName() {
6
3
  return this._native.core.modelManager.richOptions.documentProtection.authenticationUserName;
7
4
  }
@@ -16,4 +13,7 @@ export class AuthenticationOptionsApi {
16
13
  this._native.core.modelManager.richOptions.documentProtection.authenticationGroup = value;
17
14
  this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged();
18
15
  }
16
+ constructor(native) {
17
+ this._native = native;
18
+ }
19
19
  }
@@ -1,7 +1,4 @@
1
1
  export class RangePermissionOptionsApi {
2
- constructor(native) {
3
- this._native = native;
4
- }
5
2
  get highlightRanges() {
6
3
  return this._native.core.modelManager.richOptions.documentProtection.highlightRanges;
7
4
  }
@@ -38,4 +35,7 @@ export class RangePermissionOptionsApi {
38
35
  this._native.core.modelManager.richOptions.documentProtection.rangeHighlightBracketsColor = value;
39
36
  this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged();
40
37
  }
38
+ constructor(native) {
39
+ this._native = native;
40
+ }
41
41
  }
@@ -1,4 +1,4 @@
1
- import { ActiveSubDocumentChangedEvent, AutoCorrectEvent, CalculateDocumentVariableAsyncEvent, CalculateDocumentVariableEvent, CharacterPropertiesChangedEvent, CommandStateChangedEvent, ContentInsertedEvent, ContentRemovedEvent, CustomCommandExecutedEvent, DocumentChangedEvent, DocumentFormattedEvent, DocumentLoadedEvent, GotFocusEvent, HyperlinkClickEvent, KeyDownEvent, KeyUpEvent, LostFocusEvent, ParagraphPropertiesChangedEvent, PdfExportedEvent, PdfExportingEvent, PointerDownEvent, PointerUpEvent, ContextMenuShowingEvent, SavedEvent, SavingEvent, SelectionChangedEvent } from './events';
1
+ import { ActiveSubDocumentChangedEvent, AutoCorrectEvent, CalculateDocumentVariableAsyncEvent, CalculateDocumentVariableEvent, CharacterPropertiesChangedEvent, CommandStateChangedEvent, ContentInsertedEvent, ContentRemovedEvent, CustomCommandExecutedEvent, DocumentChangedEvent, DocumentFormattedEvent, DocumentLoadedEvent, GotFocusEvent, HyperlinkClickEvent, KeyDownEvent, KeyUpEvent, LostFocusEvent, ParagraphPropertiesChangedEvent, PdfExportedEvent, PdfExportingEvent, PointerDownEvent, PointerUpEvent, ContextMenuShowingEvent, SavedEvent, SavingEvent, SelectionChangedEvent, HorizontalRulerVisibleChangedEvent } from './events';
2
2
  export declare class Events {
3
3
  readonly selectionChanged: SelectionChangedEvent;
4
4
  readonly documentLoaded: DocumentLoadedEvent;
@@ -26,6 +26,7 @@ export declare class Events {
26
26
  readonly commandStateChanged: CommandStateChangedEvent;
27
27
  readonly calculateDocumentVariableAsync: CalculateDocumentVariableAsyncEvent;
28
28
  readonly contextMenuShowing: ContextMenuShowingEvent;
29
+ readonly horizontalRulerVisibleChanged: HorizontalRulerVisibleChangedEvent;
29
30
  constructor();
30
31
  clear(): void;
31
32
  }
@@ -1,4 +1,4 @@
1
- import { ActiveSubDocumentChangedEvent, AutoCorrectEvent, CalculateDocumentVariableAsyncEvent, CalculateDocumentVariableEvent, CharacterPropertiesChangedEvent, CommandStateChangedEvent, ContentInsertedEvent, ContentRemovedEvent, CustomCommandExecutedEvent, DocumentChangedEvent, DocumentFormattedEvent, DocumentLoadedEvent, GotFocusEvent, HyperlinkClickEvent, KeyDownEvent, KeyUpEvent, LostFocusEvent, ParagraphPropertiesChangedEvent, PdfExportedEvent, PdfExportingEvent, PointerDownEvent, PointerUpEvent, ContextMenuShowingEvent, SavedEvent, SavingEvent, SelectionChangedEvent } from './events';
1
+ import { ActiveSubDocumentChangedEvent, AutoCorrectEvent, CalculateDocumentVariableAsyncEvent, CalculateDocumentVariableEvent, CharacterPropertiesChangedEvent, CommandStateChangedEvent, ContentInsertedEvent, ContentRemovedEvent, CustomCommandExecutedEvent, DocumentChangedEvent, DocumentFormattedEvent, DocumentLoadedEvent, GotFocusEvent, HyperlinkClickEvent, KeyDownEvent, KeyUpEvent, LostFocusEvent, ParagraphPropertiesChangedEvent, PdfExportedEvent, PdfExportingEvent, PointerDownEvent, PointerUpEvent, ContextMenuShowingEvent, SavedEvent, SavingEvent, SelectionChangedEvent, HorizontalRulerVisibleChangedEvent } from './events';
2
2
  export class Events {
3
3
  constructor() {
4
4
  this.selectionChanged = new SelectionChangedEvent();
@@ -27,6 +27,7 @@ export class Events {
27
27
  this.commandStateChanged = new CommandStateChangedEvent();
28
28
  this.calculateDocumentVariableAsync = new CalculateDocumentVariableAsyncEvent();
29
29
  this.contextMenuShowing = new ContextMenuShowingEvent();
30
+ this.horizontalRulerVisibleChanged = new HorizontalRulerVisibleChangedEvent();
30
31
  }
31
32
  clear() {
32
33
  this.selectionChanged.clearHandlers();
@@ -55,5 +56,6 @@ export class Events {
55
56
  this.commandStateChanged.clearHandlers();
56
57
  this.contextMenuShowing.clearHandlers();
57
58
  this.calculateDocumentVariableAsync.clearHandlers();
59
+ this.horizontalRulerVisibleChanged.clearHandlers();
58
60
  }
59
61
  }
@@ -302,4 +302,4 @@ export declare enum ContextMenuCommandId {
302
302
  FloatingObjectSendBehindText = 366,
303
303
  SelectAll = 106
304
304
  }
305
- export declare type CommandId = FileTabCommandId | HomeTabCommandId | InsertTabCommandId | PageLayoutTabCommandId | ReferencesTabCommandId | MailMergeTabCommandId | ViewTabCommandId | HeaderAndFooterTabCommandId | TableDesignTabCommandId | TableLayoutTabCommandId | FloatingObjectsFormatTabCommandId | ContextMenuCommandId;
305
+ export type CommandId = FileTabCommandId | HomeTabCommandId | InsertTabCommandId | PageLayoutTabCommandId | ReferencesTabCommandId | MailMergeTabCommandId | ViewTabCommandId | HeaderAndFooterTabCommandId | TableDesignTabCommandId | TableLayoutTabCommandId | FloatingObjectsFormatTabCommandId | ContextMenuCommandId;
@@ -1,13 +1,13 @@
1
1
  import { ClientContextMenuBar } from '../../bars/context-menu';
2
2
  import { getContextMenuItem, insertItemAfter, insertItemBefore, removeContextMenuItem } from './helpers';
3
3
  export class ContextMenuRuntime {
4
- constructor(native) {
5
- this._native = native;
6
- }
7
4
  get enabled() { return this._native.contextMenuSettings.enabled; }
8
5
  set enabled(value) { this._native.contextMenuSettings.enabled = value; }
9
6
  get items() { return this._native.barHolder.contextMenu.initialItems; }
10
7
  ;
8
+ constructor(native) {
9
+ this._native = native;
10
+ }
11
11
  getItem(id) {
12
12
  return getContextMenuItem(this.items, id);
13
13
  }
@@ -28,12 +28,12 @@ export class ContextMenuRuntime {
28
28
  }
29
29
  }
30
30
  export class SimpleContextMenu {
31
+ get items() { return this._items ? this._items : (this._items = this._getItems()); }
32
+ set items(value) { this._items = value; }
31
33
  constructor(enabled = true, getItems = () => ClientContextMenuBar.getInitialItems()) {
32
34
  this.enabled = enabled;
33
35
  this._getItems = getItems;
34
36
  }
35
- get items() { return this._items ? this._items : (this._items = this._getItems()); }
36
- set items(value) { this._items = value; }
37
37
  getItem(id) {
38
38
  return getContextMenuItem(this.items, id);
39
39
  }
@@ -59,6 +59,8 @@ export declare class SavingEvent extends RichEditEvent<SavingEventArgs> {
59
59
  }
60
60
  export declare class SavedEvent extends RichEditEvent<SavedEventArgs> {
61
61
  }
62
+ export declare class HorizontalRulerVisibleChangedEvent extends RichEditEvent<HorizontalRulerVisibleChangedEventArgs> {
63
+ }
62
64
  export declare class CustomCommandExecutedEvent extends RichEditEvent<CustomCommandExecutedEventArgs> {
63
65
  }
64
66
  export declare class PdfExportingEvent extends RichEditEvent<PdfExportingEventArgs> {
@@ -122,6 +124,10 @@ export declare class SavedEventArgs extends EventArgs {
122
124
  reason: string;
123
125
  constructor(success: boolean, reason: string);
124
126
  }
127
+ export declare class HorizontalRulerVisibleChangedEventArgs extends EventArgs {
128
+ horizontalRulerVisible: boolean;
129
+ constructor(horizontalRulerVisible: boolean);
130
+ }
125
131
  export declare class CustomCommandExecutedEventArgs extends EventArgs {
126
132
  commandName: string;
127
133
  parameter: any;
@@ -74,6 +74,8 @@ export class SavingEvent extends RichEditEvent {
74
74
  }
75
75
  export class SavedEvent extends RichEditEvent {
76
76
  }
77
+ export class HorizontalRulerVisibleChangedEvent extends RichEditEvent {
78
+ }
77
79
  export class CustomCommandExecutedEvent extends RichEditEvent {
78
80
  }
79
81
  export class PdfExportingEvent extends RichEditEvent {
@@ -155,6 +157,12 @@ export class SavedEventArgs extends EventArgs {
155
157
  this.reason = reason;
156
158
  }
157
159
  }
160
+ export class HorizontalRulerVisibleChangedEventArgs extends EventArgs {
161
+ constructor(horizontalRulerVisible) {
162
+ super();
163
+ this.horizontalRulerVisible = horizontalRulerVisible;
164
+ }
165
+ }
158
166
  export class CustomCommandExecutedEventArgs extends EventArgs {
159
167
  constructor(commandName, parameter) {
160
168
  super();
@@ -14,8 +14,8 @@ export interface NusaCustomContainerType {
14
14
  getFocussedElement(containerElement: HTMLElement): HTMLElement;
15
15
  setFocussedElement(element: HTMLElement): void;
16
16
  }
17
- export declare type NusaRichEditPlaceholderId = 'DxReColorName';
18
- export declare type NusaCommandId = 'DxReFontColor' | 'DxReFontSize';
17
+ export type NusaRichEditPlaceholderId = 'DxReColorName';
18
+ export type NusaCommandId = 'DxReFontColor' | 'DxReFontSize';
19
19
  export interface NusaCommand {
20
20
  commandId: NusaCommandId;
21
21
  phrase: string;
@@ -6,12 +6,12 @@ import { WRE_NUSA_conceptNameAttr, WRE_NUSA_containerTypeAttr, WRE_NUSA_controlT
6
6
  import { createDefaultPlaceholders } from './placeholders';
7
7
  import { RichEditsHolder } from './rich-edits-holder';
8
8
  export class NusaSettings {
9
+ get registered() { return this._registered; }
9
10
  constructor(native) {
10
11
  this._richEditsHolder = new RichEditsHolder();
11
12
  this._registered = false;
12
13
  this._native = native;
13
14
  }
14
- get registered() { return this._registered; }
15
15
  getFocusedRichEdit() {
16
16
  const focused = this._richEditsHolder.getFocusedRichEdit();
17
17
  return focused ? focused.getPublicRichEdit() : null;
@@ -93,6 +93,8 @@ export interface IFieldsSettings {
93
93
  defaultDateFormat?: string;
94
94
  openHyperlinkOnClick?: boolean;
95
95
  keepHyperlinkResultForInvalidReference?: boolean;
96
+ disableRelativeHyperlinkUri?: boolean;
97
+ allowedHyperlinkUriProtocols?: string[];
96
98
  createHyperlinkTooltip?: (hyperlinkTooltip: string, hint: string) => string;
97
99
  }
98
100
  export interface IBookmarkSettings {
@@ -253,4 +253,4 @@ export declare enum FloatingObjectsFormatTabItemId {
253
253
  FloatingObjectSendToBack = 365,
254
254
  FloatingObjectSendBehindText = 366
255
255
  }
256
- export declare type RibbonItemId = string | FileTabItemId | HomeTabItemId | InsertTabItemId | PageLayoutTabItemId | ReferencesTabItemId | MailMergeTabItemId | ViewTabItemId | HeaderAndFooterTabItemId | TableDesignTabItemId | TableLayoutTabItemId | FloatingObjectsFormatTabItemId;
256
+ export type RibbonItemId = string | FileTabItemId | HomeTabItemId | InsertTabItemId | PageLayoutTabItemId | ReferencesTabItemId | MailMergeTabItemId | ViewTabItemId | HeaderAndFooterTabItemId | TableDesignTabItemId | TableLayoutTabItemId | FloatingObjectsFormatTabItemId;
@@ -6,7 +6,7 @@ import { RibbonMenuItem } from './items/menu';
6
6
  import { RibbonNumberBoxItem } from './items/number-box';
7
7
  import { RibbonSelectBoxItem } from './items/select-box';
8
8
  import { RibbonSubMenuItem } from './items/sub-menu';
9
- export declare type RibbonTabId = string | RibbonTabType;
9
+ export type RibbonTabId = string | RibbonTabType;
10
10
  export declare enum RibbonTabType {
11
11
  File = 0,
12
12
  Home = 1,
@@ -20,9 +20,9 @@ export declare enum RibbonTabType {
20
20
  TableLayout = 9,
21
21
  FloatingObjectsFormat = 10
22
22
  }
23
- export declare type FirstLevelRibbonItem = RibbonButtonItem | RibbonMenuItem | RibbonSelectBoxItem | RibbonNumberBoxItem | RibbonColorBoxItem;
24
- export declare type RibbonItem = FirstLevelRibbonItem | RibbonSubMenuItem;
25
- export declare type RibbonItemParent = RibbonMenuItem | RibbonSubMenuItem | RibbonTab;
23
+ export type FirstLevelRibbonItem = RibbonButtonItem | RibbonMenuItem | RibbonSelectBoxItem | RibbonNumberBoxItem | RibbonColorBoxItem;
24
+ export type RibbonItem = FirstLevelRibbonItem | RibbonSubMenuItem;
25
+ export type RibbonItemParent = RibbonMenuItem | RibbonSubMenuItem | RibbonTab;
26
26
  export declare class RibbonTab {
27
27
  id: RibbonTabId;
28
28
  title: string;
@@ -15,13 +15,13 @@ export var RibbonTabType;
15
15
  RibbonTabType[RibbonTabType["FloatingObjectsFormat"] = 10] = "FloatingObjectsFormat";
16
16
  })(RibbonTabType || (RibbonTabType = {}));
17
17
  export class RibbonTab {
18
+ get contextTab() { return false; }
18
19
  constructor(title, id, items = [], localizationId) {
19
20
  this.id = id;
20
21
  this.items = items;
21
22
  this.title = title;
22
23
  this.localizationId = localizationId;
23
24
  }
24
- get contextTab() { return false; }
25
25
  removeItem(id) {
26
26
  this.forEachItem(id instanceof RibbonItemBase ?
27
27
  (item, index, parent) => {
@@ -64,11 +64,11 @@ export class RibbonTab {
64
64
  }
65
65
  }
66
66
  export class RibbonContextTab extends RibbonTab {
67
+ get contextTab() { return true; }
67
68
  constructor(title, id, category, items, localizationId) {
68
69
  super(title, id, items, localizationId);
69
70
  this.category = category;
70
71
  }
71
- get contextTab() { return true; }
72
72
  }
73
73
  class RibbonSearchItemResult {
74
74
  constructor(parent, item, itemIndex) {