@flysk-tech/amocrm-kommo-vue-ui-kit 0.2.2 → 0.2.3
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/dist/index.js +311 -306
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as k, computed as b, readonly as G, provide as st, inject as at, onMounted as
|
|
2
|
-
var
|
|
1
|
+
import { ref as k, computed as b, readonly as G, provide as st, inject as at, onMounted as ie, onUnmounted as ct, watch as P, onBeforeUnmount as qt, defineComponent as g, createElementBlock as v, openBlock as p, mergeProps as $, unref as o, createBlock as M, createElementVNode as T, normalizeClass as x, createTextVNode as L, renderSlot as I, createCommentVNode as A, toDisplayString as D, createVNode as z, Fragment as pe, useAttrs as ut, normalizeStyle as V, nextTick as he, withCtx as O, getCurrentInstance as dt, reactive as re, useSlots as oe, Teleport as Ae, renderList as Ut, resolveDynamicComponent as Re, withModifiers as be, createStaticVNode as _e, toRef as De, watchEffect as mt } from "vue";
|
|
2
|
+
var ue = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.ALTERNATIVE = "alternative", e))(ue || {});
|
|
3
3
|
const On = "data-crm-ui-kit-theme", Ln = "default", pt = Symbol("theme-provider");
|
|
4
4
|
function Pn(e) {
|
|
5
5
|
const r = k({
|
|
6
6
|
mode: "light",
|
|
7
7
|
customVariables: {},
|
|
8
8
|
...e
|
|
9
|
-
}), i = b(() => r.value.mode === "dark" ?
|
|
9
|
+
}), i = b(() => r.value.mode === "dark" ? ue.ALTERNATIVE : ue.DEFAULT), t = (c) => {
|
|
10
10
|
r.value = {
|
|
11
11
|
...r.value,
|
|
12
12
|
...c
|
|
13
13
|
}, Fe(r.value);
|
|
14
14
|
}, l = (c) => {
|
|
15
|
-
const u = c ===
|
|
15
|
+
const u = c === ue.ALTERNATIVE ? "dark" : "light";
|
|
16
16
|
t({ mode: u });
|
|
17
17
|
}, n = () => {
|
|
18
18
|
const c = r.value.mode === "light" ? "dark" : "light";
|
|
@@ -82,7 +82,7 @@ function Be(e) {
|
|
|
82
82
|
let n = document.querySelector(l);
|
|
83
83
|
return n || (n = document.createElement("div"), n.setAttribute("id", l.replace("#", "")), document.body.appendChild(n)), n;
|
|
84
84
|
};
|
|
85
|
-
return
|
|
85
|
+
return ie(() => {
|
|
86
86
|
typeof document > "u" || (e ? r.value = t(e) || document.body : r.value = document.body, i.value = !0);
|
|
87
87
|
}), ct(() => {
|
|
88
88
|
e && r.value && r.value !== document.body && r.value.children.length === 0 && r.value.remove();
|
|
@@ -156,7 +156,7 @@ function jn(e, r = {}) {
|
|
|
156
156
|
(m = i[a]) == null || m.clearError(), delete t.value[a];
|
|
157
157
|
}, h = (a, m) => {
|
|
158
158
|
i[a] && (i[a].error.value = m, t.value[a] = m);
|
|
159
|
-
},
|
|
159
|
+
}, y = (a) => {
|
|
160
160
|
var m;
|
|
161
161
|
return (m = i[a]) == null ? void 0 : m.value.value;
|
|
162
162
|
}, f = (a, m) => {
|
|
@@ -172,7 +172,7 @@ function jn(e, r = {}) {
|
|
|
172
172
|
clearErrors: u,
|
|
173
173
|
clearFieldError: d,
|
|
174
174
|
setFieldError: h,
|
|
175
|
-
getFieldValue:
|
|
175
|
+
getFieldValue: y,
|
|
176
176
|
setFieldValue: f
|
|
177
177
|
};
|
|
178
178
|
}
|
|
@@ -187,7 +187,7 @@ const Kn = {
|
|
|
187
187
|
pattern: (e, r = "Некорректный формат") => (i) => i && !e.test(i) ? r : !0
|
|
188
188
|
}, Wt = "crm-ui-kit-theme";
|
|
189
189
|
let Zt = 0;
|
|
190
|
-
const
|
|
190
|
+
const se = /* @__PURE__ */ new Map(), Jt = (e) => {
|
|
191
191
|
const r = `${Wt}-${++Zt}`, i = document.createElement("style"), t = Object.entries(e).map(([l, n]) => `${l}: ${n};`).join(`
|
|
192
192
|
`);
|
|
193
193
|
return i.textContent = `.${r} {
|
|
@@ -197,17 +197,17 @@ const ne = /* @__PURE__ */ new Map(), Jt = (e) => {
|
|
|
197
197
|
const r = k("");
|
|
198
198
|
let i = e, t;
|
|
199
199
|
const l = (n) => {
|
|
200
|
-
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(),
|
|
201
|
-
const s =
|
|
200
|
+
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), se.delete(i))), i = n;
|
|
201
|
+
const s = se.get(n);
|
|
202
202
|
if (s)
|
|
203
203
|
s.refCount++, r.value = s.className, t = s;
|
|
204
204
|
else {
|
|
205
205
|
const { className: c, styleElement: u } = Jt(n), d = { className: c, styleElement: u, refCount: 1 };
|
|
206
|
-
|
|
206
|
+
se.set(n, d), r.value = c, t = d;
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
return l(e), P(() => e, l), qt(() => {
|
|
210
|
-
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(),
|
|
210
|
+
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), se.delete(i)));
|
|
211
211
|
}), r;
|
|
212
212
|
}, Wn = () => {
|
|
213
213
|
};
|
|
@@ -261,7 +261,7 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
261
261
|
input: Qt,
|
|
262
262
|
placeholder_visible: ei,
|
|
263
263
|
placeholderVisible: ti
|
|
264
|
-
}, ii = ["disabled", "readonly"], ze = /* @__PURE__ */
|
|
264
|
+
}, ii = ["disabled", "readonly"], ze = /* @__PURE__ */ g({
|
|
265
265
|
inheritAttrs: !1,
|
|
266
266
|
__name: "BaseInput",
|
|
267
267
|
props: {
|
|
@@ -288,7 +288,7 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
288
288
|
}
|
|
289
289
|
}), ri = "VisuallyHiddenInput-module__input___deWRN", oi = {
|
|
290
290
|
input: ri
|
|
291
|
-
},
|
|
291
|
+
}, fe = /* @__PURE__ */ g({
|
|
292
292
|
__name: "VisuallyHiddenInput",
|
|
293
293
|
props: {
|
|
294
294
|
isDisabled: { type: Boolean },
|
|
@@ -307,7 +307,7 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
307
307
|
var s;
|
|
308
308
|
return ((s = t.value) == null ? void 0 : s.inputRef) ?? null;
|
|
309
309
|
};
|
|
310
|
-
return
|
|
310
|
+
return ie(() => {
|
|
311
311
|
if (i.isDefaultChecked) {
|
|
312
312
|
const s = n();
|
|
313
313
|
s && (s.checked = !0);
|
|
@@ -328,7 +328,7 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
328
328
|
spinner_animation: ni,
|
|
329
329
|
spinnerAnimation: si,
|
|
330
330
|
centered: ai
|
|
331
|
-
}, ci = /* @__PURE__ */
|
|
331
|
+
}, ci = /* @__PURE__ */ g({
|
|
332
332
|
__name: "Spinner",
|
|
333
333
|
props: {
|
|
334
334
|
isCentered: { type: Boolean, default: !1 },
|
|
@@ -368,7 +368,7 @@ function di() {
|
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdWL", hi = "Button-module__content___PpYVU", bi = "Button-module__before___iPqpW", _i = "Button-module__after___NzIvd", fi = "Button-module__spinner_container___FC3J2", vi = "Button-module__spinner_container___FC3J2", ki = "Button-module__invalid___--B-C", xi = "Button-module__buttonShakeAnimation___awnKy",
|
|
371
|
+
const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdWL", hi = "Button-module__content___PpYVU", bi = "Button-module__before___iPqpW", _i = "Button-module__after___NzIvd", fi = "Button-module__spinner_container___FC3J2", vi = "Button-module__spinner_container___FC3J2", ki = "Button-module__invalid___--B-C", xi = "Button-module__buttonShakeAnimation___awnKy", yi = "Button-module__success___CHTsg", U = {
|
|
372
372
|
button: mi,
|
|
373
373
|
disabled: pi,
|
|
374
374
|
content: hi,
|
|
@@ -378,8 +378,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
378
378
|
spinnerContainer: vi,
|
|
379
379
|
invalid: ki,
|
|
380
380
|
buttonShakeAnimation: xi,
|
|
381
|
-
success:
|
|
382
|
-
},
|
|
381
|
+
success: yi
|
|
382
|
+
}, gi = ["type", "disabled"], Ci = { key: 0 }, ts = /* @__PURE__ */ g({
|
|
383
383
|
__name: "Button",
|
|
384
384
|
props: {
|
|
385
385
|
type: { default: "button" },
|
|
@@ -396,28 +396,28 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
396
396
|
const t = e, l = i, { shouldShowInvalidAnimation: n, showInvalidAnimation: s } = ui(), { shouldShowSuccessfulState: c, showSuccessfulState: u } = di();
|
|
397
397
|
r({ showInvalidAnimation: s, showSuccessfulState: u });
|
|
398
398
|
const d = b(() => {
|
|
399
|
-
var a, m, _, S,
|
|
400
|
-
const
|
|
399
|
+
var a, m, _, S, q;
|
|
400
|
+
const y = {
|
|
401
401
|
"--crm-ui-kit-spinner-border-color": (a = t.theme) == null ? void 0 : a["--crm-ui-kit-button-spinner-border-color"],
|
|
402
402
|
"--crm-ui-kit-spinner-border-width": (m = t.theme) == null ? void 0 : m["--crm-ui-kit-button-spinner-border-width"],
|
|
403
403
|
"--crm-ui-kit-spinner-circle-size": (_ = t.theme) == null ? void 0 : _["--crm-ui-kit-button-spinner-circle-size"],
|
|
404
404
|
"--crm-ui-kit-spinner-border-style": (S = t.theme) == null ? void 0 : S["--crm-ui-kit-button-spinner-border-style"]
|
|
405
405
|
}, f = {
|
|
406
|
-
...
|
|
407
|
-
"--crm-ui-kit-spinner-border-color": (
|
|
406
|
+
...y,
|
|
407
|
+
"--crm-ui-kit-spinner-border-color": (q = t.theme) == null ? void 0 : q["--crm-ui-kit-button-spinner-disabled-border-color"]
|
|
408
408
|
};
|
|
409
|
-
return { defaultTheme:
|
|
410
|
-
}), h = (
|
|
411
|
-
t.isDisabled && !t.isClickableWhileDisabled || t.isLoading || l("click",
|
|
409
|
+
return { defaultTheme: y, disabledTheme: f };
|
|
410
|
+
}), h = (y) => {
|
|
411
|
+
t.isDisabled && !t.isClickableWhileDisabled || t.isLoading || l("click", y);
|
|
412
412
|
};
|
|
413
|
-
return (
|
|
413
|
+
return (y, f) => (p(), v("button", $(y.$attrs, {
|
|
414
414
|
type: e.type,
|
|
415
415
|
class: [
|
|
416
|
-
o(
|
|
416
|
+
o(U).button,
|
|
417
417
|
{
|
|
418
|
-
[o(
|
|
419
|
-
[o(
|
|
420
|
-
[o(
|
|
418
|
+
[o(U).invalid]: o(n),
|
|
419
|
+
[o(U).success]: o(c),
|
|
420
|
+
[o(U).disabled]: e.isDisabled
|
|
421
421
|
}
|
|
422
422
|
],
|
|
423
423
|
style: e.theme,
|
|
@@ -425,42 +425,42 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
425
425
|
onClick: h
|
|
426
426
|
}), [
|
|
427
427
|
T("span", {
|
|
428
|
-
class: x(o(
|
|
428
|
+
class: x(o(U).content)
|
|
429
429
|
}, [
|
|
430
430
|
o(c) ? (p(), v("span", Ci, [
|
|
431
431
|
L(D(e.successfulStateText) + " ", 1),
|
|
432
|
-
e.successfulStateText ? A("", !0) : I(
|
|
432
|
+
e.successfulStateText ? A("", !0) : I(y.$slots, "default", { key: 0 })
|
|
433
433
|
])) : e.isLoading ? (p(), v("span", {
|
|
434
434
|
key: 1,
|
|
435
|
-
class: x(o(
|
|
435
|
+
class: x(o(U).spinner_container)
|
|
436
436
|
}, [
|
|
437
437
|
z(ci, {
|
|
438
438
|
theme: e.isDisabled ? d.value.disabledTheme : d.value.defaultTheme,
|
|
439
439
|
"is-centered": !0
|
|
440
440
|
}, null, 8, ["theme"])
|
|
441
|
-
], 2)) : (p(), v(
|
|
441
|
+
], 2)) : (p(), v(pe, { key: 2 }, [
|
|
442
442
|
e.before ? (p(), v("span", {
|
|
443
443
|
key: 0,
|
|
444
|
-
class: x(o(
|
|
444
|
+
class: x(o(U).before)
|
|
445
445
|
}, [
|
|
446
|
-
I(
|
|
446
|
+
I(y.$slots, "before", {}, () => [
|
|
447
447
|
L(D(e.before), 1)
|
|
448
448
|
])
|
|
449
449
|
], 2)) : A("", !0),
|
|
450
450
|
T("span", null, [
|
|
451
|
-
I(
|
|
451
|
+
I(y.$slots, "default")
|
|
452
452
|
]),
|
|
453
453
|
e.after ? (p(), v("span", {
|
|
454
454
|
key: 1,
|
|
455
|
-
class: x(o(
|
|
455
|
+
class: x(o(U).after)
|
|
456
456
|
}, [
|
|
457
|
-
I(
|
|
457
|
+
I(y.$slots, "after", {}, () => [
|
|
458
458
|
L(D(e.after), 1)
|
|
459
459
|
])
|
|
460
460
|
], 2)) : A("", !0)
|
|
461
461
|
], 64))
|
|
462
462
|
], 2)
|
|
463
|
-
], 16,
|
|
463
|
+
], 16, gi));
|
|
464
464
|
}
|
|
465
465
|
}), Ee = {
|
|
466
466
|
"--crm-ui-kit-button-z-index": "1",
|
|
@@ -524,7 +524,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
524
524
|
"--crm-ui-kit-button-hover-background-color": "inherit",
|
|
525
525
|
"--crm-ui-kit-button-hover-border-color": "transparent",
|
|
526
526
|
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-secondary-light)"
|
|
527
|
-
},
|
|
527
|
+
}, ve = {
|
|
528
528
|
"--crm-ui-kit-text-size-s-font-size": "11px",
|
|
529
529
|
"--crm-ui-kit-text-size-s-line-height": "15px",
|
|
530
530
|
"--crm-ui-kit-text-size-m-font-size": "13px",
|
|
@@ -536,19 +536,19 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
536
536
|
"--crm-ui-kit-text-size-xl-font-size": "18px",
|
|
537
537
|
"--crm-ui-kit-text-size-xl-line-height": "24px"
|
|
538
538
|
}, Oe = {
|
|
539
|
-
...
|
|
539
|
+
...ve,
|
|
540
540
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
541
541
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
542
542
|
}, ls = {
|
|
543
|
-
...
|
|
543
|
+
...ve,
|
|
544
544
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-light)",
|
|
545
545
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
546
546
|
}, ns = {
|
|
547
|
-
...
|
|
547
|
+
...ve,
|
|
548
548
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-dark)",
|
|
549
549
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
550
550
|
}, Ii = {
|
|
551
|
-
...
|
|
551
|
+
...ve,
|
|
552
552
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-color-error)",
|
|
553
553
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
554
554
|
}, bt = {
|
|
@@ -619,7 +619,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
619
619
|
invalidDescription: Ni,
|
|
620
620
|
invalid_description_right: Fi,
|
|
621
621
|
invalidDescriptionRight: Hi
|
|
622
|
-
}, cs = /* @__PURE__ */
|
|
622
|
+
}, cs = /* @__PURE__ */ g({
|
|
623
623
|
inheritAttrs: !1,
|
|
624
624
|
__name: "Input",
|
|
625
625
|
props: {
|
|
@@ -643,7 +643,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
643
643
|
})), h = (m) => {
|
|
644
644
|
const _ = m.target;
|
|
645
645
|
s("update:modelValue", _.value), s("input", m);
|
|
646
|
-
},
|
|
646
|
+
}, y = (m) => {
|
|
647
647
|
s("change", m);
|
|
648
648
|
}, f = (m) => {
|
|
649
649
|
s("focus", m);
|
|
@@ -681,7 +681,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
681
681
|
"is-readonly": e.isReadonly,
|
|
682
682
|
"is-placeholder-visible-on-focus": e.isPlaceholderVisibleOnFocus,
|
|
683
683
|
onInput: h,
|
|
684
|
-
onChange:
|
|
684
|
+
onChange: y,
|
|
685
685
|
onFocus: f,
|
|
686
686
|
onBlur: a
|
|
687
687
|
}), null, 16, ["class", "is-disabled", "is-readonly", "is-placeholder-visible-on-focus"]),
|
|
@@ -702,7 +702,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
702
702
|
], 2)
|
|
703
703
|
], 6));
|
|
704
704
|
}
|
|
705
|
-
}), Yi = "TextArea-module__wrapper___Bn4Tw", qi = "TextArea-module__textarea_container___FS0Tq", Ui = "TextArea-module__textarea_container___FS0Tq", ji = "TextArea-module__textarea___zZCio", Ki = "TextArea-module__placeholder_visible___eCc8w", Wi = "TextArea-module__placeholder_visible___eCc8w", Zi = "TextArea-module__disabled___lHxCa", Ji = "TextArea-module__invalid_description___B6FfM", Xi = "TextArea-module__invalid_description___B6FfM", Qi = "TextArea-module__invalid___lqbKp",
|
|
705
|
+
}), Yi = "TextArea-module__wrapper___Bn4Tw", qi = "TextArea-module__textarea_container___FS0Tq", Ui = "TextArea-module__textarea_container___FS0Tq", ji = "TextArea-module__textarea___zZCio", Ki = "TextArea-module__placeholder_visible___eCc8w", Wi = "TextArea-module__placeholder_visible___eCc8w", Zi = "TextArea-module__disabled___lHxCa", Ji = "TextArea-module__invalid_description___B6FfM", Xi = "TextArea-module__invalid_description___B6FfM", Qi = "TextArea-module__invalid___lqbKp", J = {
|
|
706
706
|
wrapper: Yi,
|
|
707
707
|
textarea_container: qi,
|
|
708
708
|
textareaContainer: Ui,
|
|
@@ -713,7 +713,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
713
713
|
invalid_description: Ji,
|
|
714
714
|
invalidDescription: Xi,
|
|
715
715
|
invalid: Qi
|
|
716
|
-
}, er = ["disabled", "readonly", "value"], us = /* @__PURE__ */
|
|
716
|
+
}, er = ["disabled", "readonly", "value"], us = /* @__PURE__ */ g({
|
|
717
717
|
inheritAttrs: !1,
|
|
718
718
|
__name: "TextArea",
|
|
719
719
|
props: {
|
|
@@ -733,7 +733,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
733
733
|
const d = u.target;
|
|
734
734
|
l("update:modelValue", d.value), t.isAutosized && c();
|
|
735
735
|
}, c = () => {
|
|
736
|
-
!n.value || !t.isAutosized ||
|
|
736
|
+
!n.value || !t.isAutosized || he(() => {
|
|
737
737
|
n.value && (n.value.style.height = "auto", n.value.style.height = `${n.value.scrollHeight}px`, l("autosize"));
|
|
738
738
|
});
|
|
739
739
|
};
|
|
@@ -750,15 +750,15 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
750
750
|
), r({
|
|
751
751
|
textareaRef: n
|
|
752
752
|
}), (u, d) => (p(), v("div", {
|
|
753
|
-
class: x(o(
|
|
753
|
+
class: x(o(J).wrapper),
|
|
754
754
|
style: V(e.theme)
|
|
755
755
|
}, [
|
|
756
756
|
T("div", {
|
|
757
757
|
class: x([
|
|
758
|
-
o(
|
|
758
|
+
o(J).textarea_container,
|
|
759
759
|
{
|
|
760
|
-
[o(
|
|
761
|
-
[o(
|
|
760
|
+
[o(J).invalid]: e.isInvalid,
|
|
761
|
+
[o(J).disabled]: e.isDisabled
|
|
762
762
|
}
|
|
763
763
|
])
|
|
764
764
|
}, [
|
|
@@ -766,9 +766,9 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
766
766
|
ref_key: "textareaRef",
|
|
767
767
|
ref: n,
|
|
768
768
|
class: [
|
|
769
|
-
o(
|
|
769
|
+
o(J).textarea,
|
|
770
770
|
{
|
|
771
|
-
[o(
|
|
771
|
+
[o(J).placeholder_visible]: e.isPlaceholderVisibleOnFocus
|
|
772
772
|
}
|
|
773
773
|
],
|
|
774
774
|
style: { maxHeight: e.maxHeight ? `${e.maxHeight}px` : void 0 },
|
|
@@ -780,7 +780,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
780
780
|
], 2),
|
|
781
781
|
e.isInvalid && e.invalidDescription ? (p(), v("div", {
|
|
782
782
|
key: 0,
|
|
783
|
-
class: x(o(
|
|
783
|
+
class: x(o(J).invalid_description)
|
|
784
784
|
}, D(e.invalidDescription), 3)) : A("", !0)
|
|
785
785
|
], 6));
|
|
786
786
|
}
|
|
@@ -815,7 +815,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
815
815
|
}, ms = {
|
|
816
816
|
...ft,
|
|
817
817
|
"--crm-ui-kit-textarea-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
818
|
-
}, tr = "Text-module__text___XXjeA", ir = "Text-module__ellipsis___79OkO", rr = "Text-module__line_clamp___joAdp", or = "Text-module__line_clamp___joAdp", lr = "Text-module__s___sApyd", nr = "Text-module__m___SHtLp", sr = "Text-module__ms___jfRqe", ar = "Text-module__l___GNH3i", cr = "Text-module__xl___qII75",
|
|
818
|
+
}, tr = "Text-module__text___XXjeA", ir = "Text-module__ellipsis___79OkO", rr = "Text-module__line_clamp___joAdp", or = "Text-module__line_clamp___joAdp", lr = "Text-module__s___sApyd", nr = "Text-module__m___SHtLp", sr = "Text-module__ms___jfRqe", ar = "Text-module__l___GNH3i", cr = "Text-module__xl___qII75", ae = {
|
|
819
819
|
text: tr,
|
|
820
820
|
ellipsis: ir,
|
|
821
821
|
line_clamp: rr,
|
|
@@ -825,7 +825,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
825
825
|
ms: sr,
|
|
826
826
|
l: ar,
|
|
827
827
|
xl: cr
|
|
828
|
-
}, Le = /* @__PURE__ */
|
|
828
|
+
}, Le = /* @__PURE__ */ g({
|
|
829
829
|
__name: "Text",
|
|
830
830
|
props: {
|
|
831
831
|
size: {},
|
|
@@ -841,11 +841,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
841
841
|
const t = b(() => r.maxRows > 1);
|
|
842
842
|
return (l, n) => (p(), v("span", $(l.$attrs, {
|
|
843
843
|
class: [
|
|
844
|
-
o(
|
|
845
|
-
o(
|
|
844
|
+
o(ae).text,
|
|
845
|
+
o(ae)[e.size],
|
|
846
846
|
{
|
|
847
|
-
[o(
|
|
848
|
-
[o(
|
|
847
|
+
[o(ae).ellipsis]: e.isEllipsis,
|
|
848
|
+
[o(ae).line_clamp]: t.value
|
|
849
849
|
}
|
|
850
850
|
],
|
|
851
851
|
style: {
|
|
@@ -893,7 +893,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
893
893
|
...Oe,
|
|
894
894
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-inline-input-invalid-description-color)",
|
|
895
895
|
"--crm-ui-kit-text-size-m-line-height": "15px"
|
|
896
|
-
}, dr = "InlineInput-module__wrapper___qm49n", mr = "InlineInput-module__input_container___gEtfR", pr = "InlineInput-module__input_container___gEtfR", hr = "InlineInput-module__after_container___zn-12", br = "InlineInput-module__after_container___zn-12", _r = "InlineInput-module__after___-G08s", fr = "InlineInput-module__has_after___5vayE", vr = "InlineInput-module__has_after___5vayE", kr = "InlineInput-module__invalid_description_container___-HlH-", xr = "InlineInput-module__invalid_description_container___-HlH-",
|
|
896
|
+
}, dr = "InlineInput-module__wrapper___qm49n", mr = "InlineInput-module__input_container___gEtfR", pr = "InlineInput-module__input_container___gEtfR", hr = "InlineInput-module__after_container___zn-12", br = "InlineInput-module__after_container___zn-12", _r = "InlineInput-module__after___-G08s", fr = "InlineInput-module__has_after___5vayE", vr = "InlineInput-module__has_after___5vayE", kr = "InlineInput-module__invalid_description_container___-HlH-", xr = "InlineInput-module__invalid_description_container___-HlH-", yr = "InlineInput-module__invalid_description___lJpY9", gr = "InlineInput-module__invalid_description___lJpY9", Cr = "InlineInput-module__disabled___bzvEo", j = {
|
|
897
897
|
wrapper: dr,
|
|
898
898
|
input_container: mr,
|
|
899
899
|
inputContainer: pr,
|
|
@@ -904,10 +904,10 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
904
904
|
hasAfter: vr,
|
|
905
905
|
invalid_description_container: kr,
|
|
906
906
|
invalidDescriptionContainer: xr,
|
|
907
|
-
invalid_description:
|
|
908
|
-
invalidDescription:
|
|
907
|
+
invalid_description: yr,
|
|
908
|
+
invalidDescription: gr,
|
|
909
909
|
disabled: Cr
|
|
910
|
-
}, bs = /* @__PURE__ */
|
|
910
|
+
}, bs = /* @__PURE__ */ g({
|
|
911
911
|
inheritAttrs: !1,
|
|
912
912
|
__name: "InlineInput",
|
|
913
913
|
props: {
|
|
@@ -923,8 +923,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
923
923
|
emits: ["update:modelValue", "input"],
|
|
924
924
|
setup(e, { expose: r, emit: i }) {
|
|
925
925
|
const t = e, l = i, n = ut(), s = b(() => {
|
|
926
|
-
const { class: d, style: h, ...
|
|
927
|
-
return t.modelValue !== void 0 ? { ...
|
|
926
|
+
const { class: d, style: h, ...y } = n;
|
|
927
|
+
return t.modelValue !== void 0 ? { ...y, value: t.modelValue } : y;
|
|
928
928
|
}), c = (d) => {
|
|
929
929
|
const h = d.target;
|
|
930
930
|
l("update:modelValue", h.value), l("input", d);
|
|
@@ -932,21 +932,21 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
932
932
|
return r({
|
|
933
933
|
inputRef: u
|
|
934
934
|
}), (d, h) => (p(), v("div", {
|
|
935
|
-
class: x(o(
|
|
935
|
+
class: x(o(j).wrapper),
|
|
936
936
|
style: V(e.theme)
|
|
937
937
|
}, [
|
|
938
938
|
T("div", {
|
|
939
939
|
class: x([
|
|
940
|
-
o(
|
|
940
|
+
o(j).input_container,
|
|
941
941
|
{
|
|
942
|
-
[o(
|
|
942
|
+
[o(j).disabled]: e.isDisabled
|
|
943
943
|
}
|
|
944
944
|
])
|
|
945
945
|
}, [
|
|
946
946
|
z(ze, $(s.value, {
|
|
947
947
|
ref_key: "inputRef",
|
|
948
948
|
ref: u,
|
|
949
|
-
class: { [o(
|
|
949
|
+
class: { [o(j).has_after]: !!e.after },
|
|
950
950
|
"is-disabled": e.isDisabled,
|
|
951
951
|
"is-readonly": e.isReadonly,
|
|
952
952
|
"is-placeholder-visible-on-focus": e.isPlaceholderVisibleOnFocus,
|
|
@@ -955,20 +955,20 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
955
955
|
], 2),
|
|
956
956
|
e.after ? (p(), v("div", {
|
|
957
957
|
key: 0,
|
|
958
|
-
class: x(o(
|
|
958
|
+
class: x(o(j).after_container)
|
|
959
959
|
}, [
|
|
960
960
|
T("div", {
|
|
961
|
-
class: x(o(
|
|
961
|
+
class: x(o(j).after)
|
|
962
962
|
}, D(e.after), 3)
|
|
963
963
|
], 2)) : A("", !0),
|
|
964
964
|
e.isInvalid ? (p(), v("div", {
|
|
965
965
|
key: 1,
|
|
966
|
-
class: x(o(
|
|
966
|
+
class: x(o(j).invalid_description_container)
|
|
967
967
|
}, [
|
|
968
968
|
z(Le, {
|
|
969
969
|
size: "m",
|
|
970
970
|
theme: o(ur),
|
|
971
|
-
class: x(o(
|
|
971
|
+
class: x(o(j).invalid_description)
|
|
972
972
|
}, {
|
|
973
973
|
default: O(() => [
|
|
974
974
|
L(D(e.invalidDescription), 1)
|
|
@@ -982,7 +982,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
982
982
|
wrapper: Ir,
|
|
983
983
|
switcher: $r,
|
|
984
984
|
input: wr
|
|
985
|
-
}, _s = /* @__PURE__ */
|
|
985
|
+
}, _s = /* @__PURE__ */ g({
|
|
986
986
|
inheritAttrs: !1,
|
|
987
987
|
__name: "Switcher",
|
|
988
988
|
props: {
|
|
@@ -1003,7 +1003,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1003
1003
|
class: x(o(Ie).wrapper),
|
|
1004
1004
|
style: V(e.theme)
|
|
1005
1005
|
}, [
|
|
1006
|
-
z(
|
|
1006
|
+
z(fe, $(l.$attrs, {
|
|
1007
1007
|
id: i.id,
|
|
1008
1008
|
ref_key: "inputRef",
|
|
1009
1009
|
ref: t,
|
|
@@ -1021,7 +1021,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1021
1021
|
}, null, 2)
|
|
1022
1022
|
], 6));
|
|
1023
1023
|
}
|
|
1024
|
-
}), Sr = "Label-module__wrapper___NGGOS", Tr = "Label-module__top___-lhYX", Ar = "Label-module__text_container___UrUIG", Rr = "Label-module__text_container___UrUIG", Dr = "Label-module__centered___l3-JI", Br = "Label-module__left___YkSoh", Vr = "Label-module__right___KNrND", Mr = "Label-module__text_description___UScdu", zr = "Label-module__text_description___UScdu",
|
|
1024
|
+
}), Sr = "Label-module__wrapper___NGGOS", Tr = "Label-module__top___-lhYX", Ar = "Label-module__text_container___UrUIG", Rr = "Label-module__text_container___UrUIG", Dr = "Label-module__centered___l3-JI", Br = "Label-module__left___YkSoh", Vr = "Label-module__right___KNrND", Mr = "Label-module__text_description___UScdu", zr = "Label-module__text_description___UScdu", X = {
|
|
1025
1025
|
wrapper: Sr,
|
|
1026
1026
|
top: Tr,
|
|
1027
1027
|
text_container: Ar,
|
|
@@ -1031,7 +1031,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1031
1031
|
right: Vr,
|
|
1032
1032
|
text_description: Mr,
|
|
1033
1033
|
textDescription: zr
|
|
1034
|
-
}, Er = { key: 0 }, fs = /* @__PURE__ */
|
|
1034
|
+
}, Er = { key: 0 }, fs = /* @__PURE__ */ g({
|
|
1035
1035
|
__name: "Label",
|
|
1036
1036
|
props: {
|
|
1037
1037
|
theme: {},
|
|
@@ -1042,9 +1042,9 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1042
1042
|
},
|
|
1043
1043
|
setup(e, { expose: r }) {
|
|
1044
1044
|
const i = e, t = k(null), l = {
|
|
1045
|
-
top:
|
|
1046
|
-
left:
|
|
1047
|
-
right:
|
|
1045
|
+
top: X.top,
|
|
1046
|
+
left: X.left,
|
|
1047
|
+
right: X.right
|
|
1048
1048
|
}, n = b(() => l[i.textPlacement]);
|
|
1049
1049
|
return r({
|
|
1050
1050
|
labelRef: t
|
|
@@ -1054,14 +1054,14 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1054
1054
|
class: [
|
|
1055
1055
|
n.value,
|
|
1056
1056
|
{
|
|
1057
|
-
[o(
|
|
1057
|
+
[o(X).centered]: e.isCentered
|
|
1058
1058
|
}
|
|
1059
1059
|
],
|
|
1060
1060
|
style: e.theme
|
|
1061
1061
|
}), [
|
|
1062
1062
|
e.text || e.description || s.$slots.text || s.$slots.description ? (p(), v("div", {
|
|
1063
1063
|
key: 0,
|
|
1064
|
-
class: x(o(
|
|
1064
|
+
class: x(o(X).text_container)
|
|
1065
1065
|
}, [
|
|
1066
1066
|
e.text || s.$slots.text ? (p(), v("span", Er, [
|
|
1067
1067
|
I(s.$slots, "text", {}, () => [
|
|
@@ -1070,7 +1070,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1070
1070
|
])) : A("", !0),
|
|
1071
1071
|
e.description || s.$slots.description ? (p(), v("div", {
|
|
1072
1072
|
key: 1,
|
|
1073
|
-
class: x(o(
|
|
1073
|
+
class: x(o(X).text_description)
|
|
1074
1074
|
}, [
|
|
1075
1075
|
I(s.$slots, "description", {}, () => [
|
|
1076
1076
|
L(D(e.description), 1)
|
|
@@ -1097,7 +1097,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1097
1097
|
button: Or,
|
|
1098
1098
|
invalid: Lr,
|
|
1099
1099
|
disabled: Pr
|
|
1100
|
-
}, Gr = ["disabled"], Nr = "Enter", Fr = "Space", kt = /* @__PURE__ */
|
|
1100
|
+
}, Gr = ["disabled"], Nr = "Enter", Fr = "Space", kt = /* @__PURE__ */ g({
|
|
1101
1101
|
__name: "SelectButton",
|
|
1102
1102
|
props: {
|
|
1103
1103
|
theme: {},
|
|
@@ -1170,12 +1170,12 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1170
1170
|
`\`${n}\` must be used within \`${e}\``
|
|
1171
1171
|
);
|
|
1172
1172
|
}];
|
|
1173
|
-
},
|
|
1173
|
+
}, yt = "Select", [Hr, ke] = F(yt), Yr = "Select-module__select___U4LyF", qr = "Select-module__opened___IOv4m", Ue = {
|
|
1174
1174
|
select: Yr,
|
|
1175
1175
|
opened: qr
|
|
1176
|
-
}, Ur =
|
|
1177
|
-
name:
|
|
1178
|
-
}),
|
|
1176
|
+
}, Ur = g({
|
|
1177
|
+
name: yt
|
|
1178
|
+
}), ys = /* @__PURE__ */ g({
|
|
1179
1179
|
...Ur,
|
|
1180
1180
|
props: {
|
|
1181
1181
|
theme: {},
|
|
@@ -1188,14 +1188,14 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1188
1188
|
},
|
|
1189
1189
|
emits: ["change", "openChange"],
|
|
1190
1190
|
setup(e, { expose: r, emit: i }) {
|
|
1191
|
-
const l = e, n = i, s = k(null), c = k(l.isDefaultOpen ?? !1), u = k(-1), d = k(l.defaultValue), h = b(() => l.value !== void 0),
|
|
1192
|
-
const R =
|
|
1191
|
+
const l = e, n = i, s = k(null), c = k(l.isDefaultOpen ?? !1), u = k(-1), d = k(l.defaultValue), h = b(() => l.value !== void 0), y = dt(), f = b(() => {
|
|
1192
|
+
const R = y == null ? void 0 : y.vnode;
|
|
1193
1193
|
return R != null && R.props ? "isOpen" in R.props || "is-open" in R.props : !1;
|
|
1194
1194
|
}), a = b(
|
|
1195
1195
|
() => h.value ? l.value : d.value
|
|
1196
1196
|
), m = b(
|
|
1197
1197
|
() => f.value ? !!l.isOpen : c.value
|
|
1198
|
-
),
|
|
1198
|
+
), Q = re({
|
|
1199
1199
|
get hoveredIndex() {
|
|
1200
1200
|
return u.value;
|
|
1201
1201
|
},
|
|
@@ -1227,7 +1227,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1227
1227
|
return l.defaultValue;
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
|
-
return Hr(
|
|
1230
|
+
return Hr(Q), r({
|
|
1231
1231
|
selectRef: s
|
|
1232
1232
|
}), (R, Ne) => (p(), v("div", $(R.$attrs, {
|
|
1233
1233
|
ref_key: "selectRef",
|
|
@@ -1243,12 +1243,12 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1243
1243
|
I(R.$slots, "default")
|
|
1244
1244
|
], 16));
|
|
1245
1245
|
}
|
|
1246
|
-
}),
|
|
1246
|
+
}), gs = {
|
|
1247
1247
|
"--crm-ui-kit-select-z-index": "auto",
|
|
1248
1248
|
"--crm-ui-kit-select-opened-z-index": "60"
|
|
1249
1249
|
}, jr = "Option-module__text___taK9J", Kr = {
|
|
1250
1250
|
text: jr
|
|
1251
|
-
},
|
|
1251
|
+
}, le = /* @__PURE__ */ g({
|
|
1252
1252
|
__name: "Option",
|
|
1253
1253
|
props: {
|
|
1254
1254
|
class: {}
|
|
@@ -1281,7 +1281,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1281
1281
|
item: Wr,
|
|
1282
1282
|
selected: Zr,
|
|
1283
1283
|
hovered: Jr
|
|
1284
|
-
}, Xr = "Select.Item", Cs = /* @__PURE__ */
|
|
1284
|
+
}, Xr = "Select.Item", Cs = /* @__PURE__ */ g({
|
|
1285
1285
|
__name: "Item",
|
|
1286
1286
|
props: {
|
|
1287
1287
|
item: {},
|
|
@@ -1290,7 +1290,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1290
1290
|
theme: {}
|
|
1291
1291
|
},
|
|
1292
1292
|
setup(e, { expose: r }) {
|
|
1293
|
-
const i = e, t =
|
|
1293
|
+
const i = e, t = ke(Xr), l = k(null), n = b(() => {
|
|
1294
1294
|
var u;
|
|
1295
1295
|
return ((u = t.value) == null ? void 0 : u.value) === i.item.value;
|
|
1296
1296
|
}), s = b(() => t.hoveredIndex === i.index), c = (u) => {
|
|
@@ -1314,7 +1314,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1314
1314
|
onClick: c
|
|
1315
1315
|
}), [
|
|
1316
1316
|
I(u.$slots, "default", {}, () => [
|
|
1317
|
-
z(
|
|
1317
|
+
z(le, null, {
|
|
1318
1318
|
default: O(() => [
|
|
1319
1319
|
L(D(e.item.option), 1)
|
|
1320
1320
|
]),
|
|
@@ -1334,7 +1334,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1334
1334
|
"--crm-ui-kit-select-item-hover-background-color": "var(--crm-ui-kit-palette-background-default)"
|
|
1335
1335
|
}, Qr = "Arrow-module__wrapper___MpIq-", eo = {
|
|
1336
1336
|
wrapper: Qr
|
|
1337
|
-
}, to = 20, io = 20, $s = /* @__PURE__ */
|
|
1337
|
+
}, to = 20, io = 20, $s = /* @__PURE__ */ g({
|
|
1338
1338
|
__name: "Arrow",
|
|
1339
1339
|
props: {
|
|
1340
1340
|
theme: {},
|
|
@@ -1374,7 +1374,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1374
1374
|
"--crm-ui-kit-select-margin": "0 0 0 auto"
|
|
1375
1375
|
}, ro = "Icon-module__wrapper___LScci", oo = {
|
|
1376
1376
|
wrapper: ro
|
|
1377
|
-
}, Ss = /* @__PURE__ */
|
|
1377
|
+
}, Ss = /* @__PURE__ */ g({
|
|
1378
1378
|
__name: "Icon",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
theme: {}
|
|
@@ -1400,7 +1400,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1400
1400
|
}, lo = "List-module__list___yt0s5", no = "List-module__opened___-UDVm", je = {
|
|
1401
1401
|
list: lo,
|
|
1402
1402
|
opened: no
|
|
1403
|
-
}, Ke = /* @__PURE__ */
|
|
1403
|
+
}, Ke = /* @__PURE__ */ g({
|
|
1404
1404
|
__name: "List",
|
|
1405
1405
|
props: {
|
|
1406
1406
|
theme: {},
|
|
@@ -1409,7 +1409,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1409
1409
|
},
|
|
1410
1410
|
emits: ["select", "toggle", "hoveredIndexChange"],
|
|
1411
1411
|
setup(e, { expose: r, emit: i }) {
|
|
1412
|
-
const t = e, l = i, n = k(null), s =
|
|
1412
|
+
const t = e, l = i, n = k(null), s = oe(), c = b(() => s.default ? s.default().length : 0), u = (d) => {
|
|
1413
1413
|
const { hoveredIndex: h } = t;
|
|
1414
1414
|
switch (d.code) {
|
|
1415
1415
|
case "ArrowDown":
|
|
@@ -1461,13 +1461,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1461
1461
|
"--crm-ui-kit-list-border-radius": "3px",
|
|
1462
1462
|
"--crm-ui-kit-list-outline": "none",
|
|
1463
1463
|
"--crm-ui-kit-list-color": "var(--crm-ui-kit-palette-text-primary)"
|
|
1464
|
-
}, so = "Select.Button", Rs = /* @__PURE__ */
|
|
1464
|
+
}, so = "Select.Button", Rs = /* @__PURE__ */ g({
|
|
1465
1465
|
__name: "Button",
|
|
1466
1466
|
props: {
|
|
1467
1467
|
theme: {}
|
|
1468
1468
|
},
|
|
1469
1469
|
setup(e, { expose: r }) {
|
|
1470
|
-
const i =
|
|
1470
|
+
const i = ke(so), t = k(null), l = () => {
|
|
1471
1471
|
i.onOpen(!i.isOpened);
|
|
1472
1472
|
};
|
|
1473
1473
|
return P(
|
|
@@ -1493,16 +1493,16 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1493
1493
|
_: 3
|
|
1494
1494
|
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
1495
1495
|
}
|
|
1496
|
-
}),
|
|
1496
|
+
}), gt = ({ ref: e, handler: r }) => {
|
|
1497
1497
|
const i = (t) => {
|
|
1498
1498
|
e.value && !e.value.contains(t.target) && r();
|
|
1499
1499
|
};
|
|
1500
|
-
|
|
1500
|
+
ie(() => {
|
|
1501
1501
|
document.addEventListener("mousedown", i);
|
|
1502
1502
|
}), ct(() => {
|
|
1503
1503
|
document.removeEventListener("mousedown", i);
|
|
1504
1504
|
});
|
|
1505
|
-
}, ao = "Select.List", Ds = /* @__PURE__ */
|
|
1505
|
+
}, ao = "Select.List", Ds = /* @__PURE__ */ g({
|
|
1506
1506
|
__name: "SelectList",
|
|
1507
1507
|
props: {
|
|
1508
1508
|
theme: {},
|
|
@@ -1510,7 +1510,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1510
1510
|
container: {}
|
|
1511
1511
|
},
|
|
1512
1512
|
setup(e, { expose: r }) {
|
|
1513
|
-
const i = e, t =
|
|
1513
|
+
const i = e, t = ke(ao), l = k(null), n = oe(), s = b(() => n.default ? n.default().map((m) => {
|
|
1514
1514
|
var _;
|
|
1515
1515
|
return (_ = m.props) == null ? void 0 : _.item;
|
|
1516
1516
|
}).filter(Boolean) : []), c = b(() => {
|
|
@@ -1528,14 +1528,14 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1528
1528
|
t.onHoveredIndexChange(a);
|
|
1529
1529
|
}, h = (a) => {
|
|
1530
1530
|
t.onOpen(a);
|
|
1531
|
-
},
|
|
1531
|
+
}, y = (a) => {
|
|
1532
1532
|
const m = s.value[a];
|
|
1533
1533
|
m && typeof t.onChange == "function" && t.onChange(m);
|
|
1534
1534
|
}, f = b(() => {
|
|
1535
1535
|
var a;
|
|
1536
1536
|
return ((a = l.value) == null ? void 0 : a.listRef) ?? null;
|
|
1537
1537
|
});
|
|
1538
|
-
return
|
|
1538
|
+
return gt({
|
|
1539
1539
|
ref: f,
|
|
1540
1540
|
handler: () => {
|
|
1541
1541
|
t.isOpened && t.onOpen(!1);
|
|
@@ -1561,7 +1561,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1561
1561
|
"hovered-index": u.value,
|
|
1562
1562
|
onHoveredIndexChange: d,
|
|
1563
1563
|
onToggle: h,
|
|
1564
|
-
onSelect:
|
|
1564
|
+
onSelect: y
|
|
1565
1565
|
}, {
|
|
1566
1566
|
default: O(() => [
|
|
1567
1567
|
I(a.$slots, "default")
|
|
@@ -1578,7 +1578,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1578
1578
|
"hovered-index": u.value,
|
|
1579
1579
|
onHoveredIndexChange: d,
|
|
1580
1580
|
onToggle: h,
|
|
1581
|
-
onSelect:
|
|
1581
|
+
onSelect: y
|
|
1582
1582
|
}, {
|
|
1583
1583
|
default: O(() => [
|
|
1584
1584
|
I(a.$slots, "default")
|
|
@@ -1586,7 +1586,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1586
1586
|
_: 3
|
|
1587
1587
|
}, 8, ["class", "is-opened", "theme", "hovered-index"]));
|
|
1588
1588
|
}
|
|
1589
|
-
}), co = "Select.Value", Bs = /* @__PURE__ */
|
|
1589
|
+
}), co = "Select.Value", Bs = /* @__PURE__ */ g({
|
|
1590
1590
|
__name: "Value",
|
|
1591
1591
|
props: {
|
|
1592
1592
|
placeholder: { default: "" },
|
|
@@ -1594,13 +1594,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1594
1594
|
name: {}
|
|
1595
1595
|
},
|
|
1596
1596
|
setup(e, { expose: r }) {
|
|
1597
|
-
const i = e, t =
|
|
1597
|
+
const i = e, t = ke(co), l = b(() => !t.value), n = k(null);
|
|
1598
1598
|
return r({
|
|
1599
1599
|
optionRef: n
|
|
1600
1600
|
}), (s, c) => {
|
|
1601
1601
|
var u;
|
|
1602
|
-
return p(), v(
|
|
1603
|
-
s.$slots.default ? I(s.$slots, "default", { key: 0 }) : (p(), M(
|
|
1602
|
+
return p(), v(pe, null, [
|
|
1603
|
+
s.$slots.default ? I(s.$slots, "default", { key: 0 }) : (p(), M(le, {
|
|
1604
1604
|
key: 1,
|
|
1605
1605
|
ref_key: "optionRef",
|
|
1606
1606
|
ref: n,
|
|
@@ -1614,7 +1614,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1614
1614
|
}),
|
|
1615
1615
|
_: 1
|
|
1616
1616
|
}, 8, ["class"])),
|
|
1617
|
-
z(
|
|
1617
|
+
z(fe, {
|
|
1618
1618
|
name: e.name,
|
|
1619
1619
|
type: "hidden",
|
|
1620
1620
|
value: (u = o(t).value) == null ? void 0 : u.value
|
|
@@ -1622,12 +1622,12 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1622
1622
|
], 64);
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
|
-
}), Ct = "MultiSelect", [uo,
|
|
1625
|
+
}), Ct = "MultiSelect", [uo, Z] = F(Ct), mo = "MultiSelect-module__multiselect___93yRK", po = "MultiSelect-module__opened___thrIy", We = {
|
|
1626
1626
|
multiselect: mo,
|
|
1627
1627
|
opened: po
|
|
1628
|
-
}, ho =
|
|
1628
|
+
}, ho = g({
|
|
1629
1629
|
name: Ct
|
|
1630
|
-
}), Vs = /* @__PURE__ */
|
|
1630
|
+
}), Vs = /* @__PURE__ */ g({
|
|
1631
1631
|
...ho,
|
|
1632
1632
|
props: {
|
|
1633
1633
|
theme: {},
|
|
@@ -1645,19 +1645,19 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1645
1645
|
setup(e, { expose: r, emit: i }) {
|
|
1646
1646
|
const t = e, l = i, n = k(null), s = k(t.isDefaultOpen ?? !1), c = k(null), u = k(""), d = k(
|
|
1647
1647
|
new Set((t.defaultValue ?? []).map((C) => C.value))
|
|
1648
|
-
), h = b(() => t.value !== void 0),
|
|
1649
|
-
const C =
|
|
1648
|
+
), h = b(() => t.value !== void 0), y = dt(), f = b(() => {
|
|
1649
|
+
const C = y == null ? void 0 : y.vnode;
|
|
1650
1650
|
return C != null && C.props ? "isOpen" in C.props || "is-open" in C.props : !1;
|
|
1651
1651
|
}), a = b(() => h.value ? new Set((t.value ?? []).map((C) => C.value)) : d.value), m = b(
|
|
1652
1652
|
() => f.value ? !!t.isOpen : s.value
|
|
1653
1653
|
), _ = b(() => t.items ?? []), S = b(() => {
|
|
1654
1654
|
const C = a.value;
|
|
1655
1655
|
return _.value.filter((w) => C.has(w.value));
|
|
1656
|
-
}),
|
|
1656
|
+
}), q = (C) => {
|
|
1657
1657
|
(t.isDisabled ?? !1) || (f.value || (s.value = C), C || (u.value = ""), l("openChange", C));
|
|
1658
|
-
},
|
|
1658
|
+
}, Q = (C) => {
|
|
1659
1659
|
if (t.mode === "single")
|
|
1660
|
-
h.value || (d.value = /* @__PURE__ */ new Set([C.value])), l("change", [C]),
|
|
1660
|
+
h.value || (d.value = /* @__PURE__ */ new Set([C.value])), l("change", [C]), q(!1);
|
|
1661
1661
|
else {
|
|
1662
1662
|
const w = new Set(a.value);
|
|
1663
1663
|
w.has(C.value) ? w.delete(C.value) : w.add(C.value), h.value || (d.value = w);
|
|
@@ -1676,11 +1676,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1676
1676
|
C || _.value.forEach((B) => w.add(B.value)), h.value || (d.value = w);
|
|
1677
1677
|
const E = _.value.filter((B) => w.has(B.value));
|
|
1678
1678
|
l("change", E);
|
|
1679
|
-
},
|
|
1680
|
-
const w =
|
|
1679
|
+
}, ne = (C) => _.value.filter((w) => w.group === C), Et = (C) => {
|
|
1680
|
+
const w = ne(C);
|
|
1681
1681
|
return w.length > 0 && w.every((E) => a.value.has(E.value));
|
|
1682
1682
|
}, Ot = (C) => {
|
|
1683
|
-
const w =
|
|
1683
|
+
const w = ne(C), E = w.filter((B) => a.value.has(B.value)).length;
|
|
1684
1684
|
return E > 0 && E < w.length;
|
|
1685
1685
|
}, Lt = () => _.value.length > 0 && _.value.every((C) => a.value.has(C.value)), Pt = () => {
|
|
1686
1686
|
const C = _.value.filter((w) => a.value.has(w.value)).length;
|
|
@@ -1694,7 +1694,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1694
1694
|
return w ? C.option.toLowerCase().includes(w) : !0;
|
|
1695
1695
|
}, Ht = (C) => {
|
|
1696
1696
|
const w = u.value.trim().toLowerCase();
|
|
1697
|
-
return w ?
|
|
1697
|
+
return w ? ne(C).some((B) => B.option.toLowerCase().includes(w)) : !0;
|
|
1698
1698
|
};
|
|
1699
1699
|
P(
|
|
1700
1700
|
() => t.items,
|
|
@@ -1710,7 +1710,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1710
1710
|
},
|
|
1711
1711
|
{ deep: !0 }
|
|
1712
1712
|
);
|
|
1713
|
-
const Yt =
|
|
1713
|
+
const Yt = re({
|
|
1714
1714
|
get values() {
|
|
1715
1715
|
return a.value;
|
|
1716
1716
|
},
|
|
@@ -1738,15 +1738,15 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1738
1738
|
get searchQuery() {
|
|
1739
1739
|
return u.value;
|
|
1740
1740
|
},
|
|
1741
|
-
onOpen:
|
|
1742
|
-
onToggleItem:
|
|
1741
|
+
onOpen: q,
|
|
1742
|
+
onToggleItem: Q,
|
|
1743
1743
|
onToggleGroup: R,
|
|
1744
1744
|
onToggleAll: Ne,
|
|
1745
1745
|
onHoveredItemChange: Gt,
|
|
1746
1746
|
onSearchChange: Nt,
|
|
1747
1747
|
isItemMatchingSearch: Ft,
|
|
1748
1748
|
isGroupMatchingSearch: Ht,
|
|
1749
|
-
getGroupItems:
|
|
1749
|
+
getGroupItems: ne,
|
|
1750
1750
|
isGroupAllSelected: Et,
|
|
1751
1751
|
isGroupPartiallySelected: Ot,
|
|
1752
1752
|
isAllSelected: Lt,
|
|
@@ -1771,14 +1771,14 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1771
1771
|
}), Ms = {
|
|
1772
1772
|
"--crm-ui-kit-multiselect-z-index": "auto",
|
|
1773
1773
|
"--crm-ui-kit-multiselect-opened-z-index": "60"
|
|
1774
|
-
}, bo = () => "ontouchstart" in window, _o = "Checkbox-module__wrapper___rznMS", fo = "Checkbox-module__input___-039s", vo = "Checkbox-module__checkbox___D0D4S", ko = "Checkbox-module__indeterminate___rX-dK", xo = "Checkbox-module__invalid___B4jAs",
|
|
1774
|
+
}, bo = () => "ontouchstart" in window, _o = "Checkbox-module__wrapper___rznMS", fo = "Checkbox-module__input___-039s", vo = "Checkbox-module__checkbox___D0D4S", ko = "Checkbox-module__indeterminate___rX-dK", xo = "Checkbox-module__invalid___B4jAs", yo = "Checkbox-module__touchable___glE4H", ee = {
|
|
1775
1775
|
wrapper: _o,
|
|
1776
1776
|
input: fo,
|
|
1777
1777
|
checkbox: vo,
|
|
1778
1778
|
indeterminate: ko,
|
|
1779
1779
|
invalid: xo,
|
|
1780
|
-
touchable:
|
|
1781
|
-
},
|
|
1780
|
+
touchable: yo
|
|
1781
|
+
}, xe = /* @__PURE__ */ g({
|
|
1782
1782
|
inheritAttrs: !1,
|
|
1783
1783
|
__name: "Checkbox",
|
|
1784
1784
|
props: {
|
|
@@ -1795,24 +1795,24 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1795
1795
|
},
|
|
1796
1796
|
setup(e, { expose: r }) {
|
|
1797
1797
|
const i = e, t = k(null), l = k(!1);
|
|
1798
|
-
return
|
|
1798
|
+
return ie(() => {
|
|
1799
1799
|
l.value = bo();
|
|
1800
1800
|
}), r({
|
|
1801
1801
|
inputRef: t
|
|
1802
1802
|
}), (n, s) => (p(), v("div", {
|
|
1803
1803
|
class: x([
|
|
1804
|
-
o(
|
|
1804
|
+
o(ee).wrapper,
|
|
1805
1805
|
{
|
|
1806
|
-
[o(
|
|
1806
|
+
[o(ee).touchable]: l.value
|
|
1807
1807
|
}
|
|
1808
1808
|
]),
|
|
1809
1809
|
style: V(e.theme)
|
|
1810
1810
|
}, [
|
|
1811
|
-
z(
|
|
1811
|
+
z(fe, $(n.$attrs, {
|
|
1812
1812
|
id: i.id,
|
|
1813
1813
|
ref_key: "inputRef",
|
|
1814
1814
|
ref: t,
|
|
1815
|
-
class: o(
|
|
1815
|
+
class: o(ee).input,
|
|
1816
1816
|
type: "checkbox",
|
|
1817
1817
|
"is-disabled": i.isDisabled,
|
|
1818
1818
|
"is-readonly": i.isReadonly,
|
|
@@ -1823,31 +1823,31 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1823
1823
|
}), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
|
|
1824
1824
|
T("span", {
|
|
1825
1825
|
class: x([
|
|
1826
|
-
o(
|
|
1826
|
+
o(ee).checkbox,
|
|
1827
1827
|
{
|
|
1828
|
-
[o(
|
|
1829
|
-
[o(
|
|
1828
|
+
[o(ee).indeterminate]: e.checkedStyle === "indeterminate",
|
|
1829
|
+
[o(ee).invalid]: e.isInvalid
|
|
1830
1830
|
}
|
|
1831
1831
|
])
|
|
1832
1832
|
}, null, 2)
|
|
1833
1833
|
], 6));
|
|
1834
1834
|
}
|
|
1835
|
-
}), zs = /* @__PURE__ */
|
|
1835
|
+
}), zs = /* @__PURE__ */ g({
|
|
1836
1836
|
__name: "LabelGroup",
|
|
1837
1837
|
props: {
|
|
1838
1838
|
theme: {}
|
|
1839
1839
|
},
|
|
1840
1840
|
setup(e, { expose: r }) {
|
|
1841
|
-
const i =
|
|
1841
|
+
const i = oe(), t = k(null), l = b(() => i.default ? i.default() : []);
|
|
1842
1842
|
return r({
|
|
1843
1843
|
groupRef: t
|
|
1844
1844
|
}), (n, s) => (p(), v("div", {
|
|
1845
1845
|
ref_key: "groupRef",
|
|
1846
1846
|
ref: t
|
|
1847
1847
|
}, [
|
|
1848
|
-
(p(!0), v(
|
|
1848
|
+
(p(!0), v(pe, null, Ut(l.value, (c, u) => (p(), v("div", {
|
|
1849
1849
|
key: u,
|
|
1850
|
-
class: x([o(
|
|
1850
|
+
class: x([o(X).wrapper]),
|
|
1851
1851
|
style: V(e.theme)
|
|
1852
1852
|
}, [
|
|
1853
1853
|
(p(), M(Re(c)))
|
|
@@ -1856,11 +1856,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1856
1856
|
}
|
|
1857
1857
|
}), Es = {
|
|
1858
1858
|
"--crm-ui-kit-label-group-margin-bottom": "16px"
|
|
1859
|
-
},
|
|
1859
|
+
}, go = {
|
|
1860
1860
|
"--crm-ui-kit-label-spacing": "4px",
|
|
1861
1861
|
"--crm-ui-kit-label-description-spacing": "4px",
|
|
1862
1862
|
"--crm-ui-kit-label-text-width": "auto"
|
|
1863
|
-
},
|
|
1863
|
+
}, ye = {
|
|
1864
1864
|
"--crm-ui-kit-checkbox-z-index": "3",
|
|
1865
1865
|
"--crm-ui-kit-checkbox-border-width": "1px",
|
|
1866
1866
|
"--crm-ui-kit-checkbox-border-radius": "3px",
|
|
@@ -1876,42 +1876,42 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1876
1876
|
"--crm-ui-kit-checkbox-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
1877
1877
|
"--crm-ui-kit-checkbox-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
1878
1878
|
}, Pe = {
|
|
1879
|
-
...
|
|
1879
|
+
...ye,
|
|
1880
1880
|
"--crm-ui-kit-checkbox-size": "20px",
|
|
1881
1881
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
1882
1882
|
}, Os = {
|
|
1883
|
-
...
|
|
1883
|
+
...ye,
|
|
1884
1884
|
"--crm-ui-kit-checkbox-size": "16px",
|
|
1885
1885
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
1886
1886
|
}, Ls = {
|
|
1887
|
-
...
|
|
1887
|
+
...ye,
|
|
1888
1888
|
"--crm-ui-kit-checkbox-size": "20px",
|
|
1889
1889
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
1890
1890
|
}, Ps = {
|
|
1891
|
-
...
|
|
1891
|
+
...ye,
|
|
1892
1892
|
"--crm-ui-kit-checkbox-size": "16px",
|
|
1893
1893
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
1894
1894
|
}, Gs = {
|
|
1895
|
-
...
|
|
1895
|
+
...go,
|
|
1896
1896
|
"--crm-ui-kit-label-description-spacing": "8px",
|
|
1897
1897
|
"--crm-ui-kit-label-spacing": "8px"
|
|
1898
|
-
}, Co = "Item-module__item___KOHVr", Io = "Item-module__selected___rWQeZ", $o = "Item-module__hovered___UY-ih",
|
|
1898
|
+
}, Co = "Item-module__item___KOHVr", Io = "Item-module__selected___rWQeZ", $o = "Item-module__hovered___UY-ih", de = {
|
|
1899
1899
|
item: Co,
|
|
1900
1900
|
selected: Io,
|
|
1901
1901
|
hovered: $o
|
|
1902
|
-
}, wo = ["aria-selected", "title"], So = "MultiSelect.Item", Ns = /* @__PURE__ */
|
|
1902
|
+
}, wo = ["aria-selected", "title"], So = "MultiSelect.Item", Ns = /* @__PURE__ */ g({
|
|
1903
1903
|
__name: "Item",
|
|
1904
1904
|
props: {
|
|
1905
1905
|
item: {},
|
|
1906
1906
|
theme: {}
|
|
1907
1907
|
},
|
|
1908
1908
|
setup(e, { expose: r }) {
|
|
1909
|
-
const i = e, t =
|
|
1909
|
+
const i = e, t = Z(So), l = k(null), n = Pe, s = b(() => t.isItemMatchingSearch(i.item)), c = b(() => t.values.has(i.item.value)), u = b(() => t.hoveredItemValue === i.item.value), d = (h) => {
|
|
1910
1910
|
h.preventDefault(), t.onToggleItem(i.item);
|
|
1911
1911
|
};
|
|
1912
1912
|
return r({
|
|
1913
1913
|
itemRef: l
|
|
1914
|
-
}), (h,
|
|
1914
|
+
}), (h, y) => s.value ? (p(), v("li", $({
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
ref_key: "itemRef",
|
|
1917
1917
|
ref: l
|
|
@@ -1919,26 +1919,26 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1919
1919
|
role: "option",
|
|
1920
1920
|
"aria-selected": c.value,
|
|
1921
1921
|
class: [
|
|
1922
|
-
o(
|
|
1922
|
+
o(de).item,
|
|
1923
1923
|
{
|
|
1924
|
-
[o(
|
|
1925
|
-
[o(
|
|
1924
|
+
[o(de).selected]: c.value,
|
|
1925
|
+
[o(de).hovered]: u.value
|
|
1926
1926
|
}
|
|
1927
1927
|
],
|
|
1928
1928
|
style: e.theme,
|
|
1929
1929
|
title: e.item.option,
|
|
1930
1930
|
onClick: d
|
|
1931
1931
|
}), [
|
|
1932
|
-
o(t).mode === "multi" ? (p(), M(
|
|
1932
|
+
o(t).mode === "multi" ? (p(), M(xe, {
|
|
1933
1933
|
key: 0,
|
|
1934
1934
|
theme: o(n),
|
|
1935
1935
|
"is-checked": c.value,
|
|
1936
1936
|
tabindex: -1,
|
|
1937
|
-
onClick:
|
|
1937
|
+
onClick: y[0] || (y[0] = be(() => {
|
|
1938
1938
|
}, ["stop"]))
|
|
1939
1939
|
}, null, 8, ["theme", "is-checked"])) : A("", !0),
|
|
1940
1940
|
I(h.$slots, "default", {}, () => [
|
|
1941
|
-
z(
|
|
1941
|
+
z(le, null, {
|
|
1942
1942
|
default: O(() => [
|
|
1943
1943
|
L(D(e.item.option), 1)
|
|
1944
1944
|
]),
|
|
@@ -1955,14 +1955,14 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1955
1955
|
"--crm-ui-kit-multiselect-item-hovered-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
1956
1956
|
"--crm-ui-kit-multiselect-item-hover-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
1957
1957
|
"--crm-ui-kit-multiselect-item-checkbox-gap": "8px"
|
|
1958
|
-
}, To = "Group-module__group___KLx-N", Ao = "Group-module__header___eqC1O", Ro = "Group-module__headerSelectable___Xrf4T", Do = "Group-module__label___uz8UE", Bo = "Group-module__children___CvJVM", Vo = "Group-module__empty___1ph2n",
|
|
1958
|
+
}, To = "Group-module__group___KLx-N", Ao = "Group-module__header___eqC1O", Ro = "Group-module__headerSelectable___Xrf4T", Do = "Group-module__label___uz8UE", Bo = "Group-module__children___CvJVM", Vo = "Group-module__empty___1ph2n", te = {
|
|
1959
1959
|
group: To,
|
|
1960
1960
|
header: Ao,
|
|
1961
1961
|
headerSelectable: Ro,
|
|
1962
1962
|
label: Do,
|
|
1963
1963
|
children: Bo,
|
|
1964
1964
|
empty: Vo
|
|
1965
|
-
}, Mo = ["aria-label"], zo = ["title"], Eo = "MultiSelect.Group", Hs = /* @__PURE__ */
|
|
1965
|
+
}, Mo = ["aria-label"], zo = ["title"], Eo = "MultiSelect.Group", Hs = /* @__PURE__ */ g({
|
|
1966
1966
|
__name: "Group",
|
|
1967
1967
|
props: {
|
|
1968
1968
|
group: {},
|
|
@@ -1970,13 +1970,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1970
1970
|
emptyText: { default: "Нет элементов" }
|
|
1971
1971
|
},
|
|
1972
1972
|
setup(e) {
|
|
1973
|
-
const r = /^(#[\da-f]{3,8}|rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*(,\s*(0|1|0?\.\d+))?\s*\)|hsla?\(\s*\d{1,3}\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%\s*(,\s*(0|1|0?\.\d+))?\s*\)|[a-z]{3,20})$/i, i = e, t =
|
|
1973
|
+
const r = /^(#[\da-f]{3,8}|rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*(,\s*(0|1|0?\.\d+))?\s*\)|hsla?\(\s*\d{1,3}\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%\s*(,\s*(0|1|0?\.\d+))?\s*\)|[a-z]{3,20})$/i, i = e, t = Z(Eo), l = b(() => t.isGroupMatchingSearch(i.group.id)), n = Pe, s = oe(), c = b(() => s.default ? s.default().length === 0 : !0), u = b(
|
|
1974
1974
|
() => t.isGroupAllSelected(i.group.id)
|
|
1975
1975
|
), d = b(
|
|
1976
1976
|
() => t.isGroupPartiallySelected(i.group.id)
|
|
1977
1977
|
), h = b(
|
|
1978
1978
|
() => u.value || d.value
|
|
1979
|
-
),
|
|
1979
|
+
), y = b(
|
|
1980
1980
|
() => u.value ? "mark" : "indeterminate"
|
|
1981
1981
|
), f = (_) => r.test(_.trim()), a = b(() => {
|
|
1982
1982
|
const _ = { ...i.theme };
|
|
@@ -1986,41 +1986,41 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1986
1986
|
};
|
|
1987
1987
|
return (_, S) => l.value ? (p(), v("li", {
|
|
1988
1988
|
key: 0,
|
|
1989
|
-
class: x(o(
|
|
1989
|
+
class: x(o(te).group),
|
|
1990
1990
|
role: "group",
|
|
1991
1991
|
"aria-label": e.group.label
|
|
1992
1992
|
}, [
|
|
1993
1993
|
T("div", {
|
|
1994
1994
|
class: x([
|
|
1995
|
-
o(
|
|
1995
|
+
o(te).header,
|
|
1996
1996
|
{
|
|
1997
|
-
[o(
|
|
1997
|
+
[o(te).headerSelectable]: o(t).groupSelectable
|
|
1998
1998
|
}
|
|
1999
1999
|
]),
|
|
2000
2000
|
style: V(a.value),
|
|
2001
2001
|
title: e.group.label,
|
|
2002
2002
|
onClick: m
|
|
2003
2003
|
}, [
|
|
2004
|
-
o(t).groupSelectable ? (p(), M(
|
|
2004
|
+
o(t).groupSelectable ? (p(), M(xe, {
|
|
2005
2005
|
key: 0,
|
|
2006
2006
|
theme: o(n),
|
|
2007
2007
|
"is-checked": h.value,
|
|
2008
|
-
"checked-style":
|
|
2008
|
+
"checked-style": y.value,
|
|
2009
2009
|
tabindex: -1,
|
|
2010
|
-
onClick: S[0] || (S[0] =
|
|
2010
|
+
onClick: S[0] || (S[0] = be(() => {
|
|
2011
2011
|
}, ["stop"]))
|
|
2012
2012
|
}, null, 8, ["theme", "is-checked", "checked-style"])) : A("", !0),
|
|
2013
2013
|
T("span", {
|
|
2014
|
-
class: x(o(
|
|
2014
|
+
class: x(o(te).label)
|
|
2015
2015
|
}, D(e.group.label), 3)
|
|
2016
2016
|
], 14, zo),
|
|
2017
2017
|
T("ul", {
|
|
2018
|
-
class: x(o(
|
|
2018
|
+
class: x(o(te).children)
|
|
2019
2019
|
}, [
|
|
2020
2020
|
I(_.$slots, "default"),
|
|
2021
2021
|
c.value ? (p(), v("li", {
|
|
2022
2022
|
key: 0,
|
|
2023
|
-
class: x(o(
|
|
2023
|
+
class: x(o(te).empty)
|
|
2024
2024
|
}, D(e.emptyText), 3)) : A("", !0)
|
|
2025
2025
|
], 2)
|
|
2026
2026
|
], 10, Mo)) : A("", !0);
|
|
@@ -2032,7 +2032,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2032
2032
|
"--crm-ui-kit-multiselect-group-color": "#363b44",
|
|
2033
2033
|
"--crm-ui-kit-multiselect-group-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
2034
2034
|
"--crm-ui-kit-multiselect-group-text-transform": "uppercase"
|
|
2035
|
-
}, Oo = "Combobox-module__combobox___97Qx9", Lo = "Combobox-module__inputContainer___6t-il", Po = "Combobox-module__focused___Ur996", Go = "Combobox-module__invalid___Ur1or", No = "Combobox-module__disabled___2nCcW", Fo = "Combobox-module__input___KbcCI", Ho = "Combobox-module__arrow___FwmsJ", Yo = "Combobox-module__arrowOpen___U6A3h",
|
|
2035
|
+
}, Oo = "Combobox-module__combobox___97Qx9", Lo = "Combobox-module__inputContainer___6t-il", Po = "Combobox-module__focused___Ur996", Go = "Combobox-module__invalid___Ur1or", No = "Combobox-module__disabled___2nCcW", Fo = "Combobox-module__input___KbcCI", Ho = "Combobox-module__arrow___FwmsJ", Yo = "Combobox-module__arrowOpen___U6A3h", K = {
|
|
2036
2036
|
combobox: Oo,
|
|
2037
2037
|
inputContainer: Lo,
|
|
2038
2038
|
focused: Po,
|
|
@@ -2041,7 +2041,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2041
2041
|
input: Fo,
|
|
2042
2042
|
arrow: Ho,
|
|
2043
2043
|
arrowOpen: Yo
|
|
2044
|
-
}, qo = ["placeholder", "value", "disabled", "readonly"], Uo = "MultiSelect.Combobox", qs = /* @__PURE__ */
|
|
2044
|
+
}, qo = ["placeholder", "value", "disabled", "readonly"], Uo = "MultiSelect.Combobox", qs = /* @__PURE__ */ g({
|
|
2045
2045
|
__name: "Combobox",
|
|
2046
2046
|
props: {
|
|
2047
2047
|
theme: {},
|
|
@@ -2049,7 +2049,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2049
2049
|
groups: {}
|
|
2050
2050
|
},
|
|
2051
2051
|
setup(e, { expose: r }) {
|
|
2052
|
-
const i = e, t =
|
|
2052
|
+
const i = e, t = Z(Uo), l = k(null), n = k(null), s = b(() => {
|
|
2053
2053
|
if (!i.groups) return null;
|
|
2054
2054
|
const f = /* @__PURE__ */ new Map();
|
|
2055
2055
|
for (const a of i.groups)
|
|
@@ -2082,28 +2082,28 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2082
2082
|
}, h = () => {
|
|
2083
2083
|
var f;
|
|
2084
2084
|
(f = l.value) == null || f.focus();
|
|
2085
|
-
},
|
|
2085
|
+
}, y = (f) => {
|
|
2086
2086
|
var a;
|
|
2087
2087
|
f.code === "Escape" && (t.onOpen(!1), (a = l.value) == null || a.blur());
|
|
2088
2088
|
};
|
|
2089
2089
|
return P(() => t.isOpened, (f) => {
|
|
2090
|
-
f &&
|
|
2090
|
+
f && he(() => {
|
|
2091
2091
|
var a;
|
|
2092
2092
|
return (a = l.value) == null ? void 0 : a.focus();
|
|
2093
2093
|
});
|
|
2094
2094
|
}), r({ inputRef: l }), (f, a) => (p(), v("div", {
|
|
2095
|
-
class: x(o(
|
|
2095
|
+
class: x(o(K).combobox),
|
|
2096
2096
|
style: V(e.theme)
|
|
2097
2097
|
}, [
|
|
2098
2098
|
T("div", {
|
|
2099
2099
|
ref_key: "containerRef",
|
|
2100
2100
|
ref: n,
|
|
2101
2101
|
class: x([
|
|
2102
|
-
o(
|
|
2102
|
+
o(K).inputContainer,
|
|
2103
2103
|
{
|
|
2104
|
-
[o(
|
|
2105
|
-
[o(
|
|
2106
|
-
[o(
|
|
2104
|
+
[o(K).focused]: o(t).isOpened,
|
|
2105
|
+
[o(K).invalid]: o(t).isInvalid,
|
|
2106
|
+
[o(K).disabled]: o(t).isDisabled
|
|
2107
2107
|
}
|
|
2108
2108
|
]),
|
|
2109
2109
|
onClick: h
|
|
@@ -2111,7 +2111,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2111
2111
|
T("input", {
|
|
2112
2112
|
ref_key: "inputRef",
|
|
2113
2113
|
ref: l,
|
|
2114
|
-
class: x(o(
|
|
2114
|
+
class: x(o(K).input),
|
|
2115
2115
|
type: "text",
|
|
2116
2116
|
placeholder: e.placeholder,
|
|
2117
2117
|
value: o(t).isOpened ? o(t).searchQuery : c.value,
|
|
@@ -2119,11 +2119,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2119
2119
|
readonly: !o(t).isOpened,
|
|
2120
2120
|
onInput: u,
|
|
2121
2121
|
onFocus: d,
|
|
2122
|
-
onKeydown:
|
|
2122
|
+
onKeydown: y
|
|
2123
2123
|
}, null, 42, qo),
|
|
2124
2124
|
I(f.$slots, "after", {}, () => [
|
|
2125
2125
|
T("span", {
|
|
2126
|
-
class: x([o(
|
|
2126
|
+
class: x([o(K).arrow, { [o(K).arrowOpen]: o(t).isOpened }])
|
|
2127
2127
|
}, null, 2)
|
|
2128
2128
|
])
|
|
2129
2129
|
], 2)
|
|
@@ -2158,20 +2158,20 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2158
2158
|
}, jo = "Search-module__search___cGZ5b", Ko = "Search-module__input___HP47K", Ze = {
|
|
2159
2159
|
search: jo,
|
|
2160
2160
|
input: Ko
|
|
2161
|
-
}, Wo = ["placeholder", "value"], Zo = "MultiSelect.Search", Ks = /* @__PURE__ */
|
|
2161
|
+
}, Wo = ["placeholder", "value"], Zo = "MultiSelect.Search", Ks = /* @__PURE__ */ g({
|
|
2162
2162
|
__name: "Search",
|
|
2163
2163
|
props: {
|
|
2164
2164
|
theme: {},
|
|
2165
2165
|
placeholder: { default: "Поиск..." }
|
|
2166
2166
|
},
|
|
2167
2167
|
setup(e) {
|
|
2168
|
-
const r =
|
|
2168
|
+
const r = Z(Zo), i = k(null), t = (l) => {
|
|
2169
2169
|
r.onSearchChange(l.target.value);
|
|
2170
2170
|
};
|
|
2171
2171
|
return P(
|
|
2172
2172
|
() => r.isOpened,
|
|
2173
2173
|
(l) => {
|
|
2174
|
-
l &&
|
|
2174
|
+
l && he(() => {
|
|
2175
2175
|
setTimeout(() => {
|
|
2176
2176
|
var n;
|
|
2177
2177
|
return (n = i.value) == null ? void 0 : n.focus();
|
|
@@ -2190,7 +2190,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2190
2190
|
placeholder: e.placeholder,
|
|
2191
2191
|
value: o(r).searchQuery,
|
|
2192
2192
|
onInput: t,
|
|
2193
|
-
onKeydown: n[0] || (n[0] =
|
|
2193
|
+
onKeydown: n[0] || (n[0] = be(() => {
|
|
2194
2194
|
}, ["stop"]))
|
|
2195
2195
|
}, null, 42, Wo)
|
|
2196
2196
|
], 6));
|
|
@@ -2202,13 +2202,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2202
2202
|
"--crm-ui-kit-multiselect-search-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
2203
2203
|
"--crm-ui-kit-multiselect-search-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
2204
2204
|
"--crm-ui-kit-multiselect-search-border-bottom": "1px solid var(--crm-ui-kit-palette-border-primary)"
|
|
2205
|
-
}, Jo = "MultiSelect.Trigger", Zs = /* @__PURE__ */
|
|
2205
|
+
}, Jo = "MultiSelect.Trigger", Zs = /* @__PURE__ */ g({
|
|
2206
2206
|
__name: "Trigger",
|
|
2207
2207
|
props: {
|
|
2208
2208
|
theme: {}
|
|
2209
2209
|
},
|
|
2210
2210
|
setup(e, { expose: r }) {
|
|
2211
|
-
const i =
|
|
2211
|
+
const i = Z(Jo), t = k(null), l = () => {
|
|
2212
2212
|
i.onOpen(!i.isOpened);
|
|
2213
2213
|
};
|
|
2214
2214
|
return P(
|
|
@@ -2234,10 +2234,10 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2234
2234
|
_: 3
|
|
2235
2235
|
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
2236
2236
|
}
|
|
2237
|
-
}), Xo = "MultiSelectList-module__list___lKhqs", Qo = "MultiSelectList-module__empty___4vLBH",
|
|
2237
|
+
}), Xo = "MultiSelectList-module__list___lKhqs", Qo = "MultiSelectList-module__empty___4vLBH", ce = {
|
|
2238
2238
|
list: Xo,
|
|
2239
2239
|
empty: Qo
|
|
2240
|
-
}, el = ["aria-multiselectable"], tl = ["aria-multiselectable"], il = "MultiSelect.List", Js = /* @__PURE__ */
|
|
2240
|
+
}, el = ["aria-multiselectable"], tl = ["aria-multiselectable"], il = "MultiSelect.List", Js = /* @__PURE__ */ g({
|
|
2241
2241
|
__name: "MultiSelectList",
|
|
2242
2242
|
props: {
|
|
2243
2243
|
theme: {},
|
|
@@ -2246,12 +2246,17 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2246
2246
|
emptyText: { default: "Нет элементов" }
|
|
2247
2247
|
},
|
|
2248
2248
|
setup(e, { expose: r }) {
|
|
2249
|
-
const i = e, t =
|
|
2249
|
+
const i = e, t = Z(il), l = k(null), n = oe();
|
|
2250
2250
|
function s(a) {
|
|
2251
2251
|
var _;
|
|
2252
2252
|
const m = [];
|
|
2253
2253
|
for (const S of a)
|
|
2254
|
-
(_ = S.props) != null && _.item && m.push(S.props.item), Array.isArray(S.children)
|
|
2254
|
+
if ((_ = S.props) != null && _.item && m.push(S.props.item), Array.isArray(S.children))
|
|
2255
|
+
m.push(...s(S.children));
|
|
2256
|
+
else if (S.children && typeof S.children == "object" && "default" in S.children && typeof S.children.default == "function") {
|
|
2257
|
+
const q = S.children.default, Q = q();
|
|
2258
|
+
Array.isArray(Q) && m.push(...s(Q));
|
|
2259
|
+
}
|
|
2255
2260
|
return m;
|
|
2256
2261
|
}
|
|
2257
2262
|
const c = b(() => {
|
|
@@ -2263,14 +2268,14 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2263
2268
|
return c.value.forEach((m, _) => {
|
|
2264
2269
|
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = _);
|
|
2265
2270
|
}), a;
|
|
2266
|
-
}), h = k(-1),
|
|
2271
|
+
}), h = k(-1), y = b(() => {
|
|
2267
2272
|
const a = t.hoveredItemValue;
|
|
2268
2273
|
return a === null ? -1 : d.value[String(a)] ?? -1;
|
|
2269
2274
|
});
|
|
2270
2275
|
P(
|
|
2271
2276
|
() => t.isOpened,
|
|
2272
2277
|
(a) => {
|
|
2273
|
-
a && (h.value =
|
|
2278
|
+
a && (h.value = y.value);
|
|
2274
2279
|
}
|
|
2275
2280
|
);
|
|
2276
2281
|
const f = (a) => {
|
|
@@ -2303,7 +2308,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2303
2308
|
break;
|
|
2304
2309
|
}
|
|
2305
2310
|
};
|
|
2306
|
-
return
|
|
2311
|
+
return gt({
|
|
2307
2312
|
ref: l,
|
|
2308
2313
|
handler: () => {
|
|
2309
2314
|
t.isOpened && t.onOpen(!1);
|
|
@@ -2334,7 +2339,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2334
2339
|
"aria-multiselectable": o(t).mode === "multi" ? "true" : void 0,
|
|
2335
2340
|
class: [
|
|
2336
2341
|
"custom-scroll",
|
|
2337
|
-
o(
|
|
2342
|
+
o(ce).list,
|
|
2338
2343
|
i.class
|
|
2339
2344
|
],
|
|
2340
2345
|
style: e.theme,
|
|
@@ -2343,10 +2348,10 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2343
2348
|
I(a.$slots, "default"),
|
|
2344
2349
|
u.value === 0 ? (p(), v("li", {
|
|
2345
2350
|
key: 0,
|
|
2346
|
-
class: x(o(
|
|
2351
|
+
class: x(o(ce).empty)
|
|
2347
2352
|
}, D(e.emptyText), 3)) : A("", !0)
|
|
2348
2353
|
], 16, el)) : A("", !0)
|
|
2349
|
-
], 8, ["to"])) : (p(), v(
|
|
2354
|
+
], 8, ["to"])) : (p(), v(pe, { key: 1 }, [
|
|
2350
2355
|
o(t).isOpened ? (p(), v("ul", $({
|
|
2351
2356
|
key: 0,
|
|
2352
2357
|
ref_key: "listRef",
|
|
@@ -2357,7 +2362,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2357
2362
|
"aria-multiselectable": o(t).mode === "multi" ? "true" : void 0,
|
|
2358
2363
|
class: [
|
|
2359
2364
|
"custom-scroll",
|
|
2360
|
-
o(
|
|
2365
|
+
o(ce).list,
|
|
2361
2366
|
i.class
|
|
2362
2367
|
],
|
|
2363
2368
|
style: e.theme,
|
|
@@ -2366,19 +2371,19 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2366
2371
|
I(a.$slots, "default"),
|
|
2367
2372
|
u.value === 0 ? (p(), v("li", {
|
|
2368
2373
|
key: 0,
|
|
2369
|
-
class: x(o(
|
|
2374
|
+
class: x(o(ce).empty)
|
|
2370
2375
|
}, D(e.emptyText), 3)) : A("", !0)
|
|
2371
2376
|
], 16, tl)) : A("", !0)
|
|
2372
2377
|
], 64));
|
|
2373
2378
|
}
|
|
2374
|
-
}), rl = "MultiSelect.All", Xs = /* @__PURE__ */
|
|
2379
|
+
}), rl = "MultiSelect.All", Xs = /* @__PURE__ */ g({
|
|
2375
2380
|
__name: "All",
|
|
2376
2381
|
props: {
|
|
2377
2382
|
theme: {},
|
|
2378
2383
|
label: { default: "Выбрать всё" }
|
|
2379
2384
|
},
|
|
2380
2385
|
setup(e) {
|
|
2381
|
-
const r =
|
|
2386
|
+
const r = Z(rl), i = Pe, t = b(() => r.isAllSelected()), l = b(() => r.isPartiallySelected()), n = b(
|
|
2382
2387
|
() => t.value || l.value
|
|
2383
2388
|
), s = b(
|
|
2384
2389
|
() => t.value ? "mark" : "indeterminate"
|
|
@@ -2387,19 +2392,19 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2387
2392
|
};
|
|
2388
2393
|
return (u, d) => o(r).searchQuery ? A("", !0) : (p(), v("li", {
|
|
2389
2394
|
key: 0,
|
|
2390
|
-
class: x(o(
|
|
2395
|
+
class: x(o(de).item),
|
|
2391
2396
|
style: V(e.theme),
|
|
2392
2397
|
onClick: c
|
|
2393
2398
|
}, [
|
|
2394
|
-
z(
|
|
2399
|
+
z(xe, {
|
|
2395
2400
|
theme: o(i),
|
|
2396
2401
|
"is-checked": n.value,
|
|
2397
2402
|
"checked-style": s.value,
|
|
2398
2403
|
tabindex: -1,
|
|
2399
|
-
onClick: d[0] || (d[0] =
|
|
2404
|
+
onClick: d[0] || (d[0] = be(() => {
|
|
2400
2405
|
}, ["stop"]))
|
|
2401
2406
|
}, null, 8, ["theme", "is-checked", "checked-style"]),
|
|
2402
|
-
z(
|
|
2407
|
+
z(le, null, {
|
|
2403
2408
|
default: O(() => [
|
|
2404
2409
|
L(D(e.label), 1)
|
|
2405
2410
|
]),
|
|
@@ -2410,7 +2415,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2410
2415
|
}), ol = "Value-module__value___Aswvw", ll = "Value-module__text___-f1lX", nl = {
|
|
2411
2416
|
value: ol,
|
|
2412
2417
|
text: ll
|
|
2413
|
-
}, sl = "MultiSelect.Value", Qs = /* @__PURE__ */
|
|
2418
|
+
}, sl = "MultiSelect.Value", Qs = /* @__PURE__ */ g({
|
|
2414
2419
|
__name: "Value",
|
|
2415
2420
|
props: {
|
|
2416
2421
|
placeholder: { default: "" },
|
|
@@ -2420,7 +2425,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2420
2425
|
class: {}
|
|
2421
2426
|
},
|
|
2422
2427
|
setup(e, { expose: r }) {
|
|
2423
|
-
const i = e, t =
|
|
2428
|
+
const i = e, t = Z(sl), l = k(null), n = b(() => {
|
|
2424
2429
|
const s = t.selectedItems;
|
|
2425
2430
|
if (s.length === 0)
|
|
2426
2431
|
return i.placeholder;
|
|
@@ -2431,7 +2436,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2431
2436
|
});
|
|
2432
2437
|
return r({
|
|
2433
2438
|
optionRef: l
|
|
2434
|
-
}), (s, c) => s.$slots.default ? I(s.$slots, "default", { key: 0 }) : (p(), M(
|
|
2439
|
+
}), (s, c) => s.$slots.default ? I(s.$slots, "default", { key: 0 }) : (p(), M(le, {
|
|
2435
2440
|
key: 1,
|
|
2436
2441
|
ref_key: "optionRef",
|
|
2437
2442
|
ref: l,
|
|
@@ -2443,7 +2448,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2443
2448
|
_: 1
|
|
2444
2449
|
}, 8, ["class"]));
|
|
2445
2450
|
}
|
|
2446
|
-
}), ea = /* @__PURE__ */
|
|
2451
|
+
}), ea = /* @__PURE__ */ g({
|
|
2447
2452
|
__name: "Portal",
|
|
2448
2453
|
props: {
|
|
2449
2454
|
container: { default: void 0 }
|
|
@@ -2466,7 +2471,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2466
2471
|
}
|
|
2467
2472
|
}), al = "ContentBlock-module__block___UvzuN", cl = {
|
|
2468
2473
|
block: al
|
|
2469
|
-
}, ta = /* @__PURE__ */
|
|
2474
|
+
}, ta = /* @__PURE__ */ g({
|
|
2470
2475
|
__name: "ContentBlock",
|
|
2471
2476
|
props: {
|
|
2472
2477
|
theme: {}
|
|
@@ -2492,7 +2497,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2492
2497
|
"--crm-ui-kit-content-block-background": "var(--crm-ui-kit-palette-background-primary)"
|
|
2493
2498
|
}, ul = "Link-module__link___35Vo1", dl = {
|
|
2494
2499
|
link: ul
|
|
2495
|
-
}, ra = /* @__PURE__ */
|
|
2500
|
+
}, ra = /* @__PURE__ */ g({
|
|
2496
2501
|
__name: "Link",
|
|
2497
2502
|
props: {
|
|
2498
2503
|
theme: {}
|
|
@@ -2528,7 +2533,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2528
2533
|
}, ml = "Callout-module__wrapper___gW-Zt", pl = "Callout-module__icon___4CBkz", Je = {
|
|
2529
2534
|
wrapper: ml,
|
|
2530
2535
|
icon: pl
|
|
2531
|
-
}, na = /* @__PURE__ */
|
|
2536
|
+
}, na = /* @__PURE__ */ g({
|
|
2532
2537
|
__name: "Callout",
|
|
2533
2538
|
props: {
|
|
2534
2539
|
theme: {},
|
|
@@ -2562,7 +2567,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2562
2567
|
};
|
|
2563
2568
|
function bl(e, r) {
|
|
2564
2569
|
return p(), v("svg", hl, [...r[0] || (r[0] = [
|
|
2565
|
-
|
|
2570
|
+
_e('<g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M9 15.207q0-.468.292-.76c.195-.194.468-.272.799-.272.35 0 .623.097.818.272q.292.292.292.76c0 .468-.097.565-.292.76q-.292.292-.818.292c-.331 0-.585-.097-.799-.292Q9 15.675 9 15.207m.195-8.688h1.831v4.5l-.35 2.22h-1.13l-.351-2.22z" clip-rule="evenodd"></path><path stroke="currentColor" stroke-width="1.3" d="M8.666 2.47a1.542 1.542 0 0 1 2.671 0l7.804 13.518a1.542 1.542 0 0 1-1.335 2.313H2.197a1.542 1.542 0 0 1-1.335-2.313z"></path></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
|
|
2566
2571
|
])]);
|
|
2567
2572
|
}
|
|
2568
2573
|
const _l = { render: bl }, fl = {
|
|
@@ -2573,7 +2578,7 @@ const _l = { render: bl }, fl = {
|
|
|
2573
2578
|
};
|
|
2574
2579
|
function vl(e, r) {
|
|
2575
2580
|
return p(), v("svg", fl, [...r[0] || (r[0] = [
|
|
2576
|
-
|
|
2581
|
+
_e('<g clip-path="url(#a)"><path d="M8.96 4.75h2.077v4.859l-.403 2.407H9.362L8.96 9.609zm-.218 9.363q0-.517.341-.812.342-.31.9-.31.59 0 .93.31.34.295.341.812 0 .516-.34.827-.342.31-.931.31-.558 0-.9-.31-.34-.31-.34-.827Z"></path><path fill-rule="evenodd" d="M10 1.625a8.375 8.375 0 1 0 0 16.75 8.375 8.375 0 0 0 0-16.75M.375 10a9.625 9.625 0 1 1 19.25 0 9.625 9.625 0 0 1-19.25 0" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
|
|
2577
2582
|
])]);
|
|
2578
2583
|
}
|
|
2579
2584
|
const kl = { render: vl }, xl = {
|
|
@@ -2582,12 +2587,12 @@ const kl = { render: vl }, xl = {
|
|
|
2582
2587
|
height: "20",
|
|
2583
2588
|
fill: "none"
|
|
2584
2589
|
};
|
|
2585
|
-
function
|
|
2590
|
+
function yl(e, r) {
|
|
2586
2591
|
return p(), v("svg", xl, [...r[0] || (r[0] = [
|
|
2587
|
-
|
|
2592
|
+
_e('<g stroke="currentColor" clip-path="url(#a)"><path stroke-width="1.299" d="M.65 10a9.35 9.35 0 1 1 18.7 0 9.35 9.35 0 0 1-18.7 0Z"></path><path stroke-width="1.299" d="M.65 10a9.35 9.35 0 1 1 18.7 0 9.35 9.35 0 0 1-18.7 0Z"></path><path stroke-width="1.455" d="m5.328 10 3.117 3.117 6.234-6.234"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
|
|
2588
2593
|
])]);
|
|
2589
2594
|
}
|
|
2590
|
-
const
|
|
2595
|
+
const gl = { render: yl }, Cl = {
|
|
2591
2596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2592
2597
|
width: "20",
|
|
2593
2598
|
height: "20",
|
|
@@ -2595,7 +2600,7 @@ const yl = { render: gl }, Cl = {
|
|
|
2595
2600
|
};
|
|
2596
2601
|
function Il(e, r) {
|
|
2597
2602
|
return p(), v("svg", Cl, [...r[0] || (r[0] = [
|
|
2598
|
-
|
|
2603
|
+
_e('<g clip-path="url(#a)"><path d="M10.972 15.195H9.023V8.7h1.949v6.494Zm-.285-8.72a.96.96 0 0 1-.695.278.93.93 0 0 1-.69-.284.96.96 0 0 1-.279-.695q0-.413.285-.69a.96.96 0 0 1 .695-.279q.412 0 .69.284.279.285.279.696a.93.93 0 0 1-.285.69"></path><path fill-rule="evenodd" d="M10 1.299A8.701 8.701 0 1 0 10 18.7a8.701 8.701 0 0 0 0-17.4ZM0 10C0 4.477 4.477 0 10 0s10 4.477 10 10-4.477 10-10 10S0 15.523 0 10" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
|
|
2599
2604
|
])]);
|
|
2600
2605
|
}
|
|
2601
2606
|
const $l = { render: Il }, ge = {
|
|
@@ -2612,7 +2617,7 @@ const $l = { render: Il }, ge = {
|
|
|
2612
2617
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-error-background-color)"
|
|
2613
2618
|
}, ca = {
|
|
2614
2619
|
...ge,
|
|
2615
|
-
Icon:
|
|
2620
|
+
Icon: gl,
|
|
2616
2621
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-success-background-color)"
|
|
2617
2622
|
}, ua = {
|
|
2618
2623
|
...ge,
|
|
@@ -2620,7 +2625,7 @@ const $l = { render: Il }, ge = {
|
|
|
2620
2625
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-info-background-color)"
|
|
2621
2626
|
}, It = "Accordion", [$t, wl] = F(It), Sl = "Accordion-module__wrapper___X4UEj", wt = {
|
|
2622
2627
|
wrapper: Sl
|
|
2623
|
-
}, Tl = /* @__PURE__ */
|
|
2628
|
+
}, Tl = /* @__PURE__ */ g({
|
|
2624
2629
|
__name: "AccordionSingle",
|
|
2625
2630
|
props: {
|
|
2626
2631
|
isCollapsible: { type: Boolean, default: !1 },
|
|
@@ -2632,7 +2637,7 @@ const $l = { render: Il }, ge = {
|
|
|
2632
2637
|
setup(e, { expose: r, emit: i }) {
|
|
2633
2638
|
const t = e, l = i, n = k(null), s = k(t.defaultValue), c = Me(t.theme), u = b(() => "value" in t && t.value !== void 0), d = b(
|
|
2634
2639
|
() => u.value ? t.value : s.value
|
|
2635
|
-
), h = (f) => t.isCollapsible && f === d.value ? void 0 : f,
|
|
2640
|
+
), h = (f) => t.isCollapsible && f === d.value ? void 0 : f, y = (f) => {
|
|
2636
2641
|
const a = h(f);
|
|
2637
2642
|
u.value || (s.value = a), l("change", a);
|
|
2638
2643
|
};
|
|
@@ -2640,7 +2645,7 @@ const $l = { render: Il }, ge = {
|
|
|
2640
2645
|
value: d,
|
|
2641
2646
|
// computed ref
|
|
2642
2647
|
defaultValue: De(() => t.defaultValue),
|
|
2643
|
-
onChange:
|
|
2648
|
+
onChange: y
|
|
2644
2649
|
}), r({
|
|
2645
2650
|
accordionRef: n
|
|
2646
2651
|
}), (f, a) => (p(), v("div", $(f.$attrs, {
|
|
@@ -2651,7 +2656,7 @@ const $l = { render: Il }, ge = {
|
|
|
2651
2656
|
I(f.$slots, "default")
|
|
2652
2657
|
], 16));
|
|
2653
2658
|
}
|
|
2654
|
-
}), Al = /* @__PURE__ */
|
|
2659
|
+
}), Al = /* @__PURE__ */ g({
|
|
2655
2660
|
__name: "AccordionMultiple",
|
|
2656
2661
|
props: {
|
|
2657
2662
|
value: {},
|
|
@@ -2665,7 +2670,7 @@ const $l = { render: Il }, ge = {
|
|
|
2665
2670
|
), h = (f) => {
|
|
2666
2671
|
const a = d.value || [];
|
|
2667
2672
|
return a.includes(f) ? a.filter((m) => m !== f) : [...a, f];
|
|
2668
|
-
},
|
|
2673
|
+
}, y = (f) => {
|
|
2669
2674
|
const a = h(f);
|
|
2670
2675
|
u.value || (s.value = a), l("change", a);
|
|
2671
2676
|
};
|
|
@@ -2673,7 +2678,7 @@ const $l = { render: Il }, ge = {
|
|
|
2673
2678
|
value: d,
|
|
2674
2679
|
// computed ref
|
|
2675
2680
|
defaultValue: De(() => t.defaultValue),
|
|
2676
|
-
onChange:
|
|
2681
|
+
onChange: y
|
|
2677
2682
|
}), r({
|
|
2678
2683
|
accordionRef: n
|
|
2679
2684
|
}), (f, a) => (p(), v("div", $(f.$attrs, {
|
|
@@ -2684,9 +2689,9 @@ const $l = { render: Il }, ge = {
|
|
|
2684
2689
|
I(f.$slots, "default")
|
|
2685
2690
|
], 16));
|
|
2686
2691
|
}
|
|
2687
|
-
}), Rl =
|
|
2692
|
+
}), Rl = g({
|
|
2688
2693
|
name: It
|
|
2689
|
-
}), Dl = /* @__PURE__ */
|
|
2694
|
+
}), Dl = /* @__PURE__ */ g({
|
|
2690
2695
|
...Rl,
|
|
2691
2696
|
props: {
|
|
2692
2697
|
type: {},
|
|
@@ -2733,7 +2738,7 @@ function Vl(e, r) {
|
|
|
2733
2738
|
}, null, -1)
|
|
2734
2739
|
])]);
|
|
2735
2740
|
}
|
|
2736
|
-
const Ml = { render: Vl }, zl = "Item-module__wrapper___Yv5zw", El = "Item-module__header___Q13eV", Ol = "Item-module__header_left___cPyvw", Ll = "Item-module__header_left___cPyvw", Pl = "Item-module__before_title___moIL0", Gl = "Item-module__before_title___moIL0", Nl = "Item-module__chevron_container___0McTp", Fl = "Item-module__chevron_container___0McTp", Hl = "Item-module__chevron_icon___Yku1p", Yl = "Item-module__chevron_icon___Yku1p", ql = "Item-module__content___GATuv", Ul = "Item-module__active___fMoSb",
|
|
2741
|
+
const Ml = { render: Vl }, zl = "Item-module__wrapper___Yv5zw", El = "Item-module__header___Q13eV", Ol = "Item-module__header_left___cPyvw", Ll = "Item-module__header_left___cPyvw", Pl = "Item-module__before_title___moIL0", Gl = "Item-module__before_title___moIL0", Nl = "Item-module__chevron_container___0McTp", Fl = "Item-module__chevron_container___0McTp", Hl = "Item-module__chevron_icon___Yku1p", Yl = "Item-module__chevron_icon___Yku1p", ql = "Item-module__content___GATuv", Ul = "Item-module__active___fMoSb", W = {
|
|
2737
2742
|
wrapper: zl,
|
|
2738
2743
|
header: El,
|
|
2739
2744
|
header_left: Ol,
|
|
@@ -2746,7 +2751,7 @@ const Ml = { render: Vl }, zl = "Item-module__wrapper___Yv5zw", El = "Item-modul
|
|
|
2746
2751
|
chevronIcon: Yl,
|
|
2747
2752
|
content: ql,
|
|
2748
2753
|
active: Ul
|
|
2749
|
-
}, jl = "Accordion.Item", Kl = /* @__PURE__ */
|
|
2754
|
+
}, jl = "Accordion.Item", Kl = /* @__PURE__ */ g({
|
|
2750
2755
|
__name: "Item",
|
|
2751
2756
|
props: {
|
|
2752
2757
|
theme: {},
|
|
@@ -2767,23 +2772,23 @@ const Ml = { render: Vl }, zl = "Item-module__wrapper___Yv5zw", El = "Item-modul
|
|
|
2767
2772
|
ref_key: "itemRef",
|
|
2768
2773
|
ref: t,
|
|
2769
2774
|
class: [
|
|
2770
|
-
o(
|
|
2775
|
+
o(W).wrapper,
|
|
2771
2776
|
{
|
|
2772
|
-
[o(
|
|
2777
|
+
[o(W).active]: u.value
|
|
2773
2778
|
},
|
|
2774
2779
|
o(s)
|
|
2775
2780
|
]
|
|
2776
2781
|
}), [
|
|
2777
2782
|
T("div", {
|
|
2778
|
-
class: x(o(
|
|
2783
|
+
class: x(o(W).header),
|
|
2779
2784
|
onClick: c
|
|
2780
2785
|
}, [
|
|
2781
2786
|
T("div", {
|
|
2782
|
-
class: x(o(
|
|
2787
|
+
class: x(o(W).header_left)
|
|
2783
2788
|
}, [
|
|
2784
2789
|
e.before ? (p(), v("div", {
|
|
2785
2790
|
key: 0,
|
|
2786
|
-
class: x(o(
|
|
2791
|
+
class: x(o(W).before_title)
|
|
2787
2792
|
}, [
|
|
2788
2793
|
(p(), M(Re(e.before)))
|
|
2789
2794
|
], 2)) : A("", !0),
|
|
@@ -2799,15 +2804,15 @@ const Ml = { render: Vl }, zl = "Item-module__wrapper___Yv5zw", El = "Item-modul
|
|
|
2799
2804
|
}, 8, ["theme"])
|
|
2800
2805
|
], 2),
|
|
2801
2806
|
T("span", {
|
|
2802
|
-
class: x(o(
|
|
2807
|
+
class: x(o(W).chevron_container)
|
|
2803
2808
|
}, [
|
|
2804
2809
|
z(o(Ml), {
|
|
2805
|
-
class: x(o(
|
|
2810
|
+
class: x(o(W).chevron_icon)
|
|
2806
2811
|
}, null, 8, ["class"])
|
|
2807
2812
|
], 2)
|
|
2808
2813
|
], 2),
|
|
2809
2814
|
T("div", {
|
|
2810
|
-
class: x(o(
|
|
2815
|
+
class: x(o(W).content)
|
|
2811
2816
|
}, [
|
|
2812
2817
|
I(d.$slots, "default")
|
|
2813
2818
|
], 2)
|
|
@@ -2829,9 +2834,9 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2829
2834
|
filter_tabs: Jl,
|
|
2830
2835
|
filterTabs: Xl,
|
|
2831
2836
|
horizontal: Ql
|
|
2832
|
-
}, en =
|
|
2837
|
+
}, en = g({
|
|
2833
2838
|
name: St
|
|
2834
|
-
}), pa = /* @__PURE__ */
|
|
2839
|
+
}), pa = /* @__PURE__ */ g({
|
|
2835
2840
|
...en,
|
|
2836
2841
|
props: {
|
|
2837
2842
|
theme: {},
|
|
@@ -2842,21 +2847,21 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2842
2847
|
emits: ["change"],
|
|
2843
2848
|
setup(e, { expose: r, emit: i }) {
|
|
2844
2849
|
const t = e, l = i, n = k(null), s = k([]), c = (h) => {
|
|
2845
|
-
const
|
|
2846
|
-
let f =
|
|
2850
|
+
const y = s.value;
|
|
2851
|
+
let f = y;
|
|
2847
2852
|
if (!h && s.value.length && (f = []), h) {
|
|
2848
2853
|
const a = s.value.includes(h);
|
|
2849
|
-
t.isMultiSelect && (f = a ?
|
|
2854
|
+
t.isMultiSelect && (f = a ? y.filter((m) => m !== h) : [...y, h]), !t.isMultiSelect && !a && (f = [h]);
|
|
2850
2855
|
}
|
|
2851
2856
|
s.value = f, l("change", f, h);
|
|
2852
2857
|
}, u = (h) => {
|
|
2853
|
-
const
|
|
2858
|
+
const y = s.value;
|
|
2854
2859
|
if (t.isMultiSelect) {
|
|
2855
|
-
s.value = [...
|
|
2860
|
+
s.value = [...y, h];
|
|
2856
2861
|
return;
|
|
2857
2862
|
}
|
|
2858
|
-
!t.isMultiSelect && !
|
|
2859
|
-
}, d =
|
|
2863
|
+
!t.isMultiSelect && !y.length && (s.value = [h]);
|
|
2864
|
+
}, d = re({
|
|
2860
2865
|
values: s.value,
|
|
2861
2866
|
onChange: c,
|
|
2862
2867
|
registerActiveName: u,
|
|
@@ -2866,7 +2871,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2866
2871
|
d.values = s.value, d.isDisabled = t.isDisabled;
|
|
2867
2872
|
}), Zl(d), r({
|
|
2868
2873
|
filterTabsRef: n
|
|
2869
|
-
}), (h,
|
|
2874
|
+
}), (h, y) => (p(), v("div", $(h.$attrs, {
|
|
2870
2875
|
ref_key: "filterTabsRef",
|
|
2871
2876
|
ref: n,
|
|
2872
2877
|
class: [
|
|
@@ -2886,7 +2891,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2886
2891
|
item_root: on,
|
|
2887
2892
|
itemRoot: ln,
|
|
2888
2893
|
disabled: nn
|
|
2889
|
-
}, ba = /* @__PURE__ */
|
|
2894
|
+
}, ba = /* @__PURE__ */ g({
|
|
2890
2895
|
__name: "ItemRoot",
|
|
2891
2896
|
props: {
|
|
2892
2897
|
isDisabled: { type: Boolean },
|
|
@@ -2897,7 +2902,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2897
2902
|
},
|
|
2898
2903
|
setup(e) {
|
|
2899
2904
|
const r = e, i = Tt(At), t = b(() => i.isDisabled), { registerActiveName: l } = i;
|
|
2900
|
-
|
|
2905
|
+
ie(() => {
|
|
2901
2906
|
r.isDefaultActive && r.name && l(r.name);
|
|
2902
2907
|
});
|
|
2903
2908
|
const n = b(() => {
|
|
@@ -2922,7 +2927,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2922
2927
|
}, sn = "Tab-module__button___iGASN", an = "Tab-module__selected___zxPPy", et = {
|
|
2923
2928
|
button: sn,
|
|
2924
2929
|
selected: an
|
|
2925
|
-
}, cn = ["name", "disabled"], tt = "FilterTabs.Tab", fa = /* @__PURE__ */
|
|
2930
|
+
}, cn = ["name", "disabled"], tt = "FilterTabs.Tab", fa = /* @__PURE__ */ g({
|
|
2926
2931
|
__name: "Tab",
|
|
2927
2932
|
props: {
|
|
2928
2933
|
class: { default: "" },
|
|
@@ -2930,7 +2935,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2930
2935
|
onClick: {}
|
|
2931
2936
|
},
|
|
2932
2937
|
setup(e, { expose: r }) {
|
|
2933
|
-
const i = e, { theme: t, class: l, ...n } = i, s = k(null), c = Tt(tt), { name: u, isDisabled: d } = rn(tt), h = b(() => c.values.includes(u)),
|
|
2938
|
+
const i = e, { theme: t, class: l, ...n } = i, s = k(null), c = Tt(tt), { name: u, isDisabled: d } = rn(tt), h = b(() => c.values.includes(u)), y = b(() => c.isDisabled), f = () => {
|
|
2934
2939
|
c.onChange(u);
|
|
2935
2940
|
};
|
|
2936
2941
|
return r({
|
|
@@ -2948,7 +2953,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2948
2953
|
],
|
|
2949
2954
|
style: o(t),
|
|
2950
2955
|
name: o(u),
|
|
2951
|
-
disabled:
|
|
2956
|
+
disabled: y.value || o(d),
|
|
2952
2957
|
onClick: f
|
|
2953
2958
|
}), [
|
|
2954
2959
|
I(a.$slots, "default")
|
|
@@ -2994,7 +2999,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2994
2999
|
() => l.value.length,
|
|
2995
3000
|
async () => {
|
|
2996
3001
|
if (l.value.length) {
|
|
2997
|
-
await
|
|
3002
|
+
await he();
|
|
2998
3003
|
const c = [...l.value];
|
|
2999
3004
|
l.value = [];
|
|
3000
3005
|
const u = new Map(i.value);
|
|
@@ -3018,9 +3023,9 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3018
3023
|
checkbox_group: mn,
|
|
3019
3024
|
checkboxGroup: pn,
|
|
3020
3025
|
horizontal: hn
|
|
3021
|
-
}, bn =
|
|
3026
|
+
}, bn = g({
|
|
3022
3027
|
name: Rt
|
|
3023
|
-
}), ka = /* @__PURE__ */
|
|
3028
|
+
}), ka = /* @__PURE__ */ g({
|
|
3024
3029
|
...bn,
|
|
3025
3030
|
props: {
|
|
3026
3031
|
onChange: {},
|
|
@@ -3032,7 +3037,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3032
3037
|
const i = e, t = k(null), { register: l, state: n } = dn({
|
|
3033
3038
|
onChange: De(i, "onChange"),
|
|
3034
3039
|
isDisabled: i.isDisabled
|
|
3035
|
-
}), s =
|
|
3040
|
+
}), s = re({
|
|
3036
3041
|
values: n.value,
|
|
3037
3042
|
register: l,
|
|
3038
3043
|
isDisabled: i.isDisabled
|
|
@@ -3057,11 +3062,11 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3057
3062
|
}
|
|
3058
3063
|
}), xa = {
|
|
3059
3064
|
"--crm-ui-kit-checkbox-group-spacing": "8px"
|
|
3060
|
-
}, Dt = "CheckboxGroup.ItemRoot", [_n] = F(Dt), fn = "ItemRoot-module__item_root___kiMNv", vn = "ItemRoot-module__item_root___kiMNv", kn = "ItemRoot-module__disabled___leaqM",
|
|
3065
|
+
}, Dt = "CheckboxGroup.ItemRoot", [_n] = F(Dt), fn = "ItemRoot-module__item_root___kiMNv", vn = "ItemRoot-module__item_root___kiMNv", kn = "ItemRoot-module__disabled___leaqM", me = {
|
|
3061
3066
|
item_root: fn,
|
|
3062
3067
|
itemRoot: vn,
|
|
3063
3068
|
disabled: kn
|
|
3064
|
-
},
|
|
3069
|
+
}, ya = /* @__PURE__ */ g({
|
|
3065
3070
|
__name: "ItemRoot",
|
|
3066
3071
|
props: {
|
|
3067
3072
|
name: {},
|
|
@@ -3081,10 +3086,10 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3081
3086
|
});
|
|
3082
3087
|
return _n(l.value), (n, s) => (p(), v("div", {
|
|
3083
3088
|
class: x([
|
|
3084
|
-
o(
|
|
3089
|
+
o(me).item_root,
|
|
3085
3090
|
r.class,
|
|
3086
3091
|
{
|
|
3087
|
-
[o(
|
|
3092
|
+
[o(me).disabled]: t.value || e.isDisabled
|
|
3088
3093
|
}
|
|
3089
3094
|
]),
|
|
3090
3095
|
style: V(e.theme)
|
|
@@ -3092,12 +3097,12 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3092
3097
|
I(n.$slots, "default")
|
|
3093
3098
|
], 6));
|
|
3094
3099
|
}
|
|
3095
|
-
}),
|
|
3100
|
+
}), ga = {
|
|
3096
3101
|
"--crm-ui-kit-checkbox-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
3097
3102
|
}, Bt = "CheckboxGroup.ItemRootSelectAll", [
|
|
3098
3103
|
xn,
|
|
3099
|
-
|
|
3100
|
-
] = F(Bt), Ca = /* @__PURE__ */
|
|
3104
|
+
yn
|
|
3105
|
+
] = F(Bt), Ca = /* @__PURE__ */ g({
|
|
3101
3106
|
__name: "ItemRootSelectAll",
|
|
3102
3107
|
props: {
|
|
3103
3108
|
isDisabled: { type: Boolean },
|
|
@@ -3114,10 +3119,10 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3114
3119
|
});
|
|
3115
3120
|
return xn(l.value), (n, s) => (p(), v("div", {
|
|
3116
3121
|
class: x([
|
|
3117
|
-
o(
|
|
3122
|
+
o(me).item_root,
|
|
3118
3123
|
r.class,
|
|
3119
3124
|
{
|
|
3120
|
-
[o(
|
|
3125
|
+
[o(me).disabled]: t.value || e.isDisabled
|
|
3121
3126
|
}
|
|
3122
3127
|
]),
|
|
3123
3128
|
style: V(e.theme)
|
|
@@ -3125,7 +3130,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3125
3130
|
I(n.$slots, "default")
|
|
3126
3131
|
], 6));
|
|
3127
3132
|
}
|
|
3128
|
-
}), rt = "CheckboxGroup.CheckboxSelectAll", Se = "selectAll", Ia = /* @__PURE__ */
|
|
3133
|
+
}), rt = "CheckboxGroup.CheckboxSelectAll", Se = "selectAll", Ia = /* @__PURE__ */ g({
|
|
3129
3134
|
__name: "CheckboxSelectAll",
|
|
3130
3135
|
props: {
|
|
3131
3136
|
isReadonly: { type: Boolean },
|
|
@@ -3137,9 +3142,9 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3137
3142
|
class: { default: "" }
|
|
3138
3143
|
},
|
|
3139
3144
|
setup(e, { expose: r }) {
|
|
3140
|
-
const i = e, { theme: t, class: l, checkedStyle: n, ...s } = i, c = k(null), u = Ge(rt), d =
|
|
3145
|
+
const i = e, { theme: t, class: l, checkedStyle: n, ...s } = i, c = k(null), u = Ge(rt), d = yn(rt), h = () => {
|
|
3141
3146
|
d.onChange({ type: Se, name: Se });
|
|
3142
|
-
},
|
|
3147
|
+
}, y = b(() => {
|
|
3143
3148
|
const f = u.values, m = Array.from(f.values()).every(
|
|
3144
3149
|
(_) => _.isChecked
|
|
3145
3150
|
) ? "mark" : "indeterminate";
|
|
@@ -3152,25 +3157,25 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3152
3157
|
});
|
|
3153
3158
|
return r({
|
|
3154
3159
|
checkboxRef: c
|
|
3155
|
-
}), (f, a) => (p(), M(
|
|
3160
|
+
}), (f, a) => (p(), M(xe, $({
|
|
3156
3161
|
ref_key: "checkboxRef",
|
|
3157
3162
|
ref: c,
|
|
3158
3163
|
class: o(l),
|
|
3159
3164
|
theme: o(t),
|
|
3160
3165
|
value: Se,
|
|
3161
3166
|
"is-disabled": o(u).isDisabled || o(d).isDisabled,
|
|
3162
|
-
"is-checked":
|
|
3163
|
-
"checked-style":
|
|
3167
|
+
"is-checked": y.value.isChecked,
|
|
3168
|
+
"checked-style": y.value.checkedStyle
|
|
3164
3169
|
}, s, { onChange: h }), null, 16, ["class", "theme", "is-disabled", "is-checked", "checked-style"]));
|
|
3165
3170
|
}
|
|
3166
|
-
}), Vt = "RadioGroup", [
|
|
3171
|
+
}), Vt = "RadioGroup", [gn, Mt] = F(Vt), Cn = "RadioGroup-module__radiogroup___A36hR", In = "RadioGroup-module__horizontal___QsBvv", ot = {
|
|
3167
3172
|
radiogroup: Cn,
|
|
3168
3173
|
horizontal: In
|
|
3169
3174
|
}, zt = "RadioGroup.ItemRoot", [$n, wn] = F(zt), Sn = "ItemRoot-module__item_root___PGFFE", Tn = "ItemRoot-module__item_root___PGFFE", An = "ItemRoot-module__disabled___-CJGV", lt = {
|
|
3170
3175
|
item_root: Sn,
|
|
3171
3176
|
itemRoot: Tn,
|
|
3172
3177
|
disabled: An
|
|
3173
|
-
}, $a = /* @__PURE__ */
|
|
3178
|
+
}, $a = /* @__PURE__ */ g({
|
|
3174
3179
|
__name: "ItemRoot",
|
|
3175
3180
|
props: {
|
|
3176
3181
|
theme: {},
|
|
@@ -3206,7 +3211,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3206
3211
|
wrapper: Rn,
|
|
3207
3212
|
radio: Dn,
|
|
3208
3213
|
input: Bn
|
|
3209
|
-
}, nt = "RadioGroup.Radio", Sa = /* @__PURE__ */
|
|
3214
|
+
}, nt = "RadioGroup.Radio", Sa = /* @__PURE__ */ g({
|
|
3210
3215
|
__name: "Radio",
|
|
3211
3216
|
props: {
|
|
3212
3217
|
class: { default: "" },
|
|
@@ -3234,11 +3239,11 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3234
3239
|
});
|
|
3235
3240
|
return r({
|
|
3236
3241
|
inputRef: t
|
|
3237
|
-
}), (h,
|
|
3242
|
+
}), (h, y) => (p(), v("div", {
|
|
3238
3243
|
class: x([o(Te).wrapper, o(c)]),
|
|
3239
3244
|
style: V(e.theme)
|
|
3240
3245
|
}, [
|
|
3241
|
-
z(
|
|
3246
|
+
z(fe, $({
|
|
3242
3247
|
ref_key: "inputRef",
|
|
3243
3248
|
ref: t,
|
|
3244
3249
|
class: [o(Te).input, i.class],
|
|
@@ -3266,9 +3271,9 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3266
3271
|
"--crm-ui-kit-radio-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
3267
3272
|
"--crm-ui-kit-radio-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
3268
3273
|
"--crm-ui-kit-radio-focus-visible-border-radius": "50%"
|
|
3269
|
-
}, Vn =
|
|
3274
|
+
}, Vn = g({
|
|
3270
3275
|
name: Vt
|
|
3271
|
-
}), Aa = /* @__PURE__ */
|
|
3276
|
+
}), Aa = /* @__PURE__ */ g({
|
|
3272
3277
|
...Vn,
|
|
3273
3278
|
props: {
|
|
3274
3279
|
theme: {},
|
|
@@ -3280,7 +3285,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3280
3285
|
},
|
|
3281
3286
|
emits: ["change"],
|
|
3282
3287
|
setup(e, { expose: r, emit: i }) {
|
|
3283
|
-
const t = e, l = i, n = k(null), c =
|
|
3288
|
+
const t = e, l = i, n = k(null), c = re({
|
|
3284
3289
|
get name() {
|
|
3285
3290
|
return t.name;
|
|
3286
3291
|
},
|
|
@@ -3298,7 +3303,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3298
3303
|
l("change", d.value);
|
|
3299
3304
|
}
|
|
3300
3305
|
});
|
|
3301
|
-
return
|
|
3306
|
+
return gn(c), r({
|
|
3302
3307
|
radiogroupRef: n
|
|
3303
3308
|
}), (u, d) => (p(), v("div", $(u.$attrs, {
|
|
3304
3309
|
ref_key: "radiogroupRef",
|
|
@@ -3329,7 +3334,7 @@ export {
|
|
|
3329
3334
|
Wl as Accordion,
|
|
3330
3335
|
ma as AccordionItemTheme,
|
|
3331
3336
|
da as AccordionTheme,
|
|
3332
|
-
|
|
3337
|
+
ue as Appearance,
|
|
3333
3338
|
ze as BaseInput,
|
|
3334
3339
|
ts as Button,
|
|
3335
3340
|
is as ButtonNeutralTheme,
|
|
@@ -3341,11 +3346,11 @@ export {
|
|
|
3341
3346
|
ua as CalloutInfoTheme,
|
|
3342
3347
|
ca as CalloutSuccessTheme,
|
|
3343
3348
|
sa as CalloutWarningTheme,
|
|
3344
|
-
|
|
3349
|
+
xe as Checkbox,
|
|
3345
3350
|
Ls as CheckboxDarkTheme,
|
|
3346
3351
|
ka as CheckboxGroup,
|
|
3347
|
-
|
|
3348
|
-
|
|
3352
|
+
ya as CheckboxGroupItemRoot,
|
|
3353
|
+
ga as CheckboxGroupItemRootTheme,
|
|
3349
3354
|
xa as CheckboxGroupTheme,
|
|
3350
3355
|
Gs as CheckboxLabelTheme,
|
|
3351
3356
|
Pe as CheckboxLightTheme,
|
|
@@ -3373,7 +3378,7 @@ export {
|
|
|
3373
3378
|
fs as Label,
|
|
3374
3379
|
zs as LabelGroup,
|
|
3375
3380
|
Es as LabelGroupTheme,
|
|
3376
|
-
|
|
3381
|
+
go as LabelTheme,
|
|
3377
3382
|
ra as Link,
|
|
3378
3383
|
oa as LinkPrimaryTheme,
|
|
3379
3384
|
Ke as List,
|
|
@@ -3401,7 +3406,7 @@ export {
|
|
|
3401
3406
|
wa as RadioGroupItemRootTheme,
|
|
3402
3407
|
Ra as RadioGroupTheme,
|
|
3403
3408
|
Ta as RadioPrimaryTheme,
|
|
3404
|
-
|
|
3409
|
+
ys as Select,
|
|
3405
3410
|
$s as SelectArrow,
|
|
3406
3411
|
ws as SelectArrowTheme,
|
|
3407
3412
|
kt as SelectButton,
|
|
@@ -3413,8 +3418,8 @@ export {
|
|
|
3413
3418
|
Is as SelectItemTheme,
|
|
3414
3419
|
Ds as SelectList,
|
|
3415
3420
|
As as SelectListTheme,
|
|
3416
|
-
|
|
3417
|
-
|
|
3421
|
+
le as SelectOption,
|
|
3422
|
+
gs as SelectRootTheme,
|
|
3418
3423
|
Rs as SelectTrigger,
|
|
3419
3424
|
Bs as SelectValue,
|
|
3420
3425
|
ci as Spinner,
|
|
@@ -3426,7 +3431,7 @@ export {
|
|
|
3426
3431
|
va as TabPrimaryTheme,
|
|
3427
3432
|
Le as Text,
|
|
3428
3433
|
us as TextArea,
|
|
3429
|
-
|
|
3434
|
+
ve as TextBaseSizesTheme,
|
|
3430
3435
|
Ii as TextErrorTheme,
|
|
3431
3436
|
Oe as TextPrimaryTheme,
|
|
3432
3437
|
ns as TextSecondaryDarkTheme,
|
|
@@ -3434,7 +3439,7 @@ export {
|
|
|
3434
3439
|
ms as TextareaDarkTheme,
|
|
3435
3440
|
ds as TextareaLightTheme,
|
|
3436
3441
|
Kn as ValidationRules,
|
|
3437
|
-
|
|
3442
|
+
fe as VisuallyHiddenInput,
|
|
3438
3443
|
Jn as cn,
|
|
3439
3444
|
Fn as createComponentTheme,
|
|
3440
3445
|
Hn as createPortalId,
|
|
@@ -3453,7 +3458,7 @@ export {
|
|
|
3453
3458
|
Kt as useFieldValidation,
|
|
3454
3459
|
jn as useFormValidation,
|
|
3455
3460
|
Yn as useModalPortal,
|
|
3456
|
-
|
|
3461
|
+
Z as useMultiSelectContext,
|
|
3457
3462
|
Be as usePortal,
|
|
3458
3463
|
ht as useTheme,
|
|
3459
3464
|
Me as useThemeClassName,
|