@luzmo/lucero 1.0.1-alpha.25 → 1.0.1-alpha.27

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.
@@ -16,15 +16,15 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "@lit-labs/virtualizer";
19
- import { luzmoIcon as f, luzmoClose14 as F, luzmoAngleDown as A, luzmoAlert as V, luzmoSearch as R } from "@luzmo/icons";
20
- import { unsafeCSS as N, nothing as b, html as i, render as K } from "lit";
19
+ import { luzmoIcon as f, luzmoClose14 as D, luzmoAngleDown as F, luzmoAlert as V, luzmoSearch as N } from "@luzmo/icons";
20
+ import { unsafeCSS as R, nothing as b, html as i, render as K } from "lit";
21
21
  import { query as z, property as c, state as x } from "lit/decorators.js";
22
22
  import { classMap as U } from "lit/directives/class-map.js";
23
23
  import { ifDefined as y } from "lit/directives/if-defined.js";
24
24
  import { M as W, I as H, s as j } from "../strategies-Bk97oVn1.js";
25
25
  import { F as G } from "../focusable-BjvsvVam.js";
26
- import { D as Z } from "../dependency-manger-CO-VPlqq.js";
27
- import { P as J } from "../pending-state-Dx1u3EXA.js";
26
+ import { D as J } from "../dependency-manger-CO-VPlqq.js";
27
+ import { P as Z } from "../pending-state-Dx1u3EXA.js";
28
28
  import { S as Q } from "../sized-mixin-cJbo3PKR.js";
29
29
  import "../icon/index.js";
30
30
  import { VIRTUALIZE_AS_OF_NUM_ITEMS as X } from "../options/index.js";
@@ -32,27 +32,27 @@ import "../overlay/index.js";
32
32
  import "../popover/index.js";
33
33
  import "../progress-circle/index.js";
34
34
  import "../tooltip/index.js";
35
- const D = () => {
35
+ const T = () => {
36
36
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
37
- const d = document.createElement("style");
38
- d.setAttribute("data-luzmo-vars", ""), d.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(d);
37
+ const n = document.createElement("style");
38
+ n.setAttribute("data-luzmo-vars", ""), n.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(n);
39
39
  }
40
40
  };
