ooxml-ui 1.38.0 → 1.39.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.
@@ -2,4 +2,3 @@ export type OfficeUiBlockKind = 'toolbar' | 'formula-bar' | 'tabs' | 'inspector'
2
2
  export type OfficeUiProduct = 'docx' | 'xlsx' | 'visio' | 'pptx';
3
3
  /** Opt-in styles for native framework controls. They never target host-owned controls implicitly. */
4
4
  export declare const BUILDING_BLOCKS_CSS: string;
5
- //# sourceMappingURL=building-block-styles.d.ts.map
@@ -1,2 +1,3 @@
1
1
  /** Simplified Chinese captions of the shared chart Format pane, by `chartFormat.*` key. */
2
2
  export declare const chartFormatZhCN: Readonly<Record<string, string>>;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -20,4 +20,3 @@ export declare function chartFormatSourceTabs(source: ChartFormatSource, target:
20
20
  * the mode's first tab. A `flat` source gets every chart section on one page.
21
21
  */
22
22
  export declare function buildChartFormatModel(source: ChartFormatSource, targetKey: string | undefined, tab?: ChartFormatTabId, mode?: ChartFormatPaneMode): ChartFormatPaneModel;
23
- //# sourceMappingURL=format-pane-model.d.ts.map
@@ -11,4 +11,3 @@ type OptionsSource = Pick<ChartFormatSource, 'seriesOptions' | 'axisOptions' | '
11
11
  /** The Options tab's sections for `target`, or `undefined` when the target has no options. */
12
12
  export declare function optionsSections(source: OptionsSource, target: ChartFormatTarget): ChartFormatSection[] | undefined;
13
13
  export {};
14
- //# sourceMappingURL=format-pane-options.d.ts.map
@@ -22,4 +22,3 @@ export declare function chartFormatPaneTitle(target: ChartFormatTarget): ChartFo
22
22
  export declare function chartFormatTargetOptions(targets: readonly ChartFormatTarget[], describe: ChartFormatDescribe): ChartFormatTargetOption[];
23
23
  /** The chart area entry, what a stale or missing key falls back to. */
24
24
  export declare const CHART_AREA_TARGET: ChartFormatTargetOption;
25
- //# sourceMappingURL=format-pane-targets.d.ts.map
@@ -4,4 +4,3 @@ import type { ChartFormatTextView } from './format-pane-view.js';
4
4
  export declare function chartTextTabs(): ChartFormatTab[];
5
5
  /** The sections of Text Options tab `tab`. */
6
6
  export declare function textOptionsSections(text: ChartFormatTextView, tab: 'textFill' | 'textEffects' | 'textBox'): ChartFormatSection[];
7
- //# sourceMappingURL=format-pane-text.d.ts.map
@@ -14,5 +14,4 @@ export declare class OfficeUiAccount extends OfficeElement {
14
14
  private onSwatchKey;
15
15
  protected render(): import("lit").TemplateResult<1>;
16
16
  }
17
- export declare const defineAccount: import("../registry.js").Definer;
18
- //# sourceMappingURL=account.d.ts.map
17
+ export declare const defineAccount: import("../index.js").Definer;
@@ -18,4 +18,3 @@ export interface FindReplaceFields {
18
18
  }
19
19
  /** Optional product-neutral Replace controls; matching, scopes and transactions belong to core. */
20
20
  export declare function findReplaceFields(state: FindReplaceFields): import("lit").TemplateResult<1>;
21
- //# sourceMappingURL=find-replace-fields.d.ts.map
@@ -104,5 +104,4 @@ export declare class OfficeUiRuler extends OfficeElement {
104
104
  private draw;
105
105
  protected render(): import("lit").TemplateResult<1>;
106
106
  }
107
- export declare const defineRuler: import("../registry.js").Definer;
108
- //# sourceMappingURL=ruler.d.ts.map
107
+ export declare const defineRuler: import("../index.js").Definer;
@@ -24,4 +24,3 @@ export interface TabDragHost {
24
24
  }
25
25
  /** Wires pointer dragging on `host.area`; returns a disposer. */
26
26
  export declare function wireTabDrag(host: TabDragHost): () => void;
27
- //# sourceMappingURL=tab-drag.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-GZNBWWJ5.js';
2
- import { TEAMS_TAGS, registerTeams } from './chunk-FKLH7ZVV.js';
2
+ import { TEAMS_TAGS, registerTeams } from './chunk-FYBLAPAJ.js';
3
3
  import { installOfficeUiTheme } from './chunk-T5ARELU2.js';
4
4
  import { registerControls } from './chunk-QAX4FAB7.js';
5
5
  import { definePresence } from './chunk-YZH2QS7J.js';
@@ -16,4 +16,3 @@ export declare function createDialogSession<T>(options: DialogSessionOptions<T>)
16
16
  close: (value?: T) => void;
17
17
  dispose: () => void;
18
18
  };
