pptx-vue-viewer 1.10.2 → 1.12.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 +16 -0
- package/README.md +12 -0
- package/dist/composables-unstable.cjs +82 -0
- package/dist/composables-unstable.cjs.br +0 -0
- package/dist/composables-unstable.cjs.gz +0 -0
- package/dist/composables-unstable.d.ts +75 -0
- package/dist/composables-unstable.d.ts.map +1 -0
- package/dist/composables-unstable.js +84 -0
- package/dist/composables-unstable.js.br +0 -0
- package/dist/composables-unstable.js.gz +0 -0
- package/dist/{dist-CDmrVc_c.js → dist-DHThHFT-.js} +455 -425
- package/dist/dist-DHThHFT-.js.br +0 -0
- package/dist/dist-DHThHFT-.js.gz +0 -0
- package/dist/{dist-6WB1hN9v.cjs → dist-Drgw1m93.cjs} +464 -434
- package/dist/dist-Drgw1m93.cjs.br +0 -0
- package/dist/dist-Drgw1m93.cjs.gz +0 -0
- package/dist/gif-encoder-Cu8eLwON.cjs +2 -0
- package/dist/gif-encoder-Cu8eLwON.cjs.br +0 -0
- package/dist/gif-encoder-Cu8eLwON.cjs.gz +0 -0
- package/dist/gif-encoder-DzMmeyLb.js +2 -0
- package/dist/gif-encoder-DzMmeyLb.js.br +0 -0
- package/dist/gif-encoder-DzMmeyLb.js.gz +0 -0
- package/dist/i18n-BME8-tFP.js +2359 -0
- package/dist/i18n-BME8-tFP.js.br +0 -0
- package/dist/i18n-BME8-tFP.js.gz +0 -0
- package/dist/i18n-BoqYDiKY.cjs +2369 -0
- package/dist/i18n-BoqYDiKY.cjs.br +0 -0
- package/dist/i18n-BoqYDiKY.cjs.gz +0 -0
- package/dist/i18n.cjs +7 -2012
- package/dist/i18n.cjs.br +0 -0
- package/dist/i18n.cjs.gz +0 -0
- package/dist/i18n.js +5 -2011
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/presets.d.ts +7 -0
- package/dist/theme/presets.d.ts.map +1 -0
- package/dist/useViewerSettingsDialog-CIlyWAV2.cjs +20123 -0
- package/dist/useViewerSettingsDialog-CIlyWAV2.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-CIlyWAV2.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-CjJTDhVm.js +18558 -0
- package/dist/useViewerSettingsDialog-CjJTDhVm.js.br +0 -0
- package/dist/useViewerSettingsDialog-CjJTDhVm.js.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/ChartRenderer.vue.d.ts +2 -0
- package/dist/viewer/components/ChartRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts.map +1 -1
- package/dist/viewer/components/ElementRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/SmartArtRenderer.vue.d.ts +7 -0
- package/dist/viewer/components/SmartArtRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/ZoomRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/chart/ChartChrome.vue.d.ts.map +1 -1
- package/dist/viewer/components/chart/ChartEditOverlays.vue.d.ts +25 -0
- package/dist/viewer/components/chart/ChartEditOverlays.vue.d.ts.map +1 -0
- package/dist/viewer/components/chart/ChartViewModelSvg.vue.d.ts.map +1 -1
- package/dist/viewer/components/chart/RegionMapChart.vue.d.ts.map +1 -1
- package/dist/viewer/components/chart/chart-render-kind.d.ts +12 -0
- package/dist/viewer/components/chart/chart-render-kind.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts +8 -0
- package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ChartPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/DrawingGroup.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/EditingSection.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/InsertSection.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/ParagraphDropdowns.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/RibbonToolbar.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/SlidesGroup.vue.d.ts.map +1 -1
- package/dist/viewer/composables/chart-canvas-interaction-support.d.ts +33 -0
- package/dist/viewer/composables/chart-canvas-interaction-support.d.ts.map +1 -0
- package/dist/viewer/composables/chart-canvas-interaction.d.ts +60 -0
- package/dist/viewer/composables/chart-canvas-interaction.d.ts.map +1 -0
- package/dist/viewer/composables/chart-part-selection.d.ts +67 -0
- package/dist/viewer/composables/chart-part-selection.d.ts.map +1 -0
- package/dist/viewer/composables/useChartEditing.d.ts.map +1 -1
- package/dist/viewer/composables/useContextMenu.d.ts.map +1 -1
- package/dist/viewer/composables/useCustomShowsWiring.d.ts.map +1 -1
- package/dist/viewer/composables/useExportProgress.d.ts.map +1 -1
- package/dist/viewer/composables/useImageEditing.d.ts +13 -1
- package/dist/viewer/composables/useImageEditing.d.ts.map +1 -1
- package/dist/viewer/composables/useSafeTranslate.d.ts +3 -0
- package/dist/viewer/composables/useSafeTranslate.d.ts.map +1 -0
- package/dist/viewer/index.cjs +2 -2
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +3 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer-2NsuMdql.js +21904 -0
- package/dist/viewer-2NsuMdql.js.br +0 -0
- package/dist/viewer-2NsuMdql.js.gz +0 -0
- package/dist/viewer-DoVONG8h.cjs +22042 -0
- package/dist/viewer-DoVONG8h.cjs.br +0 -0
- package/dist/viewer-DoVONG8h.cjs.gz +0 -0
- package/package.json +6 -1
- package/dist/dist-6WB1hN9v.cjs.br +0 -0
- package/dist/dist-6WB1hN9v.cjs.gz +0 -0
- package/dist/dist-CDmrVc_c.js.br +0 -0
- package/dist/dist-CDmrVc_c.js.gz +0 -0
- package/dist/gif-encoder-C4U6ufxC.js +0 -2
- package/dist/gif-encoder-C4U6ufxC.js.br +0 -0
- package/dist/gif-encoder-C4U6ufxC.js.gz +0 -0
- package/dist/gif-encoder-d30TQHu6.cjs +0 -2
- package/dist/gif-encoder-d30TQHu6.cjs.br +0 -0
- package/dist/gif-encoder-d30TQHu6.cjs.gz +0 -0
- package/dist/viewer-BasLD8KI.js +0 -39895
- package/dist/viewer-BasLD8KI.js.br +0 -0
- package/dist/viewer-BasLD8KI.js.gz +0 -0
- package/dist/viewer-Us00t7Dl.cjs +0 -40123
- package/dist/viewer-Us00t7Dl.cjs.br +0 -0
- package/dist/viewer-Us00t7Dl.cjs.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.11.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.11.0) - 2026-07-09
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **shared:** Add vermilion light/dark theme presets to all bindings (by @ChristopherVR) ([1b6e816](https://github.com/ChristopherVR/pptx-viewer/commit/1b6e8161679a3f984cbfedb09ece0c8c01570c0a))
|
|
12
|
+
|
|
13
|
+
### Other
|
|
14
|
+
|
|
15
|
+
- Reconcile with origin/main before push (by @ChristopherVR) ([10acef8](https://github.com/ChristopherVR/pptx-viewer/commit/10acef81a7f5d79e778e4e4464d956cc84682f7c))
|
|
16
|
+
|
|
17
|
+
## [1.10.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.10.2) - 2026-07-09
|
|
18
|
+
|
|
19
|
+
### Other
|
|
20
|
+
|
|
21
|
+
- Reconcile with origin/main before push (by @ChristopherVR) ([b8c46bc](https://github.com/ChristopherVR/pptx-viewer/commit/b8c46bc3622e301d3365f5c489144e5aa5401782))
|
|
22
|
+
|
|
7
23
|
## [1.10.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.10.1) - 2026-07-09
|
|
8
24
|
|
|
9
25
|
## [1.10.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.10.0) - 2026-07-08
|
package/README.md
CHANGED
|
@@ -132,6 +132,18 @@ import { provideViewerTheme } from 'pptx-vue-viewer';
|
|
|
132
132
|
provideViewerTheme({ colors: { primary: '#6366f1' } });
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
+
Two ready-made presets ship with the package: `vermilionLightTheme` (warm paper
|
|
136
|
+
canvas) and `vermilionDarkTheme` (dimmed presenter room), the same vermilion
|
|
137
|
+
brand look as the [documentation site](https://christophervr.github.io/pptx-viewer/):
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
import { vermilionLightTheme } from 'pptx-vue-viewer';
|
|
141
|
+
// <PowerPointViewer :theme="vermilionLightTheme" … />
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The underlying palettes (`vermilionLightColors`, `vermilionDarkColors`) and
|
|
145
|
+
radius (`vermilionRadius`) are exported too for deriving your own variant.
|
|
146
|
+
|
|
135
147
|
### Reading the current presentation back
|
|
136
148
|
|
|
137
149
|
`getContent()` turns the current presentation back into `.pptx` bytes. Reach it
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const e = require("./useViewerSettingsDialog-CIlyWAV2.cjs");
|
|
3
|
+
let t = require("vue");
|
|
4
|
+
function s(e, t, s = 0, o = null) {
|
|
5
|
+
if (null === e) return 0;
|
|
6
|
+
let r = s;
|
|
7
|
+
return null !== o && (r += t - o), Math.max(0, t - e - r);
|
|
8
|
+
}
|
|
9
|
+
function o(e) {
|
|
10
|
+
const t = /* @__PURE__ */ new Set(), s = [];
|
|
11
|
+
for (const o of e) t.has(o) || (t.add(o), s.push(o));
|
|
12
|
+
return s;
|
|
13
|
+
}
|
|
14
|
+
exports.DEFAULT_MAX_VERSIONS = e.DEFAULT_MAX_VERSIONS, exports.ERASER_RADIUS = e.ERASER_RADIUS, exports.HIGHLIGHTER_OPACITY = e.HIGHLIGHTER_OPACITY, exports.HIGHLIGHTER_WIDTH = e.HIGHLIGHTER_WIDTH, exports.MOBILE_BREAKPOINT = e.MOBILE_BREAKPOINT, exports.MOBILE_LANDSCAPE_MAX_HEIGHT = e.MOBILE_LANDSCAPE_MAX_HEIGHT, exports.NUDGE_LARGE = e.NUDGE_LARGE, exports.NUDGE_SMALL = e.NUDGE_SMALL, exports.PEN_WIDTH = e.PEN_WIDTH, exports.RIBBON_ALIGN = e.RIBBON_ALIGN, exports.SHORTCUT_CATALOG = e.SHORTCUT_CATALOG, exports.SHORTCUT_GROUP_LABEL_KEYS = e.SHORTCUT_GROUP_LABEL_KEYS, exports.SMARTART_COLOR_SCHEMES = e.SMARTART_COLOR_SCHEMES, exports.SMARTART_STYLE_OPTIONS = e.SMARTART_STYLE_OPTIONS, exports.SmartArt3DKey = e.SmartArt3DKey, exports.TABLET_BREAKPOINT = e.TABLET_BREAKPOINT, exports.TableSelectionKey = e.TableSelectionKey, exports.buildClickGroups = e.buildClickGroups, exports.buildSearchRegex = e.buildSearchRegex, exports.buildStrokePathD = e.buildStrokePathD, exports.computeCellSelection = e.computeCellSelection, exports.computeDocumentStatistics = e.computeDocumentStatistics, exports.computeElapsed = s, exports.countWords = e.countWords, exports.createStroke = e.createStroke, exports.eraseStrokesAtPoint = e.eraseStrokesAtPoint, exports.findMatches = e.findMatches, exports.formatRehearseMs = function(e) {
|
|
15
|
+
const t = Math.max(0, Math.floor(e / 1e3)), s = Math.floor(t / 60), o = t % 60;
|
|
16
|
+
return `${String(s)}:${String(o).padStart(2, "0")}`;
|
|
17
|
+
}, exports.generateCommentId = e.generateCommentId, exports.groupShortcutCatalog = e.groupShortcutCatalog, exports.injectTableSelection = e.injectTableSelection, exports.inlineEditorRect = e.inlineEditorRect, exports.isMobileViewport = e.isMobileViewport, exports.nodeIdsInRenderOrder = e.nodeIdsInRenderOrder, exports.provideTableSelection = e.provideTableSelection, exports.replaceInElement = e.replaceInElement, exports.resolveShortcutAction = e.resolveShortcutAction, exports.smartArtLayoutLabel = e.smartArtLayoutLabel, exports.textNodeIdsInRenderOrder = e.textNodeIdsInRenderOrder, exports.toShapePreset = e.toShapePreset, exports.useAccessibility = e.useAccessibility, exports.useAlignGroup = e.useAlignGroup, exports.useAnimationPlayback = e.useAnimationPlayback, exports.useAutosave = e.useAutosave, exports.useChartEditing = e.useChartEditing, exports.useCollaboration = e.useCollaboration, exports.useCollaborationWiring = e.useCollaborationWiring, exports.useColorChangeImage = e.useColorChangeImage, exports.useComments = e.useComments, exports.useCommentsWiring = e.useCommentsWiring, exports.useContextMenu = e.useContextMenu, exports.useCustomShows = e.useCustomShows, exports.useCustomShowsWiring = e.useCustomShowsWiring, exports.useDebouncedCallback = e.useDebouncedCallback, exports.useDocumentPropertiesDialog = e.useDocumentPropertiesDialog, exports.useDocumentStatistics = e.useDocumentStatistics, exports.useEditorHistory = e.useEditorHistory, exports.useEditorKeyboard = e.useEditorKeyboard, exports.useEditorOperations = e.useEditorOperations, exports.useElementDrag = e.useElementDrag, exports.useElementInsertion = e.useElementInsertion, exports.useEmbeddedFonts = e.useEmbeddedFonts, exports.useExport = e.useExport, exports.useExportProgress = e.useExportProgress, exports.useExportWiring = e.useExportWiring, exports.useFindReplace = e.useFindReplace, exports.useFontEmbedding = e.useFontEmbedding, exports.useFormatPainter = e.useFormatPainter, exports.useHeaderFooterDialog = e.useHeaderFooterDialog, exports.useInkDrawing = e.useInkDrawing, exports.useInlineEditing = e.useInlineEditing, exports.useInsertElementDialogs = e.useInsertElementDialogs, exports.useIsMobile = e.useIsMobile, exports.useKeyboardInsets = e.useKeyboardInsets, exports.useKeyboardShortcuts = e.useKeyboardShortcuts, exports.useLoadContent = e.useLoadContent, exports.useMasterViewState = e.useMasterViewState, exports.useMediaExport = e.useMediaExport, exports.useMobileChrome = e.useMobileChrome, exports.useModel3dScene = e.useModel3dScene, exports.useMultiSelectOps = e.useMultiSelectOps, exports.usePasswordProtection = e.usePasswordProtection, exports.usePresentationAnnotations = e.usePresentationAnnotations, exports.usePresentationModeWiring = e.usePresentationModeWiring, exports.usePrint = e.usePrint, exports.useRehearseTimings = function(e = {}) {
|
|
18
|
+
const o = e.now ?? Date.now, r = e.tickIntervalMs ?? 250, u = (0, t.ref)(!1), n = (0, t.ref)(!1), i = (0, t.ref)(!1), a = (0, t.ref)({}), l = (0, t.ref)(null), p = (0, t.ref)(null);
|
|
19
|
+
let x = 0, c = null;
|
|
20
|
+
const d = (0, t.ref)(0);
|
|
21
|
+
let S = null;
|
|
22
|
+
function E() {
|
|
23
|
+
null !== S && (clearInterval(S), S = null);
|
|
24
|
+
}
|
|
25
|
+
function m() {
|
|
26
|
+
E(), "function" == typeof setInterval && (S = setInterval(() => {
|
|
27
|
+
d.value += 1;
|
|
28
|
+
}, r));
|
|
29
|
+
}
|
|
30
|
+
const g = (0, t.computed)(() => (d.value, u.value ? s(p.value, o(), x, c) : 0)), A = (0, t.computed)(() => (d.value, u.value ? s(l.value, o()) : 0)), I = (0, t.computed)(() => Object.values(a.value).reduce((e, t) => e + t, 0));
|
|
31
|
+
return (0, t.onScopeDispose)(E), {
|
|
32
|
+
rehearsing: u,
|
|
33
|
+
paused: n,
|
|
34
|
+
showSummary: i,
|
|
35
|
+
recordedTimings: a,
|
|
36
|
+
slideElapsedMs: g,
|
|
37
|
+
totalElapsedMs: A,
|
|
38
|
+
totalRecordedMs: I,
|
|
39
|
+
start: function() {
|
|
40
|
+
const e = o();
|
|
41
|
+
u.value = !0, n.value = !1, i.value = !1, a.value = {}, x = 0, c = null, l.value = e, p.value = e, m();
|
|
42
|
+
},
|
|
43
|
+
recordCurrentSlideTime: function(e) {
|
|
44
|
+
if (null === p.value) return;
|
|
45
|
+
const t = s(p.value, o(), x, c);
|
|
46
|
+
a.value = {
|
|
47
|
+
...a.value,
|
|
48
|
+
[e]: t
|
|
49
|
+
}, x = 0, c = n.value ? o() : null, p.value = o();
|
|
50
|
+
},
|
|
51
|
+
togglePause: function() {
|
|
52
|
+
d.value += 1, n.value ? (null !== c && (x += o() - c, c = null), n.value = !1, m()) : (c = o(), n.value = !0, E());
|
|
53
|
+
},
|
|
54
|
+
saveTimings: function() {
|
|
55
|
+
e.onSave?.(a.value), i.value = !1, u.value = !1, E();
|
|
56
|
+
},
|
|
57
|
+
dismissSummary: function() {
|
|
58
|
+
i.value = !1, u.value = !1, a.value = {}, E();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}, exports.useRibbonActions = e.useRibbonActions, exports.useRibbonProps = e.useRibbonProps, exports.useRibbonUiState = e.useRibbonUiState, exports.useSectionOperations = e.useSectionOperations, exports.useSelection = function(e = []) {
|
|
62
|
+
const s = (0, t.ref)(o(e)), r = (0, t.computed)(() => 0 === s.value.length);
|
|
63
|
+
return {
|
|
64
|
+
selectedIds: (0, t.readonly)(s),
|
|
65
|
+
isEmpty: r,
|
|
66
|
+
select: function(e, t = !1) {
|
|
67
|
+
t ? s.value.includes(e) || (s.value = [...s.value, e]) : 1 === s.value.length && s.value[0] === e || (s.value = [e]);
|
|
68
|
+
},
|
|
69
|
+
toggle: function(e) {
|
|
70
|
+
s.value.includes(e) ? s.value = s.value.filter((t) => t !== e) : s.value = [...s.value, e];
|
|
71
|
+
},
|
|
72
|
+
selectMany: function(e) {
|
|
73
|
+
s.value = o(e);
|
|
74
|
+
},
|
|
75
|
+
clear: function() {
|
|
76
|
+
s.value.length > 0 && (s.value = []);
|
|
77
|
+
},
|
|
78
|
+
isSelected: function(e) {
|
|
79
|
+
return s.value.includes(e);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}, exports.useSelectionPaneWiring = e.useSelectionPaneWiring, exports.useSheetDismissDrag = e.useSheetDismissDrag, exports.useSignatureWorkflow = e.useSignatureWorkflow, exports.useSignatures = e.useSignatures, exports.useSlideMutations = e.useSlideMutations, exports.useSlideOperations = e.useSlideOperations, exports.useSlideShowSettings = e.useSlideShowSettings, exports.useSmartArt3D = e.useSmartArt3D, exports.useSmartArtEditing = e.useSmartArtEditing, exports.useSmartArtFocus = e.useSmartArtFocus, exports.useSmartArtHoverRect = e.useSmartArtHoverRect, exports.useSmartArtInlineEditState = e.useSmartArtInlineEditState, exports.useSmartArtNodeEditContext = e.useSmartArtNodeEditContext, exports.useTableCellEditingContext = e.useTableCellEditingContext, exports.useTableCellSelection = e.useTableCellSelection, exports.useThemeEditing = e.useThemeEditing, exports.useToolbarAutoHide = e.useToolbarAutoHide, exports.useTouchGestures = e.useTouchGestures, exports.useVersionHistory = e.useVersionHistory, exports.useVersionHistoryWiring = e.useVersionHistoryWiring, exports.useViewerSettingsDialog = e.useViewerSettingsDialog;
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export * from './viewer/composables/smart-art-3d';
|
|
2
|
+
export * from './viewer/composables/smartart-inline-edit';
|
|
3
|
+
export * from './viewer/composables/table-selection';
|
|
4
|
+
export * from './viewer/composables/useAccessibility';
|
|
5
|
+
export * from './viewer/composables/useAlignGroup';
|
|
6
|
+
export * from './viewer/composables/useAnimationPlayback';
|
|
7
|
+
export * from './viewer/composables/useAutosave';
|
|
8
|
+
export * from './viewer/composables/useChartEditing';
|
|
9
|
+
export * from './viewer/composables/useCollaboration';
|
|
10
|
+
export * from './viewer/composables/useCollaborationWiring';
|
|
11
|
+
export * from './viewer/composables/use-color-change-image';
|
|
12
|
+
export * from './viewer/composables/useComments';
|
|
13
|
+
export * from './viewer/composables/useCommentsWiring';
|
|
14
|
+
export * from './viewer/composables/useContextMenu';
|
|
15
|
+
export * from './viewer/composables/useCustomShows';
|
|
16
|
+
export * from './viewer/composables/useCustomShowsWiring';
|
|
17
|
+
export * from './viewer/composables/useDebouncedCallback';
|
|
18
|
+
export * from './viewer/composables/useDocumentPropertiesDialog';
|
|
19
|
+
export * from './viewer/composables/useDocumentStatistics';
|
|
20
|
+
export * from './viewer/composables/useEditorHistory';
|
|
21
|
+
export * from './viewer/composables/useEditorKeyboard';
|
|
22
|
+
export * from './viewer/composables/useEditorOperations';
|
|
23
|
+
export * from './viewer/composables/useElementDrag';
|
|
24
|
+
export * from './viewer/composables/useElementInsertion';
|
|
25
|
+
export * from './viewer/composables/useEmbeddedFonts';
|
|
26
|
+
export * from './viewer/composables/useExport';
|
|
27
|
+
export * from './viewer/composables/useExportProgress';
|
|
28
|
+
export * from './viewer/composables/useExportWiring';
|
|
29
|
+
export * from './viewer/composables/useFindReplace';
|
|
30
|
+
export * from './viewer/composables/useFontEmbedding';
|
|
31
|
+
export * from './viewer/composables/useFormatPainter';
|
|
32
|
+
export * from './viewer/composables/useHeaderFooterDialog';
|
|
33
|
+
export * from './viewer/composables/useInkDrawing';
|
|
34
|
+
export * from './viewer/composables/useInlineEditing';
|
|
35
|
+
export * from './viewer/composables/useInsertElementDialogs';
|
|
36
|
+
export * from './viewer/composables/useIsMobile';
|
|
37
|
+
export * from './viewer/composables/useKeyboardInsets';
|
|
38
|
+
export * from './viewer/composables/useKeyboardShortcuts';
|
|
39
|
+
export * from './viewer/composables/useLoadContent';
|
|
40
|
+
export * from './viewer/composables/useMasterViewState';
|
|
41
|
+
export type { EncodeGif, MediaRecorderFactory, MediaExportProgress, UseMediaExportOptions, MediaExportOptions, WebmExportOptions, UseMediaExportResult, } from './viewer/composables/useMediaExport';
|
|
42
|
+
export { useMediaExport } from './viewer/composables/useMediaExport';
|
|
43
|
+
export * from './viewer/composables/useMobileChrome';
|
|
44
|
+
export * from './viewer/composables/useModel3dScene';
|
|
45
|
+
export * from './viewer/composables/useMultiSelectOps';
|
|
46
|
+
export * from './viewer/composables/usePasswordProtection';
|
|
47
|
+
export * from './viewer/composables/usePresentationAnnotations';
|
|
48
|
+
export * from './viewer/composables/usePresentationModeWiring';
|
|
49
|
+
export type { OpenPrintWindow, UsePrintOptions, UsePrintResult, } from './viewer/composables/usePrint';
|
|
50
|
+
export { usePrint } from './viewer/composables/usePrint';
|
|
51
|
+
export * from './viewer/composables/useRehearseTimings';
|
|
52
|
+
export * from './viewer/composables/useRibbonActions';
|
|
53
|
+
export * from './viewer/composables/useRibbonProps';
|
|
54
|
+
export * from './viewer/composables/useRibbonUiState';
|
|
55
|
+
export * from './viewer/composables/useSectionOperations';
|
|
56
|
+
export * from './viewer/composables/useSelection';
|
|
57
|
+
export * from './viewer/composables/useSelectionPaneWiring';
|
|
58
|
+
export * from './viewer/composables/useSheetDismissDrag';
|
|
59
|
+
export * from './viewer/composables/useSignatures';
|
|
60
|
+
export * from './viewer/composables/useSignatureWorkflow';
|
|
61
|
+
export * from './viewer/composables/useSlideMutations';
|
|
62
|
+
export * from './viewer/composables/useSlideOperations';
|
|
63
|
+
export * from './viewer/composables/useSlideShowSettings';
|
|
64
|
+
export * from './viewer/composables/useSmartArtEditing';
|
|
65
|
+
export * from './viewer/composables/useSmartArtFocus';
|
|
66
|
+
export * from './viewer/composables/useSmartArtHoverRect';
|
|
67
|
+
export * from './viewer/composables/useSmartArtNodeEditContext';
|
|
68
|
+
export * from './viewer/composables/useTableCellEditingContext';
|
|
69
|
+
export * from './viewer/composables/useThemeEditing';
|
|
70
|
+
export * from './viewer/composables/useToolbarAutoHide';
|
|
71
|
+
export * from './viewer/composables/useTouchGestures';
|
|
72
|
+
export * from './viewer/composables/useVersionHistory';
|
|
73
|
+
export * from './viewer/composables/useVersionHistoryWiring';
|
|
74
|
+
export * from './viewer/composables/useViewerSettingsDialog';
|
|
75
|
+
//# sourceMappingURL=composables-unstable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composables-unstable.d.ts","sourceRoot":"","sources":["../src/composables-unstable.ts"],"names":[],"mappings":"AAgBA,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AAIxD,YAAY,EACX,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iDAAiD,CAAC;AAChE,cAAc,gDAAgD,CAAC;AAE/D,YAAY,EACX,eAAe,EACf,eAAe,EACf,cAAc,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { $ as a, $t as s, A as t, B as e, Bt as l, C as u, Ct as n, D as v, E as o, Et as r, F as i, Ft as c, G as f, Gt as d, H as m, Hn as g, Ht as h, I as p, It as S, J as M, Ji as w, Jt as y, K as I, Kt as x, L as E, Lt as T, M as V, Mt as $, N as b, Nt as j, O as C, P as D, Pt as H, Q as J, Qt as P, R, Rt as k, S as z, St as B, T as F, Tt as G, U as K, Ut as L, V as N, Vn as O, Vt as Q, W as U, Wt as W, X as Y, Y as Z, Yn as _, Z as q, Zt as A, _ as X, _t as aa, a as sa, b as ta, bt as ea, c as la, ct as ua, d as na, dt as va, en as oa, et as ra, f as ia, ft as ca, g as fa, gt as da, h as ma, ht as ga, i as ha, in as pa, it as Sa, j as Ma, k as wa, l as ya, lt as Ia, m as xa, mt as Ea, n as Ta, nn as Va, nt as $a, o as ba, p as ja, pt as Ca, q as Da, r as Ha, rn as Ja, rt as Pa, s as Ra, st as ka, t as za, tn as Ba, tt as Fa, u as Ga, un as Ka, ur as La, ut as Na, v as Oa, vt as Qa, w as Ua, wt as Wa, x as Ya, xt as Za, y as _a, yt as qa, z as Aa, zt as Xa } from "./useViewerSettingsDialog-CjJTDhVm.js";
|
|
2
|
+
import { computed as as, onScopeDispose as ss, readonly as ts, ref as es } from "vue";
|
|
3
|
+
function ls(a) {
|
|
4
|
+
const s = Math.max(0, Math.floor(a / 1e3)), t = Math.floor(s / 60), e = s % 60;
|
|
5
|
+
return `${String(t)}:${String(e).padStart(2, "0")}`;
|
|
6
|
+
}
|
|
7
|
+
function us(a, s, t = 0, e = null) {
|
|
8
|
+
if (null === a) return 0;
|
|
9
|
+
let l = t;
|
|
10
|
+
return null !== e && (l += s - e), Math.max(0, s - a - l);
|
|
11
|
+
}
|
|
12
|
+
function ns(a = {}) {
|
|
13
|
+
const s = a.now ?? Date.now, t = a.tickIntervalMs ?? 250, e = es(!1), l = es(!1), u = es(!1), n = es({}), v = es(null), o = es(null);
|
|
14
|
+
let r = 0, i = null;
|
|
15
|
+
const c = es(0);
|
|
16
|
+
let f = null;
|
|
17
|
+
function d() {
|
|
18
|
+
null !== f && (clearInterval(f), f = null);
|
|
19
|
+
}
|
|
20
|
+
function m() {
|
|
21
|
+
d(), "function" == typeof setInterval && (f = setInterval(() => {
|
|
22
|
+
c.value += 1;
|
|
23
|
+
}, t));
|
|
24
|
+
}
|
|
25
|
+
const g = as(() => (c.value, e.value ? us(o.value, s(), r, i) : 0)), h = as(() => (c.value, e.value ? us(v.value, s()) : 0)), p = as(() => Object.values(n.value).reduce((a, s) => a + s, 0));
|
|
26
|
+
return ss(d), {
|
|
27
|
+
rehearsing: e,
|
|
28
|
+
paused: l,
|
|
29
|
+
showSummary: u,
|
|
30
|
+
recordedTimings: n,
|
|
31
|
+
slideElapsedMs: g,
|
|
32
|
+
totalElapsedMs: h,
|
|
33
|
+
totalRecordedMs: p,
|
|
34
|
+
start: function() {
|
|
35
|
+
const a = s();
|
|
36
|
+
e.value = !0, l.value = !1, u.value = !1, n.value = {}, r = 0, i = null, v.value = a, o.value = a, m();
|
|
37
|
+
},
|
|
38
|
+
recordCurrentSlideTime: function(a) {
|
|
39
|
+
if (null === o.value) return;
|
|
40
|
+
const t = us(o.value, s(), r, i);
|
|
41
|
+
n.value = {
|
|
42
|
+
...n.value,
|
|
43
|
+
[a]: t
|
|
44
|
+
}, r = 0, i = l.value ? s() : null, o.value = s();
|
|
45
|
+
},
|
|
46
|
+
togglePause: function() {
|
|
47
|
+
c.value += 1, l.value ? (null !== i && (r += s() - i, i = null), l.value = !1, m()) : (i = s(), l.value = !0, d());
|
|
48
|
+
},
|
|
49
|
+
saveTimings: function() {
|
|
50
|
+
a.onSave?.(n.value), u.value = !1, e.value = !1, d();
|
|
51
|
+
},
|
|
52
|
+
dismissSummary: function() {
|
|
53
|
+
u.value = !1, e.value = !1, n.value = {}, d();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function vs(a = []) {
|
|
58
|
+
const s = es(os(a)), t = as(() => 0 === s.value.length);
|
|
59
|
+
return {
|
|
60
|
+
selectedIds: ts(s),
|
|
61
|
+
isEmpty: t,
|
|
62
|
+
select: function(a, t = !1) {
|
|
63
|
+
t ? s.value.includes(a) || (s.value = [...s.value, a]) : 1 === s.value.length && s.value[0] === a || (s.value = [a]);
|
|
64
|
+
},
|
|
65
|
+
toggle: function(a) {
|
|
66
|
+
s.value.includes(a) ? s.value = s.value.filter((s) => s !== a) : s.value = [...s.value, a];
|
|
67
|
+
},
|
|
68
|
+
selectMany: function(a) {
|
|
69
|
+
s.value = os(a);
|
|
70
|
+
},
|
|
71
|
+
clear: function() {
|
|
72
|
+
s.value.length > 0 && (s.value = []);
|
|
73
|
+
},
|
|
74
|
+
isSelected: function(a) {
|
|
75
|
+
return s.value.includes(a);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function os(a) {
|
|
80
|
+
const s = /* @__PURE__ */ new Set(), t = [];
|
|
81
|
+
for (const e of a) s.has(e) || (s.add(e), t.push(e));
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
export { Ha as DEFAULT_MAX_VERSIONS, aa as ERASER_RADIUS, Qa as HIGHLIGHTER_OPACITY, qa as HIGHLIGHTER_WIDTH, O as MOBILE_BREAKPOINT, g as MOBILE_LANDSCAPE_MAX_HEIGHT, ua as NUDGE_LARGE, Ia as NUDGE_SMALL, ea as PEN_WIDTH, fa as RIBBON_ALIGN, Na as SHORTCUT_CATALOG, va as SHORTCUT_GROUP_LABEL_KEYS, j as SMARTART_COLOR_SCHEMES, H as SMARTART_STYLE_OPTIONS, Ja as SmartArt3DKey, _ as TABLET_BREAKPOINT, h as TableSelectionKey, La as buildClickGroups, b as buildSearchRegex, Za as buildStrokePathD, L as computeCellSelection, Xa as computeDocumentStatistics, us as computeElapsed, l as countWords, B as createStroke, n as eraseStrokesAtPoint, D as findMatches, ls as formatRehearseMs, J as generateCommentId, ca as groupShortcutCatalog, W as injectTableSelection, A as inlineEditorRect, w as isMobileViewport, P as nodeIdsInRenderOrder, d as provideTableSelection, i as replaceInElement, Ca as resolveShortcutAction, c as smartArtLayoutLabel, s as textNodeIdsInRenderOrder, X as toShapePreset, Sa as useAccessibility, Pa as useAlignGroup, r as useAnimationPlayback, $a as useAutosave, k as useChartEditing, Fa as useCollaboration, ra as useCollaborationWiring, Va as useColorChangeImage, a as useComments, q as useCommentsWiring, Y as useContextMenu, Z as useCustomShows, M as useCustomShowsWiring, T as useDebouncedCallback, Da as useDocumentPropertiesDialog, Q as useDocumentStatistics, I as useEditorHistory, f as useEditorKeyboard, U as useEditorOperations, K as useElementDrag, m as useElementInsertion, N as useEmbeddedFonts, e as useExport, Aa as useExportProgress, E as useExportWiring, p as useFindReplace, V as useFontEmbedding, Ma as useFormatPainter, t as useHeaderFooterDialog, wa as useInkDrawing, C as useInlineEditing, v as useInsertElementDialogs, G as useIsMobile, o as useKeyboardInsets, Ea as useKeyboardShortcuts, F as useLoadContent, Ua as useMasterViewState, R as useMediaExport, u as useMobileChrome, Ba as useModel3dScene, z as useMultiSelectOps, Ya as usePasswordProtection, Wa as usePresentationAnnotations, ta as usePresentationModeWiring, _a as usePrint, ns as useRehearseTimings, Oa as useRibbonActions, ma as useRibbonProps, xa as useRibbonUiState, ja as useSectionOperations, vs as useSelection, ia as useSelectionPaneWiring, Ka as useSheetDismissDrag, na as useSignatureWorkflow, ka as useSignatures, Ga as useSlideMutations, ya as useSlideOperations, la as useSlideShowSettings, pa as useSmartArt3D, $ as useSmartArtEditing, S as useSmartArtFocus, y as useSmartArtHoverRect, oa as useSmartArtInlineEditState, Ra as useSmartArtNodeEditContext, ba as useTableCellEditingContext, x as useTableCellSelection, sa as useThemeEditing, da as useToolbarAutoHide, ga as useTouchGestures, ha as useVersionHistory, Ta as useVersionHistoryWiring, za as useViewerSettingsDialog };
|
|
Binary file
|
|
Binary file
|