pptx-react-viewer 4.17.1 → 4.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/CHANGELOG.md +41 -0
- package/dist/{AiChatPanel-4VMAZWMA.js → AiChatPanel-6ABOTMI4.js} +28 -28
- package/dist/AiChatPanel-6ABOTMI4.js.br +0 -0
- package/dist/AiChatPanel-6ABOTMI4.js.gz +0 -0
- package/dist/{AiChatPanel-Z455OA7S.mjs → AiChatPanel-QEOFQGNY.mjs} +4 -4
- package/dist/AiChatPanel-QEOFQGNY.mjs.br +0 -0
- package/dist/AiChatPanel-QEOFQGNY.mjs.gz +0 -0
- package/dist/{Model3DScene-DTWVQCBT.mjs → Model3DScene-CKBO4RI2.mjs} +1 -1
- package/dist/{Model3DScene-DTWVQCBT.mjs.br → Model3DScene-CKBO4RI2.mjs.br} +0 -0
- package/dist/Model3DScene-CKBO4RI2.mjs.gz +0 -0
- package/dist/{Model3DScene-MFLMJAQX.js → Model3DScene-ESGCOB2O.js} +2 -2
- package/dist/{Model3DScene-MFLMJAQX.js.br → Model3DScene-ESGCOB2O.js.br} +0 -0
- package/dist/Model3DScene-ESGCOB2O.js.gz +0 -0
- package/dist/{chunk-24UNI4EL.js → chunk-E3TLDJPS.js} +9114 -2963
- package/dist/chunk-E3TLDJPS.js.br +0 -0
- package/dist/chunk-E3TLDJPS.js.gz +0 -0
- package/dist/{chunk-24CSDBXI.js → chunk-FNO4C3LU.js} +831 -831
- package/dist/chunk-FNO4C3LU.js.br +0 -0
- package/dist/chunk-FNO4C3LU.js.gz +0 -0
- package/dist/{chunk-I23JEAUE.js → chunk-H7FXW2Q3.js} +5 -5
- package/dist/chunk-H7FXW2Q3.js.br +0 -0
- package/dist/chunk-H7FXW2Q3.js.gz +0 -0
- package/dist/{chunk-HUNX22TC.mjs → chunk-LE3JUNIR.mjs} +2 -2
- package/dist/chunk-LE3JUNIR.mjs.br +0 -0
- package/dist/chunk-LE3JUNIR.mjs.gz +0 -0
- package/dist/{chunk-QWQADOJZ.js → chunk-LKL6DQ55.js} +25 -13
- package/dist/chunk-LKL6DQ55.js.br +0 -0
- package/dist/chunk-LKL6DQ55.js.gz +0 -0
- package/dist/{chunk-UKR42GJS.mjs → chunk-OCUCBRXU.mjs} +4 -4
- package/dist/chunk-OCUCBRXU.mjs.br +0 -0
- package/dist/chunk-OCUCBRXU.mjs.gz +0 -0
- package/dist/{chunk-GLLEZR4U.mjs → chunk-Q4HRYUEP.mjs} +26 -13
- package/dist/chunk-Q4HRYUEP.mjs.br +0 -0
- package/dist/chunk-Q4HRYUEP.mjs.gz +0 -0
- package/dist/{chunk-QDVMTPYQ.js → chunk-QSBL4SL6.js} +3742 -6104
- package/dist/chunk-QSBL4SL6.js.br +0 -0
- package/dist/chunk-QSBL4SL6.js.gz +0 -0
- package/dist/{chunk-YMVJOQIS.mjs → chunk-VX52VUBD.mjs} +1 -1
- package/dist/chunk-VX52VUBD.mjs.br +0 -0
- package/dist/chunk-VX52VUBD.mjs.gz +0 -0
- package/dist/{chunk-I6VNRB6R.js → chunk-WAUDRNBY.js} +197 -197
- package/dist/chunk-WAUDRNBY.js.br +0 -0
- package/dist/chunk-WAUDRNBY.js.gz +0 -0
- package/dist/{chunk-JSMKHCKC.mjs → chunk-YL7IPY2B.mjs} +1906 -4268
- package/dist/chunk-YL7IPY2B.mjs.br +0 -0
- package/dist/chunk-YL7IPY2B.mjs.gz +0 -0
- package/dist/{chunk-26EMM7IE.mjs → chunk-YYVPC6KI.mjs} +9079 -2938
- package/dist/chunk-YYVPC6KI.mjs.br +0 -0
- package/dist/chunk-YYVPC6KI.mjs.gz +0 -0
- package/dist/i18n/de.cjs +21 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +21 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +21 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +21 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +21 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +21 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +21 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +21 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +586 -3
- package/dist/index.js +63 -63
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +541 -3
- package/dist/internals.js +105 -105
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.d.ts +586 -3
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-4VMAZWMA.js.br +0 -0
- package/dist/AiChatPanel-4VMAZWMA.js.gz +0 -0
- package/dist/AiChatPanel-Z455OA7S.mjs.br +0 -0
- package/dist/AiChatPanel-Z455OA7S.mjs.gz +0 -0
- package/dist/Model3DScene-DTWVQCBT.mjs.gz +0 -0
- package/dist/Model3DScene-MFLMJAQX.js.gz +0 -0
- package/dist/chunk-24CSDBXI.js.br +0 -0
- package/dist/chunk-24CSDBXI.js.gz +0 -0
- package/dist/chunk-24UNI4EL.js.br +0 -0
- package/dist/chunk-24UNI4EL.js.gz +0 -0
- package/dist/chunk-26EMM7IE.mjs.br +0 -0
- package/dist/chunk-26EMM7IE.mjs.gz +0 -0
- package/dist/chunk-GLLEZR4U.mjs.br +0 -0
- package/dist/chunk-GLLEZR4U.mjs.gz +0 -0
- package/dist/chunk-HUNX22TC.mjs.br +0 -0
- package/dist/chunk-HUNX22TC.mjs.gz +0 -0
- package/dist/chunk-I23JEAUE.js.br +0 -0
- package/dist/chunk-I23JEAUE.js.gz +0 -0
- package/dist/chunk-I6VNRB6R.js.br +0 -0
- package/dist/chunk-I6VNRB6R.js.gz +0 -0
- package/dist/chunk-JSMKHCKC.mjs.br +0 -0
- package/dist/chunk-JSMKHCKC.mjs.gz +0 -0
- package/dist/chunk-QDVMTPYQ.js.br +0 -0
- package/dist/chunk-QDVMTPYQ.js.gz +0 -0
- package/dist/chunk-QWQADOJZ.js.br +0 -0
- package/dist/chunk-QWQADOJZ.js.gz +0 -0
- package/dist/chunk-UKR42GJS.mjs.br +0 -0
- package/dist/chunk-UKR42GJS.mjs.gz +0 -0
- package/dist/chunk-YMVJOQIS.mjs.br +0 -0
- package/dist/chunk-YMVJOQIS.mjs.gz +0 -0
package/dist/internals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PptxTheme, PptxTransitionType, PptxSlideTransition, ImagePptxElement, PptxThemeColorScheme, PptxThemeFontScheme, PptxSlide, PptxElement, TextSegment, TextStyle, MasterViewTab, ShapePptxElement, PptxElementAnimation, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, MergeShapeOperation, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, PptxSlideLayout, PptxHandler, PptxLayoutOption,
|
|
1
|
+
import { PptxTheme, PptxThemeColorRef, PptxLayoutPreview, PptxTransitionType, PptxSlideTransition, ImagePptxElement, PptxThemeColorScheme, PptxThemeFontScheme, PptxSlide, PptxElement, TextSegment, TextStyle, MasterViewTab, ShapePptxElement, PptxElementAnimation, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, MergeShapeOperation, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, PptxSlideLayout, PptxHandler, PptxLayoutOption, PptxComment, ConnectorPptxElement, PptxThemePreset, PptxData, PptxHandlerSaveOptions, PptxSaveFormat, PptxModifyVerifier } from 'ooxml-core/pptx';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { Doc } from 'yjs';
|
|
4
4
|
import React$1, { Dispatch, SetStateAction, MutableRefObject, RefObject, ForwardedRef } from 'react';
|
|
@@ -2248,6 +2248,25 @@ declare const RIBBON_CONTROL_CATALOG: {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
};
|
|
2250
2250
|
readonly smartArtDesign: {
|
|
2251
|
+
readonly createGraphic: {
|
|
2252
|
+
readonly label: 'Create Graphic';
|
|
2253
|
+
readonly controls: {
|
|
2254
|
+
readonly addShape: 'Add Shape';
|
|
2255
|
+
readonly addBullet: 'Add Bullet';
|
|
2256
|
+
readonly textPane: 'Text Pane';
|
|
2257
|
+
readonly promote: 'Promote';
|
|
2258
|
+
readonly demote: 'Demote';
|
|
2259
|
+
readonly rightToLeft: 'Right to Left';
|
|
2260
|
+
readonly moveUp: 'Move Up';
|
|
2261
|
+
readonly moveDown: 'Move Down';
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
readonly layouts: {
|
|
2265
|
+
readonly label: 'Layouts';
|
|
2266
|
+
readonly controls: {
|
|
2267
|
+
readonly gallery: 'Layouts gallery';
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2251
2270
|
readonly smartArtStyles: {
|
|
2252
2271
|
readonly label: 'SmartArt Styles';
|
|
2253
2272
|
readonly controls: {
|
|
@@ -2255,6 +2274,13 @@ declare const RIBBON_CONTROL_CATALOG: {
|
|
|
2255
2274
|
readonly gallery: 'SmartArt Styles gallery';
|
|
2256
2275
|
};
|
|
2257
2276
|
};
|
|
2277
|
+
readonly reset: {
|
|
2278
|
+
readonly label: 'Reset';
|
|
2279
|
+
readonly controls: {
|
|
2280
|
+
readonly resetGraphic: 'Reset Graphic';
|
|
2281
|
+
readonly convert: 'Convert';
|
|
2282
|
+
};
|
|
2283
|
+
};
|
|
2258
2284
|
};
|
|
2259
2285
|
};
|
|
2260
2286
|
//#endregion
|
|
@@ -2520,6 +2546,8 @@ interface RibbonCommandView {
|
|
|
2520
2546
|
expanded?: boolean;
|
|
2521
2547
|
hidden?: boolean;
|
|
2522
2548
|
compact?: boolean;
|
|
2549
|
+
/** Opens a menu or panel: draws PowerPoint's drop-down chevron after the label. */
|
|
2550
|
+
caret?: boolean;
|
|
2523
2551
|
badge?: number;
|
|
2524
2552
|
/** Commands with the same column share a vertical stack. */
|
|
2525
2553
|
column?: number;
|
|
@@ -2617,10 +2645,133 @@ interface PresentationInkStroke {
|
|
|
2617
2645
|
points: PresentationInkPoint[];
|
|
2618
2646
|
}
|
|
2619
2647
|
//#endregion
|
|
2648
|
+
//#region src/render/presentation-blackboard.d.ts
|
|
2649
|
+
/** Blackout state, as carried by {@link PresentationSnapshot}. */
|
|
2650
|
+
type PresentationBlackout = PresentationSnapshot['blackout'];
|
|
2651
|
+
//#endregion
|
|
2620
2652
|
//#region src/render/paste-special.d.ts
|
|
2621
2653
|
/** The four paste formats PowerPoint's Paste Options / Paste Special offer. */
|
|
2622
2654
|
type PasteSpecialFormat = 'keep-source-formatting' | 'use-destination-theme' | 'picture' | 'keep-text-only';
|
|
2623
2655
|
//#endregion
|
|
2656
|
+
//#region src/render/chrome-controls-state.d.ts
|
|
2657
|
+
type ChromeTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
2658
|
+
type ReadOnlyBannerPasswordError = 'wrong-password' | 'unsupported-algorithm';
|
|
2659
|
+
interface ReadOnlyBannerViewState {
|
|
2660
|
+
/** `ReadOnlyRecommendation.kind`; mirrored onto the host's `data-kind`. */
|
|
2661
|
+
kind: string | null;
|
|
2662
|
+
/** `ReadOnlyRecommendation.messageKey`, translated by `translate`. */
|
|
2663
|
+
messageKey: string;
|
|
2664
|
+
/** Swap the Edit anyway / Dismiss pair for the inline password form. */
|
|
2665
|
+
passwordPromptOpen?: boolean;
|
|
2666
|
+
passwordError?: ReadOnlyBannerPasswordError | null;
|
|
2667
|
+
/** Disables the form while a submitted password is being checked. */
|
|
2668
|
+
checkingPassword?: boolean;
|
|
2669
|
+
translate?: ChromeTranslate;
|
|
2670
|
+
}
|
|
2671
|
+
interface PasteOptionsViewState {
|
|
2672
|
+
/** Right edge of the pasted element in viewport pixels. */
|
|
2673
|
+
left: number;
|
|
2674
|
+
/** Bottom edge of the pasted element in viewport pixels. */
|
|
2675
|
+
top: number;
|
|
2676
|
+
translate?: ChromeTranslate;
|
|
2677
|
+
}
|
|
2678
|
+
interface CompatToastViewItem {
|
|
2679
|
+
readonly id: string;
|
|
2680
|
+
readonly code: string;
|
|
2681
|
+
readonly severity: 'info' | 'warning';
|
|
2682
|
+
readonly messageKey: string;
|
|
2683
|
+
readonly params?: Readonly<Record<string, string>>;
|
|
2684
|
+
}
|
|
2685
|
+
interface CompatToastsViewState {
|
|
2686
|
+
/** Dismiss-filtered toasts. The element shows the first {@link COMPAT_TOAST_VISIBLE_LIMIT}. */
|
|
2687
|
+
toasts: readonly CompatToastViewItem[];
|
|
2688
|
+
/** Extra toasts a host already trimmed off the list it passes. */
|
|
2689
|
+
overflowCount?: number;
|
|
2690
|
+
/** Width of the open right-docked panel (see `compatToastStackStyle`). */
|
|
2691
|
+
rightInset?: number;
|
|
2692
|
+
/** Live height of the docked notes strip (see `compatToastStackStyle`). */
|
|
2693
|
+
bottomInset?: number;
|
|
2694
|
+
translate?: ChromeTranslate;
|
|
2695
|
+
}
|
|
2696
|
+
type DialogFooterVariant = 'secondary' | 'primary' | 'warning' | 'danger';
|
|
2697
|
+
type DialogFooterIcon = 'trash' | 'pen' | 'restore' | 'print' | 'check';
|
|
2698
|
+
interface DialogFooterAction {
|
|
2699
|
+
/** Stable id echoed back in the `dialog-footer-request` intent. */
|
|
2700
|
+
id: string;
|
|
2701
|
+
/** Already-translated visible label and accessible name. */
|
|
2702
|
+
label: string;
|
|
2703
|
+
variant?: DialogFooterVariant;
|
|
2704
|
+
icon?: DialogFooterIcon;
|
|
2705
|
+
disabled?: boolean;
|
|
2706
|
+
/** Work in flight: the button is disabled, `aria-busy` and shows a spinner. */
|
|
2707
|
+
busy?: boolean;
|
|
2708
|
+
/** Tooltip (`title`) for an action whose label needs a longer hint. */
|
|
2709
|
+
title?: string;
|
|
2710
|
+
/** `start` pins a tertiary action (Remove link, Reset all) to the left edge. */
|
|
2711
|
+
align?: 'start' | 'end';
|
|
2712
|
+
/** Optional `data-testid` stamped on the button. */
|
|
2713
|
+
testId?: string;
|
|
2714
|
+
}
|
|
2715
|
+
interface DialogFooterViewState {
|
|
2716
|
+
actions: readonly DialogFooterAction[];
|
|
2717
|
+
}
|
|
2718
|
+
type MobileBarId = 'slides' | 'insert' | 'inspector' | 'comments' | 'notes';
|
|
2719
|
+
interface MobileBarViewState {
|
|
2720
|
+
/** Every button disables at 0 (see `buildBarActions`). */
|
|
2721
|
+
slideCount: number;
|
|
2722
|
+
/** The button whose sheet is open; reflected as `aria-pressed` and a top pill. */
|
|
2723
|
+
activeSheet?: MobileBarId | null;
|
|
2724
|
+
/** Comment count on the badge of Comments (`99+` above 99). */
|
|
2725
|
+
commentCount?: number;
|
|
2726
|
+
/** Buttons dropped entirely, such as Notes when `hiddenActions` hides it. */
|
|
2727
|
+
hidden?: readonly MobileBarId[];
|
|
2728
|
+
/** Buttons disabled beyond the no-slides rule, such as edit-only ones in view mode. */
|
|
2729
|
+
disabled?: readonly MobileBarId[];
|
|
2730
|
+
translate?: ChromeTranslate;
|
|
2731
|
+
}
|
|
2732
|
+
type MobileToolbarId = 'menu' | 'undo' | 'redo' | 'ai' | 'save' | 'present' | 'share';
|
|
2733
|
+
interface MobileToolbarViewState {
|
|
2734
|
+
/** Menu, Undo, Redo, AI and Share only show while editing. */
|
|
2735
|
+
editable: boolean;
|
|
2736
|
+
canUndo: boolean;
|
|
2737
|
+
canRedo: boolean;
|
|
2738
|
+
/** Host opted into the AI assistant; the element draws its toggle. */
|
|
2739
|
+
aiVisible?: boolean;
|
|
2740
|
+
aiActive?: boolean;
|
|
2741
|
+
/** Reflected as `aria-expanded` on Menu when given. */
|
|
2742
|
+
menuOpen?: boolean;
|
|
2743
|
+
/** Buttons dropped entirely (`hiddenActions`, or Share when the host has none). */
|
|
2744
|
+
hidden?: readonly MobileToolbarId[];
|
|
2745
|
+
/** Buttons disabled, such as Present while there is nothing to present. */
|
|
2746
|
+
disabled?: readonly MobileToolbarId[];
|
|
2747
|
+
translate?: ChromeTranslate;
|
|
2748
|
+
}
|
|
2749
|
+
interface PresentToolbarViewState {
|
|
2750
|
+
/** Zero-based slide on screen. */
|
|
2751
|
+
current: number;
|
|
2752
|
+
total: number;
|
|
2753
|
+
/** The armed annotation tool; `none` leaves every tool unpressed. */
|
|
2754
|
+
tool: PresentationPointerTool;
|
|
2755
|
+
penColor: string;
|
|
2756
|
+
highlighterColor: string;
|
|
2757
|
+
hasAnnotations: boolean;
|
|
2758
|
+
/** With the pen, marks the Blackboard toggle active (`isBlackboardActive`). */
|
|
2759
|
+
blackout: PresentationBlackout;
|
|
2760
|
+
/** Show the presenter-view toggle (default false). */
|
|
2761
|
+
presenterViewVisible?: boolean;
|
|
2762
|
+
presenterViewActive?: boolean;
|
|
2763
|
+
/** Epoch ms the show started. The element ticks the readout; null shows 00:00. */
|
|
2764
|
+
startTime: number | null;
|
|
2765
|
+
translate?: ChromeTranslate;
|
|
2766
|
+
}
|
|
2767
|
+
interface PresenterConsoleViewState {
|
|
2768
|
+
/** Ids of toggles that read as on (and the resume / close-window variants). */
|
|
2769
|
+
active: readonly string[];
|
|
2770
|
+
/** Ids of controls that are disabled. */
|
|
2771
|
+
disabled: readonly string[];
|
|
2772
|
+
translate?: ChromeTranslate;
|
|
2773
|
+
}
|
|
2774
|
+
//#endregion
|
|
2624
2775
|
//#region src/render/find-replace.d.ts
|
|
2625
2776
|
/** Identifies a single match of the find query at segment-level precision. */
|
|
2626
2777
|
interface FindResult {
|
|
@@ -2693,6 +2844,38 @@ interface FontEmbeddingDescriptor {
|
|
|
2693
2844
|
/** Present only when `interactive` is false. */
|
|
2694
2845
|
disabledReasonKey?: string;
|
|
2695
2846
|
}
|
|
2847
|
+
/** One placeholder outline, already positioned in unscaled slide space. */
|
|
2848
|
+
interface LayoutPreviewFrame {
|
|
2849
|
+
/** Stable key for list rendering. */
|
|
2850
|
+
key: string;
|
|
2851
|
+
type: string;
|
|
2852
|
+
left: number;
|
|
2853
|
+
top: number;
|
|
2854
|
+
width: number;
|
|
2855
|
+
height: number;
|
|
2856
|
+
}
|
|
2857
|
+
/** Everything a binding needs to render one thumbnail. */
|
|
2858
|
+
interface LayoutPreviewGeometry {
|
|
2859
|
+
/** Outer box, in CSS pixels. */
|
|
2860
|
+
boxWidth: number;
|
|
2861
|
+
boxHeight: number;
|
|
2862
|
+
/** Inner surface size, in unscaled slide pixels. */
|
|
2863
|
+
surfaceWidth: number;
|
|
2864
|
+
surfaceHeight: number;
|
|
2865
|
+
/** Factor to apply as `transform: scale(...)` on the inner surface. */
|
|
2866
|
+
scale: number;
|
|
2867
|
+
backgroundColor: string;
|
|
2868
|
+
/**
|
|
2869
|
+
* Border width for placeholder outlines, pre-divided by {@link scale}.
|
|
2870
|
+
*
|
|
2871
|
+
* The outlines live inside the scaled surface, so a plain 1.5px border
|
|
2872
|
+
* would be multiplied down to a hairline that vanishes at thumbnail size.
|
|
2873
|
+
* Dividing here keeps the drawn width constant on screen whatever the
|
|
2874
|
+
* slide dimensions are.
|
|
2875
|
+
*/
|
|
2876
|
+
frameBorderWidth: number;
|
|
2877
|
+
frames: LayoutPreviewFrame[];
|
|
2878
|
+
}
|
|
2696
2879
|
//#endregion
|
|
2697
2880
|
//#region src/render/zoom-return-navigation.d.ts
|
|
2698
2881
|
/**
|
|
@@ -2724,6 +2907,24 @@ interface ZoomExcursion {
|
|
|
2724
2907
|
/** The zoom's own `transitionDur`, applied to the jump INTO the target and to the return jump. */
|
|
2725
2908
|
transitionDurationMs?: number;
|
|
2726
2909
|
}
|
|
2910
|
+
//#endregion
|
|
2911
|
+
//#region src/render/command-search.d.ts
|
|
2912
|
+
/**
|
|
2913
|
+
* Command-search data for the PowerPoint-style "Tell me what you want to do"
|
|
2914
|
+
* search bar. Provides searchable command entries grouped by category, each
|
|
2915
|
+
* mapping a label translation key to a command identifier that bindings can
|
|
2916
|
+
* dispatch.
|
|
2917
|
+
*/
|
|
2918
|
+
interface CommandSearchEntry {
|
|
2919
|
+
/** Translation key for the display label. */
|
|
2920
|
+
labelKey: string;
|
|
2921
|
+
/** Command identifier dispatched to the host binding. */
|
|
2922
|
+
command: string;
|
|
2923
|
+
/** Optional icon hint (binding resolves to framework icon component). */
|
|
2924
|
+
icon?: string;
|
|
2925
|
+
/** Category grouping key; hosts with their own short list may omit it. */
|
|
2926
|
+
category?: 'format' | 'insert' | 'view' | 'slideShow' | 'design' | 'arrange';
|
|
2927
|
+
}
|
|
2727
2928
|
/** Everything a binding needs to render the recovery dialog, and nothing else. */
|
|
2728
2929
|
interface AutosaveRecoveryPrompt {
|
|
2729
2930
|
/** IndexedDB key the snapshot is stored under (the deck's file path/name). */
|
|
@@ -2943,7 +3144,7 @@ interface SubtitleSettingsLabels {
|
|
|
2943
3144
|
//#endregion
|
|
2944
3145
|
//#region src/render/ribbon-galleries/gallery-types.d.ts
|
|
2945
3146
|
/** Every gallery the ribbon offers. */
|
|
2946
|
-
type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'themeColors' | 'themeFonts';
|
|
3147
|
+
type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'smartArtLayouts' | 'smartArtAddShape' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert' | 'themeColors' | 'themeFonts';
|
|
2947
3148
|
/** One tile. */
|
|
2948
3149
|
interface RibbonGalleryItem {
|
|
2949
3150
|
/** Stable within its gallery; what `applyRibbonGalleryItem` takes. */
|
|
@@ -2990,6 +3191,22 @@ interface RibbonGalleryDescriptor {
|
|
|
2990
3191
|
sections: RibbonGallerySection[];
|
|
2991
3192
|
/** True when the selection cannot take this gallery (trigger disabled). */
|
|
2992
3193
|
disabled: boolean;
|
|
3194
|
+
/**
|
|
3195
|
+
* Set when the entry is a one-button command (PowerPoint's Add Shape, Reset
|
|
3196
|
+
* Graphic, ...) rather than a gallery: the element draws a plain command, a
|
|
3197
|
+
* click picks its only item and no panel opens.
|
|
3198
|
+
*/
|
|
3199
|
+
command?: RibbonGalleryCommandView;
|
|
3200
|
+
}
|
|
3201
|
+
/** How a command-style entry draws (see {@link RibbonGalleryDescriptor.command}). */
|
|
3202
|
+
interface RibbonGalleryCommandView {
|
|
3203
|
+
/** SVG path data on a 20px grid. */
|
|
3204
|
+
iconPath: string;
|
|
3205
|
+
/** Icon above the label (PowerPoint's large button) instead of beside it. */
|
|
3206
|
+
large?: boolean;
|
|
3207
|
+
/** i18n key and English fallback of the tooltip, e.g. why the command is unavailable. */
|
|
3208
|
+
hintKey?: string;
|
|
3209
|
+
hint?: string;
|
|
2993
3210
|
}
|
|
2994
3211
|
type ReadOnlyRecommendationKind = 'modifyVerifier' | 'markedFinal' | null;
|
|
2995
3212
|
interface ReadOnlyRecommendation {
|
|
@@ -3148,15 +3365,73 @@ interface RibbonInsertState {
|
|
|
3148
3365
|
headerFooterAvailable?: boolean;
|
|
3149
3366
|
translate?: (key: string) => string;
|
|
3150
3367
|
}
|
|
3368
|
+
/** One row of a menu or select; labels are translated by the view unless `label` is set. */
|
|
3369
|
+
interface RibbonHomeItem {
|
|
3370
|
+
readonly value: string;
|
|
3371
|
+
/** Ready-made text (a font family, a layout name); wins over `labelKey`. */
|
|
3372
|
+
readonly label?: string;
|
|
3373
|
+
readonly labelKey?: string;
|
|
3374
|
+
readonly fallback?: string;
|
|
3375
|
+
readonly description?: string;
|
|
3376
|
+
readonly descriptionKey?: string;
|
|
3377
|
+
/** Heading of the group this row opens; consecutive rows share one heading. */
|
|
3378
|
+
readonly group?: string;
|
|
3379
|
+
readonly groupKey?: string;
|
|
3380
|
+
readonly checked?: boolean;
|
|
3381
|
+
readonly disabled?: boolean;
|
|
3382
|
+
/** Preview typeface of a font row. */
|
|
3383
|
+
readonly fontFamily?: string;
|
|
3384
|
+
/** Shared artwork key shown before the label (a shape glyph or ribbon icon). */
|
|
3385
|
+
readonly icon?: string;
|
|
3386
|
+
/** Preserved test or automation hooks (`data-pptx-merge-op`, ...). */
|
|
3387
|
+
readonly attrs?: Readonly<Record<string, string>>;
|
|
3388
|
+
/** Draws a divider above the row. */
|
|
3389
|
+
readonly separator?: boolean;
|
|
3390
|
+
}
|
|
3151
3391
|
interface RibbonHomeControlState {
|
|
3152
3392
|
disabled?: boolean;
|
|
3153
3393
|
/** Omit for ordinary commands; a boolean reflects `aria-pressed`. */
|
|
3154
3394
|
pressed?: boolean;
|
|
3395
|
+
/** Reserved for hosts that mirror their own popover; shared popovers set it themselves. */
|
|
3396
|
+
expanded?: boolean;
|
|
3155
3397
|
hidden?: boolean;
|
|
3398
|
+
/** Select, number, colour bar and checked menu row. */
|
|
3399
|
+
value?: string | number;
|
|
3400
|
+
/** Menu or select rows that replace the spec's static ones. */
|
|
3401
|
+
items?: readonly RibbonHomeItem[];
|
|
3402
|
+
/** Colour popover content; the trigger shows `value` in its bar. */
|
|
3403
|
+
colour?: RibbonHomeColourModel;
|
|
3404
|
+
/** Layout gallery content. */
|
|
3405
|
+
layouts?: RibbonHomeLayoutModel;
|
|
3406
|
+
/** Embedded gallery content. */
|
|
3407
|
+
gallery?: {
|
|
3408
|
+
descriptor: RibbonGalleryDescriptor | undefined;
|
|
3409
|
+
disabled?: boolean;
|
|
3410
|
+
};
|
|
3156
3411
|
}
|
|
3412
|
+
interface RibbonHomeColourModel {
|
|
3413
|
+
/** The deck's theme colour map; the popover derives the theme palette from it. */
|
|
3414
|
+
themeColors?: Readonly<Record<string, string>>;
|
|
3415
|
+
/** Theme reference of the current colour (highlights its swatch). */
|
|
3416
|
+
selectedRef?: PptxThemeColorRef;
|
|
3417
|
+
/** Recently used colours, newest first. */
|
|
3418
|
+
recent?: readonly string[];
|
|
3419
|
+
}
|
|
3420
|
+
interface RibbonHomeLayoutModel {
|
|
3421
|
+
layouts: readonly {
|
|
3422
|
+
path: string;
|
|
3423
|
+
name: string;
|
|
3424
|
+
}[];
|
|
3425
|
+
/** Marks the active tile; omitted by New Slide. */
|
|
3426
|
+
current?: string;
|
|
3427
|
+
/** Artwork data by layout path; tiles render name-only until it arrives. */
|
|
3428
|
+
previews?: Readonly<Record<string, PptxLayoutPreview>> | ReadonlyMap<string, PptxLayoutPreview>;
|
|
3429
|
+
}
|
|
3430
|
+
/** State key of a control: its id, or `id#part` when several buttons share one id. */
|
|
3431
|
+
type RibbonHomeKey = RibbonControlId | `${RibbonControlId}#${string}`;
|
|
3157
3432
|
interface RibbonHomeViewState {
|
|
3158
3433
|
/** Missing entries are enabled, unpressed and visible. */
|
|
3159
|
-
controls: Readonly<Partial<Record<
|
|
3434
|
+
controls: Readonly<Partial<Record<RibbonHomeKey, RibbonHomeControlState>>>;
|
|
3160
3435
|
translate?: (key: string) => string;
|
|
3161
3436
|
}
|
|
3162
3437
|
/** Controlled View tab state. Native viewers own the values and every side effect. */
|
|
@@ -3189,6 +3464,113 @@ interface RibbonTransitionsViewState {
|
|
|
3189
3464
|
translate?: RibbonTransitionsTranslate;
|
|
3190
3465
|
}
|
|
3191
3466
|
//#endregion
|
|
3467
|
+
//#region src/render/status-bar-state.d.ts
|
|
3468
|
+
/**
|
|
3469
|
+
* Shared model for the bottom status bar (`pptx-ui-status-bar`).
|
|
3470
|
+
*
|
|
3471
|
+
* The slide counter, save indicator, notes toggle, view-mode buttons and zoom
|
|
3472
|
+
* cluster were hand-built five times. The view owns the markup, pressed state
|
|
3473
|
+
* and gating; hosts own every effect (notes panel, view switching, zoom).
|
|
3474
|
+
*/
|
|
3475
|
+
type StatusBarTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
3476
|
+
type StatusBarSaveKind = 'idle' | 'saving' | 'error';
|
|
3477
|
+
type StatusBarViewMode = 'normal' | 'sorter' | 'slideShow';
|
|
3478
|
+
interface StatusBarViewState {
|
|
3479
|
+
slideCount: number;
|
|
3480
|
+
/** Zero-based active slide; clamped into range for display. */
|
|
3481
|
+
activeSlideIndex: number;
|
|
3482
|
+
/** Already-translated save indicator, see {@link resolveStatusBarSave}. */
|
|
3483
|
+
saveText: string;
|
|
3484
|
+
saveKind?: StatusBarSaveKind;
|
|
3485
|
+
/** Omit to hide the whole zoom cluster. */
|
|
3486
|
+
zoomPercent?: number;
|
|
3487
|
+
showNotes?: boolean;
|
|
3488
|
+
notesExpanded?: boolean;
|
|
3489
|
+
/** Default true. False drops the Normal / Sorter / Slide Show cluster. */
|
|
3490
|
+
showViewModes?: boolean;
|
|
3491
|
+
/** Default true. */
|
|
3492
|
+
showSorter?: boolean;
|
|
3493
|
+
/** Default true. */
|
|
3494
|
+
showSlideShow?: boolean;
|
|
3495
|
+
/** The pressed view button; omit when none is active. */
|
|
3496
|
+
viewMode?: StatusBarViewMode;
|
|
3497
|
+
translate?: StatusBarTranslate;
|
|
3498
|
+
}
|
|
3499
|
+
//#endregion
|
|
3500
|
+
//#region src/render/notes-toolbar-state.d.ts
|
|
3501
|
+
/**
|
|
3502
|
+
* Shared model for the speaker-notes formatting toolbar (`pptx-ui-notes-toolbar`).
|
|
3503
|
+
*
|
|
3504
|
+
* The toolbar owns the buttons, their order, icons, labels, enabled state and
|
|
3505
|
+
* the hyperlink popover. Hosts own the contenteditable editor, selection-based
|
|
3506
|
+
* edits, history, printing and persistence, and route typed intents to them.
|
|
3507
|
+
*/
|
|
3508
|
+
type NotesToolbarTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
3509
|
+
interface NotesToolbarViewState {
|
|
3510
|
+
/** True while the rich (contenteditable) surface is active. Drives the mode button label. */
|
|
3511
|
+
rich: boolean;
|
|
3512
|
+
/** Enables the formatting buttons. False in the plain editor, where they cannot act. */
|
|
3513
|
+
canFormat: boolean;
|
|
3514
|
+
/** Shows the Print button. */
|
|
3515
|
+
showPrint: boolean;
|
|
3516
|
+
/** Disables every button, for example while no slide is selected. */
|
|
3517
|
+
disabled?: boolean;
|
|
3518
|
+
/** Host translator; keys are the canonical `pptx.notes.*` set. Omitted: keys are shown. */
|
|
3519
|
+
translate?: NotesToolbarTranslate;
|
|
3520
|
+
}
|
|
3521
|
+
//#endregion
|
|
3522
|
+
//#region src/render/title-bar-state.d.ts
|
|
3523
|
+
type TitleBarTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
3524
|
+
type TitleBarPlacement = 'titleBar' | 'belowRibbon';
|
|
3525
|
+
type TitleBarTone = 'idle' | 'saving' | 'error';
|
|
3526
|
+
interface TitleBarAutosaveView {
|
|
3527
|
+
enabled: boolean;
|
|
3528
|
+
/** Default true. False renders the switch inert (host policy `autosave: false`). */
|
|
3529
|
+
toggleAvailable?: boolean;
|
|
3530
|
+
/** Translation key from `resolveTitleBarStatusKey`. */
|
|
3531
|
+
statusKey: string;
|
|
3532
|
+
/** Colour of the status text; only meaningful while `enabled`. */
|
|
3533
|
+
tone?: TitleBarTone;
|
|
3534
|
+
}
|
|
3535
|
+
interface TitleBarHistoryState {
|
|
3536
|
+
canUndo: boolean;
|
|
3537
|
+
canRedo: boolean;
|
|
3538
|
+
/** Description of the pending action, e.g. "Delete shape". */
|
|
3539
|
+
undoLabel?: string | null;
|
|
3540
|
+
redoLabel?: string | null;
|
|
3541
|
+
/** Default true. Maps to `hiddenActions: ['undo']`. */
|
|
3542
|
+
showUndo?: boolean;
|
|
3543
|
+
/** Default true. Maps to `hiddenActions: ['redo']`. */
|
|
3544
|
+
showRedo?: boolean;
|
|
3545
|
+
}
|
|
3546
|
+
interface TitleBarQuickAccessView {
|
|
3547
|
+
visible: boolean;
|
|
3548
|
+
position: QuickAccessPosition;
|
|
3549
|
+
showCommandLabels: boolean;
|
|
3550
|
+
/** Ordered catalog ids (File > Options > Quick Access Toolbar). */
|
|
3551
|
+
commandIds: readonly string[];
|
|
3552
|
+
}
|
|
3553
|
+
interface TitleBarViewState {
|
|
3554
|
+
/** Edit mode with an editable deck. Gates AutoSave, the strip, status and search. */
|
|
3555
|
+
editing: boolean;
|
|
3556
|
+
/** Whether the command search shows; hosts pass `editing`. */
|
|
3557
|
+
searchVisible: boolean;
|
|
3558
|
+
/** Display name; the translated default shows when empty. */
|
|
3559
|
+
fileName?: string;
|
|
3560
|
+
autosave: TitleBarAutosaveView;
|
|
3561
|
+
history: TitleBarHistoryState;
|
|
3562
|
+
/** Default true. */
|
|
3563
|
+
showSave?: boolean;
|
|
3564
|
+
quickAccess: TitleBarQuickAccessView;
|
|
3565
|
+
/** Search catalogue; defaults to the shared `COMMAND_SEARCH_ENTRIES`. */
|
|
3566
|
+
commands?: readonly CommandSearchEntry[];
|
|
3567
|
+
/** Default true. False drops the "Find in Slides" fallback row. */
|
|
3568
|
+
contentSearch?: boolean;
|
|
3569
|
+
/** ScreenTip rule (Options > General); returning undefined suppresses the title. */
|
|
3570
|
+
screenTip?: (label: string) => string | undefined;
|
|
3571
|
+
translate?: TitleBarTranslate;
|
|
3572
|
+
}
|
|
3573
|
+
//#endregion
|
|
3192
3574
|
//#region src/web-components/theme-editor.d.ts
|
|
3193
3575
|
interface PptxUiThemeEditorElement extends HTMLElement {
|
|
3194
3576
|
theme: PptxTheme | undefined;
|
|
@@ -3200,6 +3582,74 @@ declare global {
|
|
|
3200
3582
|
'pptx-ui-theme-editor': PptxUiThemeEditorElement;
|
|
3201
3583
|
}
|
|
3202
3584
|
}
|
|
3585
|
+
interface PptxUiCompatToastsElement extends HTMLElement {
|
|
3586
|
+
state: CompatToastsViewState;
|
|
3587
|
+
}
|
|
3588
|
+
declare global {
|
|
3589
|
+
interface HTMLElementTagNameMap {
|
|
3590
|
+
'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
interface PptxUiDialogFooterElement extends HTMLElement {
|
|
3594
|
+
state: DialogFooterViewState;
|
|
3595
|
+
/** Move keyboard focus to an action, e.g. the primary one when a dialog opens. */
|
|
3596
|
+
focusAction(id: string): void;
|
|
3597
|
+
}
|
|
3598
|
+
declare global {
|
|
3599
|
+
interface HTMLElementTagNameMap {
|
|
3600
|
+
'pptx-ui-dialog-footer': PptxUiDialogFooterElement;
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3603
|
+
interface PptxUiMobileBarElement extends HTMLElement {
|
|
3604
|
+
state: MobileBarViewState;
|
|
3605
|
+
}
|
|
3606
|
+
declare global {
|
|
3607
|
+
interface HTMLElementTagNameMap {
|
|
3608
|
+
'pptx-ui-mobile-bar': PptxUiMobileBarElement;
|
|
3609
|
+
}
|
|
3610
|
+
}
|
|
3611
|
+
interface PptxUiMobileToolbarElement extends HTMLElement {
|
|
3612
|
+
state: MobileToolbarViewState;
|
|
3613
|
+
}
|
|
3614
|
+
declare global {
|
|
3615
|
+
interface HTMLElementTagNameMap {
|
|
3616
|
+
'pptx-ui-mobile-toolbar': PptxUiMobileToolbarElement;
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
interface PptxUiPasteOptionsElement extends HTMLElement {
|
|
3620
|
+
state: PasteOptionsViewState;
|
|
3621
|
+
}
|
|
3622
|
+
declare global {
|
|
3623
|
+
interface HTMLElementTagNameMap {
|
|
3624
|
+
'pptx-ui-paste-options': PptxUiPasteOptionsElement;
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
interface PptxUiPresentToolbarElement extends HTMLElement {
|
|
3628
|
+
state: PresentToolbarViewState;
|
|
3629
|
+
/** Close an open colour palette, e.g. when the host auto-hides the bar. */
|
|
3630
|
+
closePalettes(): void;
|
|
3631
|
+
}
|
|
3632
|
+
declare global {
|
|
3633
|
+
interface HTMLElementTagNameMap {
|
|
3634
|
+
'pptx-ui-present-toolbar': PptxUiPresentToolbarElement;
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
interface PptxUiPresenterConsoleElement extends HTMLElement {
|
|
3638
|
+
state: PresenterConsoleViewState;
|
|
3639
|
+
}
|
|
3640
|
+
declare global {
|
|
3641
|
+
interface HTMLElementTagNameMap {
|
|
3642
|
+
'pptx-ui-presenter-console': PptxUiPresenterConsoleElement;
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
interface PptxUiReadOnlyBannerElement extends HTMLElement {
|
|
3646
|
+
state: ReadOnlyBannerViewState;
|
|
3647
|
+
}
|
|
3648
|
+
declare global {
|
|
3649
|
+
interface HTMLElementTagNameMap {
|
|
3650
|
+
'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3203
3653
|
interface PptxUiRibbonAnimationsElement extends HTMLElement {
|
|
3204
3654
|
state: RibbonAnimationsViewState;
|
|
3205
3655
|
}
|
|
@@ -3216,8 +3666,19 @@ declare global {
|
|
|
3216
3666
|
'pptx-ui-ribbon-draw': PptxUiRibbonDrawElement;
|
|
3217
3667
|
}
|
|
3218
3668
|
}
|
|
3669
|
+
//#endregion
|
|
3670
|
+
//#region src/web-components/ribbon-home-layout.d.ts
|
|
3671
|
+
/**
|
|
3672
|
+
* Draws a layout's real artwork inside a tile's scaled surface. The artwork is
|
|
3673
|
+
* element rendering that each binding owns; return a disposer to release it.
|
|
3674
|
+
*/
|
|
3675
|
+
type HomeLayoutArtwork = (preview: PptxLayoutPreview, geometry: LayoutPreviewGeometry, container: HTMLElement) => (() => void) | void;
|
|
3219
3676
|
interface PptxUiRibbonHomeElement extends HTMLElement {
|
|
3220
3677
|
state: RibbonHomeViewState;
|
|
3678
|
+
/** Draws a layout's real artwork inside a gallery tile; the host owns element rendering. */
|
|
3679
|
+
layoutArtwork: HomeLayoutArtwork | undefined;
|
|
3680
|
+
/** Wrapper (or button) of a control id. */
|
|
3681
|
+
anchor(id: string): HTMLElement | undefined;
|
|
3221
3682
|
}
|
|
3222
3683
|
declare global {
|
|
3223
3684
|
interface HTMLElementTagNameMap {
|
|
@@ -3225,6 +3686,15 @@ declare global {
|
|
|
3225
3686
|
'pptx-ui-ribbon-home-font': PptxUiRibbonHomeElement;
|
|
3226
3687
|
'pptx-ui-ribbon-home-paragraph': PptxUiRibbonHomeElement;
|
|
3227
3688
|
'pptx-ui-ribbon-home-editing': PptxUiRibbonHomeElement;
|
|
3689
|
+
'pptx-ui-ribbon-home-slides': PptxUiRibbonHomeElement;
|
|
3690
|
+
'pptx-ui-ribbon-home-drawing': PptxUiRibbonHomeElement;
|
|
3691
|
+
'pptx-ui-ribbon-home-arrange-align': PptxUiRibbonHomeElement;
|
|
3692
|
+
'pptx-ui-ribbon-home-arrange-flip': PptxUiRibbonHomeElement;
|
|
3693
|
+
'pptx-ui-ribbon-home-arrange-order': PptxUiRibbonHomeElement;
|
|
3694
|
+
'pptx-ui-ribbon-home-arrange-edit': PptxUiRibbonHomeElement;
|
|
3695
|
+
'pptx-ui-ribbon-home-font-picker': PptxUiRibbonHomeElement;
|
|
3696
|
+
'pptx-ui-ribbon-home-arrange-painter': PptxUiRibbonHomeElement;
|
|
3697
|
+
'pptx-ui-ribbon-home-arrange-shape': PptxUiRibbonHomeElement;
|
|
3228
3698
|
}
|
|
3229
3699
|
}
|
|
3230
3700
|
interface PptxUiRibbonTransitionsElement extends HTMLElement {
|
|
@@ -3292,6 +3762,74 @@ declare global {
|
|
|
3292
3762
|
'pptx-ui-subtitle-settings': PptxUiSubtitleSettingsElement;
|
|
3293
3763
|
}
|
|
3294
3764
|
}
|
|
3765
|
+
interface PptxUiStatusBarElement extends HTMLElement {
|
|
3766
|
+
state: StatusBarViewState;
|
|
3767
|
+
}
|
|
3768
|
+
declare global {
|
|
3769
|
+
interface HTMLElementTagNameMap {
|
|
3770
|
+
'pptx-ui-status-bar': PptxUiStatusBarElement;
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
interface PptxUiNotesToolbarElement extends HTMLElement {
|
|
3774
|
+
state: NotesToolbarViewState;
|
|
3775
|
+
}
|
|
3776
|
+
declare global {
|
|
3777
|
+
interface HTMLElementTagNameMap {
|
|
3778
|
+
'pptx-ui-notes-toolbar': PptxUiNotesToolbarElement;
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3781
|
+
interface PptxUiTitleBarElement extends HTMLElement {
|
|
3782
|
+
state: TitleBarViewState | undefined;
|
|
3783
|
+
placement: TitleBarPlacement;
|
|
3784
|
+
}
|
|
3785
|
+
declare global {
|
|
3786
|
+
interface HTMLElementTagNameMap {
|
|
3787
|
+
'pptx-ui-title-bar': PptxUiTitleBarElement;
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
/** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
|
|
3791
|
+
interface ContextMenuViewItem {
|
|
3792
|
+
/** Stable command id, echoed by `menu-request`. */
|
|
3793
|
+
id: string;
|
|
3794
|
+
/** Already-translated visible label. */
|
|
3795
|
+
label: string;
|
|
3796
|
+
/** Draw a rule before this row. */
|
|
3797
|
+
separatorBefore?: boolean;
|
|
3798
|
+
/** Group heading shown before this row; the row and the ones after it join that group. */
|
|
3799
|
+
heading?: string;
|
|
3800
|
+
/** Destructive command (Delete): tinted. */
|
|
3801
|
+
danger?: boolean;
|
|
3802
|
+
/** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
|
|
3803
|
+
disabled?: boolean;
|
|
3804
|
+
/** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
|
|
3805
|
+
checked?: boolean;
|
|
3806
|
+
}
|
|
3807
|
+
/** Everything the controlled element needs to draw one menu. */
|
|
3808
|
+
interface ContextMenuViewState {
|
|
3809
|
+
/** Pointer position, in viewport pixels. The element clamps it into the window. */
|
|
3810
|
+
x: number;
|
|
3811
|
+
y: number;
|
|
3812
|
+
/** Accessible name of the menu. */
|
|
3813
|
+
label: string;
|
|
3814
|
+
items: readonly ContextMenuViewItem[];
|
|
3815
|
+
/**
|
|
3816
|
+
* Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
|
|
3817
|
+
* `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
|
|
3818
|
+
*/
|
|
3819
|
+
markers?: readonly string[];
|
|
3820
|
+
/** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
|
|
3821
|
+
zIndex?: number;
|
|
3822
|
+
/** Move focus onto the first command on open. Default true. */
|
|
3823
|
+
autoFocus?: boolean;
|
|
3824
|
+
}
|
|
3825
|
+
interface PptxUiContextMenuElement extends HTMLElement {
|
|
3826
|
+
state: ContextMenuViewState;
|
|
3827
|
+
}
|
|
3828
|
+
declare global {
|
|
3829
|
+
interface HTMLElementTagNameMap {
|
|
3830
|
+
'pptx-ui-context-menu': PptxUiContextMenuElement;
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3295
3833
|
//#endregion
|
|
3296
3834
|
//#region src/web-components/select-value.d.ts
|
|
3297
3835
|
/** Public DOM shape used by all bindings; the element is not a native select. */
|