19
- //# sourceMappingURL=dialog-session.d.ts.map
@@ -47,4 +47,3 @@ export declare abstract class OfficeUiCheckable extends OfficeElement {
47
47
  /** The tick, shown through CSS when `checked`. */
48
48
  protected renderCheck(): import("lit").TemplateResult<1>;
49
49
  }
50
- //# sourceMappingURL=checkable.d.ts.map
@@ -65,5 +65,4 @@ export declare class OfficeUiRadio extends OfficeElement {
65
65
  protected willUpdate(): void;
66
66
  protected render(): import("lit").TemplateResult<1>;
67
67
  }
68
- export declare const defineRadio: import("../registry.js").Definer;
69
- //# sourceMappingURL=radio.d.ts.map
68
+ export declare const defineRadio: import("../index.js").Definer;
@@ -11,4 +11,3 @@ export interface RangeControlOptions {
11
11
  }
12
12
  /** Native keyboard, pointer and accessibility behavior shared by Office range controls. */
13
13
  export declare function rangeControl(options: RangeControlOptions): import("lit").TemplateResult<1>;
14
- //# sourceMappingURL=range-control.d.ts.map
@@ -40,4 +40,3 @@ export declare function probeNativeImageSize(src: string): Promise<NativeImageSi
40
40
  export declare function clearNativeImageSizeCache(): void;
41
41
  /** Test-only compatibility alias. */
42
42
  export declare function _resetNativeImageSizeCacheForTests(): void;
43
- //# sourceMappingURL=image-native-size.d.ts.map
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-PMXLEYK6.js';
1
+ export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-IZ7XMMMJ.js';
2
2
  export { createRecoveryScheduler } from './chunk-DA57FPSN.js';
3
3
  export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-6VF4FEMY.js';
4
4
  export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-GZNBWWJ5.js';
5
- export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FKLH7ZVV.js';
5
+ export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FYBLAPAJ.js';
6
6
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-BOTLS2PR.js';
7
7
  import './chunk-CDAXY5KC.js';
8
8
  import './chunk-NDUD5JJB.js';
@@ -6,4 +6,3 @@
6
6
  export declare function buildArtisticFilterMarkup(effectName: string, radius: number): string | undefined;
7
7
  export declare function buildSimpleArtisticCss(effect: string, radius: number): string;
8
8
  export declare const ARTISTIC_PREVIEW_EFFECTS: Set<string>;
9
- //# sourceMappingURL=picture-artistic-filters.d.ts.map
@@ -28,4 +28,3 @@ export declare function emit<T>(host: HTMLElement, type: string, detail: T, canc
28
28
  * `checked={on ? '' : undefined}`) therefore keep working.
29
29
  */
30
30
  export declare function present(value: unknown): boolean;
31
- //# sourceMappingURL=registry.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const RENDER_CACHE_MAX_BYTES: number;
2
2
  /** FIFO retention limit; oversized results still render, but are not memoised. */
3
3
  export declare function setBoundedRenderCache<T>(cache: Map<string, T>, key: string, value: T, maxEntries: number): void;
4
- //# sourceMappingURL=render-cache.d.ts.map
@@ -7,5 +7,4 @@ export declare class OfficeUiRibbonStack extends OfficeElement {
7
7
  static styles: import("lit").CSSResult[];
8
8
  protected render(): import("lit").TemplateResult<1>;
9
9
  }
10
- export declare const defineRibbonStack: import("../registry.js").Definer;
11
- //# sourceMappingURL=ribbon-stack.d.ts.map
10
+ export declare const defineRibbonStack: import("../index.js").Definer;
package/dist/styles.d.ts CHANGED
@@ -3,4 +3,3 @@
3
3
  * focus ring. `controlStyles` (base.ts) puts it ahead of each element's own `.css` file.
4
4
  */
5
5
  export declare const COMMON_CONTROL_CSS: string;
6
- //# sourceMappingURL=styles.d.ts.map
package/dist/teams.js CHANGED
@@ -1,4 +1,4 @@
1
- export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FKLH7ZVV.js';
1
+ export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FYBLAPAJ.js';
2
2
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-BOTLS2PR.js';
3
3
  import './chunk-CDAXY5KC.js';
4
4
  import './chunk-NDUD5JJB.js';
