@codeandfunction/callaloo 4.8.0 → 4.9.0

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.
Files changed (27) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLCalendar-XcUGsiWk.js +159 -0
  3. package/dist/chunks/floating-ui.vue-Fx4CxKut.js +1057 -0
  4. package/dist/components/Form/CLCalendar/CLCalendar.css +1 -0
  5. package/dist/components/Form/CLCalendar/CLCalendar.js +7 -0
  6. package/dist/components/Form/CLCalendar/CLCalendar.vue.d.ts +54 -0
  7. package/dist/components/Form/CLCalendar/index.d.ts +4 -0
  8. package/dist/components/Form/CLInput/CLInput.js +0 -1
  9. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.css +1 -0
  10. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +181 -0
  11. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +265 -0
  12. package/dist/components/Form/CLInputDatePicker/index.d.ts +4 -0
  13. package/dist/components/Form/index.d.ts +2 -0
  14. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  15. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.css +1 -1
  16. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +124 -206
  17. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +77 -10
  18. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +101 -1149
  19. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +1 -1
  20. package/dist/composables/useDateInputMask.d.ts +8 -0
  21. package/dist/composables/useDateInputMask.js +39 -0
  22. package/dist/composables/useDatePicker.d.ts +3 -2
  23. package/dist/composables/useDatePicker.js +66 -61
  24. package/dist/index.cdn.d.ts +4 -1
  25. package/dist/styles.css +1 -1
  26. package/package.json +9 -1
  27. /package/dist/components/Form/{CLInput → CLInputDatePicker}/CLInput.css +0 -0
