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.
- package/README.md +47 -2
- package/dist/base.d.ts +118 -0
- package/dist/{account.d.ts → chrome/account-profile.d.ts} +0 -6
- package/dist/chrome/account.d.ts +17 -0
- package/dist/chrome/backstage.d.ts +78 -0
- package/dist/chrome/find-bar.d.ts +111 -0
- package/dist/chrome/print-preview.d.ts +39 -0
- package/dist/chrome/ruler.d.ts +43 -0
- package/dist/chrome/status-bar.d.ts +80 -0
- package/dist/chrome/status-item.d.ts +40 -0
- package/dist/chrome/tab-strip.d.ts +88 -0
- package/dist/chrome/title-bar-types.d.ts +75 -0
- package/dist/chrome/title-bar.d.ts +81 -0
- package/dist/{chunk-7XBKSYGM.js → chunk-2X6QYQ3Q.js} +10 -1
- package/dist/{chunk-4JQLQROF.js → chunk-3MDKXKKQ.js} +53 -65
- package/dist/chunk-5A4REH6T.js +259 -0
- package/dist/chunk-E47762NY.js +90 -0
- package/dist/chunk-HNGJI5EZ.js +834 -0
- package/dist/{chunk-G3LAGZEW.js → chunk-HSJH6SUW.js} +33 -1
- package/dist/{chunk-W5PYFBEZ.js → chunk-HZ422LTR.js} +1 -49
- package/dist/chunk-LKLZOPTO.js +4536 -0
- package/dist/controls.d.ts +56 -46
- package/dist/controls.js +5 -5
- package/dist/dialog/dialog-footer.d.ts +40 -0
- package/dist/dialog/dialog.d.ts +52 -0
- package/dist/{options.d.ts → dialog/options-dialog.d.ts} +46 -1
- package/dist/form/checkable.d.ts +49 -0
- package/dist/form/checkbox.d.ts +8 -0
- package/dist/form/radio.d.ts +68 -0
- package/dist/form/search-field.d.ts +54 -0
- package/dist/{select-menu.d.ts → form/select-menu.d.ts} +3 -13
- package/dist/form/select.d.ts +115 -0
- package/dist/form/switch.d.ts +11 -0
- package/dist/form/zoom-slider.d.ts +78 -0
- package/dist/glyph.d.ts +2 -0
- package/dist/icon.d.ts +19 -0
- package/dist/icons.d.ts +0 -3
- package/dist/icons.js +1 -3
- package/dist/index.d.ts +4 -1
- package/dist/index.js +16 -12
- package/dist/menu/command-search.d.ts +74 -0
- package/dist/menu/context-menu.d.ts +89 -0
- package/dist/menu/menu-button.d.ts +77 -0
- package/dist/menu/menu-item.d.ts +52 -0
- package/dist/{menu-model.d.ts → menu/menu-model.d.ts} +2 -0
- package/dist/menu/menu-separator.d.ts +7 -0
- package/dist/notices/paste-options.d.ts +41 -0
- package/dist/notices/read-only-banner.d.ts +53 -0
- package/dist/notices/toasts.d.ts +40 -0
- package/dist/presence/presence.d.ts +53 -0
- package/dist/presence.d.ts +1 -31
- package/dist/presence.js +3 -3
- package/dist/ribbon/button.d.ts +60 -0
- package/dist/ribbon/gallery-styles.d.ts +2 -0
- package/dist/ribbon/gallery.d.ts +97 -0
- package/dist/ribbon/ribbon-group.d.ts +35 -0
- package/dist/{ribbon-section.d.ts → ribbon/ribbon-section.d.ts} +14 -1
- package/dist/ribbon/ribbon-stack.d.ts +10 -0
- package/dist/ribbon/ribbon-tabs.d.ts +82 -0
- package/dist/ribbon/ribbon-toggle.d.ts +49 -0
- package/dist/ribbon/ribbon-toolbar.d.ts +15 -0
- package/dist/smartart/smartart.d.ts +43 -0
- package/dist/smartart.d.ts +1 -14
- package/dist/smartart.js +3 -3
- package/dist/styles.d.ts +1 -4
- package/dist/teams/app-rail.d.ts +29 -0
- package/dist/teams/avatar.d.ts +39 -0
- package/dist/teams/base.d.ts +17 -0
- package/dist/teams/call-controls.d.ts +61 -0
- package/dist/teams/call-grid.d.ts +33 -0
- package/dist/teams/channel-list.d.ts +40 -0
- package/dist/teams/chat-composer.d.ts +60 -0
- package/dist/teams/chat-list.d.ts +51 -0
- package/dist/teams/icons.d.ts +3 -0
- package/dist/teams/index.d.ts +14 -0
- package/dist/teams/prejoin.d.ts +40 -0
- package/dist/teams.js +5 -0
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +245 -214
- package/package.json +12 -6
- package/dist/backstage.d.ts +0 -28
- package/dist/button.d.ts +0 -14
- package/dist/checkable.d.ts +0 -4
- package/dist/chrome-controls.d.ts +0 -52
- package/dist/chunk-24MMSCKW.js +0 -119
- package/dist/chunk-UEJ4F33J.js +0 -78
- package/dist/chunk-W7YI5DSJ.js +0 -5970
- package/dist/command-search.d.ts +0 -18
- package/dist/context-menu.d.ts +0 -20
- package/dist/dialog.d.ts +0 -13
- package/dist/document-notices.d.ts +0 -55
- package/dist/find-bar.d.ts +0 -15
- package/dist/gallery-styles.d.ts +0 -7
- package/dist/gallery-view.d.ts +0 -53
- package/dist/gallery.d.ts +0 -20
- package/dist/menu.d.ts +0 -15
- package/dist/print-preview.d.ts +0 -11
- package/dist/radio.d.ts +0 -1
- package/dist/ribbon-tabs.d.ts +0 -14
- package/dist/ribbon-toggle.d.ts +0 -1
- package/dist/ribbon.d.ts +0 -24
- package/dist/ruler.d.ts +0 -10
- package/dist/search-field.d.ts +0 -1
- package/dist/select-styles.d.ts +0 -6
- package/dist/select.d.ts +0 -19
- package/dist/status-bar-view.d.ts +0 -50
- package/dist/status-bar.d.ts +0 -19
- package/dist/tab-strip.d.ts +0 -20
- package/dist/title-bar-search.d.ts +0 -43
- package/dist/title-bar-strip.d.ts +0 -20
- package/dist/title-bar.d.ts +0 -49
- package/dist/zoom-slider.d.ts +0 -9
- /package/dist/{safe-svg.d.ts → ribbon/safe-svg.d.ts} +0 -0
- /package/dist/{smartart-svg.d.ts → smartart/smartart-svg.d.ts} +0 -0
package/dist/controls.d.ts
CHANGED
|
@@ -1,51 +1,61 @@
|
|
|
1
|
-
import { defineDialogFooter
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
1
|
+
import { defineDialogFooter } from './dialog/dialog-footer.js';
|
|
2
|
+
import { defineToasts } from './notices/toasts.js';
|
|
3
|
+
import { definePasteOptions } from './notices/paste-options.js';
|
|
4
|
+
import { defineReadOnlyBanner } from './notices/read-only-banner.js';
|
|
5
|
+
import { defineRadio } from './form/radio.js';
|
|
6
|
+
import { defineRibbonToggle } from './ribbon/ribbon-toggle.js';
|
|
7
|
+
import { defineSearchField } from './form/search-field.js';
|
|
8
|
+
import { defineBackstage } from './chrome/backstage.js';
|
|
9
|
+
import { defineFindBar } from './chrome/find-bar.js';
|
|
10
|
+
import { definePrintPreview } from './chrome/print-preview.js';
|
|
11
|
+
import { defineRibbon } from './ribbon/ribbon-tabs.js';
|
|
12
|
+
import { defineRibbonSection } from './ribbon/ribbon-section.js';
|
|
13
|
+
import { defineGallery } from './ribbon/gallery.js';
|
|
14
|
+
import { defineRuler } from './chrome/ruler.js';
|
|
15
|
+
import { defineAccount } from './chrome/account.js';
|
|
16
|
+
import { defineButton } from './ribbon/button.js';
|
|
17
|
+
import { defineCheckbox } from './form/checkbox.js';
|
|
18
|
+
import { defineSwitch } from './form/switch.js';
|
|
19
|
+
import { defineDialog } from './dialog/dialog.js';
|
|
20
|
+
import { defineIcon } from './icon.js';
|
|
21
|
+
import { defineCommandSearch } from './menu/command-search.js';
|
|
22
|
+
import { defineContextMenu } from './menu/context-menu.js';
|
|
23
|
+
import { defineMenuSeparator } from './menu/menu-separator.js';
|
|
24
|
+
import { defineMenuButton } from './menu/menu-button.js';
|
|
25
|
+
import { defineMenuItem } from './menu/menu-item.js';
|
|
26
|
+
import { defineOptionsDialog } from './dialog/options-dialog.js';
|
|
27
|
+
import { defineRibbonGroup } from './ribbon/ribbon-group.js';
|
|
28
|
+
import { defineRibbonStack } from './ribbon/ribbon-stack.js';
|
|
29
|
+
import { defineToolbar } from './ribbon/ribbon-toolbar.js';
|
|
30
|
+
import { defineSelect } from './form/select.js';
|
|
31
|
+
import { defineStatusBar } from './chrome/status-bar.js';
|
|
32
|
+
import { defineStatusItem } from './chrome/status-item.js';
|
|
33
|
+
import { defineTabStrip } from './chrome/tab-strip.js';
|
|
34
|
+
import { defineTitleBar } from './chrome/title-bar.js';
|
|
35
|
+
import { defineZoomSlider } from './form/zoom-slider.js';
|
|
28
36
|
export { defineAccount, defineDialogFooter, definePasteOptions, defineRadio, defineReadOnlyBanner, defineRibbonToggle, defineSearchField, defineToasts, defineBackstage, defineFindBar, defineGallery, definePrintPreview, defineRibbon, defineRuler, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToolbar, defineZoomSlider, };
|
|
29
|
-
export type { OfficeCommandEvent } from './button.js';
|
|
30
|
-
export type { OfficeDialogCloseEvent, OfficeDialogCloseReason } from './dialog.js';
|
|
31
|
-
export type { OfficeSelectOption } from './select.js';
|
|
32
|
-
export type { OfficeStatusActivateEvent, OfficeStatusBarState, OfficeStatusButton, OfficeStatusText, } from './status-bar.js';
|
|
33
|
-
export type { OfficeTab, OfficeTabSelectEvent } from './tab-strip.js';
|
|
34
|
-
export type { OfficeSearchCommand } from './command-search.js';
|
|
35
|
-
export { OFFICE_TITLE_BAR_SEARCH_LIMIT, type OfficeQuickAccessItem, type OfficeTitleBarAutosave, type OfficeTitleBarCommand, type OfficeTitleBarPlacement, type OfficeTitleBarSearch, type OfficeTitleBarSearchDetail, type OfficeTitleBarState, type OfficeTitleBarTone, } from './title-bar.js';
|
|
37
|
+
export type { OfficeCommandEvent } from './ribbon/button.js';
|
|
38
|
+
export type { OfficeDialogCloseEvent, OfficeDialogCloseReason } from './dialog/dialog.js';
|
|
39
|
+
export type { OfficeSelectOption } from './form/select.js';
|
|
40
|
+
export type { OfficeStatusActivateEvent, OfficeStatusBarState, OfficeStatusButton, OfficeStatusText, } from './chrome/status-bar.js';
|
|
41
|
+
export type { OfficeTab, OfficeTabSelectEvent } from './chrome/tab-strip.js';
|
|
42
|
+
export type { OfficeSearchCommand } from './menu/command-search.js';
|
|
43
|
+
export { OFFICE_TITLE_BAR_SEARCH_LIMIT, type OfficeQuickAccessItem, type OfficeTitleBarAutosave, type OfficeTitleBarCommand, type OfficeTitleBarPlacement, type OfficeTitleBarSearch, type OfficeTitleBarSearchDetail, type OfficeTitleBarState, type OfficeTitleBarTone, } from './chrome/title-bar.js';
|
|
36
44
|
export { attachKeyTips, type KeyTipsHandle } from './keytips.js';
|
|
37
|
-
export type { OfficeBackstageCloseEvent, OfficeBackstageItem, OfficeBackstageSelectEvent, } from './backstage.js';
|
|
38
|
-
export type { OfficeFindInputEvent, OfficeFindStepEvent } from './find-bar.js';
|
|
39
|
-
export type { OfficePrintPreviewPageEvent } from './print-preview.js';
|
|
40
|
-
export type { OfficeRibbonSelectEvent } from './ribbon-tabs.js';
|
|
41
|
-
export type { OfficeRibbonCommandView, OfficeRibbonGroupView } from './ribbon-section.js';
|
|
42
|
-
export { parseSvgPreview, type OfficeGalleryItem, type OfficeGalleryPickEvent, type OfficeGallerySection, type OfficeGalleryState, } from './gallery.js';
|
|
43
|
-
export { rulerDivisions } from './ruler.js';
|
|
44
|
-
export { clampFlyoutPosition, EMPTY_MENU_STATE, nextEnabledIndex, typeAheadIndex, type FlyoutPositionInput, type OfficeMenuCloseReason, type OfficeMenuItem, type OfficeMenuState, } from './menu-model.js';
|
|
45
|
-
export {
|
|
46
|
-
export
|
|
47
|
-
export {
|
|
48
|
-
export
|
|
45
|
+
export type { OfficeBackstageCloseEvent, OfficeBackstageItem, OfficeBackstageSelectEvent, } from './chrome/backstage.js';
|
|
46
|
+
export type { OfficeFindInputEvent, OfficeFindStepEvent } from './chrome/find-bar.js';
|
|
47
|
+
export type { OfficePrintPreviewPageEvent } from './chrome/print-preview.js';
|
|
48
|
+
export type { OfficeRibbonSelectEvent } from './ribbon/ribbon-tabs.js';
|
|
49
|
+
export type { OfficeRibbonCommandView, OfficeRibbonGroupView } from './ribbon/ribbon-section.js';
|
|
50
|
+
export { parseSvgPreview, type OfficeGalleryItem, type OfficeGalleryPickEvent, type OfficeGallerySection, type OfficeGalleryState, } from './ribbon/gallery.js';
|
|
51
|
+
export { rulerDivisions } from './chrome/ruler.js';
|
|
52
|
+
export { clampFlyoutPosition, EMPTY_MENU_STATE, nextEnabledIndex, typeAheadIndex, type FlyoutPositionInput, type OfficeMenuCloseReason, type OfficeMenuItem, type OfficeMenuState, } from './menu/menu-model.js';
|
|
53
|
+
export type { OfficeDialogFooterAction, OfficeDialogFooterState, OfficeDialogFooterVariant, } from './dialog/dialog-footer.js';
|
|
54
|
+
export { OFFICE_TOAST_VISIBLE_LIMIT, type OfficeToast, type OfficeToastsState, } from './notices/toasts.js';
|
|
55
|
+
export type { OfficePasteOption, OfficePasteOptionsState } from './notices/paste-options.js';
|
|
56
|
+
export type { OfficeReadOnlyBannerIntent, OfficeReadOnlyBannerState, } from './notices/read-only-banner.js';
|
|
57
|
+
export { clearOfficeProfile, DEFAULT_OFFICE_PROFILE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, profileInitials, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile, type OfficeProfile, type OfficeProfileChangeEvent, } from './chrome/account-profile.js';
|
|
58
|
+
export { clampOptionNumber, type OfficeOptionCategory, type OfficeOptionChoice, type OfficeOptionControl, type OfficeOptionSection, type OfficeOptionsChangeEvent, type OfficeOptionValue, type OfficeOptionValues, } from './dialog/options-dialog.js';
|
|
49
59
|
/** Every control of this entry. */
|
|
50
60
|
export declare const CONTROL_DEFINERS: readonly [import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer];
|
|
51
61
|
/** Idempotent, SSR-safe (no-op without a DOM). */
|
package/dist/controls.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
2
|
-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-LKLZOPTO.js';
|
|
2
|
+
import './chunk-HZ422LTR.js';
|
|
3
|
+
import './chunk-E47762NY.js';
|
|
4
|
+
import './chunk-5A4REH6T.js';
|
|
5
|
+
import './chunk-HSJH6SUW.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
export type OfficeDialogFooterVariant = 'secondary' | 'primary' | 'warning' | 'danger';
|
|
3
|
+
export interface OfficeDialogFooterAction {
|
|
4
|
+
/** Stable id echoed back in the request event. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Translated label and accessible name. */
|
|
7
|
+
label: string;
|
|
8
|
+
variant?: OfficeDialogFooterVariant;
|
|
9
|
+
/** A registered icon name (for example `trash`, `pencil`, `restore`, `print`, `check`). */
|
|
10
|
+
icon?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Work in flight: disabled, `aria-busy` and a spinner. */
|
|
13
|
+
busy?: boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
/** `start` pins a tertiary action (Remove link, Reset all) to the left edge. */
|
|
16
|
+
align?: 'start' | 'end';
|
|
17
|
+
testId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface OfficeDialogFooterState {
|
|
20
|
+
actions: readonly OfficeDialogFooterAction[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `<office-ui-dialog-footer>`: a dialog's action row (Cancel, OK, Apply...). Not a dialog shell.
|
|
24
|
+
* Set `state`; each button emits `office-dialog-footer-request` `{ id }`. Buttons are keyed by
|
|
25
|
+
* action id and patched in place, so focus survives state changes. `focusAction(id)`. Text arrives
|
|
26
|
+
* already translated; the event name is a static field a product subclass may override.
|
|
27
|
+
*/
|
|
28
|
+
export declare class OfficeUiDialogFooter extends OfficeElement {
|
|
29
|
+
static requestEvent: string;
|
|
30
|
+
static testIdPrefix: string;
|
|
31
|
+
static styles: import("lit").CSSResult[];
|
|
32
|
+
private model;
|
|
33
|
+
get state(): OfficeDialogFooterState;
|
|
34
|
+
set state(value: OfficeDialogFooterState);
|
|
35
|
+
/** Move keyboard focus to an action, for example the primary one when a dialog opens. */
|
|
36
|
+
focusAction(id: string): void;
|
|
37
|
+
private classes;
|
|
38
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
39
|
+
}
|
|
40
|
+
export declare const defineDialogFooter: import("../registry.js").Definer;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type PropertyValues } from 'lit';
|
|
2
|
+
import { OfficeElement } from '../base.js';
|
|
3
|
+
export type OfficeDialogCloseReason = 'escape' | 'close-button' | 'backdrop' | 'api';
|
|
4
|
+
/** Cancelable: `preventDefault()` keeps the dialog open. */
|
|
5
|
+
export type OfficeDialogCloseEvent = CustomEvent<{
|
|
6
|
+
reason: OfficeDialogCloseReason;
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Modal dialog shell. `open` and `heading` attributes, `dismissible` (default true; set
|
|
10
|
+
* `dismissible="false"` to ignore Escape and backdrop). Default slot is the body, `slot="footer"`
|
|
11
|
+
* holds actions. `role="dialog"`, `aria-modal`, labelled by the heading. Escape, the close button
|
|
12
|
+
* and the backdrop emit a cancelable `office-dialog-close` and close unless prevented; focus
|
|
13
|
+
* moves in on open, is trapped with Tab, and returns to the previously focused element on close.
|
|
14
|
+
*/
|
|
15
|
+
export declare class OfficeUiDialog extends OfficeElement {
|
|
16
|
+
static styles: import("lit").CSSResult[];
|
|
17
|
+
static properties: {
|
|
18
|
+
open: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
reflect: true;
|
|
21
|
+
converter: {
|
|
22
|
+
fromAttribute: (value: string | null) => boolean;
|
|
23
|
+
toAttribute: (value: unknown) => string | null;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
heading: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
dismissible: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
open: boolean;
|
|
34
|
+
heading: string;
|
|
35
|
+
dismissible: string | null;
|
|
36
|
+
private returnFocus;
|
|
37
|
+
constructor();
|
|
38
|
+
show(): void;
|
|
39
|
+
/** Programmatic close; still emits `office-dialog-close` (reason `api`). */
|
|
40
|
+
close(): void;
|
|
41
|
+
private requestClose;
|
|
42
|
+
private get box();
|
|
43
|
+
private get closeButton();
|
|
44
|
+
private focusables;
|
|
45
|
+
private onOpen;
|
|
46
|
+
private onClose;
|
|
47
|
+
private onKey;
|
|
48
|
+
/** Focus moves in when the dialog opens (also when it connects open) and back when it closes. */
|
|
49
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
50
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
51
|
+
}
|
|
52
|
+
export declare const defineDialog: import("../registry.js").Definer;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { OfficeElement } from '../base.js';
|
|
1
3
|
/**
|
|
2
4
|
* Office File > Options dialog. Products describe their categories as data; the element renders
|
|
3
5
|
* the category list, the pane and OK/Cancel, and reports the edited values. Generalised from
|
|
@@ -62,5 +64,48 @@ export declare function clampOptionNumber(raw: string, min: number, max: number)
|
|
|
62
64
|
* attribute). Edits stay in a draft until OK, which emits `office-options-change` and closes;
|
|
63
65
|
* Cancel, Escape and the close button discard them. `heading` defaults to "Options".
|
|
64
66
|
*/
|
|
65
|
-
export declare
|
|
67
|
+
export declare class OfficeUiOptionsDialog extends OfficeElement {
|
|
68
|
+
static styles: import("lit").CSSResult[];
|
|
69
|
+
static properties: {
|
|
70
|
+
open: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
reflect: true;
|
|
73
|
+
converter: {
|
|
74
|
+
fromAttribute: (value: string | null) => boolean;
|
|
75
|
+
toAttribute: (value: unknown) => string | null;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
heading: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
};
|
|
81
|
+
categories: {
|
|
82
|
+
attribute: boolean;
|
|
83
|
+
};
|
|
84
|
+
active: {
|
|
85
|
+
state: boolean;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
open: boolean;
|
|
89
|
+
heading: string | null;
|
|
90
|
+
categories: readonly OfficeOptionCategory[];
|
|
91
|
+
active: string;
|
|
92
|
+
private committed;
|
|
93
|
+
private draft;
|
|
94
|
+
constructor();
|
|
95
|
+
get values(): OfficeOptionValues;
|
|
96
|
+
set values(value: OfficeOptionValues);
|
|
97
|
+
/** The selected category id. */
|
|
98
|
+
get category(): string;
|
|
99
|
+
set category(id: string);
|
|
100
|
+
show(): void;
|
|
101
|
+
close(): void;
|
|
102
|
+
private commit;
|
|
103
|
+
private onNavKey;
|
|
104
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
105
|
+
private set;
|
|
106
|
+
private control;
|
|
107
|
+
private pane;
|
|
108
|
+
protected render(): TemplateResult<1>;
|
|
109
|
+
}
|
|
110
|
+
export declare const defineOptionsDialog: import("../registry.js").Definer;
|
|
66
111
|
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Shared implementation of the two-state controls (checkbox, switch). `checked`, `disabled` and
|
|
4
|
+
* `value` attributes and properties; Space (and Enter for the switch) toggles; `input` then
|
|
5
|
+
* `change` bubble from the host; form-associated through ElementInternals where supported;
|
|
6
|
+
* setting a property is silent.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class OfficeUiCheckable extends OfficeElement {
|
|
9
|
+
static formAssociated: boolean;
|
|
10
|
+
static properties: {
|
|
11
|
+
checked: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
reflect: true;
|
|
14
|
+
converter: {
|
|
15
|
+
fromAttribute: (value: string | null) => boolean;
|
|
16
|
+
toAttribute: (value: unknown) => string | null;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
reflect: true;
|
|
22
|
+
converter: {
|
|
23
|
+
fromAttribute: (value: string | null) => boolean;
|
|
24
|
+
toAttribute: (value: unknown) => string | null;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
value: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
converter: {
|
|
30
|
+
fromAttribute: (value: string | null) => string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
checked: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
value: string;
|
|
37
|
+
protected abstract readonly semantics: 'checkbox' | 'switch';
|
|
38
|
+
private readonly internals;
|
|
39
|
+
private defaultChecked;
|
|
40
|
+
constructor();
|
|
41
|
+
connectedCallback(): void;
|
|
42
|
+
formResetCallback(): void;
|
|
43
|
+
formDisabledCallback(disabled: boolean): void;
|
|
44
|
+
private toggle;
|
|
45
|
+
/** The host carries the semantics: role, state, tab stop and form value. */
|
|
46
|
+
protected willUpdate(): void;
|
|
47
|
+
/** The tick, shown through CSS when `checked`. */
|
|
48
|
+
protected renderCheck(): import("lit").TemplateResult<1>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OfficeUiCheckable } from './checkable.js';
|
|
2
|
+
/** `<office-ui-checkbox checked disabled value aria-label>`. */
|
|
3
|
+
export declare class OfficeUiCheckbox extends OfficeUiCheckable {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
protected readonly semantics = "checkbox";
|
|
6
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
export declare const defineCheckbox: import("../registry.js").Definer;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Radio button with a native-like contract. Moved from pptx-viewer `pptx-ui-radio`. Radios
|
|
4
|
+
* sharing a `name` in one tree and form are a WAI-ARIA radiogroup with one roving tab stop (the
|
|
5
|
+
* checked radio, else the first enabled one). Arrows move, select and focus the next enabled
|
|
6
|
+
* radio (wrapping), Home and End jump to the ends, Space selects. Checking programmatically
|
|
7
|
+
* silently unchecks peers; only user activation emits `input` then `change`, on the radio that
|
|
8
|
+
* becomes checked. Disabled radios are inert.
|
|
9
|
+
*/
|
|
10
|
+
export declare class OfficeUiRadio extends OfficeElement {
|
|
11
|
+
static formAssociated: boolean;
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
static properties: {
|
|
14
|
+
checked: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
reflect: true;
|
|
17
|
+
converter: {
|
|
18
|
+
fromAttribute: (value: string | null) => boolean;
|
|
19
|
+
toAttribute: (value: unknown) => string | null;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
reflect: true;
|
|
25
|
+
converter: {
|
|
26
|
+
fromAttribute: (value: string | null) => boolean;
|
|
27
|
+
toAttribute: (value: unknown) => string | null;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
value: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
converter: {
|
|
33
|
+
fromAttribute: (value: string | null) => string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
name: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
reflect: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
checked: boolean;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
value: string;
|
|
44
|
+
name: string;
|
|
45
|
+
private readonly internals;
|
|
46
|
+
private defaultChecked;
|
|
47
|
+
private scope;
|
|
48
|
+
private autoNamed;
|
|
49
|
+
constructor();
|
|
50
|
+
get form(): HTMLFormElement | null;
|
|
51
|
+
connectedCallback(): void;
|
|
52
|
+
disconnectedCallback(): void;
|
|
53
|
+
formResetCallback(): void;
|
|
54
|
+
formDisabledCallback(disabled: boolean): void;
|
|
55
|
+
/** Check this radio and, for user intent, announce it. No-op when already checked. */
|
|
56
|
+
select(emit: boolean): void;
|
|
57
|
+
/**
|
|
58
|
+
* A custom element is not named by a wrapping `<label>` in every browser's accessibility
|
|
59
|
+
* tree, so mirror the label text into `aria-label` unless the host named it.
|
|
60
|
+
*/
|
|
61
|
+
private syncName;
|
|
62
|
+
private peers;
|
|
63
|
+
private onKey;
|
|
64
|
+
/** The host carries the semantics: role, state, form value and the group's tab stop. */
|
|
65
|
+
protected willUpdate(): void;
|
|
66
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
67
|
+
}
|
|
68
|
+
export declare const defineRadio: import("../registry.js").Definer;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
/**
|
|
3
|
+
* A single styled search input (title bar, recent files, panel filters). Moved from pptx-viewer
|
|
4
|
+
* `pptx-ui-search`. `value`, `placeholder`, `disabled`, `aria-label` (defaults to the
|
|
5
|
+
* placeholder) and `variant="titlebar"` (compact). `input` and `change` bubble from the host;
|
|
6
|
+
* setting `value` is silent. Tokens: `--office-field-*`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class OfficeUiSearch extends OfficeElement {
|
|
9
|
+
static shadowRootOptions: {
|
|
10
|
+
clonable?: boolean;
|
|
11
|
+
customElementRegistry?: CustomElementRegistry | null;
|
|
12
|
+
mode: ShadowRootMode;
|
|
13
|
+
serializable?: boolean;
|
|
14
|
+
slotAssignment?: SlotAssignmentMode;
|
|
15
|
+
delegatesFocus: boolean;
|
|
16
|
+
};
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
static properties: {
|
|
19
|
+
value: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
placeholder: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
reflect: boolean;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
reflect: true;
|
|
29
|
+
converter: {
|
|
30
|
+
fromAttribute: (value: string | null) => boolean;
|
|
31
|
+
toAttribute: (value: unknown) => string | null;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
variant: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
value: string;
|
|
40
|
+
placeholder: string | null;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
variant: string;
|
|
43
|
+
/** `aria-label` names the inner input, so it is watched rather than declared as a property. */
|
|
44
|
+
static get observedAttributes(): string[];
|
|
45
|
+
constructor();
|
|
46
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
47
|
+
private get input();
|
|
48
|
+
focus(options?: FocusOptions): void;
|
|
49
|
+
select(): void;
|
|
50
|
+
private onInput;
|
|
51
|
+
private onChange;
|
|
52
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
53
|
+
}
|
|
54
|
+
export declare const defineSearchField: import("../registry.js").Definer;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* (`packages/shared/src/web-components/select-menu.ts
|
|
2
|
+
* Pure helpers of `office-ui-select` (choice data, popup placement, keyboard stepping). Moved
|
|
3
|
+
* from pptx-viewer (`packages/shared/src/web-components/select-menu.ts`). The markup is the
|
|
4
|
+
* element's own `render()`.
|
|
4
5
|
*/
|
|
5
6
|
/** Mutations that can change a select's value, labels or font preview. */
|
|
6
7
|
export declare const SELECT_OPTION_ATTRIBUTES: string[];
|
|
@@ -17,26 +18,15 @@ export interface SelectChoice {
|
|
|
17
18
|
}
|
|
18
19
|
/** Flatten `<option>` children, keeping optgroup labels and disabled or hidden state. */
|
|
19
20
|
export declare function collectSelectChoices(options: HTMLOptionElement[]): SelectChoice[];
|
|
20
|
-
/** Build the popup's options (only while it is open or has been opened). */
|
|
21
|
-
export declare function renderSelectMenu(menu: HTMLElement, choices: SelectChoice[], value: string): void;
|
|
22
21
|
/**
|
|
23
22
|
* Prefer below the trigger, flipping above when that offers more room. Margins, the gap and the
|
|
24
23
|
* height cap come from `--office-space-2`, `--office-space-1` and `--office-select-max-height`
|
|
25
24
|
* (`--office-font-picker-max-height` for a font family picker).
|
|
26
25
|
*/
|
|
27
26
|
export declare function positionSelectMenu(menu: HTMLElement, trigger: HTMLElement, host: HTMLElement): void;
|
|
28
|
-
/** Expose the keyboard target while keeping the selected state separate. */
|
|
29
|
-
export declare function markSelectActive(menu: HTMLElement, trigger: HTMLElement, active: number, open: boolean): void;
|
|
30
27
|
/** The next enabled, visible option when moving with the arrow keys (wrapping). */
|
|
31
28
|
export declare function nextSelectActive(choices: SelectChoice[], active: number, step: number): number;
|
|
32
29
|
/** Options a PageUp/PageDown press moves, like the visible rows of a native listbox. */
|
|
33
30
|
export declare const SELECT_PAGE_SIZE = 8;
|
|
34
31
|
/** Jump a page of options up (-1) or down (+1), clamped to the nearest enabled option. */
|
|
35
32
|
export declare function pageSelectActive(choices: SelectChoice[], active: number, direction: 1 | -1): number;
|
|
36
|
-
/** Trigger with an `icon` slot, the value text and a chevron. */
|
|
37
|
-
export declare function createSelectTrigger(doc: Document): {
|
|
38
|
-
trigger: HTMLButtonElement;
|
|
39
|
-
text: HTMLSpanElement;
|
|
40
|
-
};
|
|
41
|
-
/** Optional editable content (`slot="custom"`) stays in the light DOM so hosts own its events. */
|
|
42
|
-
export declare function prependSelectCustomSlot(host: HTMLElement, menu: HTMLElement): void;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { type PropertyValues } from 'lit';
|
|
2
|
+
import { OfficeElement } from '../base.js';
|
|
3
|
+
import { type SelectChoice } from './select-menu.js';
|
|
4
|
+
/** A programmatic choice; `<option>` elements satisfy the same shape. */
|
|
5
|
+
export interface OfficeSelectOption {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Single-select combobox. Moved from pptx-viewer `pptx-ui-select` (the declarative, most complete
|
|
12
|
+
* implementation). Choices come from `<option>` / `<optgroup>` children (with `data-display-label`,
|
|
13
|
+
* `data-description` and font previews through `style="font-family"`), or from the `options`
|
|
14
|
+
* property when there are none. `value`, `disabled`, `selectedIndex`, `aria-label`;
|
|
15
|
+
* `variant="ribbon-font"` (compact ribbon combo that accepts unlisted values, such as a typed font
|
|
16
|
+
* size) or `"ribbon-icon"`; `data-font-picker="family|size"`; an `icon` slot and a `custom` slot at
|
|
17
|
+
* the top of the popup. Keyboard: arrows, Home, End, PageUp/PageDown (8 options), typeahead,
|
|
18
|
+
* Enter/Space, Escape, Tab; disabled and hidden choices are skipped. The popup is a top-layer
|
|
19
|
+
* `popover`, flipped above the trigger when there is more room. `input` then `change` bubble on a
|
|
20
|
+
* user choice; setting a property is silent. Form-associated.
|
|
21
|
+
*/
|
|
22
|
+
export declare class OfficeUiSelect extends OfficeElement {
|
|
23
|
+
static formAssociated: boolean;
|
|
24
|
+
static shadowRootOptions: {
|
|
25
|
+
clonable?: boolean;
|
|
26
|
+
customElementRegistry?: CustomElementRegistry | null;
|
|
27
|
+
mode: ShadowRootMode;
|
|
28
|
+
serializable?: boolean;
|
|
29
|
+
slotAssignment?: SlotAssignmentMode;
|
|
30
|
+
delegatesFocus: boolean;
|
|
31
|
+
};
|
|
32
|
+
static styles: import("lit").CSSResult[];
|
|
33
|
+
static properties: {
|
|
34
|
+
value: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
noAccessor: boolean;
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
reflect: true;
|
|
42
|
+
converter: {
|
|
43
|
+
fromAttribute: (value: string | null) => boolean;
|
|
44
|
+
toAttribute: (value: unknown) => string | null;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
open: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
reflect: true;
|
|
50
|
+
converter: {
|
|
51
|
+
fromAttribute: (value: string | null) => boolean;
|
|
52
|
+
toAttribute: (value: unknown) => string | null;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
active: {
|
|
56
|
+
state: boolean;
|
|
57
|
+
};
|
|
58
|
+
choices: {
|
|
59
|
+
state: boolean;
|
|
60
|
+
};
|
|
61
|
+
opened: {
|
|
62
|
+
state: boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
open: boolean;
|
|
67
|
+
active: number;
|
|
68
|
+
choices: SelectChoice[];
|
|
69
|
+
opened: boolean;
|
|
70
|
+
static get observedAttributes(): string[];
|
|
71
|
+
private readonly internals;
|
|
72
|
+
private readonly observer;
|
|
73
|
+
private readonly menuId;
|
|
74
|
+
private requested;
|
|
75
|
+
private data;
|
|
76
|
+
private refreshFrame;
|
|
77
|
+
private search;
|
|
78
|
+
private searchTimer;
|
|
79
|
+
private defaultValue;
|
|
80
|
+
constructor();
|
|
81
|
+
/** The `<option>` children, or the programmatic options when there are none. */
|
|
82
|
+
get options(): OfficeSelectOption[];
|
|
83
|
+
set options(next: OfficeSelectOption[]);
|
|
84
|
+
get value(): string;
|
|
85
|
+
set value(next: string);
|
|
86
|
+
get selectedIndex(): number;
|
|
87
|
+
set selectedIndex(index: number);
|
|
88
|
+
private get menu();
|
|
89
|
+
private get trigger();
|
|
90
|
+
focus(options?: FocusOptions): void;
|
|
91
|
+
formResetCallback(): void;
|
|
92
|
+
formDisabledCallback(disabled: boolean): void;
|
|
93
|
+
connectedCallback(): void;
|
|
94
|
+
disconnectedCallback(): void;
|
|
95
|
+
private collect;
|
|
96
|
+
/** Re-read the choices after the `<option>` children or the `options` data changed. */
|
|
97
|
+
private refresh;
|
|
98
|
+
private isUsable;
|
|
99
|
+
private show;
|
|
100
|
+
private close;
|
|
101
|
+
/** The popup is a top-layer popover: show or hide it as `open` changes. */
|
|
102
|
+
private openPopup;
|
|
103
|
+
private closePopup;
|
|
104
|
+
private readonly onOutside;
|
|
105
|
+
private readonly position;
|
|
106
|
+
private move;
|
|
107
|
+
private commit;
|
|
108
|
+
private onKeyDown;
|
|
109
|
+
private typeAhead;
|
|
110
|
+
protected willUpdate(): void;
|
|
111
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
112
|
+
private optionTemplates;
|
|
113
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
114
|
+
}
|
|
115
|
+
export declare const defineSelect: import("../registry.js").Definer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OfficeUiCheckable } from './checkable.js';
|
|
2
|
+
/**
|
|
3
|
+
* `<office-ui-switch>`: same contract as the checkbox with `role="switch"`. It draws a real knob
|
|
4
|
+
* element, so hosts and tests can measure and style it.
|
|
5
|
+
*/
|
|
6
|
+
export declare class OfficeUiSwitch extends OfficeUiCheckable {
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
protected readonly semantics = "switch";
|
|
9
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
export declare const defineSwitch: import("../registry.js").Definer;
|