package/dist/theme.d.ts CHANGED
@@ -15,4 +15,3 @@ export declare function installOfficeUiTheme(root?: Document | ShadowRoot | unde
15
15
  export declare function installOfficeUiThemeFor(host: HTMLElement): boolean;
16
16
  /** Marks only the library control's own root. Theme state and custom tokens stay on host scopes. */
17
17
  export declare function prepareOfficeUiBlock(host: HTMLElement, kind: OfficeUiBlockKind, product?: OfficeUiProduct): void;
18
- //# sourceMappingURL=theme.d.ts.map
package/dist/tokens.d.ts CHANGED
@@ -281,4 +281,3 @@ export declare const FOCUS_RING: string;
281
281
  */
282
282
  export declare const COMPACT = "(max-width: 767px)";
283
283
  export declare const TOUCH = "(pointer: coarse), (max-width: 767px)";
284
- //# sourceMappingURL=tokens.d.ts.map
@@ -1,10 +1,15 @@
1
1
  import { type VisioMatrix, type VisioShape } from 'ooxml-core/visio';
2
2
  /**
3
- * Bevel: an approximation. The shape's filled geometry is blurred by the bevel width, lit from the
4
- * top left with a diffuse light, and only the departure from a flat surface is kept: white where
5
- * the surface faces the light, black where it faces away. Inset bevels invert the light and hard
6
- * profiles narrow the blur. Visio's own bevel profiles, materials and lighting are not reproduced,
7
- * and the result changes slightly with the zoom because SVG lighting works on device pixels.
3
+ * Bevel: the shape's filled geometry becomes a height field and is lit.
4
+ *
5
+ * The geometry's alpha is blurred (the blur reads as a smooth distance to the edge), a transfer
6
+ * table from `bevelHeightTable` turns that distance into the bevel type's profile height, and
7
+ * `feDiffuseLighting` lights it with the directional light fitted to the shape's
8
+ * `BevelLightingType` (`bevelLight`). Only the departure from the flat face is kept: black where
9
+ * the surface is darker than the face, white where it is brighter, scaled by the material. The
10
+ * powder materials add a white lift. Straight edges follow the profile; corners are rounded by the
11
+ * blur where Visio mitres them, and the strength changes slightly with zoom because SVG lighting
12
+ * works on device pixels. See `bevel-shading.ts` for what was measured and what was shaped by eye.
8
13
  */
9
14
  export declare function renderBevel(shape: VisioShape, paths: readonly SVGPathElement[], defs: SVGDefsElement, world: VisioMatrix,
10
15
  /** The filter region when the paths were projected beyond the flat shape's box. */
@@ -18,9 +23,19 @@ box?: {
18
23
  * 3-D rotation: a parallel projection of the flat shape about its centre, as a matrix on a wrapper
19
24
  * group. A shape with perspective or an extrusion is drawn through `solidRender` instead: its
20
25
  * outline is projected point by point, and this wrapper (`projected`) then carries only what stays
21
- * flat in that mode (text, pictures), parallel-projected. Visio's own SVG export ignores the
26
+ * flat in that mode (text, pictures), see `flatContent`. Visio's own SVG export ignores the
22
27
  * rotation, its raster export draws it.
23
28
  */
24
29
  export declare function rotation3dWrapper(shape: VisioShape, projected?: boolean): SVGGElement | undefined;
25
- /** The parallel-projected container for text and pictures of a shape drawn from projected paths. */
26
- export declare function flatContent(shape: VisioShape): SVGGElement;
30
+ /**
31
+ * The container for text and pictures of a shape drawn from projected paths: the pinhole
32
+ * projection of the shape's box fitted by one affine matrix (`projectionMatrix`), so the content
33
+ * follows the perspective's overall foreshortening and shear but not its convergence.
34
+ */
35
+ export declare function flatContent(shape: VisioShape, world: VisioMatrix): SVGGElement;
36
+ /**
37
+ * The container for the children of a group that is turned in 3-D: the group's projection fitted
38
+ * by one matrix (exact for a parallel rotation, an affine fit for perspective), so every child is
39
+ * turned with the group about the group's centre. A child's own rotation composes inside it.
40
+ */
41
+ export declare function groupChildrenWrapper(shape: VisioShape, world: VisioMatrix): SVGGElement | undefined;
@@ -9,7 +9,9 @@ export interface TabbedSegment {
9
9
  export declare const lineHasTab: (line: PositionedLine) => boolean;
10
10
  /**
11
11
  * Splits a left-aligned line at its tab characters and places each part at the tab stop it
12
- * reaches (see `visioTabStarts`). The tab characters themselves are not drawn. Lines of other
13
- * alignments keep their single run of text, as before.
12
+ * reaches (see `visioTabStarts`). The tab characters themselves are not drawn. A centred or
13
+ * right-aligned line is laid out from its own start (Visio 16 measures the stops from there) and
14
+ * the whole line then moves to its anchor; justified and distributed lines keep their single run
15
+ * of text, as before.
14
16
  */
15
17
  export declare function layoutTabbedLine(line: PositionedLine, measure?: MeasureText): TabbedSegment[] | undefined;
@@ -11,5 +11,5 @@ export declare class ViewerInlineSize {
11
11
  constructor(root: ShadowRoot, controller: ViewerController);
12
12
  wire(): () => void;
13
13
  inputs(): HTMLInputElement[];
14
- render(state: ViewerState): void;
14
+ render(state: ViewerState, committed?: boolean): void;
15
15
  }