@@ -1,1073 +1,25 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDropdownMenu.css';
3
- import { computed as F, ref as D, shallowRef as _t, watch as dt, getCurrentScope as te, onScopeDispose as ee, shallowReadonly as q, unref as L, defineComponent as ne, onBeforeUnmount as oe, createElementBlock as St, openBlock as Ot, normalizeClass as mt, createVNode as At, createCommentVNode as ie, withCtx as Et, createTextVNode as re, toDisplayString as se, normalizeStyle as le, renderSlot as ce } from "vue";
4
- import { _ as ae } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
5
- import { _ as fe } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js";
6
- import { c as ue, i as ht } from "../../../chunks/helper-qUkciePY.js";
7
- import { useDropdown as de } from "../../../composables/useDropdown.js";
8
- import { useEsc as me } from "../../../composables/useEsc.js";
9
- import { CLPlacement as he, CLIconSizes as ge, CLIconNames as pe, CLColorVariants as Lt, CLSizes as we, CLColors as Dt } from "../../../index.js";
10
- const tt = Math.min, N = Math.max, et = Math.round, _ = Math.floor, P = (t) => ({
11
- x: t,
12
- y: t
13
- }), ye = {
14
- left: "right",
15
- right: "left",
16
- bottom: "top",
17
- top: "bottom"
18
- }, ve = {
19
- start: "end",
20
- end: "start"
21
- };
22
- function Tt(t, e, n) {
23
- return N(t, tt(e, n));
24
- }
25
- function it(t, e) {
26
- return typeof t == "function" ? t(e) : t;
27
- }
28
- function X(t) {
29
- return t.split("-")[0];
30
- }
31
- function rt(t) {
32
- return t.split("-")[1];
33
- }
34
- function It(t) {
35
- return t === "x" ? "y" : "x";
36
- }
37
- function Wt(t) {
38
- return t === "y" ? "height" : "width";
39
- }
40
- const xe = /* @__PURE__ */ new Set(["top", "bottom"]);
41
- function z(t) {
42
- return xe.has(X(t)) ? "y" : "x";
43
- }
44
- function Nt(t) {
45
- return It(z(t));
46
- }
47
- function be(t, e, n) {
48
- n === void 0 && (n = !1);
49
- const o = rt(t), i = Nt(t), s = Wt(i);
50
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
51
- return e.reference[s] > e.floating[s] && (r = nt(r)), [r, nt(r)];
52
- }
53
- function Ce(t) {
54
- const e = nt(t);
55
- return [pt(t), e, pt(e)];
56
- }
57
- function pt(t) {
58
- return t.replace(/start|end/g, (e) => ve[e]);
59
- }
60
- const Bt = ["left", "right"], Pt = ["right", "left"], Re = ["top", "bottom"], Se = ["bottom", "top"];
61
- function Oe(t, e, n) {
62
- switch (t) {
63
- case "top":
64
- case "bottom":
65
- return n ? e ? Pt : Bt : e ? Bt : Pt;
66
- case "left":
67
- case "right":
68
- return e ? Re : Se;
69
- default:
70
- return [];
71
- }
72
- }
73
- function Ae(t, e, n, o) {
74
- const i = rt(t);
75
- let s = Oe(X(t), n === "start", o);
76
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(pt)))), s;
77
- }
78
- function nt(t) {
79
- return t.replace(/left|right|bottom|top/g, (e) => ye[e]);
80
- }
81
- function Ee(t) {
82
- return {
83
- top: 0,
84
- right: 0,
85
- bottom: 0,
86
- left: 0,
87
- ...t
88
- };
89
- }
90
- function Le(t) {
91
- return typeof t != "number" ? Ee(t) : {
92
- top: t,
93
- right: t,
94
- bottom: t,
95
- left: t
96
- };
97
- }
98
- function ot(t) {
99
- const {
100
- x: e,
101
- y: n,
102
- width: o,
103
- height: i
104
- } = t;
105
- return {
106
- width: o,
107
- height: i,
108
- top: n,
109
- left: e,
110
- right: e + o,
111
- bottom: n + i,
112
- x: e,
113
- y: n
114
- };
115
- }
116
- function kt(t, e, n) {
117
- let {
118
- reference: o,
119
- floating: i
120
- } = t;
121
- const s = z(e), r = Nt(e), l = Wt(r), a = X(e), c = s === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
122
- let d;
123
- switch (a) {
124
- case "top":
125
- d = {
126
- x: f,
127
- y: o.y - i.height
128
- };
129
- break;
130
- case "bottom":
131
- d = {
132
- x: f,
133
- y: o.y + o.height
134
- };
135
- break;
136
- case "right":
137
- d = {
138
- x: o.x + o.width,
139
- y: u
140
- };
141
- break;
142
- case "left":
143
- d = {
144
- x: o.x - i.width,
145
- y: u
146
- };
147
- break;
148
- default:
149
- d = {
150
- x: o.x,
151
- y: o.y
152
- };
153
- }
154
- switch (rt(e)) {
155
- case "start":
156
- d[r] -= m * (n && c ? -1 : 1);
157
- break;
158
- case "end":
159
- d[r] += m * (n && c ? -1 : 1);
160
- break;
161
- }
162
- return d;
163
- }
164
- const De = async (t, e, n) => {
165
- const {
166
- placement: o = "bottom",
167
- strategy: i = "absolute",
168
- middleware: s = [],
169
- platform: r
170
- } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
171
- let c = await r.getElementRects({
172
- reference: t,
173
- floating: e,
174
- strategy: i
175
- }), {
176
- x: f,
177
- y: u
178
- } = kt(c, o, a), m = o, d = {}, h = 0;
179
- for (let w = 0; w < l.length; w++) {
180
- const {
181
- name: y,
182
- fn: g
183
- } = l[w], {
184
- x: p,
185
- y: v,
186
- data: C,
187
- reset: b
188
- } = await g({
189
- x: f,
190
- y: u,
191
- initialPlacement: o,
192
- placement: m,
193
- strategy: i,
194
- middlewareData: d,
195
- rects: c,
196
- platform: r,
197
- elements: {
198
- reference: t,
199
- floating: e
200
- }
201
- });
202
- f = p ?? f, u = v ?? u, d = {
203
- ...d,
204
- [y]: {
205
- ...d[y],
206
- ...C
207
- }
208
- }, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
209
- reference: t,
210
- floating: e,
211
- strategy: i
212
- }) : b.rects), {
213
- x: f,
214
- y: u
215
- } = kt(c, m, a)), w = -1);
216
- }
217
- return {
218
- x: f,
219
- y: u,
220
- placement: m,
221
- strategy: i,
222
- middlewareData: d
223
- };
224
- };
225
- async function Xt(t, e) {
226
- var n;
227
- e === void 0 && (e = {});
228
- const {
229
- x: o,
230
- y: i,
231
- platform: s,
232
- rects: r,
233
- elements: l,
234
- strategy: a
235
- } = t, {
236
- boundary: c = "clippingAncestors",
237
- rootBoundary: f = "viewport",
238
- elementContext: u = "floating",
239
- altBoundary: m = !1,
240
- padding: d = 0
241
- } = it(e, t), h = Le(d), y = l[m ? u === "floating" ? "reference" : "floating" : u], g = ot(await s.getClippingRect({
242
- element: (n = await (s.isElement == null ? void 0 : s.isElement(y))) == null || n ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
243
- boundary: c,
244
- rootBoundary: f,
245
- strategy: a
246
- })), p = u === "floating" ? {
247
- x: o,
248
- y: i,
249
- width: r.floating.width,
250
- height: r.floating.height
251
- } : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), C = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
252
- x: 1,
253
- y: 1
254
- } : {
255
- x: 1,
256
- y: 1
257
- }, b = ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
258
- elements: l,
259
- rect: p,
260
- offsetParent: v,
261
- strategy: a
262
- }) : p);
263
- return {
264
- top: (g.top - b.top + h.top) / C.y,
265
- bottom: (b.bottom - g.bottom + h.bottom) / C.y,
266
- left: (g.left - b.left + h.left) / C.x,
267
- right: (b.right - g.right + h.right) / C.x
268
- };
269
- }
270
- const Te = function(t) {
271
- return t === void 0 && (t = {}), {
272
- name: "flip",
273
- options: t,
274
- async fn(e) {
275
- var n, o;
276
- const {
277
- placement: i,
278
- middlewareData: s,
279
- rects: r,
280
- initialPlacement: l,
281
- platform: a,
282
- elements: c
283
- } = e, {
284
- mainAxis: f = !0,
285
- crossAxis: u = !0,
286
- fallbackPlacements: m,
287
- fallbackStrategy: d = "bestFit",
288
- fallbackAxisSideDirection: h = "none",
289
- flipAlignment: w = !0,
290
- ...y
291
- } = it(t, e);
292
- if ((n = s.arrow) != null && n.alignmentOffset)
293
- return {};
294
- const g = X(i), p = z(l), v = X(l) === l, C = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = m || (v || !w ? [nt(l)] : Ce(l)), $ = h !== "none";
295
- !m && $ && b.push(...Ae(l, w, h, C));
296
- const x = [l, ...b], R = await Xt(e, y), A = [];
297
- let S = ((o = s.flip) == null ? void 0 : o.overflows) || [];
298
- if (f && A.push(R[g]), u) {
299
- const I = be(i, r, C);
300
- A.push(R[I[0]], R[I[1]]);
301
- }
302
- if (S = [...S, {
303
- placement: i,
304
- overflows: A
305
- }], !A.every((I) => I <= 0)) {
306
- var ft, Ct;
307
- const I = (((ft = s.flip) == null ? void 0 : ft.index) || 0) + 1, ut = x[I];
308
- if (ut && (!(u === "alignment" ? p !== z(ut) : !1) || // We leave the current main axis only if every placement on that axis
309
- // overflows the main axis.
310
- S.every((E) => z(E.placement) === p ? E.overflows[0] > 0 : !0)))
311
- return {
312
- data: {
313
- index: I,
314
- overflows: S
315
- },
316
- reset: {
317
- placement: ut
318
- }
319
- };
320
- let K = (Ct = S.filter((W) => W.overflows[0] <= 0).sort((W, E) => W.overflows[1] - E.overflows[1])[0]) == null ? void 0 : Ct.placement;
321
- if (!K)
322
- switch (d) {
323
- case "bestFit": {
324
- var Rt;
325
- const W = (Rt = S.filter((E) => {
326
- if ($) {
327
- const M = z(E.placement);
328
- return M === p || // Create a bias to the `y` side axis due to horizontal
329
- // reading directions favoring greater width.
330
- M === "y";
331
- }
332
- return !0;
333
- }).map((E) => [E.placement, E.overflows.filter((M) => M > 0).reduce((M, Qt) => M + Qt, 0)]).sort((E, M) => E[1] - M[1])[0]) == null ? void 0 : Rt[0];
334
- W && (K = W);
335
- break;
336
- }
337
- case "initialPlacement":
338
- K = l;
339
- break;
340
- }
341
- if (i !== K)
342
- return {
343
- reset: {
344
- placement: K
345
- }
346
- };
347
- }
348
- return {};
349
- }
350
- };
351
- }, Be = /* @__PURE__ */ new Set(["left", "top"]);
352
- async function Pe(t, e) {
353
- const {
354
- placement: n,
355
- platform: o,
356
- elements: i
357
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = X(n), l = rt(n), a = z(n) === "y", c = Be.has(r) ? -1 : 1, f = s && a ? -1 : 1, u = it(e, t);
358
- let {
359
- mainAxis: m,
360
- crossAxis: d,
361
- alignmentAxis: h
362
- } = typeof u == "number" ? {
363
- mainAxis: u,
364
- crossAxis: 0,
365
- alignmentAxis: null
366
- } : {
367
- mainAxis: u.mainAxis || 0,
368
- crossAxis: u.crossAxis || 0,
369
- alignmentAxis: u.alignmentAxis
370
- };
371
- return l && typeof h == "number" && (d = l === "end" ? h * -1 : h), a ? {
372
- x: d * f,
373
- y: m * c
374
- } : {
375
- x: m * c,
376
- y: d * f
377
- };
378
- }
379
- const ke = function(t) {
380
- return t === void 0 && (t = 0), {
381
- name: "offset",
382
- options: t,
383
- async fn(e) {
384
- var n, o;
385
- const {
386
- x: i,
387
- y: s,
388
- placement: r,
389
- middlewareData: l
390
- } = e, a = await Pe(e, t);
391
- return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
392
- x: i + a.x,
393
- y: s + a.y,
394
- data: {
395
- ...a,
396
- placement: r
397
- }
398
- };
399
- }
400
- };
401
- }, Ve = function(t) {
402
- return t === void 0 && (t = {}), {
403
- name: "shift",
404
- options: t,
405
- async fn(e) {
406
- const {
407
- x: n,
408
- y: o,
409
- placement: i
410
- } = e, {
411
- mainAxis: s = !0,
412
- crossAxis: r = !1,
413
- limiter: l = {
414
- fn: (y) => {
415
- let {
416
- x: g,
417
- y: p
418
- } = y;
419
- return {
420
- x: g,
421
- y: p
422
- };
423
- }
424
- },
425
- ...a
426
- } = it(t, e), c = {
427
- x: n,
428
- y: o
429
- }, f = await Xt(e, a), u = z(X(i)), m = It(u);
430
- let d = c[m], h = c[u];
431
- if (s) {
432
- const y = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", p = d + f[y], v = d - f[g];
433
- d = Tt(p, d, v);
434
- }
435
- if (r) {
436
- const y = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", p = h + f[y], v = h - f[g];
437
- h = Tt(p, h, v);
438
- }
439
- const w = l.fn({
440
- ...e,
441
- [m]: d,
442
- [u]: h
443
- });
444
- return {
445
- ...w,
446
- data: {
447
- x: w.x - n,
448
- y: w.y - o,
449
- enabled: {
450
- [m]: s,
451
- [u]: r
452
- }
453
- }
454
- };
455
- }
456
- };
457
- };
458
- function st() {
459
- return typeof window < "u";
460
- }
461
- function Y(t) {
462
- return yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
463
- }
464
- function O(t) {
465
- var e;
466
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
467
- }
468
- function V(t) {
469
- var e;
470
- return (e = (yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
471
- }
472
- function yt(t) {
473
- return st() ? t instanceof Node || t instanceof O(t).Node : !1;
474
- }
475
- function T(t) {
476
- return st() ? t instanceof Element || t instanceof O(t).Element : !1;
477
- }
478
- function k(t) {
479
- return st() ? t instanceof HTMLElement || t instanceof O(t).HTMLElement : !1;
480
- }
481
- function Vt(t) {
482
- return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof O(t).ShadowRoot;
483
- }
484
- const $e = /* @__PURE__ */ new Set(["inline", "contents"]);
485
- function Q(t) {
486
- const {
487
- overflow: e,
488
- overflowX: n,
489
- overflowY: o,
490
- display: i
491
- } = B(t);
492
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !$e.has(i);
493
- }
494
- const Fe = /* @__PURE__ */ new Set(["table", "td", "th"]);
495
- function Me(t) {
496
- return Fe.has(Y(t));
497
- }
498
- const ze = [":popover-open", ":modal"];
499
- function lt(t) {
500
- return ze.some((e) => {
501
- try {
502
- return t.matches(e);
503
- } catch {
504
- return !1;
505
- }
506
- });
507
- }
508
- const He = ["transform", "translate", "scale", "rotate", "perspective"], Ie = ["transform", "translate", "scale", "rotate", "perspective", "filter"], We = ["paint", "layout", "strict", "content"];
509
- function vt(t) {
510
- const e = xt(), n = T(t) ? B(t) : t;
511
- return He.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ie.some((o) => (n.willChange || "").includes(o)) || We.some((o) => (n.contain || "").includes(o));
512
- }
513
- function Ne(t) {
514
- let e = H(t);
515
- for (; k(e) && !G(e); ) {
516
- if (vt(e))
517
- return e;
518
- if (lt(e))
519
- return null;
520
- e = H(e);
521
- }
522
- return null;
523
- }
524
- function xt() {
525
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
526
- }
527
- const Xe = /* @__PURE__ */ new Set(["html", "body", "#document"]);
528
- function G(t) {
529
- return Xe.has(Y(t));
530
- }
531
- function B(t) {
532
- return O(t).getComputedStyle(t);
533
- }
534
- function ct(t) {
535
- return T(t) ? {
536
- scrollLeft: t.scrollLeft,
537
- scrollTop: t.scrollTop
538
- } : {
539
- scrollLeft: t.scrollX,
540
- scrollTop: t.scrollY
541
- };
542
- }
543
- function H(t) {
544
- if (Y(t) === "html")
545
- return t;
546
- const e = (
547
- // Step into the shadow DOM of the parent of a slotted node.
548
- t.assignedSlot || // DOM Element detected.
549
- t.parentNode || // ShadowRoot detected.
550
- Vt(t) && t.host || // Fallback.
551
- V(t)
552
- );
553
- return Vt(e) ? e.host : e;
554
- }
555
- function jt(t) {
556
- const e = H(t);
557
- return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : k(e) && Q(e) ? e : jt(e);
558
- }
559
- function J(t, e, n) {
560
- var o;
561
- e === void 0 && (e = []), n === void 0 && (n = !0);
562
- const i = jt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = O(i);
563
- if (s) {
564
- const l = wt(r);
565
- return e.concat(r, r.visualViewport || [], Q(i) ? i : [], l && n ? J(l) : []);
566
- }
567
- return e.concat(i, J(i, [], n));
568
- }
569
- function wt(t) {
570
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
571
- }
572
- function Yt(t) {
573
- const e = B(t);
574
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
575
- const i = k(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = et(n) !== s || et(o) !== r;
576
- return l && (n = s, o = r), {
577
- width: n,
578
- height: o,
579
- $: l
580
- };
581
- }
582
- function bt(t) {
583
- return T(t) ? t : t.contextElement;
584
- }
585
- function U(t) {
586
- const e = bt(t);
587
- if (!k(e))
588
- return P(1);
589
- const n = e.getBoundingClientRect(), {
590
- width: o,
591
- height: i,
592
- $: s
593
- } = Yt(e);
594
- let r = (s ? et(n.width) : n.width) / o, l = (s ? et(n.height) : n.height) / i;
595
- return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
596
- x: r,
597
- y: l
598
- };
599
- }
600
- const je = /* @__PURE__ */ P(0);
601
- function qt(t) {
602
- const e = O(t);
603
- return !xt() || !e.visualViewport ? je : {
604
- x: e.visualViewport.offsetLeft,
605
- y: e.visualViewport.offsetTop
606
- };
607
- }
608
- function Ye(t, e, n) {
609
- return e === void 0 && (e = !1), !n || e && n !== O(t) ? !1 : e;
610
- }
611
- function j(t, e, n, o) {
612
- e === void 0 && (e = !1), n === void 0 && (n = !1);
613
- const i = t.getBoundingClientRect(), s = bt(t);
614
- let r = P(1);
615
- e && (o ? T(o) && (r = U(o)) : r = U(t));
616
- const l = Ye(s, n, o) ? qt(s) : P(0);
617
- let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, f = i.width / r.x, u = i.height / r.y;
618
- if (s) {
619
- const m = O(s), d = o && T(o) ? O(o) : o;
620
- let h = m, w = wt(h);
621
- for (; w && o && d !== h; ) {
622
- const y = U(w), g = w.getBoundingClientRect(), p = B(w), v = g.left + (w.clientLeft + parseFloat(p.paddingLeft)) * y.x, C = g.top + (w.clientTop + parseFloat(p.paddingTop)) * y.y;
623
- a *= y.x, c *= y.y, f *= y.x, u *= y.y, a += v, c += C, h = O(w), w = wt(h);
624
- }
625
- }
626
- return ot({
627
- width: f,
628
- height: u,
629
- x: a,
630
- y: c
631
- });
632
- }
633
- function at(t, e) {
634
- const n = ct(t).scrollLeft;
635
- return e ? e.left + n : j(V(t)).left + n;
636
- }
637
- function Ut(t, e) {
638
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
639
- return {
640
- x: o,
641
- y: i
642
- };
643
- }
644
- function qe(t) {
645
- let {
646
- elements: e,
647
- rect: n,
648
- offsetParent: o,
649
- strategy: i
650
- } = t;
651
- const s = i === "fixed", r = V(o), l = e ? lt(e.floating) : !1;
652
- if (o === r || l && s)
653
- return n;
654
- let a = {
655
- scrollLeft: 0,
656
- scrollTop: 0
657
- }, c = P(1);
658
- const f = P(0), u = k(o);
659
- if ((u || !u && !s) && ((Y(o) !== "body" || Q(r)) && (a = ct(o)), k(o))) {
660
- const d = j(o);
661
- c = U(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
662
- }
663
- const m = r && !u && !s ? Ut(r, a) : P(0);
664
- return {
665
- width: n.width * c.x,
666
- height: n.height * c.y,
667
- x: n.x * c.x - a.scrollLeft * c.x + f.x + m.x,
668
- y: n.y * c.y - a.scrollTop * c.y + f.y + m.y
669
- };
670
- }
671
- function Ue(t) {
672
- return Array.from(t.getClientRects());
673
- }
674
- function Ge(t) {
675
- const e = V(t), n = ct(t), o = t.ownerDocument.body, i = N(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = N(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
676
- let r = -n.scrollLeft + at(t);
677
- const l = -n.scrollTop;
678
- return B(o).direction === "rtl" && (r += N(e.clientWidth, o.clientWidth) - i), {
679
- width: i,
680
- height: s,
681
- x: r,
682
- y: l
683
- };
684
- }
685
- const $t = 25;
686
- function Ke(t, e) {
687
- const n = O(t), o = V(t), i = n.visualViewport;
688
- let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
689
- if (i) {
690
- s = i.width, r = i.height;
691
- const f = xt();
692
- (!f || f && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
693
- }
694
- const c = at(o);
695
- if (c <= 0) {
696
- const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
697
- h <= $t && (s -= h);
698
- } else c <= $t && (s += c);
699
- return {
700
- width: s,
701
- height: r,
702
- x: l,
703
- y: a
704
- };
705
- }
706
- const Ze = /* @__PURE__ */ new Set(["absolute", "fixed"]);
707
- function Je(t, e) {
708
- const n = j(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = k(t) ? U(t) : P(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
709
- return {
710
- width: r,
711
- height: l,
712
- x: a,
713
- y: c
714
- };
715
- }
716
- function Ft(t, e, n) {
717
- let o;
718
- if (e === "viewport")
719
- o = Ke(t, n);
720
- else if (e === "document")
721
- o = Ge(V(t));
722
- else if (T(e))
723
- o = Je(e, n);
724
- else {
725
- const i = qt(t);
726
- o = {
727
- x: e.x - i.x,
728
- y: e.y - i.y,
729
- width: e.width,
730
- height: e.height
731
- };
732
- }
733
- return ot(o);
734
- }
735
- function Gt(t, e) {
736
- const n = H(t);
737
- return n === e || !T(n) || G(n) ? !1 : B(n).position === "fixed" || Gt(n, e);
738
- }
739
- function Qe(t, e) {
740
- const n = e.get(t);
741
- if (n)
742
- return n;
743
- let o = J(t, [], !1).filter((l) => T(l) && Y(l) !== "body"), i = null;
744
- const s = B(t).position === "fixed";
745
- let r = s ? H(t) : t;
746
- for (; T(r) && !G(r); ) {
747
- const l = B(r), a = vt(r);
748
- !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && Ze.has(i.position) || Q(r) && !a && Gt(t, r)) ? o = o.filter((f) => f !== r) : i = l, r = H(r);
749
- }
750
- return e.set(t, o), o;
751
- }
752
- function _e(t) {
753
- let {
754
- element: e,
755
- boundary: n,
756
- rootBoundary: o,
757
- strategy: i
758
- } = t;
759
- const r = [...n === "clippingAncestors" ? lt(e) ? [] : Qe(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, f) => {
760
- const u = Ft(e, f, i);
761
- return c.top = N(u.top, c.top), c.right = tt(u.right, c.right), c.bottom = tt(u.bottom, c.bottom), c.left = N(u.left, c.left), c;
762
- }, Ft(e, l, i));
763
- return {
764
- width: a.right - a.left,
765
- height: a.bottom - a.top,
766
- x: a.left,
767
- y: a.top
768
- };
769
- }
770
- function tn(t) {
771
- const {
772
- width: e,
773
- height: n
774
- } = Yt(t);
775
- return {
776
- width: e,
777
- height: n
778
- };
779
- }
780
- function en(t, e, n) {
781
- const o = k(e), i = V(e), s = n === "fixed", r = j(t, !0, s, e);
782
- let l = {
783
- scrollLeft: 0,
784
- scrollTop: 0
785
- };
786
- const a = P(0);
787
- function c() {
788
- a.x = at(i);
789
- }
790
- if (o || !o && !s)
791
- if ((Y(e) !== "body" || Q(i)) && (l = ct(e)), o) {
792
- const d = j(e, !0, s, e);
793
- a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
794
- } else i && c();
795
- s && !o && i && c();
796
- const f = i && !o && !s ? Ut(i, l) : P(0), u = r.left + l.scrollLeft - a.x - f.x, m = r.top + l.scrollTop - a.y - f.y;
797
- return {
798
- x: u,
799
- y: m,
800
- width: r.width,
801
- height: r.height
802
- };
803
- }
804
- function gt(t) {
805
- return B(t).position === "static";
806
- }
807
- function Mt(t, e) {
808
- if (!k(t) || B(t).position === "fixed")
809
- return null;
810
- if (e)
811
- return e(t);
812
- let n = t.offsetParent;
813
- return V(t) === n && (n = n.ownerDocument.body), n;
814
- }
815
- function Kt(t, e) {
816
- const n = O(t);
817
- if (lt(t))
818
- return n;
819
- if (!k(t)) {
820
- let i = H(t);
821
- for (; i && !G(i); ) {
822
- if (T(i) && !gt(i))
823
- return i;
824
- i = H(i);
825
- }
826
- return n;
827
- }
828
- let o = Mt(t, e);
829
- for (; o && Me(o) && gt(o); )
830
- o = Mt(o, e);
831
- return o && G(o) && gt(o) && !vt(o) ? n : o || Ne(t) || n;
832
- }
833
- const nn = async function(t) {
834
- const e = this.getOffsetParent || Kt, n = this.getDimensions, o = await n(t.floating);
835
- return {
836
- reference: en(t.reference, await e(t.floating), t.strategy),
837
- floating: {
838
- x: 0,
839
- y: 0,
840
- width: o.width,
841
- height: o.height
842
- }
843
- };
844
- };
845
- function on(t) {
846
- return B(t).direction === "rtl";
847
- }
848
- const rn = {
849
- convertOffsetParentRelativeRectToViewportRelativeRect: qe,
850
- getDocumentElement: V,
851
- getClippingRect: _e,
852
- getOffsetParent: Kt,
853
- getElementRects: nn,
854
- getClientRects: Ue,
855
- getDimensions: tn,
856
- getScale: U,
857
- isElement: T,
858
- isRTL: on
859
- };
860
- function Zt(t, e) {
861
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
862
- }
863
- function sn(t, e) {
864
- let n = null, o;
865
- const i = V(t);
866
- function s() {
867
- var l;
868
- clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
869
- }
870
- function r(l, a) {
871
- l === void 0 && (l = !1), a === void 0 && (a = 1), s();
872
- const c = t.getBoundingClientRect(), {
873
- left: f,
874
- top: u,
875
- width: m,
876
- height: d
877
- } = c;
878
- if (l || e(), !m || !d)
879
- return;
880
- const h = _(u), w = _(i.clientWidth - (f + m)), y = _(i.clientHeight - (u + d)), g = _(f), v = {
881
- rootMargin: -h + "px " + -w + "px " + -y + "px " + -g + "px",
882
- threshold: N(0, tt(1, a)) || 1
883
- };
884
- let C = !0;
885
- function b($) {
886
- const x = $[0].intersectionRatio;
887
- if (x !== a) {
888
- if (!C)
889
- return r();
890
- x ? r(!1, x) : o = setTimeout(() => {
891
- r(!1, 1e-7);
892
- }, 1e3);
893
- }
894
- x === 1 && !Zt(c, t.getBoundingClientRect()) && r(), C = !1;
895
- }
896
- try {
897
- n = new IntersectionObserver(b, {
898
- ...v,
899
- // Handle <iframe>s
900
- root: i.ownerDocument
901
- });
902
- } catch {
903
- n = new IntersectionObserver(b, v);
904
- }
905
- n.observe(t);
906
- }
907
- return r(!0), s;
908
- }
909
- function ln(t, e, n, o) {
910
- o === void 0 && (o = {});
911
- const {
912
- ancestorScroll: i = !0,
913
- ancestorResize: s = !0,
914
- elementResize: r = typeof ResizeObserver == "function",
915
- layoutShift: l = typeof IntersectionObserver == "function",
916
- animationFrame: a = !1
917
- } = o, c = bt(t), f = i || s ? [...c ? J(c) : [], ...J(e)] : [];
918
- f.forEach((g) => {
919
- i && g.addEventListener("scroll", n, {
920
- passive: !0
921
- }), s && g.addEventListener("resize", n);
922
- });
923
- const u = c && l ? sn(c, n) : null;
924
- let m = -1, d = null;
925
- r && (d = new ResizeObserver((g) => {
926
- let [p] = g;
927
- p && p.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
928
- var v;
929
- (v = d) == null || v.observe(e);
930
- })), n();
931
- }), c && !a && d.observe(c), d.observe(e));
932
- let h, w = a ? j(t) : null;
933
- a && y();
934
- function y() {
935
- const g = j(t);
936
- w && !Zt(w, g) && n(), w = g, h = requestAnimationFrame(y);
937
- }
938
- return n(), () => {
939
- var g;
940
- f.forEach((p) => {
941
- i && p.removeEventListener("scroll", n), s && p.removeEventListener("resize", n);
942
- }), u?.(), (g = d) == null || g.disconnect(), d = null, a && cancelAnimationFrame(h);
943
- };
944
- }
945
- const cn = ke, an = Ve, fn = Te, un = (t, e, n) => {
946
- const o = /* @__PURE__ */ new Map(), i = {
947
- platform: rn,
948
- ...n
949
- }, s = {
950
- ...i.platform,
951
- _c: o
952
- };
953
- return De(t, e, {
954
- ...i,
955
- platform: s
956
- });
957
- };
958
- function dn(t) {
959
- return t != null && typeof t == "object" && "$el" in t;
960
- }
961
- function zt(t) {
962
- if (dn(t)) {
963
- const e = t.$el;
964
- return yt(e) && Y(e) === "#comment" ? null : e;
965
- }
966
- return t;
967
- }
968
- function Z(t) {
969
- return typeof t == "function" ? t() : L(t);
970
- }
971
- function Jt(t) {
972
- return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
973
- }
974
- function Ht(t, e) {
975
- const n = Jt(t);
976
- return Math.round(e * n) / n;
977
- }
978
- function mn(t, e, n) {
979
- n === void 0 && (n = {});
980
- const o = n.whileElementsMounted, i = F(() => {
981
- var x;
982
- return (x = Z(n.open)) != null ? x : !0;
983
- }), s = F(() => Z(n.middleware)), r = F(() => {
984
- var x;
985
- return (x = Z(n.placement)) != null ? x : "bottom";
986
- }), l = F(() => {
987
- var x;
988
- return (x = Z(n.strategy)) != null ? x : "absolute";
989
- }), a = F(() => {
990
- var x;
991
- return (x = Z(n.transform)) != null ? x : !0;
992
- }), c = F(() => zt(t.value)), f = F(() => zt(e.value)), u = D(0), m = D(0), d = D(l.value), h = D(r.value), w = _t({}), y = D(!1), g = F(() => {
993
- const x = {
994
- position: d.value,
995
- left: "0",
996
- top: "0"
997
- };
998
- if (!f.value)
999
- return x;
1000
- const R = Ht(f.value, u.value), A = Ht(f.value, m.value);
1001
- return a.value ? {
1002
- ...x,
1003
- transform: "translate(" + R + "px, " + A + "px)",
1004
- ...Jt(f.value) >= 1.5 && {
1005
- willChange: "transform"
1006
- }
1007
- } : {
1008
- position: d.value,
1009
- left: R + "px",
1010
- top: A + "px"
1011
- };
1012
- });
1013
- let p;
1014
- function v() {
1015
- if (c.value == null || f.value == null)
1016
- return;
1017
- const x = i.value;
1018
- un(c.value, f.value, {
1019
- middleware: s.value,
1020
- placement: r.value,
1021
- strategy: l.value
1022
- }).then((R) => {
1023
- u.value = R.x, m.value = R.y, d.value = R.strategy, h.value = R.placement, w.value = R.middlewareData, y.value = x !== !1;
1024
- });
1025
- }
1026
- function C() {
1027
- typeof p == "function" && (p(), p = void 0);
1028
- }
1029
- function b() {
1030
- if (C(), o === void 0) {
1031
- v();
1032
- return;
1033
- }
1034
- if (c.value != null && f.value != null) {
1035
- p = o(c.value, f.value, v);
1036
- return;
1037
- }
1038
- }
1039
- function $() {
1040
- i.value || (y.value = !1);
1041
- }
1042
- return dt([s, r, l, i], v, {
1043
- flush: "sync"
1044
- }), dt([c, f], b, {
1045
- flush: "sync"
1046
- }), dt(i, $, {
1047
- flush: "sync"
1048
- }), te() && ee(C), {
1049
- x: q(u),
1050
- y: q(m),
1051
- strategy: q(d),
1052
- placement: q(h),
1053
- middlewareData: q(w),
1054
- isPositioned: q(y),
1055
- floatingStyles: g,
1056
- update: v
1057
- };
1058
- }
1059
- const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Rn = /* @__PURE__ */ ne({
3
+ import { defineComponent as V, ref as d, computed as W, onBeforeUnmount as N, createElementBlock as h, openBlock as v, normalizeClass as m, createVNode as C, createCommentVNode as A, unref as o, withCtx as y, createTextVNode as M, toDisplayString as F, normalizeStyle as T, renderSlot as U } from "vue";
4
+ import { u as G, a as P, f as Z, o as j, s as q } from "../../../chunks/floating-ui.vue-Fx4CxKut.js";
5
+ import { _ as J } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
6
+ import { _ as K } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js";
7
+ import { c as Q, i as b } from "../../../chunks/helper-qUkciePY.js";
8
+ import { useDropdown as X } from "../../../composables/useDropdown.js";
9
+ import { useEsc as Y } from "../../../composables/useEsc.js";
10
+ import { CLPlacement as _, CLIconSizes as ee, CLIconNames as te, CLColorVariants as B, CLSizes as oe, CLColors as z } from "../../../index.js";
11
+ const ne = ["data-testid"], ae = ["id", "aria-labelledby", "aria-hidden"], ge = /* @__PURE__ */ V({
1060
12
  name: "CLDropdownMenu",
1061
13
  __name: "CLDropdownMenu",
1062
14
  props: {
1063
15
  buttonAriaLabel: {},
1064
16
  buttonBorderRadius: {},
1065
17
  buttonBusy: { type: Boolean },
1066
- buttonColor: { default: Dt.Secondary },
18
+ buttonColor: { default: z.Secondary },
1067
19
  buttonDisabled: { type: Boolean },
1068
20
  buttonHeight: { default: "auto" },
1069
- buttonSize: { default: we.Small },
1070
- buttonVariant: { default: Lt.Soft },
21
+ buttonSize: { default: oe.Small },
22
+ buttonVariant: { default: B.Soft },
1071
23
  buttonWidth: { default: "auto" },
1072
24
  buttonWrapped: { type: Boolean },
1073
25
  containerBordered: { type: Boolean, default: !0 },
@@ -1075,126 +27,126 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Rn =
1075
27
  containerElevated: { type: Boolean, default: !1 },
1076
28
  contentWidth: { default: "auto" },
1077
29
  dropdownId: {},
1078
- iconAfter: { default: pe.ChevronDown },
30
+ iconAfter: { default: te.ChevronDown },
1079
31
  iconBefore: {},
1080
- iconSize: { default: ge.Tiny },
32
+ iconSize: { default: ee.Tiny },
1081
33
  isOpen: { type: Boolean, default: !1 },
1082
34
  label: {},
1083
35
  onCloseHandler: {},
1084
36
  onOpenHandler: {},
1085
- placement: { default: he.BottomStart },
37
+ placement: { default: _.BottomStart },
1086
38
  testId: { default: "clll-dropdown-menu" },
1087
39
  zIndex: { default: 30 }
1088
40
  },
1089
- setup(t, { expose: e }) {
1090
- const n = t;
1091
- let o = D(), i = D();
1092
- const s = D(), r = D(), l = D(n.isOpen), a = D(n.placement), c = "clll-dropdown-menu", f = F(() => n.zIndex === "auto" || ue(n.zIndex) ? n.zIndex : n.zIndex.toString()), u = (S) => {
1093
- S && (o.value = S);
1094
- }, m = () => {
1095
- l.value = !0, n?.onOpenHandler?.(), x(), ht && document.addEventListener("click", R);
1096
- }, d = (S) => {
1097
- S && (i.value = S);
1098
- }, h = () => {
1099
- l.value = !1, n?.onCloseHandler?.(), ht && document.removeEventListener("click", R), A(), v();
1100
- }, w = () => {
1101
- y.value ? p() : g();
41
+ setup(e, { expose: D }) {
42
+ const n = e;
43
+ let s = d(), E = d();
44
+ const w = d(), i = d(), r = d(n.isOpen), g = d(n.placement), t = "clll-dropdown-menu", $ = W(() => n.zIndex === "auto" || Q(n.zIndex) ? n.zIndex : n.zIndex.toString()), I = (a) => {
45
+ a && (s.value = a);
46
+ }, L = () => {
47
+ r.value = !0, n?.onOpenHandler?.(), R(), b && document.addEventListener("click", u);
48
+ }, S = (a) => {
49
+ a && (E.value = a);
50
+ }, x = () => {
51
+ r.value = !1, n?.onCloseHandler?.(), b && document.removeEventListener("click", u), f(), c();
52
+ }, H = () => {
53
+ k.value ? l() : p();
1102
54
  }, {
1103
- open: y,
1104
- openDropdown: g,
1105
- closeDropdown: p,
1106
- clearEventListeners: v
1107
- } = de({
1108
- triggerElem: o,
1109
- dropdownRef: r,
1110
- openDropdownHandler: m,
1111
- closeDropdownHandler: h
55
+ open: k,
56
+ openDropdown: p,
57
+ closeDropdown: l,
58
+ clearEventListeners: c
59
+ } = X({
60
+ triggerElem: s,
61
+ dropdownRef: i,
62
+ openDropdownHandler: L,
63
+ closeDropdownHandler: x
1112
64
  });
1113
- e({
65
+ D({
1114
66
  close: () => {
1115
- p(), v(), A();
67
+ l(), c(), f();
1116
68
  },
1117
69
  open: () => {
1118
- g();
70
+ p();
1119
71
  }
1120
72
  });
1121
- const { floatingStyles: $, update: x } = mn(s, r, {
1122
- middleware: [fn(), cn(10), an()],
1123
- placement: a,
1124
- open: l,
1125
- whileElementsMounted: ln
1126
- }), R = (S) => {
1127
- l.value && r.value?.contains(S?.target) && p();
1128
- }, { clearEventListeners: A } = me({ escHandler: p, triggerElem: o });
1129
- return oe(() => {
1130
- ht && document.removeEventListener("click", R), A(), v();
1131
- }), (S, ft) => (Ot(), St("div", {
1132
- class: mt([`${c}__menu`]),
1133
- "data-testid": t.testId
73
+ const { floatingStyles: O, update: R } = G(w, i, {
74
+ middleware: [Z(), j(10), q()],
75
+ placement: g,
76
+ open: r,
77
+ whileElementsMounted: P
78
+ }), u = (a) => {
79
+ r.value && i.value?.contains(a?.target) && l();
80
+ }, { clearEventListeners: f } = Y({ escHandler: l, triggerElem: s });
81
+ return N(() => {
82
+ b && document.removeEventListener("click", u), f(), c();
83
+ }), (a, ie) => (v(), h("div", {
84
+ class: m([`${t}__menu`]),
85
+ "data-testid": e.testId
1134
86
  }, [
1135
- At(L(ae), {
1136
- id: `${c}__toggle--${t.dropdownId}`,
87
+ C(o(J), {
88
+ id: `${t}__toggle--${e.dropdownId}`,
1137
89
  ref_key: "anchor",
1138
- ref: s,
1139
- "aria-controls": `${c}--${t.dropdownId}`,
1140
- "aria-expanded": L(l) || t.isOpen,
1141
- "aria-label": t.buttonAriaLabel,
1142
- busy: t.buttonBusy,
1143
- disabled: t.buttonDisabled || t.buttonBusy,
1144
- class: mt(`${c}__toggle`),
1145
- color: t.buttonColor,
1146
- "border-radius": t.buttonBorderRadius,
1147
- "forward-ref": u,
1148
- height: t.buttonHeight,
1149
- "icon-after": t.iconAfter,
1150
- "icon-before": t.iconBefore,
1151
- "icon-size": t.iconSize,
1152
- size: t.buttonSize,
1153
- "test-id": `${c}__toggle`,
1154
- variant: t.buttonVariant,
1155
- width: t.buttonWidth,
1156
- wrap: t.buttonWrapped,
1157
- "on-click": w
90
+ ref: w,
91
+ "aria-controls": `${t}--${e.dropdownId}`,
92
+ "aria-expanded": o(r) || e.isOpen,
93
+ "aria-label": e.buttonAriaLabel,
94
+ busy: e.buttonBusy,
95
+ disabled: e.buttonDisabled || e.buttonBusy,
96
+ class: m(`${t}__toggle`),
97
+ color: e.buttonColor,
98
+ "border-radius": e.buttonBorderRadius,
99
+ "forward-ref": I,
100
+ height: e.buttonHeight,
101
+ "icon-after": e.iconAfter,
102
+ "icon-before": e.iconBefore,
103
+ "icon-size": e.iconSize,
104
+ size: e.buttonSize,
105
+ "test-id": `${t}__toggle`,
106
+ variant: e.buttonVariant,
107
+ width: e.buttonWidth,
108
+ wrap: e.buttonWrapped,
109
+ "on-click": H
1158
110
  }, {
1159
- default: Et(() => [
1160
- re(se(t.label), 1)
111
+ default: y(() => [
112
+ M(F(e.label), 1)
1161
113
  ]),
1162
114
  _: 1
1163
115
  }, 8, ["id", "aria-controls", "aria-expanded", "aria-label", "busy", "disabled", "class", "color", "border-radius", "height", "icon-after", "icon-before", "icon-size", "size", "test-id", "variant", "width", "wrap"]),
1164
- L(l) || t.isOpen ? (Ot(), St("div", {
116
+ o(r) || e.isOpen ? (v(), h("div", {
1165
117
  key: 0,
1166
- id: `${c}--${t.dropdownId}`,
118
+ id: `${t}--${e.dropdownId}`,
1167
119
  ref_key: "dropdownElem",
1168
- ref: r,
1169
- "aria-labelledby": `${c}__toggle--${t.dropdownId}`,
1170
- "aria-hidden": !(L(l) || t.isOpen),
1171
- class: mt([
1172
- `${c}__dropdown`,
1173
- `${c}__dropdown--${L(a)}`
120
+ ref: i,
121
+ "aria-labelledby": `${t}__toggle--${e.dropdownId}`,
122
+ "aria-hidden": !(o(r) || e.isOpen),
123
+ class: m([
124
+ `${t}__dropdown`,
125
+ `${t}__dropdown--${o(g)}`
1174
126
  ]),
1175
- style: le({ ...L($), zIndex: L(f) })
127
+ style: T({ ...o(O), zIndex: o($) })
1176
128
  }, [
1177
- At(L(fe), {
1178
- bordered: t.containerBordered,
1179
- "border-radius": t.containerBorderRadius,
1180
- color: L(Dt).Neutral,
1181
- elevated: t.containerElevated,
1182
- "forward-ref": d,
129
+ C(o(K), {
130
+ bordered: e.containerBordered,
131
+ "border-radius": e.containerBorderRadius,
132
+ color: o(z).Neutral,
133
+ elevated: e.containerElevated,
134
+ "forward-ref": S,
1183
135
  padded: !1,
1184
- "test-id": `${c}__content`,
1185
- variant: L(Lt).Ghost,
1186
- width: t.contentWidth
136
+ "test-id": `${t}__content`,
137
+ variant: o(B).Ghost,
138
+ width: e.contentWidth
1187
139
  }, {
1188
- default: Et(() => [
1189
- ce(S.$slots, "content")
140
+ default: y(() => [
141
+ U(a.$slots, "content")
1190
142
  ]),
1191
143
  _: 3
1192
144
  }, 8, ["bordered", "border-radius", "color", "elevated", "test-id", "variant", "width"])
1193
- ], 14, gn)) : ie("", !0)
1194
- ], 10, hn));
145
+ ], 14, ae)) : A("", !0)
146
+ ], 10, ne));
1195
147
  }
1196
148
  });
1197
149
  export {
1198
- Rn as CLDropdownMenu,
1199
- Rn as default
150
+ ge as CLDropdownMenu,
151
+ ge as default
1200
152
  };