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