ooxml-ui 1.40.0 → 1.41.0
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/README.md +1 -1
- package/custom-elements.json +480 -0
- package/dist/base.d.ts +0 -1
- package/dist/building-block-styles.d.ts +0 -1
- package/dist/chart/data-sheet-keys.d.ts +0 -1
- package/dist/chart/data-sheet.d.ts +1 -2
- package/dist/chart/format-pane-advanced-space.d.ts +0 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-fields.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-intent.d.ts +0 -1
- package/dist/chart/format-pane-locales/de.d.ts +0 -1
- package/dist/chart/format-pane-locales/en.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chart/format-pane-translate.d.ts +0 -1
- package/dist/chrome/account.d.ts +1 -2
- package/dist/chrome/print-preview.d.ts +1 -2
- package/dist/chrome/ruler.d.ts +1 -2
- package/dist/chrome/status-bar.d.ts +1 -2
- package/dist/chrome/tab-drag.d.ts +0 -1
- package/dist/chrome/task-pane.d.ts +1 -2
- package/dist/chunk-4RFFOPBU.js +90 -0
- package/dist/{chunk-BOTLS2PR.js → chunk-4ZSZPUE5.js} +20 -0
- package/dist/{chunk-XL77FR4B.js → chunk-6EOS74O4.js} +6 -0
- package/dist/{chunk-GZNBWWJ5.js → chunk-6FFZFH73.js} +43 -27
- package/dist/{chunk-FYBLAPAJ.js → chunk-7L4NP4HN.js} +149 -76
- package/dist/{chunk-QLHCGV4C.js → chunk-FE5KE5TR.js} +1 -1
- package/dist/{chunk-C4KI635Q.js → chunk-II43ALTT.js} +1 -1
- package/dist/{chunk-6VF4FEMY.js → chunk-LBIABP4I.js} +1 -1
- package/dist/{chunk-T5ARELU2.js → chunk-N6AKS4ED.js} +1 -1
- package/dist/{chunk-YZH2QS7J.js → chunk-Q6WZEGAM.js} +1 -1
- package/dist/{chunk-IZ7XMMMJ.js → chunk-TTT5IQBU.js} +10 -5
- package/dist/{chunk-QAX4FAB7.js → chunk-Y6KY34VD.js} +1632 -202
- package/dist/comments/mentions.d.ts +0 -1
- package/dist/comments/types.d.ts +0 -1
- package/dist/controls.d.ts +16 -3
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +4 -4
- package/dist/dialog/chart-picker.d.ts +1 -2
- package/dist/dialog/dialog-footer.d.ts +1 -2
- package/dist/dialog/dialog-session.d.ts +0 -1
- package/dist/dialog/dialog.d.ts +1 -2
- package/dist/dialog/focus.d.ts +0 -1
- package/dist/dialog/message-dialog.d.ts +84 -0
- package/dist/dialog/message-dialog.d.ts.map +1 -0
- package/dist/dialog/message-dialogs.d.ts +38 -0
- package/dist/dialog/message-dialogs.d.ts.map +1 -0
- package/dist/dialog/options-categories.d.ts +0 -1
- package/dist/dialog/options-controls.d.ts +0 -1
- package/dist/dialog/progress-dialog.d.ts +1 -2
- package/dist/dialog/share-controller.d.ts +38 -0
- package/dist/dialog/share-dialog-locales.d.ts +47 -0
- package/dist/dialog/share-dialog-locales.d.ts.map +1 -0
- package/dist/dialog/share-dialog.d.ts +121 -0
- package/dist/dialog/share-dialog.d.ts.map +1 -0
- package/dist/docx/backstage-account.d.ts +3 -0
- package/dist/docx/backstage-open.d.ts +4 -0
- package/dist/docx/backstage-pages.d.ts +8 -1
- package/dist/docx/backstage.d.ts +1 -1
- package/dist/docx/cloud-labels.d.ts +4 -0
- package/dist/docx/editor-chrome.d.ts +16 -1
- package/dist/docx/editor-core.d.ts +13 -1
- package/dist/docx/element-api.d.ts +17 -1
- package/dist/docx/file-commands.d.ts +2 -2
- package/dist/docx/locales/en-app.d.ts +36 -0
- package/dist/docx/locales/en.d.ts +36 -0
- package/dist/docx/localization-strings.d.ts +36 -0
- package/dist/docx.js +402 -54
- package/dist/files/cloud-files-labels.d.ts +44 -0
- package/dist/files/cloud-files-labels.d.ts.map +1 -0
- package/dist/files/cloud-files-view.d.ts +42 -0
- package/dist/files/cloud-files-view.d.ts.map +1 -0
- package/dist/files/cloud-files.d.ts +130 -0
- package/dist/files/cloud-files.d.ts.map +1 -0
- package/dist/files/connected-services-labels.d.ts +6 -0
- package/dist/files/connected-services.d.ts +70 -0
- package/dist/files/connected-services.d.ts.map +1 -0
- package/dist/files/open-places.d.ts +58 -0
- package/dist/files/open-places.d.ts.map +1 -0
- package/dist/fonts/availability.d.ts +0 -1
- package/dist/fonts/catalog.d.ts +0 -1
- package/dist/fonts/custom-fonts.d.ts +0 -1
- package/dist/form/checkbox.d.ts +1 -2
- package/dist/form/color-custom.d.ts +1 -2
- package/dist/form/color-grid.d.ts +1 -2
- package/dist/form/color-input/live-color-leaves.d.ts +0 -1
- package/dist/form/radio.d.ts +1 -2
- package/dist/form/search-field.d.ts +1 -2
- package/dist/form/symbol-picker.d.ts +1 -2
- package/dist/form/zoom-slider.d.ts +1 -2
- package/dist/image-native-size.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/menu/command-search.d.ts +1 -2
- package/dist/menu/context-menu.d.ts +1 -2
- package/dist/menu/menu-item.d.ts +1 -2
- package/dist/notices/paste-options.d.ts +1 -2
- package/dist/notices/read-only-banner.d.ts.map +1 -1
- package/dist/notices/toasts.d.ts +1 -2
- package/dist/picture-effects.d.ts +0 -1
- package/dist/picture-pixels.d.ts.map +1 -1
- package/dist/picture-standard-filter.d.ts +0 -1
- package/dist/picture-view.d.ts +0 -1
- package/dist/pptx/{chart-3d-view-scene-V55XPBBF.cjs → chart-3d-view-scene-C7QUQTXD.cjs} +37 -37
- package/dist/pptx/{chart-3d-view-scene-BKNMGRGO.mjs → chart-3d-view-scene-CGLU6ISD.mjs} +2 -2
- package/dist/pptx/{chunk-ZLK243QC.cjs → chunk-4SZSTDER.cjs} +49 -49
- package/dist/pptx/{chunk-S5VKG3XJ.cjs → chunk-7XXOLM7H.cjs} +1 -1
- package/dist/pptx/{chunk-WZHYA2B3.mjs → chunk-DH6EKOVI.mjs} +1 -1
- package/dist/pptx/{chunk-MK2ASJSY.mjs → chunk-G4VNRJUX.mjs} +6 -0
- package/dist/pptx/{chunk-BLONL4S7.mjs → chunk-IN46QNJE.mjs} +1 -1
- package/dist/pptx/{chunk-NUB6VP7R.mjs → chunk-J6PRXB72.mjs} +6986 -2851
- package/dist/pptx/{chunk-HIRBPTML.cjs → chunk-JP26TA3Q.cjs} +12 -12
- package/dist/pptx/{chunk-XTC6MQYM.mjs → chunk-JU3ZV73R.mjs} +3 -3
- package/dist/pptx/{chunk-XWAX3PZO.cjs → chunk-RN3JVXVN.cjs} +7198 -3021
- package/dist/pptx/{chunk-WQI3NLMY.mjs → chunk-SF3MYUTD.mjs} +41 -0
- package/dist/pptx/{chunk-QK6LJT3K.mjs → chunk-TW5UQCZS.mjs} +7 -17
- package/dist/pptx/{chunk-CRV7G4GC.cjs → chunk-WNDGU3GQ.cjs} +41 -0
- package/dist/pptx/{chunk-3ESFHUZI.cjs → chunk-XZSGVMRN.cjs} +6 -0
- package/dist/pptx/{chunk-KJICUZXM.cjs → chunk-YZWKNFPU.cjs} +6 -16
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +434 -428
- package/dist/pptx/dom/index.mjs +17 -11
- package/dist/pptx/dom/slide-stage.d.ts.map +1 -1
- package/dist/pptx/dom/types.d.ts +8 -1
- package/dist/pptx/dom/types.d.ts.map +1 -1
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/export/presentation-save.d.ts +15 -0
- package/dist/pptx/export/presentation-save.d.ts.map +1 -1
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3541 -3373
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/render/abutting-edge-bleed-style.d.ts +24 -0
- package/dist/pptx/render/abutting-edge-bleed-style.d.ts.map +1 -0
- package/dist/pptx/render/abutting-edge-bleed.d.ts +56 -0
- package/dist/pptx/render/abutting-edge-bleed.d.ts.map +1 -0
- package/dist/pptx/render/chart-combo-stock.cjs +3 -3
- package/dist/pptx/render/chart-combo-stock.mjs +1 -1
- package/dist/pptx/render/chart-overlays.cjs +7 -7
- package/dist/pptx/render/chart-overlays.mjs +1 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
- package/dist/pptx/render/chart-view-model.cjs +44 -44
- package/dist/pptx/render/chart-view-model.mjs +1 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
- package/dist/pptx/render/cloud-open.d.ts +56 -0
- package/dist/pptx/render/cloud-open.d.ts.map +1 -0
- package/dist/pptx/render/connector-style.d.ts +2 -2
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/element-style-transform.d.ts +11 -3
- package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +11 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-list-presentation.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts +23 -11
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-body-carry.d.ts +8 -0
- package/dist/pptx/render/morph-body-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-carry.d.ts +60 -0
- package/dist/pptx/render/morph-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-easing.d.ts +37 -0
- package/dist/pptx/render/morph-easing.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-carry.d.ts +75 -0
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-glow.d.ts +42 -0
- package/dist/pptx/render/morph-effect-glow.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-parse.d.ts +10 -0
- package/dist/pptx/render/morph-effect-parse.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-shadow.d.ts +71 -0
- package/dist/pptx/render/morph-effect-shadow.d.ts.map +1 -0
- package/dist/pptx/render/morph-flatten.d.ts +2 -2
- package/dist/pptx/render/morph-flip-turn.d.ts +55 -0
- package/dist/pptx/render/morph-flip-turn.d.ts.map +1 -0
- package/dist/pptx/render/morph-geometry-key.d.ts +30 -0
- package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -0
- package/dist/pptx/render/morph-image-crop.d.ts.map +1 -1
- package/dist/pptx/render/morph-matching.d.ts.map +1 -1
- package/dist/pptx/render/morph-outline-blend.d.ts +7 -0
- package/dist/pptx/render/morph-outline-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-overlay-order.d.ts +1 -1
- package/dist/pptx/render/morph-overlay-stack.d.ts +85 -0
- package/dist/pptx/render/morph-overlay-stack.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan.d.ts +73 -1
- package/dist/pptx/render/morph-plan.d.ts.map +1 -1
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/render/morph-shape-carry-path.d.ts +40 -0
- package/dist/pptx/render/morph-shape-carry-path.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry.d.ts +73 -0
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-bands.d.ts +44 -0
- package/dist/pptx/render/morph-text-bands.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-baseline.d.ts +47 -0
- package/dist/pptx/render/morph-text-baseline.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-blend.d.ts +71 -0
- package/dist/pptx/render/morph-text-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-body-copies.d.ts +51 -0
- package/dist/pptx/render/morph-text-body-copies.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-body.d.ts +31 -0
- package/dist/pptx/render/morph-text-body.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-flip.d.ts +49 -0
- package/dist/pptx/render/morph-text-flip.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-frame-read.d.ts +97 -0
- package/dist/pptx/render/morph-text-frame-read.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-frame.d.ts +66 -0
- package/dist/pptx/render/morph-text-frame.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-ink.d.ts +43 -0
- package/dist/pptx/render/morph-text-ink.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-lines.d.ts +73 -0
- package/dist/pptx/render/morph-text-lines.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-piece-plan.d.ts +37 -0
- package/dist/pptx/render/morph-text-piece-plan.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-pieces.d.ts +87 -0
- package/dist/pptx/render/morph-text-pieces.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-slot.d.ts +19 -4
- package/dist/pptx/render/morph-text-slot.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-spans.d.ts +27 -0
- package/dist/pptx/render/morph-text-spans.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-transform.d.ts +108 -0
- package/dist/pptx/render/morph-text-transform.d.ts.map +1 -0
- package/dist/pptx/render/morph-types.d.ts +79 -38
- package/dist/pptx/render/morph-types.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +87 -0
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -0
- package/dist/pptx/render/paragraph-spacing.d.ts +29 -66
- package/dist/pptx/render/paragraph-spacing.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-types.d.ts +7 -0
- package/dist/pptx/render/paragraph-types.d.ts.map +1 -1
- package/dist/pptx/render/presentation-action.d.ts +3 -2
- package/dist/pptx/render/presentation-action.d.ts.map +1 -1
- package/dist/pptx/render/read-only-badge.d.ts +23 -0
- package/dist/pptx/render/read-only-badge.d.ts.map +1 -0
- package/dist/pptx/render/share-session.d.ts +4 -7
- package/dist/pptx/render/share-session.d.ts.map +1 -1
- package/dist/pptx/render/stroke-clip-edge.d.ts +6 -1
- package/dist/pptx/render/stroke-clip-edge.d.ts.map +1 -1
- package/dist/pptx/render/stroke-compound-strands.d.ts +30 -0
- package/dist/pptx/render/stroke-compound-strands.d.ts.map +1 -0
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-flip-compensation.d.ts +51 -0
- package/dist/pptx/render/text-flip-compensation.d.ts.map +1 -0
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/transition-template-elements.d.ts +33 -0
- package/dist/pptx/render/transition-template-elements.d.ts.map +1 -0
- package/dist/pptx/render/viewer-api-guard.d.ts +36 -0
- package/dist/pptx/render/viewer-api-guard.d.ts.map +1 -0
- package/dist/pptx/render/viewer-dialogs.d.ts +31 -0
- package/dist/pptx/render/viewer-dialogs.d.ts.map +1 -0
- package/dist/pptx/render/viewer-hyperlinks.d.ts +2 -1
- package/dist/pptx/render/viewer-hyperlinks.d.ts.map +1 -1
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-BP4WAD5U.mjs → smartart-insert-preview-GA6ELFRB.mjs} +7 -7
- package/dist/pptx/{smartart-insert-preview-USGRDZHJ.cjs → smartart-insert-preview-PQTEVG7C.cjs} +8 -8
- package/dist/pptx/theme/index.cjs +18 -18
- package/dist/pptx/theme/index.mjs +1 -1
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- package/dist/pptx/web-components/office-aliases.d.ts +4 -0
- package/dist/pptx/web-components/office-aliases.d.ts.map +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
- package/dist/presence.js +3 -3
- package/dist/{presentation-preview-ZVJNGOJO.js → presentation-preview-KGBTDTNM.js} +1 -1
- package/dist/render-cache.d.ts +0 -1
- package/dist/ribbon/auto-collapse.d.ts +0 -1
- package/dist/ribbon/button.d.ts +1 -2
- package/dist/ribbon/gallery-styles.d.ts +0 -1
- package/dist/ribbon/keytip-run.d.ts +0 -1
- package/dist/ribbon/overflow.d.ts +0 -1
- package/dist/ribbon/ribbon-section.d.ts +1 -2
- package/dist/ribbon/ribbon-stack.d.ts +1 -2
- package/dist/ribbon/safe-svg.d.ts +0 -1
- package/dist/ribbon/scroll-more.d.ts +0 -1
- package/dist/smartart/smartart-picker.d.ts +1 -2
- package/dist/smartart/smartart-text-pane-tools.d.ts +0 -1
- package/dist/smartart.js +3 -3
- package/dist/suite/document-store.d.ts +10 -0
- package/dist/suite.js +45 -6
- package/dist/teams/app/content-preview.d.ts +1 -1
- package/dist/teams/app/dialogs.d.ts +18 -0
- package/dist/teams/app/teams-app.d.ts +8 -0
- package/dist/teams/i18n/locales/de.d.ts +4 -0
- package/dist/teams/i18n/locales/en/shell.d.ts +4 -0
- package/dist/teams/i18n/locales/en.d.ts +4 -0
- package/dist/teams/i18n/locales/es.d.ts +4 -0
- package/dist/teams/i18n/locales/fr.d.ts +4 -0
- package/dist/teams/i18n/locales/zh-CN.d.ts +4 -0
- package/dist/teams.js +7 -7
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/visio/binding.d.ts +3 -0
- package/dist/visio/controller.d.ts +2 -0
- package/dist/visio/locales/cloud-files.d.ts +4 -0
- package/dist/visio/viewer-backstage.d.ts +5 -1
- package/dist/visio/viewer-cloud-places.d.ts +16 -0
- package/dist/visio/viewer-connected-services.d.ts +13 -0
- package/dist/visio/viewer-element.d.ts +16 -1
- package/dist/visio/viewer-share-ui.d.ts +27 -0
- package/dist/visio/viewer-share.d.ts +7 -2
- package/dist/visio.js +476 -69
- package/dist/xlsx/backstage/cloud-labels.d.ts +4 -0
- package/dist/xlsx/backstage/index.d.ts +1 -1
- package/dist/xlsx/backstage/pages-account.d.ts +2 -0
- package/dist/xlsx/backstage/pages-file.d.ts +0 -1
- package/dist/xlsx/backstage/pages-open.d.ts +2 -0
- package/dist/xlsx/backstage/pages-share.d.ts +5 -6
- package/dist/xlsx/backstage/parts.d.ts +5 -0
- package/dist/xlsx/component.d.ts +8 -0
- package/dist/xlsx/editor-core.d.ts +10 -1
- package/dist/xlsx/editor-files.d.ts +14 -1
- package/dist/xlsx/editor-shell.d.ts +3 -0
- package/dist/xlsx/element-api.d.ts +14 -5
- package/dist/xlsx.js +247 -89
- package/package.json +3 -3
- package/dist/chunk-7RRN2GPO.js +0 -19
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The strings of `<office-ui-cloud-files>` in the editor's locale (File > Open > a cloud place). */
|
|
2
|
+
import type { OfficeCloudFilesLabels } from '../../controls.js';
|
|
3
|
+
import type { PageContext } from './parts.js';
|
|
4
|
+
export declare function cloudLabels(t: PageContext['t']): OfficeCloudFilesLabels;
|
|
@@ -4,7 +4,7 @@ export { participants, type ShareHost } from './pages-share.js';
|
|
|
4
4
|
export { compatibilityNotes, formatNotes } from './pages-info.js';
|
|
5
5
|
export { createTemplateWorkbook, TEMPLATES, type TemplateId } from 'ooxml-core/xlsx/ui';
|
|
6
6
|
/** The File view's pages; `options` and `customize` open the Options dialog instead. */
|
|
7
|
-
export type BackstagePage = 'info' | 'new' | 'open' | 'saveAs' | 'print' | 'share' | 'export' | 'options' | 'customize';
|
|
7
|
+
export type BackstagePage = 'info' | 'new' | 'open' | 'saveAs' | 'print' | 'share' | 'export' | 'account' | 'options' | 'customize';
|
|
8
8
|
export interface Backstage {
|
|
9
9
|
readonly element: HTMLElement;
|
|
10
10
|
/** File > Options: a dialog over the workbook, as PowerPoint and Visio show it. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type PageContext } from './parts.js';
|
|
2
2
|
export declare function renderNew(page: PageContext): void;
|
|
3
|
-
export declare function renderOpen(page: PageContext): void;
|
|
4
3
|
export declare function renderSaveAs(page: PageContext): void;
|
|
5
4
|
export declare function renderPrint(page: PageContext): void;
|
|
6
5
|
export declare function renderExport(page: PageContext): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* File > Share:
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* File > Share: whether this workbook is shared, who is in the session, and the "Share with people"
|
|
3
|
+
* button that opens the Share dialog every product uses (`office-ui-share-dialog`), where the user
|
|
4
|
+
* starts, joins or stops a session and copies its invitation link. Visio's page is the same.
|
|
5
5
|
*/
|
|
6
6
|
import { type PresenceParticipant } from '../../presence.js';
|
|
7
7
|
import type { XlsxCollaborationState } from '../collaboration-types.js';
|
|
@@ -9,11 +9,10 @@ import { type PageContext } from './parts.js';
|
|
|
9
9
|
/** What the Share page needs from the editor. */
|
|
10
10
|
export interface ShareHost {
|
|
11
11
|
state(): XlsxCollaborationState;
|
|
12
|
-
|
|
12
|
+
/** Share with people: the Share command (a host may take it over), else the Share dialog. */
|
|
13
|
+
open(): void;
|
|
13
14
|
stop(): void;
|
|
14
15
|
}
|
|
15
|
-
/** A fresh room name a second window can type: `book-` and six letters or digits. */
|
|
16
|
-
export declare const suggestRoom: () => string;
|
|
17
16
|
export declare function renderShare(page: PageContext): void;
|
|
18
17
|
/** The people in the room as the shared presence stack lists them. */
|
|
19
18
|
export declare function participants(state: XlsxCollaborationState): PresenceParticipant[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Shared building blocks and the host interface of the File backstage pages. */
|
|
2
2
|
import type { WorkbookProperties } from 'ooxml-core/xlsx';
|
|
3
3
|
import type { EditorContext } from 'ooxml-core/xlsx/ui';
|
|
4
|
+
import type { CloudFileProvider, CloudOpenedFile } from 'ooxml-core/embedding';
|
|
4
5
|
import type { FileCommand } from '../events.js';
|
|
5
6
|
import type { SaveState } from '../title-bar.js';
|
|
6
7
|
import type { TemplateId } from 'ooxml-core/xlsx/ui';
|
|
@@ -27,6 +28,10 @@ export interface BackstageHost {
|
|
|
27
28
|
saveState(): SaveState;
|
|
28
29
|
fileCommand(command: FileCommand, fileName?: string): void;
|
|
29
30
|
newFromTemplate(id: TemplateId): void;
|
|
31
|
+
/** Cloud places File > Open offers besides this device. */
|
|
32
|
+
fileProviders?(): readonly CloudFileProvider[];
|
|
33
|
+
/** Opens a file the user picked in a cloud place (the host closes the backstage). */
|
|
34
|
+
openCloudFile?(file: CloudOpenedFile): void;
|
|
30
35
|
close(): void;
|
|
31
36
|
options(): EditorOptions;
|
|
32
37
|
setOption<K extends keyof EditorOptions>(key: K, value: EditorOptions[K]): void;
|
package/dist/xlsx/component.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import type { Workbook } from 'ooxml-core/xlsx';
|
|
6
6
|
import type { RibbonAddInTab } from '../ribbon/add-in-tabs.js';
|
|
7
7
|
import { XlsxEditorApi } from './element-api.js';
|
|
8
|
+
import type { CloudFileProvider } from 'ooxml-core/embedding';
|
|
8
9
|
import type { XlsxEditorEventMap } from './events.js';
|
|
9
10
|
import type { XlsxCollaborationOptions } from './collaboration-types.js';
|
|
10
11
|
import type { EditorLocale, EditorLocaleInput, ExcelCustomization } from 'ooxml-core/xlsx/ui';
|
|
@@ -42,6 +43,13 @@ export declare class XlsxEditorElement extends XlsxEditorApi {
|
|
|
42
43
|
*/
|
|
43
44
|
get customization(): ExcelCustomization | null;
|
|
44
45
|
set customization(value: ExcelCustomization | null | undefined);
|
|
46
|
+
/**
|
|
47
|
+
* Cloud places (OneDrive, or a host's own) File > Open offers next to "This device". A workbook
|
|
48
|
+
* opened from one saves back to its file through the provider's storage until another
|
|
49
|
+
* workbook is shown. Empty (the default) keeps File > Open as it was.
|
|
50
|
+
*/
|
|
51
|
+
get fileProviders(): readonly CloudFileProvider[];
|
|
52
|
+
set fileProviders(value: readonly CloudFileProvider[] | null | undefined);
|
|
45
53
|
/** Shown in the title bar and used by Save and Download. Default `Book1.xlsx`. */
|
|
46
54
|
get fileName(): string;
|
|
47
55
|
set fileName(value: string);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentStorage } from 'ooxml-core/embedding';
|
|
1
|
+
import type { CloudFileProvider, DocumentStorage } from 'ooxml-core/embedding';
|
|
2
2
|
/**
|
|
3
3
|
* The editor's state and the `EditorContext` every UI module receives: the workbook and its edit
|
|
4
4
|
* session, the active sheet and selection, the command and dialog registries, and the public
|
|
@@ -55,6 +55,13 @@ export declare class EditorCore {
|
|
|
55
55
|
surfaceActions: SurfaceHostActions;
|
|
56
56
|
/** Where File > Save and Open go instead of a download and the file picker (`storage`). */
|
|
57
57
|
storage: DocumentStorage | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The storage of the workbook opened from a cloud place (File > Open > OneDrive): Save and
|
|
60
|
+
* Save As go there instead of `storage`, until another workbook is shown.
|
|
61
|
+
*/
|
|
62
|
+
fileStorage: DocumentStorage | undefined;
|
|
63
|
+
/** Cloud places File > Open offers next to "This device" (`fileProviders`). */
|
|
64
|
+
fileProviders: readonly CloudFileProvider[];
|
|
58
65
|
/** The validation failure of the cell edit in progress; cleared once the draft changes or ends. */
|
|
59
66
|
editError: {
|
|
60
67
|
message: string;
|
|
@@ -123,6 +130,8 @@ export declare class EditorCore {
|
|
|
123
130
|
get hostReadOnly(): boolean;
|
|
124
131
|
/** The host's switch. Turning it off never lifts a `viewer` role or `capabilities.edit`. */
|
|
125
132
|
setReadOnly(readOnly: boolean): boolean;
|
|
133
|
+
/** Set while the open file is read-only (a cloud file the user cannot edit); the stricter wins. */
|
|
134
|
+
setFileReadOnly(locked: boolean): boolean;
|
|
126
135
|
/** Set by sharing while the role is `viewer`; independent of the host's switch. */
|
|
127
136
|
setRoleReadOnly(locked: boolean): boolean;
|
|
128
137
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workbook I/O for the element: load (xlsx, xlsm, xls, csv through the core's `loadWorkbook`),
|
|
3
|
+
* new, save, download, and the default handlers of the File commands.
|
|
4
|
+
*/
|
|
5
|
+
import { type CloudOpenedFile } from 'ooxml-core/embedding';
|
|
1
6
|
import { type Workbook } from 'ooxml-core/xlsx';
|
|
2
7
|
import { type TemplateId } from './backstage/index.js';
|
|
3
8
|
import type { EditorCore } from './editor-core.js';
|
|
@@ -11,7 +16,13 @@ export interface FileChrome {
|
|
|
11
16
|
export declare function reportError(core: EditorCore, cause: unknown): Error;
|
|
12
17
|
/** Shows a new workbook model: fresh session, clean state, `workbook-change`. */
|
|
13
18
|
export declare function showWorkbook(core: EditorCore, workbook: Workbook, fileName: string, chrome?: FileChrome): void;
|
|
14
|
-
export declare function loadInto(core: EditorCore, bytes: Uint8Array | ArrayBuffer, fileName: string | undefined, chrome?: FileChrome): Promise<void>;
|
|
19
|
+
export declare function loadInto(core: EditorCore, bytes: Uint8Array | ArrayBuffer, fileName: string | undefined, chrome?: FileChrome, cloud?: CloudOpenedFile): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Opens a file the user picked in a cloud place: the usual discard confirmation, then the normal
|
|
22
|
+
* load path. The workbook keeps `file.storage` for Save and Save As until another one is shown,
|
|
23
|
+
* and is read-only when the file is (the host's own read-only switch still applies on top).
|
|
24
|
+
*/
|
|
25
|
+
export declare function openCloudFile(core: EditorCore, file: CloudOpenedFile, chrome?: FileChrome, confirmed?: () => void): Promise<boolean>;
|
|
15
26
|
export declare function newInto(core: EditorCore, chrome?: FileChrome): void;
|
|
16
27
|
export declare function templateInto(core: EditorCore, id: TemplateId, chrome?: FileChrome): void;
|
|
17
28
|
export declare function saveBytes(core: EditorCore, format?: 'xlsx' | 'csv'): Promise<Uint8Array>;
|
|
@@ -21,6 +32,8 @@ export declare const isSaving: (core: EditorCore) => boolean;
|
|
|
21
32
|
export interface FileCommandOptions {
|
|
22
33
|
chrome?: FileChrome;
|
|
23
34
|
openBackstage?(page: 'saveAs'): void;
|
|
35
|
+
/** Share's default: the Share dialog. */
|
|
36
|
+
openShare?(): void;
|
|
24
37
|
}
|
|
25
38
|
/** Runs a File command unless a host cancels the `file-command` event to handle it itself. */
|
|
26
39
|
export declare function runFileCommand(core: EditorCore, command: FileCommand, fileName: string | undefined, options?: FileCommandOptions): Promise<void>;
|
|
@@ -9,6 +9,7 @@ import { type FileChrome } from './editor-files.js';
|
|
|
9
9
|
import { type FileCommand } from './events.js';
|
|
10
10
|
import { type Ribbon } from './ribbon/ribbon.js';
|
|
11
11
|
import { type SaveState, type TitleBar } from './title-bar.js';
|
|
12
|
+
import { type ShareDialogController } from '../dialog/share-controller.js';
|
|
12
13
|
/** Element properties the shell's options and customize pages change. */
|
|
13
14
|
export interface ShellElement extends HTMLElement {
|
|
14
15
|
locale: string;
|
|
@@ -25,5 +26,7 @@ export interface Shell {
|
|
|
25
26
|
readonly chrome: FileChrome;
|
|
26
27
|
saveState(): SaveState;
|
|
27
28
|
fileCommand(command: FileCommand, fileName?: string): Promise<void>;
|
|
29
|
+
/** The Share dialog (Share button, File > Share, `element.share()`). */
|
|
30
|
+
readonly share: ShareDialogController;
|
|
28
31
|
}
|
|
29
32
|
export declare function buildShell(core: EditorCore): Shell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentStorage } from 'ooxml-core/embedding';
|
|
1
|
+
import type { CloudOpenedFile, DocumentStorage } from 'ooxml-core/embedding';
|
|
2
2
|
/**
|
|
3
3
|
* The public methods of `<xlsx-editor>` (load, newWorkbook, save, saveBytes, download, markClean,
|
|
4
4
|
* select, getSelection, setActiveSheet, collaboration, share, undo, redo, focusGrid). The properties and lifecycle are
|
|
@@ -35,10 +35,19 @@ export declare class XlsxEditorApi extends HTMLElementBase {
|
|
|
35
35
|
protected readonly core: EditorCore;
|
|
36
36
|
/** Set by the shell once connected. */
|
|
37
37
|
protected chrome: FileChrome | undefined;
|
|
38
|
-
/** Set by the shell once connected: opens
|
|
38
|
+
/** Set by the shell once connected: opens the Share dialog. */
|
|
39
39
|
protected openShare: (() => void) | undefined;
|
|
40
|
+
/** Set by the shell once connected: leaves the File backstage. */
|
|
41
|
+
protected closeBackstage: (() => void) | undefined;
|
|
40
42
|
/** Opens .xlsx, .xlsm, .xltx, .xls or .csv bytes; `fileName` helps detection and names the file. */
|
|
41
43
|
load(bytes: Uint8Array | ArrayBuffer, fileName?: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Opens a file a host got from a `CloudFileProvider` (its own picker or a start page), exactly as
|
|
46
|
+
* File > Open > OneDrive does: the discard confirmation when there are unsaved changes, the file's
|
|
47
|
+
* name, read-only when `file.canEdit` is false, and Save and Save As routed to `file.storage`.
|
|
48
|
+
* Resolves once open (or when the user declines to discard); rejects when the load fails.
|
|
49
|
+
*/
|
|
50
|
+
openCloudFile(file: CloudOpenedFile): Promise<void>;
|
|
42
51
|
/** Starts a blank workbook named Book1.xlsx. */
|
|
43
52
|
newWorkbook(): void;
|
|
44
53
|
/** The workbook as .xlsx bytes (or the active sheet as CSV). Does not clear `dirty`. */
|
|
@@ -69,9 +78,9 @@ export declare class XlsxEditorApi extends HTMLElementBase {
|
|
|
69
78
|
/** Who is in the room and how the connection is. */
|
|
70
79
|
get collaborationState(): XlsxCollaborationState;
|
|
71
80
|
/**
|
|
72
|
-
* Opens
|
|
73
|
-
* application UI (`surfaceOnly`) it calls the host's
|
|
74
|
-
* nothing when there is none (`getToolbarProps().enabled.openShareDialog` tells which).
|
|
81
|
+
* Opens the Share dialog, where the user starts, joins or stops sharing, copies the invitation
|
|
82
|
+
* link and sees who is in the room. Without application UI (`surfaceOnly`) it calls the host's
|
|
83
|
+
* `onOpenShareDialog` instead, and does nothing when there is none (`getToolbarProps().enabled.openShareDialog` tells which).
|
|
75
84
|
*/
|
|
76
85
|
share(): void;
|
|
77
86
|
/** Undo the last edit; while shared, only this window's edits are undone. */
|