@m3e/web 2.1.1 → 2.1.2
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/all.js +605 -1296
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +54 -114
- package/dist/all.min.js.map +1 -1
- package/dist/app-bar.js +2 -34
- package/dist/app-bar.js.map +1 -1
- package/dist/app-bar.min.js +1 -1
- package/dist/app-bar.min.js.map +1 -1
- package/dist/autocomplete.js +17 -40
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.min.js +1 -1
- package/dist/autocomplete.min.js.map +1 -1
- package/dist/avatar.js +1 -28
- package/dist/avatar.js.map +1 -1
- package/dist/avatar.min.js +1 -1
- package/dist/avatar.min.js.map +1 -1
- package/dist/badge.js +1 -39
- package/dist/badge.js.map +1 -1
- package/dist/badge.min.js +1 -1
- package/dist/badge.min.js.map +1 -1
- package/dist/bottom-sheet.js +22 -58
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/bottom-sheet.min.js +1 -1
- package/dist/bottom-sheet.min.js.map +1 -1
- package/dist/button-group.js +2 -34
- package/dist/button-group.js.map +1 -1
- package/dist/button-group.min.js +1 -1
- package/dist/button-group.min.js.map +1 -1
- package/dist/button.js +2 -34
- package/dist/button.js.map +1 -1
- package/dist/button.min.js +1 -1
- package/dist/button.min.js.map +1 -1
- package/dist/card.js +4 -34
- package/dist/card.js.map +1 -1
- package/dist/card.min.js +1 -1
- package/dist/card.min.js.map +1 -1
- package/dist/checkbox.js +2 -34
- package/dist/checkbox.js.map +1 -1
- package/dist/checkbox.min.js +1 -1
- package/dist/checkbox.min.js.map +1 -1
- package/dist/chips.js +2 -40
- package/dist/chips.js.map +1 -1
- package/dist/chips.min.js +1 -1
- package/dist/chips.min.js.map +1 -1
- package/dist/core-a11y.js +1 -39
- package/dist/core-a11y.js.map +1 -1
- package/dist/core-a11y.min.js +4 -4
- package/dist/core-a11y.min.js.map +1 -1
- package/dist/core-anchoring.js +164 -177
- package/dist/core-anchoring.js.map +1 -1
- package/dist/core-anchoring.min.js +1 -1
- package/dist/core-anchoring.min.js.map +1 -1
- package/dist/core-bidi.js +1 -31
- package/dist/core-bidi.js.map +1 -1
- package/dist/core-bidi.min.js +2 -3
- package/dist/core-bidi.min.js.map +1 -1
- package/dist/core.js +53 -40
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/core.min.js.map +1 -1
- package/dist/css-custom-data.json +517 -512
- package/dist/custom-elements.json +5201 -4336
- package/dist/dialog.js +3 -41
- package/dist/dialog.js.map +1 -1
- package/dist/dialog.min.js +1 -1
- package/dist/dialog.min.js.map +1 -1
- package/dist/divider.js +1 -28
- package/dist/divider.js.map +1 -1
- package/dist/divider.min.js +1 -1
- package/dist/divider.min.js.map +1 -1
- package/dist/drawer-container.js +18 -48
- package/dist/drawer-container.js.map +1 -1
- package/dist/drawer-container.min.js +1 -1
- package/dist/drawer-container.min.js.map +1 -1
- package/dist/expansion-panel.js +8 -41
- package/dist/expansion-panel.js.map +1 -1
- package/dist/expansion-panel.min.js +1 -1
- package/dist/expansion-panel.min.js.map +1 -1
- package/dist/fab-menu.js +3 -47
- package/dist/fab-menu.js.map +1 -1
- package/dist/fab-menu.min.js +1 -1
- package/dist/fab-menu.min.js.map +1 -1
- package/dist/fab.js +1 -33
- package/dist/fab.js.map +1 -1
- package/dist/fab.min.js +1 -1
- package/dist/fab.min.js.map +1 -1
- package/dist/form-field.js +19 -49
- package/dist/form-field.js.map +1 -1
- package/dist/form-field.min.js +3 -4
- package/dist/form-field.min.js.map +1 -1
- package/dist/heading.js +1 -28
- package/dist/heading.js.map +1 -1
- package/dist/heading.min.js +1 -1
- package/dist/heading.min.js.map +1 -1
- package/dist/html-custom-data.json +192 -171
- package/dist/icon-button.js +2 -34
- package/dist/icon-button.js.map +1 -1
- package/dist/icon-button.min.js +1 -1
- package/dist/icon-button.min.js.map +1 -1
- package/dist/icon.js +1 -28
- package/dist/icon.js.map +1 -1
- package/dist/icon.min.js +1 -1
- package/dist/icon.min.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +7 -0
- package/dist/index.min.js.map +1 -0
- package/dist/list.js +17 -46
- package/dist/list.js.map +1 -1
- package/dist/list.min.js +1 -1
- package/dist/list.min.js.map +1 -1
- package/dist/loading-indicator.js +8 -31
- package/dist/loading-indicator.js.map +1 -1
- package/dist/loading-indicator.min.js +1 -1
- package/dist/loading-indicator.min.js.map +1 -1
- package/dist/menu.js +3 -47
- package/dist/menu.js.map +1 -1
- package/dist/menu.min.js +1 -1
- package/dist/menu.min.js.map +1 -1
- package/dist/nav-bar.js +3 -41
- package/dist/nav-bar.js.map +1 -1
- package/dist/nav-bar.min.js +1 -1
- package/dist/nav-bar.min.js.map +1 -1
- package/dist/nav-menu.js +2 -40
- package/dist/nav-menu.js.map +1 -1
- package/dist/nav-menu.min.js +1 -1
- package/dist/nav-menu.min.js.map +1 -1
- package/dist/nav-rail.js +1 -33
- package/dist/nav-rail.js.map +1 -1
- package/dist/nav-rail.min.js +1 -1
- package/dist/nav-rail.min.js.map +1 -1
- package/dist/option.js +3 -59
- package/dist/option.js.map +1 -1
- package/dist/option.min.js +1 -1
- package/dist/option.min.js.map +1 -1
- package/dist/paginator.js +2 -34
- package/dist/paginator.js.map +1 -1
- package/dist/paginator.min.js +2 -3
- package/dist/paginator.min.js.map +1 -1
- package/dist/progress-indicator.js +41 -63
- package/dist/progress-indicator.js.map +1 -1
- package/dist/progress-indicator.min.js +32 -32
- package/dist/progress-indicator.min.js.map +1 -1
- package/dist/radio-group.js +1 -39
- package/dist/radio-group.js.map +1 -1
- package/dist/radio-group.min.js +1 -1
- package/dist/radio-group.min.js.map +1 -1
- package/dist/segmented-button.js +2 -40
- package/dist/segmented-button.js.map +1 -1
- package/dist/segmented-button.min.js +1 -1
- package/dist/segmented-button.min.js.map +1 -1
- package/dist/select.js +16 -40
- package/dist/select.js.map +1 -1
- package/dist/select.min.js +1 -1
- package/dist/select.min.js.map +1 -1
- package/dist/shape.js +1 -28
- package/dist/shape.js.map +1 -1
- package/dist/shape.min.js +1 -1
- package/dist/shape.min.js.map +1 -1
- package/dist/slide-group.js +9 -42
- package/dist/slide-group.js.map +1 -1
- package/dist/slide-group.min.js +1 -1
- package/dist/slide-group.min.js.map +1 -1
- package/dist/slider.js +1 -39
- package/dist/slider.js.map +1 -1
- package/dist/slider.min.js +1 -1
- package/dist/slider.min.js.map +1 -1
- package/dist/snackbar.js +2 -40
- package/dist/snackbar.js.map +1 -1
- package/dist/snackbar.min.js +1 -1
- package/dist/snackbar.min.js.map +1 -1
- package/dist/split-button.js +1 -39
- package/dist/split-button.js.map +1 -1
- package/dist/split-button.min.js +1 -1
- package/dist/split-button.min.js.map +1 -1
- package/dist/src/autocomplete/AutocompleteElement.d.ts +6 -0
- package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -1
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts +3 -3
- package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -1
- package/dist/src/card/CardElement.d.ts +1 -0
- package/dist/src/card/CardElement.d.ts.map +1 -1
- package/dist/src/card/styles/CardVariantToken.d.ts +1 -1
- package/dist/src/card/styles/CardVariantToken.d.ts.map +1 -1
- package/dist/src/core/anchoring/FloatingPanelElement.d.ts +6 -3
- package/dist/src/core/anchoring/FloatingPanelElement.d.ts.map +1 -1
- package/dist/src/core/anchoring/FloatingPanelScrollStrategy.d.ts +3 -0
- package/dist/src/core/anchoring/FloatingPanelScrollStrategy.d.ts.map +1 -0
- package/dist/src/core/anchoring/index.d.ts +1 -0
- package/dist/src/core/anchoring/index.d.ts.map +1 -1
- package/dist/src/core/shared/mixins/ReconnectedCallback.d.ts +15 -0
- package/dist/src/core/shared/mixins/ReconnectedCallback.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/SuppressInitialAnimation.d.ts +11 -0
- package/dist/src/core/shared/mixins/SuppressInitialAnimation.d.ts.map +1 -0
- package/dist/src/core/shared/mixins/index.d.ts +2 -0
- package/dist/src/core/shared/mixins/index.d.ts.map +1 -1
- package/dist/src/drawer-container/DrawerContainerElement.d.ts +4 -2
- package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -1
- package/dist/src/expansion-panel/ExpansionPanelElement.d.ts +3 -1
- package/dist/src/expansion-panel/ExpansionPanelElement.d.ts.map +1 -1
- package/dist/src/fab-menu/FabMenuElement.d.ts +1 -3
- package/dist/src/fab-menu/FabMenuElement.d.ts.map +1 -1
- package/dist/src/form-field/FormFieldElement.d.ts +4 -2
- package/dist/src/form-field/FormFieldElement.d.ts.map +1 -1
- package/dist/src/list/ActionListElement.d.ts.map +1 -1
- package/dist/src/list/ListItemElement.d.ts +3 -1
- package/dist/src/list/ListItemElement.d.ts.map +1 -1
- package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts +3 -1
- package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts.map +1 -1
- package/dist/src/menu/MenuElement.d.ts +1 -3
- package/dist/src/menu/MenuElement.d.ts.map +1 -1
- package/dist/src/nav-bar/NavBarElement.d.ts +1 -1
- package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -1
- package/dist/src/option/OptionPanelElement.d.ts +0 -4
- package/dist/src/option/OptionPanelElement.d.ts.map +1 -1
- package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts +2 -0
- package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts.map +1 -1
- package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts +2 -0
- package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts.map +1 -1
- package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts +1 -1
- package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts.map +1 -1
- package/dist/src/select/SelectElement.d.ts +6 -0
- package/dist/src/select/SelectElement.d.ts.map +1 -1
- package/dist/src/slide-group/SlideGroupElement.d.ts +5 -1
- package/dist/src/slide-group/SlideGroupElement.d.ts.map +1 -1
- package/dist/src/stepper/StepperElement.d.ts +1 -1
- package/dist/src/stepper/StepperElement.d.ts.map +1 -1
- package/dist/src/toc/TocElement.d.ts +1 -1
- package/dist/src/toc/TocElement.d.ts.map +1 -1
- package/dist/src/tooltip/TooltipElementBase.d.ts +3 -1
- package/dist/src/tooltip/TooltipElementBase.d.ts.map +1 -1
- package/dist/stepper.js +3 -41
- package/dist/stepper.js.map +1 -1
- package/dist/stepper.min.js +1 -1
- package/dist/stepper.min.js.map +1 -1
- package/dist/switch.js +1 -33
- package/dist/switch.js.map +1 -1
- package/dist/switch.min.js +1 -1
- package/dist/switch.min.js.map +1 -1
- package/dist/tabs.js +1 -39
- package/dist/tabs.js.map +1 -1
- package/dist/tabs.min.js +1 -1
- package/dist/tabs.min.js.map +1 -1
- package/dist/textarea-autosize.js +1 -39
- package/dist/textarea-autosize.js.map +1 -1
- package/dist/textarea-autosize.min.js +2 -3
- package/dist/textarea-autosize.min.js.map +1 -1
- package/dist/theme.js +1 -39
- package/dist/theme.js.map +1 -1
- package/dist/theme.min.js +19 -19
- package/dist/theme.min.js.map +1 -1
- package/dist/toc.js +4 -42
- package/dist/toc.js.map +1 -1
- package/dist/toc.min.js +1 -1
- package/dist/toc.min.js.map +1 -1
- package/dist/toolbar.js +1 -39
- package/dist/toolbar.js.map +1 -1
- package/dist/toolbar.min.js +1 -1
- package/dist/toolbar.min.js.map +1 -1
- package/dist/tooltip.js +15 -46
- package/dist/tooltip.js.map +1 -1
- package/dist/tooltip.min.js +1 -1
- package/dist/tooltip.min.js.map +1 -1
- package/package.json +3 -2
package/dist/all.js
CHANGED
|
@@ -3,481 +3,28 @@
|
|
|
3
3
|
* Copyright (c) 2025 matraic
|
|
4
4
|
* See LICENSE file in the project root for full license text.
|
|
5
5
|
*/
|
|
6
|
+
import { __classPrivateFieldGet, __decorate, __classPrivateFieldSet } from 'tslib';
|
|
6
7
|
import { unsafeCSS, css, LitElement, html, nothing, isServer, noChange, svg } from 'lit';
|
|
7
|
-
import {
|
|
8
|
+
import { query, property, queryAssignedElements, state } from 'lit/decorators.js';
|
|
9
|
+
import { DesignToken as DesignToken$1, HtmlFor as HtmlFor$1, Role as Role$1, hasAssignedNodes as hasAssignedNodes$1, debounce as debounce$1, customElement as customElement$1, MutationController as MutationController$1, setCustomState as setCustomState$1, deleteCustomState as deleteCustomState$1, prefersReducedMotion as prefersReducedMotion$1, scrollIntoViewIfNeeded as scrollIntoViewIfNeeded$1, forcedColorsActive as forcedColorsActive$1, addCustomState as addCustomState$1, ActionElementBase as ActionElementBase$1, EventAttribute as EventAttribute$1, ReconnectedCallback as ReconnectedCallback$1, SuppressInitialAnimation as SuppressInitialAnimation$1, AttachInternals as AttachInternals$1, VelocityTracker as VelocityTracker$1, ScrollLockController as ScrollLockController$1, ResizeController as ResizeController$1, focusWhenReady as focusWhenReady$1, hasCustomState as hasCustomState$1, computeCssSize as computeCssSize$1, spaceSeparatedStringConverter as spaceSeparatedStringConverter$1, KeyboardClick as KeyboardClick$1, LinkButton as LinkButton$1, FormSubmitter as FormSubmitter$1, Focusable as Focusable$1, DisabledInteractive as DisabledInteractive$1, Disabled as Disabled$1, FocusController as FocusController$1, PressedController as PressedController$1, renderPseudoLink as renderPseudoLink$1, isSelectedMixin as isSelectedMixin$1, Labelled as Labelled$1, RequiredConstraintValidation as RequiredConstraintValidation$1, Dirty as Dirty$1, Touched as Touched$1, Required as Required$1, ConstraintValidation as ConstraintValidation$1, CheckedIndeterminate as CheckedIndeterminate$1, FormAssociated as FormAssociated$1, HoverController as HoverController$1, formValue as formValue$1, isDisabledMixin as isDisabledMixin$1, isDisabledInteractiveMixin as isDisabledInteractiveMixin$1, isLinkButtonMixin as isLinkButtonMixin$1, getTextContent as getTextContent$1, Vertical as Vertical$1, Selected as Selected$1, ScrollController as ScrollController$1, isReadOnlyMixin as isReadOnlyMixin$1, interceptProperty as interceptProperty$1, computeLineCount as computeLineCount$1, generateClipPaths as generateClipPaths$1, Checked as Checked$1, AnimationLoopController as AnimationLoopController$1, resolveFragmentUrl as resolveFragmentUrl$1, safeStyleMap as safeStyleMap$1, updateLabels as updateLabels$1, guid as guid$1, IntersectionController as IntersectionController$1, LongPressController as LongPressController$1 } from '@m3e/web/core';
|
|
8
10
|
import { ListKeyManager, M3eLiveAnnouncer, M3eInteractivityChecker, isModifierAllowed, addAriaReferencedId, removeAriaReferencedId, selectionManager, SelectionManager, ListManager, RovingTabIndexManager, M3eAriaDescriber, typeaheadLabel } from '@m3e/web/core/a11y';
|
|
9
11
|
import { M3eOptGroupElement as M3eOptGroupElement$1 } from '@m3e/web/option';
|
|
10
12
|
import { M3eDirectionality } from '@m3e/web/core/bidi';
|
|
11
13
|
import { positionAnchor, M3eFloatingPanelElement } from '@m3e/web/core/anchoring';
|
|
14
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
15
|
+
import { directive, Directive, PartType } from 'lit/directive.js';
|
|
12
16
|
import { M3eIconButtonElement as M3eIconButtonElement$1 } from '@m3e/web/icon-button';
|
|
13
17
|
import { M3eBreakpointObserver, Breakpoint } from '@m3e/web/core/layout';
|
|
14
18
|
import { M3eNavBarElement as M3eNavBarElement$1 } from '@m3e/web/nav-bar';
|
|
15
19
|
import '@m3e/web/form-field';
|
|
16
20
|
import '@m3e/web/select';
|
|
17
21
|
import '@m3e/web/tooltip';
|
|
22
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
18
23
|
import { M3eButtonElement as M3eButtonElement$1 } from '@m3e/web/button';
|
|
19
24
|
import '@m3e/web/button-group';
|
|
20
25
|
import '@m3e/web/slide-group';
|
|
21
26
|
import { M3ePlatform } from '@m3e/web/core/platform';
|
|
22
27
|
|
|
23
|
-
/******************************************************************************
|
|
24
|
-
Copyright (c) Microsoft Corporation.
|
|
25
|
-
|
|
26
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
27
|
-
purpose with or without fee is hereby granted.
|
|
28
|
-
|
|
29
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
30
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
31
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
32
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
33
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
34
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
35
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
36
|
-
***************************************************************************** */
|
|
37
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
38
|
-
|
|
39
|
-
function __decorate(decorators, target, key, desc) {
|
|
40
|
-
var c = arguments.length,
|
|
41
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
42
|
-
d;
|
|
43
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
44
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
45
|
-
}
|
|
46
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
47
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
48
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
49
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
50
|
-
}
|
|
51
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
52
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
53
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
54
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
55
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
56
|
-
}
|
|
57
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
58
|
-
var e = new Error(message);
|
|
59
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @license
|
|
64
|
-
* Copyright 2019 Google LLC
|
|
65
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/
|
|
67
|
-
const t$2 = globalThis,
|
|
68
|
-
e$6 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
69
|
-
s$1 = Symbol(),
|
|
70
|
-
o$5 = new WeakMap();
|
|
71
|
-
let n$3 = class n {
|
|
72
|
-
constructor(t, e, o) {
|
|
73
|
-
if (this._$cssResult$ = true, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
74
|
-
this.cssText = t, this.t = e;
|
|
75
|
-
}
|
|
76
|
-
get styleSheet() {
|
|
77
|
-
let t = this.o;
|
|
78
|
-
const s = this.t;
|
|
79
|
-
if (e$6 && void 0 === t) {
|
|
80
|
-
const e = void 0 !== s && 1 === s.length;
|
|
81
|
-
e && (t = o$5.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$5.set(s, t));
|
|
82
|
-
}
|
|
83
|
-
return t;
|
|
84
|
-
}
|
|
85
|
-
toString() {
|
|
86
|
-
return this.cssText;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const r$4 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$1),
|
|
90
|
-
S$1 = (s, o) => {
|
|
91
|
-
if (e$6) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
92
|
-
const o = document.createElement("style"),
|
|
93
|
-
n = t$2.litNonce;
|
|
94
|
-
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
c$2 = e$6 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
98
|
-
let e = "";
|
|
99
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
100
|
-
return r$4(e);
|
|
101
|
-
})(t) : t;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @license
|
|
105
|
-
* Copyright 2017 Google LLC
|
|
106
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
|
-
*/
|
|
108
|
-
const {
|
|
109
|
-
is: i$2,
|
|
110
|
-
defineProperty: e$5,
|
|
111
|
-
getOwnPropertyDescriptor: h$1,
|
|
112
|
-
getOwnPropertyNames: r$3,
|
|
113
|
-
getOwnPropertySymbols: o$4,
|
|
114
|
-
getPrototypeOf: n$2
|
|
115
|
-
} = Object,
|
|
116
|
-
a$1 = globalThis,
|
|
117
|
-
c$1 = a$1.trustedTypes,
|
|
118
|
-
l$1 = c$1 ? c$1.emptyScript : "",
|
|
119
|
-
p$1 = a$1.reactiveElementPolyfillSupport,
|
|
120
|
-
d$1 = (t, s) => t,
|
|
121
|
-
u$1 = {
|
|
122
|
-
toAttribute(t, s) {
|
|
123
|
-
switch (s) {
|
|
124
|
-
case Boolean:
|
|
125
|
-
t = t ? l$1 : null;
|
|
126
|
-
break;
|
|
127
|
-
case Object:
|
|
128
|
-
case Array:
|
|
129
|
-
t = null == t ? t : JSON.stringify(t);
|
|
130
|
-
}
|
|
131
|
-
return t;
|
|
132
|
-
},
|
|
133
|
-
fromAttribute(t, s) {
|
|
134
|
-
let i = t;
|
|
135
|
-
switch (s) {
|
|
136
|
-
case Boolean:
|
|
137
|
-
i = null !== t;
|
|
138
|
-
break;
|
|
139
|
-
case Number:
|
|
140
|
-
i = null === t ? null : Number(t);
|
|
141
|
-
break;
|
|
142
|
-
case Object:
|
|
143
|
-
case Array:
|
|
144
|
-
try {
|
|
145
|
-
i = JSON.parse(t);
|
|
146
|
-
} catch (t) {
|
|
147
|
-
i = null;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return i;
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
f$1 = (t, s) => !i$2(t, s),
|
|
154
|
-
b = {
|
|
155
|
-
attribute: true,
|
|
156
|
-
type: String,
|
|
157
|
-
converter: u$1,
|
|
158
|
-
reflect: false,
|
|
159
|
-
useDefault: false,
|
|
160
|
-
hasChanged: f$1
|
|
161
|
-
};
|
|
162
|
-
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
163
|
-
class y extends HTMLElement {
|
|
164
|
-
static addInitializer(t) {
|
|
165
|
-
this._$Ei(), (this.l ??= []).push(t);
|
|
166
|
-
}
|
|
167
|
-
static get observedAttributes() {
|
|
168
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
169
|
-
}
|
|
170
|
-
static createProperty(t, s = b) {
|
|
171
|
-
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
172
|
-
const i = Symbol(),
|
|
173
|
-
h = this.getPropertyDescriptor(t, i, s);
|
|
174
|
-
void 0 !== h && e$5(this.prototype, t, h);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
static getPropertyDescriptor(t, s, i) {
|
|
178
|
-
const {
|
|
179
|
-
get: e,
|
|
180
|
-
set: r
|
|
181
|
-
} = h$1(this.prototype, t) ?? {
|
|
182
|
-
get() {
|
|
183
|
-
return this[s];
|
|
184
|
-
},
|
|
185
|
-
set(t) {
|
|
186
|
-
this[s] = t;
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
return {
|
|
190
|
-
get: e,
|
|
191
|
-
set(s) {
|
|
192
|
-
const h = e?.call(this);
|
|
193
|
-
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
194
|
-
},
|
|
195
|
-
configurable: true,
|
|
196
|
-
enumerable: true
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
static getPropertyOptions(t) {
|
|
200
|
-
return this.elementProperties.get(t) ?? b;
|
|
201
|
-
}
|
|
202
|
-
static _$Ei() {
|
|
203
|
-
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
204
|
-
const t = n$2(this);
|
|
205
|
-
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
206
|
-
}
|
|
207
|
-
static finalize() {
|
|
208
|
-
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
209
|
-
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
210
|
-
const t = this.properties,
|
|
211
|
-
s = [...r$3(t), ...o$4(t)];
|
|
212
|
-
for (const i of s) this.createProperty(i, t[i]);
|
|
213
|
-
}
|
|
214
|
-
const t = this[Symbol.metadata];
|
|
215
|
-
if (null !== t) {
|
|
216
|
-
const s = litPropertyMetadata.get(t);
|
|
217
|
-
if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
218
|
-
}
|
|
219
|
-
this._$Eh = new Map();
|
|
220
|
-
for (const [t, s] of this.elementProperties) {
|
|
221
|
-
const i = this._$Eu(t, s);
|
|
222
|
-
void 0 !== i && this._$Eh.set(i, t);
|
|
223
|
-
}
|
|
224
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
225
|
-
}
|
|
226
|
-
static finalizeStyles(s) {
|
|
227
|
-
const i = [];
|
|
228
|
-
if (Array.isArray(s)) {
|
|
229
|
-
const e = new Set(s.flat(1 / 0).reverse());
|
|
230
|
-
for (const s of e) i.unshift(c$2(s));
|
|
231
|
-
} else void 0 !== s && i.push(c$2(s));
|
|
232
|
-
return i;
|
|
233
|
-
}
|
|
234
|
-
static _$Eu(t, s) {
|
|
235
|
-
const i = s.attribute;
|
|
236
|
-
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
237
|
-
}
|
|
238
|
-
constructor() {
|
|
239
|
-
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
240
|
-
}
|
|
241
|
-
_$Ev() {
|
|
242
|
-
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
243
|
-
}
|
|
244
|
-
addController(t) {
|
|
245
|
-
(this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
246
|
-
}
|
|
247
|
-
removeController(t) {
|
|
248
|
-
this._$EO?.delete(t);
|
|
249
|
-
}
|
|
250
|
-
_$E_() {
|
|
251
|
-
const t = new Map(),
|
|
252
|
-
s = this.constructor.elementProperties;
|
|
253
|
-
for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
254
|
-
t.size > 0 && (this._$Ep = t);
|
|
255
|
-
}
|
|
256
|
-
createRenderRoot() {
|
|
257
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
258
|
-
return S$1(t, this.constructor.elementStyles), t;
|
|
259
|
-
}
|
|
260
|
-
connectedCallback() {
|
|
261
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
262
|
-
}
|
|
263
|
-
enableUpdating(t) {}
|
|
264
|
-
disconnectedCallback() {
|
|
265
|
-
this._$EO?.forEach(t => t.hostDisconnected?.());
|
|
266
|
-
}
|
|
267
|
-
attributeChangedCallback(t, s, i) {
|
|
268
|
-
this._$AK(t, i);
|
|
269
|
-
}
|
|
270
|
-
_$ET(t, s) {
|
|
271
|
-
const i = this.constructor.elementProperties.get(t),
|
|
272
|
-
e = this.constructor._$Eu(t, i);
|
|
273
|
-
if (void 0 !== e && true === i.reflect) {
|
|
274
|
-
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
275
|
-
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
_$AK(t, s) {
|
|
279
|
-
const i = this.constructor,
|
|
280
|
-
e = i._$Eh.get(t);
|
|
281
|
-
if (void 0 !== e && this._$Em !== e) {
|
|
282
|
-
const t = i.getPropertyOptions(e),
|
|
283
|
-
h = "function" == typeof t.converter ? {
|
|
284
|
-
fromAttribute: t.converter
|
|
285
|
-
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
286
|
-
this._$Em = e;
|
|
287
|
-
const r = h.fromAttribute(s, t.type);
|
|
288
|
-
this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
requestUpdate(t, s, i) {
|
|
292
|
-
if (void 0 !== t) {
|
|
293
|
-
const e = this.constructor,
|
|
294
|
-
h = this[t];
|
|
295
|
-
if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
296
|
-
this.C(t, s, i);
|
|
297
|
-
}
|
|
298
|
-
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
299
|
-
}
|
|
300
|
-
C(t, s, {
|
|
301
|
-
useDefault: i,
|
|
302
|
-
reflect: e,
|
|
303
|
-
wrapped: h
|
|
304
|
-
}, r) {
|
|
305
|
-
i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
|
|
306
|
-
}
|
|
307
|
-
async _$EP() {
|
|
308
|
-
this.isUpdatePending = true;
|
|
309
|
-
try {
|
|
310
|
-
await this._$ES;
|
|
311
|
-
} catch (t) {
|
|
312
|
-
Promise.reject(t);
|
|
313
|
-
}
|
|
314
|
-
const t = this.scheduleUpdate();
|
|
315
|
-
return null != t && (await t), !this.isUpdatePending;
|
|
316
|
-
}
|
|
317
|
-
scheduleUpdate() {
|
|
318
|
-
return this.performUpdate();
|
|
319
|
-
}
|
|
320
|
-
performUpdate() {
|
|
321
|
-
if (!this.isUpdatePending) return;
|
|
322
|
-
if (!this.hasUpdated) {
|
|
323
|
-
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
324
|
-
for (const [t, s] of this._$Ep) this[t] = s;
|
|
325
|
-
this._$Ep = void 0;
|
|
326
|
-
}
|
|
327
|
-
const t = this.constructor.elementProperties;
|
|
328
|
-
if (t.size > 0) for (const [s, i] of t) {
|
|
329
|
-
const {
|
|
330
|
-
wrapped: t
|
|
331
|
-
} = i,
|
|
332
|
-
e = this[s];
|
|
333
|
-
true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
let t = false;
|
|
337
|
-
const s = this._$AL;
|
|
338
|
-
try {
|
|
339
|
-
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
340
|
-
} catch (s) {
|
|
341
|
-
throw t = false, this._$EM(), s;
|
|
342
|
-
}
|
|
343
|
-
t && this._$AE(s);
|
|
344
|
-
}
|
|
345
|
-
willUpdate(t) {}
|
|
346
|
-
_$AE(t) {
|
|
347
|
-
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
348
|
-
}
|
|
349
|
-
_$EM() {
|
|
350
|
-
this._$AL = new Map(), this.isUpdatePending = false;
|
|
351
|
-
}
|
|
352
|
-
get updateComplete() {
|
|
353
|
-
return this.getUpdateComplete();
|
|
354
|
-
}
|
|
355
|
-
getUpdateComplete() {
|
|
356
|
-
return this._$ES;
|
|
357
|
-
}
|
|
358
|
-
shouldUpdate(t) {
|
|
359
|
-
return true;
|
|
360
|
-
}
|
|
361
|
-
update(t) {
|
|
362
|
-
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
363
|
-
}
|
|
364
|
-
updated(t) {}
|
|
365
|
-
firstUpdated(t) {}
|
|
366
|
-
}
|
|
367
|
-
y.elementStyles = [], y.shadowRootOptions = {
|
|
368
|
-
mode: "open"
|
|
369
|
-
}, y[d$1("elementProperties")] = new Map(), y[d$1("finalized")] = new Map(), p$1?.({
|
|
370
|
-
ReactiveElement: y
|
|
371
|
-
}), (a$1.reactiveElementVersions ??= []).push("2.1.1");
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @license
|
|
375
|
-
* Copyright 2017 Google LLC
|
|
376
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
377
|
-
*/
|
|
378
|
-
const o$3 = {
|
|
379
|
-
attribute: true,
|
|
380
|
-
type: String,
|
|
381
|
-
converter: u$1,
|
|
382
|
-
reflect: false,
|
|
383
|
-
hasChanged: f$1
|
|
384
|
-
},
|
|
385
|
-
r$2 = (t = o$3, e, r) => {
|
|
386
|
-
const {
|
|
387
|
-
kind: n,
|
|
388
|
-
metadata: i
|
|
389
|
-
} = r;
|
|
390
|
-
let s = globalThis.litPropertyMetadata.get(i);
|
|
391
|
-
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
|
|
392
|
-
const {
|
|
393
|
-
name: o
|
|
394
|
-
} = r;
|
|
395
|
-
return {
|
|
396
|
-
set(r) {
|
|
397
|
-
const n = e.get.call(this);
|
|
398
|
-
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
399
|
-
},
|
|
400
|
-
init(e) {
|
|
401
|
-
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
if ("setter" === n) {
|
|
406
|
-
const {
|
|
407
|
-
name: o
|
|
408
|
-
} = r;
|
|
409
|
-
return function (r) {
|
|
410
|
-
const n = this[o];
|
|
411
|
-
e.call(this, r), this.requestUpdate(o, n, t);
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
throw Error("Unsupported decorator location: " + n);
|
|
415
|
-
};
|
|
416
|
-
function n$1(t) {
|
|
417
|
-
return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
|
|
418
|
-
const r = e.hasOwnProperty(o);
|
|
419
|
-
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
420
|
-
})(t, e, o);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @license
|
|
425
|
-
* Copyright 2017 Google LLC
|
|
426
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
|
-
*/
|
|
428
|
-
function r$1(r) {
|
|
429
|
-
return n$1({
|
|
430
|
-
...r,
|
|
431
|
-
state: true,
|
|
432
|
-
attribute: false
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* @license
|
|
438
|
-
* Copyright 2017 Google LLC
|
|
439
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
440
|
-
*/
|
|
441
|
-
const e$4 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* @license
|
|
445
|
-
* Copyright 2017 Google LLC
|
|
446
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
447
|
-
*/
|
|
448
|
-
function e$3(e, r) {
|
|
449
|
-
return (n, s, i) => {
|
|
450
|
-
const o = t => t.renderRoot?.querySelector(e) ?? null;
|
|
451
|
-
return e$4(n, s, {
|
|
452
|
-
get() {
|
|
453
|
-
return o(this);
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* @license
|
|
461
|
-
* Copyright 2021 Google LLC
|
|
462
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
463
|
-
*/
|
|
464
|
-
function o$2(o) {
|
|
465
|
-
return (e, n) => {
|
|
466
|
-
const {
|
|
467
|
-
slot: r,
|
|
468
|
-
selector: s
|
|
469
|
-
} = o ?? {},
|
|
470
|
-
c = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
471
|
-
return e$4(e, n, {
|
|
472
|
-
get() {
|
|
473
|
-
const t = this.renderRoot?.querySelector(c),
|
|
474
|
-
e = t?.assignedElements(o) ?? [];
|
|
475
|
-
return void 0 === s ? e : e.filter(t => t.matches(s));
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
|
|
481
28
|
/**
|
|
482
29
|
* Component design tokens that control the `M3eAppBarElement` for all size variants.
|
|
483
30
|
* @internal
|
|
@@ -790,14 +337,14 @@ _M3eAppBarElement_getFrameScrollTop = function _M3eAppBarElement_getFrameScrollT
|
|
|
790
337
|
};
|
|
791
338
|
/** The styles of the element. */
|
|
792
339
|
M3eAppBarElement.styles = [AppBarStyle, AppBarSizeStyle];
|
|
793
|
-
__decorate([
|
|
794
|
-
__decorate([
|
|
795
|
-
__decorate([
|
|
796
|
-
__decorate([
|
|
340
|
+
__decorate([query(".base")], M3eAppBarElement.prototype, "_base", void 0);
|
|
341
|
+
__decorate([query(".leading-icon")], M3eAppBarElement.prototype, "_leadingIcon", void 0);
|
|
342
|
+
__decorate([query(".trailing-icon")], M3eAppBarElement.prototype, "_trailingIcon", void 0);
|
|
343
|
+
__decorate([property({
|
|
797
344
|
type: Boolean,
|
|
798
345
|
reflect: true
|
|
799
346
|
})], M3eAppBarElement.prototype, "centered", void 0);
|
|
800
|
-
__decorate([
|
|
347
|
+
__decorate([property({
|
|
801
348
|
reflect: true
|
|
802
349
|
})], M3eAppBarElement.prototype, "size", void 0);
|
|
803
350
|
__decorate([debounce$1(40)], M3eAppBarElement.prototype, "_updateScroll", null);
|
|
@@ -840,6 +387,7 @@ var M3eAutocompleteElement_1;
|
|
|
840
387
|
* @attr loading - Whether options are being loaded.
|
|
841
388
|
* @attr loading-label - The text announced and presented when loading options.
|
|
842
389
|
* @attr no-data-label - The text announced and presented when no options are available for the current term.
|
|
390
|
+
* @attr panel-class - Class or list of classes to be applied to the autocomplete's overlay panel.
|
|
843
391
|
* @attr required - Whether the user is required to make a selection when interacting with the autocomplete.
|
|
844
392
|
* @attr results-label - The text announced when available options change for the current term.
|
|
845
393
|
*
|
|
@@ -953,6 +501,11 @@ let M3eAutocompleteElement = M3eAutocompleteElement_1 = class M3eAutocompleteEle
|
|
|
953
501
|
* @default (count) => `${count} options`
|
|
954
502
|
*/
|
|
955
503
|
this.resultsLabel = count => `${count} options`;
|
|
504
|
+
/**
|
|
505
|
+
* Class or list of classes to be applied to the autocomplete's overlay panel.
|
|
506
|
+
* @default ""
|
|
507
|
+
*/
|
|
508
|
+
this.panelClass = "";
|
|
956
509
|
new MutationController$1(this, {
|
|
957
510
|
config: {
|
|
958
511
|
childList: true,
|
|
@@ -1299,6 +852,12 @@ _M3eAutocompleteElement_showMenu = function _M3eAutocompleteElement_showMenu() {
|
|
|
1299
852
|
if (!__classPrivateFieldGet(this, _M3eAutocompleteElement_instances, "a", _M3eAutocompleteElement_shouldShowMenu_get)) return;
|
|
1300
853
|
__classPrivateFieldSet(this, _M3eAutocompleteElement_menu, document.createElement("m3e-option-panel"), "f");
|
|
1301
854
|
__classPrivateFieldGet(this, _M3eAutocompleteElement_menu, "f").id = __classPrivateFieldGet(this, _M3eAutocompleteElement_menuId, "f");
|
|
855
|
+
if (this.panelClass) {
|
|
856
|
+
for (const klass of this.panelClass.split(/\s+/).map(d => d.trim()).filter(Boolean)) {
|
|
857
|
+
__classPrivateFieldGet(this, _M3eAutocompleteElement_menu, "f").classList.add(klass);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
__classPrivateFieldGet(this, _M3eAutocompleteElement_menu, "f").scrollStrategy = "reposition";
|
|
1302
861
|
__classPrivateFieldGet(this, _M3eAutocompleteElement_menu, "f").style.overflowX = "hidden";
|
|
1303
862
|
__classPrivateFieldGet(this, _M3eAutocompleteElement_menu, "f").style.minWidth = __classPrivateFieldGet(this, _M3eAutocompleteElement_instances, "a", _M3eAutocompleteElement_minMenuWidth_get);
|
|
1304
863
|
__classPrivateFieldGet(this, _M3eAutocompleteElement_menu, "f").addEventListener("toggle", __classPrivateFieldGet(this, _M3eAutocompleteElement_menuToggleHandler, "f"));
|
|
@@ -1500,23 +1059,23 @@ _M3eAutocompleteElement_deactivateOption = function _M3eAutocompleteElement_deac
|
|
|
1500
1059
|
M3eAutocompleteElement.styles = css`:host { display: contents; } .options { display: none; }`;
|
|
1501
1060
|
/** @private */
|
|
1502
1061
|
M3eAutocompleteElement.__nextId = 0;
|
|
1503
|
-
__decorate([
|
|
1062
|
+
__decorate([property({
|
|
1504
1063
|
attribute: "hide-selection-indicator",
|
|
1505
1064
|
type: Boolean
|
|
1506
1065
|
})], M3eAutocompleteElement.prototype, "hideSelectionIndicator", void 0);
|
|
1507
|
-
__decorate([
|
|
1066
|
+
__decorate([property({
|
|
1508
1067
|
type: Boolean,
|
|
1509
1068
|
reflect: true
|
|
1510
1069
|
})], M3eAutocompleteElement.prototype, "required", void 0);
|
|
1511
|
-
__decorate([
|
|
1070
|
+
__decorate([property({
|
|
1512
1071
|
attribute: "auto-activate",
|
|
1513
1072
|
type: Boolean
|
|
1514
1073
|
})], M3eAutocompleteElement.prototype, "autoActivate", void 0);
|
|
1515
|
-
__decorate([
|
|
1074
|
+
__decorate([property({
|
|
1516
1075
|
attribute: "case-sensitive",
|
|
1517
1076
|
type: Boolean
|
|
1518
1077
|
})], M3eAutocompleteElement.prototype, "caseSensitive", void 0);
|
|
1519
|
-
__decorate([
|
|
1078
|
+
__decorate([property({
|
|
1520
1079
|
converter: {
|
|
1521
1080
|
fromAttribute(value) {
|
|
1522
1081
|
if (value === null) return "contains";
|
|
@@ -1527,26 +1086,29 @@ __decorate([n$1({
|
|
|
1527
1086
|
}
|
|
1528
1087
|
}
|
|
1529
1088
|
})], M3eAutocompleteElement.prototype, "filter", void 0);
|
|
1530
|
-
__decorate([
|
|
1089
|
+
__decorate([property({
|
|
1531
1090
|
type: Boolean
|
|
1532
1091
|
})], M3eAutocompleteElement.prototype, "loading", void 0);
|
|
1533
|
-
__decorate([
|
|
1092
|
+
__decorate([property({
|
|
1534
1093
|
attribute: "hide-no-data",
|
|
1535
1094
|
type: Boolean
|
|
1536
1095
|
})], M3eAutocompleteElement.prototype, "hideNoData", void 0);
|
|
1537
|
-
__decorate([
|
|
1096
|
+
__decorate([property({
|
|
1538
1097
|
attribute: "hide-loading",
|
|
1539
1098
|
type: Boolean
|
|
1540
1099
|
})], M3eAutocompleteElement.prototype, "hideLoading", void 0);
|
|
1541
|
-
__decorate([
|
|
1100
|
+
__decorate([property({
|
|
1542
1101
|
attribute: "loading-label"
|
|
1543
1102
|
})], M3eAutocompleteElement.prototype, "loadingLabel", void 0);
|
|
1544
|
-
__decorate([
|
|
1103
|
+
__decorate([property({
|
|
1545
1104
|
attribute: "no-data-label"
|
|
1546
1105
|
})], M3eAutocompleteElement.prototype, "noDataLabel", void 0);
|
|
1547
|
-
__decorate([
|
|
1106
|
+
__decorate([property({
|
|
1548
1107
|
attribute: "results-label"
|
|
1549
1108
|
})], M3eAutocompleteElement.prototype, "resultsLabel", void 0);
|
|
1109
|
+
__decorate([property({
|
|
1110
|
+
attribute: "panel-class"
|
|
1111
|
+
})], M3eAutocompleteElement.prototype, "panelClass", void 0);
|
|
1550
1112
|
M3eAutocompleteElement = M3eAutocompleteElement_1 = __decorate([customElement$1("m3e-autocomplete")], M3eAutocompleteElement);
|
|
1551
1113
|
|
|
1552
1114
|
/**
|
|
@@ -1757,10 +1319,10 @@ async function _M3eBadgeElement_attach() {
|
|
|
1757
1319
|
};
|
|
1758
1320
|
/** The styles of the element. */
|
|
1759
1321
|
M3eBadgeElement.styles = css`:host { display: inline-block; vertical-align: baseline; } .base { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; vertical-align: baseline; box-sizing: border-box; user-select: none; padding: var(--_badge-padding); border-radius: var(--m3e-badge-shape, ${DesignToken$1.shape.corner.full}); color: var(--m3e-badge-color, ${DesignToken$1.color.onError}); background-color: var(--m3e-badge-container-color, ${DesignToken$1.color.error}); } :host([for]) { position: absolute; z-index: 1; } :host([for][position="above"]) { transform: translateY(var(--_badge-offset, 0px)); } :host([for][position="above-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="above-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="below"]) { transform: translateY(calc(0px - var(--_badge-offset, 0px))); } :host([for][position="below-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="before"]:not(:dir(rtl))), :host([for][position="after"]:dir(rtl)) { transform: translateX(var(--_badge-offset, 0px)); } :host([for][position="before"]:dir(rtl)), :host([for][position="after"]:not(:dir(rtl))) { transform: translateX(calc(0px - var(--_badge-offset, 0px))); } :host([size="small"]) { height: var(--m3e-badge-small-size, 0.375rem); max-height: var(--m3e-badge-small-size, 0.375rem); width: var(--m3e-badge-small-size, 0.375rem); min-width: var(--m3e-badge-small-size, 0.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.375rem); } :host([size="small"]) .base { font-size: 0; } :host([size="medium"]) { height: var(--m3e-badge-medium-size, 1.375rem); min-width: var(--m3e-badge-medium-size, 1.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.75rem); } :host([size="medium"]) .base { font-size: var(--m3e-badge-medium-font-size, ${DesignToken$1.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-badge-medium-font-weight, ${DesignToken$1.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-badge-medium-line-height, ${DesignToken$1.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-badge-medium-tracking, ${DesignToken$1.typescale.standard.label.small.tracking}); } :host([size="large"]) { height: var(--m3e-badge-large-size, 1.75rem); min-width: var(--m3e-badge-large-size, 1.75rem); --_badge-offset: var(--m3e-badge-small-offset, 1rem); } :host([size="large"]) .base { font-size: var(--m3e-badge-large-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-badge-large-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-badge-large-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-badge-large-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); } @media (forced-colors: active) { .base { background-color: ButtonFace; color: ButtonText; outline: 1px solid ButtonText; } }`;
|
|
1760
|
-
__decorate([
|
|
1322
|
+
__decorate([property({
|
|
1761
1323
|
reflect: true
|
|
1762
1324
|
})], M3eBadgeElement.prototype, "size", void 0);
|
|
1763
|
-
__decorate([
|
|
1325
|
+
__decorate([property({
|
|
1764
1326
|
reflect: true
|
|
1765
1327
|
})], M3eBadgeElement.prototype, "position", void 0);
|
|
1766
1328
|
M3eBadgeElement = __decorate([customElement$1("m3e-badge")], M3eBadgeElement);
|
|
@@ -1779,7 +1341,7 @@ let M3eBottomSheetActionElement = class M3eBottomSheetActionElement extends Acti
|
|
|
1779
1341
|
};
|
|
1780
1342
|
M3eBottomSheetActionElement = __decorate([customElement$1("m3e-bottom-sheet-action")], M3eBottomSheetActionElement);
|
|
1781
1343
|
|
|
1782
|
-
var _M3eBottomSheetElement_instances, _M3eBottomSheetElement_documentClickHandler, _M3eBottomSheetElement_documentKeyDownHandler, _M3eBottomSheetElement_windowResizeHandler, _M3eBottomSheetElement_inerts, _M3eBottomSheetElement_velocityTracker, _M3eBottomSheetElement_scrollLockController, _M3eBottomSheetElement_resizeController, _M3eBottomSheetElement_trigger, _M3eBottomSheetElement_dragState, _M3eBottomSheetElement_dragged, _M3eBottomSheetElement_activeDetent, _M3eBottomSheetElement_requestDetent, _M3eBottomSheetElement_cachedContentHeight, _M3eBottomSheetElement_cachedHeaderHeight, _M3eBottomSheetElement_snapAnimation, _M3eBottomSheetElement_handleHeaderSlotChange, _M3eBottomSheetElement_handleHeaderPointerDown, _M3eBottomSheetElement_handleHeaderPointerMove, _M3eBottomSheetElement_handleHeaderPointerUp, _M3eBottomSheetElement_handleDocumentClick, _M3eBottomSheetElement_handleDocumentKeyDown, _M3eBottomSheetElement_handleWindowResize, _M3eBottomSheetElement_handleDragHandleClick, _M3eBottomSheetElement_handleDragHandleKeyDown, _M3eBottomSheetElement_getNextHigherDetent, _M3eBottomSheetElement_getNextLowerDetent, _M3eBottomSheetElement_getClosestDetent, _M3eBottomSheetElement_computeDetentHeight, _M3eBottomSheetElement_computeMaxHeight, _M3eBottomSheetElement_computeMinHeight, _M3eBottomSheetElement_computePeekHeight, _M3eBottomSheetElement_computeFitHeight, _M3eBottomSheetElement_handleSectionResize, _M3eBottomSheetElement_snapToDetent, _M3eBottomSheetElement_snapToHeight, _M3eBottomSheetElement_updateHeight, _M3eBottomSheetElement_applyInert, _M3eBottomSheetElement_restoreInert;
|
|
1344
|
+
var _M3eBottomSheetElement_instances, _M3eBottomSheetElement_documentClickHandler, _M3eBottomSheetElement_documentKeyDownHandler, _M3eBottomSheetElement_windowResizeHandler, _M3eBottomSheetElement_inerts, _M3eBottomSheetElement_velocityTracker, _M3eBottomSheetElement_scrollLockController, _M3eBottomSheetElement_resizeController, _M3eBottomSheetElement_trigger, _M3eBottomSheetElement_dragState, _M3eBottomSheetElement_dragged, _M3eBottomSheetElement_activeDetent, _M3eBottomSheetElement_requestDetent, _M3eBottomSheetElement_cachedContentHeight, _M3eBottomSheetElement_cachedHeaderHeight, _M3eBottomSheetElement_snapAnimation, _M3eBottomSheetElement_initialize, _M3eBottomSheetElement_handleHeaderSlotChange, _M3eBottomSheetElement_handleHeaderPointerDown, _M3eBottomSheetElement_handleHeaderPointerMove, _M3eBottomSheetElement_handleHeaderPointerUp, _M3eBottomSheetElement_handleDocumentClick, _M3eBottomSheetElement_handleDocumentKeyDown, _M3eBottomSheetElement_handleWindowResize, _M3eBottomSheetElement_handleDragHandleClick, _M3eBottomSheetElement_handleDragHandleKeyDown, _M3eBottomSheetElement_getNextHigherDetent, _M3eBottomSheetElement_getNextLowerDetent, _M3eBottomSheetElement_getClosestDetent, _M3eBottomSheetElement_computeDetentHeight, _M3eBottomSheetElement_computeMaxHeight, _M3eBottomSheetElement_computeMinHeight, _M3eBottomSheetElement_computePeekHeight, _M3eBottomSheetElement_computeFitHeight, _M3eBottomSheetElement_handleSectionResize, _M3eBottomSheetElement_snapToDetent, _M3eBottomSheetElement_snapToHeight, _M3eBottomSheetElement_updateHeight, _M3eBottomSheetElement_applyInert, _M3eBottomSheetElement_restoreInert;
|
|
1783
1345
|
var M3eBottomSheetElement_1;
|
|
1784
1346
|
/**
|
|
1785
1347
|
* A sheet used to show secondary content anchored to the bottom of the screen.
|
|
@@ -1878,7 +1440,7 @@ var M3eBottomSheetElement_1;
|
|
|
1878
1440
|
* @cssprop --m3e-bottom-sheet-header-line-height - Line height for the sheet header.
|
|
1879
1441
|
* @cssprop --m3e-bottom-sheet-header-tracking - Letter spacing (tracking) for the sheet header.
|
|
1880
1442
|
*/
|
|
1881
|
-
let M3eBottomSheetElement = M3eBottomSheetElement_1 = class M3eBottomSheetElement extends EventAttribute$1(AttachInternals$1(LitElement), "opening", "opened", "cancel", "closing", "closed") {
|
|
1443
|
+
let M3eBottomSheetElement = M3eBottomSheetElement_1 = class M3eBottomSheetElement extends EventAttribute$1(ReconnectedCallback$1(SuppressInitialAnimation$1(AttachInternals$1(LitElement))), "opening", "opened", "cancel", "closing", "closed") {
|
|
1882
1444
|
constructor() {
|
|
1883
1445
|
super(...arguments);
|
|
1884
1446
|
_M3eBottomSheetElement_instances.add(this);
|
|
@@ -2002,11 +1564,6 @@ let M3eBottomSheetElement = M3eBottomSheetElement_1 = class M3eBottomSheetElemen
|
|
|
2002
1564
|
}
|
|
2003
1565
|
}
|
|
2004
1566
|
/** @inheritdoc */
|
|
2005
|
-
connectedCallback() {
|
|
2006
|
-
super.connectedCallback();
|
|
2007
|
-
addCustomState$1(this, "-no-animate");
|
|
2008
|
-
}
|
|
2009
|
-
/** @inheritdoc */
|
|
2010
1567
|
update(changedProperties) {
|
|
2011
1568
|
super.update(changedProperties);
|
|
2012
1569
|
if (changedProperties.has("modal")) {
|
|
@@ -2016,19 +1573,14 @@ let M3eBottomSheetElement = M3eBottomSheetElement_1 = class M3eBottomSheetElemen
|
|
|
2016
1573
|
}
|
|
2017
1574
|
}
|
|
2018
1575
|
/** @inheritdoc */
|
|
1576
|
+
reconnectedCallback() {
|
|
1577
|
+
super.reconnectedCallback();
|
|
1578
|
+
__classPrivateFieldGet(this, _M3eBottomSheetElement_instances, "m", _M3eBottomSheetElement_initialize).call(this);
|
|
1579
|
+
}
|
|
1580
|
+
/** @inheritdoc */
|
|
2019
1581
|
firstUpdated(_changedProperties) {
|
|
2020
1582
|
super.firstUpdated(_changedProperties);
|
|
2021
|
-
|
|
2022
|
-
if (content) {
|
|
2023
|
-
__classPrivateFieldSet(this, _M3eBottomSheetElement_cachedContentHeight, content.clientHeight, "f");
|
|
2024
|
-
__classPrivateFieldGet(this, _M3eBottomSheetElement_resizeController, "f").observe(content);
|
|
2025
|
-
}
|
|
2026
|
-
const header = this.shadowRoot?.querySelector(".header");
|
|
2027
|
-
if (header) {
|
|
2028
|
-
__classPrivateFieldSet(this, _M3eBottomSheetElement_cachedHeaderHeight, header.clientHeight, "f");
|
|
2029
|
-
__classPrivateFieldGet(this, _M3eBottomSheetElement_resizeController, "f").observe(header);
|
|
2030
|
-
}
|
|
2031
|
-
deleteCustomState$1(this, "-no-animate");
|
|
1583
|
+
__classPrivateFieldGet(this, _M3eBottomSheetElement_instances, "m", _M3eBottomSheetElement_initialize).call(this);
|
|
2032
1584
|
}
|
|
2033
1585
|
/** @inheritdoc */
|
|
2034
1586
|
updated(_changedProperties) {
|
|
@@ -2126,6 +1678,18 @@ _M3eBottomSheetElement_cachedContentHeight = new WeakMap();
|
|
|
2126
1678
|
_M3eBottomSheetElement_cachedHeaderHeight = new WeakMap();
|
|
2127
1679
|
_M3eBottomSheetElement_snapAnimation = new WeakMap();
|
|
2128
1680
|
_M3eBottomSheetElement_instances = new WeakSet();
|
|
1681
|
+
_M3eBottomSheetElement_initialize = function _M3eBottomSheetElement_initialize() {
|
|
1682
|
+
const content = this.shadowRoot?.querySelector(".content");
|
|
1683
|
+
if (content) {
|
|
1684
|
+
__classPrivateFieldSet(this, _M3eBottomSheetElement_cachedContentHeight, content.clientHeight, "f");
|
|
1685
|
+
__classPrivateFieldGet(this, _M3eBottomSheetElement_resizeController, "f").observe(content);
|
|
1686
|
+
}
|
|
1687
|
+
const header = this.shadowRoot?.querySelector(".header");
|
|
1688
|
+
if (header) {
|
|
1689
|
+
__classPrivateFieldSet(this, _M3eBottomSheetElement_cachedHeaderHeight, header.clientHeight, "f");
|
|
1690
|
+
__classPrivateFieldGet(this, _M3eBottomSheetElement_resizeController, "f").observe(header);
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
2129
1693
|
_M3eBottomSheetElement_handleHeaderSlotChange = function _M3eBottomSheetElement_handleHeaderSlotChange(e) {
|
|
2130
1694
|
setCustomState$1(this, "has-header", hasAssignedNodes$1(e.target));
|
|
2131
1695
|
};
|
|
@@ -2444,32 +2008,32 @@ M3eBottomSheetElement.styles = css`:host { display: block; position: fixed; left
|
|
|
2444
2008
|
padding ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard},
|
|
2445
2009
|
height ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard},
|
|
2446
2010
|
visibility ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } .handle { position: relative; width: var(--m3e-bottom-sheet-handle-width, 2rem); height: var(--m3e-bottom-sheet-handle-height, 4px); border-radius: var(--m3e-bottom-sheet-handle-shape, ${DesignToken$1.shape.corner.full}); background-color: var(--m3e-bottom-sheet-handle-color, ${DesignToken$1.color.onSurfaceVariant}); } .handle-touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); right: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); top: calc( 0px - calc( calc(3rem - var(--m3e-bottom-sheet-handle-container-height, 1.5rem)) - calc( var(--m3e-bottom-sheet-handle-height, 4px) / 2 ) ) ); } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))), :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop, :host(:not(:state(-no-animate))) .handle-row { transition: none; } } @media (forced-colors: active) { :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } .handle { background-color: ButtonText; } }`;
|
|
2447
|
-
__decorate([
|
|
2011
|
+
__decorate([property({
|
|
2448
2012
|
type: Boolean,
|
|
2449
2013
|
reflect: true
|
|
2450
2014
|
})], M3eBottomSheetElement.prototype, "modal", void 0);
|
|
2451
|
-
__decorate([
|
|
2015
|
+
__decorate([property({
|
|
2452
2016
|
type: Boolean,
|
|
2453
2017
|
reflect: true
|
|
2454
2018
|
})], M3eBottomSheetElement.prototype, "open", void 0);
|
|
2455
|
-
__decorate([
|
|
2019
|
+
__decorate([property({
|
|
2456
2020
|
type: Boolean
|
|
2457
2021
|
})], M3eBottomSheetElement.prototype, "handle", void 0);
|
|
2458
|
-
__decorate([
|
|
2022
|
+
__decorate([property({
|
|
2459
2023
|
attribute: "handle-label"
|
|
2460
2024
|
})], M3eBottomSheetElement.prototype, "handleLabel", void 0);
|
|
2461
|
-
__decorate([
|
|
2025
|
+
__decorate([property({
|
|
2462
2026
|
attribute: "detents",
|
|
2463
2027
|
converter: spaceSeparatedStringConverter$1
|
|
2464
2028
|
})], M3eBottomSheetElement.prototype, "detents", void 0);
|
|
2465
|
-
__decorate([
|
|
2029
|
+
__decorate([property({
|
|
2466
2030
|
type: Number
|
|
2467
2031
|
})], M3eBottomSheetElement.prototype, "detent", void 0);
|
|
2468
|
-
__decorate([
|
|
2032
|
+
__decorate([property({
|
|
2469
2033
|
type: Boolean,
|
|
2470
2034
|
reflect: true
|
|
2471
2035
|
})], M3eBottomSheetElement.prototype, "hideable", void 0);
|
|
2472
|
-
__decorate([
|
|
2036
|
+
__decorate([property({
|
|
2473
2037
|
attribute: "hide-friction",
|
|
2474
2038
|
type: Number
|
|
2475
2039
|
})], M3eBottomSheetElement.prototype, "hideFriction", void 0);
|
|
@@ -2533,10 +2097,10 @@ let M3eBottomSheetTriggerElement = class M3eBottomSheetTriggerElement extends Ht
|
|
|
2533
2097
|
}
|
|
2534
2098
|
}
|
|
2535
2099
|
};
|
|
2536
|
-
__decorate([
|
|
2100
|
+
__decorate([property({
|
|
2537
2101
|
type: Number
|
|
2538
2102
|
})], M3eBottomSheetTriggerElement.prototype, "detent", void 0);
|
|
2539
|
-
__decorate([
|
|
2103
|
+
__decorate([property({
|
|
2540
2104
|
type: Boolean
|
|
2541
2105
|
})], M3eBottomSheetTriggerElement.prototype, "secondary", void 0);
|
|
2542
2106
|
M3eBottomSheetTriggerElement = __decorate([customElement$1("m3e-bottom-sheet-trigger")], M3eBottomSheetTriggerElement);
|
|
@@ -3838,25 +3402,25 @@ _M3eButtonElement_handlePressedChange = function _M3eButtonElement_handlePressed
|
|
|
3838
3402
|
};
|
|
3839
3403
|
/** The styles of the element. */
|
|
3840
3404
|
M3eButtonElement.styles = [ButtonSizeStyle, ButtonVariantStyle, ButtonStyle];
|
|
3841
|
-
__decorate([
|
|
3842
|
-
__decorate([
|
|
3843
|
-
__decorate([
|
|
3844
|
-
__decorate([
|
|
3845
|
-
__decorate([
|
|
3846
|
-
__decorate([
|
|
3405
|
+
__decorate([query(".base")], M3eButtonElement.prototype, "_base", void 0);
|
|
3406
|
+
__decorate([query(".elevation")], M3eButtonElement.prototype, "_elevation", void 0);
|
|
3407
|
+
__decorate([query(".focus-ring")], M3eButtonElement.prototype, "_focusRing", void 0);
|
|
3408
|
+
__decorate([query(".state-layer")], M3eButtonElement.prototype, "_stateLayer", void 0);
|
|
3409
|
+
__decorate([query(".ripple")], M3eButtonElement.prototype, "_ripple", void 0);
|
|
3410
|
+
__decorate([property({
|
|
3847
3411
|
reflect: true
|
|
3848
3412
|
})], M3eButtonElement.prototype, "variant", void 0);
|
|
3849
|
-
__decorate([
|
|
3413
|
+
__decorate([property({
|
|
3850
3414
|
reflect: true
|
|
3851
3415
|
})], M3eButtonElement.prototype, "shape", void 0);
|
|
3852
|
-
__decorate([
|
|
3416
|
+
__decorate([property({
|
|
3853
3417
|
reflect: true
|
|
3854
3418
|
})], M3eButtonElement.prototype, "size", void 0);
|
|
3855
|
-
__decorate([
|
|
3419
|
+
__decorate([property({
|
|
3856
3420
|
type: Boolean,
|
|
3857
3421
|
reflect: true
|
|
3858
3422
|
})], M3eButtonElement.prototype, "toggle", void 0);
|
|
3859
|
-
__decorate([
|
|
3423
|
+
__decorate([property({
|
|
3860
3424
|
type: Boolean,
|
|
3861
3425
|
reflect: true
|
|
3862
3426
|
})], M3eButtonElement.prototype, "selected", void 0);
|
|
@@ -4029,17 +3593,17 @@ _M3eButtonGroupElement_handleChange = function _M3eButtonGroupElement_handleChan
|
|
|
4029
3593
|
};
|
|
4030
3594
|
/** The styles of the element. */
|
|
4031
3595
|
M3eButtonGroupElement.styles = css`:host { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } .base { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } :host([variant="standard"]) { justify-content: center; } :host([variant="connected"]) .base { flex: 1 1 auto; } :host([variant="standard"]) .base { width: fit-content; flex: none; } :host([variant="standard"]) .base.pressed { justify-content: space-between; width: var(--_button-group-width); } :host([variant="standard"][size="extra-small"]) .base { column-gap: var(--m3e-standard-button-group-extra-small-spacing, 1.125rem); } :host([variant="standard"][size="small"]) .base { column-gap: var(--m3e-standard-button-group-small-spacing, 0.75rem); } :host([variant="standard"][size="medium"]).base { column-gap: var(--m3e-standard-button-group-medium-spacing, 0.5rem); } :host([variant="standard"][size="large"]) .base { column-gap: var(--m3e-standard-button-group-large-spacing, 0.5rem); } :host([variant="standard"][size="extra-large"]) .base { column-gap: var(--m3e-standard-button-group-extra-large-spacing, 0.5rem); } :host([variant="connected"]) .base { column-gap: var(--m3e-connected-button-group-spacing, 0.125rem); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-first)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${DesignToken$1.shape.corner.extraSmall} ); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-last)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${DesignToken$1.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-first)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-end-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${DesignToken$1.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-last)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-start-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${DesignToken$1.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-first)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${DesignToken$1.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-last)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${DesignToken$1.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${DesignToken$1.shape.corner.extraSmall} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-first)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${DesignToken$1.shape.corner.large} ); --_button-square-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${DesignToken$1.shape.corner.large} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${DesignToken$1.shape.corner.medium} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-last)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${DesignToken$1.shape.corner.large} ); --_button-square-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${DesignToken$1.shape.corner.large} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${DesignToken$1.shape.corner.medium} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-first)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${DesignToken$1.shape.corner.largeIncreased} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${DesignToken$1.shape.corner.largeIncreased} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${DesignToken$1.shape.corner.large} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-last)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${DesignToken$1.shape.corner.largeIncreased} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${DesignToken$1.shape.corner.largeIncreased} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${DesignToken$1.shape.corner.large} ); }`;
|
|
4032
|
-
__decorate([
|
|
4033
|
-
__decorate([
|
|
3596
|
+
__decorate([query(".base")], M3eButtonGroupElement.prototype, "_base", void 0);
|
|
3597
|
+
__decorate([property({
|
|
4034
3598
|
reflect: true
|
|
4035
3599
|
})], M3eButtonGroupElement.prototype, "variant", void 0);
|
|
4036
|
-
__decorate([
|
|
3600
|
+
__decorate([property({
|
|
4037
3601
|
reflect: true
|
|
4038
3602
|
})], M3eButtonGroupElement.prototype, "size", void 0);
|
|
4039
|
-
__decorate([
|
|
3603
|
+
__decorate([property({
|
|
4040
3604
|
type: Boolean
|
|
4041
3605
|
})], M3eButtonGroupElement.prototype, "multi", void 0);
|
|
4042
|
-
__decorate([
|
|
3606
|
+
__decorate([queryAssignedElements({
|
|
4043
3607
|
slot: "",
|
|
4044
3608
|
selector: "m3e-button,m3e-icon-button",
|
|
4045
3609
|
flatten: true
|
|
@@ -4128,6 +3692,7 @@ const CardVariantToken = {
|
|
|
4128
3692
|
},
|
|
4129
3693
|
outlined: {
|
|
4130
3694
|
textColor: unsafeCSS(`var(--m3e-outlined-card-text-color, var(--m3e-card-text-color, ${DesignToken$1.color.onSurface}))`),
|
|
3695
|
+
containerColor: unsafeCSS(`var(--m3e-outlined-card-container-color, var(--m3e-card-container-color, ${DesignToken$1.color.surface}))`),
|
|
4131
3696
|
containerElevation: unsafeCSS(`var(--m3e-outlined-card-container-elevation, var(--m3e-card-container-elevation, ${DesignToken$1.elevation.level0}))`),
|
|
4132
3697
|
outlineColor: unsafeCSS(`var(--m3e-outlined-card-outline-color, var(--m3e-card-outline-color, ${DesignToken$1.color.outlineVariant}))`),
|
|
4133
3698
|
outlineThickness: unsafeCSS("var(--m3e-outlined-card-outline-thickness, var(--m3e-card-outline-thickness, 1px))"),
|
|
@@ -4284,6 +3849,7 @@ var _M3eCardElement_instances, _M3eCardElement_clickHandler, _M3eCardElement_han
|
|
|
4284
3849
|
* @cssprop --m3e-elevated-card-pressed-state-layer-opacity - State layer opacity on press.
|
|
4285
3850
|
* @cssprop --m3e-elevated-card-pressed-container-elevation - Elevation level on press.
|
|
4286
3851
|
* @cssprop --m3e-outlined-card-text-color - Foreground color for text content in outlined cards.
|
|
3852
|
+
* @cssprop --m3e-outlined-card-container-color - Background color of the outlined card container.
|
|
4287
3853
|
* @cssprop --m3e-outlined-card-container-elevation - Elevation level for outlined card container.
|
|
4288
3854
|
* @cssprop --m3e-outlined-card-outline-color - Border color for outlined cards.
|
|
4289
3855
|
* @cssprop --m3e-outlined-card-outline-thickness - Border thickness for outlined cards.
|
|
@@ -4410,21 +3976,21 @@ _M3eCardElement_handleClick = function _M3eCardElement_handleClick(e) {
|
|
|
4410
3976
|
};
|
|
4411
3977
|
/** The styles of the element. */
|
|
4412
3978
|
M3eCardElement.styles = [CardVariantStyle, CardStyle];
|
|
4413
|
-
__decorate([
|
|
4414
|
-
__decorate([
|
|
4415
|
-
__decorate([
|
|
4416
|
-
__decorate([
|
|
4417
|
-
__decorate([
|
|
4418
|
-
__decorate([
|
|
3979
|
+
__decorate([query(".base")], M3eCardElement.prototype, "_base", void 0);
|
|
3980
|
+
__decorate([query(".elevation")], M3eCardElement.prototype, "_elevation", void 0);
|
|
3981
|
+
__decorate([query(".focus-ring")], M3eCardElement.prototype, "_focusRing", void 0);
|
|
3982
|
+
__decorate([query(".state-layer")], M3eCardElement.prototype, "_stateLayer", void 0);
|
|
3983
|
+
__decorate([query(".ripple")], M3eCardElement.prototype, "_ripple", void 0);
|
|
3984
|
+
__decorate([property({
|
|
4419
3985
|
type: Boolean
|
|
4420
3986
|
})], M3eCardElement.prototype, "inline", void 0);
|
|
4421
|
-
__decorate([
|
|
3987
|
+
__decorate([property({
|
|
4422
3988
|
type: Boolean
|
|
4423
3989
|
})], M3eCardElement.prototype, "actionable", void 0);
|
|
4424
|
-
__decorate([
|
|
3990
|
+
__decorate([property({
|
|
4425
3991
|
reflect: true
|
|
4426
3992
|
})], M3eCardElement.prototype, "variant", void 0);
|
|
4427
|
-
__decorate([
|
|
3993
|
+
__decorate([property({
|
|
4428
3994
|
reflect: true
|
|
4429
3995
|
})], M3eCardElement.prototype, "orientation", void 0);
|
|
4430
3996
|
M3eCardElement = __decorate([customElement$1("m3e-card")], M3eCardElement);
|
|
@@ -4597,10 +4163,10 @@ _M3eCheckboxElement_handleClick = function _M3eCheckboxElement_handleClick(e) {
|
|
|
4597
4163
|
};
|
|
4598
4164
|
/** The styles of the element. */
|
|
4599
4165
|
M3eCheckboxElement.styles = css`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${DesignToken$1.density.calc(-3)}); height: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${DesignToken$1.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); } :host(:not([checked]):not([indeterminate])) .wrapper { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-hover-color, ${DesignToken$1.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-focus-color, ${DesignToken$1.color.onSurface}); --m3e-ripple-color: var(--m3e-checkbox-unselected-ripple-color, ${DesignToken$1.color.onSurface}); } :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-hover-color, ${DesignToken$1.color.primary}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-focus-color, ${DesignToken$1.color.primary}); --m3e-ripple-color: var(--m3e-checkbox-selected-ripple-color, ${DesignToken$1.color.primary}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: var(--m3e-checkbox-selected-container-color, ${DesignToken$1.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${DesignToken$1.color.onPrimary}); } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper { border-color: var(--m3e-checkbox-unselected-outline-color, ${DesignToken$1.color.onSurfaceVariant}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover) .wrapper { border-color: var(--m3e-checkbox-unselected-hover-outline-color, ${DesignToken$1.color.onSurface}); } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${DesignToken$1.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${DesignToken$1.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${DesignToken$1.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-error-hover-color, ${DesignToken$1.color.error}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-error-focus-color, ${DesignToken$1.color.error}); --m3e-ripple-color: var(--m3e-checkbox-unselected-error-ripple-color, ${DesignToken$1.color.error}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-error-hover-color, ${DesignToken$1.color.onError}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-error-focus-color, ${DesignToken$1.color.onError}); --m3e-ripple-color: var(--m3e-checkbox-selected-error-ripple-color, ${DesignToken$1.color.onError}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: var(--m3e-checkbox-unselected-error-outline-color, ${DesignToken$1.color.error}); } @media (forced-colors: active) { :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base, :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: CanvasText; --m3e-state-layer-focus-color: CanvasText; --m3e-ripple-color: CanvasText; } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper, :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover ) .wrapper { border-color: CanvasText; } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: CanvasText; color: Canvas; } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: GrayText; } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: GrayText; color: Canvas; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: Highlight; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: Highlight; --m3e-state-layer-focus-color: Highlight; --m3e-ripple-color: Highlight; } }`;
|
|
4600
|
-
__decorate([
|
|
4601
|
-
__decorate([
|
|
4602
|
-
__decorate([
|
|
4603
|
-
__decorate([
|
|
4166
|
+
__decorate([query(".focus-ring")], M3eCheckboxElement.prototype, "_focusRing", void 0);
|
|
4167
|
+
__decorate([query(".state-layer")], M3eCheckboxElement.prototype, "_stateLayer", void 0);
|
|
4168
|
+
__decorate([query(".ripple")], M3eCheckboxElement.prototype, "_ripple", void 0);
|
|
4169
|
+
__decorate([property()], M3eCheckboxElement.prototype, "value", void 0);
|
|
4604
4170
|
M3eCheckboxElement = __decorate([customElement$1("m3e-checkbox")], M3eCheckboxElement);
|
|
4605
4171
|
|
|
4606
4172
|
var _M3eChipElement_instances, _M3eChipElement_value, _M3eChipElement_textContent, _M3eChipElement_renderContent, _M3eChipElement_handleIconSlotChange, _M3eChipElement_handleTrailingIconSlotChange, _M3eChipElement_handleSlotChange;
|
|
@@ -4725,14 +4291,14 @@ _M3eChipElement_handleSlotChange = function _M3eChipElement_handleSlotChange(e)
|
|
|
4725
4291
|
};
|
|
4726
4292
|
/** The styles of the element. */
|
|
4727
4293
|
M3eChipElement.styles = css`:host { display: inline-block; vertical-align: middle; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${unsafeCSS(`background-color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; border-radius: var(--m3e-chip-container-shape, ${DesignToken$1.shape.corner.small}); height: calc(var(--m3e-chip-container-height, 2rem) + ${DesignToken$1.density.calc(-2)}); font-size: var(--m3e-chip-label-text-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-chip-label-text-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-chip-label-text-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-chip-label-text-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) { cursor: not-allowed; } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base { user-select: none; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; column-gap: var(--m3e-chip-spacing, 0.5rem); } .label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host([variant="elevated"]) .base { background-color: var(--m3e-elevated-chip-container-color, ${DesignToken$1.color.surfaceContainerLow}); --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${DesignToken$1.elevation.level1}); --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${DesignToken$1.elevation.level2}); --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${DesignToken$1.elevation.level1}); --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${DesignToken$1.elevation.level1}); } :host([variant="outlined"]) .base { outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-style: solid; outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: var(--m3e-outlined-chip-outline-color, ${DesignToken$1.color.outlineVariant}); } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: color-mix( in srgb, var(--m3e-outlined-chip-disabled-outline-color, ${DesignToken$1.color.onSurface}) var(--m3e-outlined-chip-disabled-outline-opacity, 12%), transparent ); } :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } :host(:not(:state(-with-icon))) .wrapper { padding-inline-start: var(--m3e-chip-padding-start, 1rem); } :host(:state(-with-trailing-icon)) .wrapper { padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem); } :host(:not(:state(-with-trailing-icon))) .wrapper { padding-inline-end: var(--m3e-chip-padding-end, 1rem); } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]) { flex: none; width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem) !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-label-text-color, ${DesignToken$1.color.onSurface}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-icon-color, ${DesignToken$1.color.primary}); } :host(:disabled) .base, :host([disabled-interactive]) .base { color: color-mix( in srgb, var(--m3e-chip-disabled-label-text-color, ${DesignToken$1.color.onSurface}) var(--m3e-chip-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-chip-disabled-icon-color, ${DesignToken$1.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%), transparent ); } :host([variant="elevated"]:disabled) .base, :host([variant="elevated"][disabled-interactive]) .base { background-color: color-mix( in srgb, var(--m3e-elevated-chip-disabled-container-color, ${DesignToken$1.color.onSurface}) var(--m3e-elevated-chip-disabled-container-opacity, 12%), transparent ); --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${DesignToken$1.elevation.level0}); } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: CanvasText; } :host(:disabled) .base, :host([disabled-interactive]) .base, :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: GrayText; } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: GrayText; } }`;
|
|
4728
|
-
__decorate([
|
|
4729
|
-
__decorate([
|
|
4730
|
-
__decorate([
|
|
4731
|
-
__decorate([
|
|
4732
|
-
__decorate([
|
|
4294
|
+
__decorate([query(".elevation")], M3eChipElement.prototype, "_elevation", void 0);
|
|
4295
|
+
__decorate([query(".focus-ring")], M3eChipElement.prototype, "_focusRing", void 0);
|
|
4296
|
+
__decorate([query(".state-layer")], M3eChipElement.prototype, "_stateLayer", void 0);
|
|
4297
|
+
__decorate([query(".ripple")], M3eChipElement.prototype, "_ripple", void 0);
|
|
4298
|
+
__decorate([property({
|
|
4733
4299
|
reflect: true
|
|
4734
4300
|
})], M3eChipElement.prototype, "variant", void 0);
|
|
4735
|
-
__decorate([
|
|
4301
|
+
__decorate([property()], M3eChipElement.prototype, "value", null);
|
|
4736
4302
|
M3eChipElement = __decorate([customElement$1("m3e-chip")], M3eChipElement);
|
|
4737
4303
|
|
|
4738
4304
|
/**
|
|
@@ -5137,314 +4703,15 @@ _M3eFilterChipSetElement_handleChange = function _M3eFilterChipSetElement_handle
|
|
|
5137
4703
|
_M3eFilterChipSetElement_updateChipRole = function _M3eFilterChipSetElement_updateChipRole() {
|
|
5138
4704
|
this.chips.forEach(x => x.role = this.multi ? "button" : "radio");
|
|
5139
4705
|
};
|
|
5140
|
-
__decorate([
|
|
4706
|
+
__decorate([property({
|
|
5141
4707
|
type: Boolean
|
|
5142
4708
|
})], M3eFilterChipSetElement.prototype, "multi", void 0);
|
|
5143
|
-
__decorate([
|
|
4709
|
+
__decorate([property({
|
|
5144
4710
|
attribute: "hide-selection-indicator",
|
|
5145
4711
|
type: Boolean
|
|
5146
4712
|
})], M3eFilterChipSetElement.prototype, "hideSelectionIndicator", void 0);
|
|
5147
4713
|
M3eFilterChipSetElement = __decorate([customElement$1("m3e-filter-chip-set")], M3eFilterChipSetElement);
|
|
5148
4714
|
|
|
5149
|
-
/**
|
|
5150
|
-
* @license
|
|
5151
|
-
* Copyright 2017 Google LLC
|
|
5152
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5153
|
-
*/
|
|
5154
|
-
const t$1 = globalThis,
|
|
5155
|
-
i$1 = t$1.trustedTypes,
|
|
5156
|
-
s = i$1 ? i$1.createPolicy("lit-html", {
|
|
5157
|
-
createHTML: t => t
|
|
5158
|
-
}) : void 0,
|
|
5159
|
-
e$2 = "$lit$",
|
|
5160
|
-
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
5161
|
-
o$1 = "?" + h,
|
|
5162
|
-
n = `<${o$1}>`,
|
|
5163
|
-
r = document,
|
|
5164
|
-
l = () => r.createComment(""),
|
|
5165
|
-
c = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
5166
|
-
a = Array.isArray,
|
|
5167
|
-
u = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
5168
|
-
d = "[ \t\n\f\r]",
|
|
5169
|
-
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
5170
|
-
v = /-->/g,
|
|
5171
|
-
_ = />/g,
|
|
5172
|
-
m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
5173
|
-
p = /'/g,
|
|
5174
|
-
g = /"/g,
|
|
5175
|
-
$ = /^(?:script|style|textarea|title)$/i,
|
|
5176
|
-
T = Symbol.for("lit-noChange"),
|
|
5177
|
-
E = Symbol.for("lit-nothing"),
|
|
5178
|
-
A = new WeakMap(),
|
|
5179
|
-
C = r.createTreeWalker(r, 129);
|
|
5180
|
-
function P(t, i) {
|
|
5181
|
-
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
5182
|
-
return void 0 !== s ? s.createHTML(i) : i;
|
|
5183
|
-
}
|
|
5184
|
-
const V = (t, i) => {
|
|
5185
|
-
const s = t.length - 1,
|
|
5186
|
-
o = [];
|
|
5187
|
-
let r,
|
|
5188
|
-
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
5189
|
-
c = f;
|
|
5190
|
-
for (let i = 0; i < s; i++) {
|
|
5191
|
-
const s = t[i];
|
|
5192
|
-
let a,
|
|
5193
|
-
u,
|
|
5194
|
-
d = -1,
|
|
5195
|
-
y = 0;
|
|
5196
|
-
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
5197
|
-
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
5198
|
-
l += c === f ? s + n : d >= 0 ? (o.push(a), s.slice(0, d) + e$2 + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
5199
|
-
}
|
|
5200
|
-
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
5201
|
-
};
|
|
5202
|
-
class N {
|
|
5203
|
-
constructor({
|
|
5204
|
-
strings: t,
|
|
5205
|
-
_$litType$: s
|
|
5206
|
-
}, n) {
|
|
5207
|
-
let r;
|
|
5208
|
-
this.parts = [];
|
|
5209
|
-
let c = 0,
|
|
5210
|
-
a = 0;
|
|
5211
|
-
const u = t.length - 1,
|
|
5212
|
-
d = this.parts,
|
|
5213
|
-
[f, v] = V(t, s);
|
|
5214
|
-
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
5215
|
-
const t = this.el.content.firstChild;
|
|
5216
|
-
t.replaceWith(...t.childNodes);
|
|
5217
|
-
}
|
|
5218
|
-
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
5219
|
-
if (1 === r.nodeType) {
|
|
5220
|
-
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e$2)) {
|
|
5221
|
-
const i = v[a++],
|
|
5222
|
-
s = r.getAttribute(t).split(h),
|
|
5223
|
-
e = /([.?@])?(.*)/.exec(i);
|
|
5224
|
-
d.push({
|
|
5225
|
-
type: 1,
|
|
5226
|
-
index: c,
|
|
5227
|
-
name: e[2],
|
|
5228
|
-
strings: s,
|
|
5229
|
-
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
5230
|
-
}), r.removeAttribute(t);
|
|
5231
|
-
} else t.startsWith(h) && (d.push({
|
|
5232
|
-
type: 6,
|
|
5233
|
-
index: c
|
|
5234
|
-
}), r.removeAttribute(t));
|
|
5235
|
-
if ($.test(r.tagName)) {
|
|
5236
|
-
const t = r.textContent.split(h),
|
|
5237
|
-
s = t.length - 1;
|
|
5238
|
-
if (s > 0) {
|
|
5239
|
-
r.textContent = i$1 ? i$1.emptyScript : "";
|
|
5240
|
-
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
5241
|
-
type: 2,
|
|
5242
|
-
index: ++c
|
|
5243
|
-
});
|
|
5244
|
-
r.append(t[s], l());
|
|
5245
|
-
}
|
|
5246
|
-
}
|
|
5247
|
-
} else if (8 === r.nodeType) if (r.data === o$1) d.push({
|
|
5248
|
-
type: 2,
|
|
5249
|
-
index: c
|
|
5250
|
-
});else {
|
|
5251
|
-
let t = -1;
|
|
5252
|
-
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
5253
|
-
type: 7,
|
|
5254
|
-
index: c
|
|
5255
|
-
}), t += h.length - 1;
|
|
5256
|
-
}
|
|
5257
|
-
c++;
|
|
5258
|
-
}
|
|
5259
|
-
}
|
|
5260
|
-
static createElement(t, i) {
|
|
5261
|
-
const s = r.createElement("template");
|
|
5262
|
-
return s.innerHTML = t, s;
|
|
5263
|
-
}
|
|
5264
|
-
}
|
|
5265
|
-
function S(t, i, s = t, e) {
|
|
5266
|
-
if (i === T) return i;
|
|
5267
|
-
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
5268
|
-
const o = c(i) ? void 0 : i._$litDirective$;
|
|
5269
|
-
return h?.constructor !== o && (h?._$AO?.(false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
5270
|
-
}
|
|
5271
|
-
class M {
|
|
5272
|
-
constructor(t, i) {
|
|
5273
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
5274
|
-
}
|
|
5275
|
-
get parentNode() {
|
|
5276
|
-
return this._$AM.parentNode;
|
|
5277
|
-
}
|
|
5278
|
-
get _$AU() {
|
|
5279
|
-
return this._$AM._$AU;
|
|
5280
|
-
}
|
|
5281
|
-
u(t) {
|
|
5282
|
-
const {
|
|
5283
|
-
el: {
|
|
5284
|
-
content: i
|
|
5285
|
-
},
|
|
5286
|
-
parts: s
|
|
5287
|
-
} = this._$AD,
|
|
5288
|
-
e = (t?.creationScope ?? r).importNode(i, true);
|
|
5289
|
-
C.currentNode = e;
|
|
5290
|
-
let h = C.nextNode(),
|
|
5291
|
-
o = 0,
|
|
5292
|
-
n = 0,
|
|
5293
|
-
l = s[0];
|
|
5294
|
-
for (; void 0 !== l;) {
|
|
5295
|
-
if (o === l.index) {
|
|
5296
|
-
let i;
|
|
5297
|
-
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
5298
|
-
}
|
|
5299
|
-
o !== l?.index && (h = C.nextNode(), o++);
|
|
5300
|
-
}
|
|
5301
|
-
return C.currentNode = r, e;
|
|
5302
|
-
}
|
|
5303
|
-
p(t) {
|
|
5304
|
-
let i = 0;
|
|
5305
|
-
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
5306
|
-
}
|
|
5307
|
-
}
|
|
5308
|
-
class R {
|
|
5309
|
-
get _$AU() {
|
|
5310
|
-
return this._$AM?._$AU ?? this._$Cv;
|
|
5311
|
-
}
|
|
5312
|
-
constructor(t, i, s, e) {
|
|
5313
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
|
|
5314
|
-
}
|
|
5315
|
-
get parentNode() {
|
|
5316
|
-
let t = this._$AA.parentNode;
|
|
5317
|
-
const i = this._$AM;
|
|
5318
|
-
return void 0 !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
5319
|
-
}
|
|
5320
|
-
get startNode() {
|
|
5321
|
-
return this._$AA;
|
|
5322
|
-
}
|
|
5323
|
-
get endNode() {
|
|
5324
|
-
return this._$AB;
|
|
5325
|
-
}
|
|
5326
|
-
_$AI(t, i = this) {
|
|
5327
|
-
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
5328
|
-
}
|
|
5329
|
-
O(t) {
|
|
5330
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
5331
|
-
}
|
|
5332
|
-
T(t) {
|
|
5333
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
5334
|
-
}
|
|
5335
|
-
_(t) {
|
|
5336
|
-
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r.createTextNode(t)), this._$AH = t;
|
|
5337
|
-
}
|
|
5338
|
-
$(t) {
|
|
5339
|
-
const {
|
|
5340
|
-
values: i,
|
|
5341
|
-
_$litType$: s
|
|
5342
|
-
} = t,
|
|
5343
|
-
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
5344
|
-
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
5345
|
-
const t = new M(e, this),
|
|
5346
|
-
s = t.u(this.options);
|
|
5347
|
-
t.p(i), this.T(s), this._$AH = t;
|
|
5348
|
-
}
|
|
5349
|
-
}
|
|
5350
|
-
_$AC(t) {
|
|
5351
|
-
let i = A.get(t.strings);
|
|
5352
|
-
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
5353
|
-
}
|
|
5354
|
-
k(t) {
|
|
5355
|
-
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
5356
|
-
const i = this._$AH;
|
|
5357
|
-
let s,
|
|
5358
|
-
e = 0;
|
|
5359
|
-
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
5360
|
-
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
5361
|
-
}
|
|
5362
|
-
_$AR(t = this._$AA.nextSibling, i) {
|
|
5363
|
-
for (this._$AP?.(false, true, i); t !== this._$AB;) {
|
|
5364
|
-
const i = t.nextSibling;
|
|
5365
|
-
t.remove(), t = i;
|
|
5366
|
-
}
|
|
5367
|
-
}
|
|
5368
|
-
setConnected(t) {
|
|
5369
|
-
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
5370
|
-
}
|
|
5371
|
-
}
|
|
5372
|
-
class k {
|
|
5373
|
-
get tagName() {
|
|
5374
|
-
return this.element.tagName;
|
|
5375
|
-
}
|
|
5376
|
-
get _$AU() {
|
|
5377
|
-
return this._$AM._$AU;
|
|
5378
|
-
}
|
|
5379
|
-
constructor(t, i, s, e, h) {
|
|
5380
|
-
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
5381
|
-
}
|
|
5382
|
-
_$AI(t, i = this, s, e) {
|
|
5383
|
-
const h = this.strings;
|
|
5384
|
-
let o = false;
|
|
5385
|
-
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
5386
|
-
const e = t;
|
|
5387
|
-
let n, r;
|
|
5388
|
-
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
5389
|
-
}
|
|
5390
|
-
o && !e && this.j(t);
|
|
5391
|
-
}
|
|
5392
|
-
j(t) {
|
|
5393
|
-
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
5394
|
-
}
|
|
5395
|
-
}
|
|
5396
|
-
class H extends k {
|
|
5397
|
-
constructor() {
|
|
5398
|
-
super(...arguments), this.type = 3;
|
|
5399
|
-
}
|
|
5400
|
-
j(t) {
|
|
5401
|
-
this.element[this.name] = t === E ? void 0 : t;
|
|
5402
|
-
}
|
|
5403
|
-
}
|
|
5404
|
-
class I extends k {
|
|
5405
|
-
constructor() {
|
|
5406
|
-
super(...arguments), this.type = 4;
|
|
5407
|
-
}
|
|
5408
|
-
j(t) {
|
|
5409
|
-
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
5410
|
-
}
|
|
5411
|
-
}
|
|
5412
|
-
class L extends k {
|
|
5413
|
-
constructor(t, i, s, e, h) {
|
|
5414
|
-
super(t, i, s, e, h), this.type = 5;
|
|
5415
|
-
}
|
|
5416
|
-
_$AI(t, i = this) {
|
|
5417
|
-
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
5418
|
-
const s = this._$AH,
|
|
5419
|
-
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
5420
|
-
h = t !== E && (s === E || e);
|
|
5421
|
-
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
5422
|
-
}
|
|
5423
|
-
handleEvent(t) {
|
|
5424
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
5425
|
-
}
|
|
5426
|
-
}
|
|
5427
|
-
class z {
|
|
5428
|
-
constructor(t, i, s) {
|
|
5429
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
5430
|
-
}
|
|
5431
|
-
get _$AU() {
|
|
5432
|
-
return this._$AM._$AU;
|
|
5433
|
-
}
|
|
5434
|
-
_$AI(t) {
|
|
5435
|
-
S(this, t);
|
|
5436
|
-
}
|
|
5437
|
-
}
|
|
5438
|
-
const j = t$1.litHtmlPolyfillSupport;
|
|
5439
|
-
j?.(N, R), (t$1.litHtmlVersions ??= []).push("3.3.1");
|
|
5440
|
-
|
|
5441
|
-
/**
|
|
5442
|
-
* @license
|
|
5443
|
-
* Copyright 2018 Google LLC
|
|
5444
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5445
|
-
*/
|
|
5446
|
-
const o = o => o ?? E;
|
|
5447
|
-
|
|
5448
4715
|
var _M3eInputChipElement_instances, _M3eInputChipElement_handleAvatarSlotChange, _M3eInputChipElement_handleRemoveButtonClick, _M3eInputChipElement_handleKeyDown;
|
|
5449
4716
|
/**
|
|
5450
4717
|
* A chip which represents a discrete piece of information entered by a user.
|
|
@@ -5551,7 +4818,7 @@ let M3eInputChipElement = class M3eInputChipElement extends EventAttribute$1(Dis
|
|
|
5551
4818
|
}
|
|
5552
4819
|
/** @inheritdoc */
|
|
5553
4820
|
render() {
|
|
5554
|
-
return html`<div class="base"><m3e-elevation class="elevation" for="cell" ?disabled="${this.disabled || this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" for="cell" ?disabled="${this.disabled || this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" for="cell" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" for="cell" ?disabled="${this.disabled || this.disabledInteractive}"></m3e-ripple><div class="wrapper"><div id="cell" class="cell" role="gridcell" tabindex="${
|
|
4821
|
+
return html`<div class="base"><m3e-elevation class="elevation" for="cell" ?disabled="${this.disabled || this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" for="cell" ?disabled="${this.disabled || this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" for="cell" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" for="cell" ?disabled="${this.disabled || this.disabledInteractive}"></m3e-ripple><div class="wrapper"><div id="cell" class="cell" role="gridcell" tabindex="${ifDefined(this.disabled ? undefined : "-1")}" @keydown="${__classPrivateFieldGet(this, _M3eInputChipElement_instances, "m", _M3eInputChipElement_handleKeyDown)}"><slot name="avatar" @slotchange="${__classPrivateFieldGet(this, _M3eInputChipElement_instances, "m", _M3eInputChipElement_handleAvatarSlotChange)}"></slot>${this._renderIcon()}<div class="label">${this._renderSlot()}</div><div class="touch" aria-hidden="true"></div></div>${this._renderTrailingIcon()}</div></div>`;
|
|
5555
4822
|
}
|
|
5556
4823
|
/** @internal @inheritdoc */
|
|
5557
4824
|
_renderTrailingIcon() {
|
|
@@ -5580,12 +4847,12 @@ _M3eInputChipElement_handleKeyDown = function _M3eInputChipElement_handleKeyDown
|
|
|
5580
4847
|
M3eInputChipElement.formAssociated = true;
|
|
5581
4848
|
/** The styles of the element. */
|
|
5582
4849
|
M3eInputChipElement.styles = [M3eChipElement.styles, css`.cell { display: inline-flex; align-items: center; outline: none; column-gap: var(--m3e-chip-spacing, 0.5rem); min-width: 0; } .remove-button { --m3e-icon-button-extra-small-container-height: 1.5rem; --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem); width: 1.5rem; } .remove-icon { flex: none; width: var(--m3e-chip-icon-size, 1.125rem); height: var(--m3e-chip-icon-size, 1.125rem); } .touch { top: calc( 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${DesignToken$1.density.calc(-2)})) / 2) ); } .wrapper { height: 100%; overflow: visible; min-width: 0; } ::slotted([slot="avatar"]) { flex: none; font-size: var(--m3e-chip-avatar-size, 1.5rem); } ::slotted(m3e-avatar[slot="avatar"]) { --m3e-icon-size: var(--m3e-chip-avatar-icon-size, 1.125rem); --m3e-avatar-size: var(--m3e-chip-avatar-size, 1.5rem); --m3e-avatar-font-size: var( --m3e-chip-avatar-font-size, ${DesignToken$1.typescale.standard.title.small.fontSize} ); --m3e-avatar-font-weight: var( --m3e-chip-avatar-font-height, ${DesignToken$1.typescale.standard.title.small.fontWeight} ); --m3e-avatar-line-height: var( --m3e-chip-avatar-line-height, ${DesignToken$1.typescale.standard.title.small.lineHeight} ); --m3e-avatar-tracking: var(--m3e-chip-avatar-tracking, ${DesignToken$1.typescale.standard.title.small.tracking}); } :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { opacity: var(--m3e-chip-disabled-avatar-opacity, 38%); color: var(--m3e-chip-disabled-icon-color, ${DesignToken$1.color.onSurface}); } :host(:state(-with-avatar)) ::slotted([slot="icon"]) { display: none; } :host(:state(-with-avatar)) .wrapper { padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { color: CanvasText; } }`];
|
|
5583
|
-
__decorate([
|
|
5584
|
-
__decorate([
|
|
5585
|
-
__decorate([
|
|
4850
|
+
__decorate([query(".cell")], M3eInputChipElement.prototype, "cell", void 0);
|
|
4851
|
+
__decorate([query(".remove-button")], M3eInputChipElement.prototype, "removeButton", void 0);
|
|
4852
|
+
__decorate([property({
|
|
5586
4853
|
type: Boolean
|
|
5587
4854
|
})], M3eInputChipElement.prototype, "removable", void 0);
|
|
5588
|
-
__decorate([
|
|
4855
|
+
__decorate([property({
|
|
5589
4856
|
attribute: "remove-label"
|
|
5590
4857
|
})], M3eInputChipElement.prototype, "removeLabel", void 0);
|
|
5591
4858
|
M3eInputChipElement = __decorate([customElement$1("m3e-input-chip")], M3eInputChipElement);
|
|
@@ -7417,42 +6684,15 @@ const spaceSeparatedStringConverter = {
|
|
|
7417
6684
|
}
|
|
7418
6685
|
};
|
|
7419
6686
|
|
|
7420
|
-
/**
|
|
7421
|
-
* @license
|
|
7422
|
-
* Copyright 2017 Google LLC
|
|
7423
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7424
|
-
*/
|
|
7425
|
-
const t = {
|
|
7426
|
-
ATTRIBUTE: 1},
|
|
7427
|
-
e$1 = t => (...e) => ({
|
|
7428
|
-
_$litDirective$: t,
|
|
7429
|
-
values: e
|
|
7430
|
-
});
|
|
7431
|
-
class i {
|
|
7432
|
-
constructor(t) {}
|
|
7433
|
-
get _$AU() {
|
|
7434
|
-
return this._$AM._$AU;
|
|
7435
|
-
}
|
|
7436
|
-
_$AT(t, e, i) {
|
|
7437
|
-
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
|
7438
|
-
}
|
|
7439
|
-
_$AS(t, e) {
|
|
7440
|
-
return this.update(t, e);
|
|
7441
|
-
}
|
|
7442
|
-
update(t, e) {
|
|
7443
|
-
return this.render(...e);
|
|
7444
|
-
}
|
|
7445
|
-
}
|
|
7446
|
-
|
|
7447
6687
|
const important = "important";
|
|
7448
6688
|
// The leading space is important
|
|
7449
6689
|
const importantFlag = " !" + important;
|
|
7450
6690
|
// How many characters to remove from a value, as a negative number
|
|
7451
6691
|
const flagTrim = 0 - importantFlag.length;
|
|
7452
|
-
class SafeStyleMapDirective extends
|
|
6692
|
+
class SafeStyleMapDirective extends Directive {
|
|
7453
6693
|
constructor(partInfo) {
|
|
7454
6694
|
super(partInfo);
|
|
7455
|
-
if (partInfo.type !==
|
|
6695
|
+
if (partInfo.type !== PartType.ATTRIBUTE || partInfo.name !== "style" || partInfo.strings?.length > 2) {
|
|
7456
6696
|
throw new Error("The `styleMap` directive must be used in the `style` attribute " + "and must be the only part in the attribute.");
|
|
7457
6697
|
}
|
|
7458
6698
|
}
|
|
@@ -7517,7 +6757,7 @@ class SafeStyleMapDirective extends i {
|
|
|
7517
6757
|
* @param styleInfo
|
|
7518
6758
|
* @see {@link https://lit.dev/docs/templates/directives/#stylemap styleMap code samples on Lit.dev}
|
|
7519
6759
|
*/
|
|
7520
|
-
const safeStyleMap =
|
|
6760
|
+
const safeStyleMap = directive(SafeStyleMapDirective);
|
|
7521
6761
|
|
|
7522
6762
|
/**
|
|
7523
6763
|
* Determines whether an object has keys for a given type.
|
|
@@ -7670,7 +6910,7 @@ function Checked(base) {
|
|
|
7670
6910
|
}
|
|
7671
6911
|
}
|
|
7672
6912
|
}
|
|
7673
|
-
__decorate([
|
|
6913
|
+
__decorate([property({
|
|
7674
6914
|
type: Boolean,
|
|
7675
6915
|
reflect: true
|
|
7676
6916
|
})], _CheckedMixin.prototype, "checked", void 0);
|
|
@@ -7709,7 +6949,7 @@ function CheckedIndeterminate(base) {
|
|
|
7709
6949
|
}
|
|
7710
6950
|
}
|
|
7711
6951
|
}
|
|
7712
|
-
__decorate([
|
|
6952
|
+
__decorate([property({
|
|
7713
6953
|
type: Boolean,
|
|
7714
6954
|
reflect: true
|
|
7715
6955
|
})], _CheckedIndeterminateMixin.prototype, "indeterminate", void 0);
|
|
@@ -7760,7 +7000,7 @@ function Selected(base) {
|
|
|
7760
7000
|
}
|
|
7761
7001
|
}
|
|
7762
7002
|
}
|
|
7763
|
-
__decorate([
|
|
7003
|
+
__decorate([property({
|
|
7764
7004
|
type: Boolean,
|
|
7765
7005
|
reflect: true
|
|
7766
7006
|
})], _SelectedMixin.prototype, "selected", void 0);
|
|
@@ -8495,7 +7735,7 @@ function Disabled(base, reflect = true) {
|
|
|
8495
7735
|
}
|
|
8496
7736
|
}
|
|
8497
7737
|
}
|
|
8498
|
-
__decorate([
|
|
7738
|
+
__decorate([property({
|
|
8499
7739
|
type: Boolean,
|
|
8500
7740
|
reflect: reflect
|
|
8501
7741
|
})], _DisabledMixin.prototype, "disabled", void 0);
|
|
@@ -8560,7 +7800,7 @@ function DisabledInteractive(base) {
|
|
|
8560
7800
|
}
|
|
8561
7801
|
}
|
|
8562
7802
|
_a = _suppressedEventHandler;
|
|
8563
|
-
__decorate([
|
|
7803
|
+
__decorate([property({
|
|
8564
7804
|
attribute: "disabled-interactive",
|
|
8565
7805
|
type: Boolean,
|
|
8566
7806
|
reflect: true
|
|
@@ -8756,10 +7996,10 @@ function FormAssociated(base) {
|
|
|
8756
7996
|
}
|
|
8757
7997
|
/** Indicates that this custom element participates in form submission, validation, and form state restoration. */
|
|
8758
7998
|
_FormAssociatedMixin.formAssociated = true;
|
|
8759
|
-
__decorate([
|
|
7999
|
+
__decorate([property({
|
|
8760
8000
|
noAccessor: true
|
|
8761
8001
|
})], _FormAssociatedMixin.prototype, "name", null);
|
|
8762
|
-
__decorate([
|
|
8002
|
+
__decorate([property({
|
|
8763
8003
|
type: Boolean
|
|
8764
8004
|
})], _FormAssociatedMixin.prototype, "disabled", null);
|
|
8765
8005
|
return _FormAssociatedMixin;
|
|
@@ -9087,9 +8327,9 @@ function FormSubmitter(base) {
|
|
|
9087
8327
|
_a = _clickHandler$1;
|
|
9088
8328
|
/** Indicates that this custom element participates in form submission, validation, and form state restoration. */
|
|
9089
8329
|
_FormSubmitterMixin.formAssociated = true;
|
|
9090
|
-
__decorate([
|
|
9091
|
-
__decorate([
|
|
9092
|
-
__decorate([
|
|
8330
|
+
__decorate([property()], _FormSubmitterMixin.prototype, "name", null);
|
|
8331
|
+
__decorate([property()], _FormSubmitterMixin.prototype, "value", null);
|
|
8332
|
+
__decorate([property()], _FormSubmitterMixin.prototype, "type", void 0);
|
|
9093
8333
|
return _FormSubmitterMixin;
|
|
9094
8334
|
}
|
|
9095
8335
|
|
|
@@ -9181,7 +8421,7 @@ function HtmlFor(base) {
|
|
|
9181
8421
|
}
|
|
9182
8422
|
}
|
|
9183
8423
|
_a = _firstUpdated;
|
|
9184
|
-
__decorate([
|
|
8424
|
+
__decorate([property({
|
|
9185
8425
|
attribute: "for"
|
|
9186
8426
|
})], _HtmlForMixin.prototype, "htmlFor", void 0);
|
|
9187
8427
|
return _HtmlForMixin;
|
|
@@ -9348,7 +8588,7 @@ function LinkButton(base) {
|
|
|
9348
8588
|
[(__LinkButtonMixin_instances = new WeakSet(), _a = _clickHandler, renderPseudoLink)]() {
|
|
9349
8589
|
const disabled = isDisabledMixin(this) && this.disabled;
|
|
9350
8590
|
const disabledInteractive = isDisabledInteractiveMixin(this) && this.disabledInteractive;
|
|
9351
|
-
return !disabled && !disabledInteractive && this.href ? html`<a href="${this.href}" target="${
|
|
8591
|
+
return !disabled && !disabledInteractive && this.href ? html`<a href="${this.href}" target="${ifDefined(this.target || undefined)}" rel="${ifDefined(this.rel || undefined)}" download="${ifDefined(this.download || undefined)}" tabindex="-1" aria-hidden="true" @pointerdown="${__classPrivateFieldGet(this, __LinkButtonMixin_instances, "m", __LinkButtonMixin_handleLinkPointerDown)}" @focus="${__classPrivateFieldGet(this, __LinkButtonMixin_instances, "m", __LinkButtonMixin_handleLinkFocus)}" @blur="${__classPrivateFieldGet(this, __LinkButtonMixin_instances, "m", __LinkButtonMixin_handleLinkBlur)}"></a>` : nothing;
|
|
9352
8592
|
}
|
|
9353
8593
|
}
|
|
9354
8594
|
__LinkButtonMixin_handleLinkPointerDown = function __LinkButtonMixin_handleLinkPointerDown(e) {
|
|
@@ -9369,10 +8609,10 @@ function LinkButton(base) {
|
|
|
9369
8609
|
}, __LinkButtonMixin_handleLinkBlur = function __LinkButtonMixin_handleLinkBlur(e) {
|
|
9370
8610
|
e.target.setAttribute("aria-hidden", "true");
|
|
9371
8611
|
};
|
|
9372
|
-
__decorate([
|
|
9373
|
-
__decorate([
|
|
9374
|
-
__decorate([
|
|
9375
|
-
__decorate([
|
|
8612
|
+
__decorate([property()], _LinkButtonMixin.prototype, "href", void 0);
|
|
8613
|
+
__decorate([property()], _LinkButtonMixin.prototype, "target", void 0);
|
|
8614
|
+
__decorate([property()], _LinkButtonMixin.prototype, "rel", void 0);
|
|
8615
|
+
__decorate([property({
|
|
9376
8616
|
reflect: false
|
|
9377
8617
|
})], _LinkButtonMixin.prototype, "download", null);
|
|
9378
8618
|
return _LinkButtonMixin;
|
|
@@ -9411,7 +8651,7 @@ function ReadOnly(base, reflect = true) {
|
|
|
9411
8651
|
}
|
|
9412
8652
|
}
|
|
9413
8653
|
}
|
|
9414
|
-
__decorate([
|
|
8654
|
+
__decorate([property({
|
|
9415
8655
|
attribute: "readonly",
|
|
9416
8656
|
type: Boolean,
|
|
9417
8657
|
reflect: reflect
|
|
@@ -9419,6 +8659,40 @@ function ReadOnly(base, reflect = true) {
|
|
|
9419
8659
|
return _ReadOnlyMixin;
|
|
9420
8660
|
}
|
|
9421
8661
|
|
|
8662
|
+
const _wasConnected = Symbol("_wasConnected");
|
|
8663
|
+
/**
|
|
8664
|
+
* Mixin to augment an element with behavior that supports reconnection logic.
|
|
8665
|
+
* @template T The type of the base class.
|
|
8666
|
+
* @param {T} base The base class.
|
|
8667
|
+
* @returns {Constructor<ReconnectedCallbackMixin> & T} A constructor that implements `ReconnectedCallbackMixin`.
|
|
8668
|
+
*/
|
|
8669
|
+
function ReconnectedCallback(base) {
|
|
8670
|
+
var _a;
|
|
8671
|
+
class _ReconnectedCallbackMixin extends base {
|
|
8672
|
+
constructor() {
|
|
8673
|
+
super(...arguments);
|
|
8674
|
+
/** @private */
|
|
8675
|
+
this[_a] = false;
|
|
8676
|
+
}
|
|
8677
|
+
/** @inheritdoc */
|
|
8678
|
+
reconnectedCallback() {}
|
|
8679
|
+
/** @inheritdoc */
|
|
8680
|
+
connectedCallback() {
|
|
8681
|
+
super.connectedCallback();
|
|
8682
|
+
if (this[_wasConnected]) {
|
|
8683
|
+
this.reconnectedCallback();
|
|
8684
|
+
}
|
|
8685
|
+
}
|
|
8686
|
+
/** @inheritdoc */
|
|
8687
|
+
disconnectedCallback() {
|
|
8688
|
+
super.disconnectedCallback();
|
|
8689
|
+
this[_wasConnected] = true;
|
|
8690
|
+
}
|
|
8691
|
+
}
|
|
8692
|
+
_a = _wasConnected;
|
|
8693
|
+
return _ReconnectedCallbackMixin;
|
|
8694
|
+
}
|
|
8695
|
+
|
|
9422
8696
|
/**
|
|
9423
8697
|
* Determines whether a value is a `RequiredMixin`.
|
|
9424
8698
|
* @param {unknown} value The value to test.
|
|
@@ -9455,7 +8729,7 @@ function Required(base) {
|
|
|
9455
8729
|
}
|
|
9456
8730
|
}
|
|
9457
8731
|
}
|
|
9458
|
-
__decorate([
|
|
8732
|
+
__decorate([property({
|
|
9459
8733
|
type: Boolean,
|
|
9460
8734
|
reflect: true
|
|
9461
8735
|
})], _RequiredMixin.prototype, "required", void 0);
|
|
@@ -9518,6 +8792,23 @@ function Role(base, role) {
|
|
|
9518
8792
|
return _RoleMixin;
|
|
9519
8793
|
}
|
|
9520
8794
|
|
|
8795
|
+
/**
|
|
8796
|
+
* Mixin to augment an element with behavior that suppresses initial animations.
|
|
8797
|
+
* @template T The type of the base class.
|
|
8798
|
+
* @param {T} base The base class.
|
|
8799
|
+
* @returns {T} A constructor that implements initial animation suppression.
|
|
8800
|
+
*/
|
|
8801
|
+
function SuppressInitialAnimation(base) {
|
|
8802
|
+
class _SuppressInitialAnimation extends base {
|
|
8803
|
+
connectedCallback() {
|
|
8804
|
+
super.connectedCallback();
|
|
8805
|
+
addCustomState(this, "-no-animate");
|
|
8806
|
+
requestAnimationFrame(() => deleteCustomState(this, "-no-animate"));
|
|
8807
|
+
}
|
|
8808
|
+
}
|
|
8809
|
+
return _SuppressInitialAnimation;
|
|
8810
|
+
}
|
|
8811
|
+
|
|
9521
8812
|
/**
|
|
9522
8813
|
* Determines whether a value is a `VerticalMixin`.
|
|
9523
8814
|
* @param {unknown} value The value to test.
|
|
@@ -9550,7 +8841,7 @@ function Vertical(base) {
|
|
|
9550
8841
|
}
|
|
9551
8842
|
}
|
|
9552
8843
|
}
|
|
9553
|
-
__decorate([
|
|
8844
|
+
__decorate([property({
|
|
9554
8845
|
type: Boolean,
|
|
9555
8846
|
reflect: true
|
|
9556
8847
|
})], _VerticalMixin.prototype, "vertical", void 0);
|
|
@@ -9727,7 +9018,7 @@ M3eCollapsibleElement.styles = css`:host { display: block; height: 0px; overflow
|
|
|
9727
9018
|
${DesignToken.motion.easing.standard},
|
|
9728
9019
|
padding-bottom var(--m3e-collapsible-animation-duration, ${DesignToken.motion.duration.medium1})
|
|
9729
9020
|
${DesignToken.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`;
|
|
9730
|
-
__decorate([
|
|
9021
|
+
__decorate([property({
|
|
9731
9022
|
type: Boolean,
|
|
9732
9023
|
reflect: true
|
|
9733
9024
|
})], M3eCollapsibleElement.prototype, "open", void 0);
|
|
@@ -9894,12 +9185,12 @@ _M3eElevationElement_handlePressedChange = function _M3eElevationElement_handleP
|
|
|
9894
9185
|
};
|
|
9895
9186
|
/** The styles of the element. */
|
|
9896
9187
|
M3eElevationElement.styles = css`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${unsafeCSS(`box-shadow ${ElevationToken.settleDuration} ${ElevationToken.settleEasing};`)}; } .shadow.hover { will-change: box-shadow; transition: ${unsafeCSS(`box-shadow ${ElevationToken.liftDuration} ${ElevationToken.liftEasing};`)}; } .shadow { box-shadow: ${ElevationToken.level}; } .shadow.focus { box-shadow: ${ElevationToken.focusLevel}; } .shadow.hover { box-shadow: ${ElevationToken.hoverLevel}; } .shadow.pressed { box-shadow: ${ElevationToken.pressedLevel}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${DesignToken.elevation.level0}; --m3e-elevation-hover-level: ${DesignToken.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${DesignToken.elevation.level1}; --m3e-elevation-hover-level: ${DesignToken.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${DesignToken.elevation.level2}; --m3e-elevation-hover-level: ${DesignToken.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${DesignToken.elevation.level3}; --m3e-elevation-hover-level: ${DesignToken.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${DesignToken.elevation.level4}; --m3e-elevation-hover-level: ${DesignToken.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${DesignToken.elevation.level5}; --m3e-elevation-hover-level: ${ElevationToken.level}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${ElevationToken.level}; --m3e-elevation-pressed-level: ${ElevationToken.level}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`;
|
|
9897
|
-
__decorate([
|
|
9898
|
-
__decorate([
|
|
9188
|
+
__decorate([query(".shadow")], M3eElevationElement.prototype, "_shadow", void 0);
|
|
9189
|
+
__decorate([property({
|
|
9899
9190
|
type: Boolean,
|
|
9900
9191
|
reflect: true
|
|
9901
9192
|
})], M3eElevationElement.prototype, "disabled", void 0);
|
|
9902
|
-
__decorate([
|
|
9193
|
+
__decorate([property({
|
|
9903
9194
|
type: Number,
|
|
9904
9195
|
reflect: true
|
|
9905
9196
|
})], M3eElevationElement.prototype, "level", void 0);
|
|
@@ -10040,12 +9331,12 @@ _M3eFocusRingElement_handleFocusChange = function _M3eFocusRingElement_handleFoc
|
|
|
10040
9331
|
};
|
|
10041
9332
|
/** The styles of the element. */
|
|
10042
9333
|
M3eFocusRingElement.styles = css`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${FocusRingToken.color}; outline-width: ${FocusRingToken.thickness}; visibility: ${FocusRingToken.visibility}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${FocusRingToken.outwardOffset}; } :host([inward]) .outline { outline-offset: calc(${FocusRingToken.inwardOffset} - ${FocusRingToken.thickness}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${FocusRingToken.duration}; } :host([inward]) .outline.visible { animation: shrink-grow ${FocusRingToken.duration}; } @keyframes grow-shrink { 50% { outline-width: calc(${FocusRingToken.thickness} * ${FocusRingToken.growthFactor}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${FocusRingToken.inwardOffset} - calc(${FocusRingToken.thickness} * ${FocusRingToken.growthFactor}) ); outline-width: calc(${FocusRingToken.thickness} * ${FocusRingToken.growthFactor}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`;
|
|
10043
|
-
__decorate([
|
|
10044
|
-
__decorate([
|
|
9334
|
+
__decorate([query(".outline")], M3eFocusRingElement.prototype, "_outline", void 0);
|
|
9335
|
+
__decorate([property({
|
|
10045
9336
|
type: Boolean,
|
|
10046
9337
|
reflect: true
|
|
10047
9338
|
})], M3eFocusRingElement.prototype, "inward", void 0);
|
|
10048
|
-
__decorate([
|
|
9339
|
+
__decorate([property({
|
|
10049
9340
|
type: Boolean,
|
|
10050
9341
|
reflect: true
|
|
10051
9342
|
})], M3eFocusRingElement.prototype, "disabled", void 0);
|
|
@@ -10335,19 +9626,19 @@ _M3eRippleElement_handlePressedChange = function _M3eRippleElement_handlePressed
|
|
|
10335
9626
|
};
|
|
10336
9627
|
/** The styles of the element. */
|
|
10337
9628
|
M3eRippleElement.styles = css`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${DesignToken.shape.corner.full}; background-color: color-mix(in srgb, ${RippleToken.color} ${RippleToken.opacity}, transparent); will-change: background-color, opacity; animation: ripple ${RippleToken.enterDuration} linear; } .ripple.persistent.pressed { transform: scale(${RippleToken.scaleFactor}); } .ripple.exit { transition: opacity ${RippleToken.exitDuration} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${RippleToken.scaleFactor}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${RippleToken.scaleFactor}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`;
|
|
10338
|
-
__decorate([
|
|
9629
|
+
__decorate([property({
|
|
10339
9630
|
type: Boolean,
|
|
10340
9631
|
reflect: true
|
|
10341
9632
|
})], M3eRippleElement.prototype, "disabled", void 0);
|
|
10342
|
-
__decorate([
|
|
9633
|
+
__decorate([property({
|
|
10343
9634
|
type: Boolean,
|
|
10344
9635
|
reflect: true
|
|
10345
9636
|
})], M3eRippleElement.prototype, "centered", void 0);
|
|
10346
|
-
__decorate([
|
|
9637
|
+
__decorate([property({
|
|
10347
9638
|
type: Boolean,
|
|
10348
9639
|
reflect: true
|
|
10349
9640
|
})], M3eRippleElement.prototype, "unbounded", void 0);
|
|
10350
|
-
__decorate([
|
|
9641
|
+
__decorate([property({
|
|
10351
9642
|
type: Number
|
|
10352
9643
|
})], M3eRippleElement.prototype, "radius", void 0);
|
|
10353
9644
|
M3eRippleElement = __decorate([customElement("m3e-ripple")], M3eRippleElement);
|
|
@@ -10431,8 +9722,8 @@ let M3eScrollContainerElement = class M3eScrollContainerElement extends AttachIn
|
|
|
10431
9722
|
_M3eScrollContainerElement_scrollHandler = new WeakMap();
|
|
10432
9723
|
/** The styles of the element. */
|
|
10433
9724
|
M3eScrollContainerElement.styles = css`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${DesignToken.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${FocusRingToken.color}; outline-width: ${FocusRingToken.thickness}; outline-offset: ${FocusRingToken.outwardOffset}; } :host([thin]) { scrollbar-width: ${DesignToken.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${DesignToken.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${DesignToken.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${DesignToken.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${FocusRingToken.duration}; } @keyframes grow-shrink { 50% { outline-width: calc(${FocusRingToken.thickness} * ${FocusRingToken.growthFactor}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`;
|
|
10434
|
-
__decorate([
|
|
10435
|
-
__decorate([
|
|
9725
|
+
__decorate([property()], M3eScrollContainerElement.prototype, "dividers", void 0);
|
|
9726
|
+
__decorate([property({
|
|
10436
9727
|
type: Boolean,
|
|
10437
9728
|
reflect: true
|
|
10438
9729
|
})], M3eScrollContainerElement.prototype, "thin", void 0);
|
|
@@ -10527,7 +9818,7 @@ _M3eSlideElement_updateItems = function _M3eSlideElement_updateItems() {
|
|
|
10527
9818
|
/** The styles of the element. */
|
|
10528
9819
|
M3eSlideElement.styles = css`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${unsafeCSS(`inset-inline-start var(--m3e-slide-animation-duration, ${DesignToken.motion.duration.long2}) ${DesignToken.motion.easing.standard},
|
|
10529
9820
|
visibility var(--m3e-slide-animation-duration, ${DesignToken.motion.duration.long2}) ${DesignToken.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`;
|
|
10530
|
-
__decorate([
|
|
9821
|
+
__decorate([property({
|
|
10531
9822
|
attribute: "selected-index",
|
|
10532
9823
|
type: Number,
|
|
10533
9824
|
reflect: true
|
|
@@ -10687,12 +9978,12 @@ _M3eStateLayerElement_handleFocusChange = function _M3eStateLayerElement_handleF
|
|
|
10687
9978
|
};
|
|
10688
9979
|
/** The styles of the element. */
|
|
10689
9980
|
M3eStateLayerElement.styles = css`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${unsafeCSS(`background-color ${StateLayerToken.duration} ${StateLayerToken.easing}`)}; } .layer.focused { background-color: color-mix(in srgb, ${StateLayerToken.focusColor} ${StateLayerToken.focusOpacity}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${StateLayerToken.hoverColor} ${StateLayerToken.hoverOpacity}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`;
|
|
10690
|
-
__decorate([
|
|
10691
|
-
__decorate([
|
|
9981
|
+
__decorate([query(".layer")], M3eStateLayerElement.prototype, "_layer", void 0);
|
|
9982
|
+
__decorate([property({
|
|
10692
9983
|
type: Boolean,
|
|
10693
9984
|
reflect: true
|
|
10694
9985
|
})], M3eStateLayerElement.prototype, "disabled", void 0);
|
|
10695
|
-
__decorate([
|
|
9986
|
+
__decorate([property({
|
|
10696
9987
|
attribute: "disable-hover",
|
|
10697
9988
|
type: Boolean,
|
|
10698
9989
|
reflect: true
|
|
@@ -10919,16 +10210,16 @@ _M3eTextHighlightElement_highlight = function _M3eTextHighlightElement_highlight
|
|
|
10919
10210
|
M3eTextHighlightElement.styles = css`:host { display: contents; }`;
|
|
10920
10211
|
/** @private */
|
|
10921
10212
|
M3eTextHighlightElement.__nextId = 0;
|
|
10922
|
-
__decorate([
|
|
10213
|
+
__decorate([property({
|
|
10923
10214
|
type: Boolean,
|
|
10924
10215
|
reflect: true
|
|
10925
10216
|
})], M3eTextHighlightElement.prototype, "disabled", void 0);
|
|
10926
|
-
__decorate([
|
|
10927
|
-
__decorate([
|
|
10217
|
+
__decorate([property()], M3eTextHighlightElement.prototype, "term", void 0);
|
|
10218
|
+
__decorate([property({
|
|
10928
10219
|
attribute: "case-sensitive",
|
|
10929
10220
|
type: Boolean
|
|
10930
10221
|
})], M3eTextHighlightElement.prototype, "caseSensitive", void 0);
|
|
10931
|
-
__decorate([
|
|
10222
|
+
__decorate([property()], M3eTextHighlightElement.prototype, "mode", void 0);
|
|
10932
10223
|
M3eTextHighlightElement = M3eTextHighlightElement_1 = __decorate([customElement("m3e-text-highlight")], M3eTextHighlightElement);
|
|
10933
10224
|
|
|
10934
10225
|
/**
|
|
@@ -10988,7 +10279,7 @@ let M3eDialogActionElement = class M3eDialogActionElement extends ActionElementB
|
|
|
10988
10279
|
this.closest("m3e-dialog")?.hide(this.returnValue);
|
|
10989
10280
|
}
|
|
10990
10281
|
};
|
|
10991
|
-
__decorate([
|
|
10282
|
+
__decorate([property({
|
|
10992
10283
|
attribute: "return-value"
|
|
10993
10284
|
})], M3eDialogActionElement.prototype, "returnValue", void 0);
|
|
10994
10285
|
M3eDialogActionElement = __decorate([customElement$1("m3e-dialog-action")], M3eDialogActionElement);
|
|
@@ -11171,7 +10462,7 @@ let M3eDialogElement = M3eDialogElement_1 = class M3eDialogElement extends Event
|
|
|
11171
10462
|
}
|
|
11172
10463
|
/** @inheritdoc */
|
|
11173
10464
|
render() {
|
|
11174
|
-
return html`<dialog class="base" role="${
|
|
10465
|
+
return html`<dialog class="base" role="${ifDefined(this.alert ? "alertdialog" : undefined)}" aria-labelledby="m3e-dialog-${__classPrivateFieldGet(this, _M3eDialogElement_id, "f")}-header" .returnvalue="${this.returnValue}" @close="${__classPrivateFieldGet(this, _M3eDialogElement_instances, "m", _M3eDialogElement_handleClose)}" @cancel="${__classPrivateFieldGet(this, _M3eDialogElement_instances, "m", _M3eDialogElement_handleCancel)}" @click="${__classPrivateFieldGet(this, _M3eDialogElement_instances, "m", _M3eDialogElement_handleClick)}" @keydown="${__classPrivateFieldGet(this, _M3eDialogElement_instances, "m", _M3eDialogElement_handleKeyDown)}"><m3e-elevation level="3"></m3e-elevation><m3e-focus-trap ?disabled="${this.noFocusTrap}"><div class="header"><slot name="header" id="m3e-dialog-${__classPrivateFieldGet(this, _M3eDialogElement_id, "f")}-header"></slot>${__classPrivateFieldGet(this, _M3eDialogElement_instances, "m", _M3eDialogElement_renderCloseButton).call(this)}</div><m3e-scroll-container class="content" dividers="${this._withActions ? "above-below" : "above"}"><slot></slot></m3e-scroll-container><div class="actions"><slot name="actions" @slotchange="${__classPrivateFieldGet(this, _M3eDialogElement_instances, "m", _M3eDialogElement_handleActionsSlotChange)}"></slot></div></m3e-focus-trap></dialog>`;
|
|
11175
10466
|
}
|
|
11176
10467
|
};
|
|
11177
10468
|
_M3eDialogElement_id = new WeakMap();
|
|
@@ -11234,28 +10525,28 @@ M3eDialogElement.styles = css`:host { display: contents; } .base { font: inherit
|
|
|
11234
10525
|
visibility ${DesignToken$1.motion.duration.long2} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } @starting-style { .base[open] { opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); } .base[open]::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${DesignToken$1.color.scrim}) 0%, transparent); } } .header { flex: none; display: flex; align-items: center; padding: 1.5rem 1.5rem 1rem 1.5rem; background-color: var(--m3e-dialog-header-container-color, transparent); } ::slotted([slot="header"]) { margin: unset; flex: 1 1 auto; color: var(--m3e-dialog-header-color, inherit); font-size: var(--m3e-dialog-header-font-size, ${DesignToken$1.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-dialog-header-font-weight, ${DesignToken$1.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-dialog-header-line-height, ${DesignToken$1.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-dialog-header-tracking, ${DesignToken$1.typescale.standard.headline.small.tracking}); } .content { padding-inline: 1.5rem; color: var(--m3e-dialog-content-color, ${DesignToken$1.color.onSurfaceVariant}); font-size: var(--m3e-dialog-content-font-size, ${DesignToken$1.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-dialog-content-font-weight, ${DesignToken$1.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-dialog-content-line-height, ${DesignToken$1.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-dialog-content-tracking, ${DesignToken$1.typescale.standard.body.medium.tracking}); } .actions { padding: 1.5rem; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } :host(:not(:state(-with-actions))) .content { margin-bottom: 1.5rem; } :host(:not(:state(-with-actions))) .actions { display: none; } .close { margin-inline-start: 0.5rem; } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } } @media (prefers-reduced-motion) { .base:not([open]), .base[open], .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } }`;
|
|
11235
10526
|
/** @private */
|
|
11236
10527
|
M3eDialogElement.__nextId = 0;
|
|
11237
|
-
__decorate([
|
|
11238
|
-
__decorate([
|
|
11239
|
-
__decorate([
|
|
11240
|
-
__decorate([
|
|
10528
|
+
__decorate([state()], M3eDialogElement.prototype, "_withActions", void 0);
|
|
10529
|
+
__decorate([query(".base")], M3eDialogElement.prototype, "_base", void 0);
|
|
10530
|
+
__decorate([query(".content")], M3eDialogElement.prototype, "_content", void 0);
|
|
10531
|
+
__decorate([property({
|
|
11241
10532
|
type: Boolean
|
|
11242
10533
|
})], M3eDialogElement.prototype, "alert", void 0);
|
|
11243
|
-
__decorate([
|
|
10534
|
+
__decorate([property({
|
|
11244
10535
|
type: Boolean,
|
|
11245
10536
|
reflect: true
|
|
11246
10537
|
})], M3eDialogElement.prototype, "open", null);
|
|
11247
|
-
__decorate([
|
|
10538
|
+
__decorate([property({
|
|
11248
10539
|
type: Boolean
|
|
11249
10540
|
})], M3eDialogElement.prototype, "dismissible", void 0);
|
|
11250
|
-
__decorate([
|
|
10541
|
+
__decorate([property({
|
|
11251
10542
|
attribute: "disable-close",
|
|
11252
10543
|
type: Boolean
|
|
11253
10544
|
})], M3eDialogElement.prototype, "disableClose", void 0);
|
|
11254
|
-
__decorate([
|
|
10545
|
+
__decorate([property({
|
|
11255
10546
|
attribute: "no-focus-trap",
|
|
11256
10547
|
type: Boolean
|
|
11257
10548
|
})], M3eDialogElement.prototype, "noFocusTrap", void 0);
|
|
11258
|
-
__decorate([
|
|
10549
|
+
__decorate([property({
|
|
11259
10550
|
attribute: "close-label"
|
|
11260
10551
|
})], M3eDialogElement.prototype, "closeLabel", void 0);
|
|
11261
10552
|
M3eDialogElement = M3eDialogElement_1 = __decorate([customElement$1("m3e-dialog")], M3eDialogElement);
|
|
@@ -11347,20 +10638,20 @@ let M3eDividerElement = class M3eDividerElement extends Role$1(LitElement, "sepa
|
|
|
11347
10638
|
};
|
|
11348
10639
|
/** The styles of the element. */
|
|
11349
10640
|
M3eDividerElement.styles = css`:host { display: block; position: relative; } :host(:not([vertical])) { height: var(--m3e-divider-thickness, 1px); width: 100%; } :host([vertical]) { width: var(--m3e-divider-thickness, 1px); height: 100%; } .line { box-sizing: border-box; position: absolute; } :host(:not([vertical])) .line { border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${DesignToken$1.color.outlineVariant}); height: inherit; } :host([vertical]) .line { border-right: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${DesignToken$1.color.outlineVariant}); width: inherit; } :host([vertical][inset]) .line, :host([vertical][inset-start]) .line { top: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-start]) .line { left: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical][inset]) .line, :host([vertical][inset-end]) .line { bottom: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-end]) .line { right: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical]:not([inset]):not([inset-start])) .line { top: 0; } :host(:not([vertical]):not([inset]):not([inset-start])) .line { left: 0; } :host([vertical]:not([inset]):not([inset-end])) .line { bottom: 0; } :host(:not([vertical]):not([inset]):not([inset-end])) .line { right: 0; } @media (forced-colors: active) { .line { border-color: GrayText; } }`;
|
|
11350
|
-
__decorate([
|
|
10641
|
+
__decorate([property({
|
|
11351
10642
|
type: Boolean,
|
|
11352
10643
|
reflect: true
|
|
11353
10644
|
})], M3eDividerElement.prototype, "vertical", void 0);
|
|
11354
|
-
__decorate([
|
|
10645
|
+
__decorate([property({
|
|
11355
10646
|
type: Boolean,
|
|
11356
10647
|
reflect: true
|
|
11357
10648
|
})], M3eDividerElement.prototype, "inset", void 0);
|
|
11358
|
-
__decorate([
|
|
10649
|
+
__decorate([property({
|
|
11359
10650
|
attribute: "inset-start",
|
|
11360
10651
|
type: Boolean,
|
|
11361
10652
|
reflect: true
|
|
11362
10653
|
})], M3eDividerElement.prototype, "insetStart", void 0);
|
|
11363
|
-
__decorate([
|
|
10654
|
+
__decorate([property({
|
|
11364
10655
|
attribute: "inset-end",
|
|
11365
10656
|
type: Boolean,
|
|
11366
10657
|
reflect: true
|
|
@@ -11394,7 +10685,7 @@ const DrawerContainerStyle = css`:host { display: block; position: relative; ove
|
|
|
11394
10685
|
visibility ${DesignToken$1.motion.duration.medium4} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } @starting-style { .scrim { opacity: 0; } } :host(:state(-start-push)[start]) .scrim, :host(:state(-end-push)[end]) .scrim, :host(:state(-start-over)[start]) .scrim, :host(:state(-end-over)[end]) .scrim { visibility: visible; opacity: ${DrawerContainerToken.scrimOpacity}; } :host(:state(-start-push)) .start, :host(:state(-start-over)) .start { border-start-end-radius: ${DrawerContainerToken.cornerShape}; border-end-end-radius: ${DrawerContainerToken.cornerShape}; } :host(:state(-end-push)) .end, :host(:state(-end-over)) .end { border-start-start-radius: ${DrawerContainerToken.cornerShape}; border-end-start-radius: ${DrawerContainerToken.cornerShape}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: ${DrawerContainerToken.modalContainerColor}; box-shadow: ${DrawerContainerToken.modalContainerElevation}; } :host([start-divider]) .start { border-inline-end-color: transparent; border-inline-end-width: ${DrawerContainerToken.dividerThickness}; border-inline-end-style: solid; box-sizing: border-box; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: ${DrawerContainerToken.dividerColor}; } :host([end-divider]) .end { border-inline-start-color: transparent; border-inline-start-width: ${DrawerContainerToken.dividerThickness}; border-inline-start-style: solid; box-sizing: border-box; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: ${DrawerContainerToken.dividerColor}; } :host(:state(-no-animate)) .start, :host(:state(-no-animate)) .end, :host(:state(-no-animate)) .content { transition: none; } @media (forced-colors: active) { .start, .end { background-color: Canvas; box-shadow: unset; transition: ${unsafeCSS(`margin ${DesignToken$1.motion.duration.medium4} ${DesignToken$1.motion.easing.standard},
|
|
11395
10686
|
visibility ${DesignToken$1.motion.duration.medium4} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: Canvas; box-shadow: unset; border-color: CanvasText; } .start, .end { border-style: solid; border-color: Canvas; border-width: 1px; } .start { border-inline-start-style: none; } .end { border-inline-end-style: none; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: GrayText; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: GrayText; } } @media (prefers-reduced-motion) { .start, .end, .content, .scrim { transition: none; } }`;
|
|
11396
10687
|
|
|
11397
|
-
var _M3eDrawerContainerElement_instances, _M3eDrawerContainerElement_breakpointUnobserve, _M3eDrawerContainerElement_disableStartFocusTrap, _M3eDrawerContainerElement_disableEndFocusTrap, _M3eDrawerContainerElement_resizeController, _M3eDrawerContainerElement_handleScrimClick, _M3eDrawerContainerElement_handleStartSlotChange, _M3eDrawerContainerElement_handleEndSlotChange, _M3eDrawerContainerElement_handleDrawerResize, _M3eDrawerContainerElement_clearMode, _M3eDrawerContainerElement_updateMode;
|
|
10688
|
+
var _M3eDrawerContainerElement_instances, _M3eDrawerContainerElement_breakpointUnobserve, _M3eDrawerContainerElement_disableStartFocusTrap, _M3eDrawerContainerElement_disableEndFocusTrap, _M3eDrawerContainerElement_resizeController, _M3eDrawerContainerElement_initialize, _M3eDrawerContainerElement_handleScrimClick, _M3eDrawerContainerElement_handleStartSlotChange, _M3eDrawerContainerElement_handleEndSlotChange, _M3eDrawerContainerElement_handleDrawerResize, _M3eDrawerContainerElement_clearMode, _M3eDrawerContainerElement_updateMode;
|
|
11398
10689
|
/**
|
|
11399
10690
|
* A container for one or two sliding drawers.
|
|
11400
10691
|
*
|
|
@@ -11446,7 +10737,7 @@ var _M3eDrawerContainerElement_instances, _M3eDrawerContainerElement_breakpointU
|
|
|
11446
10737
|
* @cssprop --m3e-drawer-divider-color - The color of the divider between drawer sections.
|
|
11447
10738
|
* @cssprop --m3e-drawer-divider-thickness - The thickness of the divider line.
|
|
11448
10739
|
*/
|
|
11449
|
-
let M3eDrawerContainerElement = class M3eDrawerContainerElement extends AttachInternals$1(LitElement) {
|
|
10740
|
+
let M3eDrawerContainerElement = class M3eDrawerContainerElement extends ReconnectedCallback$1(AttachInternals$1(LitElement)) {
|
|
11450
10741
|
constructor() {
|
|
11451
10742
|
super(...arguments);
|
|
11452
10743
|
_M3eDrawerContainerElement_instances.add(this);
|
|
@@ -11509,8 +10800,8 @@ let M3eDrawerContainerElement = class M3eDrawerContainerElement extends AttachIn
|
|
|
11509
10800
|
__classPrivateFieldGet(this, _M3eDrawerContainerElement_instances, "m", _M3eDrawerContainerElement_clearMode).call(this);
|
|
11510
10801
|
}
|
|
11511
10802
|
/** @inheritdoc */
|
|
11512
|
-
|
|
11513
|
-
super.
|
|
10803
|
+
willUpdate(changedProperties) {
|
|
10804
|
+
super.willUpdate(changedProperties);
|
|
11514
10805
|
if (changedProperties.has("startMode") || changedProperties.has("endMode")) {
|
|
11515
10806
|
__classPrivateFieldGet(this, _M3eDrawerContainerElement_breakpointUnobserve, "f")?.call(this);
|
|
11516
10807
|
if (this.startMode === "auto" || this.endMode === "auto") {
|
|
@@ -11536,12 +10827,14 @@ let M3eDrawerContainerElement = class M3eDrawerContainerElement extends AttachIn
|
|
|
11536
10827
|
}
|
|
11537
10828
|
}
|
|
11538
10829
|
/** @inheritdoc */
|
|
10830
|
+
reconnectedCallback() {
|
|
10831
|
+
super.reconnectedCallback();
|
|
10832
|
+
__classPrivateFieldGet(this, _M3eDrawerContainerElement_instances, "m", _M3eDrawerContainerElement_initialize).call(this);
|
|
10833
|
+
}
|
|
10834
|
+
/** @inheritdoc */
|
|
11539
10835
|
firstUpdated(_changedProperties) {
|
|
11540
10836
|
super.firstUpdated(_changedProperties);
|
|
11541
|
-
|
|
11542
|
-
if (drawer) __classPrivateFieldGet(this, _M3eDrawerContainerElement_resizeController, "f").observe(drawer);
|
|
11543
|
-
drawer = this.shadowRoot?.querySelector(".end");
|
|
11544
|
-
if (drawer) __classPrivateFieldGet(this, _M3eDrawerContainerElement_resizeController, "f").observe(drawer);
|
|
10837
|
+
__classPrivateFieldGet(this, _M3eDrawerContainerElement_instances, "m", _M3eDrawerContainerElement_initialize).call(this);
|
|
11545
10838
|
}
|
|
11546
10839
|
/** @inheritdoc */
|
|
11547
10840
|
render() {
|
|
@@ -11553,6 +10846,12 @@ _M3eDrawerContainerElement_disableStartFocusTrap = new WeakMap();
|
|
|
11553
10846
|
_M3eDrawerContainerElement_disableEndFocusTrap = new WeakMap();
|
|
11554
10847
|
_M3eDrawerContainerElement_resizeController = new WeakMap();
|
|
11555
10848
|
_M3eDrawerContainerElement_instances = new WeakSet();
|
|
10849
|
+
_M3eDrawerContainerElement_initialize = function _M3eDrawerContainerElement_initialize() {
|
|
10850
|
+
let drawer = this.shadowRoot?.querySelector(".start");
|
|
10851
|
+
if (drawer) __classPrivateFieldGet(this, _M3eDrawerContainerElement_resizeController, "f").observe(drawer);
|
|
10852
|
+
drawer = this.shadowRoot?.querySelector(".end");
|
|
10853
|
+
if (drawer) __classPrivateFieldGet(this, _M3eDrawerContainerElement_resizeController, "f").observe(drawer);
|
|
10854
|
+
};
|
|
11556
10855
|
_M3eDrawerContainerElement_handleScrimClick = function _M3eDrawerContainerElement_handleScrimClick() {
|
|
11557
10856
|
if (this._startMode !== "side") {
|
|
11558
10857
|
this.start = false;
|
|
@@ -11643,30 +10942,30 @@ _M3eDrawerContainerElement_updateMode = function _M3eDrawerContainerElement_upda
|
|
|
11643
10942
|
};
|
|
11644
10943
|
/** The styles of the element. */
|
|
11645
10944
|
M3eDrawerContainerElement.styles = DrawerContainerStyle;
|
|
11646
|
-
__decorate([
|
|
11647
|
-
__decorate([
|
|
11648
|
-
__decorate([
|
|
10945
|
+
__decorate([state()], M3eDrawerContainerElement.prototype, "_startMode", void 0);
|
|
10946
|
+
__decorate([state()], M3eDrawerContainerElement.prototype, "_endMode", void 0);
|
|
10947
|
+
__decorate([property({
|
|
11649
10948
|
type: Boolean,
|
|
11650
10949
|
reflect: true
|
|
11651
10950
|
})], M3eDrawerContainerElement.prototype, "start", void 0);
|
|
11652
|
-
__decorate([
|
|
10951
|
+
__decorate([property({
|
|
11653
10952
|
attribute: "start-mode",
|
|
11654
10953
|
reflect: true
|
|
11655
10954
|
})], M3eDrawerContainerElement.prototype, "startMode", void 0);
|
|
11656
|
-
__decorate([
|
|
10955
|
+
__decorate([property({
|
|
11657
10956
|
attribute: "start-divider",
|
|
11658
10957
|
type: Boolean,
|
|
11659
10958
|
reflect: true
|
|
11660
10959
|
})], M3eDrawerContainerElement.prototype, "startDivider", void 0);
|
|
11661
|
-
__decorate([
|
|
10960
|
+
__decorate([property({
|
|
11662
10961
|
type: Boolean,
|
|
11663
10962
|
reflect: true
|
|
11664
10963
|
})], M3eDrawerContainerElement.prototype, "end", void 0);
|
|
11665
|
-
__decorate([
|
|
10964
|
+
__decorate([property({
|
|
11666
10965
|
attribute: "end-mode",
|
|
11667
10966
|
reflect: true
|
|
11668
10967
|
})], M3eDrawerContainerElement.prototype, "endMode", void 0);
|
|
11669
|
-
__decorate([
|
|
10968
|
+
__decorate([property({
|
|
11670
10969
|
attribute: "end-divider",
|
|
11671
10970
|
type: Boolean,
|
|
11672
10971
|
reflect: true
|
|
@@ -11869,7 +11168,7 @@ _M3eAccordionElement_handleOpening = function _M3eAccordionElement_handleOpening
|
|
|
11869
11168
|
};
|
|
11870
11169
|
/** The styles of the element. */
|
|
11871
11170
|
M3eAccordionElement.styles = css`:host { display: block; } ::slotted(m3e-expansion-panel) { --m3e-expansion-panel-container-color: ${DesignToken$1.color.surface}; --m3e-expansion-panel-elevation: ${DesignToken$1.elevation.level2}; --m3e-expansion-panel-open-shape: ${DesignToken$1.shape.corner.medium}; --_expansion-panel-open-spacing: 1rem; } ::slotted(m3e-expansion-panel:first-of-type:last-of-type) { --m3e-expansion-panel-shape: ${DesignToken$1.shape.corner.medium}; } ::slotted(m3e-expansion-panel:first-of-type:not(:last-of-type)) { --m3e-expansion-panel-shape: ${DesignToken$1.shape.corner.value.medium} ${DesignToken$1.shape.corner.value.medium} ${DesignToken$1.shape.corner.value.none} ${DesignToken$1.shape.corner.value.none}; } ::slotted(m3e-expansion-panel:last-of-type:not(:first-of-type)) { --m3e-expansion-panel-shape: ${DesignToken$1.shape.corner.value.none} ${DesignToken$1.shape.corner.value.none} ${DesignToken$1.shape.corner.value.medium} ${DesignToken$1.shape.corner.value.medium}; }`;
|
|
11872
|
-
__decorate([
|
|
11171
|
+
__decorate([property({
|
|
11873
11172
|
type: Boolean
|
|
11874
11173
|
})], M3eAccordionElement.prototype, "multi", void 0);
|
|
11875
11174
|
M3eAccordionElement = __decorate([customElement$1("m3e-accordion")], M3eAccordionElement);
|
|
@@ -11989,17 +11288,17 @@ _M3eExpansionHeaderElement_renderToggle = function _M3eExpansionHeaderElement_re
|
|
|
11989
11288
|
};
|
|
11990
11289
|
/** The styles of the element. */
|
|
11991
11290
|
M3eExpansionHeaderElement.styles = ExpansionHeaderStyle;
|
|
11992
|
-
__decorate([
|
|
11993
|
-
__decorate([
|
|
11994
|
-
__decorate([
|
|
11291
|
+
__decorate([query(".focus-ring")], M3eExpansionHeaderElement.prototype, "_focusRing", void 0);
|
|
11292
|
+
__decorate([query(".state-layer")], M3eExpansionHeaderElement.prototype, "_stateLayer", void 0);
|
|
11293
|
+
__decorate([property({
|
|
11995
11294
|
attribute: "toggle-direction",
|
|
11996
11295
|
reflect: true
|
|
11997
11296
|
})], M3eExpansionHeaderElement.prototype, "toggleDirection", void 0);
|
|
11998
|
-
__decorate([
|
|
11297
|
+
__decorate([property({
|
|
11999
11298
|
attribute: "toggle-position",
|
|
12000
11299
|
reflect: true
|
|
12001
11300
|
})], M3eExpansionHeaderElement.prototype, "togglePosition", void 0);
|
|
12002
|
-
__decorate([
|
|
11301
|
+
__decorate([property({
|
|
12003
11302
|
attribute: "hide-toggle",
|
|
12004
11303
|
type: Boolean,
|
|
12005
11304
|
reflect: true
|
|
@@ -12077,7 +11376,7 @@ var M3eExpansionPanelElement_1;
|
|
|
12077
11376
|
* @cssprop --m3e-expansion-panel-actions-divider-thickness - Thickness of the divider above actions.
|
|
12078
11377
|
* @cssprop --m3e-expansion-panel-actions-divider-color - Color of the divider above actions.
|
|
12079
11378
|
*/
|
|
12080
|
-
let M3eExpansionPanelElement = M3eExpansionPanelElement_1 = class M3eExpansionPanelElement extends EventAttribute$1(Disabled$1(AttachInternals$1(LitElement, true)), "opening", "opened", "closing", "closed") {
|
|
11379
|
+
let M3eExpansionPanelElement = M3eExpansionPanelElement_1 = class M3eExpansionPanelElement extends EventAttribute$1(Disabled$1(ReconnectedCallback$1(AttachInternals$1(LitElement, true))), "opening", "opened", "closing", "closed") {
|
|
12081
11380
|
constructor() {
|
|
12082
11381
|
super(...arguments);
|
|
12083
11382
|
_M3eExpansionPanelElement_instances.add(this);
|
|
@@ -12136,6 +11435,11 @@ let M3eExpansionPanelElement = M3eExpansionPanelElement_1 = class M3eExpansionPa
|
|
|
12136
11435
|
__classPrivateFieldGet(this, _M3eExpansionPanelElement_directionalitySubscription, "f")?.call(this);
|
|
12137
11436
|
}
|
|
12138
11437
|
/** @inheritdoc */
|
|
11438
|
+
reconnectedCallback() {
|
|
11439
|
+
super.reconnectedCallback();
|
|
11440
|
+
__classPrivateFieldGet(this, _M3eExpansionPanelElement_instances, "m", _M3eExpansionPanelElement_updateHeaderToggleRotation).call(this);
|
|
11441
|
+
}
|
|
11442
|
+
/** @inheritdoc */
|
|
12139
11443
|
firstUpdated(_changedProperties) {
|
|
12140
11444
|
super.firstUpdated(_changedProperties);
|
|
12141
11445
|
__classPrivateFieldGet(this, _M3eExpansionPanelElement_instances, "m", _M3eExpansionPanelElement_updateHeaderToggleRotation).call(this);
|
|
@@ -12205,20 +11509,20 @@ _M3eExpansionPanelElement_updateHeaderToggleRotation = function _M3eExpansionPan
|
|
|
12205
11509
|
M3eExpansionPanelElement.styles = ExpansionPanelStyle;
|
|
12206
11510
|
/** @private */
|
|
12207
11511
|
M3eExpansionPanelElement.__nextId = 0;
|
|
12208
|
-
__decorate([
|
|
12209
|
-
__decorate([
|
|
11512
|
+
__decorate([query("m3e-expansion-header")], M3eExpansionPanelElement.prototype, "_header", void 0);
|
|
11513
|
+
__decorate([property({
|
|
12210
11514
|
type: Boolean,
|
|
12211
11515
|
reflect: true
|
|
12212
11516
|
})], M3eExpansionPanelElement.prototype, "open", void 0);
|
|
12213
|
-
__decorate([
|
|
11517
|
+
__decorate([property({
|
|
12214
11518
|
attribute: "toggle-direction",
|
|
12215
11519
|
reflect: true
|
|
12216
11520
|
})], M3eExpansionPanelElement.prototype, "toggleDirection", void 0);
|
|
12217
|
-
__decorate([
|
|
11521
|
+
__decorate([property({
|
|
12218
11522
|
attribute: "toggle-position",
|
|
12219
11523
|
reflect: true
|
|
12220
11524
|
})], M3eExpansionPanelElement.prototype, "togglePosition", void 0);
|
|
12221
|
-
__decorate([
|
|
11525
|
+
__decorate([property({
|
|
12222
11526
|
attribute: "hide-toggle",
|
|
12223
11527
|
type: Boolean,
|
|
12224
11528
|
reflect: true
|
|
@@ -13266,22 +12570,22 @@ _M3eFabElement_handleSlotChange = function _M3eFabElement_handleSlotChange() {
|
|
|
13266
12570
|
};
|
|
13267
12571
|
/** The styles of the element. */
|
|
13268
12572
|
M3eFabElement.styles = [FabSizeStyle, FabVariantStyle, FabStyle];
|
|
13269
|
-
__decorate([
|
|
13270
|
-
__decorate([
|
|
13271
|
-
__decorate([
|
|
13272
|
-
__decorate([
|
|
13273
|
-
__decorate([
|
|
13274
|
-
__decorate([
|
|
12573
|
+
__decorate([query(".base")], M3eFabElement.prototype, "_base", void 0);
|
|
12574
|
+
__decorate([query(".elevation")], M3eFabElement.prototype, "_elevation", void 0);
|
|
12575
|
+
__decorate([query(".focus-ring")], M3eFabElement.prototype, "_focusRing", void 0);
|
|
12576
|
+
__decorate([query(".state-layer")], M3eFabElement.prototype, "_stateLayer", void 0);
|
|
12577
|
+
__decorate([query(".ripple")], M3eFabElement.prototype, "_ripple", void 0);
|
|
12578
|
+
__decorate([property({
|
|
13275
12579
|
reflect: true
|
|
13276
12580
|
})], M3eFabElement.prototype, "variant", void 0);
|
|
13277
|
-
__decorate([
|
|
12581
|
+
__decorate([property({
|
|
13278
12582
|
type: Boolean,
|
|
13279
12583
|
reflect: true
|
|
13280
12584
|
})], M3eFabElement.prototype, "lowered", void 0);
|
|
13281
|
-
__decorate([
|
|
12585
|
+
__decorate([property({
|
|
13282
12586
|
reflect: true
|
|
13283
12587
|
})], M3eFabElement.prototype, "size", void 0);
|
|
13284
|
-
__decorate([
|
|
12588
|
+
__decorate([property({
|
|
13285
12589
|
type: Boolean,
|
|
13286
12590
|
reflect: true
|
|
13287
12591
|
})], M3eFabElement.prototype, "extended", void 0);
|
|
@@ -13373,10 +12677,10 @@ _M3eFabMenuItemElement_handleClick = function _M3eFabMenuItemElement_handleClick
|
|
|
13373
12677
|
};
|
|
13374
12678
|
/** The styles of the element. */
|
|
13375
12679
|
M3eFabMenuItemElement.styles = css`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${unsafeCSS(`background-color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; height: var(--m3e-fab-menu-item-height, 3.5rem); font-size: var(--m3e-fab-menu-item-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-fab-menu-item-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-fab-menu-item-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-fab-menu-item-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); border-radius: var(--m3e-fab-menu-item-shape, ${DesignToken$1.shape.corner.full}); } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: var(--_fab-menu-item-color); } :host(:not(:disabled)) .base { background-color: var(--_fab-menu-item-container-color); --m3e-state-layer-hover-color: var(--_fab-menu-background-hover-color); --m3e-state-layer-focus-color: var(--_fab-menu-background-focus-color); --m3e-ripple-color: var(--_fab-menu-ripple-color); } :host(:disabled) .base { background-color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-container-color, ${DesignToken$1.color.onSurface}) var(--m3e-fab-menu-item-disabled-container-opacity, 10%), transparent ); } :host(:disabled) .label, :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-fab-menu-item-disabled-opacity, 38%), transparent ); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-fab-menu-item-leading-space, 1.5rem); padding-inline-end: var(--m3e-fab-menu-item-trailing-space, 1.5rem); column-gap: var(--m3e-fab-menu-item-spacing, 0.5rem); } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${unsafeCSS(`color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } .icon { font-size: var(--m3e-fab-menu-item-icon-size, 1.5rem); transition: ${unsafeCSS(`color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } ::slotted([slot="icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]) { width: 1em; height: 1em; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (prefers-reduced-motion) { .base, .label, .icon { transition: none; } } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:not(:disabled)) .base { background-color: Menu; } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: MenuText; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } }`;
|
|
13376
|
-
__decorate([
|
|
13377
|
-
__decorate([
|
|
13378
|
-
__decorate([
|
|
13379
|
-
__decorate([
|
|
12680
|
+
__decorate([query(".elevation")], M3eFabMenuItemElement.prototype, "_elevation", void 0);
|
|
12681
|
+
__decorate([query(".focus-ring")], M3eFabMenuItemElement.prototype, "_focusRing", void 0);
|
|
12682
|
+
__decorate([query(".state-layer")], M3eFabMenuItemElement.prototype, "_stateLayer", void 0);
|
|
12683
|
+
__decorate([query(".ripple")], M3eFabMenuItemElement.prototype, "_ripple", void 0);
|
|
13380
12684
|
M3eFabMenuItemElement = __decorate([customElement$1("m3e-fab-menu-item")], M3eFabMenuItemElement);
|
|
13381
12685
|
|
|
13382
12686
|
var _M3eFabMenuElement_instances, _M3eFabMenuElement_fabTabIndex, _M3eFabMenuElement_trigger, _M3eFabMenuElement_anchoringCleanup, _M3eFabMenuElement_listManager, _M3eFabMenuElement_keyDownHandler, _M3eFabMenuElement_documentClickHandler, _M3eFabMenuElement_scrollController, _M3eFabMenuElement_toggleHandler, _M3eFabMenuElement_handleSlotChange, _M3eFabMenuElement_handleKeyDown, _M3eFabMenuElement_handleDocumentClick, _M3eFabMenuElement_attachFab, _M3eFabMenuElement_detachFab;
|
|
@@ -13433,7 +12737,7 @@ var _M3eFabMenuElement_instances, _M3eFabMenuElement_fabTabIndex, _M3eFabMenuEle
|
|
|
13433
12737
|
* @cssprop --m3e-tertiary-fab-focus-color - Focus background color for tertiary variant items.
|
|
13434
12738
|
* @cssprop --m3e-tertiary-fab-ripple-color - Ripple color for tertiary variant items.
|
|
13435
12739
|
*/
|
|
13436
|
-
let M3eFabMenuElement = class M3eFabMenuElement extends AttachInternals$1(Role$1(LitElement, "menu")) {
|
|
12740
|
+
let M3eFabMenuElement = class M3eFabMenuElement extends SuppressInitialAnimation$1(AttachInternals$1(Role$1(LitElement, "menu"))) {
|
|
13437
12741
|
constructor() {
|
|
13438
12742
|
super(...arguments);
|
|
13439
12743
|
_M3eFabMenuElement_instances.add(this);
|
|
@@ -13544,7 +12848,6 @@ let M3eFabMenuElement = class M3eFabMenuElement extends AttachInternals$1(Role$1
|
|
|
13544
12848
|
super.connectedCallback();
|
|
13545
12849
|
this.tabIndex = -1;
|
|
13546
12850
|
this.setAttribute("popover", "manual");
|
|
13547
|
-
addCustomState$1(this, "-no-animate");
|
|
13548
12851
|
this.addEventListener("keydown", __classPrivateFieldGet(this, _M3eFabMenuElement_keyDownHandler, "f"));
|
|
13549
12852
|
this.addEventListener("toggle", __classPrivateFieldGet(this, _M3eFabMenuElement_toggleHandler, "f"));
|
|
13550
12853
|
document.addEventListener("click", __classPrivateFieldGet(this, _M3eFabMenuElement_documentClickHandler, "f"));
|
|
@@ -13557,11 +12860,6 @@ let M3eFabMenuElement = class M3eFabMenuElement extends AttachInternals$1(Role$1
|
|
|
13557
12860
|
document.removeEventListener("click", __classPrivateFieldGet(this, _M3eFabMenuElement_documentClickHandler, "f"));
|
|
13558
12861
|
}
|
|
13559
12862
|
/** @inheritdoc */
|
|
13560
|
-
firstUpdated(_changedProperties) {
|
|
13561
|
-
super.firstUpdated(_changedProperties);
|
|
13562
|
-
requestAnimationFrame(() => deleteCustomState$1(this, "-no-animate"));
|
|
13563
|
-
}
|
|
13564
|
-
/** @inheritdoc */
|
|
13565
12863
|
render() {
|
|
13566
12864
|
return html`<div class="base"><slot @slotchange="${__classPrivateFieldGet(this, _M3eFabMenuElement_instances, "m", _M3eFabMenuElement_handleSlotChange)}"></slot></div>`;
|
|
13567
12865
|
}
|
|
@@ -13626,7 +12924,7 @@ M3eFabMenuElement.styles = css`:host { position: absolute; flex-direction: colum
|
|
|
13626
12924
|
transform ${DesignToken$1.motion.spring.fastSpatial},
|
|
13627
12925
|
overlay ${DesignToken$1.motion.spring.fastEffects} allow-discrete,
|
|
13628
12926
|
display ${DesignToken$1.motion.spring.fastEffects} allow-discrete`)}; } .base { display: contents; } :host([variant="primary"]) .base { --_fab-menu-item-color: var(--m3e-primary-fab-color, ${DesignToken$1.color.onPrimaryContainer}); --_fab-menu-item-container-color: var(--m3e-primary-fab-container-color, ${DesignToken$1.color.primaryContainer}); --_fab-menu-background-hover-color: var(--m3e-primary-fab-hover-color, ${DesignToken$1.color.onPrimaryContainer}); --_fab-menu-background-focus-color: var(--m3e-primary-fab-focus-color, ${DesignToken$1.color.onPrimaryContainer}); --_fab-menu-ripple-color: var(--m3e-primary-fab-ripple-color, ${DesignToken$1.color.onPrimaryContainer}); } :host([variant="secondary"]) .base { --_fab-menu-item-color: var(--m3e-secondary-fab-color, ${DesignToken$1.color.onSecondaryContainer}); --_fab-menu-item-container-color: var( --m3e-secondary-fab-container-color, ${DesignToken$1.color.secondaryContainer} ); --_fab-menu-background-hover-color: var( --m3e-secondary-fab-hover-color, ${DesignToken$1.color.onSecondaryContainer} ); --_fab-menu-background-focus-color: var( --m3e-secondary-fab-focus-color, ${DesignToken$1.color.onSecondaryContainer} ); --_fab-menu-ripple-color: var(--m3e-secondary-fab-ripple-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([variant="tertiary"]) .base { --_fab-menu-item-color: var(--m3e-tertiary-fab-color, ${DesignToken$1.color.onTertiaryContainer}); --_fab-menu-item-container-color: var(--m3e-tertiary-fab-container-color, ${DesignToken$1.color.tertiaryContainer}); --_fab-menu-background-hover-color: var(--m3e-tertiary-fab-hover-color, ${DesignToken$1.color.onTertiaryContainer}); --_fab-menu-background-focus-color: var(--m3e-tertiary-fab-focus-color, ${DesignToken$1.color.onTertiaryContainer}); --_fab-menu-ripple-color: var(--m3e-tertiary-fab-ripple-color, ${DesignToken$1.color.onTertiaryContainer}); } :host { transform: scaleX(0.8); } :host(:state(-left)) { align-items: flex-start; transform-origin: left; } :host(:state(-right)) { align-items: flex-end; transform-origin: right; } :host(:popover-open) { transform: scaleX(1); display: inline-flex; opacity: 1; } :host::backdrop { background-color: transparent; } @starting-style { :host(:popover-open) { opacity: 0; } :host(:popover-open) { transform: scaleX(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { border-radius: ${DesignToken$1.shape.corner.medium}; outline: 1px solid MenuText; background-color: Menu; } }`;
|
|
13629
|
-
__decorate([
|
|
12927
|
+
__decorate([property({
|
|
13630
12928
|
reflect: true
|
|
13631
12929
|
})], M3eFabMenuElement.prototype, "variant", void 0);
|
|
13632
12930
|
M3eFabMenuElement = __decorate([customElement$1("m3e-fab-menu")], M3eFabMenuElement);
|
|
@@ -13737,7 +13035,7 @@ function findFormFieldControl(slot) {
|
|
|
13737
13035
|
* Copyright (c) 2025 Google LLC
|
|
13738
13036
|
* See LICENSE file in the project root for full license text.
|
|
13739
13037
|
*/
|
|
13740
|
-
var _M3eFormFieldElement_instances, _M3eFormFieldElement_control, _M3eFormFieldElement_removeValueInterceptor, _M3eFormFieldElement_formResetHandler, _M3eFormFieldElement_controlInvalidHandler, _M3eFormFieldElement_controlMutationController, _M3eFormFieldElement_resizeController, _M3eFormFieldElement_focusController, _M3eFormFieldElement_hintMutationController, _M3eFormFieldElement_errorMutationController, _M3eFormFieldElement_pressedController, _M3eFormFieldElement_focused, _M3eFormFieldElement_hintText, _M3eFormFieldElement_errorText, _M3eFormFieldElement_shouldFloatLabel_get, _M3eFormFieldElement_stopPropagation, _M3eFormFieldElement_handleLabelSlotChange, _M3eFormFieldElement_handlePrefixSlotChange, _M3eFormFieldElement_handleSuffixSlotChange, _M3eFormFieldElement_handlePrefixResize, _M3eFormFieldElement_handleSlotChange, _M3eFormFieldElement_handleContainerClick, _M3eFormFieldElement_handleControlInvalid, _M3eFormFieldElement_handleControlChange, _M3eFormFieldElement_handleFormReset, _M3eFormFieldElement_changeControl, _M3eFormFieldElement_bindValueInterceptor, _M3eFormFieldElement_handleHintChange, _M3eFormFieldElement_handleErrorChange;
|
|
13038
|
+
var _M3eFormFieldElement_instances, _M3eFormFieldElement_control, _M3eFormFieldElement_removeValueInterceptor, _M3eFormFieldElement_formResetHandler, _M3eFormFieldElement_controlInvalidHandler, _M3eFormFieldElement_controlMutationController, _M3eFormFieldElement_resizeController, _M3eFormFieldElement_focusController, _M3eFormFieldElement_hintMutationController, _M3eFormFieldElement_errorMutationController, _M3eFormFieldElement_pressedController, _M3eFormFieldElement_focused, _M3eFormFieldElement_hintText, _M3eFormFieldElement_errorText, _M3eFormFieldElement_shouldFloatLabel_get, _M3eFormFieldElement_initialize, _M3eFormFieldElement_stopPropagation, _M3eFormFieldElement_handleLabelSlotChange, _M3eFormFieldElement_handlePrefixSlotChange, _M3eFormFieldElement_handleSuffixSlotChange, _M3eFormFieldElement_handlePrefixResize, _M3eFormFieldElement_handleSlotChange, _M3eFormFieldElement_handleContainerClick, _M3eFormFieldElement_handleControlInvalid, _M3eFormFieldElement_handleControlChange, _M3eFormFieldElement_handleFormReset, _M3eFormFieldElement_changeControl, _M3eFormFieldElement_bindValueInterceptor, _M3eFormFieldElement_handleHintChange, _M3eFormFieldElement_handleErrorChange;
|
|
13741
13039
|
/**
|
|
13742
13040
|
* A container for form controls that applies Material Design styling and behavior.
|
|
13743
13041
|
*
|
|
@@ -13809,7 +13107,7 @@ var _M3eFormFieldElement_instances, _M3eFormFieldElement_control, _M3eFormFieldE
|
|
|
13809
13107
|
* @cssprop --m3e-form-field-disabled-opacity - Opacity for disabled text.
|
|
13810
13108
|
* @cssprop --m3e-form-field-disabled-container-opacity - Opacity for disabled container background.
|
|
13811
13109
|
*/
|
|
13812
|
-
let M3eFormFieldElement = class M3eFormFieldElement extends AttachInternals$1(LitElement) {
|
|
13110
|
+
let M3eFormFieldElement = class M3eFormFieldElement extends ReconnectedCallback$1(AttachInternals$1(LitElement)) {
|
|
13813
13111
|
constructor() {
|
|
13814
13112
|
super();
|
|
13815
13113
|
_M3eFormFieldElement_instances.add(this);
|
|
@@ -13950,15 +13248,15 @@ let M3eFormFieldElement = class M3eFormFieldElement extends AttachInternals$1(Li
|
|
|
13950
13248
|
super.disconnectedCallback();
|
|
13951
13249
|
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_changeControl).call(this, null);
|
|
13952
13250
|
}
|
|
13953
|
-
/** @
|
|
13251
|
+
/** @inheritdoc */
|
|
13252
|
+
reconnectedCallback() {
|
|
13253
|
+
super.reconnectedCallback();
|
|
13254
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_initialize).call(this);
|
|
13255
|
+
}
|
|
13256
|
+
/** @inheritdoc */
|
|
13954
13257
|
firstUpdated(_changedProperties) {
|
|
13955
13258
|
super.firstUpdated(_changedProperties);
|
|
13956
|
-
__classPrivateFieldGet(this,
|
|
13957
|
-
__classPrivateFieldGet(this, _M3eFormFieldElement_pressedController, "f").observe(this._base);
|
|
13958
|
-
__classPrivateFieldGet(this, _M3eFormFieldElement_hintMutationController, "f").observe(this._hint);
|
|
13959
|
-
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_handleHintChange).call(this);
|
|
13960
|
-
__classPrivateFieldGet(this, _M3eFormFieldElement_errorMutationController, "f").observe(this._error);
|
|
13961
|
-
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_handleErrorChange).call(this);
|
|
13259
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_initialize).call(this);
|
|
13962
13260
|
}
|
|
13963
13261
|
/** @inheritdoc */
|
|
13964
13262
|
update(changedProperties) {
|
|
@@ -13996,6 +13294,14 @@ _M3eFormFieldElement_instances = new WeakSet();
|
|
|
13996
13294
|
_M3eFormFieldElement_shouldFloatLabel_get = function _M3eFormFieldElement_shouldFloatLabel_get() {
|
|
13997
13295
|
return __classPrivateFieldGet(this, _M3eFormFieldElement_control, "f")?.shouldLabelFloat !== undefined ? __classPrivateFieldGet(this, _M3eFormFieldElement_control, "f").shouldLabelFloat === true : typeof __classPrivateFieldGet(this, _M3eFormFieldElement_control, "f")?.value == "string" && __classPrivateFieldGet(this, _M3eFormFieldElement_control, "f").value.length > 0;
|
|
13998
13296
|
};
|
|
13297
|
+
_M3eFormFieldElement_initialize = function _M3eFormFieldElement_initialize() {
|
|
13298
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_focusController, "f").observe(this._base);
|
|
13299
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_pressedController, "f").observe(this._base);
|
|
13300
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_hintMutationController, "f").observe(this._hint);
|
|
13301
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_handleHintChange).call(this);
|
|
13302
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_errorMutationController, "f").observe(this._error);
|
|
13303
|
+
__classPrivateFieldGet(this, _M3eFormFieldElement_instances, "m", _M3eFormFieldElement_handleErrorChange).call(this);
|
|
13304
|
+
};
|
|
13999
13305
|
_M3eFormFieldElement_stopPropagation = function _M3eFormFieldElement_stopPropagation(e) {
|
|
14000
13306
|
e.stopImmediatePropagation();
|
|
14001
13307
|
e.stopPropagation();
|
|
@@ -14129,27 +13435,27 @@ M3eFormFieldElement.styles = css`:host { display: inline-flex; flex-direction: c
|
|
|
14129
13435
|
line-height ${DesignToken$1.motion.duration.short4}`)}; } :host(:state(-with-select)) .label { margin-inline-end: 1.5rem; } ::slotted([slot="label"]) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subscript { display: inline-flex; width: 100%; margin-top: 0.25rem; font-size: var(--m3e-form-field-subscript-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-subscript-font-weight, ${DesignToken$1.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-subscript-line-height, ${DesignToken$1.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-subscript-tracking, ${DesignToken$1.typescale.standard.body.small.tracking}); min-height: var(--m3e-form-field-subscript-line-height, ${DesignToken$1.typescale.standard.body.small.lineHeight}); color: var(--m3e-form-field-subscript-color, ${DesignToken$1.color.onSurfaceVariant}); } .error, .hint { flex: 1 1 auto; } :host([hide-subscript="always"]) .subscript { display: none; } :host([hide-subscript="auto"]:not(:state(-invalid))) .subscript { opacity: 0; margin-top: 0px; margin-bottom: 0.25rem; transition: ${unsafeCSS(`opacity ${DesignToken$1.motion.duration.short4},
|
|
14130
13436
|
margin-top ${DesignToken$1.motion.duration.short4},
|
|
14131
13437
|
margin-bottom ${DesignToken$1.motion.duration.short4}`)}; } :host([hide-subscript="auto"]:not(:state(-invalid)):focus-within) .subscript, :host([hide-subscript="auto"]:not(:state(-invalid)):state(-pressed)) .subscript { opacity: 1; margin-top: 0.25rem; margin-bottom: 0; } :host(:state(-invalid)) .hint { display: none; } :host(:not(:state(-invalid))) .error { display: none; } ::slotted(input), ::slotted(textarea), ::slotted(select) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(textarea) { scrollbar-width: ${DesignToken$1.scrollbar.thinWidth}; scrollbar-color: ${DesignToken$1.scrollbar.color}; } ::slotted(m3e-select), ::slotted(m3e-input-chip-set) { flex: 1 1 auto; min-width: 0; } :host([float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { font-size: inherit; } :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .prefix-text, :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .suffix-text { opacity: 0; transition: opacity 0s; } .prefix { margin-inline-start: 1rem; } :host(:state(-with-prefix)) .prefix { margin-inline-end: 1rem; margin-inline-start: 0.75rem; } .suffix { margin-inline-end: 1rem; } :host(:state(-with-suffix)) .suffix { margin-inline-start: 0.25rem; margin-inline-end: 0.5rem; } :host(:state(-with-suffix):state(-with-select)) .suffix { margin-inline-start: unset; } :host(:state(-with-select)) .suffix-text { display: none; } :host([variant="outlined"]) .label { margin-top: calc(0px - var(--_form-field-label-line-height) / 2); } :host([variant="outlined"]) .outline { position: absolute; display: flex; pointer-events: none; left: 0; top: 0; bottom: 0; right: 0; } :host([variant="outlined"]) .pseudo-label { visibility: hidden; margin-inline-end: 0.5rem; font-size: var(--_form-field-label-font-size); line-height: var(--_form-field-label-line-height); letter-spacing: var(--_form-field-label-tracking); max-width: 100%; transition-property: max-width, margin-inline-end; transition-duration: 1ms; } :host([variant="outlined"]:state(-required):not([hide-required-marker])) .pseudo-label { margin-inline-end: 0.25rem; } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .pseudo-label { max-width: 0; margin-inline-end: 0px; transition-delay: ${DesignToken$1.motion.duration.short2}; } :host([variant="outlined"]) .outline-start, :host([variant="outlined"]) .outline-notch, :host([variant="outlined"]) .outline-end { box-sizing: border-box; border-width: var(--_form-field-outline-size, 1px); border-color: var(--_form-field-outline-color); transition: border-color ${DesignToken$1.motion.duration.short4}; } :host([variant="outlined"]:not(:state(-with-label))) .outline-notch { display: none; } :host([variant="outlined"]) .outline-start { min-width: 0.75rem; border-top-style: solid; border-inline-start-style: solid; border-bottom-style: solid; border-start-start-radius: var(--m3e-outlined-form-field-container-shape, ${DesignToken$1.shape.corner.extraSmall}); border-end-start-radius: var(--m3e-outlined-form-field-container-shape, ${DesignToken$1.shape.corner.extraSmall}); } :host([variant="outlined"]) .outline-notch { border-bottom-style: solid; } :host([variant="outlined"]) .outline-end { flex-grow: 1; min-width: 1rem; border-top-style: solid; border-inline-end-style: solid; border-bottom-style: solid; border-start-end-radius: var(--m3e-outlined-form-field-container-shape, ${DesignToken$1.shape.corner.extraSmall}); border-end-end-radius: var(--m3e-outlined-form-field-container-shape, ${DesignToken$1.shape.corner.extraSmall}); } :host([variant="outlined"]:state(-with-prefix)) .outline-start { min-width: calc(1.25rem + var(--_prefix-width, 0px) + 0.25rem); } :host([variant="outlined"]:not(:state(-disabled))) .base:hover .outline, :host([variant="outlined"]:not(:state(-disabled)):focus-within) .outline, :host([variant="outlined"]:not(:state(-disabled)):state(-pressed)) .outline { --_form-field-outline-size: 2px; } :host([variant="outlined"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="outlined"]) .content { min-height: calc(3.5rem + ${DesignToken$1.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize} ); } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { margin-top: unset; line-height: calc(3.5rem + ${DesignToken$1.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize} ); } :host([variant="filled"]) .base { --_select-arrow-margin-top: calc( 0px - calc(1rem / max(calc(0 - calc(var(--md-sys-density-scale, 0) + var(--md-sys-density-scale, 0))), 1)) ); } :host([variant="filled"]) .base::before { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; border-bottom-style: solid; border-width: 1px; border-radius: var(--m3e-form-field-container-shape, ${DesignToken$1.shape.corner.extraSmallTop}); border-color: var(--_form-field-outline-color); background-color: var(--_form-field-container-color); } :host([variant="filled"]:not(:state(-disabled))) .base:hover::before, :host([variant="filled"]:not(:state(-disabled)):focus-within) .base::before, :host([variant="filled"]:not(:state(-disabled)):state(-pressed)) .base::before { border-width: 3px; } :host([variant="filled"]) .base::after { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--_form-field-hover-container-color); transition: background-color ${DesignToken$1.motion.duration.short4}; } :host([variant="filled"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="filled"]) .content { padding-top: calc(1.5rem + ${DesignToken$1.density.calc(-2)}); margin-bottom: 0.5rem; } :host([variant="filled"]) .label { top: calc(0.5rem + ${DesignToken$1.density.calc(-2)}); } :host([variant="filled"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { top: 0px; line-height: calc(3.5rem + ${DesignToken$1.density.calc(-2)} - 0.0625rem); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize} ); } :host(:not(:state(-disabled)):not(:focus-within):not(:state(-pressed))) .base:hover { --_form-field-hover-container-color: color-mix( in srgb, var(--m3e-form-field-hover-container-color, ${DesignToken$1.color.onSurface}) var(--m3e-form-field-hover-container-opacity, 8%), transparent ); } :host(:not(:state(-disabled)):not(:state(-invalid))) { color: var(--m3e-form-field-color, ${DesignToken$1.color.onSurface}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${DesignToken$1.color.outline}); } :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${DesignToken$1.color.onSurfaceVariant}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base { --_form-field-outline-color: var(--m3e-form-field-focused-outline-color, ${DesignToken$1.color.primary}); --_form-field-label-color: var(--m3e-form-field-focused-color, ${DesignToken$1.color.primary}); } :host(:not(:state(-disabled))) .base { --_form-field-container-color: var( --m3e-form-field-container-color, ${DesignToken$1.color.surfaceContainerHighest} ); } :host(:not(:state(-disabled)):state(-invalid)) .base { --_form-field-label-color: var(--m3e-form-field-invalid-color, ${DesignToken$1.color.error}); --_form-field-outline-color: var(--m3e-form-field-invalid-color, ${DesignToken$1.color.error}); } :host(:not(:state(-disabled)):state(-invalid)) .subscript { color: var(--m3e-form-field-invalid-color, ${DesignToken$1.color.error}); } :host(:state(-disabled)) { color: color-mix( in srgb, var(--m3e-form-field-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-form-field-disabled-opacity, 38%), transparent ); } :host(:state(-disabled)) .base { --_form-field-container-color: color-mix( in srgb, var(--m3e-form-field-disabled-container-color, ${DesignToken$1.color.onSurface}) var(--m3e-form-field-disabled-container-opacity, 4%), transparent ); } :host(:state(-no-animate)) *, :host(:state(-no-animate)) *::before, :host(:state(-no-animate)) *::after { transition: none !important; } @media (forced-colors: active) { :host([variant="filled"]) .base::after { transition: none; } :host { --_form-field-outline-color: CanvasText; } :host(:state(-disabled)) { --_form-field-input-color: GrayText; --_form-field-color: GrayText; --_form-field-label-color: GrayText; --_form-field-outline-color: GrayText; } } @media (prefers-reduced-motion) { .base::before, .prefix-text, .suffix-text, .label, .subscript, .outline-start, .outline-notch, .outline-end, .pseudo-label { transition: none !important; } }`;
|
|
14132
|
-
__decorate([
|
|
14133
|
-
__decorate([
|
|
14134
|
-
__decorate([
|
|
14135
|
-
__decorate([
|
|
14136
|
-
__decorate([
|
|
14137
|
-
__decorate([
|
|
14138
|
-
__decorate([
|
|
14139
|
-
__decorate([
|
|
14140
|
-
__decorate([
|
|
13438
|
+
__decorate([query(".base")], M3eFormFieldElement.prototype, "_base", void 0);
|
|
13439
|
+
__decorate([query(".prefix")], M3eFormFieldElement.prototype, "_prefix", void 0);
|
|
13440
|
+
__decorate([query(".error")], M3eFormFieldElement.prototype, "_error", void 0);
|
|
13441
|
+
__decorate([query(".hint")], M3eFormFieldElement.prototype, "_hint", void 0);
|
|
13442
|
+
__decorate([state()], M3eFormFieldElement.prototype, "_pseudoLabel", void 0);
|
|
13443
|
+
__decorate([state()], M3eFormFieldElement.prototype, "_required", void 0);
|
|
13444
|
+
__decorate([state()], M3eFormFieldElement.prototype, "_invalid", void 0);
|
|
13445
|
+
__decorate([state()], M3eFormFieldElement.prototype, "_validationMessage", void 0);
|
|
13446
|
+
__decorate([property({
|
|
14141
13447
|
reflect: true
|
|
14142
13448
|
})], M3eFormFieldElement.prototype, "variant", void 0);
|
|
14143
|
-
__decorate([
|
|
13449
|
+
__decorate([property({
|
|
14144
13450
|
attribute: "hide-required-marker",
|
|
14145
13451
|
type: Boolean,
|
|
14146
13452
|
reflect: true
|
|
14147
13453
|
})], M3eFormFieldElement.prototype, "hideRequiredMarker", void 0);
|
|
14148
|
-
__decorate([
|
|
13454
|
+
__decorate([property({
|
|
14149
13455
|
attribute: "hide-subscript",
|
|
14150
13456
|
reflect: true
|
|
14151
13457
|
})], M3eFormFieldElement.prototype, "hideSubscript", void 0);
|
|
14152
|
-
__decorate([
|
|
13458
|
+
__decorate([property({
|
|
14153
13459
|
attribute: "float-label",
|
|
14154
13460
|
reflect: true
|
|
14155
13461
|
})], M3eFormFieldElement.prototype, "floatLabel", void 0);
|
|
@@ -14327,17 +13633,17 @@ let M3eHeadingElement = class M3eHeadingElement extends LitElement {
|
|
|
14327
13633
|
};
|
|
14328
13634
|
/** The styles of the element. */
|
|
14329
13635
|
M3eHeadingElement.styles = css`:host { display: block; } :host([variant="display"][size="large"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.display.large.fontSize}; font-weight: ${DesignToken$1.typescale.standard.display.large.fontWeight}; line-height: ${DesignToken$1.typescale.standard.display.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.display.large.tracking}; } :host([variant="display"][size="medium"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.display.medium.fontSize}; font-weight: ${DesignToken$1.typescale.standard.display.medium.fontWeight}; line-height: ${DesignToken$1.typescale.standard.display.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.display.medium.tracking}; } :host([variant="display"][size="small"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.display.small.fontSize}; font-weight: ${DesignToken$1.typescale.standard.display.small.fontWeight}; line-height: ${DesignToken$1.typescale.standard.display.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.display.small.tracking}; } :host([variant="headline"][size="large"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.headline.large.fontSize}; font-weight: ${DesignToken$1.typescale.standard.headline.large.fontWeight}; line-height: ${DesignToken$1.typescale.standard.headline.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.headline.large.tracking}; } :host([variant="headline"][size="medium"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.headline.medium.fontSize}; font-weight: ${DesignToken$1.typescale.standard.headline.medium.fontWeight}; line-height: ${DesignToken$1.typescale.standard.headline.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.headline.medium.tracking}; } :host([variant="headline"][size="small"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.headline.small.fontSize}; font-weight: ${DesignToken$1.typescale.standard.headline.small.fontWeight}; line-height: ${DesignToken$1.typescale.standard.headline.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.headline.small.tracking}; } :host([variant="title"][size="large"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.title.large.fontSize}; font-weight: ${DesignToken$1.typescale.standard.title.large.fontWeight}; line-height: ${DesignToken$1.typescale.standard.title.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.title.large.tracking}; } :host([variant="title"][size="medium"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.title.medium.fontSize}; font-weight: ${DesignToken$1.typescale.standard.title.medium.fontWeight}; line-height: ${DesignToken$1.typescale.standard.title.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.title.medium.tracking}; } :host([variant="title"][size="small"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.title.small.fontSize}; font-weight: ${DesignToken$1.typescale.standard.title.small.fontWeight}; line-height: ${DesignToken$1.typescale.standard.title.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.title.small.tracking}; } :host([variant="label"][size="large"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.label.large.fontSize}; font-weight: ${DesignToken$1.typescale.standard.label.large.fontWeight}; line-height: ${DesignToken$1.typescale.standard.label.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.label.large.tracking}; } :host([variant="label"][size="medium"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.label.medium.fontSize}; font-weight: ${DesignToken$1.typescale.standard.label.medium.fontWeight}; line-height: ${DesignToken$1.typescale.standard.label.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.label.medium.tracking}; } :host([variant="label"][size="small"]:not([emphasized])) { font-size: ${DesignToken$1.typescale.standard.label.small.fontSize}; font-weight: ${DesignToken$1.typescale.standard.label.small.fontWeight}; line-height: ${DesignToken$1.typescale.standard.label.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.label.small.tracking}; } :host([variant="display"][size="large"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.display.large.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.display.large.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.display.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.display.large.tracking}; } :host([variant="display"][size="medium"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.display.medium.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.display.medium.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.display.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.display.medium.tracking}; } :host([variant="display"][size="small"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.display.small.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.display.small.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.display.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.display.small.tracking}; } :host([variant="headline"][size="large"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.headline.large.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.headline.large.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.headline.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.headline.large.tracking}; } :host([variant="headline"][size="medium"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.headline.medium.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.headline.medium.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.headline.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.headline.medium.tracking}; } :host([variant="headline"][size="small"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.headline.small.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.headline.small.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.headline.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.headline.small.tracking}; } :host([variant="title"][size="large"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.title.large.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.title.large.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.title.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.title.large.tracking}; } :host([variant="title"][size="medium"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.title.medium.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.title.medium.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.title.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.title.medium.tracking}; } :host([variant="title"][size="small"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.title.small.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.title.small.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.title.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.title.small.tracking}; } :host([variant="label"][size="large"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.label.large.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.label.large.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.label.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.label.large.tracking}; } :host([variant="label"][size="medium"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.label.medium.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.label.medium.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.label.medium.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.label.medium.tracking}; } :host([variant="label"][size="small"][emphasized]) { font-size: ${DesignToken$1.typescale.emphasized.label.small.fontSize}; font-weight: ${DesignToken$1.typescale.emphasized.label.small.fontWeight}; line-height: ${DesignToken$1.typescale.emphasized.label.small.lineHeight}; letter-spacing: ${DesignToken$1.typescale.emphasized.label.small.tracking}; }`;
|
|
14330
|
-
__decorate([
|
|
13636
|
+
__decorate([property({
|
|
14331
13637
|
type: Boolean,
|
|
14332
13638
|
reflect: true
|
|
14333
13639
|
})], M3eHeadingElement.prototype, "emphasized", void 0);
|
|
14334
|
-
__decorate([
|
|
13640
|
+
__decorate([property({
|
|
14335
13641
|
reflect: true
|
|
14336
13642
|
})], M3eHeadingElement.prototype, "variant", void 0);
|
|
14337
|
-
__decorate([
|
|
13643
|
+
__decorate([property({
|
|
14338
13644
|
reflect: true
|
|
14339
13645
|
})], M3eHeadingElement.prototype, "size", void 0);
|
|
14340
|
-
__decorate([
|
|
13646
|
+
__decorate([property({
|
|
14341
13647
|
type: Number
|
|
14342
13648
|
})], M3eHeadingElement.prototype, "level", void 0);
|
|
14343
13649
|
M3eHeadingElement = __decorate([customElement$1("m3e-heading")], M3eHeadingElement);
|
|
@@ -14437,20 +13743,20 @@ let M3eIconElement = class M3eIconElement extends Role$1(LitElement, "img") {
|
|
|
14437
13743
|
};
|
|
14438
13744
|
/** The styles of the element. */
|
|
14439
13745
|
M3eIconElement.styles = css`:host { display: inline-block; user-select: none; font-size: var(--m3e-icon-size, 1.5rem); width: 1em; vertical-align: middle; overflow: hidden; } .icon { font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; width: inherit; height: inherit; vertical-align: inherit; font-variation-settings: "FILL" var(--_icon-fill, 0), "wght" var(--_icon-weight, 400), "GRAD" var(--_icon-grade, 0), "opsz" var(--_icon-optical-size, 24); } :host([variant="outlined"]) .icon { font-family: "Material Symbols Outlined"; } :host([variant="rounded"]) .icon { font-family: "Material Symbols Rounded"; } :host([variant="sharp"]) .icon { font-family: "Material Symbols Sharp"; }`;
|
|
14440
|
-
__decorate([
|
|
14441
|
-
__decorate([
|
|
14442
|
-
__decorate([
|
|
13746
|
+
__decorate([query(".icon")], M3eIconElement.prototype, "_icon", void 0);
|
|
13747
|
+
__decorate([property()], M3eIconElement.prototype, "name", void 0);
|
|
13748
|
+
__decorate([property({
|
|
14443
13749
|
reflect: true
|
|
14444
13750
|
})], M3eIconElement.prototype, "variant", void 0);
|
|
14445
|
-
__decorate([
|
|
13751
|
+
__decorate([property({
|
|
14446
13752
|
type: Boolean,
|
|
14447
13753
|
reflect: true
|
|
14448
13754
|
})], M3eIconElement.prototype, "filled", void 0);
|
|
14449
|
-
__decorate([
|
|
14450
|
-
__decorate([
|
|
13755
|
+
__decorate([property()], M3eIconElement.prototype, "grade", void 0);
|
|
13756
|
+
__decorate([property({
|
|
14451
13757
|
type: Number
|
|
14452
13758
|
})], M3eIconElement.prototype, "weight", void 0);
|
|
14453
|
-
__decorate([
|
|
13759
|
+
__decorate([property({
|
|
14454
13760
|
attribute: "optical-size",
|
|
14455
13761
|
type: Number
|
|
14456
13762
|
})], M3eIconElement.prototype, "opticalSize", void 0);
|
|
@@ -15465,35 +14771,35 @@ _M3eIconButtonElement_handleSelectedIconSlotChange = function _M3eIconButtonElem
|
|
|
15465
14771
|
};
|
|
15466
14772
|
/** The styles of the element. */
|
|
15467
14773
|
M3eIconButtonElement.styles = [IconButtonSizeStyle, IconButtonVariantStyle, IconButtonStyle];
|
|
15468
|
-
__decorate([
|
|
15469
|
-
__decorate([
|
|
15470
|
-
__decorate([
|
|
15471
|
-
__decorate([
|
|
15472
|
-
__decorate([
|
|
15473
|
-
__decorate([
|
|
14774
|
+
__decorate([query(".base")], M3eIconButtonElement.prototype, "_base", void 0);
|
|
14775
|
+
__decorate([query(".elevation")], M3eIconButtonElement.prototype, "_elevation", void 0);
|
|
14776
|
+
__decorate([query(".focus-ring")], M3eIconButtonElement.prototype, "_focusRing", void 0);
|
|
14777
|
+
__decorate([query(".state-layer")], M3eIconButtonElement.prototype, "_stateLayer", void 0);
|
|
14778
|
+
__decorate([query(".ripple")], M3eIconButtonElement.prototype, "_ripple", void 0);
|
|
14779
|
+
__decorate([property({
|
|
15474
14780
|
reflect: true
|
|
15475
14781
|
})], M3eIconButtonElement.prototype, "variant", void 0);
|
|
15476
|
-
__decorate([
|
|
14782
|
+
__decorate([property({
|
|
15477
14783
|
reflect: true
|
|
15478
14784
|
})], M3eIconButtonElement.prototype, "shape", void 0);
|
|
15479
|
-
__decorate([
|
|
14785
|
+
__decorate([property({
|
|
15480
14786
|
reflect: true
|
|
15481
14787
|
})], M3eIconButtonElement.prototype, "size", void 0);
|
|
15482
|
-
__decorate([
|
|
14788
|
+
__decorate([property({
|
|
15483
14789
|
reflect: true
|
|
15484
14790
|
})], M3eIconButtonElement.prototype, "width", void 0);
|
|
15485
|
-
__decorate([
|
|
14791
|
+
__decorate([property({
|
|
15486
14792
|
type: Boolean,
|
|
15487
14793
|
reflect: true
|
|
15488
14794
|
})], M3eIconButtonElement.prototype, "toggle", void 0);
|
|
15489
|
-
__decorate([
|
|
14795
|
+
__decorate([property({
|
|
15490
14796
|
type: Boolean,
|
|
15491
14797
|
reflect: true
|
|
15492
14798
|
})], M3eIconButtonElement.prototype, "selected", void 0);
|
|
15493
14799
|
__decorate([debounce$1(40)], M3eIconButtonElement.prototype, "_handleResize", null);
|
|
15494
14800
|
M3eIconButtonElement = __decorate([customElement$1("m3e-icon-button")], M3eIconButtonElement);
|
|
15495
14801
|
|
|
15496
|
-
var _M3eListItemElement_instances, _M3eListItemElement_resizeController, _M3eListItemElement_leadingContentType, _M3eListItemElement_trailingContentType, _M3eListItemElement_updateMultiline, _M3eListItemElement_getSlotContentType;
|
|
14802
|
+
var _M3eListItemElement_instances, _M3eListItemElement_resizeController, _M3eListItemElement_leadingContentType, _M3eListItemElement_trailingContentType, _M3eListItemElement_initialize, _M3eListItemElement_updateMultiline, _M3eListItemElement_getSlotContentType;
|
|
15497
14803
|
/**
|
|
15498
14804
|
* An item in a list.
|
|
15499
14805
|
*
|
|
@@ -15577,7 +14883,7 @@ var _M3eListItemElement_instances, _M3eListItemElement_resizeController, _M3eLis
|
|
|
15577
14883
|
* @cssprop --m3e-list-item-two-line-height - Minimum height of a two line list item.
|
|
15578
14884
|
* @cssprop --m3e-list-item-three-line-height - Minimum height of a three line list item.
|
|
15579
14885
|
*/
|
|
15580
|
-
let M3eListItemElement = class M3eListItemElement extends AttachInternals$1(Role$1(LitElement, "listitem")) {
|
|
14886
|
+
let M3eListItemElement = class M3eListItemElement extends ReconnectedCallback$1(AttachInternals$1(Role$1(LitElement, "listitem"))) {
|
|
15581
14887
|
constructor() {
|
|
15582
14888
|
super(...arguments);
|
|
15583
14889
|
_M3eListItemElement_instances.add(this);
|
|
@@ -15600,12 +14906,14 @@ let M3eListItemElement = class M3eListItemElement extends AttachInternals$1(Role
|
|
|
15600
14906
|
return __classPrivateFieldGet(this, _M3eListItemElement_trailingContentType, "f");
|
|
15601
14907
|
}
|
|
15602
14908
|
/** @inheritdoc */
|
|
14909
|
+
reconnectedCallback() {
|
|
14910
|
+
super.reconnectedCallback();
|
|
14911
|
+
__classPrivateFieldGet(this, _M3eListItemElement_instances, "m", _M3eListItemElement_initialize).call(this);
|
|
14912
|
+
}
|
|
14913
|
+
/** @inheritdoc */
|
|
15603
14914
|
firstUpdated(_changedProperties) {
|
|
15604
14915
|
super.firstUpdated(_changedProperties);
|
|
15605
|
-
|
|
15606
|
-
if (content) {
|
|
15607
|
-
__classPrivateFieldGet(this, _M3eListItemElement_resizeController, "f").observe(content);
|
|
15608
|
-
}
|
|
14916
|
+
__classPrivateFieldGet(this, _M3eListItemElement_instances, "m", _M3eListItemElement_initialize).call(this);
|
|
15609
14917
|
}
|
|
15610
14918
|
/** @inheritdoc */
|
|
15611
14919
|
render() {
|
|
@@ -15638,6 +14946,12 @@ _M3eListItemElement_resizeController = new WeakMap();
|
|
|
15638
14946
|
_M3eListItemElement_leadingContentType = new WeakMap();
|
|
15639
14947
|
_M3eListItemElement_trailingContentType = new WeakMap();
|
|
15640
14948
|
_M3eListItemElement_instances = new WeakSet();
|
|
14949
|
+
_M3eListItemElement_initialize = function _M3eListItemElement_initialize() {
|
|
14950
|
+
const content = this.shadowRoot?.querySelector(".content");
|
|
14951
|
+
if (content) {
|
|
14952
|
+
__classPrivateFieldGet(this, _M3eListItemElement_resizeController, "f").observe(content);
|
|
14953
|
+
}
|
|
14954
|
+
};
|
|
15641
14955
|
_M3eListItemElement_updateMultiline = function _M3eListItemElement_updateMultiline() {
|
|
15642
14956
|
const content = this.shadowRoot?.querySelector(".content") ?? null;
|
|
15643
14957
|
const lines = content === null ? 0 : computeLineCount$1(content);
|
|
@@ -15800,7 +15114,7 @@ _M3eListElement_handleSlotChange = function _M3eListElement_handleSlotChange(e)
|
|
|
15800
15114
|
};
|
|
15801
15115
|
/** The styles of the element. */
|
|
15802
15116
|
M3eListElement.styles = css`:host { display: flex; flex-direction: column; overflow-y: auto; box-sizing: border-box; padding-block: var(--m3e-list-block-padding, 0px); --m3e-divider-inset-start-size: var(--m3e-list-divider-inset-start-size, 1rem); --m3e-divider-inset-end-size: var(--m3e-list-divider-inset-end-size, 1.5rem); } :host([variant="standard"]) { --_list-item-leading-video-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-video-outset: var(--m3e-list-item-trailing-space, 1rem); --_expandable-list-item-expanded-toggle-icon-container-color: transparent; } :host([variant="segmented"]) { row-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); } :host([variant="segmented"]) { --m3e-list-item-container-color: var(--m3e-segmented-list-item-container-color, ${DesignToken$1.color.surface}); --m3e-list-item-disabled-container-color: var( --m3e-segmented-list-item-disabled-container-color, ${DesignToken$1.color.surface} ); --m3e-list-item-container-shape: var( --m3e-segmented-list-item-container-shape, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-list-item-hover-container-shape: var( --m3e-segmented-list-item-hover-container-shape, ${DesignToken$1.shape.corner.medium} ); --m3e-list-item-focus-container-shape: var( --m3e-segmented-list-item-focus-container-shape, ${DesignToken$1.shape.corner.large} ); --m3e-list-item-selected-container-shape: var( --m3e-segmented-list-item-selected-container-shape, ${DesignToken$1.shape.corner.large} ); --m3e-list-item-video-shape: var(--m3e-segmented-list-item-video-shape, ${DesignToken$1.shape.corner.small}); --m3e-list-item-image-shape: var(--m3e-segmented-list-item-image-shape, ${DesignToken$1.shape.corner.small}); --m3e-list-item-between-space: var(--m3e-segmented-list-item-spacing, 0.75rem); --_expandable-list-item-items-segment-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); --_expandable-list-item-expanded-top-shape: var( --m3e-segmented-list-container-shape, ${DesignToken$1.shape.corner.large} ); } :host([variant="segmented"]) ::slotted(:state(-first)), :host([variant="segmented"]) ::slotted(:state(-has-previous-open):not([open])) { --_list-item-top-container-shape: var(--m3e-segmented-list-container-shape, ${DesignToken$1.shape.corner.large}); } :host([variant="segmented"]) ::slotted(:state(-has-next-open):not([open])), :host([variant="segmented"]) ::slotted(:state(-last)) { --_list-item-bottom-container-shape: var(--m3e-segmented-list-container-shape, ${DesignToken$1.shape.corner.large}); } :host([variant="segmented"]) ::slotted(m3e-divider) { display: none; } :host(:state(-has-leading-video)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-video-width, 6.25rem); } :host([variant="standard"]:state(-has-leading-video)) { --_list-item-leading-reserved-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-reserved-outset: var(--m3e-list-item-trailing-space, 1rem); } :host(:state(-has-leading-image)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-image-width, 3.5rem); } :host(:state(-has-leading-avatar)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-avatar-size, 2.5rem); } :host(:state(-has-leading-icon)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-icon-size, 1.5rem); }`;
|
|
15803
|
-
__decorate([
|
|
15117
|
+
__decorate([property({
|
|
15804
15118
|
reflect: true
|
|
15805
15119
|
})], M3eListElement.prototype, "variant", void 0);
|
|
15806
15120
|
M3eListElement = __decorate([customElement$1("m3e-list")], M3eListElement);
|
|
@@ -16021,15 +15335,15 @@ M3eExpandableListItemElement.styles = css`:host { display: block; } .header { wi
|
|
|
16021
15335
|
${DesignToken$1.motion.easing.standard}`)}; --_list-item-button-trailing-align-self: stretch; } .toggle-container { display: flex; align-items: center; justify-content: center; align-self: stretch; width: var(--m3e-expandable-list-item-toggle-icon-container-width, 2rem); border-radius: var(--m3e-expandable-list-item-toggle-icon-container-shape, ${DesignToken$1.shape.corner.full}); transition: ${unsafeCSS(`background-color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: var(--m3e-expandable-list-item-toggle-icon-size, 1.5rem); transition: ${unsafeCSS(`transform ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } :host([open]) .toggle-container { background-color: var( --_expandable-list-item-expanded-toggle-icon-container-color, var(--m3e-expandable-list-item-expanded-toggle-icon-container-color, ${DesignToken$1.color.surfaceContainer}) ); } :host([open]) .toggle { transform: rotate(180deg); } :host([open]) .header { --_list-item-top-container-shape: var(--_expandable-list-item-expanded-top-shape, initial); --_list-item-bottom-container-shape: initial; margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } :host([open]) .header.opening { margin-bottom: calc( var(--_expandable-list-item-items-segment-gap, 0px) * var(--m3e-expandable-list-item-bounce-factor, 4) ); } :host([open]) .header, :host([open]) .items { --_list-item-container-color: var( --m3e-expandable-list-item-expanded-container-color, var(--m3e-list-item-container-color, transparent) ); } .base, ::slotted([slot="items"]) { display: flex; flex-direction: column; box-sizing: border-box; } ::slotted([slot="items"]) { flex: none; --_list-item-top-container-shape: initial; --_list-item-bottom-container-shape: initial; row-gap: var(--_expandable-list-item-items-segment-gap, 0px); } .items { --m3e-collapsible-animation-duration: var( --m3e-expandable-list-item-expand-duration, ${DesignToken$1.motion.duration.medium1} ); } @media (forced-colors: active) { .header { transition: none; } :host([open]) .header.opening { margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } } @media (prefers-reduced-motion) { .header, .toggle-container, .toggle { transition: none; } }`;
|
|
16022
15336
|
/** @private */
|
|
16023
15337
|
M3eExpandableListItemElement.__nextId = 0;
|
|
16024
|
-
__decorate([
|
|
15338
|
+
__decorate([property({
|
|
16025
15339
|
type: Boolean,
|
|
16026
15340
|
reflect: true
|
|
16027
15341
|
})], M3eExpandableListItemElement.prototype, "disabled", void 0);
|
|
16028
|
-
__decorate([
|
|
15342
|
+
__decorate([property({
|
|
16029
15343
|
type: Boolean,
|
|
16030
15344
|
reflect: true
|
|
16031
15345
|
})], M3eExpandableListItemElement.prototype, "open", void 0);
|
|
16032
|
-
__decorate([
|
|
15346
|
+
__decorate([query(".header")], M3eExpandableListItemElement.prototype, "button", void 0);
|
|
16033
15347
|
M3eExpandableListItemElement = M3eExpandableListItemElement_1 = __decorate([customElement$1("m3e-expandable-list-item")], M3eExpandableListItemElement);
|
|
16034
15348
|
|
|
16035
15349
|
var _M3eActionListElement_keyDownHandler, _a$8;
|
|
@@ -16077,6 +15391,7 @@ let M3eActionListElement = class M3eActionListElement extends M3eListElement {
|
|
|
16077
15391
|
const ancestor = expandable.closest("m3e-expandable-list-item,m3e-action-list");
|
|
16078
15392
|
if (ancestor instanceof M3eExpandableListItemElement) {
|
|
16079
15393
|
expandable = ancestor;
|
|
15394
|
+
continue;
|
|
16080
15395
|
}
|
|
16081
15396
|
break;
|
|
16082
15397
|
}
|
|
@@ -16222,7 +15537,7 @@ let M3eListActionElement = class M3eListActionElement extends LinkButton$1(M3eLi
|
|
|
16222
15537
|
}
|
|
16223
15538
|
/** @inheritdoc */
|
|
16224
15539
|
render() {
|
|
16225
|
-
return html`<m3e-list-item-button class="button" ?disabled="${this.disabled}" href="${
|
|
15540
|
+
return html`<m3e-list-item-button class="button" ?disabled="${this.disabled}" href="${ifDefined(this.href || undefined)}" target="${ifDefined(this.target || undefined)}" download="${ifDefined(this.download || undefined)}" rel="${ifDefined(this.rel || undefined)}" @click="${__classPrivateFieldGet(this, _M3eListActionElement_instances, "m", _M3eListActionElement_handleClick)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><slot name="trailing" slot="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot></m3e-list-item-button>`;
|
|
16226
15541
|
}
|
|
16227
15542
|
};
|
|
16228
15543
|
_M3eListActionElement_instances = new WeakSet();
|
|
@@ -16233,8 +15548,8 @@ _M3eListActionElement_handleClick = function _M3eListActionElement_handleClick(e
|
|
|
16233
15548
|
};
|
|
16234
15549
|
/** The styles of the element. */
|
|
16235
15550
|
M3eListActionElement.styles = css`:host { display: block; } .button { width: 100%; }`;
|
|
16236
|
-
__decorate([
|
|
16237
|
-
__decorate([
|
|
15551
|
+
__decorate([query(".button")], M3eListActionElement.prototype, "button", void 0);
|
|
15552
|
+
__decorate([property({
|
|
16238
15553
|
type: Boolean,
|
|
16239
15554
|
reflect: true
|
|
16240
15555
|
})], M3eListActionElement.prototype, "disabled", void 0);
|
|
@@ -16269,9 +15584,9 @@ let M3eListItemButtonElement = class M3eListItemButtonElement extends KeyboardCl
|
|
|
16269
15584
|
};
|
|
16270
15585
|
/** The styles of the element. */
|
|
16271
15586
|
M3eListItemButtonElement.styles = [M3eListItemElement.styles, css`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } :host(:not(:disabled)) { cursor: pointer; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } slot[name="trailing"] { align-self: var(--_list-item-button-trailing-align-self, auto); }`];
|
|
16272
|
-
__decorate([
|
|
16273
|
-
__decorate([
|
|
16274
|
-
__decorate([
|
|
15587
|
+
__decorate([query(".focus-ring")], M3eListItemButtonElement.prototype, "_focusRing", void 0);
|
|
15588
|
+
__decorate([query(".state-layer")], M3eListItemButtonElement.prototype, "_stateLayer", void 0);
|
|
15589
|
+
__decorate([query(".ripple")], M3eListItemButtonElement.prototype, "_ripple", void 0);
|
|
16275
15590
|
M3eListItemButtonElement = __decorate([customElement$1("m3e-list-item-button")], M3eListItemButtonElement);
|
|
16276
15591
|
|
|
16277
15592
|
var _M3eListOptionElement_instances, _M3eListOptionElement_value, _M3eListOptionElement_textContent, _M3eListOptionElement_clickHandler, _M3eListOptionElement_handleSlotChange, _M3eListOptionElement_handleClick;
|
|
@@ -16457,10 +15772,10 @@ _M3eListOptionElement_handleClick = function _M3eListOptionElement_handleClick(e
|
|
|
16457
15772
|
};
|
|
16458
15773
|
/** The styles of the element. */
|
|
16459
15774
|
M3eListOptionElement.styles = [M3eListItemElement.styles, css`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } .indicator { min-width: 1.5rem; min-height: 1.5rem; display: flex; align-items: center; justify-content: center; } :host(:not(:disabled)) { cursor: pointer; } :host(:state(-three-line)) .indicator { align-self: flex-start; margin-top: var(--m3e-list-item-three-line-top-offset, 0.25rem); } :host([selected]) .base, :host([selected]) .state-layer, :host([selected]) .ripple, :host([selected]) .focus-ring { border-radius: var(--m3e-list-item-selected-container-shape, ${DesignToken$1.shape.corner.large}); } :host([selected]:not(:disabled)) .base { color: var(--m3e-list-item-selected-label-text-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-selected-overline-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-selected-supporting-text-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="leading"]) { color: var(--m3e-list-item-selected-leading-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: var(--m3e-list-item-selected-trailing-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) .base { background-color: var(--m3e-list-item-selected-container-color, ${DesignToken$1.color.secondaryContainer}); } :host([selected]:disabled) .base { background-color: color-mix( in srgb, var(--m3e-list-item-selected-disabled-container-color, ${DesignToken$1.color.onSurface}) var(--m3e-list-item-selected-disabled-container-opacity, 10%), transparent ); } :host([selected]:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var( --m3e-list-item-selected-hover-state-layer-color, ${DesignToken$1.color.onSurface} ); --m3e-state-layer-hover-opacity: var( --m3e-list-item-selected-hover-state-layer-opacity, ${DesignToken$1.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var( --m3e-list-item-selected-focus-state-layer-color, ${DesignToken$1.color.onSurface} ); --m3e-state-layer-focus-opacity: var( --m3e-list-item-selected-focus-state-layer-opacity, ${DesignToken$1.state.focusStateLayerOpacity} ); } :host([selected]:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-selected-pressed-state-layer-color, ${DesignToken$1.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-selected-pressed-state-layer-opacity, ${DesignToken$1.state.pressedStateLayerOpacity} ); } :host(:state(-hide-selection)) .indicator, :host(:not(:state(-hide-selection))) ::slotted([slot="trailing"]) { display: none; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .content, :host([selected]:not(:disabled)) ::slotted([slot="overline"]), :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]), :host([selected]:not(:disabled)) ::slotted([slot="leading"]), :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: HighlightText; forced-color-adjust: none; } :host([selected]:not(:disabled)) .base { background-color: Highlight; } }`];
|
|
16460
|
-
__decorate([
|
|
16461
|
-
__decorate([
|
|
16462
|
-
__decorate([
|
|
16463
|
-
__decorate([
|
|
15775
|
+
__decorate([query(".focus-ring")], M3eListOptionElement.prototype, "_focusRing", void 0);
|
|
15776
|
+
__decorate([query(".state-layer")], M3eListOptionElement.prototype, "_stateLayer", void 0);
|
|
15777
|
+
__decorate([query(".ripple")], M3eListOptionElement.prototype, "_ripple", void 0);
|
|
15778
|
+
__decorate([property()], M3eListOptionElement.prototype, "value", null);
|
|
16464
15779
|
M3eListOptionElement = __decorate([customElement$1("m3e-list-option")], M3eListOptionElement);
|
|
16465
15780
|
|
|
16466
15781
|
var _M3eSelectionListElement_instances, _M3eSelectionListElement_keyDownHandler, _M3eSelectionListElement_changeHandler, _M3eSelectionListElement_handleChange, _a$7;
|
|
@@ -16601,10 +15916,10 @@ _M3eSelectionListElement_handleChange = function _M3eSelectionListElement_handle
|
|
|
16601
15916
|
}));
|
|
16602
15917
|
}
|
|
16603
15918
|
};
|
|
16604
|
-
__decorate([
|
|
15919
|
+
__decorate([property({
|
|
16605
15920
|
type: Boolean
|
|
16606
15921
|
})], M3eSelectionListElement.prototype, "multi", void 0);
|
|
16607
|
-
__decorate([
|
|
15922
|
+
__decorate([property({
|
|
16608
15923
|
attribute: "hide-selection-indicator",
|
|
16609
15924
|
type: Boolean
|
|
16610
15925
|
})], M3eSelectionListElement.prototype, "hideSelectionIndicator", void 0);
|
|
@@ -16672,7 +15987,7 @@ const ShapePolygon$1 = _ShapePolygon$1;
|
|
|
16672
15987
|
* @cssprop --m3e-loading-indicator-container-shape - Container shape.
|
|
16673
15988
|
* @cssprop --m3e-loading-indicator-container-size - Container size.
|
|
16674
15989
|
*/
|
|
16675
|
-
let M3eLoadingIndicatorElement = class M3eLoadingIndicatorElement extends Role$1(LitElement, "progressbar") {
|
|
15990
|
+
let M3eLoadingIndicatorElement = class M3eLoadingIndicatorElement extends ReconnectedCallback$1(Role$1(LitElement, "progressbar")) {
|
|
16676
15991
|
constructor() {
|
|
16677
15992
|
super(...arguments);
|
|
16678
15993
|
/**
|
|
@@ -16686,7 +16001,6 @@ let M3eLoadingIndicatorElement = class M3eLoadingIndicatorElement extends Role$1
|
|
|
16686
16001
|
super.connectedCallback();
|
|
16687
16002
|
this.ariaValueMin = this.ariaValueMin || "0";
|
|
16688
16003
|
this.ariaValueMax = this.ariaValueMax || "100";
|
|
16689
|
-
this._activeIndicator?.classList.toggle("animate", true);
|
|
16690
16004
|
}
|
|
16691
16005
|
/** @inheritdoc */
|
|
16692
16006
|
disconnectedCallback() {
|
|
@@ -16694,6 +16008,11 @@ let M3eLoadingIndicatorElement = class M3eLoadingIndicatorElement extends Role$1
|
|
|
16694
16008
|
this._activeIndicator?.classList.toggle("animate", false);
|
|
16695
16009
|
}
|
|
16696
16010
|
/** @inheritdoc */
|
|
16011
|
+
reconnectedCallback() {
|
|
16012
|
+
super.reconnectedCallback();
|
|
16013
|
+
this._activeIndicator?.classList.toggle("animate", true);
|
|
16014
|
+
}
|
|
16015
|
+
/** @inheritdoc */
|
|
16697
16016
|
firstUpdated(_changedProperties) {
|
|
16698
16017
|
super.firstUpdated(_changedProperties);
|
|
16699
16018
|
this._activeIndicator?.classList.toggle("animate", true);
|
|
@@ -16705,8 +16024,8 @@ let M3eLoadingIndicatorElement = class M3eLoadingIndicatorElement extends Role$1
|
|
|
16705
16024
|
};
|
|
16706
16025
|
/** The styles of the element. */
|
|
16707
16026
|
M3eLoadingIndicatorElement.styles = css`:host { display: inline-block; aspect-ratio: 1 / 1; contain: strict; vertical-align: middle; content-visibility: auto; } :host([variant="uncontained"]) { width: ${LoadingIndicatorToken.activeIndicatorSize}; } :host([variant="contained"]) { width: ${LoadingIndicatorToken.containerSize}; } :host([variant="uncontained"]) .active-indicator { background-color: ${LoadingIndicatorToken.activeIndicatorColor}; } :host([variant="contained"]) .active-indicator { background-color: ${LoadingIndicatorToken.containedActiveIndicatorColor}; } :host([variant="contained"]) .container { background-color: ${LoadingIndicatorToken.containedContainerColor}; } .container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: ${LoadingIndicatorToken.containerShape}; } .active-indicator { margin: auto; aspect-ratio: 1 / 1; width: calc(${LoadingIndicatorToken.activeIndicatorSize} * 0.842); transform-origin: center; transition: clip-path ${DesignToken$1.motion.spring.slowEffects}; will-change: transform, clip-path; --_polygon-soft-burst: polygon(${ShapePolygon$1["soft-burst"]}); --_polygon-7-sided-cookie: polygon(${ShapePolygon$1["7-sided-cookie"]}); --_polygon-pentagon: polygon(${ShapePolygon$1["pentagon"]}); --_polygon-pill: polygon(${ShapePolygon$1["pill"]}); --_polygon-very-sunny: polygon(${ShapePolygon$1["very-sunny"]}); --_polygon-4-sided-cookie: polygon(${ShapePolygon$1["4-sided-cookie"]}); --_polygon-oval: polygon(${ShapePolygon$1["oval"]}); } .active-indicator.animate { animation: rotate 4998ms infinite; } @keyframes rotate { 0% { clip-path: var(--_polygon-soft-burst); transform: rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 14% { clip-path: var(--_polygon-7-sided-cookie); transform: rotate(154deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 29% { clip-path: var(--_polygon-pentagon); transform: rotate(309deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 43% { clip-path: var(--_polygon-pill); transform: rotate(463deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 57% { clip-path: var(--_polygon-very-sunny); transform: rotate(617deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 71% { clip-path: var(--_polygon-4-sided-cookie); transform: rotate(771deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 83% { clip-path: var(--_polygon-oval); transform: rotate(926deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 100% { clip-path: var(--_polygon-soft-burst); transform: rotate(1080deg); } } @media (forced-colors: active) { .active-indicator { background-color: CanvasText !important; } }`;
|
|
16708
|
-
__decorate([
|
|
16709
|
-
__decorate([
|
|
16027
|
+
__decorate([query(".active-indicator")], M3eLoadingIndicatorElement.prototype, "_activeIndicator", void 0);
|
|
16028
|
+
__decorate([property({
|
|
16710
16029
|
reflect: true
|
|
16711
16030
|
})], M3eLoadingIndicatorElement.prototype, "variant", void 0);
|
|
16712
16031
|
M3eLoadingIndicatorElement = __decorate([customElement$1("m3e-loading-indicator")], M3eLoadingIndicatorElement);
|
|
@@ -16739,9 +16058,9 @@ class MenuItemElementBase extends KeyboardClick$1(Focusable$1(AttachInternals$1(
|
|
|
16739
16058
|
}
|
|
16740
16059
|
/** The styles of the element. */
|
|
16741
16060
|
MenuItemElementBase.styles = css`:host { display: inline-block; outline: none; user-select: none; flex: none; height: var(--m3e-menu-item-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) .base { color: var(--m3e-menu-item-color, ${DesignToken$1.color.onSurface}); } :host(:not([aria-expanded="true"])) .base { --m3e-state-layer-hover-color: var(--m3e-menu-item-container-hover-color, ${DesignToken$1.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-menu-item-container-focus-color, ${DesignToken$1.color.onSurface}); --m3e-ripple-color: var(--m3e-menu-item-ripple-color, ${DesignToken$1.color.onSurface}); } :host(:not(:disabled)[aria-expanded="true"]) .base { background-color: color-mix( in srgb, var(--m3e-menu-item-active-state-layer-color, ${DesignToken$1.color.onSurface}) var(--m3e-menu-active-state-layer-opacity, 8%), transparent ); } :host([aria-expanded="true"]) .state-layer { display: none; } :host(:not(:disabled)[checked]) .base { color: var(--m3e-menu-item-selected-color, ${DesignToken$1.color.onTertiaryContainer}); background-color: var(--m3e-menu-item-selected-container-color, ${DesignToken$1.color.tertiaryContainer}); } :host([checked]) .base { --m3e-state-layer-hover-color: var( --m3e-menu-item-selected-container-hover-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-menu-item-selected-container-focus-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-menu-item-selected-ripple-color, ${DesignToken$1.color.onTertiaryContainer}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-menu-item-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-menu-item-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-menu-item-shape, ${DesignToken$1.shape.corner.extraSmall}); transition: ${unsafeCSS(`border-radius ${DesignToken$1.motion.spring.fastEffects}`)}; } :host([checked]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-menu-item-selected-shape, ${DesignToken$1.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-selected-shape, ${DesignToken$1.shape.corner.medium}); } :host([checked]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-menu-item-selected-shape, ${DesignToken$1.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-selected-shape, ${DesignToken$1.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-menu-item-first-child-shape, ${DesignToken$1.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-first-child-shape, ${DesignToken$1.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-menu-item-last-child-shape, ${DesignToken$1.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-last-child-shape, ${DesignToken$1.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; column-gap: var(--m3e-menu-item-icon-label-space, 0.5rem); padding-inline-start: var(--m3e-menu-item-padding-start, 0.75rem); padding-inline-end: var(--m3e-menu-item-padding-end, 0.75rem); font-size: var(--m3e-menu-item-label-text-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-menu-item-label-text-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-menu-item-label-text-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight} ); letter-spacing: var(--m3e-menu-item-label-text-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-menu-item-focus-ring-shape, inherit); } .content { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]), .trailing-icon { flex: none; width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host(:disabled) .base { color: GrayText; } }`;
|
|
16742
|
-
__decorate([
|
|
16743
|
-
__decorate([
|
|
16744
|
-
__decorate([
|
|
16061
|
+
__decorate([query(".focus-ring")], MenuItemElementBase.prototype, "_focusRing", void 0);
|
|
16062
|
+
__decorate([query(".state-layer")], MenuItemElementBase.prototype, "_stateLayer", void 0);
|
|
16063
|
+
__decorate([query(".ripple")], MenuItemElementBase.prototype, "_ripple", void 0);
|
|
16745
16064
|
|
|
16746
16065
|
/**
|
|
16747
16066
|
* An element, nested within a clickable element, used to open a menu.
|
|
@@ -17052,7 +16371,7 @@ _M3eMenuItemElement_handleMouseEnter = function _M3eMenuItemElement_handleMouseE
|
|
|
17052
16371
|
}
|
|
17053
16372
|
});
|
|
17054
16373
|
};
|
|
17055
|
-
__decorate([
|
|
16374
|
+
__decorate([state()], M3eMenuItemElement.prototype, "_hasSubmenu", void 0);
|
|
17056
16375
|
M3eMenuItemElement = M3eMenuItemElement_1 = __decorate([customElement$1("m3e-menu-item")], M3eMenuItemElement);
|
|
17057
16376
|
|
|
17058
16377
|
var _M3eMenuElement_instances, _M3eMenuElement_trigger, _M3eMenuElement_anchorCleanup, _M3eMenuElement_listManager, _M3eMenuElement_keyDownHandler, _M3eMenuElement_mouseEnterHandler, _M3eMenuElement_documentClickHandler, _M3eMenuElement_scrollController, _M3eMenuElement_toggleHandler, _M3eMenuElement_handleSlotChange, _M3eMenuElement_handleKeyDown, _M3eMenuElement_handleMouseEnter, _M3eMenuElement_handleDocumentClick, _M3eMenuElement_getAbsolutePosition, _M3eMenuElement_deactivate;
|
|
@@ -17134,7 +16453,7 @@ var M3eMenuElement_1;
|
|
|
17134
16453
|
* @cssprop --m3e-menu-divider-spacing - Vertical spacing around slotted `m3e-divider` elements.
|
|
17135
16454
|
* @cssprop --m3e-menu-gap - Gap between content in the menu.
|
|
17136
16455
|
*/
|
|
17137
|
-
let M3eMenuElement = M3eMenuElement_1 = class M3eMenuElement extends AttachInternals$1(Role$1(LitElement, "menu")) {
|
|
16456
|
+
let M3eMenuElement = M3eMenuElement_1 = class M3eMenuElement extends SuppressInitialAnimation$1(AttachInternals$1(Role$1(LitElement, "menu"))) {
|
|
17138
16457
|
constructor() {
|
|
17139
16458
|
super(...arguments);
|
|
17140
16459
|
_M3eMenuElement_instances.add(this);
|
|
@@ -17196,7 +16515,6 @@ let M3eMenuElement = M3eMenuElement_1 = class M3eMenuElement extends AttachInter
|
|
|
17196
16515
|
connectedCallback() {
|
|
17197
16516
|
super.connectedCallback();
|
|
17198
16517
|
this.tabIndex = -1;
|
|
17199
|
-
addCustomState$1(this, "-no-animate");
|
|
17200
16518
|
this.setAttribute("popover", "manual");
|
|
17201
16519
|
this.addEventListener("keydown", __classPrivateFieldGet(this, _M3eMenuElement_keyDownHandler, "f"));
|
|
17202
16520
|
this.addEventListener("mouseenter", __classPrivateFieldGet(this, _M3eMenuElement_mouseEnterHandler, "f"));
|
|
@@ -17313,11 +16631,6 @@ let M3eMenuElement = M3eMenuElement_1 = class M3eMenuElement extends AttachInter
|
|
|
17313
16631
|
render() {
|
|
17314
16632
|
return html`<div class="base"><slot @slotchange="${__classPrivateFieldGet(this, _M3eMenuElement_instances, "m", _M3eMenuElement_handleSlotChange)}"></slot></div>`;
|
|
17315
16633
|
}
|
|
17316
|
-
/** @inheritdoc */
|
|
17317
|
-
firstUpdated(_changedProperties) {
|
|
17318
|
-
super.firstUpdated(_changedProperties);
|
|
17319
|
-
requestAnimationFrame(() => deleteCustomState$1(this, "-no-animate"));
|
|
17320
|
-
}
|
|
17321
16634
|
/** @internal */
|
|
17322
16635
|
_activate() {
|
|
17323
16636
|
if (this !== M3eMenuElement_1.__activeMenu) {
|
|
@@ -17422,16 +16735,16 @@ M3eMenuElement.styles = css`:host { position: absolute; padding: unset; margin:
|
|
|
17422
16735
|
overlay ${DesignToken$1.motion.duration.short2} ${DesignToken$1.motion.easing.standard} allow-discrete,
|
|
17423
16736
|
display ${DesignToken$1.motion.duration.short2} ${DesignToken$1.motion.easing.standard} allow-discrete,
|
|
17424
16737
|
border-radius ${DesignToken$1.motion.spring.fastEffects}`)}; } :host(:not([submenu])) { transform: scaleY(0.8); } :host(:not([submenu]):popover-open) { transform: scaleY(1); } :host::backdrop { background-color: transparent; } :host(:popover-open) { display: block; opacity: 1; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } :host(:state(-shift-down)) { margin-top: calc(0px - var(--m3e-menu-container-padding-block, 0.25rem)); } :host(:state(-shift-up)) { margin-top: var(--m3e-menu-container-padding-block, 0.25rem); } :host([variant="vibrant"]) { background-color: var(--m3e-vibrant-menu-container-color, ${DesignToken$1.color.tertiaryContainer}); --m3e-menu-item-color: var(--m3e-vibrant-menu-item-color, ${DesignToken$1.color.onTertiaryContainer}); --m3e-menu-item-container-hover-color: var( --m3e-vibrant-menu-item-container-hover-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-menu-item-container-focus-color: var( --m3e-vibrant-menu-item-container-focus-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-menu-item-ripple-color: var(--m3e-vibrant-menu-item-ripple-color, ${DesignToken$1.color.onTertiaryContainer}); --m3e-menu-item-active-state-layer-color: var( --m3e-vibrant-menu-item-active-state-layer-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-menu-item-selected-color: var(--m3e-vibrant-menu-item-selected-color, ${DesignToken$1.color.onTertiary}); --m3e-menu-item-selected-container-color: var( --m3e-vibrant-menu-item-selected-container-color, ${DesignToken$1.color.tertiary} ); --m3e-menu-item-selected-container-hover-color: var( --m3e-vibrant-menu-item-selected-container-hover-color, ${DesignToken$1.color.onTertiary} ); --m3e-menu-item-container-selected-focus-color: var( --m3e-vibrant-menu-item-selected-container-focus-color, ${DesignToken$1.color.onTertiary} ); --m3e-menu-item-selected-ripple-color: var( --m3e-vibrant-menu-item-selected-ripple-color, ${DesignToken$1.color.onTertiary} ); --m3e-menu-item-disabled-color: var( --m3e-vibrant-menu-item-disabled-color, ${DesignToken$1.color.onTertiaryContainer} ); } :host([variant="standard"]) { background-color: var(--m3e-menu-container-color, ${DesignToken$1.color.surfaceContainer}); } @starting-style { :host(:popover-open) { opacity: 0; } :host(:not([submenu]):popover-open) { transform: scaleY(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; outline: 1px solid MenuText; } }`;
|
|
17425
|
-
__decorate([
|
|
16738
|
+
__decorate([property({
|
|
17426
16739
|
attribute: "position-x"
|
|
17427
16740
|
})], M3eMenuElement.prototype, "positionX", void 0);
|
|
17428
|
-
__decorate([
|
|
16741
|
+
__decorate([property({
|
|
17429
16742
|
attribute: "position-y"
|
|
17430
16743
|
})], M3eMenuElement.prototype, "positionY", void 0);
|
|
17431
|
-
__decorate([
|
|
16744
|
+
__decorate([property({
|
|
17432
16745
|
reflect: true
|
|
17433
16746
|
})], M3eMenuElement.prototype, "variant", void 0);
|
|
17434
|
-
__decorate([
|
|
16747
|
+
__decorate([property({
|
|
17435
16748
|
type: Boolean,
|
|
17436
16749
|
reflect: true
|
|
17437
16750
|
})], M3eMenuElement.prototype, "submenu", void 0);
|
|
@@ -17841,8 +17154,8 @@ let M3eNavBarElement = class M3eNavBarElement extends AttachInternals$1(Role$1(L
|
|
|
17841
17154
|
__classPrivateFieldGet(this, _M3eNavBarElement_breakpointUnobserve, "f")?.call(this);
|
|
17842
17155
|
}
|
|
17843
17156
|
/** @inheritdoc */
|
|
17844
|
-
|
|
17845
|
-
super.
|
|
17157
|
+
willUpdate(changedProperties) {
|
|
17158
|
+
super.willUpdate(changedProperties);
|
|
17846
17159
|
if (changedProperties.has("mode")) {
|
|
17847
17160
|
__classPrivateFieldGet(this, _M3eNavBarElement_breakpointUnobserve, "f")?.call(this);
|
|
17848
17161
|
if (this.mode === "auto") {
|
|
@@ -17889,8 +17202,8 @@ _M3eNavBarElement_handleChange = function _M3eNavBarElement_handleChange(e) {
|
|
|
17889
17202
|
};
|
|
17890
17203
|
/** The styles of the element. */
|
|
17891
17204
|
M3eNavBarElement.styles = css`:host { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: ${DesignToken$1.scrollbar.thinWidth}; scrollbar-color: ${DesignToken$1.scrollbar.color}; min-height: var(--m3e-nav-bar-height, 4rem); } .base { display: flex; align-items: stretch; justify-content: center; box-sizing: border-box; min-height: inherit; height: inherit; width: 100%; background-color: var(--m3e-nav-bar-container-color, ${DesignToken$1.color.surfaceContainer}); --_nav-item-min-width: var(--m3e-nav-bar-vertical-item-width, 7rem); }`;
|
|
17892
|
-
__decorate([
|
|
17893
|
-
__decorate([
|
|
17205
|
+
__decorate([state()], M3eNavBarElement.prototype, "_mode", void 0);
|
|
17206
|
+
__decorate([property({
|
|
17894
17207
|
reflect: true
|
|
17895
17208
|
})], M3eNavBarElement.prototype, "mode", void 0);
|
|
17896
17209
|
M3eNavBarElement = __decorate([customElement$1("m3e-nav-bar")], M3eNavBarElement);
|
|
@@ -18044,10 +17357,10 @@ _M3eNavItemElement_handleClick = function _M3eNavItemElement_handleClick(e) {
|
|
|
18044
17357
|
};
|
|
18045
17358
|
/** The styles of the element. */
|
|
18046
17359
|
M3eNavItemElement.styles = css`:host { display: inline-block; vertical-align: middle; position: relative; outline: none; user-select: none; flex: 1; font-size: var(--m3e-nav-item-label-text-font-size, ${DesignToken$1.typescale.standard.label.medium.fontSize}); font-weight: var( --m3e-nav-item-label-text-font-weight, ${DesignToken$1.typescale.standard.label.medium.fontWeight} ); line-height: var( --m3e-nav-item-label-text-line-height, ${DesignToken$1.typescale.standard.label.medium.lineHeight} ); letter-spacing: var(--m3e-nav-item-label-text-tracking, ${DesignToken$1.typescale.standard.label.medium.tracking}); border-radius: var(--m3e-nav-item-shape, ${DesignToken$1.shape.corner.full}); min-width: var(--_nav-item-min-width); align-self: var(--_nav-item-align-self); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([orientation="horizontal"]) { max-width: fit-content; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .outer { height: 100%; } .outer, .inner { display: flex; align-items: center; justify-content: var(--_nav-item-justify-content, center); position: relative; border-radius: inherit; } .icon-wrapper { position: relative; flex: none; } .base { justify-content: unset; box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; } .icon { position: absolute; } .label { vertical-align: middle; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]) { width: 1em; font-size: var(--m3e-nav-item-icon-size, 1.5rem) !important; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-inactive-hover-state-layer-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-inactive-focus-state-layer-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-inactive-pressed-state-layer-color, ${DesignToken$1.color.onSecondaryContainer} ); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-inactive-label-text-color, ${DesignToken$1.color.onSurfaceVariant}); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-inactive-icon-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-active-hover-state-layer-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-active-focus-state-layer-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-active-pressed-state-layer-color, ${DesignToken$1.color.onSecondaryContainer} ); } :host([selected]:not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-active-label-text-color, ${DesignToken$1.color.secondary}); } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: var(--m3e-nav-item-active-container-color, ${DesignToken$1.color.secondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-active-icon-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([orientation="vertical"]) .outer { align-self: stretch; align-items: flex-start; } :host([orientation="vertical"]) .label { text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host([orientation="vertical"]) .base { flex-direction: column; row-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="vertical"]) .base { margin-block: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple { top: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); bottom: unset; } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { width: var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { height: var(--m3e-vertical-nav-item-active-indicator-height, 2rem); } :host([orientation="vertical"]) .icon { top: calc( calc(var(--m3e-vertical-nav-item-active-indicator-height, 2rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); left: calc( calc(var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); } :host([orientation="vertical"]) .focus-ring { border-radius: var(--m3e-nav-item-focus-ring-shape, ${DesignToken$1.shape.corner.medium}); } :host([orientation="horizontal"]) .icon-wrapper { width: var(--m3e-nav-item-icon-size, 1.5rem); height: var(--m3e-nav-item-icon-size, 1.5rem); } :host([orientation="horizontal"]) .base { padding: var(--m3e-horizontal-nav-item-padding, 1rem); } :host([orientation="horizontal"]) .label { flex: 1 1 auto; } :host([orientation="horizontal"]) .base { column-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="horizontal"]) .inner { height: var(--m3e-horizontal-nav-item-active-indicator-height, 2.5rem); width: fit-content; } .state-layer, .ripple { margin-inline: auto; } :host(:disabled) .label, :host([disabled-interactive]) .label { color: color-mix( in srgb, var(--m3e-nav-item-disabled-label-text-color, ${DesignToken$1.color.onSurface}) var(--m3e-nav-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: color-mix( in srgb, var(--m3e-nav-item-disabled-icon-color, ${DesignToken$1.color.onSurface}) var(--m3e-nav-item-disabled-icon-opacity, 38%), transparent ); } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { :host(:disabled) .label, :host([disabled-interactive]) .label, :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: GrayText; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label, :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: ButtonText; } :host([orientation="vertical"][selected]:not(:disabled):not([disabled-interactive])) .label { color: ButtonText; } :host([orientation="horizontal"][selected]:not(:disabled):not([disabled-interactive])) .label, :host([selected]:not(:disabled):not([disabled-interactive])) .icon { forced-color-adjust: none; color: ButtonFace; } }`;
|
|
18047
|
-
__decorate([
|
|
18048
|
-
__decorate([
|
|
18049
|
-
__decorate([
|
|
18050
|
-
__decorate([
|
|
17360
|
+
__decorate([query(".focus-ring")], M3eNavItemElement.prototype, "_focusRing", void 0);
|
|
17361
|
+
__decorate([query(".state-layer")], M3eNavItemElement.prototype, "_stateLayer", void 0);
|
|
17362
|
+
__decorate([query(".ripple")], M3eNavItemElement.prototype, "_ripple", void 0);
|
|
17363
|
+
__decorate([property({
|
|
18051
17364
|
reflect: true
|
|
18052
17365
|
})], M3eNavItemElement.prototype, "orientation", void 0);
|
|
18053
17366
|
M3eNavItemElement = __decorate([customElement$1("m3e-nav-item")], M3eNavItemElement);
|
|
@@ -18298,7 +17611,7 @@ let M3eNavMenuItemElement = M3eNavMenuItemElement_1 = class M3eNavMenuItemElemen
|
|
|
18298
17611
|
}
|
|
18299
17612
|
/** @inheritdoc */
|
|
18300
17613
|
render() {
|
|
18301
|
-
return html`<div class="base" @click="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleClick)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="icon" aria-hidden="true">${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_renderIcon).call(this)}</div><div class="label"><slot name="label" @slotchange="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleSlotChange)}"></slot></div><slot name="badge"></slot><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${
|
|
17614
|
+
return html`<div class="base" @click="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleClick)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="icon" aria-hidden="true">${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_renderIcon).call(this)}</div><div class="label"><slot name="label" @slotchange="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleSlotChange)}"></slot></div><slot name="badge"></slot><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${ifDefined(this._hasChildItems ? undefined : "true")}" ?open="${this._hasChildItems && this.open}" @opening="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleCollapsibleEvent)}" @opened="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleCollapsibleEvent)}" @closing="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleCollapsibleEvent)}" @closed="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleCollapsibleEvent)}"><slot @slotchange="${__classPrivateFieldGet(this, _M3eNavMenuItemElement_instances, "m", _M3eNavMenuItemElement_handleItemSlotChange)}"></slot></m3e-collapsible>`;
|
|
18302
17615
|
}
|
|
18303
17616
|
};
|
|
18304
17617
|
_M3eNavMenuItemElement_items = new WeakMap();
|
|
@@ -18370,12 +17683,12 @@ _M3eNavMenuItemElement_handleCollapsibleEvent = function _M3eNavMenuItemElement_
|
|
|
18370
17683
|
M3eNavMenuItemElement.styles = css`:host { display: block; flex: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: flex; align-items: center; position: relative; padding-inline: var(--m3e-nav-menu-item-padding, 1.5rem); height: calc(var(--m3e-nav-menu-item-height, 3.5rem) + ${DesignToken$1.density.calc(-3)}); column-gap: var(--m3e-nav-menu-item-spacing, 0.75rem); font-size: var(--m3e-nav-menu-item-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); transition: ${unsafeCSS(`color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard},
|
|
18371
17684
|
background-color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } .base, .focus-ring { border-radius: var(--m3e-nav-menu-item-shape, ${DesignToken$1.shape.corner.full}); } .label { flex: 1 1 auto; display: flex; align-items: center; position: relative; overflow: hidden; vertical-align: middle; } .icon, .toggle { flex: none; display: flex; align-items: center; justify-content: center; position: relative; vertical-align: middle; } ::slotted([slot="badge"]) { flex: none; position: relative; font-size: var(--m3e-nav-menu-item-badge-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-badge-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-badge-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-badge-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); } .toggle { transition: ${unsafeCSS(`transform var(--m3e-collapsible-animation-duration, ${DesignToken$1.motion.duration.medium1})
|
|
18372
17685
|
${DesignToken$1.motion.easing.standard}`)}; } :host(:not(:state(-with-icon))) .icon { display: none; } .icon { margin-inline-start: -0.5rem; } .toggle { margin-inline-end: -0.5rem; } .group { padding-inline-start: var(--m3e-nav-menu-item-inset, 1rem); } :host([open]) .toggle { transform: rotate(180deg); } :host(:not(:state(-with-items))) .toggle, :host(:not(:state(-with-items))) .group { display: none; } ::slotted([slot="selected-icon"]), ::slotted([slot="icon"]), ::slotted([slot="toggle-icon"]), .toggle-icon { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-nav-menu-item-icon-size, 1.5rem); } :host(:not(:disabled)) .base { cursor: pointer; } :host(:not(:disabled)) .base { color: var(--m3e-nav-menu-item-label-color, ${DesignToken$1.color.onSurfaceVariant}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-nav-menu-item-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-nav-menu-item-disabled-color-opacity, 38%), transparent ); } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { color: var(--m3e-nav-menu-item-selected-label-color, ${DesignToken$1.color.onSecondaryContainer}); background-color: var(--m3e-nav-menu-item-selected-container-color, ${DesignToken$1.color.secondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-selected-container-focus-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-selected-container-hover-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-nav-menu-item-selected-ripple-color, ${DesignToken$1.color.onSecondaryContainer}); } :host(:not([selected]):not(:state(-with-items)):not(:disabled)) .base { --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-unselected-container-focus-color, ${DesignToken$1.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-unselected-container-hover-color, ${DesignToken$1.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-unselected-ripple-color, ${DesignToken$1.color.onSurface}); } .state-layer { margin-inline: auto; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: var(--m3e-nav-menu-item-open-container-color, ${DesignToken$1.color.surfaceContainerHighest}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-open-container-focus-color, ${DesignToken$1.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-open-container-hover-color, ${DesignToken$1.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-open-ripple-color, ${DesignToken$1.color.onSurface}); } ::slotted(a[slot="label"]) { all: unset; } @media (prefers-reduced-motion) { .base, .toggle, .state-layer { transition: none !important; } } @media (forced-colors: active) { .base, .state-layer { transition: none !important; } :host(:disabled) .base { color: GrayText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: unset; color: ButtonText; } }`;
|
|
18373
|
-
__decorate([
|
|
18374
|
-
__decorate([
|
|
18375
|
-
__decorate([
|
|
18376
|
-
__decorate([
|
|
18377
|
-
__decorate([
|
|
18378
|
-
__decorate([
|
|
17686
|
+
__decorate([query(".state-layer")], M3eNavMenuItemElement.prototype, "stateLayer", void 0);
|
|
17687
|
+
__decorate([query(".focus-ring")], M3eNavMenuItemElement.prototype, "focusRing", void 0);
|
|
17688
|
+
__decorate([query(".ripple")], M3eNavMenuItemElement.prototype, "ripple", void 0);
|
|
17689
|
+
__decorate([query(".base")], M3eNavMenuItemElement.prototype, "_base", void 0);
|
|
17690
|
+
__decorate([state()], M3eNavMenuItemElement.prototype, "_hasChildItems", void 0);
|
|
17691
|
+
__decorate([property({
|
|
18379
17692
|
type: Boolean,
|
|
18380
17693
|
reflect: true
|
|
18381
17694
|
})], M3eNavMenuItemElement.prototype, "open", void 0);
|
|
@@ -19120,15 +18433,15 @@ _M3eOptionElement_handleSlotChange = function _M3eOptionElement_handleSlotChange
|
|
|
19120
18433
|
};
|
|
19121
18434
|
/** The styles of the element. */
|
|
19122
18435
|
M3eOptionElement.styles = css`:host { display: block; outline: none; user-select: none; flex: none; height: var(--m3e-option-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) .base { color: var(--m3e-option-color, ${DesignToken$1.color.onSurface}); --m3e-state-layer-hover-color: var(--m3e-option-container-hover-color, ${DesignToken$1.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-option-container-focus-color, ${DesignToken$1.color.onSurface}); --m3e-ripple-color: var(--m3e-option-ripple-color, ${DesignToken$1.color.onSurface}); } :host(:not([aria-disabled="true"]):not(:state(-empty))[selected]) .base { color: var(--m3e-option-selected-color, ${DesignToken$1.color.onTertiaryContainer}); background-color: var(--m3e-option-selected-container-color, ${DesignToken$1.color.tertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-option-selected-container-hover-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-option-selected-container-focus-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-option-selected-ripple-color, ${DesignToken$1.color.onTertiaryContainer}); } :host(:not([aria-disabled="true"])) { cursor: pointer; } :host([aria-disabled="true"]) .base { color: color-mix( in srgb, var(--m3e-option-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-option-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-option-shape, ${DesignToken$1.shape.corner.extraSmall}); transition: ${unsafeCSS(`border-radius ${DesignToken$1.motion.spring.fastEffects}`)}; } :host([selected]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-option-selected-shape, ${DesignToken$1.shape.corner.medium}); border-top-right-radius: var(--m3e-option-selected-shape, ${DesignToken$1.shape.corner.medium}); } :host([selected]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-option-selected-shape, ${DesignToken$1.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-selected-shape, ${DesignToken$1.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-option-first-child-shape, ${DesignToken$1.shape.corner.medium}); border-top-right-radius: var(--m3e-option-first-child-shape, ${DesignToken$1.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-option-last-child-shape, ${DesignToken$1.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-last-child-shape, ${DesignToken$1.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; width: 100%; overflow: hidden; column-gap: var(--m3e-option-icon-label-space, 0.5rem); padding-inline-start: var(--_option-padding-start, var(--m3e-option-padding-start, 0.75rem)); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); font-size: var(--m3e-option-label-text-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-label-text-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-label-text-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-label-text-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-option-focus-ring-shape, inherit); } .icon { margin-inline-start: calc(0px - var(--m3e-option-icon-label-space, 0.5rem)); transition: ${unsafeCSS(`margin-inline-start ${DesignToken$1.motion.spring.fastEffects}, width ${DesignToken$1.motion.spring.fastEffects}`)}; } :host([selected]) .icon { margin-inline-start: 0; width: var(--m3e-option-icon-size, 1.25rem); } .icon { flex: none; width: 0px; font-size: var(--m3e-option-icon-size, 1.25rem); } :host(:state(-empty)) .icon, :host(:state(-hide-selection-indicator)) .icon, :host(:not([selected])) .check { display: none; } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host([aria-disabled="true"]) .base { color: GrayText; } } @media (prefers-reduced-motion) { .icon, .base { transition: none; } }`;
|
|
19123
|
-
__decorate([
|
|
19124
|
-
__decorate([
|
|
19125
|
-
__decorate([
|
|
19126
|
-
__decorate([
|
|
19127
|
-
__decorate([
|
|
19128
|
-
__decorate([
|
|
18436
|
+
__decorate([query(".focus-ring")], M3eOptionElement.prototype, "focusRing", void 0);
|
|
18437
|
+
__decorate([query(".state-layer")], M3eOptionElement.prototype, "stateLayer", void 0);
|
|
18438
|
+
__decorate([query(".ripple")], M3eOptionElement.prototype, "_ripple", void 0);
|
|
18439
|
+
__decorate([property()], M3eOptionElement.prototype, "value", null);
|
|
18440
|
+
__decorate([property()], M3eOptionElement.prototype, "term", void 0);
|
|
18441
|
+
__decorate([property({
|
|
19129
18442
|
attribute: "highlight-mode"
|
|
19130
18443
|
})], M3eOptionElement.prototype, "highlightMode", void 0);
|
|
19131
|
-
__decorate([
|
|
18444
|
+
__decorate([property({
|
|
19132
18445
|
attribute: "disable-highlight",
|
|
19133
18446
|
type: Boolean
|
|
19134
18447
|
})], M3eOptionElement.prototype, "disableHighlight", void 0);
|
|
@@ -19201,7 +18514,7 @@ M3eOptGroupElement.styles = css`:host { display: block; --_option-padding-start:
|
|
|
19201
18514
|
M3eOptGroupElement.__nextId = 0;
|
|
19202
18515
|
M3eOptGroupElement = M3eOptGroupElement_1 = __decorate([customElement$1("m3e-optgroup")], M3eOptGroupElement);
|
|
19203
18516
|
|
|
19204
|
-
var _M3eOptionPanelElement_instances,
|
|
18517
|
+
var _M3eOptionPanelElement_instances, _M3eOptionPanelElement_handleNoDataSlotChange, _M3eOptionPanelElement_handleLoadingSlotChange, _M3eOptionPanelElement_handleMutation;
|
|
19205
18518
|
/**
|
|
19206
18519
|
* Presents a list of options on a temporary surface.
|
|
19207
18520
|
*
|
|
@@ -19234,11 +18547,6 @@ let M3eOptionPanelElement = class M3eOptionPanelElement extends Role$1(M3eFloati
|
|
|
19234
18547
|
constructor() {
|
|
19235
18548
|
super();
|
|
19236
18549
|
_M3eOptionPanelElement_instances.add(this);
|
|
19237
|
-
/** @private */
|
|
19238
|
-
_M3eOptionPanelElement_scrollController.set(this, new ScrollController$1(this, {
|
|
19239
|
-
target: null,
|
|
19240
|
-
callback: () => this.hide(false)
|
|
19241
|
-
}));
|
|
19242
18550
|
/**
|
|
19243
18551
|
* The state for which to present content.
|
|
19244
18552
|
* @default "content"
|
|
@@ -19253,18 +18561,6 @@ let M3eOptionPanelElement = class M3eOptionPanelElement extends Role$1(M3eFloati
|
|
|
19253
18561
|
});
|
|
19254
18562
|
}
|
|
19255
18563
|
/** @inheritdoc */
|
|
19256
|
-
async show(trigger, anchor) {
|
|
19257
|
-
await super.show(trigger, anchor);
|
|
19258
|
-
__classPrivateFieldGet(this, _M3eOptionPanelElement_scrollController, "f").observe(trigger);
|
|
19259
|
-
}
|
|
19260
|
-
/** @inheritdoc */
|
|
19261
|
-
hide(restoreFocus) {
|
|
19262
|
-
if (this.trigger) {
|
|
19263
|
-
__classPrivateFieldGet(this, _M3eOptionPanelElement_scrollController, "f").unobserve(this.trigger);
|
|
19264
|
-
}
|
|
19265
|
-
super.hide(restoreFocus);
|
|
19266
|
-
}
|
|
19267
|
-
/** @inheritdoc */
|
|
19268
18564
|
connectedCallback() {
|
|
19269
18565
|
super.connectedCallback();
|
|
19270
18566
|
__classPrivateFieldGet(this, _M3eOptionPanelElement_instances, "m", _M3eOptionPanelElement_handleMutation).call(this);
|
|
@@ -19274,7 +18570,6 @@ let M3eOptionPanelElement = class M3eOptionPanelElement extends Role$1(M3eFloati
|
|
|
19274
18570
|
return html`<div class="base"><slot></slot><div class="no-data" aria-hidden="true"><slot name="no-data" @slotchange="${__classPrivateFieldGet(this, _M3eOptionPanelElement_instances, "m", _M3eOptionPanelElement_handleNoDataSlotChange)}"></slot></div><div class="loading" aria-hidden="true"><slot name="loading" @slotchange="${__classPrivateFieldGet(this, _M3eOptionPanelElement_instances, "m", _M3eOptionPanelElement_handleLoadingSlotChange)}"></slot></div></div>`;
|
|
19275
18571
|
}
|
|
19276
18572
|
};
|
|
19277
|
-
_M3eOptionPanelElement_scrollController = new WeakMap();
|
|
19278
18573
|
_M3eOptionPanelElement_instances = new WeakSet();
|
|
19279
18574
|
_M3eOptionPanelElement_handleNoDataSlotChange = function _M3eOptionPanelElement_handleNoDataSlotChange(e) {
|
|
19280
18575
|
setCustomState$1(this, "-with-no-data", hasAssignedNodes$1(e.target));
|
|
@@ -19316,7 +18611,7 @@ _M3eOptionPanelElement_handleMutation = function _M3eOptionPanelElement_handleMu
|
|
|
19316
18611
|
})();
|
|
19317
18612
|
/** The styles of the element. */
|
|
19318
18613
|
M3eOptionPanelElement.styles = [M3eFloatingPanelElement.styles, css`:host { --m3e-floating-panel-container-shape: var( --m3e-option-panel-container-shape, ${DesignToken$1.shape.corner.large} ); --m3e-floating-panel-container-min-width: var(--m3e-option-panel-container-min-width, 7rem); --m3e-floating-panel-container-max-width: var(--m3e-option-panel-container-max-width, 17.5rem); --m3e-floating-panel-container-max-height: var(--m3e-option-panel-container-max-height, 17.5rem); --m3e-floating-panel-container-color: var( --m3e-option-panel-container-color, ${DesignToken$1.color.surfaceContainer} ); --m3e-floating-panel-container-elevation: var( --m3e-option-panel-container-elevation, ${DesignToken$1.elevation.level3} ); --m3e-floating-panel-container-padding-inline: var(--m3e-option-panel-container-padding-inline, 0.25rem); --m3e-floating-panel-container-padding-block: var(--m3e-option-panel-container-padding-block, 0.25rem); } .base { row-gap: var(--m3e-option-panel-gap, 0.125rem); --m3e-text-highlight-container-color: var( --m3e-option-panel-text-highlight-container-color, ${DesignToken$1.color.tertiaryContainer} ); --m3e-text-highlight-color: var( --m3e-option-panel-text-highlight-color, ${DesignToken$1.color.onTertiaryContainer} ); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } .no-data { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-no-data-container-height, 2.75rem); padding: var(--m3e-option-panel-no-data-container-padding, 0.75rem); color: var(--m3e-option-panel-no-data-color, ${DesignToken$1.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-no-data-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-no-data-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-no-data-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-no-data-tracking, ${DesignToken$1.typescale.standard.label.large.tracking} ); } .loading { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-loading-container-height, 2.75rem); padding: var(--m3e-option-panel-loading-container-padding, 0.75rem); color: var(--m3e-option-panel-loading-color, ${DesignToken$1.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-loading-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-loading-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-loading-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-loading-tracking, ${DesignToken$1.typescale.standard.label.large.tracking} ); } :host(:state(-no-data)) slot:not([name]), :host(:state(-loading)) slot:not([name]), :host(:state(-loading)) .no-data, :host(:not(:state(-no-data))) .no-data, :host(:not(:state(-with-no-data))) .no-data, :host(:not(:state(-loading))) .loading, :host(:not(:state(-with-loading))) .loading { display: none; } :host(:state(-no-data)) .base, :host(:state(-loading)) .base { overflow-y: hidden; } :host(:state(-with-loading-indicator)) .loading { padding: 0; justify-content: center; }`];
|
|
19319
|
-
__decorate([
|
|
18614
|
+
__decorate([property({
|
|
19320
18615
|
reflect: true
|
|
19321
18616
|
})], M3eOptionPanelElement.prototype, "state", void 0);
|
|
19322
18617
|
M3eOptionPanelElement = __decorate([customElement$1("m3e-option-panel")], M3eOptionPanelElement);
|
|
@@ -19558,83 +18853,55 @@ _M3ePaginatorElement_emitPageEvent = function _M3ePaginatorElement_emitPageEvent
|
|
|
19558
18853
|
M3ePaginatorElement.styles = css`:host { display: block; } .outer { display: flex; font-size: var(--m3e-paginator-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-paginator-font-weight, ${DesignToken$1.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-paginator-line-height, ${DesignToken$1.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-paginator-tracking, ${DesignToken$1.typescale.standard.body.small.tracking}); } .inner { display: flex; align-items: center; justify-content: flex-end; padding-inline: 0.5rem; width: 100%; } .form-field { --md-sys-density-scale: -2; --m3e-form-field-font-size: var(--m3e-paginator-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize}); --m3e-form-field-font-weight: var( --m3e-paginator-font-weight, ${DesignToken$1.typescale.standard.body.small.fontWeight} ); --m3e-form-field-line-height: var( --m3e-paginator-line-height, ${DesignToken$1.typescale.standard.body.small.lineHeight} ); --m3e-form-field-tracking: var(--m3e-paginator-tracking, ${DesignToken$1.typescale.standard.body.small.tracking}); } .items-per-page-label { display: flex; align-items: center; margin-inline-end: 0.5rem; } .form-field { min-width: auto; width: 6rem; margin-inline: 0.25rem; } .range-label { margin-inline: 1.5rem 2rem; } :host([hide-page-size]) .range-label { margin-inline-start: unset; } .range-actions { display: flex; align-items: center; } ::slotted([slot="first-page-icon"]), ::slotted([slot="previous-page-icon"]), ::slotted([slot="next-page-icon"]), ::slotted([slot="last-page-icon"]), svg { width: 1em; font-size: var(--m3e-icon-button-medium-icon-size, 1.5rem) !important; } :host(:dir(rtl)) svg { transform: rotate(180deg); }`;
|
|
19559
18854
|
/* @private */
|
|
19560
18855
|
M3ePaginatorElement.__nextId = 0;
|
|
19561
|
-
__decorate([
|
|
18856
|
+
__decorate([property({
|
|
19562
18857
|
type: Boolean,
|
|
19563
18858
|
reflect: true
|
|
19564
18859
|
})], M3ePaginatorElement.prototype, "disabled", void 0);
|
|
19565
|
-
__decorate([
|
|
18860
|
+
__decorate([property({
|
|
19566
18861
|
attribute: "page-index",
|
|
19567
18862
|
type: Number
|
|
19568
18863
|
})], M3ePaginatorElement.prototype, "pageIndex", void 0);
|
|
19569
|
-
__decorate([
|
|
18864
|
+
__decorate([property({
|
|
19570
18865
|
type: Number
|
|
19571
18866
|
})], M3ePaginatorElement.prototype, "length", void 0);
|
|
19572
|
-
__decorate([
|
|
18867
|
+
__decorate([property({
|
|
19573
18868
|
attribute: "page-size",
|
|
19574
18869
|
converter: value => value === "all" ? "all" : Number(value)
|
|
19575
18870
|
})], M3ePaginatorElement.prototype, "pageSize", void 0);
|
|
19576
|
-
__decorate([
|
|
18871
|
+
__decorate([property({
|
|
19577
18872
|
attribute: "page-sizes"
|
|
19578
18873
|
})], M3ePaginatorElement.prototype, "pageSizes", void 0);
|
|
19579
|
-
__decorate([
|
|
18874
|
+
__decorate([property({
|
|
19580
18875
|
attribute: "hide-page-size",
|
|
19581
18876
|
type: Boolean,
|
|
19582
18877
|
reflect: true
|
|
19583
18878
|
})], M3ePaginatorElement.prototype, "hidePageSize", void 0);
|
|
19584
|
-
__decorate([
|
|
18879
|
+
__decorate([property({
|
|
19585
18880
|
attribute: "show-first-last-buttons",
|
|
19586
18881
|
type: Boolean
|
|
19587
18882
|
})], M3ePaginatorElement.prototype, "showFirstLastButtons", void 0);
|
|
19588
|
-
__decorate([
|
|
18883
|
+
__decorate([property({
|
|
19589
18884
|
attribute: "items-per-page-label"
|
|
19590
18885
|
})], M3ePaginatorElement.prototype, "itemsPerPageLabel", void 0);
|
|
19591
|
-
__decorate([
|
|
18886
|
+
__decorate([property({
|
|
19592
18887
|
attribute: "previous-page-label"
|
|
19593
18888
|
})], M3ePaginatorElement.prototype, "previousPageLabel", void 0);
|
|
19594
|
-
__decorate([
|
|
18889
|
+
__decorate([property({
|
|
19595
18890
|
attribute: "next-page-label"
|
|
19596
18891
|
})], M3ePaginatorElement.prototype, "nextPageLabel", void 0);
|
|
19597
|
-
__decorate([
|
|
18892
|
+
__decorate([property({
|
|
19598
18893
|
attribute: "first-page-label"
|
|
19599
18894
|
})], M3ePaginatorElement.prototype, "firstPageLabel", void 0);
|
|
19600
|
-
__decorate([
|
|
18895
|
+
__decorate([property({
|
|
19601
18896
|
attribute: "last-page-label"
|
|
19602
18897
|
})], M3ePaginatorElement.prototype, "lastPageLabel", void 0);
|
|
19603
|
-
__decorate([
|
|
18898
|
+
__decorate([property({
|
|
19604
18899
|
attribute: "page-size-variant"
|
|
19605
18900
|
})], M3ePaginatorElement.prototype, "pageSizeVariant", void 0);
|
|
19606
18901
|
M3ePaginatorElement = M3ePaginatorElement_1 = __decorate([customElement$1("m3e-paginator")], M3ePaginatorElement);
|
|
19607
18902
|
|
|
19608
|
-
/**
|
|
19609
|
-
* @license
|
|
19610
|
-
* Copyright 2018 Google LLC
|
|
19611
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
19612
|
-
*/
|
|
19613
|
-
const e = e$1(class extends i {
|
|
19614
|
-
constructor(t$1) {
|
|
19615
|
-
if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || t$1.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
19616
|
-
}
|
|
19617
|
-
render(t) {
|
|
19618
|
-
return " " + Object.keys(t).filter(s => t[s]).join(" ") + " ";
|
|
19619
|
-
}
|
|
19620
|
-
update(s, [i]) {
|
|
19621
|
-
if (void 0 === this.st) {
|
|
19622
|
-
this.st = new Set(), void 0 !== s.strings && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(t => "" !== t)));
|
|
19623
|
-
for (const t in i) i[t] && !this.nt?.has(t) && this.st.add(t);
|
|
19624
|
-
return this.render(i);
|
|
19625
|
-
}
|
|
19626
|
-
const r = s.element.classList;
|
|
19627
|
-
for (const t of this.st) t in i || (r.remove(t), this.st.delete(t));
|
|
19628
|
-
for (const t in i) {
|
|
19629
|
-
const s = !!i[t];
|
|
19630
|
-
s === this.st.has(t) || this.nt?.has(t) || (s ? (r.add(t), this.st.add(t)) : (r.remove(t), this.st.delete(t)));
|
|
19631
|
-
}
|
|
19632
|
-
return T;
|
|
19633
|
-
}
|
|
19634
|
-
});
|
|
19635
|
-
|
|
19636
18903
|
/** A base implementation for an element used to convey progress. This class must be inherited. */
|
|
19637
|
-
class ProgressElementIndicatorBase extends AttachInternals$1(Role$1(LitElement, "progressbar"), true) {
|
|
18904
|
+
class ProgressElementIndicatorBase extends ReconnectedCallback$1(AttachInternals$1(Role$1(LitElement, "progressbar"), true)) {
|
|
19638
18905
|
constructor() {
|
|
19639
18906
|
super(...arguments);
|
|
19640
18907
|
/**
|
|
@@ -19671,18 +18938,18 @@ class ProgressElementIndicatorBase extends AttachInternals$1(Role$1(LitElement,
|
|
|
19671
18938
|
}
|
|
19672
18939
|
/** The styles of the element. */
|
|
19673
18940
|
ProgressElementIndicatorBase.styles = css`@media (forced-colors: active) { :host { --m3e-progress-indicator-color: CanvasText; --m3e-progress-indicator-track-color: Canvas; } }`;
|
|
19674
|
-
__decorate([
|
|
18941
|
+
__decorate([property({
|
|
19675
18942
|
type: Number,
|
|
19676
18943
|
reflect: true
|
|
19677
18944
|
})], ProgressElementIndicatorBase.prototype, "value", void 0);
|
|
19678
|
-
__decorate([
|
|
18945
|
+
__decorate([property({
|
|
19679
18946
|
type: Number
|
|
19680
18947
|
})], ProgressElementIndicatorBase.prototype, "max", void 0);
|
|
19681
|
-
__decorate([
|
|
18948
|
+
__decorate([property({
|
|
19682
18949
|
reflect: true
|
|
19683
18950
|
})], ProgressElementIndicatorBase.prototype, "variant", void 0);
|
|
19684
18951
|
|
|
19685
|
-
var _M3eCircularProgressIndicatorElement_instances, _M3eCircularProgressIndicatorElement_maskId, _M3eCircularProgressIndicatorElement_diameter, _M3eCircularProgressIndicatorElement_strokeWidth, _M3eCircularProgressIndicatorElement_amplitude, _M3eCircularProgressIndicatorElement_wavelength, _M3eCircularProgressIndicatorElement_spinnerActiveTrack, _M3eCircularProgressIndicatorElement_spinnerTrack, _M3eCircularProgressIndicatorElement_resizeController, _M3eCircularProgressIndicatorElement_indeterminateWavyAnimationLoop, _M3eCircularProgressIndicatorElement_renderFlatIndicator, _M3eCircularProgressIndicatorElement_renderWavyIndicator, _M3eCircularProgressIndicatorElement_renderResizeObservedElements, _M3eCircularProgressIndicatorElement_renderContent, _M3eCircularProgressIndicatorElement_updateDiameterAndStroke, _M3eCircularProgressIndicatorElement_updateAmplitudeAndWavelength, _M3eCircularProgressIndicatorElement_updateWavyIndeterminateSpinner, _M3eCircularProgressIndicatorElement_computeWavyIndeterminateSweep, _M3eCircularProgressIndicatorElement_sizeToDegrees, _M3eCircularProgressIndicatorElement_degreesToRadians, _M3eCircularProgressIndicatorElement_polarToCartesian, _M3eCircularProgressIndicatorElement_computeCircle, _M3eCircularProgressIndicatorElement_drawArc, _M3eCircularProgressIndicatorElement_drawWavyArc;
|
|
18952
|
+
var _M3eCircularProgressIndicatorElement_instances, _M3eCircularProgressIndicatorElement_maskId, _M3eCircularProgressIndicatorElement_diameter, _M3eCircularProgressIndicatorElement_strokeWidth, _M3eCircularProgressIndicatorElement_amplitude, _M3eCircularProgressIndicatorElement_wavelength, _M3eCircularProgressIndicatorElement_spinnerActiveTrack, _M3eCircularProgressIndicatorElement_spinnerTrack, _M3eCircularProgressIndicatorElement_resizeController, _M3eCircularProgressIndicatorElement_indeterminateWavyAnimationLoop, _M3eCircularProgressIndicatorElement_initialize, _M3eCircularProgressIndicatorElement_renderFlatIndicator, _M3eCircularProgressIndicatorElement_renderWavyIndicator, _M3eCircularProgressIndicatorElement_renderResizeObservedElements, _M3eCircularProgressIndicatorElement_renderContent, _M3eCircularProgressIndicatorElement_updateDiameterAndStroke, _M3eCircularProgressIndicatorElement_updateAmplitudeAndWavelength, _M3eCircularProgressIndicatorElement_updateWavyIndeterminateSpinner, _M3eCircularProgressIndicatorElement_computeWavyIndeterminateSweep, _M3eCircularProgressIndicatorElement_sizeToDegrees, _M3eCircularProgressIndicatorElement_degreesToRadians, _M3eCircularProgressIndicatorElement_polarToCartesian, _M3eCircularProgressIndicatorElement_computeCircle, _M3eCircularProgressIndicatorElement_drawArc, _M3eCircularProgressIndicatorElement_drawWavyArc;
|
|
19686
18953
|
var M3eCircularProgressIndicatorElement_1;
|
|
19687
18954
|
const WAVY_INDETERMINATE_DURATION = 1.575;
|
|
19688
18955
|
/**
|
|
@@ -19767,18 +19034,14 @@ let M3eCircularProgressIndicatorElement = M3eCircularProgressIndicatorElement_1
|
|
|
19767
19034
|
}
|
|
19768
19035
|
}
|
|
19769
19036
|
/** @inheritdoc */
|
|
19037
|
+
reconnectedCallback() {
|
|
19038
|
+
super.reconnectedCallback();
|
|
19039
|
+
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_initialize).call(this);
|
|
19040
|
+
}
|
|
19041
|
+
/** @inheritdoc */
|
|
19770
19042
|
firstUpdated(_changedProperties) {
|
|
19771
19043
|
super.firstUpdated(_changedProperties);
|
|
19772
|
-
|
|
19773
|
-
if (diameterAndStroke) {
|
|
19774
|
-
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_updateDiameterAndStroke).call(this);
|
|
19775
|
-
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_resizeController, "f").observe(diameterAndStroke);
|
|
19776
|
-
}
|
|
19777
|
-
const amplitudeAndWavelength = this.shadowRoot?.querySelector(".amplitude-and-wavelength");
|
|
19778
|
-
if (amplitudeAndWavelength) {
|
|
19779
|
-
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_updateDiameterAndStroke).call(this);
|
|
19780
|
-
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_resizeController, "f").observe(amplitudeAndWavelength);
|
|
19781
|
-
}
|
|
19044
|
+
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_initialize).call(this);
|
|
19782
19045
|
}
|
|
19783
19046
|
/** @inheritdoc */
|
|
19784
19047
|
updated(_changedProperties) {
|
|
@@ -19808,6 +19071,18 @@ _M3eCircularProgressIndicatorElement_spinnerTrack = new WeakMap();
|
|
|
19808
19071
|
_M3eCircularProgressIndicatorElement_resizeController = new WeakMap();
|
|
19809
19072
|
_M3eCircularProgressIndicatorElement_indeterminateWavyAnimationLoop = new WeakMap();
|
|
19810
19073
|
_M3eCircularProgressIndicatorElement_instances = new WeakSet();
|
|
19074
|
+
_M3eCircularProgressIndicatorElement_initialize = function _M3eCircularProgressIndicatorElement_initialize() {
|
|
19075
|
+
const diameterAndStroke = this.shadowRoot?.querySelector(".diameter-and-stroke");
|
|
19076
|
+
if (diameterAndStroke) {
|
|
19077
|
+
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_updateDiameterAndStroke).call(this);
|
|
19078
|
+
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_resizeController, "f").observe(diameterAndStroke);
|
|
19079
|
+
}
|
|
19080
|
+
const amplitudeAndWavelength = this.shadowRoot?.querySelector(".amplitude-and-wavelength");
|
|
19081
|
+
if (amplitudeAndWavelength) {
|
|
19082
|
+
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_updateDiameterAndStroke).call(this);
|
|
19083
|
+
__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_resizeController, "f").observe(amplitudeAndWavelength);
|
|
19084
|
+
}
|
|
19085
|
+
};
|
|
19811
19086
|
_M3eCircularProgressIndicatorElement_renderFlatIndicator = function _M3eCircularProgressIndicatorElement_renderFlatIndicator() {
|
|
19812
19087
|
if (this.indeterminate) {
|
|
19813
19088
|
const left = __classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_instances, "m", _M3eCircularProgressIndicatorElement_drawArc).call(this, {
|
|
@@ -19887,9 +19162,9 @@ _M3eCircularProgressIndicatorElement_renderWavyIndicator = function _M3eCircular
|
|
|
19887
19162
|
/>
|
|
19888
19163
|
</mask>
|
|
19889
19164
|
</defs>` : nothing}
|
|
19890
|
-
<g class="active-track" mask="${
|
|
19165
|
+
<g class="active-track" mask="${ifDefined(amplitude > 0 ? resolveFragmentUrl$1(__classPrivateFieldGet(this, _M3eCircularProgressIndicatorElement_maskId, "f")) : undefined)}">
|
|
19891
19166
|
<path
|
|
19892
|
-
class="${
|
|
19167
|
+
class="${classMap({
|
|
19893
19168
|
wave: amplitude > 0
|
|
19894
19169
|
})}"
|
|
19895
19170
|
d="${active.path}"
|
|
@@ -20063,13 +19338,13 @@ _M3eCircularProgressIndicatorElement_drawWavyArc = function _M3eCircularProgress
|
|
|
20063
19338
|
M3eCircularProgressIndicatorElement.styles = [ProgressElementIndicatorBase.styles, css`:host { display: inline-flex; vertical-align: middle; aspect-ratio: 1; position: relative; align-items: center; justify-content: center; } .progress { --_arc-duration: 1333ms; --_cycle-duration: calc(4 * var(--_arc-duration)); --_linear-rotate-duration: calc(var(--_arc-duration) * 360 / 306); --_indeterminate-easing: cubic-bezier(0.4, 0, 0.2, 1); } .active-track { transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); } :host([variant="flat"]) .progress { flex: 1; align-self: stretch; pointer-events: none; } .progress, .spinner, .left, .right, .content, .circle { position: absolute; inset: 0; } .content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .diameter-and-stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .diameter-and-stroke { width: inherit; height: var(--m3e-circular-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { width: var(--m3e-circular-wavy-progress-indicator-amplitude, 0.1rem); height: var(--m3e-circular-wavy-progress-indicator-wavelength, 0.9375rem); } :host([variant="flat"]) { width: var(--m3e-circular-flat-progress-indicator-diameter, 2.5rem); } :host([variant="wavy"]) { width: var(--m3e-circular-wavy-progress-indicator-diameter, 3rem); } :host([variant="flat"][indeterminate]) .progress { animation: linear infinite linear-rotate; animation-duration: var(--_linear-rotate-duration); } :host([variant="flat"][indeterminate]) .spinner { animation: infinite both rotate-arc; animation-duration: var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } :host([variant="wavy"][indeterminate]) .spinner { transform-origin: 50% 50%; animation: wavy-spin ${WAVY_INDETERMINATE_DURATION}s linear infinite; } .left { clip-path: inset(0); inset: 0 50% 0 0; } .right { clip-path: inset(0); inset: 0 0 0 50%; } .circle { animation: expand-arc; animation-iteration-count: infinite; animation-fill-mode: both; animation-duration: var(--_arc-duration), var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } .left .circle { rotate: 135deg; inset: 0 -100% 0 0; } .right .circle { rotate: 100deg; inset: 0 0 0 -100%; animation-delay: calc(-0.5 * var(--_arc-duration)), 0ms; } .track { color: var(--m3e-progress-indicator-track-color, ${DesignToken$1.color.secondaryContainer}); } .active-track { color: var(--m3e-progress-indicator-color, ${DesignToken$1.color.primary}); } .wave { animation: spin-reverse 8s linear infinite; transform-origin: 50% 50%; } @keyframes expand-arc { 0% { transform: rotate(265deg); } 50% { transform: rotate(130deg); } 100% { transform: rotate(265deg); } } @keyframes rotate-arc { 12.5% { transform: rotate(135deg); } 25% { transform: rotate(270deg); } 37.5% { transform: rotate(405deg); } 50% { transform: rotate(540deg); } 62.5% { transform: rotate(675deg); } 75% { transform: rotate(810deg); } 87.5% { transform: rotate(945deg); } 100% { transform: rotate(1080deg); } } @keyframes linear-rotate { to { transform: rotate(360deg); } } @keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes wavy-spin { 0% { transform: rotate(0deg); } 10% { transform: rotate(90deg); } 100% { transform: rotate(360deg); } } @media (forced-colors: active) { :host([variant="flat"]) circle { fill: Canvas; } :host([variant="flat"]) .circle { border-color: var(--m3e-progress-indicator-color, ${DesignToken$1.color.primary}) var(--m3e-progress-indicator-color, ${DesignToken$1.color.primary}) Canvas Canvas; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`];
|
|
20064
19339
|
/** @private */
|
|
20065
19340
|
M3eCircularProgressIndicatorElement.__nextMaskId = 0;
|
|
20066
|
-
__decorate([
|
|
19341
|
+
__decorate([property({
|
|
20067
19342
|
type: Boolean,
|
|
20068
19343
|
reflect: true
|
|
20069
19344
|
})], M3eCircularProgressIndicatorElement.prototype, "indeterminate", void 0);
|
|
20070
19345
|
M3eCircularProgressIndicatorElement = M3eCircularProgressIndicatorElement_1 = __decorate([customElement$1("m3e-circular-progress-indicator")], M3eCircularProgressIndicatorElement);
|
|
20071
19346
|
|
|
20072
|
-
var _M3eLinearProgressIndicatorElement_instances, _M3eLinearProgressIndicatorElement_maskId, _M3eLinearProgressIndicatorElement_strokeWidth, _M3eLinearProgressIndicatorElement_amplitude, _M3eLinearProgressIndicatorElement_wavelength, _M3eLinearProgressIndicatorElement_resizeController, _M3eLinearProgressIndicatorElement_renderWave, _M3eLinearProgressIndicatorElement_renderResizeObservedElements, _M3eLinearProgressIndicatorElement_updateStroke, _M3eLinearProgressIndicatorElement_updateAmplitudeAndWavelength, _M3eLinearProgressIndicatorElement_drawWavyPath;
|
|
19347
|
+
var _M3eLinearProgressIndicatorElement_instances, _M3eLinearProgressIndicatorElement_maskId, _M3eLinearProgressIndicatorElement_strokeWidth, _M3eLinearProgressIndicatorElement_amplitude, _M3eLinearProgressIndicatorElement_wavelength, _M3eLinearProgressIndicatorElement_resizeController, _M3eLinearProgressIndicatorElement_initialize, _M3eLinearProgressIndicatorElement_renderWave, _M3eLinearProgressIndicatorElement_renderResizeObservedElements, _M3eLinearProgressIndicatorElement_updateStroke, _M3eLinearProgressIndicatorElement_updateAmplitudeAndWavelength, _M3eLinearProgressIndicatorElement_drawWavyPath;
|
|
20073
19348
|
var M3eLinearProgressIndicatorElement_1;
|
|
20074
19349
|
/**
|
|
20075
19350
|
* A horizontal bar for indicating progress and activity.
|
|
@@ -20142,18 +19417,14 @@ let M3eLinearProgressIndicatorElement = M3eLinearProgressIndicatorElement_1 = cl
|
|
|
20142
19417
|
this.bufferValue = 0;
|
|
20143
19418
|
}
|
|
20144
19419
|
/** @inheritdoc */
|
|
19420
|
+
reconnectedCallback() {
|
|
19421
|
+
super.reconnectedCallback();
|
|
19422
|
+
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_instances, "m", _M3eLinearProgressIndicatorElement_initialize).call(this);
|
|
19423
|
+
}
|
|
19424
|
+
/** @inheritdoc */
|
|
20145
19425
|
firstUpdated(_changedProperties) {
|
|
20146
19426
|
super.firstUpdated(_changedProperties);
|
|
20147
|
-
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_instances, "m",
|
|
20148
|
-
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_instances, "m", _M3eLinearProgressIndicatorElement_updateAmplitudeAndWavelength).call(this);
|
|
20149
|
-
const stroke = this.shadowRoot?.querySelector(".stroke");
|
|
20150
|
-
if (stroke) {
|
|
20151
|
-
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_resizeController, "f").observe(stroke);
|
|
20152
|
-
}
|
|
20153
|
-
const amplitudeAndWavelength = this.shadowRoot?.querySelector(".amplitude-and-wavelength");
|
|
20154
|
-
if (amplitudeAndWavelength) {
|
|
20155
|
-
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_resizeController, "f").observe(amplitudeAndWavelength);
|
|
20156
|
-
}
|
|
19427
|
+
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_instances, "m", _M3eLinearProgressIndicatorElement_initialize).call(this);
|
|
20157
19428
|
}
|
|
20158
19429
|
/** @inheritdoc */
|
|
20159
19430
|
update(changedProperties) {
|
|
@@ -20188,6 +19459,18 @@ _M3eLinearProgressIndicatorElement_amplitude = new WeakMap();
|
|
|
20188
19459
|
_M3eLinearProgressIndicatorElement_wavelength = new WeakMap();
|
|
20189
19460
|
_M3eLinearProgressIndicatorElement_resizeController = new WeakMap();
|
|
20190
19461
|
_M3eLinearProgressIndicatorElement_instances = new WeakSet();
|
|
19462
|
+
_M3eLinearProgressIndicatorElement_initialize = function _M3eLinearProgressIndicatorElement_initialize() {
|
|
19463
|
+
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_instances, "m", _M3eLinearProgressIndicatorElement_updateStroke).call(this);
|
|
19464
|
+
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_instances, "m", _M3eLinearProgressIndicatorElement_updateAmplitudeAndWavelength).call(this);
|
|
19465
|
+
const stroke = this.shadowRoot?.querySelector(".stroke");
|
|
19466
|
+
if (stroke) {
|
|
19467
|
+
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_resizeController, "f").observe(stroke);
|
|
19468
|
+
}
|
|
19469
|
+
const amplitudeAndWavelength = this.shadowRoot?.querySelector(".amplitude-and-wavelength");
|
|
19470
|
+
if (amplitudeAndWavelength) {
|
|
19471
|
+
__classPrivateFieldGet(this, _M3eLinearProgressIndicatorElement_resizeController, "f").observe(amplitudeAndWavelength);
|
|
19472
|
+
}
|
|
19473
|
+
};
|
|
20191
19474
|
_M3eLinearProgressIndicatorElement_renderWave = function _M3eLinearProgressIndicatorElement_renderWave(width, height, viewBox, path) {
|
|
20192
19475
|
const masked = this.mode === "indeterminate" || this.mode === "query";
|
|
20193
19476
|
if (!masked && this.value / this.max === 1) {
|
|
@@ -20255,10 +19538,10 @@ _M3eLinearProgressIndicatorElement_drawWavyPath = function _M3eLinearProgressInd
|
|
|
20255
19538
|
M3eLinearProgressIndicatorElement.styles = [ProgressElementIndicatorBase.styles, css`:host { display: block; position: relative; } .progress { width: 100%; height: 100%; position: relative; align-items: center; border-radius: var(--m3e-linear-progress-indicator-shape, ${DesignToken$1.shape.corner.extraSmall}); } .stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .stroke { width: 100%; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { height: var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem); width: var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem); } :host([mode="indeterminate"]) .amplitude-and-wavelength, :host([mode="query"]) .amplitude-and-wavelength { width: var(--m3e-linear-wavy-indeterminate-progress-indicator-wavelength, 1.5rem); } .primary, .secondary, .stop { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } .stop { aspect-ratio: 1; flex: none; } :host([variant="flat"]) { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } :host([variant="wavy"]) { height: calc( var(--m3e-linear-progress-indicator-thickness, 0.25rem) + calc(var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem) * 2) ); } :host([variant="wavy"]) .primary, :host([variant="wavy"]) .secondary { position: relative; height: 100%; overflow: hidden; } :host([variant="wavy"]) .complete { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } :host([variant="wavy"]) .secondary { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .wave { position: absolute; display: block; } .primary .wave, .secondary .wave { margin-inline-start: calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem)); } :host([variant="wavy"][mode="determinate"]) .primary path, :host([variant="wavy"][mode="buffer"]) .primary path { animation: wave-slide 1.5s linear infinite; } @keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem))); } } :host([mode="determinate"]) .progress, :host([mode="buffer"]) .progress { display: flex; overflow: hidden; } :host([mode="determinate"]) .primary, :host([mode="buffer"]) .primary { width: var(--_value, 0px); flex: none; } :host([mode="determinate"]) .gap, :host([mode="buffer"]) .gap { flex-basis: var(--m3e-linear-progress-indicator-thickness, 0.25rem); flex-shrink: 1; } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .buffer { flex: 1 1 auto; } :host([mode="buffer"]) .buffer { flex-shrink: 5; height: 100%; width: 100%; background-color: var(--m3e-progress-indicator-track-color, ${DesignToken$1.color.secondaryContainer}); mask-image: radial-gradient( circle, black 0, black calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2), transparent calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2) ); mask-size: calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2) 100%; mask-repeat: repeat; animation: buffer 250ms linear infinite; } :host(:dir(rtl)[mode="buffer"]) .buffer { transform: scaleX(-1); } @keyframes buffer { from { mask-position: 0 0; } to { mask-position: calc(-1 * calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2)) 0; } } :host([mode="buffer"]) .secondary { width: var(--_buffer-value, 0px); flex: none; } :host([mode="indeterminate"]) .primary, :host([mode="query"]) .primary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-primary 2.1s infinite linear; } :host([variant="wavy"][mode="indeterminate"]) .primary, :host([variant="wavy"][mode="query"]) .primary { animation-name: wavy-indeterminate-primary; } :host([mode="indeterminate"]) .secondary, :host([mode="query"]) .secondary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-secondary 2.1s infinite linear; animation-delay: 1.15s; animation-fill-mode: backwards; } :host([variant="wavy"][mode="indeterminate"]) .secondary, :host([variant="wavy"][mode="query"]) .secondary { animation-name: wavy-indeterminate-secondary; } :host([mode="indeterminate"]) .progress, :host([mode="query"]) .progress { overflow: hidden; position: relative; } :host(:not(:dir(rtl))[mode="query"]) .progress, :host(:dir(rtl)[mode="indeterminate"]) .progress { transform: scaleX(-1); } :host([variant="flat"]) .primary, :host([variant="flat"][mode="indeterminate"]) .secondary, :host([variant="flat"][mode="query"]) .secondary, :host([variant="wavy"]) .complete, .stop { background-color: var(--m3e-progress-indicator-color, ${DesignToken$1.color.primary}); } :host([variant="wavy"]) .progress { color: var(--m3e-progress-indicator-color, ${DesignToken$1.color.primary}); } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .secondary, :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { background-color: var(--m3e-progress-indicator-track-color, ${DesignToken$1.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { color: var(--m3e-progress-indicator-track-color, ${DesignToken$1.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { y: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); border-radius: inherit; } :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } @keyframes indeterminate-primary { 0% { left: -145.167%; width: 8%; } 20% { left: -113.333%; width: 48%; } 60% { left: 56.333%; width: 78%; } 100% { left: 100%; width: 8%; } } @keyframes indeterminate-secondary { 0% { left: -54.888%; width: 8%; } 20% { left: -20%; width: 48%; } 60% { left: 60%; width: 78%; } 100% { left: 160%; width: 8%; } } @keyframes wavy-indeterminate-primary { 0% { transform: translateX(-145.167%); width: 8%; } 20% { transform: translateX(-113.333%); width: 48%; } 60% { transform: translateX(56.333%); width: 78%; } 100% { transform: translateX(100%); width: 8%; } } @keyframes wavy-indeterminate-secondary { 0% { transform: translateX(-54.888%); width: 8%; } 20% { transform: translateX(-20%); width: 48%; } 60% { transform: translateX(60%); width: 78%; } 100% { transform: translateX(160%); width: 8%; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`];
|
|
20256
19539
|
/** @private */
|
|
20257
19540
|
M3eLinearProgressIndicatorElement.__nextMaskId = 0;
|
|
20258
|
-
__decorate([
|
|
19541
|
+
__decorate([property({
|
|
20259
19542
|
reflect: true
|
|
20260
19543
|
})], M3eLinearProgressIndicatorElement.prototype, "mode", void 0);
|
|
20261
|
-
__decorate([
|
|
19544
|
+
__decorate([property({
|
|
20262
19545
|
attribute: "buffer-value",
|
|
20263
19546
|
type: Number,
|
|
20264
19547
|
reflect: true
|
|
@@ -20429,10 +19712,10 @@ _M3eRadioElement_notifySelectionChange = function _M3eRadioElement_notifySelecti
|
|
|
20429
19712
|
};
|
|
20430
19713
|
/** The styles of the element. */
|
|
20431
19714
|
M3eRadioElement.styles = css`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-radio-container-size, 2.5rem) + ${DesignToken$1.density.calc(-3)}); height: calc(var(--m3e-radio-container-size, 2.5rem) + ${DesignToken$1.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-radio-unselected-hover-color, ${DesignToken$1.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-radio-unselected-focus-color, ${DesignToken$1.color.onSurface}); --m3e-ripple-color: var(--m3e-radio-unselected-ripple-color, ${DesignToken$1.color.onSurface}); color: var(--m3e-radio-unselected-icon-color, ${DesignToken$1.color.onSurfaceVariant}); } :host([checked]) .base { --m3e-state-layer-hover-color: var(--m3e-radio-selected-hover-color, ${DesignToken$1.color.primary}); --m3e-state-layer-focus-color: var(--m3e-radio-selected-focus-color, ${DesignToken$1.color.primary}); --m3e-ripple-color: var(--m3e-radio-selected-ripple-color, ${DesignToken$1.color.primary}); color: var(--m3e-radio-selected-icon-color, ${DesignToken$1.color.primary}); } :host([aria-disabled="true"]) .base { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${DesignToken$1.color.onSurface}) 38%, transparent); } :host(:state(-touched):state(-invalid)) .base { --m3e-state-layer-hover-color: var(--m3e-radio-error-hover-color, ${DesignToken$1.color.error}); --m3e-state-layer-focus-color: var(--m3e-radio-error-focus-color, ${DesignToken$1.color.error}); --m3e-ripple-color: var(--m3e-radio-error-ripple-color, ${DesignToken$1.color.error}); color: var(--m3e-radio-error-icon-color, ${DesignToken$1.color.error}); } @media (forced-colors: active) { :host(:not([checked])) .base, :host([checked]) .base { --m3e-state-layer-hover-color: var(--_radio-forced-color, CanvasText); --m3e-state-layer-focus-color: var(--_radio-forced-color, CanvasText); --m3e-ripple-color: var(--_radio-forced-color, CanvasText); color: var(--_radio-forced-color, CanvasText); } :host([aria-disabled="true"]) .base { color: GrayText; } :host(:state(-touched):state(-invalid)) .base { --_radio-forced-color: Highlight; color: Highlight; } }`;
|
|
20432
|
-
__decorate([
|
|
20433
|
-
__decorate([
|
|
20434
|
-
__decorate([
|
|
20435
|
-
__decorate([
|
|
19715
|
+
__decorate([query(".focus-ring")], M3eRadioElement.prototype, "_focusRing", void 0);
|
|
19716
|
+
__decorate([query(".state-layer")], M3eRadioElement.prototype, "_stateLayer", void 0);
|
|
19717
|
+
__decorate([query(".ripple")], M3eRadioElement.prototype, "_ripple", void 0);
|
|
19718
|
+
__decorate([property()], M3eRadioElement.prototype, "value", void 0);
|
|
20436
19719
|
M3eRadioElement = __decorate([customElement$1("m3e-radio")], M3eRadioElement);
|
|
20437
19720
|
|
|
20438
19721
|
var _M3eRadioGroupElement_instances, _M3eRadioGroupElement_directionalitySubscription, _M3eRadioGroupElement_focusOutHandler, _M3eRadioGroupElement_handleSlotChange, _M3eRadioGroupElement_handleKeyDown, _M3eRadioGroupElement_handleChange, _a$5;
|
|
@@ -20745,10 +20028,10 @@ _M3eButtonSegmentElement_handleClick = function _M3eButtonSegmentElement_handleC
|
|
|
20745
20028
|
};
|
|
20746
20029
|
/** The styles of the element. */
|
|
20747
20030
|
M3eButtonSegmentElement.styles = css`:host { display: inline-block; position: relative; vertical-align: middle; outline: none; user-select: none; flex: 1 1 auto; min-width: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: inline-flex; vertical-align: middle; align-items: center; width: 100%; height: calc(var(--m3e-segmented-button-height, 2.5rem) + ${DesignToken$1.density.calc(-3)}); box-sizing: border-box; border-width: var(--m3e-segmented-button-outline-thickness, 1px); border-color: var(--m3e-segmented-button-outline-color, ${DesignToken$1.color.outline}); border-style: solid; border-radius: inherit; border-inline-start-style: var(--_segmented-button-left-border, solid); transition: ${unsafeCSS(`background-color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-segmented-button-padding-start, 1rem); padding-inline-end: var(--m3e-segmented-button-padding-end, 1rem); column-gap: var(--m3e-segmented-button-spacing, 0.5rem); } .label { font-size: var(--m3e-segmented-button-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-segmented-button-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-segmented-button-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-segmented-button-tracking, ${DesignToken$1.typescale.standard.label.large.tracking}); justify-self: center; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${unsafeCSS(`color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } .icon { display: flex; align-items: center; justify-content: center; transition: ${unsafeCSS(`color ${DesignToken$1.motion.duration.short4} ${DesignToken$1.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } :host([checked]:not(:state(-hide-selection))) .wrapper, :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-segmented-button-with-icon-padding-start, 0.75rem); } :host(:not(:disabled)[checked]) .base { background-color: var(--m3e-segmented-button-selected-container-color, ${DesignToken$1.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-segmented-button-selected-container-hover-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-selected-container-focus-color, ${DesignToken$1.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-segmented-button-selected-ripple-color, ${DesignToken$1.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .label { color: var(--m3e-segmented-button-selected-label-text-color, ${DesignToken$1.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .icon { color: var(--m3e-segmented-button-selected-icon-color, ${DesignToken$1.color.onSecondaryContainer}); } :host(:not(:disabled):not([checked])) .base { --m3e-state-layer-hover-color: var( --m3e-segmented-button-unselected-container-hover-color, ${DesignToken$1.color.onSurface} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-unselected-container-focus-color, ${DesignToken$1.color.onSurface} ); --m3e-ripple-color: var(--m3e-segmented-button-unselected-ripple-color, ${DesignToken$1.color.onSurface}); } :host(:not(:disabled):not([checked])) .label { color: var(--m3e-segmented-button-unselected-label-text-color, ${DesignToken$1.color.onSurface}); } :host(:not(:disabled):not([checked])) .icon { color: var(--m3e-segmented-button-unselected-icon-color, ${DesignToken$1.color.onSurface}); } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-segmented-button-spacing, 0.5rem)); transition: margin-inline-start ${DesignToken$1.motion.spring.fastEffects}; } .check, ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-segmented-button-icon-size, 1.125rem) !important; } :host(:not([checked])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:disabled) .base { border-color: color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${DesignToken$1.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ); border-inline-end-color: var( --_segmented-button-disabled-outline-color, color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${DesignToken$1.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ) ); } :host(:disabled) .label { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-label-text-color, ${DesignToken$1.color.onSurface}) var(--m3e-segmented-button-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-icon-color, ${DesignToken$1.color.onSurface}) var(--m3e-segmented-button-disabled-icon-opacity, 38%), transparent ); } @media (prefers-reduced-motion) { .base, .icon, .label { transition: none; } } @media (forced-colors: active) { .base, .icon, .label { transition: none !important; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } :host(:not([selected]):not(:disabled)) .label, :host(:not([selected]):not(:disabled)) .icon { color: ButtonText; } :host(:not(:disabled)[checked]) .base { background-color: ButtonText; } :host(:not(:disabled)[checked]) .label, :host(:not(:disabled)[checked]) .icon { forced-color-adjust: none; color: ButtonFace; } :host { --m3e-segmented-button-outline-color: ButtonText; } }`;
|
|
20748
|
-
__decorate([
|
|
20749
|
-
__decorate([
|
|
20750
|
-
__decorate([
|
|
20751
|
-
__decorate([
|
|
20031
|
+
__decorate([query(".focus-ring")], M3eButtonSegmentElement.prototype, "_focusRing", void 0);
|
|
20032
|
+
__decorate([query(".state-layer")], M3eButtonSegmentElement.prototype, "_stateLayer", void 0);
|
|
20033
|
+
__decorate([query(".ripple")], M3eButtonSegmentElement.prototype, "_ripple", void 0);
|
|
20034
|
+
__decorate([property()], M3eButtonSegmentElement.prototype, "value", void 0);
|
|
20752
20035
|
M3eButtonSegmentElement = M3eButtonSegmentElement_1 = __decorate([customElement$1("m3e-button-segment")], M3eButtonSegmentElement);
|
|
20753
20036
|
|
|
20754
20037
|
var _M3eSegmentedButtonElement_instances, _M3eSegmentedButtonElement_directionalitySubscription, _M3eSegmentedButtonElement_handleSlotChange, _M3eSegmentedButtonElement_handleKeyDown, _M3eSegmentedButtonElement_handleChange, _a$4;
|
|
@@ -20907,10 +20190,10 @@ _M3eSegmentedButtonElement_handleChange = function _M3eSegmentedButtonElement_ha
|
|
|
20907
20190
|
};
|
|
20908
20191
|
/** The styles of the element. */
|
|
20909
20192
|
M3eSegmentedButtonElement.styles = css`:host { display: inline-flex; vertical-align: middle; align-items: center; } ::slotted(:state(-first)) { border-start-start-radius: var(--m3e-segmented-button-start-shape, ${DesignToken$1.shape.corner.full}); border-end-start-radius: var(--m3e-segmented-button-start-shape, ${DesignToken$1.shape.corner.full}); } ::slotted(:state(-last)) { border-start-end-radius: var(--m3e-segmented-button-end-shape, ${DesignToken$1.shape.corner.full}); border-end-end-radius: var(--m3e-segmented-button-end-shape, ${DesignToken$1.shape.corner.full}); } ::slotted(:not(:state(-first))) { --_segmented-button-left-border: none; }`;
|
|
20910
|
-
__decorate([
|
|
20193
|
+
__decorate([property({
|
|
20911
20194
|
type: Boolean
|
|
20912
20195
|
})], M3eSegmentedButtonElement.prototype, "multi", void 0);
|
|
20913
|
-
__decorate([
|
|
20196
|
+
__decorate([property({
|
|
20914
20197
|
attribute: "hide-selection-indicator",
|
|
20915
20198
|
type: Boolean
|
|
20916
20199
|
})], M3eSegmentedButtonElement.prototype, "hideSelectionIndicator", void 0);
|
|
@@ -20956,6 +20239,7 @@ var M3eSelectElement_1;
|
|
|
20956
20239
|
* @attr hide-selection-indicator - Whether to hide the selection indicator for single select options.
|
|
20957
20240
|
* @attr multi - Whether multiple options can be selected.
|
|
20958
20241
|
* @attr name - The name that identifies the element when submitting the associated form.
|
|
20242
|
+
* @attr panel-class - Class or list of classes to be applied to the select's overlay panel.
|
|
20959
20243
|
* @attr required - Whether the element is required.
|
|
20960
20244
|
*
|
|
20961
20245
|
* @fires input - Emitted when the selected state changes.
|
|
@@ -21014,6 +20298,11 @@ let M3eSelectElement = M3eSelectElement_1 = class M3eSelectElement extends Focus
|
|
|
21014
20298
|
* @default false
|
|
21015
20299
|
*/
|
|
21016
20300
|
this.multi = false;
|
|
20301
|
+
/**
|
|
20302
|
+
* Class or list of classes to be applied to the select's overlay panel.
|
|
20303
|
+
* @default ""
|
|
20304
|
+
*/
|
|
20305
|
+
this.panelClass = "";
|
|
21017
20306
|
new ResizeController$1(this, {
|
|
21018
20307
|
callback: () => {
|
|
21019
20308
|
if (__classPrivateFieldGet(this, _M3eSelectElement_menu, "f")) {
|
|
@@ -21309,6 +20598,11 @@ _M3eSelectElement_showMenu = function _M3eSelectElement_showMenu() {
|
|
|
21309
20598
|
__classPrivateFieldGet(this, _M3eSelectElement_menu, "f").ariaMultiSelectable = "true";
|
|
21310
20599
|
}
|
|
21311
20600
|
__classPrivateFieldGet(this, _M3eSelectElement_menu, "f").id = __classPrivateFieldGet(this, _M3eSelectElement_listId, "f");
|
|
20601
|
+
if (this.panelClass) {
|
|
20602
|
+
for (const klass of this.panelClass.split(/\s+/).map(d => d.trim()).filter(Boolean)) {
|
|
20603
|
+
__classPrivateFieldGet(this, _M3eSelectElement_menu, "f").classList.add(klass);
|
|
20604
|
+
}
|
|
20605
|
+
}
|
|
21312
20606
|
__classPrivateFieldGet(this, _M3eSelectElement_menu, "f").style.overflowX = "hidden";
|
|
21313
20607
|
__classPrivateFieldGet(this, _M3eSelectElement_menu, "f").style.minWidth = __classPrivateFieldGet(this, _M3eSelectElement_instances, "a", _M3eSelectElement_minMenuWidth_get);
|
|
21314
20608
|
__classPrivateFieldGet(this, _M3eSelectElement_menu, "f").addEventListener("toggle", __classPrivateFieldGet(this, _M3eSelectElement_menuToggleHandler, "f"));
|
|
@@ -21388,14 +20682,17 @@ _M3eSelectElement_selectOption = function _M3eSelectElement_selectOption(option)
|
|
|
21388
20682
|
M3eSelectElement.styles = css`:host { display: inline-flex; vertical-align: middle; outline: none; position: relative; font-size: var(--m3e-form-field-font-size, ${DesignToken$1.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${DesignToken$1.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${DesignToken$1.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${DesignToken$1.typescale.standard.body.large.tracking}); min-height: var(--m3e-form-field-line-height, ${DesignToken$1.typescale.standard.body.large.lineHeight}); border-radius: var(--m3e-select-container-shape, ${DesignToken$1.shape.corner.extraSmall}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) { color: color-mix( in srgb, var(--m3e-select-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-select-disabled-color-opacity, 38%), transparent ); } .options { display: none; } .base { flex: 1 1 auto; display: inline-flex; align-items: center; overflow: hidden; } .arrow-wrapper { display: flex; align-items: center; justify-content: center; margin-top: var(--_select-arrow-margin-top); } ::slotted([slot="arrow"]), .arrow { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-select-icon-size, 1.5rem); } :host(:state(-open)) .focus-ring { display: none; }`;
|
|
21389
20683
|
/** @private */
|
|
21390
20684
|
M3eSelectElement.__nextId = 0;
|
|
21391
|
-
__decorate([
|
|
21392
|
-
__decorate([
|
|
20685
|
+
__decorate([query(".focus-ring")], M3eSelectElement.prototype, "_focusRing", void 0);
|
|
20686
|
+
__decorate([property({
|
|
21393
20687
|
attribute: "hide-selection-indicator",
|
|
21394
20688
|
type: Boolean
|
|
21395
20689
|
})], M3eSelectElement.prototype, "hideSelectionIndicator", void 0);
|
|
21396
|
-
__decorate([
|
|
20690
|
+
__decorate([property({
|
|
21397
20691
|
type: Boolean
|
|
21398
20692
|
})], M3eSelectElement.prototype, "multi", void 0);
|
|
20693
|
+
__decorate([property({
|
|
20694
|
+
attribute: "panel-class"
|
|
20695
|
+
})], M3eSelectElement.prototype, "panelClass", void 0);
|
|
21399
20696
|
M3eSelectElement = M3eSelectElement_1 = __decorate([customElement$1("m3e-select")], M3eSelectElement);
|
|
21400
20697
|
|
|
21401
20698
|
/**
|
|
@@ -21526,7 +20823,7 @@ let M3eShapeElement = class M3eShapeElement extends LitElement {
|
|
|
21526
20823
|
};
|
|
21527
20824
|
/** The styles of the element. */
|
|
21528
20825
|
M3eShapeElement.styles = [ShapeStyle, ShapeNameStyle];
|
|
21529
|
-
__decorate([
|
|
20826
|
+
__decorate([property({
|
|
21530
20827
|
reflect: true
|
|
21531
20828
|
})], M3eShapeElement.prototype, "name", void 0);
|
|
21532
20829
|
M3eShapeElement = __decorate([customElement$1("m3e-shape")], M3eShapeElement);
|
|
@@ -21571,7 +20868,7 @@ var _M3eSlideGroupElement_instances, _M3eSlideGroupElement_directionalitySubscri
|
|
|
21571
20868
|
* @cssprop --m3e-slide-group-divider-top - Adds top border to content container for visual separation.
|
|
21572
20869
|
* @cssprop --m3e-slide-group-divider-bottom - Adds bottom border to content container for visual separation.
|
|
21573
20870
|
*/
|
|
21574
|
-
let M3eSlideGroupElement = class M3eSlideGroupElement extends LitElement {
|
|
20871
|
+
let M3eSlideGroupElement = class M3eSlideGroupElement extends ReconnectedCallback$1(LitElement) {
|
|
21575
20872
|
constructor() {
|
|
21576
20873
|
super(...arguments);
|
|
21577
20874
|
_M3eSlideGroupElement_instances.add(this);
|
|
@@ -21625,6 +20922,11 @@ let M3eSlideGroupElement = class M3eSlideGroupElement extends LitElement {
|
|
|
21625
20922
|
__classPrivateFieldGet(this, _M3eSlideGroupElement_directionalitySubscription, "f")?.call(this);
|
|
21626
20923
|
}
|
|
21627
20924
|
/** @inheritdoc */
|
|
20925
|
+
reconnectedCallback() {
|
|
20926
|
+
super.reconnectedCallback();
|
|
20927
|
+
__classPrivateFieldGet(this, _M3eSlideGroupElement_resizeController, "f").observe(this.scrollContainer);
|
|
20928
|
+
}
|
|
20929
|
+
/** @inheritdoc */
|
|
21628
20930
|
firstUpdated(_changedProperties) {
|
|
21629
20931
|
super.firstUpdated(_changedProperties);
|
|
21630
20932
|
__classPrivateFieldGet(this, _M3eSlideGroupElement_resizeController, "f").observe(this.scrollContainer);
|
|
@@ -21704,25 +21006,25 @@ _M3eSlideGroupElement_pageEnd = function _M3eSlideGroupElement_pageEnd() {
|
|
|
21704
21006
|
};
|
|
21705
21007
|
/** The styles of the element. */
|
|
21706
21008
|
M3eSlideGroupElement.styles = css`:host { display: flex; flex-wrap: nowrap; overflow: hidden; } :host([vertical]) { flex-direction: column; } .prev-button, .next-button { flex: none; --m3e-icon-button-small-shape-round: 0px; --m3e-icon-button-small-shape-square: 0px; --m3e-icon-button-small-shape-pressed-morph: 0px; --m3e-focus-ring-visibility: hidden; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-slide-group-button-icon-size, var(--m3e-icon-button-small-icon-size, 1.5rem)) !important; } :host(:not([vertical])) .prev-button, :host(:not([vertical])) .next-button { --m3e-icon-button-small-container-height: 100%; width: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button, :host([vertical]) .next-button { width: unset; --m3e-icon-button-small-container-height: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button .icon, :host([vertical]) .next-button .icon { transform: rotate(90deg); } .content { flex: 1 1 auto; display: inherit; flex-wrap: inherit; flex-direction: inherit; overflow: inherit; position: relative; border-top: var(--m3e-slide-group-divider-top); border-bottom: var(--m3e-slide-group-divider-bottom); }`;
|
|
21707
|
-
__decorate([
|
|
21708
|
-
__decorate([
|
|
21709
|
-
__decorate([
|
|
21710
|
-
__decorate([
|
|
21711
|
-
__decorate([
|
|
21009
|
+
__decorate([query(".content")], M3eSlideGroupElement.prototype, "scrollContainer", void 0);
|
|
21010
|
+
__decorate([state()], M3eSlideGroupElement.prototype, "_canPage", void 0);
|
|
21011
|
+
__decorate([state()], M3eSlideGroupElement.prototype, "_canPageStart", void 0);
|
|
21012
|
+
__decorate([state()], M3eSlideGroupElement.prototype, "_canPageEnd", void 0);
|
|
21013
|
+
__decorate([property({
|
|
21712
21014
|
type: Boolean,
|
|
21713
21015
|
reflect: true
|
|
21714
21016
|
})], M3eSlideGroupElement.prototype, "disabled", void 0);
|
|
21715
|
-
__decorate([
|
|
21017
|
+
__decorate([property({
|
|
21716
21018
|
type: Boolean,
|
|
21717
21019
|
reflect: true
|
|
21718
21020
|
})], M3eSlideGroupElement.prototype, "vertical", void 0);
|
|
21719
|
-
__decorate([
|
|
21021
|
+
__decorate([property({
|
|
21720
21022
|
type: Number
|
|
21721
21023
|
})], M3eSlideGroupElement.prototype, "threshold", void 0);
|
|
21722
|
-
__decorate([
|
|
21024
|
+
__decorate([property({
|
|
21723
21025
|
attribute: "previous-page-label"
|
|
21724
21026
|
})], M3eSlideGroupElement.prototype, "previousPageLabel", void 0);
|
|
21725
|
-
__decorate([
|
|
21027
|
+
__decorate([property({
|
|
21726
21028
|
attribute: "next-page-label"
|
|
21727
21029
|
})], M3eSlideGroupElement.prototype, "nextPageLabel", void 0);
|
|
21728
21030
|
__decorate([debounce$1(40)], M3eSlideGroupElement.prototype, "_updatePaging", null);
|
|
@@ -21828,8 +21130,8 @@ _M3eSliderThumbElement_labelText_get = function _M3eSliderThumbElement_labelText
|
|
|
21828
21130
|
M3eSliderThumbElement.styles = css`:host { display: block; box-sizing: border-box; position: absolute; outline: none; top: 0; bottom: 0; border-radius: var(--m3e-slider-thumb-shape, ${DesignToken$1.shape.corner.full}); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; border-radius: inherit; } .touch { position: absolute; height: 3rem; left: 0; right: 0; touch-action: none; } .wrapper { display: inline-flex; justify-content: center; height: 100%; border-radius: inherit; width: calc(var(--m3e-slider-thumb-width, 0.25rem) + calc(var(--m3e-slider-thumb-padding, 0.375em) * 2)); } .focus-ring { top: calc(0px - var(--m3e-focus-ring-thickness, 3px)); bottom: calc(0px - var(--m3e-focus-ring-thickness, 3px)); left: var(--m3e-focus-ring-thickness, 3px); right: var(--m3e-focus-ring-thickness, 3px); } .label { user-select: none; position: absolute; display: flex; align-items: center; justify-content: center; visibility: var(--_slider-label-visibility, hidden); opacity: var(--_slider-label-opacity, 0); transform: var(--_slider-label-transform, scale(0)); transition: ${unsafeCSS(`opacity ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard},
|
|
21829
21131
|
transform ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard},
|
|
21830
21132
|
visibility ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; width: var(--m3e-slider-label-width, 3rem); height: var(--_m3e-slider-label-height, 2.75rem); top: calc(0px - var(--_m3e-slider-label-height, 2.75rem) - var(--_m3e-slider-label-margin, 0.25rem)); inset-inline-start: calc(0px - 100%); border-radius: var(--m3e-slider-label-shape, ${DesignToken$1.shape.corner.full}); background-color: var(--m3e-slider-label-container-color, ${DesignToken$1.color.inverseSurface}); color: var(--m3e-slider-label-color, ${DesignToken$1.color.inverseOnSurface}); font-size: var(--m3e-slider-label-font-size, ${DesignToken$1.typescale.standard.label.medium.fontSize}); font-weight: var(--m3e-slider-label-font-weight, ${DesignToken$1.typescale.standard.label.medium.fontWeight}); line-height: var(--m3e-slider-label-line-height, ${DesignToken$1.typescale.standard.label.medium.lineHeight}); letter-spacing: var(--m3e-slider-label-tracking, ${DesignToken$1.typescale.standard.label.medium.tracking}); } @starting-style { .label { opacity: 0; transform: scale(0); } } .handle { height: 100%; width: var(--m3e-slider-thumb-width, 0.25rem); border-radius: inherit; transition: ${unsafeCSS(`width ${DesignToken$1.motion.duration.short2} ${DesignToken$1.motion.easing.standard}`)}; } :host(:active:not([aria-disabled="true"])) .handle { width: var(--m3e-slider-thumb-pressed-width, 2px); } :host(:not([aria-disabled="true"])) .handle { background-color: var(--m3e-slider-thumb-color, ${DesignToken$1.color.primary}); } :host([aria-disabled="true"]) .handle { opacity: var(--m3e-slider-thumb-disabled-opacity, 38%); background-color: var(--m3e-slider-thumb-disabled-color, ${DesignToken$1.color.onSurface}); } @media (prefers-reduced-motion) { .label { transition: none; } } @media (forced-colors: active) { .label { forced-color-adjust: none; background-color: CanvasText; color: Canvas; } :host(:not([aria-disabled="true"])) .handle { background-color: CanvasText; } :host([aria-disabled="true"]) .handle { opacity: unset; background-color: GrayText; } }`;
|
|
21831
|
-
__decorate([
|
|
21832
|
-
__decorate([
|
|
21133
|
+
__decorate([query(".focus-ring")], M3eSliderThumbElement.prototype, "_focusRing", void 0);
|
|
21134
|
+
__decorate([property({
|
|
21833
21135
|
type: Number,
|
|
21834
21136
|
reflect: true
|
|
21835
21137
|
})], M3eSliderThumbElement.prototype, "value", void 0);
|
|
@@ -22007,7 +21309,7 @@ let M3eSliderElement = class M3eSliderElement extends AttachInternals$1(LitEleme
|
|
|
22007
21309
|
}
|
|
22008
21310
|
/** @inheritdoc */
|
|
22009
21311
|
render() {
|
|
22010
|
-
return html`<div class="base" tabindex="${
|
|
21312
|
+
return html`<div class="base" tabindex="${ifDefined(!this.disabled ? "-1" : undefined)}" @pointerdown="${__classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_handlePointerDown)}" @pointermove="${__classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_handlePointerMove)}" @pointerup="${__classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_handlePointerUp)}" @keydown="${__classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_handleKeyDown)}" @value-change="${__classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_handleThumbChange)}"><div class="track" aria-hidden="true"><div class="track-inactive start"></div><div class="track-active"></div><div class="track-inactive end"></div></div><div class="ticks" aria-hidden="true">${this._ticks.map(x => __classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_renderTick).call(this, x))}</div><slot @slotchange="${__classPrivateFieldGet(this, _M3eSliderElement_instances, "m", _M3eSliderElement_handleSlotChange)}"></slot></div>`;
|
|
22011
21313
|
}
|
|
22012
21314
|
};
|
|
22013
21315
|
_M3eSliderElement_directionalitySubscription = new WeakMap();
|
|
@@ -22284,32 +21586,32 @@ _M3eSliderElement_changeThumb = function _M3eSliderElement_changeThumb(thumb, va
|
|
|
22284
21586
|
/** The styles of the element. */
|
|
22285
21587
|
M3eSliderElement.styles = css`:host { display: inline-block; vertical-align: middle; min-inline-size: var(--m3e-slider-min-width, 12.5rem); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([disabled])) { cursor: pointer; } :host([size="extra-small"]), :host([size="small"]) { height: var(--m3e-slider-small-height, 2.75rem); } :host(:not(:dir(rtl))[size="extra-small"]) .base, :host(:not(:dir(rtl))[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${DesignToken$1.shape.corner.smallStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.smallStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${DesignToken$1.shape.corner.smallEnd} ); } :host(:dir(rtl)[size="extra-small"]) .base, :host(:dir(rtl)[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${DesignToken$1.shape.corner.smallEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.smallEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${DesignToken$1.shape.corner.smallStart} ); } :host([size="extra-small"]) .track { height: calc(var(--m3e-slider-extra-small-track-height, 1rem)); } :host([size="small"]) .track { height: calc(var(--m3e-slider-small-track-height, 1.5rem)); } :host([size="medium"]) { height: var(--m3e-slider-medium-height, 3.25rem); } :host(:not(:dir(rtl))[size="medium"]) .base { --_slider-active-track-shape: var( --m3e-slider-medium-active-track-shape, ${DesignToken$1.shape.corner.mediumStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.mediumStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${DesignToken$1.shape.corner.mediumEnd} ); } :host(:dir(rtl)[size="medium"]) .base { --_slider-active-track-shape: var(--m3e-slider-medium-active-track-shape, ${DesignToken$1.shape.corner.mediumEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.mediumEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${DesignToken$1.shape.corner.mediumStart} ); } :host([size="medium"]) .track { height: var(--m3e-slider-medium-track-height, 2.5rem); } :host([size="large"]) { height: var(--m3e-slider-large-height, 4.25rem); } :host(:not(:dir(rtl))[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${DesignToken$1.shape.corner.largeStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.largeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${DesignToken$1.shape.corner.largeEnd} ); } :host(:dir(rtl)[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${DesignToken$1.shape.corner.largeEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.largeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${DesignToken$1.shape.corner.largeStart} ); } :host([size="large"]) .track { height: var(--m3e-slider-large-track-height, 3.5rem); } :host([size="extra-large"]) { height: var(--m3e-slider-extra-large-height, 6.75rem); } :host(:not(:dir(rtl))[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${DesignToken$1.shape.corner.extraLargeStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.extraLargeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${DesignToken$1.shape.corner.extraLargeEnd} ); } :host(:dir(rtl)[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${DesignToken$1.shape.corner.extraLargeEnd} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${DesignToken$1.shape.corner.extraLargeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${DesignToken$1.shape.corner.extraLargeStart} ); } :host([size="extra-large"]) .track { height: var(--m3e-slider-extra-large-track-height, 6rem); } :host(:state(-animating)) .track-active, :host(:state(-animating)) .track-inactive.start, :host(:state(-animating)) .track-inactive.end { transition: ${unsafeCSS(`margin-inline-start ${DesignToken$1.motion.spring.fastEffects},
|
|
22286
21588
|
width ${DesignToken$1.motion.spring.fastEffects}`)}; } .base { display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: inherit; outline: none; touch-action: none; } .track { position: relative; flex: 1 1 auto; touch-action: none; } .track-inactive, .track-active { position: absolute; height: 100%; touch-action: none; } .track-active { margin-inline-start: var(--_slider-active-track-offset, 0px); width: var(--_slider-active-track-size, 0px); border-radius: var(--_slider-active-track-middle-shape, var(--_slider-active-track-shape)); } .track-inactive.start { width: var(--_slider-inactive-track-before-size, 0px); border-radius: var(--_slider-inactive-track-start-shape); } .track-inactive.end { margin-inline-start: var(--_slider-inactive-track-after-offset, 0px); width: var(--_slider-inactive-track-after-size, 0px); border-radius: var(--_slider-inactive-track-end-shape); } .ticks { position: absolute; width: 100%; height: var(--m3e-slider-tick-size, 0.25rem); overflow: visible; touch-action: none; } .tick { position: absolute; top: 0; touch-action: none; inset-inline-start: calc(var(--m3e-slider-tick-size, 0.25rem) + calc(var(--m3e-slider-tick-size, 0.25rem) / 2)); width: var(--m3e-slider-tick-size, 0.25rem); height: var(--m3e-slider-tick-size, 0.25rem); border-radius: var(--m3e-slider-tick-shape, ${DesignToken$1.shape.corner.full}); } :host(:not([disabled])) .track-inactive { background-color: var(--m3e-slider-inactive-track-color, ${DesignToken$1.color.secondaryContainer}); } :host([disabled]) .track-inactive { background-color: color-mix( in srgb, var(--m3e-slider-disabled-inactive-track-color, ${DesignToken$1.color.onSurface}) var(--m3e-slider-disabled-inactive-track-opacity, 12%), transparent ); } :host(:not([disabled])) .track-active { background-color: var(--m3e-slider-active-track-color, ${DesignToken$1.color.primary}); } :host([disabled]) .track-active { background-color: color-mix( in srgb, var(--m3e-slider-disabled-active-track-color, ${DesignToken$1.color.onSurface}) var(--m3e-slider-disabled-active-track-opacity, 38%), transparent ); } :host(:not([disabled])) .tick.active { background-color: var(--m3e-slider-tick-active-color, ${DesignToken$1.color.onPrimary}); } :host([disabled]) .tick.active { background-color: var(--m3e-slider-disabled-tick-active-color, ${DesignToken$1.color.inverseOnSurface}); } :host(:not([disabled])) .tick.inactive { background-color: var(--m3e-slider-tick-inactive-color, ${DesignToken$1.color.onSecondaryContainer}); } :host([disabled]) .tick.inactive { background-color: var(--m3e-slider-disabled-tick-inactive-color, ${DesignToken$1.color.onSurface}); } :host(:not([discrete])) .tick.active { display: none; } :host(:hover[labelled]) .base, :host(:focus-within[labelled]) .base { --_slider-label-visibility: visible; --_slider-label-opacity: 1; --_slider-label-transform: scale(1); } @media (forced-colors: active) { :host(:not([disabled])) .track-inactive { background-color: unset; } :host(:not([disabled])) .base.range .track-inactive.start, :host(:not([disabled])) .track-inactive.end { border: 1px solid CanvasText; box-sizing: border-box; } :host(:not([disabled])) .tick.inactive { background-color: CanvasText; } :host(:not([disabled])) .tick.active { background-color: Canvas; } :host(:not([disabled])) .track-active { background-color: CanvasText; } :host([disabled]) .base.range .track-inactive.start, :host([disabled]) .track-inactive.end { border: 1px solid GrayText; box-sizing: border-box; } :host([disabled]) .track-active { background-color: GrayText; } :host([disabled]) .tick.inactive { background-color: GrayText; } :host([disabled]) .tick.active { background-color: Canvas; } }`;
|
|
22287
|
-
__decorate([
|
|
22288
|
-
__decorate([
|
|
22289
|
-
__decorate([
|
|
21589
|
+
__decorate([query(".base")], M3eSliderElement.prototype, "_base", void 0);
|
|
21590
|
+
__decorate([state()], M3eSliderElement.prototype, "_ticks", void 0);
|
|
21591
|
+
__decorate([property({
|
|
22290
21592
|
reflect: true
|
|
22291
21593
|
})], M3eSliderElement.prototype, "size", void 0);
|
|
22292
|
-
__decorate([
|
|
21594
|
+
__decorate([property({
|
|
22293
21595
|
type: Boolean,
|
|
22294
21596
|
reflect: true
|
|
22295
21597
|
})], M3eSliderElement.prototype, "disabled", void 0);
|
|
22296
|
-
__decorate([
|
|
21598
|
+
__decorate([property({
|
|
22297
21599
|
type: Boolean,
|
|
22298
21600
|
reflect: true
|
|
22299
21601
|
})], M3eSliderElement.prototype, "discrete", void 0);
|
|
22300
|
-
__decorate([
|
|
21602
|
+
__decorate([property({
|
|
22301
21603
|
type: Number
|
|
22302
21604
|
})], M3eSliderElement.prototype, "min", void 0);
|
|
22303
|
-
__decorate([
|
|
21605
|
+
__decorate([property({
|
|
22304
21606
|
type: Number
|
|
22305
21607
|
})], M3eSliderElement.prototype, "max", void 0);
|
|
22306
|
-
__decorate([
|
|
21608
|
+
__decorate([property({
|
|
22307
21609
|
type: Number
|
|
22308
21610
|
})], M3eSliderElement.prototype, "step", void 0);
|
|
22309
|
-
__decorate([
|
|
21611
|
+
__decorate([property({
|
|
22310
21612
|
type: Boolean
|
|
22311
21613
|
})], M3eSliderElement.prototype, "labelled", void 0);
|
|
22312
|
-
__decorate([
|
|
21614
|
+
__decorate([property({
|
|
22313
21615
|
attribute: false
|
|
22314
21616
|
})], M3eSliderElement.prototype, "displayWith", void 0);
|
|
22315
21617
|
M3eSliderElement = __decorate([customElement$1("m3e-slider")], M3eSliderElement);
|
|
@@ -22445,15 +21747,15 @@ M3eSnackbarElement.styles = css`:host { position: fixed; top: calc(100vh - var(-
|
|
|
22445
21747
|
visibility ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } :host::backdrop { background-color: transparent; } :host(:popover-open) { visibility: visible; opacity: 1; transform: scale(1); } @starting-style { :host(:popover-open) { opacity: 0; transform: scale(0.8); } } .base { display: inline-flex; align-items: center; flex: 1 1 auto; box-sizing: border-box; padding: var(--m3e-snackbar-padding, 0 1rem 0 1rem); border-radius: var(--m3e-snackbar-container-shape, ${DesignToken$1.shape.corner.extraSmall}); background-color: var(--m3e-snackbar-container-color, ${DesignToken$1.color.inverseSurface}); font-size: var(--m3e-snackbar-supporting-text-font-size, ${DesignToken$1.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-snackbar-supporting-text-font-weight, ${DesignToken$1.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-snackbar-supporting-text-line-height, ${DesignToken$1.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-snackbar-supporting-text-tracking, ${DesignToken$1.typescale.standard.label.large.tracking} ); color: var(--m3e-snackbar-supporting-text-color, ${DesignToken$1.color.inverseOnSurface}); --m3e-text-button-label-text-color: var(--m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary}); --m3e-text-button-hover-label-text-color: var( --m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary} ); --m3e-text-button-hover-state-layer-color: var( --m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary} ); --m3e-text-button-focus-label-text-color: var( --m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary} ); --m3e-text-button-focus-state-layer-color: var( --m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary} ); --m3e-text-button-pressed-label-text-color: var( --m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary} ); --m3e-text-button-pressed-state-layer-color: var( --m3e-snackbar-action-text-color, ${DesignToken$1.color.inversePrimary} ); --m3e-standard-icon-button-icon-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-icon-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-state-layer-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-icon-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-state-layer-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-icon-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-state-layer-color: var( --m3e-snackbar-close-icon-color, ${DesignToken$1.color.inverseOnSurface} ); } :host([dismissible]) .base { padding-inline-end: 0.5rem; } .supporting-text { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; margin-block: var(--m3e-snackbar-supporting-text-margin-block, 0.875rem); } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host { background-color: Canvas; color: CanvasText; border-radius: ${DesignToken$1.shape.corner.small}; box-sizing: border-box; outline: 1px solid CanvasText; } }`;
|
|
22446
21748
|
/** @private */
|
|
22447
21749
|
M3eSnackbarElement.__current = null;
|
|
22448
|
-
__decorate([
|
|
21750
|
+
__decorate([property({
|
|
22449
21751
|
type: Number
|
|
22450
21752
|
})], M3eSnackbarElement.prototype, "duration", void 0);
|
|
22451
|
-
__decorate([
|
|
22452
|
-
__decorate([
|
|
21753
|
+
__decorate([property()], M3eSnackbarElement.prototype, "action", void 0);
|
|
21754
|
+
__decorate([property({
|
|
22453
21755
|
type: Boolean,
|
|
22454
21756
|
reflect: true
|
|
22455
21757
|
})], M3eSnackbarElement.prototype, "dismissible", void 0);
|
|
22456
|
-
__decorate([
|
|
21758
|
+
__decorate([property({
|
|
22457
21759
|
attribute: "close-label"
|
|
22458
21760
|
})], M3eSnackbarElement.prototype, "closeLabel", void 0);
|
|
22459
21761
|
M3eSnackbarElement = M3eSnackbarElement_1 = __decorate([customElement$1("m3e-snackbar")], M3eSnackbarElement);
|
|
@@ -22732,11 +22034,11 @@ _M3eSplitButtonElement_updateButtonShape = function _M3eSplitButtonElement_updat
|
|
|
22732
22034
|
};
|
|
22733
22035
|
/** The styles of the element. */
|
|
22734
22036
|
M3eSplitButtonElement.styles = css`:host { display: inline-flex; vertical-align: middle; } ::slotted([slot="leading-button"]) { flex: 1 1 auto; min-width: 0; --_button-start-shape-pressed-morph: var(--_leading-button-shape, ${DesignToken$1.shape.corner.full}); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"])) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-unselected-leading-space, 0.8125rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-unselected-trailing-space, 1.0625rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-unselected-leading-space, 1.625rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-unselected-trailing-space, 2rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-unselected-leading-space, 2.3125rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-unselected-trailing-space, 3.0625rem ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-selected-leading-space, 0.9375rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-selected-trailing-space, 0.9375rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-selected-leading-space, 1.8125rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-selected-trailing-space, 1.8125rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-selected-leading-space, 2.6875rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-selected-trailing-space, 2.6875rem ); } ::slotted([slot="leading-button"]:not(:hover)), ::slotted([slot="leading-button"]:disabled), ::slotted([slot="leading-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${DesignToken$1.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${DesignToken$1.shape.corner.medium} ); } ::slotted([slot="leading-button"]:hover:not(:disabled):not([disabled-interactive])), ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):hover:not(:disabled):not([disabled-interactive])) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-hover-size, ${DesignToken$1.shape.corner.small} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-hover-size, ${DesignToken$1.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-hover-size, ${DesignToken$1.shape.corner.medium} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-hover-size, ${DesignToken$1.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-hover-size, ${DesignToken$1.shape.corner.largeIncreased} ); } ::slotted([slot="leading-button"]), ::slotted([slot="trailing-button"]) { --m3e-connected-button-group-extra-small-inner-pressed-shape: var( --m3e-split-button-extra-small-inner-corner-pressed-size, ${DesignToken$1.shape.corner.small} ); --m3e-connected-button-group-small-inner-pressed-shape: var( --m3e-split-button-small-inner-corner-pressed-size, ${DesignToken$1.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-pressed-shape: var( --m3e-split-button-medium-inner-corner-pressed-size, ${DesignToken$1.shape.corner.medium} ); --m3e-connected-button-group-large-inner-pressed-shape: var( --m3e-split-button-large-inner-corner-pressed-size, ${DesignToken$1.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-pressed-shape: var( --m3e-split-button-extra-large-inner-corner-pressed-size, ${DesignToken$1.shape.corner.largeIncreased} ); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):not(:hover)), ::slotted([slot="trailing-button"]:disabled), ::slotted([slot="trailing-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${DesignToken$1.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${DesignToken$1.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${DesignToken$1.shape.corner.medium} ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --_icon-button-icon-transform: rotate(180deg); --_button-rounded-start-shape: var(--_trailing-button-shape, ${DesignToken$1.shape.corner.full}); --_button-rounded-end-shape: var(--_trailing-button-shape, ${DesignToken$1.shape.corner.full}); } ::slotted([slot="trailing-button"]) { --_button-end-shape-pressed-morph: var(--_trailing-button-shape, ${DesignToken$1.shape.corner.full}); } .base { --m3e-icon-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${DesignToken$1.density.calc(0)} ); --m3e-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${DesignToken$1.density.calc(0)} ); --m3e-icon-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${DesignToken$1.density.calc(-1)} ); --m3e-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${DesignToken$1.density.calc(-1)} ); --m3e-icon-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${DesignToken$1.density.calc(-2)} ); --m3e-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${DesignToken$1.density.calc(-2)} ); --m3e-icon-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${DesignToken$1.density.calc(-3)} ); --m3e-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${DesignToken$1.density.calc(-3)} ); --m3e-icon-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${DesignToken$1.density.calc(-3)} ); --m3e-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${DesignToken$1.density.calc(-3)} ); } :host([size="extra-small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-small-between-spacing, 0.125rem); } :host([size="small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-small-between-spacing, 0.125rem); } :host([size="medium"]).base { --m3e-connected-button-group-spacing: var(--m3e-split-button-medium-between-spacing, 0.125rem); } :host([size="large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-large-between-spacing, 0.125rem); } :host([size="extra-large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-large-between-spacing, 0.125rem); }`;
|
|
22735
|
-
__decorate([
|
|
22736
|
-
__decorate([
|
|
22037
|
+
__decorate([query(".base")], M3eSplitButtonElement.prototype, "_base", void 0);
|
|
22038
|
+
__decorate([property({
|
|
22737
22039
|
reflect: true
|
|
22738
22040
|
})], M3eSplitButtonElement.prototype, "variant", void 0);
|
|
22739
|
-
__decorate([
|
|
22041
|
+
__decorate([property({
|
|
22740
22042
|
reflect: true
|
|
22741
22043
|
})], M3eSplitButtonElement.prototype, "size", void 0);
|
|
22742
22044
|
M3eSplitButtonElement = __decorate([customElement$1("m3e-split-button")], M3eSplitButtonElement);
|
|
@@ -22816,7 +22118,7 @@ let M3eStepPanelElement = class M3eStepPanelElement extends Role$1(LitElement, "
|
|
|
22816
22118
|
};
|
|
22817
22119
|
/** The styles of the element. */
|
|
22818
22120
|
M3eStepPanelElement.styles = css`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`;
|
|
22819
|
-
__decorate([
|
|
22121
|
+
__decorate([state()], M3eStepPanelElement.prototype, "active", void 0);
|
|
22820
22122
|
M3eStepPanelElement = __decorate([customElement$1("m3e-step-panel")], M3eStepPanelElement);
|
|
22821
22123
|
|
|
22822
22124
|
var _M3eStepElement_instances, _M3eStepElement_clickHandler, _M3eStepElement_renderIcon, _M3eStepElement_handleClick;
|
|
@@ -23051,26 +22353,26 @@ _M3eStepElement_handleClick = function _M3eStepElement_handleClick(e) {
|
|
|
23051
22353
|
M3eStepElement.styles = css`:host { display: block; outline: none; min-width: 0px; position: relative; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { min-width: inherit; position: relative; border-radius: var(--m3e-step-shape, ${DesignToken$1.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${DesignToken$1.color.primary}); color: var(--m3e-step-selected-icon-color, ${DesignToken$1.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${DesignToken$1.color.primary}); color: var(--m3e-step-completed-icon-color, ${DesignToken$1.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${DesignToken$1.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${DesignToken$1.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${DesignToken$1.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${DesignToken$1.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${DesignToken$1.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${DesignToken$1.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${DesignToken$1.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${DesignToken$1.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${DesignToken$1.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${DesignToken$1.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${DesignToken$1.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${DesignToken$1.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${DesignToken$1.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${DesignToken$1.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${DesignToken$1.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${DesignToken$1.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${DesignToken$1.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${DesignToken$1.color.onSurface}) 38%, transparent); }`;
|
|
23052
22354
|
/** @private */
|
|
23053
22355
|
M3eStepElement.__nextId = 0;
|
|
23054
|
-
__decorate([
|
|
23055
|
-
__decorate([
|
|
23056
|
-
__decorate([
|
|
23057
|
-
__decorate([
|
|
22356
|
+
__decorate([query(".focus-ring")], M3eStepElement.prototype, "_focusRing", void 0);
|
|
22357
|
+
__decorate([query(".state-layer")], M3eStepElement.prototype, "_stateLayer", void 0);
|
|
22358
|
+
__decorate([query(".ripple")], M3eStepElement.prototype, "_ripple", void 0);
|
|
22359
|
+
__decorate([property({
|
|
23058
22360
|
type: Boolean,
|
|
23059
22361
|
reflect: true
|
|
23060
22362
|
})], M3eStepElement.prototype, "optional", void 0);
|
|
23061
|
-
__decorate([
|
|
22363
|
+
__decorate([property({
|
|
23062
22364
|
type: Boolean,
|
|
23063
22365
|
reflect: true
|
|
23064
22366
|
})], M3eStepElement.prototype, "editable", void 0);
|
|
23065
|
-
__decorate([
|
|
22367
|
+
__decorate([property({
|
|
23066
22368
|
type: Boolean,
|
|
23067
22369
|
reflect: true
|
|
23068
22370
|
})], M3eStepElement.prototype, "completed", void 0);
|
|
23069
|
-
__decorate([
|
|
22371
|
+
__decorate([property({
|
|
23070
22372
|
type: Boolean,
|
|
23071
22373
|
reflect: true
|
|
23072
22374
|
})], M3eStepElement.prototype, "invalid", void 0);
|
|
23073
|
-
__decorate([
|
|
22375
|
+
__decorate([state()], M3eStepElement.prototype, "index", void 0);
|
|
23074
22376
|
M3eStepElement = M3eStepElement_1 = __decorate([customElement$1("m3e-step")], M3eStepElement);
|
|
23075
22377
|
|
|
23076
22378
|
var _StepperButtonElementBase_action;
|
|
@@ -23295,8 +22597,8 @@ let M3eStepperElement = class M3eStepperElement extends AttachInternals$1(LitEle
|
|
|
23295
22597
|
__classPrivateFieldGet(this, _M3eStepperElement_breakpointUnobserve, "f")?.call(this);
|
|
23296
22598
|
}
|
|
23297
22599
|
/** @inheritdoc */
|
|
23298
|
-
|
|
23299
|
-
super.
|
|
22600
|
+
willUpdate(changedProperties) {
|
|
22601
|
+
super.willUpdate(changedProperties);
|
|
23300
22602
|
if (changedProperties.has("orientation")) {
|
|
23301
22603
|
__classPrivateFieldGet(this, _M3eStepperElement_breakpointUnobserve, "f")?.call(this);
|
|
23302
22604
|
if (this.orientation === "auto") {
|
|
@@ -23323,7 +22625,7 @@ let M3eStepperElement = class M3eStepperElement extends AttachInternals$1(LitEle
|
|
|
23323
22625
|
}
|
|
23324
22626
|
}
|
|
23325
22627
|
if (!this[selectionManager].vertical) {
|
|
23326
|
-
return html`${this.headerPosition === "above" ? __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this) : nothing}<m3e-slide class="steps" selected-index="${
|
|
22628
|
+
return html`${this.headerPosition === "above" ? __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this) : nothing}<m3e-slide class="steps" selected-index="${ifDefined(panelIndex)}"><slot name="panel"></slot></m3e-slide>${this.headerPosition === "below" ? __classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this) : nothing}`;
|
|
23327
22629
|
}
|
|
23328
22630
|
return html`${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_renderHeader).call(this)}<slot name="panel"></slot>`;
|
|
23329
22631
|
}
|
|
@@ -23332,7 +22634,7 @@ _M3eStepperElement_breakpointUnobserve = new WeakMap();
|
|
|
23332
22634
|
_M3eStepperElement_instances = new WeakSet();
|
|
23333
22635
|
_a$3 = selectionManager;
|
|
23334
22636
|
_M3eStepperElement_renderHeader = function _M3eStepperElement_renderHeader() {
|
|
23335
|
-
return html`<div class="header" role="tablist" aria-orientation="${
|
|
22637
|
+
return html`<div class="header" role="tablist" aria-orientation="${ifDefined(this[selectionManager].vertical ? "vertical" : undefined)}" @change="${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleChange)}"><slot name="step" @slotchange="${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleSlotChange)}" @keydown="${__classPrivateFieldGet(this, _M3eStepperElement_instances, "m", _M3eStepperElement_handleKeyDown)}"></slot></div>`;
|
|
23336
22638
|
};
|
|
23337
22639
|
_M3eStepperElement_handleChange = function _M3eStepperElement_handleChange(e) {
|
|
23338
22640
|
e.stopPropagation();
|
|
@@ -23423,21 +22725,21 @@ _M3eStepperElement_updateDisplayOrder = function _M3eStepperElement_updateDispla
|
|
|
23423
22725
|
})();
|
|
23424
22726
|
/** The styles of the element. */
|
|
23425
22727
|
M3eStepperElement.styles = css`:host { display: flex; flex-direction: column; position: relative; } :host(:not(:state(-vertical))) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; } :host(:not(:state(-vertical)):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(:state(-vertical))) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; } :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:state(-vertical))[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(:state(-vertical)) .header { display: contents; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(:state(-vertical))) { --m3e-collapsible-animation-duration: 0ms; } :host(:state(-no-animate)) { --m3e-collapsible-animation-duration: 0ms; }`;
|
|
23426
|
-
__decorate([
|
|
23427
|
-
__decorate([
|
|
23428
|
-
__decorate([
|
|
22728
|
+
__decorate([state()], M3eStepperElement.prototype, "_orientation", void 0);
|
|
22729
|
+
__decorate([state()], M3eStepperElement.prototype, "_selectedIndex", void 0);
|
|
22730
|
+
__decorate([property({
|
|
23429
22731
|
attribute: "header-position",
|
|
23430
22732
|
reflect: true
|
|
23431
22733
|
})], M3eStepperElement.prototype, "headerPosition", void 0);
|
|
23432
|
-
__decorate([
|
|
22734
|
+
__decorate([property({
|
|
23433
22735
|
attribute: "label-position",
|
|
23434
22736
|
reflect: true
|
|
23435
22737
|
})], M3eStepperElement.prototype, "labelPosition", void 0);
|
|
23436
|
-
__decorate([
|
|
22738
|
+
__decorate([property({
|
|
23437
22739
|
type: Boolean,
|
|
23438
22740
|
reflect: true
|
|
23439
22741
|
})], M3eStepperElement.prototype, "linear", void 0);
|
|
23440
|
-
__decorate([
|
|
22742
|
+
__decorate([property({
|
|
23441
22743
|
reflect: true
|
|
23442
22744
|
})], M3eStepperElement.prototype, "orientation", void 0);
|
|
23443
22745
|
M3eStepperElement = __decorate([customElement$1("m3e-stepper")], M3eStepperElement);
|
|
@@ -23796,13 +23098,13 @@ _M3eSwitchElement_handleClick = function _M3eSwitchElement_handleClick(e) {
|
|
|
23796
23098
|
};
|
|
23797
23099
|
/** The styles of the element. */
|
|
23798
23100
|
M3eSwitchElement.styles = [SwitchStyle, SwitchStateLayerStyle, SwitchTrackStyle, SwitchHandleStyle, SwitchIconStyle];
|
|
23799
|
-
__decorate([
|
|
23800
|
-
__decorate([
|
|
23801
|
-
__decorate([
|
|
23802
|
-
__decorate([
|
|
23101
|
+
__decorate([query(".track")], M3eSwitchElement.prototype, "_track", void 0);
|
|
23102
|
+
__decorate([query(".focus-ring")], M3eSwitchElement.prototype, "_focusRing", void 0);
|
|
23103
|
+
__decorate([query(".state-layer")], M3eSwitchElement.prototype, "_stateLayer", void 0);
|
|
23104
|
+
__decorate([property({
|
|
23803
23105
|
reflect: true
|
|
23804
23106
|
})], M3eSwitchElement.prototype, "icons", void 0);
|
|
23805
|
-
__decorate([
|
|
23107
|
+
__decorate([property()], M3eSwitchElement.prototype, "value", void 0);
|
|
23806
23108
|
M3eSwitchElement = __decorate([customElement$1("m3e-switch")], M3eSwitchElement);
|
|
23807
23109
|
|
|
23808
23110
|
var _M3eTabElement_instances, _M3eTabElement_clickHandler, _M3eTabElement_handleClick;
|
|
@@ -23936,10 +23238,10 @@ _M3eTabElement_handleClick = function _M3eTabElement_handleClick(e) {
|
|
|
23936
23238
|
M3eTabElement.styles = css`:host { display: inline-block; outline: none; user-select: none; height: calc(var(--_tab-height) + ${DesignToken$1.density.calc(-3)}); font-size: var(--m3e-tab-font-size, ${DesignToken$1.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-tab-font-weight, ${DesignToken$1.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-tab-line-height, ${DesignToken$1.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-tab-tracking, ${DesignToken$1.typescale.standard.title.small.tracking}); flex-grow: var(--_tab-grow); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; padding-inline-start: var(--m3e-tab-padding-start, 1.5rem); padding-inline-end: var(--m3e-tab-padding-end, 1.5rem); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .focus-ring { border-radius: var(--m3e-tab-focus-ring-shape, ${DesignToken$1.shape.corner.large}); } :host([selected]:focus-within) .focus-ring { top: var(--_tab-focus-ring-top-offset, 0); bottom: var(--_tab-focus-ring-bottom-offset, 0); } :host([selected]:not(:disabled)) .base { color: var(--m3e-tab-selected-color, var(--_tab-selected-color, ${DesignToken$1.color.primary})); --m3e-state-layer-hover-color: var( --m3e-tab-selected-container-hover-color, var(--_tab-selected-container-hover-color, ${DesignToken$1.color.primary}) ); --m3e-state-layer-focus-color: var( --_tab-selected-container-focus-color, var(--m3e-tab-selected-container-focus-color, ${DesignToken$1.color.primary}) ); --m3e-ripple-color: var( --_tab-selected-ripple-color, var(--m3e-tab-selected-ripple-color, ${DesignToken$1.color.primary}) ); } :host(:not([selected]):not(:disabled)) .base { color: var(--m3e-tab-unselected-color, ${DesignToken$1.color.onSurfaceVariant}); --m3e-state-layer-hover-color: var(--m3e-tab-unselected-container-hover-color, ${DesignToken$1.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-tab-unselected-container-focus-color, ${DesignToken$1.color.onSurface}); --m3e-ripple-color: var(--m3e-tab-unselected-ripple-color, ${DesignToken$1.color.onSurface}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-tab-disabled-color, ${DesignToken$1.color.onSurface}) var(--m3e-tab-disabled-opacity, 38%), transparent ); } .wrapper { display: inline-flex; align-items: center; white-space: nowrap; flex-direction: var(--_tab-direction); justify-content: center; column-gap: var(--m3e-tab-spacing, 0.5rem); } ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-tab-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .base { color: ButtonText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host(:disabled) .base { color: GrayText; } }`;
|
|
23937
23239
|
/** @private */
|
|
23938
23240
|
M3eTabElement.__nextId = 0;
|
|
23939
|
-
__decorate([
|
|
23940
|
-
__decorate([
|
|
23941
|
-
__decorate([
|
|
23942
|
-
__decorate([
|
|
23241
|
+
__decorate([query(".focus-ring")], M3eTabElement.prototype, "_focusRing", void 0);
|
|
23242
|
+
__decorate([query(".state-layer")], M3eTabElement.prototype, "_stateLayer", void 0);
|
|
23243
|
+
__decorate([query(".ripple")], M3eTabElement.prototype, "_ripple", void 0);
|
|
23244
|
+
__decorate([query(".label")], M3eTabElement.prototype, "label", void 0);
|
|
23943
23245
|
M3eTabElement = M3eTabElement_1 = __decorate([customElement$1("m3e-tab")], M3eTabElement);
|
|
23944
23246
|
|
|
23945
23247
|
/**
|
|
@@ -24137,7 +23439,7 @@ let M3eTabsElement = class M3eTabsElement extends AttachInternals$1(LitElement)
|
|
|
24137
23439
|
panelIndex = undefined;
|
|
24138
23440
|
}
|
|
24139
23441
|
}
|
|
24140
|
-
return html`${this.headerPosition === "before" ? __classPrivateFieldGet(this, _M3eTabsElement_instances, "m", _M3eTabsElement_renderHeader).call(this) : nothing}<m3e-slide class="tabs" selected-index="${
|
|
23442
|
+
return html`${this.headerPosition === "before" ? __classPrivateFieldGet(this, _M3eTabsElement_instances, "m", _M3eTabsElement_renderHeader).call(this) : nothing}<m3e-slide class="tabs" selected-index="${ifDefined(panelIndex)}"><slot name="panel"></slot></m3e-slide>${this.headerPosition === "after" ? __classPrivateFieldGet(this, _M3eTabsElement_instances, "m", _M3eTabsElement_renderHeader).call(this) : nothing}`;
|
|
24141
23443
|
}
|
|
24142
23444
|
};
|
|
24143
23445
|
_M3eTabsElement_directionalitySubscription = new WeakMap();
|
|
@@ -24195,27 +23497,27 @@ _M3eTabsElement_updateInkBar = function _M3eTabsElement_updateInkBar() {
|
|
|
24195
23497
|
/** The styles of the element. */
|
|
24196
23498
|
M3eTabsElement.styles = css`:host { display: flex; flex-direction: column; position: relative; } .tablist { position: relative; box-sizing: border-box; flex: none; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-tabs-paginator-button-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) !important; } .header { display: flex; flex-direction: column; } .tabs { display: flex; flex-wrap: nowrap; align-items: center; } .ink-bar { box-sizing: border-box; height: var(--_tabs-active-indicator-thickness); } .active-indicator { position: relative; height: var(--_tabs-active-indicator-thickness); left: calc(var(--_tabs-active-tab-position) + var(--_tabs-activate-indicator-inset, 0px)); width: calc(var(--_tabs-active-tab-size) - calc(var(--_tabs-activate-indicator-inset, 0px) * 2)); background-color: var(--m3e-tabs-active-indicator-color, ${DesignToken$1.color.primary}); transition: ${unsafeCSS(`left var(--m3e-slide-animation-duration, ${DesignToken$1.motion.duration.long2}) ${DesignToken$1.motion.easing.standard},
|
|
24197
23499
|
width var(--m3e-slide-animation-duration, ${DesignToken$1.motion.duration.long2}) ${DesignToken$1.motion.easing.standard}`)}; } :host([header-position="after"]) .header { flex-direction: column-reverse; } :host([header-position="before"]) .ink-bar { margin-top: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="before"]) .tablist { --m3e-slide-group-divider-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${DesignToken$1.color.outlineVariant}); } :host([header-position="after"]) .ink-bar { margin-bottom: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="after"]) .tablist { --m3e-slide-group-divider-top: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${DesignToken$1.color.outlineVariant}); } :host([header-position="before"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-before-active-indicator-shape, ${DesignToken$1.shape.corner.extraSmallTop}); } :host([header-position="after"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-after-active-indicator-shape, ${DesignToken$1.shape.corner.extraSmallBottom}); } .tabs { flex: 1 1 auto; } :host([variant="primary"]) .tablist { --_tabs-activate-indicator-inset: var(--m3e-tabs-primary-active-indicator-inset, 0.125rem); --_tabs-active-indicator-thickness: var(--m3e-tabs-primary-active-indicator-thickness, 3px); --_tab-height: 4rem; } :host([header-position="before"]) .tablist { --_tab-focus-ring-bottom-offset: calc(var(--_tabs-active-indicator-thickness) + 1px); } :host([header-position="after"]) .tablist { --_tab-focus-ring-top-offset: calc(var(--_tabs-active-indicator-thickness) + 2px); } :host([header-position="before"][variant="primary"]) .tablist { --_tab-direction: column; } :host([header-position="after"][variant="primary"]) .tablist { --_tab-direction: column-reverse; } :host([variant="secondary"]) .tablist { --_tabs-active-indicator-thickness: var(--m3e-tabs-secondary-active-indicator-thickness, 2px); --_tab-height: 3rem; --_tab-selected-color: ${DesignToken$1.color.onSurface}; --_tab-selected-container-hover-color: ${DesignToken$1.color.onSurface}; --_tab-selected-container-focus-color: ${DesignToken$1.color.onSurface}; --_tab-selected-ripple-color: ${DesignToken$1.color.onSurface}; } :host([stretch]) .header { width: 100%; --_tab-grow: 1; } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } } @media (forced-colors: active) { .active-indicator { background-color: ButtonText; --m3e-divider-color: GrayText; } }`;
|
|
24198
|
-
__decorate([
|
|
24199
|
-
__decorate([
|
|
24200
|
-
__decorate([
|
|
23500
|
+
__decorate([query(".tablist")], M3eTabsElement.prototype, "_tablist", void 0);
|
|
23501
|
+
__decorate([state()], M3eTabsElement.prototype, "_selectedIndex", void 0);
|
|
23502
|
+
__decorate([property({
|
|
24201
23503
|
attribute: "disable-pagination",
|
|
24202
23504
|
type: Boolean
|
|
24203
23505
|
})], M3eTabsElement.prototype, "disablePagination", void 0);
|
|
24204
|
-
__decorate([
|
|
23506
|
+
__decorate([property({
|
|
24205
23507
|
attribute: "header-position",
|
|
24206
23508
|
reflect: true
|
|
24207
23509
|
})], M3eTabsElement.prototype, "headerPosition", void 0);
|
|
24208
|
-
__decorate([
|
|
23510
|
+
__decorate([property({
|
|
24209
23511
|
reflect: true
|
|
24210
23512
|
})], M3eTabsElement.prototype, "variant", void 0);
|
|
24211
|
-
__decorate([
|
|
23513
|
+
__decorate([property({
|
|
24212
23514
|
type: Boolean,
|
|
24213
23515
|
reflect: true
|
|
24214
23516
|
})], M3eTabsElement.prototype, "stretch", void 0);
|
|
24215
|
-
__decorate([
|
|
23517
|
+
__decorate([property({
|
|
24216
23518
|
attribute: "previous-page-label"
|
|
24217
23519
|
})], M3eTabsElement.prototype, "previousPageLabel", void 0);
|
|
24218
|
-
__decorate([
|
|
23520
|
+
__decorate([property({
|
|
24219
23521
|
attribute: "next-page-label"
|
|
24220
23522
|
})], M3eTabsElement.prototype, "nextPageLabel", void 0);
|
|
24221
23523
|
M3eTabsElement = __decorate([customElement$1("m3e-tabs")], M3eTabsElement);
|
|
@@ -24472,15 +23774,15 @@ _M3eTextareaAutosizeElement_scrollToCaretPosition = function _M3eTextareaAutosiz
|
|
|
24472
23774
|
};
|
|
24473
23775
|
/** The styles of the element. */
|
|
24474
23776
|
M3eTextareaAutosizeElement.styles = css`:host { display: none; }`;
|
|
24475
|
-
__decorate([
|
|
23777
|
+
__decorate([property({
|
|
24476
23778
|
attribute: "max-rows",
|
|
24477
23779
|
type: Number
|
|
24478
23780
|
})], M3eTextareaAutosizeElement.prototype, "maxRows", void 0);
|
|
24479
|
-
__decorate([
|
|
23781
|
+
__decorate([property({
|
|
24480
23782
|
attribute: "min-rows",
|
|
24481
23783
|
type: Number
|
|
24482
23784
|
})], M3eTextareaAutosizeElement.prototype, "minRows", void 0);
|
|
24483
|
-
__decorate([
|
|
23785
|
+
__decorate([property({
|
|
24484
23786
|
type: Boolean,
|
|
24485
23787
|
reflect: true
|
|
24486
23788
|
})], M3eTextareaAutosizeElement.prototype, "disabled", void 0);
|
|
@@ -27765,17 +27067,17 @@ _M3eThemeElement_getContrastLevel = function _M3eThemeElement_getContrastLevel()
|
|
|
27765
27067
|
};
|
|
27766
27068
|
/** The styles of the element. */
|
|
27767
27069
|
M3eThemeElement.styles = css`:host { display: contents; font-size: ${DesignToken$1.typescale.standard.body.large.fontSize}; font-weight: ${DesignToken$1.typescale.standard.body.large.fontWeight}; line-height: ${DesignToken$1.typescale.standard.body.large.lineHeight}; letter-spacing: ${DesignToken$1.typescale.standard.body.large.tracking}; }`;
|
|
27768
|
-
__decorate([
|
|
27769
|
-
__decorate([
|
|
27770
|
-
__decorate([
|
|
27771
|
-
__decorate([
|
|
27070
|
+
__decorate([property()], M3eThemeElement.prototype, "color", void 0);
|
|
27071
|
+
__decorate([property()], M3eThemeElement.prototype, "scheme", void 0);
|
|
27072
|
+
__decorate([property()], M3eThemeElement.prototype, "contrast", void 0);
|
|
27073
|
+
__decorate([property({
|
|
27772
27074
|
attribute: "strong-focus",
|
|
27773
27075
|
type: Boolean
|
|
27774
27076
|
})], M3eThemeElement.prototype, "strongFocus", void 0);
|
|
27775
|
-
__decorate([
|
|
27077
|
+
__decorate([property({
|
|
27776
27078
|
type: Number
|
|
27777
27079
|
})], M3eThemeElement.prototype, "density", void 0);
|
|
27778
|
-
__decorate([
|
|
27080
|
+
__decorate([property()], M3eThemeElement.prototype, "motion", void 0);
|
|
27779
27081
|
M3eThemeElement = __decorate([customElement$1("m3e-theme")], M3eThemeElement);
|
|
27780
27082
|
|
|
27781
27083
|
/**
|
|
@@ -27832,9 +27134,9 @@ let M3eTocItemElement = class M3eTocItemElement extends Selected$1(Disabled$1(At
|
|
|
27832
27134
|
};
|
|
27833
27135
|
/** The styles of the element. */
|
|
27834
27136
|
M3eTocItemElement.styles = css`:host { display: inline-block; position: relative; user-select: none; outline: none; border-radius: var(--m3e-toc-item-shape, ${DesignToken$1.shape.corner.largeIncreased}); padding-block: var(--m3e-toc-item-padding-block, 0.5rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { padding-inline-start: calc( var(--m3e-toc-item-padding, 1rem) + calc(var(--m3e-toc-item-inset, 0.75rem) * var(--_level, 0)) ); padding-inline-end: var(--m3e-toc-item-padding, 1rem); transition: ${unsafeCSS(`color var(--m3e-toc-active-indicator-animation-duration, ${DesignToken$1.motion.duration.long1}) ${DesignToken$1.motion.easing.standard}`)}; } :host(:not([selected])) { font-size: var(--m3e-toc-item-font-size, ${DesignToken$1.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-toc-item-font-weight, ${DesignToken$1.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-toc-item-line-height, ${DesignToken$1.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-tracking, ${DesignToken$1.typescale.standard.body.large.tracking}); color: var(--m3e-toc-item-color, ${DesignToken$1.color.onSurfaceVariant}); } :host([selected]) { font-size: var(--m3e-toc-item-selected-font-size, ${DesignToken$1.typescale.emphasized.body.large.fontSize}); font-weight: var(--m3e-toc-item-selected-font-weight, ${DesignToken$1.typescale.emphasized.body.large.fontWeight}); line-height: var(--m3e-toc-item-selected-line-height, ${DesignToken$1.typescale.emphasized.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-selected-tracking, ${DesignToken$1.typescale.emphasized.body.large.tracking}); color: var(--m3e-toc-item-selected-color, ${DesignToken$1.color.onSecondaryContainer}); } .base { justify-content: unset; } .state-layer { --m3e-state-layer-focus-opacity: 0; } @media (prefers-reduced-motion) { .base { transition: none; } }`;
|
|
27835
|
-
__decorate([
|
|
27836
|
-
__decorate([
|
|
27837
|
-
__decorate([
|
|
27137
|
+
__decorate([query(".base")], M3eTocItemElement.prototype, "_base", void 0);
|
|
27138
|
+
__decorate([query(".state-layer")], M3eTocItemElement.prototype, "_stateLayer", void 0);
|
|
27139
|
+
__decorate([state()], M3eTocItemElement.prototype, "node", void 0);
|
|
27838
27140
|
M3eTocItemElement = __decorate([customElement$1("m3e-toc-item")], M3eTocItemElement);
|
|
27839
27141
|
|
|
27840
27142
|
var _a$1, _TocGenerator_getHeaderLevel;
|
|
@@ -28030,8 +27332,8 @@ let M3eTocElement = class M3eTocElement extends HtmlFor$1(AttachInternals$1(Role
|
|
|
28030
27332
|
__classPrivateFieldGet(this, _M3eTocElement_instances, "m", _M3eTocElement_generateToc).call(this);
|
|
28031
27333
|
}
|
|
28032
27334
|
/** @inheritdoc */
|
|
28033
|
-
|
|
28034
|
-
super.
|
|
27335
|
+
willUpdate(changedProperties) {
|
|
27336
|
+
super.willUpdate(changedProperties);
|
|
28035
27337
|
if (changedProperties.has("maxDepth")) {
|
|
28036
27338
|
__classPrivateFieldGet(this, _M3eTocElement_instances, "m", _M3eTocElement_generateToc).call(this);
|
|
28037
27339
|
}
|
|
@@ -28105,9 +27407,9 @@ M3eTocElement.styles = css`:host { display: inline-block; position: relative; ov
|
|
|
28105
27407
|
${DesignToken$1.motion.easing.standard},
|
|
28106
27408
|
top var(--m3e-toc-active-indicator-animation-duration, ${DesignToken$1.motion.duration.long1})
|
|
28107
27409
|
${DesignToken$1.motion.easing.standard}`)}; } .header { display: flex; flex-direction: column; align-items: stretch; padding-inline-start: var(--m3e-toc-item-padding, 1rem); padding-block-end: var(--m3e-toc-header-space, 0.5rem); row-gap: var(--m3e-toc-header-space, 0.5rem); } .overline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host(:not(:state(-with-overline))) .overline, :host(:not(:state(-with-title))) .title, :host(:not(:state(-with-overline)):not(:state(-with-title))) .header { display: none; } ::slotted([slot="overline"]) { font-size: var(--m3e-toc-overline-font-size, ${DesignToken$1.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-toc-overline-font-weight, ${DesignToken$1.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-toc-overline-line-height, ${DesignToken$1.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-toc-overline-tracking, ${DesignToken$1.typescale.standard.label.small.tracking}); color: var(--m3e-toc-overline-color, ${DesignToken$1.color.onSurfaceVariant}); } ::slotted([slot="title"]) { font-size: var(--m3e-toc-title-font-size, ${DesignToken$1.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-toc-title-font-weight, ${DesignToken$1.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-toc-title-line-height, ${DesignToken$1.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-toc-title-tracking, ${DesignToken$1.typescale.standard.headline.small.tracking}); color: var(--m3e-toc-title-color, ${DesignToken$1.color.onSurface}); } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } }`;
|
|
28108
|
-
__decorate([
|
|
28109
|
-
__decorate([
|
|
28110
|
-
__decorate([
|
|
27410
|
+
__decorate([state()], M3eTocElement.prototype, "_toc", void 0);
|
|
27411
|
+
__decorate([query(".active-indicator")], M3eTocElement.prototype, "_activeIndicator", void 0);
|
|
27412
|
+
__decorate([property({
|
|
28111
27413
|
attribute: "max-depth",
|
|
28112
27414
|
type: Number
|
|
28113
27415
|
})], M3eTocElement.prototype, "maxDepth", void 0);
|
|
@@ -28236,13 +27538,13 @@ _M3eToolbarElement_handleClick = function _M3eToolbarElement_handleClick(e) {
|
|
|
28236
27538
|
};
|
|
28237
27539
|
/** The styles of the element. */
|
|
28238
27540
|
M3eToolbarElement.styles = css`:host { display: inline-block; position: relative; } .base { display: flex; align-items: center; box-sizing: border-box; border-radius: inherit; } :host(:not([vertical])) { height: fit-content; } :host(:not([vertical])) .base { height: calc(var(--m3e-toolbar-size, 4rem) + ${DesignToken$1.density.calc(-3)}); column-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([vertical]) { width: fit-content; } :host([vertical]) .base { width: calc(var(--m3e-toolbar-size, 4rem) + ${DesignToken$1.density.calc(-3)}); } :host([vertical]) .base { flex-direction: column; justify-content: center; row-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([shape="rounded"]) { border-radius: var(--m3e-toolbar-rounded-shape, ${DesignToken$1.shape.corner.full}); } :host([shape="rounded"]) .base { padding: var(--m3e-toolbar-rounded-padding, 0.5rem); } :host(:not([vertical])[shape="square"]) .base { padding-inline: var(--m3e-toolbar-square-padding, 1rem); } :host([vertical][shape="square"]) .base { padding-block: var(--m3e-toolbar-square-padding, 1rem); } :host([variant="standard"]) .state-layer { background-color: var(--m3e-toolbar-standard-container-color, ${DesignToken$1.color.surfaceContainer}); } :host([variant="standard"]) .base { color: var(--m3e-toolbar-standard-color, ${DesignToken$1.color.onSurface}); } :host([variant="vibrant"]) .state-layer { background-color: var(--m3e-toolbar-vibrant-container-color, ${DesignToken$1.color.primaryContainer}); } :host([variant="vibrant"]) .base { color: var(--m3e-toolbar-vibrant-color, ${DesignToken$1.color.onPrimaryContainer}); } @media (forced-colors: active) { :host([variant]) .state-layer { background-color: Canvas; } :host([variant]) .base { color: CanvasText; outline: 1px solid CanvasText; } }`;
|
|
28239
|
-
__decorate([
|
|
27541
|
+
__decorate([property({
|
|
28240
27542
|
reflect: true
|
|
28241
27543
|
})], M3eToolbarElement.prototype, "variant", void 0);
|
|
28242
|
-
__decorate([
|
|
27544
|
+
__decorate([property({
|
|
28243
27545
|
reflect: true
|
|
28244
27546
|
})], M3eToolbarElement.prototype, "shape", void 0);
|
|
28245
|
-
__decorate([
|
|
27547
|
+
__decorate([property({
|
|
28246
27548
|
type: Boolean,
|
|
28247
27549
|
reflect: true
|
|
28248
27550
|
})], M3eToolbarElement.prototype, "elevated", void 0);
|
|
@@ -28267,19 +27569,19 @@ let M3eRichTooltipActionElement = class M3eRichTooltipActionElement extends Acti
|
|
|
28267
27569
|
this.closest("m3e-rich-tooltip")?.hide(!this.disableRestoreFocus);
|
|
28268
27570
|
}
|
|
28269
27571
|
};
|
|
28270
|
-
__decorate([
|
|
27572
|
+
__decorate([property({
|
|
28271
27573
|
attribute: "disable-restore-focus",
|
|
28272
27574
|
type: Boolean
|
|
28273
27575
|
})], M3eRichTooltipActionElement.prototype, "disableRestoreFocus", void 0);
|
|
28274
27576
|
M3eRichTooltipActionElement = __decorate([customElement$1("m3e-rich-tooltip-action")], M3eRichTooltipActionElement);
|
|
28275
27577
|
|
|
28276
|
-
var _TooltipElementBase_instances, _a, _TooltipElementBase_for, _TooltipElementBase_anchorCleanup, _TooltipElementBase_tooltipHovering, _TooltipElementBase_controlClickHandler, _TooltipElementBase_hoverController, _TooltipElementBase_longPressController, _TooltipElementBase_handleControlClick, _TooltipElementBase_disableNativeGesturesIfNecessary;
|
|
27578
|
+
var _TooltipElementBase_instances, _a, _TooltipElementBase_for, _TooltipElementBase_anchorCleanup, _TooltipElementBase_tooltipHovering, _TooltipElementBase_controlClickHandler, _TooltipElementBase_hoverController, _TooltipElementBase_longPressController, _TooltipElementBase_initialize, _TooltipElementBase_handleControlClick, _TooltipElementBase_disableNativeGesturesIfNecessary;
|
|
28277
27579
|
/** The space, in pixels, between the tooltip and anchor. */
|
|
28278
27580
|
const TOOLTIP_OFFSET = 4;
|
|
28279
27581
|
/** The default time, in milliseconds, before hiding a tooltip. */
|
|
28280
27582
|
const TOOLTIP_HIDE_DELAY = 200;
|
|
28281
27583
|
/** Provides a base implementation for a tooltip. This class must be inherited. */
|
|
28282
|
-
class TooltipElementBase extends HtmlFor$1(AttachInternals$1(LitElement)) {
|
|
27584
|
+
class TooltipElementBase extends HtmlFor$1(ReconnectedCallback$1(AttachInternals$1(LitElement))) {
|
|
28283
27585
|
constructor() {
|
|
28284
27586
|
super(...arguments);
|
|
28285
27587
|
_TooltipElementBase_instances.add(this);
|
|
@@ -28392,11 +27694,14 @@ class TooltipElementBase extends HtmlFor$1(AttachInternals$1(LitElement)) {
|
|
|
28392
27694
|
}
|
|
28393
27695
|
}
|
|
28394
27696
|
/** @inheritdoc */
|
|
27697
|
+
reconnectedCallback() {
|
|
27698
|
+
super.reconnectedCallback();
|
|
27699
|
+
__classPrivateFieldGet(this, _TooltipElementBase_instances, "m", _TooltipElementBase_initialize).call(this);
|
|
27700
|
+
}
|
|
27701
|
+
/** @inheritdoc */
|
|
28395
27702
|
firstUpdated(_changedProperties) {
|
|
28396
27703
|
super.firstUpdated(_changedProperties);
|
|
28397
|
-
|
|
28398
|
-
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").observe(this._base);
|
|
28399
|
-
}
|
|
27704
|
+
__classPrivateFieldGet(this, _TooltipElementBase_instances, "m", _TooltipElementBase_initialize).call(this);
|
|
28400
27705
|
}
|
|
28401
27706
|
/**
|
|
28402
27707
|
* Manually shows the tooltip.
|
|
@@ -28428,7 +27733,11 @@ class TooltipElementBase extends HtmlFor$1(AttachInternals$1(LitElement)) {
|
|
|
28428
27733
|
}
|
|
28429
27734
|
}
|
|
28430
27735
|
}
|
|
28431
|
-
_a = TooltipElementBase, _TooltipElementBase_for = new WeakMap(), _TooltipElementBase_anchorCleanup = new WeakMap(), _TooltipElementBase_tooltipHovering = new WeakMap(), _TooltipElementBase_controlClickHandler = new WeakMap(), _TooltipElementBase_hoverController = new WeakMap(), _TooltipElementBase_longPressController = new WeakMap(), _TooltipElementBase_instances = new WeakSet(),
|
|
27736
|
+
_a = TooltipElementBase, _TooltipElementBase_for = new WeakMap(), _TooltipElementBase_anchorCleanup = new WeakMap(), _TooltipElementBase_tooltipHovering = new WeakMap(), _TooltipElementBase_controlClickHandler = new WeakMap(), _TooltipElementBase_hoverController = new WeakMap(), _TooltipElementBase_longPressController = new WeakMap(), _TooltipElementBase_instances = new WeakSet(), _TooltipElementBase_initialize = function _TooltipElementBase_initialize() {
|
|
27737
|
+
if (this._base) {
|
|
27738
|
+
__classPrivateFieldGet(this, _TooltipElementBase_hoverController, "f").observe(this._base);
|
|
27739
|
+
}
|
|
27740
|
+
}, _TooltipElementBase_handleControlClick = function _TooltipElementBase_handleControlClick() {
|
|
28432
27741
|
if (this._isInteractive) {
|
|
28433
27742
|
if (_a.__openTooltips.includes(this)) {
|
|
28434
27743
|
this.hide();
|
|
@@ -28458,20 +27767,20 @@ _a = TooltipElementBase, _TooltipElementBase_for = new WeakMap(), _TooltipElemen
|
|
|
28458
27767
|
};
|
|
28459
27768
|
/** @private */
|
|
28460
27769
|
TooltipElementBase.__openTooltips = new Array();
|
|
28461
|
-
__decorate([
|
|
28462
|
-
__decorate([
|
|
27770
|
+
__decorate([query(".base")], TooltipElementBase.prototype, "_base", void 0);
|
|
27771
|
+
__decorate([property({
|
|
28463
27772
|
type: Boolean,
|
|
28464
27773
|
reflect: true
|
|
28465
27774
|
})], TooltipElementBase.prototype, "disabled", void 0);
|
|
28466
|
-
__decorate([
|
|
27775
|
+
__decorate([property({
|
|
28467
27776
|
attribute: "show-delay",
|
|
28468
27777
|
type: Number
|
|
28469
27778
|
})], TooltipElementBase.prototype, "showDelay", null);
|
|
28470
|
-
__decorate([
|
|
27779
|
+
__decorate([property({
|
|
28471
27780
|
attribute: "hide-delay",
|
|
28472
27781
|
type: Number
|
|
28473
27782
|
})], TooltipElementBase.prototype, "hideDelay", null);
|
|
28474
|
-
__decorate([
|
|
27783
|
+
__decorate([property({
|
|
28475
27784
|
attribute: "touch-gestures"
|
|
28476
27785
|
})], TooltipElementBase.prototype, "touchGestures", void 0);
|
|
28477
27786
|
|
|
@@ -28594,7 +27903,7 @@ let M3eRichTooltipElement = M3eRichTooltipElement_1 = class M3eRichTooltipElemen
|
|
|
28594
27903
|
/** @inheritdoc */
|
|
28595
27904
|
render() {
|
|
28596
27905
|
const subheadId = this._interactive && this._hasSubhead ? `m3e-rich-tooltip-${__classPrivateFieldGet(this, _M3eRichTooltipElement_id, "f")}-subhead` : undefined;
|
|
28597
|
-
return html`<div class="base" popover="manual" role="${
|
|
27906
|
+
return html`<div class="base" popover="manual" role="${ifDefined(this._interactive ? "dialog" : undefined)}" aria-labelledby="${ifDefined(subheadId)}" @keydown="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleKeyDown)}" @beforetoggle="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleBeforeToggle)}" @toggle="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleToggle)}"><m3e-elevation level="3"></m3e-elevation><div class="subhead" id="${ifDefined(subheadId)}"><slot name="subhead" @slotchange="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleSubheadSlotChange)}"></slot></div><div class="content"><slot @slotchange="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleContentSlotChange)}"></slot></div><div class="actions"><slot name="actions" @slotchange="${__classPrivateFieldGet(this, _M3eRichTooltipElement_instances, "m", _M3eRichTooltipElement_handleActionsSlotChange)}"></slot></div></div>`;
|
|
28598
27907
|
}
|
|
28599
27908
|
/** @inheritdoc */
|
|
28600
27909
|
show() {
|
|
@@ -28738,9 +28047,9 @@ M3eRichTooltipElement.styles = css`:host { display: contents; } .base { flex-dir
|
|
|
28738
28047
|
display ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } .base:not(.has-actions) { padding-block-end: var(--m3e-rich-tooltip-padding-bottom, 0.75rem); } .base::backdrop { background-color: transparent; } .base:popover-open { display: flex; opacity: 1; transform: scale(1); } .base:not(.has-subhead) .subhead, .base:not(.has-actions) .actions { display: none; } .subhead { color: var(--m3e-rich-tooltip-subhead-color, ${DesignToken$1.color.onSurfaceVariant}); font-size: var(--m3e-rich-tooltip-subhead-font-size, ${DesignToken$1.typescale.standard.title.small.fontSize}); font-weight: var( --m3e-rich-tooltip-subhead-font-weight, ${DesignToken$1.typescale.standard.title.small.fontWeight} ); line-height: var( --m3e-rich-tooltip-subhead-line-height, ${DesignToken$1.typescale.standard.title.small.lineHeight} ); letter-spacing: var(--m3e-rich-tooltip-subhead-tracking, ${DesignToken$1.typescale.standard.title.small.tracking}); padding-block-end: var(--m3e-rich-tooltip-subhead-bottom-space, 0.25rem); } .content { color: var(--m3e-rich-tooltip-supporting-text-color, ${DesignToken$1.color.onSurfaceVariant}); font-size: var( --m3e-rich-tooltip-supporting-text-font-size, ${DesignToken$1.typescale.standard.body.medium.fontSize} ); font-weight: var( --m3e-rich-tooltip-supporting-text-font-weight, ${DesignToken$1.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-rich-tooltip-supporting-text-line-height, ${DesignToken$1.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-rich-tooltip-supporting-text-tracking, ${DesignToken$1.typescale.standard.body.medium.tracking} ); } .actions { margin-inline: calc( 0px - calc( var(--m3e-rich-tooltip-padding-inline, 1rem) - var(--m3e-rich-tooltip-actions-padding-inline, 0.25rem) ) ); padding-block-start: var(--m3e-rich-tooltip-actions-top-space, 0.75rem); padding-block-end: var(--m3e-rich-tooltip-actions-bottom-space, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`;
|
|
28739
28048
|
/** @private */
|
|
28740
28049
|
M3eRichTooltipElement.__nextId = 0;
|
|
28741
|
-
__decorate([
|
|
28742
|
-
__decorate([
|
|
28743
|
-
__decorate([
|
|
28050
|
+
__decorate([state()], M3eRichTooltipElement.prototype, "_hasSubhead", void 0);
|
|
28051
|
+
__decorate([state()], M3eRichTooltipElement.prototype, "_interactive", void 0);
|
|
28052
|
+
__decorate([property()], M3eRichTooltipElement.prototype, "position", void 0);
|
|
28744
28053
|
M3eRichTooltipElement = M3eRichTooltipElement_1 = __decorate([customElement$1("m3e-rich-tooltip")], M3eRichTooltipElement);
|
|
28745
28054
|
|
|
28746
28055
|
var _M3eTooltipElement_instances, _M3eTooltipElement_message, _M3eTooltipElement_handleSlotChange, _M3eTooltipElement_handleToggle;
|
|
@@ -28863,8 +28172,8 @@ M3eTooltipElement.styles = css`:host { display: contents; } .base { position: ab
|
|
|
28863
28172
|
transform ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard},
|
|
28864
28173
|
overlay ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard} allow-discrete,
|
|
28865
28174
|
display ${DesignToken$1.motion.duration.short3} ${DesignToken$1.motion.easing.standard} allow-discrete`)}; } :host(:state(-multiline)) .base { text-align: start; } .base::backdrop { background-color: transparent; } .base:popover-open { display: block; opacity: 1; transform: scale(1); } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`;
|
|
28866
|
-
__decorate([
|
|
28175
|
+
__decorate([property()], M3eTooltipElement.prototype, "position", void 0);
|
|
28867
28176
|
M3eTooltipElement = __decorate([customElement$1("m3e-tooltip")], M3eTooltipElement);
|
|
28868
28177
|
|
|
28869
|
-
export { ActionElementBase, AnimationLoopController, AttachInternals, Checked, CheckedIndeterminate, ConstraintValidation, DesignToken, Dirty, Disabled, DisabledInteractive, EventAttribute, FocusController, Focusable, FormAssociated, FormSubmitter, HoverController, HtmlFor, IntersectionController, KeyboardClick, Labelled, LinkButton, LongPressController, M3eAccordionElement, M3eActionListElement, M3eAppBarElement, M3eAssistChipElement, M3eAutocompleteElement, M3eAvatarElement, M3eBadgeElement, M3eBottomSheetActionElement, M3eBottomSheetElement, M3eBottomSheetTriggerElement, M3eButtonElement, M3eButtonGroupElement, M3eButtonSegmentElement, M3eCardElement, M3eCheckboxElement, M3eChipElement, M3eChipSetElement, M3eCircularProgressIndicatorElement, M3eCollapsibleElement, M3eDialogActionElement, M3eDialogElement, M3eDialogTriggerElement, M3eDividerElement, M3eDrawerContainerElement, M3eDrawerToggleElement, M3eElevationElement, M3eExpandableListItemElement, M3eExpansionHeaderElement, M3eExpansionPanelElement, M3eFabElement, M3eFabMenuElement, M3eFabMenuItemElement, M3eFabMenuTriggerElement, M3eFilterChipElement, M3eFilterChipSetElement, M3eFocusRingElement, M3eFormFieldElement, M3eHeadingElement, M3eIconButtonElement, M3eIconElement, M3eInputChipElement, M3eInputChipSetElement, M3eLinearProgressIndicatorElement, M3eListActionElement, M3eListElement, M3eListItemButtonElement, M3eListItemElement, M3eListOptionElement, M3eLoadingIndicatorElement, M3eMenuElement, M3eMenuItemCheckboxElement, M3eMenuItemElement, M3eMenuItemGroupElement, M3eMenuItemRadioElement, M3eMenuTriggerElement, M3eNavBarElement, M3eNavItemElement, M3eNavMenuElement, M3eNavMenuItemElement, M3eNavMenuItemGroupElement, M3eNavRailElement, M3eNavRailToggleElement, M3eOptGroupElement, M3eOptionElement, M3eOptionPanelElement, M3ePaginatorElement, M3ePseudoCheckboxElement, M3ePseudoRadioElement, M3eRadioElement, M3eRadioGroupElement, M3eRichTooltipActionElement, M3eRichTooltipElement, M3eRippleElement, M3eScrollContainerElement, M3eSegmentedButtonElement, M3eSelectElement, M3eSelectionListElement, M3eShapeElement, M3eSlideElement, M3eSlideGroupElement, M3eSliderElement, M3eSliderThumbElement, M3eSnackbar, M3eSnackbarElement, M3eSplitButtonElement, M3eStateLayerElement, M3eStepElement, M3eStepPanelElement, M3eStepperElement, M3eStepperNextElement, M3eStepperPreviousElement, M3eStepperResetElement, M3eSuggestionChipElement, M3eSwitchElement, M3eTabElement, M3eTabPanelElement, M3eTabsElement, M3eTextHighlightElement, M3eTextOverflowElement, M3eTextareaAutosizeElement, M3eThemeElement, M3eTocElement, M3eTocItemElement, M3eToolbarElement, M3eTooltipElement, MutationController, PressedController, ProgressElementIndicatorBase, ReadOnly, Required, RequiredConstraintValidation, ResizeController, Role, ScrollController, ScrollLockController, Selected, StepperButtonElementBase, TocGenerator, TooltipElementBase, Touched, VelocityTracker, Vertical, addCustomState, checkOrSelect, computeCssSize, computeLineCount, customElement, debounce, defaultValue, deleteCustomState, findFormFieldControl, focusWhenReady, forcedColorsActive, formValue, generateClipPaths, getTextContent, guid, hasAssignedNodes, hasCustomState, hasKeys, interceptProperty, internals, isAttachInternalsMixin, isCheckedIndeterminateMixin, isCheckedMixin, isCheckedOrSelected, isCheckedOrSelectedMixin, isConstraintValidationMixin, isDirtyMixin, isDisabledInteractiveMixin, isDisabledMixin, isFormAssociatedMixin, isFormFieldControl, isFormSubmitterMixin, isHtmlForMixin, isLabelledMixin, isLinkButtonMixin, isReadOnlyMixin, isRequiredConstraintValidationMixin, isRequiredMixin, isSelectedMixin, isTouchedMixin, isVerticalMixin, prefersReducedMotion, renderPseudoLink, resolveElementById, resolveFragmentUrl, safeStyleMap, scrollIntoViewIfNeeded, setCustomState, spaceSeparatedStringConverter, updateLabels, validate };
|
|
28178
|
+
export { ActionElementBase, AnimationLoopController, AttachInternals, Checked, CheckedIndeterminate, ConstraintValidation, DesignToken, Dirty, Disabled, DisabledInteractive, EventAttribute, FocusController, Focusable, FormAssociated, FormSubmitter, HoverController, HtmlFor, IntersectionController, KeyboardClick, Labelled, LinkButton, LongPressController, M3eAccordionElement, M3eActionListElement, M3eAppBarElement, M3eAssistChipElement, M3eAutocompleteElement, M3eAvatarElement, M3eBadgeElement, M3eBottomSheetActionElement, M3eBottomSheetElement, M3eBottomSheetTriggerElement, M3eButtonElement, M3eButtonGroupElement, M3eButtonSegmentElement, M3eCardElement, M3eCheckboxElement, M3eChipElement, M3eChipSetElement, M3eCircularProgressIndicatorElement, M3eCollapsibleElement, M3eDialogActionElement, M3eDialogElement, M3eDialogTriggerElement, M3eDividerElement, M3eDrawerContainerElement, M3eDrawerToggleElement, M3eElevationElement, M3eExpandableListItemElement, M3eExpansionHeaderElement, M3eExpansionPanelElement, M3eFabElement, M3eFabMenuElement, M3eFabMenuItemElement, M3eFabMenuTriggerElement, M3eFilterChipElement, M3eFilterChipSetElement, M3eFocusRingElement, M3eFormFieldElement, M3eHeadingElement, M3eIconButtonElement, M3eIconElement, M3eInputChipElement, M3eInputChipSetElement, M3eLinearProgressIndicatorElement, M3eListActionElement, M3eListElement, M3eListItemButtonElement, M3eListItemElement, M3eListOptionElement, M3eLoadingIndicatorElement, M3eMenuElement, M3eMenuItemCheckboxElement, M3eMenuItemElement, M3eMenuItemGroupElement, M3eMenuItemRadioElement, M3eMenuTriggerElement, M3eNavBarElement, M3eNavItemElement, M3eNavMenuElement, M3eNavMenuItemElement, M3eNavMenuItemGroupElement, M3eNavRailElement, M3eNavRailToggleElement, M3eOptGroupElement, M3eOptionElement, M3eOptionPanelElement, M3ePaginatorElement, M3ePseudoCheckboxElement, M3ePseudoRadioElement, M3eRadioElement, M3eRadioGroupElement, M3eRichTooltipActionElement, M3eRichTooltipElement, M3eRippleElement, M3eScrollContainerElement, M3eSegmentedButtonElement, M3eSelectElement, M3eSelectionListElement, M3eShapeElement, M3eSlideElement, M3eSlideGroupElement, M3eSliderElement, M3eSliderThumbElement, M3eSnackbar, M3eSnackbarElement, M3eSplitButtonElement, M3eStateLayerElement, M3eStepElement, M3eStepPanelElement, M3eStepperElement, M3eStepperNextElement, M3eStepperPreviousElement, M3eStepperResetElement, M3eSuggestionChipElement, M3eSwitchElement, M3eTabElement, M3eTabPanelElement, M3eTabsElement, M3eTextHighlightElement, M3eTextOverflowElement, M3eTextareaAutosizeElement, M3eThemeElement, M3eTocElement, M3eTocItemElement, M3eToolbarElement, M3eTooltipElement, MutationController, PressedController, ProgressElementIndicatorBase, ReadOnly, ReconnectedCallback, Required, RequiredConstraintValidation, ResizeController, Role, ScrollController, ScrollLockController, Selected, StepperButtonElementBase, SuppressInitialAnimation, TocGenerator, TooltipElementBase, Touched, VelocityTracker, Vertical, addCustomState, checkOrSelect, computeCssSize, computeLineCount, customElement, debounce, defaultValue, deleteCustomState, findFormFieldControl, focusWhenReady, forcedColorsActive, formValue, generateClipPaths, getTextContent, guid, hasAssignedNodes, hasCustomState, hasKeys, interceptProperty, internals, isAttachInternalsMixin, isCheckedIndeterminateMixin, isCheckedMixin, isCheckedOrSelected, isCheckedOrSelectedMixin, isConstraintValidationMixin, isDirtyMixin, isDisabledInteractiveMixin, isDisabledMixin, isFormAssociatedMixin, isFormFieldControl, isFormSubmitterMixin, isHtmlForMixin, isLabelledMixin, isLinkButtonMixin, isReadOnlyMixin, isRequiredConstraintValidationMixin, isRequiredMixin, isSelectedMixin, isTouchedMixin, isVerticalMixin, prefersReducedMotion, renderPseudoLink, resolveElementById, resolveFragmentUrl, safeStyleMap, scrollIntoViewIfNeeded, setCustomState, spaceSeparatedStringConverter, updateLabels, validate };
|
|
28870
28179
|
//# sourceMappingURL=all.js.map
|