devexpress-richedit 24.1.12-build-25107-0103 → 24.1.13-build-25142-0103

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 (76) 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.css +1 -1
  9. package/dist/dx.richedit.d.ts +1 -1
  10. package/dist/dx.richedit.js +915 -833
  11. package/dist/dx.richedit.min.js +2 -2
  12. package/index.d.ts +1 -1
  13. package/index.js +1 -1
  14. package/lib/client/client-rich-edit.js +2 -2
  15. package/lib/client/commands/mail-merge-command.js +2 -1
  16. package/lib/client/formats/docx/export/data.d.ts +5 -1
  17. package/lib/client/formats/docx/export/data.js +3 -2
  18. package/lib/client/formats/docx/export/exporter.d.ts +2 -3
  19. package/lib/client/formats/docx/export/exporter.js +3 -3
  20. package/lib/client/formats/docx/export/exporters/base/sections.d.ts +0 -1
  21. package/lib/client/formats/docx/export/exporters/base/sections.js +2 -10
  22. package/lib/client/formats/docx/export/exporters/base/table/table.d.ts +1 -1
  23. package/lib/client/formats/docx/export/exporters/base/table/table.js +4 -4
  24. package/lib/client/formats/docx/import/destination/paragraph-properties/properties/paragraph-spacing-destination.js +6 -4
  25. package/lib/client/model-api/formats/exporter.js +2 -2
  26. package/lib/client/model-api/sub-document.js +1 -1
  27. package/lib/client/utils/focus-helper.js +22 -5
  28. package/lib/common/commands/layout/apply-style-command.d.ts +2 -2
  29. package/lib/common/commands/layout/apply-style-command.js +3 -4
  30. package/lib/common/commands/toc/set-paragraph-level-command.js +1 -1
  31. package/lib/common/formats/i-document-exporter.d.ts +3 -0
  32. package/lib/common/formats/rtf/export/exporter.d.ts +2 -3
  33. package/lib/common/formats/rtf/export/exporter.js +3 -3
  34. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.d.ts +4 -2
  35. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.js +13 -9
  36. package/lib/common/formats/rtf/export/exporters/table/rtf-table-exporter.d.ts +3 -2
  37. package/lib/common/formats/rtf/export/exporters/table/rtf-table-exporter.js +4 -4
  38. package/lib/common/formats/rtf/export/exporters/table/states/rtf-nested-table-exporter-state.d.ts +2 -1
  39. package/lib/common/formats/rtf/export/exporters/table/states/rtf-nested-table-exporter-state.js +2 -2
  40. package/lib/common/formats/rtf/export/exporters/table/states/rtf-table-exporter-state-base.d.ts +4 -2
  41. package/lib/common/formats/rtf/export/exporters/table/states/rtf-table-exporter-state-base.js +16 -9
  42. package/lib/common/formats/rtf/export/exporters/table/states/rtf-table-exporter-state.d.ts +2 -1
  43. package/lib/common/formats/rtf/export/exporters/table/states/rtf-table-exporter-state.js +2 -2
  44. package/lib/common/formats/rtf/importer-in-subdocument.d.ts +1 -2
  45. package/lib/common/formats/rtf/importer-in-subdocument.js +4 -3
  46. package/lib/common/layout/document-layout.d.ts +3 -0
  47. package/lib/common/layout/document-layout.js +6 -0
  48. package/lib/common/layout/main-structures/layout-page-area.d.ts +3 -0
  49. package/lib/common/layout/main-structures/layout-page-area.js +6 -0
  50. package/lib/common/layout/main-structures/layout-page.d.ts +3 -0
  51. package/lib/common/layout/main-structures/layout-page.js +8 -0
  52. package/lib/common/layout/main-structures/layout-row.js +1 -2
  53. package/lib/common/layout-formatter/floating/position-calculators/horizontal.d.ts +1 -0
  54. package/lib/common/layout-formatter/floating/position-calculators/horizontal.js +16 -12
  55. package/lib/common/layout-formatter/row/size-engine/row-formatting-info.d.ts +4 -1
  56. package/lib/common/layout-formatter/row/size-engine/row-formatting-info.js +36 -2
  57. package/lib/common/layout-formatter/row/states.js +0 -2
  58. package/lib/common/layout-formatter/row/tab-info.js +5 -4
  59. package/lib/common/layout-formatter/table/info/table-info.d.ts +0 -1
  60. package/lib/common/layout-formatter/table/info/table-info.js +2 -18
  61. package/lib/common/layout-formatter/table/size-compressor.js +9 -2
  62. package/lib/common/layout-formatter/table/table-alignment-applier.js +0 -2
  63. package/lib/common/model/borders/border-info.js +1 -1
  64. package/lib/common/model/character/character-properties.d.ts +1 -1
  65. package/lib/common/model/character/character-properties.js +14 -2
  66. package/lib/common/model/history/items/character-properties-history-items.d.ts +2 -1
  67. package/lib/common/model/history/items/character-properties-history-items.js +3 -2
  68. package/lib/common/model/manipulators/character-properties-manipulator.js +2 -2
  69. package/lib/common/model/manipulators/i-properties-manipulator.d.ts +1 -1
  70. package/lib/common/model/paragraph/paragraph-style.d.ts +2 -1
  71. package/lib/common/model/paragraph/paragraph-style.js +5 -3
  72. package/lib/common/model/tables/secondary-structures/table-base-structures.d.ts +2 -1
  73. package/lib/common/model/tables/secondary-structures/table-base-structures.js +1 -0
  74. package/lib/common/rich-edit-core.js +1 -0
  75. package/lib/common/ui/ruler/controls/ruler.js +3 -7
  76. package/package.json +3 -3
