ooxml-ui 1.26.2 → 1.27.1
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/dist/chart/format-pane-types.d.ts +0 -1
- package/dist/chart/format-pane-view.d.ts +0 -1
- package/dist/pptx/{chunk-43NFRLCD.cjs → chunk-37VJFRCP.cjs} +2 -2
- package/dist/pptx/{chunk-3ZI57W7O.mjs → chunk-3LOVEO7U.mjs} +5 -0
- package/dist/pptx/{chunk-72P6AWRA.mjs → chunk-67L75M6K.mjs} +1 -1
- package/dist/pptx/{chunk-B4GBGPNL.cjs → chunk-CWWL7MCL.cjs} +99 -0
- package/dist/pptx/{chunk-7DIZOCO4.mjs → chunk-FUKVYJPM.mjs} +59 -2
- package/dist/pptx/{chunk-OOQMIQT3.cjs → chunk-GWKTHP6U.cjs} +0 -23
- package/dist/pptx/{chunk-LB3A3GF6.mjs → chunk-MJACF7Y2.mjs} +0 -23
- package/dist/pptx/{chunk-HF2YJASV.mjs → chunk-OD6REJDV.mjs} +2 -1
- package/dist/pptx/{chunk-4PYBBOIK.cjs → chunk-TMCN2OVN.cjs} +44 -43
- package/dist/pptx/{chunk-NFP4PCTP.cjs → chunk-VMDMICQC.cjs} +1346 -325
- package/dist/pptx/{chunk-R5GKUSHI.mjs → chunk-XZX7EHX4.mjs} +1290 -233
- package/dist/pptx/{chunk-X4FNVH7J.cjs → chunk-YMITEJST.cjs} +32 -0
- package/dist/pptx/dom/index.cjs +390 -390
- package/dist/pptx/dom/index.mjs +9 -9
- package/dist/pptx/export/index.d.ts +1 -0
- package/dist/pptx/export/index.d.ts.map +1 -1
- package/dist/pptx/export/print-document.cjs +17 -17
- package/dist/pptx/export/print-document.d.ts +7 -5
- package/dist/pptx/export/print-document.d.ts.map +1 -1
- package/dist/pptx/export/print-document.mjs +1 -1
- package/dist/pptx/export/print-job.d.ts +134 -0
- package/dist/pptx/export/print-job.d.ts.map +1 -0
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3268 -3116
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/render/controller/history-controller.d.ts +6 -0
- package/dist/pptx/render/controller/history-controller.d.ts.map +1 -1
- package/dist/pptx/render/deck-save-encryption.d.ts +10 -1
- package/dist/pptx/render/deck-save-encryption.d.ts.map +1 -1
- package/dist/pptx/render/deck-style.d.ts +12 -1
- package/dist/pptx/render/deck-style.d.ts.map +1 -1
- package/dist/pptx/render/find-replace-session-actions.d.ts +44 -0
- package/dist/pptx/render/find-replace-session-actions.d.ts.map +1 -0
- package/dist/pptx/render/find-replace-session.d.ts +120 -0
- package/dist/pptx/render/find-replace-session.d.ts.map +1 -0
- package/dist/pptx/render/format-painter.cjs +5 -5
- package/dist/pptx/render/format-painter.mjs +2 -2
- package/dist/pptx/render/google-webfonts.d.ts +32 -1
- package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +7 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inserted-slide-layout.d.ts +28 -0
- package/dist/pptx/render/inserted-slide-layout.d.ts.map +1 -0
- package/dist/pptx/render/inspector/index.d.ts +4 -0
- package/dist/pptx/render/inspector/index.d.ts.map +1 -1
- package/dist/pptx/render/inspector/inspector-color-fields.d.ts +38 -0
- package/dist/pptx/render/inspector/inspector-color-fields.d.ts.map +1 -0
- package/dist/pptx/render/inspector/text-effect-fields.d.ts +29 -0
- package/dist/pptx/render/inspector/text-effect-fields.d.ts.map +1 -0
- package/dist/pptx/render/inspector-helpers.cjs +21 -13
- package/dist/pptx/render/inspector-helpers.d.ts +10 -1
- package/dist/pptx/render/inspector-helpers.d.ts.map +1 -1
- package/dist/pptx/render/inspector-helpers.mjs +1 -1
- package/dist/pptx/render/live-color-input.d.ts +93 -0
- package/dist/pptx/render/live-color-input.d.ts.map +1 -0
- package/dist/pptx/render/live-color-leaves.d.ts +34 -0
- package/dist/pptx/render/live-color-leaves.d.ts.map +1 -0
- package/dist/pptx/render/master-view-crud-history.d.ts +45 -0
- package/dist/pptx/render/master-view-crud-history.d.ts.map +1 -0
- package/dist/pptx/render/master-view-crud.d.ts +11 -0
- package/dist/pptx/render/master-view-crud.d.ts.map +1 -1
- package/dist/pptx/render/theme-by-path.d.ts +61 -0
- package/dist/pptx/render/theme-by-path.d.ts.map +1 -0
- package/dist/pptx/render/theme-history.d.ts +146 -0
- package/dist/pptx/render/theme-history.d.ts.map +1 -0
- package/dist/pptx/render/theme-write-queue.d.ts +21 -0
- package/dist/pptx/render/theme-write-queue.d.ts.map +1 -0
- package/dist/pptx/render/viewer-preferences.d.ts +11 -0
- package/dist/pptx/render/viewer-preferences.d.ts.map +1 -1
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-CTBWMXNX.cjs → smartart-insert-preview-MCDHVWHZ.cjs} +7 -7
- package/dist/pptx/{smartart-insert-preview-QJBRDU4C.mjs → smartart-insert-preview-QQH5ZBSF.mjs} +6 -6
- package/package.json +2 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live preview for a native colour input (`<input type="color">`), decided once for every
|
|
3
|
+
* binding.
|
|
4
|
+
*
|
|
5
|
+
* The picker fires `input` for every shade a drag passes and `change` once the pick settles
|
|
6
|
+
* (and in some browsers no `change` at all when the pick ends where it started, or on Escape).
|
|
7
|
+
* PowerPoint shows each shade on the slide while the user drags and makes the settled pick ONE
|
|
8
|
+
* undo step and ONE Recent Colors entry. A binding that applied every shade through its normal
|
|
9
|
+
* edit path recorded one undo step per shade; one that applied only on `change` showed nothing
|
|
10
|
+
* until the picker closed. This controller is the rule between the two:
|
|
11
|
+
*
|
|
12
|
+
* - `input`: show the shade live, with no undo step, dirty flag or recent colour;
|
|
13
|
+
* - `change`, or `blur` for a drag no `change` ended: put back what the previews changed, then
|
|
14
|
+
* commit the settled colour through the binding's normal edit path, so its one undo step
|
|
15
|
+
* returns to the colour from before the drag, and add it to the recent colours. A pick that
|
|
16
|
+
* settles where the drag started is no edit at all: the previews are put back (theme ref
|
|
17
|
+
* included) and no undo step is recorded. A `change` there is still the user's pick, so its
|
|
18
|
+
* colour goes into the recent colours like any other; a `blur` there is not a pick (an
|
|
19
|
+
* Escape, a drag back to the start), so it records nothing.
|
|
20
|
+
*
|
|
21
|
+
* The previews own only the leaves they wrote (`shapeStyle.fillColor`, its theme ref, ...),
|
|
22
|
+
* each remembered with the value it had before the drag. Putting a drag back and committing
|
|
23
|
+
* its pick are both rebased on the target as it is NOW: only those leaves go back, and the
|
|
24
|
+
* commit is built on the result, so an edit another hand made to the same element during the
|
|
25
|
+
* drag (a collaborator's line width, an assistant's text) survives, and the undo step returns
|
|
26
|
+
* to a state that existed.
|
|
27
|
+
*
|
|
28
|
+
* A drag belongs to one target (`key`, the element). It carries over to the next event only
|
|
29
|
+
* while the control edits that target and the model still shows the drag's work: the value it
|
|
30
|
+
* last read (a binding that has not re-rendered since), or a colour the drag itself put there.
|
|
31
|
+
* When the control has moved to another target, the drag is put back on its own target as it
|
|
32
|
+
* is then (`lookup`; the binding's writes are addressed by key; nothing is written if the
|
|
33
|
+
* target is gone) and the event that ends it is dropped: a pick made in
|
|
34
|
+
* a picker opened for one element never lands on another. When the target is the same but its
|
|
35
|
+
* colour was changed by another hand (a theme swatch, an undo), the drag is dropped as it is,
|
|
36
|
+
* since putting it back would overwrite that newer colour.
|
|
37
|
+
*
|
|
38
|
+
* @module render/live-color-input
|
|
39
|
+
*/
|
|
40
|
+
/** What a colour control edits at the moment of an event. */
|
|
41
|
+
export interface LiveColorSource<T> {
|
|
42
|
+
/** The edited target's identity (the element id). A drag never crosses targets. */
|
|
43
|
+
readonly key: string;
|
|
44
|
+
/** The colour the control shows now. */
|
|
45
|
+
readonly color: string;
|
|
46
|
+
/** The target as the binding holds it now: the element, or the style a field reads. */
|
|
47
|
+
readonly value: T;
|
|
48
|
+
}
|
|
49
|
+
/** What a binding gives {@link createLiveColorInput}; called afresh on every event. */
|
|
50
|
+
export interface LiveColorInputOptions<T, P extends object> {
|
|
51
|
+
/** The control's target now, or `undefined` when nothing can be edited. */
|
|
52
|
+
read(): LiveColorSource<T> | undefined;
|
|
53
|
+
/** The patch that sets `hex` on `value`; `undefined` when `value` cannot take a colour. */
|
|
54
|
+
patch(value: T, hex: string): P | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The target `key` as the model holds it now (the element by id, or the style a field
|
|
57
|
+
* reads on it), or `undefined` when it is gone: what a drag the control has left is put
|
|
58
|
+
* back on. A drag whose target cannot be found is not put back at all.
|
|
59
|
+
*/
|
|
60
|
+
lookup(key: string): T | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Merge `patch` into the target `key` live: no undo step, dirty flag or recent colour. `key`
|
|
63
|
+
* can name a target the control has left, when the drag started there is put back.
|
|
64
|
+
*/
|
|
65
|
+
preview(patch: P, key: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Merge the settled pick into the current target `key` through the normal edit path: ONE
|
|
68
|
+
* undo step and the dirty flag. The drag is already put back and `patch` is built on it.
|
|
69
|
+
*/
|
|
70
|
+
commit(patch: P, key: string, hex: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* Add `hex` to the recent colours: with every commit (just before it), and for a `change`
|
|
73
|
+
* that settles on the colour the drag started from (a pick, though not an edit).
|
|
74
|
+
*/
|
|
75
|
+
remember(hex: string): void;
|
|
76
|
+
}
|
|
77
|
+
/** The native events of one colour input, each with the input's current value. */
|
|
78
|
+
export interface LiveColorInput {
|
|
79
|
+
/** An `input` event: one shade of a drag. */
|
|
80
|
+
input(hex: string): void;
|
|
81
|
+
/** A `change` event: the pick settled. */
|
|
82
|
+
change(hex: string): void;
|
|
83
|
+
/** A `blur` event: settles a drag no `change` ended, at the value the input shows. */
|
|
84
|
+
blur(hex: string): void;
|
|
85
|
+
}
|
|
86
|
+
/** Build the controller for one colour input. */
|
|
87
|
+
export declare function createLiveColorInput<T, P extends object>(options: LiveColorInputOptions<T, P>): LiveColorInput;
|
|
88
|
+
/**
|
|
89
|
+
* Route a native colour input's DOM `input`, `change` or `blur` event to `control`, with the
|
|
90
|
+
* value the input shows. Any other event, or an input without a value, is ignored.
|
|
91
|
+
*/
|
|
92
|
+
export declare function handleLiveColorEvent(control: LiveColorInput, event: Event): void;
|
|
93
|
+
//# sourceMappingURL=live-color-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-color-input.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/live-color-input.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAKH,6DAA6D;AAC7D,MAAM,WAAW,eAAe,CAAC,CAAC;IACjC,mFAAmF;IACnF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,uFAAuF;IACvF,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;CAClB;AAED,uFAAuF;AACvF,MAAM,WAAW,qBAAqB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IACzD,2EAA2E;IAC3E,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACvC,2FAA2F;IAC3F,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAC5C;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD;;;OAGG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,kFAAkF;AAClF,MAAM,WAAW,cAAc;IAC9B,6CAA6C;IAC7C,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0CAA0C;IAC1C,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,sFAAsF;IACtF,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAgBD,iDAAiD;AACjD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EACvD,OAAO,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,GAClC,cAAc,CA8FhB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAahF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The leaves a live colour drag writes, and how they are put back (see `live-color-input.ts`).
|
|
3
|
+
*
|
|
4
|
+
* A colour patch writes whole top-level entries (`{ shapeStyle: { ...style, fillColor } }`),
|
|
5
|
+
* but the drag owns only the leaves inside them that changed. Those are found by a structural
|
|
6
|
+
* diff of plain objects and arrays, each remembered with the value it had before the drag,
|
|
7
|
+
* and put back onto the target as it is at that moment, so everything else in the same entry
|
|
8
|
+
* keeps whatever it holds now. When a preview creates an object the target did not have (a
|
|
9
|
+
* text colour on an element with no `textStyle`), the drag owns the entries it put inside, not
|
|
10
|
+
* the object: putting it back removes those, and the object itself only if nothing else went
|
|
11
|
+
* into it since.
|
|
12
|
+
*
|
|
13
|
+
* @module render/live-color-leaves
|
|
14
|
+
*/
|
|
15
|
+
type LiveColorPath = readonly string[];
|
|
16
|
+
/** One leaf a drag's previews wrote, with what the target held there before the first one. */
|
|
17
|
+
export interface LiveColorLeaf {
|
|
18
|
+
readonly path: LiveColorPath;
|
|
19
|
+
readonly present: boolean;
|
|
20
|
+
readonly value: unknown;
|
|
21
|
+
/** An object the previews created: it goes again once putting the drag back leaves it empty. */
|
|
22
|
+
readonly created?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Note every leaf `patch` writes on `value` that the drag has not written yet. */
|
|
25
|
+
export declare function recordLiveColorLeaves(leaves: Map<string, LiveColorLeaf>, value: unknown, patch: object): void;
|
|
26
|
+
/**
|
|
27
|
+
* The patch that puts every leaf a drag wrote back to what it was before the drag, rebased on
|
|
28
|
+
* `value` (the target now): the top-level entries it names are `value`'s own, with only those
|
|
29
|
+
* leaves changed. An object the drag created goes again if that leaves it empty; a top-level
|
|
30
|
+
* entry the target did not have comes back as `undefined`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function liveColorRevertPatch<P extends object>(value: unknown, leaves: Iterable<LiveColorLeaf>): P;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=live-color-leaves.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-color-leaves.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/live-color-leaves.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,KAAK,aAAa,GAAG,SAAS,MAAM,EAAE,CAAC;AAEvC,8FAA8F;AAC9F,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,gGAAgG;IAChG,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqED,mFAAmF;AACnF,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,EAClC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,GACX,IAAI,CA6BN;AAyBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EACpD,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,GAC7B,CAAC,CAmCH"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* master-view-crud-history.ts: the undo and redo steps a Slide Master view
|
|
3
|
+
* command leaves behind when it removed parts from the package.
|
|
4
|
+
*
|
|
5
|
+
* Delete Layout and Delete Slide Master remove the layout (or the master and
|
|
6
|
+
* all its layouts) from the package, which the undo stack cannot put back.
|
|
7
|
+
* The delete is allowed because no slide uses the layout NOW, but an older
|
|
8
|
+
* undo step (or an undone redo step) can still have a slide on it: restoring
|
|
9
|
+
* that step makes the next save write a slide relationship to a part that is
|
|
10
|
+
* not in the package, and a later Insert Layout that reuses the file name
|
|
11
|
+
* silently gives the slide a different layout. So after a command the binding
|
|
12
|
+
* calls {@link forgetStepsUsingRemovedParts}, which forgets the steps that would
|
|
13
|
+
* bring back what it removed (`EditorHistoryController.forget`).
|
|
14
|
+
*
|
|
15
|
+
* @module render/master-view-crud-history
|
|
16
|
+
*/
|
|
17
|
+
import type { PptxData, PptxSlide, PptxSlideMaster } from 'ooxml-core/pptx';
|
|
18
|
+
/** The part of an undo or redo step that can refer to a slide master or layout. */
|
|
19
|
+
export interface SlideMasterHistoryStep {
|
|
20
|
+
readonly slides: readonly Pick<PptxSlide, 'layoutPath'>[];
|
|
21
|
+
/** The masters, in a binding whose steps restore them too. */
|
|
22
|
+
readonly slideMasters?: readonly PptxSlideMaster[] | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The slide master and layout part paths `before` has and `after` no longer
|
|
26
|
+
* has: the layout Delete Layout removed, or the master Delete Slide Master
|
|
27
|
+
* removed with every one of its layouts. Empty after any other command.
|
|
28
|
+
*/
|
|
29
|
+
export declare function removedSlideMasterParts(before: Pick<PptxData, 'slideMasters'>, after: Pick<PptxData, 'slideMasters'>): string[];
|
|
30
|
+
/**
|
|
31
|
+
* True when restoring `step` would bring back a part in `removed`: one of its
|
|
32
|
+
* slides is on a removed layout, or (in a step that restores the masters) its
|
|
33
|
+
* masters still hold a removed master or layout, which would offer it in the
|
|
34
|
+
* sidebar and the layout galleries again.
|
|
35
|
+
*/
|
|
36
|
+
export declare function historyStepUsesParts(step: SlideMasterHistoryStep, removed: ReadonlySet<string>): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* After a Slide Master view command took the deck from `before` to `after`,
|
|
39
|
+
* forget every undo and redo step that would bring back a part it removed
|
|
40
|
+
* (nothing, unless it was a delete). In a binding whose steps restore the
|
|
41
|
+
* masters too, every step taken before a delete still holds what it removed,
|
|
42
|
+
* so a delete leaves no undo step there.
|
|
43
|
+
*/
|
|
44
|
+
export declare function forgetStepsUsingRemovedParts(forget: (reaches: (step: SlideMasterHistoryStep) => boolean) => void, before: Pick<PptxData, 'slideMasters'>, after: Pick<PptxData, 'slideMasters'>): void;
|
|
45
|
+
//# sourceMappingURL=master-view-crud-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"master-view-crud-history.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/master-view-crud-history.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE5E,mFAAmF;AACnF,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,CAAC;IAC1D,8DAA8D;IAC9D,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,CAAC;CAC/D;AASD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,EACtC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,GACnC,MAAM,EAAE,CAGV;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAC1B,OAAO,CAKT;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,KAAK,IAAI,EACpE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,EACtC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,GACnC,IAAI,CAKN"}
|
|
@@ -65,6 +65,17 @@ export type MasterViewCrudApplyResult = MasterViewCrudApplySuccess | MasterLayou
|
|
|
65
65
|
* `options.name` is required for `renameLayout` / `renameMaster`;
|
|
66
66
|
* `options.layoutDefinition` is optional for `addLayout` (a default
|
|
67
67
|
* title-only layout is generated when omitted, see `insertLayout` in core).
|
|
68
|
+
*
|
|
69
|
+
* The command saves `data.slides` and reloads the edited package through a
|
|
70
|
+
* FRESH handler, so a binding hands it the slides as they are now (not the
|
|
71
|
+
* deck as it was loaded) and adopts only `result.handler` and the masters
|
|
72
|
+
* from `result.data`. It keeps its own slides: the reloaded ones carry no
|
|
73
|
+
* loaded pictures, and nothing the command changes lives on them. And it
|
|
74
|
+
* keeps the previous handler undisposed, since the slides on screen and the
|
|
75
|
+
* undo stack still show that handler's pictures (disposing it revokes their
|
|
76
|
+
* Blob URLs). Then the binding forgets the undo and redo steps that would
|
|
77
|
+
* bring back a part the command removed (`forgetStepsUsingRemovedParts` in
|
|
78
|
+
* `./master-view-crud-history`).
|
|
68
79
|
*/
|
|
69
80
|
export declare function applyMasterViewCrudAction(handler: PptxHandler, data: PptxData, action: MasterViewCrudActionId, target: MasterViewTarget, options?: MasterViewCrudActionOptions): Promise<MasterViewCrudApplyResult>;
|
|
70
81
|
//# sourceMappingURL=master-view-crud.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-view-crud.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/master-view-crud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EACX,gBAAgB,EAChB,uBAAuB,EACvB,QAAQ,EACR,WAAW,EAEX,MAAM,iBAAiB,CAAC;AAYzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,6CAA6C;AAC7C,MAAM,MAAM,sBAAsB,GAC/B,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,cAAc,CAAC;AAElB,6DAA6D;AAC7D,MAAM,WAAW,oBAAoB;IACpC,EAAE,EAAE,sBAAsB,CAAC;IAC3B,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,EAAE,EAAE,sBAAsB,EAC1B,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GACvC,MAAM,CASR;AAaD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GACzC,oBAAoB,EAAE,CAmDxB;AAED,uGAAuG;AACvG,MAAM,WAAW,2BAA2B;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAED,2EAA2E;AAC3E,MAAM,WAAW,0BAA0B;IAC1C,EAAE,EAAE,IAAI,CAAC;IACT,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;CACzB;AACD,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,GAAG,uBAAuB,CAAC;AA2B7F
|
|
1
|
+
{"version":3,"file":"master-view-crud.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/master-view-crud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EACX,gBAAgB,EAChB,uBAAuB,EACvB,QAAQ,EACR,WAAW,EAEX,MAAM,iBAAiB,CAAC;AAYzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,6CAA6C;AAC7C,MAAM,MAAM,sBAAsB,GAC/B,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,cAAc,CAAC;AAElB,6DAA6D;AAC7D,MAAM,WAAW,oBAAoB;IACpC,EAAE,EAAE,sBAAsB,CAAC;IAC3B,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,EAAE,EAAE,sBAAsB,EAC1B,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GACvC,MAAM,CASR;AAaD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GACzC,oBAAoB,EAAE,CAmDxB;AAED,uGAAuG;AACvG,MAAM,WAAW,2BAA2B;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAED,2EAA2E;AAC3E,MAAM,WAAW,0BAA0B;IAC1C,EAAE,EAAE,IAAI,CAAC;IACT,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;CACzB;AACD,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,GAAG,uBAAuB,CAAC;AA2B7F;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,yBAAyB,CAC9C,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,sBAAsB,EAC9B,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,yBAAyB,CAAC,CAsGpC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { PptxElement, PptxSlide } from 'ooxml-core/pptx';
|
|
2
|
+
import type { DeckStyleHandler } from './deck-style.js';
|
|
3
|
+
import type { ThemePartWriter } from './theme-history.js';
|
|
4
|
+
/** The handler operations the switch needs (the `PptxHandler` has them all). */
|
|
5
|
+
export type ThemeByPathHandler = Pick<ThemePartWriter, 'getThemePartSchemes' | 'setSlideMasterTheme'> & Pick<DeckStyleHandler, 'reResolveThemeStyleReferences'>;
|
|
6
|
+
/** A slide master as a binding keeps it (`PptxSlideMaster` fits). */
|
|
7
|
+
export interface ThemeByPathMaster {
|
|
8
|
+
readonly path: string;
|
|
9
|
+
readonly themePath?: string | undefined;
|
|
10
|
+
readonly layoutPaths?: readonly string[] | undefined;
|
|
11
|
+
readonly layouts?: readonly {
|
|
12
|
+
readonly path: string;
|
|
13
|
+
}[] | undefined;
|
|
14
|
+
}
|
|
15
|
+
/** Any theme-shaped value: a binding's `PptxTheme`, or the looser record some bindings keep. */
|
|
16
|
+
interface ThemeLike {
|
|
17
|
+
colorScheme?: unknown;
|
|
18
|
+
fontScheme?: unknown;
|
|
19
|
+
formatScheme?: unknown;
|
|
20
|
+
name?: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface ThemeByPathInput<M extends ThemeByPathMaster, T extends ThemeLike> {
|
|
23
|
+
/** The theme part to switch to (`PptxThemeOption.path`). */
|
|
24
|
+
readonly themePath: string;
|
|
25
|
+
/** Every master, or only the first one (the inspector's two buttons). */
|
|
26
|
+
readonly applyToAllMasters: boolean;
|
|
27
|
+
readonly slides: readonly PptxSlide[];
|
|
28
|
+
/** The binding's masters, in deck order: the first one's part is the deck's theme. */
|
|
29
|
+
readonly slideMasters: readonly M[];
|
|
30
|
+
/** The binding's deck theme (the first master's). */
|
|
31
|
+
readonly theme: T | null | undefined;
|
|
32
|
+
/** The master/layout element layer, for bindings that keep it apart from the slides. */
|
|
33
|
+
readonly templateElementsBySlideId?: Readonly<Record<string, PptxElement[]>> | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** What a binding commits, as one undo step. */
|
|
36
|
+
export interface ThemeByPathChange<M extends ThemeByPathMaster, T extends ThemeLike> {
|
|
37
|
+
/** Every slide; those on a master that kept its part are the same objects. */
|
|
38
|
+
readonly slides: PptxSlide[];
|
|
39
|
+
/** The template layer re-resolved the same way (empty when the input had none). */
|
|
40
|
+
readonly templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
41
|
+
/** The masters, re-targeted ones on the new part. */
|
|
42
|
+
readonly slideMasters: M[];
|
|
43
|
+
/**
|
|
44
|
+
* When the first master was re-targeted, the deck theme carrying the new part's colour, font and
|
|
45
|
+
* format schemes and name, and the colour map built from it. Absent when the deck theme is
|
|
46
|
+
* unchanged.
|
|
47
|
+
*/
|
|
48
|
+
readonly deckTheme?: {
|
|
49
|
+
readonly theme: T;
|
|
50
|
+
readonly themeColorMap: Record<string, string>;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Point the masters at `themePath` in `handler` and return what the binding commits, or
|
|
55
|
+
* `undefined` when there is nothing to do (no handler, no such part, or every target master is on
|
|
56
|
+
* it already). Runs on the handler's theme write queue: it waits for the theme writes queued
|
|
57
|
+
* before it, and a save waits for it.
|
|
58
|
+
*/
|
|
59
|
+
export declare function applyThemeByPath<M extends ThemeByPathMaster, T extends ThemeLike>(handler: ThemeByPathHandler | null | undefined, input: ThemeByPathInput<M, T>): Promise<ThemeByPathChange<M, T> | undefined>;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=theme-by-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-by-path.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/theme-by-path.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGzE,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACpC,eAAe,EACf,qBAAqB,GAAG,qBAAqB,CAC7C,GACA,IAAI,CAAC,gBAAgB,EAAE,+BAA+B,CAAC,CAAC;AAEzD,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,GAAG,SAAS,CAAC;CACpE;AAED,gGAAgG;AAChG,UAAU,SAAS;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,EAAE,CAAC,SAAS,SAAS;IACjF,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,MAAM,C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|
1
|
+
/**
|
|
2
|
+
* A theme change as an undo step, for every binding.
|
|
3
|
+
*
|
|
4
|
+
* A Design gallery pick, the theme editor and a colour or font scheme edit change the deck's theme
|
|
5
|
+
* as well as its slides. Undo must take both back: the slides come back with the history snapshot,
|
|
6
|
+
* but the theme lives in the binding's theme state and, for a save, in the handler's theme parts.
|
|
7
|
+
* So each binding records {@link historyTheme} with every snapshot, and an undo or redo that
|
|
8
|
+
* {@link crossedHistoryTheme crosses} a theme change puts the binding's theme back and writes only
|
|
9
|
+
* the parts that differ into the handler ({@link restoreCrossedTheme}).
|
|
10
|
+
*
|
|
11
|
+
* The record carries the deck's format scheme too, which a Design > Effects pick changes on its own:
|
|
12
|
+
* a restore across one writes the recorded scheme back as the part held it (the handler's
|
|
13
|
+
* `restoreThemeFormatScheme`).
|
|
14
|
+
*
|
|
15
|
+
* A theme applied by path (`render/theme-by-path`) points slide masters at another theme part, so the
|
|
16
|
+
* record also holds each master's theme part ({@link historyTheme} with the masters), and a restore
|
|
17
|
+
* that crosses such a switch points the masters back before it writes anything: Undo returns to
|
|
18
|
+
* the old part instead of writing the old schemes into the new one. The record describes the deck's
|
|
19
|
+
* part only, so what such a restore still writes goes into that part alone.
|
|
20
|
+
*
|
|
21
|
+
* Each theme part write reads, edits and writes the part back, so the writes on one handler run one
|
|
22
|
+
* after another ({@link queueThemeWrite}), and every save waits for the ones queued before it
|
|
23
|
+
* ({@link settleThemeWrites}, which `saveDeckWithPassword` calls).
|
|
24
|
+
*
|
|
25
|
+
* @module render/theme-history
|
|
26
|
+
*/
|
|
27
|
+
import type { PptxThemeColorScheme, PptxThemeFontScheme, PptxThemeFormatScheme, PptxThemeOption } from 'ooxml-core/pptx';
|
|
28
|
+
export { queueThemeWrite, settleThemeWrites } from './theme-write-queue.js';
|
|
29
|
+
/**
|
|
30
|
+
* The part of a theme an undo step records: the colour scheme, the font scheme and the name, which
|
|
31
|
+
* are what the Design galleries, the theme editor and the assistant change, and the format scheme
|
|
32
|
+
* (Design > Effects).
|
|
33
|
+
*/
|
|
34
|
+
export interface HistoryTheme {
|
|
35
|
+
colorScheme?: PptxThemeColorScheme;
|
|
36
|
+
fontScheme?: PptxThemeFontScheme;
|
|
37
|
+
/**
|
|
38
|
+
* The deck's format scheme. Two records hold the same one when it is the same element, however
|
|
39
|
+
* the colours of its placeholder styles resolved when each was read (`formatSchemeKey`).
|
|
40
|
+
*/
|
|
41
|
+
formatScheme?: PptxThemeFormatScheme;
|
|
42
|
+
name?: string;
|
|
43
|
+
/** Each slide master's theme part, by master path, in master order (the first is the deck's). */
|
|
44
|
+
masterThemePaths?: Readonly<Record<string, string>>;
|
|
45
|
+
}
|
|
46
|
+
/** A slide master as a binding keeps it: its path and the theme part it uses. */
|
|
47
|
+
export interface HistoryMaster {
|
|
48
|
+
readonly path: string;
|
|
49
|
+
readonly themePath?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
/** Any theme-shaped value: a binding's `PptxTheme`, or the looser record some bindings keep. */
|
|
52
|
+
interface ThemeLike {
|
|
53
|
+
colorScheme?: unknown;
|
|
54
|
+
fontScheme?: unknown;
|
|
55
|
+
formatScheme?: unknown;
|
|
56
|
+
name?: unknown;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The part of `theme` an undo step records, as a copy, and with `slideMasters` the theme part each
|
|
60
|
+
* master uses. Built in a fixed key order, so two records of the same theme serialise to the same
|
|
61
|
+
* JSON.
|
|
62
|
+
*/
|
|
63
|
+
export declare function historyTheme(theme: ThemeLike, slideMasters?: readonly HistoryMaster[] | undefined): HistoryTheme;
|
|
64
|
+
export declare function historyTheme(theme: ThemeLike | null | undefined, slideMasters?: readonly HistoryMaster[] | undefined): HistoryTheme | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The theme an undo or redo from `current` to `target` has to put back, or `undefined` when the
|
|
67
|
+
* step crosses no theme change (or `target` recorded none).
|
|
68
|
+
*/
|
|
69
|
+
export declare function crossedHistoryTheme(current: HistoryTheme | undefined, target: HistoryTheme | undefined): HistoryTheme | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* `theme` carrying exactly the recorded parts of `target`: a part `target` does not have is
|
|
72
|
+
* removed, so the restored theme records the same as the snapshot it came from, and the format
|
|
73
|
+
* scheme when `target` records another one. Everything else on the theme is kept.
|
|
74
|
+
*/
|
|
75
|
+
export declare function withHistoryTheme<T extends ThemeLike>(theme: T | null | undefined, target: HistoryTheme): T;
|
|
76
|
+
/**
|
|
77
|
+
* `slideMasters` with each master the record names back on its recorded theme part: the same array
|
|
78
|
+
* when none differs (a step that crosses no theme by path switch).
|
|
79
|
+
*/
|
|
80
|
+
export declare function withHistoryMasterThemes<M extends HistoryMaster>(slideMasters: readonly M[], target: HistoryTheme | undefined): readonly M[];
|
|
81
|
+
/** One theme part's schemes and name, as the handler reads them (`getThemePartSchemes`). */
|
|
82
|
+
export interface ThemePartSchemes {
|
|
83
|
+
readonly path: string;
|
|
84
|
+
readonly name?: string | undefined;
|
|
85
|
+
readonly colorScheme: PptxThemeColorScheme;
|
|
86
|
+
readonly fontScheme: PptxThemeFontScheme;
|
|
87
|
+
readonly formatScheme?: PptxThemeFormatScheme | undefined;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The handler operations that write the recorded parts (the `PptxHandler` has them all). A scheme
|
|
91
|
+
* edit writes every part a slide master uses, or only `themePaths`.
|
|
92
|
+
*/
|
|
93
|
+
export interface ThemePartWriter {
|
|
94
|
+
updateThemeColorScheme(colorScheme: PptxThemeColorScheme, themePaths?: readonly string[]): Promise<void>;
|
|
95
|
+
updateThemeFontScheme(fontScheme: PptxThemeFontScheme, themePaths?: readonly string[]): Promise<void>;
|
|
96
|
+
updateThemeName(name: string, themePaths?: readonly string[]): Promise<void>;
|
|
97
|
+
/** Put back a format scheme a theme part held before (undo and redo of an Effects pick). */
|
|
98
|
+
restoreThemeFormatScheme(formatScheme: PptxThemeFormatScheme, themePaths?: readonly string[]): Promise<unknown>;
|
|
99
|
+
/** Point one slide master at a theme part (undo and redo of a theme by path switch). */
|
|
100
|
+
setSlideMasterTheme(masterPath: string, themePath: string): Promise<void>;
|
|
101
|
+
/** One theme part's schemes and name as the part holds them now. */
|
|
102
|
+
getThemePartSchemes(themePath: string): Promise<ThemePartSchemes | undefined>;
|
|
103
|
+
}
|
|
104
|
+
/** One theme part write. */
|
|
105
|
+
export type ThemePartWrite = {
|
|
106
|
+
readonly part: 'colorScheme';
|
|
107
|
+
readonly colorScheme: PptxThemeColorScheme;
|
|
108
|
+
} | {
|
|
109
|
+
readonly part: 'fontScheme';
|
|
110
|
+
readonly fontScheme: PptxThemeFontScheme;
|
|
111
|
+
} | {
|
|
112
|
+
readonly part: 'formatScheme';
|
|
113
|
+
readonly formatScheme: PptxThemeFormatScheme;
|
|
114
|
+
} | {
|
|
115
|
+
readonly part: 'name';
|
|
116
|
+
readonly name: string;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* The writes that take the handler's theme parts from `from` to `to`: only the parts that differ,
|
|
120
|
+
* so undoing a fonts pick leaves the colour scheme part (and its `sysClr` slots) as it is. The
|
|
121
|
+
* parsed theme carries no name, so `loadedName` (see {@link loadedThemeName}) stands in for a
|
|
122
|
+
* theme without one: going back to the loaded theme puts its name back.
|
|
123
|
+
*/
|
|
124
|
+
export declare function themePartWrites(from: HistoryTheme | undefined, to: HistoryTheme, loadedName?: string): ThemePartWrite[];
|
|
125
|
+
/**
|
|
126
|
+
* The name the deck's primary theme part (the first master's) was loaded with; the parsed theme
|
|
127
|
+
* carries none.
|
|
128
|
+
*/
|
|
129
|
+
export declare function loadedThemeName(themeOptions: readonly Pick<PptxThemeOption, 'path' | 'name'>[] | undefined, slideMasters: readonly {
|
|
130
|
+
readonly themePath?: unknown;
|
|
131
|
+
}[] | undefined): string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Write {@link themePartWrites} into `handler`, after every write queued on it before. When `to`
|
|
134
|
+
* has masters on other theme parts (a step across a theme by path switch) they are pointed back
|
|
135
|
+
* first, and only what then still differs from the deck's part (the first master's) is written,
|
|
136
|
+
* into that part alone: Undo returns to the old part rather than writing the old schemes into the
|
|
137
|
+
* new one, and leaves the parts of the other masters, which the record does not describe, alone.
|
|
138
|
+
*/
|
|
139
|
+
export declare function writeThemeParts(handler: ThemePartWriter | null | undefined, from: HistoryTheme | undefined, to: HistoryTheme, loadedName?: string): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* An undo or redo moved from `current` to `target`: when it crosses a theme change, queue the
|
|
142
|
+
* writes of the parts that differ on `handler` and return `theme` carrying `target`'s recorded
|
|
143
|
+
* parts, for the binding to put back. `undefined` when the step crosses no theme change.
|
|
144
|
+
*/
|
|
145
|
+
export declare function restoreCrossedTheme<T extends ThemeLike>(theme: T | null | undefined, current: HistoryTheme | undefined, target: HistoryTheme | undefined, handler: ThemePartWriter | null | undefined, loadedName?: string): T | undefined;
|
|
146
|
+
//# sourceMappingURL=theme-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-history.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/theme-history.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEzE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC5B,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD;AAED,iFA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B,CAAA;CAAE,GAC/E;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,EAAE,EAAE,YAAY,EAChB,UAAU,CAAC,EAAE,MAAM,GACjB,cAAc,EAAE,CAgBlB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,YAAY,EAAE,SAAS,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,EAC3E,YAAY,EAAE,SAAS;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,GAAG,SAAS,GACnE,MAAM,GAAG,SAAS,CAIpB;AA8CD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,EAC3C,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,EAAE,EAAE,YAAY,EAChB,UAAU,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAYf;AAmBD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EACtD,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC3B,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,OAAO,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,EAC3C,UAAU,CAAC,EAAE,MAAM,GACjB,CAAC,GAAG,SAAS,CAOf"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One write queue per handler for its theme parts (`render/theme-history`).
|
|
3
|
+
*
|
|
4
|
+
* Each theme part write reads, edits and writes the part back, so the writes on one handler run one
|
|
5
|
+
* after another ({@link queueThemeWrite}), and every save waits for the ones queued before it
|
|
6
|
+
* ({@link settleThemeWrites}, which `saveDeckWithPassword` calls).
|
|
7
|
+
*
|
|
8
|
+
* @module render/theme-write-queue
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Run `write` on `handler`'s theme parts after every write queued on it before. An undo landing
|
|
12
|
+
* while a pick is still writing (or two undos in a row) waits for it instead of interleaving.
|
|
13
|
+
* With nothing queued the write starts at once, exactly as an unqueued one would.
|
|
14
|
+
*/
|
|
15
|
+
export declare function queueThemeWrite<T>(handler: object, write: () => Promise<T>): Promise<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Resolves once every theme part write queued on `handler` so far has landed (or failed). A save
|
|
18
|
+
* waits for this, or it writes a theme an undo or a pick is still replacing.
|
|
19
|
+
*/
|
|
20
|
+
export declare function settleThemeWrites(handler: object | null | undefined): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=theme-write-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-write-queue.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/theme-write-queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAaH;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAcvF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnF"}
|
|
@@ -32,11 +32,22 @@ export interface DeckViewPreferences extends ViewerPreferences {
|
|
|
32
32
|
}
|
|
33
33
|
export declare const DEFAULT_VIEWER_PREFERENCES: ViewerPreferences;
|
|
34
34
|
export declare const DEFAULT_VIEWER_SETTINGS: ViewerPreferences;
|
|
35
|
+
/** The heading a shortcut is listed under in the keyboard shortcut help. */
|
|
36
|
+
export type ShortcutReferenceGroup = 'history' | 'clipboard' | 'editing' | 'navigation' | 'general';
|
|
35
37
|
export interface ShortcutReferenceItem {
|
|
36
38
|
actionKey: string;
|
|
37
39
|
shortcut: string;
|
|
40
|
+
group: ShortcutReferenceGroup;
|
|
38
41
|
}
|
|
39
42
|
export declare const VIEWER_SHORTCUT_REFERENCE: readonly ShortcutReferenceItem[];
|
|
43
|
+
/** One heading of the shortcut help and the shortcuts under it. */
|
|
44
|
+
export interface ShortcutReferenceBucket {
|
|
45
|
+
group: ShortcutReferenceGroup;
|
|
46
|
+
labelKey: string;
|
|
47
|
+
shortcuts: ShortcutReferenceItem[];
|
|
48
|
+
}
|
|
49
|
+
/** `items` under their headings, in heading order; a heading with no shortcut is left out. */
|
|
50
|
+
export declare function groupShortcutReference(items?: readonly ShortcutReferenceItem[]): ShortcutReferenceBucket[];
|
|
40
51
|
export declare const SHORTCUT_REFERENCE_ITEMS: readonly ShortcutReferenceItem[];
|
|
41
52
|
export interface ViewerPreferenceToggle {
|
|
42
53
|
key: keyof ViewerPreferences;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-preferences.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/viewer-preferences.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC7D,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uEAAuE;IACvE,aAAa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H,wBAAgB,mCAAmC,CAClD,IAAI,EAAE,oBAAoB,EAC1B,QAAQ,EAAE,mBAAmB,GAC3B,mBAAmB,CAWrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,mBAAmB,GAAG;IACrF,WAAW,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;IAClF,WAAW,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC,CAkBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-props-manifest.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/viewer-props-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,eAAe,YAAI,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AACzF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IAClC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAClE,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACnE;AAoBD,mFAAmF;AACnF,eAAO,MAAM,YAAY,EAAE,SAAS,kBAAkB,
|
|
1
|
+
{"version":3,"file":"viewer-props-manifest.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/viewer-props-manifest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8F;AAC9F,wBAAgB,iBAAiB,CAChC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC,GAC1D,kBAAkB,EAAE,CAKtB"}
|
package/dist/pptx/{smartart-insert-preview-CTBWMXNX.cjs → smartart-insert-preview-MCDHVWHZ.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkTMCN2OVN_cjs = require('./chunk-TMCN2OVN.cjs');
|
|
4
|
+
require('./chunk-VMDMICQC.cjs');
|
|
5
5
|
require('./chunk-WSTWYZFM.cjs');
|
|
6
6
|
require('./chunk-2JEQHIAL.cjs');
|
|
7
7
|
require('./chunk-IOR4KOGN.cjs');
|
|
@@ -12,10 +12,10 @@ require('./chunk-H5IPNKX6.cjs');
|
|
|
12
12
|
require('./chunk-XOAXPD2W.cjs');
|
|
13
13
|
require('./chunk-P27CIE4O.cjs');
|
|
14
14
|
require('./chunk-BSGCZ4JZ.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-37VJFRCP.cjs');
|
|
16
16
|
require('./chunk-IOOI63TH.cjs');
|
|
17
17
|
require('./chunk-ZJFN5POF.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-CWWL7MCL.cjs');
|
|
19
19
|
require('./chunk-WB25PCHQ.cjs');
|
|
20
20
|
require('./chunk-W3X2UVYQ.cjs');
|
|
21
21
|
require('./chunk-6KLPQQYP.cjs');
|
|
@@ -26,7 +26,7 @@ require('./chunk-QWF3PGUX.cjs');
|
|
|
26
26
|
require('./chunk-FM4C4MBJ.cjs');
|
|
27
27
|
require('./chunk-G4WRLFMJ.cjs');
|
|
28
28
|
require('./chunk-73IDQGYI.cjs');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-YMITEJST.cjs');
|
|
30
30
|
require('./chunk-FGKPZFLL.cjs');
|
|
31
31
|
require('./chunk-UPN5FFKP.cjs');
|
|
32
32
|
require('./chunk-FQUX6AUU.cjs');
|
|
@@ -34,7 +34,7 @@ require('./chunk-OJFD3SHS.cjs');
|
|
|
34
34
|
require('./chunk-USBRSEJK.cjs');
|
|
35
35
|
require('./chunk-3ESFHUZI.cjs');
|
|
36
36
|
require('./chunk-U47LRWDT.cjs');
|
|
37
|
-
require('./chunk-
|
|
37
|
+
require('./chunk-GWKTHP6U.cjs');
|
|
38
38
|
require('./chunk-Y6DO6SVT.cjs');
|
|
39
39
|
require('./chunk-PBZWDEXQ.cjs');
|
|
40
40
|
require('./chunk-HJ3JZXOL.cjs');
|
|
@@ -44,5 +44,5 @@ require('./chunk-EW5DW5KR.cjs');
|
|
|
44
44
|
|
|
45
45
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkTMCN2OVN_cjs.buildSmartArtInsertPreview; }
|
|
48
48
|
});
|
package/dist/pptx/{smartart-insert-preview-QJBRDU4C.mjs → smartart-insert-preview-QQH5ZBSF.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildSmartArtInsertPreview } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { buildSmartArtInsertPreview } from './chunk-OD6REJDV.mjs';
|
|
2
|
+
import './chunk-XZX7EHX4.mjs';
|
|
3
3
|
import './chunk-A63ASSCH.mjs';
|
|
4
4
|
import './chunk-DMWNOP4E.mjs';
|
|
5
5
|
import './chunk-WSR2S2MY.mjs';
|
|
@@ -10,10 +10,10 @@ import './chunk-WQA3KZRB.mjs';
|
|
|
10
10
|
import './chunk-RQJOOXRG.mjs';
|
|
11
11
|
import './chunk-PI47Z46K.mjs';
|
|
12
12
|
import './chunk-QX6XPYVA.mjs';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-67L75M6K.mjs';
|
|
14
14
|
import './chunk-KY75GY5O.mjs';
|
|
15
15
|
import './chunk-L55MIOBC.mjs';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-FUKVYJPM.mjs';
|
|
17
17
|
import './chunk-SMSCEGAE.mjs';
|
|
18
18
|
import './chunk-7BHPBO2O.mjs';
|
|
19
19
|
import './chunk-34LEUH5R.mjs';
|
|
@@ -24,7 +24,7 @@ import './chunk-MNSWEXYO.mjs';
|
|
|
24
24
|
import './chunk-AMW2AR7J.mjs';
|
|
25
25
|
import './chunk-2V5ATMMB.mjs';
|
|
26
26
|
import './chunk-A62C6PSL.mjs';
|
|
27
|
-
import './chunk-
|
|
27
|
+
import './chunk-3LOVEO7U.mjs';
|
|
28
28
|
import './chunk-IXFG46KB.mjs';
|
|
29
29
|
import './chunk-IEAO7N4E.mjs';
|
|
30
30
|
import './chunk-XAOEDYA5.mjs';
|
|
@@ -32,7 +32,7 @@ import './chunk-PMURSMHH.mjs';
|
|
|
32
32
|
import './chunk-T7FRLIDM.mjs';
|
|
33
33
|
import './chunk-MK2ASJSY.mjs';
|
|
34
34
|
import './chunk-AEQGGKRZ.mjs';
|
|
35
|
-
import './chunk-
|
|
35
|
+
import './chunk-MJACF7Y2.mjs';
|
|
36
36
|
import './chunk-WM5SW737.mjs';
|
|
37
37
|
import './chunk-PEDGPFLR.mjs';
|
|
38
38
|
import './chunk-7JBQPQ6G.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.1",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"dompurify": "^3.4.17",
|
|
172
172
|
"emf-converter": "4.21.0",
|
|
173
173
|
"lit": "^3.3.3",
|
|
174
|
-
"ooxml-core": "^1.
|
|
174
|
+
"ooxml-core": "^1.26.1",
|
|
175
175
|
"opentype.js": "^2.0.0",
|
|
176
176
|
"prosemirror-collab": "^1.3.1",
|
|
177
177
|
"prosemirror-commands": "^1.7.2",
|