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
package/dist/xlsx.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { statusLayout, watchStatusWidth, defineChartExOptions } from './chunk-
|
|
1
|
+
import { statusLayout, watchStatusWidth, defineChartExOptions } from './chunk-II43ALTT.js';
|
|
2
2
|
import { trackPointerGesture } from './chunk-GSXOZCAN.js';
|
|
3
|
-
import { chartExSpaceFormatSource } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { attachShareDialog, chartExSpaceFormatSource, connectedServicesLabels } from './chunk-4RFFOPBU.js';
|
|
4
|
+
import './chunk-TTT5IQBU.js';
|
|
5
5
|
import './chunk-DA57FPSN.js';
|
|
6
|
-
import { createHostBackstagePages, syncRibbonAddIns, withHostMenuItems } from './chunk-
|
|
7
|
-
export { RIBBON_ADD_IN_EVENT } from './chunk-
|
|
8
|
-
import { needsPicturePixels, pictureSvg, pictureEffectFilter, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, smartArtStylesGalleryState, smartArtColorsGalleryState, safeColor, svgTile } from './chunk-
|
|
9
|
-
import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-
|
|
10
|
-
export { XLSX_EDITOR_EVENTS } from './chunk-
|
|
11
|
-
import './chunk-
|
|
6
|
+
import { createHostBackstagePages, syncRibbonAddIns, withHostMenuItems } from './chunk-LBIABP4I.js';
|
|
7
|
+
export { RIBBON_ADD_IN_EVENT } from './chunk-LBIABP4I.js';
|
|
8
|
+
import { needsPicturePixels, pictureSvg, pictureEffectFilter, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, smartArtStylesGalleryState, smartArtColorsGalleryState, safeColor, svgTile } from './chunk-6FFZFH73.js';
|
|
9
|
+
import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-7L4NP4HN.js';
|
|
10
|
+
export { XLSX_EDITOR_EVENTS } from './chunk-7L4NP4HN.js';
|
|
11
|
+
import './chunk-4ZSZPUE5.js';
|
|
12
12
|
import './chunk-CDAXY5KC.js';
|
|
13
13
|
import './chunk-NDUD5JJB.js';
|
|
14
14
|
import './chunk-KJMAVPQB.js';
|
|
15
|
-
import { legacyThemeAliases, legacyThemeBridge, installOfficeUiThemeFor } from './chunk-
|
|
16
|
-
import { range_control_default, createRibbonOverflow, defineBackstage, defineRibbon, defineRibbonActions, defineTitleBar, defineStatusBar, defineZoomSlider, defineChartFormatPane, defineChartDataSheet, defineOptionsDialog, defineDialog, createDialogSession, optionsLabels, runKeyTips, assignKeyTips, chartFormatTranslator, chartSpaceFormatSource, CHART_DATA_SHEET_ENGLISH, userInterfaceSection, personalizeSection, optionText, unavailableControl, unavailableCategory, defineGallery, defineContextMenu, rangeControl, defineColorGrid, wireTabDrag, defineCommentsPane, defineChartPicker, createLiveColorInput, handleLiveColorEvent } from './chunk-
|
|
15
|
+
import { legacyThemeAliases, legacyThemeBridge, installOfficeUiThemeFor } from './chunk-N6AKS4ED.js';
|
|
16
|
+
import { range_control_default, createRibbonOverflow, defineBackstage, defineRibbon, defineRibbonActions, defineTitleBar, defineStatusBar, defineZoomSlider, defineChartFormatPane, defineChartDataSheet, confirmDialog, defineOptionsDialog, defineDialog, createDialogSession, optionsLabels, defineConnectedServices, defineOpenPlaces, runKeyTips, assignKeyTips, chartFormatTranslator, chartSpaceFormatSource, CHART_DATA_SHEET_ENGLISH, userInterfaceSection, personalizeSection, optionText, unavailableControl, unavailableCategory, defineGallery, defineContextMenu, rangeControl, defineColorGrid, wireTabDrag, defineCommentsPane, defineChartPicker, createLiveColorInput, handleLiveColorEvent } from './chunk-Y6KY34VD.js';
|
|
17
17
|
import { getIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
18
18
|
import './chunk-4OBMFPGF.js';
|
|
19
|
-
import { definePresence } from './chunk-
|
|
19
|
+
import { definePresence } from './chunk-Q6WZEGAM.js';
|
|
20
20
|
import './chunk-FN7IF6M6.js';
|
|
21
|
-
import { withTokens } from './chunk-
|
|
22
|
-
import './chunk-
|
|
21
|
+
import { withTokens } from './chunk-FE5KE5TR.js';
|
|
22
|
+
import './chunk-6EOS74O4.js';
|
|
23
23
|
import { SPECIAL_CODES, FRACTION_CODES, translate, INSERT_CHART_TYPES, AUTOSUM_FUNCTIONS, ICON_ACCENTS, ICON_PATHS, normalizeEditorLocale, EXCEL_CAPABILITY_BACKSTAGE_PAGES, EXCEL_CAPABILITY_COMMANDS, normalizeThemeMode, applyThemeColors, parseSelectionRef, selectionRef, fontCommands, alignmentCommands, numberCommands, editBridge, FONT_SIZES, FONT_NAMES, style, activeRef, numberFormatOptions, selectionFormatting, DirtyState, createCommandRegistry, createDialogRegistry, createSelectionModel, SheetSelections, translator, initialSelection, sheetBaseName, historyOf, onRibbonTabsChange, activeChart, CellViewCache, QUADRANTS, columnHeaderHeight, rowHeaderWidth, GridGeometry, cellRange, scrollToReveal, buildItems, fitNumber, cssFont, clampAddress, selectCell, movingEnd, extendSelection, moveWithinSelection, rowsRange, colsRange, ALL_RANGE, onAuditChange, setErrorRules, ribbonTabs, isTabHidden, selectTab, setTabHidden, tabButton, searchCommands, formatNumber, target, activeSmartArt, isSingleCell, spanRange, selectionCellCount, auditState, setSelectionPane, addRange, TEMPLATES, createTemplateWorkbook, fillPaint, iconSvg, colSelected, rowSelected, rowHeaderMenu, columnHeaderMenu, cellMenu, isMenuSeparator, textDecoration, justify, alignItems, textAlign, hasBorders, edgeCss, diagonalSvg, registerRibbonTabs, installFormatPainter, SHEET_ICONS, clipboardCommands, cellCommands, editingCommands, pageLayoutCommands, pageBreakCommands, formulaCommands, dataCommands, whatIfCommands, contextualCommands, reviewTab, viewTab, helpTab, tabMenu, editing, icon, DATA_BAR_COLORS, dataBarRule, COLOR_SCALES, colorScaleRule, iconSetRule, tableAt, timelineSourceAt, slicerSourceAt, viewing, activeTable, removeWatch, setWatchWindowOpen, BORDER_PRESETS, ORIENTATIONS, ACCOUNTING_FORMATS, themePaletteItems, MARGIN_PRESETS, PAPER_SIZES, FUNCTION_MENUS, MORE_FUNCTION_CATEGORIES, functionsIn, activeSlicer, activeTimeline, activeStyle, selectSpecial, insertFunctionCall, guessHeader, regionOf, evaluateRef, editChart, suggestForecastEnd, FORECAST_AGGREGATIONS, createForecastSheet, ForecastError, forecastMessage, HIGHLIGHT_STYLES, addWatch, ICON_SETS, TABLE_STYLES, tableStylePreview, resolveNameBox, absoluteReference, nameForRange, recentFunctions, buildChart, createScenarioSummary, detectCategory, CATEGORIES, TIME_CODES, DATE_CODES, DEFAULT_OPTIONS, cellStyleItems, SYMBOLS, buildCode, UNSET, dxfCss, negativeCodes, iconCount, iconThresholds, rowsOf, colsOf } from 'ooxml-core/xlsx/ui';
|
|
24
24
|
export { EDITOR_LOCALES, EXCEL_CAPABILITY_IDS, THEME_KEYS, normalizeEditorLocale, registerRibbonTabs, themeToCssVars, darkTheme as xlsxDarkTheme, lightTheme as xlsxLightTheme } from 'ooxml-core/xlsx/ui';
|
|
25
25
|
import { createWorksheet, cellInputText, createEditSession, approximateMeasure, createWorkbook, MAX_ROW, MAX_COL, createGridMetrics, splitToPx, splitAtCell, mergeAt, splitVisible, visibleCells, getCell, FUNCTION_CATALOG, closeParens, isFormulaText, parseCellInput, formatAddress, referenceTarget, navigate, anchorToPixelBox, createRefEvaluator, chartView, renderChartSvg, CHART_FILL_PARTS, selectionOfPeriods, pixelBoxToAnchor, listValidationOptions, validationAt, getValue, hasFilterCriteria, resolvePasteOptions, ERROR_RULES, selectionStats, formatSelectionStat, chartSpaceOf, xlsxChartExDataSheet, pictureAnchorAt, nameAtCaret, functionMatches, callAtCaret, acceptsReference, formatRange, splice, translateFormula, slicerStyleColors, slicerGeometry, timelineGeometry, TIMELINE_PERIOD_WIDTH, TIMELINE_METRICS, controlStateIn, controlListItems, formControlSvg, shapeSvg, controlLinkCell, controlValueAtFraction, timelineView, slicerItems, selectionAfterClick, isCellError, filterMenuModel, displayText, layoutRemoteSelections, parseHtmlTable, CUT_MULTIPLE, toggleAbsolute, rangeContains, printRange, chartSeriesTransparencyPatch, chartSeriesTransparency, chartSeriesGradientPatch, chartSeriesSolidFillPatch, chartSeriesFillPatch, chartWithElementFills, chartElementTransparencyPatch, chartElementTransparency, chartElementGradientPatch, chartElementSolidFillPatch, chartElementFillPatch, chartElementFill, chartColorScheme, chartBarSpacing, columnLabel, coloredReferences, syntaxParams, activeParam, drawingSchemeColors, applyControlAction, checklistCriteria, pageBreakPreview, pxToSplit, pasteAreas, normalizeRange, currentRegion, autoFitColumnWidth, chartGradientStopTransparency, paginateWorksheet, colorFilterCriteria, clampSplitBar, resolveColor, DEFAULT_THEME, pageHeaderFooter, createPrintMergeIndex, cellView, pixelsToColumnWidth, renderHeaderFooterRuns, planBreakDrag, resizePrintArea, headerFooterPicture, nextSheetName, sheetByName, pivotGroupableFields, pivotGroupableDateFields, pivotSubtotalFields, DEFAULT_COL_WIDTH, pageViewLayout, formatValue, isDateFormat, selectedSparklineGroups, pivotTableAt, FormulaStepper, findErrors, adjacentIssue, withIgnoredError, parseNumberText, validateDefinedName, usedRange, pivotAxisChoices, parseAddress, PIVOT_DATE_UNITS, PIVOT_SUBTOTAL_ORDER, parseRange, decodeCondition, customFilter, topFilterCriteria, parseInputCell, serialToDate, styleAt, rangesIntersect, watchExists, describeWatch, watchValueText, chartStylePresetOf, chartTakesQuickLayout, SLICER_STYLE_NAMES, slicerStyleLabel, slicerStylePreview, pageViewCellRect, pageOfCell, validateSheetName, dateToSerial, IMAGE_EXTENSIONS, verifySheetPassword, verifyWorkbookPassword, quoteSheetName, pivotRowFields, pivotValuesIndex, pivotSourceData, defaultFieldGroup, defaultDateGroup, dateGroupDays, pivotIsoToSerial, fieldSubtotalFunctions, printTitles, formatPrintTitleSpan, parsePrintTitleSpan, parseBreakPositions, splitFixedWidth, splitDelimited, scenariosOf, parseSortList, PAGE_VIEW_GAP, pivotPageItems, pivotPageItemLabel, pivotSerialToIso, previewScenario, customViewsOf, BUILTIN_NUMBER_FORMATS, BUILT_IN_SORT_LISTS, sortChoices, validateTableName, pixelsToEmu, pageViewHit, resizedFrameAnchor, headerFooterKey, splitHeaderFooter, composeHeaderFooter } from 'ooxml-core/xlsx';
|
|
@@ -662,18 +662,6 @@ function renderNew(page) {
|
|
|
662
662
|
}
|
|
663
663
|
page.content.replaceChildren(heading(page, t("New")), tiles);
|
|
664
664
|
}
|
|
665
|
-
function renderOpen(page) {
|
|
666
|
-
const { t } = page;
|
|
667
|
-
page.content.replaceChildren(
|
|
668
|
-
heading(page, t("Open")),
|
|
669
|
-
paragraph(
|
|
670
|
-
page,
|
|
671
|
-
t("Open an Excel workbook (.xlsx, .xlsm, .xls) or a CSV file from this device.")
|
|
672
|
-
),
|
|
673
|
-
primary(page, t("Browse..."), runFile(page, "open")),
|
|
674
|
-
paragraph(page, t("Files are processed entirely in the browser."), "xve-backstage-muted")
|
|
675
|
-
);
|
|
676
|
-
}
|
|
677
665
|
function renderSaveAs(page) {
|
|
678
666
|
const { t, host, doc } = page;
|
|
679
667
|
const name = doc.createElement("input");
|
|
@@ -757,6 +745,87 @@ function renderExport(page) {
|
|
|
757
745
|
)
|
|
758
746
|
);
|
|
759
747
|
}
|
|
748
|
+
|
|
749
|
+
// src/xlsx/backstage/cloud-labels.ts
|
|
750
|
+
function cloudLabels(t) {
|
|
751
|
+
return {
|
|
752
|
+
signInHeading: t("Sign in to {provider}"),
|
|
753
|
+
signInText: t("Sign in to open and save your files in {provider}."),
|
|
754
|
+
signIn: t("Sign in"),
|
|
755
|
+
signOut: t("Sign out"),
|
|
756
|
+
providers: t("Places"),
|
|
757
|
+
recent: t("Recent"),
|
|
758
|
+
myFiles: t("My files"),
|
|
759
|
+
location: t("Location"),
|
|
760
|
+
searchPlaceholder: t("Search files"),
|
|
761
|
+
openLink: t("Open from a link"),
|
|
762
|
+
openLinkPlaceholder: t("Paste a sharing link"),
|
|
763
|
+
openLinkButton: t("Open"),
|
|
764
|
+
files: t("Files"),
|
|
765
|
+
name: t("Name"),
|
|
766
|
+
modified: t("Modified"),
|
|
767
|
+
size: t("Size"),
|
|
768
|
+
loadMore: t("Load more"),
|
|
769
|
+
loading: t("Loading"),
|
|
770
|
+
empty: t("There are no files here."),
|
|
771
|
+
emptySearch: t("No files match your search."),
|
|
772
|
+
unsupported: t("This file cannot be opened here"),
|
|
773
|
+
opening: t("Opening {name}"),
|
|
774
|
+
openingPercent: t("Opening {name} ({percent}%)"),
|
|
775
|
+
cancel: t("Cancel"),
|
|
776
|
+
folder: t("Folder"),
|
|
777
|
+
failed: t("Something went wrong.")
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// src/xlsx/backstage/pages-open.ts
|
|
782
|
+
var lastPlace = /* @__PURE__ */ new WeakMap();
|
|
783
|
+
function device(page) {
|
|
784
|
+
const { t } = page;
|
|
785
|
+
return [
|
|
786
|
+
paragraph(
|
|
787
|
+
page,
|
|
788
|
+
t("Open an Excel workbook (.xlsx, .xlsm, .xls) or a CSV file from this device.")
|
|
789
|
+
),
|
|
790
|
+
primary(page, t("Browse..."), runFile(page, "open")),
|
|
791
|
+
paragraph(page, t("Files are processed entirely in the browser."), "xve-backstage-muted")
|
|
792
|
+
];
|
|
793
|
+
}
|
|
794
|
+
function renderOpen(page) {
|
|
795
|
+
const { t, host, doc } = page;
|
|
796
|
+
const providers = host.fileProviders?.() ?? [];
|
|
797
|
+
if (!providers.length) {
|
|
798
|
+
page.content.replaceChildren(heading(page, t("Open")), ...device(page));
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
defineOpenPlaces();
|
|
802
|
+
const places = doc.createElement("office-ui-open-places");
|
|
803
|
+
places.providers = providers;
|
|
804
|
+
places.accept = ["xlsx"];
|
|
805
|
+
places.labels = { ...cloudLabels(t), thisDevice: t("This device"), places: t("Places") };
|
|
806
|
+
places.locale = host.options().locale;
|
|
807
|
+
places.selected = lastPlace.get(host) ?? places.selected;
|
|
808
|
+
places.addEventListener(
|
|
809
|
+
"office-open-place-change",
|
|
810
|
+
(event) => lastPlace.set(host, event.detail.place)
|
|
811
|
+
);
|
|
812
|
+
places.addEventListener("office-cloud-file-open", (event) => {
|
|
813
|
+
event.stopPropagation();
|
|
814
|
+
host.openCloudFile?.(event.detail.file);
|
|
815
|
+
});
|
|
816
|
+
places.append(...device(page));
|
|
817
|
+
page.content.replaceChildren(heading(page, t("Open")), places);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// src/xlsx/backstage/pages-account.ts
|
|
821
|
+
function renderAccount(page) {
|
|
822
|
+
const { t, host, doc } = page;
|
|
823
|
+
defineConnectedServices();
|
|
824
|
+
const services = doc.createElement("office-ui-connected-services");
|
|
825
|
+
services.providers = host.fileProviders?.() ?? [];
|
|
826
|
+
services.labels = connectedServicesLabels(t);
|
|
827
|
+
page.content.replaceChildren(heading(page, t("Account")), services);
|
|
828
|
+
}
|
|
760
829
|
function commandsOf(control) {
|
|
761
830
|
switch (control.kind) {
|
|
762
831
|
case "stack":
|
|
@@ -1081,7 +1150,6 @@ var STATUS = {
|
|
|
1081
1150
|
disconnected: "Disconnected. Changes are kept and sent when the connection returns.",
|
|
1082
1151
|
error: "The connection failed. Changes are kept and sent when the connection returns."
|
|
1083
1152
|
};
|
|
1084
|
-
var suggestRoom = () => `book-${Math.random().toString(36).slice(2, 8)}`;
|
|
1085
1153
|
function renderShare(page) {
|
|
1086
1154
|
const { t, doc } = page;
|
|
1087
1155
|
const share = page.host.share;
|
|
@@ -1090,11 +1158,14 @@ function renderShare(page) {
|
|
|
1090
1158
|
return;
|
|
1091
1159
|
}
|
|
1092
1160
|
const state = share.state();
|
|
1093
|
-
const status = paragraph(
|
|
1161
|
+
const status = paragraph(
|
|
1162
|
+
page,
|
|
1163
|
+
t(
|
|
1164
|
+
state.status === "connected" && !state.synced ? "Joining the session..." : STATUS[state.status]
|
|
1165
|
+
),
|
|
1166
|
+
"xve-share-status"
|
|
1167
|
+
);
|
|
1094
1168
|
status.setAttribute("role", "status");
|
|
1095
|
-
const say = (message) => {
|
|
1096
|
-
status.textContent = message;
|
|
1097
|
-
};
|
|
1098
1169
|
const children = [
|
|
1099
1170
|
heading(page, t("Share")),
|
|
1100
1171
|
paragraph(
|
|
@@ -1104,29 +1175,8 @@ function renderShare(page) {
|
|
|
1104
1175
|
)
|
|
1105
1176
|
)
|
|
1106
1177
|
];
|
|
1107
|
-
if (state.active)
|
|
1178
|
+
if (state.active)
|
|
1108
1179
|
children.push(paragraph(page, t("Session: {room}", { room: state.roomId ?? "" })));
|
|
1109
|
-
if (state.status === "connected" && !state.synced) say(t("Joining the session..."));
|
|
1110
|
-
} else {
|
|
1111
|
-
const room = doc.createElement("input");
|
|
1112
|
-
room.type = "text";
|
|
1113
|
-
room.className = "xve-share-room";
|
|
1114
|
-
room.maxLength = 128;
|
|
1115
|
-
room.autocomplete = "off";
|
|
1116
|
-
room.spellcheck = false;
|
|
1117
|
-
room.value = suggestRoom();
|
|
1118
|
-
children.push(labelled(page, t("Session name"), room));
|
|
1119
|
-
const start = primary(page, t("Start sharing"), () => {
|
|
1120
|
-
start.disabled = true;
|
|
1121
|
-
say(t("Connecting..."));
|
|
1122
|
-
share.start(room.value.trim()).catch((error) => {
|
|
1123
|
-
start.disabled = false;
|
|
1124
|
-
say(t(error instanceof Error ? error.message : String(error)));
|
|
1125
|
-
});
|
|
1126
|
-
});
|
|
1127
|
-
start.dataset.share = "start";
|
|
1128
|
-
children.push(start);
|
|
1129
|
-
}
|
|
1130
1180
|
children.push(status);
|
|
1131
1181
|
if (state.active) {
|
|
1132
1182
|
definePresence();
|
|
@@ -1134,9 +1184,15 @@ function renderShare(page) {
|
|
|
1134
1184
|
people.className = "xve-share-people";
|
|
1135
1185
|
people.setAttribute("label", t("People in this session"));
|
|
1136
1186
|
people.participants = participants(state);
|
|
1187
|
+
children.push(people);
|
|
1188
|
+
}
|
|
1189
|
+
const open = primary(page, t("Share with people"), () => share.open());
|
|
1190
|
+
open.dataset.share = "open";
|
|
1191
|
+
children.push(open);
|
|
1192
|
+
if (state.active) {
|
|
1137
1193
|
const stop = primary(page, t("Stop sharing"), () => share.stop());
|
|
1138
1194
|
stop.dataset.share = "stop";
|
|
1139
|
-
children.push(
|
|
1195
|
+
children.push(stop);
|
|
1140
1196
|
}
|
|
1141
1197
|
children.push(
|
|
1142
1198
|
paragraph(
|
|
@@ -1204,7 +1260,8 @@ var PAGES = [
|
|
|
1204
1260
|
["saveAs", "Save As"],
|
|
1205
1261
|
["print", "Print"],
|
|
1206
1262
|
["share", "Share"],
|
|
1207
|
-
["export", "Export"]
|
|
1263
|
+
["export", "Export"],
|
|
1264
|
+
["account", "Account"]
|
|
1208
1265
|
];
|
|
1209
1266
|
var RENDERERS = {
|
|
1210
1267
|
info: renderInfo,
|
|
@@ -1213,7 +1270,8 @@ var RENDERERS = {
|
|
|
1213
1270
|
saveAs: renderSaveAs,
|
|
1214
1271
|
print: renderPrint,
|
|
1215
1272
|
share: renderShare,
|
|
1216
|
-
export: renderExport
|
|
1273
|
+
export: renderExport,
|
|
1274
|
+
account: renderAccount
|
|
1217
1275
|
};
|
|
1218
1276
|
function createBackstage(host) {
|
|
1219
1277
|
const { ctx } = host;
|
|
@@ -1272,6 +1330,7 @@ function createBackstage(host) {
|
|
|
1272
1330
|
const page = (id) => item(id, label.get(id));
|
|
1273
1331
|
hostPages.setPages(custom().extraPages);
|
|
1274
1332
|
const hidden = custom().backstagePages;
|
|
1333
|
+
const noAccount = !host.fileProviders?.().length;
|
|
1275
1334
|
element.items = hostPages.items(
|
|
1276
1335
|
[
|
|
1277
1336
|
page("info"),
|
|
@@ -1282,8 +1341,9 @@ function createBackstage(host) {
|
|
|
1282
1341
|
page("print"),
|
|
1283
1342
|
page("share"),
|
|
1284
1343
|
page("export"),
|
|
1344
|
+
page("account"),
|
|
1285
1345
|
item("options", "Options", "footer")
|
|
1286
|
-
].filter((entry) => !hidden.has(entry.id))
|
|
1346
|
+
].filter((entry) => !hidden.has(entry.id) && !(noAccount && entry.id === "account"))
|
|
1287
1347
|
);
|
|
1288
1348
|
options.relocalize();
|
|
1289
1349
|
if (element.open) show(current);
|
|
@@ -1294,7 +1354,7 @@ function createBackstage(host) {
|
|
|
1294
1354
|
optionsDialog: options.element,
|
|
1295
1355
|
open(requested = "info") {
|
|
1296
1356
|
const hidden = custom().backstagePages;
|
|
1297
|
-
const page = hidden.has(requested === "customize" ? "options" : requested) ? "info" : requested;
|
|
1357
|
+
const page = hidden.has(requested === "customize" ? "options" : requested) || requested === "account" && !host.fileProviders?.().length ? "info" : requested;
|
|
1298
1358
|
if (page === "options" || page === "customize") {
|
|
1299
1359
|
showOptions(page === "customize" ? "ribbon" : void 0);
|
|
1300
1360
|
return;
|
|
@@ -1711,7 +1771,7 @@ function showWorkbook(core, workbook, fileName, chrome) {
|
|
|
1711
1771
|
chrome?.setSaveState("saved");
|
|
1712
1772
|
emit(core.host, "workbook-change", { workbook });
|
|
1713
1773
|
}
|
|
1714
|
-
async function loadInto(core, bytes, fileName, chrome) {
|
|
1774
|
+
async function loadInto(core, bytes, fileName, chrome, cloud) {
|
|
1715
1775
|
const generation = ++core.loadGeneration;
|
|
1716
1776
|
core.loading = true;
|
|
1717
1777
|
core.requestRender();
|
|
@@ -1738,6 +1798,16 @@ async function loadInto(core, bytes, fileName, chrome) {
|
|
|
1738
1798
|
}
|
|
1739
1799
|
if (generation !== core.loadGeneration) return;
|
|
1740
1800
|
showWorkbook(core, workbook, fileName || core.fileName || DEFAULT_FILE_NAME, chrome);
|
|
1801
|
+
if (cloud) {
|
|
1802
|
+
core.fileStorage = cloud.storage;
|
|
1803
|
+
if (!cloud.canEdit) {
|
|
1804
|
+
core.setFileReadOnly(true);
|
|
1805
|
+
core.shell?.toast(
|
|
1806
|
+
core.ctx.t("This workbook is read-only because the file cannot be edited."),
|
|
1807
|
+
"info"
|
|
1808
|
+
);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1741
1811
|
if (workbook.warnings.length)
|
|
1742
1812
|
emit(core.host, "workbook-warning", { warnings: [...workbook.warnings] });
|
|
1743
1813
|
const notes = formatNotes(workbook, core.ctx.t);
|
|
@@ -1751,6 +1821,24 @@ async function loadInto(core, bytes, fileName, chrome) {
|
|
|
1751
1821
|
}
|
|
1752
1822
|
}
|
|
1753
1823
|
}
|
|
1824
|
+
function confirmDiscard(core, message) {
|
|
1825
|
+
const t = core.ctx.t;
|
|
1826
|
+
return confirmDialog({
|
|
1827
|
+
title: t("Unsaved changes"),
|
|
1828
|
+
message: t(message),
|
|
1829
|
+
confirmLabel: t("Discard"),
|
|
1830
|
+
cancelLabel: t("Cancel"),
|
|
1831
|
+
tone: "danger",
|
|
1832
|
+
host: core.host
|
|
1833
|
+
});
|
|
1834
|
+
}
|
|
1835
|
+
async function openCloudFile(core, file, chrome, confirmed) {
|
|
1836
|
+
if (core.dirty.dirty && !await confirmDiscard(core, "Discard unsaved changes and open another workbook?"))
|
|
1837
|
+
return false;
|
|
1838
|
+
confirmed?.();
|
|
1839
|
+
await loadInto(core, file.bytes, file.fileName, chrome, file);
|
|
1840
|
+
return core.fileStorage === file.storage;
|
|
1841
|
+
}
|
|
1754
1842
|
function newInto(core, chrome) {
|
|
1755
1843
|
core.loadGeneration++;
|
|
1756
1844
|
const first = `${sheetBaseName(core.ctx.t)}1`;
|
|
@@ -1790,7 +1878,7 @@ var saving = /* @__PURE__ */ new WeakSet();
|
|
|
1790
1878
|
async function saveDownload(core, chrome, reason = "save") {
|
|
1791
1879
|
const source = core.workbook?.format;
|
|
1792
1880
|
let name = withExtension(core.fileName, saveExtension(core.fileName));
|
|
1793
|
-
const storage = core.customization.commands.has("file.save") ? void 0 : core.storage;
|
|
1881
|
+
const storage = core.customization.commands.has("file.save") ? void 0 : core.fileStorage ?? core.storage;
|
|
1794
1882
|
let edited = false;
|
|
1795
1883
|
const changed = () => edited = true;
|
|
1796
1884
|
saving.add(core);
|
|
@@ -1830,7 +1918,8 @@ var FILE_COMMAND_IDS = {
|
|
|
1830
1918
|
saveAs: "file.save-as",
|
|
1831
1919
|
export: "file.export",
|
|
1832
1920
|
exportCsv: "file.export-csv",
|
|
1833
|
-
print: "file.print"
|
|
1921
|
+
print: "file.print",
|
|
1922
|
+
share: "file.share"
|
|
1834
1923
|
};
|
|
1835
1924
|
async function runFileCommand(core, command, fileName, options = {}) {
|
|
1836
1925
|
if (core.customization.commands.has(FILE_COMMAND_IDS[command])) return;
|
|
@@ -1841,11 +1930,11 @@ async function runFileCommand(core, command, fileName, options = {}) {
|
|
|
1841
1930
|
try {
|
|
1842
1931
|
switch (command) {
|
|
1843
1932
|
case "new":
|
|
1844
|
-
if (core.dirty.dirty &&
|
|
1933
|
+
if (core.dirty.dirty && !await confirmDiscard(core, "Discard unsaved changes and start a new workbook?"))
|
|
1845
1934
|
return;
|
|
1846
1935
|
return newInto(core, chrome);
|
|
1847
1936
|
case "open": {
|
|
1848
|
-
if (core.dirty.dirty &&
|
|
1937
|
+
if (core.dirty.dirty && !await confirmDiscard(core, "Discard unsaved changes and open another workbook?"))
|
|
1849
1938
|
return;
|
|
1850
1939
|
const storage = core.storage;
|
|
1851
1940
|
const file = storage?.open ? await storage.open().then((opened) => opened && { bytes: opened.bytes, name: opened.fileName }) : await pickFile(core.host.shadowRoot ?? core.host);
|
|
@@ -1874,6 +1963,8 @@ async function runFileCommand(core, command, fileName, options = {}) {
|
|
|
1874
1963
|
core.shell?.toast(t("Only the current sheet was saved as CSV."), "info");
|
|
1875
1964
|
return;
|
|
1876
1965
|
}
|
|
1966
|
+
case "share":
|
|
1967
|
+
return options.openShare?.();
|
|
1877
1968
|
case "print":
|
|
1878
1969
|
if (!core.workbook) return;
|
|
1879
1970
|
return printWorkbook(
|
|
@@ -3318,12 +3409,12 @@ function resolveReference(ctx, input, depth = 0) {
|
|
|
3318
3409
|
function openGoTo(ctx) {
|
|
3319
3410
|
const workbook = ctx.workbook();
|
|
3320
3411
|
const reference = textInput(ctx);
|
|
3321
|
-
let
|
|
3412
|
+
let confirm;
|
|
3322
3413
|
const list = listBox(
|
|
3323
3414
|
ctx,
|
|
3324
3415
|
"Go to:",
|
|
3325
3416
|
(name) => reference.value = name,
|
|
3326
|
-
() =>
|
|
3417
|
+
() => confirm?.()
|
|
3327
3418
|
);
|
|
3328
3419
|
const names = (workbook?.definedNames ?? []).filter(
|
|
3329
3420
|
(n) => !n.hidden && !n.name.startsWith("_xlnm.")
|
|
@@ -3350,7 +3441,7 @@ function openGoTo(ctx) {
|
|
|
3350
3441
|
}
|
|
3351
3442
|
},
|
|
3352
3443
|
(open) => {
|
|
3353
|
-
|
|
3444
|
+
confirm = () => open.element.querySelector(".xve-btn-primary")?.click();
|
|
3354
3445
|
special.addEventListener("click", () => {
|
|
3355
3446
|
open.close();
|
|
3356
3447
|
void ctx.dialogs.open("go-to-special");
|
|
@@ -4818,13 +4909,13 @@ function openInsertFunction(ctx, props2 = {}) {
|
|
|
4818
4909
|
syntax.style.fontWeight = "600";
|
|
4819
4910
|
const description = el(ctx, "p", "xve-note");
|
|
4820
4911
|
const args = textInput(ctx);
|
|
4821
|
-
let
|
|
4912
|
+
let confirm;
|
|
4822
4913
|
const describe = (name) => {
|
|
4823
4914
|
const info = FUNCTION_CATALOG.find((f) => f.name === name);
|
|
4824
4915
|
syntax.textContent = info?.syntax ?? "";
|
|
4825
4916
|
description.textContent = info ? ctx.t(info.description) : "";
|
|
4826
4917
|
};
|
|
4827
|
-
const list = listBox(ctx, "Select a function:", describe, () =>
|
|
4918
|
+
const list = listBox(ctx, "Select a function:", describe, () => confirm?.());
|
|
4828
4919
|
const fill = (items2) => {
|
|
4829
4920
|
list.setItems(items2.map((f) => [f.name, f.name]));
|
|
4830
4921
|
const first = items2[0];
|
|
@@ -4881,7 +4972,7 @@ function openInsertFunction(ctx, props2 = {}) {
|
|
|
4881
4972
|
}
|
|
4882
4973
|
},
|
|
4883
4974
|
(open) => {
|
|
4884
|
-
|
|
4975
|
+
confirm = () => open.element.querySelector(".xve-btn-primary")?.click();
|
|
4885
4976
|
}
|
|
4886
4977
|
);
|
|
4887
4978
|
}
|
|
@@ -6810,7 +6901,7 @@ function registerRuleDialogs(ctx) {
|
|
|
6810
6901
|
}
|
|
6811
6902
|
|
|
6812
6903
|
// src/xlsx/dialogs/prompts.ts
|
|
6813
|
-
function
|
|
6904
|
+
function confirmDialog2(ctx, props2) {
|
|
6814
6905
|
return showDialog(ctx, {
|
|
6815
6906
|
name: "confirm",
|
|
6816
6907
|
heading: props2.heading,
|
|
@@ -6865,8 +6956,8 @@ function numberPrompt(ctx, props2) {
|
|
|
6865
6956
|
});
|
|
6866
6957
|
}
|
|
6867
6958
|
function pickDialog(ctx, props2) {
|
|
6868
|
-
let
|
|
6869
|
-
const list = listBox(ctx, props2.label, void 0, () =>
|
|
6959
|
+
let confirm;
|
|
6960
|
+
const list = listBox(ctx, props2.label, void 0, () => confirm?.());
|
|
6870
6961
|
list.setItems(props2.items);
|
|
6871
6962
|
const first = props2.items[0];
|
|
6872
6963
|
if (first) list.select(first[0]);
|
|
@@ -6886,7 +6977,7 @@ function pickDialog(ctx, props2) {
|
|
|
6886
6977
|
}
|
|
6887
6978
|
},
|
|
6888
6979
|
(open) => {
|
|
6889
|
-
|
|
6980
|
+
confirm = () => open.element.querySelector(".xve-btn-primary")?.click();
|
|
6890
6981
|
}
|
|
6891
6982
|
);
|
|
6892
6983
|
}
|
|
@@ -6973,7 +7064,7 @@ var columnWidth = (ctx) => {
|
|
|
6973
7064
|
};
|
|
6974
7065
|
function registerSimpleDialogs(ctx) {
|
|
6975
7066
|
const d = ctx.dialogs;
|
|
6976
|
-
d.register("confirm", (c, props2) =>
|
|
7067
|
+
d.register("confirm", (c, props2) => confirmDialog2(c, props2));
|
|
6977
7068
|
d.register("rename-sheet", (c, props2) => {
|
|
6978
7069
|
const session = c.session();
|
|
6979
7070
|
const index = typeof props2 === "number" ? props2 : c.activeSheet();
|
|
@@ -8524,7 +8615,7 @@ function openSymbol(ctx) {
|
|
|
8524
8615
|
recentRow.setAttribute("aria-label", ctx.t("Recently used symbols:"));
|
|
8525
8616
|
const code = text(ctx, "Character code: {code}", "xve-note", { code: "" });
|
|
8526
8617
|
let chosen = "";
|
|
8527
|
-
let
|
|
8618
|
+
let confirm = () => void 0;
|
|
8528
8619
|
const choose = (ch, b) => {
|
|
8529
8620
|
chosen = ch;
|
|
8530
8621
|
code.textContent = ctx.t("Character code: {code}", { code: codeOf(ch) });
|
|
@@ -8539,7 +8630,7 @@ function openSymbol(ctx) {
|
|
|
8539
8630
|
b.addEventListener("click", () => choose(ch, b));
|
|
8540
8631
|
b.addEventListener("dblclick", () => {
|
|
8541
8632
|
choose(ch, b);
|
|
8542
|
-
|
|
8633
|
+
confirm();
|
|
8543
8634
|
});
|
|
8544
8635
|
return b;
|
|
8545
8636
|
};
|
|
@@ -8560,7 +8651,7 @@ function openSymbol(ctx) {
|
|
|
8560
8651
|
if (event.key === "Enter" && i >= 0) {
|
|
8561
8652
|
event.preventDefault();
|
|
8562
8653
|
choose(list[i]?.textContent ?? "", list[i]);
|
|
8563
|
-
|
|
8654
|
+
confirm();
|
|
8564
8655
|
return;
|
|
8565
8656
|
}
|
|
8566
8657
|
if (i < 0 || delta === void 0) return;
|
|
@@ -8591,7 +8682,7 @@ function openSymbol(ctx) {
|
|
|
8591
8682
|
}
|
|
8592
8683
|
},
|
|
8593
8684
|
(open) => {
|
|
8594
|
-
|
|
8685
|
+
confirm = () => open.element.querySelector(".xve-btn-primary")?.click();
|
|
8595
8686
|
}
|
|
8596
8687
|
);
|
|
8597
8688
|
}
|
|
@@ -21102,7 +21193,8 @@ function shellCommands(handlers) {
|
|
|
21102
21193
|
id: "file.share",
|
|
21103
21194
|
label: "Share",
|
|
21104
21195
|
icon: "share",
|
|
21105
|
-
|
|
21196
|
+
// Announced as `file-command` first, so a host with its own sharing takes it over.
|
|
21197
|
+
run: () => handlers.fileCommand("share")
|
|
21106
21198
|
},
|
|
21107
21199
|
{
|
|
21108
21200
|
id: "file.options",
|
|
@@ -21503,7 +21595,9 @@ function buildShell(core) {
|
|
|
21503
21595
|
};
|
|
21504
21596
|
const fileCommand = (command, fileName) => runFileCommand(core, command, fileName, {
|
|
21505
21597
|
chrome,
|
|
21506
|
-
openBackstage: (page) => backstage.open(page)
|
|
21598
|
+
openBackstage: (page) => backstage.open(page),
|
|
21599
|
+
// Over File > Share when it is open, as in Office; its summary follows the session.
|
|
21600
|
+
openShare: () => share.open()
|
|
21507
21601
|
});
|
|
21508
21602
|
const closeBackstage = () => {
|
|
21509
21603
|
backstage.close();
|
|
@@ -21515,6 +21609,12 @@ function buildShell(core) {
|
|
|
21515
21609
|
saveState: () => saveState,
|
|
21516
21610
|
fileCommand: (command, fileName) => void fileCommand(command, fileName),
|
|
21517
21611
|
newFromTemplate: (id) => templateInto(core, id, chrome),
|
|
21612
|
+
fileProviders: () => core.fileProviders,
|
|
21613
|
+
openCloudFile(file) {
|
|
21614
|
+
void openCloudFile(core, file, chrome, closeBackstage).catch(
|
|
21615
|
+
(cause) => reportError(core, cause)
|
|
21616
|
+
);
|
|
21617
|
+
},
|
|
21518
21618
|
close: closeBackstage,
|
|
21519
21619
|
options: () => ({
|
|
21520
21620
|
locale: core.locale,
|
|
@@ -21554,7 +21654,7 @@ function buildShell(core) {
|
|
|
21554
21654
|
},
|
|
21555
21655
|
share: {
|
|
21556
21656
|
state: () => core.collab.state(),
|
|
21557
|
-
|
|
21657
|
+
open: () => void fileCommand("share"),
|
|
21558
21658
|
stop: () => core.collab.stop()
|
|
21559
21659
|
},
|
|
21560
21660
|
hiddenActions: () => core.hiddenActions,
|
|
@@ -21693,7 +21793,24 @@ function buildShell(core) {
|
|
|
21693
21793
|
focusRegion(next);
|
|
21694
21794
|
};
|
|
21695
21795
|
installKeyboard(ctx, actions);
|
|
21696
|
-
|
|
21796
|
+
const share = attachShareDialog({
|
|
21797
|
+
container: root,
|
|
21798
|
+
host: {
|
|
21799
|
+
state: () => core.collab.state(),
|
|
21800
|
+
start: (options) => core.collab.start(options),
|
|
21801
|
+
stop: () => core.collab.stop()
|
|
21802
|
+
},
|
|
21803
|
+
roomPrefix: "book",
|
|
21804
|
+
defaults: () => ({ userName: core.authorName }),
|
|
21805
|
+
locale: () => core.locale,
|
|
21806
|
+
note: () => ctx.t(
|
|
21807
|
+
"Cell values, formulas, formats, sheets, rows, columns, merges and names are shared. Charts, pictures, comments, conditional formats, data validation, tables and page setup stay in this window."
|
|
21808
|
+
)
|
|
21809
|
+
});
|
|
21810
|
+
element.addEventListener("collaboration-change", () => {
|
|
21811
|
+
backstage.refresh("share");
|
|
21812
|
+
share.refresh();
|
|
21813
|
+
});
|
|
21697
21814
|
core.shell = {
|
|
21698
21815
|
render() {
|
|
21699
21816
|
ribbon.refresh();
|
|
@@ -21719,6 +21836,7 @@ function buildShell(core) {
|
|
|
21719
21836
|
ribbonActions.relocalize();
|
|
21720
21837
|
statusBar.relocalize();
|
|
21721
21838
|
backstage.relocalize();
|
|
21839
|
+
share.relocalize();
|
|
21722
21840
|
chartFormatPane.relocalize();
|
|
21723
21841
|
chartExPane.relocalize();
|
|
21724
21842
|
smartArt.relocalize();
|
|
@@ -21733,7 +21851,8 @@ function buildShell(core) {
|
|
|
21733
21851
|
backstage,
|
|
21734
21852
|
chrome,
|
|
21735
21853
|
saveState: () => saveState,
|
|
21736
|
-
fileCommand
|
|
21854
|
+
fileCommand,
|
|
21855
|
+
share
|
|
21737
21856
|
};
|
|
21738
21857
|
}
|
|
21739
21858
|
|
|
@@ -22103,6 +22222,7 @@ var EditorCore = class {
|
|
|
22103
22222
|
readOnly = false;
|
|
22104
22223
|
#hostReadOnly = false;
|
|
22105
22224
|
#roleReadOnly = false;
|
|
22225
|
+
#fileReadOnly = false;
|
|
22106
22226
|
#reportedHost = false;
|
|
22107
22227
|
/** The host's `customization` object, as given, and its resolution. */
|
|
22108
22228
|
customizationInput = null;
|
|
@@ -22124,6 +22244,13 @@ var EditorCore = class {
|
|
|
22124
22244
|
surfaceActions = {};
|
|
22125
22245
|
/** Where File > Save and Open go instead of a download and the file picker (`storage`). */
|
|
22126
22246
|
storage = void 0;
|
|
22247
|
+
/**
|
|
22248
|
+
* The storage of the workbook opened from a cloud place (File > Open > OneDrive): Save and
|
|
22249
|
+
* Save As go there instead of `storage`, until another workbook is shown.
|
|
22250
|
+
*/
|
|
22251
|
+
fileStorage = void 0;
|
|
22252
|
+
/** Cloud places File > Open offers next to "This device" (`fileProviders`). */
|
|
22253
|
+
fileProviders = [];
|
|
22127
22254
|
/** The validation failure of the cell edit in progress; cleared once the draft changes or ends. */
|
|
22128
22255
|
editError = null;
|
|
22129
22256
|
selection = createSelectionModel();
|
|
@@ -22229,6 +22356,8 @@ var EditorCore = class {
|
|
|
22229
22356
|
if (this.collab.suspend() && !this.collab.wanted)
|
|
22230
22357
|
this.shell?.toast(this.ctx.t("Sharing stopped because another workbook was opened."));
|
|
22231
22358
|
this.savePassword = void 0;
|
|
22359
|
+
this.fileStorage = void 0;
|
|
22360
|
+
this.setFileReadOnly(false);
|
|
22232
22361
|
this.stopSession?.();
|
|
22233
22362
|
this.stopSession = void 0;
|
|
22234
22363
|
this.workbook = workbook;
|
|
@@ -22377,13 +22506,18 @@ var EditorCore = class {
|
|
|
22377
22506
|
this.#hostReadOnly = readOnly;
|
|
22378
22507
|
return this.#applyReadOnly();
|
|
22379
22508
|
}
|
|
22509
|
+
/** Set while the open file is read-only (a cloud file the user cannot edit); the stricter wins. */
|
|
22510
|
+
setFileReadOnly(locked) {
|
|
22511
|
+
this.#fileReadOnly = locked;
|
|
22512
|
+
return this.#applyReadOnly();
|
|
22513
|
+
}
|
|
22380
22514
|
/** Set by sharing while the role is `viewer`; independent of the host's switch. */
|
|
22381
22515
|
setRoleReadOnly(locked) {
|
|
22382
22516
|
this.#roleReadOnly = locked;
|
|
22383
22517
|
return this.#applyReadOnly();
|
|
22384
22518
|
}
|
|
22385
22519
|
#applyReadOnly() {
|
|
22386
|
-
const readOnly = this.#hostReadOnly || this.#roleReadOnly || !this.customization.canEdit;
|
|
22520
|
+
const readOnly = this.#hostReadOnly || this.#roleReadOnly || this.#fileReadOnly || !this.customization.canEdit;
|
|
22387
22521
|
const changed = readOnly !== this.readOnly;
|
|
22388
22522
|
if (!changed && this.#hostReadOnly === this.#reportedHost) return false;
|
|
22389
22523
|
this.#reportedHost = this.#hostReadOnly;
|
|
@@ -22607,12 +22741,23 @@ var XlsxEditorApi = class extends HTMLElementBase {
|
|
|
22607
22741
|
core = new EditorCore(this);
|
|
22608
22742
|
/** Set by the shell once connected. */
|
|
22609
22743
|
chrome;
|
|
22610
|
-
/** Set by the shell once connected: opens
|
|
22744
|
+
/** Set by the shell once connected: opens the Share dialog. */
|
|
22611
22745
|
openShare;
|
|
22746
|
+
/** Set by the shell once connected: leaves the File backstage. */
|
|
22747
|
+
closeBackstage;
|
|
22612
22748
|
/** Opens .xlsx, .xlsm, .xltx, .xls or .csv bytes; `fileName` helps detection and names the file. */
|
|
22613
22749
|
async load(bytes, fileName) {
|
|
22614
22750
|
await loadInto(this.core, bytes, fileName, this.chrome);
|
|
22615
22751
|
}
|
|
22752
|
+
/**
|
|
22753
|
+
* Opens a file a host got from a `CloudFileProvider` (its own picker or a start page), exactly as
|
|
22754
|
+
* File > Open > OneDrive does: the discard confirmation when there are unsaved changes, the file's
|
|
22755
|
+
* name, read-only when `file.canEdit` is false, and Save and Save As routed to `file.storage`.
|
|
22756
|
+
* Resolves once open (or when the user declines to discard); rejects when the load fails.
|
|
22757
|
+
*/
|
|
22758
|
+
async openCloudFile(file) {
|
|
22759
|
+
await openCloudFile(this.core, file, this.chrome, () => this.closeBackstage?.());
|
|
22760
|
+
}
|
|
22616
22761
|
/** Starts a blank workbook named Book1.xlsx. */
|
|
22617
22762
|
newWorkbook() {
|
|
22618
22763
|
newInto(this.core, this.chrome);
|
|
@@ -22684,9 +22829,9 @@ var XlsxEditorApi = class extends HTMLElementBase {
|
|
|
22684
22829
|
return this.core.collab.state();
|
|
22685
22830
|
}
|
|
22686
22831
|
/**
|
|
22687
|
-
* Opens
|
|
22688
|
-
* application UI (`surfaceOnly`) it calls the host's
|
|
22689
|
-
* nothing when there is none (`getToolbarProps().enabled.openShareDialog` tells which).
|
|
22832
|
+
* Opens the Share dialog, where the user starts, joins or stops sharing, copies the invitation
|
|
22833
|
+
* link and sees who is in the room. Without application UI (`surfaceOnly`) it calls the host's
|
|
22834
|
+
* `onOpenShareDialog` instead, and does nothing when there is none (`getToolbarProps().enabled.openShareDialog` tells which).
|
|
22690
22835
|
*/
|
|
22691
22836
|
share() {
|
|
22692
22837
|
if (this.surfaceOnly) void this.getToolbarProps().onOpenShareDialog();
|
|
@@ -22746,7 +22891,8 @@ var XlsxEditorElement = class extends XlsxEditorApi {
|
|
|
22746
22891
|
if (this.shell) return;
|
|
22747
22892
|
this.shell = buildShell(this.core);
|
|
22748
22893
|
this.chrome = this.shell.chrome;
|
|
22749
|
-
this.openShare = () => this.shell?.
|
|
22894
|
+
this.openShare = () => this.shell?.share.open();
|
|
22895
|
+
this.closeBackstage = () => this.shell?.backstage.close();
|
|
22750
22896
|
if (this.addIns.length) this.shell.ribbon.setAddIns(this.addIns);
|
|
22751
22897
|
this.core.requestRender();
|
|
22752
22898
|
}
|
|
@@ -22787,6 +22933,18 @@ var XlsxEditorElement = class extends XlsxEditorApi {
|
|
|
22787
22933
|
set customization(value) {
|
|
22788
22934
|
if (this.core.setCustomization(value ?? null)) this.shell?.backstage.applyCustomization();
|
|
22789
22935
|
}
|
|
22936
|
+
/**
|
|
22937
|
+
* Cloud places (OneDrive, or a host's own) File > Open offers next to "This device". A workbook
|
|
22938
|
+
* opened from one saves back to its file through the provider's storage until another
|
|
22939
|
+
* workbook is shown. Empty (the default) keeps File > Open as it was.
|
|
22940
|
+
*/
|
|
22941
|
+
get fileProviders() {
|
|
22942
|
+
return this.core.fileProviders;
|
|
22943
|
+
}
|
|
22944
|
+
set fileProviders(value) {
|
|
22945
|
+
this.core.fileProviders = value ?? [];
|
|
22946
|
+
this.shell?.backstage.applyCustomization();
|
|
22947
|
+
}
|
|
22790
22948
|
/** Shown in the title bar and used by Save and Download. Default `Book1.xlsx`. */
|
|
22791
22949
|
get fileName() {
|
|
22792
22950
|
return this.core.fileName;
|