@redvars/peacock 3.4.0 → 3.5.1
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/dist/BaseButton-DuASuVth.js +219 -0
- package/dist/BaseButton-DuASuVth.js.map +1 -0
- package/dist/BaseHyperlinkMixin-BNuwbiEf.js +65 -0
- package/dist/BaseHyperlinkMixin-BNuwbiEf.js.map +1 -0
- package/dist/assets/components.css +1 -1
- package/dist/assets/components.css.map +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/banner.js +187 -0
- package/dist/banner.js.map +1 -0
- package/dist/bottom-sheet.js +2 -2
- package/dist/{button-COYCtuA8.js → button-DouvOfEU.js} +92 -283
- package/dist/button-DouvOfEU.js.map +1 -0
- package/dist/{button-group-DsXquZQn.js → button-group-CEdMwvJJ.js} +72 -48
- package/dist/button-group-CEdMwvJJ.js.map +1 -0
- package/dist/button-group.js +8 -5
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +7 -4
- package/dist/button.js.map +1 -1
- package/dist/card.js +29 -74
- package/dist/card.js.map +1 -1
- package/dist/chart-bar.js +2 -2
- package/dist/chart-bar.js.map +1 -1
- package/dist/chart-doughnut.js +2 -2
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-pie.js +2 -2
- package/dist/chart-pie.js.map +1 -1
- package/dist/chart-stacked-bar.js +2 -2
- package/dist/chart-stacked-bar.js.map +1 -1
- package/dist/{class-map-3TAnCMAX.js → class-map-YU7g0o3B.js} +2 -2
- package/dist/{class-map-3TAnCMAX.js.map → class-map-YU7g0o3B.js.map} +1 -1
- package/dist/clock.js.map +1 -1
- package/dist/code-editor.js +4 -4
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +5 -4
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +6627 -3477
- package/dist/custom-elements.json +10954 -7810
- package/dist/directive-ZPhl09Yt.js +9 -0
- package/dist/directive-ZPhl09Yt.js.map +1 -0
- package/dist/dispatch-event-utils-CuEqjlPT.js +127 -0
- package/dist/dispatch-event-utils-CuEqjlPT.js.map +1 -0
- package/dist/fab.js +423 -0
- package/dist/fab.js.map +1 -0
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/dist/{observe-theme-change-DKAIv5BB.js → is-dark-mode-DicqGkCJ.js} +6 -2
- package/dist/is-dark-mode-DicqGkCJ.js.map +1 -0
- package/dist/{select-C3XAzenC.js → navigation-rail-Lxetd5-Z.js} +2426 -898
- package/dist/navigation-rail-Lxetd5-Z.js.map +1 -0
- package/dist/notification.js +418 -0
- package/dist/notification.js.map +1 -0
- package/dist/number-counter.js +2 -2
- package/dist/number-counter.js.map +1 -1
- package/dist/observe-slot-change-BGJfgg2E.js +31 -0
- package/dist/observe-slot-change-BGJfgg2E.js.map +1 -0
- package/dist/peacock-loader.js +48 -13
- package/dist/peacock-loader.js.map +1 -1
- package/dist/search.js +456 -0
- package/dist/search.js.map +1 -0
- package/dist/side-sheet.js +2 -2
- package/dist/src/__mixins/BaseButtonMixin.d.ts +20 -0
- package/dist/src/__mixins/BaseHyperlinkMixin.d.ts +18 -0
- package/dist/src/__mixins/MixinConstructor.d.ts +1 -0
- package/dist/src/__utils/cache-fetch.d.ts +1 -0
- package/dist/src/__utils/is-dark-mode.d.ts +1 -0
- package/dist/src/__utils/is-in-viewport.d.ts +1 -0
- package/dist/src/__utils/observe-slot-change.d.ts +1 -0
- package/dist/src/__utils/sanitize-svg.d.ts +1 -0
- package/dist/src/__utils/throttle.d.ts +4 -0
- package/dist/src/accordion/accordion-item.d.ts +33 -9
- package/dist/src/accordion/accordion.d.ts +21 -5
- package/dist/src/banner/banner.d.ts +43 -0
- package/dist/src/banner/index.d.ts +1 -0
- package/dist/src/button/BaseButton.d.ts +7 -57
- package/dist/src/button/button/button.d.ts +32 -3
- package/dist/src/button/button-group/button-group.d.ts +4 -4
- package/dist/src/button/icon-button/icon-button.d.ts +33 -8
- package/dist/src/card/card.d.ts +4 -15
- package/dist/src/empty-state/empty-state.d.ts +1 -1
- package/dist/src/fab/fab.d.ts +80 -0
- package/dist/src/fab/index.d.ts +1 -0
- package/dist/src/focus-ring/focus-ring.d.ts +11 -5
- package/dist/src/index.d.ts +8 -1
- package/dist/src/link/link.d.ts +3 -10
- package/dist/src/menu/menu/menu.d.ts +3 -2
- package/dist/src/menu/sub-menu/sub-menu.d.ts +1 -0
- package/dist/src/navigation-rail/index.d.ts +2 -0
- package/dist/src/navigation-rail/navigation-rail-item.d.ts +55 -0
- package/dist/src/navigation-rail/navigation-rail.d.ts +71 -0
- package/dist/src/notification/index.d.ts +1 -0
- package/dist/src/notification/notification.d.ts +69 -0
- package/dist/src/pagination/pagination.d.ts +8 -1
- package/dist/src/search/index.d.ts +1 -0
- package/dist/src/search/search.d.ts +76 -0
- package/dist/src/select/select.d.ts +3 -5
- package/dist/src/sidebar-menu/index.d.ts +3 -0
- package/dist/src/sidebar-menu/sidebar-menu-item.d.ts +58 -0
- package/dist/src/sidebar-menu/sidebar-menu.d.ts +38 -0
- package/dist/src/sidebar-menu/sidebar-sub-menu.d.ts +35 -0
- package/dist/src/slider/slider.d.ts +4 -0
- package/dist/src/snackbar/snackbar.d.ts +14 -1
- package/dist/src/toolbar/index.d.ts +1 -0
- package/dist/src/toolbar/toolbar.d.ts +86 -0
- package/dist/src/tooltip/tooltip.d.ts +3 -0
- package/dist/src/url-field/index.d.ts +1 -0
- package/dist/src/url-field/url-field.d.ts +48 -0
- package/dist/{style-map-CRFEoCEg.js → style-map-DVmWOuYy.js} +2 -2
- package/dist/{style-map-CRFEoCEg.js.map → style-map-DVmWOuYy.js.map} +1 -1
- package/dist/test/banner.test.d.ts +1 -0
- package/dist/test/search.test.d.ts +1 -0
- package/dist/test/sidebar-menu.test.d.ts +1 -0
- package/dist/test/toolbar.test.d.ts +1 -0
- package/dist/toolbar.js +306 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{unsafe-html-D3GHRaGQ.js → unsafe-html-BsGUjx94.js} +2 -2
- package/dist/{unsafe-html-D3GHRaGQ.js.map → unsafe-html-BsGUjx94.js.map} +1 -1
- package/package.json +1 -1
- package/readme.md +73 -65
- package/scss/mixin.scss +16 -0
- package/scss/styles.scss +4 -0
- package/src/__mixins/BaseButtonMixin.ts +83 -0
- package/src/__mixins/BaseHyperlinkMixin.ts +68 -0
- package/src/__mixins/MixinConstructor.ts +1 -0
- package/src/__mixins/README.md +19 -0
- package/src/__utils/cache-fetch.ts +65 -0
- package/src/__utils/is-dark-mode.ts +3 -0
- package/src/__utils/is-in-viewport.ts +6 -0
- package/src/__utils/observe-slot-change.ts +38 -0
- package/src/__utils/sanitize-svg.ts +27 -0
- package/src/__utils/throttle.ts +27 -0
- package/src/accordion/accordion-item.scss +136 -65
- package/src/accordion/accordion-item.ts +117 -44
- package/src/accordion/accordion.scss +24 -5
- package/src/accordion/accordion.ts +29 -23
- package/src/accordion/demo/index.html +74 -35
- package/src/banner/banner.scss +83 -0
- package/src/banner/banner.ts +101 -0
- package/src/banner/index.ts +1 -0
- package/src/button/BaseButton.ts +13 -115
- package/src/button/button/button-colors.scss +14 -14
- package/src/button/button/button-sizes.scss +4 -2
- package/src/button/button/button.ts +80 -26
- package/src/button/button-group/button-group.ts +5 -5
- package/src/button/icon-button/icon-button.ts +79 -44
- package/src/card/card.ts +50 -100
- package/src/chart-bar/chart-bar.ts +10 -15
- package/src/chart-bar/chart-stacked-bar.ts +15 -19
- package/src/chart-doughnut/chart-doughnut.ts +24 -28
- package/src/chart-pie/chart-pie.ts +20 -24
- package/src/checkbox/checkbox.scss +17 -34
- package/src/checkbox/checkbox.ts +4 -2
- package/src/clock/clock.ts +1 -1
- package/src/code-editor/code-editor.ts +4 -4
- package/src/code-highlighter/code-highlighter.scss +1 -0
- package/src/code-highlighter/code-highlighter.ts +3 -3
- package/src/date-picker/date-picker.ts +6 -3
- package/src/divider/divider.ts +3 -1
- package/src/elevation/elevation.scss +5 -5
- package/src/empty-state/empty-state.scss +7 -9
- package/src/empty-state/empty-state.ts +1 -1
- package/src/fab/fab-colors.scss +49 -0
- package/src/fab/fab-sizes.scss +47 -0
- package/src/fab/fab.scss +137 -0
- package/src/fab/fab.ts +214 -0
- package/src/fab/index.ts +1 -0
- package/src/field/field.ts +3 -1
- package/src/focus-ring/focus-ring.ts +47 -40
- package/src/icon/datasource.ts +1 -1
- package/src/icon/icon.ts +3 -1
- package/src/image/image.ts +3 -2
- package/src/index.ts +8 -1
- package/src/input/input.ts +8 -3
- package/src/link/link.ts +2 -15
- package/src/menu/menu/menu.scss +7 -0
- package/src/menu/menu/menu.ts +7 -4
- package/src/menu/menu-item/menu-item.ts +3 -1
- package/src/menu/sub-menu/sub-menu.ts +1 -0
- package/src/navigation-rail/index.ts +2 -0
- package/src/navigation-rail/navigation-rail-item.scss +216 -0
- package/src/navigation-rail/navigation-rail-item.ts +223 -0
- package/src/navigation-rail/navigation-rail.scss +72 -0
- package/src/navigation-rail/navigation-rail.ts +149 -0
- package/src/notification/index.ts +1 -0
- package/src/notification/notification.scss +201 -0
- package/src/notification/notification.ts +207 -0
- package/src/number-counter/number-counter.ts +3 -1
- package/src/number-field/number-field.ts +10 -6
- package/src/pagination/pagination.scss +33 -24
- package/src/pagination/pagination.ts +115 -60
- package/src/peacock-loader.ts +42 -5
- package/src/radio/radio.ts +3 -1
- package/src/search/index.ts +1 -0
- package/src/search/search-colors.scss +14 -0
- package/src/search/search.scss +204 -0
- package/src/search/search.ts +244 -0
- package/src/select/option.ts +1 -1
- package/src/select/select.scss +5 -0
- package/src/select/select.ts +71 -37
- package/src/sidebar-menu/demo/index.html +68 -0
- package/src/sidebar-menu/index.ts +3 -0
- package/src/sidebar-menu/sidebar-menu-item.scss +102 -0
- package/src/sidebar-menu/sidebar-menu-item.ts +151 -0
- package/src/{tree-view/tree-view.scss → sidebar-menu/sidebar-menu.scss} +1 -1
- package/src/sidebar-menu/sidebar-menu.ts +182 -0
- package/src/sidebar-menu/sidebar-sub-menu.scss +130 -0
- package/src/sidebar-menu/sidebar-sub-menu.ts +160 -0
- package/src/skeleton/skeleton.scss +18 -24
- package/src/slider/slider.scss +19 -0
- package/src/slider/slider.ts +30 -19
- package/src/snackbar/snackbar.scss +62 -31
- package/src/snackbar/snackbar.ts +91 -11
- package/src/switch/switch.ts +3 -1
- package/src/table/table.ts +3 -1
- package/src/tabs/tab.ts +10 -6
- package/src/text/text.css-component.scss +7 -1
- package/src/textarea/textarea.ts +4 -2
- package/src/time-picker/time-picker.ts +5 -3
- package/src/toolbar/index.ts +1 -0
- package/src/toolbar/toolbar-colors.scss +16 -0
- package/src/toolbar/toolbar.scss +165 -0
- package/src/toolbar/toolbar.ts +137 -0
- package/src/tooltip/tooltip.ts +24 -0
- package/src/url-field/index.ts +1 -0
- package/src/url-field/url-field.scss +50 -0
- package/src/url-field/url-field.ts +239 -0
- package/dist/button-COYCtuA8.js.map +0 -1
- package/dist/button-group-DsXquZQn.js.map +0 -1
- package/dist/directive-Cuw6h7YA.js +0 -9
- package/dist/directive-Cuw6h7YA.js.map +0 -1
- package/dist/dispatch-event-utils-B4odODQf.js +0 -277
- package/dist/dispatch-event-utils-B4odODQf.js.map +0 -1
- package/dist/observe-theme-change-DKAIv5BB.js.map +0 -1
- package/dist/select-C3XAzenC.js.map +0 -1
- package/dist/src/styleMixins.css.d.ts +0 -9
- package/dist/src/tree-view/index.d.ts +0 -2
- package/dist/src/tree-view/tree-node.d.ts +0 -69
- package/dist/src/tree-view/tree-view.d.ts +0 -40
- package/dist/src/tree-view/wc-tree-view.d.ts +0 -6
- package/dist/src/utils.d.ts +0 -9
- package/dist/test/tree-view.test.d.ts +0 -1
- package/src/styleMixins.css.ts +0 -55
- package/src/tree-view/demo/index.html +0 -57
- package/src/tree-view/index.ts +0 -2
- package/src/tree-view/tree-node.scss +0 -101
- package/src/tree-view/tree-node.ts +0 -268
- package/src/tree-view/tree-view.ts +0 -182
- package/src/tree-view/wc-tree-view.ts +0 -9
- package/src/utils.ts +0 -193
- /package/dist/src/{spread.d.ts → __directive/spread.d.ts} +0 -0
- /package/dist/src/{utils → __utils}/copy-to-clipboard.d.ts +0 -0
- /package/dist/src/{utils → __utils}/dispatch-event-utils.d.ts +0 -0
- /package/dist/src/{utils → __utils}/observe-theme-change.d.ts +0 -0
- /package/src/{spread.ts → __directive/spread.ts} +0 -0
- /package/src/{utils → __utils}/copy-to-clipboard.ts +0 -0
- /package/src/{utils → __utils}/dispatch-event-utils.ts +0 -0
- /package/src/{utils → __utils}/observe-theme-change.ts +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Navigation Rail Item
|
|
4
|
+
* @tag wc-navigation-rail-item
|
|
5
|
+
* @rawTag navigation-rail-item
|
|
6
|
+
* @parentRawTag navigation-rail
|
|
7
|
+
*
|
|
8
|
+
* @summary An individual item within a navigation rail.
|
|
9
|
+
* @overview
|
|
10
|
+
* <p>Navigation rail items display a destination with an icon and optional label.</p>
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <wc-navigation-rail-item>
|
|
15
|
+
* <wc-icon slot="icon">home</wc-icon>
|
|
16
|
+
* Home
|
|
17
|
+
* </wc-navigation-rail-item>
|
|
18
|
+
* ```
|
|
19
|
+
* @tags navigation
|
|
20
|
+
*/
|
|
21
|
+
export declare class NavigationRailItem extends LitElement {
|
|
22
|
+
#private;
|
|
23
|
+
static styles: import("lit").CSSResultGroup[];
|
|
24
|
+
/** Whether this item is currently active/selected. */
|
|
25
|
+
active: boolean;
|
|
26
|
+
/** Whether this item is disabled. */
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/** Whether the parent rail is in collapsed mode (labels hidden). */
|
|
29
|
+
collapsed: boolean;
|
|
30
|
+
/** If provided, the item renders as a link. */
|
|
31
|
+
href?: string;
|
|
32
|
+
/** Link target. */
|
|
33
|
+
target: string;
|
|
34
|
+
/** Value used for identification when managing active state externally. */
|
|
35
|
+
value?: string;
|
|
36
|
+
/** Reason the item is disabled (shown to screen readers). */
|
|
37
|
+
disabledReason: string;
|
|
38
|
+
/** Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds. */
|
|
39
|
+
throttleDelay: number;
|
|
40
|
+
private _isPressed;
|
|
41
|
+
private _hasLabel;
|
|
42
|
+
private _hasActiveIcon;
|
|
43
|
+
readonly itemElement: HTMLElement | null;
|
|
44
|
+
focus(): void;
|
|
45
|
+
blur(): void;
|
|
46
|
+
firstUpdated(): void;
|
|
47
|
+
__dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
|
|
48
|
+
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
49
|
+
__handlePress: (event: KeyboardEvent | MouseEvent) => void;
|
|
50
|
+
__isLink(): boolean;
|
|
51
|
+
__getDisabledReasonID(): string | typeof nothing;
|
|
52
|
+
__renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
53
|
+
__renderItemContent(): import("lit-html").TemplateResult<1>;
|
|
54
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { NavigationRailItem } from './navigation-rail-item.js';
|
|
3
|
+
/**
|
|
4
|
+
* @label Navigation Rail
|
|
5
|
+
* @tag wc-navigation-rail
|
|
6
|
+
* @rawTag navigation-rail
|
|
7
|
+
*
|
|
8
|
+
* @summary A vertical side navigation for medium-sized screens, following Material Design 3 specs.
|
|
9
|
+
* @overview
|
|
10
|
+
* <p>Navigation rail provides access to primary destinations in an app using icons—with or without labels—on a vertical rail.</p>
|
|
11
|
+
* <p>Use navigation rail on medium-sized screens (tablets) with 3–7 destinations.</p>
|
|
12
|
+
*
|
|
13
|
+
* @cssprop --nav-rail-width - Width of the rail container. Defaults to 5rem (80dp).
|
|
14
|
+
* @cssprop --nav-rail-container-color - Background color of the rail. Defaults to surface color.
|
|
15
|
+
* @cssprop --nav-rail-indicator-color - Color of the active indicator. Defaults to secondary-container.
|
|
16
|
+
* @cssprop --nav-rail-indicator-shape - Shape (border-radius) of the active indicator. Defaults to full (pill).
|
|
17
|
+
* @cssprop --nav-rail-indicator-width - Width of the active indicator. Defaults to 3.5rem (56dp).
|
|
18
|
+
* @cssprop --nav-rail-indicator-height - Height of the active indicator. Defaults to 2rem (32dp).
|
|
19
|
+
* @cssprop --nav-rail-inactive-icon-color - Color of inactive icons. Defaults to on-surface-variant.
|
|
20
|
+
* @cssprop --nav-rail-active-icon-color - Color of active icons. Defaults to on-secondary-container.
|
|
21
|
+
* @cssprop --nav-rail-inactive-label-color - Color of inactive labels. Defaults to on-surface-variant.
|
|
22
|
+
* @cssprop --nav-rail-active-label-color - Color of active labels. Defaults to on-surface.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <wc-navigation-rail>
|
|
27
|
+
* <wc-navigation-rail-item active>
|
|
28
|
+
* <wc-icon slot="icon">home</wc-icon>
|
|
29
|
+
* Home
|
|
30
|
+
* </wc-navigation-rail-item>
|
|
31
|
+
* <wc-navigation-rail-item>
|
|
32
|
+
* <wc-icon slot="icon">search</wc-icon>
|
|
33
|
+
* Search
|
|
34
|
+
* </wc-navigation-rail-item>
|
|
35
|
+
* <wc-navigation-rail-item>
|
|
36
|
+
* <wc-icon slot="icon">settings</wc-icon>
|
|
37
|
+
* Settings
|
|
38
|
+
* </wc-navigation-rail-item>
|
|
39
|
+
* </wc-navigation-rail>
|
|
40
|
+
* ```
|
|
41
|
+
* @tags navigation
|
|
42
|
+
*/
|
|
43
|
+
export declare class NavigationRail extends LitElement {
|
|
44
|
+
static styles: import("lit").CSSResultGroup[];
|
|
45
|
+
static Item: typeof NavigationRailItem;
|
|
46
|
+
/**
|
|
47
|
+
* Vertical alignment of items within the rail.
|
|
48
|
+
* - `"top"`: Items align to the top.
|
|
49
|
+
* - `"center"`: Items are centered (default).
|
|
50
|
+
* - `"bottom"`: Items align to the bottom.
|
|
51
|
+
*/
|
|
52
|
+
alignment: 'top' | 'center' | 'bottom';
|
|
53
|
+
/**
|
|
54
|
+
* Display mode of the navigation rail.
|
|
55
|
+
* - `"expanded"`: shows labels.
|
|
56
|
+
* - `"collapsed"`: hides labels.
|
|
57
|
+
*/
|
|
58
|
+
mode: 'expanded' | 'collapsed';
|
|
59
|
+
/**
|
|
60
|
+
* Whether to show a divider between the header and items sections.
|
|
61
|
+
*/
|
|
62
|
+
showDivider: boolean;
|
|
63
|
+
connectedCallback(): void;
|
|
64
|
+
disconnectedCallback(): void;
|
|
65
|
+
protected firstUpdated(): void;
|
|
66
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
67
|
+
private _handleItemClick;
|
|
68
|
+
private _getItems;
|
|
69
|
+
private _syncItemMode;
|
|
70
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Notification } from './notification.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
type NotificationVariant = 'success' | 'error' | 'info' | 'warning';
|
|
3
|
+
/**
|
|
4
|
+
* @label Notification
|
|
5
|
+
* @tag wc-notification
|
|
6
|
+
* @rawTag notification
|
|
7
|
+
* @summary Notifications communicate contextual status, errors, warnings, and success messages.
|
|
8
|
+
*
|
|
9
|
+
* @cssprop --notification-container-color - Surface color for the notification container.
|
|
10
|
+
* @cssprop --notification-text-color - Label and supporting text color.
|
|
11
|
+
* @cssprop --notification-leading-icon-color - Leading state icon color.
|
|
12
|
+
* @cssprop --notification-accent-color - Start border color for status emphasis.
|
|
13
|
+
* @cssprop --notification-border-radius - Border radius of the notification container.
|
|
14
|
+
*
|
|
15
|
+
* @fires {CustomEvent} notification-dismiss - Fired when the notification is dismissed.
|
|
16
|
+
* @fires {CustomEvent} notification-action-click - Fired when the action button is clicked.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <wc-notification variant="success" action="Undo" dismissible>
|
|
21
|
+
* <span slot="title">Record saved</span>
|
|
22
|
+
* </wc-notification>
|
|
23
|
+
* ```
|
|
24
|
+
* @tags display, feedback
|
|
25
|
+
*/
|
|
26
|
+
export declare class Notification extends LitElement {
|
|
27
|
+
static styles: import("lit").CSSResultGroup[];
|
|
28
|
+
/**
|
|
29
|
+
* If true, content and actions are laid out in a single row.
|
|
30
|
+
*/
|
|
31
|
+
inline: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The visual variant of the notification.
|
|
34
|
+
*/
|
|
35
|
+
variant: NotificationVariant;
|
|
36
|
+
/**
|
|
37
|
+
* Enables a high contrast appearance.
|
|
38
|
+
*/
|
|
39
|
+
highContrast: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If true, renders a dismiss icon button.
|
|
42
|
+
*/
|
|
43
|
+
dismissible: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Action label text. When provided, an action button is shown.
|
|
46
|
+
*/
|
|
47
|
+
action: string;
|
|
48
|
+
/**
|
|
49
|
+
* If true, the host controls visibility when dismissed.
|
|
50
|
+
*/
|
|
51
|
+
managed: boolean;
|
|
52
|
+
private isHidden;
|
|
53
|
+
private hasSubtitle;
|
|
54
|
+
/**
|
|
55
|
+
* Programmatically reveals the notification.
|
|
56
|
+
*/
|
|
57
|
+
show(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Programmatically dismisses the notification.
|
|
60
|
+
*/
|
|
61
|
+
dismiss(): void;
|
|
62
|
+
private get variantIcon();
|
|
63
|
+
private get variantLabel();
|
|
64
|
+
private emitActionClick;
|
|
65
|
+
private hideAndEmitDismiss;
|
|
66
|
+
private handleSubtitleSlotChange;
|
|
67
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import type { PropertyValues } from 'lit';
|
|
2
3
|
/**
|
|
3
4
|
* @label Pagination
|
|
4
5
|
* @tag wc-pagination
|
|
@@ -11,7 +12,7 @@ import { LitElement } from 'lit';
|
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```html
|
|
14
|
-
* <wc-pagination page="1" page-size="10" total-items="100"></wc-pagination>
|
|
15
|
+
* <wc-pagination style="width: 100%;" page="1" page-size="10" total-items="100"></wc-pagination>
|
|
15
16
|
* ```
|
|
16
17
|
* @tags navigation, data
|
|
17
18
|
*/
|
|
@@ -33,6 +34,12 @@ export declare class Pagination extends LitElement {
|
|
|
33
34
|
* Supported page size options.
|
|
34
35
|
*/
|
|
35
36
|
pageSizes: number[];
|
|
37
|
+
protected willUpdate(changedProperties: PropertyValues<Pagination>): void;
|
|
38
|
+
private getTotalPages;
|
|
39
|
+
private setPage;
|
|
40
|
+
private handlePageSizeChange;
|
|
41
|
+
private handlePreviousPage;
|
|
42
|
+
private handleNextPage;
|
|
36
43
|
private dispatchPageEvent;
|
|
37
44
|
render(): import("lit-html").TemplateResult<1>;
|
|
38
45
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Search } from './search.js';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Search
|
|
4
|
+
* @tag wc-search
|
|
5
|
+
* @rawTag search
|
|
6
|
+
*
|
|
7
|
+
* @summary A Material 3 search bar for filtering and finding content.
|
|
8
|
+
* @overview
|
|
9
|
+
* <p>The search component provides a text input designed for search interactions.
|
|
10
|
+
* It supports outlined and filled variants, an optional clear button, and leading/trailing icon slots.</p>
|
|
11
|
+
*
|
|
12
|
+
* @cssprop --search-container-shape - Border radius of the search bar. Defaults to full (pill shape).
|
|
13
|
+
* @cssprop --search-container-color - Background color of the search container.
|
|
14
|
+
* @cssprop --search-input-text-color - Color of the input text.
|
|
15
|
+
* @cssprop --search-placeholder-color - Color of the placeholder text.
|
|
16
|
+
* @cssprop --search-icon-color - Color of the leading and trailing icons.
|
|
17
|
+
* @cssprop --search-outline-color - Border color for the outlined variant.
|
|
18
|
+
* @cssprop --search-outline-width - Border width for the outlined variant.
|
|
19
|
+
*
|
|
20
|
+
* @fires {CustomEvent} input - Dispatched when the search value changes.
|
|
21
|
+
* @fires {CustomEvent} change - Dispatched when the search input loses focus or Enter is pressed.
|
|
22
|
+
* @fires {CustomEvent} clear - Dispatched when the clear button is activated.
|
|
23
|
+
* @fires {CustomEvent} search - Dispatched when the user submits the search (presses Enter).
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```html
|
|
27
|
+
* <wc-search placeholder="Search..."></wc-search>
|
|
28
|
+
* ```
|
|
29
|
+
* @tags form
|
|
30
|
+
*/
|
|
31
|
+
export declare class Search extends LitElement {
|
|
32
|
+
static styles: import("lit").CSSResultGroup[];
|
|
33
|
+
/**
|
|
34
|
+
* Visual style variant.
|
|
35
|
+
* Possible values: `"outlined"`, `"filled"`. Defaults to `"filled"`.
|
|
36
|
+
*/
|
|
37
|
+
variant: 'outlined' | 'filled';
|
|
38
|
+
/**
|
|
39
|
+
* Placeholder text shown when the input is empty.
|
|
40
|
+
*/
|
|
41
|
+
placeholder: string;
|
|
42
|
+
/**
|
|
43
|
+
* Current search value.
|
|
44
|
+
*/
|
|
45
|
+
value: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the search bar is disabled.
|
|
48
|
+
*/
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a clear button is shown when the input has a value.
|
|
52
|
+
*/
|
|
53
|
+
clearable: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Size of the search bar.
|
|
56
|
+
* Possible values: `"sm"`, `"md"`, `"lg"`. Defaults to `"md"`.
|
|
57
|
+
*/
|
|
58
|
+
size: 'sm' | 'md' | 'lg';
|
|
59
|
+
private focused;
|
|
60
|
+
private leadingSlotHasContent;
|
|
61
|
+
private inputElement?;
|
|
62
|
+
firstUpdated(): void;
|
|
63
|
+
/** Focuses the internal input element. */
|
|
64
|
+
focus(): void;
|
|
65
|
+
/** Blurs the internal input element. */
|
|
66
|
+
blur(): void;
|
|
67
|
+
private __handleInput;
|
|
68
|
+
private __handleChange;
|
|
69
|
+
private __handleKeydown;
|
|
70
|
+
private __handleFocus;
|
|
71
|
+
private __handleBlur;
|
|
72
|
+
private __clearValue;
|
|
73
|
+
private __renderClearButton;
|
|
74
|
+
private __renderLeadingIcon;
|
|
75
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
76
|
+
}
|
|
@@ -29,6 +29,7 @@ export interface SelectOption {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare class Select extends BaseInput {
|
|
31
31
|
static styles: import("lit").CSSResultGroup[];
|
|
32
|
+
private readonly _menuId;
|
|
32
33
|
/**
|
|
33
34
|
* Array of options to display in the dropdown.
|
|
34
35
|
* Setting this property creates matching `<wc-option>` children automatically.
|
|
@@ -56,10 +57,6 @@ export declare class Select extends BaseInput {
|
|
|
56
57
|
* Label displayed above the field.
|
|
57
58
|
*/
|
|
58
59
|
label: string;
|
|
59
|
-
/**
|
|
60
|
-
* Show a clear button in single-select mode when a value is selected.
|
|
61
|
-
*/
|
|
62
|
-
clearable: boolean;
|
|
63
60
|
/**
|
|
64
61
|
* Visual variant of the field.
|
|
65
62
|
*/
|
|
@@ -103,13 +100,14 @@ export declare class Select extends BaseInput {
|
|
|
103
100
|
private _openMenu;
|
|
104
101
|
private _closeMenu;
|
|
105
102
|
private _handleTriggerClick;
|
|
103
|
+
private _handleFieldClick;
|
|
106
104
|
private _handleTriggerKeyDown;
|
|
107
105
|
private _handleMenuClosed;
|
|
108
106
|
private _handleMenuItemActivate;
|
|
109
107
|
private _dispatchChange;
|
|
110
108
|
private _handleSearchInput;
|
|
111
|
-
private _handleClear;
|
|
112
109
|
private _handleChipDismiss;
|
|
110
|
+
private _renderEmptyState;
|
|
113
111
|
private _renderTriggerContent;
|
|
114
112
|
private _renderFieldEnd;
|
|
115
113
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Sidebar Menu Item
|
|
4
|
+
* @tag wc-sidebar-menu-item
|
|
5
|
+
* @rawTag sidebar-menu-item
|
|
6
|
+
* @parentRawTag sidebar-menu
|
|
7
|
+
* @summary A sidebar menu item represents a selectable leaf item in the sidebar navigation tree.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <wc-sidebar-menu>
|
|
12
|
+
* <wc-sidebar-sub-menu label="Parent" expanded>
|
|
13
|
+
* <wc-sidebar-menu-item label="Child"></wc-sidebar-menu-item>
|
|
14
|
+
* </wc-sidebar-sub-menu>
|
|
15
|
+
* </wc-sidebar-menu>
|
|
16
|
+
* ```
|
|
17
|
+
* @tags navigation
|
|
18
|
+
*/
|
|
19
|
+
export declare class SidebarMenuItem extends LitElement {
|
|
20
|
+
static styles: import("lit").CSSResultGroup[];
|
|
21
|
+
/**
|
|
22
|
+
* The value used to identify this item when selected.
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
/**
|
|
26
|
+
* The display label for this item.
|
|
27
|
+
*/
|
|
28
|
+
label: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional icon name to display before the label.
|
|
31
|
+
*/
|
|
32
|
+
icon: string;
|
|
33
|
+
/**
|
|
34
|
+
* Optional hyperlink to navigate to on click.
|
|
35
|
+
*/
|
|
36
|
+
href: string;
|
|
37
|
+
/**
|
|
38
|
+
* Sets or retrieves the window or frame at which to target content.
|
|
39
|
+
*/
|
|
40
|
+
target: string;
|
|
41
|
+
/**
|
|
42
|
+
* If true, the user cannot interact with the item.
|
|
43
|
+
*/
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the item is currently selected.
|
|
47
|
+
*/
|
|
48
|
+
selected: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The nesting depth level (set automatically by the parent sidebar-menu).
|
|
51
|
+
*/
|
|
52
|
+
level: number;
|
|
53
|
+
private readonly _nativeElement;
|
|
54
|
+
focus(): void;
|
|
55
|
+
blur(): void;
|
|
56
|
+
private _onClick;
|
|
57
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Sidebar Menu
|
|
4
|
+
* @tag wc-sidebar-menu
|
|
5
|
+
* @rawTag sidebar-menu
|
|
6
|
+
* @summary A sidebar menu is a hierarchical structure that provides nested levels of navigation. It supports keyboard navigation, single/multi select, and expandable items.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <wc-sidebar-menu>
|
|
11
|
+
* <wc-sidebar-sub-menu label="Parent" expanded>
|
|
12
|
+
* <wc-sidebar-menu-item label="Child 1"></wc-sidebar-menu-item>
|
|
13
|
+
* <wc-sidebar-menu-item label="Child 2"></wc-sidebar-menu-item>
|
|
14
|
+
* </wc-sidebar-sub-menu>
|
|
15
|
+
* </wc-sidebar-menu>
|
|
16
|
+
* ```
|
|
17
|
+
* @tags navigation
|
|
18
|
+
*/
|
|
19
|
+
export declare class SidebarMenu extends LitElement {
|
|
20
|
+
static styles: import("lit").CSSResultGroup[];
|
|
21
|
+
/**
|
|
22
|
+
* The value of the currently selected item.
|
|
23
|
+
*/
|
|
24
|
+
selectedItem: string;
|
|
25
|
+
connectedCallback(): void;
|
|
26
|
+
updated(changedProps: Map<string, unknown>): void;
|
|
27
|
+
disconnectedCallback(): void;
|
|
28
|
+
private _isSidebarNode;
|
|
29
|
+
private _getTopLevelItems;
|
|
30
|
+
private _getChildNodes;
|
|
31
|
+
private _getAllVisibleItems;
|
|
32
|
+
private _onItemClick;
|
|
33
|
+
private _updateSelectedState;
|
|
34
|
+
private _collectAllItems;
|
|
35
|
+
private _syncSelectedStateFromProperty;
|
|
36
|
+
private _onKeyDown;
|
|
37
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Sidebar Sub Menu
|
|
4
|
+
* @tag wc-sidebar-sub-menu
|
|
5
|
+
* @rawTag sidebar-sub-menu
|
|
6
|
+
* @parentRawTag sidebar-menu
|
|
7
|
+
* @summary A sidebar sub menu groups sidebar menu items and handles expand/collapse behavior.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <wc-sidebar-sub-menu label="Parent" expanded>
|
|
12
|
+
* <wc-sidebar-menu-item label="Child"></wc-sidebar-menu-item>
|
|
13
|
+
* </wc-sidebar-sub-menu>
|
|
14
|
+
* ```
|
|
15
|
+
* @tags navigation
|
|
16
|
+
*/
|
|
17
|
+
export declare class SidebarSubMenu extends LitElement {
|
|
18
|
+
static styles: import("lit").CSSResultGroup[];
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
selected: boolean;
|
|
24
|
+
expanded: boolean;
|
|
25
|
+
level: number;
|
|
26
|
+
private readonly _nativeElement;
|
|
27
|
+
focus(): void;
|
|
28
|
+
blur(): void;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
updated(changedProps: Map<string, unknown>): void;
|
|
31
|
+
private _getChildNodes;
|
|
32
|
+
private _updateChildLevels;
|
|
33
|
+
private _onClick;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|
|
@@ -40,6 +40,10 @@ export declare class Slider extends LitElement {
|
|
|
40
40
|
* Whether to show labels on the slider.
|
|
41
41
|
*/
|
|
42
42
|
labeled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show the current value beside the slider.
|
|
45
|
+
*/
|
|
46
|
+
showValue: boolean;
|
|
43
47
|
private isDragging;
|
|
44
48
|
private container;
|
|
45
49
|
private thumbElement;
|
|
@@ -10,29 +10,42 @@ import { LitElement } from 'lit';
|
|
|
10
10
|
* @cssprop --snackbar-action-text-color - Action text color.
|
|
11
11
|
* @cssprop --snackbar-close-icon-color - Close icon color.
|
|
12
12
|
* @cssprop --snackbar-border-radius - Border radius of the snackbar surface.
|
|
13
|
+
* @cssprop --snackbar-offset-inline - Inline offset from viewport edges.
|
|
14
|
+
* @cssprop --snackbar-offset-bottom - Bottom offset from viewport edge.
|
|
15
|
+
* @cssprop --snackbar-z-index - Stacking order for the snackbar.
|
|
13
16
|
*
|
|
14
17
|
* @example
|
|
15
18
|
* ```html
|
|
16
|
-
* <wc-snackbar
|
|
19
|
+
* <wc-snackbar preview message="Message archived" action-label="Undo"></wc-snackbar>
|
|
17
20
|
* ```
|
|
18
21
|
* @tags display, feedback
|
|
19
22
|
*/
|
|
20
23
|
export declare class Snackbar extends LitElement {
|
|
21
24
|
static styles: import("lit").CSSResultGroup[];
|
|
25
|
+
private static readonly GLOBAL_OPEN_EVENT;
|
|
26
|
+
private static readonly EXIT_ANIMATION_MS;
|
|
22
27
|
open: boolean;
|
|
23
28
|
message: string;
|
|
24
29
|
actionLabel: string;
|
|
25
30
|
showCloseIcon: boolean;
|
|
26
31
|
duration: number;
|
|
27
32
|
multiline: boolean;
|
|
33
|
+
preview: boolean;
|
|
34
|
+
private dismissing;
|
|
28
35
|
private hideTimer;
|
|
36
|
+
private exitTimer;
|
|
37
|
+
private readonly handleGlobalSnackbarOpen;
|
|
38
|
+
connectedCallback(): void;
|
|
29
39
|
show(): void;
|
|
30
40
|
hide(): void;
|
|
31
41
|
private close;
|
|
42
|
+
private completeDismiss;
|
|
32
43
|
private dispatchActionEvent;
|
|
33
44
|
private handleActionClick;
|
|
34
45
|
private handleCloseClick;
|
|
35
46
|
private clearTimer;
|
|
47
|
+
private clearExitTimer;
|
|
48
|
+
private handleAnimationEnd;
|
|
36
49
|
private scheduleAutoHide;
|
|
37
50
|
protected updated(changedProperties: Map<string, unknown>): void;
|
|
38
51
|
disconnectedCallback(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toolbar } from './toolbar.js';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Toolbar
|
|
4
|
+
* @tag wc-toolbar
|
|
5
|
+
* @rawTag toolbar
|
|
6
|
+
*
|
|
7
|
+
* @summary A Material 3 toolbar / app bar for navigation and actions.
|
|
8
|
+
* @overview
|
|
9
|
+
* <p>The toolbar component implements the Material 3 app bar pattern. It supports a
|
|
10
|
+
* docked (attached) variant for bottom-panel navigation and a floating (detached pill-shaped)
|
|
11
|
+
* variant. The floating variant supports both horizontal and vertical orientations.</p>
|
|
12
|
+
*
|
|
13
|
+
* <p>Render toolbar actions directly as children of the component. The docked variant is
|
|
14
|
+
* optimized for a horizontal action row, while the floating variant supports both horizontal
|
|
15
|
+
* and vertical layouts.</p>
|
|
16
|
+
*
|
|
17
|
+
* @cssprop --toolbar-container-color - Background color of the toolbar.
|
|
18
|
+
* @cssprop --toolbar-container-shape - Border radius of the toolbar. Relevant for the floating variant.
|
|
19
|
+
* @cssprop --toolbar-height - Height of the toolbar (docked horizontal / floating horizontal).
|
|
20
|
+
* @cssprop --toolbar-padding-inline - Inline padding of the toolbar.
|
|
21
|
+
* @cssprop --toolbar-gap - Gap between toolbar sections.
|
|
22
|
+
* @cssprop --toolbar-icon-color - Color of icon slots.
|
|
23
|
+
* @cssprop --toolbar-title-color - Color of the title (default slot) text.
|
|
24
|
+
* @cssprop --toolbar-shadow - Box-shadow of the toolbar.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```html
|
|
28
|
+
* <!-- Docked toolbar -->
|
|
29
|
+
* <wc-toolbar>
|
|
30
|
+
* <wc-icon-button variant="text"><wc-icon name="home"></wc-icon></wc-icon-button>
|
|
31
|
+
* <wc-icon-button variant="tonal"><wc-icon name="search"></wc-icon></wc-icon-button>
|
|
32
|
+
* <wc-icon-button variant="text"><wc-icon name="favorite"></wc-icon></wc-icon-button>
|
|
33
|
+
* <wc-icon-button variant="text"><wc-icon name="account_circle"></wc-icon></wc-icon-button>
|
|
34
|
+
* </wc-toolbar>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <!-- Floating horizontal toolbar -->
|
|
40
|
+
* <wc-toolbar variant="floating" orientation="horizontal">
|
|
41
|
+
* <wc-icon-button variant="tonal"><wc-icon name="home"></wc-icon></wc-icon-button>
|
|
42
|
+
* <wc-icon-button variant="text"><wc-icon name="search"></wc-icon></wc-icon-button>
|
|
43
|
+
* <wc-icon-button variant="text"><wc-icon name="favorite"></wc-icon></wc-icon-button>
|
|
44
|
+
* </wc-toolbar>
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```html
|
|
49
|
+
* <!-- Floating vertical toolbar -->
|
|
50
|
+
* <wc-toolbar variant="floating" orientation="vertical">
|
|
51
|
+
* <wc-icon-button variant="tonal"><wc-icon name="home"></wc-icon></wc-icon-button>
|
|
52
|
+
* <wc-icon-button variant="text"><wc-icon name="search"></wc-icon></wc-icon-button>
|
|
53
|
+
* <wc-icon-button variant="text"><wc-icon name="favorite"></wc-icon></wc-icon-button>
|
|
54
|
+
* </wc-toolbar>
|
|
55
|
+
* ```
|
|
56
|
+
* @tags display navigation
|
|
57
|
+
*/
|
|
58
|
+
export declare class Toolbar extends LitElement {
|
|
59
|
+
static styles: import("lit").CSSResultGroup[];
|
|
60
|
+
/**
|
|
61
|
+
* Visual and layout variant of the toolbar.
|
|
62
|
+
* - `"docked"`: A full-width bar attached to the edge of the screen (default).
|
|
63
|
+
* - `"floating"`: A detached pill-shaped toolbar that floats over content.
|
|
64
|
+
*/
|
|
65
|
+
variant: 'docked' | 'floating';
|
|
66
|
+
/**
|
|
67
|
+
* Orientation of the toolbar content.
|
|
68
|
+
* - `"horizontal"`: Items are laid out left to right (default).
|
|
69
|
+
* - `"vertical"`: Items are stacked top to bottom. Primarily useful for the floating variant.
|
|
70
|
+
*/
|
|
71
|
+
orientation: 'horizontal' | 'vertical';
|
|
72
|
+
/**
|
|
73
|
+
* Size of the docked toolbar.
|
|
74
|
+
* - `"small"`: 80dp height (default).
|
|
75
|
+
* - `"medium"`: 96dp height.
|
|
76
|
+
* - `"large"`: 112dp height.
|
|
77
|
+
*/
|
|
78
|
+
size: 'small' | 'medium' | 'large';
|
|
79
|
+
/**
|
|
80
|
+
* Whether the toolbar is visually elevated (adds a shadow).
|
|
81
|
+
*/
|
|
82
|
+
elevated: boolean;
|
|
83
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
84
|
+
private static __renderDocked;
|
|
85
|
+
private static __renderFloating;
|
|
86
|
+
}
|
|
@@ -40,6 +40,9 @@ export declare class Tooltip extends LitElement {
|
|
|
40
40
|
private _handleGlobalOpen;
|
|
41
41
|
private _handleDocumentClick;
|
|
42
42
|
private detachListeners;
|
|
43
|
+
_focusTarget?: HTMLElement;
|
|
44
|
+
set forElement(value: HTMLElement | null);
|
|
45
|
+
__getFocusTarget(): HTMLElement | null;
|
|
43
46
|
private attachListeners;
|
|
44
47
|
connectedCallback(): void;
|
|
45
48
|
disconnectedCallback(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UrlField } from './url-field.js';
|