ooxml-ui 1.51.1 → 1.52.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 +17 -1
- package/custom-elements.json +72 -0
- package/dist/building-block-styles.d.ts +1 -0
- package/dist/chart/data-sheet-keys.d.ts +1 -0
- package/dist/chart/data-sheet-labels.d.ts +1 -0
- package/dist/chart/format-pane-3d.d.ts +1 -0
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-axis.d.ts +1 -0
- package/dist/chart/format-pane-common.d.ts +1 -0
- package/dist/chart/format-pane-effects.d.ts +1 -0
- package/dist/chart/format-pane-fill-kinds.d.ts +1 -0
- package/dist/chart/format-pane-locales/en.d.ts +1 -0
- package/dist/chart/format-pane-locales/index.d.ts +1 -1
- package/dist/chart/format-pane-locales/index.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/ja.d.ts +3 -0
- package/dist/chart/format-pane-locales/ja.d.ts.map +1 -0
- package/dist/chart/format-pane-locales/ko.d.ts +3 -0
- package/dist/chart/format-pane-locales/ko.d.ts.map +1 -0
- package/dist/chart/format-pane-model.d.ts +1 -0
- package/dist/chart/format-pane-options.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart-format-locales.js +1 -1
- package/dist/chrome/account-profile.d.ts +1 -0
- package/dist/chrome/format-section.d.ts +50 -0
- package/dist/chrome/format-section.d.ts.map +1 -0
- package/dist/chrome/status-bar.d.ts +2 -1
- package/dist/chrome/task-pane.d.ts +2 -1
- package/dist/{chunk-6CACLM2C.js → chunk-3TF5IIIJ.js} +61 -12
- package/dist/{chunk-FE5KE5TR.js → chunk-4W4QZF4C.js} +1 -1
- package/dist/{chunk-6EOS74O4.js → chunk-5FMWQWLP.js} +27 -2
- package/dist/{chunk-N6AKS4ED.js → chunk-6C6S4AWF.js} +47 -4
- package/dist/{chunk-G4Y3SKPS.js → chunk-ALWA7Q42.js} +6 -5
- package/dist/{chunk-NLTK2MHV.js → chunk-FP45SLBV.js} +1 -1
- package/dist/{chunk-Q6WZEGAM.js → chunk-FQN4XNEF.js} +1 -1
- package/dist/{chunk-4OBMFPGF.js → chunk-GSO4HLIY.js} +620 -2
- package/dist/{chunk-II43ALTT.js → chunk-HUR5JAG7.js} +1 -1
- package/dist/{chunk-BPYV4AQ2.js → chunk-JNCHVQQA.js} +4 -4
- package/dist/{chunk-6FFZFH73.js → chunk-QDU4GLWK.js} +1 -1
- package/dist/{chunk-6ZQUIF64.js → chunk-QGRJJUH7.js} +1 -1
- package/dist/comments/mentions.d.ts +1 -0
- package/dist/controls.d.ts +4 -2
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +5 -5
- package/dist/dialog/dialog.d.ts +2 -1
- package/dist/dialog/message-dialog.d.ts +2 -1
- package/dist/dialog/message-dialogs.d.ts +1 -0
- package/dist/dialog/progress-dialog.d.ts +2 -1
- package/dist/docx/backstage-pages.d.ts +2 -0
- package/dist/docx/context-menu-actions.d.ts +14 -1
- package/dist/docx/context-menu-items.d.ts +13 -0
- package/dist/docx/convert-notes-dialog.d.ts +14 -0
- package/dist/docx/document-information-attr.d.ts +14 -0
- package/dist/docx/document-inspector-apply.d.ts +20 -0
- package/dist/docx/document-inspector-dialog.d.ts +16 -0
- package/dist/docx/editor-chrome.d.ts +2 -0
- package/dist/docx/editor-plugins.d.ts +5 -0
- package/dist/docx/field-update.d.ts +4 -3
- package/dist/docx/format-dialogs.d.ts +7 -1
- package/dist/docx/locales/convert-notes.d.ts +14 -0
- package/dist/docx/locales/document-inspector.d.ts +39 -0
- package/dist/docx/locales/en.d.ts +66 -0
- package/dist/docx/locales/find-stories.d.ts +10 -0
- package/dist/docx/locales/paste-options.d.ts +17 -0
- package/dist/docx/locales/picture-watermark.d.ts +12 -0
- package/dist/docx/locales/picture.d.ts +11 -0
- package/dist/docx/localization-strings.d.ts +66 -0
- package/dist/docx/note-commands.d.ts +12 -1
- package/dist/docx/page-controller.d.ts +5 -4
- package/dist/docx/parts-controller.d.ts +21 -3
- package/dist/docx/parts-story-writes.d.ts +10 -0
- package/dist/docx/paste-options-button.d.ts +18 -0
- package/dist/docx/paste-options.d.ts +45 -0
- package/dist/docx/paste-special-dialog.d.ts +11 -0
- package/dist/docx/picture-dialog.d.ts +3 -2
- package/dist/docx/picture-drop.d.ts +25 -0
- package/dist/docx/picture-format-commands.d.ts +25 -0
- package/dist/docx/picture-format-ribbon.d.ts +4 -0
- package/dist/docx/print-header-footer.d.ts +6 -2
- package/dist/docx/print-inline-object.d.ts +3 -0
- package/dist/docx/print-picture-watermark.d.ts +11 -0
- package/dist/docx/ribbon-action.d.ts +14 -0
- package/dist/docx/ribbon-icons.d.ts +1 -0
- package/dist/docx/search-controller.d.ts +24 -2
- package/dist/docx/search-panel-options.d.ts +10 -0
- package/dist/docx/search-panel.d.ts +3 -0
- package/dist/docx/search-stories.d.ts +38 -0
- package/dist/docx/search-story-host.d.ts +13 -0
- package/dist/docx/search-story-replace.d.ts +33 -0
- package/dist/docx/shape-commands.d.ts +2 -2
- package/dist/docx/shape-format-ribbon.d.ts +1 -0
- package/dist/docx/table-properties.d.ts +2 -1
- package/dist/docx/watermark-commands.d.ts +6 -3
- package/dist/docx/watermark-dialog.d.ts +25 -4
- package/dist/docx/watermark-picture.d.ts +12 -0
- package/dist/docx/word-paste.d.ts +13 -0
- package/dist/docx.js +3434 -1255
- package/dist/embedding/region-host.d.ts +1 -0
- package/dist/export/pdf-embedded-font.d.ts +1 -0
- package/dist/export/pdf-embedded-font.d.ts.map +1 -0
- package/dist/export/pdf-font-faces.d.ts +26 -0
- package/dist/export/pdf-font-faces.d.ts.map +1 -0
- package/dist/export/pdf-fonts.d.ts +1 -0
- package/dist/export/pdf-fonts.d.ts.map +1 -0
- package/dist/export/pdf-image.d.ts +18 -0
- package/dist/export/pdf-image.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-path.d.ts +1 -0
- package/dist/export/pdf-path.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg-gradient.d.ts +2 -1
- package/dist/export/pdf-svg-gradient.d.ts.map +1 -0
- package/dist/export/pdf-svg-notes.d.ts +25 -0
- package/dist/export/pdf-svg-notes.d.ts.map +1 -0
- package/dist/export/pdf-svg-shapes.d.ts +3 -0
- package/dist/export/pdf-svg-shapes.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg-style.d.ts +1 -0
- package/dist/export/pdf-svg-style.d.ts.map +1 -0
- package/dist/export/pdf-svg-text.d.ts +11 -0
- package/dist/export/pdf-svg-text.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg.d.ts +13 -3
- package/dist/export/pdf-svg.d.ts.map +1 -0
- package/dist/export/pdf-vector.d.ts +14 -8
- package/dist/export/pdf-vector.d.ts.map +1 -0
- package/dist/fonts/custom-fonts.d.ts +1 -0
- package/dist/form/checkable.d.ts +1 -0
- package/dist/form/color-custom.d.ts +2 -1
- package/dist/form/color-input/live-color-input.d.ts +1 -0
- package/dist/form/color-input/live-color-leaves.d.ts +1 -0
- package/dist/form/range-control.d.ts +1 -0
- package/dist/form/symbol-picker.d.ts +2 -1
- package/dist/image-native-size.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/look-tokens.d.ts +25 -0
- package/dist/look-tokens.d.ts.map +1 -0
- package/dist/look.d.ts +29 -0
- package/dist/look.d.ts.map +1 -0
- package/dist/menu/menu-separator.d.ts +2 -1
- package/dist/notices/toasts.d.ts +3 -0
- package/dist/notices/toasts.d.ts.map +1 -1
- package/dist/picture-artistic-preview.d.ts +1 -0
- package/dist/picture-effects.d.ts +1 -0
- package/dist/picture-paint.d.ts +1 -0
- package/dist/picture-pixels.d.ts +1 -0
- package/dist/picture-view.d.ts +1 -0
- package/dist/pptx/{chunk-VOBKKF45.mjs → chunk-5454QDUH.mjs} +712 -3
- package/dist/pptx/{chunk-UXX34GGZ.cjs → chunk-7ZRVQFQN.cjs} +47 -47
- package/dist/pptx/{chunk-2FKBWWSS.cjs → chunk-AN34Z3QP.cjs} +145 -2
- package/dist/pptx/{chunk-XLSW7WM3.mjs → chunk-EEELXUAE.mjs} +135 -3
- package/dist/pptx/{chunk-XZSGVMRN.cjs → chunk-IV2F5JWR.cjs} +62 -3
- package/dist/pptx/{chunk-TZEJKAKN.mjs → chunk-KCIIXE4D.mjs} +93514 -87973
- package/dist/pptx/{chunk-7PY5UOSB.mjs → chunk-NGOH4ENE.mjs} +2 -2
- package/dist/pptx/{chunk-G4VNRJUX.mjs → chunk-Q23MZFWZ.mjs} +62 -3
- package/dist/pptx/{chunk-W4FLNH6C.cjs → chunk-SC4VATDY.cjs} +91601 -85952
- package/dist/pptx/{chunk-3JGYWDMR.cjs → chunk-WKKLVLLP.cjs} +712 -3
- package/dist/pptx/dom/index.cjs +380 -380
- package/dist/pptx/dom/index.mjs +8 -8
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/export/index.d.ts +6 -0
- package/dist/pptx/export/index.d.ts.map +1 -1
- package/dist/pptx/export/pdf-export-diagnostics.d.ts +44 -0
- package/dist/pptx/export/pdf-export-diagnostics.d.ts.map +1 -0
- package/dist/pptx/export/pdf-export-notice.d.ts +52 -0
- package/dist/pptx/export/pdf-export-notice.d.ts.map +1 -0
- package/dist/pptx/export/pdf-export-run.d.ts +30 -0
- package/dist/pptx/export/pdf-export-run.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-box.d.ts +26 -0
- package/dist/pptx/export/pdf-vector-box.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-collect-parts.d.ts +49 -0
- package/dist/pptx/export/pdf-vector-collect-parts.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-collect.d.ts +39 -0
- package/dist/pptx/export/pdf-vector-collect.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-css.d.ts +36 -0
- package/dist/pptx/export/pdf-vector-css.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-display-list.d.ts +92 -0
- package/dist/pptx/export/pdf-vector-display-list.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-export.d.ts +63 -0
- package/dist/pptx/export/pdf-vector-export.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-paint.d.ts +44 -0
- package/dist/pptx/export/pdf-vector-paint.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-batch.d.ts +43 -0
- package/dist/pptx/export/pdf-vector-raster-batch.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-isolate.d.ts +67 -0
- package/dist/pptx/export/pdf-vector-raster-isolate.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-live.d.ts +17 -0
- package/dist/pptx/export/pdf-vector-raster-live.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-template.d.ts +26 -0
- package/dist/pptx/export/pdf-vector-raster-template.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster.d.ts +27 -0
- package/dist/pptx/export/pdf-vector-raster.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-select.d.ts +30 -0
- package/dist/pptx/export/pdf-vector-select.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-svg.d.ts +13 -0
- package/dist/pptx/export/pdf-vector-svg.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-text.d.ts +35 -0
- package/dist/pptx/export/pdf-vector-text.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-timeout.d.ts +15 -0
- package/dist/pptx/export/pdf-vector-timeout.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-transforms.d.ts +15 -0
- package/dist/pptx/export/pdf-vector-transforms.d.ts.map +1 -0
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/locale-catalog.d.ts.map +1 -1
- package/dist/pptx/i18n/translations-en-pdf-export.d.ts +7 -0
- package/dist/pptx/i18n/translations-en-pdf-export.d.ts.map +1 -0
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3637 -3265
- package/dist/pptx/index.mjs +4 -4
- package/dist/pptx/render/chrome-controls-state.d.ts +10 -0
- package/dist/pptx/render/chrome-controls-state.d.ts.map +1 -1
- package/dist/pptx/render/compatibility-warning-toasts.d.ts +12 -0
- package/dist/pptx/render/compatibility-warning-toasts.d.ts.map +1 -1
- package/dist/pptx/render/controller/format-pane-controller.d.ts +69 -0
- package/dist/pptx/render/controller/format-pane-controller.d.ts.map +1 -0
- package/dist/pptx/render/controller/index.d.ts +2 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-resolve.d.ts +4 -0
- package/dist/pptx/render/customization/customization-resolve.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-types.d.ts +7 -1
- package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
- package/dist/pptx/render/customization/ribbon-control-visibility.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/cards-css.d.ts +9 -0
- package/dist/pptx/render/editor-chrome/cards-css.d.ts.map +1 -0
- package/dist/pptx/render/editor-chrome/index.d.ts +1 -0
- package/dist/pptx/render/editor-chrome/index.d.ts.map +1 -1
- package/dist/pptx/render/embedded-font-bytes.d.ts.map +1 -1
- package/dist/pptx/render/embedded-font-trust.d.ts.map +1 -1
- package/dist/pptx/render/export-clone.d.ts.map +1 -1
- package/dist/pptx/render/font-embedding.d.ts +26 -0
- package/dist/pptx/render/font-embedding.d.ts.map +1 -1
- package/dist/pptx/render/foreign-object-svg-document.d.ts +32 -1
- package/dist/pptx/render/foreign-object-svg-document.d.ts.map +1 -1
- package/dist/pptx/render/html-text-paste.d.ts +26 -0
- package/dist/pptx/render/html-text-paste.d.ts.map +1 -0
- package/dist/pptx/render/index.d.ts +12 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-caret-offset.d.ts +12 -0
- package/dist/pptx/render/inline-caret-offset.d.ts.map +1 -0
- package/dist/pptx/render/inline-caret.d.ts +0 -9
- package/dist/pptx/render/inline-caret.d.ts.map +1 -1
- package/dist/pptx/render/inline-rich-paste.d.ts +53 -0
- package/dist/pptx/render/inline-rich-paste.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-panel-sections.d.ts +42 -0
- package/dist/pptx/render/inspector/format-panel-sections.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-section-mixed.d.ts +27 -0
- package/dist/pptx/render/inspector/format-section-mixed.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-section-reveal.d.ts +21 -0
- package/dist/pptx/render/inspector/format-section-reveal.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-sections.d.ts +54 -0
- package/dist/pptx/render/inspector/format-sections.d.ts.map +1 -0
- package/dist/pptx/render/inspector/index.d.ts +7 -0
- package/dist/pptx/render/inspector/index.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-apply.d.ts +8 -0
- package/dist/pptx/render/options/viewer-options-apply.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options.d.ts +4 -0
- package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
- package/dist/pptx/render/pdf-export-range.d.ts +39 -0
- package/dist/pptx/render/pdf-export-range.d.ts.map +1 -0
- package/dist/pptx/render/slide-package-clipboard.d.ts +5 -0
- package/dist/pptx/render/slide-package-clipboard.d.ts.map +1 -1
- package/dist/pptx/render/system-clipboard-copy.d.ts +54 -0
- package/dist/pptx/render/system-clipboard-copy.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-edit-outcome.d.ts +59 -0
- package/dist/pptx/render/table-cell-edit-outcome.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-navigation.d.ts +97 -0
- package/dist/pptx/render/table-cell-navigation.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-rich-text.d.ts +7 -0
- package/dist/pptx/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-editor-dom.d.ts +42 -0
- package/dist/pptx/render/table-cell-text-editor-dom.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-editor.d.ts +64 -0
- package/dist/pptx/render/table-cell-text-editor.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-range.d.ts +24 -0
- package/dist/pptx/render/table-cell-text-range.d.ts.map +1 -0
- package/dist/pptx/render/table-cells-format.d.ts +32 -0
- package/dist/pptx/render/table-cells-format.d.ts.map +1 -0
- package/dist/pptx/render/table-cells-paste-listener.d.ts +27 -0
- package/dist/pptx/render/table-cells-paste-listener.d.ts.map +1 -0
- package/dist/pptx/render/table-tsv-paste.d.ts +36 -0
- package/dist/pptx/render/table-tsv-paste.d.ts.map +1 -0
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-PGPRTCOF.mjs → smartart-insert-preview-H2LZCTYG.mjs} +5 -5
- package/dist/pptx/{smartart-insert-preview-XFLQPXH6.cjs → smartart-insert-preview-MMCWPA26.cjs} +6 -6
- package/dist/pptx/theme/index.cjs +18 -18
- package/dist/pptx/theme/index.mjs +1 -1
- package/dist/pptx/web-components/format-section.d.ts +7 -0
- package/dist/pptx/web-components/format-section.d.ts.map +1 -0
- package/dist/pptx/web-components/index.d.ts +5 -2
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- 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/pptx/web-components/pdf-export-dialog-body.d.ts +26 -0
- package/dist/pptx/web-components/pdf-export-dialog-body.d.ts.map +1 -0
- package/dist/pptx/web-components/pdf-export-dialog.d.ts +33 -0
- package/dist/pptx/web-components/pdf-export-dialog.d.ts.map +1 -0
- package/dist/pptx/web-components/pdf-export-options.d.ts +26 -0
- package/dist/pptx/web-components/pdf-export-options.d.ts.map +1 -0
- package/dist/pptx/web-components/ribbon-launchers.d.ts +12 -2
- package/dist/pptx/web-components/ribbon-launchers.d.ts.map +1 -1
- package/dist/pptx/web-components/theme-editor-dock.d.ts.map +1 -1
- package/dist/presence.js +3 -3
- package/dist/render-cache.d.ts +1 -0
- package/dist/ribbon/button.d.ts +2 -1
- package/dist/ribbon/group-overflow.d.ts +1 -0
- package/dist/smartart.js +3 -3
- package/dist/teams.js +7 -7
- package/dist/theme-bridge.d.ts +1 -0
- package/dist/theme.d.ts +9 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +10 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/visio/font-stack.d.ts +6 -0
- package/dist/visio.js +198 -102
- package/dist/xlsx.js +14 -14
- package/package.json +2 -2
- package/dist/visio/pdf-svg-text.d.ts +0 -8
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ stylesheet imported as `?raw`, tokens only). The folders are `form/` (checkbox,
|
|
|
65
65
|
search, zoom), `ribbon/` (button, group, stack, toolbar, tabs, section, toggle), `menu/` (menu button
|
|
66
66
|
and item, separator, context menu, command search), `dialog/` (dialog, options dialog, dialog footer),
|
|
67
67
|
`notices/` (toasts, read-only banner, paste options), `chrome/` (title bar, status bar and item, tab
|
|
68
|
-
strip, task pane, backstage, account, find bar, print preview, ruler), `comments/` (the comments pane), `files/` (the cloud file browser), `presence/`,
|
|
68
|
+
strip, task pane, format section, backstage, account, find bar, print preview, ruler), `comments/` (the comments pane), `files/` (the cloud file browser), `presence/`,
|
|
69
69
|
`smartart/` and `teams/`.
|
|
70
70
|
|
|
71
71
|
- **`OfficeElement`** (`base.ts`) is the base class, exported for products that build their own
|
|
@@ -240,6 +240,22 @@ and application background), `--office-surface` (toolbar and panel surfaces), `-
|
|
|
240
240
|
`--office-muted-foreground`, `--office-border`, `--office-selected`, and the accent and focus tokens
|
|
241
241
|
above. Document paper, cell fills and slide artwork remain document content.
|
|
242
242
|
|
|
243
|
+
### Looks
|
|
244
|
+
|
|
245
|
+
`data-office-look` on the same scope as `data-office-theme` picks the chrome's shape, elevation
|
|
246
|
+
and density; it never changes a colour. Without it the chrome keeps its flat default look.
|
|
247
|
+
`data-office-look="cards"` (opt-in; the PowerPoint editor today) floats the ribbon, thumbnail rail,
|
|
248
|
+
canvas, notes and side pane as rounded, shadowed cards 12px apart on a workspace background, turns
|
|
249
|
+
the status bar's view switcher and zoom into pills, rounds menus, and gives the Format pane 36px
|
|
250
|
+
section headings, 32px fields and a segmented tab strip. `applyOfficeLook(element, 'cards')` from
|
|
251
|
+
`ooxml-ui/theme` sets it; switching keeps mounted editors as they are. The look's tokens
|
|
252
|
+
(`--office-shadow-card`, `--office-shadow-card-strong`, `--office-card-border`,
|
|
253
|
+
`--office-radius-surface`, `--office-radius-toolbar`, `--office-radius-control`,
|
|
254
|
+
`--office-workspace-gap`, `--office-side-pane-width`, `--office-pane-heading-height`,
|
|
255
|
+
`--office-pane-field-height`) have light and dark values; a host may also set
|
|
256
|
+
`--office-workspace` for the background behind the cards. Put the attribute on the document root
|
|
257
|
+
when a product attaches floating menus to `body`.
|
|
258
|
+
|
|
243
259
|
Library-supplied native building blocks opt into `BUILDING_BLOCKS_CSS` through
|
|
244
260
|
`prepareOfficeUiBlock(element, kind, product)`, exported by `ooxml-ui/theme`. It installs the shared
|
|
245
261
|
theme in the element's owner document and marks only that control root with `data-office-block`
|
package/custom-elements.json
CHANGED
|
@@ -2417,6 +2417,78 @@
|
|
|
2417
2417
|
}
|
|
2418
2418
|
]
|
|
2419
2419
|
},
|
|
2420
|
+
{
|
|
2421
|
+
"kind": "javascript-module",
|
|
2422
|
+
"path": "chrome/format-section.ts",
|
|
2423
|
+
"declarations": [
|
|
2424
|
+
{
|
|
2425
|
+
"kind": "class",
|
|
2426
|
+
"name": "OfficeUiFormatSection",
|
|
2427
|
+
"tagName": "office-ui-format-section",
|
|
2428
|
+
"customElement": true,
|
|
2429
|
+
"description": "`<office-ui-format-section label open mixed>`: one collapsible section of a Format pane (Fill, Outline, Size and position, ...). A native disclosure (`<details>`/`<summary>`) in the shadow root, so Enter and Space toggle it and assistive technology announces it as expanded or collapsed; the slotted body stays mounted while closed. `open` is owned by the host: a click on the heading flips it and emits `office-section-toggle` with `{ open }` (cancelable; a cancelled event leaves the section as it was). `mixed` shows a small badge (`mixed-label`, default \"Mixed\") for a multi-selection whose values differ. `focus()` focuses the heading. Parts: `heading`, `label`, `badge` and `body`.",
|
|
2430
|
+
"attributes": [
|
|
2431
|
+
{
|
|
2432
|
+
"name": "label"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"name": "mixed"
|
|
2436
|
+
},
|
|
2437
|
+
{
|
|
2438
|
+
"name": "mixed-label"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"name": "open"
|
|
2442
|
+
}
|
|
2443
|
+
],
|
|
2444
|
+
"members": [
|
|
2445
|
+
{
|
|
2446
|
+
"kind": "field",
|
|
2447
|
+
"name": "label",
|
|
2448
|
+
"type": {
|
|
2449
|
+
"text": "string"
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"kind": "field",
|
|
2454
|
+
"name": "mixed",
|
|
2455
|
+
"type": {
|
|
2456
|
+
"text": "boolean"
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
{
|
|
2460
|
+
"kind": "field",
|
|
2461
|
+
"name": "mixedLabel",
|
|
2462
|
+
"type": {
|
|
2463
|
+
"text": "string"
|
|
2464
|
+
},
|
|
2465
|
+
"attribute": "mixed-label"
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
"kind": "field",
|
|
2469
|
+
"name": "open",
|
|
2470
|
+
"type": {
|
|
2471
|
+
"text": "boolean"
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
],
|
|
2475
|
+
"events": [
|
|
2476
|
+
{
|
|
2477
|
+
"name": "office-section-toggle"
|
|
2478
|
+
}
|
|
2479
|
+
]
|
|
2480
|
+
}
|
|
2481
|
+
],
|
|
2482
|
+
"exports": [
|
|
2483
|
+
{
|
|
2484
|
+
"kind": "custom-element-definition",
|
|
2485
|
+
"name": "office-ui-format-section",
|
|
2486
|
+
"declaration": {
|
|
2487
|
+
"name": "OfficeUiFormatSection"
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
]
|
|
2491
|
+
},
|
|
2420
2492
|
{
|
|
2421
2493
|
"kind": "javascript-module",
|
|
2422
2494
|
"path": "ribbon/gallery.ts",
|
|
@@ -2,3 +2,4 @@ export type OfficeUiBlockKind = 'toolbar' | 'formula-bar' | 'tabs' | 'inspector'
|
|
|
2
2
|
export type OfficeUiProduct = 'docx' | 'xlsx' | 'visio' | 'pptx';
|
|
3
3
|
/** Opt-in styles for native framework controls. They never target host-owned controls implicitly. */
|
|
4
4
|
export declare const BUILDING_BLOCKS_CSS: string;
|
|
5
|
+
//# sourceMappingURL=building-block-styles.d.ts.map
|
|
@@ -35,3 +35,4 @@ export type ChartDataSheetKeyAction = {
|
|
|
35
35
|
};
|
|
36
36
|
/** What a key does in a cell at (`row`, `col`) of a sheet `rows` x `cols` (corner included). */
|
|
37
37
|
export declare function chartDataSheetKeyAction(key: ChartDataSheetKey, mode: ChartDataSheetMode, row: number, col: number, rows: number, cols: number): ChartDataSheetKeyAction;
|
|
38
|
+
//# sourceMappingURL=data-sheet-keys.d.ts.map
|
|
@@ -33,3 +33,4 @@ export interface OfficeChartDataChange {
|
|
|
33
33
|
export type OfficeChartDataChangeEvent = CustomEvent<OfficeChartDataChange>;
|
|
34
34
|
/** Fills a label template's `{key}` (or `{{key}}`) placeholders. */
|
|
35
35
|
export declare function fill(template: string, values: Record<string, string | number>): string;
|
|
36
|
+
//# sourceMappingURL=data-sheet-labels.d.ts.map
|
|
@@ -4,3 +4,4 @@ import type { ChartFormatThreeDView } from './format-pane-view.js';
|
|
|
4
4
|
export declare const CHART_BEVEL_TYPES: readonly ['circle', 'relaxedInset', 'cross', 'coolSlant', 'angle', 'softRound', 'convex', 'slope', 'divot', 'riblet', 'hardEdge', 'artDeco'];
|
|
5
5
|
/** The 3-D Format section for an element with `threeD` as its current 3-D settings. */
|
|
6
6
|
export declare function threeDSection(threeD: ChartFormatThreeDView): ChartFormatSection;
|
|
7
|
+
//# sourceMappingURL=format-pane-3d.d.ts.map
|
|
@@ -4,3 +4,4 @@ import type { ChartFormatSeriesOptionsView } from './format-pane-view.js';
|
|
|
4
4
|
export declare function chartAnalysisSections(series: ChartFormatSeriesOptionsView): ChartFormatSection[];
|
|
5
5
|
/** Converts only the selected analysis property, retaining other trendlines, bars and styles. */
|
|
6
6
|
export declare function chartAnalysisFieldIntent(series: ChartFormatSeriesOptionsView | undefined, target: ChartFormatTarget, field: string, value: ChartFormatFieldValue): ChartEditIntent | null | undefined;
|
|
7
|
+
//# sourceMappingURL=format-pane-analysis.d.ts.map
|
|
@@ -2,3 +2,4 @@ import type { ChartFormatSection } from './format-pane-types.js';
|
|
|
2
2
|
import type { ChartFormatAxisView } from './format-pane-view.js';
|
|
3
3
|
/** Axis Options, Tick Marks, Labels and Number sections for `axis`. */
|
|
4
4
|
export declare function axisOptions(axis: ChartFormatAxisView): ChartFormatSection[];
|
|
5
|
+
//# sourceMappingURL=format-pane-axis.d.ts.map
|
|
@@ -20,3 +20,4 @@ export declare function hexForInput(color: string | undefined, fallback?: string
|
|
|
20
20
|
export type ChartFormatTranslate = (key: string, params?: Readonly<Record<string, string | number>>, fallback?: string) => string;
|
|
21
21
|
/** Resolves a caption with `tr`, filling `{{name}}` parameters in either result. */
|
|
22
22
|
export declare function translateChartFormatText(value: ChartFormatText, tr: ChartFormatTranslate): string;
|
|
23
|
+
//# sourceMappingURL=format-pane-common.d.ts.map
|
|
@@ -22,3 +22,4 @@ export declare function glowSection(prefix: string, glow: Effects['glow']): Char
|
|
|
22
22
|
/** The Effects tab's sections. */
|
|
23
23
|
export declare function effectsSections(view: ChartFormatElementView): ChartFormatSection[];
|
|
24
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=format-pane-effects.d.ts.map
|
|
@@ -13,3 +13,4 @@ export declare function gradientFields(prefix: string, gradient: ChartGradientFi
|
|
|
13
13
|
export declare function patternFields(pattern: NonNullable<ChartFormatFillView['pattern']>, presets: readonly ChartFormatChoice[]): ChartFormatField[];
|
|
14
14
|
/** Picture source, transparency and tiling of a picture fill. */
|
|
15
15
|
export declare function pictureFields(picture: ChartFormatFillView['picture']): ChartFormatField[];
|
|
16
|
+
//# sourceMappingURL=format-pane-fill-kinds.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CHART_FORMAT_LOCALES: readonly ['en', 'fr', 'de', 'es', 'zh-CN'];
|
|
1
|
+
export declare const CHART_FORMAT_LOCALES: readonly ['en', 'fr', 'de', 'es', 'zh-CN', 'ja', 'ko'];
|
|
2
2
|
export type ChartFormatLocale = (typeof CHART_FORMAT_LOCALES)[number];
|
|
3
3
|
/** `chartFormat.*` key -> caption, per locale. */
|
|
4
4
|
export declare const CHART_FORMAT_STRINGS: Readonly<Record<ChartFormatLocale, Readonly<Record<string, string>>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,oBAAoB,YAAI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAC3F,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAC1C,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAS3D,CAAC;AAEF,sGAAsG;AACtG,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,MAAM,EAAE,MAAM,GACZ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/ja.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqT1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../../src/chart/format-pane-locales/ko.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqT1D,CAAC"}
|
|
@@ -20,3 +20,4 @@ export declare function chartFormatSourceTabs(source: ChartFormatSource, target:
|
|
|
20
20
|
* the mode's first tab. A `flat` source gets every chart section on one page.
|
|
21
21
|
*/
|
|
22
22
|
export declare function buildChartFormatModel(source: ChartFormatSource, targetKey: string | undefined, tab?: ChartFormatTabId, mode?: ChartFormatPaneMode): ChartFormatPaneModel;
|
|
23
|
+
//# sourceMappingURL=format-pane-model.d.ts.map
|
|
@@ -11,3 +11,4 @@ type OptionsSource = Pick<ChartFormatSource, 'seriesOptions' | 'axisOptions' | '
|
|
|
11
11
|
/** The Options tab's sections for `target`, or `undefined` when the target has no options. */
|
|
12
12
|
export declare function optionsSections(source: OptionsSource, target: ChartFormatTarget): ChartFormatSection[] | undefined;
|
|
13
13
|
export {};
|
|
14
|
+
//# sourceMappingURL=format-pane-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings } from './chunk-
|
|
1
|
+
export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings } from './chunk-GSO4HLIY.js';
|
|
@@ -31,3 +31,4 @@ export declare function writeOfficeProfile(profile: OfficeProfile, storage?: Sto
|
|
|
31
31
|
/** Forget the stored profile. */
|
|
32
32
|
export declare function clearOfficeProfile(storage?: StorageLike | undefined, key?: string): void;
|
|
33
33
|
export {};
|
|
34
|
+
//# sourceMappingURL=account-profile.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
/**
|
|
3
|
+
* `<office-ui-format-section label open mixed>`: one collapsible section of a Format pane
|
|
4
|
+
* (Fill, Outline, Size and position, ...). A native disclosure (`<details>`/`<summary>`) in the
|
|
5
|
+
* shadow root, so Enter and Space toggle it and assistive technology announces it as expanded or
|
|
6
|
+
* collapsed; the slotted body stays mounted while closed. `open` is owned by the host: a click
|
|
7
|
+
* on the heading flips it and emits `office-section-toggle` with `{ open }` (cancelable; a
|
|
8
|
+
* cancelled event leaves the section as it was). `mixed` shows a small badge (`mixed-label`,
|
|
9
|
+
* default "Mixed") for a multi-selection whose values differ. `focus()` focuses the heading.
|
|
10
|
+
* Parts: `heading`, `label`, `badge` and `body`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class OfficeUiFormatSection extends OfficeElement {
|
|
13
|
+
static toggleEvent: string;
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
static properties: {
|
|
16
|
+
label: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
open: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
reflect: true;
|
|
22
|
+
converter: {
|
|
23
|
+
fromAttribute: (value: string | null) => boolean;
|
|
24
|
+
toAttribute: (value: unknown) => string | null;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
mixed: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
reflect: true;
|
|
30
|
+
converter: {
|
|
31
|
+
fromAttribute: (value: string | null) => boolean;
|
|
32
|
+
toAttribute: (value: unknown) => string | null;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
mixedLabel: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
attribute: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
label: string;
|
|
41
|
+
open: boolean;
|
|
42
|
+
mixed: boolean;
|
|
43
|
+
mixedLabel: string;
|
|
44
|
+
constructor();
|
|
45
|
+
focus(options?: FocusOptions): void;
|
|
46
|
+
private onToggle;
|
|
47
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
48
|
+
}
|
|
49
|
+
export declare const defineFormatSection: import("../registry.js").Definer;
|
|
50
|
+
//# sourceMappingURL=format-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-section.d.ts","sourceRoot":"","sources":["../../src/chrome/format-section.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAK7D;;;;;;;;;GASG;AACH,qBAAa,qBAAsB,SAAQ,aAAa;IACvD,MAAM,CAAC,WAAW,SAA2B;IAC7C,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;QACzB,KAAK;YAAI,IAAI;;QACb,IAAI;;;;;;;;QACJ,KAAK;;;;;;;;QACL,UAAU;YAAI,IAAI;YAAU,SAAS;;MACpC;IACM,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAE3B,cAMC;IAEQ,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAE3C;IAED,OAAO,CAAC,QAAQ;IAQhB,UAAmB,MAAM,oCAWxB;CACD;AAED,eAAO,MAAM,mBAAmB,+BAAmE,CAAC"}
|
|
@@ -83,4 +83,5 @@ export declare class OfficeUiStatusBar extends OfficeElement {
|
|
|
83
83
|
private zoomStep;
|
|
84
84
|
protected render(): TemplateResult<1>;
|
|
85
85
|
}
|
|
86
|
-
export declare const defineStatusBar: import("../
|
|
86
|
+
export declare const defineStatusBar: import("../registry.js").Definer;
|
|
87
|
+
//# sourceMappingURL=status-bar.d.ts.map
|
|
@@ -25,4 +25,5 @@ export declare class OfficeUiTaskPane extends OfficeElement {
|
|
|
25
25
|
protected willUpdate(): void;
|
|
26
26
|
protected render(): import("lit").TemplateResult<1>;
|
|
27
27
|
}
|
|
28
|
-
export declare const defineTaskPane: import("../
|
|
28
|
+
export declare const defineTaskPane: import("../registry.js").Definer;
|
|
29
|
+
//# sourceMappingURL=task-pane.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createIconSvg, paintIcon, getIcon } from './chunk-M6GF5ED2.js';
|
|
2
|
-
import { CHART_FORMAT_STRINGS, CHART_FORMAT_LOCALES } from './chunk-
|
|
3
|
-
import { initialsOf } from './chunk-
|
|
2
|
+
import { CHART_FORMAT_STRINGS, CHART_FORMAT_LOCALES } from './chunk-GSO4HLIY.js';
|
|
3
|
+
import { initialsOf } from './chunk-FQN4XNEF.js';
|
|
4
4
|
import { parseSvgPreview } from './chunk-FN7IF6M6.js';
|
|
5
|
-
import { OfficeElement, controlStyles, definer, valueOn, flag, present, emit, triState, withTokens } from './chunk-
|
|
6
|
-
import { tok, OFFICE_TOKENS } from './chunk-
|
|
5
|
+
import { OfficeElement, controlStyles, definer, valueOn, flag, present, emit, triState, withTokens } from './chunk-4W4QZF4C.js';
|
|
6
|
+
import { tok, OFFICE_TOKENS } from './chunk-5FMWQWLP.js';
|
|
7
7
|
import { html, LitElement, nothing, render, svg } from 'lit';
|
|
8
8
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
9
9
|
import { repeat } from 'lit/directives/repeat.js';
|
|
@@ -83,7 +83,7 @@ var OfficeUiDialogFooter = class extends OfficeElement {
|
|
|
83
83
|
var defineDialogFooter = definer("office-ui-dialog-footer", () => OfficeUiDialogFooter);
|
|
84
84
|
|
|
85
85
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/notices/toasts.css?raw
|
|
86
|
-
var toasts_default = ":host {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n max-height: 70%;\n pointer-events: none;\n}\n:host([hidden]) {\n display: none !important;\n}\n[hidden] {\n display: none !important;\n}\nsvg {\n flex: none;\n width: var(--office-icon-size);\n height: var(--office-icon-size);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.header,\n.toast,\n.overflow {\n pointer-events: auto;\n}\n.header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 var(--office-space-1);\n color: var(--office-muted-foreground);\n font: 600 var(--office-font-size-xs)/1.4 var(--office-font);\n}\n.toast {\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n gap: var(--office-space-2);\n padding: var(--office-space-2) var(--office-space-2-5);\n margin-top: var(--office-space-2);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius-md);\n background: var(--office-popover);\n color: var(--office-foreground);\n box-shadow: var(--office-shadow-lg);\n font: var(--office-font-size-sm)/1.4 var(--office-font);\n}\n.toast svg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n margin-top: var(--office-space-px);\n}\n.toast[data-severity='warning'] svg {\n color: var(--office-warning);\n}\n.toast[data-severity='info'] svg {\n color: var(--office-info);\n}\n.message {\n flex: 1;\n min-width: 0;\n margin: 0;\n overflow-wrap: anywhere;\n}\n.overflow {\n margin: var(--office-space-2) 0 0;\n text-align: center;\n color: var(--office-muted-foreground);\n font: var(--office-font-size-xs) var(--office-font);\n}\nbutton {\n box-sizing: border-box;\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: var(--office-control-height);\n min-height: var(--office-control-height);\n padding: var(--office-space-0) var(--office-space-1);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n color: var(--office-muted-foreground);\n font: inherit;\n cursor: pointer;\n touch-action: manipulation;\n}\nbutton:hover {\n background: var(--office-surface);\n color: var(--office-foreground);\n}\n.dismiss-all {\n font-weight: 500;\n text-decoration: underline;\n text-underline-offset: var(--office-space-0);\n}\nbutton:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(var(--office-focus-offset) / 2);\n}\n@media (pointer: coarse) {\n button {\n min-width: var(--office-target-size-touch);\n min-height: var(--office-target-size-touch);\n }\n}\n@media (forced-colors: active) {\n .toast {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n }\n .toast svg,\n button {\n color: ButtonText;\n }\n button:hover {\n background: Highlight;\n color: HighlightText;\n }\n button:focus-visible {\n outline-color: Highlight;\n }\n}\n";
|
|
86
|
+
var toasts_default = ":host {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n max-height: 70%;\n pointer-events: none;\n}\n:host([hidden]) {\n display: none !important;\n}\n[hidden] {\n display: none !important;\n}\nsvg {\n flex: none;\n width: var(--office-icon-size);\n height: var(--office-icon-size);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.header,\n.toast,\n.overflow {\n pointer-events: auto;\n}\n.header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 var(--office-space-1);\n color: var(--office-muted-foreground);\n font: 600 var(--office-font-size-xs)/1.4 var(--office-font);\n}\n.toast {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--office-space-2);\n padding: var(--office-space-2) var(--office-space-2-5);\n margin-top: var(--office-space-2);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius-md);\n background: var(--office-popover);\n color: var(--office-foreground);\n box-shadow: var(--office-shadow-lg);\n font: var(--office-font-size-sm)/1.4 var(--office-font);\n}\n.toast svg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n margin-top: var(--office-space-px);\n}\n.toast[data-severity='warning'] svg {\n color: var(--office-warning);\n}\n.toast[data-severity='info'] svg {\n color: var(--office-info);\n}\n.message {\n flex: 1;\n min-width: 0;\n margin: 0;\n overflow-wrap: anywhere;\n}\n/* Under the message, on its own row. */\ndetails {\n flex-basis: 100%;\n min-width: 0;\n margin: 0 0 0 calc(var(--office-icon-size-md) + var(--office-space-2));\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-xs);\n}\nsummary {\n cursor: pointer;\n color: var(--office-foreground);\n}\nsummary:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(var(--office-focus-offset) / 2);\n}\ndetails ul {\n max-height: 12em;\n overflow-y: auto;\n margin: var(--office-space-1) 0 0;\n padding-inline-start: var(--office-space-4);\n}\n.overflow {\n margin: var(--office-space-2) 0 0;\n text-align: center;\n color: var(--office-muted-foreground);\n font: var(--office-font-size-xs) var(--office-font);\n}\nbutton {\n box-sizing: border-box;\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: var(--office-control-height);\n min-height: var(--office-control-height);\n padding: var(--office-space-0) var(--office-space-1);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n color: var(--office-muted-foreground);\n font: inherit;\n cursor: pointer;\n touch-action: manipulation;\n}\nbutton:hover {\n background: var(--office-surface);\n color: var(--office-foreground);\n}\n.dismiss-all {\n font-weight: 500;\n text-decoration: underline;\n text-underline-offset: var(--office-space-0);\n}\nbutton:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(var(--office-focus-offset) / 2);\n}\n@media (pointer: coarse) {\n button {\n min-width: var(--office-target-size-touch);\n min-height: var(--office-target-size-touch);\n }\n}\n@media (forced-colors: active) {\n .toast {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n }\n .toast svg,\n button {\n color: ButtonText;\n }\n button:hover {\n background: Highlight;\n color: HighlightText;\n }\n button:focus-visible {\n outline-color: Highlight;\n }\n}\n";
|
|
87
87
|
|
|
88
88
|
// src/notices/toasts.ts
|
|
89
89
|
var OFFICE_TOAST_VISIBLE_LIMIT = 5;
|
|
@@ -141,6 +141,12 @@ var OfficeUiToasts = class extends OfficeElement {
|
|
|
141
141
|
@click=${() => this.fire(requestEvent, { id: "dismiss", toastId: toast.id })}
|
|
142
142
|
>${glyph("close", "icon")}</button
|
|
143
143
|
>
|
|
144
|
+
${toast.details?.length ? html`<details data-testid="${p}-details">
|
|
145
|
+
<summary>${labels.details ?? "Details"}</summary>
|
|
146
|
+
<ul>
|
|
147
|
+
${toast.details.map((line) => html`<li>${line}</li>`)}
|
|
148
|
+
</ul>
|
|
149
|
+
</details>` : ""}
|
|
144
150
|
</div>`
|
|
145
151
|
)}
|
|
146
152
|
${hiddenCount > 0 ? html`<p class="overflow">+${hiddenCount}</p>` : ""}
|
|
@@ -6544,7 +6550,7 @@ var OfficeUiIcon = class extends OfficeElement {
|
|
|
6544
6550
|
var defineIcon = definer("office-ui-icon", () => OfficeUiIcon);
|
|
6545
6551
|
|
|
6546
6552
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/menu/command-search.css?raw
|
|
6547
|
-
var command_search_default = ":host {\n display: inline-flex;\n align-items: center;\n min-width: 0;\n font-family: var(--office-font);\n}\n.field {\n display: flex;\n align-items: center;\n gap: var(--office-space-1-5);\n width: 100%;\n min-width: 0;\n height: var(--office-target-size);\n padding: 0 var(--office-space-2);\n box-sizing: border-box;\n border: var(--office-border-width) solid transparent;\n border-radius: var(--office-radius);\n color: var(--office-muted-foreground);\n}\n.field:hover,\n.field:focus-within {\n border-color: var(--office-border);\n background: var(--office-background);\n}\ninput {\n flex: 1;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--office-foreground);\n font: inherit;\n font-size: var(--office-font-size);\n}\nsvg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\nul {\n position: fixed;\n inset: auto;\n margin: 0;\n padding: var(--office-space-1);\n min-width: var(--office-search-popup-min-width);\n max-height: var(--office-search-popup-max-height);\n overflow: auto;\n box-sizing: border-box;\n list-style: none;\n background: var(--office-background);\n color: var(--office-foreground);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius);\n box-shadow: var(--office-shadow);\n font-size: var(--office-font-size-sm);\n}\nul[hidden] {\n display: none;\n}\nli {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: var(--office-target-size);\n padding: var(--office-space-0) var(--office-space-2-5);\n border-radius: var(--office-radius-sm);\n cursor: pointer;\n}\nli[data-active] {\n background: var(--office-surface);\n}\nli[aria-disabled='true'] {\n cursor: not-allowed;\n color: var(--office-muted-foreground);\n}\nli small {\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-xs);\n}\nli.empty {\n cursor: default;\n color: var(--office-muted-foreground);\n}\n\n@media (forced-colors: active) {\n .field,\n ul {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n }\n li[data-active] {\n background: Highlight;\n color: HighlightText;\n }\n}\n";
|
|
6553
|
+
var command_search_default = ":host {\n display: inline-flex;\n align-items: center;\n min-width: 0;\n font-family: var(--office-font);\n}\n.field {\n display: flex;\n align-items: center;\n gap: var(--office-space-1-5);\n width: 100%;\n min-width: 0;\n height: var(--office-target-size);\n padding: 0 var(--office-space-2);\n box-sizing: border-box;\n border: var(--office-border-width) solid transparent;\n border-radius: var(--office-radius);\n color: var(--office-muted-foreground);\n}\n.field:hover,\n.field:focus-within {\n border-color: var(--office-border);\n background: var(--office-background);\n}\ninput {\n flex: 1;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--office-foreground);\n font: inherit;\n font-size: var(--office-font-size);\n}\nsvg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\nul {\n position: fixed;\n inset: auto;\n margin: 0;\n padding: var(--office-space-1);\n min-width: var(--office-search-popup-min-width);\n max-height: var(--office-search-popup-max-height);\n overflow: auto;\n box-sizing: border-box;\n list-style: none;\n background: var(--office-background);\n color: var(--office-foreground);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--_office-look-menu-radius, var(--office-radius));\n box-shadow: var(--_office-look-menu-shadow, var(--office-shadow));\n font-size: var(--office-font-size-sm);\n}\nul[hidden] {\n display: none;\n}\nli {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: var(--office-target-size);\n padding: var(--office-space-0) var(--office-space-2-5);\n border-radius: var(--office-radius-sm);\n cursor: pointer;\n}\nli[data-active] {\n background: var(--office-surface);\n}\nli[aria-disabled='true'] {\n cursor: not-allowed;\n color: var(--office-muted-foreground);\n}\nli small {\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-xs);\n}\nli.empty {\n cursor: default;\n color: var(--office-muted-foreground);\n}\n\n@media (forced-colors: active) {\n .field,\n ul {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n }\n li[data-active] {\n background: Highlight;\n color: HighlightText;\n }\n}\n";
|
|
6548
6554
|
|
|
6549
6555
|
// src/menu/command-search.ts
|
|
6550
6556
|
var uid = 0;
|
|
@@ -6736,7 +6742,7 @@ function clampFlyoutPosition(input) {
|
|
|
6736
6742
|
}
|
|
6737
6743
|
|
|
6738
6744
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/menu/context-menu.css?raw
|
|
6739
|
-
var context_menu_default = ":host {\n display: contents;\n}\n:host([data-controlled]) {\n display: block;\n position: fixed;\n z-index: var(--office-z-popover);\n color: var(--office-popover-foreground);\n font: var(--office-font-size-sm) / var(--office-line-height) var(--office-font);\n}\n:host([data-controlled][hidden]) {\n display: none;\n}\n\n/* Children mode: a popover panel around the slotted menu items. */\n.panel {\n position: fixed;\n inset: auto;\n margin: 0;\n min-width: var(--office-context-menu-min-width);\n padding: var(--office-space-1);\n box-sizing: border-box;\n background: var(--office-background);\n color: var(--office-foreground);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius);\n box-shadow: var(--office-shadow);\n font-family: var(--office-font);\n}\n.panel[hidden] {\n display: none;\n}\n\n/* Controlled mode: the host is the fixed box; rows are drawn here from `state`. */\n.menu {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: var(--office-menu-min-width);\n max-height: calc(100vh - 2 * var(--office-space-2));\n overflow-y: auto;\n padding: var(--office-space-1-5) 0;\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius-md);\n background: var(--office-popover);\n color: inherit;\n box-shadow: var(--office-shadow-lg);\n user-select: none;\n}\n.menu:focus {\n outline: none;\n}\n.item {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-1-5);\n width: 100%;\n min-height: var(--office-field-height);\n padding: var(--office-space-1-5) var(--office-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n.item:hover:not(:disabled),\n.item:focus:not(:disabled) {\n background: var(--office-selected);\n outline: none;\n}\n.item:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(-1 * var(--office-focus-width));\n}\n.item:disabled {\n opacity: 0.45;\n cursor: default;\n}\n.item.danger {\n color: var(--office-danger);\n}\n.item svg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.check {\n flex: none;\n width: var(--office-icon-size);\n text-align: center;\n}\n.shortcut {\n margin-inline-start: auto;\n padding-inline-start: var(--office-space-4);\n color: var(--office-muted-foreground);\n}\n.separator {\n height: var(--office-border-width);\n margin: var(--office-space-1) 0;\n background: var(--office-border);\n}\n.heading {\n padding: var(--office-space-1-5) var(--office-space-3) var(--office-space-0);\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-2xs);\n font-weight: var(--office-font-weight-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n}\n\n@media (pointer: coarse) {\n .item {\n min-height: var(--office-target-size-touch);\n }\n}\n@media (forced-colors: active) {\n .panel,\n .menu {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n box-shadow: none;\n }\n .item,\n .item.danger {\n color: CanvasText;\n }\n .item:disabled {\n color: GrayText;\n opacity: 1;\n }\n .item:hover:not(:disabled),\n .item:focus:not(:disabled) {\n background: Highlight;\n color: HighlightText;\n }\n .separator {\n background: CanvasText;\n }\n .heading {\n color: CanvasText;\n }\n}\n";
|
|
6745
|
+
var context_menu_default = ":host {\n display: contents;\n}\n:host([data-controlled]) {\n display: block;\n position: fixed;\n z-index: var(--office-z-popover);\n color: var(--office-popover-foreground);\n font: var(--office-font-size-sm) / var(--office-line-height) var(--office-font);\n}\n:host([data-controlled][hidden]) {\n display: none;\n}\n\n/* Children mode: a popover panel around the slotted menu items. */\n.panel {\n position: fixed;\n inset: auto;\n margin: 0;\n min-width: var(--office-context-menu-min-width);\n padding: var(--office-space-1);\n box-sizing: border-box;\n background: var(--office-background);\n color: var(--office-foreground);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--_office-look-menu-radius, var(--office-radius));\n box-shadow: var(--_office-look-menu-shadow, var(--office-shadow));\n font-family: var(--office-font);\n}\n.panel[hidden] {\n display: none;\n}\n\n/* Controlled mode: the host is the fixed box; rows are drawn here from `state`. */\n.menu {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: var(--office-menu-min-width);\n max-height: calc(100vh - 2 * var(--office-space-2));\n overflow-y: auto;\n padding: var(--office-space-1-5) 0;\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius-md);\n background: var(--office-popover);\n color: inherit;\n box-shadow: var(--office-shadow-lg);\n user-select: none;\n}\n.menu:focus {\n outline: none;\n}\n.item {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-1-5);\n width: 100%;\n min-height: var(--office-field-height);\n padding: var(--office-space-1-5) var(--office-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n.item:hover:not(:disabled),\n.item:focus:not(:disabled) {\n background: var(--office-selected);\n outline: none;\n}\n.item:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(-1 * var(--office-focus-width));\n}\n.item:disabled {\n opacity: 0.45;\n cursor: default;\n}\n.item.danger {\n color: var(--office-danger);\n}\n.item svg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.check {\n flex: none;\n width: var(--office-icon-size);\n text-align: center;\n}\n.shortcut {\n margin-inline-start: auto;\n padding-inline-start: var(--office-space-4);\n color: var(--office-muted-foreground);\n}\n.separator {\n height: var(--office-border-width);\n margin: var(--office-space-1) 0;\n background: var(--office-border);\n}\n.heading {\n padding: var(--office-space-1-5) var(--office-space-3) var(--office-space-0);\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-2xs);\n font-weight: var(--office-font-weight-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n}\n\n@media (pointer: coarse) {\n .item {\n min-height: var(--office-target-size-touch);\n }\n}\n@media (forced-colors: active) {\n .panel,\n .menu {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n box-shadow: none;\n }\n .item,\n .item.danger {\n color: CanvasText;\n }\n .item:disabled {\n color: GrayText;\n opacity: 1;\n }\n .item:hover:not(:disabled),\n .item:focus:not(:disabled) {\n background: Highlight;\n color: HighlightText;\n }\n .separator {\n background: CanvasText;\n }\n .heading {\n color: CanvasText;\n }\n}\n";
|
|
6740
6746
|
|
|
6741
6747
|
// src/menu/context-menu.ts
|
|
6742
6748
|
var ITEMS = "office-ui-menu-item:not([disabled]):not([hidden])";
|
|
@@ -7102,7 +7108,7 @@ var OfficeUiMenuSeparator = class extends OfficeElement {
|
|
|
7102
7108
|
var defineMenuSeparator = definer("office-ui-menu-separator", () => OfficeUiMenuSeparator);
|
|
7103
7109
|
|
|
7104
7110
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/menu/menu-button.css?raw
|
|
7105
|
-
var menu_button_default = ":host {\n display: inline-flex;\n vertical-align: middle;\n}\n:host([submenu]) {\n display: flex;\n}\n:host([submenu]) .wrap {\n width: 100%;\n}\n:host([submenu]) .main {\n flex: 1;\n justify-content: flex-start;\n padding-left: var(--office-space-6);\n}\n.wrap {\n display: inline-flex;\n align-items: stretch;\n border: var(--office-border-width) solid transparent;\n border-radius: var(--office-radius);\n}\n:host([variant='stacked']) .wrap {\n flex-direction: column;\n}\nbutton {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-1);\n min-width: var(--office-target-size);\n min-height: var(--office-target-size);\n padding: 0 var(--office-space-1-5);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n color: var(--office-foreground);\n font: inherit;\n font-size: var(--office-font-size-sm);\n cursor: pointer;\n white-space: nowrap;\n}\n:host([variant='stacked']) .main {\n flex-direction: column;\n padding: var(--office-space-1) var(--office-space-1-5) 0;\n}\n:host([variant='stacked']) .caret {\n min-height: var(--office-icon-size-md);\n padding: 0 var(--office-space-1-5) var(--office-space-0);\n}\n:host([variant='stacked']:not([command])) .main {\n padding-bottom: 0;\n}\n.wrap:hover:not(.disabled) {\n border-color: var(--office-border);\n}\nbutton:hover:not(:disabled) {\n background: var(--office-surface);\n}\nbutton:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(-1 * var(--office-focus-width));\n}\nbutton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\nbutton[aria-expanded='true'] {\n background: var(--office-surface);\n}\n.caret svg {\n width: var(--office-icon-size-sm);\n height: var(--office-icon-size-sm);\n}\nsvg {\n width: var(--office-icon-size-ml);\n height: var(--office-icon-size-ml);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\nsvg:not([data-painted]) {\n display: none;\n}\n.panel {\n position: fixed;\n inset: auto;\n margin: 0;\n min-width: var(--office-menu-min-width);\n padding: var(--office-space-1);\n box-sizing: border-box;\n background: var(--office-background);\n color: var(--office-foreground);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius);\n box-shadow: var(--office-shadow);\n}\n.panel[hidden] {\n display: none;\n}\n\n@media (forced-colors: active) {\n button {\n color: ButtonText;\n }\n button:disabled {\n color: GrayText;\n }\n .panel {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n }\n}\n";
|
|
7111
|
+
var menu_button_default = ":host {\n display: inline-flex;\n vertical-align: middle;\n}\n:host([submenu]) {\n display: flex;\n}\n:host([submenu]) .wrap {\n width: 100%;\n}\n:host([submenu]) .main {\n flex: 1;\n justify-content: flex-start;\n padding-left: var(--office-space-6);\n}\n.wrap {\n display: inline-flex;\n align-items: stretch;\n border: var(--office-border-width) solid transparent;\n border-radius: var(--office-radius);\n}\n:host([variant='stacked']) .wrap {\n flex-direction: column;\n}\nbutton {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-1);\n min-width: var(--office-target-size);\n min-height: var(--office-target-size);\n padding: 0 var(--office-space-1-5);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n color: var(--office-foreground);\n font: inherit;\n font-size: var(--office-font-size-sm);\n cursor: pointer;\n white-space: nowrap;\n}\n:host([variant='stacked']) .main {\n flex-direction: column;\n padding: var(--office-space-1) var(--office-space-1-5) 0;\n}\n:host([variant='stacked']) .caret {\n min-height: var(--office-icon-size-md);\n padding: 0 var(--office-space-1-5) var(--office-space-0);\n}\n:host([variant='stacked']:not([command])) .main {\n padding-bottom: 0;\n}\n.wrap:hover:not(.disabled) {\n border-color: var(--office-border);\n}\nbutton:hover:not(:disabled) {\n background: var(--office-surface);\n}\nbutton:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(-1 * var(--office-focus-width));\n}\nbutton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\nbutton[aria-expanded='true'] {\n background: var(--office-surface);\n}\n.caret svg {\n width: var(--office-icon-size-sm);\n height: var(--office-icon-size-sm);\n}\nsvg {\n width: var(--office-icon-size-ml);\n height: var(--office-icon-size-ml);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\nsvg:not([data-painted]) {\n display: none;\n}\n.panel {\n position: fixed;\n inset: auto;\n margin: 0;\n min-width: var(--office-menu-min-width);\n padding: var(--office-space-1);\n box-sizing: border-box;\n background: var(--office-background);\n color: var(--office-foreground);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--_office-look-menu-radius, var(--office-radius));\n box-shadow: var(--_office-look-menu-shadow, var(--office-shadow));\n}\n.panel[hidden] {\n display: none;\n}\n\n@media (forced-colors: active) {\n button {\n color: ButtonText;\n }\n button:disabled {\n color: GrayText;\n }\n .panel {\n border-color: CanvasText;\n background: Canvas;\n color: CanvasText;\n }\n}\n";
|
|
7106
7112
|
|
|
7107
7113
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/menu/menu-item.css?raw
|
|
7108
7114
|
var menu_item_default = ":host {\n display: block;\n}\n:host([hidden]) {\n display: none;\n}\nbutton {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n width: 100%;\n min-height: var(--office-target-size);\n padding: 0 var(--office-space-2-5) 0 var(--office-space-2);\n border: 0;\n border-radius: var(--office-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: var(--office-font-size-sm);\n text-align: start;\n cursor: pointer;\n}\nbutton:hover:not(:disabled),\nbutton:focus-visible {\n background: var(--office-surface);\n outline: none;\n}\nbutton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.check {\n width: var(--office-icon-size);\n text-align: center;\n}\nsvg {\n width: var(--office-icon-size-md);\n height: var(--office-icon-size-md);\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\nsvg:not([data-painted]) {\n visibility: hidden;\n}\n\n@media (forced-colors: active) {\n button:focus-visible {\n background: Highlight;\n color: HighlightText;\n }\n}\n";
|
|
@@ -8126,7 +8132,7 @@ var OfficeUiSelect = class extends OfficeElement {
|
|
|
8126
8132
|
var defineSelect = definer("office-ui-select", () => OfficeUiSelect);
|
|
8127
8133
|
|
|
8128
8134
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/chrome/status-bar.css?raw
|
|
8129
|
-
var status_bar_default = ":host {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n min-height: var(--office-status-bar-height);\n padding: 0 var(--office-space-2);\n font-size: var(--office-font-size-xs);\n background: var(--office-surface);\n color: var(--office-foreground);\n border-top: var(--office-border-width) solid var(--office-border);\n font-family: var(--office-font);\n}\n::slotted([slot='end']) {\n margin-inline-start: auto;\n}\n.bar {\n display: contents;\n}\n[hidden] {\n display: none !important;\n}\n:host([data-controlled]) {\n display: block;\n flex: none;\n padding: 0;\n gap: 0;\n}\n:host([data-controlled]) .bar {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-1);\n width: 100%;\n min-height: var(--office-status-bar-height);\n padding: var(--office-space-0) var(--office-space-2);\n color: var(--office-muted-foreground);\n}\n:host([data-controlled]) ::slotted([slot='end']) {\n margin-inline-start: 0;\n}\n.items {\n display: flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n.item {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The page counter is the one text that stays whole. */\n.item[aria-live] {\n flex: none;\n}\n.item + .item::before {\n content: '';\n display: inline-block;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-2);\n vertical-align: middle;\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.item.sr,\n.item.sr::before {\n position: absolute;\n width: var(--office-space-px);\n height: var(--office-space-px);\n margin: calc(-1 * var(--office-space-px));\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.item.sr::before {\n display: none;\n}\n.item.saving {\n color: var(--office-warning);\n}\n.item.error {\n color: var(--office-danger);\n}\n.spacer {\n flex: 1;\n}\n.toggles,\n.group {\n display: flex;\n align-items: center;\n gap: var(--office-space-0);\n}\n.sep {\n flex: none;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-0);\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.bar button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-1);\n min-width: var(--office-control-height-xs);\n min-height: var(--office-control-height-xs);\n padding: var(--office-space-1);\n border: 0;\n border-radius: var(--office-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n touch-action: manipulation;\n}\n.bar button:hover {\n background: var(--office-selected);\n color: var(--office-foreground);\n}\n.bar button[aria-pressed='true'] {\n color: var(--office-accent);\n}\n.bar button:active {\n opacity: 0.8;\n}\n.bar button:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: var(--office-focus-offset);\n}\n.bar svg {\n flex: none;\n width: var(--office-icon-size);\n height: var(--office-icon-size);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.toggle svg,\n.zoom-step svg {\n width: var(--office-icon-size-sm);\n height: var(--office-icon-size-sm);\n}\n.zoom-fit {\n min-width: var(--office-zoom-value-width);\n font-variant-numeric: tabular-nums;\n}\n@media (max-width: 767px) {\n .narrow-hide,\n .toggle .label {\n display: none !important;\n }\n}\n@media (pointer: coarse) {\n .bar button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n@media (forced-colors: active) {\n :host {\n background: Canvas;\n color: CanvasText;\n border-top-color: CanvasText;\n }\n .bar button {\n color: ButtonText;\n }\n .bar button:hover {\n background: Highlight;\n color: HighlightText;\n }\n .bar button[aria-pressed='true'] {\n border: var(--office-border-width) solid Highlight;\n }\n .bar button:focus-visible {\n outline-color: Highlight;\n }\n .sep,\n .item + .item::before {\n background: CanvasText;\n }\n}\n";
|
|
8135
|
+
var status_bar_default = ":host {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n min-height: var(--office-status-bar-height);\n padding: 0 var(--office-space-2);\n font-size: var(--office-font-size-xs);\n background: var(--office-surface);\n color: var(--office-foreground);\n border-top: var(--office-border-width) solid var(--office-border);\n font-family: var(--office-font);\n}\n::slotted([slot='end']) {\n margin-inline-start: auto;\n}\n.bar {\n display: contents;\n}\n[hidden] {\n display: none !important;\n}\n:host([data-controlled]) {\n display: block;\n flex: none;\n padding: 0;\n gap: 0;\n}\n:host([data-controlled]) .bar {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-1);\n width: 100%;\n min-height: var(--office-status-bar-height);\n padding: var(--office-space-0) var(--office-space-2);\n color: var(--office-muted-foreground);\n}\n:host([data-controlled]) ::slotted([slot='end']) {\n margin-inline-start: 0;\n}\n.items {\n display: flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n.item {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The page counter is the one text that stays whole. */\n.item[aria-live] {\n flex: none;\n}\n.item + .item::before {\n content: '';\n display: inline-block;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-2);\n vertical-align: middle;\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.item.sr,\n.item.sr::before {\n position: absolute;\n width: var(--office-space-px);\n height: var(--office-space-px);\n margin: calc(-1 * var(--office-space-px));\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.item.sr::before {\n display: none;\n}\n.item.saving {\n color: var(--office-warning);\n}\n.item.error {\n color: var(--office-danger);\n}\n.spacer {\n flex: 1;\n}\n.toggles,\n.group {\n display: flex;\n align-items: center;\n gap: var(--office-space-0);\n}\n/* The cards look (look.ts) turns the view switcher and the zoom into pills. */\n.group {\n border-radius: var(--_office-look-pill, 0);\n background: var(--_office-look-pill-track, transparent);\n}\n.group button {\n border-radius: var(--_office-look-pill, var(--office-radius-sm));\n}\n.sep {\n flex: none;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-0);\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.bar button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-1);\n min-width: var(--office-control-height-xs);\n min-height: var(--office-control-height-xs);\n padding: var(--office-space-1);\n border: 0;\n border-radius: var(--office-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n touch-action: manipulation;\n}\n.bar button:hover {\n background: var(--office-selected);\n color: var(--office-foreground);\n}\n.bar button[aria-pressed='true'] {\n color: var(--office-accent);\n}\n.bar button:active {\n opacity: 0.8;\n}\n.bar button:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: var(--office-focus-offset);\n}\n.bar svg {\n flex: none;\n width: var(--office-icon-size);\n height: var(--office-icon-size);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.toggle svg,\n.zoom-step svg {\n width: var(--office-icon-size-sm);\n height: var(--office-icon-size-sm);\n}\n.zoom-fit {\n min-width: var(--office-zoom-value-width);\n font-variant-numeric: tabular-nums;\n}\n@media (max-width: 767px) {\n .narrow-hide,\n .toggle .label {\n display: none !important;\n }\n}\n@media (pointer: coarse) {\n .bar button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n@media (forced-colors: active) {\n :host {\n background: Canvas;\n color: CanvasText;\n border-top-color: CanvasText;\n }\n .bar button {\n color: ButtonText;\n }\n .bar button:hover {\n background: Highlight;\n color: HighlightText;\n }\n .bar button[aria-pressed='true'] {\n border: var(--office-border-width) solid Highlight;\n }\n .bar button:focus-visible {\n outline-color: Highlight;\n }\n .sep,\n .item + .item::before {\n background: CanvasText;\n }\n}\n";
|
|
8130
8136
|
|
|
8131
8137
|
// src/chrome/status-bar.ts
|
|
8132
8138
|
var OfficeUiStatusBar = class extends OfficeElement {
|
|
@@ -8226,7 +8232,7 @@ var OfficeUiStatusBar = class extends OfficeElement {
|
|
|
8226
8232
|
)}
|
|
8227
8233
|
</span>
|
|
8228
8234
|
<i class="sep tight" aria-hidden="true" ?hidden=${viewsHidden || togglesHidden}></i>
|
|
8229
|
-
<div class="group views" ?hidden=${viewsHidden}>
|
|
8235
|
+
<div class="group views" part="views" ?hidden=${viewsHidden}>
|
|
8230
8236
|
${repeat(
|
|
8231
8237
|
views,
|
|
8232
8238
|
(spec) => spec.id,
|
|
@@ -8240,7 +8246,7 @@ var OfficeUiStatusBar = class extends OfficeElement {
|
|
|
8240
8246
|
></slot>
|
|
8241
8247
|
<slot name="end"></slot>
|
|
8242
8248
|
<i class="sep tight" aria-hidden="true" ?hidden=${zoomHidden}></i>
|
|
8243
|
-
<div class="group zoom" ?hidden=${zoomHidden}>
|
|
8249
|
+
<div class="group zoom" part="zoom" ?hidden=${zoomHidden}>
|
|
8244
8250
|
${this.zoomStep("zoomOut", zoom?.outLabel ?? "", zoom?.outIcon ?? "minus")}
|
|
8245
8251
|
<button
|
|
8246
8252
|
type="button"
|
|
@@ -8610,6 +8616,48 @@ var OfficeUiTaskPane = class extends OfficeElement {
|
|
|
8610
8616
|
};
|
|
8611
8617
|
var defineTaskPane = definer("office-ui-task-pane", () => OfficeUiTaskPane);
|
|
8612
8618
|
|
|
8619
|
+
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/chrome/format-section.css?raw
|
|
8620
|
+
var format_section_default = ":host {\n display: block;\n min-width: 0;\n color: var(--office-foreground);\n font-family: var(--office-font);\n font-size: var(--office-font-size-sm);\n border-bottom: var(--office-border-width) solid var(--office-border);\n}\n:host([hidden]) {\n display: none;\n}\nsummary {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n /* The cards look (look.ts) sets the private properties; the fallbacks are the default look. */\n min-height: var(--_office-look-heading-height, var(--office-target-size));\n padding: var(--office-space-1);\n border-radius: var(--_office-look-control-radius, var(--office-radius-sm));\n font-size: var(--_office-look-heading-size, inherit);\n cursor: pointer;\n list-style: none;\n user-select: none;\n font-weight: var(--office-font-weight-bold);\n}\nsummary::-webkit-details-marker {\n display: none;\n}\nsummary:hover {\n background: var(--office-surface);\n}\nsummary:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: calc(-1 * var(--office-border-width));\n}\n.chevron {\n flex: none;\n width: var(--office-icon-size-sm);\n height: var(--office-icon-size-sm);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n transition: transform 120ms ease;\n}\ndetails[open] > summary .chevron {\n transform: rotate(90deg);\n}\n.label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.badge {\n flex: none;\n padding: 0 var(--office-space-1);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius-sm);\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-xs);\n font-weight: normal;\n}\n.body {\n padding: var(--office-space-1) var(--office-space-1) var(--office-space-3);\n}\n@media (prefers-reduced-motion: reduce) {\n .chevron {\n transition: none;\n }\n}\n@media (forced-colors: active) {\n summary:focus-visible {\n outline-color: Highlight;\n }\n}\n";
|
|
8621
|
+
|
|
8622
|
+
// src/chrome/format-section.ts
|
|
8623
|
+
var OfficeUiFormatSection = class extends OfficeElement {
|
|
8624
|
+
static toggleEvent = "office-section-toggle";
|
|
8625
|
+
static styles = controlStyles(format_section_default);
|
|
8626
|
+
static properties = {
|
|
8627
|
+
label: { type: String },
|
|
8628
|
+
open: flag,
|
|
8629
|
+
mixed: flag,
|
|
8630
|
+
mixedLabel: { type: String, attribute: "mixed-label" }
|
|
8631
|
+
};
|
|
8632
|
+
constructor() {
|
|
8633
|
+
super();
|
|
8634
|
+
this.label = "";
|
|
8635
|
+
this.open = false;
|
|
8636
|
+
this.mixed = false;
|
|
8637
|
+
this.mixedLabel = "";
|
|
8638
|
+
}
|
|
8639
|
+
focus(options) {
|
|
8640
|
+
this.shadowRoot?.querySelector("summary")?.focus(options);
|
|
8641
|
+
}
|
|
8642
|
+
onToggle(event) {
|
|
8643
|
+
event.preventDefault();
|
|
8644
|
+
const open = !this.open;
|
|
8645
|
+
const type = this.constructor.toggleEvent;
|
|
8646
|
+
if (this.fire(type, { open }, true)) this.open = open;
|
|
8647
|
+
}
|
|
8648
|
+
render() {
|
|
8649
|
+
const mixed = this.mixed ? html`<span class="badge" part="badge">${this.mixedLabel || "Mixed"}</span>` : nothing;
|
|
8650
|
+
return html`<details ?open=${this.open}
|
|
8651
|
+
><summary part="heading" @click=${(event) => this.onToggle(event)}
|
|
8652
|
+
>${glyph("chevronRight", "chevron", true)}<span class="label" part="label"
|
|
8653
|
+
>${this.label}</span
|
|
8654
|
+
>${mixed}</summary
|
|
8655
|
+
><div class="body" part="body"><slot></slot></div
|
|
8656
|
+
></details>`;
|
|
8657
|
+
}
|
|
8658
|
+
};
|
|
8659
|
+
var defineFormatSection = definer("office-ui-format-section", () => OfficeUiFormatSection);
|
|
8660
|
+
|
|
8613
8661
|
// src/chrome/title-bar-types.ts
|
|
8614
8662
|
var OFFICE_TITLE_BAR_SEARCH_LIMIT = 8;
|
|
8615
8663
|
function matchTitleBarCommands(search, query) {
|
|
@@ -12043,6 +12091,7 @@ var CONTROL_DEFINERS = [
|
|
|
12043
12091
|
defineZoomSlider,
|
|
12044
12092
|
defineTabStrip,
|
|
12045
12093
|
defineTaskPane,
|
|
12094
|
+
defineFormatSection,
|
|
12046
12095
|
defineOptionsDialog,
|
|
12047
12096
|
defineAccount,
|
|
12048
12097
|
defineRibbon,
|
|
@@ -12079,4 +12128,4 @@ function registerControls(registry) {
|
|
|
12079
12128
|
for (const define of CONTROL_DEFINERS) define(registry);
|
|
12080
12129
|
}
|
|
12081
12130
|
|
|
12082
|
-
export { CHART_DATA_SHEET_ENGLISH, CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, glyph, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, rangeControl, range_control_default, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, wireTabDrag, writeOfficeProfile };
|
|
12131
|
+
export { CHART_DATA_SHEET_ENGLISH, CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiFormatSection, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineFormatSection, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, glyph, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, rangeControl, range_control_default, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, wireTabDrag, writeOfficeProfile };
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
// src/look-tokens.ts
|
|
2
|
+
var LOOK_TOKENS = {
|
|
3
|
+
/** A floating card: the ribbon, thumbnail rail, canvas, notes and side pane. */
|
|
4
|
+
"--office-shadow-card": "0 1px 3px rgb(60 64 67 / 20%), 0 2px 6px rgb(60 64 67 / 8%)",
|
|
5
|
+
/** A card above the cards: menus and popovers. */
|
|
6
|
+
"--office-shadow-card-strong": "0 1px 3px rgb(60 64 67 / 30%), 0 4px 8px 3px rgb(60 64 67 / 15%)",
|
|
7
|
+
/** Cards carry no hard border in light; dark themes give them a subtle one. */
|
|
8
|
+
"--office-card-border": "transparent",
|
|
9
|
+
"--office-radius-surface": "14px",
|
|
10
|
+
"--office-radius-toolbar": "12px",
|
|
11
|
+
"--office-radius-control": "7px",
|
|
12
|
+
/** The space between cards and around them. */
|
|
13
|
+
"--office-workspace-gap": "12px",
|
|
14
|
+
"--office-side-pane-width": "320px",
|
|
15
|
+
"--office-pane-heading-height": "36px",
|
|
16
|
+
"--office-pane-field-height": "32px"
|
|
17
|
+
};
|
|
18
|
+
var LOOK_DARK_TOKENS = {
|
|
19
|
+
"--office-shadow-card": "0 1px 3px rgb(0 0 0 / 40%), 0 2px 6px rgb(0 0 0 / 20%)",
|
|
20
|
+
"--office-shadow-card-strong": "0 1px 3px rgb(0 0 0 / 50%), 0 4px 8px 3px rgb(0 0 0 / 30%)",
|
|
21
|
+
"--office-card-border": "rgb(255 255 255 / 8%)"
|
|
22
|
+
};
|
|
23
|
+
|
|
1
24
|
// src/tokens.ts
|
|
2
25
|
var OFFICE_TOKENS = {
|
|
3
26
|
// Colour: semantic
|
|
@@ -283,7 +306,9 @@ var OFFICE_TOKENS = {
|
|
|
283
306
|
"--office-call-danger-hover": "#a72a40",
|
|
284
307
|
"--office-call-live": "#6bb700",
|
|
285
308
|
"--office-call-scrim": "rgb(0 0 0 / 60%)",
|
|
286
|
-
"--office-shadow-teams": "0 2px 4px rgb(0 0 0 / 14%), 0 0 2px rgb(0 0 0 / 12%)"
|
|
309
|
+
"--office-shadow-teams": "0 2px 4px rgb(0 0 0 / 14%), 0 0 2px rgb(0 0 0 / 12%)",
|
|
310
|
+
// The cards look (look-tokens.ts)
|
|
311
|
+
...LOOK_TOKENS
|
|
287
312
|
};
|
|
288
313
|
function tok(name) {
|
|
289
314
|
return `var(${name}, ${OFFICE_TOKENS[name]})`;
|
|
@@ -292,4 +317,4 @@ var FOCUS_RING = `outline: ${tok("--office-focus-width")} solid ${tok("--office-
|
|
|
292
317
|
var COMPACT = "(max-width: 767px)";
|
|
293
318
|
var TOUCH = `(pointer: coarse), ${COMPACT}`;
|
|
294
319
|
|
|
295
|
-
export { COMPACT, FOCUS_RING, OFFICE_TOKENS, TOUCH, tok };
|
|
320
|
+
export { COMPACT, FOCUS_RING, LOOK_DARK_TOKENS, LOOK_TOKENS, OFFICE_TOKENS, TOUCH, tok };
|