ooxml-ui 1.52.1 → 1.53.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/custom-elements.json +5 -1
- package/dist/base.d.ts +0 -1
- package/dist/building-block-styles.d.ts +1 -0
- package/dist/chart/data-sheet-keys.d.ts +0 -1
- package/dist/chart/format-pane-advanced-space.d.ts +5 -2
- package/dist/chart/format-pane-advanced-space.d.ts.map +1 -1
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-analysis.d.ts.map +1 -1
- package/dist/chart/format-pane-fields.d.ts +0 -1
- package/dist/chart/format-pane-fill-kinds.d.ts +1 -0
- package/dist/chart/format-pane-locales/de.d.ts +1 -0
- package/dist/chart/format-pane-locales/de.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/en.d.ts +0 -1
- package/dist/chart/format-pane-locales/en.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/es.d.ts +1 -0
- package/dist/chart/format-pane-locales/es.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/fr.d.ts +1 -0
- package/dist/chart/format-pane-locales/fr.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/index.d.ts +1 -0
- package/dist/chart/format-pane-locales/ja.d.ts +1 -0
- package/dist/chart/format-pane-locales/ja.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/ko.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/zh-CN.d.ts +1 -0
- package/dist/chart/format-pane-locales/zh-CN.d.ts.map +1 -1
- package/dist/chart/format-pane-model.d.ts +0 -1
- package/dist/chart/format-pane-space.d.ts +10 -3
- package/dist/chart/format-pane-space.d.ts.map +1 -1
- package/dist/chart/format-pane-targets.d.ts +1 -0
- package/dist/chart/format-pane-trendlines.d.ts +17 -0
- package/dist/chart/format-pane-trendlines.d.ts.map +1 -0
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart/format-pane-view.d.ts +10 -1
- package/dist/chart/format-pane-view.d.ts.map +1 -1
- package/dist/chart/format-pane.d.ts +1 -2
- package/dist/chart-format-locales.js +1 -1
- package/dist/chrome/backstage.d.ts +1 -2
- package/dist/chrome/find-replace-fields.d.ts +0 -1
- package/dist/chrome/print-preview.d.ts +2 -1
- package/dist/chrome/ruler.d.ts +1 -2
- package/dist/chrome/tab-strip.d.ts +1 -2
- package/dist/chrome/title-bar.d.ts +1 -2
- package/dist/{chunk-ELVHRXWE.js → chunk-2EBZ6IV6.js} +3 -3
- package/dist/{chunk-2N6QBIKM.js → chunk-J36LIYGS.js} +1 -1
- package/dist/{chunk-GSO4HLIY.js → chunk-JI4ZNPEK.js} +42 -7
- package/dist/{chunk-3TF5IIIJ.js → chunk-NSBQACCO.js} +241 -149
- package/dist/{chunk-QDU4GLWK.js → chunk-X464LPTR.js} +152 -47
- package/dist/{chunk-FP45SLBV.js → chunk-XQIZWJEV.js} +1 -1
- package/dist/{chunk-QGRJJUH7.js → chunk-Y535PPSZ.js} +1 -1
- package/dist/comments/comments-pane.d.ts +1 -2
- package/dist/comments/types.d.ts +1 -0
- package/dist/controls.js +2 -2
- package/dist/dialog/message-dialog.d.ts +2 -1
- package/dist/dialog/progress-dialog.d.ts +1 -2
- package/dist/docx.js +36 -42
- package/dist/embedding/region-host.d.ts +1 -0
- package/dist/export/pdf-font-faces.d.ts +1 -0
- package/dist/export/pdf-image.d.ts +0 -1
- package/dist/export/pdf-path.d.ts +0 -1
- package/dist/export/pdf-svg-notes.d.ts +0 -1
- package/dist/export/pdf-svg-text.d.ts +1 -0
- package/dist/files/cloud-files-labels.d.ts +0 -1
- package/dist/files/cloud-files.d.ts +2 -1
- package/dist/files/connected-services.d.ts +1 -2
- package/dist/fonts/webfonts.d.ts +1 -0
- package/dist/form/checkable.d.ts +0 -1
- package/dist/form/checkbox.d.ts +2 -1
- package/dist/form/color-swatches.d.ts +1 -0
- package/dist/form/switch.d.ts +1 -2
- package/dist/glyph.d.ts +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/image-native-size.d.ts +0 -1
- package/dist/index.js +6 -6
- package/dist/look.d.ts +1 -0
- package/dist/menu/menu-button.d.ts +1 -2
- package/dist/menu/menu-model.d.ts +0 -1
- package/dist/notices/paste-options.d.ts +2 -1
- package/dist/notices/read-only-banner.d.ts +2 -1
- package/dist/notices/toasts.d.ts +1 -2
- package/dist/picture-artistic-preview.d.ts +1 -0
- package/dist/picture-effects.d.ts +1 -0
- package/dist/picture-pixels.d.ts +1 -0
- package/dist/picture-standard-filter.d.ts +1 -0
- package/dist/pptx/{chunk-FQGG3DGL.mjs → chunk-5PL3ZZV4.mjs} +1 -1
- package/dist/pptx/{chunk-4K4DO7RJ.mjs → chunk-75MKMQP5.mjs} +69 -7
- package/dist/pptx/{chunk-JVCSVLFU.cjs → chunk-O33ER4AJ.cjs} +69 -7
- package/dist/pptx/{chunk-OFXOF5ZX.mjs → chunk-OS2SX33G.mjs} +2791 -1318
- package/dist/pptx/{chunk-SWJV6FQN.cjs → chunk-STQTJXYQ.cjs} +2824 -1316
- package/dist/pptx/{chunk-OATLMHQL.cjs → chunk-TJPRGVT4.cjs} +42 -42
- package/dist/pptx/dom/index.cjs +377 -377
- package/dist/pptx/dom/index.mjs +6 -6
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en-galleries-data.d.ts.map +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3410 -3270
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/controller/index.d.ts +6 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/controller/presentation-ink-controller.d.ts +121 -0
- package/dist/pptx/render/controller/presentation-ink-controller.d.ts.map +1 -0
- package/dist/pptx/render/controller/presentation-rehearsal-controller.d.ts +71 -0
- package/dist/pptx/render/controller/presentation-rehearsal-controller.d.ts.map +1 -0
- package/dist/pptx/render/controller/presenter-session-controller.d.ts +85 -0
- package/dist/pptx/render/controller/presenter-session-controller.d.ts.map +1 -0
- package/dist/pptx/render/editor-chrome/ribbon-css.d.ts +1 -1
- package/dist/pptx/render/editor-chrome/ribbon-css.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inspector/index.d.ts +6 -0
- package/dist/pptx/render/inspector/index.d.ts.map +1 -1
- package/dist/pptx/render/inspector/shape-fill-actions.d.ts +109 -0
- package/dist/pptx/render/inspector/shape-fill-actions.d.ts.map +1 -0
- package/dist/pptx/render/inspector/shape-fill-fields.d.ts +54 -0
- package/dist/pptx/render/inspector/shape-fill-fields.d.ts.map +1 -0
- package/dist/pptx/render/inspector/shape-fill-stops.d.ts +21 -0
- package/dist/pptx/render/inspector/shape-fill-stops.d.ts.map +1 -0
- package/dist/pptx/render/ribbon-galleries/smartart-colors-gallery.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-galleries/smartart-gallery-patch.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-galleries/smartart-native-entries.d.ts +36 -0
- package/dist/pptx/render/ribbon-galleries/smartart-native-entries.d.ts.map +1 -0
- package/dist/pptx/render/ribbon-galleries/smartart-styles-gallery.d.ts +0 -11
- package/dist/pptx/render/ribbon-galleries/smartart-styles-gallery.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-tab-row.d.ts +61 -0
- package/dist/pptx/render/ribbon-tab-row.d.ts.map +1 -0
- package/dist/pptx/{smartart-insert-preview-DF6KSG3D.mjs → smartart-insert-preview-FJFP4JJ5.mjs} +3 -3
- package/dist/pptx/{smartart-insert-preview-BYPU325G.cjs → smartart-insert-preview-XNHOSN3T.cjs} +4 -4
- package/dist/pptx/web-components/index.d.ts +2 -0
- package/dist/pptx/web-components/index.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/ribbon-tabs-styles.d.ts +8 -0
- package/dist/pptx/web-components/ribbon-tabs-styles.d.ts.map +1 -0
- package/dist/pptx/web-components/ribbon-tabs.d.ts +25 -0
- package/dist/pptx/web-components/ribbon-tabs.d.ts.map +1 -0
- package/dist/presence.d.ts +1 -0
- package/dist/ribbon/auto-collapse.d.ts +1 -0
- package/dist/ribbon/ribbon-actions.d.ts +1 -2
- package/dist/ribbon/ribbon-group.d.ts +2 -1
- package/dist/ribbon/ribbon-section.d.ts +1 -2
- package/dist/ribbon/ribbon-tabs.d.ts +24 -2
- package/dist/ribbon/ribbon-tabs.d.ts.map +1 -1
- package/dist/ribbon/ribbon-toggle.d.ts +2 -1
- package/dist/ribbon/ribbon-toolbar.d.ts +1 -2
- package/dist/ribbon/scroll-more.d.ts +1 -0
- package/dist/ribbon/svg-preview.d.ts +1 -0
- package/dist/smartart/definition-tiles.d.ts +21 -0
- package/dist/smartart/definition-tiles.d.ts.map +1 -0
- package/dist/smartart/galleries.d.ts +12 -9
- package/dist/smartart.d.ts +1 -0
- package/dist/smartart.js +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/teams.js +3 -3
- package/dist/touch-targets.d.ts +0 -1
- package/dist/visio.js +5 -5
- package/dist/xlsx/chart-format-source.d.ts +4 -3
- package/dist/xlsx.js +46 -26
- package/package.json +2 -2
package/dist/pptx/{smartart-insert-preview-DF6KSG3D.mjs → smartart-insert-preview-FJFP4JJ5.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildSmartArtInsertPreview } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { buildSmartArtInsertPreview } from './chunk-5PL3ZZV4.mjs';
|
|
2
|
+
import './chunk-OS2SX33G.mjs';
|
|
3
3
|
import './chunk-3DJZBAQ2.mjs';
|
|
4
4
|
import './chunk-RQJOOXRG.mjs';
|
|
5
5
|
import './chunk-7BHPBO2O.mjs';
|
|
@@ -35,6 +35,6 @@ import './chunk-IEAO7N4E.mjs';
|
|
|
35
35
|
import './chunk-XAOEDYA5.mjs';
|
|
36
36
|
import './chunk-Q23MZFWZ.mjs';
|
|
37
37
|
import './chunk-AEQGGKRZ.mjs';
|
|
38
|
-
import './chunk-
|
|
38
|
+
import './chunk-75MKMQP5.mjs';
|
|
39
39
|
import './chunk-PM2SOLK3.mjs';
|
|
40
40
|
import './chunk-PEDGPFLR.mjs';
|
package/dist/pptx/{smartart-insert-preview-BYPU325G.cjs → smartart-insert-preview-XNHOSN3T.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkTJPRGVT4_cjs = require('./chunk-TJPRGVT4.cjs');
|
|
4
|
+
require('./chunk-STQTJXYQ.cjs');
|
|
5
5
|
require('./chunk-LOUVYGWX.cjs');
|
|
6
6
|
require('./chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('./chunk-W3X2UVYQ.cjs');
|
|
@@ -37,7 +37,7 @@ require('./chunk-UPN5FFKP.cjs');
|
|
|
37
37
|
require('./chunk-FQUX6AUU.cjs');
|
|
38
38
|
require('./chunk-IV2F5JWR.cjs');
|
|
39
39
|
require('./chunk-U47LRWDT.cjs');
|
|
40
|
-
require('./chunk-
|
|
40
|
+
require('./chunk-O33ER4AJ.cjs');
|
|
41
41
|
require('./chunk-3RIGT7H6.cjs');
|
|
42
42
|
require('./chunk-PBZWDEXQ.cjs');
|
|
43
43
|
|
|
@@ -45,5 +45,5 @@ require('./chunk-PBZWDEXQ.cjs');
|
|
|
45
45
|
|
|
46
46
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkTJPRGVT4_cjs.buildSmartArtInsertPreview; }
|
|
49
49
|
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { slideClipboardLabels } from './slide-clipboard.js';
|
|
2
|
+
export { ribbonTab, ribbonTabButtons } from './ribbon-tabs.js';
|
|
3
|
+
export type { PptxUiRibbonTabsElement } from './ribbon-tabs.js';
|
|
2
4
|
export type { PptxUiSlideClipboardElement } from './slide-clipboard.js';
|
|
3
5
|
export { smartArtTextPaneLabels } from './smartart-text-pane.js';
|
|
4
6
|
export type { PptxUiSmartArtTextPaneElement, SmartArtTextPaneChange, SmartArtTextPaneChangeEvent, SmartArtTextPaneViewState, } from './smartart-text-pane.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AA0BrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,YAAY,EACX,6BAA6B,EAC7B,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* (the `--pptx-*` theme lives on the viewer root, not `:root`), so a viewer theme, a title-bar
|
|
6
6
|
* override of `--pptx-switch-*` or any host override keeps working unchanged.
|
|
7
7
|
*/
|
|
8
|
-
export declare const OFFICE_ALIAS_TAGS: readonly ['pptx-ui-checkbox', 'pptx-ui-switch', 'pptx-ui-radio', 'pptx-ui-search', 'pptx-ui-open-places', 'pptx-ui-connected-services', 'pptx-ui-color-grid', 'pptx-ui-chart-data-sheet', 'pptx-ui-select', 'pptx-ui-ribbon-toggle', 'pptx-ui-dialog-footer', 'pptx-ui-compat-toasts', 'pptx-ui-read-only-banner', 'pptx-ui-export-progress', 'pptx-ui-paste-options', 'pptx-ui-ribbon-command', 'pptx-ui-ribbon-group', 'pptx-ui-context-menu', 'pptx-ui-title-bar', 'pptx-ui-status-bar', 'pptx-ui-ribbon-gallery', 'pptx-ui-ribbon-actions', 'pptx-ui-options-dialog', 'pptx-ui-smartart-text-pane', 'pptx-ui-format-section'];
|
|
8
|
+
export declare const OFFICE_ALIAS_TAGS: readonly ['pptx-ui-checkbox', 'pptx-ui-switch', 'pptx-ui-radio', 'pptx-ui-search', 'pptx-ui-open-places', 'pptx-ui-connected-services', 'pptx-ui-color-grid', 'pptx-ui-chart-data-sheet', 'pptx-ui-select', 'pptx-ui-ribbon-toggle', 'pptx-ui-dialog-footer', 'pptx-ui-compat-toasts', 'pptx-ui-read-only-banner', 'pptx-ui-export-progress', 'pptx-ui-paste-options', 'pptx-ui-ribbon-command', 'pptx-ui-ribbon-group', 'pptx-ui-context-menu', 'pptx-ui-title-bar', 'pptx-ui-status-bar', 'pptx-ui-ribbon-gallery', 'pptx-ui-ribbon-actions', 'pptx-ui-ribbon-tabs', 'pptx-ui-options-dialog', 'pptx-ui-smartart-text-pane', 'pptx-ui-format-section'];
|
|
9
9
|
/**
|
|
10
10
|
* The bridge for one alias, as `:host` rules in its own shadow root. It must travel with the
|
|
11
11
|
* element: controls rendered inside another shadow root (the title bar's search and AutoSave
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"office-token-bridge.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/office-token-bridge.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAC7B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,CACf,CAAC;
|
|
1
|
+
{"version":3,"file":"office-token-bridge.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/office-token-bridge.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAC7B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,CACf,CAAC;AAuIX;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAqCzE;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,+NAG/B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPoint's touches on the shared tab row (`pptx-ui-ribbon-tabs`). File is one of the tabs, in
|
|
3
|
+
* the accent colour and filled while its backstage shows, so the shared File button never draws.
|
|
4
|
+
* A selected tab reads in the foreground colour over the accent underline; a contextual tab keeps
|
|
5
|
+
* its tint. Every value is an `--office-*` token the pptx bridge feeds from the viewer theme.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RIBBON_TABS_CSS = "\n.file { display: none; }\n.head { min-height: var(--office-ribbon-tab-height); }\n[role='tab'] { padding: 8px 14px; font-weight: 500; line-height: 18px; white-space: nowrap; }\n[role='tab'][aria-selected='true']:not([data-contextual]) { color: var(--office-foreground); }\n[role='tab'][data-tab='file'] { color: var(--office-accent); }\n[role='tab'][data-tab='file'][aria-selected='true'] {\n\tbackground: var(--office-accent); color: var(--office-accent-foreground);\n}\n[role='tab'][data-tab='file'][aria-selected='true']::after { content: none; }\n";
|
|
8
|
+
//# sourceMappingURL=ribbon-tabs-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon-tabs-styles.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/ribbon-tabs-styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,8iBAU3B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RibbonTabRowState } from '../render/index.js';
|
|
2
|
+
/** The `pptx-ui-ribbon-tabs` element as a binding sees it. */
|
|
3
|
+
export interface PptxUiRibbonTabsElement extends HTMLElement {
|
|
4
|
+
state: RibbonTabRowState | undefined;
|
|
5
|
+
/** The tabs as drawn. */
|
|
6
|
+
tabButtons(): HTMLButtonElement[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The tab buttons of every `pptx-ui-ribbon-tabs` under `root` (they live in its shadow root), for
|
|
10
|
+
* tests and for code that looks a tab up by its label.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ribbonTabButtons(root: ParentNode): HTMLButtonElement[];
|
|
13
|
+
/** The first tab under `root` that matches `selector` (any tab by default), or null. */
|
|
14
|
+
export declare function ribbonTab(root: ParentNode, selector?: string): HTMLButtonElement | null;
|
|
15
|
+
/**
|
|
16
|
+
* `pptx-ui-ribbon-tabs`: the PowerPoint ribbon tab row, the shared `office-ui-ribbon` (the tab row
|
|
17
|
+
* Word, Excel and Visio draw) under the pptx tag, with the pptx token bridge. Controlled through
|
|
18
|
+
* `state` (`buildRibbonTabRow`): the element never changes the selection itself. Events:
|
|
19
|
+
* `tab-select` `{ tab, kind }` (a click, or the arrow keys, Home and End on the tabs) and
|
|
20
|
+
* `collapse-toggle` (a double click on a tab other than File). Light-DOM children with
|
|
21
|
+
* `slot="actions"` sit at the right end of the row (Record, Comments and Share, Ribbon Display
|
|
22
|
+
* Options).
|
|
23
|
+
*/
|
|
24
|
+
export declare function definePptxRibbonTabs(registry: CustomElementRegistry): void;
|
|
25
|
+
//# sourceMappingURL=ribbon-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon-tabs.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/ribbon-tabs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAyB,MAAM,WAAW,CAAC;AAM1E,8DAA8D;AAC9D,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC3D,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,yBAAyB;IACzB,UAAU,IAAI,iBAAiB,EAAE,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,iBAAiB,EAAE,CAMtE;AAED,wFAAwF;AACxF,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,SAAiB,GAAG,iBAAiB,GAAG,IAAI,CAE/F;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAuE1E"}
|
package/dist/presence.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare const SHORT_VIEWPORT_MEDIA = "(max-height: 500px)";
|
|
|
5
5
|
* viewport collapses it (as Office does), so the document keeps the height.
|
|
6
6
|
*/
|
|
7
7
|
export declare function resolveCollapsed(shortViewport: boolean, userChoice: boolean | undefined): boolean;
|
|
8
|
+
//# sourceMappingURL=auto-collapse.d.ts.map
|
|
@@ -115,5 +115,4 @@ export declare class OfficeUiRibbonActions extends OfficeElement {
|
|
|
115
115
|
protected updated(): void;
|
|
116
116
|
protected render(): import("lit").TemplateResult<1>;
|
|
117
117
|
}
|
|
118
|
-
export declare const defineRibbonActions: import("../
|
|
119
|
-
//# sourceMappingURL=ribbon-actions.d.ts.map
|
|
118
|
+
export declare const defineRibbonActions: import("../index.js").Definer;
|
|
@@ -32,4 +32,5 @@ export declare class OfficeUiRibbonGroup extends OfficeElement {
|
|
|
32
32
|
protected willUpdate(): void;
|
|
33
33
|
protected render(): import("lit").TemplateResult<1>;
|
|
34
34
|
}
|
|
35
|
-
export declare const defineRibbonGroup: import("../
|
|
35
|
+
export declare const defineRibbonGroup: import("../registry.js").Definer;
|
|
36
|
+
//# sourceMappingURL=ribbon-group.d.ts.map
|
|
@@ -46,5 +46,4 @@ export declare class OfficeUiRibbonSection extends OfficeElement {
|
|
|
46
46
|
set groups(value: readonly OfficeRibbonGroupView[] | null | undefined);
|
|
47
47
|
connectedCallback(): void;
|
|
48
48
|
}
|
|
49
|
-
export declare const defineRibbonSection: import("../
|
|
50
|
-
//# sourceMappingURL=ribbon-section.d.ts.map
|
|
49
|
+
export declare const defineRibbonSection: import("../index.js").Definer;
|
|
@@ -3,12 +3,26 @@ import { OfficeElement } from '../base.js';
|
|
|
3
3
|
export type OfficeRibbonSelectEvent = CustomEvent<{
|
|
4
4
|
tab: string;
|
|
5
5
|
}>;
|
|
6
|
+
/**
|
|
7
|
+
* One tab a host gives `items` directly: the tab row then draws these instead of reading tabs off
|
|
8
|
+
* the panels (a product that renders its panels elsewhere, as PowerPoint's bindings do).
|
|
9
|
+
*/
|
|
10
|
+
export interface OfficeRibbonTabItem {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly label: string;
|
|
13
|
+
/** Tints the tab as a contextual tab (`--office-ribbon-contextual`). */
|
|
14
|
+
readonly contextual?: boolean;
|
|
15
|
+
readonly keytip?: string;
|
|
16
|
+
/** The tab's tooltip (a ScreenTip); none when absent. */
|
|
17
|
+
readonly title?: string;
|
|
18
|
+
}
|
|
6
19
|
interface RibbonTab {
|
|
7
20
|
id: string;
|
|
8
21
|
label: string;
|
|
9
22
|
contextual: boolean;
|
|
10
23
|
keytip?: string;
|
|
11
24
|
keytipPanel?: string;
|
|
25
|
+
title?: string;
|
|
12
26
|
}
|
|
13
27
|
/**
|
|
14
28
|
* `<office-ui-ribbon>`: the Office tab row (Quick Access Toolbar, File, tabs, search) over the
|
|
@@ -27,6 +41,11 @@ interface RibbonTab {
|
|
|
27
41
|
* shows its panel over the content (`peek`) until Escape, a command or a click elsewhere. Ctrl+F1 and
|
|
28
42
|
* a double click on a tab toggle it. `collapse-label` names the button. Event:
|
|
29
43
|
* `office-ribbon-collapse` `{ collapsed }`.
|
|
44
|
+
*
|
|
45
|
+
* `items` (a property) switches the element to a tab row only: the tabs come from the list, in its
|
|
46
|
+
* order, and the element leaves its children alone (it neither hides panels nor reads tabs off them).
|
|
47
|
+
* `selected` is then the selected item's id, or empty when it names none, and a click on the
|
|
48
|
+
* selected tab fires `office-ribbon-select` too.
|
|
30
49
|
*/
|
|
31
50
|
export declare class OfficeUiRibbon extends OfficeElement {
|
|
32
51
|
static styles: import("lit").CSSResult[];
|
|
@@ -87,6 +106,9 @@ export declare class OfficeUiRibbon extends OfficeElement {
|
|
|
87
106
|
attribute: string;
|
|
88
107
|
type: StringConstructor;
|
|
89
108
|
};
|
|
109
|
+
items: {
|
|
110
|
+
attribute: boolean;
|
|
111
|
+
};
|
|
90
112
|
tabs: {
|
|
91
113
|
state: boolean;
|
|
92
114
|
};
|
|
@@ -100,6 +122,7 @@ export declare class OfficeUiRibbon extends OfficeElement {
|
|
|
100
122
|
collapsed: boolean;
|
|
101
123
|
peek: boolean;
|
|
102
124
|
collapseLabel: string | null;
|
|
125
|
+
items: readonly OfficeRibbonTabItem[] | null;
|
|
103
126
|
tabs: RibbonTab[];
|
|
104
127
|
private chosen;
|
|
105
128
|
constructor();
|
|
@@ -147,6 +170,5 @@ export declare class OfficeUiRibbon extends OfficeElement {
|
|
|
147
170
|
protected updated(): void;
|
|
148
171
|
protected render(): import("lit").TemplateResult<1>;
|
|
149
172
|
}
|
|
150
|
-
export declare const defineRibbon: import("../
|
|
173
|
+
export declare const defineRibbon: import("../index.js").Definer;
|
|
151
174
|
export {};
|
|
152
|
-
//# sourceMappingURL=ribbon-tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ribbon-tabs.d.ts","sourceRoot":"","sources":["../../src/ribbon/ribbon-tabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAM7D,gGAAgG;AAChG,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnE,UAAU,SAAS;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ribbon-tabs.d.ts","sourceRoot":"","sources":["../../src/ribbon/ribbon-tabs.ts"],"names":[],"mappings":"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"}
|
|
@@ -46,4 +46,5 @@ export declare class OfficeUiRibbonToggle extends OfficeElement {
|
|
|
46
46
|
private onChange;
|
|
47
47
|
protected render(): import("lit").TemplateResult;
|
|
48
48
|
}
|
|
49
|
-
export declare const defineRibbonToggle: import("../
|
|
49
|
+
export declare const defineRibbonToggle: import("../registry.js").Definer;
|
|
50
|
+
//# sourceMappingURL=ribbon-toggle.d.ts.map
|
|
@@ -12,5 +12,4 @@ export declare class OfficeUiToolbar extends OfficeElement {
|
|
|
12
12
|
protected willUpdate(): void;
|
|
13
13
|
protected render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
|
15
|
-
export declare const defineToolbar: import("../
|
|
16
|
-
//# sourceMappingURL=ribbon-toolbar.d.ts.map
|
|
15
|
+
export declare const defineToolbar: import("../index.js").Definer;
|
|
@@ -4,3 +4,4 @@ export declare function escapeSvgText(text: string): string;
|
|
|
4
4
|
export declare function safeColor(color: string | undefined, fallback?: string): string;
|
|
5
5
|
/** The shared shell every tile uses. */
|
|
6
6
|
export declare function svgTile(width: number, height: number, defs: string, body: string): string;
|
|
7
|
+
//# sourceMappingURL=svg-preview.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gallery tiles for Office's built-in SmartArt colour and quick-style definitions (the full
|
|
3
|
+
* Change Colors and SmartArt Styles catalogue of `ooxml-core/diagram`): three boxes coloured the
|
|
4
|
+
* way a definition's `node1` label fills and outlines them, with its effect strength, bevel and
|
|
5
|
+
* spatial camera suggested. A tile is a hint for picking, not a rendering of the definition.
|
|
6
|
+
*/
|
|
7
|
+
import type { DiagramNativeColorEntry, DiagramNativeStyleEntry } from 'ooxml-core/diagram';
|
|
8
|
+
import type { SmartArtTileSize } from './tiles.js';
|
|
9
|
+
/** Resolved theme colours by scheme name (`accent1`, `lt1`, `dk2`, ...), as CSS colours. */
|
|
10
|
+
export type SmartArtThemeColors = Partial<Record<string, string>>;
|
|
11
|
+
/**
|
|
12
|
+
* The fills a colour definition's `node1` label gives `count` nodes: `span` blends the list across
|
|
13
|
+
* the nodes, `cycle` repeats it, `repeat` keeps the last colour. An approximation of DiagramML's
|
|
14
|
+
* colour application (no hue direction), for tiles and for an editor that recolours shapes.
|
|
15
|
+
*/
|
|
16
|
+
export declare function smartArtDefinitionFills(entry: DiagramNativeColorEntry, theme: SmartArtThemeColors, count?: number): string[];
|
|
17
|
+
/** A Change Colors tile for a built-in colour definition. */
|
|
18
|
+
export declare function smartArtColorDefinitionTileSvg(entry: DiagramNativeColorEntry, theme: SmartArtThemeColors, size: SmartArtTileSize): string;
|
|
19
|
+
/** A SmartArt Styles tile for a built-in quick-style definition, drawn in `accent`. */
|
|
20
|
+
export declare function smartArtStyleDefinitionTileSvg(entry: DiagramNativeStyleEntry, accent: string | undefined, size: SmartArtTileSize): string;
|
|
21
|
+
//# sourceMappingURL=definition-tiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition-tiles.d.ts","sourceRoot":"","sources":["../../src/smartart/definition-tiles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,4FAA4F;AAC5F,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AA+ClE;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,uBAAuB,EAC9B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,SAAI,GACP,MAAM,EAAE,CAYV;AA0CD,6DAA6D;AAC7D,wBAAgB,8BAA8B,CAC7C,KAAK,EAAE,uBAAuB,EAC9B,KAAK,EAAE,mBAAmB,EAC1B,IAAI,EAAE,gBAAgB,GACpB,MAAM,CAgBR;AAED,uFAAuF;AACvF,wBAAgB,8BAA8B,CAC7C,KAAK,EAAE,uBAAuB,EAC9B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,IAAI,EAAE,gBAAgB,GACpB,MAAM,CAeR"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The SmartArt Design galleries (Change Colors, SmartArt Styles) as `office-ui-gallery` state, for
|
|
3
|
-
* any product:
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* any product: Office's full built-in catalogue from `ooxml-core/diagram`
|
|
4
|
+
* (`DIAGRAM_NATIVE_COLOR_ENTRIES`, `DIAGRAM_NATIVE_STYLE_ENTRIES`), the tiles from
|
|
5
|
+
* `./definition-tiles`. Item ids are the definitions' short ids (`accent1_2`, `3d1`); a product
|
|
6
|
+
* applies a pick with `builtinSmartArtFormatChange` of `ooxml-core/diagram/builtin`. A product
|
|
7
|
+
* passes its theme colours, the diagram's applied colour or style id (a `uniqueId`, or an id
|
|
8
|
+
* this package wrote for a model scheme), and a translator that receives the English name.
|
|
7
9
|
*/
|
|
8
|
-
import { type DiagramColorEntry
|
|
10
|
+
import { type DiagramColorEntry } from 'ooxml-core/diagram';
|
|
9
11
|
import type { OfficeGalleryState } from '../ribbon/gallery.js';
|
|
12
|
+
import { type SmartArtThemeColors } from './definition-tiles.js';
|
|
10
13
|
/** Resolved theme accents, `accent1` to `accent6`, as CSS colours. */
|
|
11
14
|
export type SmartArtAccents = Partial<Record<DiagramColorEntry['accents'][number], string>>;
|
|
12
15
|
/** Receives an English name and returns it translated. */
|
|
13
16
|
export type SmartArtGalleryTranslate = (english: string) => string;
|
|
14
|
-
/** Change Colors:
|
|
15
|
-
export declare function smartArtColorsGalleryState(
|
|
16
|
-
/** SmartArt Styles:
|
|
17
|
-
export declare function smartArtStylesGalleryState(accent1: string | undefined, current:
|
|
17
|
+
/** Change Colors: Office's sections (Primary Theme Colors, Colorful, Accent 1 to 6). */
|
|
18
|
+
export declare function smartArtColorsGalleryState(theme: SmartArtAccents | SmartArtThemeColors, current: string | undefined, t?: SmartArtGalleryTranslate): OfficeGalleryState;
|
|
19
|
+
/** SmartArt Styles: Best Match for Document and 3-D, drawn in Accent 1. */
|
|
20
|
+
export declare function smartArtStylesGalleryState(accent1: string | undefined, current: string | undefined, t?: SmartArtGalleryTranslate): OfficeGalleryState;
|
package/dist/smartart.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './smartart/smartart.js';
|
|
|
2
2
|
export * from './smartart/smartart-picker.js';
|
|
3
3
|
export * from './smartart/smartart-text-pane.js';
|
|
4
4
|
export * from './smartart/tiles.js';
|
|
5
|
+
export * from './smartart/definition-tiles.js';
|
|
5
6
|
export * from './smartart/galleries.js';
|
|
6
7
|
export * from './smartart/text-pane-controller.js';
|
|
7
8
|
export { picturePaint, type PictureMedia, type PicturePaintContext } from './picture-paint.js';
|
package/dist/smartart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-
|
|
1
|
+
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorDefinitionTileSvg, smartArtColorsGalleryState, smartArtDefinitionFills, smartArtLayoutTileSvg, smartArtStyleDefinitionTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-X464LPTR.js';
|
|
2
2
|
import './chunk-FN7IF6M6.js';
|
|
3
3
|
import './chunk-4W4QZF4C.js';
|
|
4
4
|
import './chunk-5FMWQWLP.js';
|
package/dist/styles.d.ts
CHANGED
package/dist/teams.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
1
|
+
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-J36LIYGS.js';
|
|
2
2
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-4ZSZPUE5.js';
|
|
3
3
|
import './chunk-CDAXY5KC.js';
|
|
4
4
|
import './chunk-NDUD5JJB.js';
|
|
5
5
|
import './chunk-KJMAVPQB.js';
|
|
6
6
|
import './chunk-6C6S4AWF.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-NSBQACCO.js';
|
|
8
8
|
import './chunk-M6GF5ED2.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-JI4ZNPEK.js';
|
|
10
10
|
import './chunk-FQN4XNEF.js';
|
|
11
11
|
import './chunk-FN7IF6M6.js';
|
|
12
12
|
import './chunk-4W4QZF4C.js';
|
package/dist/touch-targets.d.ts
CHANGED
package/dist/visio.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { trackPointerPan, ownsCaptureLoss } from './chunk-GSXOZCAN.js';
|
|
2
|
-
import { FONT_DOWNLOADS_DEFAULT, fontDownloadLock, prepareWebfonts, effectiveFontDownloads, prefetchWebfonts, syncGoogleWebfontStylesheet, attachShareDialog, connectedServicesLabels, chartExSpaceFormatSource } from './chunk-
|
|
2
|
+
import { FONT_DOWNLOADS_DEFAULT, fontDownloadLock, prepareWebfonts, effectiveFontDownloads, prefetchWebfonts, syncGoogleWebfontStylesheet, attachShareDialog, connectedServicesLabels, chartExSpaceFormatSource } from './chunk-XQIZWJEV.js';
|
|
3
3
|
import { createRecoveryScheduler } from './chunk-DA57FPSN.js';
|
|
4
|
-
import { syncRibbonAddIns, createHostBackstagePages, syncHostMenuChildren, tidyMenuSeparators } from './chunk-
|
|
5
|
-
export { RIBBON_ADD_IN_EVENT } from './chunk-
|
|
4
|
+
import { syncRibbonAddIns, createHostBackstagePages, syncHostMenuChildren, tidyMenuSeparators } from './chunk-Y535PPSZ.js';
|
|
5
|
+
export { RIBBON_ADD_IN_EVENT } from './chunk-Y535PPSZ.js';
|
|
6
6
|
import { themeBridge, installOfficeUiThemeFor, prepareOfficeUiBlock } from './chunk-6C6S4AWF.js';
|
|
7
|
-
import { personalizeSection, unavailableCategory, userInterfaceSection, attachKeyTips, registerControls, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile, defineRibbonActions, saveProgressStepChanged, saveProgressLabel, attachRibbonGroupOverflow, defineConnectedServices, defineOpenPlaces, defineChartPicker, defineChartDataSheet, defineChartFormatPane, commentInitials } from './chunk-
|
|
7
|
+
import { personalizeSection, unavailableCategory, userInterfaceSection, attachKeyTips, registerControls, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile, defineRibbonActions, saveProgressStepChanged, saveProgressLabel, attachRibbonGroupOverflow, defineConnectedServices, defineOpenPlaces, defineChartPicker, defineChartDataSheet, defineChartFormatPane, commentInitials } from './chunk-NSBQACCO.js';
|
|
8
8
|
import { getIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-JI4ZNPEK.js';
|
|
10
10
|
import { definePresence } from './chunk-FQN4XNEF.js';
|
|
11
11
|
import { parseSvgPreview } from './chunk-FN7IF6M6.js';
|
|
12
12
|
import './chunk-4W4QZF4C.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ChartObject, type Workbook } from 'ooxml-core/xlsx';
|
|
2
|
-
import type { ChartFormatTarget, ChartSpace } from 'ooxml-core/chart';
|
|
2
|
+
import type { ChartFormatTarget, ChartRangeNumbers, ChartSpace } from 'ooxml-core/chart';
|
|
3
3
|
import type { DrawingColorTheme } from 'ooxml-core/drawingml';
|
|
4
4
|
import { type ChartFormatSource } from '../chart/format-pane-api.js';
|
|
5
5
|
/** The slot Excel's fill controls go into. */
|
|
@@ -12,6 +12,7 @@ export declare function workbookChartTheme(workbook: Workbook): DrawingColorThem
|
|
|
12
12
|
export declare const xlsxFillsTarget: (target: ChartFormatTarget) => boolean;
|
|
13
13
|
/**
|
|
14
14
|
* The Format pane source of `chart` (whose model is `space`) with `target` selected: Excel's fill
|
|
15
|
-
* controls take the Fill section of the elements they edit
|
|
15
|
+
* controls take the Fill section of the elements they edit, and `resolveRange` reads the cells a
|
|
16
|
+
* custom error-bar source names from the workbook.
|
|
16
17
|
*/
|
|
17
|
-
export declare function xlsxChartFormatSource(chart: ChartObject, space: ChartSpace, theme: DrawingColorTheme, target: ChartFormatTarget | undefined): ChartFormatSource;
|
|
18
|
+
export declare function xlsxChartFormatSource(chart: ChartObject, space: ChartSpace, theme: DrawingColorTheme, target: ChartFormatTarget | undefined, resolveRange?: ChartRangeNumbers): ChartFormatSource;
|
package/dist/xlsx.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { statusLayout, watchStatusWidth, defineChartExOptions } from './chunk-HUR5JAG7.js';
|
|
2
2
|
import { trackPointerGesture } from './chunk-GSXOZCAN.js';
|
|
3
|
-
import { attachShareDialog, effectiveFontDownloads, fontDownloadLock, syncGoogleWebfontStylesheet, prefetchWebfonts, prepareWebfonts, chartExSpaceFormatSource, FONT_DOWNLOADS_DEFAULT, connectedServicesLabels } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { attachShareDialog, effectiveFontDownloads, fontDownloadLock, syncGoogleWebfontStylesheet, prefetchWebfonts, prepareWebfonts, chartExSpaceFormatSource, FONT_DOWNLOADS_DEFAULT, connectedServicesLabels } from './chunk-XQIZWJEV.js';
|
|
4
|
+
import './chunk-2EBZ6IV6.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-
|
|
6
|
+
import { createHostBackstagePages, syncRibbonAddIns, withHostMenuItems } from './chunk-Y535PPSZ.js';
|
|
7
|
+
export { RIBBON_ADD_IN_EVENT } from './chunk-Y535PPSZ.js';
|
|
8
|
+
import { needsPicturePixels, pictureSvg, pictureEffectFilter, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, smartArtStylesGalleryState, smartArtColorsGalleryState, safeColor, svgTile } from './chunk-X464LPTR.js';
|
|
9
|
+
import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-J36LIYGS.js';
|
|
10
|
+
export { XLSX_EDITOR_EVENTS } from './chunk-J36LIYGS.js';
|
|
11
11
|
import './chunk-4ZSZPUE5.js';
|
|
12
12
|
import './chunk-CDAXY5KC.js';
|
|
13
13
|
import './chunk-NDUD5JJB.js';
|
|
14
14
|
import './chunk-KJMAVPQB.js';
|
|
15
15
|
import { legacyThemeAliases, legacyThemeBridge, installOfficeUiThemeFor } from './chunk-6C6S4AWF.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, saveProgressLabel, userInterfaceSection, personalizeSection, optionText, unavailableControl, unavailableCategory, defineGallery, defineContextMenu, rangeControl, defineColorGrid, wireTabDrag, defineCommentsPane, defineChartPicker, createLiveColorInput, handleLiveColorEvent } from './chunk-
|
|
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, saveProgressLabel, userInterfaceSection, personalizeSection, optionText, unavailableControl, unavailableCategory, defineGallery, defineContextMenu, rangeControl, defineColorGrid, wireTabDrag, defineCommentsPane, defineChartPicker, createLiveColorInput, handleLiveColorEvent } from './chunk-NSBQACCO.js';
|
|
17
17
|
import { getIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-JI4ZNPEK.js';
|
|
19
19
|
import { definePresence } from './chunk-FQN4XNEF.js';
|
|
20
20
|
import './chunk-FN7IF6M6.js';
|
|
21
21
|
import { withTokens } from './chunk-4W4QZF4C.js';
|
|
22
22
|
import './chunk-5FMWQWLP.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, noteFunctionUse, recentFunctions, 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, stepMatch, validateReplacements, formatCellsState, isSingleCell, spanRange, selectionCellCount, auditState, setSelectionPane, addRange, TEMPLATES, createTemplateWorkbook, sheetLocked, fillPaint, iconSvg, colSelected, rowSelected, isMenuSeparator, textDecoration, justify, alignItems, textAlign, hasBorders, edgeCss, diagonalSvg, rowHeaderMenu, columnHeaderMenu, tabMenu, cellMenu, registerRibbonTabs, installFormatPainter, SHEET_ICONS, clipboardCommands, cellCommands, editingCommands, pageLayoutCommands, pageBreakCommands, formulaCommands, dataCommands, whatIfCommands, contextualCommands, reviewTab, viewTab, helpTab, 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, replaceAllValidated, selectSpecial, insertFunctionCall, guessHeader, regionOf, evaluateRef, editChart, suggestForecastEnd, FORECAST_AGGREGATIONS, createForecastSheet, ForecastError, forecastMessage, HIGHLIGHT_STYLES, addWatch, ICON_SETS, TABLE_STYLES, tableStylePreview, resolveNameBox, absoluteReference, nameForRange, orderFrom, buildChart, createScenarioSummary, detectCategory, CATEGORIES, TIME_CODES, DATE_CODES, DEFAULT_OPTIONS, cellStyleItems, SYMBOLS, buildCode, UNSET, dxfCss, negativeCodes, iconCount, iconThresholds, replaceOneValidated, 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
|
-
import { createWorksheet, cellInputText, createEditSession, approximateMeasure, workbookFontFamily, createWorkbook, MAX_ROW, MAX_COL, FUNCTION_CATALOG, collectWorkbookWebfontRuns, createGridMetrics, splitToPx, splitAtCell, mergeAt, splitVisible, visibleCells, getCell, 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, styleAt, effectiveStyleId, 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, 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';
|
|
25
|
+
import { createWorksheet, cellInputText, createEditSession, approximateMeasure, workbookFontFamily, createWorkbook, MAX_ROW, MAX_COL, FUNCTION_CATALOG, collectWorkbookWebfontRuns, createGridMetrics, splitToPx, splitAtCell, mergeAt, splitVisible, visibleCells, getCell, 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, workbookChartRangeNumbers, xlsxChartExDataSheet, pictureAnchorAt, styleAt, effectiveStyleId, 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, 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';
|
|
26
26
|
import { isCapabilityEnabled, capabilityHiddenActions, saveToStorage, documentSaveMeta, withoutHiddenEntries } from 'ooxml-core/embedding';
|
|
27
27
|
import { hyperlinkPolicy } from 'ooxml-core/opc';
|
|
28
|
-
import { previewDiagramLayout, resolveDiagramDrawingStyles, DIAGRAM_INSERT_CATEGORIES, DIAGRAM_INSERT_PRESETS, RECT_GRADIENT_DIRECTIONS, OFFICE_GRADIENT_PRESETS, officeGradientPresetId, officeGradientPresetFill, resolveDrawingColor, drawingColorBrightness, drawingColorCss, rectGradientDirection, DIAGRAM_DESIGN_COMMANDS,
|
|
28
|
+
import { previewDiagramLayout, resolveDiagramDrawingStyles, DIAGRAM_INSERT_CATEGORIES, DIAGRAM_INSERT_PRESETS, RECT_GRADIENT_DIRECTIONS, OFFICE_GRADIENT_PRESETS, officeGradientPresetId, officeGradientPresetFill, resolveDrawingColor, drawingColorBrightness, drawingColorCss, rectGradientDirection, DIAGRAM_DESIGN_COMMANDS, appliedDiagramNativeId, findDiagramNativeColor, findDiagramNativeStyle, DIAGRAM_ADD_SHAPE_LABEL, DIAGRAM_DESIGN_GROUPS, DIAGRAM_ADD_SHAPE_COMMANDS } from 'ooxml-core/diagram';
|
|
29
29
|
import { parseChartFormatTargetKey, resolveChartGradient, sortGradientStops, withChartGradientDirection, buildChartGradientDef, chartGradientMarkup, applyChartExEditAction, applyChartExSpaceDataSheetEdits, applyChartExEditIntent, CHART_STYLE_PRESETS, CHART_COLOR_PALETTES, CHART_QUICK_LAYOUTS, chartPaletteColors } from 'ooxml-core/chart';
|
|
30
30
|
import { render } from 'lit';
|
|
31
31
|
import { normalizeLocale } from 'ooxml-core/i18n';
|
|
@@ -11050,6 +11050,11 @@ function chooseSmartArt(ctx) {
|
|
|
11050
11050
|
|
|
11051
11051
|
// src/xlsx/smartart-controller.ts
|
|
11052
11052
|
var DEFAULT_SIZE = { width: 480, height: 280 };
|
|
11053
|
+
var styleLibrary;
|
|
11054
|
+
var styleLibraryLoad;
|
|
11055
|
+
var loadStyleLibrary = () => styleLibraryLoad ??= import('ooxml-core/diagram/builtin').then(
|
|
11056
|
+
(module) => styleLibrary = module
|
|
11057
|
+
);
|
|
11053
11058
|
var ICONS = {
|
|
11054
11059
|
addAfter: "smartArtAddShape",
|
|
11055
11060
|
addBefore: "smartArtAddShape",
|
|
@@ -11183,18 +11188,23 @@ function smartArtCommands() {
|
|
|
11183
11188
|
label: kind === "colors" ? "Change Colors" : "SmartArt Styles",
|
|
11184
11189
|
icon: icon("smartArt"),
|
|
11185
11190
|
lock: "objects",
|
|
11186
|
-
enabled: (ctx) =>
|
|
11187
|
-
|
|
11191
|
+
enabled: (ctx) => {
|
|
11192
|
+
const active2 = !!activeSmartArt(ctx);
|
|
11193
|
+
if (active2 && !styleLibrary) void loadStyleLibrary().catch(() => void 0);
|
|
11194
|
+
return active2;
|
|
11195
|
+
},
|
|
11196
|
+
run: async (ctx, arg) => {
|
|
11188
11197
|
const found = activeSmartArt(ctx);
|
|
11189
11198
|
const t = target(ctx);
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11199
|
+
const id = typeof arg === "string" ? appliedDiagramNativeId(kind, `${kind}/${arg}`) : void 0;
|
|
11200
|
+
const choice = kind === "colors" ? findDiagramNativeColor(id) : findDiagramNativeStyle(id);
|
|
11201
|
+
if (!found || !t || !choice) return;
|
|
11202
|
+
const { builtinSmartArtFormatChange } = styleLibrary ?? await loadStyleLibrary();
|
|
11203
|
+
t.session.formatSmartArt(
|
|
11204
|
+
t.sheet,
|
|
11205
|
+
found.index,
|
|
11206
|
+
builtinSmartArtFormatChange(kind, choice.uniqueId)
|
|
11207
|
+
);
|
|
11198
11208
|
}
|
|
11199
11209
|
})
|
|
11200
11210
|
),
|
|
@@ -12000,7 +12010,7 @@ function smartArtDesignTab() {
|
|
|
12000
12010
|
sections: (ctx) => gallerySections(
|
|
12001
12011
|
smartArtStylesGalleryState(
|
|
12002
12012
|
smartArtSchemeColors(ctx.workbook()?.theme).accent1,
|
|
12003
|
-
activeSmartArt(ctx)?.smartArt.quickStyleId
|
|
12013
|
+
activeSmartArt(ctx)?.smartArt.quickStyleId,
|
|
12004
12014
|
(key) => ctx.t(key)
|
|
12005
12015
|
).sections
|
|
12006
12016
|
)
|
|
@@ -12012,7 +12022,7 @@ function smartArtDesignTab() {
|
|
|
12012
12022
|
sections: (ctx) => gallerySections(
|
|
12013
12023
|
smartArtColorsGalleryState(
|
|
12014
12024
|
smartArtSchemeColors(ctx.workbook()?.theme),
|
|
12015
|
-
activeSmartArt(ctx)?.smartArt.colorsId
|
|
12025
|
+
activeSmartArt(ctx)?.smartArt.colorsId,
|
|
12016
12026
|
(key) => ctx.t(key)
|
|
12017
12027
|
).sections
|
|
12018
12028
|
)
|
|
@@ -13146,8 +13156,11 @@ function workbookChartTheme(workbook) {
|
|
|
13146
13156
|
}
|
|
13147
13157
|
var FILL_PARTS = ["chartArea", "plotArea", "title", "legend", "series"];
|
|
13148
13158
|
var xlsxFillsTarget = (target44) => FILL_PARTS.includes(target44.kind);
|
|
13149
|
-
function xlsxChartFormatSource(chart, space, theme, target44) {
|
|
13150
|
-
const source = chartSpaceFormatSource(space, {
|
|
13159
|
+
function xlsxChartFormatSource(chart, space, theme, target44, resolveRange) {
|
|
13160
|
+
const source = chartSpaceFormatSource(space, {
|
|
13161
|
+
theme,
|
|
13162
|
+
...resolveRange ? { resolveRange } : {}
|
|
13163
|
+
});
|
|
13151
13164
|
const spacing = chartBarSpacing(chart);
|
|
13152
13165
|
return {
|
|
13153
13166
|
...source,
|
|
@@ -14260,7 +14273,14 @@ function createChartFormatPane(ctx) {
|
|
|
14260
14273
|
active2.refresh(void 0, void 0);
|
|
14261
14274
|
active2.element.remove();
|
|
14262
14275
|
}
|
|
14263
|
-
|
|
14276
|
+
const sheet = book.sheets[ctx.activeSheet()];
|
|
14277
|
+
element.source = xlsxChartFormatSource(
|
|
14278
|
+
found.chart,
|
|
14279
|
+
space,
|
|
14280
|
+
theme,
|
|
14281
|
+
selected2,
|
|
14282
|
+
sheet && workbookChartRangeNumbers(book, sheet)
|
|
14283
|
+
);
|
|
14264
14284
|
element.target = target44;
|
|
14265
14285
|
element.disabled = !ctx.commands.isEnabled(commandId());
|
|
14266
14286
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.0",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"dompurify": "^3.4.17",
|
|
177
177
|
"emf-converter": "4.25.4",
|
|
178
178
|
"lit": "^3.3.3",
|
|
179
|
-
"ooxml-core": "^1.
|
|
179
|
+
"ooxml-core": "^1.52.0",
|
|
180
180
|
"opentype.js": "^2.0.0",
|
|
181
181
|
"prosemirror-collab": "^1.3.1",
|
|
182
182
|
"prosemirror-commands": "^1.7.2",
|