@luzmo/lucero 0.0.17 → 0.0.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/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +107 -105
- package/components/multi-picker/index.cjs +127 -0
- package/components/multi-picker/index.d.ts +7 -0
- package/components/multi-picker/index.js +502 -0
- package/components/multi-picker/multi-picker.d.ts +158 -0
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/picker-dwg8oHVQ.cjs +123 -0
- package/components/picker-h9eY75xS.js +460 -0
- package/components/{picker-BxEG2NdV.js → strategies-CzfvQU_H.js} +75 -511
- package/components/strategies-D_cIzAJE.cjs +18 -0
- package/custom-elements.json +1 -1
- package/index.d.ts +1 -0
- package/package.json +6 -1
- package/components/picker-DROquiIZ.cjs +0 -123
|
@@ -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 h=require("@luzmo/icons"),o=require("../base-B7Pfl2if.cjs"),b=require("../state-C5I1gP3G.cjs"),u=require("../if-defined-B56xGmAg.cjs"),m=require("../observe-slot-presence-bc9chhsi.cjs"),p=require("../observe-slot-text-CrYB2Pj-.cjs"),v=require("../slottable-request-event-BfUUt1Mh.cjs"),d=require("../picker-
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("@luzmo/icons"),o=require("../base-B7Pfl2if.cjs"),b=require("../state-C5I1gP3G.cjs"),u=require("../if-defined-B56xGmAg.cjs"),m=require("../observe-slot-presence-bc9chhsi.cjs"),p=require("../observe-slot-text-CrYB2Pj-.cjs"),v=require("../slottable-request-event-BfUUt1Mh.cjs"),d=require("../picker-dwg8oHVQ.cjs");require("../action-button/index.cjs");require("../icon/index.cjs");require("../overlay/index.cjs");require("../popover/index.cjs");const y=":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{display:none}::slotted([slot=icon]){flex-shrink:0}.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--luzmo-action-button-edge-to-text, var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only, var(--action-button-edge-to-visual-only))) * -1)}luzmo-overlay:not(:defined){display:none}";var f=Object.defineProperty,z=Object.getOwnPropertyDescriptor,c=(l,t,s,i)=>{for(var e=i>1?void 0:i?z(t,s):t,r=l.length-1,a;r>=0;r--)(a=l[r])&&(e=(i?a(t,s,e):a(e))||e);return i&&e&&f(t,s,e),e};class n extends m.ObserveSlotPresence(p.ObserveSlotText(d.LuzmoPickerBase,"label"),'[slot="label-only"]'){constructor(){super(...arguments),this.selects=void 0,this.listRole="menu",this.itemRole="menuitem",this.handleSlottableRequest=t=>{this.dispatchEvent(new v.SlottableRequestEvent(t.name,t.data))}}static get styles(){return[o.r(y)]}get hasLabel(){return this.slotHasContent}get labelOnly(){return this.slotContentIsPresent}get buttonContent(){return[o.x`
|
|
19
19
|
${this.labelOnly?o.x``:o.x`
|
|
20
20
|
<slot
|
|
21
21
|
name="icon"
|
|
@@ -22,7 +22,7 @@ import { o as a } from "../if-defined-BSAr_4u4.js";
|
|
|
22
22
|
import { O as p } from "../observe-slot-presence-CmVi0zTc.js";
|
|
23
23
|
import { O as f } from "../observe-slot-text-ggb4kKgY.js";
|
|
24
24
|
import { S as g } from "../slottable-request-event-DggLA4Rx.js";
|
|
25
|
-
import { L as x, D as v } from "../picker-
|
|
25
|
+
import { L as x, D as v } from "../picker-h9eY75xS.js";
|
|
26
26
|
import "../action-button/index.js";
|
|
27
27
|
import "../icon/index.js";
|
|
28
28
|
import "../overlay/index.js";
|
package/components/index.cjs
CHANGED
|
@@ -15,4 +15,4 @@
|
|
|
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 t=require("./accordion/index.cjs"),a=require("./action-bar/index.cjs"),z=require("./action-button/index.cjs");require("./action-group/index.cjs");const d=require("./action-menu/index.cjs"),q=require("./avatar/index.cjs"),x=require("./button/index.cjs"),p=require("./button-group/index.cjs"),C=require("./index-BziWAe4P.cjs"),v=require("./checkbox/index.cjs"),S=require("./color-area/index.cjs"),_=require("./color-field/index.cjs"),b=require("./color-handle/index.cjs");require("./color-loupe/index.cjs");const g=require("./color-menu/index.cjs"),T=require("./color-picker/index.cjs"),I=require("./color-slider/index.cjs"),P=require("./date-time-picker/index.cjs"),M=require("./divider/index.cjs");require("./field-group/index.cjs");require("./field-label/index.cjs");const A=require("./icon/index.cjs"),F=require("./infield-button/index.cjs"),
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./accordion/index.cjs"),a=require("./action-bar/index.cjs"),z=require("./action-button/index.cjs");require("./action-group/index.cjs");const d=require("./action-menu/index.cjs"),q=require("./avatar/index.cjs"),x=require("./button/index.cjs"),p=require("./button-group/index.cjs"),C=require("./index-BziWAe4P.cjs"),v=require("./checkbox/index.cjs"),S=require("./color-area/index.cjs"),_=require("./color-field/index.cjs"),b=require("./color-handle/index.cjs");require("./color-loupe/index.cjs");const g=require("./color-menu/index.cjs"),T=require("./color-picker/index.cjs"),I=require("./color-slider/index.cjs"),P=require("./date-time-picker/index.cjs"),M=require("./divider/index.cjs");require("./field-group/index.cjs");require("./field-label/index.cjs");const A=require("./icon/index.cjs"),F=require("./infield-button/index.cjs"),k=require("./label/index.cjs"),i=require("./menu/index.cjs"),y=require("./multi-language-field/index.cjs"),B=require("./multi-picker/index.cjs"),O=require("./number-field/index.cjs"),r=require("./overlay/index.cjs");require("./picker/index.cjs");const R=require("./picker-button/index.cjs");require("./popover/index.cjs");require("./progress-circle/index.cjs");const n=require("./radio/index.cjs"),h=require("./search/index.cjs"),G=require("./slider/index.cjs"),l=require("./swatch/index.cjs"),D=require("./switch/index.cjs"),m=require("./tags/index.cjs"),f=require("./text-field/index.cjs"),E=require("./toast/index.cjs"),N=require("./tooltip/index.cjs"),w=require("./unit-input/index.cjs"),c=require("./base-B7Pfl2if.cjs"),U=require("./focus-visible-B0P9aY_G.cjs"),H=require("./focusable-DGWL1v1p.cjs"),o=require("./platform-BiXhwqk3.cjs"),s=require("./sized-mixin-D9LkrMjb.cjs"),V=require("./streaming-listener-KVex1WWB.cjs"),K=require("./action-group-Uimj-MJP.cjs"),W=require("./clear-button-CyzA8riE.cjs"),j=require("./close-button-BQJ2wHkM.cjs"),J=require("./color-loupe-SskbNeMp.cjs"),Q=require("./field-group-DSY2HUoj.cjs"),X=require("./field-label-CjsQ3ujK.cjs"),e=require("./overlay-Deh6Ki6I.cjs"),L=require("./slottable-request-event-BfUUt1Mh.cjs"),u=require("./picker-dwg8oHVQ.cjs"),Y=require("./popover-Ddx-P2RQ.cjs"),Z=require("./progress-circle-NNbCMK2i.cjs"),$=require("./text-field-mxJCYues.cjs");exports.LuzmoAccordion=t.LuzmoAccordion;exports.LuzmoAccordionItem=t.LuzmoAccordionItem;exports.LuzmoActionBar=a.LuzmoActionBar;exports.LuzmoActionButton=z.LuzmoActionButton;exports.LuzmoActionMenu=d.LuzmoActionMenu;exports.LuzmoAvatar=q.LuzmoAvatar;exports.LuzmoButton=x.LuzmoButton;exports.LuzmoButtonGroup=p.LuzmoButtonGroup;exports.LuzmoCalendar=C.LuzmoCalendar;exports.LuzmoCheckbox=v.LuzmoCheckbox;exports.LuzmoColorArea=S.LuzmoColorArea;exports.LuzmoColorField=_.LuzmoColorField;exports.LuzmoColorHandle=b.LuzmoColorHandle;exports.LuzmoColorMenu=g.LuzmoColorMenu;exports.LuzmoColorPicker=T.LuzmoColorPicker;exports.LuzmoColorSlider=I.LuzmoColorSlider;exports.LuzmoDateTimePicker=P.LuzmoDateTimePicker;exports.LuzmoDivider=M.LuzmoDivider;exports.LuzmoIcon=A.LuzmoIcon;exports.LuzmoInfieldButton=F.LuzmoInfieldButton;exports.LuzmoLabel=k.LuzmoLabel;exports.LuzmoMenu=i.LuzmoMenu;exports.LuzmoMenuDivider=i.LuzmoMenuDivider;exports.LuzmoMenuGroup=i.LuzmoMenuGroup;exports.LuzmoMenuItem=i.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=i.MenuItemAddedOrUpdatedEvent;exports.LuzmoMultiLangField=y.LuzmoMultiLangField;exports.LuzmoMultiPicker=B.LuzmoMultiPicker;exports.LuzmoNumberField=O.LuzmoNumberField;exports.LuzmoOverlayTrigger=r.LuzmoOverlayTrigger;exports.OverlayTriggerDirective=r.OverlayTriggerDirective;exports.SlottableRequestDirective=r.SlottableRequestDirective;exports.openOverlay=r.openOverlay;exports.slottableRequest=r.slottableRequest;exports.trigger=r.trigger;exports.LuzmoPickerButton=R.LuzmoPickerButton;exports.LuzmoRadio=n.LuzmoRadio;exports.LuzmoRadioGroup=n.LuzmoRadioGroup;exports.LuzmoSearch=h.LuzmoSearch;exports.LuzmoSlider=G.LuzmoSlider;exports.LuzmoSwatch=l.LuzmoSwatch;exports.LuzmoSwatchGroup=l.LuzmoSwatchGroup;exports.LuzmoSwitch=D.LuzmoSwitch;exports.LuzmoTag=m.LuzmoTag;exports.LuzmoTags=m.LuzmoTags;exports.LuzmoHelpText=f.LuzmoHelpText;exports.LuzmoToast=E.LuzmoToast;exports.LuzmoTooltip=N.LuzmoTooltip;exports.LuzmoUnitInput=w.LuzmoUnitInput;exports.LuzmoElement=c.LuzmoElement;exports.LuzmoMixin=c.LuzmoMixin;exports.FocusVisiblePolyfillMixin=U.FocusVisiblePolyfillMixin;exports.Focusable=H.Focusable;exports.isAndroid=o.isAndroid;exports.isAppleDevice=o.isAppleDevice;exports.isChrome=o.isChrome;exports.isFirefox=o.isFirefox;exports.isIOS=o.isIOS;exports.isIPad=o.isIPad;exports.isIPhone=o.isIPhone;exports.isMac=o.isMac;exports.isSeamonkey=o.isSeamonkey;exports.isWebKit=o.isWebKit;exports.ElementSizes=s.ElementSizes;exports.SizedMixin=s.SizedMixin;exports.streamingListener=V.streamingListener;exports.LuzmoActionGroup=K.LuzmoActionGroup;exports.LuzmoClearButton=W.LuzmoClearButton;exports.LuzmoCloseButton=j.LuzmoCloseButton;exports.LuzmoColorLoupe=J.LuzmoColorLoupe;exports.LuzmoFieldGroup=Q.LuzmoFieldGroup;exports.LuzmoFieldLabel=X.LuzmoFieldLabel;exports.ClickController=e.ClickController;exports.HoverController=e.HoverController;exports.InteractionController=e.InteractionController;exports.InteractionTypes=e.InteractionTypes;exports.LONGPRESS_INSTRUCTIONS=e.LONGPRESS_INSTRUCTIONS;exports.LongpressController=e.LongpressController;exports.LuzmoAbstractOverlay=e.LuzmoAbstractOverlay;exports.LuzmoOverlay=e.LuzmoOverlay;exports.PlacementController=e.PlacementController;exports.VirtualTrigger=e.VirtualTrigger;exports.guaranteedAllTransitionend=e.guaranteedAllTransitionend;exports.nextFrame=e.nextFrame;exports.noop=e.noop;exports.overlayTimer=e.overlayTimer;exports.placementUpdatedSymbol=e.placementUpdatedSymbol;exports.SlottableRequestEvent=L.SlottableRequestEvent;exports.removeSlottableRequest=L.removeSlottableRequest;exports.DESCRIPTION_ID=u.DESCRIPTION_ID;exports.LuzmoPicker=u.LuzmoPicker;exports.LuzmoPickerBase=u.LuzmoPickerBase;exports.LuzmoPopover=Y.LuzmoPopover;exports.LuzmoProgressCircle=Z.LuzmoProgressCircle;exports.LuzmoTextField=$.LuzmoTextField;
|
package/components/index.js
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
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 { LuzmoAccordion as
|
|
19
|
-
import { LuzmoActionBar as
|
|
18
|
+
import { LuzmoAccordion as c, LuzmoAccordionItem as s } from "./accordion/index.js";
|
|
19
|
+
import { LuzmoActionBar as f } from "./action-bar/index.js";
|
|
20
20
|
import { LuzmoActionButton as x } from "./action-button/index.js";
|
|
21
21
|
import "./action-group/index.js";
|
|
22
22
|
import { LuzmoActionMenu as b } from "./action-menu/index.js";
|
|
@@ -26,7 +26,7 @@ import { LuzmoButtonGroup as C } from "./button-group/index.js";
|
|
|
26
26
|
import { L as w } from "./index-vWdA-LXe.js";
|
|
27
27
|
import { LuzmoCheckbox as T } from "./checkbox/index.js";
|
|
28
28
|
import { LuzmoColorArea as P } from "./color-area/index.js";
|
|
29
|
-
import { LuzmoColorField as
|
|
29
|
+
import { LuzmoColorField as F } from "./color-field/index.js";
|
|
30
30
|
import { LuzmoColorHandle as B } from "./color-handle/index.js";
|
|
31
31
|
import "./color-loupe/index.js";
|
|
32
32
|
import { LuzmoColorMenu as D } from "./color-menu/index.js";
|
|
@@ -41,40 +41,41 @@ import { LuzmoInfieldButton as J } from "./infield-button/index.js";
|
|
|
41
41
|
import { LuzmoLabel as X } from "./label/index.js";
|
|
42
42
|
import { LuzmoMenu as Z, LuzmoMenuDivider as $, LuzmoMenuGroup as oo, LuzmoMenuItem as ro, MenuItemAddedOrUpdatedEvent as eo } from "./menu/index.js";
|
|
43
43
|
import { LuzmoMultiLangField as mo } from "./multi-language-field/index.js";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
44
|
+
import { LuzmoMultiPicker as to } from "./multi-picker/index.js";
|
|
45
|
+
import { LuzmoNumberField as io } from "./number-field/index.js";
|
|
46
|
+
import { LuzmoOverlayTrigger as no, OverlayTriggerDirective as co, SlottableRequestDirective as so, openOverlay as po, slottableRequest as fo, trigger as xo } from "./overlay/index.js";
|
|
46
47
|
import "./picker/index.js";
|
|
47
|
-
import { LuzmoPickerButton as
|
|
48
|
+
import { LuzmoPickerButton as bo } from "./picker-button/index.js";
|
|
48
49
|
import "./popover/index.js";
|
|
49
50
|
import "./progress-circle/index.js";
|
|
50
|
-
import { LuzmoRadio as
|
|
51
|
-
import { LuzmoSearch as
|
|
52
|
-
import { LuzmoSlider as
|
|
53
|
-
import { LuzmoSwatch as
|
|
54
|
-
import { LuzmoSwitch as
|
|
55
|
-
import { LuzmoTag as
|
|
56
|
-
import { LuzmoHelpText as
|
|
57
|
-
import { LuzmoToast as
|
|
58
|
-
import { LuzmoTooltip as
|
|
59
|
-
import { LuzmoUnitInput as
|
|
60
|
-
import { a as
|
|
61
|
-
import { F as
|
|
62
|
-
import { F as
|
|
63
|
-
import { j as
|
|
64
|
-
import { E as
|
|
65
|
-
import { s as
|
|
66
|
-
import { L as
|
|
67
|
-
import { L as
|
|
68
|
-
import { L as
|
|
69
|
-
import { L as
|
|
70
|
-
import { L as
|
|
71
|
-
import { L as
|
|
72
|
-
import { C as
|
|
73
|
-
import { S as
|
|
74
|
-
import { D as
|
|
75
|
-
import { LuzmoPopover as
|
|
76
|
-
import { L as
|
|
77
|
-
import { L as
|
|
51
|
+
import { LuzmoRadio as ho, LuzmoRadioGroup as vo } from "./radio/index.js";
|
|
52
|
+
import { LuzmoSearch as So } from "./search/index.js";
|
|
53
|
+
import { LuzmoSlider as ko } from "./slider/index.js";
|
|
54
|
+
import { LuzmoSwatch as Io, LuzmoSwatchGroup as To } from "./swatch/index.js";
|
|
55
|
+
import { LuzmoSwitch as Po } from "./switch/index.js";
|
|
56
|
+
import { LuzmoTag as Fo, LuzmoTags as Oo } from "./tags/index.js";
|
|
57
|
+
import { LuzmoHelpText as Ro } from "./text-field/index.js";
|
|
58
|
+
import { LuzmoToast as Eo } from "./toast/index.js";
|
|
59
|
+
import { LuzmoTooltip as Ho } from "./tooltip/index.js";
|
|
60
|
+
import { LuzmoUnitInput as Uo } from "./unit-input/index.js";
|
|
61
|
+
import { a as Vo, L as _o } from "./base-CawdqE7p.js";
|
|
62
|
+
import { F as Ko } from "./focus-visible-DBlJGoEW.js";
|
|
63
|
+
import { F as Jo } from "./focusable-cj2QhwDT.js";
|
|
64
|
+
import { j as Xo, d as Yo, e as Zo, h as $o, c as or, b as rr, a as er, i as lr, g as mr, f as ur } from "./platform-BM-uMWpX.js";
|
|
65
|
+
import { E as ar, S as ir } from "./sized-mixin-BxMraZLS.js";
|
|
66
|
+
import { s as nr } from "./streaming-listener-CCalHg57.js";
|
|
67
|
+
import { L as sr } from "./action-group-enfc-YnW.js";
|
|
68
|
+
import { L as fr } from "./clear-button-DB34Vybj.js";
|
|
69
|
+
import { L as xr } from "./close-button-DN2cjFRq.js";
|
|
70
|
+
import { L as br } from "./color-loupe-DxcqXoJ6.js";
|
|
71
|
+
import { L as hr } from "./field-group-DAhrTCfl.js";
|
|
72
|
+
import { L as yr } from "./field-label-CAFfGxEL.js";
|
|
73
|
+
import { C as Cr, H as kr, b as wr, I as Ir, c as Tr, d as Ar, L as Pr, e as Mr, P as Fr, V as Or, g as Br, a as Rr, n as Dr, o as Er, p as Gr } from "./overlay-CJ9by37f.js";
|
|
74
|
+
import { S as Nr, r as Ur } from "./slottable-request-event-DggLA4Rx.js";
|
|
75
|
+
import { D as Vr, a as _r, L as jr } from "./picker-h9eY75xS.js";
|
|
76
|
+
import { LuzmoPopover as Wr } from "./popover-Bx4ZDHk4.js";
|
|
77
|
+
import { L as Qr } from "./progress-circle-Be24kv6B.js";
|
|
78
|
+
import { L as Yr } from "./text-field-BTnBJoP9.js";
|
|
78
79
|
const r = () => {
|
|
79
80
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
80
81
|
const o = document.createElement("style");
|
|
@@ -83,43 +84,43 @@ const r = () => {
|
|
|
83
84
|
};
|
|
84
85
|
r();
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
Cr as ClickController,
|
|
88
|
+
Vr as DESCRIPTION_ID,
|
|
89
|
+
ar as ElementSizes,
|
|
90
|
+
Ko as FocusVisiblePolyfillMixin,
|
|
91
|
+
Jo as Focusable,
|
|
92
|
+
kr as HoverController,
|
|
93
|
+
wr as InteractionController,
|
|
94
|
+
Ir as InteractionTypes,
|
|
95
|
+
Tr as LONGPRESS_INSTRUCTIONS,
|
|
96
|
+
Ar as LongpressController,
|
|
97
|
+
Pr as LuzmoAbstractOverlay,
|
|
98
|
+
c as LuzmoAccordion,
|
|
99
|
+
s as LuzmoAccordionItem,
|
|
100
|
+
f as LuzmoActionBar,
|
|
100
101
|
x as LuzmoActionButton,
|
|
101
|
-
|
|
102
|
+
sr as LuzmoActionGroup,
|
|
102
103
|
b as LuzmoActionMenu,
|
|
103
104
|
h as LuzmoAvatar,
|
|
104
105
|
y as LuzmoButton,
|
|
105
106
|
C as LuzmoButtonGroup,
|
|
106
107
|
w as LuzmoCalendar,
|
|
107
108
|
T as LuzmoCheckbox,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
fr as LuzmoClearButton,
|
|
110
|
+
xr as LuzmoCloseButton,
|
|
110
111
|
P as LuzmoColorArea,
|
|
111
|
-
|
|
112
|
+
F as LuzmoColorField,
|
|
112
113
|
B as LuzmoColorHandle,
|
|
113
|
-
|
|
114
|
+
br as LuzmoColorLoupe,
|
|
114
115
|
D as LuzmoColorMenu,
|
|
115
116
|
G as LuzmoColorPicker,
|
|
116
117
|
N as LuzmoColorSlider,
|
|
117
118
|
q as LuzmoDateTimePicker,
|
|
118
119
|
_ as LuzmoDivider,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
Vo as LuzmoElement,
|
|
121
|
+
hr as LuzmoFieldGroup,
|
|
122
|
+
yr as LuzmoFieldLabel,
|
|
123
|
+
Ro as LuzmoHelpText,
|
|
123
124
|
K as LuzmoIcon,
|
|
124
125
|
J as LuzmoInfieldButton,
|
|
125
126
|
X as LuzmoLabel,
|
|
@@ -127,54 +128,55 @@ export {
|
|
|
127
128
|
$ as LuzmoMenuDivider,
|
|
128
129
|
oo as LuzmoMenuGroup,
|
|
129
130
|
ro as LuzmoMenuItem,
|
|
130
|
-
|
|
131
|
+
_o as LuzmoMixin,
|
|
131
132
|
mo as LuzmoMultiLangField,
|
|
132
|
-
to as
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
Wr as
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
vo as
|
|
143
|
-
So as
|
|
144
|
-
ko as
|
|
145
|
-
|
|
146
|
-
To as
|
|
147
|
-
Po as
|
|
148
|
-
Fo as
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
Eo as
|
|
152
|
-
Ho as
|
|
133
|
+
to as LuzmoMultiPicker,
|
|
134
|
+
io as LuzmoNumberField,
|
|
135
|
+
Mr as LuzmoOverlay,
|
|
136
|
+
no as LuzmoOverlayTrigger,
|
|
137
|
+
_r as LuzmoPicker,
|
|
138
|
+
jr as LuzmoPickerBase,
|
|
139
|
+
bo as LuzmoPickerButton,
|
|
140
|
+
Wr as LuzmoPopover,
|
|
141
|
+
Qr as LuzmoProgressCircle,
|
|
142
|
+
ho as LuzmoRadio,
|
|
143
|
+
vo as LuzmoRadioGroup,
|
|
144
|
+
So as LuzmoSearch,
|
|
145
|
+
ko as LuzmoSlider,
|
|
146
|
+
Io as LuzmoSwatch,
|
|
147
|
+
To as LuzmoSwatchGroup,
|
|
148
|
+
Po as LuzmoSwitch,
|
|
149
|
+
Fo as LuzmoTag,
|
|
150
|
+
Oo as LuzmoTags,
|
|
151
|
+
Yr as LuzmoTextField,
|
|
152
|
+
Eo as LuzmoToast,
|
|
153
|
+
Ho as LuzmoTooltip,
|
|
154
|
+
Uo as LuzmoUnitInput,
|
|
153
155
|
eo as MenuItemAddedOrUpdatedEvent,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
156
|
+
co as OverlayTriggerDirective,
|
|
157
|
+
Fr as PlacementController,
|
|
158
|
+
ir as SizedMixin,
|
|
159
|
+
so as SlottableRequestDirective,
|
|
160
|
+
Nr as SlottableRequestEvent,
|
|
161
|
+
Or as VirtualTrigger,
|
|
162
|
+
Br as guaranteedAllTransitionend,
|
|
163
|
+
Xo as isAndroid,
|
|
164
|
+
Yo as isAppleDevice,
|
|
165
|
+
Zo as isChrome,
|
|
166
|
+
$o as isFirefox,
|
|
167
|
+
or as isIOS,
|
|
168
|
+
rr as isIPad,
|
|
169
|
+
er as isIPhone,
|
|
170
|
+
lr as isMac,
|
|
171
|
+
mr as isSeamonkey,
|
|
172
|
+
ur as isWebKit,
|
|
173
|
+
Rr as nextFrame,
|
|
174
|
+
Dr as noop,
|
|
175
|
+
po as openOverlay,
|
|
176
|
+
Er as overlayTimer,
|
|
177
|
+
Gr as placementUpdatedSymbol,
|
|
178
|
+
Ur as removeSlottableRequest,
|
|
179
|
+
fo as slottableRequest,
|
|
180
|
+
nr as streamingListener,
|
|
181
|
+
xo as trigger
|
|
180
182
|
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../base-B7Pfl2if.cjs"),f=require("../state-C5I1gP3G.cjs"),g=require("../query-BL-TJj7K.cjs"),S=require("../class-map-Buyb1CLm.cjs"),p=require("../if-defined-B56xGmAg.cjs"),$=require("../style-map-uMq-yDJ3.cjs"),w=require("../focusable-DGWL1v1p.cjs"),I=require("../dependency-manger-C5HCkMMB.cjs"),d=require("../strategies-D_cIzAJE.cjs"),C=require("../pending-state-Do522lTd.cjs"),E=require("../sized-mixin-D9LkrMjb.cjs"),u=require("@luzmo/icons");require("../menu/index.cjs");require("../overlay/index.cjs");require("../progress-circle/index.cjs");require("../tooltip/index.cjs");var x=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(c,e,t,i)=>{for(var o=i>1?void 0:i?L(e,t):e,a=c.length-1,r;a>=0;a--)(r=c[a])&&(o=(i?r(e,t,o):r(o))||o);return i&&o&&x(e,t,o),o};const q=()=>s.x`
|
|
19
|
+
<div class="disclosure-icon icon">
|
|
20
|
+
${u.luzmoIcon(u.luzmoAngleDown,{className:"indicator"})}
|
|
21
|
+
</div>
|
|
22
|
+
`,z=()=>s.x`
|
|
23
|
+
<div class="icon-container validation-icon icon">
|
|
24
|
+
${u.luzmoIcon(u.luzmoAlert)}
|
|
25
|
+
</div>
|
|
26
|
+
`,v="option-picker";class n extends E.SizedMixin(w.Focusable,{noDefaultSize:!0}){constructor(){super(),this.disabled=!1,this.focused=!1,this.variant="checkmarks",this.invalid=!1,this.pending=!1,this.pendingLabel="Pending",this.multiItemLabel="items selected",this.open=!1,this.readonly=!1,this.placement="bottom-start",this.quiet=!1,this.value="",this.values=[],this.selects="multiple",this.dependencyManager=new I.DependencyManagerController(this),this.isMobile=new d.MatchMediaController(this,d.IS_MOBILE),this.listRole="listbox",this.itemRole="option",this.hasRenderedOverlay=!1,this._selfManageFocusElement=!1,this.deprecatedMenu=null,this.selectionPromise=Promise.resolve(),this.willManageSelection=!1,this.recentlyConnected=!1,this.enterKeydownOn=null,this.handleSlottableRequest=e=>{},this.applyFocusElementLabel=(e,t)=>{this.appliedLabel=e,this.labelAlignment=t.sideAligned?"inline":void 0},this.handleKeydown=e=>{this.focused=!0,!(e.code!=="ArrowDown"&&e.code!=="ArrowUp")&&(e.stopPropagation(),e.preventDefault(),this.toggle(!0))},this.renderAngleIcon=()=>q(),this.renderAlertIcon=()=>z(),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.pendingStateController=new C.PendingStateController(this)}get selectedItems(){return this._selectedItems}get buttonLabelContent(){return this._buttonLabelContent||{icon:[],content:[]}}get selfManageFocusElement(){return this._selfManageFocusElement}get menuItems(){return this.optionsMenu.childItems}set selectedItems(e){var o,a,r;const t=(o=e==null?void 0:e[0])==null?void 0:o.querySelector('[slot="icon"]');this.buttonLabelContent=((a=e??[])==null?void 0:a.length)>1?{icon:null,content:[s.x`<span class="count">${e==null?void 0:e.length}</span>
|
|
27
|
+
<span class="label">${this.multiItemLabel}</span>`]}:(r=e==null?void 0:e[0])==null?void 0:r.itemChildren;const i=this.selectedItems;this._selectedItems=e,this._selectedItemIcon=(t==null?void 0:t.icon)??void 0,this.requestUpdate("selectedItems",i)}get focusElement(){return this.open?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){this.strategy&&(this.strategy.preventNextToggle="no");const t=e.target;e.stopPropagation(),e.cancelable?this.setValuesFromItems(t.selectedItems,e):(this.open=!1,this.strategy&&(this.strategy.open=!1))}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 d.strategies.mobile(this.button,this):new d.strategies.desktop(this.button,this)}connectedCallback(){super.connectedCallback(),this.recentlyConnected=this.hasUpdated}disconnectedCallback(){var e;this.close(),(e=this.strategy)==null||e.releaseDescription(),super.disconnectedCallback()}async setValuesFromItems(e,t){this.selects==="single"&&(this.open=!1,this.strategy&&(this.strategy.open=!1));const i=this.selectedItems,o=this.values;if(this.selectedItems=e,this.values=e.map(r=>r.value),await this.updateComplete,!this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0,composed:!0,detail:this.values}))&&this.selects){t&&t.preventDefault(),this.selectedItems.forEach(r=>{this.setMenuItemSelected(r,!1)}),i&&i.forEach(r=>{this.setMenuItemSelected(r,!0)}),this.selectedItems=i,this.values=o,this.open=!0,this.strategy&&(this.strategy.open=!0);return}else if(!this.selects){this.selectedItems=i,this.values=o;return}i==null||i.forEach(r=>{this.setMenuItemSelected(r,!1)}),e.forEach(r=>{this.setMenuItemSelected(r,!!this.selects)})}setMenuItemSelected(e,t){this.selects!=null&&(e.selected=t)}get containerStyles(){return this.isMobile.matches?{"--swc-menu-width":"100%"}:{}}set buttonLabelContent(e){if(e===this.buttonLabelContent)return;const t=this.buttonLabelContent;this._buttonLabelContent=e,this.requestUpdate("buttonLabelContent",t)}handleTooltipSlotchange(e){this.tooltipEl=e.target.assignedElements()[0]}renderLabelContent(e){var t,i;return(t=this.values)!=null&&t.length&&((i=this.selectedItems)!=null&&i.length)?e:s.x`
|
|
28
|
+
<slot name="label" id="label">
|
|
29
|
+
<span aria-hidden=${p.o(this.appliedLabel?void 0:"true")}>
|
|
30
|
+
${this.label}
|
|
31
|
+
</span>
|
|
32
|
+
</slot>
|
|
33
|
+
`}get buttonContent(){var o,a,r,h,m,y,b;const e={"visually-hidden":this.icons==="only"&&((o=this.values)==null?void 0:o.length)>0,placeholder:!((a=this.values)!=null&&a.length),label:!0},t=this.appliedLabel||this.label,i=s.x` <div
|
|
34
|
+
id="icon"
|
|
35
|
+
?hidden=${this.icons==="none"||((r=this.values)==null?void 0:r.length)>1}
|
|
36
|
+
>
|
|
37
|
+
${this._selectedItemIcon?u.luzmoIcon(this._selectedItemIcon):s.E}
|
|
38
|
+
</div>`;return[s.x`
|
|
39
|
+
${this._selectedItemIcon?i:s.E}
|
|
40
|
+
<div
|
|
41
|
+
id=${p.o((h=this.values)!=null&&h.length&&((m=this.selectedItems)!=null&&m.length)?"label":void 0)}
|
|
42
|
+
class=${S.e(e)}
|
|
43
|
+
>
|
|
44
|
+
${this.renderLabelContent(this.buttonLabelContent.content)}
|
|
45
|
+
</div>
|
|
46
|
+
${(y=this.values)!=null&&y.length&&((b=this.selectedItems)!=null&&b.length)?s.x`
|
|
47
|
+
<div
|
|
48
|
+
aria-hidden="true"
|
|
49
|
+
class="visually-hidden"
|
|
50
|
+
id="applied-label"
|
|
51
|
+
>
|
|
52
|
+
${t}
|
|
53
|
+
<slot name="label"></slot>
|
|
54
|
+
</div>
|
|
55
|
+
`:s.x` <span hidden id="applied-label">${t}</span> `}
|
|
56
|
+
${this.invalid&&!this.pending?s.x` ${this.renderAlertIcon()} `:s.E}
|
|
57
|
+
${this.pendingStateController.renderPendingState()}
|
|
58
|
+
${this.readonly?s.E:this.renderAngleIcon()}
|
|
59
|
+
<slot
|
|
60
|
+
aria-hidden="true"
|
|
61
|
+
name="tooltip"
|
|
62
|
+
id="tooltip"
|
|
63
|
+
@slotchange=${this.handleTooltipSlotchange}
|
|
64
|
+
></slot>
|
|
65
|
+
`]}renderOverlay(e){var i,o,a;if(((i=this.strategy)==null?void 0:i.overlay)===void 0)return e;const t=this.renderContainer(e);return s.B(t,(o=this.strategy)==null?void 0:o.overlay,{host:this}),(a=this.strategy)==null?void 0:a.overlay}get renderDescriptionSlot(){return s.x`
|
|
66
|
+
<div id=${v}>
|
|
67
|
+
<slot name="description"></slot>
|
|
68
|
+
</div>
|
|
69
|
+
`}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),s.x`
|
|
70
|
+
<span
|
|
71
|
+
id="focus-helper"
|
|
72
|
+
tabindex=${this.focused||this.open?"-1":"0"}
|
|
73
|
+
@focus=${this.handleHelperFocus}
|
|
74
|
+
aria-describedby=${v}
|
|
75
|
+
></span>
|
|
76
|
+
<button
|
|
77
|
+
aria-controls=${p.o(this.open?"menu":void 0)}
|
|
78
|
+
aria-describedby="tooltip"
|
|
79
|
+
aria-expanded=${this.open?"true":"false"}
|
|
80
|
+
aria-haspopup="true"
|
|
81
|
+
aria-labelledby="loader icon label applied-label"
|
|
82
|
+
id="button"
|
|
83
|
+
class=${p.o(this.labelAlignment?`label-${this.labelAlignment}`:void 0)}
|
|
84
|
+
@blur=${this.handleButtonBlur}
|
|
85
|
+
@keydown=${{handleEvent:this.handleEnterKeydown,capture:!0}}
|
|
86
|
+
?disabled=${this.disabled}
|
|
87
|
+
tabindex="-1"
|
|
88
|
+
>
|
|
89
|
+
${this.buttonContent}
|
|
90
|
+
</button>
|
|
91
|
+
${this.renderMenu} ${this.renderDescriptionSlot}
|
|
92
|
+
`}update(e){var t,i;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),e.has("values")&&this.shouldScheduleManageSelection(),this.hasUpdated||(this.deprecatedMenu=this.querySelector(":scope > luzmo-menu"),(t=this.deprecatedMenu)==null||t.toggleAttribute("ignore",!0),(i=this.deprecatedMenu)==null||i.setAttribute("selects","inherit")),super.update(e)}bindButtonKeydownListener(){this.button.addEventListener("keydown",this.handleKeydown)}updated(e){super.updated(e),e.has("open")&&(this.strategy.open=this.open)}firstUpdated(e){super.firstUpdated(e),this.bindButtonKeydownListener(),this.bindEvents()}get dismissHelper(){return s.x`
|
|
93
|
+
<div class="visually-hidden">
|
|
94
|
+
<button
|
|
95
|
+
tabindex="-1"
|
|
96
|
+
aria-label="Dismiss"
|
|
97
|
+
@click=${this.close}
|
|
98
|
+
></button>
|
|
99
|
+
</div>
|
|
100
|
+
`}renderContainer(e){const t=s.x`
|
|
101
|
+
${this.dismissHelper} ${e} ${this.dismissHelper}
|
|
102
|
+
`;return this.dependencyManager.add("luzmo-popover"),Promise.resolve().then(()=>require("../popover/index.cjs")),s.x`
|
|
103
|
+
<luzmo-popover
|
|
104
|
+
id="popover"
|
|
105
|
+
size=${this.size}
|
|
106
|
+
role="presentation"
|
|
107
|
+
style=${$.o(this.containerStyles)}
|
|
108
|
+
placement=${this.placement}
|
|
109
|
+
>
|
|
110
|
+
${t}
|
|
111
|
+
</luzmo-popover>
|
|
112
|
+
`}get renderMenu(){const e=s.x`
|
|
113
|
+
<luzmo-menu
|
|
114
|
+
aria-labelledby="applied-label"
|
|
115
|
+
@change=${this.handleChange}
|
|
116
|
+
id="menu"
|
|
117
|
+
@keydown=${{handleEvent:this.handleEnterKeydown,capture:!0}}
|
|
118
|
+
@scroll=${this.onScroll}
|
|
119
|
+
role=${this.listRole}
|
|
120
|
+
.selects=${this.selects}
|
|
121
|
+
.selected=${this.values??[]}
|
|
122
|
+
size=${this.size}
|
|
123
|
+
@luzmo-menu-item-added-or-updated=${this.shouldManageSelection}
|
|
124
|
+
>
|
|
125
|
+
<slot @slotchange=${this.shouldScheduleManageSelection}></slot>
|
|
126
|
+
</luzmo-menu>
|
|
127
|
+
`;return this.hasRenderedOverlay=this.hasRenderedOverlay||this.focused||this.open||!!this.deprecatedMenu,this.hasRenderedOverlay?(this.dependencyManager.loaded&&this.dependencyManager.add("luzmo-overlay"),this.renderOverlay(e)):e}shouldScheduleManageSelection(e){!this.willManageSelection&&(!e||e.target.getRootNode().host===this)&&(this.willManageSelection=!0,requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.manageSelection()})}))}shouldManageSelection(){this.willManageSelection||(this.willManageSelection=!0,this.manageSelection())}async manageSelection(){if(this.selects==null)return;this.selectionPromise=new Promise(t=>this.selectionResolver=t);const e=[];await this.optionsMenu.updateComplete,this.recentlyConnected&&(await new Promise(t=>requestAnimationFrame(()=>t(!0))),this.recentlyConnected=!1),this.menuItems.forEach(t=>{this.values.includes(t.value)&&!t.disabled?e==null||e.push(t):t.selected=!1}),e&&(e.forEach(t=>{t.selected=!!this.selects}),this.selectedItems=e),this.open&&(await this.optionsMenu.updateComplete,this.optionsMenu.updateSelectedItemIndex()),this.selectionResolver(),this.willManageSelection=!1}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.selectionPromise,e}onScroll(){this.dispatchEvent(new Event("scroll",{cancelable:!0,composed:!0}))}}l([f.r()],n.prototype,"appliedLabel",2);l([g.e("#button")],n.prototype,"button",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"disabled",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"focused",2);l([s.n({type:String,reflect:!0})],n.prototype,"icons",2);l([s.n({type:String,reflect:!0})],n.prototype,"variant",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"invalid",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"pending",2);l([s.n({type:String,attribute:"pending-label"})],n.prototype,"pendingLabel",2);l([s.n({type:String,attribute:"multi-item-label",reflect:!0})],n.prototype,"multiItemLabel",2);l([s.n()],n.prototype,"label",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"open",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"readonly",2);l([f.r()],n.prototype,"labelAlignment",2);l([g.e("luzmo-menu")],n.prototype,"optionsMenu",2);l([g.e("luzmo-overlay")],n.prototype,"overlayElement",2);l([s.n()],n.prototype,"placement",2);l([s.n({type:Boolean,reflect:!0})],n.prototype,"quiet",2);l([s.n({type:String})],n.prototype,"value",2);l([s.n({type:Array})],n.prototype,"values",2);l([s.n({attribute:!1})],n.prototype,"selectedItems",1);l([f.r()],n.prototype,"buttonLabelContent",1);l([s.n({type:String,reflect:!0})],n.prototype,"selects",2);class M extends n{constructor(){super(...arguments),this.handleKeydown=e=>{var i,o;const{code:t}=e;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 a=(i=this.selectedItems)!=null&&i.length?this.menuItems.indexOf(this.selectedItems[0]):-1,r=a<0||t==="ArrowRight"?1:-1;let h=a+r;for(;this.menuItems[h]&&this.menuItems[h].disabled;)h+=r;if(!this.menuItems[h]||this.menuItems[h].disabled)return;(!((o=this.values)!=null&&o.length)||h!==a)&&this.setValuesFromItems([this.menuItems[h]])}}}}static get styles(){return[s.r(d.pickerStyles)]}get containerStyles(){const e=super.containerStyles;return this.quiet||(e["min-width"]=`${this.offsetWidth}px`),e}}customElements.get("luzmo-multi-picker")||customElements.define("luzmo-multi-picker",M);exports.LuzmoMultiPicker=M;
|