@covalent/components 6.0.1 → 6.0.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/action-ribbon.mjs +9 -7
- package/alert.mjs +13 -11
- package/app-shell.mjs +10 -4
- package/aria-property.mjs +41 -0
- package/base-element.mjs +28 -0
- package/button.mjs +180 -13
- package/card.mjs +3 -3
- package/check-list-item.mjs +92 -14
- package/checkbox.mjs +26 -14
- package/circular-progress.mjs +144 -10
- package/class-map.mjs +62 -0
- package/code-snippet.mjs +6 -5
- package/covalent.mjs +2 -2
- package/covalent.umd.js +3339 -137
- package/dialog.mjs +750 -15
- package/directive-helpers.mjs +11 -0
- package/drawer.mjs +26 -15
- package/empty-state.mjs +4 -4
- package/event-options.mjs +14 -0
- package/form-element.mjs +50 -0
- package/foundation.mjs +152 -0
- package/foundation2.mjs +60 -0
- package/icon-button.mjs +130 -15
- package/icon-check-toggle.mjs +18 -8
- package/icon-radio-toggle.mjs +29 -18
- package/icon.mjs +19 -13
- package/if-defined.mjs +10 -0
- package/inert.esm.mjs +640 -0
- package/linear-progress.mjs +178 -15
- package/list-expansion.mjs +33 -22
- package/list-item.mjs +19 -20
- package/list.mjs +26 -13
- package/menu.mjs +32 -13
- package/mwc-checkbox-base.mjs +198 -0
- package/mwc-checkbox.css.mjs +10 -0
- package/mwc-drawer-base.mjs +335 -0
- package/mwc-icon.mjs +26 -0
- package/mwc-line-ripple-directive.mjs +653 -0
- package/mwc-list-base.mjs +840 -0
- package/mwc-list-item-base.mjs +202 -0
- package/mwc-list-item.css.mjs +17 -0
- package/mwc-menu-base.mjs +1145 -0
- package/mwc-radio-base.mjs +528 -0
- package/mwc-radio.css.mjs +10 -0
- package/mwc-slider.css.mjs +956 -0
- package/mwc-tab-base.mjs +694 -0
- package/mwc-top-app-bar-base.mjs +380 -0
- package/nav-list-item.mjs +28 -20
- package/observer.mjs +32 -0
- package/package.json +9 -2
- package/property.mjs +20 -0
- package/query-assigned-elements.mjs +615 -0
- package/query-assigned-nodes.mjs +17 -0
- package/query.mjs +25 -0
- package/radio-list-item.mjs +93 -12
- package/radio.mjs +28 -15
- package/ripple-handlers.mjs +761 -0
- package/select.mjs +1257 -15
- package/side-sheet.mjs +21 -16
- package/slider-range.mjs +438 -11
- package/slider.mjs +253 -13
- package/snackbar.mjs +456 -15
- package/src/action-ribbon/action-ribbon-base.d.ts +30 -0
- package/src/action-ribbon/action-ribbon-base.d.ts.map +1 -0
- package/src/action-ribbon/action-ribbon.d.ts +15 -0
- package/src/action-ribbon/action-ribbon.d.ts.map +1 -0
- package/src/alert/alert-base.d.ts +31 -0
- package/src/alert/alert-base.d.ts.map +1 -0
- package/src/alert/alert.d.ts +15 -0
- package/src/alert/alert.d.ts.map +1 -0
- package/src/app-shell/app-shell.d.ts +26 -0
- package/src/app-shell/app-shell.d.ts.map +1 -0
- package/src/button/button.d.ts +10 -0
- package/src/button/button.d.ts.map +1 -0
- package/src/card/card-base.d.ts +25 -0
- package/src/card/card-base.d.ts.map +1 -0
- package/src/card/card.d.ts +10 -0
- package/src/card/card.d.ts.map +1 -0
- package/src/checkbox/checkbox.d.ts +10 -0
- package/src/checkbox/checkbox.d.ts.map +1 -0
- package/src/chips/chip-base.d.ts +52 -0
- package/src/chips/chip-base.d.ts.map +1 -0
- package/src/chips/chip-set-base.d.ts +33 -0
- package/src/chips/chip-set-base.d.ts.map +1 -0
- package/src/chips/chip-set.d.ts +15 -0
- package/src/chips/chip-set.d.ts.map +1 -0
- package/src/chips/chip.d.ts +15 -0
- package/src/chips/chip.d.ts.map +1 -0
- package/src/chips/foundation.d.ts +60 -0
- package/src/chips/foundation.d.ts.map +1 -0
- package/src/circular-progress/circular-progress.d.ts +10 -0
- package/src/circular-progress/circular-progress.d.ts.map +1 -0
- package/src/code-snippet/code-snippet.d.ts +21 -0
- package/src/code-snippet/code-snippet.d.ts.map +1 -0
- package/src/dialog/dialog.d.ts +10 -0
- package/src/dialog/dialog.d.ts.map +1 -0
- package/src/drawer/drawer.d.ts +10 -0
- package/src/drawer/drawer.d.ts.map +1 -0
- package/src/empty-state/empty-state.d.ts +16 -0
- package/src/empty-state/empty-state.d.ts.map +1 -0
- package/src/formfield/formfield.d.ts +10 -0
- package/src/formfield/formfield.d.ts.map +1 -0
- package/src/icon/icon.d.ts +10 -0
- package/src/icon/icon.d.ts.map +1 -0
- package/src/icon-button/icon-button.d.ts +10 -0
- package/src/icon-button/icon-button.d.ts.map +1 -0
- package/src/icon-checkbox/icon-check-toggle.d.ts +15 -0
- package/src/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
- package/src/icon-radio/icon-radio-toggle.d.ts +14 -0
- package/src/icon-radio/icon-radio-toggle.d.ts.map +1 -0
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -0
- package/src/linear-progress/linear-progress.d.ts +10 -0
- package/src/linear-progress/linear-progress.d.ts.map +1 -0
- package/src/list/check-list-item.d.ts +10 -0
- package/src/list/check-list-item.d.ts.map +1 -0
- package/src/list/list-expansion.d.ts +18 -0
- package/src/list/list-expansion.d.ts.map +1 -0
- package/src/list/list-item.d.ts +12 -0
- package/src/list/list-item.d.ts.map +1 -0
- package/src/list/list.d.ts +10 -0
- package/src/list/list.d.ts.map +1 -0
- package/src/list/nav-list-item.d.ts +12 -0
- package/src/list/nav-list-item.d.ts.map +1 -0
- package/src/list/radio-list-item.d.ts +10 -0
- package/src/list/radio-list-item.d.ts.map +1 -0
- package/src/menu/menu.d.ts +10 -0
- package/src/menu/menu.d.ts.map +1 -0
- package/src/radio/radio.d.ts +10 -0
- package/src/radio/radio.d.ts.map +1 -0
- package/src/select/select.d.ts +10 -0
- package/src/select/select.d.ts.map +1 -0
- package/src/side-sheet/side-sheet.d.ts +18 -0
- package/src/side-sheet/side-sheet.d.ts.map +1 -0
- package/src/slider/slider-range.d.ts +10 -0
- package/src/slider/slider-range.d.ts.map +1 -0
- package/src/slider/slider.d.ts +10 -0
- package/src/slider/slider.d.ts.map +1 -0
- package/src/snackbar/snackbar.d.ts +10 -0
- package/src/snackbar/snackbar.d.ts.map +1 -0
- package/src/status-header/status-header-base.d.ts +9 -0
- package/src/status-header/status-header-base.d.ts.map +1 -0
- package/src/status-header/status-header-item.d.ts +17 -0
- package/src/status-header/status-header-item.d.ts.map +1 -0
- package/src/status-header/status-header.d.ts +15 -0
- package/src/status-header/status-header.d.ts.map +1 -0
- package/src/switch/switch.d.ts +10 -0
- package/src/switch/switch.d.ts.map +1 -0
- package/src/tab/tab-bar.d.ts +10 -0
- package/src/tab/tab-bar.d.ts.map +1 -0
- package/src/tab/tab.d.ts +10 -0
- package/src/tab/tab.d.ts.map +1 -0
- package/src/text-lockup/text-lockup.d.ts +17 -0
- package/src/text-lockup/text-lockup.d.ts.map +1 -0
- package/src/textarea/textarea.d.ts +10 -0
- package/src/textarea/textarea.d.ts.map +1 -0
- package/src/textfield/textfield.d.ts +10 -0
- package/src/textfield/textfield.d.ts.map +1 -0
- package/src/toolbar/toolbar.d.ts +10 -0
- package/src/toolbar/toolbar.d.ts.map +1 -0
- package/src/tooltip/tooltip.d.ts +27 -0
- package/src/tooltip/tooltip.d.ts.map +1 -0
- package/src/top-app-bar/top-app-bar-fixed.d.ts +10 -0
- package/src/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
- package/src/top-app-bar/top-app-bar.d.ts +10 -0
- package/src/top-app-bar/top-app-bar.d.ts.map +1 -0
- package/src/tree-list/tree-list-item.d.ts +16 -0
- package/src/tree-list/tree-list-item.d.ts.map +1 -0
- package/src/tree-list/tree-list.d.ts +11 -0
- package/src/tree-list/tree-list.d.ts.map +1 -0
- package/src/typography/typography.d.ts +12 -0
- package/src/typography/typography.d.ts.map +1 -0
- package/state.mjs +12 -0
- package/status-header-item.mjs +16 -16
- package/status-header.mjs +5 -5
- package/style-map.mjs +40 -0
- package/switch.mjs +531 -15
- package/tab-bar.mjs +1030 -13
- package/tab.mjs +29 -15
- package/text-lockup.mjs +8 -8
- package/textarea.mjs +111 -16
- package/textfield.mjs +34 -18
- package/textfield2.mjs +929 -2
- package/toolbar.mjs +8 -3
- package/tooltip.mjs +1153 -96
- package/top-app-bar-fixed.mjs +78 -18
- package/top-app-bar.mjs +19 -15
- package/top-app-bar2.mjs +9 -2
- package/tree-list-item.mjs +3 -3
- package/tree-list.mjs +6 -7
- package/tslib.es6.mjs +82 -0
- package/typography.mjs +8 -8
- package/utils.mjs +52 -0
package/select.mjs
CHANGED
@@ -1,20 +1,1262 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
|
1
|
+
import { i as P, e as Y, y as x, b as w, r as ee } from "./query-assigned-elements.mjs";
|
2
|
+
import { b as o, _ as te, a as V } from "./tslib.es6.mjs";
|
3
|
+
import { f as ie, l as de } from "./mwc-line-ripple-directive.mjs";
|
4
|
+
import { M as le } from "./mwc-menu-base.mjs";
|
5
|
+
import "./mwc-icon.mjs";
|
6
|
+
import { F as ce } from "./form-element.mjs";
|
7
|
+
import { o as O } from "./observer.mjs";
|
8
|
+
import { a as ne, i as oe } from "./utils.mjs";
|
9
|
+
import { e as g } from "./property.mjs";
|
10
|
+
import { t as S } from "./state.mjs";
|
11
|
+
import { e as re } from "./event-options.mjs";
|
12
|
+
import { i as v } from "./query.mjs";
|
13
|
+
import { o as D } from "./class-map.mjs";
|
14
|
+
import { l as z } from "./if-defined.mjs";
|
15
|
+
import "./base-element.mjs";
|
16
|
+
import "./mwc-list-base.mjs";
|
17
|
+
import "./mwc-list-item-base.mjs";
|
18
|
+
import "./ripple-handlers.mjs";
|
19
|
+
import "./style-map.mjs";
|
20
|
+
import "./query-assigned-nodes.mjs";
|
21
|
+
/**
|
22
|
+
* @license
|
23
|
+
* Copyright 2021 Google LLC
|
24
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
25
|
+
*/
|
26
|
+
const ae = P`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`;
|
27
|
+
/**
|
28
|
+
* @license
|
29
|
+
* Copyright 2020 Google LLC
|
30
|
+
* SPDX-License-Identifier: Apache-2.0
|
31
|
+
*/
|
32
|
+
let k = class extends le {
|
33
|
+
};
|
34
|
+
k.styles = [ae];
|
35
|
+
k = o([
|
36
|
+
Y("mwc-menu")
|
37
|
+
], k);
|
38
|
+
/**
|
39
|
+
* @license
|
40
|
+
* Copyright 2020 Google Inc.
|
41
|
+
*
|
42
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
43
|
+
* of this software and associated documentation files (the "Software"), to deal
|
44
|
+
* in the Software without restriction, including without limitation the rights
|
45
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
46
|
+
* copies of the Software, and to permit persons to whom the Software is
|
47
|
+
* furnished to do so, subject to the following conditions:
|
48
|
+
*
|
49
|
+
* The above copyright notice and this permission notice shall be included in
|
50
|
+
* all copies or substantial portions of the Software.
|
51
|
+
*
|
52
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
53
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
54
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
55
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
56
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
57
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
58
|
+
* THE SOFTWARE.
|
59
|
+
*/
|
60
|
+
var n = {
|
61
|
+
UNKNOWN: "Unknown",
|
62
|
+
BACKSPACE: "Backspace",
|
63
|
+
ENTER: "Enter",
|
64
|
+
SPACEBAR: "Spacebar",
|
65
|
+
PAGE_UP: "PageUp",
|
66
|
+
PAGE_DOWN: "PageDown",
|
67
|
+
END: "End",
|
68
|
+
HOME: "Home",
|
69
|
+
ARROW_LEFT: "ArrowLeft",
|
70
|
+
ARROW_UP: "ArrowUp",
|
71
|
+
ARROW_RIGHT: "ArrowRight",
|
72
|
+
ARROW_DOWN: "ArrowDown",
|
73
|
+
DELETE: "Delete",
|
74
|
+
ESCAPE: "Escape",
|
75
|
+
TAB: "Tab"
|
76
|
+
}, h = /* @__PURE__ */ new Set();
|
77
|
+
h.add(n.BACKSPACE);
|
78
|
+
h.add(n.ENTER);
|
79
|
+
h.add(n.SPACEBAR);
|
80
|
+
h.add(n.PAGE_UP);
|
81
|
+
h.add(n.PAGE_DOWN);
|
82
|
+
h.add(n.END);
|
83
|
+
h.add(n.HOME);
|
84
|
+
h.add(n.ARROW_LEFT);
|
85
|
+
h.add(n.ARROW_UP);
|
86
|
+
h.add(n.ARROW_RIGHT);
|
87
|
+
h.add(n.ARROW_DOWN);
|
88
|
+
h.add(n.DELETE);
|
89
|
+
h.add(n.ESCAPE);
|
90
|
+
h.add(n.TAB);
|
91
|
+
var b = {
|
92
|
+
BACKSPACE: 8,
|
93
|
+
ENTER: 13,
|
94
|
+
SPACEBAR: 32,
|
95
|
+
PAGE_UP: 33,
|
96
|
+
PAGE_DOWN: 34,
|
97
|
+
END: 35,
|
98
|
+
HOME: 36,
|
99
|
+
ARROW_LEFT: 37,
|
100
|
+
ARROW_UP: 38,
|
101
|
+
ARROW_RIGHT: 39,
|
102
|
+
ARROW_DOWN: 40,
|
103
|
+
DELETE: 46,
|
104
|
+
ESCAPE: 27,
|
105
|
+
TAB: 9
|
106
|
+
}, f = /* @__PURE__ */ new Map();
|
107
|
+
f.set(b.BACKSPACE, n.BACKSPACE);
|
108
|
+
f.set(b.ENTER, n.ENTER);
|
109
|
+
f.set(b.SPACEBAR, n.SPACEBAR);
|
110
|
+
f.set(b.PAGE_UP, n.PAGE_UP);
|
111
|
+
f.set(b.PAGE_DOWN, n.PAGE_DOWN);
|
112
|
+
f.set(b.END, n.END);
|
113
|
+
f.set(b.HOME, n.HOME);
|
114
|
+
f.set(b.ARROW_LEFT, n.ARROW_LEFT);
|
115
|
+
f.set(b.ARROW_UP, n.ARROW_UP);
|
116
|
+
f.set(b.ARROW_RIGHT, n.ARROW_RIGHT);
|
117
|
+
f.set(b.ARROW_DOWN, n.ARROW_DOWN);
|
118
|
+
f.set(b.DELETE, n.DELETE);
|
119
|
+
f.set(b.ESCAPE, n.ESCAPE);
|
120
|
+
f.set(b.TAB, n.TAB);
|
121
|
+
var I = /* @__PURE__ */ new Set();
|
122
|
+
I.add(n.PAGE_UP);
|
123
|
+
I.add(n.PAGE_DOWN);
|
124
|
+
I.add(n.END);
|
125
|
+
I.add(n.HOME);
|
126
|
+
I.add(n.ARROW_LEFT);
|
127
|
+
I.add(n.ARROW_UP);
|
128
|
+
I.add(n.ARROW_RIGHT);
|
129
|
+
I.add(n.ARROW_DOWN);
|
130
|
+
function _(d) {
|
131
|
+
var e = d.key;
|
132
|
+
if (h.has(e))
|
133
|
+
return e;
|
134
|
+
var t = f.get(d.keyCode);
|
135
|
+
return t || n.UNKNOWN;
|
136
|
+
}
|
137
|
+
/**
|
138
|
+
* @license
|
139
|
+
* Copyright 2018 Google Inc.
|
140
|
+
*
|
141
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
142
|
+
* of this software and associated documentation files (the "Software"), to deal
|
143
|
+
* in the Software without restriction, including without limitation the rights
|
144
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
145
|
+
* copies of the Software, and to permit persons to whom the Software is
|
146
|
+
* furnished to do so, subject to the following conditions:
|
147
|
+
*
|
148
|
+
* The above copyright notice and this permission notice shall be included in
|
149
|
+
* all copies or substantial portions of the Software.
|
150
|
+
*
|
151
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
152
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
153
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
154
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
155
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
156
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
157
|
+
* THE SOFTWARE.
|
158
|
+
*/
|
159
|
+
var y, E, m = {
|
160
|
+
LIST_ITEM_ACTIVATED_CLASS: "mdc-list-item--activated",
|
161
|
+
LIST_ITEM_CLASS: "mdc-list-item",
|
162
|
+
LIST_ITEM_DISABLED_CLASS: "mdc-list-item--disabled",
|
163
|
+
LIST_ITEM_SELECTED_CLASS: "mdc-list-item--selected",
|
164
|
+
LIST_ITEM_TEXT_CLASS: "mdc-list-item__text",
|
165
|
+
LIST_ITEM_PRIMARY_TEXT_CLASS: "mdc-list-item__primary-text",
|
166
|
+
ROOT: "mdc-list"
|
167
|
+
};
|
168
|
+
y = {}, y["" + m.LIST_ITEM_ACTIVATED_CLASS] = "mdc-list-item--activated", y["" + m.LIST_ITEM_CLASS] = "mdc-list-item", y["" + m.LIST_ITEM_DISABLED_CLASS] = "mdc-list-item--disabled", y["" + m.LIST_ITEM_SELECTED_CLASS] = "mdc-list-item--selected", y["" + m.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-list-item__primary-text", y["" + m.ROOT] = "mdc-list";
|
169
|
+
var C = (E = {}, E["" + m.LIST_ITEM_ACTIVATED_CLASS] = "mdc-deprecated-list-item--activated", E["" + m.LIST_ITEM_CLASS] = "mdc-deprecated-list-item", E["" + m.LIST_ITEM_DISABLED_CLASS] = "mdc-deprecated-list-item--disabled", E["" + m.LIST_ITEM_SELECTED_CLASS] = "mdc-deprecated-list-item--selected", E["" + m.LIST_ITEM_TEXT_CLASS] = "mdc-deprecated-list-item__text", E["" + m.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-deprecated-list-item__primary-text", E["" + m.ROOT] = "mdc-deprecated-list", E);
|
170
|
+
"" + m.LIST_ITEM_CLASS + m.LIST_ITEM_CLASS + C[m.LIST_ITEM_CLASS] + C[m.LIST_ITEM_CLASS], "" + m.LIST_ITEM_CLASS + m.LIST_ITEM_CLASS + m.LIST_ITEM_CLASS + m.LIST_ITEM_CLASS + C[m.LIST_ITEM_CLASS] + C[m.LIST_ITEM_CLASS] + C[m.LIST_ITEM_CLASS] + C[m.LIST_ITEM_CLASS];
|
171
|
+
var se = {
|
172
|
+
UNSET_INDEX: -1,
|
173
|
+
TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS: 300
|
174
|
+
};
|
175
|
+
/**
|
176
|
+
* @license
|
177
|
+
* Copyright 2020 Google Inc.
|
178
|
+
*
|
179
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
180
|
+
* of this software and associated documentation files (the "Software"), to deal
|
181
|
+
* in the Software without restriction, including without limitation the rights
|
182
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
183
|
+
* copies of the Software, and to permit persons to whom the Software is
|
184
|
+
* furnished to do so, subject to the following conditions:
|
185
|
+
*
|
186
|
+
* The above copyright notice and this permission notice shall be included in
|
187
|
+
* all copies or substantial portions of the Software.
|
188
|
+
*
|
189
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
190
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
191
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
192
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
193
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
194
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
195
|
+
* THE SOFTWARE.
|
196
|
+
*/
|
197
|
+
var me = ["input", "button", "textarea", "select"], W = function(d) {
|
198
|
+
var e = d.target;
|
199
|
+
if (e) {
|
200
|
+
var t = ("" + e.tagName).toLowerCase();
|
201
|
+
me.indexOf(t) === -1 && d.preventDefault();
|
202
|
+
}
|
203
|
+
};
|
204
|
+
/**
|
205
|
+
* @license
|
206
|
+
* Copyright 2020 Google Inc.
|
207
|
+
*
|
208
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
209
|
+
* of this software and associated documentation files (the "Software"), to deal
|
210
|
+
* in the Software without restriction, including without limitation the rights
|
211
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
212
|
+
* copies of the Software, and to permit persons to whom the Software is
|
213
|
+
* furnished to do so, subject to the following conditions:
|
214
|
+
*
|
215
|
+
* The above copyright notice and this permission notice shall be included in
|
216
|
+
* all copies or substantial portions of the Software.
|
217
|
+
*
|
218
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
219
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
220
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
221
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
222
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
223
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
224
|
+
* THE SOFTWARE.
|
225
|
+
*/
|
226
|
+
function pe() {
|
227
|
+
var d = {
|
228
|
+
bufferClearTimeout: 0,
|
229
|
+
currentFirstChar: "",
|
230
|
+
sortedIndexCursor: 0,
|
231
|
+
typeaheadBuffer: ""
|
232
|
+
};
|
233
|
+
return d;
|
234
|
+
}
|
235
|
+
function $(d, e) {
|
236
|
+
for (var t = /* @__PURE__ */ new Map(), i = 0; i < d; i++) {
|
237
|
+
var l = e(i).trim();
|
238
|
+
if (l) {
|
239
|
+
var c = l[0].toLowerCase();
|
240
|
+
t.has(c) || t.set(c, []), t.get(c).push({ text: l.toLowerCase(), index: i });
|
241
|
+
}
|
242
|
+
}
|
243
|
+
return t.forEach(function(a) {
|
244
|
+
a.sort(function(u, s) {
|
245
|
+
return u.index - s.index;
|
246
|
+
});
|
247
|
+
}), t;
|
248
|
+
}
|
249
|
+
function F(d, e) {
|
250
|
+
var t = d.nextChar, i = d.focusItemAtIndex, l = d.sortedIndexByFirstChar, c = d.focusedItemIndex, a = d.skipFocus, u = d.isItemAtIndexDisabled;
|
251
|
+
clearTimeout(e.bufferClearTimeout), e.bufferClearTimeout = setTimeout(function() {
|
252
|
+
fe(e);
|
253
|
+
}, se.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS), e.typeaheadBuffer = e.typeaheadBuffer + t;
|
254
|
+
var s;
|
255
|
+
return e.typeaheadBuffer.length === 1 ? s = ue(l, c, u, e) : s = he(l, u, e), s !== -1 && !a && i(s), s;
|
256
|
+
}
|
257
|
+
function ue(d, e, t, i) {
|
258
|
+
var l = i.typeaheadBuffer[0], c = d.get(l);
|
259
|
+
if (!c)
|
260
|
+
return -1;
|
261
|
+
if (l === i.currentFirstChar && c[i.sortedIndexCursor].index === e) {
|
262
|
+
i.sortedIndexCursor = (i.sortedIndexCursor + 1) % c.length;
|
263
|
+
var a = c[i.sortedIndexCursor].index;
|
264
|
+
if (!t(a))
|
265
|
+
return a;
|
266
|
+
}
|
267
|
+
i.currentFirstChar = l;
|
268
|
+
var u = -1, s;
|
269
|
+
for (s = 0; s < c.length; s++)
|
270
|
+
if (!t(c[s].index)) {
|
271
|
+
u = s;
|
272
|
+
break;
|
273
|
+
}
|
274
|
+
for (; s < c.length; s++)
|
275
|
+
if (c[s].index > e && !t(c[s].index)) {
|
276
|
+
u = s;
|
277
|
+
break;
|
278
|
+
}
|
279
|
+
return u !== -1 ? (i.sortedIndexCursor = u, c[i.sortedIndexCursor].index) : -1;
|
280
|
+
}
|
281
|
+
function he(d, e, t) {
|
282
|
+
var i = t.typeaheadBuffer[0], l = d.get(i);
|
283
|
+
if (!l)
|
284
|
+
return -1;
|
285
|
+
var c = l[t.sortedIndexCursor];
|
286
|
+
if (c.text.lastIndexOf(t.typeaheadBuffer, 0) === 0 && !e(c.index))
|
287
|
+
return c.index;
|
288
|
+
for (var a = (t.sortedIndexCursor + 1) % l.length, u = -1; a !== t.sortedIndexCursor; ) {
|
289
|
+
var s = l[a], A = s.text.lastIndexOf(t.typeaheadBuffer, 0) === 0, R = !e(s.index);
|
290
|
+
if (A && R) {
|
291
|
+
u = a;
|
292
|
+
break;
|
293
|
+
}
|
294
|
+
a = (a + 1) % l.length;
|
295
|
+
}
|
296
|
+
return u !== -1 ? (t.sortedIndexCursor = u, l[t.sortedIndexCursor].index) : -1;
|
297
|
+
}
|
298
|
+
function G(d) {
|
299
|
+
return d.typeaheadBuffer.length > 0;
|
300
|
+
}
|
301
|
+
function fe(d) {
|
302
|
+
d.typeaheadBuffer = "";
|
303
|
+
}
|
304
|
+
function _e(d, e) {
|
305
|
+
var t = d.event, i = d.isTargetListItem, l = d.focusedItemIndex, c = d.focusItemAtIndex, a = d.sortedIndexByFirstChar, u = d.isItemAtIndexDisabled, s = _(t) === "ArrowLeft", A = _(t) === "ArrowUp", R = _(t) === "ArrowRight", K = _(t) === "ArrowDown", q = _(t) === "Home", j = _(t) === "End", Q = _(t) === "Enter", U = _(t) === "Spacebar";
|
306
|
+
if (t.altKey || t.ctrlKey || t.metaKey || s || A || R || K || q || j || Q)
|
307
|
+
return -1;
|
308
|
+
var Z = !U && t.key.length === 1;
|
309
|
+
if (Z) {
|
310
|
+
W(t);
|
311
|
+
var L = {
|
312
|
+
focusItemAtIndex: c,
|
313
|
+
focusedItemIndex: l,
|
314
|
+
nextChar: t.key.toLowerCase(),
|
315
|
+
sortedIndexByFirstChar: a,
|
316
|
+
skipFocus: !1,
|
317
|
+
isItemAtIndexDisabled: u
|
318
|
+
};
|
319
|
+
return F(L, e);
|
320
|
+
}
|
321
|
+
if (!U)
|
322
|
+
return -1;
|
323
|
+
i && W(t);
|
324
|
+
var J = i && G(e);
|
325
|
+
if (J) {
|
326
|
+
var L = {
|
327
|
+
focusItemAtIndex: c,
|
328
|
+
focusedItemIndex: l,
|
329
|
+
nextChar: " ",
|
330
|
+
sortedIndexByFirstChar: a,
|
331
|
+
skipFocus: !1,
|
332
|
+
isItemAtIndexDisabled: u
|
333
|
+
};
|
334
|
+
return F(L, e);
|
335
|
+
}
|
336
|
+
return -1;
|
337
|
+
}
|
338
|
+
/**
|
339
|
+
* @license
|
340
|
+
* Copyright 2016 Google Inc.
|
341
|
+
*
|
342
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
343
|
+
* of this software and associated documentation files (the "Software"), to deal
|
344
|
+
* in the Software without restriction, including without limitation the rights
|
345
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
346
|
+
* copies of the Software, and to permit persons to whom the Software is
|
347
|
+
* furnished to do so, subject to the following conditions:
|
348
|
+
*
|
349
|
+
* The above copyright notice and this permission notice shall be included in
|
350
|
+
* all copies or substantial portions of the Software.
|
351
|
+
*
|
352
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
353
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
354
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
355
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
356
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
357
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
358
|
+
* THE SOFTWARE.
|
359
|
+
*/
|
360
|
+
var be = (
|
361
|
+
/** @class */
|
362
|
+
function() {
|
363
|
+
function d(e) {
|
364
|
+
e === void 0 && (e = {}), this.adapter = e;
|
365
|
+
}
|
366
|
+
return Object.defineProperty(d, "cssClasses", {
|
367
|
+
get: function() {
|
368
|
+
return {};
|
369
|
+
},
|
370
|
+
enumerable: !1,
|
371
|
+
configurable: !0
|
372
|
+
}), Object.defineProperty(d, "strings", {
|
373
|
+
get: function() {
|
374
|
+
return {};
|
375
|
+
},
|
376
|
+
enumerable: !1,
|
377
|
+
configurable: !0
|
378
|
+
}), Object.defineProperty(d, "numbers", {
|
379
|
+
get: function() {
|
380
|
+
return {};
|
381
|
+
},
|
382
|
+
enumerable: !1,
|
383
|
+
configurable: !0
|
384
|
+
}), Object.defineProperty(d, "defaultAdapter", {
|
385
|
+
get: function() {
|
386
|
+
return {};
|
387
|
+
},
|
388
|
+
enumerable: !1,
|
389
|
+
configurable: !0
|
390
|
+
}), d.prototype.init = function() {
|
391
|
+
}, d.prototype.destroy = function() {
|
392
|
+
}, d;
|
393
|
+
}()
|
394
|
+
);
|
395
|
+
/**
|
396
|
+
* @license
|
397
|
+
* Copyright 2018 Google Inc.
|
398
|
+
*
|
399
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
400
|
+
* of this software and associated documentation files (the "Software"), to deal
|
401
|
+
* in the Software without restriction, including without limitation the rights
|
402
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
403
|
+
* copies of the Software, and to permit persons to whom the Software is
|
404
|
+
* furnished to do so, subject to the following conditions:
|
405
|
+
*
|
406
|
+
* The above copyright notice and this permission notice shall be included in
|
407
|
+
* all copies or substantial portions of the Software.
|
408
|
+
*
|
409
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
410
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
411
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
412
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
413
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
414
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
415
|
+
* THE SOFTWARE.
|
416
|
+
*/
|
417
|
+
var H;
|
418
|
+
(function(d) {
|
419
|
+
d[d.BOTTOM = 1] = "BOTTOM", d[d.CENTER = 2] = "CENTER", d[d.RIGHT = 4] = "RIGHT", d[d.FLIP_RTL = 8] = "FLIP_RTL";
|
420
|
+
})(H || (H = {}));
|
421
|
+
var B;
|
422
|
+
(function(d) {
|
423
|
+
d[d.TOP_LEFT = 0] = "TOP_LEFT", d[d.TOP_RIGHT = 4] = "TOP_RIGHT", d[d.BOTTOM_LEFT = 1] = "BOTTOM_LEFT", d[d.BOTTOM_RIGHT = 5] = "BOTTOM_RIGHT", d[d.TOP_START = 8] = "TOP_START", d[d.TOP_END = 12] = "TOP_END", d[d.BOTTOM_START = 9] = "BOTTOM_START", d[d.BOTTOM_END = 13] = "BOTTOM_END";
|
424
|
+
})(B || (B = {}));
|
425
|
+
/**
|
426
|
+
* @license
|
427
|
+
* Copyright 2016 Google Inc.
|
428
|
+
*
|
429
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
430
|
+
* of this software and associated documentation files (the "Software"), to deal
|
431
|
+
* in the Software without restriction, including without limitation the rights
|
432
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
433
|
+
* copies of the Software, and to permit persons to whom the Software is
|
434
|
+
* furnished to do so, subject to the following conditions:
|
435
|
+
*
|
436
|
+
* The above copyright notice and this permission notice shall be included in
|
437
|
+
* all copies or substantial portions of the Software.
|
438
|
+
*
|
439
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
440
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
441
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
442
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
443
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
444
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
445
|
+
* THE SOFTWARE.
|
446
|
+
*/
|
447
|
+
var p = {
|
448
|
+
ACTIVATED: "mdc-select--activated",
|
449
|
+
DISABLED: "mdc-select--disabled",
|
450
|
+
FOCUSED: "mdc-select--focused",
|
451
|
+
INVALID: "mdc-select--invalid",
|
452
|
+
MENU_INVALID: "mdc-select__menu--invalid",
|
453
|
+
OUTLINED: "mdc-select--outlined",
|
454
|
+
REQUIRED: "mdc-select--required",
|
455
|
+
ROOT: "mdc-select",
|
456
|
+
WITH_LEADING_ICON: "mdc-select--with-leading-icon"
|
457
|
+
}, M = {
|
458
|
+
ARIA_CONTROLS: "aria-controls",
|
459
|
+
ARIA_DESCRIBEDBY: "aria-describedby",
|
460
|
+
ARIA_SELECTED_ATTR: "aria-selected",
|
461
|
+
CHANGE_EVENT: "MDCSelect:change",
|
462
|
+
HIDDEN_INPUT_SELECTOR: 'input[type="hidden"]',
|
463
|
+
LABEL_SELECTOR: ".mdc-floating-label",
|
464
|
+
LEADING_ICON_SELECTOR: ".mdc-select__icon",
|
465
|
+
LINE_RIPPLE_SELECTOR: ".mdc-line-ripple",
|
466
|
+
MENU_SELECTOR: ".mdc-select__menu",
|
467
|
+
OUTLINE_SELECTOR: ".mdc-notched-outline",
|
468
|
+
SELECTED_TEXT_SELECTOR: ".mdc-select__selected-text",
|
469
|
+
SELECT_ANCHOR_SELECTOR: ".mdc-select__anchor",
|
470
|
+
VALUE_ATTR: "data-value"
|
471
|
+
}, T = {
|
472
|
+
LABEL_SCALE: 0.75,
|
473
|
+
UNSET_INDEX: -1,
|
474
|
+
CLICK_DEBOUNCE_TIMEOUT_MS: 330
|
475
|
+
};
|
476
|
+
/**
|
477
|
+
* @license
|
478
|
+
* Copyright 2016 Google Inc.
|
479
|
+
*
|
480
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
481
|
+
* of this software and associated documentation files (the "Software"), to deal
|
482
|
+
* in the Software without restriction, including without limitation the rights
|
483
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
484
|
+
* copies of the Software, and to permit persons to whom the Software is
|
485
|
+
* furnished to do so, subject to the following conditions:
|
486
|
+
*
|
487
|
+
* The above copyright notice and this permission notice shall be included in
|
488
|
+
* all copies or substantial portions of the Software.
|
489
|
+
*
|
490
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
491
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
492
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
493
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
494
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
495
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
496
|
+
* THE SOFTWARE.
|
497
|
+
*/
|
498
|
+
var ge = (
|
499
|
+
/** @class */
|
500
|
+
function(d) {
|
501
|
+
te(e, d);
|
502
|
+
function e(t, i) {
|
503
|
+
i === void 0 && (i = {});
|
504
|
+
var l = d.call(this, V(V({}, e.defaultAdapter), t)) || this;
|
505
|
+
return l.disabled = !1, l.isMenuOpen = !1, l.useDefaultValidation = !0, l.customValidity = !0, l.lastSelectedIndex = T.UNSET_INDEX, l.clickDebounceTimeout = 0, l.recentlyClicked = !1, l.leadingIcon = i.leadingIcon, l.helperText = i.helperText, l;
|
506
|
+
}
|
507
|
+
return Object.defineProperty(e, "cssClasses", {
|
508
|
+
get: function() {
|
509
|
+
return p;
|
510
|
+
},
|
511
|
+
enumerable: !1,
|
512
|
+
configurable: !0
|
513
|
+
}), Object.defineProperty(e, "numbers", {
|
514
|
+
get: function() {
|
515
|
+
return T;
|
516
|
+
},
|
517
|
+
enumerable: !1,
|
518
|
+
configurable: !0
|
519
|
+
}), Object.defineProperty(e, "strings", {
|
520
|
+
get: function() {
|
521
|
+
return M;
|
522
|
+
},
|
523
|
+
enumerable: !1,
|
524
|
+
configurable: !0
|
525
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
526
|
+
/**
|
527
|
+
* See {@link MDCSelectAdapter} for typing information on parameters and return types.
|
528
|
+
*/
|
529
|
+
get: function() {
|
530
|
+
return {
|
531
|
+
addClass: function() {
|
532
|
+
},
|
533
|
+
removeClass: function() {
|
534
|
+
},
|
535
|
+
hasClass: function() {
|
536
|
+
return !1;
|
537
|
+
},
|
538
|
+
activateBottomLine: function() {
|
539
|
+
},
|
540
|
+
deactivateBottomLine: function() {
|
541
|
+
},
|
542
|
+
getSelectedIndex: function() {
|
543
|
+
return -1;
|
544
|
+
},
|
545
|
+
setSelectedIndex: function() {
|
546
|
+
},
|
547
|
+
hasLabel: function() {
|
548
|
+
return !1;
|
549
|
+
},
|
550
|
+
floatLabel: function() {
|
551
|
+
},
|
552
|
+
getLabelWidth: function() {
|
553
|
+
return 0;
|
554
|
+
},
|
555
|
+
setLabelRequired: function() {
|
556
|
+
},
|
557
|
+
hasOutline: function() {
|
558
|
+
return !1;
|
559
|
+
},
|
560
|
+
notchOutline: function() {
|
561
|
+
},
|
562
|
+
closeOutline: function() {
|
563
|
+
},
|
564
|
+
setRippleCenter: function() {
|
565
|
+
},
|
566
|
+
notifyChange: function() {
|
567
|
+
},
|
568
|
+
setSelectedText: function() {
|
569
|
+
},
|
570
|
+
isSelectAnchorFocused: function() {
|
571
|
+
return !1;
|
572
|
+
},
|
573
|
+
getSelectAnchorAttr: function() {
|
574
|
+
return "";
|
575
|
+
},
|
576
|
+
setSelectAnchorAttr: function() {
|
577
|
+
},
|
578
|
+
removeSelectAnchorAttr: function() {
|
579
|
+
},
|
580
|
+
addMenuClass: function() {
|
581
|
+
},
|
582
|
+
removeMenuClass: function() {
|
583
|
+
},
|
584
|
+
openMenu: function() {
|
585
|
+
},
|
586
|
+
closeMenu: function() {
|
587
|
+
},
|
588
|
+
getAnchorElement: function() {
|
589
|
+
return null;
|
590
|
+
},
|
591
|
+
setMenuAnchorElement: function() {
|
592
|
+
},
|
593
|
+
setMenuAnchorCorner: function() {
|
594
|
+
},
|
595
|
+
setMenuWrapFocus: function() {
|
596
|
+
},
|
597
|
+
focusMenuItemAtIndex: function() {
|
598
|
+
},
|
599
|
+
getMenuItemCount: function() {
|
600
|
+
return 0;
|
601
|
+
},
|
602
|
+
getMenuItemValues: function() {
|
603
|
+
return [];
|
604
|
+
},
|
605
|
+
getMenuItemTextAtIndex: function() {
|
606
|
+
return "";
|
607
|
+
},
|
608
|
+
isTypeaheadInProgress: function() {
|
609
|
+
return !1;
|
610
|
+
},
|
611
|
+
typeaheadMatchItem: function() {
|
612
|
+
return -1;
|
613
|
+
}
|
614
|
+
};
|
615
|
+
},
|
616
|
+
enumerable: !1,
|
617
|
+
configurable: !0
|
618
|
+
}), e.prototype.getSelectedIndex = function() {
|
619
|
+
return this.adapter.getSelectedIndex();
|
620
|
+
}, e.prototype.setSelectedIndex = function(t, i, l) {
|
621
|
+
i === void 0 && (i = !1), l === void 0 && (l = !1), !(t >= this.adapter.getMenuItemCount()) && (t === T.UNSET_INDEX ? this.adapter.setSelectedText("") : this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()), this.adapter.setSelectedIndex(t), i && this.adapter.closeMenu(), !l && this.lastSelectedIndex !== t && this.handleChange(), this.lastSelectedIndex = t);
|
622
|
+
}, e.prototype.setValue = function(t, i) {
|
623
|
+
i === void 0 && (i = !1);
|
624
|
+
var l = this.adapter.getMenuItemValues().indexOf(t);
|
625
|
+
this.setSelectedIndex(
|
626
|
+
l,
|
627
|
+
/** closeMenu */
|
628
|
+
!1,
|
629
|
+
i
|
630
|
+
);
|
631
|
+
}, e.prototype.getValue = function() {
|
632
|
+
var t = this.adapter.getSelectedIndex(), i = this.adapter.getMenuItemValues();
|
633
|
+
return t !== T.UNSET_INDEX ? i[t] : "";
|
634
|
+
}, e.prototype.getDisabled = function() {
|
635
|
+
return this.disabled;
|
636
|
+
}, e.prototype.setDisabled = function(t) {
|
637
|
+
this.disabled = t, this.disabled ? (this.adapter.addClass(p.DISABLED), this.adapter.closeMenu()) : this.adapter.removeClass(p.DISABLED), this.leadingIcon && this.leadingIcon.setDisabled(this.disabled), this.disabled ? this.adapter.removeSelectAnchorAttr("tabindex") : this.adapter.setSelectAnchorAttr("tabindex", "0"), this.adapter.setSelectAnchorAttr("aria-disabled", this.disabled.toString());
|
638
|
+
}, e.prototype.openMenu = function() {
|
639
|
+
this.adapter.addClass(p.ACTIVATED), this.adapter.openMenu(), this.isMenuOpen = !0, this.adapter.setSelectAnchorAttr("aria-expanded", "true");
|
640
|
+
}, e.prototype.setHelperTextContent = function(t) {
|
641
|
+
this.helperText && this.helperText.setContent(t);
|
642
|
+
}, e.prototype.layout = function() {
|
643
|
+
if (this.adapter.hasLabel()) {
|
644
|
+
var t = this.getValue().length > 0, i = this.adapter.hasClass(p.FOCUSED), l = t || i, c = this.adapter.hasClass(p.REQUIRED);
|
645
|
+
this.notchOutline(l), this.adapter.floatLabel(l), this.adapter.setLabelRequired(c);
|
646
|
+
}
|
647
|
+
}, e.prototype.layoutOptions = function() {
|
648
|
+
var t = this.adapter.getMenuItemValues(), i = t.indexOf(this.getValue());
|
649
|
+
this.setSelectedIndex(
|
650
|
+
i,
|
651
|
+
/** closeMenu */
|
652
|
+
!1,
|
653
|
+
/** skipNotify */
|
654
|
+
!0
|
655
|
+
);
|
656
|
+
}, e.prototype.handleMenuOpened = function() {
|
657
|
+
if (this.adapter.getMenuItemValues().length !== 0) {
|
658
|
+
var t = this.getSelectedIndex(), i = t >= 0 ? t : 0;
|
659
|
+
this.adapter.focusMenuItemAtIndex(i);
|
660
|
+
}
|
661
|
+
}, e.prototype.handleMenuClosing = function() {
|
662
|
+
this.adapter.setSelectAnchorAttr("aria-expanded", "false");
|
663
|
+
}, e.prototype.handleMenuClosed = function() {
|
664
|
+
this.adapter.removeClass(p.ACTIVATED), this.isMenuOpen = !1, this.adapter.isSelectAnchorFocused() || this.blur();
|
665
|
+
}, e.prototype.handleChange = function() {
|
666
|
+
this.layout(), this.adapter.notifyChange(this.getValue());
|
667
|
+
var t = this.adapter.hasClass(p.REQUIRED);
|
668
|
+
t && this.useDefaultValidation && this.setValid(this.isValid());
|
669
|
+
}, e.prototype.handleMenuItemAction = function(t) {
|
670
|
+
this.setSelectedIndex(
|
671
|
+
t,
|
672
|
+
/** closeMenu */
|
673
|
+
!0
|
674
|
+
);
|
675
|
+
}, e.prototype.handleFocus = function() {
|
676
|
+
this.adapter.addClass(p.FOCUSED), this.layout(), this.adapter.activateBottomLine();
|
677
|
+
}, e.prototype.handleBlur = function() {
|
678
|
+
this.isMenuOpen || this.blur();
|
679
|
+
}, e.prototype.handleClick = function(t) {
|
680
|
+
if (!(this.disabled || this.recentlyClicked)) {
|
681
|
+
if (this.setClickDebounceTimeout(), this.isMenuOpen) {
|
682
|
+
this.adapter.closeMenu();
|
683
|
+
return;
|
684
|
+
}
|
685
|
+
this.adapter.setRippleCenter(t), this.openMenu();
|
686
|
+
}
|
687
|
+
}, e.prototype.handleKeydown = function(t) {
|
688
|
+
if (!(this.isMenuOpen || !this.adapter.hasClass(p.FOCUSED))) {
|
689
|
+
var i = _(t) === n.ENTER, l = _(t) === n.SPACEBAR, c = _(t) === n.ARROW_UP, a = _(t) === n.ARROW_DOWN, u = t.ctrlKey || t.metaKey;
|
690
|
+
if (!u && (!l && t.key && t.key.length === 1 || l && this.adapter.isTypeaheadInProgress())) {
|
691
|
+
var s = l ? " " : t.key, A = this.adapter.typeaheadMatchItem(s, this.getSelectedIndex());
|
692
|
+
A >= 0 && this.setSelectedIndex(A), t.preventDefault();
|
693
|
+
return;
|
694
|
+
}
|
695
|
+
!i && !l && !c && !a || (this.openMenu(), t.preventDefault());
|
696
|
+
}
|
697
|
+
}, e.prototype.notchOutline = function(t) {
|
698
|
+
if (this.adapter.hasOutline()) {
|
699
|
+
var i = this.adapter.hasClass(p.FOCUSED);
|
700
|
+
if (t) {
|
701
|
+
var l = T.LABEL_SCALE, c = this.adapter.getLabelWidth() * l;
|
702
|
+
this.adapter.notchOutline(c);
|
703
|
+
} else
|
704
|
+
i || this.adapter.closeOutline();
|
705
|
+
}
|
706
|
+
}, e.prototype.setLeadingIconAriaLabel = function(t) {
|
707
|
+
this.leadingIcon && this.leadingIcon.setAriaLabel(t);
|
708
|
+
}, e.prototype.setLeadingIconContent = function(t) {
|
709
|
+
this.leadingIcon && this.leadingIcon.setContent(t);
|
710
|
+
}, e.prototype.getUseDefaultValidation = function() {
|
711
|
+
return this.useDefaultValidation;
|
712
|
+
}, e.prototype.setUseDefaultValidation = function(t) {
|
713
|
+
this.useDefaultValidation = t;
|
714
|
+
}, e.prototype.setValid = function(t) {
|
715
|
+
this.useDefaultValidation || (this.customValidity = t), this.adapter.setSelectAnchorAttr("aria-invalid", (!t).toString()), t ? (this.adapter.removeClass(p.INVALID), this.adapter.removeMenuClass(p.MENU_INVALID)) : (this.adapter.addClass(p.INVALID), this.adapter.addMenuClass(p.MENU_INVALID)), this.syncHelperTextValidity(t);
|
716
|
+
}, e.prototype.isValid = function() {
|
717
|
+
return this.useDefaultValidation && this.adapter.hasClass(p.REQUIRED) && !this.adapter.hasClass(p.DISABLED) ? this.getSelectedIndex() !== T.UNSET_INDEX && (this.getSelectedIndex() !== 0 || Boolean(this.getValue())) : this.customValidity;
|
718
|
+
}, e.prototype.setRequired = function(t) {
|
719
|
+
t ? this.adapter.addClass(p.REQUIRED) : this.adapter.removeClass(p.REQUIRED), this.adapter.setSelectAnchorAttr("aria-required", t.toString()), this.adapter.setLabelRequired(t);
|
720
|
+
}, e.prototype.getRequired = function() {
|
721
|
+
return this.adapter.getSelectAnchorAttr("aria-required") === "true";
|
722
|
+
}, e.prototype.init = function() {
|
723
|
+
var t = this.adapter.getAnchorElement();
|
724
|
+
t && (this.adapter.setMenuAnchorElement(t), this.adapter.setMenuAnchorCorner(B.BOTTOM_START)), this.adapter.setMenuWrapFocus(!1), this.setDisabled(this.adapter.hasClass(p.DISABLED)), this.syncHelperTextValidity(!this.adapter.hasClass(p.INVALID)), this.layout(), this.layoutOptions();
|
725
|
+
}, e.prototype.blur = function() {
|
726
|
+
this.adapter.removeClass(p.FOCUSED), this.layout(), this.adapter.deactivateBottomLine();
|
727
|
+
var t = this.adapter.hasClass(p.REQUIRED);
|
728
|
+
t && this.useDefaultValidation && this.setValid(this.isValid());
|
729
|
+
}, e.prototype.syncHelperTextValidity = function(t) {
|
730
|
+
if (this.helperText) {
|
731
|
+
this.helperText.setValidity(t);
|
732
|
+
var i = this.helperText.isVisible(), l = this.helperText.getId();
|
733
|
+
i && l ? this.adapter.setSelectAnchorAttr(M.ARIA_DESCRIBEDBY, l) : this.adapter.removeSelectAnchorAttr(M.ARIA_DESCRIBEDBY);
|
734
|
+
}
|
735
|
+
}, e.prototype.setClickDebounceTimeout = function() {
|
736
|
+
var t = this;
|
737
|
+
clearTimeout(this.clickDebounceTimeout), this.clickDebounceTimeout = setTimeout(function() {
|
738
|
+
t.recentlyClicked = !1;
|
739
|
+
}, T.CLICK_DEBOUNCE_TIMEOUT_MS), this.recentlyClicked = !0;
|
740
|
+
}, e;
|
741
|
+
}(be)
|
742
|
+
);
|
743
|
+
const ve = ge;
|
744
|
+
/**
|
745
|
+
* @license
|
746
|
+
* Copyright 2020 Google LLC
|
747
|
+
* SPDX-License-Identifier: Apache-2.0
|
748
|
+
*/
|
749
|
+
const X = (d = {}) => {
|
750
|
+
const e = {};
|
751
|
+
for (const t in d)
|
752
|
+
e[t] = d[t];
|
753
|
+
return Object.assign({ badInput: !1, customError: !1, patternMismatch: !1, rangeOverflow: !1, rangeUnderflow: !1, stepMismatch: !1, tooLong: !1, tooShort: !1, typeMismatch: !1, valid: !0, valueMissing: !1 }, e);
|
754
|
+
};
|
755
|
+
class r extends ce {
|
756
|
+
constructor() {
|
757
|
+
super(...arguments), this.mdcFoundationClass = ve, this.disabled = !1, this.outlined = !1, this.label = "", this.outlineOpen = !1, this.outlineWidth = 0, this.value = "", this.name = "", this.selectedText = "", this.icon = "", this.menuOpen = !1, this.helper = "", this.validateOnInitialRender = !1, this.validationMessage = "", this.required = !1, this.naturalMenuWidth = !1, this.isUiValid = !0, this.fixedMenuPosition = !1, this.typeaheadState = pe(), this.sortedIndexByFirstChar = /* @__PURE__ */ new Map(), this.menuElement_ = null, this.listeners = [], this.onBodyClickBound = () => {
|
758
|
+
}, this._menuUpdateComplete = null, this.valueSetDirectly = !1, this.validityTransform = null, this._validity = X();
|
759
|
+
}
|
760
|
+
get items() {
|
761
|
+
return this.menuElement_ || (this.menuElement_ = this.menuElement), this.menuElement_ ? this.menuElement_.items : [];
|
762
|
+
}
|
763
|
+
get selected() {
|
764
|
+
const e = this.menuElement;
|
765
|
+
return e ? e.selected : null;
|
766
|
+
}
|
767
|
+
get index() {
|
768
|
+
const e = this.menuElement;
|
769
|
+
return e ? e.index : -1;
|
770
|
+
}
|
771
|
+
get shouldRenderHelperText() {
|
772
|
+
return !!this.helper || !!this.validationMessage;
|
773
|
+
}
|
774
|
+
get validity() {
|
775
|
+
return this._checkValidity(this.value), this._validity;
|
776
|
+
}
|
777
|
+
render() {
|
778
|
+
const e = {
|
779
|
+
"mdc-select--disabled": this.disabled,
|
780
|
+
"mdc-select--no-label": !this.label,
|
781
|
+
"mdc-select--filled": !this.outlined,
|
782
|
+
"mdc-select--outlined": this.outlined,
|
783
|
+
"mdc-select--with-leading-icon": !!this.icon,
|
784
|
+
"mdc-select--required": this.required,
|
785
|
+
"mdc-select--invalid": !this.isUiValid
|
786
|
+
}, t = this.label ? "label" : void 0, i = this.shouldRenderHelperText ? "helper-text" : void 0;
|
787
|
+
return x`
|
788
|
+
<div
|
789
|
+
class="mdc-select ${D(e)}">
|
790
|
+
<input
|
791
|
+
class="formElement"
|
792
|
+
name="${this.name}"
|
793
|
+
.value="${this.value}"
|
794
|
+
hidden
|
795
|
+
?disabled="${this.disabled}"
|
796
|
+
?required=${this.required}>
|
797
|
+
<!-- @ts-ignore -->
|
798
|
+
<div class="mdc-select__anchor"
|
799
|
+
aria-autocomplete="none"
|
800
|
+
role="combobox"
|
801
|
+
aria-expanded=${this.menuOpen}
|
802
|
+
aria-invalid=${!this.isUiValid}
|
803
|
+
aria-haspopup="listbox"
|
804
|
+
aria-labelledby=${z(t)}
|
805
|
+
aria-required=${this.required}
|
806
|
+
aria-describedby=${z(i)}
|
807
|
+
@click=${this.onClick}
|
808
|
+
@focus=${this.onFocus}
|
809
|
+
@blur=${this.onBlur}
|
810
|
+
@keydown=${this.onKeydown}>
|
811
|
+
${this.renderRipple()}
|
812
|
+
${this.outlined ? this.renderOutline() : this.renderLabel()}
|
813
|
+
${this.renderLeadingIcon()}
|
814
|
+
<span class="mdc-select__selected-text-container">
|
815
|
+
<span class="mdc-select__selected-text">${this.selectedText}</span>
|
816
|
+
</span>
|
817
|
+
<span class="mdc-select__dropdown-icon">
|
818
|
+
<svg
|
819
|
+
class="mdc-select__dropdown-icon-graphic"
|
820
|
+
viewBox="7 10 10 5"
|
821
|
+
focusable="false">
|
822
|
+
<polygon
|
823
|
+
class="mdc-select__dropdown-icon-inactive"
|
824
|
+
stroke="none"
|
825
|
+
fill-rule="evenodd"
|
826
|
+
points="7 10 12 15 17 10">
|
827
|
+
</polygon>
|
828
|
+
<polygon
|
829
|
+
class="mdc-select__dropdown-icon-active"
|
830
|
+
stroke="none"
|
831
|
+
fill-rule="evenodd"
|
832
|
+
points="7 15 12 10 17 15">
|
833
|
+
</polygon>
|
834
|
+
</svg>
|
835
|
+
</span>
|
836
|
+
${this.renderLineRipple()}
|
837
|
+
</div>
|
838
|
+
${this.renderMenu()}
|
839
|
+
</div>
|
840
|
+
${this.renderHelperText()}`;
|
841
|
+
}
|
842
|
+
renderMenu() {
|
843
|
+
const e = this.getMenuClasses();
|
844
|
+
return x`
|
845
|
+
<mwc-menu
|
846
|
+
innerRole="listbox"
|
847
|
+
wrapFocus
|
848
|
+
class=" ${D(e)}"
|
849
|
+
activatable
|
850
|
+
.fullwidth=${this.fixedMenuPosition ? !1 : !this.naturalMenuWidth}
|
851
|
+
.open=${this.menuOpen}
|
852
|
+
.anchor=${this.anchorElement}
|
853
|
+
.fixed=${this.fixedMenuPosition}
|
854
|
+
@selected=${this.onSelected}
|
855
|
+
@opened=${this.onOpened}
|
856
|
+
@closed=${this.onClosed}
|
857
|
+
@items-updated=${this.onItemsUpdated}
|
858
|
+
@keydown=${this.handleTypeahead}>
|
859
|
+
${this.renderMenuContent()}
|
860
|
+
</mwc-menu>`;
|
861
|
+
}
|
862
|
+
getMenuClasses() {
|
863
|
+
return {
|
864
|
+
"mdc-select__menu": !0,
|
865
|
+
"mdc-menu": !0,
|
866
|
+
"mdc-menu-surface": !0,
|
867
|
+
"mdc-select__menu--invalid": !this.isUiValid
|
868
|
+
};
|
869
|
+
}
|
870
|
+
renderMenuContent() {
|
871
|
+
return x`<slot></slot>`;
|
872
|
+
}
|
873
|
+
renderRipple() {
|
874
|
+
return this.outlined ? w : x`
|
875
|
+
<span class="mdc-select__ripple"></span>
|
876
|
+
`;
|
877
|
+
}
|
878
|
+
renderOutline() {
|
879
|
+
return this.outlined ? x`
|
880
|
+
<mwc-notched-outline
|
881
|
+
.width=${this.outlineWidth}
|
882
|
+
.open=${this.outlineOpen}
|
883
|
+
class="mdc-notched-outline">
|
884
|
+
${this.renderLabel()}
|
885
|
+
</mwc-notched-outline>` : w;
|
886
|
+
}
|
887
|
+
renderLabel() {
|
888
|
+
return this.label ? x`
|
889
|
+
<span
|
890
|
+
.floatingLabelFoundation=${ie(this.label)}
|
891
|
+
id="label">${this.label}</span>
|
892
|
+
` : w;
|
893
|
+
}
|
894
|
+
renderLeadingIcon() {
|
895
|
+
return this.icon ? x`<mwc-icon class="mdc-select__icon"><div>${this.icon}</div></mwc-icon>` : w;
|
896
|
+
}
|
897
|
+
renderLineRipple() {
|
898
|
+
return this.outlined ? w : x`
|
899
|
+
<span .lineRippleFoundation=${de()}></span>
|
900
|
+
`;
|
901
|
+
}
|
902
|
+
renderHelperText() {
|
903
|
+
if (!this.shouldRenderHelperText)
|
904
|
+
return w;
|
905
|
+
const e = this.validationMessage && !this.isUiValid;
|
906
|
+
return x`
|
907
|
+
<p
|
908
|
+
class="mdc-select-helper-text ${D({
|
909
|
+
"mdc-select-helper-text--validation-msg": e
|
910
|
+
})}"
|
911
|
+
id="helper-text">${e ? this.validationMessage : this.helper}</p>`;
|
912
|
+
}
|
913
|
+
createAdapter() {
|
914
|
+
return Object.assign(Object.assign({}, ne(this.mdcRoot)), { activateBottomLine: () => {
|
915
|
+
this.lineRippleElement && this.lineRippleElement.lineRippleFoundation.activate();
|
916
|
+
}, deactivateBottomLine: () => {
|
917
|
+
this.lineRippleElement && this.lineRippleElement.lineRippleFoundation.deactivate();
|
918
|
+
}, hasLabel: () => !!this.label, floatLabel: (e) => {
|
919
|
+
this.labelElement && this.labelElement.floatingLabelFoundation.float(e);
|
920
|
+
}, getLabelWidth: () => this.labelElement ? this.labelElement.floatingLabelFoundation.getWidth() : 0, setLabelRequired: (e) => {
|
921
|
+
this.labelElement && this.labelElement.floatingLabelFoundation.setRequired(e);
|
922
|
+
}, hasOutline: () => this.outlined, notchOutline: (e) => {
|
923
|
+
this.outlineElement && !this.outlineOpen && (this.outlineWidth = e, this.outlineOpen = !0);
|
924
|
+
}, closeOutline: () => {
|
925
|
+
this.outlineElement && (this.outlineOpen = !1);
|
926
|
+
}, setRippleCenter: (e) => {
|
927
|
+
this.lineRippleElement && this.lineRippleElement.lineRippleFoundation.setRippleCenter(e);
|
928
|
+
}, notifyChange: async (e) => {
|
929
|
+
if (!this.valueSetDirectly && e === this.value)
|
930
|
+
return;
|
931
|
+
this.valueSetDirectly = !1, this.value = e, await this.updateComplete;
|
932
|
+
const t = new Event("change", { bubbles: !0 });
|
933
|
+
this.dispatchEvent(t);
|
934
|
+
}, setSelectedText: (e) => this.selectedText = e, isSelectAnchorFocused: () => {
|
935
|
+
const e = this.anchorElement;
|
936
|
+
return e ? e.getRootNode().activeElement === e : !1;
|
937
|
+
}, getSelectAnchorAttr: (e) => {
|
938
|
+
const t = this.anchorElement;
|
939
|
+
return t ? t.getAttribute(e) : null;
|
940
|
+
}, setSelectAnchorAttr: (e, t) => {
|
941
|
+
const i = this.anchorElement;
|
942
|
+
i && i.setAttribute(e, t);
|
943
|
+
}, removeSelectAnchorAttr: (e) => {
|
944
|
+
const t = this.anchorElement;
|
945
|
+
t && t.removeAttribute(e);
|
946
|
+
}, openMenu: () => {
|
947
|
+
this.menuOpen = !0;
|
948
|
+
}, closeMenu: () => {
|
949
|
+
this.menuOpen = !1;
|
950
|
+
}, addMenuClass: () => {
|
951
|
+
}, removeMenuClass: () => {
|
952
|
+
}, getAnchorElement: () => this.anchorElement, setMenuAnchorElement: () => {
|
953
|
+
}, setMenuAnchorCorner: () => {
|
954
|
+
const e = this.menuElement;
|
955
|
+
e && (e.corner = "BOTTOM_START");
|
956
|
+
}, setMenuWrapFocus: (e) => {
|
957
|
+
const t = this.menuElement;
|
958
|
+
t && (t.wrapFocus = e);
|
959
|
+
}, focusMenuItemAtIndex: (e) => {
|
960
|
+
const t = this.menuElement;
|
961
|
+
if (!t)
|
962
|
+
return;
|
963
|
+
const i = t.items[e];
|
964
|
+
i && i.focus();
|
965
|
+
}, getMenuItemCount: () => {
|
966
|
+
const e = this.menuElement;
|
967
|
+
return e ? e.items.length : 0;
|
968
|
+
}, getMenuItemValues: () => {
|
969
|
+
const e = this.menuElement;
|
970
|
+
return e ? e.items.map((i) => i.value) : [];
|
971
|
+
}, getMenuItemTextAtIndex: (e) => {
|
972
|
+
const t = this.menuElement;
|
973
|
+
if (!t)
|
974
|
+
return "";
|
975
|
+
const i = t.items[e];
|
976
|
+
return i ? i.text : "";
|
977
|
+
}, getSelectedIndex: () => this.index, setSelectedIndex: () => {
|
978
|
+
}, isTypeaheadInProgress: () => G(this.typeaheadState), typeaheadMatchItem: (e, t) => {
|
979
|
+
if (!this.menuElement)
|
980
|
+
return -1;
|
981
|
+
const i = {
|
982
|
+
focusItemAtIndex: (c) => {
|
983
|
+
this.menuElement.focusItemAtIndex(c);
|
984
|
+
},
|
985
|
+
focusedItemIndex: t || this.menuElement.getFocusedItemIndex(),
|
986
|
+
nextChar: e,
|
987
|
+
sortedIndexByFirstChar: this.sortedIndexByFirstChar,
|
988
|
+
skipFocus: !1,
|
989
|
+
isItemAtIndexDisabled: (c) => this.items[c].disabled
|
990
|
+
}, l = F(i, this.typeaheadState);
|
991
|
+
return l !== -1 && this.select(l), l;
|
992
|
+
} });
|
993
|
+
}
|
994
|
+
checkValidity() {
|
995
|
+
const e = this._checkValidity(this.value);
|
996
|
+
if (!e) {
|
997
|
+
const t = new Event("invalid", { bubbles: !1, cancelable: !0 });
|
998
|
+
this.dispatchEvent(t);
|
999
|
+
}
|
1000
|
+
return e;
|
1001
|
+
}
|
1002
|
+
reportValidity() {
|
1003
|
+
const e = this.checkValidity();
|
1004
|
+
return this.isUiValid = e, e;
|
1005
|
+
}
|
1006
|
+
_checkValidity(e) {
|
1007
|
+
const t = this.formElement.validity;
|
1008
|
+
let i = X(t);
|
1009
|
+
if (this.validityTransform) {
|
1010
|
+
const l = this.validityTransform(e, i);
|
1011
|
+
i = Object.assign(Object.assign({}, i), l);
|
1012
|
+
}
|
1013
|
+
return this._validity = i, this._validity.valid;
|
1014
|
+
}
|
1015
|
+
setCustomValidity(e) {
|
1016
|
+
this.validationMessage = e, this.formElement.setCustomValidity(e);
|
1017
|
+
}
|
1018
|
+
// tslint:disable:ban-ts-ignore
|
1019
|
+
async getUpdateComplete() {
|
1020
|
+
return await this._menuUpdateComplete, await super.getUpdateComplete();
|
1021
|
+
}
|
1022
|
+
// tslint:enable:ban-ts-ignore
|
1023
|
+
async firstUpdated() {
|
1024
|
+
const e = this.menuElement;
|
1025
|
+
if (e && (this._menuUpdateComplete = e.updateComplete, await this._menuUpdateComplete), super.firstUpdated(), this.mdcFoundation.isValid = () => !0, this.mdcFoundation.setValid = () => {
|
1026
|
+
}, this.mdcFoundation.setDisabled(this.disabled), this.validateOnInitialRender && this.reportValidity(), !this.selected) {
|
1027
|
+
!this.items.length && this.slotElement && this.slotElement.assignedNodes({ flatten: !0 }).length && (await new Promise((i) => requestAnimationFrame(i)), await this.layout());
|
1028
|
+
const t = this.items.length && this.items[0].value === "";
|
1029
|
+
if (!this.value && t) {
|
1030
|
+
this.select(0);
|
1031
|
+
return;
|
1032
|
+
}
|
1033
|
+
this.selectByValue(this.value);
|
1034
|
+
}
|
1035
|
+
this.sortedIndexByFirstChar = $(this.items.length, (t) => this.items[t].text);
|
1036
|
+
}
|
1037
|
+
onItemsUpdated() {
|
1038
|
+
this.sortedIndexByFirstChar = $(this.items.length, (e) => this.items[e].text);
|
1039
|
+
}
|
1040
|
+
select(e) {
|
1041
|
+
const t = this.menuElement;
|
1042
|
+
t && t.select(e);
|
1043
|
+
}
|
1044
|
+
selectByValue(e) {
|
1045
|
+
let t = -1;
|
1046
|
+
for (let i = 0; i < this.items.length; i++)
|
1047
|
+
if (this.items[i].value === e) {
|
1048
|
+
t = i;
|
1049
|
+
break;
|
1050
|
+
}
|
1051
|
+
this.valueSetDirectly = !0, this.select(t), this.mdcFoundation.handleChange();
|
1052
|
+
}
|
1053
|
+
disconnectedCallback() {
|
1054
|
+
super.disconnectedCallback();
|
1055
|
+
for (const e of this.listeners)
|
1056
|
+
e.target.removeEventListener(e.name, e.cb);
|
1057
|
+
}
|
1058
|
+
focus() {
|
1059
|
+
const e = new CustomEvent("focus"), t = this.anchorElement;
|
1060
|
+
t && (t.dispatchEvent(e), t.focus());
|
1061
|
+
}
|
1062
|
+
blur() {
|
1063
|
+
const e = new CustomEvent("blur"), t = this.anchorElement;
|
1064
|
+
t && (t.dispatchEvent(e), t.blur());
|
1065
|
+
}
|
1066
|
+
onFocus() {
|
1067
|
+
this.mdcFoundation && this.mdcFoundation.handleFocus();
|
1068
|
+
}
|
1069
|
+
onBlur() {
|
1070
|
+
this.mdcFoundation && this.mdcFoundation.handleBlur();
|
1071
|
+
const e = this.menuElement;
|
1072
|
+
e && !e.open && this.reportValidity();
|
1073
|
+
}
|
1074
|
+
onClick(e) {
|
1075
|
+
if (this.mdcFoundation) {
|
1076
|
+
this.focus();
|
1077
|
+
const t = e.target.getBoundingClientRect();
|
1078
|
+
let i = 0;
|
1079
|
+
"touches" in e ? i = e.touches[0].clientX : i = e.clientX;
|
1080
|
+
const l = i - t.left;
|
1081
|
+
this.mdcFoundation.handleClick(l);
|
1082
|
+
}
|
1083
|
+
}
|
1084
|
+
onKeydown(e) {
|
1085
|
+
const t = _(e) === n.ARROW_UP, i = _(e) === n.ARROW_DOWN;
|
1086
|
+
if (i || t) {
|
1087
|
+
const l = t && this.index > 0, c = i && this.index < this.items.length - 1;
|
1088
|
+
l ? this.select(this.index - 1) : c && this.select(this.index + 1), e.preventDefault(), this.mdcFoundation.openMenu();
|
1089
|
+
return;
|
1090
|
+
}
|
1091
|
+
this.mdcFoundation.handleKeydown(e);
|
1092
|
+
}
|
1093
|
+
// must capture to run before list foundation captures event
|
1094
|
+
handleTypeahead(e) {
|
1095
|
+
if (!this.menuElement)
|
1096
|
+
return;
|
1097
|
+
const t = this.menuElement.getFocusedItemIndex(), i = oe(e.target) ? e.target : null, l = i ? i.hasAttribute("mwc-list-item") : !1, c = {
|
1098
|
+
event: e,
|
1099
|
+
focusItemAtIndex: (a) => {
|
1100
|
+
this.menuElement.focusItemAtIndex(a);
|
1101
|
+
},
|
1102
|
+
focusedItemIndex: t,
|
1103
|
+
isTargetListItem: l,
|
1104
|
+
sortedIndexByFirstChar: this.sortedIndexByFirstChar,
|
1105
|
+
isItemAtIndexDisabled: (a) => this.items[a].disabled
|
1106
|
+
};
|
1107
|
+
_e(c, this.typeaheadState);
|
1108
|
+
}
|
1109
|
+
async onSelected(e) {
|
1110
|
+
this.mdcFoundation || await this.updateComplete, this.mdcFoundation.handleMenuItemAction(e.detail.index);
|
1111
|
+
const t = this.items[e.detail.index];
|
1112
|
+
t && (this.value = t.value);
|
1113
|
+
}
|
1114
|
+
onOpened() {
|
1115
|
+
this.mdcFoundation && (this.menuOpen = !0, this.mdcFoundation.handleMenuOpened());
|
1116
|
+
}
|
1117
|
+
onClosed() {
|
1118
|
+
this.mdcFoundation && (this.menuOpen = !1, this.mdcFoundation.handleMenuClosed());
|
1119
|
+
}
|
1120
|
+
setFormData(e) {
|
1121
|
+
this.name && this.selected !== null && e.append(this.name, this.value);
|
1122
|
+
}
|
1123
|
+
async layout(e = !0) {
|
1124
|
+
this.mdcFoundation && this.mdcFoundation.layout(), await this.updateComplete;
|
1125
|
+
const t = this.menuElement;
|
1126
|
+
t && t.layout(e);
|
1127
|
+
const i = this.labelElement;
|
1128
|
+
if (!i) {
|
1129
|
+
this.outlineOpen = !1;
|
1130
|
+
return;
|
1131
|
+
}
|
1132
|
+
const l = !!this.label && !!this.value;
|
1133
|
+
if (i.floatingLabelFoundation.float(l), !this.outlined)
|
1134
|
+
return;
|
1135
|
+
this.outlineOpen = l, await this.updateComplete;
|
1136
|
+
const c = i.floatingLabelFoundation.getWidth();
|
1137
|
+
this.outlineOpen && (this.outlineWidth = c);
|
1138
|
+
}
|
1139
|
+
async layoutOptions() {
|
1140
|
+
this.mdcFoundation && this.mdcFoundation.layoutOptions();
|
1141
|
+
}
|
1142
|
+
}
|
1143
|
+
o([
|
1144
|
+
v(".mdc-select")
|
1145
|
+
], r.prototype, "mdcRoot", void 0);
|
1146
|
+
o([
|
1147
|
+
v(".formElement")
|
1148
|
+
], r.prototype, "formElement", void 0);
|
1149
|
+
o([
|
1150
|
+
v("slot")
|
1151
|
+
], r.prototype, "slotElement", void 0);
|
1152
|
+
o([
|
1153
|
+
v("select")
|
1154
|
+
], r.prototype, "nativeSelectElement", void 0);
|
1155
|
+
o([
|
1156
|
+
v("input")
|
1157
|
+
], r.prototype, "nativeInputElement", void 0);
|
1158
|
+
o([
|
1159
|
+
v(".mdc-line-ripple")
|
1160
|
+
], r.prototype, "lineRippleElement", void 0);
|
1161
|
+
o([
|
1162
|
+
v(".mdc-floating-label")
|
1163
|
+
], r.prototype, "labelElement", void 0);
|
1164
|
+
o([
|
1165
|
+
v("mwc-notched-outline")
|
1166
|
+
], r.prototype, "outlineElement", void 0);
|
1167
|
+
o([
|
1168
|
+
v(".mdc-menu")
|
1169
|
+
], r.prototype, "menuElement", void 0);
|
1170
|
+
o([
|
1171
|
+
v(".mdc-select__anchor")
|
1172
|
+
], r.prototype, "anchorElement", void 0);
|
1173
|
+
o([
|
1174
|
+
g({ type: Boolean, attribute: "disabled", reflect: !0 }),
|
1175
|
+
O(function(d) {
|
1176
|
+
this.mdcFoundation && this.mdcFoundation.setDisabled(d);
|
1177
|
+
})
|
1178
|
+
], r.prototype, "disabled", void 0);
|
1179
|
+
o([
|
1180
|
+
g({ type: Boolean }),
|
1181
|
+
O(function(d, e) {
|
1182
|
+
e !== void 0 && this.outlined !== e && this.layout(!1);
|
1183
|
+
})
|
1184
|
+
], r.prototype, "outlined", void 0);
|
1185
|
+
o([
|
1186
|
+
g({ type: String }),
|
1187
|
+
O(function(d, e) {
|
1188
|
+
e !== void 0 && this.label !== e && this.layout(!1);
|
1189
|
+
})
|
1190
|
+
], r.prototype, "label", void 0);
|
1191
|
+
o([
|
1192
|
+
S()
|
1193
|
+
], r.prototype, "outlineOpen", void 0);
|
1194
|
+
o([
|
1195
|
+
S()
|
1196
|
+
], r.prototype, "outlineWidth", void 0);
|
1197
|
+
o([
|
1198
|
+
g({ type: String }),
|
1199
|
+
O(function(d) {
|
1200
|
+
if (this.mdcFoundation) {
|
1201
|
+
const e = this.selected === null && !!d, t = this.selected && this.selected.value !== d;
|
1202
|
+
(e || t) && this.selectByValue(d), this.reportValidity();
|
1203
|
+
}
|
1204
|
+
})
|
1205
|
+
], r.prototype, "value", void 0);
|
1206
|
+
o([
|
1207
|
+
g()
|
1208
|
+
], r.prototype, "name", void 0);
|
1209
|
+
o([
|
1210
|
+
S()
|
1211
|
+
], r.prototype, "selectedText", void 0);
|
1212
|
+
o([
|
1213
|
+
g({ type: String })
|
1214
|
+
], r.prototype, "icon", void 0);
|
1215
|
+
o([
|
1216
|
+
S()
|
1217
|
+
], r.prototype, "menuOpen", void 0);
|
1218
|
+
o([
|
1219
|
+
g({ type: String })
|
1220
|
+
], r.prototype, "helper", void 0);
|
1221
|
+
o([
|
1222
|
+
g({ type: Boolean })
|
1223
|
+
], r.prototype, "validateOnInitialRender", void 0);
|
1224
|
+
o([
|
1225
|
+
g({ type: String })
|
1226
|
+
], r.prototype, "validationMessage", void 0);
|
1227
|
+
o([
|
1228
|
+
g({ type: Boolean })
|
1229
|
+
], r.prototype, "required", void 0);
|
1230
|
+
o([
|
1231
|
+
g({ type: Boolean })
|
1232
|
+
], r.prototype, "naturalMenuWidth", void 0);
|
1233
|
+
o([
|
1234
|
+
S()
|
1235
|
+
], r.prototype, "isUiValid", void 0);
|
1236
|
+
o([
|
1237
|
+
g({ type: Boolean })
|
1238
|
+
], r.prototype, "fixedMenuPosition", void 0);
|
1239
|
+
o([
|
1240
|
+
re({ capture: !0 })
|
1241
|
+
], r.prototype, "handleTypeahead", null);
|
1242
|
+
/**
|
1243
|
+
* @license
|
1244
|
+
* Copyright 2021 Google LLC
|
1245
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
1246
|
+
*/
|
1247
|
+
const xe = P`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87)}.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-select.mdc-select--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#6200ee;fill:var(--mdc-theme-primary, #6200ee)}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled)+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:rgba(0, 0, 0, 0.54)}.mdc-select.mdc-select--disabled .mdc-select__icon{color:rgba(0, 0, 0, 0.38)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:red}.mdc-select.mdc-select--disabled .mdc-floating-label{color:GrayText}.mdc-select.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-select.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing{border-color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__icon{color:GrayText}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:GrayText}}.mdc-select .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-select .mdc-select__anchor{padding-left:16px;padding-right:0}[dir=rtl] .mdc-select .mdc-select__anchor,.mdc-select .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:16px}.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor{padding-left:0;padding-right:0}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor,.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:0}.mdc-select .mdc-select__icon{width:24px;height:24px;font-size:24px}.mdc-select .mdc-select__dropdown-icon{width:24px;height:24px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item,.mdc-select .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:12px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic,.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:12px;margin-right:0}.mdc-select__dropdown-icon{margin-left:12px;margin-right:12px;display:inline-flex;position:relative;align-self:center;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{position:absolute;top:0;left:0}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic{width:41.6666666667%;height:20.8333333333%}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:1;transition:opacity 75ms linear 75ms}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:0;transition:opacity 49.5ms linear}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:1;transition:opacity 100.5ms linear 49.5ms}.mdc-select__anchor{width:200px;min-width:0;flex:1 1 auto;position:relative;box-sizing:border-box;overflow:hidden;outline:none;cursor:pointer}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-select__selected-text-container{display:flex;appearance:none;pointer-events:none;box-sizing:border-box;width:auto;min-width:0;flex-grow:1;height:28px;border:none;outline:none;padding:0;background-color:transparent;color:inherit}.mdc-select__selected-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;width:100%;text-align:left}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{text-align:right}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item,.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:12px;padding-right:12px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select__menu::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}}@media screen and (forced-colors: active)and (forced-colors: active),screen and (-ms-high-contrast: active)and (forced-colors: active){.mdc-select__menu::before{border-color:CanvasText}}.mdc-select__menu .mdc-deprecated-list .mdc-select__icon,.mdc-select__menu .mdc-list .mdc-select__icon{margin-left:0;margin-right:0}[dir=rtl] .mdc-select__menu .mdc-deprecated-list .mdc-select__icon,[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon,.mdc-select__menu .mdc-deprecated-list .mdc-select__icon[dir=rtl],.mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl]{margin-left:0;margin-right:0}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-list-item__start{display:inline-flex;align-items:center}.mdc-select__option{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select__option,.mdc-select__option[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select__one-line-option.mdc-list-item--with-one-line{height:48px}.mdc-select__two-line-option.mdc-list-item--with-two-lines{height:64px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__start{margin-top:20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-select__option-with-leading-content{padding-left:0;padding-right:12px}.mdc-select__option-with-leading-content.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-select__option-with-leading-content.mdc-list-item,.mdc-select__option-with-leading-content.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-select__option-with-leading-content .mdc-list-item__start{margin-left:12px;margin-right:0}[dir=rtl] .mdc-select__option-with-leading-content .mdc-list-item__start,.mdc-select__option-with-leading-content .mdc-list-item__start[dir=rtl]{margin-left:0;margin-right:12px}.mdc-select__option-with-leading-content .mdc-list-item__start{width:36px;height:24px}[dir=rtl] .mdc-select__option-with-leading-content,.mdc-select__option-with-leading-content[dir=rtl]{padding-left:12px;padding-right:0}.mdc-select__option-with-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-select__option-with-meta.mdc-list-item,.mdc-select__option-with-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-select__option-with-meta .mdc-list-item__end{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select__option-with-meta .mdc-list-item__end,.mdc-select__option-with-meta .mdc-list-item__end[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--filled .mdc-select__anchor{height:56px;display:flex;align-items:baseline}.mdc-select--filled .mdc-select__anchor::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before{display:none}.mdc-select--filled .mdc-select__anchor{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke}.mdc-select--filled.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-select--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-select--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-select--filled .mdc-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after{transform:scale(1, 2);opacity:1}.mdc-select--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-select--filled .mdc-floating-label,.mdc-select--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined{border:none}.mdc-select--outlined .mdc-select__anchor{height:56px}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-56px{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-select--outlined .mdc-select__anchor{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-select--outlined+.mdc-select-helper-text{margin-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-select--outlined .mdc-select__anchor{display:flex;align-items:baseline;overflow:visible}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--outlined .mdc-select__anchor::before{display:none}.mdc-select--outlined .mdc-select__selected-text-container{display:flex;border:none;z-index:1;background-color:transparent}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;left:4px;right:initial}[dir=rtl] .mdc-select--outlined .mdc-floating-label,.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 96px)}.mdc-select--outlined .mdc-menu-surface{margin-bottom:8px}.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,.mdc-select--outlined .mdc-menu-surface--is-open-below{margin-bottom:0}.mdc-select__anchor{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor .mdc-select__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-select__anchor .mdc-select__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-select__anchor:hover .mdc-select__ripple::before,.mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__anchor .mdc-select__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select-helper-text{margin:0;margin-left:16px;margin-right:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal}[dir=rtl] .mdc-select-helper-text,.mdc-select-helper-text[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--validation-msg{opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-select--invalid+.mdc-select-helper-text--validation-msg,.mdc-select-helper-text--validation-msg-persistent{opacity:1}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;box-sizing:border-box;border:none;text-decoration:none;cursor:pointer;user-select:none;flex-shrink:0;align-self:center;background-color:transparent;fill:currentColor}.mdc-select--with-leading-icon .mdc-select__icon{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-block;vertical-align:top;outline:none}.mdc-select{width:100%}[hidden]{display:none}.mdc-select__icon{z-index:2}.mdc-select--with-leading-icon{--mdc-list-item-graphic-margin: calc( 48px - var(--mdc-list-item-graphic-size, 24px) - var(--mdc-list-side-padding, 16px) )}.mdc-select .mdc-select__anchor .mdc-select__selected-text{overflow:hidden}.mdc-select .mdc-select__anchor *{display:inline-flex}.mdc-select .mdc-select__anchor .mdc-floating-label{display:inline-block}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-idle-border-color, rgba(0, 0, 0, 0.38) );--mdc-notched-outline-notch-offset: 1px}:host(:not([disabled]):hover) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87);color:var(--mdc-select-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-select-idle-line-color, rgba(0, 0, 0, 0.42))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-select-hover-line-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--outlined):not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke;background-color:var(--mdc-select-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-select__dropdown-icon{fill:var(--mdc-select-error-dropdown-icon-color, var(--mdc-select-error-color, var(--mdc-theme-error, #b00020)))}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label,:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label::after{color:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}.mdc-select__menu--invalid{--mdc-theme-primary: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.6);color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54);fill:var(--mdc-select-dropdown-icon-color, rgba(0, 0, 0, 0.54))}:host(:not([disabled])) .mdc-select.mdc-select--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px;--mdc-notched-outline-notch-offset: 2px}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-select__dropdown-icon{fill:rgba(98,0,238,.87);fill:var(--mdc-select-focused-dropdown-icon-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label::after{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-select:not(.mdc-select--outlined).mdc-select--disabled .mdc-select__anchor{background-color:#fafafa;background-color:var(--mdc-select-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-select.mdc-select--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-select .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38);fill:var(--mdc-select-disabled-dropdown-icon-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select-helper-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}`, Ee = `:host{--mdc-select-idle-line-color: var(--mdc-theme-border);--mdc-select-hover-line-color: var(--mdc-theme-text-icon-on-background);--mdc-select-fill-color: var(--mdc-theme-surface-canvas);--mdc-select-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-select-label-ink-color: var(--mdc-theme-text-secondary-on-background);--mdc-select-outlined-idle-border-color: var(--mdc-theme-border);--mdc-select-outlined-hover-border-color: var(--mdc-theme-text-icon-on-background);--mdc-select-dropdown-icon-color: var(--mdc-theme-text-icon-on-background)}:host .mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:var(--mdc-select-dropdown-icon-color)}
|
6
1248
|
`;
|
7
|
-
var
|
8
|
-
for (var
|
9
|
-
(
|
10
|
-
return
|
1249
|
+
var ye = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, Te = (d, e, t, i) => {
|
1250
|
+
for (var l = i > 1 ? void 0 : i ? Ie(e, t) : e, c = d.length - 1, a; c >= 0; c--)
|
1251
|
+
(a = d[c]) && (l = (i ? a(e, t, l) : a(l)) || l);
|
1252
|
+
return i && l && ye(e, t, l), l;
|
11
1253
|
};
|
12
|
-
let
|
1254
|
+
let N = class extends r {
|
13
1255
|
};
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
],
|
1256
|
+
N.styles = [P`${ee(Ee)}`, xe];
|
1257
|
+
N = Te([
|
1258
|
+
Y("cv-select")
|
1259
|
+
], N);
|
18
1260
|
export {
|
19
|
-
|
1261
|
+
N as CovalentSelectBase
|
20
1262
|
};
|