ooxml-ui 1.18.2 → 1.19.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 +54 -0
- package/dist/building-block-styles.d.ts +5 -0
- package/dist/building-block-styles.d.ts.map +1 -0
- package/dist/chunk-6Y7KR2I3.js +299 -0
- package/dist/{chunk-EVL7GFC7.js → chunk-KH2ZG3N6.js} +2 -2
- package/dist/{chunk-MSXUCINT.js → chunk-QEIGB73C.js} +1 -1
- package/dist/docx/building-blocks.d.ts +31 -0
- package/dist/docx/component.d.ts +1 -1
- package/dist/docx/editor-core.d.ts +3 -0
- package/dist/docx/element-api.d.ts +8 -0
- package/dist/docx/index.d.ts +1 -0
- package/dist/docx/styles/index.d.ts +0 -4
- package/dist/docx.js +154 -38
- package/dist/index.js +3 -3
- package/dist/pptx/chunk-NDAE3JFO.cjs +1014 -0
- package/dist/pptx/{chunk-AUCJIB3M.mjs → chunk-NLUVYOKN.mjs} +113 -381
- package/dist/pptx/{chunk-S2Y3VUNC.cjs → chunk-OQQQ2GBW.cjs} +134 -402
- package/dist/pptx/chunk-UTFFX4M7.mjs +989 -0
- package/dist/pptx/dom/index.cjs +205 -205
- package/dist/pptx/dom/index.mjs +3 -3
- package/dist/pptx/index.cjs +2888 -2880
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/theme/index.cjs +24 -16
- package/dist/pptx/theme/index.d.ts +1 -0
- package/dist/pptx/theme/index.d.ts.map +1 -1
- package/dist/pptx/theme/index.mjs +1 -1
- package/dist/pptx/theme/office-css.d.ts +6 -0
- package/dist/pptx/theme/office-css.d.ts.map +1 -0
- package/dist/pptx/web-components/chart-format-pane-styles.d.ts +1 -1
- package/dist/pptx/web-components/chart-format-pane-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/control-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- package/dist/pptx/web-components/mobile-bar-styles.d.ts +2 -2
- package/dist/pptx/web-components/mobile-bar-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/mobile-insert-styles.d.ts +1 -1
- package/dist/pptx/web-components/mobile-insert-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/notes-toolbar-styles.d.ts +1 -1
- package/dist/pptx/web-components/notes-toolbar-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
- package/dist/pptx/web-components/subtitle-settings-styles.d.ts +1 -1
- package/dist/pptx/web-components/subtitle-settings-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/theme-editor-styles.d.ts +1 -1
- package/dist/pptx/web-components/theme-editor-styles.d.ts.map +1 -1
- package/dist/teams.js +2 -2
- package/dist/theme-bridge.d.ts +28 -0
- package/dist/theme-bridge.d.ts.map +1 -0
- package/dist/theme.d.ts +10 -3
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/visio/building-blocks.d.ts +37 -0
- package/dist/visio/controller.d.ts +6 -0
- package/dist/visio/index.d.ts +1 -0
- package/dist/visio/styles/theme.d.ts +1 -1
- package/dist/visio/styles.d.ts +1 -1
- package/dist/visio/viewer-element.d.ts +2 -0
- package/dist/visio.js +7446 -7321
- package/dist/xlsx/building-blocks.d.ts +55 -0
- package/dist/xlsx/component.d.ts +3 -1
- package/dist/xlsx/dialogs/styles.d.ts +1 -1
- package/dist/xlsx/editor-core.d.ts +1 -0
- package/dist/xlsx/element-api.d.ts +6 -0
- package/dist/xlsx/formula-bar/styles.d.ts +1 -1
- package/dist/xlsx/grid/page-break-layer.d.ts +1 -1
- package/dist/xlsx/grid/styles.d.ts +1 -1
- package/dist/xlsx/index.d.ts +1 -0
- package/dist/xlsx/page-views/page-layout-css.d.ts +1 -1
- package/dist/xlsx/sheet-tabs/styles.d.ts +1 -1
- package/dist/xlsx/surface-shell.d.ts +3 -0
- package/dist/xlsx/theme/styles.d.ts +1 -4
- package/dist/xlsx.js +412 -268
- package/package.json +4 -4
- package/dist/chunk-7E3HU7RL.js +0 -123
- package/dist/pptx/chunk-BDXQX6RA.cjs +0 -373
- package/dist/pptx/chunk-ZAOD6O2D.mjs +0 -357
|
@@ -30,7 +30,7 @@ var chunkUPN5FFKP_cjs = require('./chunk-UPN5FFKP.cjs');
|
|
|
30
30
|
var chunkFQUX6AUU_cjs = require('./chunk-FQUX6AUU.cjs');
|
|
31
31
|
var chunkOJFD3SHS_cjs = require('./chunk-OJFD3SHS.cjs');
|
|
32
32
|
var chunkUSBRSEJK_cjs = require('./chunk-USBRSEJK.cjs');
|
|
33
|
-
var
|
|
33
|
+
var chunkNDAE3JFO_cjs = require('./chunk-NDAE3JFO.cjs');
|
|
34
34
|
var chunkU47LRWDT_cjs = require('./chunk-U47LRWDT.cjs');
|
|
35
35
|
var chunkA2X5BP7J_cjs = require('./chunk-A2X5BP7J.cjs');
|
|
36
36
|
var chunkPBZWDEXQ_cjs = require('./chunk-PBZWDEXQ.cjs');
|
|
@@ -408,7 +408,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
408
408
|
FREEFORM_TOOL_STYLE: () => FREEFORM_TOOL_STYLE,
|
|
409
409
|
ForeignObjectRasterError: () => ForeignObjectRasterError,
|
|
410
410
|
FreeformToolSession: () => FreeformToolSession,
|
|
411
|
-
GALLERY_THEME_PRESETS: () =>
|
|
411
|
+
GALLERY_THEME_PRESETS: () => chunkNDAE3JFO_cjs.GALLERY_THEME_PRESETS,
|
|
412
412
|
GENERAL_TAB: () => GENERAL_TAB,
|
|
413
413
|
GENERIC_FALLBACK_FILTER_FAMILIES: () => GENERIC_FALLBACK_FILTER_FAMILIES,
|
|
414
414
|
GEOMETRY_MORPH_STEPS: () => GEOMETRY_MORPH_STEPS,
|
|
@@ -777,7 +777,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
777
777
|
TEXT_ORIENTATION_IDENTITY: () => chunkG3UVZ5FO_cjs.TEXT_ORIENTATION_IDENTITY,
|
|
778
778
|
TEXT_WARP_PRESETS: () => TEXT_WARP_PRESETS,
|
|
779
779
|
TEXT_WRAP_OPTIONS: () => TEXT_WRAP_OPTIONS,
|
|
780
|
-
THEME_CATALOG: () =>
|
|
780
|
+
THEME_CATALOG: () => chunkNDAE3JFO_cjs.THEME_CATALOG,
|
|
781
781
|
THEME_COLOR_LABELS: () => textTheme.THEME_COLOR_LABELS,
|
|
782
782
|
THEME_COLOR_SLOT_LABEL_KEYS: () => schemaLabelKeys.THEME_COLOR_SLOT_LABEL_KEYS,
|
|
783
783
|
THEME_COLOR_SWATCH_COLUMN_LABEL_KEYS: () => ui.THEME_COLOR_SWATCH_COLUMN_LABEL_KEYS,
|
|
@@ -871,7 +871,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
871
871
|
actionButtonLabelKey: () => actionButtonLabelKey,
|
|
872
872
|
actionTypeNeedsTarget: () => actionTypeNeedsTarget,
|
|
873
873
|
activateModalFocus: () => activateModalFocus,
|
|
874
|
-
activeGalleryThemePreset: () =>
|
|
874
|
+
activeGalleryThemePreset: () => chunkNDAE3JFO_cjs.activeGalleryThemePreset,
|
|
875
875
|
addChartCategory: () => pptx.chartGridAddCategory,
|
|
876
876
|
addChartSeries: () => pptx.chartGridAddSeries,
|
|
877
877
|
addCommentToList: () => addCommentToList,
|
|
@@ -1664,13 +1664,13 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
1664
1664
|
decodeDelta: () => collaborationSync.decodeDelta,
|
|
1665
1665
|
decodeFirstPixelColor: () => chunkG3UVZ5FO_cjs.decodeFirstPixelColor,
|
|
1666
1666
|
decodeTextBody: () => collaborationSync.decodeTextBody,
|
|
1667
|
-
defaultCssVars: () =>
|
|
1667
|
+
defaultCssVars: () => chunkNDAE3JFO_cjs.defaultCssVars,
|
|
1668
1668
|
defaultDuration: () => defaultDuration,
|
|
1669
1669
|
defaultGradientState: () => defaultGradientState,
|
|
1670
1670
|
defaultMentionId: () => defaultMentionId,
|
|
1671
|
-
defaultRadius: () =>
|
|
1671
|
+
defaultRadius: () => chunkNDAE3JFO_cjs.defaultRadius,
|
|
1672
1672
|
defaultRichEnabled: () => defaultRichEnabled,
|
|
1673
|
-
defaultThemeColors: () =>
|
|
1673
|
+
defaultThemeColors: () => chunkNDAE3JFO_cjs.defaultThemeColors,
|
|
1674
1674
|
defineThreeViewElement: () => chunkW7CBPO77_cjs.defineThreeViewElement,
|
|
1675
1675
|
deleteAutosaveSnapshot: () => deleteAutosaveSnapshot,
|
|
1676
1676
|
deleteEditPoint: () => deleteEditPoint,
|
|
@@ -2393,8 +2393,8 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
2393
2393
|
layoutEnvelopeBlock: () => layoutEnvelopeBlock,
|
|
2394
2394
|
leaderGlyph: () => leaderGlyph,
|
|
2395
2395
|
lerpColor: () => lerpColor,
|
|
2396
|
-
lightTheme: () =>
|
|
2397
|
-
lightThemeColors: () =>
|
|
2396
|
+
lightTheme: () => chunkNDAE3JFO_cjs.lightTheme,
|
|
2397
|
+
lightThemeColors: () => chunkNDAE3JFO_cjs.lightThemeColors,
|
|
2398
2398
|
lineHeightToPx: () => lineHeightToPx,
|
|
2399
2399
|
linePointsToSvgString: () => chunkG3UVZ5FO_cjs.linePointsToSvgString,
|
|
2400
2400
|
lineSpacingPatch: () => lineSpacingPatch,
|
|
@@ -2684,6 +2684,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
2684
2684
|
polygonRegionBounds: () => polygonRegionBounds,
|
|
2685
2685
|
powerPointAccelDecelProgress: () => powerPointAccelDecelProgress,
|
|
2686
2686
|
pptxOptionsLabels: () => pptxOptionsLabels,
|
|
2687
|
+
pptxThemeValue: () => chunkNDAE3JFO_cjs.pptxThemeValue,
|
|
2687
2688
|
prefersReducedMotion: () => prefersReducedMotion,
|
|
2688
2689
|
prepareElementForInsertion: () => prepareElementForInsertion,
|
|
2689
2690
|
prepareElementUpdateBatch: () => prepareElementUpdateBatch,
|
|
@@ -3047,7 +3048,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
3047
3048
|
resolveTextOverflowClip: () => resolveTextOverflowClip,
|
|
3048
3049
|
resolveTextStyleAnimation: () => resolveTextStyleAnimation,
|
|
3049
3050
|
resolveTextStyleOnCleanup: () => resolveTextStyleOnCleanup,
|
|
3050
|
-
resolveThemeCatalogEntry: () =>
|
|
3051
|
+
resolveThemeCatalogEntry: () => chunkNDAE3JFO_cjs.resolveThemeCatalogEntry,
|
|
3051
3052
|
resolveThemeFont: () => textTheme.resolveThemeFont,
|
|
3052
3053
|
resolveTitleBarStatusKey: () => resolveTitleBarStatusKey,
|
|
3053
3054
|
resolveTitleBarStrip: () => resolveTitleBarStrip,
|
|
@@ -3409,7 +3410,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
3409
3410
|
themeEditorLabels: () => themeEditorModel.themeEditorLabels,
|
|
3410
3411
|
themeShapeStyleXml: () => themeShapeStyleXml,
|
|
3411
3412
|
themeSwatchCommit: () => ui.themeSwatchCommit,
|
|
3412
|
-
themeToCssVars: () =>
|
|
3413
|
+
themeToCssVars: () => chunkNDAE3JFO_cjs.themeToCssVars,
|
|
3413
3414
|
threeViewOverflowFromNdc: () => chunkG4WRLFMJ_cjs.threeViewOverflowFromNdc,
|
|
3414
3415
|
threeViewStateOf: () => threeViewStateOf,
|
|
3415
3416
|
tileRectToSourceRect: () => tileRectToSourceRect,
|
|
@@ -3489,11 +3490,11 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
3489
3490
|
valueFromY: () => chunkLCB46TH2_cjs.valueFromY,
|
|
3490
3491
|
valueToY: () => chunkG3UVZ5FO_cjs.valueToY,
|
|
3491
3492
|
valueToYLog: () => chunkG3UVZ5FO_cjs.valueToYLog,
|
|
3492
|
-
vermilionDarkColors: () =>
|
|
3493
|
-
vermilionDarkTheme: () =>
|
|
3494
|
-
vermilionLightColors: () =>
|
|
3495
|
-
vermilionLightTheme: () =>
|
|
3496
|
-
vermilionRadius: () =>
|
|
3493
|
+
vermilionDarkColors: () => chunkNDAE3JFO_cjs.vermilionDarkColors,
|
|
3494
|
+
vermilionDarkTheme: () => chunkNDAE3JFO_cjs.vermilionDarkTheme,
|
|
3495
|
+
vermilionLightColors: () => chunkNDAE3JFO_cjs.vermilionLightColors,
|
|
3496
|
+
vermilionLightTheme: () => chunkNDAE3JFO_cjs.vermilionLightTheme,
|
|
3497
|
+
vermilionRadius: () => chunkNDAE3JFO_cjs.vermilionRadius,
|
|
3497
3498
|
viewLabel: () => viewLabel,
|
|
3498
3499
|
viewPropertiesPatchFromPreferences: () => viewPropertiesPatchFromPreferences,
|
|
3499
3500
|
viewerOptionsToPreferences: () => viewerOptionsToPreferences,
|
|
@@ -3534,6 +3535,7 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
3534
3535
|
withInlineListDecorationDefaults: () => withInlineListDecorationDefaults,
|
|
3535
3536
|
withManualLayouts: () => chunkG3UVZ5FO_cjs.withManualLayouts,
|
|
3536
3537
|
withNodeAtPath: () => withNodeAtPath,
|
|
3538
|
+
withOfficeThemeCss: () => chunkNDAE3JFO_cjs.withOfficeThemeCss,
|
|
3537
3539
|
withRecordEntry: () => withRecordEntry,
|
|
3538
3540
|
withSlideSizeOrientation: () => withSlideSizeOrientation,
|
|
3539
3541
|
withSlidesPerPage: () => chunkIOR4KOGN_cjs.withSlidesPerPage,
|
|
@@ -3558,6 +3560,8 @@ chunkMF3JURQN_cjs.__export(pptx_exports, {
|
|
|
3558
3560
|
var sheetsByDocument = /* @__PURE__ */ new WeakMap();
|
|
3559
3561
|
function attachControlStyles(root, css) {
|
|
3560
3562
|
const doc = root.host.ownerDocument;
|
|
3563
|
+
chunkNDAE3JFO_cjs.installOfficeUiThemeFor(root.host);
|
|
3564
|
+
css = chunkNDAE3JFO_cjs.withOfficeThemeCss(css, ":host");
|
|
3561
3565
|
const Sheet = doc.defaultView?.CSSStyleSheet;
|
|
3562
3566
|
if (Sheet && "adoptedStyleSheets" in root && "replaceSync" in Sheet.prototype) {
|
|
3563
3567
|
try {
|
|
@@ -3717,49 +3721,49 @@ var CONTROL_TOKENS = {
|
|
|
3717
3721
|
// Distance the knob travels when on; defaults to the free space in the track.
|
|
3718
3722
|
"--pptx-switch-knob-travel": "calc(var(--pptx-switch-width, 32px) - var(--pptx-switch-knob-size, 12px) - 2 * var(--pptx-switch-knob-offset, 2px))"
|
|
3719
3723
|
};
|
|
3720
|
-
function
|
|
3724
|
+
function tok2(name) {
|
|
3721
3725
|
return `var(${name}, ${CONTROL_TOKENS[name]})`;
|
|
3722
3726
|
}
|
|
3723
|
-
var FOCUS_RING = `outline: ${
|
|
3724
|
-
outline-offset: ${
|
|
3727
|
+
var FOCUS_RING = `outline: ${tok2("--pptx-focus-ring-width")} solid ${tok2("--pptx-focus-ring-color")};
|
|
3728
|
+
outline-offset: ${tok2("--pptx-focus-ring-offset")};`;
|
|
3725
3729
|
|
|
3726
3730
|
// src/pptx/web-components/host-styles.ts
|
|
3727
3731
|
var HOST_STYLES = `
|
|
3728
3732
|
pptx-ui-search {
|
|
3729
|
-
border: 1px solid ${
|
|
3730
|
-
border-radius: ${
|
|
3731
|
-
padding-inline: ${
|
|
3733
|
+
border: 1px solid ${tok2("--pptx-field-border")};
|
|
3734
|
+
border-radius: ${tok2("--pptx-field-radius")};
|
|
3735
|
+
padding-inline: ${tok2("--pptx-space-3")};
|
|
3732
3736
|
}
|
|
3733
3737
|
pptx-ui-search[variant="titlebar"] {
|
|
3734
3738
|
border-color: var(--pptx-border, #374151);
|
|
3735
3739
|
border-radius: 6px;
|
|
3736
3740
|
padding-inline: 14px;
|
|
3737
3741
|
}
|
|
3738
|
-
pptx-ui-search:focus-within { border-color: ${
|
|
3742
|
+
pptx-ui-search:focus-within { border-color: ${tok2("--pptx-field-border-focus")}; }
|
|
3739
3743
|
pptx-ui-checkbox {
|
|
3740
|
-
border: 1px solid ${
|
|
3741
|
-
border-radius: ${
|
|
3744
|
+
border: 1px solid ${tok2("--pptx-checkbox-border")};
|
|
3745
|
+
border-radius: ${tok2("--pptx-checkbox-radius")};
|
|
3742
3746
|
}
|
|
3743
|
-
pptx-ui-checkbox[checked] { border-color: ${
|
|
3747
|
+
pptx-ui-checkbox[checked] { border-color: ${tok2("--pptx-checkbox-accent")}; }
|
|
3744
3748
|
:where([data-pptx-editor-chrome], [data-pptx-dialog], [role="dialog"]) :is(input[type="checkbox"], input[type="radio"]) {
|
|
3745
|
-
accent-color: ${
|
|
3749
|
+
accent-color: ${tok2("--pptx-checkbox-accent")};
|
|
3746
3750
|
}
|
|
3747
3751
|
:where([data-pptx-editor-chrome], [data-pptx-dialog], [role="dialog"]) input[type="checkbox"] {
|
|
3748
|
-
width: ${
|
|
3749
|
-
height: ${
|
|
3752
|
+
width: ${tok2("--pptx-checkbox-size")};
|
|
3753
|
+
height: ${tok2("--pptx-checkbox-size")};
|
|
3750
3754
|
}
|
|
3751
3755
|
@media (pointer: coarse), (max-width: 767px) {
|
|
3752
3756
|
:where([data-pptx-editor-chrome], [data-pptx-dialog], [role="dialog"]) input[type="checkbox"] {
|
|
3753
|
-
width: ${
|
|
3754
|
-
height: ${
|
|
3757
|
+
width: ${tok2("--pptx-checkbox-size-touch")};
|
|
3758
|
+
height: ${tok2("--pptx-checkbox-size-touch")};
|
|
3755
3759
|
}
|
|
3756
3760
|
}
|
|
3757
3761
|
:where([data-pptx-editor-chrome], [data-pptx-dialog], [role="dialog"]) :is(input[type="checkbox"], input[type="radio"], select):focus-visible {
|
|
3758
3762
|
${FOCUS_RING}
|
|
3759
3763
|
}
|
|
3760
3764
|
:where([data-pptx-editor-chrome], [data-pptx-dialog], [role="dialog"]) select {
|
|
3761
|
-
border-radius: ${
|
|
3762
|
-
border-color: ${
|
|
3765
|
+
border-radius: ${tok2("--pptx-field-radius")};
|
|
3766
|
+
border-color: ${tok2("--pptx-field-border")};
|
|
3763
3767
|
}
|
|
3764
3768
|
pptx-ui-context-menu { position: fixed; display: block; z-index: 9000; }
|
|
3765
3769
|
pptx-ui-context-menu[hidden] { display: none; }
|
|
@@ -37469,7 +37473,7 @@ function conflictingMorphNames(a, b) {
|
|
|
37469
37473
|
}
|
|
37470
37474
|
function mediaIdentity(el) {
|
|
37471
37475
|
const props = el;
|
|
37472
|
-
return props.imagePath ?? props.imageData ?? void 0;
|
|
37476
|
+
return props.imagePath ?? props.imageData ?? props.svgPath ?? props.svgData ?? void 0;
|
|
37473
37477
|
}
|
|
37474
37478
|
function centreDistance(a, b) {
|
|
37475
37479
|
const dx = a.x - b.x;
|
|
@@ -37521,6 +37525,11 @@ function proximityAccepts(a, b) {
|
|
|
37521
37525
|
if (a.type !== b.type || differentText(a, b) || conflictingMorphNames(a, b)) {
|
|
37522
37526
|
return false;
|
|
37523
37527
|
}
|
|
37528
|
+
if (a.type === "picture" || a.type === "image") {
|
|
37529
|
+
const fromMedia = mediaIdentity(a);
|
|
37530
|
+
const toMedia = mediaIdentity(b);
|
|
37531
|
+
if (fromMedia && toMedia && fromMedia !== toMedia) return false;
|
|
37532
|
+
}
|
|
37524
37533
|
const ratio = (p, q) => Math.max(p, q, 1) / Math.max(Math.min(p, q), 1);
|
|
37525
37534
|
if (ratio(a.width, b.width) > PROXIMITY_SIZE_RATIO_LIMIT || ratio(a.height, b.height) > PROXIMITY_SIZE_RATIO_LIMIT) {
|
|
37526
37535
|
return false;
|
|
@@ -67814,8 +67823,8 @@ function currentFonts(ctx) {
|
|
|
67814
67823
|
}
|
|
67815
67824
|
var THEMES_GALLERY = {
|
|
67816
67825
|
build(ctx) {
|
|
67817
|
-
const active2 =
|
|
67818
|
-
const items =
|
|
67826
|
+
const active2 = chunkNDAE3JFO_cjs.activeGalleryThemePreset(ctx.theme);
|
|
67827
|
+
const items = chunkNDAE3JFO_cjs.GALLERY_THEME_PRESETS.map((preset2) => tile5(preset2, preset2.id === active2?.id));
|
|
67819
67828
|
if (ctx.theme && !active2) {
|
|
67820
67829
|
const scheme = galleryColorScheme(ctx);
|
|
67821
67830
|
items.unshift({
|
|
@@ -67847,7 +67856,7 @@ var THEMES_GALLERY = {
|
|
|
67847
67856
|
};
|
|
67848
67857
|
},
|
|
67849
67858
|
apply(itemId) {
|
|
67850
|
-
return fromPreset(
|
|
67859
|
+
return fromPreset(chunkNDAE3JFO_cjs.GALLERY_THEME_PRESETS.find((candidate) => candidate.id === itemId));
|
|
67851
67860
|
}
|
|
67852
67861
|
};
|
|
67853
67862
|
function fromPreset(preset2) {
|
|
@@ -67899,7 +67908,7 @@ function themeVariants(base2) {
|
|
|
67899
67908
|
}
|
|
67900
67909
|
function variantBase(ctx) {
|
|
67901
67910
|
const current = galleryColorScheme(ctx);
|
|
67902
|
-
const preset2 =
|
|
67911
|
+
const preset2 = chunkNDAE3JFO_cjs.GALLERY_THEME_PRESETS.find(
|
|
67903
67912
|
(candidate) => themeVariants(candidate.colorScheme).some(
|
|
67904
67913
|
(variant) => colorSchemesEqual(variant.scheme, current)
|
|
67905
67914
|
)
|
|
@@ -76700,7 +76709,7 @@ nav {
|
|
|
76700
76709
|
box-sizing: border-box; display: flex; align-items: stretch; justify-content: space-around; width: 100%;
|
|
76701
76710
|
padding-bottom: max(env(safe-area-inset-bottom), 0px); border-top: 1px solid var(--pptx-border, #33334d);
|
|
76702
76711
|
background: color-mix(in srgb, var(--pptx-secondary, #1e1e2e) 70%, transparent);
|
|
76703
|
-
color: var(--pptx-muted-foreground, #a5a5b5); font: 500 10px/1.2 system-ui,
|
|
76712
|
+
color: var(--pptx-muted-foreground, #a5a5b5); font: 500 10px/1.2 var(--pptx-font,var(--office-font,system-ui,sans-serif));
|
|
76704
76713
|
}
|
|
76705
76714
|
button {
|
|
76706
76715
|
position: relative; box-sizing: border-box; display: flex; flex: 1; flex-direction: column;
|
|
@@ -76736,7 +76745,7 @@ var MOBILE_TOOLBAR_STYLES = `
|
|
|
76736
76745
|
position: relative; z-index: 20; box-sizing: border-box; display: flex; align-items: center; gap: 4px;
|
|
76737
76746
|
min-height: 52px; padding: max(env(safe-area-inset-top), 0px) 8px 4px; border-bottom: 1px solid var(--pptx-border, #33334d);
|
|
76738
76747
|
background: color-mix(in srgb, var(--pptx-secondary, #1e1e2e) 50%, transparent);
|
|
76739
|
-
color: var(--pptx-card-foreground, #e2e8f0); font: 12px/1.2 system-ui,
|
|
76748
|
+
color: var(--pptx-card-foreground, #e2e8f0); font: 12px/1.2 var(--pptx-font,var(--office-font,system-ui,sans-serif));
|
|
76740
76749
|
}
|
|
76741
76750
|
.spacer { flex: 1; }
|
|
76742
76751
|
button {
|
|
@@ -77202,7 +77211,7 @@ function createTablePicker(doc, pick) {
|
|
|
77202
77211
|
|
|
77203
77212
|
// src/pptx/web-components/mobile-insert-styles.ts
|
|
77204
77213
|
var MOBILE_INSERT_STYLES = `
|
|
77205
|
-
:host { display: block; min-width: 0; color: var(--pptx-foreground, #e2e8f0); font: 13px/1.3 system-ui,
|
|
77214
|
+
:host { display: block; min-width: 0; color: var(--pptx-foreground, #e2e8f0); font: 13px/1.3 var(--pptx-font,var(--office-font,system-ui,sans-serif)); }
|
|
77206
77215
|
:host([hidden]), [hidden] { display: none !important; }
|
|
77207
77216
|
* { box-sizing: border-box; }
|
|
77208
77217
|
svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
@@ -77844,7 +77853,7 @@ var NOTES_TOOLBAR_STYLES = `
|
|
|
77844
77853
|
[hidden] { display: none !important; }
|
|
77845
77854
|
.bar {
|
|
77846
77855
|
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
|
77847
|
-
font: 12px/1.2 system-ui,
|
|
77856
|
+
font: 12px/1.2 var(--pptx-font,var(--office-font,system-ui,sans-serif)); color: var(--pptx-foreground, inherit);
|
|
77848
77857
|
}
|
|
77849
77858
|
.group {
|
|
77850
77859
|
display: inline-flex; align-items: center; flex-wrap: wrap;
|
|
@@ -77873,7 +77882,7 @@ svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; s
|
|
|
77873
77882
|
.popover label { display: grid; gap: 2px; font-size: 10px; color: var(--pptx-muted-foreground, #a5a5b5); }
|
|
77874
77883
|
.popover input {
|
|
77875
77884
|
box-sizing: border-box; width: 100%; min-height: 28px; padding: 4px 8px; border: 1px solid var(--pptx-border, #33334d);
|
|
77876
|
-
border-radius: 4px; background: var(--pptx-background, #11111b); color: var(--pptx-foreground, #e2e8f0); font: 12px system-ui,
|
|
77885
|
+
border-radius: 4px; background: var(--pptx-background, #11111b); color: var(--pptx-foreground, #e2e8f0); font: 12px var(--pptx-font,var(--office-font,system-ui,sans-serif));
|
|
77877
77886
|
}
|
|
77878
77887
|
.popover input:focus-visible { outline: 2px solid var(--pptx-ring, #6366f1); outline-offset: -1px; }
|
|
77879
77888
|
.actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
@@ -78299,300 +78308,14 @@ function present(value) {
|
|
|
78299
78308
|
return value === "" || Boolean(value);
|
|
78300
78309
|
}
|
|
78301
78310
|
|
|
78302
|
-
// src/tokens.ts
|
|
78303
|
-
var OFFICE_TOKENS = {
|
|
78304
|
-
// Colour: semantic
|
|
78305
|
-
"--office-foreground": "#1f2937",
|
|
78306
|
-
"--office-muted-foreground": "#6b7280",
|
|
78307
|
-
"--office-background": "#ffffff",
|
|
78308
|
-
"--office-surface": "#f3f4f6",
|
|
78309
|
-
"--office-selected": "#e5e7eb",
|
|
78310
|
-
"--office-border": "#d1d5db",
|
|
78311
|
-
"--office-accent": "#2563eb",
|
|
78312
|
-
"--office-accent-foreground": "#ffffff",
|
|
78313
|
-
"--office-ring": "#2563eb",
|
|
78314
|
-
"--office-danger": "#b91c1c",
|
|
78315
|
-
"--office-danger-foreground": "#ffffff",
|
|
78316
|
-
"--office-warning": "#d97706",
|
|
78317
|
-
"--office-warning-foreground": "#ffffff",
|
|
78318
|
-
"--office-info": "#3b82f6",
|
|
78319
|
-
"--office-popover": "var(--office-background, #ffffff)",
|
|
78320
|
-
"--office-popover-foreground": "var(--office-foreground, #1f2937)",
|
|
78321
|
-
"--office-overlay": "rgb(0 0 0 / 40%)",
|
|
78322
|
-
"--office-notice-background": "#fef3c7",
|
|
78323
|
-
"--office-notice-foreground": "#78350f",
|
|
78324
|
-
"--office-notice-border": "rgb(180 83 9 / 30%)",
|
|
78325
|
-
"--office-notice-accent": "#d97706",
|
|
78326
|
-
"--office-keytip-background": "#ffffff",
|
|
78327
|
-
"--office-keytip-foreground": "#1f1f1f",
|
|
78328
|
-
"--office-keytip-border": "#8a8886",
|
|
78329
|
-
"--office-highlight": "#dc2626",
|
|
78330
|
-
"--office-paper": "#ffffff",
|
|
78331
|
-
"--office-accent-hover": "color-mix(in srgb, var(--office-accent, #2563eb) 85%, #000)",
|
|
78332
|
-
// Typography
|
|
78333
|
-
"--office-font": 'system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
78334
|
-
"--office-font-size-3xs": "9px",
|
|
78335
|
-
"--office-font-size-2xs": "10px",
|
|
78336
|
-
"--office-font-size-xs": "11px",
|
|
78337
|
-
"--office-font-size-sm": "12px",
|
|
78338
|
-
"--office-font-size": "13px",
|
|
78339
|
-
"--office-font-size-md": "14px",
|
|
78340
|
-
"--office-font-size-lg": "15px",
|
|
78341
|
-
"--office-font-size-xl": "18px",
|
|
78342
|
-
/** Smallest text size that keeps mobile browsers from zooming a focused field. */
|
|
78343
|
-
"--office-font-size-touch": "16px",
|
|
78344
|
-
"--office-font-weight-medium": "500",
|
|
78345
|
-
"--office-font-weight-bold": "600",
|
|
78346
|
-
"--office-line-height": "1.4",
|
|
78347
|
-
"--office-line-height-tight": "1.2",
|
|
78348
|
-
"--office-icon-stroke": "1.5",
|
|
78349
|
-
// Space
|
|
78350
|
-
"--office-space-px": "1px",
|
|
78351
|
-
"--office-space-0": "2px",
|
|
78352
|
-
"--office-space-1": "4px",
|
|
78353
|
-
"--office-space-1-5": "6px",
|
|
78354
|
-
"--office-space-2": "8px",
|
|
78355
|
-
"--office-space-2-5": "10px",
|
|
78356
|
-
"--office-space-3": "12px",
|
|
78357
|
-
"--office-space-3-5": "14px",
|
|
78358
|
-
"--office-space-4": "16px",
|
|
78359
|
-
"--office-space-5": "20px",
|
|
78360
|
-
"--office-space-6": "24px",
|
|
78361
|
-
// Shape
|
|
78362
|
-
"--office-border-width": "1px",
|
|
78363
|
-
"--office-border-width-thick": "2px",
|
|
78364
|
-
"--office-radius-xs": "2px",
|
|
78365
|
-
"--office-radius-sm": "3px",
|
|
78366
|
-
"--office-radius": "4px",
|
|
78367
|
-
"--office-radius-md": "6px",
|
|
78368
|
-
"--office-radius-lg": "8px",
|
|
78369
|
-
"--office-radius-full": "999px",
|
|
78370
|
-
// Focus
|
|
78371
|
-
"--office-focus-width": "2px",
|
|
78372
|
-
"--office-focus-offset": "2px",
|
|
78373
|
-
// Sizes
|
|
78374
|
-
"--office-target-size": "28px",
|
|
78375
|
-
"--office-target-size-touch": "44px",
|
|
78376
|
-
/** Minimum pointer target on touch layouts. */
|
|
78377
|
-
"--office-touch-target": "36px",
|
|
78378
|
-
"--office-control-height": "24px",
|
|
78379
|
-
"--office-control-height-md": "28px",
|
|
78380
|
-
"--office-control-height-lg": "32px",
|
|
78381
|
-
"--office-input-height": "26px",
|
|
78382
|
-
"--office-control-height-xs": "22px",
|
|
78383
|
-
"--office-icon-size-xs": "10px",
|
|
78384
|
-
"--office-icon-size-sm": "12px",
|
|
78385
|
-
"--office-icon-size": "14px",
|
|
78386
|
-
"--office-icon-size-md": "16px",
|
|
78387
|
-
"--office-icon-size-ml": "18px",
|
|
78388
|
-
"--office-icon-size-lg": "20px",
|
|
78389
|
-
// Elevation and layering
|
|
78390
|
-
"--office-shadow-sm": "0 1px 3px rgb(0 0 0 / 20%)",
|
|
78391
|
-
"--office-shadow": "0 6px 20px rgb(0 0 0 / 18%)",
|
|
78392
|
-
"--office-shadow-lg": "0 10px 25px rgb(0 0 0 / 20%)",
|
|
78393
|
-
"--office-z-popover": "1100",
|
|
78394
|
-
"--office-z-dialog": "1000",
|
|
78395
|
-
"--office-z-backstage": "30",
|
|
78396
|
-
// Motion
|
|
78397
|
-
"--office-duration-fast": ".12s",
|
|
78398
|
-
"--office-duration": ".15s",
|
|
78399
|
-
"--office-duration-spin": ".8s",
|
|
78400
|
-
// Component: fields
|
|
78401
|
-
"--office-field-height": "28px",
|
|
78402
|
-
"--office-field-height-lg": "40px",
|
|
78403
|
-
"--office-field-radius": "5px",
|
|
78404
|
-
"--office-field-border": "var(--office-border, #d1d5db)",
|
|
78405
|
-
"--office-field-border-focus": "var(--office-ring, #2563eb)",
|
|
78406
|
-
"--office-field-background": "var(--office-background, #ffffff)",
|
|
78407
|
-
"--office-field-foreground": "var(--office-foreground, #1f2937)",
|
|
78408
|
-
"--office-field-placeholder": "var(--office-muted-foreground, #6b7280)",
|
|
78409
|
-
// Component: checkbox, radio, switch
|
|
78410
|
-
"--office-checkbox-size": "16px",
|
|
78411
|
-
"--office-checkbox-size-touch": "22px",
|
|
78412
|
-
"--office-checkbox-radius": "3px",
|
|
78413
|
-
"--office-checkbox-border": "var(--office-border, #d1d5db)",
|
|
78414
|
-
"--office-checkbox-background": "var(--office-background, #ffffff)",
|
|
78415
|
-
"--office-checkbox-accent": "var(--office-accent, #2563eb)",
|
|
78416
|
-
"--office-checkbox-accent-foreground": "var(--office-accent-foreground, #ffffff)",
|
|
78417
|
-
"--office-radio-dot-size": "8px",
|
|
78418
|
-
"--office-radio-dot-size-touch": "12px",
|
|
78419
|
-
"--office-switch-width": "32px",
|
|
78420
|
-
"--office-switch-height": "18px",
|
|
78421
|
-
"--office-switch-width-touch": "44px",
|
|
78422
|
-
"--office-switch-height-touch": "24px",
|
|
78423
|
-
"--office-switch-border-width": "1px",
|
|
78424
|
-
"--office-switch-knob-size": "12px",
|
|
78425
|
-
"--office-switch-knob-size-touch": "18px",
|
|
78426
|
-
"--office-switch-knob-offset": "2px",
|
|
78427
|
-
"--office-switch-border": "var(--office-border, #d1d5db)",
|
|
78428
|
-
"--office-switch-track": "var(--office-surface, #f3f4f6)",
|
|
78429
|
-
"--office-switch-track-on": "var(--office-accent, #2563eb)",
|
|
78430
|
-
"--office-switch-thumb": "var(--office-foreground, #1f2937)",
|
|
78431
|
-
"--office-switch-thumb-on": "var(--office-accent-foreground, #ffffff)",
|
|
78432
|
-
// Component: ribbon, status bar, tabs
|
|
78433
|
-
"--office-ribbon-tab-height": "35px",
|
|
78434
|
-
"--office-ribbon-contextual": "var(--office-accent, #2563eb)",
|
|
78435
|
-
"--office-ribbon-group-gap": "2px",
|
|
78436
|
-
"--office-ribbon-group-height": "78px",
|
|
78437
|
-
"--office-ribbon-group-padding": "4px 8px 2px",
|
|
78438
|
-
"--office-ribbon-separator-inset": "0px",
|
|
78439
|
-
"--office-ribbon-separator": "color-mix(in srgb, var(--office-border, #d1d5db) 60%, transparent)",
|
|
78440
|
-
"--office-ribbon-caption-size": "10px",
|
|
78441
|
-
"--office-ribbon-caption-padding": "2px 0 0",
|
|
78442
|
-
"--office-launcher-inset-end": "-6px",
|
|
78443
|
-
"--office-launcher-inset-bottom": "-1px",
|
|
78444
|
-
"--office-ribbon-compact-row-max": "36px",
|
|
78445
|
-
"--office-ribbon-stack-max-height": "80px",
|
|
78446
|
-
"--office-ribbon-collapse-x": "8px",
|
|
78447
|
-
"--office-ribbon-collapse-y": "120px",
|
|
78448
|
-
"--office-command-icon-color": "currentColor",
|
|
78449
|
-
"--office-command-large-height": "66px",
|
|
78450
|
-
"--office-command-large-min-width": "48px",
|
|
78451
|
-
"--office-command-large-max-width": "80px",
|
|
78452
|
-
"--office-command-large-icon": "32px",
|
|
78453
|
-
"--office-command-small-icon": "16px",
|
|
78454
|
-
"--office-command-tall-height": "62px",
|
|
78455
|
-
"--office-command-tall-min-width": "40px",
|
|
78456
|
-
"--office-command-tall-icon": "30px",
|
|
78457
|
-
"--office-command-active": "color-mix(in srgb, var(--office-accent, #2563eb) 15%, transparent)",
|
|
78458
|
-
"--office-collapsed-group-min-width": "56px",
|
|
78459
|
-
"--office-ribbon-caption-line-height": "12px",
|
|
78460
|
-
"--office-ribbon-row-height": "22px",
|
|
78461
|
-
"--office-ribbon-file-min-width": "52px",
|
|
78462
|
-
"--office-launcher-width": "16px",
|
|
78463
|
-
"--office-launcher-height": "14px",
|
|
78464
|
-
"--office-tab-indicator-width": "2.5px",
|
|
78465
|
-
"--office-status-bar-height": "24px",
|
|
78466
|
-
"--office-status-bar-separator-opacity": "1",
|
|
78467
|
-
"--office-tab-height": "28px",
|
|
78468
|
-
"--office-tab-max-width": "220px",
|
|
78469
|
-
"--office-zoom-slider-width": "120px",
|
|
78470
|
-
"--office-zoom-slider-min-width": "48px",
|
|
78471
|
-
"--office-zoom-value-width": "40px",
|
|
78472
|
-
// Component: panels and dialogs
|
|
78473
|
-
"--office-dialog-width": "auto",
|
|
78474
|
-
"--office-dialog-max-width": "min(640px, 100vw)",
|
|
78475
|
-
"--office-dialog-max-height": "90vh",
|
|
78476
|
-
"--office-dialog-min-width": "min(320px, 100vw)",
|
|
78477
|
-
"--office-dialog-button-min-width": "76px",
|
|
78478
|
-
"--office-options-width": "min(728px, 92vw)",
|
|
78479
|
-
"--office-options-nav-width": "172px",
|
|
78480
|
-
"--office-options-height": "510px",
|
|
78481
|
-
"--office-options-chrome-height": "130px",
|
|
78482
|
-
"--office-options-text-width": "180px",
|
|
78483
|
-
"--office-options-row-height": "30px",
|
|
78484
|
-
"--office-options-number-width": "112px",
|
|
78485
|
-
"--office-options-check-size": "16px",
|
|
78486
|
-
"--office-info-size": "15px",
|
|
78487
|
-
"--office-selection-bar-width": "3px",
|
|
78488
|
-
"--office-backstage-nav-width": "200px",
|
|
78489
|
-
"--office-backstage-nav-background": "var(--office-accent, #2563eb)",
|
|
78490
|
-
"--office-backstage-nav-foreground": "var(--office-accent-foreground, #ffffff)",
|
|
78491
|
-
"--office-backstage-item-hover": "rgb(0 0 0 / 22%)",
|
|
78492
|
-
"--office-backstage-padding": "28px 40px",
|
|
78493
|
-
"--office-backstage-back-size": "36px",
|
|
78494
|
-
"--office-backstage-item-height": "38px",
|
|
78495
|
-
"--office-menu-min-width": "180px",
|
|
78496
|
-
"--office-menu-max-height": "60vh",
|
|
78497
|
-
"--office-context-menu-min-width": "200px",
|
|
78498
|
-
"--office-search-popup-min-width": "240px",
|
|
78499
|
-
"--office-search-popup-max-height": "320px",
|
|
78500
|
-
"--office-select-max-height": "240px",
|
|
78501
|
-
"--office-select-background": "var(--office-background, #ffffff)",
|
|
78502
|
-
"--office-select-menu-min-width": "90px",
|
|
78503
|
-
"--office-select-option-active": "color-mix(in srgb, var(--office-accent, #2563eb) 20%, var(--office-popover, #ffffff))",
|
|
78504
|
-
"--office-select-ribbon-menu-width": "192px",
|
|
78505
|
-
"--office-font-picker-max-height": "320px",
|
|
78506
|
-
"--office-font-picker-width": "256px",
|
|
78507
|
-
"--office-chevron-size": "6px",
|
|
78508
|
-
"--office-ribbon-combo-height": "28px",
|
|
78509
|
-
"--office-ribbon-icon-select-width": "36px",
|
|
78510
|
-
"--office-search-width": "320px",
|
|
78511
|
-
"--office-print-preview-width": "420px",
|
|
78512
|
-
"--office-find-max-width": "640px",
|
|
78513
|
-
"--office-find-bar-height": "40px",
|
|
78514
|
-
"--office-find-replace-field-min-width": "120px",
|
|
78515
|
-
"--office-find-replace-select-min-width": "150px",
|
|
78516
|
-
"--office-ruler-size": "18px",
|
|
78517
|
-
"--office-avatar-size": "48px",
|
|
78518
|
-
"--office-avatar-color": "var(--office-muted-foreground, #6b7280)",
|
|
78519
|
-
"--office-toast-width": "360px",
|
|
78520
|
-
"--office-comments-pane-width": "300px",
|
|
78521
|
-
"--office-comment-avatar-size": "24px",
|
|
78522
|
-
"--office-account-field-width": "320px",
|
|
78523
|
-
// Component: galleries
|
|
78524
|
-
"--office-gallery-trigger-height": "24px",
|
|
78525
|
-
"--office-gallery-strip-background": "color-mix(in srgb, var(--office-surface, #f3f4f6) 30%, transparent)",
|
|
78526
|
-
"--office-gallery-command-min-width": "54px",
|
|
78527
|
-
"--office-gallery-command-max-width": "78px",
|
|
78528
|
-
"--office-gallery-command-height": "58px",
|
|
78529
|
-
"--office-gallery-command-icon": "24px",
|
|
78530
|
-
"--office-gallery-popup-max-height": "65vh",
|
|
78531
|
-
// Component: title bar
|
|
78532
|
-
"--office-title-bar-height": "36px",
|
|
78533
|
-
"--office-title-bar-below-height": "28px",
|
|
78534
|
-
"--office-title-bar-background": "var(--office-surface, #f3f4f6)",
|
|
78535
|
-
"--office-title-bar-foreground": "var(--office-foreground, #1f2937)",
|
|
78536
|
-
"--office-title-bar-border": "var(--office-border, #d1d5db)",
|
|
78537
|
-
"--office-title-bar-mark-size": "20px",
|
|
78538
|
-
"--office-title-bar-mark-background": "var(--office-accent, #2563eb)",
|
|
78539
|
-
"--office-title-bar-mark-foreground": "var(--office-accent-foreground, #ffffff)",
|
|
78540
|
-
"--office-title-bar-name-foreground": "var(--office-title-bar-foreground, var(--office-foreground, #1f2937))",
|
|
78541
|
-
"--office-title-bar-result-selected": "var(--office-selected, #e5e7eb)",
|
|
78542
|
-
"--office-title-bar-name-max-width": "240px",
|
|
78543
|
-
"--office-title-bar-name-max-width-narrow": "140px",
|
|
78544
|
-
"--office-title-bar-search-max-width": "448px",
|
|
78545
|
-
"--office-title-bar-results-max-height": "256px",
|
|
78546
|
-
// Component: team workspace (a Teams-like surface)
|
|
78547
|
-
"--office-teams-brand": "#5b5fc7",
|
|
78548
|
-
"--office-teams-brand-hover": "#4f52b2",
|
|
78549
|
-
"--office-teams-brand-pressed": "#3f4296",
|
|
78550
|
-
"--office-teams-brand-subtle": "#e8ebfa",
|
|
78551
|
-
"--office-teams-brand-foreground": "#ffffff",
|
|
78552
|
-
"--office-teams-rail": "#ebebeb",
|
|
78553
|
-
"--office-teams-panel": "#f5f5f5",
|
|
78554
|
-
"--office-teams-bubble": "#f5f5f5",
|
|
78555
|
-
"--office-teams-bubble-own": "#e8ebfa",
|
|
78556
|
-
"--office-teams-divider": "#e0e0e0",
|
|
78557
|
-
"--office-teams-text-subtle": "#616161",
|
|
78558
|
-
"--office-teams-message-gap": "var(--office-space-3)",
|
|
78559
|
-
"--office-teams-message-padding": "var(--office-space-2) var(--office-space-3)",
|
|
78560
|
-
"--office-presence-available": "#6bb700",
|
|
78561
|
-
"--office-presence-busy": "#c50f1f",
|
|
78562
|
-
"--office-presence-away": "#eaa300",
|
|
78563
|
-
"--office-presence-offline": "#8a8886",
|
|
78564
|
-
"--office-file-docx": "#2b579a",
|
|
78565
|
-
"--office-file-xlsx": "#217346",
|
|
78566
|
-
"--office-file-pptx": "#c43e1c",
|
|
78567
|
-
"--office-file-vsdx": "#3955a3",
|
|
78568
|
-
"--office-file-other": "#6b7280",
|
|
78569
|
-
"--office-call-background": "#292929",
|
|
78570
|
-
"--office-call-tile": "#3d3d3d",
|
|
78571
|
-
"--office-call-foreground": "#ffffff",
|
|
78572
|
-
"--office-call-muted-foreground": "#c8c8c8",
|
|
78573
|
-
"--office-call-control": "#3d3d3d",
|
|
78574
|
-
"--office-call-control-hover": "#525252",
|
|
78575
|
-
"--office-call-danger": "#c4314b",
|
|
78576
|
-
"--office-call-danger-hover": "#a72a40",
|
|
78577
|
-
"--office-call-live": "#6bb700",
|
|
78578
|
-
"--office-call-scrim": "rgb(0 0 0 / 60%)",
|
|
78579
|
-
"--office-shadow-teams": "0 2px 4px rgb(0 0 0 / 14%), 0 0 2px rgb(0 0 0 / 12%)"
|
|
78580
|
-
};
|
|
78581
|
-
function tok2(name) {
|
|
78582
|
-
return `var(${name}, ${OFFICE_TOKENS[name]})`;
|
|
78583
|
-
}
|
|
78584
|
-
`outline: ${tok2("--office-focus-width")} solid ${tok2("--office-ring")}; outline-offset: ${tok2("--office-focus-offset")};`;
|
|
78585
|
-
var COMPACT = "(max-width: 767px)";
|
|
78586
|
-
var TOUCH = `(pointer: coarse), ${COMPACT}`;
|
|
78587
|
-
|
|
78588
78311
|
// src/styles.ts
|
|
78589
78312
|
var COMMON_CONTROL_CSS = `
|
|
78590
78313
|
:host([hidden]) { display: none !important; }
|
|
78591
|
-
@media ${TOUCH} {
|
|
78592
|
-
:host { --office-target-size: ${
|
|
78314
|
+
@media ${chunkNDAE3JFO_cjs.TOUCH} {
|
|
78315
|
+
:host { --office-target-size: ${chunkNDAE3JFO_cjs.tok("--office-target-size-touch")}; }
|
|
78593
78316
|
}
|
|
78594
78317
|
@media (forced-colors: active) {
|
|
78595
|
-
:host(:focus-visible), :focus-visible { outline: ${
|
|
78318
|
+
:host(:focus-visible), :focus-visible { outline: ${chunkNDAE3JFO_cjs.tok("--office-focus-width")} solid Highlight; outline-offset: ${chunkNDAE3JFO_cjs.tok("--office-focus-offset")}; }
|
|
78596
78319
|
}
|
|
78597
78320
|
`;
|
|
78598
78321
|
|
|
@@ -78600,7 +78323,7 @@ var COMMON_CONTROL_CSS = `
|
|
|
78600
78323
|
function withTokens(css) {
|
|
78601
78324
|
return css.replace(
|
|
78602
78325
|
/var\((--office-[\w-]+)\)/g,
|
|
78603
|
-
(whole, name) => name in OFFICE_TOKENS ? `var(${name}, ${OFFICE_TOKENS[name]})` : whole
|
|
78326
|
+
(whole, name) => name in chunkNDAE3JFO_cjs.OFFICE_TOKENS ? `var(${name}, ${chunkNDAE3JFO_cjs.OFFICE_TOKENS[name]})` : whole
|
|
78604
78327
|
);
|
|
78605
78328
|
}
|
|
78606
78329
|
var controlStyles = (...sheets) => [
|
|
@@ -79094,8 +78817,8 @@ var OfficeUiPasteOptions = class extends OfficeElement {
|
|
|
79094
78817
|
willUpdate() {
|
|
79095
78818
|
const { left, top } = this.model;
|
|
79096
78819
|
this.hostWrite(() => {
|
|
79097
|
-
this.style.left = `calc(${left}px + ${
|
|
79098
|
-
this.style.top = `calc(${top}px + ${
|
|
78820
|
+
this.style.left = `calc(${left}px + ${chunkNDAE3JFO_cjs.tok("--office-space-1")})`;
|
|
78821
|
+
this.style.top = `calc(${top}px + ${chunkNDAE3JFO_cjs.tok("--office-space-1")})`;
|
|
79099
78822
|
});
|
|
79100
78823
|
}
|
|
79101
78824
|
render() {
|
|
@@ -79880,7 +79603,7 @@ var defineRibbonGroup = definer("office-ui-ribbon-group", () => OfficeUiRibbonGr
|
|
|
79880
79603
|
var ribbon_section_default = ":host {\n display: inline-flex;\n align-items: stretch;\n}\n::slotted(*) {\n flex: none;\n}\n";
|
|
79881
79604
|
|
|
79882
79605
|
// src/ribbon/ribbon-section.ts
|
|
79883
|
-
var COLUMN_STYLE = { display: "flex", flexDirection: "column", gap:
|
|
79606
|
+
var COLUMN_STYLE = { display: "flex", flexDirection: "column", gap: chunkNDAE3JFO_cjs.tok("--office-space-0") };
|
|
79884
79607
|
function setOptional(el, name, value) {
|
|
79885
79608
|
if (value === void 0) el.removeAttribute(name);
|
|
79886
79609
|
else el.setAttribute(name, String(value));
|
|
@@ -82148,60 +81871,40 @@ var defineTitleBar = definer("office-ui-title-bar", () => OfficeUiTitleBar, [
|
|
|
82148
81871
|
|
|
82149
81872
|
// src/pptx/web-components/office-token-bridge.ts
|
|
82150
81873
|
var BASE = `
|
|
82151
|
-
--office-
|
|
82152
|
-
--office-
|
|
82153
|
-
--office-
|
|
82154
|
-
--office-
|
|
82155
|
-
--office-
|
|
82156
|
-
--office-
|
|
82157
|
-
--office-
|
|
82158
|
-
--office-
|
|
82159
|
-
--office-
|
|
82160
|
-
--office-
|
|
82161
|
-
--office-
|
|
82162
|
-
--office-
|
|
82163
|
-
--office-
|
|
82164
|
-
--office-
|
|
82165
|
-
--office-
|
|
82166
|
-
--office-
|
|
82167
|
-
--office-
|
|
82168
|
-
--office-
|
|
82169
|
-
--office-
|
|
82170
|
-
--office-
|
|
82171
|
-
--office-
|
|
82172
|
-
--office-
|
|
82173
|
-
--office-
|
|
82174
|
-
--office-
|
|
82175
|
-
--office-
|
|
82176
|
-
--office-field-height-lg: ${tok("--pptx-field-height-lg")};
|
|
82177
|
-
--office-field-radius: ${tok("--pptx-field-radius")};
|
|
82178
|
-
--office-field-border: ${tok("--pptx-field-border")};
|
|
82179
|
-
--office-field-border-focus: ${tok("--pptx-field-border-focus")};
|
|
82180
|
-
--office-field-background: ${tok("--pptx-field-bg")};
|
|
82181
|
-
--office-field-foreground: ${tok("--pptx-field-fg")};
|
|
82182
|
-
--office-field-placeholder: ${tok("--pptx-field-placeholder")};
|
|
82183
|
-
--office-checkbox-size: ${tok("--pptx-checkbox-size")};
|
|
82184
|
-
--office-checkbox-size-touch: ${tok("--pptx-checkbox-size-touch")};
|
|
82185
|
-
--office-checkbox-radius: ${tok("--pptx-checkbox-radius")};
|
|
82186
|
-
--office-checkbox-border: ${tok("--pptx-checkbox-border")};
|
|
82187
|
-
--office-checkbox-background: ${tok("--pptx-checkbox-bg")};
|
|
82188
|
-
--office-checkbox-accent: ${tok("--pptx-checkbox-accent")};
|
|
82189
|
-
--office-checkbox-accent-foreground: ${tok("--pptx-checkbox-accent-fg")};
|
|
82190
|
-
--office-radio-dot-size: ${tok("--pptx-radio-dot-size")};
|
|
82191
|
-
--office-radio-dot-size-touch: ${tok("--pptx-radio-dot-size-touch")};
|
|
82192
|
-
--office-switch-width: ${tok("--pptx-switch-width")};
|
|
82193
|
-
--office-switch-height: ${tok("--pptx-switch-height")};
|
|
82194
|
-
--office-switch-width-touch: ${tok("--pptx-switch-width")};
|
|
82195
|
-
--office-switch-height-touch: ${tok("--pptx-switch-height")};
|
|
81874
|
+
--office-ring: var(--pptx-focus-ring-color, var(--_pptx-ring));
|
|
81875
|
+
--office-focus-width: ${tok2("--pptx-focus-ring-width")};
|
|
81876
|
+
--office-focus-offset: ${tok2("--pptx-focus-ring-offset")};
|
|
81877
|
+
--office-target-size-touch: ${tok2("--pptx-touch-target")};
|
|
81878
|
+
--office-field-height: ${tok2("--pptx-field-height")};
|
|
81879
|
+
--office-field-height-lg: ${tok2("--pptx-field-height-lg")};
|
|
81880
|
+
--office-field-radius: ${tok2("--pptx-field-radius")};
|
|
81881
|
+
--office-field-border: ${tok2("--pptx-field-border")};
|
|
81882
|
+
--office-field-border-focus: ${tok2("--pptx-field-border-focus")};
|
|
81883
|
+
--office-field-background: ${tok2("--pptx-field-bg")};
|
|
81884
|
+
--office-field-foreground: ${tok2("--pptx-field-fg")};
|
|
81885
|
+
--office-field-placeholder: ${tok2("--pptx-field-placeholder")};
|
|
81886
|
+
--office-checkbox-size: ${tok2("--pptx-checkbox-size")};
|
|
81887
|
+
--office-checkbox-size-touch: ${tok2("--pptx-checkbox-size-touch")};
|
|
81888
|
+
--office-checkbox-radius: ${tok2("--pptx-checkbox-radius")};
|
|
81889
|
+
--office-checkbox-border: ${tok2("--pptx-checkbox-border")};
|
|
81890
|
+
--office-checkbox-background: ${tok2("--pptx-checkbox-bg")};
|
|
81891
|
+
--office-checkbox-accent: ${tok2("--pptx-checkbox-accent")};
|
|
81892
|
+
--office-checkbox-accent-foreground: ${tok2("--pptx-checkbox-accent-fg")};
|
|
81893
|
+
--office-radio-dot-size: ${tok2("--pptx-radio-dot-size")};
|
|
81894
|
+
--office-radio-dot-size-touch: ${tok2("--pptx-radio-dot-size-touch")};
|
|
81895
|
+
--office-switch-width: ${tok2("--pptx-switch-width")};
|
|
81896
|
+
--office-switch-height: ${tok2("--pptx-switch-height")};
|
|
81897
|
+
--office-switch-width-touch: ${tok2("--pptx-switch-width")};
|
|
81898
|
+
--office-switch-height-touch: ${tok2("--pptx-switch-height")};
|
|
82196
81899
|
--office-switch-border-width: 0px;
|
|
82197
|
-
--office-switch-knob-size: ${
|
|
82198
|
-
--office-switch-knob-size-touch: ${
|
|
82199
|
-
--office-switch-knob-offset: ${
|
|
82200
|
-
--office-switch-knob-travel: ${
|
|
82201
|
-
--office-switch-track: ${
|
|
82202
|
-
--office-switch-track-on: ${
|
|
82203
|
-
--office-switch-thumb: ${
|
|
82204
|
-
--office-switch-thumb-on: ${
|
|
81900
|
+
--office-switch-knob-size: ${tok2("--pptx-switch-knob-size")};
|
|
81901
|
+
--office-switch-knob-size-touch: ${tok2("--pptx-switch-knob-size")};
|
|
81902
|
+
--office-switch-knob-offset: ${tok2("--pptx-switch-knob-offset")};
|
|
81903
|
+
--office-switch-knob-travel: ${tok2("--pptx-switch-knob-travel")};
|
|
81904
|
+
--office-switch-track: ${tok2("--pptx-switch-track")};
|
|
81905
|
+
--office-switch-track-on: ${tok2("--pptx-switch-track-on")};
|
|
81906
|
+
--office-switch-thumb: ${tok2("--pptx-switch-thumb")};
|
|
81907
|
+
--office-switch-thumb-on: ${tok2("--pptx-switch-thumb")};
|
|
82205
81908
|
`;
|
|
82206
81909
|
var TITLE_BAR = `:host {
|
|
82207
81910
|
--office-title-bar-height: ${TITLE_BAR_METRICS.height}px;
|
|
@@ -82221,10 +81924,7 @@ var TITLE_BAR = `:host {
|
|
|
82221
81924
|
--office-icon-stroke: 1.4;
|
|
82222
81925
|
--office-control-height-md: 24px;
|
|
82223
81926
|
--office-selected: color-mix(in srgb, var(--pptx-accent, #33334d) 60%, transparent);
|
|
82224
|
-
--office-warning: #eab308;
|
|
82225
|
-
--office-danger: #f87171;
|
|
82226
81927
|
--office-popover: var(--pptx-popover, var(--pptx-card, #1e1e2e));
|
|
82227
|
-
--office-shadow-lg: 0 14px 28px rgb(0 0 0 / 40%);
|
|
82228
81928
|
--pptx-switch-width: ${TITLE_BAR_METRICS.switchTrackWidth}px;
|
|
82229
81929
|
--pptx-switch-height: ${TITLE_BAR_METRICS.switchTrackHeight}px;
|
|
82230
81930
|
--pptx-switch-knob-size: ${TITLE_BAR_METRICS.switchKnobSize}px;
|
|
@@ -82243,8 +81943,6 @@ var STATUS_BAR = `:host {
|
|
|
82243
81943
|
--office-font-size-xs: 10px;
|
|
82244
81944
|
--office-control-height-xs: 24px;
|
|
82245
81945
|
--office-icon-stroke: 1.45;
|
|
82246
|
-
--office-warning: #facc15;
|
|
82247
|
-
--office-danger: #f87171;
|
|
82248
81946
|
line-height: 1.2;
|
|
82249
81947
|
}`;
|
|
82250
81948
|
var EXTRAS = {
|
|
@@ -82253,7 +81951,7 @@ var EXTRAS = {
|
|
|
82253
81951
|
"pptx-ui-ribbon-gallery": `:host { --office-foreground: var(--pptx-foreground, #f9fafb); --office-background: var(--pptx-background, #111827);
|
|
82254
81952
|
--office-gallery-strip-background: color-mix(in srgb, var(--pptx-muted, #2a2a3d) 30%, transparent);
|
|
82255
81953
|
--office-command-icon-color: var(--pptx-primary, #6366f1); --office-z-popover: 1200;
|
|
82256
|
-
--office-popover-foreground: var(--pptx-popover-foreground, #f9fafb);
|
|
81954
|
+
--office-popover-foreground: var(--pptx-popover-foreground, #f9fafb);
|
|
82257
81955
|
--office-icon-stroke: 1.6; --office-line-height-tight: 11px; }`,
|
|
82258
81956
|
"pptx-ui-select": `:host { --office-select-background: var(--pptx-select-control-bg, var(--pptx-background, #11111b)); }
|
|
82259
81957
|
:host(.bg-muted) { --office-select-background: var(--pptx-muted, #1f2937); }
|
|
@@ -82277,8 +81975,38 @@ var EXTRAS = {
|
|
|
82277
81975
|
--office-selected: var(--pptx-accent, #33334d); --office-radius-md: var(--pptx-radius, 6px); }`
|
|
82278
81976
|
};
|
|
82279
81977
|
function bridgeCss(tag) {
|
|
82280
|
-
|
|
82281
|
-
|
|
81978
|
+
const extras = EXTRAS[tag] ?? "";
|
|
81979
|
+
const palette = new Set(Object.values(chunkNDAE3JFO_cjs.LEGACY_OFFICE_THEME_TOKENS));
|
|
81980
|
+
const inner2 = extras.replace(
|
|
81981
|
+
/(:host(?:\([^)]*\))?)\s*\{([^{}]*)\}/g,
|
|
81982
|
+
(_rule, selector, body) => {
|
|
81983
|
+
const host2 = [];
|
|
81984
|
+
const children = [];
|
|
81985
|
+
for (const declaration of body.split(";").map((value) => value.trim()).filter(Boolean)) {
|
|
81986
|
+
const property = declaration.slice(0, declaration.indexOf(":")).trim();
|
|
81987
|
+
if (palette.has(property)) children.push(declaration);
|
|
81988
|
+
else {
|
|
81989
|
+
host2.push(declaration);
|
|
81990
|
+
if (property.startsWith("--office-")) {
|
|
81991
|
+
const input = `--_pptx-control-${property.slice("--office-".length)}`;
|
|
81992
|
+
host2.push(`${input}: var(${property})`);
|
|
81993
|
+
children.push(`${property}: var(${input})`);
|
|
81994
|
+
}
|
|
81995
|
+
}
|
|
81996
|
+
}
|
|
81997
|
+
return `${selector} { ${host2.join(";")}; } ${selector} > * { ${children.join(";")}; }`;
|
|
81998
|
+
}
|
|
81999
|
+
);
|
|
82000
|
+
const hostTokens = BASE.replace(/--office-ring:[^;]+;/, "");
|
|
82001
|
+
const hostColor = ["pptx-ui-checkbox", "pptx-ui-radio", "pptx-ui-switch"].includes(tag) ? "" : "color:var(--_pptx-foreground);";
|
|
82002
|
+
return chunkNDAE3JFO_cjs.withOfficeThemeCss(
|
|
82003
|
+
`:host { ${hostTokens} ${hostColor} font-family:var(--_pptx-font); }
|
|
82004
|
+
${chunkNDAE3JFO_cjs.legacyThemeBridge(":host > *", "--_pptx-")}
|
|
82005
|
+
:host > * {${BASE}}
|
|
82006
|
+
${inner2}
|
|
82007
|
+
:host(:focus-visible) { outline-color:var(--pptx-focus-ring-color,var(--_pptx-ring)); }`,
|
|
82008
|
+
":host"
|
|
82009
|
+
);
|
|
82282
82010
|
}
|
|
82283
82011
|
var OFFICE_TOKEN_BRIDGE = `
|
|
82284
82012
|
/* Bindings put utility classes on the host; only the shadow trigger draws a box. */
|
|
@@ -82970,7 +82698,7 @@ var PRESENTER_CONSOLE_STYLES = `
|
|
|
82970
82698
|
.strip {
|
|
82971
82699
|
box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: ${PRESENTER_LAYOUT_METRICS.stripGap}px;
|
|
82972
82700
|
padding: ${PRESENTER_LAYOUT_METRICS.stripPaddingY}px ${PRESENTER_LAYOUT_METRICS.stripPaddingX}px; border-bottom: 1px solid var(--pptx-border, #33334d);
|
|
82973
|
-
background: var(--pptx-card, #1e1e2e); color: var(--pptx-foreground, #e2e8f0); font: 12px/16px system-ui,
|
|
82701
|
+
background: var(--pptx-card, #1e1e2e); color: var(--pptx-foreground, #e2e8f0); font: 12px/16px var(--pptx-font,var(--office-font,system-ui,sans-serif));
|
|
82974
82702
|
}
|
|
82975
82703
|
svg { flex: none; width: ${PRESENTER_LAYOUT_METRICS.controlIconSize}px; height: ${PRESENTER_LAYOUT_METRICS.controlIconSize}px; }
|
|
82976
82704
|
button {
|
|
@@ -86710,7 +86438,7 @@ var SUBTITLE_SETTINGS_STYLES = `
|
|
|
86710
86438
|
:host { display: inline-flex; }
|
|
86711
86439
|
dialog { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
|
|
86712
86440
|
margin: auto; padding: 24px; border: 1px solid var(--pptx-border, #374151); border-radius: 10px;
|
|
86713
|
-
background: var(--pptx-background, #181b20); color: var(--pptx-foreground, #f9fafb); font: 14px/1.5 system-ui; }
|
|
86441
|
+
background: var(--pptx-background, #181b20); color: var(--pptx-foreground, #f9fafb); font: 14px/1.5 var(--pptx-font,var(--office-font,system-ui,sans-serif)); }
|
|
86714
86442
|
dialog::backdrop { background: #0008; }
|
|
86715
86443
|
h2 { margin: 0 0 12px; font-size: 18px; } p { margin: 0 0 20px; }
|
|
86716
86444
|
label { display: block; margin-bottom: 8px; }
|
|
@@ -86928,7 +86656,7 @@ var THEME_EDITOR_STYLES = `
|
|
|
86928
86656
|
:host { display: block; position: fixed; z-index: 1090; box-sizing: border-box; width: 288px;
|
|
86929
86657
|
color: var(--pptx-foreground, #e2e8f0); background: var(--pptx-card, #181c20);
|
|
86930
86658
|
border-left: 1px solid var(--pptx-border, #33334d); box-shadow: -8px 0 24px #0002;
|
|
86931
|
-
font: 12px/1.4 var(--pptx-ui-font-family, system-ui, sans-serif); }
|
|
86659
|
+
font: 12px/1.4 var(--pptx-ui-font-family, var(--office-font, system-ui, sans-serif)); }
|
|
86932
86660
|
:host([inline]) { position: static; width: 100%; border: 0; box-shadow: none; }
|
|
86933
86661
|
:host([inline]) .close { display: none; }
|
|
86934
86662
|
* { box-sizing: border-box; }
|
|
@@ -87450,7 +87178,7 @@ var CHART_FORMAT_PANE_STYLES = `
|
|
|
87450
87178
|
:host { display: block; position: fixed; z-index: 1090; box-sizing: border-box; width: 288px;
|
|
87451
87179
|
color: var(--pptx-foreground, #e2e8f0); background: var(--pptx-card, #181c20);
|
|
87452
87180
|
border-left: 1px solid var(--pptx-border, #33334d); box-shadow: -8px 0 24px #0002;
|
|
87453
|
-
font: 12px/1.4 var(--pptx-ui-font-family, system-ui, sans-serif); }
|
|
87181
|
+
font: 12px/1.4 var(--pptx-ui-font-family, var(--office-font, system-ui, sans-serif)); }
|
|
87454
87182
|
:host([inline]) { position: static; width: 100%; border: 0; box-shadow: none; }
|
|
87455
87183
|
* { box-sizing: border-box; }
|
|
87456
87184
|
.panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
@@ -88398,6 +88126,7 @@ function registerPptxWebControls() {
|
|
|
88398
88126
|
if (typeof window === "undefined" || !window.customElements) {
|
|
88399
88127
|
return;
|
|
88400
88128
|
}
|
|
88129
|
+
chunkNDAE3JFO_cjs.installOfficeUiTheme(document);
|
|
88401
88130
|
const registry2 = window.customElements;
|
|
88402
88131
|
assertWebControlContract(
|
|
88403
88132
|
registry2,
|
|
@@ -88406,7 +88135,10 @@ function registerPptxWebControls() {
|
|
|
88406
88135
|
if (!document.getElementById("pptx-ui-control-hosts")) {
|
|
88407
88136
|
const style = document.createElement("style");
|
|
88408
88137
|
style.id = "pptx-ui-control-hosts";
|
|
88409
|
-
style.textContent =
|
|
88138
|
+
style.textContent = chunkNDAE3JFO_cjs.withOfficeThemeCss(
|
|
88139
|
+
HOST_STYLES + OFFICE_TOKEN_BRIDGE,
|
|
88140
|
+
controls.map(([name]) => name).join(",")
|
|
88141
|
+
);
|
|
88410
88142
|
document.head.append(style);
|
|
88411
88143
|
}
|
|
88412
88144
|
for (const [name, define] of controls) {
|