ooxml-ui 0.20.0 → 0.22.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.
Files changed (114) hide show
  1. package/README.md +47 -2
  2. package/dist/base.d.ts +118 -0
  3. package/dist/{account.d.ts → chrome/account-profile.d.ts} +0 -6
  4. package/dist/chrome/account.d.ts +17 -0
  5. package/dist/chrome/backstage.d.ts +78 -0
  6. package/dist/chrome/find-bar.d.ts +111 -0
  7. package/dist/chrome/print-preview.d.ts +39 -0
  8. package/dist/chrome/ruler.d.ts +43 -0
  9. package/dist/chrome/status-bar.d.ts +80 -0
  10. package/dist/chrome/status-item.d.ts +40 -0
  11. package/dist/chrome/tab-strip.d.ts +88 -0
  12. package/dist/chrome/title-bar-types.d.ts +75 -0
  13. package/dist/chrome/title-bar.d.ts +81 -0
  14. package/dist/{chunk-7XBKSYGM.js → chunk-2X6QYQ3Q.js} +10 -1
  15. package/dist/{chunk-4JQLQROF.js → chunk-3MDKXKKQ.js} +53 -65
  16. package/dist/chunk-5A4REH6T.js +259 -0
  17. package/dist/chunk-E47762NY.js +90 -0
  18. package/dist/chunk-HNGJI5EZ.js +834 -0
  19. package/dist/{chunk-G3LAGZEW.js → chunk-HSJH6SUW.js} +33 -1
  20. package/dist/{chunk-W5PYFBEZ.js → chunk-HZ422LTR.js} +1 -49
  21. package/dist/chunk-LKLZOPTO.js +4536 -0
  22. package/dist/controls.d.ts +56 -46
  23. package/dist/controls.js +5 -5
  24. package/dist/dialog/dialog-footer.d.ts +40 -0
  25. package/dist/dialog/dialog.d.ts +52 -0
  26. package/dist/{options.d.ts → dialog/options-dialog.d.ts} +46 -1
  27. package/dist/form/checkable.d.ts +49 -0
  28. package/dist/form/checkbox.d.ts +8 -0
  29. package/dist/form/radio.d.ts +68 -0
  30. package/dist/form/search-field.d.ts +54 -0
  31. package/dist/{select-menu.d.ts → form/select-menu.d.ts} +3 -13
  32. package/dist/form/select.d.ts +115 -0
  33. package/dist/form/switch.d.ts +11 -0
  34. package/dist/form/zoom-slider.d.ts +78 -0
  35. package/dist/glyph.d.ts +2 -0
  36. package/dist/icon.d.ts +19 -0
  37. package/dist/icons.d.ts +0 -3
  38. package/dist/icons.js +1 -3
  39. package/dist/index.d.ts +4 -1
  40. package/dist/index.js +16 -12
  41. package/dist/menu/command-search.d.ts +74 -0
  42. package/dist/menu/context-menu.d.ts +89 -0
  43. package/dist/menu/menu-button.d.ts +77 -0
  44. package/dist/menu/menu-item.d.ts +52 -0
  45. package/dist/{menu-model.d.ts → menu/menu-model.d.ts} +2 -0
  46. package/dist/menu/menu-separator.d.ts +7 -0
  47. package/dist/notices/paste-options.d.ts +41 -0
  48. package/dist/notices/read-only-banner.d.ts +53 -0
  49. package/dist/notices/toasts.d.ts +40 -0
  50. package/dist/presence/presence.d.ts +53 -0
  51. package/dist/presence.d.ts +1 -31
  52. package/dist/presence.js +3 -3
  53. package/dist/ribbon/button.d.ts +60 -0
  54. package/dist/ribbon/gallery-styles.d.ts +2 -0
  55. package/dist/ribbon/gallery.d.ts +97 -0
  56. package/dist/ribbon/ribbon-group.d.ts +35 -0
  57. package/dist/{ribbon-section.d.ts → ribbon/ribbon-section.d.ts} +14 -1
  58. package/dist/ribbon/ribbon-stack.d.ts +10 -0
  59. package/dist/ribbon/ribbon-tabs.d.ts +82 -0
  60. package/dist/ribbon/ribbon-toggle.d.ts +49 -0
  61. package/dist/ribbon/ribbon-toolbar.d.ts +15 -0
  62. package/dist/smartart/smartart.d.ts +43 -0
  63. package/dist/smartart.d.ts +1 -14
  64. package/dist/smartart.js +3 -3
  65. package/dist/styles.d.ts +1 -4
  66. package/dist/teams/app-rail.d.ts +29 -0
  67. package/dist/teams/avatar.d.ts +39 -0
  68. package/dist/teams/base.d.ts +17 -0
  69. package/dist/teams/call-controls.d.ts +61 -0
  70. package/dist/teams/call-grid.d.ts +33 -0
  71. package/dist/teams/channel-list.d.ts +40 -0
  72. package/dist/teams/chat-composer.d.ts +60 -0
  73. package/dist/teams/chat-list.d.ts +51 -0
  74. package/dist/teams/icons.d.ts +3 -0
  75. package/dist/teams/index.d.ts +14 -0
  76. package/dist/teams/prejoin.d.ts +40 -0
  77. package/dist/teams.js +5 -0
  78. package/dist/theme.js +2 -2
  79. package/dist/tokens.d.ts +245 -214
  80. package/package.json +12 -6
  81. package/dist/backstage.d.ts +0 -28
  82. package/dist/button.d.ts +0 -14
  83. package/dist/checkable.d.ts +0 -4
  84. package/dist/chrome-controls.d.ts +0 -52
  85. package/dist/chunk-24MMSCKW.js +0 -119
  86. package/dist/chunk-UEJ4F33J.js +0 -78
  87. package/dist/chunk-W7YI5DSJ.js +0 -5970
  88. package/dist/command-search.d.ts +0 -18
  89. package/dist/context-menu.d.ts +0 -20
  90. package/dist/dialog.d.ts +0 -13
  91. package/dist/document-notices.d.ts +0 -55
  92. package/dist/find-bar.d.ts +0 -15
  93. package/dist/gallery-styles.d.ts +0 -7
  94. package/dist/gallery-view.d.ts +0 -53
  95. package/dist/gallery.d.ts +0 -20
  96. package/dist/menu.d.ts +0 -15
  97. package/dist/print-preview.d.ts +0 -11
  98. package/dist/radio.d.ts +0 -1
  99. package/dist/ribbon-tabs.d.ts +0 -14
  100. package/dist/ribbon-toggle.d.ts +0 -1
  101. package/dist/ribbon.d.ts +0 -24
  102. package/dist/ruler.d.ts +0 -10
  103. package/dist/search-field.d.ts +0 -1
  104. package/dist/select-styles.d.ts +0 -6
  105. package/dist/select.d.ts +0 -19
  106. package/dist/status-bar-view.d.ts +0 -50
  107. package/dist/status-bar.d.ts +0 -19
  108. package/dist/tab-strip.d.ts +0 -20
  109. package/dist/title-bar-search.d.ts +0 -43
  110. package/dist/title-bar-strip.d.ts +0 -20
  111. package/dist/title-bar.d.ts +0 -49
  112. package/dist/zoom-slider.d.ts +0 -9
  113. /package/dist/{safe-svg.d.ts → ribbon/safe-svg.d.ts} +0 -0
  114. /package/dist/{smartart-svg.d.ts → smartart/smartart-svg.d.ts} +0 -0
