@luzmo/lucero 1.0.1-alpha.17 → 1.0.1-alpha.19
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/components/NumberFormatter-DewVDY5w.cjs +18 -0
- package/components/NumberFormatter-DgOUVrge.js +136 -0
- package/components/NumberParser-Dik4a0h-.cjs +18 -0
- package/components/NumberParser-ci9J5EKv.js +173 -0
- package/components/accordion/index.cjs +6 -183
- package/components/accordion/index.js +88 -136
- package/components/action-bar/index.cjs +4 -85
- package/components/action-bar/index.js +50 -72
- package/components/action-button/index.cjs +3 -205
- package/components/action-button/index.js +93 -167
- package/components/action-group/index.cjs +1 -7
- package/components/action-group/index.js +8 -12
- package/components/action-group-C54IxNZk.cjs +20 -0
- package/components/action-group-C9dsPJg-.js +258 -0
- package/components/action-menu/index.cjs +11 -91
- package/components/action-menu/index.js +47 -66
- package/components/async-directive-BwIAw5tB.js +82 -0
- package/components/async-directive-DLz6JB0v.cjs +22 -0
- package/components/avatar/index.cjs +3 -63
- package/components/avatar/index.js +42 -54
- package/components/{focusable-selectors-D0t_5P7C.cjs → base-BjTwmyRF.cjs} +5 -16
- package/components/base-CFWO09N1.js +684 -0
- package/components/base-Cy0MQrPT.cjs +40 -0
- package/components/base-D76d76ww.js +26 -0
- package/components/button/index.cjs +2 -134
- package/components/button/index.js +72 -106
- package/components/button-base-B8bWcklV.js +144 -0
- package/components/button-base-tf95Lyl4.cjs +25 -0
- package/components/button-group/index.cjs +1 -45
- package/components/button-group/index.js +25 -37
- package/components/calendar/index.cjs +1 -632
- package/components/calendar/index.js +7 -637
- package/components/checkbox/index.cjs +4 -111
- package/components/checkbox/index.js +53 -98
- package/components/checkbox-mixin-BOTvuPEu.js +70 -0
- package/components/checkbox-mixin-BVPpXtsq.cjs +27 -0
- package/components/class-map-CGfNk3Ee.js +51 -0
- package/components/class-map-D-Y-hsN5.cjs +22 -0
- package/components/clear-button-CuPbWwZY.cjs +18 -0
- package/components/clear-button-DzZ5ulBW.js +53 -0
- package/components/close-button-BTo4yrFR.cjs +18 -0
- package/components/close-button-CuQdsez5.js +51 -0
- package/components/color-area/index.cjs +13 -440
- package/components/color-area/index.js +187 -322
- package/components/color-controller-B0uX6Zso.js +3230 -0
- package/components/color-controller-CoUL5f9K.cjs +18 -0
- package/components/color-field/index.cjs +2 -95
- package/components/color-field/index.js +41 -77
- package/components/color-handle/index.cjs +3 -64
- package/components/color-handle/index.js +37 -58
- package/components/color-loupe/index.cjs +1 -7
- package/components/color-loupe/index.js +8 -12
- package/components/color-loupe-CrM2DVY3.cjs +56 -0
- package/components/color-loupe-DmQe3SpP.js +81 -0
- package/components/color-menu/index.cjs +12 -217
- package/components/color-menu/index.js +93 -187
- package/components/color-palette/index.cjs +1 -89
- package/components/color-palette/index.js +51 -78
- package/components/color-palette-group/index.cjs +3 -259
- package/components/color-palette-group/index.js +105 -193
- package/components/color-picker/index.cjs +6 -114
- package/components/color-picker/index.js +72 -92
- package/components/color-slider/index.cjs +1 -585
- package/components/color-slider/index.js +7 -590
- package/components/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
- package/components/condition-attribute-with-id-Dv4lSRbe.js +31 -0
- package/components/date-time-picker/index.cjs +31 -1357
- package/components/date-time-picker/index.js +637 -951
- package/components/{dependency-manger-XHpQjFgK.js → dependency-manger-CO-VPlqq.js} +14 -24
- package/components/dependency-manger-uthev62E.cjs +18 -0
- package/components/directive-C7oCP5Bh.cjs +22 -0
- package/components/directive-helpers-D4KMv2dC.js +62 -0
- package/components/directive-helpers-t-TVum7J.cjs +22 -0
- package/components/{slottable-request-event-CANixJnR.cjs → directive-oAbCiebi.js} +25 -14
- package/components/divider/index.cjs +1 -54
- package/components/divider/index.js +30 -49
- package/components/divider.module-DDvBo9zo.cjs +18 -0
- package/components/divider.module-DoQWQEIJ.js +21 -0
- package/components/element-resolution-BvRLGqIU.cjs +18 -0
- package/components/element-resolution-FCUT-wql.js +91 -0
- package/components/field-group/index.cjs +1 -7
- package/components/field-group/index.js +8 -12
- package/components/field-group-5WQMBOk4.cjs +23 -0
- package/components/field-group-D4B0IOdA.js +66 -0
- package/components/field-label/index.cjs +1 -7
- package/components/field-label/index.js +8 -12
- package/components/field-label-DxmPiC5p.js +106 -0
- package/components/field-label-Dz9kisdW.cjs +25 -0
- package/components/flow-D-0MTYCm.js +527 -0
- package/components/flow-DM3dNAKs.cjs +30 -0
- package/components/focus-group-DHeTq18L.js +218 -0
- package/components/focus-group-DnxZUBhQ.cjs +18 -0
- package/components/focus-visible-BvScGDCE.js +74 -0
- package/components/focus-visible-D4BXb5RB.cjs +18 -0
- package/components/focusable-B_KwfEec.cjs +18 -0
- package/components/focusable-C5JjRZmT.js +153 -0
- package/components/{focusable-selectors-IltOAOd9.js → focusable-selectors-B4YgbghQ.js} +4 -7
- package/components/focusable-selectors-BgFlyFcY.cjs +18 -0
- package/components/icon/index.cjs +1 -90
- package/components/icon/index.js +46 -74
- package/components/if-defined-DULpqYwi.js +27 -0
- package/components/if-defined-DaXWqfzc.cjs +22 -0
- package/components/index-CNK8wHXu.cjs +57 -0
- package/components/index-Cf6G4q52.js +1490 -0
- package/components/index-D3ICqC7S.js +1174 -0
- package/components/index-hqVbNKYy.cjs +113 -0
- package/components/index.cjs +1 -174
- package/components/index.js +172 -174
- package/components/infield-button/index.cjs +2 -46
- package/components/infield-button/index.js +30 -41
- package/components/label/index.cjs +1 -37
- package/components/label/index.js +24 -36
- package/components/{language-resolution-BSGJAWiQ.js → language-resolution-B-wjV5bb.js} +17 -21
- package/components/language-resolution-EUER43cg.cjs +18 -0
- package/components/like-anchor-Bu3pXbjT.cjs +32 -0
- package/components/like-anchor-DCFJN0LV.js +69 -0
- package/components/luzmo-icons-CiSek5iM.js +229 -0
- package/components/luzmo-icons-CtA-TJPd.cjs +29 -0
- package/components/manage-help-text-CHfMLzSa.js +92 -0
- package/components/manage-help-text-DNqdEkTA.cjs +30 -0
- package/components/menu/index.cjs +29 -1297
- package/components/menu/index.js +499 -954
- package/components/multi-language-field/index.cjs +2 -132
- package/components/multi-language-field/index.js +88 -118
- package/components/mutation-controller-DH7YOCyj.js +52 -0
- package/components/mutation-controller-DkOMCW-c.cjs +22 -0
- package/components/number-field/index.cjs +10 -613
- package/components/number-field/index.js +243 -442
- package/components/observe-slot-presence-CmVi0zTc.js +68 -0
- package/components/observe-slot-presence-bc9chhsi.cjs +18 -0
- package/components/observe-slot-text-C3moTjwy.js +87 -0
- package/components/observe-slot-text-D2VAEFSd.cjs +18 -0
- package/components/options/index.cjs +60 -693
- package/components/options/index.js +953 -519
- package/components/overlay/index.cjs +21 -367
- package/components/overlay/index.js +189 -273
- package/components/overlay-B3ajDLLq.cjs +47 -0
- package/components/overlay-CUKs69yr.js +2745 -0
- package/components/{pending-state-CXbe-Xul.js → pending-state-B2wWssTo.js} +13 -28
- package/components/pending-state-bJr-nEJl.cjs +26 -0
- package/components/picker/index.cjs +1 -9
- package/components/picker/index.js +11 -15
- package/components/picker-C0LvseZe.cjs +123 -0
- package/components/picker-W1qNmtsh.js +461 -0
- package/components/picker-button/index.cjs +4 -56
- package/components/picker-button/index.js +34 -45
- package/components/{condition-attribute-with-id-Cn815e9W.js → platform-BM-uMWpX.js} +49 -24
- package/components/platform-BiXhwqk3.cjs +18 -0
- package/components/popover/index.cjs +1 -7
- package/components/popover/index.js +8 -12
- package/components/popover-fwJeZHMQ.cjs +30 -0
- package/components/popover-iD8f5Jkp.js +67 -0
- package/components/progress-circle/index.cjs +1 -7
- package/components/progress-circle/index.js +8 -12
- package/components/progress-circle-DZxaMe8L.cjs +33 -0
- package/components/progress-circle-USIIU1up.js +97 -0
- package/components/query-BL-TJj7K.cjs +22 -0
- package/components/query-D_KR_GUc.js +51 -0
- package/components/query-assigned-elements-DjfhL1cl.js +36 -0
- package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/components/query-assigned-nodes-C76XVPWY.js +36 -0
- package/components/radio/index.cjs +2 -244
- package/components/radio/index.js +110 -192
- package/components/{random-id-BEc6QIUL.js → random-id-ByCz1xaq.js} +3 -3
- package/components/random-id-CqvckpWe.cjs +18 -0
- package/components/roving-tabindex-By_fCy_e.cjs +18 -0
- package/components/roving-tabindex-DOg4z6ZU.js +66 -0
- package/components/search/index.cjs +8 -115
- package/components/search/index.js +66 -96
- package/components/select/index.cjs +51 -720
- package/components/select/index.js +347 -563
- package/components/sized-mixin-CJbBHWRQ.js +63 -0
- package/components/sized-mixin-WPHH0a_D.cjs +18 -0
- package/components/slider/index.cjs +1 -119
- package/components/slider/index.js +1113 -100
- package/components/slottable-request-event-BfUUt1Mh.cjs +18 -0
- package/components/{slottable-request-event-D9WzrdWv.js → slottable-request-event-DggLA4Rx.js} +9 -12
- package/components/state-DwIwYPvt.js +29 -0
- package/components/state-vf0PJN3_.cjs +22 -0
- package/components/strategies-C6HsQpU2.cjs +18 -0
- package/components/strategies-CUMLHtQI.js +195 -0
- package/components/streaming-listener-BQ68fKMa.js +91 -0
- package/components/streaming-listener-DeGQYM-9.cjs +18 -0
- package/components/style-map-Bnhf_mVZ.js +53 -0
- package/components/style-map-DuMd5xlY.cjs +22 -0
- package/components/swatch/index.cjs +7 -436
- package/components/swatch/index.js +205 -350
- package/components/switch/index.cjs +2 -61
- package/components/switch/index.js +34 -51
- package/components/tabs/index.cjs +26 -693
- package/components/tabs/index.js +388 -521
- package/components/tags/index.cjs +4 -201
- package/components/tags/index.js +87 -152
- package/components/text-field/index.cjs +3 -49
- package/components/text-field/index.js +30 -44
- package/components/text-field-BkFPYo7S.cjs +85 -0
- package/components/text-field-C2n3rzCK.js +314 -0
- package/components/text-field.module-C2KVUJcX.js +21 -0
- package/components/text-field.module-DXhFA9G-.cjs +18 -0
- package/components/toast/index.cjs +12 -177
- package/components/toast/index.js +73 -145
- package/components/tooltip/index.cjs +6 -221
- package/components/tooltip/index.js +131 -155
- package/components/tooltip/tooltip.d.ts +12 -1
- package/components/unit-input/index.cjs +8 -232
- package/components/unit-input/index.js +108 -201
- package/components/utils.cjs +1 -25
- package/components/utils.js +22 -22
- package/components/{random-id-BE6HA503.cjs → when-CDK1Tt5Y.js} +10 -7
- package/components/when-CDZyJPvd.cjs +22 -0
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/components/action-group-DHp8RHDf.js +0 -392
- package/components/action-group-MPf19RPV.cjs +0 -391
- package/components/base-COw9n7UR.cjs +0 -119
- package/components/base-DmeVy0cq.js +0 -120
- package/components/button-base-7Ak55xFd.cjs +0 -206
- package/components/button-base-C3kf6BTK.js +0 -207
- package/components/checkbox-mixin-8cL-vfDy.js +0 -84
- package/components/checkbox-mixin-CE7dJj3J.cjs +0 -83
- package/components/clear-button-Co6oKSgl.js +0 -59
- package/components/clear-button-X_HDY2eH.cjs +0 -58
- package/components/close-button-DPBK6Kpu.cjs +0 -59
- package/components/close-button-Miw9ZjoJ.js +0 -60
- package/components/color-controller-BjDZaxhX.js +0 -491
- package/components/color-controller-C3c_vb2P.cjs +0 -490
- package/components/color-loupe-BQqNR8YD.cjs +0 -88
- package/components/color-loupe-B_DDFv8l.js +0 -89
- package/components/condition-attribute-with-id-DEc2Yjne.cjs +0 -43
- package/components/dependency-manger-CcIE1uvQ.cjs +0 -63
- package/components/divider.module-Cm5LcDRV.cjs +0 -20
- package/components/divider.module-DauH6k2_.js +0 -21
- package/components/element-resolution-DCsrhGZO.cjs +0 -112
- package/components/element-resolution-nMlmW4Jy.js +0 -113
- package/components/field-group-DNmY8W9v.cjs +0 -86
- package/components/field-group-DVdAWCQF.js +0 -87
- package/components/field-label-CKH9EXpR.cjs +0 -156
- package/components/field-label-Dpsecoc6.js +0 -157
- package/components/focus-group-BqDAk9Is.js +0 -337
- package/components/focus-group-DFzOlalL.cjs +0 -336
- package/components/focus-visible-B-B8-P9R.cjs +0 -104
- package/components/focus-visible-BUPRWlsh.js +0 -105
- package/components/focusable-BPrTcZPd.cjs +0 -262
- package/components/focusable-ChCLg1k4.js +0 -263
- package/components/language-resolution-iN9EImbb.cjs +0 -57
- package/components/like-anchor-D62faRNG.cjs +0 -79
- package/components/like-anchor-v3cJ9RWM.js +0 -80
- package/components/manage-help-text-BYx84zZR.cjs +0 -125
- package/components/manage-help-text-DOuMTGht.js +0 -126
- package/components/observe-slot-presence-9AwLGUQ_.cjs +0 -78
- package/components/observe-slot-presence-DcMdoumP.js +0 -79
- package/components/observe-slot-text-CSofZeeF.cjs +0 -104
- package/components/observe-slot-text-CjnkkBPn.js +0 -105
- package/components/overlay-CN8ISP1F.js +0 -2485
- package/components/overlay-LViy9VWM.cjs +0 -2484
- package/components/pending-state-e4RbXe9u.cjs +0 -75
- package/components/picker-DNde3awt.cjs +0 -672
- package/components/picker-PfUAF05y.js +0 -673
- package/components/platform-CxDar3Dn.cjs +0 -68
- package/components/platform-Cxn0WbyT.js +0 -69
- package/components/popover-BkbYhl3i.js +0 -74
- package/components/popover-BkgUf0kL.cjs +0 -74
- package/components/progress-circle-Hu_ivPHf.js +0 -133
- package/components/progress-circle-_Etqsj9f.cjs +0 -132
- package/components/roving-tabindex-AsmAh2In.cjs +0 -95
- package/components/roving-tabindex-DPF9NmrH.js +0 -96
- package/components/sized-mixin-DmkrNdWB.js +0 -80
- package/components/sized-mixin-UaTVa-AE.cjs +0 -79
- package/components/strategies-DlMlaSJR.cjs +0 -317
- package/components/strategies-DlPQoTFE.js +0 -318
- package/components/streaming-listener-D4sHaMub.cjs +0 -145
- package/components/streaming-listener-cAz5zJyk.js +0 -146
- package/components/text-field-11tcnftU.cjs +0 -338
- package/components/text-field-Chi9J2Cz.js +0 -339
- package/components/text-field.module-CMBS0jSL.js +0 -21
- package/components/text-field.module-DIJdV_sA.cjs +0 -20
|
@@ -15,492 +15,60 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";
|
|
19
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
20
|
-
require("@lit-labs/virtualizer");
|
|
21
|
-
const icons = require("@luzmo/icons");
|
|
22
|
-
const lit = require("lit");
|
|
23
|
-
const decorators_js = require("lit/decorators.js");
|
|
24
|
-
const classMap_js = require("lit/directives/class-map.js");
|
|
25
|
-
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
26
|
-
const strategies = require("../strategies-DlMlaSJR.cjs");
|
|
27
|
-
const focusable = require("../focusable-BPrTcZPd.cjs");
|
|
28
|
-
const dependencyManger = require("../dependency-manger-CcIE1uvQ.cjs");
|
|
29
|
-
const pendingState = require("../pending-state-e4RbXe9u.cjs");
|
|
30
|
-
const sizedMixin = require("../sized-mixin-UaTVa-AE.cjs");
|
|
31
|
-
require("../icon/index.cjs");
|
|
32
|
-
const options_index = require("../options/index.cjs");
|
|
33
|
-
require("../overlay/index.cjs");
|
|
34
|
-
require("../popover/index.cjs");
|
|
35
|
-
require("../progress-circle/index.cjs");
|
|
36
|
-
require("../tooltip/index.cjs");
|
|
37
|
-
const getCssVariableValue = (element, variable) => {
|
|
38
|
-
let value = getComputedStyle(element).getPropertyValue(variable);
|
|
39
|
-
while (!value && element.parentElement) {
|
|
40
|
-
element = element.parentElement;
|
|
41
|
-
value = getComputedStyle(element).getPropertyValue(variable);
|
|
42
|
-
}
|
|
43
|
-
return value.trim();
|
|
44
|
-
};
|
|
45
|
-
const selectStyles = ':host{font-family:var(--luzmo-select-font-family, var(--select-font-family));font-size:var(--luzmo-select-font-size, var(--select-font-size))}#button{cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--luzmo-button-font-family, var(--luzmo-font-family));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--luzmo-button-line-height, var(--luzmo-line-height, 1.3));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,border-color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,box-shadow var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;position:relative;overflow:visible}#button::-moz-focus-inner{border-style:none;padding:0}#button:focus{outline:none}#icon{margin-inline-end:var(--luzmo-select-spacing-text-to-icon, var(--select-spacing-text-to-icon));font-size:var(--luzmo-select-font-size, var(--select-font-size))}@media (forced-colors: active){:host{--highcontrast-select-focus-indicator-color: Highlight;--highcontrast-select-border-color-default: ButtonBorder;--highcontrast-select-border-color-hover: Highlight;--highcontrast-select-border-color-disabled: GrayText;--highcontrast-select-content-color-default: ButtonText;--highcontrast-select-content-color-disabled: GrayText;--highcontrast-select-background-color: ButtonFace}#button:focus-visible{--highcontrast-select-border-color-hover: ButtonText}#button .label,#button:after{forced-color-adjust:none}}#button{box-sizing:border-box;max-inline-size:100%;min-inline-size:calc(var(--select-minimum-width-multiplier) * var(--luzmo-select-button-block-size, var(--select-button-block-size)));block-size:var(--luzmo-select-button-block-size, var(--select-button-block-size));border-width:var(--luzmo-select-button-border-width, var(--select-button-border-width));border-radius:var(--luzmo-select-button-border-radius, var(--select-button-border-radius));box-shadow:var(--luzmo-select-button-box-shadow, var(--select-button-box-shadow));transition:background-color var(--luzmo-select-animation-duration, var(--select-animation-duration)),box-shadow var(--luzmo-select-animation-duration, var(--select-animation-duration)),border-color var(--luzmo-select-animation-duration, var(--select-animation-duration)) ease-in-out;color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default, var(--select-background-color-default)));border-style:solid;border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-default, var(--select-border-color-default)));margin-block-start:var(--luzmo-select-spacing-label-to-select, var(--select-spacing-label-to-select));padding-block:0;padding-inline-start:var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text));padding-inline-end:var(--luzmo-select-spacing-edge-to-disclosure-icon, var(--select-spacing-edge-to-disclosure-icon));display:flex}#button:after{pointer-events:none;content:"";block-size:calc(100% + var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) * 2 + var(--luzmo-select-button-border-width, var(--select-button-border-width)) * 2);inline-size:calc(100% + var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) * 2 + var(--luzmo-select-button-border-width, var(--select-button-border-width)) * 2);border-style:solid;border-width:var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width));border-radius:calc(var(--luzmo-select-button-border-radius, var(--select-button-border-radius)) + var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-button-border-width, var(--select-button-border-width)));border-color:#0000;margin-block-start:calc((var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width)) + var(--luzmo-select-button-border-width, var(--select-button-border-width))) * -1);margin-inline-start:calc((var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width)) + var(--luzmo-select-button-border-width, var(--select-button-border-width))) * -1);position:absolute;inset-block:0;inset-inline:0}#button:active{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-active, var(--select-background-color-active)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-active, var(--select-border-color-active)))}#button:active:after{border-color:#0000}#button.placeholder:active .label{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-active, var(--select-font-color-active)))}#button:focus-visible{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-key-focus, var(--select-background-color-key-focus)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-key-focus, var(--select-border-color-key-focus)));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-key-focus, var(--select-font-color-key-focus)));outline:none}#button:focus-visible:after{border-color:var(--highcontrast-select-focus-indicator-color, var(--luzmo-select-focus-indicator-color, var(--select-focus-indicator-color)))}#button.placeholder:focus-visible{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-key-focus, var(--select-font-color-key-focus)))}#button:focus-visible .disclosure-icon,#button:focus-visible .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-key-focus, var(--select-icon-color-key-focus)))}:host([open]) #button:not(:disabled,.is-disabled){color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default-open, var(--select-font-color-default-open)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default-open, var(--select-background-color-default-open)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-default-open, var(--select-border-color-default-open)))}:host([open]) #button:not(:disabled,.is-disabled) .disclosure-icon,:host([open]) #button:not(:disabled,.is-disabled) .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-default-open, var(--select-icon-color-default-open)))}:host([invalid]) #button:not(:disabled,.is-disabled){border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-default, var(--select-border-color-error-default)))}:host([invalid]) #button:not(:disabled,.is-disabled) .validation-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-error, var(--select-icon-color-error)))}:host([invalid]) #button:not(:disabled,.is-disabled):active{border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-active, var(--select-border-color-error-active)))}:host([invalid][open]) #button:not(:disabled,.is-disabled){border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-default-open, var(--select-border-color-error-default-open)))}:host([invalid]) #button:not(:disabled,.is-disabled):focus-visible{border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-key-focus, var(--select-border-color-error-key-focus)))}:host([pending]) #button .disclosure-icon,:host([pending]) #button .clear-icon{color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-icon-color-disabled, var(--select-icon-color-disabled)))}.icon{flex-shrink:0}.label{white-space:nowrap;font-size:var(--luzmo-select-font-size, var(--select-font-size));line-height:var(--luzmo-select-button-line-height, var(--select-button-line-height));font-weight:var(--luzmo-select-font-weight, var(--select-font-weight));text-overflow:ellipsis;text-align:start;flex:auto;overflow:hidden}.label.placeholder{font-weight:var(--luzmo-select-placeholder-font-weight, var(--select-font-weight));font-style:var(--luzmo-select-placeholder-font-style, var(--select-placeholder-font-style));transition:color var(--luzmo-select-animation-duration, var(--select-animation-duration)) ease-in-out;color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)))}.label.placeholder:active{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-active, var(--select-font-color-active)))}.clear-icon,.disclosure-icon{vertical-align:top;transition:color var(--luzmo-select-animation-duration, var(--select-animation-duration)) ease-out;color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-default, var(--select-icon-color-default)));flex-shrink:0;display:inline-block;position:relative}.disclosure-icon{margin-inline-start:var(--luzmo-select-spacing-icon-to-disclosure-icon, var(--select-spacing-icon-to-disclosure-icon))}.clear-icon{margin-inline-start:var(--luzmo-select-spacing-icon-to-clear-icon, var(--select-spacing-icon-to-clear-icon))}.disclosure-icon:active{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-active, var(--select-icon-color-active)))}luzmo-progress-circle,.validation-icon{margin-inline-start:var(--luzmo-select-spacing-text-to-icon, var(--select-spacing-text-to-icon))}.icon-container{display:flex;position:relative;height:100%;align-items:center;font-size:var(--luzmo-select-disclosure-icon-size, var(--select-disclosure-icon-size))}.icon-container.disclosure-icon{margin-inline-end:0}.label~.disclosure-icon,.label~.clear-icon{margin-inline-start:var(--luzmo-select-spacing-text-to-icon, var(--select-spacing-text-to-icon))}:host([quiet]) #button{inline-size:auto;min-inline-size:0;padding-inline:var(--luzmo-select-spacing-edge-to-text-quiet, var(--select-spacing-edge-to-text-quiet));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)));background-color:initial;background-color:var(--highcontrast-select-background-color, transparent);border:none;border-radius:0;box-shadow:none;margin-block-start:calc(var(--luzmo-select-spacing-label-to-select-quiet, var(--select-spacing-label-to-select-quiet)) + 1px)}:host([quiet]) #button.label-inline{margin-block-start:0}:host([quiet]) #button .disclosure-icon{margin-inline-end:var(--luzmo-select-spacing-edge-to-disclosure-icon-quiet, var(--select-spacing-edge-to-disclosure-icon-quiet))}:host([quiet]) #button:after{block-size:auto;inline-size:auto;border:none}@media (hover: hover){#button:hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-hover, var(--select-font-color-hover)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-hover, var(--select-background-color-hover)));border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-hover, var(--select-border-color-hover)))}#button:hover .disclosure-icon,#button:hover .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-hover, var(--select-icon-color-hover)))}#button:hover .clear-icon:hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-clear-icon-color-hover, var(--select-icon-color-focus)))}:host([open]):not([quiet]) #button:not(:disabled,.is-disabled):hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-hover-open, var(--select-font-color-hover-open)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-hover-open, var(--select-background-color-hover-open)));border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-hover-open, var(--select-border-color-hover-open)))}:host([open]) #button:not(:disabled,.is-disabled):hover .disclosure-icon,:host([open]) #button:not(:disabled,.is-disabled):hover .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-hover-open, var(--select-icon-color-hover-open)))}:host([invalid]) #button:not(:disabled,.is-disabled):hover{border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-error-hover, var(--select-border-color-error-hover)))}:host([invalid][open]) #button:not(:disabled,.is-disabled):hover{border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-error-hover-open, var(--select-border-color-error-hover-open)))}.label.placeholder:hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-hover, var(--select-font-color-hover)))}:host([quiet]) #button:hover{background-color:initial;background-color:var(--highcontrast-select-background-color, transparent)!important}}:host([quiet]) #button:focus-visible{background-color:initial;background-color:var(--highcontrast-select-background-color, transparent)}:host([quiet]) #button:focus-visible:after{box-shadow:0 var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width)) 0 0 var(--highcontrast-select-focus-indicator-color, var(--luzmo-select-focus-indicator-color, var(--select-focus-indicator-color)));margin:calc((var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-button-border-width, var(--select-button-border-width))) * -1) 0;border:none;border-radius:0}:host([quiet][open]) #button,:host([quiet][disabled]) #button#button,:host([quiet]) #button#button:disabled,:host([quiet]) #button:active{background-color:initial;background-color:var(--highcontrast-select-background-color, transparent)}.label-inline{vertical-align:top;display:inline-flex}:host([disabled]) #button,#button:disabled{cursor:default;background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-disabled, var(--select-background-color-disabled)));border-color:#0000;border-color:var(--highcontrast-select-border-color-disabled, transparent);color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-font-color-disabled, var(--select-font-color-disabled)))}:host([disabled]) #button .icon,:host([disabled]) #button .disclosure-icon,:host([disabled]) #button .clear-icon,:host([disabled]) #button .validation-icon,#button:disabled .icon,#button:disabled .disclosure-icon,#button:disabled .clear-icon,#button:disabled .validation-icon{color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-icon-color-disabled, var(--select-icon-color-disabled)))}:host([disabled]) #button .label.placeholder,#button:disabled .label.placeholder{color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-font-color-disabled, var(--select-font-color-disabled)))}#popover{max-width:var(--luzmo-select-popover-max-width, var(--select-popover-max-width));min-width:var(--luzmo-select-popover-min-width, var(--select-popover-min-width));width:var(--luzmo-select-popover-width, var(--select-popover-width))}#search-container{flex:0 0 auto;display:flex;position:relative;border-bottom:var(--luzmo-select-search-container-border-bottom-width, var(--select-search-container-border-bottom-width)) solid var(--luzmo-select-search-container-border-bottom-color, var(--select-search-container-border-bottom-color))}#search-icon{position:absolute;left:var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text));color:var(--luzmo-select-search-icon-color, var(--select-search-icon-color));top:0;bottom:0;pointer-events:none}#search:focus-within+#search-icon,#search:focus+#search-icon{color:var(--luzmo-select-search-icon-color-focus, var(--select-search-icon-color-focus))}#search{width:100%;box-sizing:border-box;color:var(--luzmo-select-search-color, var(--select-search-color));height:var(--luzmo-select-button-block-size, var(--select-button-block-size));padding-left:calc(var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text)) + var(--luzmo-select-spacing-search-icon-to-text, var(--select-spacing-search-icon-to-text)) + var(--luzmo-select-font-size, var(--select-font-size)));padding-right:var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text));font-size:var(--luzmo-select-font-size, var(--select-font-size));line-height:var(--luzmo-select-button-line-height, var(--select-button-line-height));font-weight:var(--luzmo-select-font-weight, var(--select-font-weight));border:var(--luzmo-select-search-input-border-bottom-width, var(--select-search-input-border-bottom-width)) solid var(--luzmo-select-search-input-border-bottom-color, var(--select-search-input-border-bottom-color));outline:none}#no-results{color:var(--luzmo-select-no-results-color, var(--select-no-results-color));font-style:var(--luzmo-select-no-results-font-style, var(--select-no-results-font-style));height:var(--luzmo-select-no-results-height, var(--select-no-results-height));padding-inline:var(--luzmo-select-no-results-spacing-edge-to-text, var(--select-no-results-spacing-edge-to-text));display:flex;align-items:center}:host{--select-popover-max-width: 300px;--select-popover-min-width: 160px;--select-font-family: var(--luzmo-font-family);--select-font-size: var(--luzmo-font-size);--select-spacing-search-icon-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-search-icon-color: var(--luzmo-disabled-color);--select-search-icon-color-focus: var(--luzmo-font-color);--select-search-color: var(--luzmo-font-color);--select-search-container-border-bottom-width: var(--luzmo-border-width);--select-search-container-border-bottom-color: var(--luzmo-border-color);--select-search-input-border-bottom-width: var(--luzmo-border-width);--select-search-input-border-bottom-color: transparent;--select-background-color-default: var(--luzmo-background-color);--select-background-color-default-open: var(--luzmo-background-color-hover);--select-background-color-active: var(--luzmo-background-color-down);--select-background-color-hover: var(--luzmo-background-color-hover);--select-background-color-hover-open: var(--luzmo-background-color-down);--select-background-color-key-focus: var(--luzmo-background-color-down);--select-border-color-default: var(--luzmo-border-color);--select-border-color-default-open: var(--luzmo-border-color-hover);--select-border-color-hover: var(--luzmo-border-color);--select-border-color-hover-open: var(--luzmo-border-color-hover);--select-border-color-active: var(--luzmo-border-color);--select-border-color-key-focus: var(--luzmo-border-color);--select-button-border-width: var(--luzmo-border-width);--select-font-weight: var(--luzmo-font-weight);--select-placeholder-font-style: var(--luzmo-font-style);--select-button-line-height: var(--luzmo-line-height);--select-button-box-shadow: 0px 1px 3px 0px rgba(var(--luzmo-border-color-rgb), .06);--select-button-block-size: var(--luzmo-component-height);--select-button-border-radius: var(--luzmo-border-radius);--select-button-border-radius-reset: 0;--select-spacing-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon-inline-end: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-icon-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-icon-to-clear-icon: var( --select-spacing-icon-to-disclosure-icon );--select-spacing-edge-to-text-quiet: 0px;--select-spacing-label-to-select: 0px;--select-spacing-label-to-select-quiet: calc( -1 * var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-edge-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-edge-to-disclosure-icon-quiet: 0px;--select-animation-duration: var(--luzmo-animation-duration);--select-font-color-default: var(--luzmo-font-color);--select-font-color-default-open: var(--luzmo-font-color-hover);--select-font-color-hover: var(--luzmo-font-color-hover);--select-font-color-hover-open: var(--luzmo-font-color-down);--select-font-color-active: var(--luzmo-font-color-focus);--select-font-color-key-focus: var(--luzmo-font-color-focus);--select-icon-color-default: var(--luzmo-font-color);--select-icon-color-default-open: var(--luzmo-font-color-hover);--select-icon-color-hover: var(--luzmo-font-color-hover);--select-icon-color-hover-open: var(--luzmo-font-color-hover);--select-icon-color-active: var(--luzmo-font-color-focus);--select-icon-color-key-focus: var(--luzmo-font-color-focus);--select-border-color-error-default: var(--luzmo-negative-color);--select-border-color-error-default-open: var(--luzmo-negative-color-down);--select-border-color-error-hover: var(--luzmo-negative-color-hover);--select-border-color-error-hover-open: var(--luzmo-negative-color-down);--select-border-color-error-active: var(--luzmo-negative-color-down);--select-border-color-error-key-focus: var(--luzmo-negative-color-focus);--select-icon-color-error: var(--luzmo-negative-color);--select-background-color-disabled: var(--luzmo-background-color-disabled);--select-font-color-disabled: var(--luzmo-disabled-color);--select-icon-color-disabled: var(--luzmo-disabled-color);--select-focus-indicator-gap: var(--luzmo-indicator-gap);--select-focus-indicator-width: var(--luzmo-indicator-width);--select-focus-indicator-color: var(--luzmo-indicator-color);--select-disclosure-icon-size: var(--luzmo-font-size-s);--select-no-results-height: var(--select-button-block-size);--select-no-results-color: var(--select-font-color-disabled);--select-no-results-font-style: italic;--select-no-results-spacing-edge-to-text: var(--select-spacing-edge-to-text)}:host([size=s]){--select-button-block-size: var(--luzmo-component-height-s);--select-font-size: var(--luzmo-font-size-s);--select-popover-max-width: 280px;--select-popover-min-width: 140px;--select-spacing-search-icon-to-text: var(--luzmo-spacing-3);--select-spacing-edge-to-text: var(--luzmo-spacing-3);--select-spacing-text-to-icon: var(--luzmo-spacing-3);--select-spacing-text-to-icon-inline-end: var(--luzmo-spacing-3);--select-spacing-icon-to-disclosure-icon: var(--luzmo-spacing-3);--select-spacing-label-to-select-quiet: calc(-1 * var(--luzmo-spacing-3));--select-spacing-edge-to-disclosure-icon: var(--luzmo-spacing-3);--select-disclosure-icon-size: var(--luzmo-font-size-s)}:host([size=l]){--select-button-block-size: var(--luzmo-component-height-l);--select-font-size: var(--luzmo-font-size-l);--select-popover-max-width: 360px;--select-popover-min-width: 220px;--select-spacing-search-icon-to-text: var(--luzmo-spacing-4);--select-spacing-edge-to-text: var(--luzmo-spacing-4);--select-spacing-text-to-icon: var(--luzmo-spacing-4);--select-spacing-text-to-icon-inline-end: var(--luzmo-spacing-4);--select-spacing-icon-to-disclosure-icon: var(--luzmo-spacing-4);--select-spacing-label-to-select-quiet: calc(-1 * var(--luzmo-spacing-4));--select-spacing-edge-to-disclosure-icon: var(--luzmo-spacing-4);--select-disclosure-icon-size: var(--luzmo-font-size)}:host([size=xl]){--select-button-block-size: var(--luzmo-component-height-xl);--select-font-size: var(--luzmo-font-size-xl);--select-popover-max-width: 400px;--select-popover-min-width: 260px;--select-spacing-search-icon-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-edge-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon-inline-end: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-icon-to-disclosure-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-label-to-select-quiet: calc( -1 * var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-edge-to-disclosure-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-disclosure-icon-size: var(--luzmo-font-size-l)}:host([variant=highlight]) ::slotted(luzmo-option[selected]){--option-highlight-label-content-color: var(--luzmo-primary-inverse-color);--option-label-icon-color-default: var(--luzmo-primary-inverse-color);--menu-checkmark-display: var(--menu-checkmark-display-hidden);padding-inline-start:var(--luzmo-option-label-inline-edge-to-content, var(--option-label-inline-edge-to-content));background-color:var(--luzmo-option-highlight-label-background-color, var(--option-highlight-label-background-color, var(--luzmo-border-color)))}:host{display:inline-flex;vertical-align:top;max-inline-size:100%;inline-size:var(--luzmo-select-inline-size, var(--select-inline-size));min-inline-size:calc(var(--select-minimum-width-multiplier) * var(--luzmo-select-block-size, var(--select-block-size)))}:host([quiet]){width:auto;min-width:0}:host([disabled]){pointer-events:none}#button{width:100%;min-width:100%;max-width:100%}#icon:not([hidden]){display:inline-flex}:host([readonly]) #button{-webkit-user-select:inherit;user-select:inherit}.validation-icon{flex-shrink:0}luzmo-overlay{pointer-events:none}luzmo-options{pointer-events:initial}:host>#no-results,:host>luzmo-options{display:none}:host([focused]:not([quiet])) #button #label.placeholder{color:var(--select-placeholder-text-color-key-focus, var(--alias-placeholder-text-color-hover))}.visually-hidden{border:0;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}luzmo-overlay:not(:defined){display:none}#button.remove-focus-ring-safari-hack:focus-visible{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default, var(--select-background-color-default)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-default, var(--select-border-color-default)));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)))}#button.remove-focus-ring-safari-hack:after{border:none}#button.remove-focus-ring-safari-hack:focus-visible:after{box-shadow:none}#button.remove-focus-ring-safari-hack:active{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default, var(--select-background-color-default)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-default, var(--select-border-color-default)));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)))}';
|
|
46
|
-
var __defProp = Object.defineProperty;
|
|
47
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
48
|
-
var result = void 0;
|
|
49
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
50
|
-
if (decorator = decorators[i])
|
|
51
|
-
result = decorator(target, key, result) || result;
|
|
52
|
-
if (result) __defProp(target, key, result);
|
|
53
|
-
return result;
|
|
54
|
-
};
|
|
55
|
-
const angleIcon = () => lit.html`
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../options/index.cjs"),h=require("../luzmo-icons-CtA-TJPd.cjs"),o=require("../base-Cy0MQrPT.cjs"),y=require("../state-vf0PJN3_.cjs"),m=require("../query-BL-TJj7K.cjs"),D=require("../class-map-D-Y-hsN5.cjs"),z=require("../if-defined-DaXWqfzc.cjs"),f=require("../strategies-C6HsQpU2.cjs"),F=require("../focusable-B_KwfEec.cjs"),V=require("../dependency-manger-uthev62E.cjs"),A=require("../pending-state-bJr-nEJl.cjs"),R=require("../sized-mixin-WPHH0a_D.cjs");require("../icon/index.cjs");require("../overlay/index.cjs");require("../popover/index.cjs");require("../progress-circle/index.cjs");require("../tooltip/index.cjs");const K=(d,e)=>{let t=getComputedStyle(d).getPropertyValue(e);for(;!t&&d.parentElement;)d=d.parentElement,t=getComputedStyle(d).getPropertyValue(e);return t.trim()},N=':host{font-family:var(--luzmo-select-font-family, var(--select-font-family));font-size:var(--luzmo-select-font-size, var(--select-font-size))}#button{cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--luzmo-button-font-family, var(--luzmo-font-family));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--luzmo-button-line-height, var(--luzmo-line-height, 1.3));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,border-color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,box-shadow var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;position:relative;overflow:visible}#button::-moz-focus-inner{border-style:none;padding:0}#button:focus{outline:none}#icon{margin-inline-end:var(--luzmo-select-spacing-text-to-icon, var(--select-spacing-text-to-icon));font-size:var(--luzmo-select-font-size, var(--select-font-size))}@media (forced-colors: active){:host{--highcontrast-select-focus-indicator-color: Highlight;--highcontrast-select-border-color-default: ButtonBorder;--highcontrast-select-border-color-hover: Highlight;--highcontrast-select-border-color-disabled: GrayText;--highcontrast-select-content-color-default: ButtonText;--highcontrast-select-content-color-disabled: GrayText;--highcontrast-select-background-color: ButtonFace}#button:focus-visible{--highcontrast-select-border-color-hover: ButtonText}#button .label,#button:after{forced-color-adjust:none}}#button{box-sizing:border-box;max-inline-size:100%;min-inline-size:calc(var(--select-minimum-width-multiplier) * var(--luzmo-select-button-block-size, var(--select-button-block-size)));block-size:var(--luzmo-select-button-block-size, var(--select-button-block-size));border-width:var(--luzmo-select-button-border-width, var(--select-button-border-width));border-radius:var(--luzmo-select-button-border-radius, var(--select-button-border-radius));box-shadow:var(--luzmo-select-button-box-shadow, var(--select-button-box-shadow));transition:background-color var(--luzmo-select-animation-duration, var(--select-animation-duration)),box-shadow var(--luzmo-select-animation-duration, var(--select-animation-duration)),border-color var(--luzmo-select-animation-duration, var(--select-animation-duration)) ease-in-out;color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default, var(--select-background-color-default)));border-style:solid;border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-default, var(--select-border-color-default)));margin-block-start:var(--luzmo-select-spacing-label-to-select, var(--select-spacing-label-to-select));padding-block:0;padding-inline-start:var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text));padding-inline-end:var(--luzmo-select-spacing-edge-to-disclosure-icon, var(--select-spacing-edge-to-disclosure-icon));display:flex}#button:after{pointer-events:none;content:"";block-size:calc(100% + var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) * 2 + var(--luzmo-select-button-border-width, var(--select-button-border-width)) * 2);inline-size:calc(100% + var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) * 2 + var(--luzmo-select-button-border-width, var(--select-button-border-width)) * 2);border-style:solid;border-width:var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width));border-radius:calc(var(--luzmo-select-button-border-radius, var(--select-button-border-radius)) + var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-button-border-width, var(--select-button-border-width)));border-color:#0000;margin-block-start:calc((var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width)) + var(--luzmo-select-button-border-width, var(--select-button-border-width))) * -1);margin-inline-start:calc((var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width)) + var(--luzmo-select-button-border-width, var(--select-button-border-width))) * -1);position:absolute;inset-block:0;inset-inline:0}#button:active{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-active, var(--select-background-color-active)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-active, var(--select-border-color-active)))}#button:active:after{border-color:#0000}#button.placeholder:active .label{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-active, var(--select-font-color-active)))}#button:focus-visible{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-key-focus, var(--select-background-color-key-focus)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-key-focus, var(--select-border-color-key-focus)));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-key-focus, var(--select-font-color-key-focus)));outline:none}#button:focus-visible:after{border-color:var(--highcontrast-select-focus-indicator-color, var(--luzmo-select-focus-indicator-color, var(--select-focus-indicator-color)))}#button.placeholder:focus-visible{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-key-focus, var(--select-font-color-key-focus)))}#button:focus-visible .disclosure-icon,#button:focus-visible .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-key-focus, var(--select-icon-color-key-focus)))}:host([open]) #button:not(:disabled,.is-disabled){color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default-open, var(--select-font-color-default-open)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default-open, var(--select-background-color-default-open)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-default-open, var(--select-border-color-default-open)))}:host([open]) #button:not(:disabled,.is-disabled) .disclosure-icon,:host([open]) #button:not(:disabled,.is-disabled) .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-default-open, var(--select-icon-color-default-open)))}:host([invalid]) #button:not(:disabled,.is-disabled){border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-default, var(--select-border-color-error-default)))}:host([invalid]) #button:not(:disabled,.is-disabled) .validation-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-error, var(--select-icon-color-error)))}:host([invalid]) #button:not(:disabled,.is-disabled):active{border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-active, var(--select-border-color-error-active)))}:host([invalid][open]) #button:not(:disabled,.is-disabled){border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-default-open, var(--select-border-color-error-default-open)))}:host([invalid]) #button:not(:disabled,.is-disabled):focus-visible{border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-error-key-focus, var(--select-border-color-error-key-focus)))}:host([pending]) #button .disclosure-icon,:host([pending]) #button .clear-icon{color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-icon-color-disabled, var(--select-icon-color-disabled)))}.icon{flex-shrink:0}.label{white-space:nowrap;font-size:var(--luzmo-select-font-size, var(--select-font-size));line-height:var(--luzmo-select-button-line-height, var(--select-button-line-height));font-weight:var(--luzmo-select-font-weight, var(--select-font-weight));text-overflow:ellipsis;text-align:start;flex:auto;overflow:hidden}.label.placeholder{font-weight:var(--luzmo-select-placeholder-font-weight, var(--select-font-weight));font-style:var(--luzmo-select-placeholder-font-style, var(--select-placeholder-font-style));transition:color var(--luzmo-select-animation-duration, var(--select-animation-duration)) ease-in-out;color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)))}.label.placeholder:active{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-active, var(--select-font-color-active)))}.clear-icon,.disclosure-icon{vertical-align:top;transition:color var(--luzmo-select-animation-duration, var(--select-animation-duration)) ease-out;color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-default, var(--select-icon-color-default)));flex-shrink:0;display:inline-block;position:relative}.disclosure-icon{margin-inline-start:var(--luzmo-select-spacing-icon-to-disclosure-icon, var(--select-spacing-icon-to-disclosure-icon))}.clear-icon{margin-inline-start:var(--luzmo-select-spacing-icon-to-clear-icon, var(--select-spacing-icon-to-clear-icon))}.disclosure-icon:active{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-active, var(--select-icon-color-active)))}luzmo-progress-circle,.validation-icon{margin-inline-start:var(--luzmo-select-spacing-text-to-icon, var(--select-spacing-text-to-icon))}.icon-container{display:flex;position:relative;height:100%;align-items:center;font-size:var(--luzmo-select-disclosure-icon-size, var(--select-disclosure-icon-size))}.icon-container.disclosure-icon{margin-inline-end:0}.label~.disclosure-icon,.label~.clear-icon{margin-inline-start:var(--luzmo-select-spacing-text-to-icon, var(--select-spacing-text-to-icon))}:host([quiet]) #button{inline-size:auto;min-inline-size:0;padding-inline:var(--luzmo-select-spacing-edge-to-text-quiet, var(--select-spacing-edge-to-text-quiet));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)));background-color:initial;background-color:var(--highcontrast-select-background-color, transparent);border:none;border-radius:0;box-shadow:none;margin-block-start:calc(var(--luzmo-select-spacing-label-to-select-quiet, var(--select-spacing-label-to-select-quiet)) + 1px)}:host([quiet]) #button.label-inline{margin-block-start:0}:host([quiet]) #button .disclosure-icon{margin-inline-end:var(--luzmo-select-spacing-edge-to-disclosure-icon-quiet, var(--select-spacing-edge-to-disclosure-icon-quiet))}:host([quiet]) #button:after{block-size:auto;inline-size:auto;border:none}@media (hover: hover){#button:hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-hover, var(--select-font-color-hover)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-hover, var(--select-background-color-hover)));border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-hover, var(--select-border-color-hover)))}#button:hover .disclosure-icon,#button:hover .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-hover, var(--select-icon-color-hover)))}#button:hover .clear-icon:hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-clear-icon-color-hover, var(--select-icon-color-focus)))}:host([open]):not([quiet]) #button:not(:disabled,.is-disabled):hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-hover-open, var(--select-font-color-hover-open)));background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-hover-open, var(--select-background-color-hover-open)));border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-hover-open, var(--select-border-color-hover-open)))}:host([open]) #button:not(:disabled,.is-disabled):hover .disclosure-icon,:host([open]) #button:not(:disabled,.is-disabled):hover .clear-icon{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-icon-color-hover-open, var(--select-icon-color-hover-open)))}:host([invalid]) #button:not(:disabled,.is-disabled):hover{border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-error-hover, var(--select-border-color-error-hover)))}:host([invalid][open]) #button:not(:disabled,.is-disabled):hover{border-color:var(--highcontrast-select-border-color-hover, var(--luzmo-select-border-color-error-hover-open, var(--select-border-color-error-hover-open)))}.label.placeholder:hover{color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-hover, var(--select-font-color-hover)))}:host([quiet]) #button:hover{background-color:initial;background-color:var(--highcontrast-select-background-color, transparent)!important}}:host([quiet]) #button:focus-visible{background-color:initial;background-color:var(--highcontrast-select-background-color, transparent)}:host([quiet]) #button:focus-visible:after{box-shadow:0 var(--luzmo-select-focus-indicator-width, var(--select-focus-indicator-width)) 0 0 var(--highcontrast-select-focus-indicator-color, var(--luzmo-select-focus-indicator-color, var(--select-focus-indicator-color)));margin:calc((var(--luzmo-select-focus-indicator-gap, var(--select-focus-indicator-gap)) + var(--luzmo-select-button-border-width, var(--select-button-border-width))) * -1) 0;border:none;border-radius:0}:host([quiet][open]) #button,:host([quiet][disabled]) #button#button,:host([quiet]) #button#button:disabled,:host([quiet]) #button:active{background-color:initial;background-color:var(--highcontrast-select-background-color, transparent)}.label-inline{vertical-align:top;display:inline-flex}:host([disabled]) #button,#button:disabled{cursor:default;background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-disabled, var(--select-background-color-disabled)));border-color:#0000;border-color:var(--highcontrast-select-border-color-disabled, transparent);color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-font-color-disabled, var(--select-font-color-disabled)))}:host([disabled]) #button .icon,:host([disabled]) #button .disclosure-icon,:host([disabled]) #button .clear-icon,:host([disabled]) #button .validation-icon,#button:disabled .icon,#button:disabled .disclosure-icon,#button:disabled .clear-icon,#button:disabled .validation-icon{color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-icon-color-disabled, var(--select-icon-color-disabled)))}:host([disabled]) #button .label.placeholder,#button:disabled .label.placeholder{color:var(--highcontrast-select-content-color-disabled, var(--luzmo-select-font-color-disabled, var(--select-font-color-disabled)))}#popover{max-width:var(--luzmo-select-popover-max-width, var(--select-popover-max-width));min-width:var(--luzmo-select-popover-min-width, var(--select-popover-min-width));width:var(--luzmo-select-popover-width, var(--select-popover-width))}#search-container{flex:0 0 auto;display:flex;position:relative;border-bottom:var(--luzmo-select-search-container-border-bottom-width, var(--select-search-container-border-bottom-width)) solid var(--luzmo-select-search-container-border-bottom-color, var(--select-search-container-border-bottom-color))}#search-icon{position:absolute;left:var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text));color:var(--luzmo-select-search-icon-color, var(--select-search-icon-color));top:0;bottom:0;pointer-events:none}#search:focus-within+#search-icon,#search:focus+#search-icon{color:var(--luzmo-select-search-icon-color-focus, var(--select-search-icon-color-focus))}#search{width:100%;box-sizing:border-box;color:var(--luzmo-select-search-color, var(--select-search-color));height:var(--luzmo-select-button-block-size, var(--select-button-block-size));padding-left:calc(var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text)) + var(--luzmo-select-spacing-search-icon-to-text, var(--select-spacing-search-icon-to-text)) + var(--luzmo-select-font-size, var(--select-font-size)));padding-right:var(--luzmo-select-spacing-edge-to-text, var(--select-spacing-edge-to-text));font-size:var(--luzmo-select-font-size, var(--select-font-size));line-height:var(--luzmo-select-button-line-height, var(--select-button-line-height));font-weight:var(--luzmo-select-font-weight, var(--select-font-weight));border:var(--luzmo-select-search-input-border-bottom-width, var(--select-search-input-border-bottom-width)) solid var(--luzmo-select-search-input-border-bottom-color, var(--select-search-input-border-bottom-color));outline:none}#no-results{color:var(--luzmo-select-no-results-color, var(--select-no-results-color));font-style:var(--luzmo-select-no-results-font-style, var(--select-no-results-font-style));height:var(--luzmo-select-no-results-height, var(--select-no-results-height));padding-inline:var(--luzmo-select-no-results-spacing-edge-to-text, var(--select-no-results-spacing-edge-to-text));display:flex;align-items:center}:host{--select-popover-max-width: 300px;--select-popover-min-width: 160px;--select-font-family: var(--luzmo-font-family);--select-font-size: var(--luzmo-font-size);--select-spacing-search-icon-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-search-icon-color: var(--luzmo-disabled-color);--select-search-icon-color-focus: var(--luzmo-font-color);--select-search-color: var(--luzmo-font-color);--select-search-container-border-bottom-width: var(--luzmo-border-width);--select-search-container-border-bottom-color: var(--luzmo-border-color);--select-search-input-border-bottom-width: var(--luzmo-border-width);--select-search-input-border-bottom-color: transparent;--select-background-color-default: var(--luzmo-background-color);--select-background-color-default-open: var(--luzmo-background-color-hover);--select-background-color-active: var(--luzmo-background-color-down);--select-background-color-hover: var(--luzmo-background-color-hover);--select-background-color-hover-open: var(--luzmo-background-color-down);--select-background-color-key-focus: var(--luzmo-background-color-down);--select-border-color-default: var(--luzmo-border-color);--select-border-color-default-open: var(--luzmo-border-color-hover);--select-border-color-hover: var(--luzmo-border-color);--select-border-color-hover-open: var(--luzmo-border-color-hover);--select-border-color-active: var(--luzmo-border-color);--select-border-color-key-focus: var(--luzmo-border-color);--select-button-border-width: var(--luzmo-border-width);--select-font-weight: var(--luzmo-font-weight);--select-placeholder-font-style: var(--luzmo-font-style);--select-button-line-height: var(--luzmo-line-height);--select-button-box-shadow: 0px 1px 3px 0px rgba(var(--luzmo-border-color-rgb), .06);--select-button-block-size: var(--luzmo-component-height);--select-button-border-radius: var(--luzmo-border-radius);--select-button-border-radius-reset: 0;--select-spacing-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon-inline-end: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-icon-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-icon-to-clear-icon: var( --select-spacing-icon-to-disclosure-icon );--select-spacing-edge-to-text-quiet: 0px;--select-spacing-label-to-select: 0px;--select-spacing-label-to-select-quiet: calc( -1 * var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-edge-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--select-spacing-edge-to-disclosure-icon-quiet: 0px;--select-animation-duration: var(--luzmo-animation-duration);--select-font-color-default: var(--luzmo-font-color);--select-font-color-default-open: var(--luzmo-font-color-hover);--select-font-color-hover: var(--luzmo-font-color-hover);--select-font-color-hover-open: var(--luzmo-font-color-down);--select-font-color-active: var(--luzmo-font-color-focus);--select-font-color-key-focus: var(--luzmo-font-color-focus);--select-icon-color-default: var(--luzmo-font-color);--select-icon-color-default-open: var(--luzmo-font-color-hover);--select-icon-color-hover: var(--luzmo-font-color-hover);--select-icon-color-hover-open: var(--luzmo-font-color-hover);--select-icon-color-active: var(--luzmo-font-color-focus);--select-icon-color-key-focus: var(--luzmo-font-color-focus);--select-border-color-error-default: var(--luzmo-negative-color);--select-border-color-error-default-open: var(--luzmo-negative-color-down);--select-border-color-error-hover: var(--luzmo-negative-color-hover);--select-border-color-error-hover-open: var(--luzmo-negative-color-down);--select-border-color-error-active: var(--luzmo-negative-color-down);--select-border-color-error-key-focus: var(--luzmo-negative-color-focus);--select-icon-color-error: var(--luzmo-negative-color);--select-background-color-disabled: var(--luzmo-background-color-disabled);--select-font-color-disabled: var(--luzmo-disabled-color);--select-icon-color-disabled: var(--luzmo-disabled-color);--select-focus-indicator-gap: var(--luzmo-indicator-gap);--select-focus-indicator-width: var(--luzmo-indicator-width);--select-focus-indicator-color: var(--luzmo-indicator-color);--select-disclosure-icon-size: var(--luzmo-font-size-s);--select-no-results-height: var(--select-button-block-size);--select-no-results-color: var(--select-font-color-disabled);--select-no-results-font-style: italic;--select-no-results-spacing-edge-to-text: var(--select-spacing-edge-to-text)}:host([size=s]){--select-button-block-size: var(--luzmo-component-height-s);--select-font-size: var(--luzmo-font-size-s);--select-popover-max-width: 280px;--select-popover-min-width: 140px;--select-spacing-search-icon-to-text: var(--luzmo-spacing-3);--select-spacing-edge-to-text: var(--luzmo-spacing-3);--select-spacing-text-to-icon: var(--luzmo-spacing-3);--select-spacing-text-to-icon-inline-end: var(--luzmo-spacing-3);--select-spacing-icon-to-disclosure-icon: var(--luzmo-spacing-3);--select-spacing-label-to-select-quiet: calc(-1 * var(--luzmo-spacing-3));--select-spacing-edge-to-disclosure-icon: var(--luzmo-spacing-3);--select-disclosure-icon-size: var(--luzmo-font-size-s)}:host([size=l]){--select-button-block-size: var(--luzmo-component-height-l);--select-font-size: var(--luzmo-font-size-l);--select-popover-max-width: 360px;--select-popover-min-width: 220px;--select-spacing-search-icon-to-text: var(--luzmo-spacing-4);--select-spacing-edge-to-text: var(--luzmo-spacing-4);--select-spacing-text-to-icon: var(--luzmo-spacing-4);--select-spacing-text-to-icon-inline-end: var(--luzmo-spacing-4);--select-spacing-icon-to-disclosure-icon: var(--luzmo-spacing-4);--select-spacing-label-to-select-quiet: calc(-1 * var(--luzmo-spacing-4));--select-spacing-edge-to-disclosure-icon: var(--luzmo-spacing-4);--select-disclosure-icon-size: var(--luzmo-font-size)}:host([size=xl]){--select-button-block-size: var(--luzmo-component-height-xl);--select-font-size: var(--luzmo-font-size-xl);--select-popover-max-width: 400px;--select-popover-min-width: 260px;--select-spacing-search-icon-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-edge-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-text-to-icon-inline-end: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-icon-to-disclosure-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-label-to-select-quiet: calc( -1 * var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-spacing-edge-to-disclosure-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--select-disclosure-icon-size: var(--luzmo-font-size-l)}:host([variant=highlight]) ::slotted(luzmo-option[selected]){--option-highlight-label-content-color: var(--luzmo-primary-inverse-color);--option-label-icon-color-default: var(--luzmo-primary-inverse-color);--menu-checkmark-display: var(--menu-checkmark-display-hidden);padding-inline-start:var(--luzmo-option-label-inline-edge-to-content, var(--option-label-inline-edge-to-content));background-color:var(--luzmo-option-highlight-label-background-color, var(--option-highlight-label-background-color, var(--luzmo-border-color)))}:host{display:inline-flex;vertical-align:top;max-inline-size:100%;inline-size:var(--luzmo-select-inline-size, var(--select-inline-size));min-inline-size:calc(var(--select-minimum-width-multiplier) * var(--luzmo-select-block-size, var(--select-block-size)))}:host([quiet]){width:auto;min-width:0}:host([disabled]){pointer-events:none}#button{width:100%;min-width:100%;max-width:100%}#icon:not([hidden]){display:inline-flex}:host([readonly]) #button{-webkit-user-select:inherit;user-select:inherit}.validation-icon{flex-shrink:0}luzmo-overlay{pointer-events:none}luzmo-options{pointer-events:initial}:host>#no-results,:host>luzmo-options{display:none}:host([focused]:not([quiet])) #button #label.placeholder{color:var(--select-placeholder-text-color-key-focus, var(--alias-placeholder-text-color-hover))}.visually-hidden{border:0;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}luzmo-overlay:not(:defined){display:none}#button.remove-focus-ring-safari-hack:focus-visible{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default, var(--select-background-color-default)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-default, var(--select-border-color-default)));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)))}#button.remove-focus-ring-safari-hack:after{border:none}#button.remove-focus-ring-safari-hack:focus-visible:after{box-shadow:none}#button.remove-focus-ring-safari-hack:active{background-color:var(--highcontrast-select-background-color, var(--luzmo-select-background-color-default, var(--select-background-color-default)));border-color:var(--highcontrast-select-border-color-default, var(--luzmo-select-border-color-default, var(--select-border-color-default)));color:var(--highcontrast-select-content-color-default, var(--luzmo-select-font-color-default, var(--select-font-color-default)))}';var W=Object.defineProperty,i=(d,e,t,s)=>{for(var a=void 0,r=d.length-1,c;r>=0;r--)(c=d[r])&&(a=c(e,t,a)||a);return a&&W(e,t,a),a};const U=()=>o.x`
|
|
56
19
|
<div class="disclosure-icon icon">
|
|
57
|
-
${
|
|
20
|
+
${h.T3(h.T,{className:"indicator"})}
|
|
58
21
|
</div>
|
|
59
|
-
|
|
60
|
-
const alertIcon = () => lit.html`
|
|
22
|
+
`,H=()=>o.x`
|
|
61
23
|
<div class="icon-container validation-icon icon">
|
|
62
|
-
${
|
|
24
|
+
${h.T3(h.$)}
|
|
63
25
|
</div>
|
|
64
|
-
|
|
65
|
-
const searchIcon = () => lit.html`
|
|
26
|
+
`,j=()=>o.x`
|
|
66
27
|
<div class="icon-container search-icon icon" id="search-icon">
|
|
67
|
-
${
|
|
28
|
+
${h.T3(h.h2)}
|
|
68
29
|
</div>
|
|
69
|
-
|
|
70
|
-
const DESCRIPTION_ID = "select-option-menu";
|
|
71
|
-
const SEARCH_AS_OF_NUM_ITEMS = 20;
|
|
72
|
-
class LuzmoSelect extends sizedMixin.SizedMixin(focusable.Focusable, {
|
|
73
|
-
noDefaultSize: true
|
|
74
|
-
}) {
|
|
75
|
-
constructor() {
|
|
76
|
-
super();
|
|
77
|
-
this.disabled = false;
|
|
78
|
-
this.focused = false;
|
|
79
|
-
this.variant = "checkmarks";
|
|
80
|
-
this.emphasized = false;
|
|
81
|
-
this.invalid = false;
|
|
82
|
-
this.search = "auto";
|
|
83
|
-
this.noWrap = false;
|
|
84
|
-
this.retrieving = false;
|
|
85
|
-
this.pending = false;
|
|
86
|
-
this.clearable = false;
|
|
87
|
-
this.pendingLabel = "Pending";
|
|
88
|
-
this.searchLabel = "Search";
|
|
89
|
-
this.noResultsLabel = "No results";
|
|
90
|
-
this.noDataLabel = "No data";
|
|
91
|
-
this.multipleLabelTemplate = "Selected {count} items";
|
|
92
|
-
this.open = false;
|
|
93
|
-
this.readonly = false;
|
|
94
|
-
this.placement = "bottom-end";
|
|
95
|
-
this.quiet = false;
|
|
96
|
-
this.value = [];
|
|
97
|
-
this.options = [];
|
|
98
|
-
this.selects = "multiple";
|
|
99
|
-
this.dependencyManager = new dependencyManger.DependencyManagerController(this);
|
|
100
|
-
this.isMobile = new strategies.MatchMediaController(this, strategies.IS_MOBILE);
|
|
101
|
-
this.listRole = "listbox";
|
|
102
|
-
this.itemRole = "option";
|
|
103
|
-
this.hasRenderedOverlay = false;
|
|
104
|
-
this._selfManageFocusElement = false;
|
|
105
|
-
this.selectionPromise = Promise.resolve();
|
|
106
|
-
this.enterKeydownOn = null;
|
|
107
|
-
this._selectedOptions = [];
|
|
108
|
-
this.handleSlottableRequest = (_event) => {
|
|
109
|
-
};
|
|
110
|
-
this.renderAngleIcon = () => angleIcon();
|
|
111
|
-
this.renderAlertIcon = () => alertIcon();
|
|
112
|
-
this.handleEnterKeydown = (event) => {
|
|
113
|
-
if (event.code !== "Enter") {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (this.enterKeydownOn) {
|
|
117
|
-
event.preventDefault();
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
this.enterKeydownOn = event.target;
|
|
121
|
-
this.addEventListener(
|
|
122
|
-
"keyup",
|
|
123
|
-
(keyupEvent) => {
|
|
124
|
-
if (keyupEvent.code !== "Enter") {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
this.enterKeydownOn = null;
|
|
128
|
-
},
|
|
129
|
-
{ once: true }
|
|
130
|
-
);
|
|
131
|
-
};
|
|
132
|
-
this.clearValue = (event) => {
|
|
133
|
-
event.preventDefault();
|
|
134
|
-
event.stopPropagation();
|
|
135
|
-
this.value = [];
|
|
136
|
-
if (this.strategy) {
|
|
137
|
-
this.strategy.preventNextToggle = "no";
|
|
138
|
-
}
|
|
139
|
-
this.open = false;
|
|
140
|
-
if (this.strategy) {
|
|
141
|
-
this.strategy.open = false;
|
|
142
|
-
}
|
|
143
|
-
this.dispatchEvent(
|
|
144
|
-
new CustomEvent("change", {
|
|
145
|
-
bubbles: true,
|
|
146
|
-
cancelable: true,
|
|
147
|
-
composed: true,
|
|
148
|
-
detail: {
|
|
149
|
-
value: this.value ?? []
|
|
150
|
-
}
|
|
151
|
-
})
|
|
152
|
-
);
|
|
153
|
-
};
|
|
154
|
-
this.handleKeydown = (event) => {
|
|
155
|
-
var _a, _b;
|
|
156
|
-
const { code } = event;
|
|
157
|
-
if (["Delete", "Backspace"].includes(code)) {
|
|
158
|
-
this.clearValue(event);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
this.focused = true;
|
|
162
|
-
if (!code.startsWith("Arrow") || this.readonly || this.pending) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
if (code === "ArrowUp" || code === "ArrowDown") {
|
|
166
|
-
this.toggle(true);
|
|
167
|
-
event.preventDefault();
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
event.preventDefault();
|
|
171
|
-
if (this.selects === "single") {
|
|
172
|
-
const step = code === "ArrowRight" ? 1 : -1;
|
|
173
|
-
const selectedIndex = this.options.findIndex(
|
|
174
|
-
(option) => {
|
|
175
|
-
var _a2, _b2, _c;
|
|
176
|
-
return ((_a2 = option == null ? void 0 : option.value) == null ? void 0 : _a2.toString()) === ((_c = (_b2 = this.value) == null ? void 0 : _b2[0]) == null ? void 0 : _c.toString());
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
let newIndex = (this.options.length + selectedIndex + step) % this.options.length;
|
|
180
|
-
let availableItems = this.options.length;
|
|
181
|
-
while (((_b = (_a = this.options) == null ? void 0 : _a[newIndex]) == null ? void 0 : _b.disabled) && availableItems) {
|
|
182
|
-
availableItems -= 1;
|
|
183
|
-
newIndex = (this.options.length + newIndex + step) % this.options.length;
|
|
184
|
-
}
|
|
185
|
-
this.value = [this.options[newIndex].value];
|
|
186
|
-
this.dispatchEvent(
|
|
187
|
-
new CustomEvent("change", {
|
|
188
|
-
bubbles: true,
|
|
189
|
-
cancelable: true,
|
|
190
|
-
composed: true,
|
|
191
|
-
detail: {
|
|
192
|
-
value: this.value ?? []
|
|
193
|
-
}
|
|
194
|
-
})
|
|
195
|
-
);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
this.pendingStateController = new pendingState.PendingStateController(this);
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
static get styles() {
|
|
204
|
-
return [lit.unsafeCSS(selectStyles)];
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* @internal
|
|
208
|
-
*/
|
|
209
|
-
get selfManageFocusElement() {
|
|
210
|
-
return this._selfManageFocusElement;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
get focusElement() {
|
|
216
|
-
var _a;
|
|
217
|
-
if (this.open) {
|
|
218
|
-
if (this.search === "on" || this.search === "auto" && ((_a = this.options) == null ? void 0 : _a.length) > SEARCH_AS_OF_NUM_ITEMS) {
|
|
219
|
-
return this.searchInput;
|
|
220
|
-
}
|
|
221
|
-
return this.optionsMenu;
|
|
222
|
-
}
|
|
223
|
-
return this.button;
|
|
224
|
-
}
|
|
225
|
-
forceFocusVisible() {
|
|
226
|
-
if (this.disabled) {
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
this.focused = true;
|
|
230
|
-
}
|
|
231
|
-
click() {
|
|
232
|
-
if (this.disabled) {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
this.toggle();
|
|
236
|
-
}
|
|
237
|
-
handleButtonBlur() {
|
|
238
|
-
this.focused = false;
|
|
239
|
-
}
|
|
240
|
-
focus(options) {
|
|
241
|
-
super.focus(options);
|
|
242
|
-
if (!this.disabled && this.focusElement) {
|
|
243
|
-
this.focused = this.hasVisibleFocusInTree();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
handleHelperFocus() {
|
|
247
|
-
this.focused = true;
|
|
248
|
-
this.button.focus();
|
|
249
|
-
}
|
|
250
|
-
handleChange(event) {
|
|
251
|
-
var _a;
|
|
252
|
-
this.value = ((_a = event == null ? void 0 : event.detail) == null ? void 0 : _a.value) ?? [];
|
|
253
|
-
if (this.strategy) {
|
|
254
|
-
this.strategy.preventNextToggle = "no";
|
|
255
|
-
}
|
|
256
|
-
event.stopPropagation();
|
|
257
|
-
if (!event.cancelable || this.selects === "single") {
|
|
258
|
-
this.open = false;
|
|
259
|
-
if (this.strategy) {
|
|
260
|
-
this.strategy.open = false;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
event.preventDefault();
|
|
264
|
-
this.dispatchEvent(
|
|
265
|
-
new CustomEvent("change", {
|
|
266
|
-
bubbles: true,
|
|
267
|
-
cancelable: true,
|
|
268
|
-
composed: true,
|
|
269
|
-
detail: {
|
|
270
|
-
value: this.value ?? []
|
|
271
|
-
}
|
|
272
|
-
})
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
handleButtonFocus(event) {
|
|
276
|
-
var _a;
|
|
277
|
-
(_a = this.strategy) == null ? void 0 : _a.handleButtonFocus(event);
|
|
278
|
-
}
|
|
279
|
-
toggle(target) {
|
|
280
|
-
if (this.readonly || this.pending) {
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
this.open = target === void 0 ? !this.open : target;
|
|
284
|
-
if (this.strategy) {
|
|
285
|
-
this.strategy.open = this.open;
|
|
286
|
-
}
|
|
287
|
-
this._selfManageFocusElement = this.open;
|
|
288
|
-
}
|
|
289
|
-
close() {
|
|
290
|
-
if (this.readonly) {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
if (this.strategy) {
|
|
294
|
-
this.open = false;
|
|
295
|
-
this.strategy.open = false;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
bindEvents() {
|
|
299
|
-
var _a;
|
|
300
|
-
(_a = this.strategy) == null ? void 0 : _a.abort();
|
|
301
|
-
this.strategy = this.isMobile.matches ? new strategies.strategies.mobile(this.button, this) : new strategies.strategies.desktop(this.button, this);
|
|
302
|
-
}
|
|
303
|
-
connectedCallback() {
|
|
304
|
-
super.connectedCallback();
|
|
305
|
-
}
|
|
306
|
-
disconnectedCallback() {
|
|
307
|
-
var _a;
|
|
308
|
-
this.close();
|
|
309
|
-
(_a = this.strategy) == null ? void 0 : _a.releaseDescription();
|
|
310
|
-
super.disconnectedCallback();
|
|
311
|
-
}
|
|
312
|
-
handleTooltipSlotchange(event) {
|
|
313
|
-
this.tooltipEl = event.target.assignedElements()[0];
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* @internal
|
|
317
|
-
*/
|
|
318
|
-
get labelTemplate() {
|
|
319
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
320
|
-
const hasIcon = ((_a = this._selectedOptions) == null ? void 0 : _a.length) === 1 && ((_b = this._selectedOptions[0]) == null ? void 0 : _b.icon);
|
|
321
|
-
const iconTemplate = lit.html`<div
|
|
30
|
+
`,T="select-option-menu",G=20;class l extends R.SizedMixin(F.Focusable,{noDefaultSize:!0}){constructor(){super(),this.disabled=!1,this.focused=!1,this.variant="checkmarks",this.emphasized=!1,this.invalid=!1,this.search="auto",this.noWrap=!1,this.retrieving=!1,this.pending=!1,this.clearable=!1,this.pendingLabel="Pending",this.searchLabel="Search",this.noResultsLabel="No results",this.noDataLabel="No data",this.multipleLabelTemplate="Selected {count} items",this.open=!1,this.readonly=!1,this.placement="bottom-end",this.quiet=!1,this.value=[],this.options=[],this.selects="multiple",this.dependencyManager=new V.DependencyManagerController(this),this.isMobile=new f.MatchMediaController(this,f.IS_MOBILE),this.listRole="listbox",this.itemRole="option",this.hasRenderedOverlay=!1,this._selfManageFocusElement=!1,this.selectionPromise=Promise.resolve(),this.enterKeydownOn=null,this._selectedOptions=[],this.handleSlottableRequest=e=>{},this.renderAngleIcon=()=>U(),this.renderAlertIcon=()=>H(),this.handleEnterKeydown=e=>{if(e.code==="Enter"){if(this.enterKeydownOn){e.preventDefault();return}this.enterKeydownOn=e.target,this.addEventListener("keyup",t=>{t.code==="Enter"&&(this.enterKeydownOn=null)},{once:!0})}},this.clearValue=e=>{e.preventDefault(),e.stopPropagation(),this.value=[],this.strategy&&(this.strategy.preventNextToggle="no"),this.open=!1,this.strategy&&(this.strategy.open=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0,composed:!0,detail:{value:this.value??[]}}))},this.handleKeydown=e=>{var s,a;const{code:t}=e;if(["Delete","Backspace"].includes(t)){this.clearValue(e);return}if(this.focused=!0,!(!t.startsWith("Arrow")||this.readonly||this.pending)){if(t==="ArrowUp"||t==="ArrowDown"){this.toggle(!0),e.preventDefault();return}if(e.preventDefault(),this.selects==="single"){const r=t==="ArrowRight"?1:-1,c=this.options.findIndex(u=>{var p,b,g;return((p=u==null?void 0:u.value)==null?void 0:p.toString())===((g=(b=this.value)==null?void 0:b[0])==null?void 0:g.toString())});let n=(this.options.length+c+r)%this.options.length,v=this.options.length;for(;(a=(s=this.options)==null?void 0:s[n])!=null&&a.disabled&&v;)v-=1,n=(this.options.length+n+r)%this.options.length;this.value=[this.options[n].value],this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0,composed:!0,detail:{value:this.value??[]}}))}}},this.pendingStateController=new A.PendingStateController(this)}static get styles(){return[o.r(N)]}get selfManageFocusElement(){return this._selfManageFocusElement}get focusElement(){var e;return this.open?this.search==="on"||this.search==="auto"&&((e=this.options)==null?void 0:e.length)>G?this.searchInput:this.optionsMenu:this.button}forceFocusVisible(){this.disabled||(this.focused=!0)}click(){this.disabled||this.toggle()}handleButtonBlur(){this.focused=!1}focus(e){super.focus(e),!this.disabled&&this.focusElement&&(this.focused=this.hasVisibleFocusInTree())}handleHelperFocus(){this.focused=!0,this.button.focus()}handleChange(e){var t;this.value=((t=e==null?void 0:e.detail)==null?void 0:t.value)??[],this.strategy&&(this.strategy.preventNextToggle="no"),e.stopPropagation(),(!e.cancelable||this.selects==="single")&&(this.open=!1,this.strategy&&(this.strategy.open=!1)),e.preventDefault(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0,composed:!0,detail:{value:this.value??[]}}))}handleButtonFocus(e){var t;(t=this.strategy)==null||t.handleButtonFocus(e)}toggle(e){this.readonly||this.pending||(this.open=e===void 0?!this.open:e,this.strategy&&(this.strategy.open=this.open),this._selfManageFocusElement=this.open)}close(){this.readonly||this.strategy&&(this.open=!1,this.strategy.open=!1)}bindEvents(){var e;(e=this.strategy)==null||e.abort(),this.strategy=this.isMobile.matches?new f.strategies.mobile(this.button,this):new f.strategies.desktop(this.button,this)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){var e;this.close(),(e=this.strategy)==null||e.releaseDescription(),super.disconnectedCallback()}handleTooltipSlotchange(e){this.tooltipEl=e.target.assignedElements()[0]}get labelTemplate(){var v,u,p,b,g,x,w,k,S,$,E,q,I,C,_;const e=((v=this._selectedOptions)==null?void 0:v.length)===1&&((u=this._selectedOptions[0])==null?void 0:u.icon),t=o.x`<div
|
|
322
31
|
id="icon"
|
|
323
|
-
?hidden=${typeof this.icons
|
|
32
|
+
?hidden=${typeof this.icons=="string"||((p=this.value)==null?void 0:p.length)>1||!e}
|
|
324
33
|
>
|
|
325
|
-
${
|
|
326
|
-
</div
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
var _a2;
|
|
332
|
-
return key === "count" ? String((_a2 = this.value) == null ? void 0 : _a2.length) : match;
|
|
333
|
-
}
|
|
334
|
-
);
|
|
335
|
-
};
|
|
336
|
-
const labelClasses = {
|
|
337
|
-
"visually-hidden": this.icons === "only" && ((_d = this.value) == null ? void 0 : _d.length) > 0,
|
|
338
|
-
placeholder: !((_e = this.value) == null ? void 0 : _e.length),
|
|
339
|
-
label: true
|
|
340
|
-
};
|
|
341
|
-
let labelValueTemplate;
|
|
342
|
-
if ((_f = this.value) == null ? void 0 : _f.length) {
|
|
343
|
-
labelValueTemplate = this.value.length === 1 ? lit.html`<span
|
|
344
|
-
>${((_h = (_g = this._selectedOptions) == null ? void 0 : _g[0]) == null ? void 0 : _h.shortLabel) ?? ((_j = (_i = this._selectedOptions) == null ? void 0 : _i[0]) == null ? void 0 : _j.label) ?? ((_k = this.value) == null ? void 0 : _k[0])}</span
|
|
345
|
-
>` : lit.html`<span
|
|
346
|
-
>${fillInTemplateWithCount(this.multipleLabelTemplate)}</span
|
|
347
|
-
>`;
|
|
348
|
-
} else {
|
|
349
|
-
labelValueTemplate = lit.html`
|
|
34
|
+
${e?h.T3(this._selectedOptions[0].icon):o.E}
|
|
35
|
+
</div>`,s=M=>M.replaceAll(/{([^}]+)}/g,(L,P)=>{var O;return P==="count"?String((O=this.value)==null?void 0:O.length):L}),a={"visually-hidden":this.icons==="only"&&((b=this.value)==null?void 0:b.length)>0,placeholder:!((g=this.value)!=null&&g.length),label:!0};let r;(x=this.value)!=null&&x.length?r=this.value.length===1?o.x`<span
|
|
36
|
+
>${((k=(w=this._selectedOptions)==null?void 0:w[0])==null?void 0:k.shortLabel)??(($=(S=this._selectedOptions)==null?void 0:S[0])==null?void 0:$.label)??((E=this.value)==null?void 0:E[0])}</span
|
|
37
|
+
>`:o.x`<span
|
|
38
|
+
>${s(this.multipleLabelTemplate)}</span
|
|
39
|
+
>`:r=o.x`
|
|
350
40
|
<slot name="label" id="label">
|
|
351
41
|
<span aria-hidden="true"> ${this.label} </span>
|
|
352
42
|
</slot>
|
|
353
|
-
`;
|
|
354
|
-
}
|
|
355
|
-
const appliedLabelTemplate = ((_l = this.value) == null ? void 0 : _l.length) ? lit.html`
|
|
43
|
+
`;const c=(q=this.value)!=null&&q.length?o.x`
|
|
356
44
|
<div aria-hidden="true" class="visually-hidden" id="applied-label">
|
|
357
45
|
${this.label}
|
|
358
46
|
<slot name="label"></slot>
|
|
359
47
|
</div>
|
|
360
|
-
|
|
361
|
-
const clearIcon = () => lit.html`
|
|
48
|
+
`:o.x` <span hidden id="applied-label">${this.label}</span> `,n=()=>o.x`
|
|
362
49
|
<div class="icon-container clear-icon icon" @click=${this.clearValue}>
|
|
363
|
-
${
|
|
50
|
+
${h.T3(h.x)}
|
|
364
51
|
</div>
|
|
365
|
-
`;
|
|
366
|
-
|
|
367
|
-
lit.html`
|
|
368
|
-
${((_m = this.value) == null ? void 0 : _m.length) === 1 ? iconTemplate : lit.nothing}
|
|
52
|
+
`;return[o.x`
|
|
53
|
+
${((I=this.value)==null?void 0:I.length)===1?t:o.E}
|
|
369
54
|
<div
|
|
370
|
-
id=${
|
|
371
|
-
class=${
|
|
55
|
+
id=${z.o((C=this.value)!=null&&C.length?"label":void 0)}
|
|
56
|
+
class=${D.e(a)}
|
|
372
57
|
>
|
|
373
|
-
${
|
|
58
|
+
${r}
|
|
374
59
|
</div>
|
|
375
|
-
${
|
|
376
|
-
${this.invalid
|
|
60
|
+
${c}
|
|
61
|
+
${this.invalid&&!this.pending?o.x` ${this.renderAlertIcon()} `:o.E}
|
|
377
62
|
${this.pendingStateController.renderPendingState()}
|
|
378
|
-
${this.clearable
|
|
379
|
-
${this.readonly
|
|
63
|
+
${this.clearable&&!this.readonly&&((_=this.value)==null?void 0:_.length)>0?n():o.E}
|
|
64
|
+
${this.readonly?o.E:this.renderAngleIcon()}
|
|
380
65
|
<slot
|
|
381
66
|
aria-hidden="true"
|
|
382
67
|
name="tooltip"
|
|
383
68
|
id="tooltip"
|
|
384
69
|
@slotchange=${this.handleTooltipSlotchange}
|
|
385
70
|
></slot>
|
|
386
|
-
`
|
|
387
|
-
];
|
|
388
|
-
}
|
|
389
|
-
update(changes) {
|
|
390
|
-
if (changes.has("disabled") && this.disabled && this.strategy) {
|
|
391
|
-
this.open = false;
|
|
392
|
-
this.strategy.open = false;
|
|
393
|
-
}
|
|
394
|
-
if (changes.has("pending") && this.pending && this.strategy) {
|
|
395
|
-
this.open = false;
|
|
396
|
-
this.strategy.open = false;
|
|
397
|
-
}
|
|
398
|
-
super.update(changes);
|
|
399
|
-
}
|
|
400
|
-
bindButtonKeydownListener() {
|
|
401
|
-
this.button.addEventListener("keydown", this.handleKeydown);
|
|
402
|
-
}
|
|
403
|
-
willUpdate(changes) {
|
|
404
|
-
var _a;
|
|
405
|
-
const changedOpen = changes.has("open");
|
|
406
|
-
const changedValue = changes.has("value");
|
|
407
|
-
const changedOptions = changes.has("options");
|
|
408
|
-
const changedSelects = changes.has("selects");
|
|
409
|
-
const previousOpen = changes.get("open");
|
|
410
|
-
if (changedSelects && this.selects === "single" && ((_a = this.value) == null ? void 0 : _a.length) > 1) {
|
|
411
|
-
console.warn(
|
|
412
|
-
`luzmo-select is being set to a single value given the selects property changed to 'single'`
|
|
413
|
-
);
|
|
414
|
-
this.value = this.value.slice(0, 1);
|
|
415
|
-
}
|
|
416
|
-
if (changedOpen && previousOpen === false && this.open && this.searchString) {
|
|
417
|
-
this.searchString = "";
|
|
418
|
-
}
|
|
419
|
-
if (changedValue || changedOptions) {
|
|
420
|
-
this.setSelectedOptionsFromValue();
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
updated(changes) {
|
|
424
|
-
var _a;
|
|
425
|
-
super.updated(changes);
|
|
426
|
-
const changedOptions = changes.has("options");
|
|
427
|
-
const changedOpen = changes.has("open");
|
|
428
|
-
if (changedOpen) {
|
|
429
|
-
this.strategy.open = this.open;
|
|
430
|
-
if (this.open === false) {
|
|
431
|
-
this.optionsMenu.scrollToTop();
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
if (changedOptions) {
|
|
435
|
-
if (((_a = this.options) == null ? void 0 : _a.length) > options_index.VIRTUALIZE_AS_OF_NUM_ITEMS) {
|
|
436
|
-
const longestLabelOption = this.options.reduce((max, option) => {
|
|
437
|
-
var _a2, _b;
|
|
438
|
-
return (((_a2 = max == null ? void 0 : max.label) == null ? void 0 : _a2.length) ?? 0) > (((_b = option == null ? void 0 : option.label) == null ? void 0 : _b.length) ?? 0) ? max : option;
|
|
439
|
-
}, 0);
|
|
440
|
-
this._estimatePopoverWidth(longestLabelOption);
|
|
441
|
-
} else {
|
|
442
|
-
this.style.removeProperty("--select-popover-width");
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
firstUpdated(changes) {
|
|
447
|
-
super.firstUpdated(changes);
|
|
448
|
-
this.bindButtonKeydownListener();
|
|
449
|
-
this.bindEvents();
|
|
450
|
-
}
|
|
451
|
-
_getCssVarInPixels(cssVarName) {
|
|
452
|
-
const value = getCssVariableValue(this, cssVarName);
|
|
453
|
-
let pxValue;
|
|
454
|
-
if (value.endsWith("rem")) {
|
|
455
|
-
const rootFontSize = Number.parseFloat(
|
|
456
|
-
getComputedStyle(document.documentElement).fontSize
|
|
457
|
-
);
|
|
458
|
-
pxValue = Number.parseFloat(value) * rootFontSize;
|
|
459
|
-
} else if (value.endsWith("em")) {
|
|
460
|
-
const elementFontSize = Number.parseFloat(
|
|
461
|
-
getComputedStyle(this).fontSize
|
|
462
|
-
);
|
|
463
|
-
pxValue = Number.parseFloat(value) * elementFontSize;
|
|
464
|
-
} else {
|
|
465
|
-
pxValue = Number.parseFloat(value);
|
|
466
|
-
}
|
|
467
|
-
return pxValue >= 0 ? pxValue : void 0;
|
|
468
|
-
}
|
|
469
|
-
_estimatePopoverWidth(longestString) {
|
|
470
|
-
const fontSize = this._getCssVarInPixels("--luzmo-select-font-size") ?? this._getCssVarInPixels("--select-font-size");
|
|
471
|
-
const minWidth = this._getCssVarInPixels("--luzmo-select-popover-min-width") ?? this._getCssVarInPixels("--select-popover-min-width");
|
|
472
|
-
const spacing = this._getCssVarInPixels("--luzmo-spacing-5");
|
|
473
|
-
const el = document.createElement("luzmo-options");
|
|
474
|
-
el.style.setProperty("--luzmo-select-font-size", `${fontSize}px`);
|
|
475
|
-
el.options = [longestString];
|
|
476
|
-
el.value = [longestString];
|
|
477
|
-
el.variant = this.variant;
|
|
478
|
-
el.size = this.size;
|
|
479
|
-
el.style.position = "absolute";
|
|
480
|
-
el.style.left = "-9999px";
|
|
481
|
-
el.style.top = "-9999px";
|
|
482
|
-
el.style.opacity = "0";
|
|
483
|
-
el.style.width = "auto";
|
|
484
|
-
document.body.append(el);
|
|
485
|
-
el.updateComplete.then(() => {
|
|
486
|
-
const width = el.offsetWidth + (spacing ?? 0);
|
|
487
|
-
if (width > (minWidth ?? 0)) {
|
|
488
|
-
this.style.setProperty("--select-popover-width", `${width}px`);
|
|
489
|
-
} else {
|
|
490
|
-
this.style.removeProperty("--select-popover-width");
|
|
491
|
-
}
|
|
492
|
-
el.remove();
|
|
493
|
-
return width;
|
|
494
|
-
}).catch((error) => {
|
|
495
|
-
console.error(error);
|
|
496
|
-
el.remove();
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* @internal
|
|
501
|
-
*/
|
|
502
|
-
get dismissHelper() {
|
|
503
|
-
return lit.html`
|
|
71
|
+
`]}update(e){e.has("disabled")&&this.disabled&&this.strategy&&(this.open=!1,this.strategy.open=!1),e.has("pending")&&this.pending&&this.strategy&&(this.open=!1,this.strategy.open=!1),super.update(e)}bindButtonKeydownListener(){this.button.addEventListener("keydown",this.handleKeydown)}willUpdate(e){var n;const t=e.has("open"),s=e.has("value"),a=e.has("options"),r=e.has("selects"),c=e.get("open");r&&this.selects==="single"&&((n=this.value)==null?void 0:n.length)>1&&(console.warn("luzmo-select is being set to a single value given the selects property changed to 'single'"),this.value=this.value.slice(0,1)),t&&c===!1&&this.open&&this.searchString&&(this.searchString=""),(s||a)&&this.setSelectedOptionsFromValue()}updated(e){var a;super.updated(e);const t=e.has("options");if(e.has("open")&&(this.strategy.open=this.open,this.open===!1&&this.optionsMenu.scrollToTop()),t)if(((a=this.options)==null?void 0:a.length)>B.VIRTUALIZE_AS_OF_NUM_ITEMS){const r=this.options.reduce((c,n)=>{var v,u;return(((v=c==null?void 0:c.label)==null?void 0:v.length)??0)>(((u=n==null?void 0:n.label)==null?void 0:u.length)??0)?c:n},0);this._estimatePopoverWidth(r)}else this.style.removeProperty("--select-popover-width")}firstUpdated(e){super.firstUpdated(e),this.bindButtonKeydownListener(),this.bindEvents()}_getCssVarInPixels(e){const t=K(this,e);let s;if(t.endsWith("rem")){const a=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);s=Number.parseFloat(t)*a}else if(t.endsWith("em")){const a=Number.parseFloat(getComputedStyle(this).fontSize);s=Number.parseFloat(t)*a}else s=Number.parseFloat(t);return s>=0?s:void 0}_estimatePopoverWidth(e){const t=this._getCssVarInPixels("--luzmo-select-font-size")??this._getCssVarInPixels("--select-font-size"),s=this._getCssVarInPixels("--luzmo-select-popover-min-width")??this._getCssVarInPixels("--select-popover-min-width"),a=this._getCssVarInPixels("--luzmo-spacing-5"),r=document.createElement("luzmo-options");r.style.setProperty("--luzmo-select-font-size",`${t}px`),r.options=[e],r.value=[e],r.variant=this.variant,r.size=this.size,r.style.position="absolute",r.style.left="-9999px",r.style.top="-9999px",r.style.opacity="0",r.style.width="auto",document.body.append(r),r.updateComplete.then(()=>{const c=r.offsetWidth+(a??0);return c>(s??0)?this.style.setProperty("--select-popover-width",`${c}px`):this.style.removeProperty("--select-popover-width"),r.remove(),c}).catch(c=>{console.error(c),r.remove()})}get dismissHelper(){return o.x`
|
|
504
72
|
<div class="visually-hidden">
|
|
505
73
|
<button
|
|
506
74
|
tabindex="-1"
|
|
@@ -508,63 +76,34 @@ class LuzmoSelect extends sizedMixin.SizedMixin(focusable.Focusable, {
|
|
|
508
76
|
@click=${this.close}
|
|
509
77
|
></button>
|
|
510
78
|
</div>
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
// a helper to throw focus to the button is needed because Safari
|
|
514
|
-
// won't include buttons in the tab order even with tabindex="0"
|
|
515
|
-
render() {
|
|
516
|
-
if (this.tooltipEl) {
|
|
517
|
-
this.tooltipEl.disabled = this.open;
|
|
518
|
-
}
|
|
519
|
-
return lit.html`
|
|
79
|
+
`}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),o.x`
|
|
520
80
|
<span
|
|
521
81
|
id="focus-helper"
|
|
522
|
-
tabindex=${this.focused
|
|
82
|
+
tabindex=${this.focused||this.open?"-1":"0"}
|
|
523
83
|
@focus=${this.handleHelperFocus}
|
|
524
|
-
aria-describedby=${
|
|
84
|
+
aria-describedby=${T}
|
|
525
85
|
></span>
|
|
526
86
|
<button
|
|
527
|
-
aria-controls=${
|
|
87
|
+
aria-controls=${z.o(this.open?"menu":void 0)}
|
|
528
88
|
aria-describedby="tooltip"
|
|
529
|
-
aria-expanded=${this.open
|
|
89
|
+
aria-expanded=${this.open?"true":"false"}
|
|
530
90
|
aria-haspopup="true"
|
|
531
91
|
aria-labelledby="loader icon label applied-label"
|
|
532
92
|
id="button"
|
|
533
|
-
class=${
|
|
534
|
-
this.labelAlignment ? `label-${this.labelAlignment}` : void 0
|
|
535
|
-
)}
|
|
93
|
+
class=${z.o(this.labelAlignment?`label-${this.labelAlignment}`:void 0)}
|
|
536
94
|
@blur=${this.handleButtonBlur}
|
|
537
|
-
@keydown=${{
|
|
538
|
-
handleEvent: this.handleEnterKeydown,
|
|
539
|
-
capture: true
|
|
540
|
-
}}
|
|
95
|
+
@keydown=${{handleEvent:this.handleEnterKeydown,capture:!0}}
|
|
541
96
|
?disabled=${this.disabled}
|
|
542
97
|
tabindex="-1"
|
|
543
98
|
>
|
|
544
99
|
${this.labelTemplate}
|
|
545
100
|
</button>
|
|
546
101
|
${this.renderMenu} ${this.renderDescriptionSlot}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* @internal
|
|
551
|
-
*/
|
|
552
|
-
get renderDescriptionSlot() {
|
|
553
|
-
return lit.html`
|
|
554
|
-
<div id=${DESCRIPTION_ID}>
|
|
102
|
+
`}get renderDescriptionSlot(){return o.x`
|
|
103
|
+
<div id=${T}>
|
|
555
104
|
<slot name="description"></slot>
|
|
556
105
|
</div>
|
|
557
|
-
|
|
558
|
-
}
|
|
559
|
-
setSelectedOptionsFromValue() {
|
|
560
|
-
this._selectedOptions = this.options.filter((option) => {
|
|
561
|
-
var _a;
|
|
562
|
-
const value = typeof option === "string" ? option : option == null ? void 0 : option.value;
|
|
563
|
-
return (_a = this.value) == null ? void 0 : _a.includes(value);
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
renderSearchInput() {
|
|
567
|
-
const searchInput = lit.html`
|
|
106
|
+
`}setSelectedOptionsFromValue(){this._selectedOptions=this.options.filter(e=>{var s;const t=typeof e=="string"?e:e==null?void 0:e.value;return(s=this.value)==null?void 0:s.includes(t)})}renderSearchInput(){return o.x`
|
|
568
107
|
<div id="search-container">
|
|
569
108
|
<input
|
|
570
109
|
type="text"
|
|
@@ -573,42 +112,27 @@ class LuzmoSelect extends sizedMixin.SizedMixin(focusable.Focusable, {
|
|
|
573
112
|
@input=${this.handleSearchInput}
|
|
574
113
|
@change=${this.handleSearchInput}
|
|
575
114
|
@keydown=${this.handleSearchKeydown}
|
|
576
|
-
.value=${this.searchString
|
|
115
|
+
.value=${this.searchString??""}
|
|
577
116
|
.aria-label=${this.searchLabel}
|
|
578
117
|
autocomplete="off"
|
|
579
118
|
tabindex="0"
|
|
580
119
|
role="searchbox"
|
|
581
120
|
/>
|
|
582
|
-
${
|
|
121
|
+
${j()}
|
|
583
122
|
</div>
|
|
584
|
-
|
|
585
|
-
return searchInput;
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* @internal
|
|
589
|
-
*/
|
|
590
|
-
get renderMenu() {
|
|
591
|
-
const filteredOptions = this.options.filter((choice) => {
|
|
592
|
-
var _a, _b, _c;
|
|
593
|
-
const label = typeof choice === "string" ? choice : choice == null ? void 0 : choice.label;
|
|
594
|
-
return (_c = (_a = label == null ? void 0 : label.toString()) == null ? void 0 : _a.toLowerCase()) == null ? void 0 : _c.includes(((_b = this.searchString) == null ? void 0 : _b.toLowerCase()) ?? "");
|
|
595
|
-
});
|
|
596
|
-
const menu = lit.html`
|
|
123
|
+
`}get renderMenu(){const e=this.options.filter(s=>{var r,c,n;const a=typeof s=="string"?s:s==null?void 0:s.label;return(n=(r=a==null?void 0:a.toString())==null?void 0:r.toLowerCase())==null?void 0:n.includes(((c=this.searchString)==null?void 0:c.toLowerCase())??"")}),t=o.x`
|
|
597
124
|
<luzmo-options
|
|
598
125
|
.variant=${this.variant}
|
|
599
126
|
aria-labelledby="applied-label"
|
|
600
127
|
id="menu"
|
|
601
128
|
?emphasized=${this.emphasized}
|
|
602
|
-
.selects=${this.selects
|
|
603
|
-
.options=${
|
|
129
|
+
.selects=${this.selects??"multiple"}
|
|
130
|
+
.options=${e}
|
|
604
131
|
.value=${this.value}
|
|
605
132
|
?pending=${this.retrieving}
|
|
606
133
|
?no-wrap=${this.noWrap}
|
|
607
134
|
@change=${this.handleChange}
|
|
608
|
-
@keydown=${{
|
|
609
|
-
handleEvent: this.handleEnterKeydown,
|
|
610
|
-
capture: true
|
|
611
|
-
}}
|
|
135
|
+
@keydown=${{handleEvent:this.handleEnterKeydown,capture:!0}}
|
|
612
136
|
@luzmo-scrolled=${this.handleScrolled}
|
|
613
137
|
@luzmo-exceeded-top=${this.handleExceededTop}
|
|
614
138
|
role=${this.listRole}
|
|
@@ -616,211 +140,18 @@ class LuzmoSelect extends sizedMixin.SizedMixin(focusable.Focusable, {
|
|
|
616
140
|
tabindex="0"
|
|
617
141
|
>
|
|
618
142
|
</luzmo-options>
|
|
619
|
-
${
|
|
620
|
-
${this.searchString
|
|
621
|
-
</div
|
|
622
|
-
`;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
if (this.dependencyManager.loaded) {
|
|
626
|
-
this.dependencyManager.add("luzmo-overlay");
|
|
627
|
-
}
|
|
628
|
-
return this.renderOverlay(menu);
|
|
629
|
-
}
|
|
630
|
-
return menu;
|
|
631
|
-
}
|
|
632
|
-
renderOverlay(menu) {
|
|
633
|
-
var _a, _b, _c;
|
|
634
|
-
if (((_a = this.strategy) == null ? void 0 : _a.overlay) === void 0) {
|
|
635
|
-
return menu;
|
|
636
|
-
}
|
|
637
|
-
const container = this.renderContainer(menu);
|
|
638
|
-
lit.render(container, (_b = this.strategy) == null ? void 0 : _b.overlay, {
|
|
639
|
-
host: this
|
|
640
|
-
});
|
|
641
|
-
return (_c = this.strategy) == null ? void 0 : _c.overlay;
|
|
642
|
-
}
|
|
643
|
-
renderContainer(menu) {
|
|
644
|
-
var _a, _b;
|
|
645
|
-
const searchBox = this.search === "on" || this.searchString && ((_a = this.searchString) == null ? void 0 : _a.length) > 0 || this.search === "auto" && ((_b = this.options) == null ? void 0 : _b.length) > 20 ? this.renderSearchInput() : lit.nothing;
|
|
646
|
-
const accessibleMenu = lit.html`
|
|
647
|
-
${searchBox} ${this.dismissHelper} ${menu} ${this.dismissHelper}
|
|
648
|
-
`;
|
|
649
|
-
this.dependencyManager.add("luzmo-popover");
|
|
650
|
-
return lit.html`
|
|
143
|
+
${e.length===0&&!this.retrieving&&!this.pending?o.x`<div id="no-results">
|
|
144
|
+
${this.searchString?this.noResultsLabel:this.noDataLabel}
|
|
145
|
+
</div>`:o.E}
|
|
146
|
+
`;return this.hasRenderedOverlay=this.hasRenderedOverlay||this.focused||this.open,this.hasRenderedOverlay?(this.dependencyManager.loaded&&this.dependencyManager.add("luzmo-overlay"),this.renderOverlay(t)):t}renderOverlay(e){var s,a,r;if(((s=this.strategy)==null?void 0:s.overlay)===void 0)return e;const t=this.renderContainer(e);return o.B(t,(a=this.strategy)==null?void 0:a.overlay,{host:this}),(r=this.strategy)==null?void 0:r.overlay}renderContainer(e){var a,r;const t=this.search==="on"||this.searchString&&((a=this.searchString)==null?void 0:a.length)>0||this.search==="auto"&&((r=this.options)==null?void 0:r.length)>20?this.renderSearchInput():o.E,s=o.x`
|
|
147
|
+
${t} ${this.dismissHelper} ${e} ${this.dismissHelper}
|
|
148
|
+
`;return this.dependencyManager.add("luzmo-popover"),o.x`
|
|
651
149
|
<luzmo-popover
|
|
652
150
|
id="popover"
|
|
653
151
|
size=${this.size}
|
|
654
152
|
role="presentation"
|
|
655
153
|
placement=${this.placement}
|
|
656
154
|
>
|
|
657
|
-
${
|
|
155
|
+
${s}
|
|
658
156
|
</luzmo-popover>
|
|
659
|
-
|
|
660
|
-
}
|
|
661
|
-
async getUpdateComplete() {
|
|
662
|
-
const complete = await super.getUpdateComplete();
|
|
663
|
-
await this.selectionPromise;
|
|
664
|
-
if (this.overlayElement) {
|
|
665
|
-
await this.overlayElement.updateComplete;
|
|
666
|
-
}
|
|
667
|
-
return complete;
|
|
668
|
-
}
|
|
669
|
-
handleScrolled(event) {
|
|
670
|
-
var _a, _b;
|
|
671
|
-
event.stopPropagation();
|
|
672
|
-
event.preventDefault();
|
|
673
|
-
this.dispatchEvent(
|
|
674
|
-
new CustomEvent("luzmo-scrolled", {
|
|
675
|
-
bubbles: true,
|
|
676
|
-
composed: true,
|
|
677
|
-
cancelable: true,
|
|
678
|
-
detail: {
|
|
679
|
-
first: (_a = event == null ? void 0 : event.detail) == null ? void 0 : _a.first,
|
|
680
|
-
last: (_b = event == null ? void 0 : event.detail) == null ? void 0 : _b.last
|
|
681
|
-
}
|
|
682
|
-
})
|
|
683
|
-
);
|
|
684
|
-
}
|
|
685
|
-
handleExceededTop(event) {
|
|
686
|
-
event.preventDefault();
|
|
687
|
-
event.stopPropagation();
|
|
688
|
-
if (this.searchInput) {
|
|
689
|
-
this.searchInput.focus();
|
|
690
|
-
} else {
|
|
691
|
-
this.toggle(false);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
handleSearchInput(event) {
|
|
695
|
-
this.searchString = event.target.value;
|
|
696
|
-
this.dispatchEvent(
|
|
697
|
-
new CustomEvent("luzmo-search", {
|
|
698
|
-
bubbles: true,
|
|
699
|
-
composed: true,
|
|
700
|
-
cancelable: true,
|
|
701
|
-
detail: {
|
|
702
|
-
string: this.searchString
|
|
703
|
-
}
|
|
704
|
-
})
|
|
705
|
-
);
|
|
706
|
-
}
|
|
707
|
-
handleSearchKeydown(event) {
|
|
708
|
-
if (event.code === "Escape") {
|
|
709
|
-
this.searchString = "";
|
|
710
|
-
return;
|
|
711
|
-
}
|
|
712
|
-
if (event.code === "ArrowDown") {
|
|
713
|
-
this.optionsMenu.focus();
|
|
714
|
-
event.preventDefault();
|
|
715
|
-
event.stopPropagation();
|
|
716
|
-
return;
|
|
717
|
-
} else if (event.code === "ArrowUp") {
|
|
718
|
-
this.toggle(false);
|
|
719
|
-
return;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
__decorateClass([
|
|
724
|
-
decorators_js.query("#button")
|
|
725
|
-
], LuzmoSelect.prototype, "button");
|
|
726
|
-
__decorateClass([
|
|
727
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
728
|
-
], LuzmoSelect.prototype, "disabled");
|
|
729
|
-
__decorateClass([
|
|
730
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
731
|
-
], LuzmoSelect.prototype, "focused");
|
|
732
|
-
__decorateClass([
|
|
733
|
-
decorators_js.property({ type: String, reflect: true })
|
|
734
|
-
], LuzmoSelect.prototype, "icons");
|
|
735
|
-
__decorateClass([
|
|
736
|
-
decorators_js.property({ type: String, reflect: true })
|
|
737
|
-
], LuzmoSelect.prototype, "variant");
|
|
738
|
-
__decorateClass([
|
|
739
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
740
|
-
], LuzmoSelect.prototype, "emphasized");
|
|
741
|
-
__decorateClass([
|
|
742
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
743
|
-
], LuzmoSelect.prototype, "invalid");
|
|
744
|
-
__decorateClass([
|
|
745
|
-
decorators_js.property({ type: String, reflect: true })
|
|
746
|
-
], LuzmoSelect.prototype, "search");
|
|
747
|
-
__decorateClass([
|
|
748
|
-
decorators_js.property({ type: Boolean, reflect: true, attribute: "no-wrap" })
|
|
749
|
-
], LuzmoSelect.prototype, "noWrap");
|
|
750
|
-
__decorateClass([
|
|
751
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
752
|
-
], LuzmoSelect.prototype, "retrieving");
|
|
753
|
-
__decorateClass([
|
|
754
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
755
|
-
], LuzmoSelect.prototype, "pending");
|
|
756
|
-
__decorateClass([
|
|
757
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
758
|
-
], LuzmoSelect.prototype, "clearable");
|
|
759
|
-
__decorateClass([
|
|
760
|
-
decorators_js.property({ type: String, attribute: "pending-label" })
|
|
761
|
-
], LuzmoSelect.prototype, "pendingLabel");
|
|
762
|
-
__decorateClass([
|
|
763
|
-
decorators_js.property({ type: String, attribute: "search-label" })
|
|
764
|
-
], LuzmoSelect.prototype, "searchLabel");
|
|
765
|
-
__decorateClass([
|
|
766
|
-
decorators_js.property({ type: String, attribute: "no-results-label" })
|
|
767
|
-
], LuzmoSelect.prototype, "noResultsLabel");
|
|
768
|
-
__decorateClass([
|
|
769
|
-
decorators_js.property({ type: String, attribute: "no-data-label" })
|
|
770
|
-
], LuzmoSelect.prototype, "noDataLabel");
|
|
771
|
-
__decorateClass([
|
|
772
|
-
decorators_js.property({
|
|
773
|
-
type: String,
|
|
774
|
-
attribute: "multiple-label-template",
|
|
775
|
-
reflect: true
|
|
776
|
-
})
|
|
777
|
-
], LuzmoSelect.prototype, "multipleLabelTemplate");
|
|
778
|
-
__decorateClass([
|
|
779
|
-
decorators_js.property()
|
|
780
|
-
], LuzmoSelect.prototype, "label");
|
|
781
|
-
__decorateClass([
|
|
782
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
783
|
-
], LuzmoSelect.prototype, "open");
|
|
784
|
-
__decorateClass([
|
|
785
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
786
|
-
], LuzmoSelect.prototype, "readonly");
|
|
787
|
-
__decorateClass([
|
|
788
|
-
decorators_js.state()
|
|
789
|
-
], LuzmoSelect.prototype, "labelAlignment");
|
|
790
|
-
__decorateClass([
|
|
791
|
-
decorators_js.state()
|
|
792
|
-
], LuzmoSelect.prototype, "displayLabelContent");
|
|
793
|
-
__decorateClass([
|
|
794
|
-
decorators_js.state()
|
|
795
|
-
], LuzmoSelect.prototype, "searchString");
|
|
796
|
-
__decorateClass([
|
|
797
|
-
decorators_js.query("luzmo-options")
|
|
798
|
-
], LuzmoSelect.prototype, "optionsMenu");
|
|
799
|
-
__decorateClass([
|
|
800
|
-
decorators_js.query("#search")
|
|
801
|
-
], LuzmoSelect.prototype, "searchInput");
|
|
802
|
-
__decorateClass([
|
|
803
|
-
decorators_js.query("luzmo-overlay")
|
|
804
|
-
], LuzmoSelect.prototype, "overlayElement");
|
|
805
|
-
__decorateClass([
|
|
806
|
-
decorators_js.query("lit-virtualizer")
|
|
807
|
-
], LuzmoSelect.prototype, "virtualizer");
|
|
808
|
-
__decorateClass([
|
|
809
|
-
decorators_js.property({ type: String, reflect: true })
|
|
810
|
-
], LuzmoSelect.prototype, "placement");
|
|
811
|
-
__decorateClass([
|
|
812
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
813
|
-
], LuzmoSelect.prototype, "quiet");
|
|
814
|
-
__decorateClass([
|
|
815
|
-
decorators_js.property({ type: Array })
|
|
816
|
-
], LuzmoSelect.prototype, "value");
|
|
817
|
-
__decorateClass([
|
|
818
|
-
decorators_js.property({ type: Array })
|
|
819
|
-
], LuzmoSelect.prototype, "options");
|
|
820
|
-
__decorateClass([
|
|
821
|
-
decorators_js.property({ type: String, reflect: true })
|
|
822
|
-
], LuzmoSelect.prototype, "selects");
|
|
823
|
-
if (!customElements.get("luzmo-select")) {
|
|
824
|
-
customElements.define("luzmo-select", LuzmoSelect);
|
|
825
|
-
}
|
|
826
|
-
exports.LuzmoSelect = LuzmoSelect;
|
|
157
|
+
`}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.selectionPromise,this.overlayElement&&await this.overlayElement.updateComplete,e}handleScrolled(e){var t,s;e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("luzmo-scrolled",{bubbles:!0,composed:!0,cancelable:!0,detail:{first:(t=e==null?void 0:e.detail)==null?void 0:t.first,last:(s=e==null?void 0:e.detail)==null?void 0:s.last}}))}handleExceededTop(e){e.preventDefault(),e.stopPropagation(),this.searchInput?this.searchInput.focus():this.toggle(!1)}handleSearchInput(e){this.searchString=e.target.value,this.dispatchEvent(new CustomEvent("luzmo-search",{bubbles:!0,composed:!0,cancelable:!0,detail:{string:this.searchString}}))}handleSearchKeydown(e){if(e.code==="Escape"){this.searchString="";return}if(e.code==="ArrowDown"){this.optionsMenu.focus(),e.preventDefault(),e.stopPropagation();return}else if(e.code==="ArrowUp"){this.toggle(!1);return}}}i([m.e("#button")],l.prototype,"button");i([o.n({type:Boolean,reflect:!0})],l.prototype,"disabled");i([o.n({type:Boolean,reflect:!0})],l.prototype,"focused");i([o.n({type:String,reflect:!0})],l.prototype,"icons");i([o.n({type:String,reflect:!0})],l.prototype,"variant");i([o.n({type:Boolean,reflect:!0})],l.prototype,"emphasized");i([o.n({type:Boolean,reflect:!0})],l.prototype,"invalid");i([o.n({type:String,reflect:!0})],l.prototype,"search");i([o.n({type:Boolean,reflect:!0,attribute:"no-wrap"})],l.prototype,"noWrap");i([o.n({type:Boolean,reflect:!0})],l.prototype,"retrieving");i([o.n({type:Boolean,reflect:!0})],l.prototype,"pending");i([o.n({type:Boolean,reflect:!0})],l.prototype,"clearable");i([o.n({type:String,attribute:"pending-label"})],l.prototype,"pendingLabel");i([o.n({type:String,attribute:"search-label"})],l.prototype,"searchLabel");i([o.n({type:String,attribute:"no-results-label"})],l.prototype,"noResultsLabel");i([o.n({type:String,attribute:"no-data-label"})],l.prototype,"noDataLabel");i([o.n({type:String,attribute:"multiple-label-template",reflect:!0})],l.prototype,"multipleLabelTemplate");i([o.n()],l.prototype,"label");i([o.n({type:Boolean,reflect:!0})],l.prototype,"open");i([o.n({type:Boolean,reflect:!0})],l.prototype,"readonly");i([y.r()],l.prototype,"labelAlignment");i([y.r()],l.prototype,"displayLabelContent");i([y.r()],l.prototype,"searchString");i([m.e("luzmo-options")],l.prototype,"optionsMenu");i([m.e("#search")],l.prototype,"searchInput");i([m.e("luzmo-overlay")],l.prototype,"overlayElement");i([m.e("lit-virtualizer")],l.prototype,"virtualizer");i([o.n({type:String,reflect:!0})],l.prototype,"placement");i([o.n({type:Boolean,reflect:!0})],l.prototype,"quiet");i([o.n({type:Array})],l.prototype,"value");i([o.n({type:Array})],l.prototype,"options");i([o.n({type:String,reflect:!0})],l.prototype,"selects");customElements.get("luzmo-select")||customElements.define("luzmo-select",l);exports.LuzmoSelect=l;
|