devexpress-richedit 24.1.8-build-24316-0102 → 24.2.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +12 -1
- package/dist/dx.richedit.js +1174 -907
- 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/bars/rich-edit-ribbon/ribbon-items-data.js +2 -1
- package/lib/client/client-rich-edit.d.ts +1 -0
- package/lib/client/client-rich-edit.js +15 -11
- package/lib/client/commands/commands.js +3 -0
- package/lib/client/commands/new-document-command.js +2 -1
- package/lib/client/commands/open-document-command.d.ts +1 -1
- package/lib/client/default-localization.js +2 -0
- 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 +2 -1
- package/lib/client/model-api/api-utils/parameter-checker.d.ts +1 -1
- package/lib/client/model-api/collections/drawing-object-collection.js +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 +2 -1
- package/lib/client/public/commands/enum.js +1 -0
- 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 +1 -0
- package/lib/client/public/ribbon/item-ids.d.ts +2 -1
- package/lib/client/public/ribbon/item-ids.js +1 -0
- 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 +2 -2
- 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 +2 -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/client-command.d.ts +2 -1
- package/lib/common/commands/client-command.js +1 -0
- package/lib/common/commands/command-base.js +10 -10
- package/lib/common/commands/command-manager.js +2 -1
- 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/create-field-command.d.ts +4 -0
- package/lib/common/commands/fields/create-field-command.js +8 -0
- package/lib/common/commands/fields/open-hyperlink-command.js +3 -2
- package/lib/common/commands/floating-objects/floating-object-drag-drop-change-position-command.js +1 -1
- package/lib/common/commands/floating-objects/insert-anchored-text-box-command.js +1 -1
- 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.d.ts +7 -1
- package/lib/common/formats/html/export/html-export.js +38 -38
- 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/importers/list-base.js +4 -4
- 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/input-controller.d.ts +14 -1
- package/lib/common/input-controller.js +58 -20
- package/lib/common/interfaces/i-control-owner.d.ts +1 -0
- package/lib/common/layout/document-layout.js +1 -1
- 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-boxes/layout-space-box.js +1 -1
- 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/names.d.ts +2 -1
- package/lib/common/model/fields/names.js +1 -0
- package/lib/common/model/fields/parsers/field-code-parser-client-updating-base.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser-doc-variable.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser-hyperlink.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser-if.d.ts +39 -0
- package/lib/common/model/fields/parsers/field-code-parser-if.js +138 -0
- package/lib/common/model/fields/parsers/field-code-parser-merge-field.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser.d.ts +5 -4
- package/lib/common/model/fields/parsers/field-code-parser.js +6 -12
- package/lib/common/model/fields/tree-creator.js +3 -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/floating-objects/insert-anchored-picture-history-item.js +1 -0
- package/lib/common/model/history/items/insert-text-history-item.js +3 -3
- package/lib/common/model/history/items/switch-text-box-sub-documents-state-history-item.js +0 -1
- 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/range/remove-interval-operation.js +8 -2
- 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/manipulators/text-box-manipulator.d.ts +1 -1
- package/lib/common/model/manipulators/text-box-manipulator.js +2 -1
- package/lib/common/model/options/fields.d.ts +1 -0
- package/lib/common/model/options/fields.js +3 -1
- 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/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 +15 -14
- 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 +7 -7
- package/lib/common/ui/ruler/controls/indent/left.js +6 -6
- package/lib/common/ui/ruler/controls/indent/right.js +7 -7
- package/lib/common/ui/ruler/controls/margin/left.js +4 -4
- package/lib/common/ui/ruler/controls/margin/right.js +1 -1
- package/lib/common/ui/ruler/controls/owner.js +1 -1
- package/lib/common/ui/ruler/controls/ruler.js +5 -5
- package/lib/common/ui/ruler/controls/tab/tab-type.js +5 -5
- package/lib/common/ui/ruler/controls/tab/tab.js +7 -7
- package/lib/common/ui/ruler/controls/tab/utils.d.ts +2 -2
- package/lib/common/ui/ruler/controls/tab/utils.js +5 -5
- package/lib/common/ui/ruler/controls/table.js +1 -1
- package/lib/common/ui/ruler/controls/vertical-line.d.ts +1 -2
- package/lib/common/ui/ruler/controls/vertical-line.js +2 -2
- package/lib/common/ui/ruler/controls/wrapper.js +1 -1
- package/lib/common/ui/ruler/manager.js +19 -19
- package/lib/common/ui/ruler/model-data.d.ts +8 -2
- package/lib/common/ui/ruler/model-data.js +10 -4
- package/lib/common/ui/ruler/ruler.js +4 -3
- package/lib/common/utils/utils.d.ts +8 -1
- package/lib/common/utils/utils.js +39 -8
- package/lib/common/view-settings/views-settings.js +6 -6
- package/package.json +3 -3
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
export class LoadingPanelApi {
|
2
|
-
constructor(core) {
|
3
|
-
this._core = core;
|
4
|
-
}
|
5
2
|
get enabled() { return this._core.loadingPanelManager.loadingPanel.enabled; }
|
6
3
|
set enabled(value) { this._core.loadingPanelManager.loadingPanel.enabled = value; }
|
7
4
|
get customPanel() { return this._core.loadingPanelManager.loadingPanel.customPanel; }
|
8
5
|
set customPanel(value) { this._core.loadingPanelManager.loadingPanel.customPanel = value; }
|
6
|
+
constructor(core) {
|
7
|
+
this._core = core;
|
8
|
+
}
|
9
9
|
show() {
|
10
10
|
this._core.loadingPanelManager.loadingPanel.setVisible(true);
|
11
11
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { IRibbonItemOptions } from '../../ribbon/i-ribbon-item-options';
|
2
2
|
import { IRibbonContextItemsCategory } from '../../ribbon/ribbon';
|
3
|
-
export
|
3
|
+
export type RibbonFontBoxData = {
|
4
4
|
text: string;
|
5
5
|
value: string;
|
6
6
|
}[];
|
7
|
-
export
|
7
|
+
export type RibbonFontSizeData = {
|
8
8
|
text: string;
|
9
9
|
value: number;
|
10
10
|
}[];
|
@@ -256,7 +256,8 @@ export class RibbonItemsData {
|
|
256
256
|
{ text: formatMessage('ASPxRichEditStringId.CreatePageField'), name: Command.CreatePageField },
|
257
257
|
{ text: formatMessage('ASPxRichEditStringId.CreatePageCountField'), name: Command.InsertPageCountField },
|
258
258
|
{ text: formatMessage('ASPxRichEditStringId.CreateEmptyMergeField'), name: Command.CreateEmptyMergeField },
|
259
|
-
{ text: formatMessage('ASPxRichEditStringId.CreateEmptyDocVariableField'), name: Command.CreateEmptyDocVariableField }
|
259
|
+
{ text: formatMessage('ASPxRichEditStringId.CreateEmptyDocVariableField'), name: Command.CreateEmptyDocVariableField },
|
260
|
+
{ text: formatMessage('ASPxRichEditStringId.CreateEmptyIfField'), name: Command.CreateEmptyIfField }
|
260
261
|
]
|
261
262
|
},
|
262
263
|
{ type: 'Button', text: formatMessage('ASPxRichEditStringId.InsertMergeFieldTitle'), icon: 'dxre-icon-InsertDataField', alwaysShowText: true, name: Command.ShowInsertMergeFieldForm, },
|
@@ -129,6 +129,7 @@ export declare class ClientRichEdit implements IControlOwner {
|
|
129
129
|
raiseAutoCorrect(text: string, interval: FixedInterval): boolean;
|
130
130
|
raiseSelectionChanged(): void;
|
131
131
|
raiseSaving(base64: string, fileName: string, format: DocumentFormatApi, reason: string): boolean;
|
132
|
+
raiseHorizontalRulerVisibleChanged(horizontalRulerVisible: boolean): void;
|
132
133
|
raiseSaved(success: boolean, reason: string): void;
|
133
134
|
raiseCustomCommandExecuted(command: any, parameter: any): void;
|
134
135
|
raiseFloatingObjectMovedObject(_arg: FloatingObjectMovedArgumentInner): void;
|
@@ -24,7 +24,7 @@ import { DialogManager } from './dialogs/dialog-manager';
|
|
24
24
|
import { ClientFormattersOptions } from './formatters-options';
|
25
25
|
import { LosingChangesWatcher } from './losing-changes-watcher';
|
26
26
|
import { Events } from './public/client-events';
|
27
|
-
import { AutoCorrectEventArgs, CommandStateChangedEventArgs, ContentChangedEventArgs, ContentRemovedEventArgs, CustomCommandExecutedEventArgs, DocumentFormattedEventArgs, DocumentLinkType, EventArgs, HyperlinkClickEventArgs, KeyboardEventArgs, ParagraphPropertiesChangedEventArgs, PdfExportedEventArgs, PdfExportingEventArgs, PointerEventArgs, SavedEventArgs, SavingEventArgs } from './public/events';
|
27
|
+
import { AutoCorrectEventArgs, CommandStateChangedEventArgs, ContentChangedEventArgs, ContentRemovedEventArgs, CustomCommandExecutedEventArgs, DocumentFormattedEventArgs, DocumentLinkType, EventArgs, HyperlinkClickEventArgs, KeyboardEventArgs, ParagraphPropertiesChangedEventArgs, PdfExportedEventArgs, PdfExportingEventArgs, PointerEventArgs, SavedEventArgs, SavingEventArgs, HorizontalRulerVisibleChangedEventArgs } from './public/events';
|
28
28
|
import { Interval } from './public/rich-edit';
|
29
29
|
import { Settings } from './settings';
|
30
30
|
import { ClientQuickSearchPanel } from './ui/client-quick-search-panel';
|
@@ -33,6 +33,14 @@ import { FullScreenHelper } from './ui/full-screen-helper';
|
|
33
33
|
import config from 'devextreme/core/config';
|
34
34
|
import { SizeUtils } from '../common/utils/size-utils';
|
35
35
|
export class ClientRichEdit {
|
36
|
+
get clientQuickSearchPanel() {
|
37
|
+
if (!this._clientQuickSearchPanel)
|
38
|
+
this._clientQuickSearchPanel = new ClientQuickSearchPanel(this, this.core.searchManager);
|
39
|
+
return this._clientQuickSearchPanel;
|
40
|
+
}
|
41
|
+
getPublicRichEdit() {
|
42
|
+
return this.publicRichEdit;
|
43
|
+
}
|
36
44
|
constructor(element, options, publicRichEdit) {
|
37
45
|
var _a;
|
38
46
|
this.evtHandlersHolder = new DomEventHandlersHolder();
|
@@ -53,8 +61,8 @@ export class ClientRichEdit {
|
|
53
61
|
this.rawDataSource = settings.rawDataSource;
|
54
62
|
this.contextMenuSettings = settings.contextMenuSettings;
|
55
63
|
this.fullScreenHelper = new FullScreenHelper(element);
|
56
|
-
if ("
|
57
|
-
config(JSON.parse(atob("
|
64
|
+
if ("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaWFUbHhVemQxYzBSQ01HVlpTbDlrVGkxb2FYaGtVU0lLZlE9PS5INTlJcG94ZC90cWdVcE1leVdhamhubjl2NnFtMkFrQmc2MW0yU05ZUHIreFBrdnRLUm04Wm4rU08rUVQ3NEt3MVpWQ0pGeEJYV1dJRlNyRG1EZlVqYmV6N2RzTnpJbTR6S1A5M2l4amVQR0Jnb2o4eG9VSmZvNldmZzNMblpTUlNLcHFpZz09In0=")
|
65
|
+
config(JSON.parse(atob("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaWFUbHhVemQxYzBSQ01HVlpTbDlrVGkxb2FYaGtVU0lLZlE9PS5INTlJcG94ZC90cWdVcE1leVdhamhubjl2NnFtMkFrQmc2MW0yU05ZUHIreFBrdnRLUm04Wm4rU08rUVQ3NEt3MVpWQ0pGeEJYV1dJRlNyRG1EZlVqYmV6N2RzTnpJbTR6S1A5M2l4amVQR0Jnb2o4eG9VSmZvNldmZzNMblpTUlNLcHFpZz09In0=")));
|
58
66
|
this.prepareElement(element, settings);
|
59
67
|
this.initDefaultFontsAndStyles();
|
60
68
|
this.initBars(settings.ribbon, settings.fonts);
|
@@ -68,14 +76,6 @@ export class ClientRichEdit {
|
|
68
76
|
this.onInit = (_a = options.events) === null || _a === void 0 ? void 0 : _a.init;
|
69
77
|
this.document = options.document;
|
70
78
|
}
|
71
|
-
get clientQuickSearchPanel() {
|
72
|
-
if (!this._clientQuickSearchPanel)
|
73
|
-
this._clientQuickSearchPanel = new ClientQuickSearchPanel(this, this.core.searchManager);
|
74
|
-
return this._clientQuickSearchPanel;
|
75
|
-
}
|
76
|
-
getPublicRichEdit() {
|
77
|
-
return this.publicRichEdit;
|
78
|
-
}
|
79
79
|
getRulerSettings(viewSettings) {
|
80
80
|
const settings = Constants.ruler;
|
81
81
|
settings.visibility = viewSettings.showHorizontalRuler ? RulerVisibility.Visible : RulerVisibility.Hidden;
|
@@ -518,6 +518,10 @@ export class ClientRichEdit {
|
|
518
518
|
this.documentSaved = true;
|
519
519
|
return handled;
|
520
520
|
}
|
521
|
+
raiseHorizontalRulerVisibleChanged(horizontalRulerVisible) {
|
522
|
+
const args = new HorizontalRulerVisibleChangedEventArgs(horizontalRulerVisible);
|
523
|
+
this.events.horizontalRulerVisibleChanged._fireEvent(this.publicRichEdit, args);
|
524
|
+
}
|
521
525
|
raiseSaved(success, reason) {
|
522
526
|
const args = new SavedEventArgs(success, reason);
|
523
527
|
this.events.saved._fireEvent(this.publicRichEdit, args);
|
@@ -387,6 +387,9 @@ export function executeApiCommandCore(commandManager, commandId, parameter) {
|
|
387
387
|
case MailMergeTabCommandId.CreateEmptyDocVariableField:
|
388
388
|
parameter = undefined;
|
389
389
|
break;
|
390
|
+
case MailMergeTabCommandId.CreateEmptyIfField:
|
391
|
+
parameter = undefined;
|
392
|
+
break;
|
390
393
|
case MailMergeTabCommandId.ShowInsertMergeFieldDialog:
|
391
394
|
parameter = undefined;
|
392
395
|
break;
|
@@ -19,9 +19,10 @@ export class NewDocumentCommand extends CommandBase {
|
|
19
19
|
return true;
|
20
20
|
}
|
21
21
|
static newDocumentInner() {
|
22
|
+
var _a;
|
22
23
|
this.control.closeDocument();
|
23
24
|
this.control.loadingPanelManager.loadingPanel.setVisible(true);
|
24
|
-
const documentInfo = new DocumentInfo(
|
25
|
+
const documentInfo = new DocumentInfo((_a = this.control.documentInfo) === null || _a === void 0 ? void 0 : _a.fileName, false);
|
25
26
|
this.control.initialize("", documentInfo, 1, null);
|
26
27
|
const options = new ModelCreatorOptions();
|
27
28
|
new ModelCreator(options).setModel(this.control.modelManager.model).fillModel();
|
@@ -18,7 +18,7 @@ export declare class OpenDocumentCommand extends CommandBase<SimpleCommandState>
|
|
18
18
|
private static getDocumentExtensionByFileName;
|
19
19
|
static getFileNameWithoutExtension(fileName: string): string;
|
20
20
|
}
|
21
|
-
export
|
21
|
+
export type ImportDocumentCallback = (importSuccess: boolean, importFailReason: string | null) => void;
|
22
22
|
export declare class FileInfo {
|
23
23
|
fileContent: File | Blob | ArrayBuffer | string;
|
24
24
|
fileName: string;
|
@@ -2030,6 +2030,8 @@ export function loadDefaultMessages() {
|
|
2030
2030
|
"ASPxRichEditStringId.CreateEmptyMergeFieldDescription": "Retrieves a value from the bound data source.",
|
2031
2031
|
"ASPxRichEditStringId.CreateEmptyDocVariableField": "DOCVARIABLE",
|
2032
2032
|
"ASPxRichEditStringId.CreateEmptyDocVariableFieldDescription": "Enables you to programmatically insert complex content when this field is updated.",
|
2033
|
+
"ASPxRichEditStringId.CreateEmptyIfField": "IF",
|
2034
|
+
"ASPxRichEditStringId.CreateEmptyIfFieldDescription": "Compares two values and inserts text related to the comparison result.",
|
2033
2035
|
"ASPxRichEditStringId.MenuCmd_Font_settings": "Font settings",
|
2034
2036
|
"ASPxRichEditStringId.MenuCmd_Align_Paragraph": "Align Paragraph",
|
2035
2037
|
"ASPxRichEditStringId.MenuCmd_Empty": "Empty",
|
@@ -2,13 +2,13 @@ import { formatMessage } from 'devextreme/localization';
|
|
2
2
|
import dxForm from 'devextreme/ui/form';
|
3
3
|
import dxPopup from 'devextreme/ui/popup';
|
4
4
|
export class DialogBase {
|
5
|
+
get showCloseButton() {
|
6
|
+
return undefined;
|
7
|
+
}
|
5
8
|
constructor(element, richedit) {
|
6
9
|
this.element = element;
|
7
10
|
this.richedit = richedit;
|
8
11
|
}
|
9
|
-
get showCloseButton() {
|
10
|
-
return undefined;
|
11
|
-
}
|
12
12
|
dispose() {
|
13
13
|
}
|
14
14
|
show(parameters, callback, afterClosing, _isModal) {
|
@@ -7,12 +7,12 @@ import { RichEditDocumentApi } from '../../model-api/document';
|
|
7
7
|
import { UnitConverterApi as UnitConverter } from '../../model-api/unit-converter';
|
8
8
|
import { downloadPdf, pdfExport } from '../../../common/formats/pdf/api/pdf';
|
9
9
|
export class DocumentProcessorBaseApi {
|
10
|
-
constructor() {
|
11
|
-
this.unitConverter = new UnitConverter();
|
12
|
-
}
|
13
10
|
set onCalculateDocumentVariable(val) {
|
14
11
|
this._processor.onCalculateDocumentVariable = val ? (e) => val(this, e) : null;
|
15
12
|
}
|
13
|
+
constructor() {
|
14
|
+
this.unitConverter = new UnitConverter();
|
15
|
+
}
|
16
16
|
importDocument(source, documentFormat, callback) {
|
17
17
|
this._processor.openDocument(source, documentFormat, callback);
|
18
18
|
this.document = new RichEditDocumentApi(this._processor);
|
@@ -18,6 +18,11 @@ import { TextBoxSubDocumentExporter } from './exporters/sub-document/text-box-co
|
|
18
18
|
import { IdGenerator } from './utils/id-generator';
|
19
19
|
import { WriterHelper } from './utils/writer-helper';
|
20
20
|
export class Data {
|
21
|
+
get writer() { return this.writerStack.last; }
|
22
|
+
set writer(val) { this.writerStack.push(val); }
|
23
|
+
get subDocumentExporter() { return this.subDocumentExporterStack.last; }
|
24
|
+
get relationExporter() { return ListUtils.last(this.relationExporters); }
|
25
|
+
get mainSubDocumentRelations() { return this.relationExporters[0]; }
|
21
26
|
constructor(model, options) {
|
22
27
|
this.drawingElementId = 1;
|
23
28
|
this.exportSubDocumentsList = [];
|
@@ -47,11 +52,6 @@ export class Data {
|
|
47
52
|
this.footNotes = new Map();
|
48
53
|
this.endNotes = new Map();
|
49
54
|
}
|
50
|
-
get writer() { return this.writerStack.last; }
|
51
|
-
set writer(val) { this.writerStack.push(val); }
|
52
|
-
get subDocumentExporter() { return this.subDocumentExporterStack.last; }
|
53
|
-
get relationExporter() { return ListUtils.last(this.relationExporters); }
|
54
|
-
get mainSubDocumentRelations() { return this.relationExporters[0]; }
|
55
55
|
popWriter() { this.writerStack.pop(); }
|
56
56
|
pushRelationExporter(exporter) { this.relationExporters.push(exporter); }
|
57
57
|
popRelationExporter() { this.relationExporters.pop().export(); }
|
@@ -9,10 +9,6 @@ import { BaseExporter } from '../base';
|
|
9
9
|
import { LineNumberDefaults } from '../../../../../../common/model/section/line-numbering-properties';
|
10
10
|
import { NotePropertiesExporter } from '../note-properties';
|
11
11
|
export class SectionExporter extends BaseExporter {
|
12
|
-
constructor(data, _section) {
|
13
|
-
super(data);
|
14
|
-
this._section = _section;
|
15
|
-
}
|
16
12
|
static createDefaultProperties() {
|
17
13
|
const props = new SectionProperties();
|
18
14
|
props.pageSize = new Size(12240, 15840);
|
@@ -22,6 +18,10 @@ export class SectionExporter extends BaseExporter {
|
|
22
18
|
props.space = UnitConverter.hundredthsOfMillimeterToTwips(1250);
|
23
19
|
return props;
|
24
20
|
}
|
21
|
+
constructor(data, _section) {
|
22
|
+
super(data);
|
23
|
+
this._section = _section;
|
24
|
+
}
|
25
25
|
exportProperties() {
|
26
26
|
this.writer.writeWpStartElement('sectPr');
|
27
27
|
this.exportSectionHeadersFootersCore(this._section);
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { StringUtils } from '@devexpress/utils/lib/utils/string';
|
2
2
|
import { XmlWriter } from '../../zip/xml-writer';
|
3
3
|
export class BaseExporter {
|
4
|
+
get writer() { return this.data.writer; }
|
4
5
|
constructor(data) {
|
5
6
|
this.data = data;
|
6
7
|
}
|
7
|
-
get writer() { return this.data.writer; }
|
8
8
|
}
|
9
9
|
export class ExporterBaseWithRootElement extends BaseExporter {
|
10
10
|
export() {
|
@@ -3,6 +3,10 @@ import { ContentType, DocxNsType } from '../../utils/constants';
|
|
3
3
|
import { ExporterBaseWithRootElement } from './base';
|
4
4
|
import { NumberingsExporter } from './numberings';
|
5
5
|
export class ContentTypesExporter extends ExporterBaseWithRootElement {
|
6
|
+
get filePath() { return '[Content_Types].xml'; }
|
7
|
+
get rootElement() { return 'Types'; }
|
8
|
+
get rootNSPrefix() { return ''; }
|
9
|
+
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.ContentTypes].namespace; }
|
6
10
|
constructor(data) {
|
7
11
|
super(data);
|
8
12
|
this.usedContentTypes = {};
|
@@ -16,10 +20,6 @@ export class ContentTypesExporter extends ExporterBaseWithRootElement {
|
|
16
20
|
this.registerContentTypeOverride('/word/settings.xml', ContentType.settings);
|
17
21
|
this.registerContentTypeOverride('/docProps/core.xml', ContentType.coreProperties);
|
18
22
|
}
|
19
|
-
get filePath() { return '[Content_Types].xml'; }
|
20
|
-
get rootElement() { return 'Types'; }
|
21
|
-
get rootNSPrefix() { return ''; }
|
22
|
-
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.ContentTypes].namespace; }
|
23
23
|
registerContentTypeOverride(partName, contentType) {
|
24
24
|
this.overriddenContentTypes[partName] = contentType;
|
25
25
|
}
|
@@ -2,6 +2,7 @@ import { StringMapUtils } from '@devexpress/utils/lib/utils/map/string';
|
|
2
2
|
import { StringUtils } from '@devexpress/utils/lib/utils/string';
|
3
3
|
import { RelationsBaseExporter } from './base';
|
4
4
|
export class RelationCollectionExporter extends RelationsBaseExporter {
|
5
|
+
get filePath() { return this._filePath; }
|
5
6
|
constructor(data, filePath) {
|
6
7
|
super(data);
|
7
8
|
this._filePath = filePath;
|
@@ -10,7 +11,6 @@ export class RelationCollectionExporter extends RelationsBaseExporter {
|
|
10
11
|
this.hyperlinkRelationsTable = {};
|
11
12
|
this.exportedExternalImageRelationsTable = {};
|
12
13
|
}
|
13
|
-
get filePath() { return this._filePath; }
|
14
14
|
fillWriter() {
|
15
15
|
this.generateFileRelationCore(this.imageRelationsTable, this.data.constants.rels.relsImage);
|
16
16
|
this.generateFileRelationCore(this.exportedExternalImageRelationsTable, this.data.constants.rels.relsImage, true);
|
@@ -7,7 +7,7 @@ import { ConstInterval } from '@devexpress/utils/lib/intervals/const';
|
|
7
7
|
import { Data } from '../../data';
|
8
8
|
import { ExporterBaseWithRootElement } from '../base';
|
9
9
|
import { RelationCollectionExporter } from '../relations/relation-collection';
|
10
|
-
export
|
10
|
+
export type RunHandler = (runText: string) => void;
|
11
11
|
export declare abstract class BaseSubDocumentExporter extends ExporterBaseWithRootElement {
|
12
12
|
get filePath(): string;
|
13
13
|
get rootNSPrefix(): string;
|
@@ -16,6 +16,9 @@ import { DrawingExporter } from '../base/drawing';
|
|
16
16
|
import { TableExporter } from '../base/table/table';
|
17
17
|
import { isDefined } from '@devexpress/utils/lib/utils/common';
|
18
18
|
export class BaseSubDocumentExporter extends ExporterBaseWithRootElement {
|
19
|
+
get filePath() { return this._filePath; }
|
20
|
+
get rootNSPrefix() { return this.data.constants.namespaces[DocxNsType.WordProcessing].prefix; }
|
21
|
+
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.WordProcessing].namespace; }
|
19
22
|
constructor(data, filePath) {
|
20
23
|
super(data);
|
21
24
|
this.fieldCodeDepth = 0;
|
@@ -51,9 +54,6 @@ export class BaseSubDocumentExporter extends ExporterBaseWithRootElement {
|
|
51
54
|
};
|
52
55
|
this.tableExporter = new TableExporter(this.data);
|
53
56
|
}
|
54
|
-
get filePath() { return this._filePath; }
|
55
|
-
get rootNSPrefix() { return this.data.constants.namespaces[DocxNsType.WordProcessing].prefix; }
|
56
|
-
get rootNSValue() { return this.data.constants.namespaces[DocxNsType.WordProcessing].namespace; }
|
57
57
|
fillWriter() {
|
58
58
|
this.data.subDocumentExporterStack.push(this);
|
59
59
|
this.registerNamespaces();
|
package/lib/client/formats/docx/export/exporters/sub-document/header-footer-sub-document-exporter.js
CHANGED
@@ -2,11 +2,11 @@ import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
|
|
2
2
|
import { RelationCollectionExporter } from '../relations/relation-collection';
|
3
3
|
import { SingleSubDocumentExoprter } from './base-sub-document';
|
4
4
|
export class HeaderFooterSubDocumentExporter extends SingleSubDocumentExoprter {
|
5
|
+
get rootElement() { return this.subDocument.isHeader() ? 'hdr' : 'ftr'; }
|
5
6
|
constructor(data, subDocument, filePath, relsFilePath) {
|
6
7
|
super(data, subDocument, filePath);
|
7
8
|
this.relsFilePath = relsFilePath;
|
8
9
|
}
|
9
|
-
get rootElement() { return this.subDocument.isHeader() ? 'hdr' : 'ftr'; }
|
10
10
|
createRelationExporter() { return new RelationCollectionExporter(this.data, this.relsFilePath); }
|
11
11
|
fillWriterCore() {
|
12
12
|
this.init();
|
@@ -26,6 +26,8 @@ export class DestinationStack extends Stack {
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
export class Data {
|
29
|
+
get subDocumentInfo() { return this.subDocumentsInfoStack.last; }
|
30
|
+
get subDocument() { return this._subDocument; }
|
29
31
|
constructor(options, archiveData, documentModel) {
|
30
32
|
this.imageRelationToCacheMap = {};
|
31
33
|
this.options = options;
|
@@ -53,8 +55,6 @@ export class Data {
|
|
53
55
|
this.altChunkImporter = new AltChunkImporter(this);
|
54
56
|
this.destinationStack = new DestinationStack();
|
55
57
|
}
|
56
|
-
get subDocumentInfo() { return this.subDocumentsInfoStack.last; }
|
57
|
-
get subDocument() { return this._subDocument; }
|
58
58
|
fixLastParagraph() {
|
59
59
|
if (this.shouldFixLastParagraph()) {
|
60
60
|
}
|
@@ -17,11 +17,11 @@ import { SingleStrikeThroughDestination } from './properties/single-strike-throu
|
|
17
17
|
import { SmallCapsDestination } from './properties/small-caps-destination';
|
18
18
|
import { UnderlineDestination } from './properties/underline-destination';
|
19
19
|
export class RunPropertiesBaseDestination extends ElementDestination {
|
20
|
+
get elementHandlerTable() { return RunPropertiesBaseDestination.handlerTable; }
|
20
21
|
constructor(data, characterProperties) {
|
21
22
|
super(data);
|
22
23
|
this.characterProperties = characterProperties;
|
23
24
|
}
|
24
|
-
get elementHandlerTable() { return RunPropertiesBaseDestination.handlerTable; }
|
25
25
|
static getCharacterProperties(data) {
|
26
26
|
return data.destinationStack.getThis().characterProperties;
|
27
27
|
}
|
@@ -3,8 +3,8 @@ import { SubDocument } from '../../../../../common/model/sub-document';
|
|
3
3
|
import { ISetMaskedPropertyDescriptor, ISetMaskedPropertySupport } from '../../../../../common/rich-utils/common-interfaces';
|
4
4
|
import { XmlReader } from '../../zip/xml-reader';
|
5
5
|
import { Data } from '../data';
|
6
|
-
export
|
7
|
-
export
|
6
|
+
export type ElementHandler = (data: Data, reader: XmlReader) => ElementDestination;
|
7
|
+
export type ElementHandlerTable = Record<string, ElementHandler>;
|
8
8
|
export declare abstract class ElementDestination {
|
9
9
|
protected get documentModel(): DocumentModel;
|
10
10
|
protected get subDocument(): SubDocument;
|
@@ -3,12 +3,12 @@ import { Log } from '../../../../../common/rich-utils/debug/logger/base-logger/l
|
|
3
3
|
import { LogSource } from '../../../../../common/rich-utils/debug/logger/base-logger/log-source';
|
4
4
|
import { XmlNodeType } from '../../zip/xml-reader';
|
5
5
|
export class ElementDestination {
|
6
|
+
get documentModel() { return this.data.documentModel; }
|
7
|
+
get subDocument() { return this.data.subDocument; }
|
6
8
|
constructor(data) {
|
7
9
|
this.forbidProcessElementOpenClose = false;
|
8
10
|
this.data = data;
|
9
11
|
}
|
10
|
-
get documentModel() { return this.data.documentModel; }
|
11
|
-
get subDocument() { return this.data.subDocument; }
|
12
12
|
processElementOpen(_reader) {
|
13
13
|
return __awaiter(this, void 0, void 0, function* () { });
|
14
14
|
}
|
@@ -72,15 +72,15 @@ export class ElementDestination {
|
|
72
72
|
}
|
73
73
|
}
|
74
74
|
export class AlternateContentDestination extends ElementDestination {
|
75
|
+
get elementHandlerTable() {
|
76
|
+
this.data.options.throwInvalidFile('AlternateContentDestination exception');
|
77
|
+
return null;
|
78
|
+
}
|
75
79
|
constructor(data, parentDestination) {
|
76
80
|
super(data);
|
77
81
|
this.parentDestination = parentDestination;
|
78
82
|
parentDestination.forbidProcessElementOpenClose = true;
|
79
83
|
}
|
80
|
-
get elementHandlerTable() {
|
81
|
-
this.data.options.throwInvalidFile('AlternateContentDestination exception');
|
82
|
-
return null;
|
83
|
-
}
|
84
84
|
processElementClose(reader) {
|
85
85
|
super.processElementClose(reader);
|
86
86
|
this.parentDestination.forbidProcessElementOpenClose = false;
|
@@ -115,11 +115,11 @@ export class LeafSetMaskedPropertyDestination extends LeafElementDestination {
|
|
115
115
|
export class EmptyDestination extends LeafElementDestination {
|
116
116
|
}
|
117
117
|
export class TransparentDestination extends ElementDestination {
|
118
|
+
get elementHandlerTable() { return {}; }
|
118
119
|
constructor(data) {
|
119
120
|
super(data);
|
120
121
|
this.destination = this.data.destinationStack.last;
|
121
122
|
}
|
122
|
-
get elementHandlerTable() { return {}; }
|
123
123
|
processElementOpen(_reader) {
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
125
125
|
});
|
package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-position-destination.js
CHANGED
@@ -5,15 +5,15 @@ import { StringUtils } from '@devexpress/utils/lib/utils/string';
|
|
5
5
|
import { TranslationTables } from '../../../translation-table/translation-tables';
|
6
6
|
import { ElementDestination, LeafElementDestination } from '../destination';
|
7
7
|
export class DrawingAnchorPositionBaseDestination extends ElementDestination {
|
8
|
+
get elementHandlerTable() {
|
9
|
+
return {};
|
10
|
+
}
|
8
11
|
constructor(data, anchorDestination) {
|
9
12
|
super(data);
|
10
13
|
this.offset = Number.MIN_VALUE;
|
11
14
|
this.percentOffset = Number.MIN_VALUE;
|
12
15
|
this.anchorDestination = anchorDestination;
|
13
16
|
}
|
14
|
-
get elementHandlerTable() {
|
15
|
-
return {};
|
16
|
-
}
|
17
17
|
static getThis(data) {
|
18
18
|
return data.destinationStack.getThis();
|
19
19
|
}
|
@@ -31,12 +31,12 @@ export class DrawingAnchorPositionBaseDestination extends ElementDestination {
|
|
31
31
|
processElementCloseCore(_reader) { throw new Error('not implemented'); }
|
32
32
|
}
|
33
33
|
export class DrawingAnchorHorizontalPositionDestination extends DrawingAnchorPositionBaseDestination {
|
34
|
-
constructor(data, anchorDestination) {
|
35
|
-
super(data, anchorDestination);
|
36
|
-
}
|
37
34
|
get elementHandlerTable() {
|
38
35
|
return DrawingAnchorHorizontalPositionDestination.handlerTable;
|
39
36
|
}
|
37
|
+
constructor(data, anchorDestination) {
|
38
|
+
super(data, anchorDestination);
|
39
|
+
}
|
40
40
|
static getThis(data) {
|
41
41
|
return data.destinationStack.getThis();
|
42
42
|
}
|
@@ -71,12 +71,12 @@ DrawingAnchorHorizontalPositionDestination.handlerTable = new MapCreator()
|
|
71
71
|
.add('align', DrawingAnchorHorizontalPositionDestination.onHorizontalAlignment)
|
72
72
|
.get();
|
73
73
|
export class DrawingAnchorVerticalPositionDestination extends DrawingAnchorPositionBaseDestination {
|
74
|
-
constructor(data, anchorDestination) {
|
75
|
-
super(data, anchorDestination);
|
76
|
-
}
|
77
74
|
get elementHandlerTable() {
|
78
75
|
return DrawingAnchorVerticalPositionDestination.handlerTable;
|
79
76
|
}
|
77
|
+
constructor(data, anchorDestination) {
|
78
|
+
super(data, anchorDestination);
|
79
|
+
}
|
80
80
|
static getThis(data) {
|
81
81
|
return data.destinationStack.getThis();
|
82
82
|
}
|
@@ -21,12 +21,12 @@ export class DrawingAnchorRelativeSizeBaseDestination extends ElementDestination
|
|
21
21
|
processElementCloseCore(_reader) { throw new Error('not implemented'); }
|
22
22
|
}
|
23
23
|
export class DrawingAnchorHorizontalRelativeSizeDestination extends DrawingAnchorRelativeSizeBaseDestination {
|
24
|
-
constructor(data, anchorDestination) {
|
25
|
-
super(data, anchorDestination);
|
26
|
-
}
|
27
24
|
get elementHandlerTable() {
|
28
25
|
return DrawingAnchorHorizontalRelativeSizeDestination.handlerTable;
|
29
26
|
}
|
27
|
+
constructor(data, anchorDestination) {
|
28
|
+
super(data, anchorDestination);
|
29
|
+
}
|
30
30
|
static getThis(data) {
|
31
31
|
return data.destinationStack.getThis();
|
32
32
|
}
|
@@ -51,12 +51,12 @@ DrawingAnchorHorizontalRelativeSizeDestination.handlerTable = new MapCreator()
|
|
51
51
|
.add('pctWidth', DrawingAnchorHorizontalRelativeSizeDestination.onPictureWidth)
|
52
52
|
.get();
|
53
53
|
export class DrawingAnchorVerticalRelativeSizeDestination extends DrawingAnchorRelativeSizeBaseDestination {
|
54
|
-
constructor(data, anchorDestination) {
|
55
|
-
super(data, anchorDestination);
|
56
|
-
}
|
57
54
|
get elementHandlerTable() {
|
58
55
|
return DrawingAnchorVerticalRelativeSizeDestination.handlerTable;
|
59
56
|
}
|
57
|
+
constructor(data, anchorDestination) {
|
58
|
+
super(data, anchorDestination);
|
59
|
+
}
|
60
60
|
static getThis(data) {
|
61
61
|
return data.destinationStack.getThis();
|
62
62
|
}
|