@@ -0,0 +1,61 @@
1
+ import { type PropertyValues } from 'lit';
2
+ import { TeamsElement } from './base.js';
3
+ export type CallAction = 'chat' | 'people' | 'hand' | 'camera' | 'mic' | 'screen' | 'leave';
4
+ export declare const formatElapsed: (ms: number) => string;
5
+ /**
6
+ * The meeting bar: elapsed time on the left, the controls in the middle (Chat, People, Raise
7
+ * hand, Camera, Mic, Share, Leave). Properties: `title`, `startedAt` (epoch ms), `mic`, `camera`,
8
+ * `screen`, `hand`, `panel` (`'chat' | 'people' | ''`), `shareUnavailable`. Emits
9
+ * `office-call-action` `{ action }`.
10
+ */
11
+ export declare class OfficeUiCallControls extends TeamsElement {
12
+ static styles: import("lit").CSSResult[];
13
+ static properties: {
14
+ heading: {
15
+ type: StringConstructor;
16
+ };
17
+ startedAt: {
18
+ type: NumberConstructor;
19
+ attribute: string;
20
+ };
21
+ mic: {
22
+ type: BooleanConstructor;
23
+ };
24
+ camera: {
25
+ type: BooleanConstructor;
26
+ };
27
+ screen: {
28
+ type: BooleanConstructor;
29
+ };
30
+ hand: {
31
+ type: BooleanConstructor;
32
+ };
33
+ panel: {
34
+ type: StringConstructor;
35
+ };
36
+ shareUnavailable: {
37
+ type: BooleanConstructor;
38
+ attribute: string;
39
+ };
40
+ now: {
41
+ state: boolean;
42
+ };
43
+ };
44
+ heading: string;
45
+ startedAt: number;
46
+ mic: boolean;
47
+ camera: boolean;
48
+ screen: boolean;
49
+ hand: boolean;
50
+ panel: string;
51
+ shareUnavailable: boolean;
52
+ now: number;
53
+ private timer;
54
+ constructor();
55
+ connectedCallback(): void;
56
+ disconnectedCallback(): void;
57
+ protected willUpdate(_changed: PropertyValues<this>): void;
58
+ private button;
59
+ protected render(): import("lit").TemplateResult<1>;
60
+ }
61
+ export declare const defineCallControls: import("../registry.js").Definer;
@@ -0,0 +1,33 @@
1
+ import { TeamsElement } from './base.js';
2
+ export interface CallTile {
3
+ id: string;
4
+ name: string;
5
+ self?: boolean;
6
+ stream?: MediaStream | null;
7
+ audio?: boolean;
8
+ video?: boolean;
9
+ screen?: boolean;
10
+ hand?: boolean;
11
+ /** `connecting` and `failed` show a status chip; anything else is treated as connected. */
12
+ connection?: string;
13
+ }
14
+ /**
15
+ * The meeting stage. Property `participants` (`CallTile[]`). Someone sharing their screen is
16
+ * spotlighted with everyone else in a side strip. Your own tile is muted (no echo) and mirrored
17
+ * unless it shows a screen; tiles without video show the avatar. The grid only attaches the
18
+ * streams it is handed; capture and connections belong to the host.
19
+ */
20
+ export declare class OfficeUiCallGrid extends TeamsElement {
21
+ static styles: import("lit").CSSResult[];
22
+ static properties: {
23
+ participants: {
24
+ attribute: boolean;
25
+ };
26
+ };
27
+ participants: CallTile[];
28
+ constructor();
29
+ connectedCallback(): void;
30
+ protected render(): import("lit").TemplateResult<1>;
31
+ private tile;
32
+ }
33
+ export declare const defineCallGrid: import("../registry.js").Definer;
@@ -0,0 +1,40 @@
1
+ import { TeamsElement } from './base.js';
2
+ export interface ChannelRow {
3
+ id: string;
4
+ name: string;
5
+ topic?: string;
6
+ kind?: 'channel' | 'direct';
7
+ unread?: number;
8
+ /** Someone is in a call in this channel. */
9
+ live?: boolean;
10
+ }
11
+ /**
12
+ * The team and its channels, like the Teams navigation tree. Properties: `heading` (the team
13
+ * name), `channels`, `selectedId`. Emits `office-channel-select` `{ id }` and
14
+ * `office-channel-create` `{}` (the host asks for a name). Unread channels are bold with a count.
15
+ */
16
+ export declare class OfficeUiChannelList extends TeamsElement {
17
+ static styles: import("lit").CSSResult[];
18
+ static properties: {
19
+ heading: {
20
+ type: StringConstructor;
21
+ };
22
+ channels: {
23
+ attribute: boolean;
24
+ };
25
+ selectedId: {
26
+ type: StringConstructor;
27
+ attribute: string;
28
+ };
29
+ collapsed: {
30
+ state: boolean;
31
+ };
32
+ };
33
+ heading: string;
34
+ channels: ChannelRow[];
35
+ selectedId: string;
36
+ collapsed: boolean;
37
+ constructor();
38
+ protected render(): import("lit").TemplateResult<1>;
39
+ }
40
+ export declare const defineChannelList: import("../registry.js").Definer;
@@ -0,0 +1,60 @@
1
+ import { type PropertyValues } from 'lit';
2
+ import { TeamsElement } from './base.js';
3
+ export declare const EMOJI: readonly ['😀', '😄', '😂', '🙂', '😉', '😍', '🤔', '😮', '😢', '😡', '👍', '👎', '👏', '🙏', '💪', '🎉', '🔥', '❤️', '✅', '👀'];
4
+ /**
5
+ * The compose box: a growing text area, attach and emoji buttons, reply or edit banner and a
6
+ * typing line. Enter sends, Shift+Enter adds a line. Properties: `typing` (names), `replyingTo`
7
+ * (a label or null), `editing` (true while editing), `disabled`, `placeholder`, and `value`.
8
+ * Events: `office-chat-send` `{ text, files }`, `office-chat-typing` `{}` (throttled) and
9
+ * `office-chat-cancel` `{}` (the banner's close button or Escape). File bytes are never read here:
10
+ * the host stores them wherever its server says and posts a link.
11
+ */
12
+ export declare class OfficeUiChatComposer extends TeamsElement {
13
+ static styles: import("lit").CSSResult[];
14
+ static properties: {
15
+ typing: {
16
+ attribute: boolean;
17
+ };
18
+ replyingTo: {
19
+ attribute: boolean;
20
+ };
21
+ editing: {
22
+ type: BooleanConstructor;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ reflect: boolean;
27
+ };
28
+ placeholder: {
29
+ type: StringConstructor;
30
+ };
31
+ value: {
32
+ type: StringConstructor;
33
+ };
34
+ files: {
35
+ state: boolean;
36
+ };
37
+ emojiOpen: {
38
+ state: boolean;
39
+ };
40
+ };
41
+ typing: string[];
42
+ replyingTo: string | null;
43
+ editing: boolean;
44
+ disabled: boolean;
45
+ placeholder: string;
46
+ value: string;
47
+ files: File[];
48
+ emojiOpen: boolean;
49
+ private lastTyping;
50
+ constructor();
51
+ protected updated(changed: PropertyValues<this>): void;
52
+ private get canSend();
53
+ private submit;
54
+ private onInput;
55
+ private onKeydown;
56
+ private pick;
57
+ private typingLine;
58
+ protected render(): import("lit").TemplateResult<1>;
59
+ }
60
+ export declare const defineChatComposer: import("../registry.js").Definer;
@@ -0,0 +1,51 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { TeamsElement } from './base.js';
3
+ export interface ChatAttachment {
4
+ name: string;
5
+ kind: 'docx' | 'xlsx' | 'pptx' | 'vsdx' | 'other';
6
+ size?: number;
7
+ url?: string;
8
+ }
9
+ export interface ChatMessage {
10
+ id: string;
11
+ authorId: string;
12
+ authorName: string;
13
+ text: string;
14
+ ts: number;
15
+ editedAt?: number;
16
+ deleted?: boolean;
17
+ replyTo?: string;
18
+ attachments?: ChatAttachment[];
19
+ reactions?: Record<string, string[]>;
20
+ }
21
+ export declare const QUICK_REACTIONS: readonly ['👍', '❤️', '😂', '😮', '😢', '🎉'];
22
+ /**
23
+ * The conversation: messages as Teams-style bubbles with day separators, quoted replies,
24
+ * reaction pills, Office file cards and a hover toolbar. Properties: `messages`, `selfId`.
25
+ * Events (bubbling, composed): `office-chat-react` `{ messageId, emoji }` (toggle),
26
+ * `office-chat-reply` / `office-chat-edit` / `office-chat-delete` `{ messageId }` and
27
+ * `office-chat-open-file` `{ attachment }`. Message text is always rendered as text.
28
+ */
29
+ export declare class OfficeUiChatList extends TeamsElement {
30
+ static styles: import("lit").CSSResult[];
31
+ static properties: {
32
+ messages: {
33
+ attribute: boolean;
34
+ };
35
+ selfId: {
36
+ type: StringConstructor;
37
+ attribute: string;
38
+ };
39
+ };
40
+ messages: ChatMessage[];
41
+ selfId: string;
42
+ private stickToBottom;
43
+ constructor();
44
+ connectedCallback(): void;
45
+ protected updated(): void;
46
+ protected render(): TemplateResult<1>;
47
+ private message;
48
+ private toolbar;
49
+ private files;
50
+ }
51
+ export declare const defineChatList: import("../registry.js").Definer;
@@ -0,0 +1,3 @@
1
+ import { type TemplateResult } from 'lit';
2
+ /** An inline 20x20 icon by registry name (built-in or registered above); empty when unknown. */
3
+ export declare function icon(name: string): TemplateResult | '';
@@ -0,0 +1,14 @@
1
+ export * from './app-rail.js';
2
+ export * from './avatar.js';
3
+ export * from './base.js';
4
+ export * from './call-controls.js';
5
+ export * from './call-grid.js';
6
+ export * from './channel-list.js';
7
+ export * from './chat-composer.js';
8
+ export * from './chat-list.js';
9
+ export * from './icons.js';
10
+ export * from './prejoin.js';
11
+ /** Every tag the team-workspace elements define. */
12
+ export declare const TEAMS_TAGS: readonly ['office-ui-avatar', 'office-ui-app-rail', 'office-ui-channel-list', 'office-ui-chat-list', 'office-ui-chat-composer', 'office-ui-prejoin', 'office-ui-call-grid', 'office-ui-call-controls'];
13
+ /** Define the team-workspace elements. Idempotent; a no-op without a DOM. */
14
+ export declare function registerTeams(): void;
@@ -0,0 +1,40 @@
1
+ import { TeamsElement } from './base.js';
2
+ /**
3
+ * The pre-join screen: a camera preview and the audio/video switches, then "Join now".
4
+ * Properties: `heading`, `name` (you), `preview` (a `MediaStream` or null), `audio`, `video`,
5
+ * `busy` (joining). Events: `office-prejoin-change` `{ audio?, video? }`, `office-prejoin-join`
6
+ * and `office-prejoin-cancel`.
7
+ */
8
+ export declare class OfficeUiPrejoin extends TeamsElement {
9
+ static styles: import("lit").CSSResult[];
10
+ static properties: {
11
+ heading: {
12
+ type: StringConstructor;
13
+ };
14
+ name: {
15
+ type: StringConstructor;
16
+ };
17
+ preview: {
18
+ attribute: boolean;
19
+ };
20
+ audio: {
21
+ type: BooleanConstructor;
22
+ };
23
+ video: {
24
+ type: BooleanConstructor;
25
+ };
26
+ busy: {
27
+ type: BooleanConstructor;
28
+ };
29
+ };
30
+ heading: string;
31
+ name: string;
32
+ preview: MediaStream | null;
33
+ audio: boolean;
34
+ video: boolean;
35
+ busy: boolean;
36
+ constructor();
37
+ private toggle;
38
+ protected render(): import("lit").TemplateResult<1>;
39
+ }
40
+ export declare const definePrejoin: import("../registry.js").Definer;
package/dist/teams.js ADDED
@@ -0,0 +1,5 @@
1
+ export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsElement, colorFor, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, formatElapsed, formatSize, formatTime, icon, registerTeams, withStyles } from './chunk-HNGJI5EZ.js';
2
+ import './chunk-HZ422LTR.js';
3
+ import './chunk-E47762NY.js';
4
+ import './chunk-5A4REH6T.js';
5
+ import './chunk-HSJH6SUW.js';
package/dist/theme.js CHANGED
@@ -1,2 +1,2 @@
1
- export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme } from './chunk-7XBKSYGM.js';
2
- export { COMPACT, FOCUS_RING, OFFICE_TOKENS, TOUCH, tok } from './chunk-G3LAGZEW.js';
1
+ export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme } from './chunk-2X6QYQ3Q.js';
2
+ export { COMPACT, FOCUS_RING, OFFICE_TOKENS, TOUCH, tok } from './chunk-HSJH6SUW.js';