@@ -124,4 +124,5 @@ export var ConditionalTableStyleFormatting;
124
124
  ConditionalTableStyleFormatting[ConditionalTableStyleFormatting["TopLeftCell"] = 4] = "TopLeftCell";
125
125
  ConditionalTableStyleFormatting[ConditionalTableStyleFormatting["BottomRightCell"] = 2] = "BottomRightCell";
126
126
  ConditionalTableStyleFormatting[ConditionalTableStyleFormatting["BottomLeftCell"] = 1] = "BottomLeftCell";
127
+ ConditionalTableStyleFormatting[ConditionalTableStyleFormatting["None"] = 0] = "None";
127
128
  })(ConditionalTableStyleFormatting || (ConditionalTableStyleFormatting = {}));
@@ -384,6 +384,7 @@ export class RichEditCore {
384
384
  pictureRenderer: this.viewManager.renderer,
385
385
  uiUnitConverter: this.uiUnitConverter,
386
386
  lastMaxNumPages: this.layout.lastMaxNumPages,
387
+ grids: this.layout.grids,
387
388
  pageIndex: this.selection.pageIndex,
388
389
  sessionGuid: this.sessionGuid,
389
390
  clientGuid: this.clientGuid,
@@ -41,13 +41,9 @@ export class RulerControl extends RulerBase {
41
41
  }
42
42
  adjust() {
43
43
  const viewWidth = this.controls.canvas.clientWidth;
44
- if (viewWidth > this.controls.ruler.pageWidth)
45
- this.initialMarginLeftElement = (viewWidth - this.pageWidth - RULLER_NUMBER_CORRECTION * 2) / 2;
46
- else {
47
- const paddingLeft = DomUtils.pxToInt(DomUtils.getCurrentStyle(this.controls.canvas).paddingLeft);
48
- const pageAreaBorderWidth = (this.controls.canvas.scrollWidth - paddingLeft - this.pageWidth) / 2;
49
- this.initialMarginLeftElement = paddingLeft + pageAreaBorderWidth - RULLER_NUMBER_CORRECTION;
50
- }
44
+ const paddingLeft = DomUtils.pxToInt(DomUtils.getCurrentStyle(this.controls.canvas).paddingLeft);
45
+ const minValue = paddingLeft - RULLER_NUMBER_CORRECTION;
46
+ this.initialMarginLeftElement = Math.max((viewWidth - this.pageWidth - RULLER_NUMBER_CORRECTION * 2) / 2, minValue);
51
47
  this.rootElement.style.left = this.calculateLeftOffset();
52
48
  this.setPaddings();
53
49
  this.canHandleScroll = this.controls.canvas.scrollWidth > this.controls.canvas.offsetWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devexpress-richedit",
3
- "version": "24.1.12-build-25107-0103",
3
+ "version": "24.1.13-build-25142-0103",
4
4
  "homepage": "https://www.devexpress.com/",
5
5
  "bugs": "https://www.devexpress.com/support/",
6
6
  "author": "Developer Express Inc.",
@@ -14,8 +14,8 @@
14
14
  "build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
15
15
  },
16
16
  "peerDependencies": {
17
- "devextreme": "24.1.12-build-25105-1937",
18
- "devextreme-dist": "24.1.12-build-25105-1937"
17
+ "devextreme": "24.1.13-build-25140-1937",
18
+ "devextreme-dist": "24.1.13-build-25140-1937"
19
19
  },
20
20
  "dependencies": {
21
21
  "jszip": "~3.10.1",