ooxml-ui 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +101 -2
- package/dist/chrome/find-bar.d.ts +85 -0
- package/dist/chrome/find-bar.d.ts.map +1 -1
- package/dist/chrome/find-replace-fields.d.ts +21 -0
- package/dist/chrome/find-replace-fields.d.ts.map +1 -0
- package/dist/{chunk-723JC3OC.js → chunk-BOIZWKM7.js} +154 -48
- package/dist/{chunk-5OFAJDMQ.js → chunk-L4XGRNHF.js} +1 -1
- package/dist/{chunk-V6P6KZCO.js → chunk-R3LV6SGC.js} +2 -2
- package/dist/clipboard-worker.js +21 -0
- package/dist/controls.d.ts +1 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +1 -1
- package/dist/docx.js +1 -1
- package/dist/index.js +3 -3
- package/dist/keytips.d.ts.map +1 -1
- package/dist/menu/menu-button.d.ts +11 -1
- package/dist/menu/menu-button.d.ts.map +1 -1
- package/dist/teams.js +2 -2
- package/dist/visio/binding.d.ts +10 -2
- package/dist/visio/clipboard-capture.d.ts +39 -0
- package/dist/visio/clipboard-worker.d.ts +1 -0
- package/dist/visio/controller.d.ts +45 -8
- package/dist/visio/creation-token.d.ts +26 -0
- package/dist/visio/index.d.ts +3 -1
- package/dist/visio/replacement-token.d.ts +56 -0
- package/dist/visio/ribbon-action.d.ts +61 -2
- package/dist/visio/ribbon-parts.d.ts +3 -2
- package/dist/visio/ribbon-router.d.ts +14 -1
- package/dist/visio/ribbon-style-options.d.ts +5 -0
- package/dist/visio/viewer-arrangement.d.ts +13 -0
- package/dist/visio/viewer-backstage.d.ts +1 -0
- package/dist/visio/viewer-clipboard.d.ts +21 -0
- package/dist/visio/viewer-commands.d.ts +5 -0
- package/dist/visio/viewer-draw-tool.d.ts +9 -29
- package/dist/visio/viewer-drawing-gesture.d.ts +36 -0
- package/dist/visio/viewer-duplication.d.ts +11 -0
- package/dist/visio/viewer-element.d.ts +11 -1
- package/dist/visio/viewer-formatting.d.ts +12 -0
- package/dist/visio/viewer-gesture-overlays.d.ts +2 -0
- package/dist/visio/viewer-handle-events.d.ts +3 -0
- package/dist/visio/viewer-layers.d.ts +1 -2
- package/dist/visio/viewer-movement-preview.d.ts +7 -0
- package/dist/visio/viewer-new-drawing.d.ts +5 -0
- package/dist/visio/viewer-page-point.d.ts +6 -0
- package/dist/visio/viewer-paint-dialog.d.ts +28 -0
- package/dist/visio/viewer-paint-menu.d.ts +4 -0
- package/dist/visio/viewer-paint-properties.d.ts +13 -0
- package/dist/visio/viewer-pointer-gestures.d.ts +14 -0
- package/dist/visio/viewer-replace-status.d.ts +6 -0
- package/dist/visio/viewer-replace.d.ts +14 -0
- package/dist/visio/viewer-resize-frame.d.ts +9 -0
- package/dist/visio/viewer-resize-handles.d.ts +14 -0
- package/dist/visio/viewer-search.d.ts +15 -0
- package/dist/visio/viewer-size-position.d.ts +13 -0
- package/dist/visio/viewer-text-draft.d.ts +9 -0
- package/dist/visio/viewer-text-tool.d.ts +17 -0
- package/dist/visio/worker-clipboard.d.ts +16 -0
- package/dist/visio.js +5948 -2618
- package/dist/xlsx.js +4 -4
- package/package.json +2 -2
package/dist/controls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACN,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,iBAAiB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,E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qB,EAC1B,KAAK,cAAc,EACnB,KAAK,eAAe,GACpB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,0BAA0B,EAC1B,KAAK,WAAW,EAChB,KAAK,iBAAiB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,YAAY,EACX,0BAA0B,EAC1B,yBAAyB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,wBAAwB,GAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACvB,MAAM,yBAAyB,CAAC;AAEjC,mCAAmC;AACnC,eAAO,MAAM,gBAAgB,imCAsCnB,CAAC;AAEX,kDAAkD;AAClD,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAEvE"}
|
package/dist/controls.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, formatCommentTime, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
1
|
+
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, formatCommentTime, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-BOIZWKM7.js';
|
|
2
2
|
import './chunk-M6GF5ED2.js';
|
|
3
3
|
import './chunk-TWQ45BFL.js';
|
|
4
4
|
import './chunk-IY7QJLQG.js';
|
package/dist/docx.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineSmartArt } from './chunk-NYRRH2MD.js';
|
|
2
2
|
import { shadcnBridge } from './chunk-56A2JK63.js';
|
|
3
|
-
import { createRibbonOverflow, defineRibbon, defineRuler, defineCommentsPane, defineDialog, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, runKeyTips, assignKeyTips } from './chunk-
|
|
3
|
+
import { createRibbonOverflow, defineRibbon, defineRuler, defineCommentsPane, defineDialog, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, runKeyTips, assignKeyTips } from './chunk-BOIZWKM7.js';
|
|
4
4
|
import { registerIcon } from './chunk-M6GF5ED2.js';
|
|
5
5
|
import './chunk-TWQ45BFL.js';
|
|
6
6
|
import './chunk-IY7QJLQG.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-R3LV6SGC.js';
|
|
2
2
|
export { OfficeUiSmartArt, defineSmartArt, renderDiagramDrawing } from './chunk-NYRRH2MD.js';
|
|
3
|
-
export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, applyTeamsProps, colorFor, createTeams, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
3
|
+
export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, applyTeamsProps, colorFor, createTeams, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-L4XGRNHF.js';
|
|
4
4
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-SNV6YKPC.js';
|
|
5
5
|
export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme, shadcnBridge, themeBridge } from './chunk-56A2JK63.js';
|
|
6
|
-
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, formatCommentTime, glyph, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
6
|
+
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, formatCommentTime, glyph, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-BOIZWKM7.js';
|
|
7
7
|
export { createIconSvg, getIcon, listIcons, paintIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
8
8
|
export { OfficeUiPresence, definePresence, initialsOf, participantsFromAwareness } from './chunk-TWQ45BFL.js';
|
|
9
9
|
export { CONTRACT_REVISION, OfficeElement, controlStyles, flag, readFlag, triState, valueOn, withTokens } from './chunk-IY7QJLQG.js';
|
package/dist/keytips.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keytips.d.ts","sourceRoot":"","sources":["../src/keytips.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,wFAAwF;IACxF,KAAK,IAAI,IAAI,CAAC;IACd,uBAAuB;IACvB,IAAI,IAAI,IAAI,CAAC;IACb,OAAO,IAAI,IAAI,CAAC;CAChB;AAWD,KAAK,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"keytips.d.ts","sourceRoot":"","sources":["../src/keytips.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,wFAAwF;IACxF,KAAK,IAAI,IAAI,CAAC;IACd,uBAAuB;IACvB,IAAI,IAAI,IAAI,CAAC;IACb,OAAO,IAAI,IAAI,CAAC;CAChB;AAWD,KAAK,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC;AAoCrC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG,aAAa,CAqIxD"}
|
|
@@ -3,7 +3,7 @@ import { OfficeElement } from '../base.js';
|
|
|
3
3
|
* Dropdown command with a menu of `office-ui-menu-item` children (Office's Find, Layers,
|
|
4
4
|
* Align). With a `command` attribute it is a split button: the main part emits that command
|
|
5
5
|
* and the caret opens the menu. Attributes: `label`, `icon`, `command`, `variant="stacked"`, `icon-only`,
|
|
6
|
-
* `disabled`, `title`, `keyshortcuts`. The menu uses the top layer (`popover`) so ribbon
|
|
6
|
+
* `disabled`, `main-disabled` (split command only), `title`, `keyshortcuts`. The menu uses the top layer (`popover`) so ribbon
|
|
7
7
|
* overflow never clips it. Keyboard: Enter, Space or ArrowDown open; arrows, Home and End move;
|
|
8
8
|
* Escape and Tab close; focus returns to the trigger. Choosing an item closes the menu; its
|
|
9
9
|
* `office-command` bubbles to the host.
|
|
@@ -32,6 +32,15 @@ export declare class OfficeUiMenuButton extends OfficeElement {
|
|
|
32
32
|
toAttribute: (value: unknown) => string | null;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
+
mainDisabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
reflect: true;
|
|
38
|
+
converter: {
|
|
39
|
+
fromAttribute: (value: string | null) => boolean;
|
|
40
|
+
toAttribute: (value: unknown) => string | null;
|
|
41
|
+
};
|
|
42
|
+
attribute: string;
|
|
43
|
+
};
|
|
35
44
|
submenu: {
|
|
36
45
|
type: BooleanConstructor;
|
|
37
46
|
reflect: true;
|
|
@@ -58,6 +67,7 @@ export declare class OfficeUiMenuButton extends OfficeElement {
|
|
|
58
67
|
command: string | null;
|
|
59
68
|
keyshortcuts: string | null;
|
|
60
69
|
disabled: boolean;
|
|
70
|
+
mainDisabled: boolean;
|
|
61
71
|
submenu: boolean;
|
|
62
72
|
iconOnly: boolean;
|
|
63
73
|
open: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../src/menu/menu-button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAc7D;;;;;;;;GAQG;AACH,q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EAAE,YAAY,GAAG,IAAI,CAI3C;IAED,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,IAAI;IA2BZ,+FAA+F;IAC/F,OAAO,CAAC,KAAK;IAoBb,OAAO,CAAC,IAAI;IAeZ,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,SAAS;IAqBjB,UAAmB,UAAU,IAAI,IAAI,CAEpC;IAED,UAAmB,MAAM,oCAqDxB;CACD;AAED,eAAO,MAAM,gBAAgB,+BAA6D,CAAC"}
|
package/dist/teams.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, applyTeamsProps, colorFor, createTeams, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
1
|
+
export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, applyTeamsProps, colorFor, createTeams, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-L4XGRNHF.js';
|
|
2
2
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-SNV6YKPC.js';
|
|
3
3
|
import './chunk-56A2JK63.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-BOIZWKM7.js';
|
|
5
5
|
import './chunk-M6GF5ED2.js';
|
|
6
6
|
import './chunk-TWQ45BFL.js';
|
|
7
7
|
import './chunk-IY7QJLQG.js';
|
package/dist/visio/binding.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VisioEdit } from 'ooxml-core/visio';
|
|
2
|
-
import type { ViewerOptions, VsdxSource } from 'ooxml-core/visio/ui';
|
|
1
|
+
import type { VisioEdit, CreateVsdxOptions } from 'ooxml-core/visio';
|
|
2
|
+
import type { ViewerOptions, VsdxSource, VisioShapeSelection } from 'ooxml-core/visio/ui';
|
|
3
3
|
import { type VisioViewerElement } from './viewer-element.js';
|
|
4
4
|
import type { ViewerController } from './controller.js';
|
|
5
5
|
import type { SvgExportOptions, SvgExportResult } from './export-svg.js';
|
|
@@ -10,7 +10,15 @@ export interface MountedViewer {
|
|
|
10
10
|
readonly controller: ViewerController;
|
|
11
11
|
update(options: ViewerOptions): void;
|
|
12
12
|
load(source: VsdxSource): Promise<void>;
|
|
13
|
+
createBlankDrawing(options?: CreateVsdxOptions): Promise<void>;
|
|
13
14
|
applyEdits(edits: readonly VisioEdit[]): Promise<void>;
|
|
15
|
+
selectShapes(shapes: readonly VisioShapeSelection[]): void;
|
|
16
|
+
selectAll(): void;
|
|
17
|
+
clearSelection(): void;
|
|
18
|
+
duplicateSelection(): Promise<void>;
|
|
19
|
+
copySelection(): Promise<void>;
|
|
20
|
+
cutSelection(): Promise<void>;
|
|
21
|
+
pasteSelection(): Promise<void>;
|
|
14
22
|
replacePlainText(pageId: string, shapeId: string, text: string): Promise<void>;
|
|
15
23
|
undo(): Promise<void>;
|
|
16
24
|
redo(): Promise<void>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type CancellableClipboardCapture } from './worker-clipboard.js';
|
|
2
|
+
export interface ViewerClipboardState {
|
|
3
|
+
readonly ready: boolean;
|
|
4
|
+
readonly preparing: boolean;
|
|
5
|
+
readonly error: Error | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const EMPTY_CLIPBOARD_STATE: ViewerClipboardState;
|
|
8
|
+
declare const tokenBrand: unique symbol;
|
|
9
|
+
export interface ViewerClipboardToken {
|
|
10
|
+
readonly [tokenBrand]: true;
|
|
11
|
+
}
|
|
12
|
+
/** Scalar identity only: pending host tokens retain no document model or source bytes. */
|
|
13
|
+
export interface ClipboardContext {
|
|
14
|
+
readonly sourceGeneration: number;
|
|
15
|
+
readonly documentGeneration: number;
|
|
16
|
+
readonly operationGeneration: number;
|
|
17
|
+
readonly selectionIntent: number;
|
|
18
|
+
readonly pageId: string;
|
|
19
|
+
readonly selectionCount: number;
|
|
20
|
+
readonly shapeIds: readonly string[];
|
|
21
|
+
}
|
|
22
|
+
/** One prepared capture shared by gestures and native clipboard events. No Office format logic. */
|
|
23
|
+
export declare class ViewerClipboardCapture {
|
|
24
|
+
#private;
|
|
25
|
+
private readonly context;
|
|
26
|
+
private readonly bytes;
|
|
27
|
+
private readonly changed;
|
|
28
|
+
private readonly capture;
|
|
29
|
+
constructor(context: () => ClipboardContext | undefined, bytes: () => Uint8Array, changed: (state: ViewerClipboardState) => void, capture?: CancellableClipboardCapture);
|
|
30
|
+
token(): ViewerClipboardToken;
|
|
31
|
+
require(token: ViewerClipboardToken): ClipboardContext;
|
|
32
|
+
prepared(token: ViewerClipboardToken): string | null;
|
|
33
|
+
prepare(token: ViewerClipboardToken): Promise<string>;
|
|
34
|
+
refresh(): void;
|
|
35
|
+
destroy(): void;
|
|
36
|
+
/** Called while the controller commits an invalidating state, without nested notification. */
|
|
37
|
+
reset(): void;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { type ViewerEditState, type VsdxExportResult } from 'ooxml-core/visio/ui';
|
|
2
2
|
import { type CancellableEditor } from './worker-editor.js';
|
|
3
|
-
import { type VisioDocument, type VisioEdit } from 'ooxml-core/visio';
|
|
3
|
+
import { type CreateVsdxOptions, type VisioDocument, type VisioEdit } from 'ooxml-core/visio';
|
|
4
|
+
import { type ViewerClipboardState, type ViewerClipboardToken } from './clipboard-capture.js';
|
|
5
|
+
import { type CancellableClipboardCapture } from './worker-clipboard.js';
|
|
6
|
+
import { type ViewerCreationToken } from './creation-token.js';
|
|
4
7
|
import { type LayerVisibilityOverride } from './viewer-layers.js';
|
|
5
8
|
import type { CancellableParser } from './worker-parser.js';
|
|
6
|
-
import type { ViewerEvents } from 'ooxml-core/visio/ui';
|
|
9
|
+
import type { ViewerEvents, VisioShapeSelection } from 'ooxml-core/visio/ui';
|
|
7
10
|
import { type TextSearchState } from 'ooxml-core/visio/ui';
|
|
11
|
+
import { type ViewerTextReplaceToken, type ViewerTextReplaceScope, type ViewerTextReplacementInput } from './replacement-token.js';
|
|
12
|
+
import { type VisioTextOccurrence, type VisioTextReplacePlan } from 'ooxml-core/visio/ui';
|
|
8
13
|
export interface ViewerState {
|
|
9
14
|
readonly document: VisioDocument | null;
|
|
10
15
|
readonly edit: ViewerEditState;
|
|
@@ -15,11 +20,11 @@ export interface ViewerState {
|
|
|
15
20
|
readonly search: TextSearchState;
|
|
16
21
|
/** Viewer-only display overrides, independent of saved model and print policy. */
|
|
17
22
|
readonly layerVisibilityOverrides: readonly LayerVisibilityOverride[];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
/** Backward-compatible primary selection, the first entry of selectedShapes. */
|
|
24
|
+
readonly selectedShape: VisioShapeSelection | null;
|
|
25
|
+
readonly selectedShapes: readonly VisioShapeSelection[];
|
|
26
|
+
/** Prepared source selection availability for native clipboard gestures. Payload stays private. */
|
|
27
|
+
readonly clipboard: ViewerClipboardState;
|
|
23
28
|
}
|
|
24
29
|
type Parser = CancellableParser;
|
|
25
30
|
type EventListener = <K extends keyof ViewerEvents>(name: K, detail: ViewerEvents[K]) => void;
|
|
@@ -28,7 +33,7 @@ export declare class ViewerController {
|
|
|
28
33
|
private readonly parser;
|
|
29
34
|
private readonly listenerError;
|
|
30
35
|
private readonly editor;
|
|
31
|
-
constructor(parser?: Parser, listenerError?: (error: unknown) => void, editor?: CancellableEditor);
|
|
36
|
+
constructor(parser?: Parser, listenerError?: (error: unknown) => void, editor?: CancellableEditor, clipboardCapture?: CancellableClipboardCapture);
|
|
32
37
|
get state(): ViewerState;
|
|
33
38
|
/** Accepted document replacements, including the same object, invalidate captured artifacts. */
|
|
34
39
|
get documentGeneration(): number;
|
|
@@ -40,6 +45,12 @@ export declare class ViewerController {
|
|
|
40
45
|
setPage(index: number): void;
|
|
41
46
|
setZoom(zoom: number): void;
|
|
42
47
|
selectShape(shape: ViewerState['selectedShape']): void;
|
|
48
|
+
/** Replace the ordered selection; hidden/missing targets and group descendants are omitted. */
|
|
49
|
+
selectShapes(shapes: readonly VisioShapeSelection[]): void;
|
|
50
|
+
toggleShapeSelection(shape: VisioShapeSelection): void;
|
|
51
|
+
/** Select the current page's visible top-level shapes, excluding background-page content. */
|
|
52
|
+
selectAll(): void;
|
|
53
|
+
clearSelection(): void;
|
|
43
54
|
/** Override one source-page layer for viewing. null restores its saved display flag. */
|
|
44
55
|
setLayerVisibility(pageId: string, layerId: string, visible: boolean | null): void;
|
|
45
56
|
/** Reset a source page, or all pages when omitted. Does not modify the document. */
|
|
@@ -50,6 +61,8 @@ export declare class ViewerController {
|
|
|
50
61
|
nextSearchResult(): void;
|
|
51
62
|
previousSearchResult(): void;
|
|
52
63
|
load(bytes: Uint8Array | ArrayBuffer): Promise<void>;
|
|
64
|
+
/** A fresh source-backed drawing shares load replacement and cancellation behavior. */
|
|
65
|
+
createBlankDrawing(options?: CreateVsdxOptions): Promise<void>;
|
|
53
66
|
/** Reading bytes shares the same request epoch and error state as parsing them. */
|
|
54
67
|
loadSource(read: () => Uint8Array | ArrayBuffer | Promise<Uint8Array | ArrayBuffer>): Promise<void>;
|
|
55
68
|
cancelLoad(): void;
|
|
@@ -58,6 +71,30 @@ export declare class ViewerController {
|
|
|
58
71
|
replacePlainText(pageId: string, shapeId: string, text: string): Promise<void>;
|
|
59
72
|
/** Atomic source-backed edits. Core owns protection, dependency and target validation. */
|
|
60
73
|
applyEdits(edits: readonly VisioEdit[]): Promise<void>;
|
|
74
|
+
captureTextReplaceToken(scope: ViewerTextReplaceScope): ViewerTextReplaceToken;
|
|
75
|
+
isTextReplaceTokenCurrent(token: ViewerTextReplaceToken): boolean;
|
|
76
|
+
/** Cancel only the pending application owned by this replacement token. */
|
|
77
|
+
cancelTextReplace(token: ViewerTextReplaceToken): void;
|
|
78
|
+
getTextReplaceOccurrences(token: ViewerTextReplaceToken, query: string): readonly VisioTextOccurrence[];
|
|
79
|
+
planTextReplacement(token: ViewerTextReplaceToken, input: ViewerTextReplacementInput): VisioTextReplacePlan;
|
|
80
|
+
selectTextReplaceOccurrence(token: ViewerTextReplaceToken, occurrence: VisioTextOccurrence, query: string): ViewerTextReplaceToken;
|
|
81
|
+
applyTextReplacePlan(plan: VisioTextReplacePlan, token: ViewerTextReplaceToken): Promise<ViewerTextReplaceToken>;
|
|
82
|
+
/** Gesture batches may only edit the captured current-page selection. */
|
|
83
|
+
applySelectionEdits(edits: readonly VisioEdit[]): Promise<void>;
|
|
84
|
+
/** Capture an internal drawing intent before pointer movement or draft input. */
|
|
85
|
+
captureCreationToken(pageId: string): ViewerCreationToken;
|
|
86
|
+
isCreationTokenCurrent(token: ViewerCreationToken): boolean;
|
|
87
|
+
/** Internal drawing adapter entry point: creation and its selection form one history edge. */
|
|
88
|
+
applyCreationEdits(edits: readonly VisioEdit[], token: ViewerCreationToken): Promise<void>;
|
|
89
|
+
/** Duplicate the current page selection as one source edit and selection history transition. */
|
|
90
|
+
duplicateSelection(): Promise<void>;
|
|
91
|
+
captureClipboardToken(): ViewerClipboardToken;
|
|
92
|
+
getPreparedClipboard(token: ViewerClipboardToken): string | null;
|
|
93
|
+
prepareClipboardSelection(token: ViewerClipboardToken): Promise<string>;
|
|
94
|
+
/** Called only after the DOM transport has successfully written the captured payload. */
|
|
95
|
+
cutPreparedSelection(token: ViewerClipboardToken): Promise<void>;
|
|
96
|
+
/** The supplied text must come from the current clipboard read, never an internal fallback. */
|
|
97
|
+
pasteClipboardText(text: string, token: ViewerClipboardToken): Promise<void>;
|
|
61
98
|
undo(): Promise<void>;
|
|
62
99
|
/**
|
|
63
100
|
* Adopt a package from a shared session as one undoable history step. Emits `document-change`
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const creationToken: unique symbol;
|
|
2
|
+
/** Opaque controller-owned intent; never retains document models or package bytes. */
|
|
3
|
+
export interface ViewerCreationToken {
|
|
4
|
+
readonly [creationToken]: true;
|
|
5
|
+
}
|
|
6
|
+
export interface CreationContext {
|
|
7
|
+
readonly sourceGeneration: number;
|
|
8
|
+
readonly documentGeneration: number;
|
|
9
|
+
readonly operationGeneration: number;
|
|
10
|
+
readonly selectionIntent: number;
|
|
11
|
+
readonly viewIntent: number;
|
|
12
|
+
readonly pageId: string;
|
|
13
|
+
readonly pageIndex: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function creationCancelled(): DOMException;
|
|
16
|
+
export declare function sameCreationContext(left: CreationContext, right: CreationContext): boolean;
|
|
17
|
+
/** Weak ownership makes stale/foreign/forged tokens harmless without keeping abandoned drafts. */
|
|
18
|
+
export declare class ViewerCreationTokens {
|
|
19
|
+
#private;
|
|
20
|
+
private readonly context;
|
|
21
|
+
constructor(context: () => CreationContext | undefined);
|
|
22
|
+
capture(pageId: string): ViewerCreationToken;
|
|
23
|
+
current(token: ViewerCreationToken): boolean;
|
|
24
|
+
require(token: ViewerCreationToken): CreationContext;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/dist/visio/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { ViewerController, type ViewerState } from './controller.js';
|
|
2
|
+
export type { CreateVsdxOptions } from 'ooxml-core/visio';
|
|
3
|
+
export type { ViewerClipboardState, ViewerClipboardToken } from './clipboard-capture.js';
|
|
2
4
|
export { mountViewer, type MountedViewer } from './binding.js';
|
|
3
5
|
export { VisioViewerElement, registerVisioViewer } from './viewer-element.js';
|
|
4
6
|
export { renderPage, type RenderResult, type RenderOptions } from './render-svg.js';
|
|
5
7
|
export { exportPageSvg, MAX_SVG_EXPORT_BYTES, type SvgExportOptions, type SvgExportResult, } from './export-svg.js';
|
|
6
8
|
export { createPrintSnapshot, PRINT_SNAPSHOT_LIMITS, type PrintSnapshot, type PrintSnapshotPage, type PrintSnapshotOptions, type PrintSnapshotLimits, type PrintSnapshotUsage, type CurrentPagePrintSnapshotOptions, } from './print-snapshot.js';
|
|
7
|
-
export { eventKeys, propertyKeys, type ViewerProperties, type ViewerEvents, type ViewerCallbacks, type ViewerOptions, type VsdxSource, } from 'ooxml-core/visio/ui';
|
|
9
|
+
export { eventKeys, propertyKeys, type ViewerProperties, type ViewerEvents, type ViewerCallbacks, type ViewerOptions, type VsdxSource, type VisioShapeSelection, } from 'ooxml-core/visio/ui';
|
|
8
10
|
export type { VisioDocument, VisioPage, VisioShape, VisioDiagnostic } from 'ooxml-core/visio';
|
|
9
11
|
export { createWorkerParser, type CancellableParser } from './worker-parser.js';
|
|
10
12
|
export { compatibilityNotes, compatibilityText, type CompatibilityNote } from 'ooxml-core/visio/ui';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type VisioTextOccurrence, type VisioTextReplacePlan, type VisioTextReplaceScope } from 'ooxml-core/visio/ui';
|
|
2
|
+
import type { VisioDocument, VisioEdit } from 'ooxml-core/visio';
|
|
3
|
+
declare const replacementToken: unique symbol;
|
|
4
|
+
/** Internal owned scope; contains no retained source bytes or document model. */
|
|
5
|
+
export interface ViewerTextReplaceToken {
|
|
6
|
+
readonly [replacementToken]: true;
|
|
7
|
+
}
|
|
8
|
+
export type ViewerTextReplaceScope = VisioTextReplaceScope['scope'];
|
|
9
|
+
export interface ReplacementContext {
|
|
10
|
+
readonly sourceGeneration: number;
|
|
11
|
+
readonly documentGeneration: number;
|
|
12
|
+
readonly operationGeneration: number;
|
|
13
|
+
readonly selectionIntent: number;
|
|
14
|
+
readonly navigationIntent: number;
|
|
15
|
+
readonly pageId: string;
|
|
16
|
+
readonly pageIndex: number;
|
|
17
|
+
}
|
|
18
|
+
interface Scope {
|
|
19
|
+
readonly scope: ViewerTextReplaceScope;
|
|
20
|
+
readonly pageId: string;
|
|
21
|
+
readonly selection: readonly {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly pageId?: string;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
26
|
+
export interface ViewerTextReplacementInput {
|
|
27
|
+
readonly query: string;
|
|
28
|
+
readonly replacement: string;
|
|
29
|
+
readonly mode: 'current' | 'all';
|
|
30
|
+
readonly current?: VisioTextOccurrence;
|
|
31
|
+
}
|
|
32
|
+
interface Bridge {
|
|
33
|
+
context(): ReplacementContext | undefined;
|
|
34
|
+
document(): VisioDocument | null;
|
|
35
|
+
selection(): Scope['selection'];
|
|
36
|
+
navigate(occurrence: VisioTextOccurrence, context: ReplacementContext): ReplacementContext;
|
|
37
|
+
mutate(edits: readonly VisioEdit[], next: VisioTextOccurrence | undefined, context: ReplacementContext, owner: object): Promise<ReplacementContext>;
|
|
38
|
+
cancel(owner: object): void;
|
|
39
|
+
}
|
|
40
|
+
export declare const replacementCancelled: () => DOMException;
|
|
41
|
+
export declare function sameReplacementContext(a: ReplacementContext, b: ReplacementContext): boolean;
|
|
42
|
+
/** Controller orchestration only: core owns scopes, occurrence matching and command planning. */
|
|
43
|
+
export declare class ViewerTextReplacement {
|
|
44
|
+
#private;
|
|
45
|
+
private readonly bridge;
|
|
46
|
+
constructor(bridge: Bridge);
|
|
47
|
+
capture(scope: ViewerTextReplaceScope): ViewerTextReplaceToken;
|
|
48
|
+
current(token: ViewerTextReplaceToken): boolean;
|
|
49
|
+
/** Cancellation is bound to this token's application, even after scope intent changes. */
|
|
50
|
+
cancel(token: ViewerTextReplaceToken): void;
|
|
51
|
+
occurrences(token: ViewerTextReplaceToken, query: string): readonly VisioTextOccurrence[];
|
|
52
|
+
plan(token: ViewerTextReplaceToken, input: ViewerTextReplacementInput): VisioTextReplacePlan;
|
|
53
|
+
navigate(token: ViewerTextReplaceToken, occurrence: VisioTextOccurrence, query: string): ViewerTextReplaceToken;
|
|
54
|
+
apply(plan: VisioTextReplacePlan, token: ViewerTextReplaceToken): Promise<ViewerTextReplaceToken>;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -1,13 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
import type { VisioShapeFormatEdit } from 'ooxml-core/visio';
|
|
2
|
+
import type { VisioArrangement } from 'ooxml-core/visio/ui';
|
|
3
|
+
export type CanvasTool = 'pointer' | 'rectangle' | 'ellipse' | 'line' | 'text';
|
|
4
|
+
export type VisioFormattingAction = {
|
|
5
|
+
type: 'text-toggle';
|
|
6
|
+
property: 'bold' | 'italic' | 'underline' | 'strikethrough';
|
|
7
|
+
} | {
|
|
8
|
+
type: 'font-color';
|
|
9
|
+
value?: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'text-bullets';
|
|
12
|
+
} | {
|
|
13
|
+
type: 'text-indent';
|
|
14
|
+
direction: 'increase' | 'decrease';
|
|
15
|
+
} | {
|
|
16
|
+
type: 'font-family';
|
|
17
|
+
value: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'font-size';
|
|
20
|
+
value: number;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'font-step';
|
|
23
|
+
direction: 1 | -1;
|
|
24
|
+
} | {
|
|
25
|
+
type: 'text-align';
|
|
26
|
+
axis: 'horizontal';
|
|
27
|
+
value: 'left' | 'center' | 'right' | 'justify';
|
|
28
|
+
} | {
|
|
29
|
+
type: 'text-align';
|
|
30
|
+
axis: 'vertical';
|
|
31
|
+
value: 'top' | 'middle' | 'bottom';
|
|
32
|
+
} | {
|
|
33
|
+
type: 'shape-format';
|
|
34
|
+
patch: Omit<VisioShapeFormatEdit, 'type' | 'pageId' | 'shapeId'>;
|
|
35
|
+
} | {
|
|
36
|
+
type: 'shape-order';
|
|
37
|
+
order: 'front' | 'back' | 'forward' | 'backward';
|
|
38
|
+
};
|
|
2
39
|
/** Every command the Visio ribbon, status bar or a shortcut can raise, as a `ribbon-action` event. */
|
|
3
|
-
export type VisioRibbonAction = {
|
|
40
|
+
export type VisioRibbonAction = VisioFormattingAction | {
|
|
41
|
+
type: 'arrange';
|
|
42
|
+
operation: VisioArrangement;
|
|
43
|
+
} | {
|
|
44
|
+
type: 'selection';
|
|
45
|
+
mode: 'all' | 'clear';
|
|
46
|
+
} | {
|
|
4
47
|
type: 'history';
|
|
5
48
|
key: 'undo' | 'redo';
|
|
6
49
|
} | {
|
|
7
50
|
type: 'tool';
|
|
8
51
|
tool: CanvasTool;
|
|
52
|
+
} | {
|
|
53
|
+
type: 'cancel-drawing';
|
|
54
|
+
} | {
|
|
55
|
+
type: 'page-insert';
|
|
56
|
+
} | {
|
|
57
|
+
type: 'paint-properties';
|
|
9
58
|
} | {
|
|
10
59
|
type: 'delete';
|
|
60
|
+
} | {
|
|
61
|
+
type: 'duplicate';
|
|
62
|
+
} | {
|
|
63
|
+
type: 'clipboard';
|
|
64
|
+
operation: 'copy' | 'cut' | 'paste';
|
|
65
|
+
event?: ClipboardEvent;
|
|
11
66
|
} | {
|
|
12
67
|
type: 'rotate';
|
|
13
68
|
direction: 'left' | 'right';
|
|
@@ -25,6 +80,8 @@ export type VisioRibbonAction = {
|
|
|
25
80
|
type: 'grid';
|
|
26
81
|
} | {
|
|
27
82
|
type: 'panZoom';
|
|
83
|
+
} | {
|
|
84
|
+
type: 'sizePosition';
|
|
28
85
|
} | {
|
|
29
86
|
type: 'ruler';
|
|
30
87
|
} | {
|
|
@@ -37,6 +94,8 @@ export type VisioRibbonAction = {
|
|
|
37
94
|
percent: number;
|
|
38
95
|
} | {
|
|
39
96
|
type: 'search';
|
|
97
|
+
} | {
|
|
98
|
+
type: 'replace';
|
|
40
99
|
} | {
|
|
41
100
|
type: 'page';
|
|
42
101
|
step: 1 | -1;
|
|
@@ -40,13 +40,14 @@ export declare function group(doc: Document, label: string, children: readonly H
|
|
|
40
40
|
}): HTMLElement;
|
|
41
41
|
/** A labelled shared checkbox (Visio's View > Show options). */
|
|
42
42
|
export declare function check(doc: Document, spec: CommandSpec): HTMLElement;
|
|
43
|
-
/** A shared select shown as Visio's font or size combo
|
|
43
|
+
/** A shared select shown as Visio's font or size combo. */
|
|
44
44
|
export declare function combo(doc: Document, spec: {
|
|
45
45
|
id: string;
|
|
46
46
|
label: string;
|
|
47
47
|
placeholder: string;
|
|
48
48
|
width: number;
|
|
49
|
-
unsupported
|
|
49
|
+
unsupported?: string;
|
|
50
|
+
action?: (value: string) => VisioRibbonAction;
|
|
50
51
|
}): HTMLElement;
|
|
51
52
|
/** A keyboard-navigable row of groups (the shared `office-ui-toolbar`). */
|
|
52
53
|
export declare function commandRow(doc: Document, label: string, children: readonly HTMLElement[]): HTMLElement;
|
|
@@ -1,21 +1,34 @@
|
|
|
1
1
|
import type { ViewerController } from './controller.js';
|
|
2
|
-
import type { VisioRibbonAction, CanvasTool } from './ribbon-action.js';
|
|
2
|
+
import type { VisioRibbonAction, CanvasTool, VisioFormattingAction } from './ribbon-action.js';
|
|
3
3
|
/** The controllers a ribbon action can reach. The element supplies each one. */
|
|
4
4
|
export interface RibbonTargets {
|
|
5
5
|
controller: ViewerController;
|
|
6
6
|
history(key: 'undo' | 'redo'): void;
|
|
7
7
|
deleteSelection(): void;
|
|
8
|
+
duplicateSelection(): void;
|
|
9
|
+
clipboard(action: Extract<VisioRibbonAction, {
|
|
10
|
+
type: 'clipboard';
|
|
11
|
+
}>): void;
|
|
8
12
|
rotateSelection(direction: 'left' | 'right'): void;
|
|
9
13
|
flipSelection(axis: 'horizontal' | 'vertical'): void;
|
|
14
|
+
formatSelection(action: VisioFormattingAction): void;
|
|
15
|
+
arrangeSelection(action: Extract<VisioRibbonAction, {
|
|
16
|
+
type: 'arrange';
|
|
17
|
+
}>): void;
|
|
10
18
|
setTool(tool: CanvasTool): void;
|
|
19
|
+
cancelDrawing(): void;
|
|
20
|
+
insertPage(): void;
|
|
21
|
+
showPaintProperties(): void;
|
|
11
22
|
toggleGrid(): void;
|
|
12
23
|
toggleRuler(): void;
|
|
13
24
|
togglePanZoom(): void;
|
|
25
|
+
toggleSizePosition(): void;
|
|
14
26
|
toggleFullscreen(): void;
|
|
15
27
|
togglePane(pane: 'shapes' | 'inspector'): void;
|
|
16
28
|
reveal(panel: 'edit' | 'notes' | 'selection' | 'layers', focusText: boolean): void;
|
|
17
29
|
fit(mode: 'page' | 'width'): void;
|
|
18
30
|
focusSearch(): void;
|
|
31
|
+
focusReplace(): void;
|
|
19
32
|
}
|
|
20
33
|
/** Routes a ribbon, status-bar or shortcut action to the controller that owns it. */
|
|
21
34
|
export declare function routeRibbonAction(targets: RibbonTargets, action: VisioRibbonAction): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandSpec } from './ribbon-parts.js';
|
|
2
|
+
/** The common Office solid font colors, with an explicit typed action per entry. */
|
|
3
|
+
export declare function fontColorOptions(): CommandSpec[];
|
|
4
|
+
/** Supported solid paints use the shared Office menu and source-backed format actions. */
|
|
5
|
+
export declare function paintOptions(target: 'fill' | 'line'): CommandSpec[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VisioArrangement } from 'ooxml-core/visio/ui';
|
|
2
|
+
import type { ViewerController, ViewerState } from './controller.js';
|
|
3
|
+
/** Arrangement controls submit one core-planned batch; the source transaction proves support. */
|
|
4
|
+
export declare class ViewerArrangement {
|
|
5
|
+
#private;
|
|
6
|
+
private readonly root;
|
|
7
|
+
private readonly controller;
|
|
8
|
+
private readonly edit;
|
|
9
|
+
constructor(root: ShadowRoot, controller: ViewerController, edit: (run: () => Promise<void>, message: string) => void);
|
|
10
|
+
run(action: VisioArrangement): void;
|
|
11
|
+
/** Returns whether Position can open for distribution even when rotation is unavailable. */
|
|
12
|
+
render(state: ViewerState): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ViewerController, ViewerState } from './controller.js';
|
|
2
|
+
export type ClipboardOperation = 'copy' | 'cut' | 'paste';
|
|
3
|
+
/** Browser clipboard transport only; payload and source transactions belong to core/controller. */
|
|
4
|
+
export declare class ViewerClipboard {
|
|
5
|
+
#private;
|
|
6
|
+
private readonly root;
|
|
7
|
+
private readonly controller;
|
|
8
|
+
private readonly announce;
|
|
9
|
+
private readonly refresh;
|
|
10
|
+
constructor(root: ShadowRoot, controller: ViewerController, announce: (message: string) => void, refresh: () => void);
|
|
11
|
+
private get clipboard();
|
|
12
|
+
/** When asynchronous APIs are absent, the browser's native clipboard event keeps its data. */
|
|
13
|
+
canUseAsync(operation: ClipboardOperation): boolean;
|
|
14
|
+
private baseReason;
|
|
15
|
+
private selectionReason;
|
|
16
|
+
private hasPromiseWrite;
|
|
17
|
+
private operationReason;
|
|
18
|
+
run(operation: ClipboardOperation, event?: ClipboardEvent): Promise<void>;
|
|
19
|
+
wire(): () => void;
|
|
20
|
+
render(state: ViewerState): void;
|
|
21
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ViewerController, ViewerState } from './controller.js';
|
|
2
2
|
import { type VisioRibbonAction, type CanvasTool } from './ribbon-action.js';
|
|
3
3
|
import type { Rulers } from './viewer-ruler.js';
|
|
4
|
+
import { type ClipboardOperation } from './viewer-clipboard.js';
|
|
4
5
|
export type { CanvasTool } from './ribbon-action.js';
|
|
5
6
|
interface CommandHost {
|
|
6
7
|
root: ShadowRoot;
|
|
@@ -11,7 +12,9 @@ interface CommandHost {
|
|
|
11
12
|
togglePane(pane: 'shapes' | 'inspector'): void;
|
|
12
13
|
reveal(panel: 'edit' | 'notes' | 'selection' | 'layers', focusText: boolean): void;
|
|
13
14
|
focusSearch(): void;
|
|
15
|
+
focusReplace?(): void;
|
|
14
16
|
togglePanZoom(): void;
|
|
17
|
+
toggleSizePosition(): void;
|
|
15
18
|
/** Transient command feedback for the status bar; document text is never interpreted as markup. */
|
|
16
19
|
announce(message: string): void;
|
|
17
20
|
toolChanged?(): void;
|
|
@@ -26,6 +29,8 @@ export declare class ViewerCommands {
|
|
|
26
29
|
private readonly host;
|
|
27
30
|
constructor(host: CommandHost);
|
|
28
31
|
get tool(): CanvasTool;
|
|
32
|
+
/** Browser clipboard transport used by the element's public clipboard methods. */
|
|
33
|
+
clipboard(operation: ClipboardOperation): Promise<void>;
|
|
29
34
|
/** Run one typed action, exactly as a ribbon control or shortcut would. */
|
|
30
35
|
run(action: VisioRibbonAction): void;
|
|
31
36
|
wire(): () => void;
|