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.
- package/bin/gulpfile.js +1 -1
- package/bin/index-custom.js +1 -1
- package/bin/localization-builder.js +1 -1
- package/bin/nspell-index.js +1 -1
- package/bin/nspell.webpack.config.js +1 -1
- package/bin/webpack-externals.js +1 -1
- package/bin/webpack.config.js +1 -1
- package/dist/dx.richedit.d.ts +1 -1
- package/dist/dx.richedit.js +860 -788
- package/dist/dx.richedit.min.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/client/api/loading-panel.js +3 -3
- package/lib/client/bars/rich-edit-ribbon/ribbon-items-data.d.ts +2 -2
- package/lib/client/client-rich-edit.d.ts +1 -0
- package/lib/client/client-rich-edit.js +15 -11
- package/lib/client/commands/open-document-command.d.ts +1 -1
- package/lib/client/dialogs/dialog-base.js +3 -3
- package/lib/client/document-processor/public/processor.js +3 -3
- package/lib/client/formats/docx/export/data.js +5 -5
- package/lib/client/formats/docx/export/exporters/base/sections.js +4 -4
- package/lib/client/formats/docx/export/exporters/base.js +1 -1
- package/lib/client/formats/docx/export/exporters/content-types.js +4 -4
- package/lib/client/formats/docx/export/exporters/relations/relation-collection.js +1 -1
- package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.d.ts +1 -1
- package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.js +3 -3
- package/lib/client/formats/docx/export/exporters/sub-document/header-footer-sub-document-exporter.js +1 -1
- package/lib/client/formats/docx/import/data.js +2 -2
- package/lib/client/formats/docx/import/destination/character-properties/run-properties-base-destination.js +1 -1
- package/lib/client/formats/docx/import/destination/destination.d.ts +2 -2
- package/lib/client/formats/docx/import/destination/destination.js +7 -7
- package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-position-destination.js +9 -9
- package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-relative-size-destination.js +6 -6
- package/lib/client/formats/docx/import/destination/drawing/drawing-destination.js +38 -38
- package/lib/client/formats/docx/import/destination/drawing/non-visual-pucture-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/drawing/shape-properties-destination.js +9 -9
- package/lib/client/formats/docx/import/destination/notes/note-destination.d.ts +1 -1
- package/lib/client/formats/docx/import/destination/notes/note-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/numbering/numberings-destination.js +15 -15
- package/lib/client/formats/docx/import/destination/paragraph/paragraph-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-numbering-reference-destination.js +5 -5
- package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-base-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-destination.js +7 -7
- package/lib/client/formats/docx/import/destination/relationships/relationships-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/runs/inline-object-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/style/destinations/style-paragraph-properties-destination.js +4 -4
- package/lib/client/formats/docx/import/destination/table/cell/properties/table-cell-properties-destination-core.js +3 -3
- package/lib/client/formats/docx/import/destination/table/cell/table-cell-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/row/properties/table-row-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/row/table-row-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/properties/table-cell-margins-destination.d.ts +1 -1
- package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination-core.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-leaf-element-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/table-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/themes/color/drawing-color-properties-destination-base.js +3 -3
- package/lib/client/formats/docx/import/destination/themes/font/office-theme-font-collection-scheme-destination.js +7 -7
- package/lib/client/formats/docx/import/destination/vml/v-mlshape-destination.js +7 -7
- package/lib/client/formats/docx/import/importers/character-importer.js +6 -6
- package/lib/client/formats/docx/import/importers/comments-importer.js +1 -1
- package/lib/client/formats/docx/import/importers/field-importer.js +2 -2
- package/lib/client/formats/docx/import/importers/table-importer.js +1 -1
- package/lib/client/formats/docx/import/list/open-xml-list-level-override.js +3 -3
- package/lib/client/formats/docx/import/list/open-xml-numbering-list-info.d.ts +1 -1
- package/lib/client/formats/docx/utils/constants.js +6 -6
- package/lib/client/formats/docx/zip/xml-reader.js +10 -10
- package/lib/client/i-rich-constructor-settings.d.ts +3 -1
- package/lib/client/model-api/api-utils/parameter-checker.d.ts +1 -1
- package/lib/client/model-api/fonts/control-font.js +4 -4
- package/lib/client/model-api/images/image-iterator.js +3 -3
- package/lib/client/model-api/interval.js +1 -1
- package/lib/client/public/api/authentication-options.js +3 -3
- package/lib/client/public/api/range-permission-options.js +3 -3
- package/lib/client/public/client-events.d.ts +2 -1
- package/lib/client/public/client-events.js +3 -1
- package/lib/client/public/commands/enum.d.ts +1 -1
- package/lib/client/public/context-menu/menu.js +5 -5
- package/lib/client/public/events.d.ts +6 -0
- package/lib/client/public/events.js +8 -0
- package/lib/client/public/nusa/external-types.d.ts +2 -2
- package/lib/client/public/nusa/settings.js +1 -1
- package/lib/client/public/options.d.ts +2 -0
- package/lib/client/public/ribbon/item-ids.d.ts +1 -1
- package/lib/client/public/ribbon/tab.d.ts +4 -4
- package/lib/client/public/ribbon/tab.js +2 -2
- package/lib/client/public/rich-edit.js +1 -1
- package/lib/client/ribbon/i-toolbar-item-options.d.ts +1 -1
- package/lib/client/ribbon/ribbon.d.ts +3 -3
- package/lib/client/ribbon/ribbon.js +1 -1
- package/lib/client/ribbon/toolbar-items/toolbar-interactive-item.d.ts +2 -2
- package/lib/client/settings.js +4 -0
- package/lib/client/utils/devextreme/devextreme-types.d.ts +17 -17
- package/lib/client/utils/devextreme/dxt-utils.d.ts +1 -1
- package/lib/common/auto-correct/auto-correct-providers.js +1 -1
- package/lib/common/bars/base.js +1 -1
- package/lib/common/canvas/canvas-manager.js +3 -3
- package/lib/common/canvas/canvas-scroll-manager.js +2 -2
- package/lib/common/canvas/listeners/anchor-listener.js +3 -3
- package/lib/common/canvas/listeners/resize-box-listener.js +5 -5
- package/lib/common/canvas/renderes/canvas-listener/canvas-listener.js +1 -1
- package/lib/common/canvas/renderes/change-active-sub-document/renderer.js +10 -10
- package/lib/common/canvas/renderes/common/document-renderer.d.ts +1 -1
- package/lib/common/canvas/renderes/common/document-renderer.js +1 -1
- package/lib/common/canvas/renderes/view-manager.js +3 -3
- package/lib/common/client-side-events.d.ts +1 -0
- package/lib/common/client-side-events.js +3 -0
- package/lib/common/commands/command-base.js +10 -10
- package/lib/common/commands/command-states.js +3 -3
- package/lib/common/commands/dialogs/dialog-spell-checker-command.js +3 -3
- package/lib/common/commands/document/print-document-on-client-command.js +4 -4
- package/lib/common/commands/fields/open-hyperlink-command.js +6 -2
- package/lib/common/commands/ruler/toggle-show-horizontal-ruler-command.js +3 -1
- package/lib/common/commands/text/change-text-case-commands.d.ts +1 -1
- package/lib/common/event-manager.js +4 -4
- package/lib/common/formats/html/export/html-document-exporter.js +1 -1
- package/lib/common/formats/html/export/html-export.js +4 -4
- package/lib/common/formats/html/import/html-importer.d.ts +1 -1
- package/lib/common/formats/html/import/html-importer.js +12 -12
- package/lib/common/formats/html/import/html-model-inserter.js +4 -4
- package/lib/common/formats/html/import/importers/base.js +1 -1
- package/lib/common/formats/html/import/utils/character-properties-utils.js +4 -4
- package/lib/common/formats/i-document-importer.d.ts +2 -2
- package/lib/common/formats/pdf/exporter.js +3 -3
- package/lib/common/formats/pdf/interfaces.d.ts +2 -2
- package/lib/common/formats/rtf/export/exporter.js +1 -1
- package/lib/common/formats/rtf/export/exporters/rtf-anchored-picture-run-exporter.js +5 -5
- package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.d.ts +1 -1
- package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.js +2 -2
- package/lib/common/formats/rtf/export/rtf-builder.d.ts +2 -2
- package/lib/common/formats/rtf/import/destination/base/destination.d.ts +4 -4
- package/lib/common/formats/rtf/import/destination/base/destination.js +1 -1
- package/lib/common/formats/rtf/import/destination/base/skip-destination.js +3 -3
- package/lib/common/formats/rtf/import/destination/base/string-property-base-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/base/string-property-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/base/unicode-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/fields/field-sub-destination.js +1 -1
- package/lib/common/formats/rtf/import/destination/fields/table-content-field-destination.js +1 -1
- package/lib/common/formats/rtf/import/destination/font-table-destination.js +3 -3
- package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-paragraph-numbering.js +1 -1
- package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-section-numbering-level.js +1 -1
- package/lib/common/formats/rtf/import/destination/picture/picture-destination.js +4 -4
- package/lib/common/formats/rtf/import/destination/shape/shape-properties-destination-base.js +2 -2
- package/lib/common/formats/rtf/import/destination/shape/shape-property-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/shape/shape-property-hsv-value-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/styles/character-style-destination.js +5 -5
- package/lib/common/formats/rtf/import/destination/styles/style-sheet-destination.js +3 -3
- package/lib/common/formats/rtf/import/destination/styles/table-style-destination.js +7 -7
- package/lib/common/formats/rtf/import/destination/sub-document/destination-sub-document.js +2 -2
- package/lib/common/formats/rtf/import/destination/sub-document/section-header-footer-destination-base.js +1 -1
- package/lib/common/formats/rtf/import/importers/character-importer.js +1 -1
- package/lib/common/formats/rtf/import/importers/field-importer.js +2 -2
- package/lib/common/formats/rtf/import/importers/paragraph-importer.js +4 -4
- package/lib/common/formats/rtf/import/importers/range-permission-importer.js +1 -1
- package/lib/common/formats/rtf/import/importers/section-importer.js +4 -4
- package/lib/common/formats/rtf/import/importers/styles/paragraph-style-importer.js +4 -4
- package/lib/common/formats/rtf/import/model/numbering-lists/rtf-old-list-level-info.js +10 -10
- package/lib/common/formats/rtf/import/rtf-import-data.js +13 -13
- package/lib/common/formats/txt/txt-exporter.js +1 -1
- package/lib/common/global-event-dispatcher.d.ts +1 -1
- package/lib/common/interfaces/i-control-owner.d.ts +1 -0
- package/lib/common/layout/main-structures/layout-boxes/layout-anchored-object-box.d.ts +1 -1
- package/lib/common/layout/main-structures/layout-boxes/layout-dash-box.js +1 -1
- package/lib/common/layout/main-structures/layout-boxes/layout-line-break-box.js +4 -4
- package/lib/common/layout/main-structures/layout-boxes/layout-numbering-list-box.js +10 -10
- package/lib/common/layout/main-structures/layout-boxes/layout-page-break-box.js +4 -4
- package/lib/common/layout/main-structures/layout-row.js +1 -1
- package/lib/common/layout/table/table-cell-iterator.js +6 -6
- package/lib/common/layout-engine/hit-test-manager/hit-test-result.d.ts +1 -1
- package/lib/common/layout-engine/selection/selection-formatter.js +1 -1
- package/lib/common/layout-formatter/box/generator/box-infos-generator.js +3 -3
- package/lib/common/layout-formatter/changes/changes/layout-change-base.js +12 -12
- package/lib/common/layout-formatter/invalidator/layout-invalidator.js +3 -3
- package/lib/common/layout-formatter/managers/formatter-manager.d.ts +1 -1
- package/lib/common/layout-formatter/managers/formatter-manager.js +2 -2
- package/lib/common/layout-formatter/row/result.js +3 -3
- package/lib/common/layout-formatter/row/size-engine/row-formatting-info.js +2 -2
- package/lib/common/layout-formatter/row/size-engine/row-height-calculator.js +3 -3
- package/lib/common/layout-formatter/row/tab-info.js +8 -8
- package/lib/common/layout-formatter/table/borders/border-helper.d.ts +1 -1
- package/lib/common/layout-formatter/table/borders/border-helper.js +5 -5
- package/lib/common/layout-formatter/table/formatter.js +12 -12
- package/lib/common/layout-formatter/table/grid-engine/calculators/column-interval.js +3 -3
- package/lib/common/layout-formatter/table/grid-engine/calculators/grid-calculator.js +3 -3
- package/lib/common/layout-formatter/table/grid-engine/calculators/table-properties-cache.js +7 -7
- package/lib/common/layout-formatter/table/info/cell-info.js +8 -8
- package/lib/common/layout-formatter/table/info/row-info.js +1 -1
- package/lib/common/layout-formatter/table/info/table-info.js +17 -17
- package/lib/common/model/bookmarks.js +7 -7
- package/lib/common/model/borders/border-base.js +3 -3
- package/lib/common/model/caches/hash-based-cache.d.ts +1 -1
- package/lib/common/model/caches/hash-based-cache.js +2 -2
- package/lib/common/model/caches/images.js +11 -11
- package/lib/common/model/changes/change.d.ts +1 -1
- package/lib/common/model/changes/sub-document/list/paragraph-numbering-list-changed.js +1 -1
- package/lib/common/model/changes/sub-document/table/cell-property-changed.js +1 -1
- package/lib/common/model/changes/sub-document/table/property-changed.js +1 -1
- package/lib/common/model/changes/sub-document/table/row-property-changed.js +1 -1
- package/lib/common/model/character/character-property-descriptor.d.ts +1 -1
- package/lib/common/model/color/color-model-info.js +6 -6
- package/lib/common/model/creator/font-corrector.js +5 -5
- package/lib/common/model/document-model.js +10 -10
- package/lib/common/model/fields/field-request-manager.d.ts +1 -1
- package/lib/common/model/fields/field-request-manager.js +2 -2
- package/lib/common/model/fields/parsers/field-code-parser.d.ts +2 -2
- package/lib/common/model/fields/tree-creator.js +1 -1
- package/lib/common/model/floating-objects/sizes.js +2 -2
- package/lib/common/model/fonts/control-font.js +9 -9
- package/lib/common/model/fonts/loader.js +1 -1
- package/lib/common/model/footnotes/footnote.d.ts +1 -1
- package/lib/common/model/history/base/history-item.js +6 -6
- package/lib/common/model/history/base/interval-based-history-item.js +2 -2
- package/lib/common/model/history/base/position-based-history-item.js +2 -2
- package/lib/common/model/history/items/insert-text-history-item.js +3 -3
- package/lib/common/model/history/selection/scroll-history-item.js +3 -3
- package/lib/common/model/history/selection/selection-history-item.js +3 -3
- package/lib/common/model/json/importers/sub-document/run-importers.d.ts +2 -2
- package/lib/common/model/manipulators/base-manipulator.js +2 -2
- package/lib/common/model/manipulators/document/sub-document-inserter.js +6 -6
- package/lib/common/model/manipulators/model-manipulator.js +1 -1
- package/lib/common/model/manipulators/picture-manipulator/insert-picture-manipulator-params.js +1 -1
- package/lib/common/model/manipulators/picture-manipulator/loader/image-loading-options.d.ts +1 -1
- package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.d.ts +1 -1
- package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.js +1 -1
- package/lib/common/model/manipulators/range/create-range-copy-operation.js +3 -3
- package/lib/common/model/manipulators/tables/insert-table-cell-operation.js +1 -1
- package/lib/common/model/manipulators/tables/insert-table-row-operation.js +1 -1
- package/lib/common/model/manipulators/tables/merge-table-cells-operation.js +1 -1
- package/lib/common/model/manipulators/tables/table-normalizator.d.ts +2 -2
- package/lib/common/model/options/fields.d.ts +2 -0
- package/lib/common/model/options/fields.js +7 -3
- package/lib/common/model/options/pdf.d.ts +2 -2
- package/lib/common/model/options/rich-options.js +3 -3
- package/lib/common/model/paragraph/paragraph-property-descriptors.d.ts +1 -1
- package/lib/common/model/paragraph/paragraph.js +1 -1
- package/lib/common/model/position/linked-interval.js +4 -4
- package/lib/common/model/range-permissions.js +3 -3
- package/lib/common/model/runs/anchored-picture-run.js +4 -4
- package/lib/common/model/runs/inline-picture-run.d.ts +1 -1
- package/lib/common/model/runs/inline-picture-run.js +1 -1
- package/lib/common/model/runs/run-base.js +4 -4
- package/lib/common/model/section/section-property-descriptor.d.ts +1 -1
- package/lib/common/model/shadings/shading-info.js +3 -3
- package/lib/common/model/styles-manager.d.ts +1 -1
- package/lib/common/model/tables/main-structures/table-row.js +1 -1
- package/lib/common/mouse-handler/base/manipulator-handler-state-base.js +2 -2
- package/lib/common/mouse-handler/mouse-handler/mouse-handler-drag-column-or-row-state.d.ts +1 -1
- package/lib/common/rich-edit-core.js +11 -11
- package/lib/common/rich-utils/debug/runtime-template-model-creator.js +6 -6
- package/lib/common/scroll/model-states.d.ts +1 -1
- package/lib/common/scroll/model-states.js +4 -4
- package/lib/common/selection/input-position.js +17 -6
- package/lib/common/selection/selected-cells-engine.js +12 -12
- package/lib/common/selection/selection-intervals-info.js +7 -7
- package/lib/common/selection/selection-state.js +5 -5
- package/lib/common/selection/selection.js +13 -13
- package/lib/common/ui/quick-search-panel.js +1 -1
- package/lib/common/ui/ruler/controls/base.js +1 -1
- package/lib/common/ui/ruler/controls/column.js +1 -1
- package/lib/common/ui/ruler/controls/divisions.js +1 -1
- package/lib/common/ui/ruler/controls/indent/first-line.js +5 -5
- package/lib/common/ui/ruler/controls/indent/left.js +2 -2
- package/lib/common/ui/ruler/controls/indent/right.js +5 -5
- package/lib/common/ui/ruler/controls/margin/left.js +3 -3
- package/lib/common/ui/ruler/controls/owner.js +1 -1
- package/lib/common/ui/ruler/controls/ruler.js +4 -4
- package/lib/common/ui/ruler/controls/tab/tab-type.js +2 -2
- package/lib/common/ui/ruler/manager.js +18 -18
- package/lib/common/ui/ruler/model-data.js +4 -4
- package/lib/common/ui/ruler/ruler.js +2 -2
- package/lib/common/utils/utils.d.ts +7 -0
- package/lib/common/utils/utils.js +26 -0
- package/lib/common/view-settings/views-settings.js +6 -6
- package/package.json +3 -3
package/dist/dx.richedit.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* DevExpress WebRichEdit (dx.richedit.js)
|
3
|
-
* Version: 24.1
|
3
|
+
* Version: 24.2.1
|
4
4
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
5
5
|
* License: https://www.devexpress.com/Support/EULAs
|
6
6
|
*/
|
@@ -10241,8 +10241,10 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
10241
10241
|
|
10242
10242
|
"use strict";
|
10243
10243
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
10244
|
+
/* harmony export */ EW: function() { return /* binding */ createUrlValidationOptions; },
|
10244
10245
|
/* harmony export */ Ev: function() { return /* binding */ splitByLines; },
|
10245
10246
|
/* harmony export */ Fw: function() { return /* binding */ searchTreeItem; },
|
10247
|
+
/* harmony export */ pM: function() { return /* binding */ isUrlValid; },
|
10246
10248
|
/* harmony export */ tm: function() { return /* binding */ convertToFunction; },
|
10247
10249
|
/* harmony export */ xj: function() { return /* binding */ rotatePoint; }
|
10248
10250
|
/* harmony export */ });
|
@@ -10307,6 +10309,32 @@ function convertToFunction(func) {
|
|
10307
10309
|
function splitByLines(text) {
|
10308
10310
|
return text ? text.split(/\r\n|\r|\n/) : [''];
|
10309
10311
|
}
|
10312
|
+
function createUrlValidationOptions(control) {
|
10313
|
+
const fieldSettings = control.modelManager.richOptions.fields;
|
10314
|
+
return {
|
10315
|
+
allowRelativeUrl: !fieldSettings.disableRelativeHyperlinkUri,
|
10316
|
+
allowedProtocols: fieldSettings.allowedHyperlinkUriProtocols
|
10317
|
+
};
|
10318
|
+
}
|
10319
|
+
const disallowedProtocols = [
|
10320
|
+
'data',
|
10321
|
+
'javascript'
|
10322
|
+
];
|
10323
|
+
function isUrlValid(url, options) {
|
10324
|
+
let currentLocation;
|
10325
|
+
if (options === null || options === void 0 ? void 0 : options.allowRelativeUrl)
|
10326
|
+
currentLocation = window.location.href;
|
10327
|
+
try {
|
10328
|
+
const resultUrl = new URL(url, currentLocation);
|
10329
|
+
const protocol = resultUrl.protocol.slice(0, -1);
|
10330
|
+
const allowedProtocols = options === null || options === void 0 ? void 0 : options.allowedProtocols;
|
10331
|
+
if (allowedProtocols)
|
10332
|
+
return allowedProtocols.includes(protocol);
|
10333
|
+
return !disallowedProtocols.includes(protocol);
|
10334
|
+
}
|
10335
|
+
catch (_a) { }
|
10336
|
+
return false;
|
10337
|
+
}
|
10310
10338
|
|
10311
10339
|
|
10312
10340
|
/***/ })
|
@@ -10384,7 +10412,7 @@ var __webpack_exports__ = {};
|
|
10384
10412
|
!function() {
|
10385
10413
|
"use strict";
|
10386
10414
|
|
10387
|
-
// UNUSED EXPORTS: ActiveSubDocumentChangedEvent, AuthenticationOptions, AutoCorrectEvent, AutoCorrectEventArgs, Bookmark, BookmarkBase, BookmarkCollectionBase, BorderLineStyle, CalculateDocumentVariableAsyncEvent, CalculateDocumentVariableEvent, CalculateDocumentVariableEventArgs, CharacterProperties, CharacterPropertiesChangedEvent, CharacterPropertiesScript, Characters, CommandStateChangedEvent, CommandStateChangedEventArgs, ContentChangedEventArgs, ContentInsertedEvent, ContentRemovedEvent, ContentRemovedEventArgs, ContextMenuCommandId, ContextMenuItem, ContextMenuShowingEvent, ContextMenuShowingEventArgs, CustomCommandExecutedEvent, CustomCommandExecutedEventArgs, DocumentChangedEvent, DocumentFormat, DocumentFormattedEvent, DocumentFormattedEventArgs, DocumentLinkType, DocumentLoadedEvent, DocumentProcessor, DocumentProcessorBase, Event, EventArgs, Events, Field, FieldName, FileTabCommandId, FileTabItemId, FloatingImage, FloatingObjectHorizontalAlignment, FloatingObjectHorizontalAnchorElement, FloatingObjectHorizontalPositionType, FloatingObjectVerticalAlignment, FloatingObjectVerticalAnchorElement, FloatingObjectVerticalPositionType, FloatingObjectsFormatTabCommandId, FloatingObjectsFormatTabItemId, Font, GotFocusEvent, HeaderAndFooterTabCommandId, HeaderAndFooterTabItemId, HeaderFooterType, HomeTabCommandId, HomeTabItemId, HorizontalAbsolutePosition, HorizontalAlignedPosition, HorizontalRelativePosition, Hyperlink, HyperlinkClickEvent, HyperlinkClickEventArgs, HyperlinkInfo, Image, ImageIterator, Images, InlineImage, InsertTabCommandId, InsertTabItemId, Interval, KeyCode, KeyDownEvent, KeyUpEvent, KeyboardEventArgs, List, ListLevelFormat, ListLevelNumberAlignment, ListLevelSettings, ListType, LoadingPanel, LostFocusEvent, MailMergeOptions, MailMergeTabCommandId, MailMergeTabItemId, Margins, MergeMode, Paddings, PageLayoutTabCommandId, PageLayoutTabItemId, PaperSize, Paragraph, ParagraphAlignment, ParagraphFirstLineIndent, ParagraphLineSpacingType, ParagraphProperties, ParagraphPropertiesChangedEvent, ParagraphPropertiesChangedEventArgs, PdfExportedEvent, PdfExportedEventArgs, PdfExportingEvent, PdfExportingEventArgs, PointerDownEvent, PointerEventArgs, PointerUpEvent, PrintMode, RangePermission, RangePermissionOptions, ReferencesTabCommandId, ReferencesTabItemId, Ribbon, RibbonButtonItem, RibbonColorBoxItem, RibbonContextTab, RibbonItemBase, RibbonItemType, RibbonMenuItem, RibbonNumberBoxItem, RibbonSelectBoxItem, RibbonSubMenuItem, RibbonTab, RibbonTabType, RichEdit, RichEditDocumentBase, RichEditEvent, RichEditUnit, SavedEvent, SavedEventArgs, SavingEvent, SavingEventArgs, Section, SectionBreakType, SelectionChangedEvent, ShortcutOptions, Size, SpellCheckerOptions, SubDocument, SubDocumentBase, SubDocumentCollectionBase, SubDocumentType, Table, TableBorder, TableBorders, TableBordersBase, TableCell, TableCellBorders, TableContentHorizontalAlignment, TableContentVerticalAlignment, TableDesignTabCommandId, TableDesignTabItemId, TableLayoutTabCommandId, TableLayoutTabItemId, TableRow, TableRowHeightType, TableStyleOptions, TableWidthType, UpdateFieldsOptions, Utils, VerticalAbsolutePosition, VerticalAlignedPosition, VerticalRelativePosition, ViewTabCommandId, ViewTabItemId, ViewType, WrapSide, WrapType, create, createOptions
|
10415
|
+
// UNUSED EXPORTS: ActiveSubDocumentChangedEvent, AuthenticationOptions, AutoCorrectEvent, AutoCorrectEventArgs, Bookmark, BookmarkBase, BookmarkCollectionBase, BorderLineStyle, CalculateDocumentVariableAsyncEvent, CalculateDocumentVariableEvent, CalculateDocumentVariableEventArgs, CharacterProperties, CharacterPropertiesChangedEvent, CharacterPropertiesScript, Characters, CommandStateChangedEvent, CommandStateChangedEventArgs, ContentChangedEventArgs, ContentInsertedEvent, ContentRemovedEvent, ContentRemovedEventArgs, ContextMenuCommandId, ContextMenuItem, ContextMenuShowingEvent, ContextMenuShowingEventArgs, CustomCommandExecutedEvent, CustomCommandExecutedEventArgs, DocumentChangedEvent, DocumentFormat, DocumentFormattedEvent, DocumentFormattedEventArgs, DocumentLinkType, DocumentLoadedEvent, DocumentProcessor, DocumentProcessorBase, Event, EventArgs, Events, Field, FieldName, FileTabCommandId, FileTabItemId, FloatingImage, FloatingObjectHorizontalAlignment, FloatingObjectHorizontalAnchorElement, FloatingObjectHorizontalPositionType, FloatingObjectVerticalAlignment, FloatingObjectVerticalAnchorElement, FloatingObjectVerticalPositionType, FloatingObjectsFormatTabCommandId, FloatingObjectsFormatTabItemId, Font, GotFocusEvent, HeaderAndFooterTabCommandId, HeaderAndFooterTabItemId, HeaderFooterType, HomeTabCommandId, HomeTabItemId, HorizontalAbsolutePosition, HorizontalAlignedPosition, HorizontalRelativePosition, HorizontalRulerVisibleChangedEvent, HorizontalRulerVisibleChangedEventArgs, Hyperlink, HyperlinkClickEvent, HyperlinkClickEventArgs, HyperlinkInfo, Image, ImageIterator, Images, InlineImage, InsertTabCommandId, InsertTabItemId, Interval, KeyCode, KeyDownEvent, KeyUpEvent, KeyboardEventArgs, List, ListLevelFormat, ListLevelNumberAlignment, ListLevelSettings, ListType, LoadingPanel, LostFocusEvent, MailMergeOptions, MailMergeTabCommandId, MailMergeTabItemId, Margins, MergeMode, Paddings, PageLayoutTabCommandId, PageLayoutTabItemId, PaperSize, Paragraph, ParagraphAlignment, ParagraphFirstLineIndent, ParagraphLineSpacingType, ParagraphProperties, ParagraphPropertiesChangedEvent, ParagraphPropertiesChangedEventArgs, PdfExportedEvent, PdfExportedEventArgs, PdfExportingEvent, PdfExportingEventArgs, PointerDownEvent, PointerEventArgs, PointerUpEvent, PrintMode, RangePermission, RangePermissionOptions, ReferencesTabCommandId, ReferencesTabItemId, Ribbon, RibbonButtonItem, RibbonColorBoxItem, RibbonContextTab, RibbonItemBase, RibbonItemType, RibbonMenuItem, RibbonNumberBoxItem, RibbonSelectBoxItem, RibbonSubMenuItem, RibbonTab, RibbonTabType, RichEdit, RichEditDocumentBase, RichEditEvent, RichEditUnit, SavedEvent, SavedEventArgs, SavingEvent, SavingEventArgs, Section, SectionBreakType, SelectionChangedEvent, ShortcutOptions, Size, SpellCheckerOptions, SubDocument, SubDocumentBase, SubDocumentCollectionBase, SubDocumentType, Table, TableBorder, TableBorders, TableBordersBase, TableCell, TableCellBorders, TableContentHorizontalAlignment, TableContentVerticalAlignment, TableDesignTabCommandId, TableDesignTabItemId, TableLayoutTabCommandId, TableLayoutTabItemId, TableRow, TableRowHeightType, TableStyleOptions, TableWidthType, UpdateFieldsOptions, Utils, VerticalAbsolutePosition, VerticalAlignedPosition, VerticalRelativePosition, ViewTabCommandId, ViewTabItemId, ViewType, WrapSide, WrapType, create, createOptions
|
10388
10416
|
|
10389
10417
|
// NAMESPACE OBJECT: ./src/client/public/events.ts
|
10390
10418
|
var events_namespaceObject = {};
|
@@ -10415,6 +10443,8 @@ __webpack_require__.d(events_namespaceObject, {
|
|
10415
10443
|
Event: function() { return Event; },
|
10416
10444
|
EventArgs: function() { return EventArgs; },
|
10417
10445
|
GotFocusEvent: function() { return GotFocusEvent; },
|
10446
|
+
HorizontalRulerVisibleChangedEvent: function() { return HorizontalRulerVisibleChangedEvent; },
|
10447
|
+
HorizontalRulerVisibleChangedEventArgs: function() { return HorizontalRulerVisibleChangedEventArgs; },
|
10418
10448
|
HyperlinkClickEvent: function() { return HyperlinkClickEvent; },
|
10419
10449
|
HyperlinkClickEventArgs: function() { return HyperlinkClickEventArgs; },
|
10420
10450
|
KeyDownEvent: function() { return KeyDownEvent; },
|
@@ -11330,12 +11360,6 @@ var ThemeColorValues;
|
|
11330
11360
|
|
11331
11361
|
|
11332
11362
|
class color_model_info_ColorModelInfo {
|
11333
|
-
constructor() {
|
11334
|
-
this._themeColorIndex = ThemeColorIndexConstants.None;
|
11335
|
-
this._themeValue = ThemeColorValues.None;
|
11336
|
-
this._colorIndex = color_model_info_ColorModelInfo.defaultColorIndex;
|
11337
|
-
this.restoreDefaultValues();
|
11338
|
-
}
|
11339
11363
|
static get nullColor() { return color_model_info_ColorModelInfo.makeByColor(ColorHelper.AUTOMATIC_COLOR); }
|
11340
11364
|
;
|
11341
11365
|
static makeByThemeColorIndex(themeColorIndex, tint = 0) {
|
@@ -11394,6 +11418,12 @@ class color_model_info_ColorModelInfo {
|
|
11394
11418
|
this._tint = value;
|
11395
11419
|
}
|
11396
11420
|
get isEmpty() { return this.colorType == ColorType.Rgb && DXColor.isTransparentOrEmpty(this.rgb); }
|
11421
|
+
constructor() {
|
11422
|
+
this._themeColorIndex = ThemeColorIndexConstants.None;
|
11423
|
+
this._themeValue = ThemeColorValues.None;
|
11424
|
+
this._colorIndex = color_model_info_ColorModelInfo.defaultColorIndex;
|
11425
|
+
this.restoreDefaultValues();
|
11426
|
+
}
|
11397
11427
|
restoreDefaultValues() {
|
11398
11428
|
this._themeColorIndex = ThemeColorIndexConstants.None;
|
11399
11429
|
this._themeValue = ThemeColorValues.None;
|
@@ -11797,14 +11827,14 @@ ShadingHelper.infos = ShadingHelper.initStatics();
|
|
11797
11827
|
|
11798
11828
|
|
11799
11829
|
class ShadingInfo {
|
11830
|
+
static get noColor() { return ShadingInfo.createByColor(color_model_info_ColorModelInfo.noColor); }
|
11831
|
+
static get auto() { return ShadingInfo.createByColor(color_model_info_ColorModelInfo.auto); }
|
11832
|
+
static get nullColor() { return ShadingInfo.createByColor(color_model_info_ColorModelInfo.makeByColor(0)); }
|
11800
11833
|
constructor(shadingPattern, backColor, foreColor) {
|
11801
11834
|
this.shadingPattern = shadingPattern;
|
11802
11835
|
this.backColor = backColor;
|
11803
11836
|
this.foreColor = foreColor;
|
11804
11837
|
}
|
11805
|
-
static get noColor() { return ShadingInfo.createByColor(color_model_info_ColorModelInfo.noColor); }
|
11806
|
-
static get auto() { return ShadingInfo.createByColor(color_model_info_ColorModelInfo.auto); }
|
11807
|
-
static get nullColor() { return ShadingInfo.createByColor(color_model_info_ColorModelInfo.makeByColor(0)); }
|
11808
11838
|
static createByColor(backColor) {
|
11809
11839
|
return new ShadingInfo(ShadingPattern.Clear, backColor, color_model_info_ColorModelInfo.nullColor);
|
11810
11840
|
}
|
@@ -12229,11 +12259,11 @@ MaskedCharacterProperties.denominator = 4294967296;
|
|
12229
12259
|
|
12230
12260
|
|
12231
12261
|
class HashBasedCacheCore {
|
12262
|
+
get count() { return this.numElements; }
|
12263
|
+
;
|
12232
12264
|
constructor() {
|
12233
12265
|
this.clear();
|
12234
12266
|
}
|
12235
|
-
get count() { return this.numElements; }
|
12236
|
-
;
|
12237
12267
|
clear() {
|
12238
12268
|
this.hashtable = {};
|
12239
12269
|
this.numElements = 0;
|
@@ -12549,14 +12579,14 @@ var BorderLineStyle;
|
|
12549
12579
|
|
12550
12580
|
|
12551
12581
|
class BorderBase {
|
12582
|
+
static getEmpty() {
|
12583
|
+
return BorderBase.empty.clone();
|
12584
|
+
}
|
12552
12585
|
constructor(style, width, color) {
|
12553
12586
|
this.style = style;
|
12554
12587
|
this.width = width;
|
12555
12588
|
this.color = color;
|
12556
12589
|
}
|
12557
|
-
static getEmpty() {
|
12558
|
-
return BorderBase.empty.clone();
|
12559
|
-
}
|
12560
12590
|
clone() {
|
12561
12591
|
return new BorderBase(this.style, this.width, this.color);
|
12562
12592
|
}
|
@@ -12637,25 +12667,25 @@ var comparers = __webpack_require__(4170);
|
|
12637
12667
|
;// CONCATENATED MODULE: ./src/common/model/history/base/history-item.ts
|
12638
12668
|
|
12639
12669
|
class history_item_HistoryItem {
|
12670
|
+
canBeMerged() {
|
12671
|
+
return false;
|
12672
|
+
}
|
12640
12673
|
constructor(modelManipulator) {
|
12641
12674
|
this.uniqueId = -1;
|
12642
12675
|
this.modelManipulator = modelManipulator;
|
12643
12676
|
}
|
12644
|
-
canBeMerged() {
|
12645
|
-
return false;
|
12646
|
-
}
|
12647
12677
|
changeModified() {
|
12648
12678
|
return true;
|
12649
12679
|
}
|
12650
12680
|
}
|
12651
12681
|
class CompositionHistoryItem extends history_item_HistoryItem {
|
12682
|
+
canBeMerged() {
|
12683
|
+
return true;
|
12684
|
+
}
|
12652
12685
|
constructor() {
|
12653
12686
|
super(null);
|
12654
12687
|
this.historyItems = [];
|
12655
12688
|
}
|
12656
|
-
canBeMerged() {
|
12657
|
-
return true;
|
12658
|
-
}
|
12659
12689
|
changeModified() {
|
12660
12690
|
var item;
|
12661
12691
|
for (var i = 0; item = this.historyItems[i]; i++) {
|
@@ -12684,12 +12714,12 @@ class CompositionHistoryItem extends history_item_HistoryItem {
|
|
12684
12714
|
;// CONCATENATED MODULE: ./src/common/model/history/base/interval-based-history-item.ts
|
12685
12715
|
|
12686
12716
|
class interval_based_history_item_IntervalBasedHistoryItem extends history_item_HistoryItem {
|
12717
|
+
get boundSubDocument() { return this.subDocInterval.subDocument; }
|
12718
|
+
get interval() { return this.subDocInterval.interval; }
|
12687
12719
|
constructor(modelManipulator, subDocInterval) {
|
12688
12720
|
super(modelManipulator);
|
12689
12721
|
this.subDocInterval = subDocInterval;
|
12690
12722
|
}
|
12691
|
-
get boundSubDocument() { return this.subDocInterval.subDocument; }
|
12692
|
-
get interval() { return this.subDocInterval.interval; }
|
12693
12723
|
}
|
12694
12724
|
|
12695
12725
|
;// CONCATENATED MODULE: ./src/common/model/history/items/paragraph-properties-history-items.ts
|
@@ -17715,15 +17745,6 @@ var FontLoadStatus;
|
|
17715
17745
|
FontLoadStatus[FontLoadStatus["Error"] = 3] = "Error";
|
17716
17746
|
})(FontLoadStatus || (FontLoadStatus = {}));
|
17717
17747
|
class ControlFont {
|
17718
|
-
constructor(fontFamily, descriptors, key) {
|
17719
|
-
this.isFontCollection = false;
|
17720
|
-
this.status = FontLoadStatus.Unloaded;
|
17721
|
-
this.sourceUrls = [];
|
17722
|
-
this._unicodeRanges = null;
|
17723
|
-
this.fontFamily = fontFamily;
|
17724
|
-
this.descriptors = descriptors;
|
17725
|
-
this.cacheKey = key ? key : [this.fontFamily, this.descriptors.cacheKey].join('/');
|
17726
|
-
}
|
17727
17748
|
get loaded() { return this.status == FontLoadStatus.Loaded; }
|
17728
17749
|
get unicodeRanges() {
|
17729
17750
|
if (!this._unicodeRanges)
|
@@ -17736,6 +17757,15 @@ class ControlFont {
|
|
17736
17757
|
controlFontType.set(ControlFontType.Italic, this.descriptors.msWordItalic());
|
17737
17758
|
return controlFontType.getValue();
|
17738
17759
|
}
|
17760
|
+
constructor(fontFamily, descriptors, key) {
|
17761
|
+
this.isFontCollection = false;
|
17762
|
+
this.status = FontLoadStatus.Unloaded;
|
17763
|
+
this.sourceUrls = [];
|
17764
|
+
this._unicodeRanges = null;
|
17765
|
+
this.fontFamily = fontFamily;
|
17766
|
+
this.descriptors = descriptors;
|
17767
|
+
this.cacheKey = key ? key : [this.fontFamily, this.descriptors.cacheKey].join('/');
|
17768
|
+
}
|
17739
17769
|
applySource(data, callback) {
|
17740
17770
|
if (!this.data)
|
17741
17771
|
this.data = data;
|
@@ -18784,16 +18814,6 @@ var utils_base64 = __webpack_require__(6477);
|
|
18784
18814
|
|
18785
18815
|
|
18786
18816
|
class CacheImageInfo {
|
18787
|
-
constructor(base64, actualId, tmpId, imageUrl, file, referenceInfo, size, isLoaded) {
|
18788
|
-
this._base64 = base64 !== undefined ? utils_base64.Base64Utils.normalizeToDataUrl(base64, "image/png") : undefined;
|
18789
|
-
this.actualId = actualId;
|
18790
|
-
this.tmpId = tmpId;
|
18791
|
-
this._referenceInfo = referenceInfo;
|
18792
|
-
this._size = size ? size : CacheImageInfo.emptyPictureSize;
|
18793
|
-
this._isLoaded = isLoaded !== undefined ? isLoaded : false;
|
18794
|
-
this.imageUrl = imageUrl;
|
18795
|
-
this.file = file;
|
18796
|
-
}
|
18797
18817
|
static get emptyPictureSize() { return new geometry_size.Size(CacheImageInfo.emptyPicDimension, CacheImageInfo.emptyPicDimension); }
|
18798
18818
|
get isLoaded() { return this._referenceInfo ? this._referenceInfo._isLoaded : this._isLoaded; }
|
18799
18819
|
set isLoaded(val) { this._isLoaded = val; }
|
@@ -18811,6 +18831,16 @@ class CacheImageInfo {
|
|
18811
18831
|
this._isLoaded = undefined;
|
18812
18832
|
this.file = undefined;
|
18813
18833
|
}
|
18834
|
+
constructor(base64, actualId, tmpId, imageUrl, file, referenceInfo, size, isLoaded) {
|
18835
|
+
this._base64 = base64 !== undefined ? utils_base64.Base64Utils.normalizeToDataUrl(base64, "image/png") : undefined;
|
18836
|
+
this.actualId = actualId;
|
18837
|
+
this.tmpId = tmpId;
|
18838
|
+
this._referenceInfo = referenceInfo;
|
18839
|
+
this._size = size ? size : CacheImageInfo.emptyPictureSize;
|
18840
|
+
this._isLoaded = isLoaded !== undefined ? isLoaded : false;
|
18841
|
+
this.imageUrl = imageUrl;
|
18842
|
+
this.file = file;
|
18843
|
+
}
|
18814
18844
|
equals(obj) {
|
18815
18845
|
return ((0,common.isDefined)(this._referenceInfo) && this._referenceInfo === obj._referenceInfo) ||
|
18816
18846
|
this.actualId == obj.actualId &&
|
@@ -18851,6 +18881,7 @@ class CacheImageInfo {
|
|
18851
18881
|
}
|
18852
18882
|
CacheImageInfo.emptyPicDimension = unit_converter/* UnitConverter */.u.pixelsToTwips(32);
|
18853
18883
|
class ImageCache {
|
18884
|
+
get emptyImage() { return this.cache[this.emptyImageId]; }
|
18854
18885
|
constructor() {
|
18855
18886
|
this.emptyImageId = 0;
|
18856
18887
|
this.lastTmpId = 0;
|
@@ -18860,7 +18891,6 @@ class ImageCache {
|
|
18860
18891
|
const emptyImage = this.createUnloadedInfoByBase64(ImageCache.transparentWhiteImage1_1, new geometry_size.Size(onePixelSize, onePixelSize));
|
18861
18892
|
emptyImage.isLoaded = false;
|
18862
18893
|
}
|
18863
|
-
get emptyImage() { return this.cache[this.emptyImageId]; }
|
18864
18894
|
getPictureData(id) {
|
18865
18895
|
return this.cache[id];
|
18866
18896
|
}
|
@@ -22104,6 +22134,7 @@ var TabAlign;
|
|
22104
22134
|
TabAlign[TabAlign["Numbering"] = 4] = "Numbering";
|
22105
22135
|
})(TabAlign || (TabAlign = {}));
|
22106
22136
|
class Paragraph {
|
22137
|
+
get isEmpty() { return this.length <= 1; }
|
22107
22138
|
constructor(subDocument, startLogPosition, length, paragraphStyle, maskedParagraphProperties, indexInMaskedParagraphProperitesCache = undefined) {
|
22108
22139
|
this.numberingListIndex = NumberingList.NumberingListNotSettedIndex;
|
22109
22140
|
this.listLevelIndex = -1;
|
@@ -22122,7 +22153,6 @@ class Paragraph {
|
|
22122
22153
|
this.mergedParagraphFormatting = null;
|
22123
22154
|
this.tabs = new TabProperties();
|
22124
22155
|
}
|
22125
|
-
get isEmpty() { return this.length <= 1; }
|
22126
22156
|
getParagraphBundleFull(model) {
|
22127
22157
|
return new MaskedParagraphPropertiesBundleFull(model.cache.maskedParagraphPropertiesCache.getItem(this.maskedParagraphProperties), model.stylesManager.addParagraphStyle(this.paragraphStyle), new ParagraphListInfo(this.numberingListIndex, this.listLevelIndex), this.tabs.clone());
|
22128
22158
|
}
|
@@ -23382,10 +23412,6 @@ class OneCharRun extends RunBase {
|
|
23382
23412
|
}
|
23383
23413
|
}
|
23384
23414
|
class PictureRun extends OneCharRun {
|
23385
|
-
constructor(startOffset, paragraph, charPropsBundle, info) {
|
23386
|
-
super(startOffset, paragraph, charPropsBundle);
|
23387
|
-
this.info = info;
|
23388
|
-
}
|
23389
23415
|
get shape() { return this.info.shape; }
|
23390
23416
|
;
|
23391
23417
|
set shape(val) { this.info.shape = val; }
|
@@ -23396,6 +23422,10 @@ class PictureRun extends OneCharRun {
|
|
23396
23422
|
;
|
23397
23423
|
get cacheInfo() { return this.info.cacheInfo; }
|
23398
23424
|
;
|
23425
|
+
constructor(startOffset, paragraph, charPropsBundle, info) {
|
23426
|
+
super(startOffset, paragraph, charPropsBundle);
|
23427
|
+
this.info = info;
|
23428
|
+
}
|
23399
23429
|
getActualSize() {
|
23400
23430
|
return this.info.size.actualSize;
|
23401
23431
|
}
|
@@ -24832,15 +24862,15 @@ var intervals_const = __webpack_require__(7814);
|
|
24832
24862
|
|
24833
24863
|
|
24834
24864
|
class LinkedInterval extends intervals_const.ConstInterval {
|
24865
|
+
get start() { return this._start.value; }
|
24866
|
+
get length() { return this._end.value - this._start.value; }
|
24867
|
+
get end() { return this._end.value; }
|
24868
|
+
get center() { return (this.start + this.end) / 2; }
|
24835
24869
|
constructor(manager, interval) {
|
24836
24870
|
super();
|
24837
24871
|
this._start = manager.registerPosition(interval.start);
|
24838
24872
|
this._end = manager.registerPosition(interval.end);
|
24839
24873
|
}
|
24840
|
-
get start() { return this._start.value; }
|
24841
|
-
get length() { return this._end.value - this._start.value; }
|
24842
|
-
get end() { return this._end.value; }
|
24843
|
-
get center() { return (this.start + this.end) / 2; }
|
24844
24874
|
destructor(manager) {
|
24845
24875
|
manager.unregisterPosition(this._start);
|
24846
24876
|
manager.unregisterPosition(this._end);
|
@@ -24862,14 +24892,14 @@ class LinkedInterval extends intervals_const.ConstInterval {
|
|
24862
24892
|
|
24863
24893
|
|
24864
24894
|
class BookmarkBase extends intervals_const.ConstInterval {
|
24865
|
-
constructor(positionManager, interval) {
|
24866
|
-
super();
|
24867
|
-
this._interval = new LinkedInterval(positionManager, interval);
|
24868
|
-
}
|
24869
24895
|
get start() { return this._interval.start; }
|
24870
24896
|
get length() { return this._interval.length; }
|
24871
24897
|
get end() { return this._interval.end; }
|
24872
24898
|
get interval() { return this._interval.getFixedInterval(); }
|
24899
|
+
constructor(positionManager, interval) {
|
24900
|
+
super();
|
24901
|
+
this._interval = new LinkedInterval(positionManager, interval);
|
24902
|
+
}
|
24873
24903
|
equals(obj) {
|
24874
24904
|
return obj && this._interval.equals(obj._interval);
|
24875
24905
|
}
|
@@ -24910,14 +24940,14 @@ class Bookmark extends BookmarkBase {
|
|
24910
24940
|
}
|
24911
24941
|
}
|
24912
24942
|
class ConstBookmark extends intervals_const.ConstInterval {
|
24943
|
+
get start() { return this.interval.start; }
|
24944
|
+
get length() { return this.interval.length; }
|
24945
|
+
get end() { return this.interval.end; }
|
24913
24946
|
constructor(interval, name) {
|
24914
24947
|
super();
|
24915
24948
|
this.interval = new boundary/* BoundaryInterval */.e(interval.start, interval.end);
|
24916
24949
|
this.name = name;
|
24917
24950
|
}
|
24918
|
-
get start() { return this.interval.start; }
|
24919
|
-
get length() { return this.interval.length; }
|
24920
|
-
get end() { return this.interval.end; }
|
24921
24951
|
equals(obj) {
|
24922
24952
|
return obj && this.name == obj.name && this.interval.equals(obj.interval);
|
24923
24953
|
}
|
@@ -25417,15 +25447,15 @@ RangePermission.Owners_GROUP_NAME = "Owners".toLowerCase();
|
|
25417
25447
|
RangePermission.Contributors_GROUP_NAME = "Contributors".toLowerCase();
|
25418
25448
|
RangePermission.Administrators_GROUP_NAME = "Administrators".toLowerCase();
|
25419
25449
|
class ConstRangePermission extends intervals_const.ConstInterval {
|
25450
|
+
get start() { return this.interval.start; }
|
25451
|
+
get length() { return this.interval.length; }
|
25452
|
+
get end() { return this.interval.end; }
|
25420
25453
|
constructor(interval, userName, group) {
|
25421
25454
|
super();
|
25422
25455
|
this.interval = boundary/* BoundaryInterval */.e.makeByConstInterval(interval);
|
25423
25456
|
this.userName = userName;
|
25424
25457
|
this.group = group;
|
25425
25458
|
}
|
25426
|
-
get start() { return this.interval.start; }
|
25427
|
-
get length() { return this.interval.length; }
|
25428
|
-
get end() { return this.interval.end; }
|
25429
25459
|
equals(obj) {
|
25430
25460
|
return obj && this.userName == obj.userName && this.group == obj.group && this.interval.equals(obj.interval);
|
25431
25461
|
}
|
@@ -25536,6 +25566,7 @@ class TableCell {
|
|
25536
25566
|
|
25537
25567
|
|
25538
25568
|
class TableRow {
|
25569
|
+
get logicColumnCount() { return this.gridBefore + this.gridAfter + utils_list.ListUtils.accumulate(this.cells, 0, (acc, c) => acc += c.columnSpan); }
|
25539
25570
|
constructor(parentTable, properties) {
|
25540
25571
|
this.cells = [];
|
25541
25572
|
this.widthBefore = TableWidthUnit.createDefault();
|
@@ -25548,7 +25579,6 @@ class TableRow {
|
|
25548
25579
|
this.parentTable = parentTable;
|
25549
25580
|
this.properties = properties;
|
25550
25581
|
}
|
25551
|
-
get logicColumnCount() { return this.gridBefore + this.gridAfter + utils_list.ListUtils.accumulate(this.cells, 0, (acc, c) => acc += c.columnSpan); }
|
25552
25582
|
get isLastRowInTable() {
|
25553
25583
|
return utils_list.ListUtils.last(this.parentTable.rows) === this;
|
25554
25584
|
}
|
@@ -26676,13 +26706,13 @@ class AnchorInlineBaseSize {
|
|
26676
26706
|
}
|
26677
26707
|
}
|
26678
26708
|
class PictureSize extends AnchorInlineBaseSize {
|
26709
|
+
get originalSize() { return this.cacheInfo.size; }
|
26710
|
+
;
|
26679
26711
|
constructor(lockAspectRatio, rotation, cacheInfo, scale) {
|
26680
26712
|
super(lockAspectRatio, rotation);
|
26681
26713
|
this.cacheInfo = cacheInfo;
|
26682
26714
|
this.scale = scale;
|
26683
26715
|
}
|
26684
|
-
get originalSize() { return this.cacheInfo.size; }
|
26685
|
-
;
|
26686
26716
|
get actualSize() {
|
26687
26717
|
return geometry_size.Size.initByCommonAction(adp => adp(this.cacheInfo.size) * adp(this.scale) / 100);
|
26688
26718
|
}
|
@@ -26855,13 +26885,13 @@ class NonVisualDrawingObjectInfo {
|
|
26855
26885
|
|
26856
26886
|
|
26857
26887
|
class BasePictureInfo {
|
26888
|
+
get cacheInfo() { return this.size.cacheInfo; }
|
26858
26889
|
constructor(size, shape, containerProperties, drawingProperties) {
|
26859
26890
|
this.size = size;
|
26860
26891
|
this.shape = shape;
|
26861
26892
|
this.containerProperties = containerProperties;
|
26862
26893
|
this.nonVisualDrawingProperties = drawingProperties;
|
26863
26894
|
}
|
26864
|
-
get cacheInfo() { return this.size.cacheInfo; }
|
26865
26895
|
}
|
26866
26896
|
class InlinePictureInfo extends BasePictureInfo {
|
26867
26897
|
constructor(size, shape, publicAPIID, containerProperties, drawingProperties) {
|
@@ -26899,14 +26929,14 @@ class AnchorPictureInfo extends BasePictureInfo {
|
|
26899
26929
|
|
26900
26930
|
|
26901
26931
|
class AnchoredPictureRun extends PictureRun {
|
26902
|
-
constructor(startOffset, paragraph, charPropsBundle, info, objectId) {
|
26903
|
-
super(startOffset, paragraph, charPropsBundle, info);
|
26904
|
-
this.anchoredObjectID = objectId < 0 ? RunBase.anchoredObjectIdCounter++ : objectId;
|
26905
|
-
}
|
26906
26932
|
get anchorInfo() { return this.info.anchorInfo; }
|
26907
26933
|
;
|
26908
26934
|
set anchorInfo(val) { this.info.anchorInfo = val; }
|
26909
26935
|
;
|
26936
|
+
constructor(startOffset, paragraph, charPropsBundle, info, objectId) {
|
26937
|
+
super(startOffset, paragraph, charPropsBundle, info);
|
26938
|
+
this.anchoredObjectID = objectId < 0 ? RunBase.anchoredObjectIdCounter++ : objectId;
|
26939
|
+
}
|
26910
26940
|
getType() {
|
26911
26941
|
return RunType.AnchoredPictureRun;
|
26912
26942
|
}
|
@@ -26951,11 +26981,11 @@ class AnchoredTextBoxRun extends TextBoxRun {
|
|
26951
26981
|
|
26952
26982
|
|
26953
26983
|
class InlinePictureRun extends PictureRun {
|
26984
|
+
get publicAPIId() { return this.info.publicAPIID; }
|
26954
26985
|
constructor(startOffset, paragraph, charPropsBundle, info) {
|
26955
26986
|
super(startOffset, paragraph, charPropsBundle, info);
|
26956
26987
|
this.info.publicAPIID = this.info.publicAPIID >= 0 ? this.info.publicAPIID : this.getNextPublicAPIId();
|
26957
26988
|
}
|
26958
|
-
get publicAPIId() { return this.info.publicAPIID; }
|
26959
26989
|
getType() {
|
26960
26990
|
return RunType.InlinePictureRun;
|
26961
26991
|
}
|
@@ -29828,11 +29858,11 @@ class BookmarkDeletedSubDocumentChange {
|
|
29828
29858
|
|
29829
29859
|
;// CONCATENATED MODULE: ./src/common/model/manipulators/base-manipulator.ts
|
29830
29860
|
class BaseManipulator {
|
29861
|
+
get history() { return this.modelManipulator.modelManager.history; }
|
29862
|
+
get model() { return this.modelManipulator.modelManager.model; }
|
29831
29863
|
constructor(manipulator) {
|
29832
29864
|
this.modelManipulator = manipulator;
|
29833
29865
|
}
|
29834
|
-
get history() { return this.modelManipulator.modelManager.history; }
|
29835
|
-
get model() { return this.modelManipulator.modelManager.model; }
|
29836
29866
|
}
|
29837
29867
|
|
29838
29868
|
;// CONCATENATED MODULE: ./src/common/model/manipulators/bookmarks-manipulator.ts
|
@@ -31648,11 +31678,11 @@ class CellGridInfoManager {
|
|
31648
31678
|
|
31649
31679
|
|
31650
31680
|
class SelectedTableRowInfo {
|
31681
|
+
get row() { return this.cells[0].cell.parentRow; }
|
31651
31682
|
constructor(rowIndex, cells) {
|
31652
31683
|
this.rowIndex = rowIndex;
|
31653
31684
|
this.cells = cells;
|
31654
31685
|
}
|
31655
|
-
get row() { return this.cells[0].cell.parentRow; }
|
31656
31686
|
get isSeries() {
|
31657
31687
|
return utils_list.ListUtils.allOf(this.cells, (cellInfo, cellInd) => cellInfo.cellIndex == this.cells[cellInd - 1].cellIndex + 1, 1);
|
31658
31688
|
}
|
@@ -31667,16 +31697,6 @@ class SelectedTableCellInfo {
|
|
31667
31697
|
}
|
31668
31698
|
}
|
31669
31699
|
class TableSelectionData {
|
31670
|
-
constructor(info, rows) {
|
31671
|
-
this.info = info;
|
31672
|
-
this.rows = rows;
|
31673
|
-
if (!rows[0]) {
|
31674
|
-
this._isSquare = false;
|
31675
|
-
this._isSelectedEntireTable = false;
|
31676
|
-
this._withoutGapByRows = false;
|
31677
|
-
this._areCellsSelectedInSeries = false;
|
31678
|
-
}
|
31679
|
-
}
|
31680
31700
|
get numRows() { return this.rows.length; }
|
31681
31701
|
get startRowIndex() { return this.rows[0].rowIndex; }
|
31682
31702
|
get isSquare() { return this._isSquare === undefined ? (this._isSquare = this.calculateIsSquare()) : this._isSquare; }
|
@@ -31702,6 +31722,16 @@ class TableSelectionData {
|
|
31702
31722
|
(this._areCellsSelectedInSeries = utils_list.ListUtils.allOf(this.rows, (rowInfo, rowInd) => (rowInd == 0 || (rowInfo.rowIndex == this.rows[rowInd - 1].rowIndex + 1)) && rowInfo.isSeries)) :
|
31703
31723
|
this._areCellsSelectedInSeries;
|
31704
31724
|
}
|
31725
|
+
constructor(info, rows) {
|
31726
|
+
this.info = info;
|
31727
|
+
this.rows = rows;
|
31728
|
+
if (!rows[0]) {
|
31729
|
+
this._isSquare = false;
|
31730
|
+
this._isSelectedEntireTable = false;
|
31731
|
+
this._withoutGapByRows = false;
|
31732
|
+
this._areCellsSelectedInSeries = false;
|
31733
|
+
}
|
31734
|
+
}
|
31705
31735
|
foreach(onEachRowCallback, onEachCellCallback) {
|
31706
31736
|
for (let rowOffset = 0, rowInfo; rowInfo = this.rows[rowOffset]; rowOffset++) {
|
31707
31737
|
onEachRowCallback(rowInfo);
|
@@ -31739,13 +31769,13 @@ class TableSelectionData {
|
|
31739
31769
|
}
|
31740
31770
|
}
|
31741
31771
|
class SelectedTableInfo {
|
31772
|
+
get isSelected() { return !!this.rawData.rows.length; }
|
31742
31773
|
constructor(table, gridInfoManager, rawRowsData, extendedRowsData) {
|
31743
31774
|
this.table = table;
|
31744
31775
|
this.gridInfoManager = gridInfoManager;
|
31745
31776
|
this.rawData = new TableSelectionData(this, rawRowsData);
|
31746
31777
|
this.extendedData = new TableSelectionData(this, extendedRowsData);
|
31747
31778
|
}
|
31748
|
-
get isSelected() { return !!this.rawData.rows.length; }
|
31749
31779
|
}
|
31750
31780
|
class SelectedCellsCalculator {
|
31751
31781
|
constructor() {
|
@@ -31987,13 +32017,6 @@ class SelectedSpecialRunInfo {
|
|
31987
32017
|
|
31988
32018
|
|
31989
32019
|
class SelectionIntervalsInfo {
|
31990
|
-
constructor(subDocument, intervals, lastIntervalIndex = intervals.length - 1) {
|
31991
|
-
this.specialRunInfo = new SelectedSpecialRunInfo();
|
31992
|
-
this.subDocument = subDocument;
|
31993
|
-
this._intervals = intervals;
|
31994
|
-
this.lastIntervalIndex = lastIntervalIndex;
|
31995
|
-
this._tableInfo = null;
|
31996
|
-
}
|
31997
32020
|
resetTableInfo() {
|
31998
32021
|
this._tableInfo = null;
|
31999
32022
|
}
|
@@ -32020,6 +32043,13 @@ class SelectionIntervalsInfo {
|
|
32020
32043
|
get subDocPosition() { return new SubDocumentPosition(this.subDocument, this.position); }
|
32021
32044
|
get multiselection() { return this.intervals.length > 1; }
|
32022
32045
|
get isCollapsed() { return !this._intervals[1] && this._intervals[0].isCollapsed(); }
|
32046
|
+
constructor(subDocument, intervals, lastIntervalIndex = intervals.length - 1) {
|
32047
|
+
this.specialRunInfo = new SelectedSpecialRunInfo();
|
32048
|
+
this.subDocument = subDocument;
|
32049
|
+
this._intervals = intervals;
|
32050
|
+
this.lastIntervalIndex = lastIntervalIndex;
|
32051
|
+
this._tableInfo = null;
|
32052
|
+
}
|
32023
32053
|
static fromPosition(subDocument, position) {
|
32024
32054
|
return new SelectionIntervalsInfo(subDocument, [new fixed.FixedInterval(position, 0)], 0);
|
32025
32055
|
}
|
@@ -33372,13 +33402,13 @@ class TocFieldRequestManager extends FieldRequestManager {
|
|
33372
33402
|
class FieldRequestData {
|
33373
33403
|
}
|
33374
33404
|
class FieldDocVariableRequestData extends FieldRequestData {
|
33405
|
+
get serverUpdateFieldType() { return ServerUpdateFieldType.DocVariable; }
|
33375
33406
|
constructor(fieldInterval, fieldName, parameters) {
|
33376
33407
|
super();
|
33377
33408
|
this.fieldInterval = fieldInterval;
|
33378
33409
|
this.fieldName = fieldName;
|
33379
33410
|
this.parameters = parameters;
|
33380
33411
|
}
|
33381
|
-
get serverUpdateFieldType() { return ServerUpdateFieldType.DocVariable; }
|
33382
33412
|
asJson() {
|
33383
33413
|
return {
|
33384
33414
|
[JSONUpdateFieldCommandInfo.ServerUpdateFieldType]: this.serverUpdateFieldType,
|
@@ -33396,11 +33426,11 @@ class FieldDocVariableRequestData extends FieldRequestData {
|
|
33396
33426
|
}
|
33397
33427
|
}
|
33398
33428
|
class FieldMailMergeRequestData extends FieldRequestData {
|
33429
|
+
get serverUpdateFieldType() { return ServerUpdateFieldType.MergeField; }
|
33399
33430
|
constructor(fieldName) {
|
33400
33431
|
super();
|
33401
33432
|
this.fieldName = fieldName;
|
33402
33433
|
}
|
33403
|
-
get serverUpdateFieldType() { return ServerUpdateFieldType.MergeField; }
|
33404
33434
|
asJson() {
|
33405
33435
|
return {
|
33406
33436
|
[JSONUpdateFieldCommandInfo.ServerUpdateFieldType]: this.serverUpdateFieldType,
|
@@ -36288,6 +36318,7 @@ class UpdateFieldsOptions {
|
|
36288
36318
|
}
|
36289
36319
|
}
|
36290
36320
|
class FieldsWaitingForUpdate {
|
36321
|
+
get fields() { return this.subDocument.fields; }
|
36291
36322
|
constructor(modelManager, layoutFormatterManager, requestManager, subDocumentIntervals, options, callback) {
|
36292
36323
|
this.infoForFutureUpdate = [];
|
36293
36324
|
this.savedSelectionIntervals = [];
|
@@ -36300,7 +36331,6 @@ class FieldsWaitingForUpdate {
|
|
36300
36331
|
this.infoForFutureUpdate = utils_list.ListUtils.map(subDocumentIntervals.intervals, (interval) => new FieldParsersAndIntervals(new LinkedInterval(this.subDocument.positionManager, interval)));
|
36301
36332
|
this.savedSelectionIntervals = utils_list.ListUtils.map(subDocumentIntervals.intervals, (interval) => new LinkedInterval(this.subDocument.positionManager, interval));
|
36302
36333
|
}
|
36303
|
-
get fields() { return this.subDocument.fields; }
|
36304
36334
|
update(response, immediateSendRequest = true) {
|
36305
36335
|
if (this.fields.length == 0) {
|
36306
36336
|
this.endAction();
|
@@ -36937,13 +36967,13 @@ class LayoutBoxIteratorOtherSubDocument extends LayoutBoxIteratorBase {
|
|
36937
36967
|
|
36938
36968
|
|
36939
36969
|
class InsertTextHistoryItem extends history_item_HistoryItem {
|
36970
|
+
canBeMerged() {
|
36971
|
+
return true;
|
36972
|
+
}
|
36940
36973
|
constructor(modelManipulator, params) {
|
36941
36974
|
super(modelManipulator);
|
36942
36975
|
this.params = params.clone();
|
36943
36976
|
}
|
36944
|
-
canBeMerged() {
|
36945
|
-
return true;
|
36946
|
-
}
|
36947
36977
|
redo() {
|
36948
36978
|
this.modelManipulator.text.insertTextInner(this.params);
|
36949
36979
|
}
|
@@ -37531,6 +37561,16 @@ class SubDocumentCollection {
|
|
37531
37561
|
|
37532
37562
|
|
37533
37563
|
class DocumentModel {
|
37564
|
+
get subDocuments() {
|
37565
|
+
return this.subDocumentsCollection.filteredCollection;
|
37566
|
+
}
|
37567
|
+
get options() { return this.modelOptions.control; }
|
37568
|
+
;
|
37569
|
+
get isDocumentProtectionEnabled() {
|
37570
|
+
const properties = this.documentProtectionProperties;
|
37571
|
+
return this.aspxIsDocumentProtectionEnabled ||
|
37572
|
+
(properties.enforceProtection && properties.protectionType != DocumentProtectionType.None);
|
37573
|
+
}
|
37534
37574
|
constructor(modelOptions, subDocumentsIdCounter = 1) {
|
37535
37575
|
this.mirrorMargins = false;
|
37536
37576
|
this.aspxIsDocumentProtectionEnabled = false;
|
@@ -37568,16 +37608,6 @@ class DocumentModel {
|
|
37568
37608
|
this.compatibilitySettings = new CompatibilitySettings();
|
37569
37609
|
this.docVariables = new DocumentVariables();
|
37570
37610
|
}
|
37571
|
-
get subDocuments() {
|
37572
|
-
return this.subDocumentsCollection.filteredCollection;
|
37573
|
-
}
|
37574
|
-
get options() { return this.modelOptions.control; }
|
37575
|
-
;
|
37576
|
-
get isDocumentProtectionEnabled() {
|
37577
|
-
const properties = this.documentProtectionProperties;
|
37578
|
-
return this.aspxIsDocumentProtectionEnabled ||
|
37579
|
-
(properties.enforceProtection && properties.protectionType != DocumentProtectionType.None);
|
37580
|
-
}
|
37581
37611
|
setPageColor(value) {
|
37582
37612
|
this.displayBackgroundShape = true;
|
37583
37613
|
this.pageBackColor = value;
|
@@ -38855,11 +38885,11 @@ class SplitTableCellToTheRightHistoryItem extends TableBasedHistoryItem {
|
|
38855
38885
|
|
38856
38886
|
|
38857
38887
|
class InsertTableCellOperationBase {
|
38888
|
+
get modelManipulator() { return this.modelManager.modelManipulator; }
|
38858
38889
|
constructor(modelManager, subDocument) {
|
38859
38890
|
this.subDocument = subDocument;
|
38860
38891
|
this.modelManager = modelManager;
|
38861
38892
|
}
|
38862
|
-
get modelManipulator() { return this.modelManager.modelManipulator; }
|
38863
38893
|
execute(table, rowIndex, cellIndex, inpPos, options) {
|
38864
38894
|
let row = table.rows[rowIndex];
|
38865
38895
|
let cell = row.cells[cellIndex];
|
@@ -38954,11 +38984,11 @@ class InsertTableRowHistoryItem extends TableBasedHistoryItem {
|
|
38954
38984
|
|
38955
38985
|
|
38956
38986
|
class InsertTableRowOperationBase {
|
38987
|
+
get modelManipulator() { return this.modelManager.modelManipulator; }
|
38957
38988
|
constructor(modelManager, subDocument) {
|
38958
38989
|
this.modelManager = modelManager;
|
38959
38990
|
this.subDocument = subDocument;
|
38960
38991
|
}
|
38961
|
-
get modelManipulator() { return this.modelManager.modelManipulator; }
|
38962
38992
|
execute(table, patternRowIndex) {
|
38963
38993
|
let patternRow = table.rows[patternRowIndex];
|
38964
38994
|
let insertParagraphsPositionInfo = this.getInsertParagraphsPositionInfo(table, patternRowIndex);
|
@@ -39064,12 +39094,12 @@ class InsertTableRowBelowOperation extends InsertTableRowOperationBase {
|
|
39064
39094
|
|
39065
39095
|
|
39066
39096
|
class MergeTableCellsOperationBase {
|
39097
|
+
get modelManipulator() { return this.modelManager.modelManipulator; }
|
39067
39098
|
constructor(modelManager, subDocument) {
|
39068
39099
|
this.needDeleteNextTableCell = false;
|
39069
39100
|
this.modelManager = modelManager;
|
39070
39101
|
this.subDocument = subDocument;
|
39071
39102
|
}
|
39072
|
-
get modelManipulator() { return this.modelManager.modelManipulator; }
|
39073
39103
|
execute(position, suppressNormalizeTableRows, inpPos) {
|
39074
39104
|
let nextCellPosition = this.calculateNextCell(position);
|
39075
39105
|
this.updateCellsProperties(position, nextCellPosition);
|
@@ -39207,13 +39237,13 @@ class DeleteOneTableCellWithShiftToTheUpOperation extends MergeTwoTableCellsVert
|
|
39207
39237
|
;// CONCATENATED MODULE: ./src/common/model/changes/sub-document/table/cell-property-changed.ts
|
39208
39238
|
|
39209
39239
|
class TableCellPropertyChangedSubDocumentChange {
|
39240
|
+
get subDocumentId() { return this.subDocument.id; }
|
39210
39241
|
constructor(subDocument, property, newState) {
|
39211
39242
|
this.subDocument = subDocument;
|
39212
39243
|
this.property = property;
|
39213
39244
|
this.newState = newState;
|
39214
39245
|
this.type = ModelChangeType.TableCellPropertyChanged;
|
39215
39246
|
}
|
39216
|
-
get subDocumentId() { return this.subDocument.id; }
|
39217
39247
|
}
|
39218
39248
|
|
39219
39249
|
;// CONCATENATED MODULE: ./src/common/model/history/states/history-item-state.ts
|
@@ -39750,13 +39780,13 @@ class TableCellPropertiesWithUseManipulatorCore {
|
|
39750
39780
|
;// CONCATENATED MODULE: ./src/common/model/changes/sub-document/table/property-changed.ts
|
39751
39781
|
|
39752
39782
|
class TablePropertyChangedSubDocumentChange {
|
39783
|
+
get subDocumentId() { return this.subDocument.id; }
|
39753
39784
|
constructor(subDocument, property, newState) {
|
39754
39785
|
this.subDocument = subDocument;
|
39755
39786
|
this.property = property;
|
39756
39787
|
this.newState = newState;
|
39757
39788
|
this.type = ModelChangeType.TablePropertyChanged;
|
39758
39789
|
}
|
39759
|
-
get subDocumentId() { return this.subDocument.id; }
|
39760
39790
|
}
|
39761
39791
|
|
39762
39792
|
;// CONCATENATED MODULE: ./src/common/model/manipulators/tables/table-properties-manipulator.ts
|
@@ -39892,13 +39922,13 @@ class TablePropertiesWithUseManipulatorCore {
|
|
39892
39922
|
;// CONCATENATED MODULE: ./src/common/model/changes/sub-document/table/row-property-changed.ts
|
39893
39923
|
|
39894
39924
|
class TableRowPropertyChangedSubDocumentChange {
|
39925
|
+
get subDocumentId() { return this.subDocument.id; }
|
39895
39926
|
constructor(subDocument, property, newState) {
|
39896
39927
|
this.subDocument = subDocument;
|
39897
39928
|
this.property = property;
|
39898
39929
|
this.newState = newState;
|
39899
39930
|
this.type = ModelChangeType.TableRowPropertyChanged;
|
39900
39931
|
}
|
39901
|
-
get subDocumentId() { return this.subDocument.id; }
|
39902
39932
|
}
|
39903
39933
|
|
39904
39934
|
;// CONCATENATED MODULE: ./src/common/model/manipulators/tables/table-row-properties-manipulator.ts
|
@@ -40816,12 +40846,12 @@ class AnchoredTextBoxInsertedSubDocumentChange extends ContentInsertedSubDocumen
|
|
40816
40846
|
;// CONCATENATED MODULE: ./src/common/model/history/base/position-based-history-item.ts
|
40817
40847
|
|
40818
40848
|
class PositionBasedHistoryItem extends history_item_HistoryItem {
|
40849
|
+
get boundSubDocument() { return this.subDocPos.subDocument; }
|
40850
|
+
get position() { return this.subDocPos.position; }
|
40819
40851
|
constructor(modelManipulator, subDocPos) {
|
40820
40852
|
super(modelManipulator);
|
40821
40853
|
this.subDocPos = subDocPos;
|
40822
40854
|
}
|
40823
|
-
get boundSubDocument() { return this.subDocPos.subDocument; }
|
40824
|
-
get position() { return this.subDocPos.position; }
|
40825
40855
|
}
|
40826
40856
|
|
40827
40857
|
;// CONCATENATED MODULE: ./src/common/model/history/items/floating-objects/insert-anchored-picture-history-item.ts
|
@@ -41032,6 +41062,12 @@ class SubDocumentInserterOptions extends initializer/* Initializer */.m7 {
|
|
41032
41062
|
}
|
41033
41063
|
}
|
41034
41064
|
class SubDocumentInserter {
|
41065
|
+
get history() { return this.targetModelManipulator.modelManager.history; }
|
41066
|
+
get modelsConstOffset() { return this.targetStartPosition - this.sourceInterval.start; }
|
41067
|
+
get sameModel() { return this.sourceDocumentModel === this.targetDocumentModel; }
|
41068
|
+
get currInsertSubDocumentPosition() {
|
41069
|
+
return new SubDocumentPosition(this.targetSubDocument, this.currentTargetPosition);
|
41070
|
+
}
|
41035
41071
|
constructor(targetModelManipulator, options, targetSubDocPos, sourceSubDocInterval) {
|
41036
41072
|
this.numberingListCache = {};
|
41037
41073
|
this.abstractNumberingListIndexesMap = {};
|
@@ -41067,12 +41103,6 @@ class SubDocumentInserter {
|
|
41067
41103
|
[RunType.NoteContinuationSeparatorRun]: this.notSupportedRunHandler.bind(this),
|
41068
41104
|
};
|
41069
41105
|
}
|
41070
|
-
get history() { return this.targetModelManipulator.modelManager.history; }
|
41071
|
-
get modelsConstOffset() { return this.targetStartPosition - this.sourceInterval.start; }
|
41072
|
-
get sameModel() { return this.sourceDocumentModel === this.targetDocumentModel; }
|
41073
|
-
get currInsertSubDocumentPosition() {
|
41074
|
-
return new SubDocumentPosition(this.targetSubDocument, this.currentTargetPosition);
|
41075
|
-
}
|
41076
41106
|
insert() {
|
41077
41107
|
this.sourceSubDocument = this.sourceSubDocInterval.subDocument;
|
41078
41108
|
this.sourceInterval = this.sourceSubDocInterval.interval;
|
@@ -41447,6 +41477,9 @@ class SubDocumentInserter {
|
|
41447
41477
|
|
41448
41478
|
|
41449
41479
|
class CreateRangeCopyOperation {
|
41480
|
+
get documentModel() {
|
41481
|
+
return this.subDocument.documentModel;
|
41482
|
+
}
|
41450
41483
|
constructor(subDocument, abstractNumberingListCache, numberingListCache) {
|
41451
41484
|
this.newOffsetAtStartChunk = 0;
|
41452
41485
|
this.additionalParagraphRunPositions = {};
|
@@ -41454,9 +41487,6 @@ class CreateRangeCopyOperation {
|
|
41454
41487
|
this.numberingListCache = numberingListCache;
|
41455
41488
|
this.abstractNumberingListCache = abstractNumberingListCache;
|
41456
41489
|
}
|
41457
|
-
get documentModel() {
|
41458
|
-
return this.subDocument.documentModel;
|
41459
|
-
}
|
41460
41490
|
copyStyles(newDocumentModel) {
|
41461
41491
|
newDocumentModel.characterStyles = utils_list.ListUtils.deepCopy(this.documentModel.characterStyles);
|
41462
41492
|
newDocumentModel.paragraphStyles = utils_list.ListUtils.deepCopy(this.documentModel.paragraphStyles);
|
@@ -42231,11 +42261,11 @@ class FieldContextMenuHelper {
|
|
42231
42261
|
;// CONCATENATED MODULE: ./src/client/model-api/interval.ts
|
42232
42262
|
|
42233
42263
|
class IntervalApi {
|
42264
|
+
get end() { return this.start + this.length; }
|
42234
42265
|
constructor(start, length) {
|
42235
42266
|
this.start = start;
|
42236
42267
|
this.length = Math.max(0, length);
|
42237
42268
|
}
|
42238
|
-
get end() { return this.start + this.length; }
|
42239
42269
|
}
|
42240
42270
|
function convertToIntervalApi(curr) {
|
42241
42271
|
return new IntervalApi(curr.start, curr.length);
|
@@ -43896,13 +43926,13 @@ class NumberingListDeletedModelChange {
|
|
43896
43926
|
;// CONCATENATED MODULE: ./src/common/model/changes/sub-document/list/paragraph-numbering-list-changed.ts
|
43897
43927
|
|
43898
43928
|
class ParagraphNumberingListChangedSubDocumentChange {
|
43929
|
+
get subDocumentId() { return this.subDocument.id; }
|
43899
43930
|
constructor(subDocument, newState, oldAbstractNumberingListIndex) {
|
43900
43931
|
this.subDocument = subDocument;
|
43901
43932
|
this.newState = newState;
|
43902
43933
|
this.oldAbstractNumberingListIndex = oldAbstractNumberingListIndex;
|
43903
43934
|
this.type = ModelChangeType.ParagraphNumberingListChanged;
|
43904
43935
|
}
|
43905
|
-
get subDocumentId() { return this.subDocument.id; }
|
43906
43936
|
}
|
43907
43937
|
|
43908
43938
|
;// CONCATENATED MODULE: ./src/common/model/changes/model/list/list-level-character-property-changed.ts
|
@@ -45091,12 +45121,12 @@ class CallbacksInfo {
|
|
45091
45121
|
}
|
45092
45122
|
}
|
45093
45123
|
class PictureLoader {
|
45124
|
+
get imageCache() { return this.modelManipulator.model.cache.imageCache; }
|
45094
45125
|
constructor(modelManipulator) {
|
45095
45126
|
this.callbacksInfo = [];
|
45096
45127
|
this.modelManipulator = modelManipulator;
|
45097
45128
|
this.sizeUpdater = new PicSizeUpdater(modelManipulator, this);
|
45098
45129
|
}
|
45099
|
-
get imageCache() { return this.modelManipulator.model.cache.imageCache; }
|
45100
45130
|
notifyPictureLoaded() {
|
45101
45131
|
if (this.sizeUpdater.allPicturesLoaded()) {
|
45102
45132
|
const clbs = this.callbacksInfo;
|
@@ -48076,6 +48106,7 @@ class NullHistoryItemNode extends HistoryItemNode {
|
|
48076
48106
|
|
48077
48107
|
|
48078
48108
|
class ModelManipulator {
|
48109
|
+
get model() { return this.modelManager.model; }
|
48079
48110
|
constructor(modelManager, batchUpdatableObject) {
|
48080
48111
|
this.modelListeners = [];
|
48081
48112
|
this.onFontsChanged = new EventDispatcher();
|
@@ -48108,7 +48139,6 @@ class ModelManipulator {
|
|
48108
48139
|
this.section = new SectionManipulator(this);
|
48109
48140
|
this.documentMerger = new DocumentMerger(this);
|
48110
48141
|
}
|
48111
|
-
get model() { return this.modelManager.model; }
|
48112
48142
|
notifyModelChanged(change) {
|
48113
48143
|
this.modelListeners.forEach(listener => listener.modelChanged(change));
|
48114
48144
|
}
|
@@ -50242,17 +50272,17 @@ class RtfAnchoredRunExporter {
|
|
50242
50272
|
|
50243
50273
|
|
50244
50274
|
class RtfAnchoredPictureRunExporter extends RtfAnchoredRunExporter {
|
50245
|
-
constructor(rtfBuilder, pictureRun, imageCache) {
|
50246
|
-
super(rtfBuilder, pictureRun.anchorInfo, pictureRun.shape, pictureRun.size, pictureRun.info.containerProperties);
|
50247
|
-
this.pictureRun = pictureRun;
|
50248
|
-
this.imageCache = imageCache;
|
50249
|
-
}
|
50250
50275
|
getWidth() {
|
50251
50276
|
return this.size.actualSize.width;
|
50252
50277
|
}
|
50253
50278
|
getHeight() {
|
50254
50279
|
return this.size.actualSize.height;
|
50255
50280
|
}
|
50281
|
+
constructor(rtfBuilder, pictureRun, imageCache) {
|
50282
|
+
super(rtfBuilder, pictureRun.anchorInfo, pictureRun.shape, pictureRun.size, pictureRun.info.containerProperties);
|
50283
|
+
this.pictureRun = pictureRun;
|
50284
|
+
this.imageCache = imageCache;
|
50285
|
+
}
|
50256
50286
|
exportContent() {
|
50257
50287
|
const exportStrategy = new RtfFloatingObjectPictureExportStrategy();
|
50258
50288
|
exportStrategy.export(this.rtfBuilder, this.pictureRun.info, this.imageCache, this.pictureRun.info.containerProperties);
|
@@ -52483,6 +52513,8 @@ class RtfTableExporter {
|
|
52483
52513
|
|
52484
52514
|
|
52485
52515
|
class RtfContentExporter {
|
52516
|
+
get shouldExportHiddenText() { return true; }
|
52517
|
+
;
|
52486
52518
|
constructor(documentModel, options, rtfExportHelper) {
|
52487
52519
|
this.shouldFourceUpdateIterators = false;
|
52488
52520
|
this.documentModel = documentModel;
|
@@ -52505,8 +52537,6 @@ class RtfContentExporter {
|
|
52505
52537
|
.add(RunType.AnchoredTextBoxRun, this.anchoredTextBoxRunHandler)
|
52506
52538
|
.get();
|
52507
52539
|
}
|
52508
|
-
get shouldExportHiddenText() { return true; }
|
52509
|
-
;
|
52510
52540
|
createRtfBuilder() {
|
52511
52541
|
return new RtfBuilder();
|
52512
52542
|
}
|
@@ -53413,6 +53443,7 @@ class RtfExportHelper {
|
|
53413
53443
|
|
53414
53444
|
|
53415
53445
|
class RtfExporter {
|
53446
|
+
get documentModel() { return this.modelManipulator.model; }
|
53416
53447
|
constructor(modelManipulator, options) {
|
53417
53448
|
this.modelManipulator = modelManipulator;
|
53418
53449
|
this.options = options;
|
@@ -53420,7 +53451,6 @@ class RtfExporter {
|
|
53420
53451
|
this.contentExporter = new RtfContentExporter(this.documentModel, options, this.rtfExportHelper);
|
53421
53452
|
this.rtfBuilder = this.contentExporter.createRtfBuilder();
|
53422
53453
|
}
|
53423
|
-
get documentModel() { return this.modelManipulator.model; }
|
53424
53454
|
exportToBlob(callback) {
|
53425
53455
|
this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout, (_loaded) => {
|
53426
53456
|
callback(new Blob([this.exportAsString()], { type: 'application/rtf' }));
|
@@ -55647,6 +55677,7 @@ var Win32MapMode;
|
|
55647
55677
|
|
55648
55678
|
|
55649
55679
|
class DestinationBase {
|
55680
|
+
static get empty() { return EmptyDestination._empty; }
|
55650
55681
|
constructor(importer) {
|
55651
55682
|
if (importer) {
|
55652
55683
|
this.importer = importer;
|
@@ -55656,7 +55687,6 @@ class DestinationBase {
|
|
55656
55687
|
importer.importers.character.characterFormatting.rtfFormattingInfo = rtfFormattingInfo;
|
55657
55688
|
}
|
55658
55689
|
}
|
55659
|
-
static get empty() { return EmptyDestination._empty; }
|
55660
55690
|
createRtfFormattingInfo() {
|
55661
55691
|
return new RtfFormattingInfo();
|
55662
55692
|
}
|
@@ -55807,15 +55837,15 @@ EmptyDestination._empty = new EmptyDestination();
|
|
55807
55837
|
|
55808
55838
|
|
55809
55839
|
class SkipDestination extends DestinationBase {
|
55840
|
+
get destinationType() { return DestinationType.SkipDestination; }
|
55841
|
+
get controlCharHT() { return null; }
|
55842
|
+
;
|
55810
55843
|
constructor(importer) {
|
55811
55844
|
super(importer);
|
55812
55845
|
const formInfo = this.importer.importers.character.characterFormatting.rtfFormattingInfo;
|
55813
55846
|
this.oldDecoder = formInfo.activeDecoder;
|
55814
55847
|
formInfo.activeDecoder = new SkipCharacterDecoder();
|
55815
55848
|
}
|
55816
|
-
get destinationType() { return DestinationType.SkipDestination; }
|
55817
|
-
get controlCharHT() { return null; }
|
55818
|
-
;
|
55819
55849
|
beforePopRtfState() {
|
55820
55850
|
this.importer.importers.character.characterFormatting.rtfFormattingInfo.activeDecoder = this.oldDecoder;
|
55821
55851
|
super.beforePopRtfState();
|
@@ -56813,12 +56843,12 @@ class HsvInfo {
|
|
56813
56843
|
|
56814
56844
|
|
56815
56845
|
class ShapePropertyHsvValueDestination extends DestinationBase {
|
56846
|
+
get destinationType() { return DestinationType.ShapePropertyHsvValueDestination; }
|
56847
|
+
get controlCharHT() { return null; }
|
56816
56848
|
constructor(importer, hsvInfo = new HsvInfo()) {
|
56817
56849
|
super(importer);
|
56818
56850
|
this.hsvInfo = hsvInfo;
|
56819
56851
|
}
|
56820
|
-
get destinationType() { return DestinationType.ShapePropertyHsvValueDestination; }
|
56821
|
-
get controlCharHT() { return null; }
|
56822
56852
|
static getThis(importer) {
|
56823
56853
|
return importer.destination;
|
56824
56854
|
}
|
@@ -57010,16 +57040,16 @@ class RtfHundredthsOfMillimeterConverter extends RtfPictureUnitsConverter {
|
|
57010
57040
|
|
57011
57041
|
|
57012
57042
|
class PictureDestination extends HexContentDestination {
|
57043
|
+
get destinationType() { return DestinationType.PictureDestination; }
|
57044
|
+
;
|
57045
|
+
get controlCharHT() { return null; }
|
57046
|
+
;
|
57013
57047
|
constructor(importer) {
|
57014
57048
|
super(importer);
|
57015
57049
|
this.info = new PictureDestinationInfo();
|
57016
57050
|
this.oldDecoder = this.importer.importers.character.characterFormatting.rtfFormattingInfo.activeDecoder;
|
57017
57051
|
this.importer.importers.character.characterFormatting.rtfFormattingInfo.activeDecoder = new EmptyCharacterDecoder();
|
57018
57052
|
}
|
57019
|
-
get destinationType() { return DestinationType.PictureDestination; }
|
57020
|
-
;
|
57021
|
-
get controlCharHT() { return null; }
|
57022
|
-
;
|
57023
57053
|
static getThis(rtfImporter) {
|
57024
57054
|
return rtfImporter.destination;
|
57025
57055
|
}
|
@@ -57360,12 +57390,12 @@ class ShapePropertyValueDestination extends DestinationBase {
|
|
57360
57390
|
|
57361
57391
|
|
57362
57392
|
class ShapePropertyDestination extends DestinationBase {
|
57393
|
+
get destinationType() { return DestinationType.ShapePropertyDestination; }
|
57394
|
+
get controlCharHT() { return null; }
|
57363
57395
|
constructor(rtfImporter, properties) {
|
57364
57396
|
super(rtfImporter);
|
57365
57397
|
this.properties = properties;
|
57366
57398
|
}
|
57367
|
-
get destinationType() { return DestinationType.ShapePropertyDestination; }
|
57368
|
-
get controlCharHT() { return null; }
|
57369
57399
|
processControlCharCore(_ch) { }
|
57370
57400
|
processKeywordCore(keyword, parameterValue, hasParameter) {
|
57371
57401
|
const translator = this.keywordHT[keyword];
|
@@ -58155,12 +58185,12 @@ ShapePictureDestination.trueIntValue = 1;
|
|
58155
58185
|
|
58156
58186
|
|
58157
58187
|
class DestinationSubDocument extends DestinationBase {
|
58188
|
+
get destinationType() { return DestinationType.DestinationSubDocument; }
|
58189
|
+
get controlCharHT() { return DestinationSubDocument.controlCharHT; }
|
58158
58190
|
constructor(importer, targetSubDocument) {
|
58159
58191
|
super(importer);
|
58160
58192
|
this.subDocument = targetSubDocument;
|
58161
58193
|
}
|
58162
|
-
get destinationType() { return DestinationType.DestinationSubDocument; }
|
58163
|
-
get controlCharHT() { return DestinationSubDocument.controlCharHT; }
|
58164
58194
|
get canAppendText() { return true; }
|
58165
58195
|
canProcessSpecialHexChar() { return true; }
|
58166
58196
|
get documentModel() { return this.subDocument.documentModel; }
|
@@ -59982,12 +60012,12 @@ class ShapeTextDestination extends DestinationSubDocument {
|
|
59982
60012
|
|
59983
60013
|
|
59984
60014
|
class ShapePropertiesDestinationBase extends DestinationBase {
|
60015
|
+
get destinationType() { return DestinationType.ShapePropertiesDestinationBase; }
|
60016
|
+
get controlCharHT() { return null; }
|
59985
60017
|
constructor(importer, shapeProperties = new RtfShapePropertiesInfo()) {
|
59986
60018
|
super(importer);
|
59987
60019
|
this.shapeProperties = shapeProperties;
|
59988
60020
|
}
|
59989
|
-
get destinationType() { return DestinationType.ShapePropertiesDestinationBase; }
|
59990
|
-
get controlCharHT() { return null; }
|
59991
60021
|
static getThis(rtfImporter) {
|
59992
60022
|
return rtfImporter.destination;
|
59993
60023
|
}
|
@@ -60248,15 +60278,15 @@ class RtfParagraphImporterState {
|
|
60248
60278
|
}
|
60249
60279
|
}
|
60250
60280
|
class RtfParagraphImporter extends RtfBaseImporter {
|
60281
|
+
get paragraph() { return this.data.positionStates.last.paragraph; }
|
60282
|
+
set paragraph(value) { this.data.positionStates.last.paragraph = value; }
|
60283
|
+
get paragraphFormatting() { return this.states.last.paragraphFormatting; }
|
60284
|
+
set paragraphFormatting(value) { this.states.last.paragraphFormatting = value; }
|
60251
60285
|
constructor(data) {
|
60252
60286
|
super(data);
|
60253
60287
|
this.states = new stack/* Stack */.K();
|
60254
60288
|
this.states.push(new RtfParagraphImporterState(new RtfParagraphProperties()));
|
60255
60289
|
}
|
60256
|
-
get paragraph() { return this.data.positionStates.last.paragraph; }
|
60257
|
-
set paragraph(value) { this.data.positionStates.last.paragraph = value; }
|
60258
|
-
get paragraphFormatting() { return this.states.last.paragraphFormatting; }
|
60259
|
-
set paragraphFormatting(value) { this.states.last.paragraphFormatting = value; }
|
60260
60290
|
static getOnlyOwnCharacterProperties(source, parentStyle) {
|
60261
60291
|
const parentParagraphPropertiesMerger = new ParagraphPropertiesMerger();
|
60262
60292
|
parentParagraphPropertiesMerger.mergeParagraphStyle(parentStyle);
|
@@ -60412,6 +60442,7 @@ class RtfCharacterImporterState {
|
|
60412
60442
|
}
|
60413
60443
|
}
|
60414
60444
|
class RtfCharacterImporter extends RtfBaseImporter {
|
60445
|
+
get characterFormatting() { return this.states.last.characterFormatting; }
|
60415
60446
|
constructor(data) {
|
60416
60447
|
super(data);
|
60417
60448
|
this.states = new stack/* Stack */.K();
|
@@ -60420,7 +60451,6 @@ class RtfCharacterImporter extends RtfBaseImporter {
|
|
60420
60451
|
this.states.push(new RtfCharacterImporterState(defaultCharacterProperties));
|
60421
60452
|
this.logPosition = 0;
|
60422
60453
|
}
|
60423
|
-
get characterFormatting() { return this.states.last.characterFormatting; }
|
60424
60454
|
static getOnlyOwnCharacterProperties(source, parentCharacterStyle) {
|
60425
60455
|
const parentPropertiesMerger = new CharacterPropertiesMerger();
|
60426
60456
|
parentPropertiesMerger.mergeCharacterStyle(parentCharacterStyle);
|
@@ -60536,11 +60566,6 @@ class RtfCharacterImporter extends RtfBaseImporter {
|
|
60536
60566
|
|
60537
60567
|
|
60538
60568
|
class CharacterStyleDestination extends DestinationSubDocument {
|
60539
|
-
constructor(importer, styleIndex) {
|
60540
|
-
super(importer, importer.subDocument);
|
60541
|
-
importer.importers.style.character.rtfStyleIndex = styleIndex;
|
60542
|
-
this.styleName = '';
|
60543
|
-
}
|
60544
60569
|
get destinationType() { return DestinationType.CharacterStyleDestination; }
|
60545
60570
|
get controlCharHT() { return null; }
|
60546
60571
|
static onParentStyleIndex(importer, parameterValue, _hasParameter) {
|
@@ -60553,6 +60578,11 @@ class CharacterStyleDestination extends DestinationSubDocument {
|
|
60553
60578
|
importer.destination.qFormat = true;
|
60554
60579
|
importer.importers.style.character.rtfParentStyleIndex = parameterValue;
|
60555
60580
|
}
|
60581
|
+
constructor(importer, styleIndex) {
|
60582
|
+
super(importer, importer.subDocument);
|
60583
|
+
importer.importers.style.character.rtfStyleIndex = styleIndex;
|
60584
|
+
this.styleName = '';
|
60585
|
+
}
|
60556
60586
|
get canAppendText() {
|
60557
60587
|
return false;
|
60558
60588
|
}
|
@@ -60594,13 +60624,6 @@ class CharacterStyleDestination extends DestinationSubDocument {
|
|
60594
60624
|
|
60595
60625
|
|
60596
60626
|
class TableStyleDestination extends DestinationSubDocument {
|
60597
|
-
constructor(importer, styleIndex) {
|
60598
|
-
super(importer, importer.subDocument);
|
60599
|
-
this.conditionalTableStyleFormattingType = ConditionalTableStyleFormatting.WholeTable;
|
60600
|
-
this.styleName = '';
|
60601
|
-
this.rtfStyleIndex = styleIndex;
|
60602
|
-
this.importer.importers.character.characterFormatting.coreProperties.setUseValue(CharacterPropertiesMask.UseAll, false);
|
60603
|
-
}
|
60604
60627
|
get destinationType() { return DestinationType.TableStyleDestination; }
|
60605
60628
|
get controlCharHT() { return null; }
|
60606
60629
|
static onStyleQFormatKeyword(importer, _parameterValue, _hasParameter) {
|
@@ -60654,6 +60677,13 @@ class TableStyleDestination extends DestinationSubDocument {
|
|
60654
60677
|
get rtfStyleIndex() { return this.importer.importers.style.table.rtfStyleIndex; }
|
60655
60678
|
set rtfStyleIndex(value) { this.importer.importers.style.table.rtfStyleIndex = value; }
|
60656
60679
|
get rtfParentStyleIndex() { return this.importer.importers.style.table.rtfParentStyleIndex; }
|
60680
|
+
constructor(importer, styleIndex) {
|
60681
|
+
super(importer, importer.subDocument);
|
60682
|
+
this.conditionalTableStyleFormattingType = ConditionalTableStyleFormatting.WholeTable;
|
60683
|
+
this.styleName = '';
|
60684
|
+
this.rtfStyleIndex = styleIndex;
|
60685
|
+
this.importer.importers.character.characterFormatting.coreProperties.setUseValue(CharacterPropertiesMask.UseAll, false);
|
60686
|
+
}
|
60657
60687
|
beforePopRtfState() {
|
60658
60688
|
const name = this.styleName.trim();
|
60659
60689
|
let style = null;
|
@@ -60749,14 +60779,14 @@ class TableStyleDestination extends DestinationSubDocument {
|
|
60749
60779
|
|
60750
60780
|
|
60751
60781
|
class StyleSheetDestination extends DestinationSubDocument {
|
60782
|
+
get destinationType() { return DestinationType.StyleSheetDestination; }
|
60783
|
+
get controlCharHT() { return null; }
|
60784
|
+
get canAppendText() { return false; }
|
60752
60785
|
constructor(importer) {
|
60753
60786
|
super(importer, importer.subDocument);
|
60754
60787
|
this.styleName = "";
|
60755
60788
|
importer.rtfDocumentModelType = RtfDocumentModelType.WithStyle;
|
60756
60789
|
}
|
60757
|
-
get destinationType() { return DestinationType.StyleSheetDestination; }
|
60758
|
-
get controlCharHT() { return null; }
|
60759
|
-
get canAppendText() { return false; }
|
60760
60790
|
static onStyleQFormatKeyword(importer, _parameterValue, _hasParameter) {
|
60761
60791
|
importer.destination.qFormat = true;
|
60762
60792
|
}
|
@@ -61419,11 +61449,11 @@ class DefaultDestination extends DestinationSubDocument {
|
|
61419
61449
|
|
61420
61450
|
|
61421
61451
|
class FieldSubDestination extends DefaultDestination {
|
61452
|
+
get destinationType() { return DestinationType.FieldSubDestination; }
|
61422
61453
|
constructor(importer) {
|
61423
61454
|
super(importer, importer.subDocument);
|
61424
61455
|
this.nestedGroupLevel = 1;
|
61425
61456
|
}
|
61426
|
-
get destinationType() { return DestinationType.FieldSubDestination; }
|
61427
61457
|
createClone() {
|
61428
61458
|
const clone = this.createInstance();
|
61429
61459
|
clone.nestedGroupLevel = this.nestedGroupLevel;
|
@@ -61548,13 +61578,13 @@ var TCFieldState;
|
|
61548
61578
|
|
61549
61579
|
|
61550
61580
|
class TableContentFieldDestination extends FieldSubDestination {
|
61581
|
+
get destinationType() { return DestinationType.TableContentFieldDestination; }
|
61551
61582
|
constructor(importer, createField) {
|
61552
61583
|
super(importer);
|
61553
61584
|
if (!createField)
|
61554
61585
|
return;
|
61555
61586
|
this.insertTextCore(TableContentFieldDestination.tcFieldName);
|
61556
61587
|
}
|
61557
|
-
get destinationType() { return DestinationType.TableContentFieldDestination; }
|
61558
61588
|
tableOfContentsEntryLevelNumberKeyword(parameterValue, hasParameter) {
|
61559
61589
|
this.closeQuotes();
|
61560
61590
|
super.tableOfContentsEntryLevelNumberKeyword(parameterValue, hasParameter);
|
@@ -61764,12 +61794,12 @@ class RtfFieldInfo {
|
|
61764
61794
|
|
61765
61795
|
|
61766
61796
|
class RtfFieldImporter extends RtfBaseImporter {
|
61797
|
+
get fields() { return this.data.positionStates.last.fields; }
|
61798
|
+
get currentField() { return this.fields.last; }
|
61767
61799
|
constructor(data) {
|
61768
61800
|
super(data);
|
61769
61801
|
this.updateFieldsOnPaste = true;
|
61770
61802
|
}
|
61771
|
-
get fields() { return this.data.positionStates.last.fields; }
|
61772
|
-
get currentField() { return this.fields.last; }
|
61773
61803
|
startField() {
|
61774
61804
|
this.fields.push(new RtfFieldInfo());
|
61775
61805
|
}
|
@@ -62383,16 +62413,6 @@ class RtfImageImporter extends RtfBaseImporter {
|
|
62383
62413
|
|
62384
62414
|
|
62385
62415
|
class RtfOldListLevelInfo {
|
62386
|
-
constructor() {
|
62387
|
-
this.characterProperties = new MaskedCharacterProperties();
|
62388
|
-
this.characterProperties.fontInfo = new FontInfo();
|
62389
|
-
this.characterProperties.fontSize = 12;
|
62390
|
-
this.characterProperties.setAllUse();
|
62391
|
-
this.listLevelProperties = new ListLevelProperties();
|
62392
|
-
this.textBefore = "";
|
62393
|
-
this.textAfter = "";
|
62394
|
-
this.indent = 0;
|
62395
|
-
}
|
62396
62416
|
clone() {
|
62397
62417
|
const result = new RtfOldListLevelInfo();
|
62398
62418
|
result.copyFrom(this);
|
@@ -62407,6 +62427,16 @@ class RtfOldListLevelInfo {
|
|
62407
62427
|
this.textAfter = _obj.textAfter;
|
62408
62428
|
this.indent = _obj.indent;
|
62409
62429
|
}
|
62430
|
+
constructor() {
|
62431
|
+
this.characterProperties = new MaskedCharacterProperties();
|
62432
|
+
this.characterProperties.fontInfo = new FontInfo();
|
62433
|
+
this.characterProperties.fontSize = 12;
|
62434
|
+
this.characterProperties.setAllUse();
|
62435
|
+
this.listLevelProperties = new ListLevelProperties();
|
62436
|
+
this.textBefore = "";
|
62437
|
+
this.textAfter = "";
|
62438
|
+
this.indent = 0;
|
62439
|
+
}
|
62410
62440
|
}
|
62411
62441
|
|
62412
62442
|
;// CONCATENATED MODULE: ./src/common/formats/rtf/import/model/numbering-lists/rtf-old-list-level-info-collection.ts
|
@@ -62491,12 +62521,12 @@ RtfRevisionAuthors.unknownAuthor = "Unknown";
|
|
62491
62521
|
|
62492
62522
|
|
62493
62523
|
class RtfRangePermissionImporter extends RtfBaseImporter {
|
62524
|
+
get rangePermissions() { return this.data.positionStates.last.rangePermissions; }
|
62494
62525
|
constructor(data) {
|
62495
62526
|
super(data);
|
62496
62527
|
this.revisionAuthors = new RtfRevisionAuthors();
|
62497
62528
|
this.userNames = [];
|
62498
62529
|
}
|
62499
|
-
get rangePermissions() { return this.data.positionStates.last.rangePermissions; }
|
62500
62530
|
insertRangePermissions() {
|
62501
62531
|
string.StringMapUtils.forEach(this.data.importers.rangePermission.rangePermissions, (rangePermission, _name) => {
|
62502
62532
|
if (rangePermission.validate(this.subDocument))
|
@@ -62548,11 +62578,11 @@ class SectionRestorer {
|
|
62548
62578
|
|
62549
62579
|
|
62550
62580
|
class SectionHeaderFooterDestinationBase extends DestinationSubDocument {
|
62581
|
+
get destinationType() { return DestinationType.SectionHeaderFooterDestinationBase; }
|
62551
62582
|
constructor(importer, section, subDocument) {
|
62552
62583
|
super(importer, subDocument);
|
62553
62584
|
this.section = section;
|
62554
62585
|
}
|
62555
|
-
get destinationType() { return DestinationType.SectionHeaderFooterDestinationBase; }
|
62556
62586
|
}
|
62557
62587
|
|
62558
62588
|
;// CONCATENATED MODULE: ./src/common/formats/rtf/import/destination/sub-document/section-page-footer-destination.ts
|
@@ -62671,16 +62701,16 @@ class RtfSectionProperties {
|
|
62671
62701
|
|
62672
62702
|
|
62673
62703
|
class RtfSectionImporter extends RtfBaseImporter {
|
62674
|
-
constructor(data) {
|
62675
|
-
super(data);
|
62676
|
-
this.defaultSectionProperties = new RtfSectionProperties();
|
62677
|
-
}
|
62678
62704
|
get states() { return this.data.positionStates.last.sectionProperties; }
|
62679
62705
|
get currentProperties() {
|
62680
62706
|
if (!this.states.count)
|
62681
62707
|
this.states.push(new RtfSectionProperties());
|
62682
62708
|
return this.states.last;
|
62683
62709
|
}
|
62710
|
+
constructor(data) {
|
62711
|
+
super(data);
|
62712
|
+
this.defaultSectionProperties = new RtfSectionProperties();
|
62713
|
+
}
|
62684
62714
|
insertSection() {
|
62685
62715
|
const paragraphFormatting = this.data.importers.paragraph.paragraphFormatting;
|
62686
62716
|
paragraphFormatting.coreProperties.setValue(ParagraphPropertyDescriptor.lineSpacing, paragraphFormatting.calcLineSpacing());
|
@@ -62909,10 +62939,6 @@ class RtfCharacterStyleImporter extends RtfBaseStyleImporter {
|
|
62909
62939
|
|
62910
62940
|
|
62911
62941
|
class RtfParagraphStyleImporter extends RtfBaseStyleImporter {
|
62912
|
-
constructor(data) {
|
62913
|
-
super(data, false);
|
62914
|
-
this.paragraphTableStyles = {};
|
62915
|
-
}
|
62916
62942
|
addStyle(style) {
|
62917
62943
|
const result = this.documentModel.stylesManager.addParagraphStyle(style);
|
62918
62944
|
result.localizedName = StylesManager.getPresetParagraphStyleLocalizedName(style.styleName);
|
@@ -62922,6 +62948,10 @@ class RtfParagraphStyleImporter extends RtfBaseStyleImporter {
|
|
62922
62948
|
this.rtfStyleIndex = Math.max(0, this.rtfStyleIndex);
|
62923
62949
|
this.rtfParentStyleIndex = Math.max(0, this.rtfParentStyleIndex);
|
62924
62950
|
}
|
62951
|
+
constructor(data) {
|
62952
|
+
super(data, false);
|
62953
|
+
this.paragraphTableStyles = {};
|
62954
|
+
}
|
62925
62955
|
get styleCollection() { return this.data.documentModel.paragraphStyles; }
|
62926
62956
|
;
|
62927
62957
|
createEmpty() {
|
@@ -63760,12 +63790,12 @@ class ImportersCollection {
|
|
63760
63790
|
|
63761
63791
|
|
63762
63792
|
class UnicodeDestination extends DestinationBase {
|
63793
|
+
get destinationType() { return DestinationType.UnicodeDestination; }
|
63794
|
+
get controlCharHT() { return null; }
|
63763
63795
|
constructor(importer, lastDestination) {
|
63764
63796
|
super(importer);
|
63765
63797
|
this.lastDestination = lastDestination;
|
63766
63798
|
}
|
63767
|
-
get destinationType() { return DestinationType.UnicodeDestination; }
|
63768
|
-
get controlCharHT() { return null; }
|
63769
63799
|
createClone() {
|
63770
63800
|
return new UnicodeDestination(this.importer, this.lastDestination);
|
63771
63801
|
}
|
@@ -63781,13 +63811,13 @@ class UnicodeDestination extends DestinationBase {
|
|
63781
63811
|
|
63782
63812
|
|
63783
63813
|
class StringPropertyBaseDestination extends DestinationBase {
|
63814
|
+
get destinationType() { return DestinationType.StringPropertyBaseDestination; }
|
63815
|
+
get controlCharHT() { return StringPropertyBaseDestination.controlCharHT; }
|
63784
63816
|
constructor(importer, modifier) {
|
63785
63817
|
super(importer);
|
63786
63818
|
this.value = [];
|
63787
63819
|
this.modifier = modifier;
|
63788
63820
|
}
|
63789
|
-
get destinationType() { return DestinationType.StringPropertyBaseDestination; }
|
63790
|
-
get controlCharHT() { return StringPropertyBaseDestination.controlCharHT; }
|
63791
63821
|
processCharCore(ch) {
|
63792
63822
|
this.value.push(ch);
|
63793
63823
|
}
|
@@ -64507,15 +64537,15 @@ class DestinationRevisionAuthorTable extends DestinationBase {
|
|
64507
64537
|
|
64508
64538
|
|
64509
64539
|
class FontTableDestination extends DestinationBase {
|
64540
|
+
get destinationType() { return DestinationType.FontTableDestination; }
|
64541
|
+
get controlCharHT() { return null; }
|
64542
|
+
get keywordHT() { return null; }
|
64510
64543
|
constructor(importer, nestedState = false) {
|
64511
64544
|
super(importer);
|
64512
64545
|
this.nestedState = nestedState;
|
64513
64546
|
this.fontInfo = new RtfFontInfo();
|
64514
64547
|
this.emptyFontInfo = true;
|
64515
64548
|
}
|
64516
|
-
get destinationType() { return DestinationType.FontTableDestination; }
|
64517
|
-
get controlCharHT() { return null; }
|
64518
|
-
get keywordHT() { return null; }
|
64519
64549
|
processKeywordCore(keyword, parameterValue, hasParameter) {
|
64520
64550
|
if (!hasParameter)
|
64521
64551
|
parameterValue = 0;
|
@@ -64818,6 +64848,7 @@ class DestinationOldParagraphNumberingBase extends DestinationBase {
|
|
64818
64848
|
|
64819
64849
|
|
64820
64850
|
class DestinationOldParagraphNumbering extends DestinationOldParagraphNumberingBase {
|
64851
|
+
get destinationType() { return DestinationType.DestinationOldParagraphNumbering; }
|
64821
64852
|
constructor(importer) {
|
64822
64853
|
super(importer);
|
64823
64854
|
this.oldLevelNumber = -1;
|
@@ -64827,7 +64858,6 @@ class DestinationOldParagraphNumbering extends DestinationOldParagraphNumberingB
|
|
64827
64858
|
this.multiLevelListIndex = NumberingListIndexConstants.listIndexNotSetted;
|
64828
64859
|
this.simpleListIndex = NumberingListIndexConstants.listIndexNotSetted;
|
64829
64860
|
}
|
64830
|
-
get destinationType() { return DestinationType.DestinationOldParagraphNumbering; }
|
64831
64861
|
static onParagraphLevelKeyword(importer, parameterValue, hasParameter) {
|
64832
64862
|
if (hasParameter && parameterValue == 10) {
|
64833
64863
|
DestinationOldParagraphNumbering.onSimpleNumberingKeyword(importer, 0, false);
|
@@ -65417,12 +65447,12 @@ class DocumentVariableDestination extends StringValueDestination {
|
|
65417
65447
|
|
65418
65448
|
|
65419
65449
|
class DestinationOldSectionNumberingLevel extends DestinationOldParagraphNumberingBase {
|
65450
|
+
get destinationType() { return DestinationType.DestinationOldSectionNumberingLevel; }
|
65420
65451
|
constructor(importer, levelNumber) {
|
65421
65452
|
super(importer);
|
65422
65453
|
importer.importers.numbering.oldListLevelInfo = new RtfOldListLevelInfo();
|
65423
65454
|
this.levelNumber = levelNumber;
|
65424
65455
|
}
|
65425
|
-
get destinationType() { return DestinationType.DestinationOldSectionNumberingLevel; }
|
65426
65456
|
createClone() {
|
65427
65457
|
const result = new DestinationOldSectionNumberingLevel(this.importer, this.levelNumber);
|
65428
65458
|
return result;
|
@@ -67125,6 +67155,19 @@ class RtfPositionState {
|
|
67125
67155
|
}
|
67126
67156
|
}
|
67127
67157
|
class RtfImportData {
|
67158
|
+
get destination() { return this._destination; }
|
67159
|
+
set destination(newDestination) {
|
67160
|
+
if (newDestination.subDocument !== this.destination.subDocument) {
|
67161
|
+
this.beforeChangeSubDocument(newDestination.subDocument);
|
67162
|
+
this.subDocument = newDestination.subDocument;
|
67163
|
+
this.onChangeSubDocument();
|
67164
|
+
}
|
67165
|
+
this._destination = newDestination;
|
67166
|
+
}
|
67167
|
+
get savedStatesCount() { return this.savedDestinations.count; }
|
67168
|
+
get formattingInfo() {
|
67169
|
+
return this.importers.character.characterFormatting.rtfFormattingInfo;
|
67170
|
+
}
|
67128
67171
|
constructor(rtfText, importOptions, documentModel, richOptions) {
|
67129
67172
|
this.intervalsToDelete = [];
|
67130
67173
|
this.documentModel = documentModel;
|
@@ -67147,19 +67190,6 @@ class RtfImportData {
|
|
67147
67190
|
this.positionStates = new stack/* Stack */.K();
|
67148
67191
|
this.addEmptyPositionState();
|
67149
67192
|
}
|
67150
|
-
get destination() { return this._destination; }
|
67151
|
-
set destination(newDestination) {
|
67152
|
-
if (newDestination.subDocument !== this.destination.subDocument) {
|
67153
|
-
this.beforeChangeSubDocument(newDestination.subDocument);
|
67154
|
-
this.subDocument = newDestination.subDocument;
|
67155
|
-
this.onChangeSubDocument();
|
67156
|
-
}
|
67157
|
-
this._destination = newDestination;
|
67158
|
-
}
|
67159
|
-
get savedStatesCount() { return this.savedDestinations.count; }
|
67160
|
-
get formattingInfo() {
|
67161
|
-
return this.importers.character.characterFormatting.rtfFormattingInfo;
|
67162
|
-
}
|
67163
67193
|
beforeChangeSubDocument(newSubDocument) {
|
67164
67194
|
if (this.positionStates.count == 1)
|
67165
67195
|
return;
|
@@ -67933,6 +67963,10 @@ class PasteHtmlDataHistoryItem extends interval_based_history_item_IntervalBased
|
|
67933
67963
|
|
67934
67964
|
|
67935
67965
|
class HtmlModelInserter {
|
67966
|
+
get options() { return this.modelManager.richOptions.control; }
|
67967
|
+
;
|
67968
|
+
get subDocument() { return this.subDocPos.subDocument; }
|
67969
|
+
;
|
67936
67970
|
constructor(modelManager, subDocPos, htmlData, charPropsBundle) {
|
67937
67971
|
this.pastedListsIndices = {};
|
67938
67972
|
this.fieldsMap = {};
|
@@ -67960,10 +67994,6 @@ class HtmlModelInserter {
|
|
67960
67994
|
HtmlModelInserter.runConverterMap[RunType.FieldResultEndRun] = this.convertFieldResultEndRun;
|
67961
67995
|
}
|
67962
67996
|
}
|
67963
|
-
get options() { return this.modelManager.richOptions.control; }
|
67964
|
-
;
|
67965
|
-
get subDocument() { return this.subDocPos.subDocument; }
|
67966
|
-
;
|
67967
67997
|
insert() {
|
67968
67998
|
for (let runInfo of this.htmlData.runsInfo)
|
67969
67999
|
this.position += HtmlModelInserter.runConverterMap[runInfo.runType].call(this, runInfo);
|
@@ -68077,12 +68107,12 @@ class HtmlModelInserter {
|
|
68077
68107
|
;// CONCATENATED MODULE: ./src/common/formats/html/import/importers/base.ts
|
68078
68108
|
|
68079
68109
|
class HtmlTagImporterBase {
|
68110
|
+
get colorProvider() { return this.importer.modelManager.model.colorProvider; }
|
68080
68111
|
constructor(importer) {
|
68081
68112
|
this.enablePreserveLineBreaks = false;
|
68082
68113
|
this.paragraphWasAddedBefore = false;
|
68083
68114
|
this.importer = importer;
|
68084
68115
|
}
|
68085
|
-
get colorProvider() { return this.importer.modelManager.model.colorProvider; }
|
68086
68116
|
getClosestImporterByTagName(tagName) {
|
68087
68117
|
return utils_list.ListUtils.reverseElementBy(this.importer.levelInfo, (levelInfo) => levelInfo.tagImporter.elementTag() == tagName).tagImporter;
|
68088
68118
|
}
|
@@ -69319,16 +69349,16 @@ class HtmlImporterFontUtils {
|
|
69319
69349
|
|
69320
69350
|
|
69321
69351
|
class HtmlImporterMaskedCharacterProperties {
|
69352
|
+
get model() { return this.importer.modelManager.model; }
|
69353
|
+
;
|
69354
|
+
get controlOptions() { return this.importer.modelManager.richOptions.control; }
|
69355
|
+
;
|
69322
69356
|
constructor(importer, loadFontInfos, tempFontInfoCache, allowCreateNewFonts) {
|
69323
69357
|
this.importer = importer;
|
69324
69358
|
this.loadFontInfos = loadFontInfos;
|
69325
69359
|
this.tempFontInfoCache = tempFontInfoCache;
|
69326
69360
|
this.allowCreateNewFonts = allowCreateNewFonts;
|
69327
69361
|
}
|
69328
|
-
get model() { return this.importer.modelManager.model; }
|
69329
|
-
;
|
69330
|
-
get controlOptions() { return this.importer.modelManager.richOptions.control; }
|
69331
|
-
;
|
69332
69362
|
getBundleFrom(element, interval) {
|
69333
69363
|
return new MaskedCharacterPropertiesBundle(this.import(element, interval, this.importer.charPropsBundle.props), this.importer.charPropsBundle.style);
|
69334
69364
|
}
|
@@ -69736,6 +69766,18 @@ class HtmlImportData {
|
|
69736
69766
|
}
|
69737
69767
|
}
|
69738
69768
|
class HtmlImporter {
|
69769
|
+
get currElement() { return utils_list.ListUtils.last(this.levelInfo).element; }
|
69770
|
+
;
|
69771
|
+
get currElementChildren() { return utils_list.ListUtils.last(this.levelInfo).childElements; }
|
69772
|
+
;
|
69773
|
+
get prevLevelInfo() { return this.levelInfo[this.levelInfo.length - 2]; }
|
69774
|
+
get currLevelInfo() { return utils_list.ListUtils.last(this.levelInfo); }
|
69775
|
+
get currListItemLevelInfo() { return utils_list.ListUtils.reverseElementBy(this.levelInfo, (levelInfo) => { var _a; return ((_a = levelInfo.tagImporter) === null || _a === void 0 ? void 0 : _a.elementTag()) === 'LI'; }); }
|
69776
|
+
get currListInfo() {
|
69777
|
+
const currListItemLevelInfo = this.currListItemLevelInfo;
|
69778
|
+
return currListItemLevelInfo && !currListItemLevelInfo.tagImporter.paragraphWasAddedBefore ? utils_list.ListUtils.last(this.listInfos) : null;
|
69779
|
+
}
|
69780
|
+
get subDocument() { return this.subDocPosition.subDocument; }
|
69739
69781
|
constructor(modelManager, measurer, subDocPosition, initElements, charPropsBundle, formatImagesImporter) {
|
69740
69782
|
this.fieldsId = 0;
|
69741
69783
|
this.listIndex = 0;
|
@@ -69787,18 +69829,6 @@ class HtmlImporter {
|
|
69787
69829
|
for (let importerConst of HtmlImporter.importers)
|
69788
69830
|
this.tagImporters[new importerConst(this).elementTag()] = importerConst;
|
69789
69831
|
}
|
69790
|
-
get currElement() { return utils_list.ListUtils.last(this.levelInfo).element; }
|
69791
|
-
;
|
69792
|
-
get currElementChildren() { return utils_list.ListUtils.last(this.levelInfo).childElements; }
|
69793
|
-
;
|
69794
|
-
get prevLevelInfo() { return this.levelInfo[this.levelInfo.length - 2]; }
|
69795
|
-
get currLevelInfo() { return utils_list.ListUtils.last(this.levelInfo); }
|
69796
|
-
get currListItemLevelInfo() { return utils_list.ListUtils.reverseElementBy(this.levelInfo, (levelInfo) => { var _a; return ((_a = levelInfo.tagImporter) === null || _a === void 0 ? void 0 : _a.elementTag()) === 'LI'; }); }
|
69797
|
-
get currListInfo() {
|
69798
|
-
const currListItemLevelInfo = this.currListItemLevelInfo;
|
69799
|
-
return currListItemLevelInfo && !currListItemLevelInfo.tagImporter.paragraphWasAddedBefore ? utils_list.ListUtils.last(this.listInfos) : null;
|
69800
|
-
}
|
69801
|
-
get subDocument() { return this.subDocPosition.subDocument; }
|
69802
69832
|
import() {
|
69803
69833
|
this.importStarted = false;
|
69804
69834
|
this.importedRunsInfo = [];
|
@@ -70375,10 +70405,6 @@ class HtmlBuilder {
|
|
70375
70405
|
|
70376
70406
|
|
70377
70407
|
class HtmlExporter {
|
70378
|
-
constructor(exportModelOptions) {
|
70379
|
-
this.rangeCopy = null;
|
70380
|
-
this.exportModelOptions = exportModelOptions;
|
70381
|
-
}
|
70382
70408
|
get modelManager() { return this.exportModelOptions.modelManager; }
|
70383
70409
|
get colorProvider() { return this.modelManager.model.colorProvider; }
|
70384
70410
|
get unitConverter() { return this.exportModelOptions.uiUnitConverter; }
|
@@ -70387,6 +70413,10 @@ class HtmlExporter {
|
|
70387
70413
|
;
|
70388
70414
|
get pageIndex() { return this.exportModelOptions.pageIndex; }
|
70389
70415
|
;
|
70416
|
+
constructor(exportModelOptions) {
|
70417
|
+
this.rangeCopy = null;
|
70418
|
+
this.exportModelOptions = exportModelOptions;
|
70419
|
+
}
|
70390
70420
|
getHtmlElementsByInterval(model, subDocument, interval, guidLabel) {
|
70391
70421
|
if (interval.length === 0)
|
70392
70422
|
return;
|
@@ -71075,11 +71105,11 @@ class HtmlExporter {
|
|
71075
71105
|
|
71076
71106
|
|
71077
71107
|
class HtmlDocumentExporter {
|
71108
|
+
get modelManipulator() { return this.exportModelOptions.modelManager.modelManipulator; }
|
71078
71109
|
constructor(exportModelOptions, options) {
|
71079
71110
|
this.exportModelOptions = exportModelOptions;
|
71080
71111
|
this.options = options;
|
71081
71112
|
}
|
71082
|
-
get modelManipulator() { return this.exportModelOptions.modelManager.modelManipulator; }
|
71083
71113
|
exportToBlob(callback) {
|
71084
71114
|
this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout, (_loaded) => {
|
71085
71115
|
callback(new Blob([this.exportAsString()], { type: mime_type.HtmlMimeType }));
|
@@ -72259,6 +72289,7 @@ class ParagraphFrame extends rectangle.Rectangle {
|
|
72259
72289
|
|
72260
72290
|
|
72261
72291
|
|
72292
|
+
|
72262
72293
|
class InputPosition extends InputPositionBase {
|
72263
72294
|
constructor(selection) {
|
72264
72295
|
super();
|
@@ -72276,13 +72307,23 @@ class InputPosition extends InputPositionBase {
|
|
72276
72307
|
}
|
72277
72308
|
getMergedSectionPropertiesRaw() {
|
72278
72309
|
if (!this.mergedSectionPropertiesRaw) {
|
72279
|
-
|
72280
|
-
|
72281
|
-
|
72282
|
-
|
72283
|
-
|
72310
|
+
let sectionIndex;
|
72311
|
+
let intervalEndPosition;
|
72312
|
+
const sections = this.model.sections;
|
72313
|
+
const pageIndex = this.selection.pageIndex;
|
72314
|
+
if (pageIndex < 0) {
|
72315
|
+
const interval = this.intervalsInfo.interval;
|
72316
|
+
const intervalStartPosition = interval.start;
|
72317
|
+
intervalEndPosition = interval.end;
|
72318
|
+
sectionIndex = search.SearchUtils.normedInterpolationIndexOf(sections, (s) => s.startLogPosition.value, intervalStartPosition);
|
72319
|
+
}
|
72320
|
+
else {
|
72321
|
+
const layoutPage = this.selection.layout.pages[pageIndex];
|
72322
|
+
sectionIndex = Section.getPageSectionIndex(layoutPage, sections);
|
72323
|
+
intervalEndPosition = layoutPage.getEndPosition();
|
72324
|
+
}
|
72284
72325
|
this.mergedSectionPropertiesRaw = sections[sectionIndex++].sectionProperties.clone();
|
72285
|
-
for (
|
72326
|
+
for (let section; (section = sections[sectionIndex]) && (section.startLogPosition.value < intervalEndPosition); sectionIndex++)
|
72286
72327
|
InputPositionBase.mergePropertiesRaw(this.mergedSectionPropertiesRaw, section.sectionProperties, SectionPropertyDescriptor.ALL_FIELDS);
|
72287
72328
|
}
|
72288
72329
|
return this.mergedSectionPropertiesRaw;
|
@@ -72352,15 +72393,15 @@ class ScrollState {
|
|
72352
72393
|
get nothing() { return new ModelStateEmpty(); }
|
72353
72394
|
}
|
72354
72395
|
class ModelStateByModelPosition {
|
72396
|
+
get subDocument() {
|
72397
|
+
var _a;
|
72398
|
+
return this._subDocument = (_a = this._subDocument) === null || _a === void 0 ? void 0 : _a.getActualSubDocument();
|
72399
|
+
}
|
72355
72400
|
constructor(subDocument, endOfLine, pageIndex) {
|
72356
72401
|
this._subDocument = subDocument;
|
72357
72402
|
this.endOfLine = endOfLine;
|
72358
72403
|
this.pageIndex = pageIndex;
|
72359
72404
|
}
|
72360
|
-
get subDocument() {
|
72361
|
-
var _a;
|
72362
|
-
return this._subDocument = (_a = this._subDocument) === null || _a === void 0 ? void 0 : _a.getActualSubDocument();
|
72363
|
-
}
|
72364
72405
|
getModelPosition() {
|
72365
72406
|
return this.modelPosition;
|
72366
72407
|
}
|
@@ -72420,6 +72461,11 @@ class ModelStateEmpty {
|
|
72420
72461
|
|
72421
72462
|
|
72422
72463
|
class SelectionState {
|
72464
|
+
get interval() { return this.intervalsInfo.interval; }
|
72465
|
+
;
|
72466
|
+
get anchorPostion() { return this.forwardDirection ? this.interval.start : this.interval.end; }
|
72467
|
+
get activePostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
|
72468
|
+
get reversedAnchorPostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
|
72423
72469
|
constructor(intervalsInfo, forwardDirection, endOfLine, pageIndex) {
|
72424
72470
|
this.forwardDirection = true;
|
72425
72471
|
this.endOfLine = false;
|
@@ -72430,11 +72476,6 @@ class SelectionState {
|
|
72430
72476
|
this.endOfLine = endOfLine;
|
72431
72477
|
this.pageIndex = pageIndex;
|
72432
72478
|
}
|
72433
|
-
get interval() { return this.intervalsInfo.interval; }
|
72434
|
-
;
|
72435
|
-
get anchorPostion() { return this.forwardDirection ? this.interval.start : this.interval.end; }
|
72436
|
-
get activePostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
|
72437
|
-
get reversedAnchorPostion() { return this.forwardDirection ? this.interval.end : this.interval.start; }
|
72438
72479
|
setEndOfLine(endOfLine) {
|
72439
72480
|
this.endOfLine = endOfLine;
|
72440
72481
|
return this;
|
@@ -72563,19 +72604,6 @@ class SetSelectionStateOptions {
|
|
72563
72604
|
}
|
72564
72605
|
}
|
72565
72606
|
class Selection extends batch_updatable/* BatchUpdatableObject */.IS {
|
72566
|
-
constructor(model, layout, activeSubDocument) {
|
72567
|
-
super();
|
72568
|
-
this.searchIntervals = [];
|
72569
|
-
this.misspelledIntervals = [];
|
72570
|
-
this.onChanged = new EventDispatcher();
|
72571
|
-
this.onSearchChanged = new EventDispatcher();
|
72572
|
-
this.onMisspelledSelectionChanged = new EventDispatcher();
|
72573
|
-
this.model = model;
|
72574
|
-
this.layout = layout;
|
72575
|
-
this.scrollManager = new ModelScrollManager();
|
72576
|
-
this._prevState = SelectionState.getDefault(activeSubDocument);
|
72577
|
-
this._state = SelectionState.getDefault(activeSubDocument);
|
72578
|
-
}
|
72579
72607
|
get currState() { return this._state; }
|
72580
72608
|
get keepX() { return this._state.keepX; }
|
72581
72609
|
set keepX(val) { this._state.keepX = val; }
|
@@ -72601,6 +72629,19 @@ class Selection extends batch_updatable/* BatchUpdatableObject */.IS {
|
|
72601
72629
|
get specialRunInfo() { return this._state.intervalsInfo.specialRunInfo; }
|
72602
72630
|
;
|
72603
72631
|
get tableInfo() { return this._state.intervalsInfo.tableInfo; }
|
72632
|
+
constructor(model, layout, activeSubDocument) {
|
72633
|
+
super();
|
72634
|
+
this.searchIntervals = [];
|
72635
|
+
this.misspelledIntervals = [];
|
72636
|
+
this.onChanged = new EventDispatcher();
|
72637
|
+
this.onSearchChanged = new EventDispatcher();
|
72638
|
+
this.onMisspelledSelectionChanged = new EventDispatcher();
|
72639
|
+
this.model = model;
|
72640
|
+
this.layout = layout;
|
72641
|
+
this.scrollManager = new ModelScrollManager();
|
72642
|
+
this._prevState = SelectionState.getDefault(activeSubDocument);
|
72643
|
+
this._state = SelectionState.getDefault(activeSubDocument);
|
72644
|
+
}
|
72604
72645
|
dispose() {
|
72605
72646
|
this.onChanged.dispose();
|
72606
72647
|
}
|
@@ -74251,6 +74292,12 @@ class NamespaceInfo {
|
|
74251
74292
|
}
|
74252
74293
|
}
|
74253
74294
|
class DocxConstants {
|
74295
|
+
get wordProcessingNamespaceConst() { return this.namespaces[DocxNsType.WordProcessing].namespace; }
|
74296
|
+
get relsNamespaceConst() { return this.namespaces[DocxNsType.Rels].namespace; }
|
74297
|
+
get officeNamespace() { return this.namespaces[DocxNsType.Office].namespace; }
|
74298
|
+
get w14NamespaceConst() { return this.namespaces[DocxNsType.w14].namespace; }
|
74299
|
+
get w15NamespaceConst() { return this.namespaces[DocxNsType.w15].namespace; }
|
74300
|
+
get drawingMLNamespaceConst() { return this.namespaces[DocxNsType.DrawingML].namespace; }
|
74254
74301
|
constructor() {
|
74255
74302
|
this.namespaces = new MapCreator()
|
74256
74303
|
.add(DocxNsType.DrawingMLPicture, new NamespaceInfo(DocxConstants.drawingMLPicturePrefix, DocxConstants.drawingMLPictureNamespace))
|
@@ -74282,12 +74329,6 @@ class DocxConstants {
|
|
74282
74329
|
this.rels = new DocxRelationsConstants(DocxConstants.openXMLOfficeDocumentPrefix);
|
74283
74330
|
this.fillMaps();
|
74284
74331
|
}
|
74285
|
-
get wordProcessingNamespaceConst() { return this.namespaces[DocxNsType.WordProcessing].namespace; }
|
74286
|
-
get relsNamespaceConst() { return this.namespaces[DocxNsType.Rels].namespace; }
|
74287
|
-
get officeNamespace() { return this.namespaces[DocxNsType.Office].namespace; }
|
74288
|
-
get w14NamespaceConst() { return this.namespaces[DocxNsType.w14].namespace; }
|
74289
|
-
get w15NamespaceConst() { return this.namespaces[DocxNsType.w15].namespace; }
|
74290
|
-
get drawingMLNamespaceConst() { return this.namespaces[DocxNsType.DrawingML].namespace; }
|
74291
74332
|
getNamespace(type) {
|
74292
74333
|
return this.namespaces[type].namespace;
|
74293
74334
|
}
|
@@ -74440,16 +74481,23 @@ var ElementStages;
|
|
74440
74481
|
ElementStages[ElementStages["ToNextNode"] = 3] = "ToNextNode";
|
74441
74482
|
})(ElementStages || (ElementStages = {}));
|
74442
74483
|
class ElementInfo {
|
74484
|
+
get localName() { return this.node.localName; }
|
74485
|
+
get name() { return this.node.nodeName; }
|
74486
|
+
get namespaceURI() { return this.node.namespaceURI; }
|
74443
74487
|
constructor(node, nodeType) {
|
74444
74488
|
this.elementStage = ElementStages.ElementStart;
|
74445
74489
|
this.node = node;
|
74446
74490
|
this.nodeType = nodeType;
|
74447
74491
|
}
|
74448
|
-
get localName() { return this.node.localName; }
|
74449
|
-
get name() { return this.node.nodeName; }
|
74450
|
-
get namespaceURI() { return this.node.namespaceURI; }
|
74451
74492
|
}
|
74452
74493
|
class XmlReader {
|
74494
|
+
get elementInfo() { return this.elementStack.last; }
|
74495
|
+
get nodeType() { return this.elementInfo.nodeType; }
|
74496
|
+
get localName() { return this.elementInfo.localName; }
|
74497
|
+
get name() { return this.elementInfo.name; }
|
74498
|
+
get namespaceURI() { return this.elementInfo.namespaceURI; }
|
74499
|
+
get attributes() { return this.elementInfo.node.attributes; }
|
74500
|
+
get value() { return this.elementInfo.node.nodeValue; }
|
74453
74501
|
constructor(str, options, filePath) {
|
74454
74502
|
str = utils_string.StringUtils.trimStart(str);
|
74455
74503
|
this.filePath = filePath;
|
@@ -74460,13 +74508,6 @@ class XmlReader {
|
|
74460
74508
|
this.handleNewNode(this.document.firstChild);
|
74461
74509
|
this.options = options;
|
74462
74510
|
}
|
74463
|
-
get elementInfo() { return this.elementStack.last; }
|
74464
|
-
get nodeType() { return this.elementInfo.nodeType; }
|
74465
|
-
get localName() { return this.elementInfo.localName; }
|
74466
|
-
get name() { return this.elementInfo.name; }
|
74467
|
-
get namespaceURI() { return this.elementInfo.namespaceURI; }
|
74468
|
-
get attributes() { return this.elementInfo.node.attributes; }
|
74469
|
-
get value() { return this.elementInfo.node.nodeValue; }
|
74470
74511
|
getAttribute(name) {
|
74471
74512
|
return this.elementInfo.node.getAttribute(name);
|
74472
74513
|
}
|
@@ -75200,12 +75241,6 @@ class BookmarkImporter {
|
|
75200
75241
|
|
75201
75242
|
|
75202
75243
|
class CharacterImporter {
|
75203
|
-
constructor(data) {
|
75204
|
-
this.data = data;
|
75205
|
-
this.resetProperties();
|
75206
|
-
if (!this.data.subDocument.chunks[0])
|
75207
|
-
this.data.subDocument.chunks = [new Chunk(this.data.subDocument.positionManager.registerPosition(0), '', true)];
|
75208
|
-
}
|
75209
75244
|
get style() {
|
75210
75245
|
if (!this._style)
|
75211
75246
|
this.resetStyle();
|
@@ -75215,6 +75250,12 @@ class CharacterImporter {
|
|
75215
75250
|
this._style = value;
|
75216
75251
|
}
|
75217
75252
|
get charPropsBundle() { return new MaskedCharacterPropertiesBundle(this.properties, this.style); }
|
75253
|
+
constructor(data) {
|
75254
|
+
this.data = data;
|
75255
|
+
this.resetProperties();
|
75256
|
+
if (!this.data.subDocument.chunks[0])
|
75257
|
+
this.data.subDocument.chunks = [new Chunk(this.data.subDocument.positionManager.registerPosition(0), '', true)];
|
75258
|
+
}
|
75218
75259
|
resetProperties() {
|
75219
75260
|
this.properties = MaskedCharacterProperties.createDefault(this.data.documentModel);
|
75220
75261
|
return this;
|
@@ -75264,10 +75305,10 @@ class CharacterImporter {
|
|
75264
75305
|
|
75265
75306
|
;// CONCATENATED MODULE: ./src/client/formats/docx/import/importers/comments-importer.ts
|
75266
75307
|
class CommentsImporter {
|
75308
|
+
get comments() { return this.data.subDocumentInfo.comments; }
|
75267
75309
|
constructor(data) {
|
75268
75310
|
this.data = data;
|
75269
75311
|
}
|
75270
|
-
get comments() { return this.data.subDocumentInfo.comments; }
|
75271
75312
|
}
|
75272
75313
|
|
75273
75314
|
;// CONCATENATED MODULE: ./src/client/formats/docx/import/importers/field-importer.ts
|
@@ -75276,12 +75317,12 @@ class CommentsImporter {
|
|
75276
75317
|
|
75277
75318
|
|
75278
75319
|
class FieldImporter {
|
75320
|
+
get fieldInfoStack() { return this.data.subDocumentInfo.fieldInfoStack; }
|
75321
|
+
get lastField() { return this.fieldInfoStack.last; }
|
75279
75322
|
constructor(data) {
|
75280
75323
|
this.currIndex = 0;
|
75281
75324
|
this.data = data;
|
75282
75325
|
}
|
75283
|
-
get fieldInfoStack() { return this.data.subDocumentInfo.fieldInfoStack; }
|
75284
|
-
get lastField() { return this.fieldInfoStack.last; }
|
75285
75326
|
applyToLastField(action) {
|
75286
75327
|
const lastField = this.lastField;
|
75287
75328
|
if (lastField)
|
@@ -75463,10 +75504,10 @@ class RangePermissionImporter {
|
|
75463
75504
|
|
75464
75505
|
|
75465
75506
|
class TableImporter {
|
75507
|
+
get isInsideTable() { return this.data.subDocumentInfo.tableStack.count > 0; }
|
75466
75508
|
constructor(data) {
|
75467
75509
|
this.data = data;
|
75468
75510
|
}
|
75469
|
-
get isInsideTable() { return this.data.subDocumentInfo.tableStack.count > 0; }
|
75470
75511
|
cancelTable(table) {
|
75471
75512
|
const tables = this.data.subDocument.tables;
|
75472
75513
|
tables.splice(tables.indexOf(table), 1);
|
@@ -76310,12 +76351,12 @@ class StringExtensions {
|
|
76310
76351
|
|
76311
76352
|
|
76312
76353
|
class ElementDestination {
|
76354
|
+
get documentModel() { return this.data.documentModel; }
|
76355
|
+
get subDocument() { return this.data.subDocument; }
|
76313
76356
|
constructor(data) {
|
76314
76357
|
this.forbidProcessElementOpenClose = false;
|
76315
76358
|
this.data = data;
|
76316
76359
|
}
|
76317
|
-
get documentModel() { return this.data.documentModel; }
|
76318
|
-
get subDocument() { return this.data.subDocument; }
|
76319
76360
|
processElementOpen(_reader) {
|
76320
76361
|
return __awaiter(this, void 0, void 0, function* () { });
|
76321
76362
|
}
|
@@ -76379,15 +76420,15 @@ class ElementDestination {
|
|
76379
76420
|
}
|
76380
76421
|
}
|
76381
76422
|
class AlternateContentDestination extends ElementDestination {
|
76423
|
+
get elementHandlerTable() {
|
76424
|
+
this.data.options.throwInvalidFile('AlternateContentDestination exception');
|
76425
|
+
return null;
|
76426
|
+
}
|
76382
76427
|
constructor(data, parentDestination) {
|
76383
76428
|
super(data);
|
76384
76429
|
this.parentDestination = parentDestination;
|
76385
76430
|
parentDestination.forbidProcessElementOpenClose = true;
|
76386
76431
|
}
|
76387
|
-
get elementHandlerTable() {
|
76388
|
-
this.data.options.throwInvalidFile('AlternateContentDestination exception');
|
76389
|
-
return null;
|
76390
|
-
}
|
76391
76432
|
processElementClose(reader) {
|
76392
76433
|
super.processElementClose(reader);
|
76393
76434
|
this.parentDestination.forbidProcessElementOpenClose = false;
|
@@ -76422,11 +76463,11 @@ class LeafSetMaskedPropertyDestination extends LeafElementDestination {
|
|
76422
76463
|
class destination_EmptyDestination extends LeafElementDestination {
|
76423
76464
|
}
|
76424
76465
|
class TransparentDestination extends ElementDestination {
|
76466
|
+
get elementHandlerTable() { return {}; }
|
76425
76467
|
constructor(data) {
|
76426
76468
|
super(data);
|
76427
76469
|
this.destination = this.data.destinationStack.last;
|
76428
76470
|
}
|
76429
|
-
get elementHandlerTable() { return {}; }
|
76430
76471
|
processElementOpen(_reader) {
|
76431
76472
|
return __awaiter(this, void 0, void 0, function* () {
|
76432
76473
|
});
|
@@ -76488,13 +76529,13 @@ class RelationDestination extends ElementDestination {
|
|
76488
76529
|
|
76489
76530
|
|
76490
76531
|
class RelationshipsDestination extends ElementDestination {
|
76532
|
+
get elementHandlerTable() {
|
76533
|
+
return RelationshipsDestination.handlerTable;
|
76534
|
+
}
|
76491
76535
|
constructor(data, relations) {
|
76492
76536
|
super(data);
|
76493
76537
|
this.relations = relations;
|
76494
76538
|
}
|
76495
|
-
get elementHandlerTable() {
|
76496
|
-
return RelationshipsDestination.handlerTable;
|
76497
|
-
}
|
76498
76539
|
static getThis(data) {
|
76499
76540
|
return data.destinationStack.getThis();
|
76500
76541
|
}
|
@@ -76627,6 +76668,8 @@ class DestinationStack extends stack/* Stack */.K {
|
|
76627
76668
|
}
|
76628
76669
|
}
|
76629
76670
|
class Data {
|
76671
|
+
get subDocumentInfo() { return this.subDocumentsInfoStack.last; }
|
76672
|
+
get subDocument() { return this._subDocument; }
|
76630
76673
|
constructor(options, archiveData, documentModel) {
|
76631
76674
|
this.imageRelationToCacheMap = {};
|
76632
76675
|
this.options = options;
|
@@ -76654,8 +76697,6 @@ class Data {
|
|
76654
76697
|
this.altChunkImporter = new AltChunkImporter(this);
|
76655
76698
|
this.destinationStack = new DestinationStack();
|
76656
76699
|
}
|
76657
|
-
get subDocumentInfo() { return this.subDocumentsInfoStack.last; }
|
76658
|
-
get subDocument() { return this._subDocument; }
|
76659
76700
|
fixLastParagraph() {
|
76660
76701
|
if (this.shouldFixLastParagraph()) {
|
76661
76702
|
}
|
@@ -78272,11 +78313,11 @@ class UnderlineDestination extends CharacterFormattingLeafElementDestination {
|
|
78272
78313
|
|
78273
78314
|
|
78274
78315
|
class RunPropertiesBaseDestination extends ElementDestination {
|
78316
|
+
get elementHandlerTable() { return RunPropertiesBaseDestination.handlerTable; }
|
78275
78317
|
constructor(data, characterProperties) {
|
78276
78318
|
super(data);
|
78277
78319
|
this.characterProperties = characterProperties;
|
78278
78320
|
}
|
78279
|
-
get elementHandlerTable() { return RunPropertiesBaseDestination.handlerTable; }
|
78280
78321
|
static getCharacterProperties(data) {
|
78281
78322
|
return data.destinationStack.getThis().characterProperties;
|
78282
78323
|
}
|
@@ -78879,13 +78920,13 @@ class TableCellVerticalMergingStateDestination extends TableCellPropertiesLeafEl
|
|
78879
78920
|
|
78880
78921
|
|
78881
78922
|
class TableCellPropertiesDestinationCore extends ElementDestination {
|
78923
|
+
get elementHandlerTable() {
|
78924
|
+
return TableCellPropertiesDestinationCore.handlerTable;
|
78925
|
+
}
|
78882
78926
|
constructor(data, cell) {
|
78883
78927
|
super(data);
|
78884
78928
|
this.cell = cell;
|
78885
78929
|
}
|
78886
|
-
get elementHandlerTable() {
|
78887
|
-
return TableCellPropertiesDestinationCore.handlerTable;
|
78888
|
-
}
|
78889
78930
|
static getThis(data) {
|
78890
78931
|
return data.destinationStack.getThis();
|
78891
78932
|
}
|
@@ -78959,15 +79000,15 @@ TableCellPropertiesDestination.handlerTable = new MapCreator(TableCellProperties
|
|
78959
79000
|
|
78960
79001
|
|
78961
79002
|
class TableCellDestination extends ElementDestination {
|
79003
|
+
get elementHandlerTable() {
|
79004
|
+
return TableCellDestination.handlerTable;
|
79005
|
+
}
|
78962
79006
|
constructor(data, row) {
|
78963
79007
|
super(data);
|
78964
79008
|
this.startParagraph = this.data.subDocumentInfo.paragraphImporter.paragraph;
|
78965
79009
|
this.cell = new TableCell(row, this.data.subDocumentInfo.tableImporter.createDefaultCellProperties());
|
78966
79010
|
this.paragraphRequired = true;
|
78967
79011
|
}
|
78968
|
-
get elementHandlerTable() {
|
78969
|
-
return TableCellDestination.handlerTable;
|
78970
|
-
}
|
78971
79012
|
static getThis(data) {
|
78972
79013
|
return data.destinationStack.getThis();
|
78973
79014
|
}
|
@@ -79017,14 +79058,14 @@ TableCellDestination.handlerTable = new MapCreator()
|
|
79017
79058
|
;// CONCATENATED MODULE: ./src/client/formats/docx/import/destination/table/table/properties/table-properties-leaf-element-destination.ts
|
79018
79059
|
|
79019
79060
|
class TablePropertiesLeafElementDestination extends ElementDestination {
|
79061
|
+
get elementHandlerTable() {
|
79062
|
+
return {};
|
79063
|
+
}
|
79020
79064
|
constructor(data, table, tableProperties) {
|
79021
79065
|
super(data);
|
79022
79066
|
this.table = table;
|
79023
79067
|
this.tableProperties = tableProperties;
|
79024
79068
|
}
|
79025
|
-
get elementHandlerTable() {
|
79026
|
-
return {};
|
79027
|
-
}
|
79028
79069
|
static getProperties(data) {
|
79029
79070
|
return data.destinationStack.getThis().tableProperties;
|
79030
79071
|
}
|
@@ -79233,14 +79274,14 @@ class TableStyleShadingDestination extends TablePropertiesLeafElementDestination
|
|
79233
79274
|
|
79234
79275
|
|
79235
79276
|
class TablePropertiesDestinationCore extends TablePropertiesBaseDestination {
|
79277
|
+
get elementHandlerTable() {
|
79278
|
+
return TablePropertiesDestinationCore.handlerTable;
|
79279
|
+
}
|
79236
79280
|
constructor(data, table, tableProperties) {
|
79237
79281
|
super(data, tableProperties);
|
79238
79282
|
this.table = table;
|
79239
79283
|
this.tableProperties = tableProperties;
|
79240
79284
|
}
|
79241
|
-
get elementHandlerTable() {
|
79242
|
-
return TablePropertiesDestinationCore.handlerTable;
|
79243
|
-
}
|
79244
79285
|
static getThis(data) {
|
79245
79286
|
return data.destinationStack.getThis();
|
79246
79287
|
}
|
@@ -79423,13 +79464,13 @@ class TableRowHideCellMarkDestination extends TableRowPropertiesLeafElementDesti
|
|
79423
79464
|
|
79424
79465
|
|
79425
79466
|
class TableRowPropertiesDestination extends ElementDestination {
|
79467
|
+
get elementHandlerTable() {
|
79468
|
+
return TableRowPropertiesDestination.handlerTable;
|
79469
|
+
}
|
79426
79470
|
constructor(data, row) {
|
79427
79471
|
super(data);
|
79428
79472
|
this.row = row;
|
79429
79473
|
}
|
79430
|
-
get elementHandlerTable() {
|
79431
|
-
return TableRowPropertiesDestination.handlerTable;
|
79432
|
-
}
|
79433
79474
|
static getThis(data) {
|
79434
79475
|
return data.destinationStack.getThis();
|
79435
79476
|
}
|
@@ -79473,13 +79514,13 @@ TableRowPropertiesDestination.handlerTable = new MapCreator()
|
|
79473
79514
|
|
79474
79515
|
|
79475
79516
|
class TableRowDestination extends ElementDestination {
|
79517
|
+
get elementHandlerTable() {
|
79518
|
+
return TableRowDestination.handlerTable;
|
79519
|
+
}
|
79476
79520
|
constructor(data, table) {
|
79477
79521
|
super(data);
|
79478
79522
|
this.row = new TableRow(table, this.data.subDocumentInfo.tableImporter.createDefaultRowProperties());
|
79479
79523
|
}
|
79480
|
-
get elementHandlerTable() {
|
79481
|
-
return TableRowDestination.handlerTable;
|
79482
|
-
}
|
79483
79524
|
static getThis(data) {
|
79484
79525
|
return data.destinationStack.getThis();
|
79485
79526
|
}
|
@@ -79526,12 +79567,12 @@ class table_style_destination_TableStyleDestination extends LeafElementDestinati
|
|
79526
79567
|
|
79527
79568
|
|
79528
79569
|
class TablePropertiesDestination extends TablePropertiesDestinationCore {
|
79529
|
-
constructor(data, table) {
|
79530
|
-
super(data, table, table.properties);
|
79531
|
-
}
|
79532
79570
|
get elementHandlerTable() {
|
79533
79571
|
return TablePropertiesDestination.handlerTable;
|
79534
79572
|
}
|
79573
|
+
constructor(data, table) {
|
79574
|
+
super(data, table, table.properties);
|
79575
|
+
}
|
79535
79576
|
static getThis(data) {
|
79536
79577
|
return data.destinationStack.getThis();
|
79537
79578
|
}
|
@@ -79596,6 +79637,9 @@ TableGridDestination.handlerTable = new MapCreator()
|
|
79596
79637
|
|
79597
79638
|
|
79598
79639
|
class TableDestination extends ElementDestination {
|
79640
|
+
get elementHandlerTable() {
|
79641
|
+
return TableDestination.handlerTable;
|
79642
|
+
}
|
79599
79643
|
constructor(data, parentCell = null) {
|
79600
79644
|
super(data);
|
79601
79645
|
this.table = new Table(this.data.subDocumentInfo.tableImporter.createDefaultTableProperties(), this.data.documentModel.stylesManager.getDefaultTableStyle());
|
@@ -79603,9 +79647,6 @@ class TableDestination extends ElementDestination {
|
|
79603
79647
|
this.table.parentCell = parentCell;
|
79604
79648
|
this.tableGrid = [];
|
79605
79649
|
}
|
79606
|
-
get elementHandlerTable() {
|
79607
|
-
return TableDestination.handlerTable;
|
79608
|
-
}
|
79609
79650
|
static getThis(data) {
|
79610
79651
|
return data.destinationStack.getThis();
|
79611
79652
|
}
|
@@ -79663,15 +79704,15 @@ TableDestination.handlerTable = new MapCreator()
|
|
79663
79704
|
|
79664
79705
|
|
79665
79706
|
class DrawingAnchorPositionBaseDestination extends ElementDestination {
|
79707
|
+
get elementHandlerTable() {
|
79708
|
+
return {};
|
79709
|
+
}
|
79666
79710
|
constructor(data, anchorDestination) {
|
79667
79711
|
super(data);
|
79668
79712
|
this.offset = Number.MIN_VALUE;
|
79669
79713
|
this.percentOffset = Number.MIN_VALUE;
|
79670
79714
|
this.anchorDestination = anchorDestination;
|
79671
79715
|
}
|
79672
|
-
get elementHandlerTable() {
|
79673
|
-
return {};
|
79674
|
-
}
|
79675
79716
|
static getThis(data) {
|
79676
79717
|
return data.destinationStack.getThis();
|
79677
79718
|
}
|
@@ -79689,12 +79730,12 @@ class DrawingAnchorPositionBaseDestination extends ElementDestination {
|
|
79689
79730
|
processElementCloseCore(_reader) { throw new Error('not implemented'); }
|
79690
79731
|
}
|
79691
79732
|
class DrawingAnchorHorizontalPositionDestination extends DrawingAnchorPositionBaseDestination {
|
79692
|
-
constructor(data, anchorDestination) {
|
79693
|
-
super(data, anchorDestination);
|
79694
|
-
}
|
79695
79733
|
get elementHandlerTable() {
|
79696
79734
|
return DrawingAnchorHorizontalPositionDestination.handlerTable;
|
79697
79735
|
}
|
79736
|
+
constructor(data, anchorDestination) {
|
79737
|
+
super(data, anchorDestination);
|
79738
|
+
}
|
79698
79739
|
static getThis(data) {
|
79699
79740
|
return data.destinationStack.getThis();
|
79700
79741
|
}
|
@@ -79729,12 +79770,12 @@ DrawingAnchorHorizontalPositionDestination.handlerTable = new MapCreator()
|
|
79729
79770
|
.add('align', DrawingAnchorHorizontalPositionDestination.onHorizontalAlignment)
|
79730
79771
|
.get();
|
79731
79772
|
class DrawingAnchorVerticalPositionDestination extends DrawingAnchorPositionBaseDestination {
|
79732
|
-
constructor(data, anchorDestination) {
|
79733
|
-
super(data, anchorDestination);
|
79734
|
-
}
|
79735
79773
|
get elementHandlerTable() {
|
79736
79774
|
return DrawingAnchorVerticalPositionDestination.handlerTable;
|
79737
79775
|
}
|
79776
|
+
constructor(data, anchorDestination) {
|
79777
|
+
super(data, anchorDestination);
|
79778
|
+
}
|
79738
79779
|
static getThis(data) {
|
79739
79780
|
return data.destinationStack.getThis();
|
79740
79781
|
}
|
@@ -79839,12 +79880,12 @@ class DrawingAnchorRelativeSizeBaseDestination extends ElementDestination {
|
|
79839
79880
|
processElementCloseCore(_reader) { throw new Error('not implemented'); }
|
79840
79881
|
}
|
79841
79882
|
class DrawingAnchorHorizontalRelativeSizeDestination extends DrawingAnchorRelativeSizeBaseDestination {
|
79842
|
-
constructor(data, anchorDestination) {
|
79843
|
-
super(data, anchorDestination);
|
79844
|
-
}
|
79845
79883
|
get elementHandlerTable() {
|
79846
79884
|
return DrawingAnchorHorizontalRelativeSizeDestination.handlerTable;
|
79847
79885
|
}
|
79886
|
+
constructor(data, anchorDestination) {
|
79887
|
+
super(data, anchorDestination);
|
79888
|
+
}
|
79848
79889
|
static getThis(data) {
|
79849
79890
|
return data.destinationStack.getThis();
|
79850
79891
|
}
|
@@ -79869,12 +79910,12 @@ DrawingAnchorHorizontalRelativeSizeDestination.handlerTable = new MapCreator()
|
|
79869
79910
|
.add('pctWidth', DrawingAnchorHorizontalRelativeSizeDestination.onPictureWidth)
|
79870
79911
|
.get();
|
79871
79912
|
class DrawingAnchorVerticalRelativeSizeDestination extends DrawingAnchorRelativeSizeBaseDestination {
|
79872
|
-
constructor(data, anchorDestination) {
|
79873
|
-
super(data, anchorDestination);
|
79874
|
-
}
|
79875
79913
|
get elementHandlerTable() {
|
79876
79914
|
return DrawingAnchorVerticalRelativeSizeDestination.handlerTable;
|
79877
79915
|
}
|
79916
|
+
constructor(data, anchorDestination) {
|
79917
|
+
super(data, anchorDestination);
|
79918
|
+
}
|
79878
79919
|
static getThis(data) {
|
79879
79920
|
return data.destinationStack.getThis();
|
79880
79921
|
}
|
@@ -80001,13 +80042,13 @@ class DrawingAnchorWrapTightDestination extends DrawingAnchorPolygonDestinationB
|
|
80001
80042
|
|
80002
80043
|
|
80003
80044
|
class NonVisualPicturePropertiesDestination extends ElementDestination {
|
80045
|
+
get elementHandlerTable() {
|
80046
|
+
return NonVisualPicturePropertiesDestination.handlerTable;
|
80047
|
+
}
|
80004
80048
|
constructor(data, floatingObjectImportInfo) {
|
80005
80049
|
super(data);
|
80006
80050
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
80007
80051
|
}
|
80008
|
-
get elementHandlerTable() {
|
80009
|
-
return NonVisualPicturePropertiesDestination.handlerTable;
|
80010
|
-
}
|
80011
80052
|
static OnNonVisualDrawingProperties(data, _reader) {
|
80012
80053
|
const floatingObjectImportInfo = NonVisualPicturePropertiesDestination.getThis(data).floatingObjectImportInfo;
|
80013
80054
|
return new DrawingAnchorDocumentPropertiesDestination(data, floatingObjectImportInfo, floatingObjectImportInfo.objectNonVisualProperties);
|
@@ -80781,14 +80822,14 @@ class ColorTransformDestinationTint extends ColorTransformDestinationBase {
|
|
80781
80822
|
|
80782
80823
|
|
80783
80824
|
class DrawingColorPropertiesDestinationBase extends ElementDestination {
|
80825
|
+
get elementHandlerTable() {
|
80826
|
+
return DrawingColorPropertiesDestinationBase.handlerTable;
|
80827
|
+
}
|
80784
80828
|
constructor(data, color) {
|
80785
80829
|
super(data);
|
80786
80830
|
this.color = color;
|
80787
80831
|
this.colorModelInfo = new DrawingColorModelInfo();
|
80788
80832
|
}
|
80789
|
-
get elementHandlerTable() {
|
80790
|
-
return DrawingColorPropertiesDestinationBase.handlerTable;
|
80791
|
-
}
|
80792
80833
|
static getThis(data) {
|
80793
80834
|
return data.destinationStack.getThis();
|
80794
80835
|
}
|
@@ -80878,15 +80919,15 @@ class SchemeColorDestination extends DrawingColorPropertiesDestinationBase {
|
|
80878
80919
|
|
80879
80920
|
|
80880
80921
|
class WordProcessingShapePropertiesDestination extends ElementDestination {
|
80922
|
+
get elementHandlerTable() {
|
80923
|
+
return WordProcessingShapePropertiesDestination.handlerTable;
|
80924
|
+
}
|
80881
80925
|
constructor(data, shape, size) {
|
80882
80926
|
super(data);
|
80883
80927
|
this.shape = shape;
|
80884
80928
|
this.size = size;
|
80885
80929
|
this.fillColor = new DrawingColor(DrawingColorModelInfo.empty);
|
80886
80930
|
}
|
80887
|
-
get elementHandlerTable() {
|
80888
|
-
return WordProcessingShapePropertiesDestination.handlerTable;
|
80889
|
-
}
|
80890
80931
|
static getThis(data) {
|
80891
80932
|
return data.destinationStack.getThis();
|
80892
80933
|
}
|
@@ -80923,13 +80964,13 @@ WordProcessingShapePropertiesDestination.handlerTable = new MapCreator()
|
|
80923
80964
|
.add('xfrm', WordProcessingShapePropertiesDestination.onGraphicFrame)
|
80924
80965
|
.get();
|
80925
80966
|
class SolidFillDestination extends ElementDestination {
|
80967
|
+
get elementHandlerTable() {
|
80968
|
+
return SolidFillDestination.handlerTable;
|
80969
|
+
}
|
80926
80970
|
constructor(data, color) {
|
80927
80971
|
super(data);
|
80928
80972
|
this.color = color;
|
80929
80973
|
}
|
80930
|
-
get elementHandlerTable() {
|
80931
|
-
return SolidFillDestination.handlerTable;
|
80932
|
-
}
|
80933
80974
|
static getThis(data) {
|
80934
80975
|
return data.destinationStack.getThis();
|
80935
80976
|
}
|
@@ -80960,14 +81001,14 @@ class NoFillDestination extends LeafElementDestination {
|
|
80960
81001
|
}
|
80961
81002
|
}
|
80962
81003
|
class OutlineDestination extends ElementDestination {
|
81004
|
+
get elementHandlerTable() {
|
81005
|
+
return OutlineDestination.handlerTable;
|
81006
|
+
}
|
80963
81007
|
constructor(data, shape) {
|
80964
81008
|
super(data);
|
80965
81009
|
this.shape = shape;
|
80966
81010
|
this.color = new DrawingColor(new DrawingColorModelInfo());
|
80967
81011
|
}
|
80968
|
-
get elementHandlerTable() {
|
80969
|
-
return OutlineDestination.handlerTable;
|
80970
|
-
}
|
80971
81012
|
static getThis(data) {
|
80972
81013
|
return data.destinationStack.getThis();
|
80973
81014
|
}
|
@@ -81027,16 +81068,16 @@ OutlineDestination.handlerTable = new MapCreator()
|
|
81027
81068
|
|
81028
81069
|
|
81029
81070
|
class DrawingDestination extends ElementDestination {
|
81030
|
-
constructor(data) {
|
81031
|
-
super(data);
|
81032
|
-
this.floatingObjectImportInfo = new FloatingObjectImportInfo(data);
|
81033
|
-
}
|
81034
81071
|
get elementHandlerTable() {
|
81035
81072
|
return DrawingDestination.handlerTable;
|
81036
81073
|
}
|
81037
81074
|
get imageId() {
|
81038
81075
|
return this.floatingObjectImportInfo.imageId;
|
81039
81076
|
}
|
81077
|
+
constructor(data) {
|
81078
|
+
super(data);
|
81079
|
+
this.floatingObjectImportInfo = new FloatingObjectImportInfo(data);
|
81080
|
+
}
|
81040
81081
|
static onInline(data, _reader) {
|
81041
81082
|
DrawingDestination.getThis(data).floatingObjectImportInfo.isFloatingObject = false;
|
81042
81083
|
return new DrawingInlineDestination(data, DrawingDestination.getThis(data).floatingObjectImportInfo);
|
@@ -81085,13 +81126,13 @@ DrawingDestination.handlerTable = new MapCreator()
|
|
81085
81126
|
.add('anchor', DrawingDestination.onAnchor)
|
81086
81127
|
.get();
|
81087
81128
|
class DrawingInlineDestination extends ElementDestination {
|
81129
|
+
get elementHandlerTable() {
|
81130
|
+
return DrawingInlineDestination.handlerTable;
|
81131
|
+
}
|
81088
81132
|
constructor(data, floatingObjectImportInfo) {
|
81089
81133
|
super(data);
|
81090
81134
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81091
81135
|
}
|
81092
|
-
get elementHandlerTable() {
|
81093
|
-
return DrawingInlineDestination.handlerTable;
|
81094
|
-
}
|
81095
81136
|
static getThis(data) {
|
81096
81137
|
return data.destinationStack.getThis();
|
81097
81138
|
}
|
@@ -81116,16 +81157,16 @@ DrawingInlineDestination.handlerTable = new MapCreator()
|
|
81116
81157
|
.add('cNvGraphicFramePr', DrawingInlineDestination.onCNvGraphicFramePr)
|
81117
81158
|
.get();
|
81118
81159
|
class DrawingAnchorDestination extends ElementDestination {
|
81119
|
-
constructor(data, floatingObjectImportInfo) {
|
81120
|
-
super(data);
|
81121
|
-
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81122
|
-
}
|
81123
81160
|
get elementHandlerTable() {
|
81124
81161
|
return DrawingAnchorDestination.handlerTable;
|
81125
81162
|
}
|
81126
81163
|
get floatingObject() {
|
81127
81164
|
return this.floatingObjectImportInfo.anchorInfo;
|
81128
81165
|
}
|
81166
|
+
constructor(data, floatingObjectImportInfo) {
|
81167
|
+
super(data);
|
81168
|
+
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81169
|
+
}
|
81129
81170
|
static getThis(data) {
|
81130
81171
|
return data.destinationStack.getThis();
|
81131
81172
|
}
|
@@ -81229,13 +81270,13 @@ DrawingAnchorDestination.handlerTable = new MapCreator()
|
|
81229
81270
|
.add('sizeRelV', DrawingAnchorDestination.onAnchorVerticalRelativeSize)
|
81230
81271
|
.get();
|
81231
81272
|
class DrawingGraphicFramePropertyDestination extends ElementDestination {
|
81273
|
+
get elementHandlerTable() {
|
81274
|
+
return DrawingGraphicFramePropertyDestination.handlerTable;
|
81275
|
+
}
|
81232
81276
|
constructor(data, destination) {
|
81233
81277
|
super(data);
|
81234
81278
|
this.size = destination.floatingObjectImportInfo.size;
|
81235
81279
|
}
|
81236
|
-
get elementHandlerTable() {
|
81237
|
-
return DrawingGraphicFramePropertyDestination.handlerTable;
|
81238
|
-
}
|
81239
81280
|
static getThis(data) {
|
81240
81281
|
return data.destinationStack.getThis();
|
81241
81282
|
}
|
@@ -81279,14 +81320,14 @@ class DrawingInlineExtentDestination extends LeafElementDestination {
|
|
81279
81320
|
}
|
81280
81321
|
}
|
81281
81322
|
class DrawingAnchorDocumentPropertiesDestination extends ElementDestination {
|
81323
|
+
get elementHandlerTable() {
|
81324
|
+
return DrawingAnchorDocumentPropertiesDestination.handlerTable;
|
81325
|
+
}
|
81282
81326
|
constructor(data, floatingObjectImportInfo, nonVisualProperties) {
|
81283
81327
|
super(data);
|
81284
81328
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81285
81329
|
this.nonVisualProperties = nonVisualProperties;
|
81286
81330
|
}
|
81287
|
-
get elementHandlerTable() {
|
81288
|
-
return DrawingAnchorDocumentPropertiesDestination.handlerTable;
|
81289
|
-
}
|
81290
81331
|
static getThis(data) {
|
81291
81332
|
return data.destinationStack.getThis();
|
81292
81333
|
}
|
@@ -81342,13 +81383,13 @@ class HyperlinkClickDestination extends LeafElementDestination {
|
|
81342
81383
|
}
|
81343
81384
|
}
|
81344
81385
|
class DrawingInlineGraphicDestination extends ElementDestination {
|
81386
|
+
get elementHandlerTable() {
|
81387
|
+
return DrawingInlineGraphicDestination.handlerTable;
|
81388
|
+
}
|
81345
81389
|
constructor(data, floatingObjectImportInfo) {
|
81346
81390
|
super(data);
|
81347
81391
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81348
81392
|
}
|
81349
|
-
get elementHandlerTable() {
|
81350
|
-
return DrawingInlineGraphicDestination.handlerTable;
|
81351
|
-
}
|
81352
81393
|
static getThis(data) {
|
81353
81394
|
return data.destinationStack.getThis();
|
81354
81395
|
}
|
@@ -81360,13 +81401,13 @@ DrawingInlineGraphicDestination.handlerTable = new MapCreator()
|
|
81360
81401
|
.add('graphicData', DrawingInlineGraphicDestination.onGraphicData)
|
81361
81402
|
.get();
|
81362
81403
|
class DrawingInlineGraphicDataDestination extends ElementDestination {
|
81404
|
+
get elementHandlerTable() {
|
81405
|
+
return DrawingInlineGraphicDataDestination.handlerTable;
|
81406
|
+
}
|
81363
81407
|
constructor(data, floatingObjectImportInfo) {
|
81364
81408
|
super(data);
|
81365
81409
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81366
81410
|
}
|
81367
|
-
get elementHandlerTable() {
|
81368
|
-
return DrawingInlineGraphicDataDestination.handlerTable;
|
81369
|
-
}
|
81370
81411
|
static getThis(data) {
|
81371
81412
|
return data.destinationStack.getThis();
|
81372
81413
|
}
|
@@ -81388,13 +81429,13 @@ DrawingInlineGraphicDataDestination.handlerTable = new MapCreator()
|
|
81388
81429
|
class DrawingGroupShapeDestination extends DrawingInlineGraphicDataDestination {
|
81389
81430
|
}
|
81390
81431
|
class DrawingInlineGraphicDataPictureDestination extends ElementDestination {
|
81432
|
+
get elementHandlerTable() {
|
81433
|
+
return DrawingInlineGraphicDataPictureDestination.handlerTable;
|
81434
|
+
}
|
81391
81435
|
constructor(data, floatingObjectImportInfo) {
|
81392
81436
|
super(data);
|
81393
81437
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81394
81438
|
}
|
81395
|
-
get elementHandlerTable() {
|
81396
|
-
return DrawingInlineGraphicDataPictureDestination.handlerTable;
|
81397
|
-
}
|
81398
81439
|
static getThis(data) {
|
81399
81440
|
return data.destinationStack.getThis();
|
81400
81441
|
}
|
@@ -81427,13 +81468,13 @@ DrawingInlineGraphicDataPictureDestination.handlerTable = new MapCreator()
|
|
81427
81468
|
.add('spPr', DrawingInlineGraphicDataPictureDestination.onShapeProperties)
|
81428
81469
|
.get();
|
81429
81470
|
class PictureBlipFillDestination extends ElementDestination {
|
81471
|
+
get elementHandlerTable() {
|
81472
|
+
return PictureBlipFillDestination.handlerTable;
|
81473
|
+
}
|
81430
81474
|
constructor(data, floatingObjectImportInfo) {
|
81431
81475
|
super(data);
|
81432
81476
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81433
81477
|
}
|
81434
|
-
get elementHandlerTable() {
|
81435
|
-
return PictureBlipFillDestination.handlerTable;
|
81436
|
-
}
|
81437
81478
|
static getThis(data) {
|
81438
81479
|
return data.destinationStack.getThis();
|
81439
81480
|
}
|
@@ -81530,13 +81571,13 @@ class DrawingAnchorSimplePositionDestination extends LeafElementDestination {
|
|
81530
81571
|
}
|
81531
81572
|
}
|
81532
81573
|
class WordProcessingShapeDestination extends ElementDestination {
|
81574
|
+
get elementHandlerTable() {
|
81575
|
+
return WordProcessingShapeDestination.handlerTable;
|
81576
|
+
}
|
81533
81577
|
constructor(data, floatingObjectImportInfo) {
|
81534
81578
|
super(data);
|
81535
81579
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81536
81580
|
}
|
81537
|
-
get elementHandlerTable() {
|
81538
|
-
return WordProcessingShapeDestination.handlerTable;
|
81539
|
-
}
|
81540
81581
|
static getThis(data) {
|
81541
81582
|
return data.destinationStack.getThis();
|
81542
81583
|
}
|
@@ -81562,15 +81603,15 @@ WordProcessingShapeDestination.handlerTable = new MapCreator()
|
|
81562
81603
|
.add('spPr', WordProcessingShapeDestination.onShapeProperties)
|
81563
81604
|
.get();
|
81564
81605
|
class TextBoxDestination extends ElementDestination {
|
81606
|
+
get elementHandlerTable() {
|
81607
|
+
return TextBoxDestination.handlerTable;
|
81608
|
+
}
|
81565
81609
|
constructor(data, floatingObjectImportInfo) {
|
81566
81610
|
super(data);
|
81567
81611
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
81568
81612
|
this.floatingObjectImportInfo.shapeType = ShapeType.TextBox;
|
81569
81613
|
this.data.pushCurrentSubDocument(this.documentModel.createSubDocument(SubDocumentInfoType.TextBox, this.data.subDocument.id, true));
|
81570
81614
|
}
|
81571
|
-
get elementHandlerTable() {
|
81572
|
-
return TextBoxDestination.handlerTable;
|
81573
|
-
}
|
81574
81615
|
static onTextBoxContent(data, _reader) {
|
81575
81616
|
return new TextBoxContentDestination(data);
|
81576
81617
|
}
|
@@ -81642,13 +81683,13 @@ TextBoxContentDestination.handlerTable = new MapCreator()
|
|
81642
81683
|
.add('ins', BodyDestinationBase.onInserted)
|
81643
81684
|
.get();
|
81644
81685
|
class TextBoxPropertiesDestination extends ElementDestination {
|
81686
|
+
get elementHandlerTable() {
|
81687
|
+
return TextBoxPropertiesDestination.handlerTable;
|
81688
|
+
}
|
81645
81689
|
constructor(data, textBoxProperties) {
|
81646
81690
|
super(data);
|
81647
81691
|
this.textBoxProperties = textBoxProperties;
|
81648
81692
|
}
|
81649
|
-
get elementHandlerTable() {
|
81650
|
-
return TextBoxPropertiesDestination.handlerTable;
|
81651
|
-
}
|
81652
81693
|
static getThis(data) {
|
81653
81694
|
return data.destinationStack.getThis();
|
81654
81695
|
}
|
@@ -82071,10 +82112,6 @@ class InlinePictureCssParser {
|
|
82071
82112
|
|
82072
82113
|
|
82073
82114
|
class VMLShapeDestination extends ElementDestination {
|
82074
|
-
constructor(data, inlineObjectDestination) {
|
82075
|
-
super(data);
|
82076
|
-
this.inlineObjectDestination = inlineObjectDestination;
|
82077
|
-
}
|
82078
82115
|
get elementHandlerTable() {
|
82079
82116
|
return VMLShapeDestination.handlerTable;
|
82080
82117
|
}
|
@@ -82084,6 +82121,10 @@ class VMLShapeDestination extends ElementDestination {
|
|
82084
82121
|
get style() {
|
82085
82122
|
return this.inlineObjectDestination.style;
|
82086
82123
|
}
|
82124
|
+
constructor(data, inlineObjectDestination) {
|
82125
|
+
super(data);
|
82126
|
+
this.inlineObjectDestination = inlineObjectDestination;
|
82127
|
+
}
|
82087
82128
|
static getThis(data) {
|
82088
82129
|
return data.destinationStack.getThis();
|
82089
82130
|
}
|
@@ -82264,15 +82305,15 @@ class AnchorLockDestination extends LeafElementDestination {
|
|
82264
82305
|
}
|
82265
82306
|
}
|
82266
82307
|
class VMLTextBoxDestination extends ElementDestination {
|
82308
|
+
get elementHandlerTable() {
|
82309
|
+
return VMLTextBoxDestination.handlerTable;
|
82310
|
+
}
|
82267
82311
|
constructor(data, floatingObjectImportInfo) {
|
82268
82312
|
super(data);
|
82269
82313
|
this.floatingObjectImportInfo = floatingObjectImportInfo;
|
82270
82314
|
this.floatingObjectImportInfo.shapeType = ShapeType.TextBox;
|
82271
82315
|
this.data.pushCurrentSubDocument(this.documentModel.createSubDocument(SubDocumentInfoType.TextBox, this.data.subDocument.id, true));
|
82272
82316
|
}
|
82273
|
-
get elementHandlerTable() {
|
82274
|
-
return VMLTextBoxDestination.handlerTable;
|
82275
|
-
}
|
82276
82317
|
static onTextBoxContent(data, _reader) {
|
82277
82318
|
return new TextBoxContentDestination(data);
|
82278
82319
|
}
|
@@ -82364,13 +82405,13 @@ class VmlShapeImageDataDestination extends LeafElementDestination {
|
|
82364
82405
|
|
82365
82406
|
|
82366
82407
|
class InlineObjectDestination extends ElementDestination {
|
82408
|
+
get elementHandlerTable() {
|
82409
|
+
return InlineObjectDestination.handlerTable;
|
82410
|
+
}
|
82367
82411
|
constructor(data) {
|
82368
82412
|
super(data);
|
82369
82413
|
this.floatingObjectImportInfo = new FloatingObjectImportInfo(this.data);
|
82370
82414
|
}
|
82371
|
-
get elementHandlerTable() {
|
82372
|
-
return InlineObjectDestination.handlerTable;
|
82373
|
-
}
|
82374
82415
|
static getThis(data) {
|
82375
82416
|
return data.destinationStack.getThis();
|
82376
82417
|
}
|
@@ -83138,15 +83179,15 @@ class NoteNumberingRestartTypeDestination extends NotePropertiesLeafElementDesti
|
|
83138
83179
|
}
|
83139
83180
|
}
|
83140
83181
|
class NotePropertiesDestination extends ElementDestination {
|
83182
|
+
static getThis(data) {
|
83183
|
+
return data.destinationStack.getThis();
|
83184
|
+
}
|
83141
83185
|
constructor(data, defaultPosition, defaultFormat) {
|
83142
83186
|
super(data);
|
83143
83187
|
this.notes = NoteProperties.createDefault();
|
83144
83188
|
this.defaultPosition = defaultPosition;
|
83145
83189
|
this.defaultFormat = defaultFormat;
|
83146
83190
|
}
|
83147
|
-
static getThis(data) {
|
83148
|
-
return data.destinationStack.getThis();
|
83149
|
-
}
|
83150
83191
|
get elementHandlerTable() {
|
83151
83192
|
return NotePropertiesDestination.handlerTable;
|
83152
83193
|
}
|
@@ -83403,11 +83444,6 @@ class ParagraphNumberingReferenceNumberingIdDestination extends LeafElementDesti
|
|
83403
83444
|
|
83404
83445
|
|
83405
83446
|
class ParagraphNumberingReferenceDestination extends ElementDestination {
|
83406
|
-
constructor(data, paragraphPropertiesDestination) {
|
83407
|
-
super(data);
|
83408
|
-
this.paragraphPropertiesDestination = paragraphPropertiesDestination;
|
83409
|
-
this.paragraphPropertiesDestination.listLevelIndex = -1;
|
83410
|
-
}
|
83411
83447
|
get listLevelIndex() { return this.paragraphPropertiesDestination.listLevelIndex; }
|
83412
83448
|
set listLevelIndex(value) { this.paragraphPropertiesDestination.listLevelIndex = value; }
|
83413
83449
|
get numberingId() { return this.paragraphPropertiesDestination.numberingId; }
|
@@ -83415,6 +83451,11 @@ class ParagraphNumberingReferenceDestination extends ElementDestination {
|
|
83415
83451
|
get elementHandlerTable() {
|
83416
83452
|
return ParagraphNumberingReferenceDestination.handlerTable;
|
83417
83453
|
}
|
83454
|
+
constructor(data, paragraphPropertiesDestination) {
|
83455
|
+
super(data);
|
83456
|
+
this.paragraphPropertiesDestination = paragraphPropertiesDestination;
|
83457
|
+
this.paragraphPropertiesDestination.listLevelIndex = -1;
|
83458
|
+
}
|
83418
83459
|
static getThis(data) {
|
83419
83460
|
return data.destinationStack.getThis();
|
83420
83461
|
}
|
@@ -83899,14 +83940,14 @@ class WidowOrphanControlDestination extends ParagraphFormattingLeafElementDestin
|
|
83899
83940
|
|
83900
83941
|
|
83901
83942
|
class ParagraphPropertiesBaseDestination extends ElementDestination {
|
83943
|
+
get elementHandlerTable() {
|
83944
|
+
return ParagraphPropertiesBaseDestination.handlerTable;
|
83945
|
+
}
|
83902
83946
|
constructor(data, paragraphProperties, tabs) {
|
83903
83947
|
super(data);
|
83904
83948
|
this.paragraphProperties = paragraphProperties;
|
83905
83949
|
this.tabs = tabs;
|
83906
83950
|
}
|
83907
|
-
get elementHandlerTable() {
|
83908
|
-
return ParagraphPropertiesBaseDestination.handlerTable;
|
83909
|
-
}
|
83910
83951
|
static getThis(data) {
|
83911
83952
|
return data.destinationStack.getThis();
|
83912
83953
|
}
|
@@ -83956,6 +83997,13 @@ ParagraphMarkRunPropertiesDestination.handlerTable = new MapCreator(string.Strin
|
|
83956
83997
|
|
83957
83998
|
|
83958
83999
|
class ParagraphPropertiesDestination extends ParagraphPropertiesBaseDestination {
|
84000
|
+
get listLevelIndex() { return this.paragraphDestination.listLevelIndex; }
|
84001
|
+
set listLevelIndex(value) { this.paragraphDestination.listLevelIndex = value; }
|
84002
|
+
get numberingId() { return this.paragraphDestination.numberingId; }
|
84003
|
+
set numberingId(value) { this.paragraphDestination.numberingId = value; }
|
84004
|
+
get elementHandlerTable() {
|
84005
|
+
return ParagraphPropertiesDestination.handlerTable;
|
84006
|
+
}
|
83959
84007
|
constructor(data, paragraphDestination, paragraphProperties, tabs) {
|
83960
84008
|
super(data, paragraphProperties, tabs);
|
83961
84009
|
this.paragraphDestination = paragraphDestination;
|
@@ -83964,13 +84012,6 @@ class ParagraphPropertiesDestination extends ParagraphPropertiesBaseDestination
|
|
83964
84012
|
.resetStyle();
|
83965
84013
|
utils_list.ListUtils.clear(tabs.tabsInfo);
|
83966
84014
|
}
|
83967
|
-
get listLevelIndex() { return this.paragraphDestination.listLevelIndex; }
|
83968
|
-
set listLevelIndex(value) { this.paragraphDestination.listLevelIndex = value; }
|
83969
|
-
get numberingId() { return this.paragraphDestination.numberingId; }
|
83970
|
-
set numberingId(value) { this.paragraphDestination.numberingId = value; }
|
83971
|
-
get elementHandlerTable() {
|
83972
|
-
return ParagraphPropertiesDestination.handlerTable;
|
83973
|
-
}
|
83974
84015
|
static getThis(data) {
|
83975
84016
|
return data.destinationStack.getThis();
|
83976
84017
|
}
|
@@ -84019,6 +84060,9 @@ ParagraphPropertiesDestination.handlerTable = new MapCreator(string.StringMapUti
|
|
84019
84060
|
|
84020
84061
|
|
84021
84062
|
class ParagraphDestination extends ElementDestination {
|
84063
|
+
get elementHandlerTable() {
|
84064
|
+
return ParagraphDestination.handlerTable;
|
84065
|
+
}
|
84022
84066
|
constructor(data) {
|
84023
84067
|
super(data);
|
84024
84068
|
this.listLevelIndex = constants.Constants.MIN_SAFE_INTEGER;
|
@@ -84033,9 +84077,6 @@ class ParagraphDestination extends ElementDestination {
|
|
84033
84077
|
if (this.data.subDocument.isMain())
|
84034
84078
|
this.data.sectionImporter.shouldInsertSection = false;
|
84035
84079
|
}
|
84036
|
-
get elementHandlerTable() {
|
84037
|
-
return ParagraphDestination.handlerTable;
|
84038
|
-
}
|
84039
84080
|
static getThis(data) {
|
84040
84081
|
return data.destinationStack.getThis();
|
84041
84082
|
}
|
@@ -84175,9 +84216,6 @@ class OpenXmlAbstractNumberingInfo {
|
|
84175
84216
|
|
84176
84217
|
|
84177
84218
|
class OpenXmlListLevelOverride {
|
84178
|
-
constructor(documentModel) {
|
84179
|
-
this.documentModel = documentModel;
|
84180
|
-
}
|
84181
84219
|
get newStart() { return this._newStart; }
|
84182
84220
|
set newStart(val) {
|
84183
84221
|
this._newStart = val;
|
@@ -84185,6 +84223,9 @@ class OpenXmlListLevelOverride {
|
|
84185
84223
|
if (this.level != null)
|
84186
84224
|
this.applyStartOverride(this.level);
|
84187
84225
|
}
|
84226
|
+
constructor(documentModel) {
|
84227
|
+
this.documentModel = documentModel;
|
84228
|
+
}
|
84188
84229
|
getOverrideListLevel() {
|
84189
84230
|
if (this.level == null) {
|
84190
84231
|
this.level = new OverrideListLevel(this.documentModel, MaskedCharacterProperties.createDefault(this.documentModel), MaskedParagraphProperties.createDefault(this.documentModel), new ListLevelProperties());
|
@@ -84256,14 +84297,14 @@ NumberingsDestination.handlerTable = new MapCreator()
|
|
84256
84297
|
.add('num', NumberingsDestination.onNumbering)
|
84257
84298
|
.get();
|
84258
84299
|
class AbstractNumberingListDestination extends ElementDestination {
|
84300
|
+
get elementHandlerTable() {
|
84301
|
+
return AbstractNumberingListDestination.handlerTable;
|
84302
|
+
}
|
84259
84303
|
constructor(data) {
|
84260
84304
|
super(data);
|
84261
84305
|
this.list = new AbstractNumberingList(data.documentModel);
|
84262
84306
|
this.info = new OpenXmlAbstractNumberingInfo();
|
84263
84307
|
}
|
84264
|
-
get elementHandlerTable() {
|
84265
|
-
return AbstractNumberingListDestination.handlerTable;
|
84266
|
-
}
|
84267
84308
|
static getThis(data) {
|
84268
84309
|
return data.destinationStack.getThis();
|
84269
84310
|
}
|
@@ -84320,13 +84361,13 @@ AbstractNumberingListDestination.handlerTable = new MapCreator()
|
|
84320
84361
|
.add('tmpl', AbstractNumberingListDestination.onTemplate)
|
84321
84362
|
.get();
|
84322
84363
|
class NumberingListDestination extends ElementDestination {
|
84364
|
+
get elementHandlerTable() {
|
84365
|
+
return NumberingListDestination.handlerTable;
|
84366
|
+
}
|
84323
84367
|
constructor(data) {
|
84324
84368
|
super(data);
|
84325
84369
|
this.listInfo = new OpenXmlNumberingListInfo();
|
84326
84370
|
}
|
84327
|
-
get elementHandlerTable() {
|
84328
|
-
return NumberingListDestination.handlerTable;
|
84329
|
-
}
|
84330
84371
|
static getThis(data) {
|
84331
84372
|
return data.destinationStack.getThis();
|
84332
84373
|
}
|
@@ -84426,14 +84467,14 @@ class AbstractNumberingListReferenceDestination extends LeafElementDestination {
|
|
84426
84467
|
}
|
84427
84468
|
}
|
84428
84469
|
class ListLevelOverrideDestination extends LeafElementDestination {
|
84470
|
+
get elementHandlerTable() {
|
84471
|
+
return ListLevelOverrideDestination.handlerTable;
|
84472
|
+
}
|
84429
84473
|
constructor(data, listInfo) {
|
84430
84474
|
super(data);
|
84431
84475
|
this.listInfo = listInfo;
|
84432
84476
|
this.levelOverride = new OpenXmlListLevelOverride(this.data.documentModel);
|
84433
84477
|
}
|
84434
|
-
get elementHandlerTable() {
|
84435
|
-
return ListLevelOverrideDestination.handlerTable;
|
84436
|
-
}
|
84437
84478
|
static getThis(data) {
|
84438
84479
|
return data.destinationStack.getThis();
|
84439
84480
|
}
|
@@ -84463,9 +84504,6 @@ ListLevelOverrideDestination.handlerTable = new MapCreator()
|
|
84463
84504
|
.add('startOverride', ListLevelOverrideDestination.onLevelStartOverride)
|
84464
84505
|
.get();
|
84465
84506
|
class NumberingLevelBaseDestination extends ElementDestination {
|
84466
|
-
constructor(data) {
|
84467
|
-
super(data);
|
84468
|
-
}
|
84469
84507
|
get elementHandlerTable() {
|
84470
84508
|
return NumberingLevelBaseDestination.handlerTable;
|
84471
84509
|
}
|
@@ -84473,6 +84511,9 @@ class NumberingLevelBaseDestination extends ElementDestination {
|
|
84473
84511
|
;
|
84474
84512
|
set levelIndex(val) { this._levelIndex = val; }
|
84475
84513
|
;
|
84514
|
+
constructor(data) {
|
84515
|
+
super(data);
|
84516
|
+
}
|
84476
84517
|
static getThis(data) {
|
84477
84518
|
return data.destinationStack.getThis();
|
84478
84519
|
}
|
@@ -84524,13 +84565,13 @@ class NumberingLevelBaseDestination extends ElementDestination {
|
|
84524
84565
|
NumberingLevelBaseDestination.handlerTable = NumberingLevelBaseDestination.createElementHandlerTable()
|
84525
84566
|
.get();
|
84526
84567
|
class NumberingLevelDestination extends NumberingLevelBaseDestination {
|
84568
|
+
get elementHandlerTable() {
|
84569
|
+
return NumberingLevelDestination.handlerTable;
|
84570
|
+
}
|
84527
84571
|
constructor(data, list) {
|
84528
84572
|
super(data);
|
84529
84573
|
this.list = list;
|
84530
84574
|
}
|
84531
|
-
get elementHandlerTable() {
|
84532
|
-
return NumberingLevelDestination.handlerTable;
|
84533
|
-
}
|
84534
84575
|
static onParagraphStyleReference(data, _reader) {
|
84535
84576
|
return new ListLevelParagraphStyleReferenceDestination(data, NumberingLevelBaseDestination.getThis(data));
|
84536
84577
|
}
|
@@ -85169,10 +85210,6 @@ class OpenXmlStyleConditionalTableFormattingInfo {
|
|
85169
85210
|
|
85170
85211
|
|
85171
85212
|
class StyleParagraphPropertiesDestination extends ParagraphPropertiesBaseDestination {
|
85172
|
-
constructor(data, styleDestination, paragraphProperties, tabs) {
|
85173
|
-
super(data, paragraphProperties, tabs);
|
85174
|
-
this.styleDestination = styleDestination;
|
85175
|
-
}
|
85176
85213
|
get elementHandlerTable() {
|
85177
85214
|
return StyleParagraphPropertiesDestination.handlerTable;
|
85178
85215
|
}
|
@@ -85188,6 +85225,10 @@ class StyleParagraphPropertiesDestination extends ParagraphPropertiesBaseDestina
|
|
85188
85225
|
set listLevelIndex(value) {
|
85189
85226
|
this.styleDestination.listLevelIndex = value;
|
85190
85227
|
}
|
85228
|
+
constructor(data, styleDestination, paragraphProperties, tabs) {
|
85229
|
+
super(data, paragraphProperties, tabs);
|
85230
|
+
this.styleDestination = styleDestination;
|
85231
|
+
}
|
85191
85232
|
static getThis(data) {
|
85192
85233
|
return data.destinationStack.getThis();
|
85193
85234
|
}
|
@@ -85605,13 +85646,6 @@ class OfficeThemeSupplementalFontSchemeDestination extends LeafElementDestinatio
|
|
85605
85646
|
|
85606
85647
|
|
85607
85648
|
class OfficeThemeFontCollectionSchemeDestination extends ElementDestination {
|
85608
|
-
constructor(data, fontPart) {
|
85609
|
-
super(data);
|
85610
|
-
this.hasLatin = false;
|
85611
|
-
this.hasEastAsian = false;
|
85612
|
-
this.hasComplexScript = false;
|
85613
|
-
this.fontPart = fontPart;
|
85614
|
-
}
|
85615
85649
|
get elementHandlerTable() {
|
85616
85650
|
return OfficeThemeFontCollectionSchemeDestination.handlerTable;
|
85617
85651
|
}
|
@@ -85627,6 +85661,13 @@ class OfficeThemeFontCollectionSchemeDestination extends ElementDestination {
|
|
85627
85661
|
get fonts() {
|
85628
85662
|
return this.fontPart.supplementalFonts;
|
85629
85663
|
}
|
85664
|
+
constructor(data, fontPart) {
|
85665
|
+
super(data);
|
85666
|
+
this.hasLatin = false;
|
85667
|
+
this.hasEastAsian = false;
|
85668
|
+
this.hasComplexScript = false;
|
85669
|
+
this.fontPart = fontPart;
|
85670
|
+
}
|
85630
85671
|
static getThis(data) {
|
85631
85672
|
return data.destinationStack.getThis();
|
85632
85673
|
}
|
@@ -86591,15 +86632,15 @@ class FloatingImageApi extends ImageApi {
|
|
86591
86632
|
|
86592
86633
|
|
86593
86634
|
class ImageIteratorApi {
|
86635
|
+
get image() {
|
86636
|
+
return this._currImage;
|
86637
|
+
}
|
86594
86638
|
constructor(processor, subDocument, pos) {
|
86595
86639
|
this._processor = processor;
|
86596
86640
|
this._subDocument = subDocument;
|
86597
86641
|
this._iterator = new ModelIterator(subDocument, true);
|
86598
86642
|
this._iterator.setPosition(pos);
|
86599
86643
|
}
|
86600
|
-
get image() {
|
86601
|
-
return this._currImage;
|
86602
|
-
}
|
86603
86644
|
next() {
|
86604
86645
|
do {
|
86605
86646
|
this._currImage = getImageApiFromRun(this._processor, this._subDocument, this._iterator);
|
@@ -88414,6 +88455,9 @@ var HistoryItemDirection;
|
|
88414
88455
|
|
88415
88456
|
|
88416
88457
|
class ScrollHistoryItem extends history_item_HistoryItem {
|
88458
|
+
canBeMerged() {
|
88459
|
+
return true;
|
88460
|
+
}
|
88417
88461
|
constructor(modelManipulator, selection, oldState, newState, directionValue = HistoryItemDirection.OnRedoAndUndo) {
|
88418
88462
|
super(modelManipulator);
|
88419
88463
|
this.selection = selection;
|
@@ -88421,9 +88465,6 @@ class ScrollHistoryItem extends history_item_HistoryItem {
|
|
88421
88465
|
this.oldState = oldState;
|
88422
88466
|
this.directionFlag = new class_flag.Flag(directionValue);
|
88423
88467
|
}
|
88424
|
-
canBeMerged() {
|
88425
|
-
return true;
|
88426
|
-
}
|
88427
88468
|
redo() {
|
88428
88469
|
if (this.directionFlag.get(HistoryItemDirection.OnRedo))
|
88429
88470
|
this.selection.scrollManager.setScroll(this.newState);
|
@@ -88439,6 +88480,9 @@ class ScrollHistoryItem extends history_item_HistoryItem {
|
|
88439
88480
|
|
88440
88481
|
|
88441
88482
|
class SelectionHistoryItem extends history_item_HistoryItem {
|
88483
|
+
canBeMerged() {
|
88484
|
+
return true;
|
88485
|
+
}
|
88442
88486
|
constructor(modelManipulator, selection, oldState, newState, directionValue = HistoryItemDirection.OnRedoAndUndo) {
|
88443
88487
|
super(modelManipulator);
|
88444
88488
|
this.selection = selection;
|
@@ -88446,9 +88490,6 @@ class SelectionHistoryItem extends history_item_HistoryItem {
|
|
88446
88490
|
this.newState = newState;
|
88447
88491
|
this.directionFlag = new class_flag.Flag(directionValue);
|
88448
88492
|
}
|
88449
|
-
canBeMerged() {
|
88450
|
-
return true;
|
88451
|
-
}
|
88452
88493
|
redo() {
|
88453
88494
|
if (this.directionFlag.get(HistoryItemDirection.OnRedo))
|
88454
88495
|
this.selection.setState(this.newState);
|
@@ -88475,13 +88516,6 @@ class SelectionHistoryItem extends history_item_HistoryItem {
|
|
88475
88516
|
|
88476
88517
|
|
88477
88518
|
class command_base_CommandOptions {
|
88478
|
-
constructor(control) {
|
88479
|
-
this.control = control;
|
88480
|
-
this.changeSelection = true;
|
88481
|
-
this.isSetManually = true;
|
88482
|
-
if (control)
|
88483
|
-
this.intervalsInfo = this.control.selection.intervalsInfo.clone();
|
88484
|
-
}
|
88485
88519
|
get subDocument() { return this.intervalsInfo.subDocument; }
|
88486
88520
|
setChangeSelection(changeSelection) {
|
88487
88521
|
this.changeSelection = changeSelection;
|
@@ -88491,6 +88525,13 @@ class command_base_CommandOptions {
|
|
88491
88525
|
this.intervalsInfo = intervalsInfo;
|
88492
88526
|
return this;
|
88493
88527
|
}
|
88528
|
+
constructor(control) {
|
88529
|
+
this.control = control;
|
88530
|
+
this.changeSelection = true;
|
88531
|
+
this.isSetManually = true;
|
88532
|
+
if (control)
|
88533
|
+
this.intervalsInfo = this.control.selection.intervalsInfo.clone();
|
88534
|
+
}
|
88494
88535
|
}
|
88495
88536
|
class CommandSimpleOptions extends command_base_CommandOptions {
|
88496
88537
|
constructor(control, parameter) {
|
@@ -88499,13 +88540,13 @@ class CommandSimpleOptions extends command_base_CommandOptions {
|
|
88499
88540
|
}
|
88500
88541
|
}
|
88501
88542
|
class CommandBase {
|
88502
|
-
constructor(control) {
|
88503
|
-
this.control = control;
|
88504
|
-
}
|
88505
88543
|
get modelManipulator() { return this.control.modelManager.modelManipulator; }
|
88506
88544
|
get selection() { return this.control.selection; }
|
88507
88545
|
get history() { return this.control.modelManager.history; }
|
88508
88546
|
get inputPosition() { return this.control.inputPosition; }
|
88547
|
+
constructor(control) {
|
88548
|
+
this.control = control;
|
88549
|
+
}
|
88509
88550
|
get colorProvider() { return this.control.modelManager.model.colorProvider; }
|
88510
88551
|
getRelatedCommands() {
|
88511
88552
|
return { [this.commandId]: true };
|
@@ -88913,13 +88954,13 @@ class RichEditLayoutApi {
|
|
88913
88954
|
|
88914
88955
|
;// CONCATENATED MODULE: ./src/client/api/loading-panel.ts
|
88915
88956
|
class LoadingPanelApi {
|
88916
|
-
constructor(core) {
|
88917
|
-
this._core = core;
|
88918
|
-
}
|
88919
88957
|
get enabled() { return this._core.loadingPanelManager.loadingPanel.enabled; }
|
88920
88958
|
set enabled(value) { this._core.loadingPanelManager.loadingPanel.enabled = value; }
|
88921
88959
|
get customPanel() { return this._core.loadingPanelManager.loadingPanel.customPanel; }
|
88922
88960
|
set customPanel(value) { this._core.loadingPanelManager.loadingPanel.customPanel = value; }
|
88961
|
+
constructor(core) {
|
88962
|
+
this._core = core;
|
88963
|
+
}
|
88923
88964
|
show() {
|
88924
88965
|
this._core.loadingPanelManager.loadingPanel.setVisible(true);
|
88925
88966
|
}
|
@@ -89142,6 +89183,9 @@ class IntervalCommandStateEx extends SimpleCommandState {
|
|
89142
89183
|
}
|
89143
89184
|
}
|
89144
89185
|
class ApplyStyleCommandState {
|
89186
|
+
get enabled() {
|
89187
|
+
return this.commandEnabled && (this.paragraphStyleChangeEnabled || this.characterStyleChangeEnabled);
|
89188
|
+
}
|
89145
89189
|
constructor(commandEnabled, paragraphStyleChangeEnabled, characterStyleChangeEnabled, interval, value) {
|
89146
89190
|
this.commandEnabled = commandEnabled;
|
89147
89191
|
this.paragraphStyleChangeEnabled = paragraphStyleChangeEnabled;
|
@@ -89151,9 +89195,6 @@ class ApplyStyleCommandState {
|
|
89151
89195
|
this.denyUpdateValue = false;
|
89152
89196
|
this.value = value;
|
89153
89197
|
}
|
89154
|
-
get enabled() {
|
89155
|
-
return this.commandEnabled && (this.paragraphStyleChangeEnabled || this.characterStyleChangeEnabled);
|
89156
|
-
}
|
89157
89198
|
}
|
89158
89199
|
class RulerSectionColumnsSettingsState extends IntervalCommandState {
|
89159
89200
|
constructor(enabled, interval, columns, equalWidth, activeIndex) {
|
@@ -89577,13 +89618,13 @@ class ControlFontsLoader {
|
|
89577
89618
|
}
|
89578
89619
|
}
|
89579
89620
|
class FontToLoad {
|
89621
|
+
get currentPath() { return this.sourceUrls[this.ind]; }
|
89580
89622
|
constructor(font, fontsSettings) {
|
89581
89623
|
this.sourceUrls = [];
|
89582
89624
|
this.ind = 0;
|
89583
89625
|
this.font = font;
|
89584
89626
|
this.sourceUrls = font.allSourceUrls(fontsSettings.defaultFolder);
|
89585
89627
|
}
|
89586
|
-
get currentPath() { return this.sourceUrls[this.ind]; }
|
89587
89628
|
next() {
|
89588
89629
|
return ++this.ind < this.sourceUrls.length;
|
89589
89630
|
}
|
@@ -89972,9 +90013,6 @@ class PdfLayoutPageExporter {
|
|
89972
90013
|
|
89973
90014
|
|
89974
90015
|
class PdfExporter {
|
89975
|
-
constructor(docProcessor) {
|
89976
|
-
this.docProcessor = docProcessor;
|
89977
|
-
}
|
89978
90016
|
get layoutFormatterManager() {
|
89979
90017
|
return this.docProcessor.layoutFormatterManager;
|
89980
90018
|
}
|
@@ -89990,6 +90028,9 @@ class PdfExporter {
|
|
89990
90028
|
get fontsSettings() {
|
89991
90029
|
return this.docProcessor.modelManager.richOptions.fonts;
|
89992
90030
|
}
|
90031
|
+
constructor(docProcessor) {
|
90032
|
+
this.docProcessor = docProcessor;
|
90033
|
+
}
|
89993
90034
|
export(callback, options) {
|
89994
90035
|
const modifyPdfDocument = typeof options == 'function' ? options :
|
89995
90036
|
(!options || !options.modifyPdfDocument ? () => { } : options.modifyPdfDocument);
|
@@ -90103,12 +90144,12 @@ function downloadPdf(docProcessor, fileName, options) {
|
|
90103
90144
|
|
90104
90145
|
|
90105
90146
|
class DocumentProcessorBaseApi {
|
90106
|
-
constructor() {
|
90107
|
-
this.unitConverter = new UnitConverterApi();
|
90108
|
-
}
|
90109
90147
|
set onCalculateDocumentVariable(val) {
|
90110
90148
|
this._processor.onCalculateDocumentVariable = val ? (e) => val(this, e) : null;
|
90111
90149
|
}
|
90150
|
+
constructor() {
|
90151
|
+
this.unitConverter = new UnitConverterApi();
|
90152
|
+
}
|
90112
90153
|
importDocument(source, documentFormat, callback) {
|
90113
90154
|
this._processor.openDocument(source, documentFormat, callback);
|
90114
90155
|
this.document = new RichEditDocumentApi(this._processor);
|
@@ -90384,10 +90425,10 @@ class XmlWriter {
|
|
90384
90425
|
|
90385
90426
|
|
90386
90427
|
class BaseExporter {
|
90428
|
+
get writer() { return this.data.writer; }
|
90387
90429
|
constructor(data) {
|
90388
90430
|
this.data = data;
|
90389
90431
|
}
|
90390
|
-
get writer() { return this.data.writer; }
|
90391
90432
|
}
|
90392
90433
|
class ExporterBaseWithRootElement extends BaseExporter {
|
90393
90434
|
export() {
|
@@ -90764,10 +90805,6 @@ NotePropertiesExporter.defaultProperties = NoteProperties.createDefault();
|
|
90764
90805
|
|
90765
90806
|
|
90766
90807
|
class SectionExporter extends BaseExporter {
|
90767
|
-
constructor(data, _section) {
|
90768
|
-
super(data);
|
90769
|
-
this._section = _section;
|
90770
|
-
}
|
90771
90808
|
static createDefaultProperties() {
|
90772
90809
|
const props = new SectionProperties();
|
90773
90810
|
props.pageSize = new geometry_size.Size(12240, 15840);
|
@@ -90777,6 +90814,10 @@ class SectionExporter extends BaseExporter {
|
|
90777
90814
|
props.space = unit_converter/* UnitConverter */.u.hundredthsOfMillimeterToTwips(1250);
|
90778
90815
|
return props;
|
90779
90816
|
}
|
90817
|
+
constructor(data, _section) {
|
90818
|
+
super(data);
|
90819
|
+
this._section = _section;
|
90820
|
+
}
|
90780
90821
|
exportProperties() {
|
90781
90822
|
this.writer.writeWpStartElement('sectPr');
|
90782
90823
|
this.exportSectionHeadersFootersCore(this._section);
|
@@ -91837,6 +91878,10 @@ class NumberingsExporter extends ExporterBaseWithRootElement {
|
|
91837
91878
|
|
91838
91879
|
|
91839
91880
|
class ContentTypesExporter extends ExporterBaseWithRootElement {
|
91881
|
+
get filePath() { return '[Content_Types].xml'; }
|
91882
|
+
get rootElement() { return 'Types'; }
|
91883
|
+
get rootNSPrefix() { return ''; }
|
91884
|
+
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.ContentTypes].namespace; }
|
91840
91885
|
constructor(data) {
|
91841
91886
|
super(data);
|
91842
91887
|
this.usedContentTypes = {};
|
@@ -91850,10 +91895,6 @@ class ContentTypesExporter extends ExporterBaseWithRootElement {
|
|
91850
91895
|
this.registerContentTypeOverride('/word/settings.xml', ContentType.settings);
|
91851
91896
|
this.registerContentTypeOverride('/docProps/core.xml', ContentType.coreProperties);
|
91852
91897
|
}
|
91853
|
-
get filePath() { return '[Content_Types].xml'; }
|
91854
|
-
get rootElement() { return 'Types'; }
|
91855
|
-
get rootNSPrefix() { return ''; }
|
91856
|
-
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.ContentTypes].namespace; }
|
91857
91898
|
registerContentTypeOverride(partName, contentType) {
|
91858
91899
|
this.overriddenContentTypes[partName] = contentType;
|
91859
91900
|
}
|
@@ -92744,6 +92785,9 @@ class TableExporter extends BaseExporter {
|
|
92744
92785
|
|
92745
92786
|
|
92746
92787
|
class BaseSubDocumentExporter extends ExporterBaseWithRootElement {
|
92788
|
+
get filePath() { return this._filePath; }
|
92789
|
+
get rootNSPrefix() { return this.data.constants.namespaces[DocxNsType.WordProcessing].prefix; }
|
92790
|
+
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.WordProcessing].namespace; }
|
92747
92791
|
constructor(data, filePath) {
|
92748
92792
|
super(data);
|
92749
92793
|
this.fieldCodeDepth = 0;
|
@@ -92779,9 +92823,6 @@ class BaseSubDocumentExporter extends ExporterBaseWithRootElement {
|
|
92779
92823
|
};
|
92780
92824
|
this.tableExporter = new TableExporter(this.data);
|
92781
92825
|
}
|
92782
|
-
get filePath() { return this._filePath; }
|
92783
|
-
get rootNSPrefix() { return this.data.constants.namespaces[DocxNsType.WordProcessing].prefix; }
|
92784
|
-
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.WordProcessing].namespace; }
|
92785
92826
|
fillWriter() {
|
92786
92827
|
this.data.subDocumentExporterStack.push(this);
|
92787
92828
|
this.registerNamespaces();
|
@@ -93139,6 +93180,11 @@ class IdGenerator {
|
|
93139
93180
|
|
93140
93181
|
|
93141
93182
|
class data_Data {
|
93183
|
+
get writer() { return this.writerStack.last; }
|
93184
|
+
set writer(val) { this.writerStack.push(val); }
|
93185
|
+
get subDocumentExporter() { return this.subDocumentExporterStack.last; }
|
93186
|
+
get relationExporter() { return utils_list.ListUtils.last(this.relationExporters); }
|
93187
|
+
get mainSubDocumentRelations() { return this.relationExporters[0]; }
|
93142
93188
|
constructor(model, options) {
|
93143
93189
|
this.drawingElementId = 1;
|
93144
93190
|
this.exportSubDocumentsList = [];
|
@@ -93168,11 +93214,6 @@ class data_Data {
|
|
93168
93214
|
this.footNotes = new Map();
|
93169
93215
|
this.endNotes = new Map();
|
93170
93216
|
}
|
93171
|
-
get writer() { return this.writerStack.last; }
|
93172
|
-
set writer(val) { this.writerStack.push(val); }
|
93173
|
-
get subDocumentExporter() { return this.subDocumentExporterStack.last; }
|
93174
|
-
get relationExporter() { return utils_list.ListUtils.last(this.relationExporters); }
|
93175
|
-
get mainSubDocumentRelations() { return this.relationExporters[0]; }
|
93176
93217
|
popWriter() { this.writerStack.pop(); }
|
93177
93218
|
pushRelationExporter(exporter) { this.relationExporters.push(exporter); }
|
93178
93219
|
popRelationExporter() { this.relationExporters.pop().export(); }
|
@@ -93419,6 +93460,7 @@ class SettingsExporter extends ExporterBaseWithRootElement {
|
|
93419
93460
|
|
93420
93461
|
|
93421
93462
|
class RelationCollectionExporter extends RelationsBaseExporter {
|
93463
|
+
get filePath() { return this._filePath; }
|
93422
93464
|
constructor(data, filePath) {
|
93423
93465
|
super(data);
|
93424
93466
|
this._filePath = filePath;
|
@@ -93427,7 +93469,6 @@ class RelationCollectionExporter extends RelationsBaseExporter {
|
|
93427
93469
|
this.hyperlinkRelationsTable = {};
|
93428
93470
|
this.exportedExternalImageRelationsTable = {};
|
93429
93471
|
}
|
93430
|
-
get filePath() { return this._filePath; }
|
93431
93472
|
fillWriter() {
|
93432
93473
|
this.generateFileRelationCore(this.imageRelationsTable, this.data.constants.rels.relsImage);
|
93433
93474
|
this.generateFileRelationCore(this.exportedExternalImageRelationsTable, this.data.constants.rels.relsImage, true);
|
@@ -93449,11 +93490,11 @@ class RelationCollectionExporter extends RelationsBaseExporter {
|
|
93449
93490
|
|
93450
93491
|
|
93451
93492
|
class HeaderFooterSubDocumentExporter extends SingleSubDocumentExoprter {
|
93493
|
+
get rootElement() { return this.subDocument.isHeader() ? 'hdr' : 'ftr'; }
|
93452
93494
|
constructor(data, subDocument, filePath, relsFilePath) {
|
93453
93495
|
super(data, subDocument, filePath);
|
93454
93496
|
this.relsFilePath = relsFilePath;
|
93455
93497
|
}
|
93456
|
-
get rootElement() { return this.subDocument.isHeader() ? 'hdr' : 'ftr'; }
|
93457
93498
|
createRelationExporter() { return new RelationCollectionExporter(this.data, this.relsFilePath); }
|
93458
93499
|
fillWriterCore() {
|
93459
93500
|
this.init();
|
@@ -93997,11 +94038,11 @@ class DocxExporter {
|
|
93997
94038
|
|
93998
94039
|
|
93999
94040
|
class TxtExporter {
|
94041
|
+
get model() { return this.modelManipulator.model; }
|
94000
94042
|
constructor(modelManipulator, options) {
|
94001
94043
|
this.modelManipulator = modelManipulator;
|
94002
94044
|
this.options = options;
|
94003
94045
|
}
|
94004
|
-
get model() { return this.modelManipulator.model; }
|
94005
94046
|
exportToBlob(callback) {
|
94006
94047
|
this.getBlob(callback);
|
94007
94048
|
}
|
@@ -94065,14 +94106,14 @@ var LayoutChangeType;
|
|
94065
94106
|
LayoutChangeType[LayoutChangeType["Inserted"] = 3] = "Inserted";
|
94066
94107
|
})(LayoutChangeType || (LayoutChangeType = {}));
|
94067
94108
|
class LayoutChangeBase {
|
94068
|
-
constructor(index, changeType = LayoutChangeType.Updated) {
|
94069
|
-
this.index = index;
|
94070
|
-
this.changeType = changeType;
|
94071
|
-
}
|
94072
94109
|
get layoutIndex() { return this.index; }
|
94073
94110
|
;
|
94074
94111
|
get canvasIndex() { return this.index; }
|
94075
94112
|
;
|
94113
|
+
constructor(index, changeType = LayoutChangeType.Updated) {
|
94114
|
+
this.index = index;
|
94115
|
+
this.changeType = changeType;
|
94116
|
+
}
|
94076
94117
|
summarizeChanges(_change) {
|
94077
94118
|
}
|
94078
94119
|
}
|
@@ -94097,34 +94138,34 @@ class TableChange extends LayoutChangeBase {
|
|
94097
94138
|
}
|
94098
94139
|
}
|
94099
94140
|
class RowChangeSV extends RowChange {
|
94100
|
-
constructor(layoutIndex, canvasIndex, changeType) {
|
94101
|
-
super(canvasIndex, changeType);
|
94102
|
-
this._layoutIndex = layoutIndex;
|
94103
|
-
}
|
94104
94141
|
get layoutIndex() { return this._layoutIndex; }
|
94105
94142
|
;
|
94106
94143
|
get canvasIndex() { return this.index; }
|
94107
94144
|
;
|
94108
|
-
}
|
94109
|
-
class TableChangeSV extends TableChange {
|
94110
94145
|
constructor(layoutIndex, canvasIndex, changeType) {
|
94111
94146
|
super(canvasIndex, changeType);
|
94112
94147
|
this._layoutIndex = layoutIndex;
|
94113
94148
|
}
|
94149
|
+
}
|
94150
|
+
class TableChangeSV extends TableChange {
|
94114
94151
|
get layoutIndex() { return this._layoutIndex; }
|
94115
94152
|
;
|
94116
94153
|
get canvasIndex() { return this.index; }
|
94117
94154
|
;
|
94118
|
-
}
|
94119
|
-
class ParagraphFrameChangeSV extends ParagraphFrameChange {
|
94120
94155
|
constructor(layoutIndex, canvasIndex, changeType) {
|
94121
94156
|
super(canvasIndex, changeType);
|
94122
94157
|
this._layoutIndex = layoutIndex;
|
94123
94158
|
}
|
94159
|
+
}
|
94160
|
+
class ParagraphFrameChangeSV extends ParagraphFrameChange {
|
94124
94161
|
get layoutIndex() { return this._layoutIndex; }
|
94125
94162
|
;
|
94126
94163
|
get canvasIndex() { return this.index; }
|
94127
94164
|
;
|
94165
|
+
constructor(layoutIndex, canvasIndex, changeType) {
|
94166
|
+
super(canvasIndex, changeType);
|
94167
|
+
this._layoutIndex = layoutIndex;
|
94168
|
+
}
|
94128
94169
|
}
|
94129
94170
|
|
94130
94171
|
;// CONCATENATED MODULE: ./src/common/rich-utils/debug/logger/layout-logger/log-obj-to-str-layout.ts
|
@@ -94892,6 +94933,7 @@ var LayoutRowStateFlags;
|
|
94892
94933
|
LayoutRowStateFlags[LayoutRowStateFlags["PageBreakBefore"] = 128] = "PageBreakBefore";
|
94893
94934
|
})(LayoutRowStateFlags || (LayoutRowStateFlags = {}));
|
94894
94935
|
class layout_row_LayoutRow extends rectangle.Rectangle {
|
94936
|
+
get hasEffectToPageHeight() { return this.boxes.length != 1 || !this.boxes[0].isSectionBreakBox; }
|
94895
94937
|
constructor(minY = Number.MAX_SAFE_INTEGER) {
|
94896
94938
|
super(0, 0, 0, 0);
|
94897
94939
|
this.boxes = [];
|
@@ -94900,7 +94942,6 @@ class layout_row_LayoutRow extends rectangle.Rectangle {
|
|
94900
94942
|
this.flags = new class_flag.Flag(LayoutRowStateFlags.NormallyEnd);
|
94901
94943
|
this.initialY = minY;
|
94902
94944
|
}
|
94903
|
-
get hasEffectToPageHeight() { return this.boxes.length != 1 || !this.boxes[0].isSectionBreakBox; }
|
94904
94945
|
getEndPosition() {
|
94905
94946
|
return this.columnOffset + this.getLastBoxEndPositionInRow();
|
94906
94947
|
}
|
@@ -95287,6 +95328,10 @@ class LayoutAnchoredTextBox extends LayoutAnchoredObjectBox {
|
|
95287
95328
|
|
95288
95329
|
|
95289
95330
|
class LayoutPageBreakBox extends layout_box_LayoutBox {
|
95331
|
+
equals(obj) {
|
95332
|
+
return super.equals(obj) &&
|
95333
|
+
this.text == obj.text;
|
95334
|
+
}
|
95290
95335
|
constructor(characterProperties, colorInfo) {
|
95291
95336
|
super(characterProperties, colorInfo);
|
95292
95337
|
if (!LayoutPageBreakBox.renderCharacterProperties && characterProperties) {
|
@@ -95299,10 +95344,6 @@ class LayoutPageBreakBox extends layout_box_LayoutBox {
|
|
95299
95344
|
LayoutPageBreakBox.renderCharacterProperties.fontInfo.scriptMultiplier = 0.65;
|
95300
95345
|
}
|
95301
95346
|
}
|
95302
|
-
equals(obj) {
|
95303
|
-
return super.equals(obj) &&
|
95304
|
-
this.text == obj.text;
|
95305
|
-
}
|
95306
95347
|
clone() {
|
95307
95348
|
const newObj = new LayoutPageBreakBox(this.characterProperties, this.colorInfo);
|
95308
95349
|
newObj.copyFrom(this);
|
@@ -95368,11 +95409,11 @@ class LayoutColumnBreakBox extends LayoutPageBreakBox {
|
|
95368
95409
|
|
95369
95410
|
|
95370
95411
|
class LayoutDashBox extends layout_box_LayoutBox {
|
95412
|
+
get isDashBox() { return true; }
|
95371
95413
|
constructor(characterProperties, colorInfo, text) {
|
95372
95414
|
super(characterProperties, colorInfo);
|
95373
95415
|
this.text = text;
|
95374
95416
|
}
|
95375
|
-
get isDashBox() { return true; }
|
95376
95417
|
equals(obj) {
|
95377
95418
|
return super.equals(obj) &&
|
95378
95419
|
this.text == obj.text;
|
@@ -95658,6 +95699,10 @@ class LayoutFieldResultEndBox extends layout_box_LayoutBox {
|
|
95658
95699
|
|
95659
95700
|
|
95660
95701
|
class LayoutLineBreakBox extends layout_box_LayoutBox {
|
95702
|
+
equals(obj) {
|
95703
|
+
return super.equals(obj) &&
|
95704
|
+
this.lineBreakSymbol == obj.lineBreakSymbol;
|
95705
|
+
}
|
95661
95706
|
constructor(characterProperties, colorInfo) {
|
95662
95707
|
super(characterProperties, colorInfo);
|
95663
95708
|
if (!LayoutLineBreakBox.renderCharacterProperties && characterProperties) {
|
@@ -95670,10 +95715,6 @@ class LayoutLineBreakBox extends layout_box_LayoutBox {
|
|
95670
95715
|
LayoutLineBreakBox.renderCharacterProperties.fontInfo.scriptMultiplier = 0.65;
|
95671
95716
|
}
|
95672
95717
|
}
|
95673
|
-
equals(obj) {
|
95674
|
-
return super.equals(obj) &&
|
95675
|
-
this.lineBreakSymbol == obj.lineBreakSymbol;
|
95676
|
-
}
|
95677
95718
|
clone() {
|
95678
95719
|
const newObj = new LayoutLineBreakBox(this.characterProperties, this.colorInfo);
|
95679
95720
|
newObj.copyFrom(this);
|
@@ -96088,15 +96129,15 @@ var BoxBracketsType;
|
|
96088
96129
|
BoxBracketsType[BoxBracketsType["Close"] = 2] = "Close";
|
96089
96130
|
})(BoxBracketsType || (BoxBracketsType = {}));
|
96090
96131
|
class RowFormatterResult {
|
96132
|
+
get rowStartPos() {
|
96133
|
+
return this.rowFormatter.rowSizesManager.rowStartPos;
|
96134
|
+
}
|
96091
96135
|
constructor(rowFormatter, minY) {
|
96092
96136
|
this.rowFormatter = rowFormatter;
|
96093
96137
|
this.newAnchoredObjects = [];
|
96094
96138
|
this.row = new layout_row_LayoutRow(minY);
|
96095
96139
|
this.startRowFormatting(true);
|
96096
96140
|
}
|
96097
|
-
get rowStartPos() {
|
96098
|
-
return this.rowFormatter.rowSizesManager.rowStartPos;
|
96099
|
-
}
|
96100
96141
|
startRowFormatting(deleteAnchoredObjects) {
|
96101
96142
|
this.flags = new class_flag.Flag(RowFormatterResultFlag.None);
|
96102
96143
|
this.row.boxes = [];
|
@@ -96279,6 +96320,9 @@ class SectionIterator extends OneDimensionItertor {
|
|
96279
96320
|
|
96280
96321
|
|
96281
96322
|
class BoxGenerator {
|
96323
|
+
static get MAX_NUM_NEW_BOXES() { return BoxWrapsHolder.AVERAGE_BOXES_ON_PAGE; }
|
96324
|
+
;
|
96325
|
+
get colorProvider() { return this.manager.model.colorProvider; }
|
96282
96326
|
constructor(manager, boxesHolder) {
|
96283
96327
|
this.positionFromStartGenerate = -1;
|
96284
96328
|
this.waitForMoreChunks = false;
|
@@ -96299,9 +96343,6 @@ class BoxGenerator {
|
|
96299
96343
|
this.manager = manager;
|
96300
96344
|
this.boxWrapsHolder = boxesHolder;
|
96301
96345
|
}
|
96302
|
-
static get MAX_NUM_NEW_BOXES() { return BoxWrapsHolder.AVERAGE_BOXES_ON_PAGE; }
|
96303
|
-
;
|
96304
|
-
get colorProvider() { return this.manager.model.colorProvider; }
|
96305
96346
|
isNotEmptyParagraphOrSectionRunBeforeTable(box) {
|
96306
96347
|
const hasNewWrappers = this.newWrappers && this.newWrappers.length;
|
96307
96348
|
const lastWrapperNotInsideTable = hasNewWrappers && !utils_list.ListUtils.last(this.newWrappers).info.tablePosition;
|
@@ -96937,6 +96978,16 @@ class BracketInfo {
|
|
96937
96978
|
|
96938
96979
|
|
96939
96980
|
class layout_numbering_list_box_LayoutNumberingListBox extends layout_box_LayoutBox {
|
96981
|
+
getFont(fontInfoCache) {
|
96982
|
+
let fontInfo = fontInfoCache.getItemByName('Arial');
|
96983
|
+
if (!fontInfo) {
|
96984
|
+
fontInfo = fontInfoCache.getItemByName('Times New Roman');
|
96985
|
+
if (!fontInfo) {
|
96986
|
+
fontInfo = fontInfoCache.getItemByName('Calibri');
|
96987
|
+
}
|
96988
|
+
}
|
96989
|
+
return fontInfo;
|
96990
|
+
}
|
96940
96991
|
constructor(characterProperties, colorInfo, text, separatorChar, mergedCharacterPropertiesCache, alignment = ListNumberAlignment.Left, fontInfoCache) {
|
96941
96992
|
super(characterProperties, colorInfo);
|
96942
96993
|
this.textBox = new layout_text_box_LayoutTextBox(characterProperties, colorInfo, text);
|
@@ -96969,16 +97020,6 @@ class layout_numbering_list_box_LayoutNumberingListBox extends layout_box_Layout
|
|
96969
97020
|
}
|
96970
97021
|
}
|
96971
97022
|
}
|
96972
|
-
getFont(fontInfoCache) {
|
96973
|
-
let fontInfo = fontInfoCache.getItemByName('Arial');
|
96974
|
-
if (!fontInfo) {
|
96975
|
-
fontInfo = fontInfoCache.getItemByName('Times New Roman');
|
96976
|
-
if (!fontInfo) {
|
96977
|
-
fontInfo = fontInfoCache.getItemByName('Calibri');
|
96978
|
-
}
|
96979
|
-
}
|
96980
|
-
return fontInfo;
|
96981
|
-
}
|
96982
97023
|
equals(obj) {
|
96983
97024
|
return obj &&
|
96984
97025
|
super.equals(obj) &&
|
@@ -97076,6 +97117,8 @@ class RowIntervalInfo extends fixed.FixedInterval {
|
|
97076
97117
|
}
|
97077
97118
|
}
|
97078
97119
|
class RowFormattingInfo {
|
97120
|
+
get isFloatingIntersectRow() { return !!this.intersectsObjects.length; }
|
97121
|
+
get lastNonEmptyInterval() { return this.intervals[this.lastNonEmptyIntervalIndex]; }
|
97079
97122
|
constructor(minY, height, outerHorizontalRowContentBounds, boundsOfAnchoredOblectsOnThisColumn, tableCell) {
|
97080
97123
|
this.intervals = [];
|
97081
97124
|
this.busyIntervals = [];
|
@@ -97087,8 +97130,6 @@ class RowFormattingInfo {
|
|
97087
97130
|
this.tableCell = tableCell;
|
97088
97131
|
this.lastNonEmptyIntervalIndex = 0;
|
97089
97132
|
}
|
97090
|
-
get isFloatingIntersectRow() { return !!this.intersectsObjects.length; }
|
97091
|
-
get lastNonEmptyInterval() { return this.intervals[this.lastNonEmptyIntervalIndex]; }
|
97092
97133
|
get currInterval() {
|
97093
97134
|
return this.intervals[this.currIndex];
|
97094
97135
|
}
|
@@ -97295,6 +97336,9 @@ class RowHeightState {
|
|
97295
97336
|
|
97296
97337
|
|
97297
97338
|
class RowHeightCalculator {
|
97339
|
+
get row() {
|
97340
|
+
return this.rowFormatter.row;
|
97341
|
+
}
|
97298
97342
|
constructor(rowFormatter, rowSpacingBeforeApplier) {
|
97299
97343
|
this.rowFormatter = rowFormatter;
|
97300
97344
|
this.rowSpacingBeforeApplier = rowSpacingBeforeApplier;
|
@@ -97305,9 +97349,6 @@ class RowHeightCalculator {
|
|
97305
97349
|
this.currState.spacingBefore = 0;
|
97306
97350
|
this.applyState(this.getState(this.rowFormatter.currBox));
|
97307
97351
|
}
|
97308
|
-
get row() {
|
97309
|
-
return this.rowFormatter.row;
|
97310
|
-
}
|
97311
97352
|
getState(box) {
|
97312
97353
|
let info;
|
97313
97354
|
switch (box.getType()) {
|
@@ -97810,6 +97851,14 @@ class RowEndedWithPageBreakState extends RowEndedWithParagraphMarkFormatterState
|
|
97810
97851
|
|
97811
97852
|
|
97812
97853
|
class RowTabInfo {
|
97854
|
+
get row() {
|
97855
|
+
return this.rowFormatter.row;
|
97856
|
+
}
|
97857
|
+
get currIntervalOrLastNonEmpty() {
|
97858
|
+
const currInterval = this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval;
|
97859
|
+
return currInterval ? currInterval : this.rowFormatter.rowSizesManager.rowFormattingInfo.lastNonEmptyInterval;
|
97860
|
+
}
|
97861
|
+
get currInterval() { return this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval; }
|
97813
97862
|
constructor(rowFormatter, paragraphHorizontalBoundsStart) {
|
97814
97863
|
this.rowFormatter = rowFormatter;
|
97815
97864
|
this.paragraphHorizontalBoundsStart = paragraphHorizontalBoundsStart;
|
@@ -97830,14 +97879,6 @@ class RowTabInfo {
|
|
97830
97879
|
pos.position += this.paragraphHorizontalBoundsStart;
|
97831
97880
|
this.restart();
|
97832
97881
|
}
|
97833
|
-
get row() {
|
97834
|
-
return this.rowFormatter.row;
|
97835
|
-
}
|
97836
|
-
get currIntervalOrLastNonEmpty() {
|
97837
|
-
const currInterval = this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval;
|
97838
|
-
return currInterval ? currInterval : this.rowFormatter.rowSizesManager.rowFormattingInfo.lastNonEmptyInterval;
|
97839
|
-
}
|
97840
|
-
get currInterval() { return this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval; }
|
97841
97882
|
restart() {
|
97842
97883
|
this.lastTabPosition = null;
|
97843
97884
|
this.lastTabBoxIndex = -1;
|
@@ -98700,11 +98741,6 @@ class TableBorderInfoProvider {
|
|
98700
98741
|
}
|
98701
98742
|
}
|
98702
98743
|
class BorderHelper {
|
98703
|
-
constructor(tableInfo, model) {
|
98704
|
-
this.colorProvider = model.colorProvider;
|
98705
|
-
this.tableInfo = tableInfo;
|
98706
|
-
this.tblbrdProvider = new TableBorderInfoProvider(model, tableInfo.table, unit_converter/* UnitConverter */.u.twipsToPixels);
|
98707
|
-
}
|
98708
98744
|
rowCellSpacing(rowIndex) {
|
98709
98745
|
return this.tblbrdProvider.cellSpacings[rowIndex];
|
98710
98746
|
}
|
@@ -98713,6 +98749,11 @@ class BorderHelper {
|
|
98713
98749
|
}
|
98714
98750
|
get grid() { return this.tableInfo.grid; }
|
98715
98751
|
get tblStyle() { return this.tableInfo.table.style; }
|
98752
|
+
constructor(tableInfo, model) {
|
98753
|
+
this.colorProvider = model.colorProvider;
|
98754
|
+
this.tableInfo = tableInfo;
|
98755
|
+
this.tblbrdProvider = new TableBorderInfoProvider(model, tableInfo.table, unit_converter/* UnitConverter */.u.twipsToPixels);
|
98756
|
+
}
|
98716
98757
|
getVerticalBorders() {
|
98717
98758
|
const verticalBorders = [];
|
98718
98759
|
const rows = this.grid.table.rows;
|
@@ -98938,6 +98979,9 @@ class BorderHelper {
|
|
98938
98979
|
|
98939
98980
|
|
98940
98981
|
class GridColumnBase {
|
98982
|
+
get isPercentBased() {
|
98983
|
+
return this.type == TableWidthUnitType.FiftiethsOfPercent;
|
98984
|
+
}
|
98941
98985
|
constructor(interval) {
|
98942
98986
|
this.width = interval.type == TableWidthUnitType.ModelUnits ? unit_converter/* UnitConverter */.u.twipsToPixelsF(interval.width) : interval.width;
|
98943
98987
|
this.type = interval.type;
|
@@ -98945,9 +98989,6 @@ class GridColumnBase {
|
|
98945
98989
|
this.preferredWidth = 0;
|
98946
98990
|
this.bounds = new min_max.MinMaxNumber(0, 0);
|
98947
98991
|
}
|
98948
|
-
get isPercentBased() {
|
98949
|
-
return this.type == TableWidthUnitType.FiftiethsOfPercent;
|
98950
|
-
}
|
98951
98992
|
updateMinBound(val) {
|
98952
98993
|
if (val > this.bounds.minElement)
|
98953
98994
|
this.bounds.minElement = val;
|
@@ -99038,6 +99079,9 @@ class Columns {
|
|
99038
99079
|
|
99039
99080
|
|
99040
99081
|
class GridCalculator {
|
99082
|
+
get table() { return this.grid.table; }
|
99083
|
+
get currCache() { return this.cache[this.table.index]; }
|
99084
|
+
get subDocument() { return this.boxIterator.subDocument; }
|
99041
99085
|
constructor(grid, cache, boxIterator, avaliableSpacing) {
|
99042
99086
|
this.accuracy = 8;
|
99043
99087
|
this.maxPercentWidth = 5000;
|
@@ -99053,9 +99097,6 @@ class GridCalculator {
|
|
99053
99097
|
this.applyCellsWidth(intervals);
|
99054
99098
|
this.autofitTable();
|
99055
99099
|
}
|
99056
|
-
get table() { return this.grid.table; }
|
99057
|
-
get currCache() { return this.cache[this.table.index]; }
|
99058
|
-
get subDocument() { return this.boxIterator.subDocument; }
|
99059
99100
|
convertTableWidthUnitToTwips(value) {
|
99060
99101
|
if (value.type == TableWidthUnitType.ModelUnits)
|
99061
99102
|
return value.value;
|
@@ -99752,6 +99793,13 @@ class GridCalculatorFixed extends GridCalculator {
|
|
99752
99793
|
|
99753
99794
|
|
99754
99795
|
class TablePropertiesCache {
|
99796
|
+
get isFixedTableWidth() {
|
99797
|
+
const type = this.preferredWidth.type;
|
99798
|
+
return type == TableWidthUnitType.FiftiethsOfPercent || type == TableWidthUnitType.ModelUnits;
|
99799
|
+
}
|
99800
|
+
get isFixedAlgoritm() {
|
99801
|
+
return this.layoutType == TableLayoutType.Fixed && this.isFixedTableWidth;
|
99802
|
+
}
|
99755
99803
|
constructor(model, table, grid, innerClientProperties) {
|
99756
99804
|
this.borderProvider = new TableBorderInfoProvider(model, table, unit_converter/* UnitConverter */.u.twipsToPixels);
|
99757
99805
|
this.indent = table.getActualTableIndent(model.defaultTableProperties);
|
@@ -99766,13 +99814,6 @@ class TablePropertiesCache {
|
|
99766
99814
|
while (pos.moveToNextRow())
|
99767
99815
|
this.rows.push(new table_properties_cache_TableRowPropertiesCache(model, this.borderProvider, pos, this.rows, grid));
|
99768
99816
|
}
|
99769
|
-
get isFixedTableWidth() {
|
99770
|
-
const type = this.preferredWidth.type;
|
99771
|
-
return type == TableWidthUnitType.FiftiethsOfPercent || type == TableWidthUnitType.ModelUnits;
|
99772
|
-
}
|
99773
|
-
get isFixedAlgoritm() {
|
99774
|
-
return this.layoutType == TableLayoutType.Fixed && this.isFixedTableWidth;
|
99775
|
-
}
|
99776
99817
|
getActualPreferredWidth(table) {
|
99777
99818
|
let result = table.preferredWidth;
|
99778
99819
|
if (result.type == TableWidthUnitType.ModelUnits && result.value == 0)
|
@@ -99840,14 +99881,6 @@ function createGrid(table, boxIterator, avaliableSpacing, innerClientProperties)
|
|
99840
99881
|
|
99841
99882
|
|
99842
99883
|
class CellInfo {
|
99843
|
-
constructor(cellIndex, rowInfo) {
|
99844
|
-
this._isStartOnThisColumn = false;
|
99845
|
-
this._formattingSuspended = false;
|
99846
|
-
this.cellIndex = cellIndex;
|
99847
|
-
this.rowInfo = rowInfo;
|
99848
|
-
this.actualCellInfo = this.getActuallCellInfo();
|
99849
|
-
this.init();
|
99850
|
-
}
|
99851
99884
|
getContentModelPosition(maxNestedLevel) {
|
99852
99885
|
const formatter = this.innerFormatter;
|
99853
99886
|
return formatter && formatter.tableInfo.table.nestedLevel <= maxNestedLevel ?
|
@@ -99891,6 +99924,14 @@ class CellInfo {
|
|
99891
99924
|
set minBottomPosition(val) { this.actualCellInfo._minBottomPosition = Math.max(val, this.actualCellInfo._minBottomPosition); }
|
99892
99925
|
get marginLeft() { return this.actualCellInfo._marginLeft; }
|
99893
99926
|
get marginRight() { return this.actualCellInfo._marginRight; }
|
99927
|
+
constructor(cellIndex, rowInfo) {
|
99928
|
+
this._isStartOnThisColumn = false;
|
99929
|
+
this._formattingSuspended = false;
|
99930
|
+
this.cellIndex = cellIndex;
|
99931
|
+
this.rowInfo = rowInfo;
|
99932
|
+
this.actualCellInfo = this.getActuallCellInfo();
|
99933
|
+
this.init();
|
99934
|
+
}
|
99894
99935
|
getActuallCellInfo() {
|
99895
99936
|
if (this.cell.verticalMerging != TableCellMergingState.Continue)
|
99896
99937
|
return this;
|
@@ -100118,6 +100159,7 @@ class TableRowHeightInfo {
|
|
100118
100159
|
|
100119
100160
|
|
100120
100161
|
class RowInfo {
|
100162
|
+
get row() { return this.tableInfo.table.rows[this.rowIndex]; }
|
100121
100163
|
constructor(tableInfo, rowIndex) {
|
100122
100164
|
this.cells = [];
|
100123
100165
|
this.tableInfo = tableInfo;
|
@@ -100125,7 +100167,6 @@ class RowInfo {
|
|
100125
100167
|
this.howManyColumnsConsiderTableRow = 0;
|
100126
100168
|
this.init();
|
100127
100169
|
}
|
100128
|
-
get row() { return this.tableInfo.table.rows[this.rowIndex]; }
|
100129
100170
|
init() {
|
100130
100171
|
const row = this.row;
|
100131
100172
|
const cantSplit = new TableRowPropertiesMergerCantSplit().getProperty(row.properties, this.tableInfo.tableStyle, row.conditionalFormatting, this.tableInfo.defaultTblRowProps);
|
@@ -100178,6 +100219,23 @@ class RowInfo {
|
|
100178
100219
|
|
100179
100220
|
|
100180
100221
|
class table_info_TableInfo {
|
100222
|
+
get table() { return this.position.table; }
|
100223
|
+
get tableStyle() { return this.table.style; }
|
100224
|
+
get tblProps() { return this.table.properties; }
|
100225
|
+
get defaultTblProps() { return this.model.defaultTableProperties; }
|
100226
|
+
get defaultTblRowProps() { return this.model.defaultTableRowProperties; }
|
100227
|
+
get defaultTblCellProps() { return this.model.defaultTableCellProperties; }
|
100228
|
+
get currRowInfo() { return this.rows[this.position.rowIndex]; }
|
100229
|
+
get currCellInfo() { return this.currRowInfo.cells[this.position.cellIndex]; }
|
100230
|
+
get isThisTableRowFirstInColumn() { return this.currLayoutTableColumnInfo.tableRows.length == 0; }
|
100231
|
+
get isCurrRowLastInTable() { return this.position.rowIndex == this.grid.table.rows.length - 1; }
|
100232
|
+
get currTablePositionIndexes() {
|
100233
|
+
const actCellInfo = this.currCellInfo;
|
100234
|
+
return new TablePositionIndexes(actCellInfo.rowInfo.rowIndex, actCellInfo.cellIndex);
|
100235
|
+
}
|
100236
|
+
get isSimpleView() {
|
100237
|
+
return this.rowFormatter.manager.innerClientProperties.viewsSettings.isSimpleView;
|
100238
|
+
}
|
100181
100239
|
constructor(rowFormatter, table, tableMaxWidth, xPosition, yOffset, pageIndexFromWhichTableWasMoved) {
|
100182
100240
|
this.minRowIndex = 0;
|
100183
100241
|
this.verticalBorders = [];
|
@@ -100199,23 +100257,6 @@ class table_info_TableInfo {
|
|
100199
100257
|
rowInfo.cells = utils_list.ListUtils.map(rowInfo.row.cells, (_cell, cellIndex) => new CellInfo(cellIndex, rowInfo));
|
100200
100258
|
this.cellOrderHelper = new CellOrderHelper(this);
|
100201
100259
|
}
|
100202
|
-
get table() { return this.position.table; }
|
100203
|
-
get tableStyle() { return this.table.style; }
|
100204
|
-
get tblProps() { return this.table.properties; }
|
100205
|
-
get defaultTblProps() { return this.model.defaultTableProperties; }
|
100206
|
-
get defaultTblRowProps() { return this.model.defaultTableRowProperties; }
|
100207
|
-
get defaultTblCellProps() { return this.model.defaultTableCellProperties; }
|
100208
|
-
get currRowInfo() { return this.rows[this.position.rowIndex]; }
|
100209
|
-
get currCellInfo() { return this.currRowInfo.cells[this.position.cellIndex]; }
|
100210
|
-
get isThisTableRowFirstInColumn() { return this.currLayoutTableColumnInfo.tableRows.length == 0; }
|
100211
|
-
get isCurrRowLastInTable() { return this.position.rowIndex == this.grid.table.rows.length - 1; }
|
100212
|
-
get currTablePositionIndexes() {
|
100213
|
-
const actCellInfo = this.currCellInfo;
|
100214
|
-
return new TablePositionIndexes(actCellInfo.rowInfo.rowIndex, actCellInfo.cellIndex);
|
100215
|
-
}
|
100216
|
-
get isSimpleView() {
|
100217
|
-
return this.rowFormatter.manager.innerClientProperties.viewsSettings.isSimpleView;
|
100218
|
-
}
|
100219
100260
|
static checkIsTableCannotBePlacedOnCurrentPage(rowFormatter, table, yOffset, maxWidth) {
|
100220
100261
|
return this.moveRowDownToFitTable(rowFormatter, table, yOffset, table_info_TableInfo.getEstimatedTableWidth(table, maxWidth), maxWidth).needNextPage;
|
100221
100262
|
}
|
@@ -100466,18 +100507,6 @@ var AddRowToTableResult;
|
|
100466
100507
|
AddRowToTableResult[AddRowToTableResult["GoToNextColumn"] = 4] = "GoToNextColumn";
|
100467
100508
|
})(AddRowToTableResult || (AddRowToTableResult = {}));
|
100468
100509
|
class Formatter {
|
100469
|
-
constructor(rowFormatter, tablePositions, column, tableMaxWidth, offset, parentCell, index, avaliableHeight, parentFormatter, pageIndexFromWhichTableWasMoved = null) {
|
100470
|
-
this._posToWaitingContinuedFormatterMap = [];
|
100471
|
-
this.isFullyFormatted = false;
|
100472
|
-
this.parentFormatter = parentFormatter;
|
100473
|
-
const tblPos = tablePositions[index];
|
100474
|
-
if (tblPos.rowIndex != 0 || tblPos.cellIndex != 0)
|
100475
|
-
throw new Error(errors/* Errors */.D.InternalException);
|
100476
|
-
this.tableInfo = new table_info_TableInfo(rowFormatter, tblPos.table, tableMaxWidth, offset.x, offset.y, pageIndexFromWhichTableWasMoved);
|
100477
|
-
this.initColumn(column, parentCell, avaliableHeight);
|
100478
|
-
if (++index < tablePositions.length)
|
100479
|
-
this.createInnerFormatter(tablePositions);
|
100480
|
-
}
|
100481
100510
|
get posToWaitingContinuedFormatterMap() {
|
100482
100511
|
return this.nestedLevel == 0 ? this._posToWaitingContinuedFormatterMap : this.parentFormatter.posToWaitingContinuedFormatterMap;
|
100483
100512
|
}
|
@@ -100510,6 +100539,18 @@ class Formatter {
|
|
100510
100539
|
}
|
100511
100540
|
get position() { return this.tableInfo.position; }
|
100512
100541
|
get grid() { return this.tableInfo.grid; }
|
100542
|
+
constructor(rowFormatter, tablePositions, column, tableMaxWidth, offset, parentCell, index, avaliableHeight, parentFormatter, pageIndexFromWhichTableWasMoved = null) {
|
100543
|
+
this._posToWaitingContinuedFormatterMap = [];
|
100544
|
+
this.isFullyFormatted = false;
|
100545
|
+
this.parentFormatter = parentFormatter;
|
100546
|
+
const tblPos = tablePositions[index];
|
100547
|
+
if (tblPos.rowIndex != 0 || tblPos.cellIndex != 0)
|
100548
|
+
throw new Error(errors/* Errors */.D.InternalException);
|
100549
|
+
this.tableInfo = new table_info_TableInfo(rowFormatter, tblPos.table, tableMaxWidth, offset.x, offset.y, pageIndexFromWhichTableWasMoved);
|
100550
|
+
this.initColumn(column, parentCell, avaliableHeight);
|
100551
|
+
if (++index < tablePositions.length)
|
100552
|
+
this.createInnerFormatter(tablePositions);
|
100553
|
+
}
|
100513
100554
|
getNestedTablePosition(tablePositions) {
|
100514
100555
|
const index = this.nestedLevel + 1;
|
100515
100556
|
return tablePositions && tablePositions.length > index ? tablePositions[index] : null;
|
@@ -103048,12 +103089,12 @@ class RemoveRowContent extends RemoveExistanceContent {
|
|
103048
103089
|
|
103049
103090
|
|
103050
103091
|
class LayoutInvalidator {
|
103051
|
-
constructor(manager) {
|
103052
|
-
this.manager = manager;
|
103053
|
-
}
|
103054
103092
|
get model() { return this.manager.model; }
|
103055
103093
|
get layout() { return this.manager.layout; }
|
103056
103094
|
get mainSubDoc() { return this.model.mainSubDocument; }
|
103095
|
+
constructor(manager) {
|
103096
|
+
this.manager = manager;
|
103097
|
+
}
|
103057
103098
|
onContentInserted(subDocumentId, logPosition, length, restartFromParagraphStart) {
|
103058
103099
|
const subDocument = this.model.subDocuments[subDocumentId];
|
103059
103100
|
const pages = this.layout.pages;
|
@@ -103515,6 +103556,8 @@ class RestartManager {
|
|
103515
103556
|
|
103516
103557
|
|
103517
103558
|
class FormatterManager extends batch_updatable/* BatchUpdatableObject */.IS {
|
103559
|
+
get activeSubDocument() { return this.activeSubDocumentHolder.activeSubDocument; }
|
103560
|
+
get isDocumentOpened() { return this._isDocumentOpened; }
|
103518
103561
|
constructor(measurer, innerClientProperties, model, layout, activeSubDocumentHolder, bookmarksSettings, documentProtectionSettings, controlHeightProvider, stringResources, layoutChangesListeners, browserUtils) {
|
103519
103562
|
super();
|
103520
103563
|
this.formatterProcessID = null;
|
@@ -103546,8 +103589,6 @@ class FormatterManager extends batch_updatable/* BatchUpdatableObject */.IS {
|
|
103546
103589
|
this.anchoredObjectsManager = new AnchoredObjectsManager(this);
|
103547
103590
|
this.browserUtils = browserUtils !== null && browserUtils !== void 0 ? browserUtils : { MacOSPlatform: browser.Browser.MacOSPlatform };
|
103548
103591
|
}
|
103549
|
-
get activeSubDocument() { return this.activeSubDocumentHolder.activeSubDocument; }
|
103550
|
-
get isDocumentOpened() { return this._isDocumentOpened; }
|
103551
103592
|
dispose() {
|
103552
103593
|
clearTimeout(this.formatterProcessID);
|
103553
103594
|
clearTimeout(this.unhideProcessID);
|
@@ -103855,12 +103896,6 @@ class RenderPageVertivalInfo {
|
|
103855
103896
|
}
|
103856
103897
|
}
|
103857
103898
|
class ViewSettings {
|
103858
|
-
constructor() {
|
103859
|
-
this.viewType = ViewType.PrintLayout;
|
103860
|
-
this.paddings = new margins/* Margins */.m(15, 15, 15, 15);
|
103861
|
-
this.pageVerticalInfo = new RenderPageVertivalInfo();
|
103862
|
-
this.showHorizontalRuler = true;
|
103863
|
-
}
|
103864
103899
|
get isFixedWidthMode() { return this.fixedWidth !== undefined && this.fixedWidth !== null; }
|
103865
103900
|
set widthOfPage(val) { this._widthOfPage = val; }
|
103866
103901
|
get widthOfPage() {
|
@@ -103871,6 +103906,12 @@ class ViewSettings {
|
|
103871
103906
|
}
|
103872
103907
|
get isSimpleView() { return this.viewType == ViewType.Simple; }
|
103873
103908
|
get isPrintLayoutView() { return this.viewType == ViewType.PrintLayout; }
|
103909
|
+
constructor() {
|
103910
|
+
this.viewType = ViewType.PrintLayout;
|
103911
|
+
this.paddings = new margins/* Margins */.m(15, 15, 15, 15);
|
103912
|
+
this.pageVerticalInfo = new RenderPageVertivalInfo();
|
103913
|
+
this.showHorizontalRuler = true;
|
103914
|
+
}
|
103874
103915
|
copyFrom(obj) {
|
103875
103916
|
this.paddings = new margins/* Margins */.m(obj.paddings.left, obj.paddings.right, obj.paddings.top, obj.paddings.bottom);
|
103876
103917
|
this.viewType = obj.viewType;
|
@@ -103960,10 +104001,10 @@ var helper_frame = __webpack_require__(1695);
|
|
103960
104001
|
|
103961
104002
|
|
103962
104003
|
class AutoCorrectProviderBase {
|
104004
|
+
get subDocument() { return this.control.selection.activeSubDocument; }
|
103963
104005
|
constructor(control) {
|
103964
104006
|
this.control = control;
|
103965
104007
|
}
|
103966
|
-
get subDocument() { return this.control.selection.activeSubDocument; }
|
103967
104008
|
revise() {
|
103968
104009
|
const pos = this.control.selection.lastSelectedInterval.start;
|
103969
104010
|
const lastInsertedChar = this.control.selection.activeSubDocument.getText(new fixed.FixedInterval(pos - 1, 1));
|
@@ -104471,12 +104512,12 @@ class SimpleViewCanvasSizeManager {
|
|
104471
104512
|
}
|
104472
104513
|
}
|
104473
104514
|
class DocumentRenderer {
|
104515
|
+
get cache() { return this.viewManager.cache; }
|
104474
104516
|
constructor(viewManager) {
|
104475
104517
|
this.viewManager = viewManager;
|
104476
104518
|
if (this.viewManager.innerClientProperties.viewsSettings.isSimpleView)
|
104477
104519
|
dom.DomUtils.addClassName(this.viewManager.canvas, RendererClassNames.SIMPLE_VIEW);
|
104478
104520
|
}
|
104479
|
-
get cache() { return this.viewManager.cache; }
|
104480
104521
|
onViewTypeChanged() {
|
104481
104522
|
switch (this.viewManager.innerClientProperties.viewsSettings.viewType) {
|
104482
104523
|
case ViewType.Simple:
|
@@ -107146,11 +107187,11 @@ AutoScrollListener.HALF_SIZE = 10;
|
|
107146
107187
|
;// CONCATENATED MODULE: ./src/common/mouse-handler/base/manipulator-handler-state-base.ts
|
107147
107188
|
|
107148
107189
|
class ManipulatorHandlerStateBase {
|
107190
|
+
start() { }
|
107191
|
+
finish() { }
|
107149
107192
|
constructor(handler) {
|
107150
107193
|
this.handler = handler;
|
107151
107194
|
}
|
107152
|
-
start() { }
|
107153
|
-
finish() { }
|
107154
107195
|
dispose() { }
|
107155
107196
|
resizeRotationChecker(action) {
|
107156
107197
|
const activeSubDocument = this.handler.control.selection.activeSubDocument;
|
@@ -109648,6 +109689,10 @@ var MouseButton;
|
|
109648
109689
|
MouseButton[MouseButton["Middle"] = 4] = "Middle";
|
109649
109690
|
})(MouseButton || (MouseButton = {}));
|
109650
109691
|
class EventManager {
|
109692
|
+
set mouseWheelEvent(val) {
|
109693
|
+
this.mouseHandler.mouseWheelEvent = val;
|
109694
|
+
this.touchHandler.mouseWheelEvent = val;
|
109695
|
+
}
|
109651
109696
|
constructor(control, boxVisualizerManager) {
|
109652
109697
|
this.moveLocked = false;
|
109653
109698
|
this.shouldPreventContextMenuEvent = true;
|
@@ -109659,10 +109704,6 @@ class EventManager {
|
|
109659
109704
|
this.touchHandler = new TouchHandler(control, boxVisualizerManager);
|
109660
109705
|
this.inputTypeHandlers = this.createInputTypeHandlers();
|
109661
109706
|
}
|
109662
|
-
set mouseWheelEvent(val) {
|
109663
|
-
this.mouseHandler.mouseWheelEvent = val;
|
109664
|
-
this.touchHandler.mouseWheelEvent = val;
|
109665
|
-
}
|
109666
109707
|
dispose() {
|
109667
109708
|
clearTimeout(this.accumulatedTextInsertId);
|
109668
109709
|
clearTimeout(this.lockMouseMoveTimerId);
|
@@ -109867,11 +109908,6 @@ class RichMouseEvent {
|
|
109867
109908
|
|
109868
109909
|
|
109869
109910
|
class ResizeBoxListener extends FrameBaseListener {
|
109870
|
-
constructor(rendererCache, stringResources, readOnlyPropertyHolder, fieldOptions) {
|
109871
|
-
super(rendererCache, stringResources, fieldOptions);
|
109872
|
-
this.readOnlyPropertyHolder = readOnlyPropertyHolder;
|
109873
|
-
this.initElement(false);
|
109874
|
-
}
|
109875
109911
|
baseFrameClassName() {
|
109876
109912
|
return FrameBaseListener.CLASSNAMES.CONTAINER;
|
109877
109913
|
}
|
@@ -109879,6 +109915,11 @@ class ResizeBoxListener extends FrameBaseListener {
|
|
109879
109915
|
return FrameBaseListener.CLASSNAMES.CORNER_ELEM_PREFIX +
|
109880
109916
|
(browser.Browser.TouchUI ? FrameBaseListener.CLASSNAMES.CORNER_TOUCH_POSTFIX : "");
|
109881
109917
|
}
|
109918
|
+
constructor(rendererCache, stringResources, readOnlyPropertyHolder, fieldOptions) {
|
109919
|
+
super(rendererCache, stringResources, fieldOptions);
|
109920
|
+
this.readOnlyPropertyHolder = readOnlyPropertyHolder;
|
109921
|
+
this.initElement(false);
|
109922
|
+
}
|
109882
109923
|
initElement(reinit) {
|
109883
109924
|
if (reinit)
|
109884
109925
|
this.initFrameElement();
|
@@ -109984,6 +110025,9 @@ const AUTOSCROLL_AREA_SIZE = 10;
|
|
109984
110025
|
const AUTOSCROLL_STEP = 10;
|
109985
110026
|
const MSTOUCH_MOVE_SENSITIVITY = 5;
|
109986
110027
|
class CanvasManager extends batch_updatable/* BatchUpdatableObject */.IS {
|
110028
|
+
get sizes() { return this.viewManager.sizes; }
|
110029
|
+
get scroll() { return this.viewManager.scroll; }
|
110030
|
+
get controlHeightProvider() { return this.sizes; }
|
109987
110031
|
constructor(viewManager, eventManager) {
|
109988
110032
|
super();
|
109989
110033
|
this.lastMousePosition = { x: -1, y: -1 };
|
@@ -110005,9 +110049,6 @@ class CanvasManager extends batch_updatable/* BatchUpdatableObject */.IS {
|
|
110005
110049
|
else
|
110006
110050
|
this.initMSPointerEvents();
|
110007
110051
|
}
|
110008
|
-
get sizes() { return this.viewManager.sizes; }
|
110009
|
-
get scroll() { return this.viewManager.scroll; }
|
110010
|
-
get controlHeightProvider() { return this.sizes; }
|
110011
110052
|
get canvas() {
|
110012
110053
|
return this.viewManager.canvas;
|
110013
110054
|
}
|
@@ -110417,14 +110458,14 @@ CanvasScrollInfo.VISIBLE_AREA_HEIGHT_MULTIPLIER = 2;
|
|
110417
110458
|
|
110418
110459
|
|
110419
110460
|
class CanvasScrollManager {
|
110461
|
+
get canvas() { return this.viewManager.canvas; }
|
110462
|
+
get sizes() { return this.viewManager.sizes; }
|
110420
110463
|
constructor(viewManager, horizontalRuler) {
|
110421
110464
|
this.updateScrollTimeoutId = null;
|
110422
110465
|
this.waitForDblClickTimeoutId = null;
|
110423
110466
|
this.viewManager = viewManager;
|
110424
110467
|
this.horizontalRuler = horizontalRuler;
|
110425
110468
|
}
|
110426
|
-
get canvas() { return this.viewManager.canvas; }
|
110427
|
-
get sizes() { return this.viewManager.sizes; }
|
110428
110469
|
dispose() {
|
110429
110470
|
clearTimeout(this.updateScrollTimeoutId);
|
110430
110471
|
clearTimeout(this.waitForDblClickTimeoutId);
|
@@ -110618,11 +110659,11 @@ PageVisibleInfoHelper.pageVisibleInfoElements = [];
|
|
110618
110659
|
;// CONCATENATED MODULE: ./src/common/canvas/renderes/canvas-listener/canvas-listener.ts
|
110619
110660
|
|
110620
110661
|
class CanvasListener {
|
110662
|
+
get layout() { return this.viewManager.layout; }
|
110621
110663
|
constructor(viewManager, renderer) {
|
110622
110664
|
this.viewManager = viewManager;
|
110623
110665
|
this.renderer = renderer;
|
110624
110666
|
}
|
110625
|
-
get layout() { return this.viewManager.layout; }
|
110626
110667
|
closeDocument() {
|
110627
110668
|
}
|
110628
110669
|
static mergeInnerPageChanges(pageChange) {
|
@@ -111255,16 +111296,6 @@ class TextBoxRenderer extends BaseRenderer {
|
|
111255
111296
|
|
111256
111297
|
|
111257
111298
|
class RendererManager {
|
111258
|
-
constructor(viewManager, stringResources) {
|
111259
|
-
this.viewManager = viewManager;
|
111260
|
-
this.renderers = [
|
111261
|
-
new FloatingPictureRenderer(this),
|
111262
|
-
new TextBoxRenderer(this),
|
111263
|
-
new HeaderFooterRenderer(this),
|
111264
|
-
new MainRenderer(this),
|
111265
|
-
new HeaderFooterLabelsRenderer(this, stringResources.headerFooter),
|
111266
|
-
];
|
111267
|
-
}
|
111268
111299
|
get cache() { return this.viewManager.cache; }
|
111269
111300
|
;
|
111270
111301
|
get canvas() { return this.viewManager.canvas; }
|
@@ -111275,6 +111306,16 @@ class RendererManager {
|
|
111275
111306
|
;
|
111276
111307
|
get canvasScrollManager() { return this.viewManager.canvasScrollManager; }
|
111277
111308
|
;
|
111309
|
+
constructor(viewManager, stringResources) {
|
111310
|
+
this.viewManager = viewManager;
|
111311
|
+
this.renderers = [
|
111312
|
+
new FloatingPictureRenderer(this),
|
111313
|
+
new TextBoxRenderer(this),
|
111314
|
+
new HeaderFooterRenderer(this),
|
111315
|
+
new MainRenderer(this),
|
111316
|
+
new HeaderFooterLabelsRenderer(this, stringResources.headerFooter),
|
111317
|
+
];
|
111318
|
+
}
|
111278
111319
|
init() {
|
111279
111320
|
for (let r of this.renderers)
|
111280
111321
|
r.init();
|
@@ -111837,6 +111878,9 @@ class SelectionRenderer extends SelectionRendererBase {
|
|
111837
111878
|
|
111838
111879
|
|
111839
111880
|
class ViewManager {
|
111881
|
+
get renderer() { return this.renderers[this.innerClientProperties.viewsSettings.viewType]; }
|
111882
|
+
get printLayoutRenderer() { return this.renderers[ViewType.PrintLayout]; }
|
111883
|
+
get canvasListener() { return this.canvasListeners[this.innerClientProperties.viewsSettings.viewType]; }
|
111840
111884
|
constructor(control, canvas, eventManager, stringResources, horizontalRuler, inputController, innerClientProperties, readOnlyPropertyHolder, layoutFormatterManagerHolder, internalApi, fieldOptions) {
|
111841
111885
|
this.cache = [];
|
111842
111886
|
this.sizes = new CanvasSizeInfo();
|
@@ -111868,9 +111912,6 @@ class ViewManager {
|
|
111868
111912
|
this.rangePermission = new RangePermissionRenderer(this.cache, layoutSelection);
|
111869
111913
|
this.changeActiveSubDocumentRenderer = new RendererManager(this, stringResources);
|
111870
111914
|
}
|
111871
|
-
get renderer() { return this.renderers[this.innerClientProperties.viewsSettings.viewType]; }
|
111872
|
-
get printLayoutRenderer() { return this.renderers[ViewType.PrintLayout]; }
|
111873
|
-
get canvasListener() { return this.canvasListeners[this.innerClientProperties.viewsSettings.viewType]; }
|
111874
111915
|
dispose() {
|
111875
111916
|
this.canvasManager.dispose();
|
111876
111917
|
this.canvasScrollManager.dispose();
|
@@ -112037,6 +112078,9 @@ class ClientSideEvents {
|
|
112037
112078
|
raiseLostFocus() {
|
112038
112079
|
this.owner.raiseLostFocus();
|
112039
112080
|
}
|
112081
|
+
raiseHorizontalRulerVisibleChanged(horizontalRulerVisible) {
|
112082
|
+
this.owner.raiseHorizontalRulerVisibleChanged(horizontalRulerVisible);
|
112083
|
+
}
|
112040
112084
|
}
|
112041
112085
|
|
112042
112086
|
;// CONCATENATED MODULE: ./src/common/commands/fields/field-command-helper.ts
|
@@ -113399,6 +113443,7 @@ var SimpleSelectionLayoutType;
|
|
113399
113443
|
SimpleSelectionLayoutType[SimpleSelectionLayoutType["RangePermission"] = 2] = "RangePermission";
|
113400
113444
|
})(SimpleSelectionLayoutType || (SimpleSelectionLayoutType = {}));
|
113401
113445
|
class SelectionFormatter extends batch_updatable/* BatchUpdatableObject */.IS {
|
113446
|
+
get highlightRanges() { return this.documentProtectionSettings.highlightRanges; }
|
113402
113447
|
constructor(selection, measurer, layoutSelection, documentProtectionSettings) {
|
113403
113448
|
super();
|
113404
113449
|
this.onSelectionLayoutChanged = new EventDispatcher();
|
@@ -113407,7 +113452,6 @@ class SelectionFormatter extends batch_updatable/* BatchUpdatableObject */.IS {
|
|
113407
113452
|
this.layoutSelection = layoutSelection;
|
113408
113453
|
this.documentProtectionSettings = documentProtectionSettings;
|
113409
113454
|
}
|
113410
|
-
get highlightRanges() { return this.documentProtectionSettings.highlightRanges; }
|
113411
113455
|
modelChanged(change) {
|
113412
113456
|
if (change.type == ModelChangeType.RangePermissionsPropertiesChanged)
|
113413
113457
|
this.onRangePermissionPropertiesChanged();
|
@@ -113840,13 +113884,13 @@ class SelectedCellsCollector {
|
|
113840
113884
|
|
113841
113885
|
|
113842
113886
|
class AnchorListener extends FrameBaseListener {
|
113887
|
+
baseFrameClassName() {
|
113888
|
+
return RendererClassNames.ANCHOR;
|
113889
|
+
}
|
113843
113890
|
constructor(rendererCache, stringResources, readOnlyPropertyHolder, fieldOptions) {
|
113844
113891
|
super(rendererCache, stringResources, fieldOptions);
|
113845
113892
|
this.readOnlyPropertyHolder = readOnlyPropertyHolder;
|
113846
113893
|
}
|
113847
|
-
baseFrameClassName() {
|
113848
|
-
return RendererClassNames.ANCHOR;
|
113849
|
-
}
|
113850
113894
|
NotifyShow(pageIndex, bounds, tip, isTextBox, isAnchoredObject, rotation) {
|
113851
113895
|
if (this.readOnlyPropertyHolder.isReadOnlyPersistent)
|
113852
113896
|
super.NotifyHide();
|
@@ -114424,6 +114468,7 @@ class RulerSpriteInfo {
|
|
114424
114468
|
|
114425
114469
|
;// CONCATENATED MODULE: ./src/common/ui/ruler/controls/owner.ts
|
114426
114470
|
class RulerMultiControl {
|
114471
|
+
get activeSubControl() { return this.subControls[this.handleControlIndex]; }
|
114427
114472
|
constructor(modelData, controls) {
|
114428
114473
|
this.subControls = [];
|
114429
114474
|
this.handleControlIndex = -1;
|
@@ -114431,7 +114476,6 @@ class RulerMultiControl {
|
|
114431
114476
|
this.modelData = modelData;
|
114432
114477
|
this.controls = controls;
|
114433
114478
|
}
|
114434
|
-
get activeSubControl() { return this.subControls[this.handleControlIndex]; }
|
114435
114479
|
dispose() {
|
114436
114480
|
for (let elem of this.subControls)
|
114437
114481
|
elem.dispose();
|
@@ -114564,12 +114608,12 @@ var ColumnAction;
|
|
114564
114608
|
ColumnAction[ColumnAction["ColumnWidth"] = 3] = "ColumnWidth";
|
114565
114609
|
})(ColumnAction || (ColumnAction = {}));
|
114566
114610
|
class RulerColumnModelState {
|
114611
|
+
get rightPos() { return this.leftPos + this.width; }
|
114567
114612
|
constructor(leftPos, width, space) {
|
114568
114613
|
this.leftPos = leftPos;
|
114569
114614
|
this.width = width;
|
114570
114615
|
this.space = space;
|
114571
114616
|
}
|
114572
|
-
get rightPos() { return this.leftPos + this.width; }
|
114573
114617
|
clone() {
|
114574
114618
|
return new RulerColumnModelState(this.leftPos, this.width, this.space);
|
114575
114619
|
}
|
@@ -114794,13 +114838,13 @@ class RulerModelState {
|
|
114794
114838
|
}
|
114795
114839
|
}
|
114796
114840
|
class RulerBase {
|
114841
|
+
get visible() { return this._visible; }
|
114797
114842
|
constructor(modelData, controls) {
|
114798
114843
|
this._visible = true;
|
114799
114844
|
this.modelData = modelData;
|
114800
114845
|
this.controls = controls;
|
114801
114846
|
this.rootElement = DocumentRenderer.renderContainer(this.getRootClassName());
|
114802
114847
|
}
|
114803
|
-
get visible() { return this._visible; }
|
114804
114848
|
dispose() {
|
114805
114849
|
dom.DomUtils.hideNode(this.rootElement);
|
114806
114850
|
this.rootElement = null;
|
@@ -114829,6 +114873,7 @@ const DIVISION_MINOR_CLASS_NAME = RULER_CLASS_NAME + "Minor" + DIVISION_CLASS_NA
|
|
114829
114873
|
const DIVISION_MAJOR_CLASS_NAME = RULER_CLASS_NAME + "Major" + DIVISION_CLASS_NAME;
|
114830
114874
|
const DIVISION_NUMBER_CLASS_NAME = RULER_CLASS_NAME + "Number" + DIVISION_CLASS_NAME;
|
114831
114875
|
class RulerDivisionsControl extends RulerBase {
|
114876
|
+
getRootClassName() { return DIVISION_CONTAINER_CLASS_NAME; }
|
114832
114877
|
constructor(modelData, controls, divisionInfo, maxPageWidth) {
|
114833
114878
|
super(modelData, controls);
|
114834
114879
|
this.height = 0;
|
@@ -114841,7 +114886,6 @@ class RulerDivisionsControl extends RulerBase {
|
|
114841
114886
|
createDivisionElements(this.rootElement, unitCount, divisionInfo, this.height);
|
114842
114887
|
this.initialLeft = -(unitCount * divisionInfo.unitSize - RULLER_NUMBER_CORRECTION);
|
114843
114888
|
}
|
114844
|
-
getRootClassName() { return DIVISION_CONTAINER_CLASS_NAME; }
|
114845
114889
|
update() {
|
114846
114890
|
this.updateModelState();
|
114847
114891
|
this.updateView();
|
@@ -115089,6 +115133,11 @@ class RulerBaseIndentControl extends RulerBase {
|
|
115089
115133
|
|
115090
115134
|
|
115091
115135
|
class RulerFirstLineIndentDragHandle extends RulerBaseIndentControl {
|
115136
|
+
get heightOfProtrudingPart() { return this.modelData.settings.showLeftIndent ? this._heightOfProtrudingPart : 0; }
|
115137
|
+
getRootClassName() {
|
115138
|
+
return this.modelData.settings.styles.firstLineIndentImage.spriteCssClass + " " +
|
115139
|
+
this.modelData.settings.styles.firstLineIndent.className;
|
115140
|
+
}
|
115092
115141
|
constructor(modelData, controls) {
|
115093
115142
|
super(modelData, controls);
|
115094
115143
|
const template = RulerTemplateManager.getFirstLineIndentElementTemplate();
|
@@ -115100,11 +115149,6 @@ class RulerFirstLineIndentDragHandle extends RulerBaseIndentControl {
|
|
115100
115149
|
this.leftCorrection = Math.round(SizeUtils.getOffsetWidth(this.rootElement) / 2);
|
115101
115150
|
this._heightOfProtrudingPart = SizeUtils.getOffsetHeight(this.rootElement) - this.controls.divisions.height / 2;
|
115102
115151
|
}
|
115103
|
-
get heightOfProtrudingPart() { return this.modelData.settings.showLeftIndent ? this._heightOfProtrudingPart : 0; }
|
115104
|
-
getRootClassName() {
|
115105
|
-
return this.modelData.settings.styles.firstLineIndentImage.spriteCssClass + " " +
|
115106
|
-
this.modelData.settings.styles.firstLineIndent.className;
|
115107
|
-
}
|
115108
115152
|
adjustByTop() {
|
115109
115153
|
const mainElementHeight = SizeUtils.getOffsetHeight(this.rootElement);
|
115110
115154
|
const divisionsControlHeight = this.controls.divisions.height;
|
@@ -115151,6 +115195,8 @@ class RulerFirstLineIndentDragHandle extends RulerBaseIndentControl {
|
|
115151
115195
|
|
115152
115196
|
const LEFT_INDENT_DRAG_HANDLE_BODY = RICH_EDIT_CLASS_NAME_PREFIX + "leftIndentDragHandleBody";
|
115153
115197
|
class RulerLeftIndentDragHandle extends RulerBaseIndentControl {
|
115198
|
+
get heightOfProtrudingPart() { return this.modelData.settings.showLeftIndent ? this._heightOfProtrudingPart : 0; }
|
115199
|
+
getRootClassName() { return this.modelData.settings.styles.leftIndent.className; }
|
115154
115200
|
constructor(modelData, controls) {
|
115155
115201
|
super(modelData, controls);
|
115156
115202
|
this.isActionLeftIndent = false;
|
@@ -115177,8 +115223,6 @@ class RulerLeftIndentDragHandle extends RulerBaseIndentControl {
|
|
115177
115223
|
this.leftCorrection = Math.round(SizeUtils.getOffsetWidth(this.rootElement) / 2);
|
115178
115224
|
this._heightOfProtrudingPart = SizeUtils.getOffsetHeight(this.rootElement) - this.controls.divisions.height / 2;
|
115179
115225
|
}
|
115180
|
-
get heightOfProtrudingPart() { return this.modelData.settings.showLeftIndent ? this._heightOfProtrudingPart : 0; }
|
115181
|
-
getRootClassName() { return this.modelData.settings.styles.leftIndent.className; }
|
115182
115226
|
adjustByTop() {
|
115183
115227
|
const mainElementHeight = SizeUtils.getOffsetHeight(this.rootElement);
|
115184
115228
|
const divisionsControlHeight = this.controls.divisions.height;
|
@@ -115253,6 +115297,11 @@ class RulerLeftIndentDragHandle extends RulerBaseIndentControl {
|
|
115253
115297
|
|
115254
115298
|
const RulerMinDistanceBetweenIndentsOnView = 5;
|
115255
115299
|
class RulerRightIndentDragHandle extends RulerBaseIndentControl {
|
115300
|
+
get viewStateRelativeLeft() { return this.controls.ruler.pageWidth - this.viewState; }
|
115301
|
+
getRootClassName() {
|
115302
|
+
return this.modelData.settings.styles.rightIndentImage.spriteCssClass + " " +
|
115303
|
+
this.modelData.settings.styles.rightIndent.className;
|
115304
|
+
}
|
115256
115305
|
constructor(modelData, controls) {
|
115257
115306
|
super(modelData, controls);
|
115258
115307
|
const template = RulerTemplateManager.getRightIndentElementTemplate();
|
@@ -115263,11 +115312,6 @@ class RulerRightIndentDragHandle extends RulerBaseIndentControl {
|
|
115263
115312
|
this.adjustByTop();
|
115264
115313
|
this.leftCorrection = Math.round(this.rootElement.offsetWidth / 2);
|
115265
115314
|
}
|
115266
|
-
get viewStateRelativeLeft() { return this.controls.ruler.pageWidth - this.viewState; }
|
115267
|
-
getRootClassName() {
|
115268
|
-
return this.modelData.settings.styles.rightIndentImage.spriteCssClass + " " +
|
115269
|
-
this.modelData.settings.styles.rightIndent.className;
|
115270
|
-
}
|
115271
115315
|
adjustByTop() {
|
115272
115316
|
const divisionsControlHeight = this.controls.divisions.height;
|
115273
115317
|
this.rootElement.style.marginTop = divisionsControlHeight / 2 + "px";
|
@@ -115374,6 +115418,9 @@ const left_RulerMinDistanceBetweenMargins = 50;
|
|
115374
115418
|
const DIVISION_MARGIN_LEFT_CURSOR_CLASS_NAME = RULER_CLASS_NAME + "MarginLeftHandlePanel";
|
115375
115419
|
const DIVISION_MARGIN_LEFT_CLASS_NAME = RULER_CLASS_NAME + "MarginLeftPanel";
|
115376
115420
|
class RulerLeftMarginDragHandle extends RulerBaseMarginControl {
|
115421
|
+
getRootClassName() { return ''; }
|
115422
|
+
;
|
115423
|
+
get commandType() { return RichEditClientCommand.RulerSectionMarginLeft; }
|
115377
115424
|
constructor(modelData, controls, maxPageWidth) {
|
115378
115425
|
super(modelData, controls);
|
115379
115426
|
this.initialLeft = -(Math.ceil(maxPageWidth) - RULLER_NUMBER_CORRECTION);
|
@@ -115385,9 +115432,6 @@ class RulerLeftMarginDragHandle extends RulerBaseMarginControl {
|
|
115385
115432
|
this.controls.ruler.rootElement.appendChild(this.marginPanelElement);
|
115386
115433
|
this.controls.ruler.rootElement.appendChild(this.handlePanelElement);
|
115387
115434
|
}
|
115388
|
-
getRootClassName() { return ''; }
|
115389
|
-
;
|
115390
|
-
get commandType() { return RichEditClientCommand.RulerSectionMarginLeft; }
|
115391
115435
|
setViewStateToElement(element) {
|
115392
115436
|
element.style.left = this.viewState + this.initialLeft + "px";
|
115393
115437
|
}
|
@@ -115465,6 +115509,10 @@ var touch = __webpack_require__(1632);
|
|
115465
115509
|
|
115466
115510
|
|
115467
115511
|
class RulerControl extends RulerBase {
|
115512
|
+
getRootClassName() { return this.modelData.settings.styles.control.className; }
|
115513
|
+
;
|
115514
|
+
get pageWidth() { return this.currPageWidth; }
|
115515
|
+
;
|
115468
115516
|
constructor(modelData, controls) {
|
115469
115517
|
super(modelData, controls);
|
115470
115518
|
this.canHandleScroll = false;
|
@@ -115476,10 +115524,6 @@ class RulerControl extends RulerBase {
|
|
115476
115524
|
dom.DomUtils.addClassName(this.rootElement, touch.TouchUtils.msTouchDraggableClassName);
|
115477
115525
|
this.controls.wrapper.rootElement.appendChild(this.rootElement);
|
115478
115526
|
}
|
115479
|
-
getRootClassName() { return this.modelData.settings.styles.control.className; }
|
115480
|
-
;
|
115481
|
-
get pageWidth() { return this.currPageWidth; }
|
115482
|
-
;
|
115483
115527
|
init() {
|
115484
115528
|
this.rootElement.style.height = this.controls.divisions.height + "px";
|
115485
115529
|
this.setPaddings();
|
@@ -115840,6 +115884,8 @@ class RulerTabControl {
|
|
115840
115884
|
|
115841
115885
|
const TAB_ALIGN_BOX_PART_HANDLE_CLASS_NAME = RICH_EDIT_CLASS_NAME_PREFIX + "rulertabAlignBox";
|
115842
115886
|
class RulerTabTypeControl extends RulerBase {
|
115887
|
+
getRootClassName() { return TAB_ALIGN_BOX_PART_HANDLE_CLASS_NAME; }
|
115888
|
+
;
|
115843
115889
|
constructor(modelData, controls) {
|
115844
115890
|
super(modelData, controls);
|
115845
115891
|
this.evtHandlersHolder = new event_handlers_holder/* DomEventHandlersHolder */.$();
|
@@ -115852,8 +115898,6 @@ class RulerTabTypeControl extends RulerBase {
|
|
115852
115898
|
this.controls.wrapper.rootElement.appendChild(this.rootElement);
|
115853
115899
|
this.evtHandlersHolder.addListener(this.innerSquareElement, touch.TouchUtils.touchMouseDownEventName, this.onMouseDown.bind(this));
|
115854
115900
|
}
|
115855
|
-
getRootClassName() { return TAB_ALIGN_BOX_PART_HANDLE_CLASS_NAME; }
|
115856
|
-
;
|
115857
115901
|
init() {
|
115858
115902
|
this.adjust();
|
115859
115903
|
}
|
@@ -115920,6 +115964,12 @@ class ParentLinkTableCell {
|
|
115920
115964
|
}
|
115921
115965
|
}
|
115922
115966
|
class TableCellIterator {
|
115967
|
+
get tableCellInfo() {
|
115968
|
+
return this.tableCellInfoInternal;
|
115969
|
+
}
|
115970
|
+
get isInTable() {
|
115971
|
+
return this.layoutRowIndexInCell > -1;
|
115972
|
+
}
|
115923
115973
|
constructor(position, layout, measurer) {
|
115924
115974
|
this.tableIndex = -1;
|
115925
115975
|
this.tableRowIndex = -1;
|
@@ -115944,12 +115994,6 @@ class TableCellIterator {
|
|
115944
115994
|
}
|
115945
115995
|
}
|
115946
115996
|
}
|
115947
|
-
get tableCellInfo() {
|
115948
|
-
return this.tableCellInfoInternal;
|
115949
|
-
}
|
115950
|
-
get isInTable() {
|
115951
|
-
return this.layoutRowIndexInCell > -1;
|
115952
|
-
}
|
115953
115997
|
readTables(tables, parentCell = null, layountIndex = -1) {
|
115954
115998
|
for (let tableIndex = 0, table; table = tables[tableIndex]; tableIndex++) {
|
115955
115999
|
for (let rowIndex = 0, row; row = table.tableRows[rowIndex]; rowIndex++) {
|
@@ -116861,6 +116905,24 @@ class RulerMouseHandler {
|
|
116861
116905
|
|
116862
116906
|
|
116863
116907
|
class RulerControls {
|
116908
|
+
get paragraphLeftPosition() {
|
116909
|
+
let pos = this.leftMargin.currModelState.modelValue + this.columns.currModelState.activeColumn.leftPos;
|
116910
|
+
if (this.tables.currModelState.columnSeparators.hasItems) {
|
116911
|
+
const item = this.tables.currModelState.columnSeparators.currItem;
|
116912
|
+
pos += this.tables.currModelState.columnSeparators.cellSpacing + item.leftMargin + item.position;
|
116913
|
+
}
|
116914
|
+
return pos;
|
116915
|
+
}
|
116916
|
+
get paragraphRightPosition() {
|
116917
|
+
const colSeps = this.tables.currModelState.columnSeparators;
|
116918
|
+
if (colSeps.hasItems) {
|
116919
|
+
const nextSeparatorItem = colSeps.items[colSeps.index + 1];
|
116920
|
+
return this.leftMargin.currModelState.modelValue + this.columns.currModelState.activeColumn.leftPos +
|
116921
|
+
(nextSeparatorItem.position - colSeps.cellSpacing - colSeps.currItem.rightMargin);
|
116922
|
+
}
|
116923
|
+
else
|
116924
|
+
return this.leftMargin.currModelState.modelValue + this.columns.currModelState.activeColumn.rightPos;
|
116925
|
+
}
|
116864
116926
|
constructor(canvas, modelData) {
|
116865
116927
|
this.mouseEventsManager = new RulerMouseEventsManager();
|
116866
116928
|
this.viewElementScrollManager = new RulerViewElementScrollManager();
|
@@ -116887,24 +116949,6 @@ class RulerControls {
|
|
116887
116949
|
this.mouseEventsManager.addListener(this.mouseHandler);
|
116888
116950
|
this.viewElementScrollManager.addListener(this.ruler, this.canvas);
|
116889
116951
|
}
|
116890
|
-
get paragraphLeftPosition() {
|
116891
|
-
let pos = this.leftMargin.currModelState.modelValue + this.columns.currModelState.activeColumn.leftPos;
|
116892
|
-
if (this.tables.currModelState.columnSeparators.hasItems) {
|
116893
|
-
const item = this.tables.currModelState.columnSeparators.currItem;
|
116894
|
-
pos += this.tables.currModelState.columnSeparators.cellSpacing + item.leftMargin + item.position;
|
116895
|
-
}
|
116896
|
-
return pos;
|
116897
|
-
}
|
116898
|
-
get paragraphRightPosition() {
|
116899
|
-
const colSeps = this.tables.currModelState.columnSeparators;
|
116900
|
-
if (colSeps.hasItems) {
|
116901
|
-
const nextSeparatorItem = colSeps.items[colSeps.index + 1];
|
116902
|
-
return this.leftMargin.currModelState.modelValue + this.columns.currModelState.activeColumn.leftPos +
|
116903
|
-
(nextSeparatorItem.position - colSeps.cellSpacing - colSeps.currItem.rightMargin);
|
116904
|
-
}
|
116905
|
-
else
|
116906
|
-
return this.leftMargin.currModelState.modelValue + this.columns.currModelState.activeColumn.rightPos;
|
116907
|
-
}
|
116908
116952
|
dispose() {
|
116909
116953
|
this.lineControl.dispose();
|
116910
116954
|
this.wrapper.dispose();
|
@@ -116973,10 +117017,6 @@ class RulerControls {
|
|
116973
117017
|
|
116974
117018
|
|
116975
117019
|
class RulerModelData {
|
116976
|
-
constructor(core, settings) {
|
116977
|
-
this.core = core;
|
116978
|
-
this.settings = this.fixSettings(settings);
|
116979
|
-
}
|
116980
117020
|
get inputPosition() { return this.core.inputPosition; }
|
116981
117021
|
;
|
116982
117022
|
get commandManager() { return this.core.commandManager; }
|
@@ -116985,6 +117025,10 @@ class RulerModelData {
|
|
116985
117025
|
get isReadOnly() { return this.core.readOnly != ReadOnlyMode.None; }
|
116986
117026
|
get unitType() { return this.core.uiUnitConverter.getUnits(); }
|
116987
117027
|
get selection() { return this.core.selection; }
|
117028
|
+
constructor(core, settings) {
|
117029
|
+
this.core = core;
|
117030
|
+
this.settings = this.fixSettings(settings);
|
117031
|
+
}
|
116988
117032
|
fixSettings(settings) {
|
116989
117033
|
if (!settings.styles.firstLineIndent)
|
116990
117034
|
settings.styles.firstLineIndent = this.getDefaultStyle('dxreFirstLineIndentDragHandle');
|
@@ -117023,6 +117067,8 @@ var HorizontalRulerEventType;
|
|
117023
117067
|
HorizontalRulerEventType[HorizontalRulerEventType["CheckSelectionChange"] = 2] = "CheckSelectionChange";
|
117024
117068
|
})(HorizontalRulerEventType || (HorizontalRulerEventType = {}));
|
117025
117069
|
class HorizontalRulerControl extends batch_updatable/* BatchUpdatableObject */.IS {
|
117070
|
+
get initialized() { return !!this.controls; }
|
117071
|
+
;
|
117026
117072
|
constructor(core, settings, canvas) {
|
117027
117073
|
super();
|
117028
117074
|
this.controls = null;
|
@@ -117034,8 +117080,6 @@ class HorizontalRulerControl extends batch_updatable/* BatchUpdatableObject */.I
|
|
117034
117080
|
this.modelData = new RulerModelData(core, settings);
|
117035
117081
|
this.canvas = canvas;
|
117036
117082
|
}
|
117037
|
-
get initialized() { return !!this.controls; }
|
117038
|
-
;
|
117039
117083
|
dispose() {
|
117040
117084
|
if (this.initialized)
|
117041
117085
|
this.controls.dispose();
|
@@ -117435,6 +117479,11 @@ class SearchManager {
|
|
117435
117479
|
|
117436
117480
|
|
117437
117481
|
class RichEditCore {
|
117482
|
+
get isReadOnlyPersistent() { return this.readOnly == ReadOnlyMode.Persistent; }
|
117483
|
+
get model() { return this.modelManager.model; }
|
117484
|
+
get isDisposed() {
|
117485
|
+
return this._isDisposed;
|
117486
|
+
}
|
117438
117487
|
constructor(owner, name, element, clientGuid, readOnly, barHolder, unitsType, rulerSettings, richOptions, viewsSettings, stringResources) {
|
117439
117488
|
this.isLoadingPictureFromClipboard = false;
|
117440
117489
|
this.readOnly = ReadOnlyMode.None;
|
@@ -117483,11 +117532,6 @@ class RichEditCore {
|
|
117483
117532
|
this.invalidateLayoutAfterFontsLoaded();
|
117484
117533
|
});
|
117485
117534
|
}
|
117486
|
-
get isReadOnlyPersistent() { return this.readOnly == ReadOnlyMode.Persistent; }
|
117487
|
-
get model() { return this.modelManager.model; }
|
117488
|
-
get isDisposed() {
|
117489
|
-
return this._isDisposed;
|
117490
|
-
}
|
117491
117535
|
beforeInitialization(_options) { }
|
117492
117536
|
registerActiveContextTabManager() { }
|
117493
117537
|
registerFontChangesListeners() { }
|
@@ -117799,12 +117843,6 @@ class RichEditCore {
|
|
117799
117843
|
}
|
117800
117844
|
}
|
117801
117845
|
class DocumentInfo {
|
117802
|
-
constructor(fileName, documentHasSource, documentFormat = DocumentInfo.defaultDocumentFormat, documentExtension = FileNameHelper.convertToString(documentFormat)) {
|
117803
|
-
this._fileName = fileName;
|
117804
|
-
this._documentFormat = documentFormat;
|
117805
|
-
this._documentExtension = documentExtension;
|
117806
|
-
this.documentHasSource = documentHasSource;
|
117807
|
-
}
|
117808
117846
|
get fileName() { return this._fileName; }
|
117809
117847
|
set fileName(val) { this._fileName = val; }
|
117810
117848
|
get documentFormat() { return this._documentFormat; }
|
@@ -117816,6 +117854,12 @@ class DocumentInfo {
|
|
117816
117854
|
this._documentExtension = FileNameHelper.convertToString(val);
|
117817
117855
|
}
|
117818
117856
|
get documentExtension() { return this._documentExtension; }
|
117857
|
+
constructor(fileName, documentHasSource, documentFormat = DocumentInfo.defaultDocumentFormat, documentExtension = FileNameHelper.convertToString(documentFormat)) {
|
117858
|
+
this._fileName = fileName;
|
117859
|
+
this._documentFormat = documentFormat;
|
117860
|
+
this._documentExtension = documentExtension;
|
117861
|
+
this.documentHasSource = documentHasSource;
|
117862
|
+
}
|
117819
117863
|
getFileNameForDownload(fileName) {
|
117820
117864
|
if (!utils_string.StringUtils.isNullOrEmpty(fileName))
|
117821
117865
|
return fileName;
|
@@ -117864,8 +117908,10 @@ class AutoCorrectReplaceInfo {
|
|
117864
117908
|
|
117865
117909
|
|
117866
117910
|
class FieldsSettings {
|
117911
|
+
;
|
117867
117912
|
constructor() {
|
117868
117913
|
this.openHyperlinkOnClick = false;
|
117914
|
+
this.disableRelativeHyperlinkUri = false;
|
117869
117915
|
this.updateFieldsBeforePrint = true;
|
117870
117916
|
this.updateFieldsOnPaste = true;
|
117871
117917
|
this.defaultTimeFormat = FieldsSettings.DEFAULT_TIME_FORMAT;
|
@@ -117876,7 +117922,6 @@ class FieldsSettings {
|
|
117876
117922
|
return `${hyperlinkTooltip}${hint}`;
|
117877
117923
|
};
|
117878
117924
|
}
|
117879
|
-
;
|
117880
117925
|
copyFrom(obj) {
|
117881
117926
|
if ((0,common.isDefined)(obj.updateFieldsBeforePrint))
|
117882
117927
|
this.updateFieldsBeforePrint = obj.updateFieldsBeforePrint;
|
@@ -117890,9 +117935,12 @@ class FieldsSettings {
|
|
117890
117935
|
this.openHyperlinkOnClick = obj.openHyperlinkOnClick;
|
117891
117936
|
if ((0,common.isDefined)(obj.keepHyperlinkResultForInvalidReference))
|
117892
117937
|
this.keepHyperlinkResultForInvalidReference = obj.keepHyperlinkResultForInvalidReference;
|
117893
|
-
if ((0,common.isDefined)(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '')
|
117938
|
+
if ((0,common.isDefined)(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '')
|
117894
117939
|
this.createHyperlinkTooltip = (0,utils/* convertToFunction */.tm)(obj.createHyperlinkTooltip);
|
117895
|
-
|
117940
|
+
if ((0,common.isDefined)(obj.disableRelativeHyperlinkUri))
|
117941
|
+
this.disableRelativeHyperlinkUri = obj.disableRelativeHyperlinkUri;
|
117942
|
+
if ((0,common.isDefined)(obj.allowedHyperlinkUriProtocols))
|
117943
|
+
this.allowedHyperlinkUriProtocols = obj.allowedHyperlinkUriProtocols;
|
117896
117944
|
}
|
117897
117945
|
clone() {
|
117898
117946
|
const result = new FieldsSettings();
|
@@ -118118,6 +118166,9 @@ class SpellCheckerSettings {
|
|
118118
118166
|
|
118119
118167
|
|
118120
118168
|
class RichOptions {
|
118169
|
+
get maxSpellRequestLength() {
|
118170
|
+
return this.spellChecker.maxRequestLength;
|
118171
|
+
}
|
118121
118172
|
constructor(cultureOpts) {
|
118122
118173
|
this.control = new ControlOptions();
|
118123
118174
|
this.mailMerge = new MailMergeOptions();
|
@@ -118132,9 +118183,6 @@ class RichOptions {
|
|
118132
118183
|
this.fonts = new FontsSettings();
|
118133
118184
|
this.cultureOpts = cultureOpts;
|
118134
118185
|
}
|
118135
|
-
get maxSpellRequestLength() {
|
118136
|
-
return this.spellChecker.maxRequestLength;
|
118137
|
-
}
|
118138
118186
|
clone() {
|
118139
118187
|
const result = new RichOptions(this.cultureOpts);
|
118140
118188
|
result.control = this.control.clone();
|
@@ -118623,13 +118671,13 @@ var RibbonTabType;
|
|
118623
118671
|
RibbonTabType[RibbonTabType["FloatingObjectsFormat"] = 10] = "FloatingObjectsFormat";
|
118624
118672
|
})(RibbonTabType || (RibbonTabType = {}));
|
118625
118673
|
class RibbonTab {
|
118674
|
+
get contextTab() { return false; }
|
118626
118675
|
constructor(title, id, items = [], localizationId) {
|
118627
118676
|
this.id = id;
|
118628
118677
|
this.items = items;
|
118629
118678
|
this.title = title;
|
118630
118679
|
this.localizationId = localizationId;
|
118631
118680
|
}
|
118632
|
-
get contextTab() { return false; }
|
118633
118681
|
removeItem(id) {
|
118634
118682
|
this.forEachItem(id instanceof RibbonItemBase ?
|
118635
118683
|
(item, index, parent) => {
|
@@ -118672,11 +118720,11 @@ class RibbonTab {
|
|
118672
118720
|
}
|
118673
118721
|
}
|
118674
118722
|
class RibbonContextTab extends RibbonTab {
|
118723
|
+
get contextTab() { return true; }
|
118675
118724
|
constructor(title, id, category, items, localizationId) {
|
118676
118725
|
super(title, id, items, localizationId);
|
118677
118726
|
this.category = category;
|
118678
118727
|
}
|
118679
|
-
get contextTab() { return true; }
|
118680
118728
|
}
|
118681
118729
|
class RibbonSearchItemResult {
|
118682
118730
|
constructor(parent, item, itemIndex) {
|
@@ -119085,12 +119133,12 @@ var external_DevExpress_ui_dxContextMenu_default = /*#__PURE__*/__webpack_requir
|
|
119085
119133
|
|
119086
119134
|
|
119087
119135
|
class BarBase extends batch_updatable/* BatchUpdatableObject */.IS {
|
119136
|
+
get isInitialized() { return !!this.core; }
|
119088
119137
|
constructor(owner) {
|
119089
119138
|
super();
|
119090
119139
|
this.updateEnabled = true;
|
119091
119140
|
this.owner = owner;
|
119092
119141
|
}
|
119093
|
-
get isInitialized() { return !!this.core; }
|
119094
119142
|
initialize(core) {
|
119095
119143
|
this.core = core;
|
119096
119144
|
}
|
@@ -119688,13 +119736,13 @@ function insertItemAfter(items, item, targetAfter) {
|
|
119688
119736
|
|
119689
119737
|
|
119690
119738
|
class ContextMenuRuntime {
|
119691
|
-
constructor(native) {
|
119692
|
-
this._native = native;
|
119693
|
-
}
|
119694
119739
|
get enabled() { return this._native.contextMenuSettings.enabled; }
|
119695
119740
|
set enabled(value) { this._native.contextMenuSettings.enabled = value; }
|
119696
119741
|
get items() { return this._native.barHolder.contextMenu.initialItems; }
|
119697
119742
|
;
|
119743
|
+
constructor(native) {
|
119744
|
+
this._native = native;
|
119745
|
+
}
|
119698
119746
|
getItem(id) {
|
119699
119747
|
return getContextMenuItem(this.items, id);
|
119700
119748
|
}
|
@@ -119715,12 +119763,12 @@ class ContextMenuRuntime {
|
|
119715
119763
|
}
|
119716
119764
|
}
|
119717
119765
|
class SimpleContextMenu {
|
119766
|
+
get items() { return this._items ? this._items : (this._items = this._getItems()); }
|
119767
|
+
set items(value) { this._items = value; }
|
119718
119768
|
constructor(enabled = true, getItems = () => ClientContextMenuBar.getInitialItems()) {
|
119719
119769
|
this.enabled = enabled;
|
119720
119770
|
this._getItems = getItems;
|
119721
119771
|
}
|
119722
|
-
get items() { return this._items ? this._items : (this._items = this._getItems()); }
|
119723
|
-
set items(value) { this._items = value; }
|
119724
119772
|
getItem(id) {
|
119725
119773
|
return getContextMenuItem(this.items, id);
|
119726
119774
|
}
|
@@ -119818,6 +119866,8 @@ class SavingEvent extends RichEditEvent {
|
|
119818
119866
|
}
|
119819
119867
|
class SavedEvent extends RichEditEvent {
|
119820
119868
|
}
|
119869
|
+
class HorizontalRulerVisibleChangedEvent extends RichEditEvent {
|
119870
|
+
}
|
119821
119871
|
class CustomCommandExecutedEvent extends RichEditEvent {
|
119822
119872
|
}
|
119823
119873
|
class PdfExportingEvent extends RichEditEvent {
|
@@ -119899,6 +119949,12 @@ class SavedEventArgs extends EventArgs {
|
|
119899
119949
|
this.reason = reason;
|
119900
119950
|
}
|
119901
119951
|
}
|
119952
|
+
class HorizontalRulerVisibleChangedEventArgs extends EventArgs {
|
119953
|
+
constructor(horizontalRulerVisible) {
|
119954
|
+
super();
|
119955
|
+
this.horizontalRulerVisible = horizontalRulerVisible;
|
119956
|
+
}
|
119957
|
+
}
|
119902
119958
|
class CustomCommandExecutedEventArgs extends EventArgs {
|
119903
119959
|
constructor(commandName, parameter) {
|
119904
119960
|
super();
|
@@ -121048,13 +121104,13 @@ ToolbarSeparatorItem.SeparatorContainerClassName = 'dx-r-separator-container';
|
|
121048
121104
|
|
121049
121105
|
|
121050
121106
|
class Ribbon {
|
121107
|
+
get element() { return this.options.element; }
|
121051
121108
|
constructor(options) {
|
121052
121109
|
this.options = options;
|
121053
121110
|
this.toolbars = [];
|
121054
121111
|
this.toolBarItemsByName = {};
|
121055
121112
|
this.contextItemIndexesByCategoryName = {};
|
121056
121113
|
}
|
121057
|
-
get element() { return this.options.element; }
|
121058
121114
|
dispose() {
|
121059
121115
|
this.tabPanel.dispose();
|
121060
121116
|
this.toolbars.forEach(tb => tb.dispose());
|
@@ -129213,13 +129269,13 @@ class SpellCheckerDialogParameters extends DialogParametersBase {
|
|
129213
129269
|
}
|
129214
129270
|
}
|
129215
129271
|
class SpellCheckerDialogController {
|
129272
|
+
get isRepeatingError() { return this.misspelledInterval.errorInfo.errorType == SpellingErrorType.Repeating; }
|
129273
|
+
get canAddToDictionary() { return this.control.commandManager.getCommand(RichEditClientCommand.AddWordToDictionary).getState().enabled; }
|
129274
|
+
get suggestions() { return this.misspelledInterval.errorInfo.suggestions; }
|
129216
129275
|
constructor(control, spellChecker) {
|
129217
129276
|
this.control = control;
|
129218
129277
|
this.spellChecker = spellChecker;
|
129219
129278
|
}
|
129220
|
-
get isRepeatingError() { return this.misspelledInterval.errorInfo.errorType == SpellingErrorType.Repeating; }
|
129221
|
-
get canAddToDictionary() { return this.control.commandManager.getCommand(RichEditClientCommand.AddWordToDictionary).getState().enabled; }
|
129222
|
-
get suggestions() { return this.misspelledInterval.errorInfo.suggestions; }
|
129223
129279
|
tryFindNextError() {
|
129224
129280
|
this.misspelledInterval = this.spellChecker.findNextMisspelledInterval(this.control.selection.intervals[0].start);
|
129225
129281
|
if (this.misspelledInterval) {
|
@@ -129956,10 +130012,6 @@ class ChangePageColorCommand extends CommandBase {
|
|
129956
130012
|
|
129957
130013
|
|
129958
130014
|
class PrintDocumentOnClient extends CommandBase {
|
129959
|
-
constructor(control, _nonce) {
|
129960
|
-
super(control);
|
129961
|
-
this._nonce = _nonce;
|
129962
|
-
}
|
129963
130015
|
isEnabled() {
|
129964
130016
|
return super.isEnabled() && ControlOptions.isEnabled(this.control.modelManager.richOptions.control.printing) &&
|
129965
130017
|
this.control.modelManager.model.isLoaded();
|
@@ -129967,6 +130019,10 @@ class PrintDocumentOnClient extends CommandBase {
|
|
129967
130019
|
isEnabledInReadOnlyMode() {
|
129968
130020
|
return true;
|
129969
130021
|
}
|
130022
|
+
constructor(control, _nonce) {
|
130023
|
+
super(control);
|
130024
|
+
this._nonce = _nonce;
|
130025
|
+
}
|
129970
130026
|
getState() {
|
129971
130027
|
return new SimpleCommandState(this.isEnabled());
|
129972
130028
|
}
|
@@ -130306,6 +130362,7 @@ class HyperlinkCommandBase extends CommandBase {
|
|
130306
130362
|
|
130307
130363
|
|
130308
130364
|
|
130365
|
+
|
130309
130366
|
class OpenHyperlinkCommand extends HyperlinkCommandBase {
|
130310
130367
|
executeCore(state, options) {
|
130311
130368
|
let field;
|
@@ -130329,8 +130386,11 @@ class OpenHyperlinkCommand extends HyperlinkCommandBase {
|
|
130329
130386
|
if (hyperlinkInfo.anchor)
|
130330
130387
|
this.control.commandManager.getCommand(RichEditClientCommand.GoToBookmark)
|
130331
130388
|
.execute(this.control.commandManager.isPublicApiCall, new CommandSimpleOptions(this.control, hyperlinkInfo.anchor));
|
130332
|
-
else
|
130333
|
-
|
130389
|
+
else {
|
130390
|
+
const options = (0,utils/* createUrlValidationOptions */.EW)(this.control);
|
130391
|
+
if ((0,utils/* isUrlValid */.pM)(hyperlinkInfo.uri, options))
|
130392
|
+
url/* Url */.R.navigate(hyperlinkInfo.uri, "_blank");
|
130393
|
+
}
|
130334
130394
|
return true;
|
130335
130395
|
}
|
130336
130396
|
isEnabledInReadOnlyMode() {
|
@@ -133387,8 +133447,10 @@ class ToggleShowHorizontalRulerCommand extends CommandBase {
|
|
133387
133447
|
const visible = this.control.horizontalRulerControl.getVisible();
|
133388
133448
|
if (options.param == visible)
|
133389
133449
|
return false;
|
133390
|
-
|
133450
|
+
const toggledVisible = !visible;
|
133451
|
+
this.control.horizontalRulerControl.setVisible(toggledVisible);
|
133391
133452
|
this.control.owner.adjustControl();
|
133453
|
+
this.control.owner.raiseHorizontalRulerVisibleChanged(toggledVisible);
|
133392
133454
|
return true;
|
133393
133455
|
}
|
133394
133456
|
isEnabled(_options) {
|
@@ -139281,17 +139343,17 @@ class ModelCacheFiller {
|
|
139281
139343
|
|
139282
139344
|
|
139283
139345
|
class FontCorrector {
|
139284
|
-
constructor(modelManipulator, model, fonts) {
|
139285
|
-
this.modelManipulator = modelManipulator;
|
139286
|
-
this.model = model;
|
139287
|
-
this.fonts = fonts;
|
139288
|
-
}
|
139289
139346
|
get fontInfoCache() {
|
139290
139347
|
return this.model.cache.fontInfoCache;
|
139291
139348
|
}
|
139292
139349
|
get controlFontsCache() {
|
139293
139350
|
return this.model.cache.controlFontsCache;
|
139294
139351
|
}
|
139352
|
+
constructor(modelManipulator, model, fonts) {
|
139353
|
+
this.modelManipulator = modelManipulator;
|
139354
|
+
this.model = model;
|
139355
|
+
this.fonts = fonts;
|
139356
|
+
}
|
139295
139357
|
correct() {
|
139296
139358
|
this.addAndLoad();
|
139297
139359
|
new ModelCacheFiller(this.model, this.fonts).fillCache();
|
@@ -140465,13 +140527,13 @@ var external_DevExpress_ui_dxPopup_default = /*#__PURE__*/__webpack_require__.n(
|
|
140465
140527
|
|
140466
140528
|
|
140467
140529
|
class DialogBase {
|
140530
|
+
get showCloseButton() {
|
140531
|
+
return undefined;
|
140532
|
+
}
|
140468
140533
|
constructor(element, richedit) {
|
140469
140534
|
this.element = element;
|
140470
140535
|
this.richedit = richedit;
|
140471
140536
|
}
|
140472
|
-
get showCloseButton() {
|
140473
|
-
return undefined;
|
140474
|
-
}
|
140475
140537
|
dispose() {
|
140476
140538
|
}
|
140477
140539
|
show(parameters, callback, afterClosing, _isModal) {
|
@@ -142878,6 +142940,7 @@ class Events {
|
|
142878
142940
|
this.commandStateChanged = new CommandStateChangedEvent();
|
142879
142941
|
this.calculateDocumentVariableAsync = new CalculateDocumentVariableAsyncEvent();
|
142880
142942
|
this.contextMenuShowing = new ContextMenuShowingEvent();
|
142943
|
+
this.horizontalRulerVisibleChanged = new HorizontalRulerVisibleChangedEvent();
|
142881
142944
|
}
|
142882
142945
|
clear() {
|
142883
142946
|
this.selectionChanged.clearHandlers();
|
@@ -142906,6 +142969,7 @@ class Events {
|
|
142906
142969
|
this.commandStateChanged.clearHandlers();
|
142907
142970
|
this.contextMenuShowing.clearHandlers();
|
142908
142971
|
this.calculateDocumentVariableAsync.clearHandlers();
|
142972
|
+
this.horizontalRulerVisibleChanged.clearHandlers();
|
142909
142973
|
}
|
142910
142974
|
}
|
142911
142975
|
|
@@ -143065,6 +143129,10 @@ class Settings {
|
|
143065
143129
|
result.fields.createHyperlinkTooltip = this.parseEventHandler(settings.fields.createHyperlinkTooltip);
|
143066
143130
|
if ((0,common.isDefined)(settings.fields.keepHyperlinkResultForInvalidReference))
|
143067
143131
|
result.fields.keepHyperlinkResultForInvalidReference = settings.fields.keepHyperlinkResultForInvalidReference;
|
143132
|
+
if ((0,common.isDefined)(settings.fields.disableRelativeHyperlinkUri))
|
143133
|
+
result.fields.disableRelativeHyperlinkUri = settings.fields.disableRelativeHyperlinkUri;
|
143134
|
+
if ((0,common.isDefined)(settings.fields.allowedHyperlinkUriProtocols))
|
143135
|
+
result.fields.allowedHyperlinkUriProtocols = settings.fields.allowedHyperlinkUriProtocols;
|
143068
143136
|
}
|
143069
143137
|
}
|
143070
143138
|
static parsePrintingSettings(settings, result) {
|
@@ -143277,12 +143345,12 @@ class ConfirmOnLosingChangesSettings {
|
|
143277
143345
|
|
143278
143346
|
|
143279
143347
|
class QuickSearchPanel {
|
143348
|
+
get core() { return this.owner.core; }
|
143280
143349
|
constructor(owner, searchManager) {
|
143281
143350
|
this.owner = owner;
|
143282
143351
|
this.searchManager = searchManager;
|
143283
143352
|
this.initialize();
|
143284
143353
|
}
|
143285
|
-
get core() { return this.owner.core; }
|
143286
143354
|
dispose() {
|
143287
143355
|
if (this.isVisible())
|
143288
143356
|
this.onClose(true);
|
@@ -143778,6 +143846,14 @@ var external_DevExpress_config_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
143778
143846
|
|
143779
143847
|
|
143780
143848
|
class ClientRichEdit {
|
143849
|
+
get clientQuickSearchPanel() {
|
143850
|
+
if (!this._clientQuickSearchPanel)
|
143851
|
+
this._clientQuickSearchPanel = new ClientQuickSearchPanel(this, this.core.searchManager);
|
143852
|
+
return this._clientQuickSearchPanel;
|
143853
|
+
}
|
143854
|
+
getPublicRichEdit() {
|
143855
|
+
return this.publicRichEdit;
|
143856
|
+
}
|
143781
143857
|
constructor(element, options, publicRichEdit) {
|
143782
143858
|
var _a;
|
143783
143859
|
this.evtHandlersHolder = new event_handlers_holder/* DomEventHandlersHolder */.$();
|
@@ -143799,7 +143875,7 @@ class ClientRichEdit {
|
|
143799
143875
|
this.contextMenuSettings = settings.contextMenuSettings;
|
143800
143876
|
this.fullScreenHelper = new FullScreenHelper(element);
|
143801
143877
|
if (true)
|
143802
|
-
external_DevExpress_config_default()(JSON.parse(atob('
|
143878
|
+
external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaWFYWkdXQzFTVkdFeU1IbFVPRGh0YzAxNmRsQTJaeUlLZlE9PS5GYjZ4U0JwU3BSVHBWajZ0dWtlQTJZaU1WVW5tb0ZoSDJKV3Ryak5iN3p6VlNrNzhKa294RVFKOW9rVlErYnh0SzM1WWlFZkpEWGJnNktrYVA1ZEljcnp0ZHlsOFlGL2ltc3BIWkY5aWlaeGtVK0FXbFVrV1RUb2c0ZnZDbWlxMTl2MWhIdz09In0=')));
|
143803
143879
|
this.prepareElement(element, settings);
|
143804
143880
|
this.initDefaultFontsAndStyles();
|
143805
143881
|
this.initBars(settings.ribbon, settings.fonts);
|
@@ -143813,14 +143889,6 @@ class ClientRichEdit {
|
|
143813
143889
|
this.onInit = (_a = options.events) === null || _a === void 0 ? void 0 : _a.init;
|
143814
143890
|
this.document = options.document;
|
143815
143891
|
}
|
143816
|
-
get clientQuickSearchPanel() {
|
143817
|
-
if (!this._clientQuickSearchPanel)
|
143818
|
-
this._clientQuickSearchPanel = new ClientQuickSearchPanel(this, this.core.searchManager);
|
143819
|
-
return this._clientQuickSearchPanel;
|
143820
|
-
}
|
143821
|
-
getPublicRichEdit() {
|
143822
|
-
return this.publicRichEdit;
|
143823
|
-
}
|
143824
143892
|
getRulerSettings(viewSettings) {
|
143825
143893
|
const settings = Constants.ruler;
|
143826
143894
|
settings.visibility = viewSettings.showHorizontalRuler ? RulerVisibility.Visible : RulerVisibility.Hidden;
|
@@ -144263,6 +144331,10 @@ class ClientRichEdit {
|
|
144263
144331
|
this.documentSaved = true;
|
144264
144332
|
return handled;
|
144265
144333
|
}
|
144334
|
+
raiseHorizontalRulerVisibleChanged(horizontalRulerVisible) {
|
144335
|
+
const args = new HorizontalRulerVisibleChangedEventArgs(horizontalRulerVisible);
|
144336
|
+
this.events.horizontalRulerVisibleChanged._fireEvent(this.publicRichEdit, args);
|
144337
|
+
}
|
144266
144338
|
raiseSaved(success, reason) {
|
144267
144339
|
const args = new SavedEventArgs(success, reason);
|
144268
144340
|
this.events.saved._fireEvent(this.publicRichEdit, args);
|
@@ -144365,9 +144437,6 @@ class ClientRichEdit {
|
|
144365
144437
|
|
144366
144438
|
;// CONCATENATED MODULE: ./src/client/public/api/authentication-options.ts
|
144367
144439
|
class AuthenticationOptionsApi {
|
144368
|
-
constructor(native) {
|
144369
|
-
this._native = native;
|
144370
|
-
}
|
144371
144440
|
get userName() {
|
144372
144441
|
return this._native.core.modelManager.richOptions.documentProtection.authenticationUserName;
|
144373
144442
|
}
|
@@ -144382,6 +144451,9 @@ class AuthenticationOptionsApi {
|
|
144382
144451
|
this._native.core.modelManager.richOptions.documentProtection.authenticationGroup = value;
|
144383
144452
|
this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged();
|
144384
144453
|
}
|
144454
|
+
constructor(native) {
|
144455
|
+
this._native = native;
|
144456
|
+
}
|
144385
144457
|
}
|
144386
144458
|
|
144387
144459
|
;// CONCATENATED MODULE: ./src/client/public/api/mail-merge-options.ts
|
@@ -144408,9 +144480,6 @@ class MailMergeOptionsApi {
|
|
144408
144480
|
|
144409
144481
|
;// CONCATENATED MODULE: ./src/client/public/api/range-permission-options.ts
|
144410
144482
|
class RangePermissionOptionsApi {
|
144411
|
-
constructor(native) {
|
144412
|
-
this._native = native;
|
144413
|
-
}
|
144414
144483
|
get highlightRanges() {
|
144415
144484
|
return this._native.core.modelManager.richOptions.documentProtection.highlightRanges;
|
144416
144485
|
}
|
@@ -144447,6 +144516,9 @@ class RangePermissionOptionsApi {
|
|
144447
144516
|
this._native.core.modelManager.richOptions.documentProtection.rangeHighlightBracketsColor = value;
|
144448
144517
|
this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged();
|
144449
144518
|
}
|
144519
|
+
constructor(native) {
|
144520
|
+
this._native = native;
|
144521
|
+
}
|
144450
144522
|
}
|
144451
144523
|
|
144452
144524
|
;// CONCATENATED MODULE: ./src/client/public/api/simple-view.ts
|
@@ -145987,12 +146059,12 @@ class RichEditsHolder {
|
|
145987
146059
|
|
145988
146060
|
|
145989
146061
|
class NusaSettings {
|
146062
|
+
get registered() { return this._registered; }
|
145990
146063
|
constructor(native) {
|
145991
146064
|
this._richEditsHolder = new RichEditsHolder();
|
145992
146065
|
this._registered = false;
|
145993
146066
|
this._native = native;
|
145994
146067
|
}
|
145995
|
-
get registered() { return this._registered; }
|
145996
146068
|
getFocusedRichEdit() {
|
145997
146069
|
const focused = this._richEditsHolder.getFocusedRichEdit();
|
145998
146070
|
return focused ? focused.getPublicRichEdit() : null;
|
@@ -146131,6 +146203,7 @@ external_DevExpress_trial_default().registerTrialPanelComponents();
|
|
146131
146203
|
|
146132
146204
|
|
146133
146205
|
class RichEditPublic {
|
146206
|
+
get events() { return this._native.events; }
|
146134
146207
|
constructor(htmlElement, options) {
|
146135
146208
|
this._native = new ClientRichEdit(htmlElement, options, this);
|
146136
146209
|
this.document = new RichEditDocumentClientApi(this._native.core);
|
@@ -146173,7 +146246,6 @@ class RichEditPublic {
|
|
146173
146246
|
afterDocumentOpened(() => { });
|
146174
146247
|
}
|
146175
146248
|
}
|
146176
|
-
get events() { return this._native.events; }
|
146177
146249
|
exportToBase64(callback, documentFormat) {
|
146178
146250
|
const exportModelOptions = this._native.core.getExportModelOptions({ documentFormat: documentFormat });
|
146179
146251
|
exportModelToBase64(exportModelOptions, callback);
|