41
- D();
42
- const Y = (d, e) => {
43
- let o = getComputedStyle(d).getPropertyValue(e);
44
- for (; !o && d.parentElement; )
45
- d = d.parentElement, o = getComputedStyle(d).getPropertyValue(e);
41
+ T();
42
+ const Y = (n, e) => {
43
+ let o = getComputedStyle(n).getPropertyValue(e);
44
+ for (; !o && n.parentElement; )
45
+ n = n.parentElement, o = getComputedStyle(n).getPropertyValue(e);
46
46
  return o.trim();
47
47
  }, ee = ':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)))}';
48
- var oe = Object.defineProperty, a = (d, e, o, r) => {
49
- for (var s = void 0, t = d.length - 1, n; t >= 0; t--)
50
- (n = d[t]) && (s = n(e, o, s) || s);
48
+ var oe = Object.defineProperty, a = (n, e, o, r) => {
49
+ for (var s = void 0, t = n.length - 1, u; t >= 0; t--)
50
+ (u = n[t]) && (s = u(e, o, s) || s);
51
51
  return s && oe(e, o, s), s;
52
52
  };
53
53
  const te = () => i`
54
54
  <div class="disclosure-icon icon">
55
- ${f(A, { className: "indicator" })}
55
+ ${f(F, { className: "indicator" })}
56
56
  </div>
57
57
  `, re = () => i`
58
58
  <div class="icon-container validation-icon icon">
@@ -60,14 +60,14 @@ const te = () => i`
60
60
  </div>
61
61
  `, le = () => i`
62
62
  <div class="icon-container search-icon icon" id="search-icon">
63
- ${f(R)}
63
+ ${f(N)}
64
64
  </div>
65
65
  `, P = "select-option-menu", se = 20;
66
66
  class l extends Q(G, {
67
67
  noDefaultSize: !0
68
68
  }) {
69
69
  constructor() {
70
- 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 Z(this), this.isMobile = new W(this, H), this.listRole = "listbox", this.itemRole = "option", this.hasRenderedOverlay = !1, this._selfManageFocusElement = !1, this.selectionPromise = Promise.resolve(), this.enterKeydownOn = null, this._selectedOptions = [], this.handleSlottableRequest = (e) => {
70
+ 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 J(this), this.isMobile = new W(this, H), this.listRole = "listbox", this.itemRole = "option", this.hasRenderedOverlay = !1, this._selfManageFocusElement = !1, this.selectionPromise = Promise.resolve(), this.enterKeydownOn = null, this._selectedOptions = [], this.handleSlottableRequest = (e) => {
71
71
  }, this.renderAngleIcon = () => te(), this.renderAlertIcon = () => re(), this.handleEnterKeydown = (e) => {
72
72
  if (e.code === "Enter") {
73
73
  if (this.enterKeydownOn) {
@@ -106,16 +106,16 @@ class l extends Q(G, {
106
106
  return;
107
107
  }
108
108
  if (e.preventDefault(), this.selects === "single") {
109
- const t = o === "ArrowRight" ? 1 : -1, n = this.options.findIndex(
109
+ const t = o === "ArrowRight" ? 1 : -1, u = this.options.findIndex(
110
110
  (p) => {
111
111
  var v, m, g;
112
112
  return ((v = p == null ? void 0 : p.value) == null ? void 0 : v.toString()) === ((g = (m = this.value) == null ? void 0 : m[0]) == null ? void 0 : g.toString());
113
113
  }
114
114
  );
115
- let u = (this.options.length + n + t) % this.options.length, h = this.options.length;
116
- for (; (s = (r = this.options) == null ? void 0 : r[u]) != null && s.disabled && h; )
117
- h -= 1, u = (this.options.length + u + t) % this.options.length;
118
- this.value = [this.options[u].value], this.dispatchEvent(
115
+ let d = (this.options.length + u + t) % this.options.length, h = this.options.length;
116
+ for (; (s = (r = this.options) == null ? void 0 : r[d]) != null && s.disabled && h; )
117
+ h -= 1, d = (this.options.length + d + t) % this.options.length;
118
+ this.value = [this.options[d].value], this.dispatchEvent(
119
119
  new CustomEvent("change", {
120
120
  bubbles: !0,
121
121
  cancelable: !0,
@@ -127,13 +127,13 @@ class l extends Q(G, {
127
127
  );
128
128
  }
129
129
  }
130
- }, this.pendingStateController = new J(this);
130
+ }, this.pendingStateController = new Z(this);
131
131
  }
132
132
  /**
133
133
  * @internal
134
134
  */
135
135
  static get styles() {
136
- return [N(ee)];
136
+ return [R(ee)];
137
137
  }
138
138
  /**
139
139
  * @internal
@@ -212,9 +212,9 @@ class l extends Q(G, {
212
212
  ${e ? f(this._selectedOptions[0].icon) : b}
213
213
  </div>`, r = (B) => B.replaceAll(
214
214
  /{([^}]+)}/g,
215
- (M, T) => {
215
+ (M, A) => {
216
216
  var L;
217
- return T === "count" ? String((L = this.value) == null ? void 0 : L.length) : M;
217
+ return A === "count" ? String((L = this.value) == null ? void 0 : L.length) : M;
218
218
  }
219
219
  ), s = {
220
220
  "visually-hidden": this.icons === "only" && ((m = this.value) == null ? void 0 : m.length) > 0,
@@ -231,14 +231,14 @@ class l extends Q(G, {
231
231
  <span aria-hidden="true"> ${this.label} </span>
232
232
  </slot>
233
233
  `;
234
- const n = (I = this.value) != null && I.length ? i`
234
+ const u = (I = this.value) != null && I.length ? i`
235
235
  <div aria-hidden="true" class="visually-hidden" id="applied-label">
236
236
  ${this.label}
237
237
  <slot name="label"></slot>
238
238
  </div>
239
- ` : i` <span hidden id="applied-label">${this.label}</span> `, u = () => i`
239
+ ` : i` <span hidden id="applied-label">${this.label}</span> `, d = () => i`
240
240
  <div class="icon-container clear-icon icon" @click=${this.clearValue}>
241
- ${f(F)}
241
+ ${f(D)}
242
242
  </div>
243
243
  `;
244
244
  return [
@@ -250,10 +250,10 @@ class l extends Q(G, {
250
250
  >
251
251
  ${t}
252
252
  </div>
253
- ${n}
253
+ ${u}
254
254
  ${this.invalid && !this.pending ? i` ${this.renderAlertIcon()} ` : b}
255
255
  ${this.pendingStateController.renderPendingState()}
256
- ${this.clearable && !this.readonly && ((q = this.value) == null ? void 0 : q.length) > 0 ? u() : b}
256
+ ${this.clearable && !this.readonly && ((q = this.value) == null ? void 0 : q.length) > 0 ? d() : b}
257
257
  ${this.readonly ? b : this.renderAngleIcon()}
258
258
  <slot
259
259
  aria-hidden="true"
@@ -271,11 +271,11 @@ class l extends Q(G, {
271
271
  this.button.addEventListener("keydown", this.handleKeydown);
272
272
  }
273
273
  willUpdate(e) {
274
- var u;
275
- const o = e.has("open"), r = e.has("value"), s = e.has("options"), t = e.has("selects"), n = e.get("open");
276
- t && this.selects === "single" && ((u = this.value) == null ? void 0 : u.length) > 1 && (console.warn(
274
+ var d;
275
+ const o = e.has("open"), r = e.has("value"), s = e.has("options"), t = e.has("selects"), u = e.get("open");
276
+ t && this.selects === "single" && ((d = this.value) == null ? void 0 : d.length) > 1 && (console.warn(
277
277
  "luzmo-select is being set to a single value given the selects property changed to 'single'"
278
- ), this.value = this.value.slice(0, 1)), o && n === !1 && this.open && this.searchString && (this.searchString = ""), (r || s) && this.setSelectedOptionsFromValue();
278
+ ), this.value = this.value.slice(0, 1)), o && u === !1 && this.open && this.searchString && (this.searchString = ""), (r || s) && this.setSelectedOptionsFromValue();
279
279
  }
280
280
  updated(e) {
281
281
  var s, t;
@@ -283,11 +283,11 @@ class l extends Q(G, {
283
283
  const o = e.has("options");
284
284
  if (e.has("open") && (this.strategy.open = this.open, this.open === !1 && this.optionsMenu.scrollToTop()), o)
285
285
  if (((s = this.options) == null ? void 0 : s.length) > X) {
286
- const n = this.options.reduce((u, h) => {
286
+ const u = this.options.reduce((d, h) => {
287
287
  var p, v;
288
- return (((p = u == null ? void 0 : u.label) == null ? void 0 : p.length) ?? 0) > (((v = h == null ? void 0 : h.label) == null ? void 0 : v.length) ?? 0) ? u : h;
288
+ return (((p = d == null ? void 0 : d.label) == null ? void 0 : p.length) ?? 0) > (((v = h == null ? void 0 : h.label) == null ? void 0 : v.length) ?? 0) ? d : h;
289
289
  }, 0);
290
- this._estimatePopoverWidth(n);
290
+ this._estimatePopoverWidth(u);
291
291
  } else
292
292
  this.style.removeProperty("--select-popover-width");
293
293
  (t = this.strategy) != null && t.overlay && this.strategy.overlay.type !== "auto" && (this.strategy.overlay.type = "auto", this.strategy.overlay.placement = this.placement);
@@ -315,10 +315,10 @@ class l extends Q(G, {
315
315
  _estimatePopoverWidth(e) {
316
316
  const o = this._getCssVarInPixels("--luzmo-select-font-size") ?? this._getCssVarInPixels("--select-font-size"), r = this._getCssVarInPixels("--luzmo-select-popover-min-width") ?? this._getCssVarInPixels("--select-popover-min-width"), s = this._getCssVarInPixels("--luzmo-spacing-5"), t = document.createElement("luzmo-options");
317
317
  t.style.setProperty("--luzmo-select-font-size", `${o}px`), t.options = [e], t.value = [e], t.variant = this.variant, t.size = this.size, t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "-9999px", t.style.opacity = "0", t.style.width = "auto", document.body.append(t), t.updateComplete.then(() => {
318
- const n = t.offsetWidth + (s ?? 0);
319
- return n > (r ?? 0) ? this.style.setProperty("--select-popover-width", `${n}px`) : this.style.removeProperty("--select-popover-width"), t.remove(), n;
320
- }).catch((n) => {
321
- console.error(n), t.remove();
318
+ const u = t.offsetWidth + (s ?? 0);
319
+ return u > (r ?? 0) ? this.style.setProperty("--select-popover-width", `${u}px`) : this.style.removeProperty("--select-popover-width"), t.remove(), u;
320
+ }).catch((u) => {
321
+ console.error(u), t.remove();
322
322
  });
323
323
  }
324
324
  /**
@@ -410,9 +410,9 @@ class l extends Q(G, {
410
410
  */
411
411
  get renderMenu() {
412
412
  const e = this.options.filter((r) => {
413
- var t, n, u;
413
+ var t, u, d;
414
414
  const s = typeof r == "string" ? r : r == null ? void 0 : r.label;
415
- return (u = (t = s == null ? void 0 : s.toString()) == null ? void 0 : t.toLowerCase()) == null ? void 0 : u.includes(((n = this.searchString) == null ? void 0 : n.toLowerCase()) ?? "");
415
+ return (d = (t = s == null ? void 0 : s.toString()) == null ? void 0 : t.toLowerCase()) == null ? void 0 : d.includes(((u = this.searchString) == null ? void 0 : u.toLowerCase()) ?? "");
416
416
  }), o = i`
417
417
  <luzmo-options
418
418
  .variant=${this.variant}
@@ -606,7 +606,21 @@ a([
606
606
  c({ type: Boolean, reflect: !0 })
607
607
  ], l.prototype, "quiet");
608
608
  a([
609
- c({ type: Array })
609
+ c({
610
+ type: Array,
611
+ converter: {
612
+ fromAttribute: (n) => {
613
+ if (!n || n === "")
614
+ return [];
615
+ try {
616
+ return JSON.parse(n);
617
+ } catch {
618
+ return [];
619
+ }
620
+ },
621
+ toAttribute: (n) => JSON.stringify(n)
622
+ }
623
+ })
610
624
  ], l.prototype, "value");
611
625
  a([
612
626
  c({ type: Array })
@@ -184,7 +184,7 @@ export declare class LuzmoSelect extends LuzmoSelect_base {
184
184
  quiet: boolean;
185
185
  /**
186
186
  * The value of the select.
187
- * @type {string | number | null}
187
+ * @type {(string | number | null)[]}
188
188
  * @default []
189
189
  */
190
190
  value: (string | number | null)[];
@@ -15,7 +15,7 @@
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../text-field-Bnei-lTb.cjs"),e=require("lit"),h=require("@luzmo/icons"),p=require("lit/decorators.js"),s=require("../base-5nDSSNeT.cjs"),u=require("../sized-mixin-DcvJLFeo.cjs"),v="@media (forced-colors: active){:host{--highcontrast-helptext-content-color-default: CanvasText;--highcontrast-helptext-icon-color-default: CanvasText}:host,.text,.icon{forced-color-adjust:none}}:host{--helptext-bottom-to-workflow-icon: 3px;color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--helptext-content-color-default)));font-family:var(--luzmo-helptext-font-family, var(--luzmo-font-family));font-weight:var(--luzmo-helptext-font-weight, var(--luzmo-font-weight));font-size:var(--luzmo-helptext-font-size, var(--helptext-font-size, var(--luzmo-font-size-s)));min-block-size:var(--luzmo-helptext-min-height, var(--helptext-min-height, 24px));display:flex}.icon{block-size:var(--luzmo-helptext-icon-size, var(--helptext-icon-size, 18px));inline-size:var(--luzmo-helptext-icon-size, var(--helptext-icon-size, 18px));flex-shrink:0;margin-inline-end:var(--luzmo-helptext-text-to-visual, var(--helptext-text-to-visual, 7px));padding-block-start:var(--luzmo-helptext-top-to-workflow-icon, var(--helptext-top-to-workflow-icon, 3px));padding-block-end:var(--luzmo-helptext-bottom-to-workflow-icon, var(--helptext-bottom-to-workflow-icon, 3px))}.text{line-height:var(--luzmo-helptext-line-height, var(--helptext-line-height, 1.3));padding-block-start:var(--luzmo-helptext-top-to-text, var(--helptext-top-to-text, 4px));padding-block-end:var(--luzmo-helptext-bottom-to-text, var(--helptext-bottom-to-text, 5px))}:host(:lang(ja)) .text,:host(:lang(ko)) .text,:host(:lang(zh)) .text{line-height:var(--luzmo-helptext-line-height-cjk, var(--helptext-line-height-cjk, 1.4))}:host([variant=neutral]) .text{color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--helptext-content-color-default)))}:host([variant=neutral]) .icon{color:var(--highcontrast-helptext-icon-color-default, var(--luzmo-helptext-icon-color-default, var(--helptext-icon-color-default)))}:host([variant=negative]) .text{color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--luzmo-negative-color-down)))}:host([variant=negative]) .icon{color:var(--highcontrast-helptext-icon-color-default, var(--luzmo-helptext-icon-color-default, var(--helptext-icon-color-default)))}:host([disabled]) .text{color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--luzmo-font-color)))}:host([disabled]) .icon{color:var(--highcontrast-helptext-icon-color-default, var(--luzmo-helptext-icon-color-default, var(--helptext-icon-color-default)))}:host{--helptext-line-height: 1.3;--helptext-content-color-default: var(--luzmo-font-color);--helptext-icon-color-default: var(--luzmo-font-color);--helptext-disabled-content-color: var(--luzmo-font-color-disabled)}:host([variant=neutral]){--helptext-content-color-default: var(var(--luzmo-font-color));--helptext-icon-color-default: var(var(--luzmo-font-color))}:host([variant=negative]){--helptext-content-color-default: var(var(--luzmo-negative-color));--helptext-icon-color-default: var(var(--luzmo-negative-color))}:host([disabled]){--helptext-content-color-default: var(--luzmo-font-color-disabled);--helptext-icon-color-default: var(--luzmo-font-color-disabled)}:host(:lang(ja)){--helptext-line-height-cjk: 1.4}:host(:lang(zh)){--helptext-line-height-cjk: 1.4}:host(:lang(ko)){--helptext-line-height-cjk: 1.4}:host([size=s]){--helptext-min-height: 24px;--helptext-icon-size: 16px;--helptext-font-size: 12px;--helptext-text-to-visual: 7px;--helptext-top-to-workflow-icon: 4px;--helptext-top-to-text: 4px;--helptext-bottom-to-text: 5px}:host{--helptext-min-height: 24px;--helptext-icon-size: 18px;--helptext-font-size: 12px;--helptext-text-to-visual: 7px;--helptext-top-to-workflow-icon: 3px;--helptext-top-to-text: 4px;--helptext-bottom-to-text: 5px}:host([size=l]){--helptext-min-height: 32px;--helptext-icon-size: 20px;--helptext-font-size: 14px;--helptext-text-to-visual: 8px;--helptext-top-to-workflow-icon: 6px;--helptext-top-to-text: 6px;--helptext-bottom-to-text: 5px}:host([size=xl]){--helptext-min-height: 40px;--helptext-icon-size: 22px;--helptext-font-size: 16px;--helptext-text-to-visual: 9px;--helptext-top-to-workflow-icon: 9px;--helptext-top-to-text: 9px;--helptext-bottom-to-text: 12px}";var f=Object.defineProperty,c=(l,r,i,d)=>{for(var t=void 0,n=l.length-1,a;n>=0;n--)(a=l[n])&&(t=a(r,i,t)||t);return t&&f(r,i,t),t};class o extends u.SizedMixin(s.LuzmoElement,{noDefaultSize:!0}){constructor(){super(...arguments),this.icon=!1,this.variant="neutral"}static get styles(){return[e.unsafeCSS(v)]}render(){return e.html`
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../text-field-JMrsh-zo.cjs"),e=require("lit"),h=require("@luzmo/icons"),p=require("lit/decorators.js"),s=require("../base-5nDSSNeT.cjs"),u=require("../sized-mixin-DcvJLFeo.cjs"),v="@media (forced-colors: active){:host{--highcontrast-helptext-content-color-default: CanvasText;--highcontrast-helptext-icon-color-default: CanvasText}:host,.text,.icon{forced-color-adjust:none}}:host{--helptext-bottom-to-workflow-icon: 3px;color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--helptext-content-color-default)));font-family:var(--luzmo-helptext-font-family, var(--luzmo-font-family));font-weight:var(--luzmo-helptext-font-weight, var(--luzmo-font-weight));font-size:var(--luzmo-helptext-font-size, var(--helptext-font-size, var(--luzmo-font-size-s)));min-block-size:var(--luzmo-helptext-min-height, var(--helptext-min-height, 24px));display:flex}.icon{block-size:var(--luzmo-helptext-icon-size, var(--helptext-icon-size, 18px));inline-size:var(--luzmo-helptext-icon-size, var(--helptext-icon-size, 18px));flex-shrink:0;margin-inline-end:var(--luzmo-helptext-text-to-visual, var(--helptext-text-to-visual, 7px));padding-block-start:var(--luzmo-helptext-top-to-workflow-icon, var(--helptext-top-to-workflow-icon, 3px));padding-block-end:var(--luzmo-helptext-bottom-to-workflow-icon, var(--helptext-bottom-to-workflow-icon, 3px))}.text{line-height:var(--luzmo-helptext-line-height, var(--helptext-line-height, 1.3));padding-block-start:var(--luzmo-helptext-top-to-text, var(--helptext-top-to-text, 4px));padding-block-end:var(--luzmo-helptext-bottom-to-text, var(--helptext-bottom-to-text, 5px))}:host(:lang(ja)) .text,:host(:lang(ko)) .text,:host(:lang(zh)) .text{line-height:var(--luzmo-helptext-line-height-cjk, var(--helptext-line-height-cjk, 1.4))}:host([variant=neutral]) .text{color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--helptext-content-color-default)))}:host([variant=neutral]) .icon{color:var(--highcontrast-helptext-icon-color-default, var(--luzmo-helptext-icon-color-default, var(--helptext-icon-color-default)))}:host([variant=negative]) .text{color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--luzmo-negative-color-down)))}:host([variant=negative]) .icon{color:var(--highcontrast-helptext-icon-color-default, var(--luzmo-helptext-icon-color-default, var(--helptext-icon-color-default)))}:host([disabled]) .text{color:var(--highcontrast-helptext-content-color-default, var(--luzmo-helptext-content-color-default, var(--luzmo-font-color)))}:host([disabled]) .icon{color:var(--highcontrast-helptext-icon-color-default, var(--luzmo-helptext-icon-color-default, var(--helptext-icon-color-default)))}:host{--helptext-line-height: 1.3;--helptext-content-color-default: var(--luzmo-font-color);--helptext-icon-color-default: var(--luzmo-font-color);--helptext-disabled-content-color: var(--luzmo-font-color-disabled)}:host([variant=neutral]){--helptext-content-color-default: var(var(--luzmo-font-color));--helptext-icon-color-default: var(var(--luzmo-font-color))}:host([variant=negative]){--helptext-content-color-default: var(var(--luzmo-negative-color));--helptext-icon-color-default: var(var(--luzmo-negative-color))}:host([disabled]){--helptext-content-color-default: var(--luzmo-font-color-disabled);--helptext-icon-color-default: var(--luzmo-font-color-disabled)}:host(:lang(ja)){--helptext-line-height-cjk: 1.4}:host(:lang(zh)){--helptext-line-height-cjk: 1.4}:host(:lang(ko)){--helptext-line-height-cjk: 1.4}:host([size=s]){--helptext-min-height: 24px;--helptext-icon-size: 16px;--helptext-font-size: 12px;--helptext-text-to-visual: 7px;--helptext-top-to-workflow-icon: 4px;--helptext-top-to-text: 4px;--helptext-bottom-to-text: 5px}:host{--helptext-min-height: 24px;--helptext-icon-size: 18px;--helptext-font-size: 12px;--helptext-text-to-visual: 7px;--helptext-top-to-workflow-icon: 3px;--helptext-top-to-text: 4px;--helptext-bottom-to-text: 5px}:host([size=l]){--helptext-min-height: 32px;--helptext-icon-size: 20px;--helptext-font-size: 14px;--helptext-text-to-visual: 8px;--helptext-top-to-workflow-icon: 6px;--helptext-top-to-text: 6px;--helptext-bottom-to-text: 5px}:host([size=xl]){--helptext-min-height: 40px;--helptext-icon-size: 22px;--helptext-font-size: 16px;--helptext-text-to-visual: 9px;--helptext-top-to-workflow-icon: 9px;--helptext-top-to-text: 9px;--helptext-bottom-to-text: 12px}";var f=Object.defineProperty,c=(l,r,i,d)=>{for(var t=void 0,n=l.length-1,a;n>=0;n--)(a=l[n])&&(t=a(r,i,t)||t);return t&&f(r,i,t),t};class o extends u.SizedMixin(s.LuzmoElement,{noDefaultSize:!0}){constructor(){super(...arguments),this.icon=!1,this.variant="neutral"}static get styles(){return[e.unsafeCSS(v)]}render(){return e.html`
19
19
  ${this.variant==="negative"&&this.icon?e.html` ${h.luzmoIcon(h.luzmoClose14)} `:e.nothing}
20
20
  <div class="text"><slot></slot></div>
21
21
  `}}c([p.property({type:Boolean,reflect:!0})],o.prototype,"icon");c([p.property({reflect:!0})],o.prototype,"variant");customElements.get("luzmo-text-field")||customElements.define("luzmo-text-field",x.LuzmoTextField);customElements.get("luzmo-help-text")||customElements.define("luzmo-help-text",o);exports.LuzmoTextField=x.LuzmoTextField;exports.LuzmoHelpText=o;
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { L as h } from "../text-field-CQ8t9NU2.js";
18
+ import { L as h } from "../text-field-BTEpwGFu.js";
19
19
  import { unsafeCSS as p, nothing as x, html as a } from "lit";
20
20
  import { luzmoIcon as s, luzmoClose14 as z } from "@luzmo/icons";
21
21
  import { property as c } from "lit/decorators.js";
@@ -120,7 +120,6 @@ export declare class LuzmoTextFieldBase extends LuzmoTextFieldBase_base {
120
120
  protected handleChange(): void;
121
121
  protected onFocus(): void;
122
122
  protected onBlur(_event: FocusEvent): void;
123
- protected handleKeyPress(event: KeyboardEvent): void;
124
123
  protected handleInputElementPointerdown(): void;
125
124
  protected renderStateIcons(): TemplateResult | typeof nothing;
126
125
  protected get displayValue(): string;
@@ -15,23 +15,23 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { unsafeCSS as m, html as o, nothing as p } from "lit";
19
- import { state as c, property as s, query as v } from "lit/decorators.js";
18
+ import { unsafeCSS as v, html as o, nothing as p } from "lit";
19
+ import { state as m, property as l, query as y } from "lit/decorators.js";
20
20
  import { ifDefined as r } from "lit/directives/if-defined.js";
21
21
  import { live as f } from "lit/directives/live.js";
22
- import { luzmoIcon as y, luzmoAlert as g, luzmoCheck as $ } from "@luzmo/icons";
23
- import { F as b } from "./focusable-BjvsvVam.js";
24
- import { S as x } from "./sized-mixin-cJbo3PKR.js";
25
- import { M as w } from "./manage-help-text-C9sCHK3R.js";
26
- import { t as S } from "./text-field.module-C2KVUJcX.js";
27
- var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, t = (h, e, l, a) => {
28
- for (var n = a > 1 ? void 0 : a ? _(e, l) : e, u = h.length - 1, d; u >= 0; u--)
29
- (d = h[u]) && (n = (a ? d(e, l, n) : d(n)) || n);
30
- return a && n && E(e, l, n), n;
22
+ import { luzmoIcon as c, luzmoAlert as g, luzmoCheck as $ } from "@luzmo/icons";
23
+ import { F as x } from "./focusable-BjvsvVam.js";
24
+ import { S as b } from "./sized-mixin-cJbo3PKR.js";
25
+ import { M as S } from "./manage-help-text-C9sCHK3R.js";
26
+ import { t as w } from "./text-field.module-C2KVUJcX.js";
27
+ var _ = Object.defineProperty, E = Object.getOwnPropertyDescriptor, t = (h, e, s, a) => {
28
+ for (var n = a > 1 ? void 0 : a ? E(e, s) : e, u = h.length - 1, d; u >= 0; u--)
29
+ (d = h[u]) && (n = (a ? d(e, s, n) : d(n)) || n);
30
+ return a && n && _(e, s, n), n;
31
31
  };
32
- const K = ["text", "url", "tel", "email", "password"];
33
- class i extends w(
34
- x(b, {
32
+ const q = ["text", "url", "tel", "email", "password"];
33
+ class i extends S(
34
+ b(x, {
35
35
  noDefaultSize: !0
36
36
  })
37
37
  ) {
@@ -39,20 +39,20 @@ class i extends w(
39
39
  super(...arguments), this.allowedKeys = "", this.focused = !1, this.invalid = !1, this.label = "", this.placeholder = "", this._type = "text", this.grows = !1, this.maxlength = -1, this.minlength = -1, this.multiline = !1, this.readonly = !1, this.rows = -1, this.valid = !1, this._value = "", this.quiet = !1, this.required = !1;
40
40
  }
41
41
  static get styles() {
42
- return [m(S)];
42
+ return [v(w)];
43
43
  }
44
44
  set type(e) {
45
- const l = this._type;
46
- this._type = e, this.requestUpdate("type", l);
45
+ const s = this._type;
46
+ this._type = e, this.requestUpdate("type", s);
47
47
  }
48
48
  get type() {
49
- return K.find((e) => e === this._type) ?? "text";
49
+ return q.find((e) => e === this._type) ?? "text";
50
50
  }
51
51
  set value(e) {
52
52
  if (e === this.value)
53
53
  return;
54
- const l = this._value;
55
- this._value = e, this.requestUpdate("value", l);
54
+ const s = this._value;
55
+ this._value = e, this.requestUpdate("value", s);
56
56
  }
57
57
  get value() {
58
58
  return this._value;
@@ -70,10 +70,10 @@ class i extends w(
70
70
  * @param [selectionDirection="none"] A string indicating the direction in which the selection is considered to
71
71
  * have been performed.
72
72
  */
73
- setSelectionRange(e, l, a = "none") {
73
+ setSelectionRange(e, s, a = "none") {
74
74
  this.inputElement.setSelectionRange(
75
75
  e,
76
- l,
76
+ s,
77
77
  a
78
78
  );
79
79
  }
@@ -105,27 +105,13 @@ class i extends w(
105
105
  onBlur(e) {
106
106
  this.focused = !this.readonly && !1;
107
107
  }
108
- handleKeyPress(e) {
109
- this.dispatchEvent(
110
- new KeyboardEvent("keypress", {
111
- bubbles: !0,
112
- composed: !0,
113
- key: e.key,
114
- code: e.code,
115
- ctrlKey: e.ctrlKey,
116
- shiftKey: e.shiftKey,
117
- altKey: e.altKey,
118
- metaKey: e.metaKey
119
- })
120
- );
121
- }
122
108
  handleInputElementPointerdown() {
123
109
  }
124
110
  renderStateIcons() {
125
111
  return this.invalid ? o`
126
- <div id="invalid" class="icon">${y(g)}</div>
112
+ <div id="invalid" class="icon">${c(g)}</div>
127
113
  ` : this.valid ? o`
128
- <div id="valid" class="icon">${y($)}</div>
114
+ <div id="valid" class="icon">${c($)}</div>
129
115
  ` : p;
130
116
  }
131
117
  get displayValue() {
@@ -153,7 +139,6 @@ class i extends w(
153
139
  .value=${this.displayValue}
154
140
  @change=${this.handleChange}
155
141
  @input=${this.handleInput}
156
- @keypress=${this.handleKeyPress}
157
142
  @focus=${this.onFocus}
158
143
  @blur=${this.onBlur}
159
144
  ?disabled=${this.disabled}
@@ -182,7 +167,6 @@ class i extends w(
182
167
  .value=${f(this.displayValue)}
183
168
  @change=${this.handleChange}
184
169
  @input=${this.handleInput}
185
- @keypress=${this.handleKeyPress}
186
170
  @pointerdown=${this.handleInputElementPointerdown}
187
171
  @focus=${this.onFocus}
188
172
  @blur=${this.onBlur}
@@ -216,89 +200,89 @@ class i extends w(
216
200
  }
217
201
  }
218
202
  t([
219
- c()
203
+ m()
220
204
  ], i.prototype, "appliedLabel", 2);
221
205
  t([
222
- s({ attribute: "allowed-keys" })
206
+ l({ attribute: "allowed-keys" })
223
207
  ], i.prototype, "allowedKeys", 2);
224
208
  t([
225
- s({ type: Boolean, reflect: !0 })
209
+ l({ type: Boolean, reflect: !0 })
226
210
  ], i.prototype, "focused", 2);
227
211
  t([
228
- v(".input:not(#sizer)")
212
+ y(".input:not(#sizer)")
229
213
  ], i.prototype, "inputElement", 2);
230
214
  t([
231
- s({ type: Boolean, reflect: !0 })
215
+ l({ type: Boolean, reflect: !0 })
232
216
  ], i.prototype, "invalid", 2);
233
217
  t([
234
- s()
218
+ l()
235
219
  ], i.prototype, "label", 2);
236
220
  t([
237
- s({ type: String, reflect: !0 })
221
+ l({ type: String, reflect: !0 })
238
222
  ], i.prototype, "name", 2);
239
223
  t([
240
- s()
224
+ l()
241
225
  ], i.prototype, "placeholder", 2);
242
226
  t([
243
- c()
227
+ m()
244
228
  ], i.prototype, "type", 1);
245
229
  t([
246
- s({ attribute: "type", reflect: !0 })
230
+ l({ attribute: "type", reflect: !0 })
247
231
  ], i.prototype, "_type", 2);
248
232
  t([
249
- s()
233
+ l()
250
234
  ], i.prototype, "pattern", 2);
251
235
  t([
252
- s({ type: Boolean, reflect: !0 })
236
+ l({ type: Boolean, reflect: !0 })
253
237
  ], i.prototype, "grows", 2);
254
238
  t([
255
- s({ type: Number })
239
+ l({ type: Number })
256
240
  ], i.prototype, "maxlength", 2);
257
241
  t([
258
- s({ type: Number })
242
+ l({ type: Number })
259
243
  ], i.prototype, "minlength", 2);
260
244
  t([
261
- s({ type: Boolean, reflect: !0 })
245
+ l({ type: Boolean, reflect: !0 })
262
246
  ], i.prototype, "multiline", 2);
263
247
  t([
264
- s({ type: Boolean, reflect: !0 })
248
+ l({ type: Boolean, reflect: !0 })
265
249
  ], i.prototype, "readonly", 2);
266
250
  t([
267
- s({ type: Number })
251
+ l({ type: Number })
268
252
  ], i.prototype, "rows", 2);
269
253
  t([
270
- s({ type: Boolean, reflect: !0 })
254
+ l({ type: Boolean, reflect: !0 })
271
255
  ], i.prototype, "valid", 2);
272
256
  t([
273
- s({ type: String })
257
+ l({ type: String })
274
258
  ], i.prototype, "value", 1);
275
259
  t([
276
- s({ type: Boolean, reflect: !0 })
260
+ l({ type: Boolean, reflect: !0 })
277
261
  ], i.prototype, "quiet", 2);
278
262
  t([
279
- s({ type: Boolean, reflect: !0 })
263
+ l({ type: Boolean, reflect: !0 })
280
264
  ], i.prototype, "required", 2);
281
265
  t([
282
- s({ type: String, reflect: !0 })
266
+ l({ type: String, reflect: !0 })
283
267
  ], i.prototype, "autocomplete", 2);
284
- class q extends i {
268
+ class B extends i {
285
269
  constructor() {
286
270
  super(...arguments), this._value = "";
287
271
  }
288
272
  set value(e) {
289
273
  if (e === this.value)
290
274
  return;
291
- const l = this._value;
292
- this._value = e, this.requestUpdate("value", l);
275
+ const s = this._value;
276
+ this._value = e, this.requestUpdate("value", s);
293
277
  }
294
278
  get value() {
295
279
  return this._value;
296
280
  }
297
281
  }
298
282
  t([
299
- s({ type: String })
300
- ], q.prototype, "value", 1);
283
+ l({ type: String })
284
+ ], B.prototype, "value", 1);
301
285
  export {
302
- q as L,
286
+ B as L,
303
287
  i as a
304
288
  };