@material/web 1.0.0-pre.6 → 1.0.0-pre.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/aria/aria.d.ts +43 -0
- package/aria/aria.js +56 -0
- package/aria/aria.js.map +1 -0
- package/aria/delegate.d.ts +37 -0
- package/aria/delegate.js +53 -0
- package/aria/delegate.js.map +1 -0
- package/badge/badge.d.ts +0 -1
- package/badge/badge.js +0 -1
- package/badge/badge.js.map +1 -1
- package/badge/lib/badge.d.ts +8 -7
- package/badge/lib/badge.js +5 -6
- package/badge/lib/badge.js.map +1 -1
- package/button/lib/_elevation.scss +13 -3
- package/button/lib/button.d.ts +1 -12
- package/button/lib/button.js +29 -60
- package/button/lib/button.js.map +1 -1
- package/button/lib/shared-elevation-styles.css.js +1 -1
- package/button/lib/shared-elevation-styles.css.js.map +1 -1
- package/checkbox/lib/checkbox.d.ts +0 -1
- package/checkbox/lib/checkbox.js +33 -43
- package/checkbox/lib/checkbox.js.map +1 -1
- package/chips/_filter-chip.scss +6 -0
- package/chips/filter-chip.d.ts +20 -0
- package/chips/filter-chip.js +24 -0
- package/chips/filter-chip.js.map +1 -0
- package/chips/lib/_filter-chip.scss +141 -0
- package/chips/lib/_shared.scss +18 -14
- package/chips/lib/assist-styles.css.js +1 -1
- package/chips/lib/assist-styles.css.js.map +1 -1
- package/chips/lib/chip.d.ts +8 -3
- package/chips/lib/chip.js +29 -30
- package/chips/lib/chip.js.map +1 -1
- package/chips/lib/filter-chip.d.ts +21 -0
- package/chips/lib/filter-chip.js +47 -0
- package/chips/lib/filter-chip.js.map +1 -0
- package/chips/lib/filter-styles.css.js +9 -0
- package/chips/lib/filter-styles.css.js.map +1 -0
- package/{fab/lib/fab-extended-styles.scss → chips/lib/filter-styles.scss} +3 -3
- package/chips/lib/shared-styles.css.js +1 -1
- package/chips/lib/shared-styles.css.js.map +1 -1
- package/chips/lib/suggestion-styles.css.js +1 -1
- package/chips/lib/suggestion-styles.css.js.map +1 -1
- package/circularprogress/harness.d.ts +1 -0
- package/circularprogress/harness.js +4 -0
- package/circularprogress/harness.js.map +1 -1
- package/circularprogress/lib/circular-progress.d.ts +0 -1
- package/circularprogress/lib/circular-progress.js +16 -19
- package/circularprogress/lib/circular-progress.js.map +1 -1
- package/dialog/lib/_dialog.scss +8 -8
- package/dialog/lib/dialog-styles.css.js +1 -1
- package/dialog/lib/dialog-styles.css.js.map +1 -1
- package/dialog/lib/dialog.js +25 -49
- package/dialog/lib/dialog.js.map +1 -1
- package/divider/lib/divider.js +4 -7
- package/divider/lib/divider.js.map +1 -1
- package/elevation/lib/_elevation.scss +5 -7
- package/elevation/lib/elevation-styles.css.js +1 -1
- package/elevation/lib/elevation-styles.css.js.map +1 -1
- package/fab/_fab.scss +1 -0
- package/fab/branded-fab.d.ts +53 -0
- package/fab/branded-fab.js +56 -0
- package/fab/branded-fab.js.map +1 -0
- package/fab/fab.d.ts +25 -5
- package/fab/fab.js +27 -10
- package/fab/fab.js.map +1 -1
- package/fab/harness.d.ts +1 -2
- package/fab/harness.js +1 -1
- package/fab/harness.js.map +1 -1
- package/fab/lib/_fab-branded.scss +27 -0
- package/fab/lib/_fab.scss +144 -16
- package/fab/lib/_shared.scss +155 -130
- package/fab/lib/fab-branded-styles.css.js +9 -0
- package/fab/lib/fab-branded-styles.css.js.map +1 -0
- package/fab/lib/fab-branded-styles.scss +10 -0
- package/fab/lib/fab-styles.css.js +1 -1
- package/fab/lib/fab-styles.css.js.map +1 -1
- package/fab/lib/fab.d.ts +14 -10
- package/fab/lib/fab.js +19 -12
- package/fab/lib/fab.js.map +1 -1
- package/fab/lib/forced-colors-styles.css.d.ts +1 -0
- package/fab/lib/forced-colors-styles.css.js +9 -0
- package/fab/lib/forced-colors-styles.css.js.map +1 -0
- package/fab/lib/forced-colors-styles.scss +26 -0
- package/fab/lib/shared-styles.css.d.ts +1 -0
- package/fab/lib/shared-styles.css.js +9 -0
- package/fab/lib/shared-styles.css.js.map +1 -0
- package/fab/lib/{fab-shared-styles.scss → shared-styles.scss} +1 -1
- package/fab/lib/{fab-shared.d.ts → shared.d.ts} +24 -16
- package/fab/lib/shared.js +137 -0
- package/fab/lib/shared.js.map +1 -0
- package/field/lib/field.js +14 -27
- package/field/lib/field.js.map +1 -1
- package/focus/focus-ring.d.ts +0 -1
- package/focus/focus-ring.js +0 -1
- package/focus/focus-ring.js.map +1 -1
- package/focus/lib/focus-ring.js +2 -3
- package/focus/lib/focus-ring.js.map +1 -1
- package/focus/strong-focus.js +5 -0
- package/focus/strong-focus.js.map +1 -1
- package/icon/icon.d.ts +0 -1
- package/icon/icon.js +0 -1
- package/icon/icon.js.map +1 -1
- package/icon/lib/_icon.scss +2 -0
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.js.map +1 -1
- package/icon/lib/icon.d.ts +5 -4
- package/icon/lib/icon.js +3 -2
- package/icon/lib/icon.js.map +1 -1
- package/iconbutton/lib/icon-button.d.ts +0 -4
- package/iconbutton/lib/icon-button.js +28 -48
- package/iconbutton/lib/icon-button.js.map +1 -1
- package/linearprogress/_linear-progress.scss +6 -0
- package/linearprogress/harness.d.ts +13 -0
- package/linearprogress/harness.js +18 -0
- package/linearprogress/harness.js.map +1 -0
- package/linearprogress/lib/_linear-progress.scss +380 -0
- package/linearprogress/lib/linear-progress-styles.css.d.ts +1 -0
- package/linearprogress/lib/linear-progress-styles.css.js +9 -0
- package/linearprogress/lib/linear-progress-styles.css.js.map +1 -0
- package/linearprogress/lib/linear-progress-styles.scss +8 -0
- package/linearprogress/lib/linear-progress.d.ts +35 -0
- package/linearprogress/lib/linear-progress.js +127 -0
- package/linearprogress/lib/linear-progress.js.map +1 -0
- package/linearprogress/linear-progress.d.ts +23 -0
- package/linearprogress/linear-progress.js +26 -0
- package/linearprogress/linear-progress.js.map +1 -0
- package/list/lib/_list.scss +6 -49
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/list.d.ts +1 -3
- package/list/lib/list.js +18 -34
- package/list/lib/list.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +10 -69
- package/list/lib/listitem/forced-colors-styles.css.js +1 -1
- package/list/lib/listitem/forced-colors-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item-styles.css.js +1 -1
- package/list/lib/listitem/list-item-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item.d.ts +2 -4
- package/list/lib/listitem/list-item.js +24 -53
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/lib/listitemlink/list-item-link.js +4 -6
- package/list/lib/listitemlink/list-item-link.js.map +1 -1
- package/menu/lib/_menu.scss +6 -28
- package/menu/lib/menu-styles.css.js +1 -1
- package/menu/lib/menu-styles.css.js.map +1 -1
- package/menu/lib/menu.d.ts +1 -2
- package/menu/lib/menu.js +38 -63
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +13 -32
- package/menu/lib/menuitem/menu-item-styles.css.js +1 -1
- package/menu/lib/menuitem/menu-item-styles.css.js.map +1 -1
- package/menu/lib/menuitem/menu-item.d.ts +1 -1
- package/menu/lib/menuitem/menu-item.js +4 -6
- package/menu/lib/menuitem/menu-item.js.map +1 -1
- package/menu/lib/menuitemlink/menu-item-link.d.ts +0 -2
- package/menu/lib/menuitemlink/menu-item-link.js +3 -6
- package/menu/lib/menuitemlink/menu-item-link.js.map +1 -1
- package/menu/lib/shared.d.ts +6 -2
- package/menu/lib/shared.js.map +1 -1
- package/menu/lib/submenuitem/sub-menu-item.d.ts +0 -2
- package/menu/lib/submenuitem/sub-menu-item.js +7 -15
- package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
- package/navigationbar/lib/_navigation-bar.scss +7 -1
- package/navigationbar/lib/navigation-bar-styles.css.js +1 -1
- package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -1
- package/navigationbar/lib/navigation-bar.d.ts +5 -5
- package/navigationbar/lib/navigation-bar.js +17 -18
- package/navigationbar/lib/navigation-bar.js.map +1 -1
- package/navigationbar/navigation-bar.d.ts +0 -1
- package/navigationbar/navigation-bar.js +0 -1
- package/navigationbar/navigation-bar.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-modal.d.ts +5 -10
- package/navigationdrawer/lib/navigation-drawer-modal.js +19 -41
- package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer.d.ts +5 -9
- package/navigationdrawer/lib/navigation-drawer.js +17 -38
- package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
- package/navigationdrawer/navigation-drawer-modal.d.ts +0 -1
- package/navigationdrawer/navigation-drawer-modal.js +0 -1
- package/navigationdrawer/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/navigation-drawer.d.ts +0 -1
- package/navigationdrawer/navigation-drawer.js +0 -1
- package/navigationdrawer/navigation-drawer.js.map +1 -1
- package/navigationtab/lib/navigation-tab.d.ts +19 -24
- package/navigationtab/lib/navigation-tab.js +48 -68
- package/navigationtab/lib/navigation-tab.js.map +1 -1
- package/navigationtab/navigation-tab.d.ts +0 -1
- package/navigationtab/navigation-tab.js +0 -1
- package/navigationtab/navigation-tab.js.map +1 -1
- package/package.json +1 -1
- package/radio/lib/radio.d.ts +0 -1
- package/radio/lib/radio.js +30 -37
- package/radio/lib/radio.js.map +1 -1
- package/ripple/lib/ripple.js +7 -13
- package/ripple/lib/ripple.js.map +1 -1
- package/segmentedbutton/lib/outlined-segmented-button.d.ts +16 -7
- package/segmentedbutton/lib/outlined-segmented-button.js +3 -3
- package/segmentedbutton/lib/outlined-segmented-button.js.map +1 -1
- package/segmentedbutton/lib/segmented-button.d.ts +27 -33
- package/segmentedbutton/lib/segmented-button.js +42 -75
- package/segmentedbutton/lib/segmented-button.js.map +1 -1
- package/segmentedbutton/outlined-segmented-button.d.ts +0 -1
- package/segmentedbutton/outlined-segmented-button.js +0 -1
- package/segmentedbutton/outlined-segmented-button.js.map +1 -1
- package/segmentedbuttonset/lib/outlined-segmented-button-set.d.ts +6 -4
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js +3 -2
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/lib/segmented-button-set.d.ts +3 -9
- package/segmentedbuttonset/lib/segmented-button-set.js +14 -20
- package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/outlined-segmented-button-set.d.ts +0 -1
- package/segmentedbuttonset/outlined-segmented-button-set.js +0 -1
- package/segmentedbuttonset/outlined-segmented-button-set.js.map +1 -1
- package/select/_filled-select.scss +6 -0
- package/select/_outlined-select.scss +6 -0
- package/select/filled-select.d.ts +41 -0
- package/select/filled-select.js +46 -0
- package/select/filled-select.js.map +1 -0
- package/select/harness.d.ts +24 -0
- package/select/harness.js +53 -0
- package/select/harness.js.map +1 -0
- package/select/lib/_filled-select.scss +163 -0
- package/select/lib/_outlined-select.scss +146 -0
- package/select/lib/_shared.scss +48 -0
- package/select/lib/filled-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/filled-forced-colors-styles.css.js +9 -0
- package/select/lib/filled-forced-colors-styles.css.js.map +1 -0
- package/select/lib/filled-forced-colors-styles.scss +29 -0
- package/select/lib/filled-select-styles.css.d.ts +1 -0
- package/select/lib/filled-select-styles.css.js +9 -0
- package/select/lib/filled-select-styles.css.js.map +1 -0
- package/select/lib/filled-select-styles.scss +10 -0
- package/select/lib/filled-select.d.ts +10 -0
- package/select/lib/filled-select.js +16 -0
- package/select/lib/filled-select.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/outlined-forced-colors-styles.css.js +9 -0
- package/select/lib/outlined-forced-colors-styles.css.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.scss +29 -0
- package/select/lib/outlined-select-styles.css.d.ts +1 -0
- package/select/lib/outlined-select-styles.css.js +9 -0
- package/select/lib/outlined-select-styles.css.js.map +1 -0
- package/select/lib/outlined-select-styles.scss +10 -0
- package/select/lib/outlined-select.d.ts +10 -0
- package/select/lib/outlined-select.js +16 -0
- package/select/lib/outlined-select.js.map +1 -0
- package/select/lib/select.d.ts +218 -0
- package/select/lib/select.js +587 -0
- package/select/lib/select.js.map +1 -0
- package/select/lib/selectoption/harness.d.ts +11 -0
- package/select/lib/selectoption/harness.js +12 -0
- package/select/lib/selectoption/harness.js.map +1 -0
- package/select/lib/selectoption/select-option.d.ts +30 -0
- package/select/lib/selectoption/select-option.js +71 -0
- package/select/lib/selectoption/select-option.js.map +1 -0
- package/select/lib/shared-styles.css.d.ts +1 -0
- package/select/lib/shared-styles.css.js +9 -0
- package/select/lib/shared-styles.css.js.map +1 -0
- package/select/lib/shared-styles.scss +10 -0
- package/select/lib/shared.d.ts +52 -0
- package/select/lib/shared.js +41 -0
- package/select/lib/shared.js.map +1 -0
- package/select/outlined-select.d.ts +41 -0
- package/select/outlined-select.js +46 -0
- package/select/outlined-select.js.map +1 -0
- package/select/select-option.d.ts +44 -0
- package/select/select-option.js +51 -0
- package/select/select-option.js.map +1 -0
- package/slider/harness.d.ts +1 -0
- package/slider/harness.js +5 -0
- package/slider/harness.js.map +1 -1
- package/slider/lib/_slider.scss +146 -164
- package/slider/lib/forced-colors-styles.css.js +1 -1
- package/slider/lib/forced-colors-styles.css.js.map +1 -1
- package/slider/lib/forced-colors-styles.scss +2 -2
- package/slider/lib/slider-styles.css.js +1 -1
- package/slider/lib/slider-styles.css.js.map +1 -1
- package/slider/lib/slider.d.ts +2 -7
- package/slider/lib/slider.js +64 -118
- package/slider/lib/slider.js.map +1 -1
- package/switch/lib/switch.d.ts +0 -2
- package/switch/lib/switch.js +32 -54
- package/switch/lib/switch.js.map +1 -1
- package/textfield/lib/text-field.d.ts +0 -10
- package/textfield/lib/text-field.js +45 -115
- package/textfield/lib/text-field.js.map +1 -1
- package/tokens/_index.scss +3 -0
- package/tokens/_md-comp-assist-chip.scss +25 -20
- package/tokens/_md-comp-elevation.scss +0 -4
- package/tokens/_md-comp-fab-branded.scss +109 -1
- package/tokens/_md-comp-fab.scss +290 -0
- package/tokens/_md-comp-filled-select.scss +150 -1
- package/tokens/_md-comp-filter-chip.scss +103 -93
- package/tokens/_md-comp-input-chip.scss +77 -85
- package/tokens/_md-comp-linear-progress-indicator.scss +14 -1
- package/tokens/_md-comp-list-item.scss +201 -0
- package/tokens/_md-comp-list.scss +107 -26
- package/tokens/_md-comp-menu-item.scss +76 -0
- package/tokens/_md-comp-menu.scss +52 -2
- package/tokens/_md-comp-outlined-select.scss +150 -1
- package/tokens/_md-comp-slider.scss +13 -1
- package/tokens/_md-comp-suggestion-chip.scss +29 -21
- package/tokens/_values.scss +5 -2
- package/types/aria.d.ts +61 -1
- package/actionelement/action-element.d.ts +0 -79
- package/actionelement/action-element.js +0 -97
- package/actionelement/action-element.js.map +0 -1
- package/button/lib/state.d.ts +0 -10
- package/button/lib/state.js +0 -7
- package/button/lib/state.js.map +0 -1
- package/controller/action-controller.d.ts +0 -147
- package/controller/action-controller.js +0 -286
- package/controller/action-controller.js.map +0 -1
- package/decorators/aria-property.d.ts +0 -32
- package/decorators/aria-property.js +0 -99
- package/decorators/aria-property.js.map +0 -1
- package/fab/_fab-extended.scss +0 -6
- package/fab/fab-extended.d.ts +0 -23
- package/fab/fab-extended.js +0 -29
- package/fab/fab-extended.js.map +0 -1
- package/fab/lib/_fab-extended.scss +0 -73
- package/fab/lib/fab-extended-styles.css.js +0 -9
- package/fab/lib/fab-extended-styles.css.js.map +0 -1
- package/fab/lib/fab-extended.d.ts +0 -19
- package/fab/lib/fab-extended.js +0 -28
- package/fab/lib/fab-extended.js.map +0 -1
- package/fab/lib/fab-shared-styles.css.js +0 -9
- package/fab/lib/fab-shared-styles.css.js.map +0 -1
- package/fab/lib/fab-shared.js +0 -121
- package/fab/lib/fab-shared.js.map +0 -1
- package/slider/lib/_tokens.scss +0 -65
- /package/{fab/lib/fab-extended-styles.css.d.ts → chips/lib/filter-styles.css.d.ts} +0 -0
- /package/fab/lib/{fab-shared-styles.css.d.ts → fab-branded-styles.css.d.ts} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Field } from '../field/lib/field.js';
|
|
7
|
+
import { Harness } from '../testing/harness.js';
|
|
8
|
+
import { Select } from './lib/select.js';
|
|
9
|
+
import { SelectOptionHarness } from './lib/selectoption/harness.js';
|
|
10
|
+
/**
|
|
11
|
+
* Test harness for menu.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SelectHarness extends Harness<Select> {
|
|
14
|
+
protected getField(): Field;
|
|
15
|
+
/**
|
|
16
|
+
* Shows the menu and returns the first list item element.
|
|
17
|
+
*/
|
|
18
|
+
protected getInteractiveElement(): Promise<Field>;
|
|
19
|
+
startHover(): Promise<void>;
|
|
20
|
+
/** @return ListItem harnesses for the menu's items. */
|
|
21
|
+
getItems(): SelectOptionHarness[];
|
|
22
|
+
click(quick?: boolean): Promise<void>;
|
|
23
|
+
clickOption(index: number): Promise<void>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { FieldHarness } from '../field/harness.js';
|
|
7
|
+
import { Harness } from '../testing/harness.js';
|
|
8
|
+
import { SelectOptionHarness } from './lib/selectoption/harness.js';
|
|
9
|
+
/**
|
|
10
|
+
* Test harness for menu.
|
|
11
|
+
*/
|
|
12
|
+
export class SelectHarness extends Harness {
|
|
13
|
+
getField() {
|
|
14
|
+
return this.element.renderRoot.querySelector('.field');
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Shows the menu and returns the first list item element.
|
|
18
|
+
*/
|
|
19
|
+
async getInteractiveElement() {
|
|
20
|
+
await this.element.updateComplete;
|
|
21
|
+
return this.getField();
|
|
22
|
+
}
|
|
23
|
+
async startHover() {
|
|
24
|
+
const field = await this.getField();
|
|
25
|
+
const element = await (new SelectFieldHardness(field)).getInteractiveElement();
|
|
26
|
+
this.simulateStartHover(element);
|
|
27
|
+
}
|
|
28
|
+
/** @return ListItem harnesses for the menu's items. */
|
|
29
|
+
getItems() {
|
|
30
|
+
return this.element.options.map((item) => new SelectOptionHarness(item));
|
|
31
|
+
}
|
|
32
|
+
async click(quick = true) {
|
|
33
|
+
this.element.quick = quick;
|
|
34
|
+
await this.element.updateComplete;
|
|
35
|
+
const field = await this.getField();
|
|
36
|
+
field.click();
|
|
37
|
+
}
|
|
38
|
+
async clickOption(index) {
|
|
39
|
+
const menu = this.element.renderRoot.querySelector('md-menu');
|
|
40
|
+
if (!menu.open) {
|
|
41
|
+
console.warn('Internal menu is not open. Try calling SelectHarness.prototype.click()');
|
|
42
|
+
}
|
|
43
|
+
this.getItems()[index].element.click();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Private class (not exported)
|
|
47
|
+
class SelectFieldHardness extends FieldHarness {
|
|
48
|
+
/* Expose so that we can call it from our internal code in SelectHarness. */
|
|
49
|
+
getInteractiveElement() {
|
|
50
|
+
return super.getInteractiveElement();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=harness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness.js","sourceRoot":"","sources":["harness.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAG9C,OAAO,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AAElE;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,OAAe;IACtC,QAAQ;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAU,CAAC;IAClE,CAAC;IACD;;OAEG;IACgB,KAAK,CAAC,qBAAqB;QAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAEQ,KAAK,CAAC,UAAU;QACvB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC;QAC/E,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,uDAAuD;IACvD,QAAQ;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI;QACtB,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;QAC3B,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAE,CAAC;QAC/D,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd,OAAO,CAAC,IAAI,CACR,wEAAwE,CAAC,CAAC;SAC/E;QACD,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzC,CAAC;CACF;AAED,+BAA+B;AAC/B,MAAM,mBAAoB,SAAQ,YAAY;IAC5C,4EAA4E;IACnE,qBAAqB;QAC5B,OAAO,KAAK,CAAC,qBAAqB,EAAE,CAAC;IACvC,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {FieldHarness} from '../field/harness.js';\nimport {Field} from '../field/lib/field.js';\nimport {Harness} from '../testing/harness.js';\n\nimport {Select} from './lib/select.js';\nimport {SelectOptionHarness} from './lib/selectoption/harness.js';\n\n/**\n * Test harness for menu.\n */\nexport class SelectHarness extends Harness<Select> {\n protected getField() {\n return this.element.renderRoot.querySelector('.field') as Field;\n }\n /**\n * Shows the menu and returns the first list item element.\n */\n protected override async getInteractiveElement() {\n await this.element.updateComplete;\n return this.getField();\n }\n\n override async startHover() {\n const field = await this.getField();\n const element = await (new SelectFieldHardness(field)).getInteractiveElement();\n this.simulateStartHover(element);\n }\n\n /** @return ListItem harnesses for the menu's items. */\n getItems() {\n return this.element.options.map((item) => new SelectOptionHarness(item));\n }\n\n async click(quick = true) {\n this.element.quick = quick;\n await this.element.updateComplete;\n const field = await this.getField();\n field.click();\n }\n\n async clickOption(index: number) {\n const menu = this.element.renderRoot.querySelector('md-menu')!;\n if (!menu.open) {\n console.warn(\n 'Internal menu is not open. Try calling SelectHarness.prototype.click()');\n }\n this.getItems()[index].element.click();\n }\n}\n\n// Private class (not exported)\nclass SelectFieldHardness extends FieldHarness {\n /* Expose so that we can call it from our internal code in SelectHarness. */\n override getInteractiveElement() {\n return super.getInteractiveElement();\n }\n}\n"]}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
@use 'sass:string';
|
|
10
|
+
// go/keep-sorted end
|
|
11
|
+
// go/keep-sorted start
|
|
12
|
+
@use '../../field/filled-field';
|
|
13
|
+
@use '../../sass/shape';
|
|
14
|
+
@use '../../sass/theme';
|
|
15
|
+
@use '../../tokens';
|
|
16
|
+
// go/keep-sorted end
|
|
17
|
+
|
|
18
|
+
@mixin theme($tokens) {
|
|
19
|
+
$tokens: theme.validate-theme(tokens.md-comp-filled-select-values(), $tokens);
|
|
20
|
+
|
|
21
|
+
@each $token, $value in $tokens {
|
|
22
|
+
--md-filled-select-#{$token}: #{$value};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin styles() {
|
|
27
|
+
$tokens: tokens.md-comp-filled-select-values();
|
|
28
|
+
|
|
29
|
+
:host {
|
|
30
|
+
@each $token, $value in $tokens {
|
|
31
|
+
--_#{$token}: #{$value};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include filled-field.theme(
|
|
35
|
+
(
|
|
36
|
+
// go/keep-sorted start
|
|
37
|
+
'active-indicator-color': var(--_text-field-active-indicator-color),
|
|
38
|
+
'active-indicator-height': var(--_text-field-active-indicator-height),
|
|
39
|
+
'container-color': var(--_text-field-container-color),
|
|
40
|
+
'container-shape':
|
|
41
|
+
shape.corners-to-shape-token('--_text-field-container-shape'),
|
|
42
|
+
'content-color': var(--_text-field-input-text-color),
|
|
43
|
+
'content-type': var(--_text-field-input-text-type),
|
|
44
|
+
'disabled-active-indicator-color':
|
|
45
|
+
var(--_text-field-disabled-active-indicator-color),
|
|
46
|
+
'disabled-active-indicator-height':
|
|
47
|
+
var(--_text-field-disabled-active-indicator-height),
|
|
48
|
+
'disabled-active-indicator-opacity':
|
|
49
|
+
var(--_text-field-disabled-active-indicator-opacity),
|
|
50
|
+
'disabled-container-color': var(--_text-field-disabled-container-color),
|
|
51
|
+
'disabled-container-opacity':
|
|
52
|
+
var(--_text-field-disabled-container-opacity),
|
|
53
|
+
'disabled-content-color': var(--_text-field-disabled-input-text-color),
|
|
54
|
+
'disabled-content-opacity':
|
|
55
|
+
var(--_text-field-disabled-input-text-opacity),
|
|
56
|
+
'disabled-label-text-color':
|
|
57
|
+
var(--_text-field-disabled-label-text-color),
|
|
58
|
+
'disabled-label-text-opacity':
|
|
59
|
+
var(--_text-field-disabled-label-text-opacity),
|
|
60
|
+
'disabled-leading-content-color':
|
|
61
|
+
var(--_text-field-disabled-leading-icon-color),
|
|
62
|
+
'disabled-leading-content-opacity':
|
|
63
|
+
var(--_text-field-disabled-leading-icon-opacity),
|
|
64
|
+
'disabled-supporting-text-color':
|
|
65
|
+
var(--_text-field-disabled-supporting-text-color),
|
|
66
|
+
'disabled-supporting-text-opacity':
|
|
67
|
+
var(--_text-field-disabled-supporting-text-opacity),
|
|
68
|
+
'disabled-trailing-content-color':
|
|
69
|
+
var(--_text-field-disabled-trailing-icon-color),
|
|
70
|
+
'disabled-trailing-content-opacity':
|
|
71
|
+
var(--_text-field-disabled-trailing-icon-opacity),
|
|
72
|
+
'error-active-indicator-color':
|
|
73
|
+
var(--_text-field-error-active-indicator-color),
|
|
74
|
+
'error-content-color': var(--_text-field-error-input-text-color),
|
|
75
|
+
'error-focus-active-indicator-color':
|
|
76
|
+
var(--_text-field-error-focus-active-indicator-color),
|
|
77
|
+
'error-focus-content-color':
|
|
78
|
+
var(--_text-field-error-focus-input-text-color),
|
|
79
|
+
'error-focus-label-text-color':
|
|
80
|
+
var(--_text-field-error-focus-label-text-color),
|
|
81
|
+
'error-focus-leading-content-color':
|
|
82
|
+
var(--_text-field-error-focus-leading-icon-color),
|
|
83
|
+
'error-focus-supporting-text-color':
|
|
84
|
+
var(--_text-field-error-focus-supporting-text-color),
|
|
85
|
+
'error-focus-trailing-content-color':
|
|
86
|
+
var(--_text-field-error-focus-trailing-icon-color),
|
|
87
|
+
'error-hover-active-indicator-color':
|
|
88
|
+
var(--_text-field-error-hover-active-indicator-color),
|
|
89
|
+
'error-hover-content-color':
|
|
90
|
+
var(--_text-field-error-hover-input-text-color),
|
|
91
|
+
'error-hover-label-text-color':
|
|
92
|
+
var(--_text-field-error-hover-label-text-color),
|
|
93
|
+
'error-hover-leading-content-color':
|
|
94
|
+
var(--_text-field-error-hover-leading-icon-color),
|
|
95
|
+
'error-hover-state-layer-color':
|
|
96
|
+
var(--_text-field-error-hover-state-layer-color),
|
|
97
|
+
'error-hover-state-layer-opacity':
|
|
98
|
+
var(--_text-field-error-hover-state-layer-opacity),
|
|
99
|
+
'error-hover-supporting-text-color':
|
|
100
|
+
var(--_text-field-error-hover-supporting-text-color),
|
|
101
|
+
'error-hover-trailing-content-color':
|
|
102
|
+
var(--_text-field-error-hover-trailing-icon-color),
|
|
103
|
+
'error-label-text-color': var(--_text-field-error-label-text-color),
|
|
104
|
+
'error-leading-content-color':
|
|
105
|
+
var(--_text-field-error-leading-icon-color),
|
|
106
|
+
'error-supporting-text-color':
|
|
107
|
+
var(--_text-field-error-supporting-text-color),
|
|
108
|
+
'error-trailing-content-color':
|
|
109
|
+
var(--_text-field-error-trailing-icon-color),
|
|
110
|
+
'focus-active-indicator-color':
|
|
111
|
+
var(--_text-field-focus-active-indicator-color),
|
|
112
|
+
'focus-active-indicator-height':
|
|
113
|
+
var(--_text-field-focus-active-indicator-height),
|
|
114
|
+
'focus-content-color': var(--_text-field-focus-input-text-color),
|
|
115
|
+
'focus-label-text-color': var(--_text-field-focus-label-text-color),
|
|
116
|
+
'focus-leading-content-color':
|
|
117
|
+
var(--_text-field-focus-leading-icon-color),
|
|
118
|
+
'focus-supporting-text-color':
|
|
119
|
+
var(--_text-field-focus-supporting-text-color),
|
|
120
|
+
'focus-trailing-content-color':
|
|
121
|
+
var(--_text-field-focus-trailing-icon-color),
|
|
122
|
+
'hover-active-indicator-color':
|
|
123
|
+
var(--_text-field-hover-active-indicator-color),
|
|
124
|
+
'hover-active-indicator-height':
|
|
125
|
+
var(--_text-field-hover-active-indicator-height),
|
|
126
|
+
'hover-content-color': var(--_text-field-hover-input-text-color),
|
|
127
|
+
'hover-label-text-color': var(--_text-field-hover-label-text-color),
|
|
128
|
+
'hover-leading-content-color':
|
|
129
|
+
var(--_text-field-hover-leading-icon-color),
|
|
130
|
+
'hover-state-layer-color': var(--_text-field-hover-state-layer-color),
|
|
131
|
+
'hover-state-layer-opacity':
|
|
132
|
+
var(--_text-field-hover-state-layer-opacity),
|
|
133
|
+
'hover-supporting-text-color':
|
|
134
|
+
var(--_text-field-hover-supporting-text-color),
|
|
135
|
+
'hover-trailing-content-color':
|
|
136
|
+
var(--_text-field-hover-trailing-icon-color),
|
|
137
|
+
'label-text-color': var(--_text-field-label-text-color),
|
|
138
|
+
'label-text-populated-line-height':
|
|
139
|
+
var(--_text-field-label-text-populated-line-height),
|
|
140
|
+
'label-text-populated-size':
|
|
141
|
+
var(--_text-field-label-text-populated-size),
|
|
142
|
+
'label-text-type': var(--_text-field-label-text-type),
|
|
143
|
+
'leading-content-color': var(--_text-field-leading-icon-color),
|
|
144
|
+
'supporting-text-color': var(--_text-field-supporting-text-color),
|
|
145
|
+
'supporting-text-type': var(--_text-field-supporting-text-type),
|
|
146
|
+
'trailing-content-color': var(--_text-field-trailing-icon-color),
|
|
147
|
+
// go/keep-sorted end
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[hasstart] .icon.leading {
|
|
153
|
+
font-size: var(--_text-field-leading-icon-size);
|
|
154
|
+
height: var(--_text-field-leading-icon-size);
|
|
155
|
+
width: var(--_text-field-leading-icon-size);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[hasend] .icon.trailing {
|
|
159
|
+
font-size: var(--_text-field-trailing-icon-size);
|
|
160
|
+
height: var(--_text-field-trailing-icon-size);
|
|
161
|
+
width: var(--_text-field-trailing-icon-size);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
@use 'sass:string';
|
|
10
|
+
// go/keep-sorted end
|
|
11
|
+
// go/keep-sorted start
|
|
12
|
+
@use '../../field/outlined-field';
|
|
13
|
+
@use '../../sass/shape';
|
|
14
|
+
@use '../../sass/theme';
|
|
15
|
+
@use '../../tokens';
|
|
16
|
+
// go/keep-sorted end
|
|
17
|
+
|
|
18
|
+
@mixin theme($tokens) {
|
|
19
|
+
$tokens: theme.validate-theme(
|
|
20
|
+
tokens.md-comp-outlined-select-values(),
|
|
21
|
+
$tokens
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
@each $token, $value in $tokens {
|
|
25
|
+
--md-outlined-select-#{$token}: #{$value};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin styles() {
|
|
30
|
+
$tokens: tokens.md-comp-outlined-select-values();
|
|
31
|
+
|
|
32
|
+
:host {
|
|
33
|
+
@each $token, $value in $tokens {
|
|
34
|
+
--_#{$token}: #{$value};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include outlined-field.theme(
|
|
38
|
+
(
|
|
39
|
+
// go/keep-sorted start
|
|
40
|
+
'container-shape': var(--_text-field-container-shape),
|
|
41
|
+
'content-color': var(--_text-field-input-text-color),
|
|
42
|
+
'content-type': var(--_text-field-input-text-type),
|
|
43
|
+
'disabled-content-color': var(--_text-field-disabled-input-text-color),
|
|
44
|
+
'disabled-content-opacity':
|
|
45
|
+
var(--_text-field-disabled-input-text-opacity),
|
|
46
|
+
'disabled-label-text-color':
|
|
47
|
+
var(--_text-field-disabled-label-text-color),
|
|
48
|
+
'disabled-label-text-opacity':
|
|
49
|
+
var(--_text-field-disabled-label-text-opacity),
|
|
50
|
+
'disabled-leading-content-color':
|
|
51
|
+
var(--_text-field-disabled-leading-icon-color),
|
|
52
|
+
'disabled-leading-content-opacity':
|
|
53
|
+
var(--_text-field-disabled-leading-icon-opacity),
|
|
54
|
+
'disabled-outline-color': var(--_text-field-disabled-outline-color),
|
|
55
|
+
'disabled-outline-opacity': var(--_text-field-disabled-outline-opacity),
|
|
56
|
+
'disabled-outline-width': var(--_text-field-disabled-outline-width),
|
|
57
|
+
'disabled-supporting-text-color':
|
|
58
|
+
var(--_text-field-disabled-supporting-text-color),
|
|
59
|
+
'disabled-supporting-text-opacity':
|
|
60
|
+
var(--_text-field-disabled-supporting-text-opacity),
|
|
61
|
+
'disabled-trailing-content-color':
|
|
62
|
+
var(--_text-field-disabled-trailing-icon-color),
|
|
63
|
+
'disabled-trailing-content-opacity':
|
|
64
|
+
var(--_text-field-disabled-trailing-icon-opacity),
|
|
65
|
+
'error-content-color': var(--_text-field-error-input-text-color),
|
|
66
|
+
'error-focus-content-color':
|
|
67
|
+
var(--_text-field-error-focus-input-text-color),
|
|
68
|
+
'error-focus-label-text-color':
|
|
69
|
+
var(--_text-field-error-focus-label-text-color),
|
|
70
|
+
'error-focus-leading-content-color':
|
|
71
|
+
var(--_text-field-error-focus-leading-icon-color),
|
|
72
|
+
'error-focus-outline-color':
|
|
73
|
+
var(--_text-field-error-focus-outline-color),
|
|
74
|
+
'error-focus-supporting-text-color':
|
|
75
|
+
var(--_text-field-error-focus-supporting-text-color),
|
|
76
|
+
'error-focus-trailing-content-color':
|
|
77
|
+
var(--_text-field-error-focus-trailing-icon-color),
|
|
78
|
+
'error-hover-content-color':
|
|
79
|
+
var(--_text-field-error-hover-input-text-color),
|
|
80
|
+
'error-hover-label-text-color':
|
|
81
|
+
var(--_text-field-error-hover-label-text-color),
|
|
82
|
+
'error-hover-leading-content-color':
|
|
83
|
+
var(--_text-field-error-hover-leading-icon-color),
|
|
84
|
+
'error-hover-outline-color':
|
|
85
|
+
var(--_text-field-error-hover-outline-color),
|
|
86
|
+
'error-hover-supporting-text-color':
|
|
87
|
+
var(--_text-field-error-hover-supporting-text-color),
|
|
88
|
+
'error-hover-trailing-content-color':
|
|
89
|
+
var(--_text-field-error-hover-trailing-icon-color),
|
|
90
|
+
'error-label-text-color': var(--_text-field-error-label-text-color),
|
|
91
|
+
'error-leading-content-color':
|
|
92
|
+
var(--_text-field-error-leading-icon-color),
|
|
93
|
+
'error-outline-color': var(--_text-field-error-outline-color),
|
|
94
|
+
'error-supporting-text-color':
|
|
95
|
+
var(--_text-field-error-supporting-text-color),
|
|
96
|
+
'error-trailing-content-color':
|
|
97
|
+
var(--_text-field-error-trailing-icon-color),
|
|
98
|
+
'focus-content-color': var(--_text-field-focus-input-text-color),
|
|
99
|
+
'focus-label-text-color': var(--_text-field-focus-label-text-color),
|
|
100
|
+
'focus-leading-content-color':
|
|
101
|
+
var(--_text-field-focus-leading-icon-color),
|
|
102
|
+
'focus-outline-color': var(--_text-field-focus-outline-color),
|
|
103
|
+
'focus-outline-width': var(--_text-field-focus-outline-width),
|
|
104
|
+
'focus-supporting-text-color':
|
|
105
|
+
var(--_text-field-focus-supporting-text-color),
|
|
106
|
+
'focus-trailing-content-color':
|
|
107
|
+
var(--_text-field-focus-trailing-icon-color),
|
|
108
|
+
'hover-content-color': var(--_text-field-hover-input-text-color),
|
|
109
|
+
'hover-label-text-color': var(--_text-field-hover-label-text-color),
|
|
110
|
+
'hover-leading-content-color':
|
|
111
|
+
var(--_text-field-hover-leading-icon-color),
|
|
112
|
+
'hover-outline-color': var(--_text-field-hover-outline-color),
|
|
113
|
+
'hover-outline-width': var(--_text-field-hover-outline-width),
|
|
114
|
+
'hover-supporting-text-color':
|
|
115
|
+
var(--_text-field-hover-supporting-text-color),
|
|
116
|
+
'hover-trailing-content-color':
|
|
117
|
+
var(--_text-field-hover-trailing-icon-color),
|
|
118
|
+
'label-text-color': var(--_text-field-label-text-color),
|
|
119
|
+
'label-text-populated-line-height':
|
|
120
|
+
var(--_text-field-label-text-populated-line-height),
|
|
121
|
+
'label-text-populated-size':
|
|
122
|
+
var(--_text-field-label-text-populated-size),
|
|
123
|
+
'label-text-type': var(--_text-field-label-text-type),
|
|
124
|
+
'leading-content-color': var(--_text-field-leading-icon-color),
|
|
125
|
+
'outline-color': var(--_text-field-outline-color),
|
|
126
|
+
'outline-width': var(--_text-field-outline-width),
|
|
127
|
+
'supporting-text-color': var(--_text-field-supporting-text-color),
|
|
128
|
+
'supporting-text-type': var(--_text-field-supporting-text-type),
|
|
129
|
+
'trailing-content-color': var(--_text-field-trailing-icon-color),
|
|
130
|
+
// go/keep-sorted end
|
|
131
|
+
)
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[hasstart] .icon.leading {
|
|
136
|
+
font-size: var(--_text-field-leading-icon-size);
|
|
137
|
+
height: var(--_text-field-leading-icon-size);
|
|
138
|
+
width: var(--_text-field-leading-icon-size);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[hasend] .icon.trailing {
|
|
142
|
+
font-size: var(--_text-field-trailing-icon-size);
|
|
143
|
+
height: var(--_text-field-trailing-icon-size);
|
|
144
|
+
width: var(--_text-field-trailing-icon-size);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
@use 'sass:string';
|
|
10
|
+
// go/keep-sorted end
|
|
11
|
+
// go/keep-sorted start
|
|
12
|
+
@use '../../elevation/lib/elevation';
|
|
13
|
+
@use '../../sass/theme';
|
|
14
|
+
@use '../../tokens';
|
|
15
|
+
// go/keep-sorted end
|
|
16
|
+
|
|
17
|
+
@mixin styles() {
|
|
18
|
+
:host {
|
|
19
|
+
color: unset;
|
|
20
|
+
min-width: 210px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.field {
|
|
24
|
+
cursor: default;
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.select {
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.field,
|
|
33
|
+
.select {
|
|
34
|
+
min-width: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.label {
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([disabled]) {
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
export const styles = css `@media(forced-colors: active){:host{--md-filled-select-text-field-disabled-active-indicator-color: GrayText;--md-filled-select-text-field-disabled-active-indicator-opacity: 1;--md-filled-select-text-field-disabled-input-text-color: GrayText;--md-filled-select-text-field-disabled-input-text-opacity: 1;--md-filled-select-text-field-disabled-label-text-color: GrayText;--md-filled-select-text-field-disabled-label-text-opacity: 1;--md-filled-select-text-field-disabled-leading-icon-color: GrayText;--md-filled-select-text-field-disabled-leading-icon-opacity: 1;--md-filled-select-text-field-disabled-supporting-text-color: GrayText;--md-filled-select-text-field-disabled-supporting-text-opacity: 1;--md-filled-select-text-field-disabled-trailing-icon-color: GrayText;--md-filled-select-text-field-disabled-trailing-icon-opacity: 1}}/*# sourceMappingURL=filled-forced-colors-styles.css.map */
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=filled-forced-colors-styles.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-forced-colors-styles.css.js","sourceRoot":"","sources":["filled-forced-colors-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`@media(forced-colors: active){:host{--md-filled-select-text-field-disabled-active-indicator-color: GrayText;--md-filled-select-text-field-disabled-active-indicator-opacity: 1;--md-filled-select-text-field-disabled-input-text-color: GrayText;--md-filled-select-text-field-disabled-input-text-opacity: 1;--md-filled-select-text-field-disabled-label-text-color: GrayText;--md-filled-select-text-field-disabled-label-text-opacity: 1;--md-filled-select-text-field-disabled-leading-icon-color: GrayText;--md-filled-select-text-field-disabled-leading-icon-opacity: 1;--md-filled-select-text-field-disabled-supporting-text-color: GrayText;--md-filled-select-text-field-disabled-supporting-text-opacity: 1;--md-filled-select-text-field-disabled-trailing-icon-color: GrayText;--md-filled-select-text-field-disabled-trailing-icon-opacity: 1}}/*# sourceMappingURL=filled-forced-colors-styles.css.map */\n`;\n "]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use './filled-select';
|
|
8
|
+
// go/keep-sorted end
|
|
9
|
+
|
|
10
|
+
@media (forced-colors: active) {
|
|
11
|
+
:host {
|
|
12
|
+
@include filled-select.theme(
|
|
13
|
+
(
|
|
14
|
+
text-field-disabled-active-indicator-color: GrayText,
|
|
15
|
+
text-field-disabled-active-indicator-opacity: 1,
|
|
16
|
+
text-field-disabled-input-text-color: GrayText,
|
|
17
|
+
text-field-disabled-input-text-opacity: 1,
|
|
18
|
+
text-field-disabled-label-text-color: GrayText,
|
|
19
|
+
text-field-disabled-label-text-opacity: 1,
|
|
20
|
+
text-field-disabled-leading-icon-color: GrayText,
|
|
21
|
+
text-field-disabled-leading-icon-opacity: 1,
|
|
22
|
+
text-field-disabled-supporting-text-color: GrayText,
|
|
23
|
+
text-field-disabled-supporting-text-opacity: 1,
|
|
24
|
+
text-field-disabled-trailing-icon-color: GrayText,
|
|
25
|
+
text-field-disabled-trailing-icon-opacity: 1,
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
export const styles = css `:host{--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, 4px));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, 4px));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, 0px));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, 0px));--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 2px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-type: var(--md-filled-select-text-field-input-text-type, 400 1rem / 1.5rem var(--md-ref-typeface-plain, Roboto));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, 1rem);--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, 0.75rem);--_text-field-label-text-type: var(--md-filled-select-text-field-label-text-type, 400 1rem / 1.5rem var(--md-ref-typeface-plain, Roboto));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 20px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-type: var(--md-filled-select-text-field-supporting-text-type, 400 0.75rem / 1rem var(--md-ref-typeface-plain, Roboto));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--md-filled-field-container-shape-start-start:var(--md-filled-field-container-shape, var(--_text-field-container-shape-start-start));--md-filled-field-container-shape-start-end:var(--md-filled-field-container-shape, var(--_text-field-container-shape-start-end));--md-filled-field-container-shape-end-end:var(--md-filled-field-container-shape, var(--_text-field-container-shape-end-end));--md-filled-field-container-shape-end-start:var(--md-filled-field-container-shape, var(--_text-field-container-shape-end-start));--md-filled-field-active-indicator-color:var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height:var(--_text-field-active-indicator-height);--md-filled-field-container-color:var(--_text-field-container-color);--md-filled-field-content-color:var(--_text-field-input-text-color);--md-filled-field-content-type:var(--_text-field-input-text-type);--md-filled-field-disabled-active-indicator-color:var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height:var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity:var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color:var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity:var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color:var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity:var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color:var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity:var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color:var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity:var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color:var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity:var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color:var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity:var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color:var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color:var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color:var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color:var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color:var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color:var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color:var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color:var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color:var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color:var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color:var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color:var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color:var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity:var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color:var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color:var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color:var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color:var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color:var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color:var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color:var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height:var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color:var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color:var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color:var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color:var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color:var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color:var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height:var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color:var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color:var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color:var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color:var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity:var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color:var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color:var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color:var(--_text-field-label-text-color);--md-filled-field-label-text-populated-line-height:var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size:var(--_text-field-label-text-populated-size);--md-filled-field-label-text-type:var(--_text-field-label-text-type);--md-filled-field-leading-content-color:var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color:var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-type:var(--_text-field-supporting-text-type);--md-filled-field-trailing-content-color:var(--_text-field-trailing-icon-color)}[hasstart] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}[hasend] .icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}/*# sourceMappingURL=filled-select-styles.css.map */
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=filled-select-styles.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-select-styles.css.js","sourceRoot":"","sources":["filled-select-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`:host{--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, 4px));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, 4px));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, 0px));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, 0px));--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 2px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-type: var(--md-filled-select-text-field-input-text-type, 400 1rem / 1.5rem var(--md-ref-typeface-plain, Roboto));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, 1rem);--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, 0.75rem);--_text-field-label-text-type: var(--md-filled-select-text-field-label-text-type, 400 1rem / 1.5rem var(--md-ref-typeface-plain, Roboto));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 20px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-type: var(--md-filled-select-text-field-supporting-text-type, 400 0.75rem / 1rem var(--md-ref-typeface-plain, Roboto));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--md-filled-field-container-shape-start-start:var(--md-filled-field-container-shape, var(--_text-field-container-shape-start-start));--md-filled-field-container-shape-start-end:var(--md-filled-field-container-shape, var(--_text-field-container-shape-start-end));--md-filled-field-container-shape-end-end:var(--md-filled-field-container-shape, var(--_text-field-container-shape-end-end));--md-filled-field-container-shape-end-start:var(--md-filled-field-container-shape, var(--_text-field-container-shape-end-start));--md-filled-field-active-indicator-color:var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height:var(--_text-field-active-indicator-height);--md-filled-field-container-color:var(--_text-field-container-color);--md-filled-field-content-color:var(--_text-field-input-text-color);--md-filled-field-content-type:var(--_text-field-input-text-type);--md-filled-field-disabled-active-indicator-color:var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height:var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity:var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color:var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity:var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color:var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity:var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color:var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity:var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color:var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity:var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color:var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity:var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color:var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity:var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color:var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color:var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color:var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color:var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color:var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color:var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color:var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color:var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color:var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color:var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color:var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color:var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color:var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity:var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color:var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color:var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color:var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color:var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color:var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color:var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color:var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height:var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color:var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color:var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color:var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color:var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color:var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color:var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height:var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color:var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color:var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color:var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color:var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity:var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color:var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color:var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color:var(--_text-field-label-text-color);--md-filled-field-label-text-populated-line-height:var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size:var(--_text-field-label-text-populated-size);--md-filled-field-label-text-type:var(--_text-field-label-text-type);--md-filled-field-leading-content-color:var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color:var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-type:var(--_text-field-supporting-text-type);--md-filled-field-trailing-content-color:var(--_text-field-trailing-icon-color)}[hasstart] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}[hasend] .icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}/*# sourceMappingURL=filled-select-styles.css.map */\n`;\n "]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import '../../field/filled-field.js';
|
|
7
|
+
import { Select } from './select.js';
|
|
8
|
+
export declare abstract class FilledSelect extends Select {
|
|
9
|
+
protected readonly fieldTag: import("lit-html/static.js").StaticValue;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import '../../field/filled-field.js';
|
|
7
|
+
import { literal } from 'lit/static-html.js';
|
|
8
|
+
import { Select } from './select.js';
|
|
9
|
+
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
|
10
|
+
export class FilledSelect extends Select {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.fieldTag = literal `md-filled-field`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=filled-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-select.js","sourceRoot":"","sources":["filled-select.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAEnC,gEAAgE;AAChE,MAAM,OAAgB,YAAa,SAAQ,MAAM;IAAjD;;QACqB,aAAQ,GAAG,OAAO,CAAA,iBAAiB,CAAC;IACzD,CAAC;CAAA","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport '../../field/filled-field.js';\n\nimport {literal} from 'lit/static-html.js';\n\nimport {Select} from './select.js';\n\n// tslint:disable-next-line:enforce-comments-on-exported-symbols\nexport abstract class FilledSelect extends Select {\n protected readonly fieldTag = literal`md-filled-field`;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
export const styles = css `@media(forced-colors: active){:host{--md-outlined-select-text-field-disabled-input-text-color: GrayText;--md-outlined-select-text-field-disabled-input-text-opacity: 1;--md-outlined-select-text-field-disabled-label-text-color: GrayText;--md-outlined-select-text-field-disabled-label-text-opacity: 1;--md-outlined-select-text-field-disabled-leading-icon-color: GrayText;--md-outlined-select-text-field-disabled-leading-icon-opacity: 1;--md-outlined-select-text-field-disabled-outline-color: GrayText;--md-outlined-select-text-field-disabled-outline-opacity: 1;--md-outlined-select-text-field-disabled-supporting-text-color: GrayText;--md-outlined-select-text-field-disabled-supporting-text-opacity: 1;--md-outlined-select-text-field-disabled-trailing-icon-color: GrayText;--md-outlined-select-text-field-disabled-trailing-icon-opacity: 1}}/*# sourceMappingURL=outlined-forced-colors-styles.css.map */
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=outlined-forced-colors-styles.css.js.map
|