@flysk-tech/amocrm-kommo-vue-ui-kit 0.2.1 → 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.d.ts +16 -4
- package/dist/index.js +1094 -1035
- package/dist/index.js.map +1 -1
- package/dist/styles/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ref as k, computed as
|
|
2
|
-
var
|
|
3
|
-
const
|
|
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
|
+
const On = "data-crm-ui-kit-theme", Ln = "default", pt = Symbol("theme-provider");
|
|
4
4
|
function Pn(e) {
|
|
5
|
-
const
|
|
5
|
+
const r = k({
|
|
6
6
|
mode: "light",
|
|
7
7
|
customVariables: {},
|
|
8
8
|
...e
|
|
9
|
-
}), i =
|
|
10
|
-
|
|
11
|
-
...
|
|
9
|
+
}), i = b(() => r.value.mode === "dark" ? ue.ALTERNATIVE : ue.DEFAULT), t = (c) => {
|
|
10
|
+
r.value = {
|
|
11
|
+
...r.value,
|
|
12
12
|
...c
|
|
13
|
-
}, Fe(
|
|
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
|
-
const c =
|
|
18
|
+
const c = r.value.mode === "light" ? "dark" : "light";
|
|
19
19
|
t({ mode: c });
|
|
20
20
|
};
|
|
21
|
-
Fe(
|
|
21
|
+
Fe(r.value);
|
|
22
22
|
const s = {
|
|
23
|
-
themeConfig: G(
|
|
23
|
+
themeConfig: G(r),
|
|
24
24
|
appearance: G(i),
|
|
25
25
|
setTheme: t,
|
|
26
26
|
setAppearance: l,
|
|
@@ -37,26 +37,26 @@ function ht() {
|
|
|
37
37
|
return e;
|
|
38
38
|
}
|
|
39
39
|
function Fe(e) {
|
|
40
|
-
typeof document > "u" || (document.documentElement.setAttribute("data-theme", e.mode), e.customVariables && Object.entries(e.customVariables).forEach(([
|
|
41
|
-
document.documentElement.style.setProperty(
|
|
40
|
+
typeof document > "u" || (document.documentElement.setAttribute("data-theme", e.mode), e.customVariables && Object.entries(e.customVariables).forEach(([r, i]) => {
|
|
41
|
+
document.documentElement.style.setProperty(r, i);
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
44
|
function Gn() {
|
|
45
45
|
const { themeConfig: e } = ht();
|
|
46
|
-
return
|
|
46
|
+
return b(() => e.value.mode);
|
|
47
47
|
}
|
|
48
48
|
function Nn() {
|
|
49
49
|
const { themeConfig: e } = ht();
|
|
50
|
-
return
|
|
50
|
+
return b(() => e.value.customVariables || {});
|
|
51
51
|
}
|
|
52
|
-
function jt(e,
|
|
53
|
-
const i = typeof
|
|
52
|
+
function jt(e, r) {
|
|
53
|
+
const i = typeof r == "object" && "value" in r ? r : b(() => r), t = b(() => {
|
|
54
54
|
const n = {};
|
|
55
55
|
return Object.entries(i.value).forEach(([s, c]) => {
|
|
56
56
|
const u = `--crm-ui-kit-${e}-${s}`;
|
|
57
57
|
n[u] = String(c);
|
|
58
58
|
}), n;
|
|
59
|
-
}), l =
|
|
59
|
+
}), l = b(() => {
|
|
60
60
|
const n = {};
|
|
61
61
|
return Object.entries(t.value).forEach(([s, c]) => {
|
|
62
62
|
n[s] = c;
|
|
@@ -67,27 +67,27 @@ function jt(e, o) {
|
|
|
67
67
|
styleVars: G(l)
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function Fn(e,
|
|
70
|
+
function Fn(e, r) {
|
|
71
71
|
return function(t) {
|
|
72
|
-
const l =
|
|
73
|
-
...
|
|
72
|
+
const l = b(() => ({
|
|
73
|
+
...r,
|
|
74
74
|
...t
|
|
75
75
|
}));
|
|
76
76
|
return jt(e, l);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
function Be(e) {
|
|
80
|
-
const
|
|
80
|
+
const r = k(), i = k(!1), t = (l) => {
|
|
81
81
|
if (typeof document > "u") return null;
|
|
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
|
|
86
|
-
typeof document > "u" || (e ?
|
|
85
|
+
return ie(() => {
|
|
86
|
+
typeof document > "u" || (e ? r.value = t(e) || document.body : r.value = document.body, i.value = !0);
|
|
87
87
|
}), ct(() => {
|
|
88
|
-
e &&
|
|
88
|
+
e && r.value && r.value !== document.body && r.value.children.length === 0 && r.value.remove();
|
|
89
89
|
}), {
|
|
90
|
-
portalTarget: G(
|
|
90
|
+
portalTarget: G(r),
|
|
91
91
|
isReady: G(i)
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -109,9 +109,9 @@ function qn() {
|
|
|
109
109
|
function Un() {
|
|
110
110
|
return Be(Ve.DROPDOWN);
|
|
111
111
|
}
|
|
112
|
-
function Kt(e,
|
|
113
|
-
const i = k(e), t = k(null), l = k(!1), n =
|
|
114
|
-
for (const d of
|
|
112
|
+
function Kt(e, r = []) {
|
|
113
|
+
const i = k(e), t = k(null), l = k(!1), n = b(() => t.value === null), s = () => {
|
|
114
|
+
for (const d of r) {
|
|
115
115
|
const h = d(i.value);
|
|
116
116
|
if (h !== !0)
|
|
117
117
|
return t.value = h, !1;
|
|
@@ -132,22 +132,22 @@ function Kt(e, o = []) {
|
|
|
132
132
|
touch: u
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function jn(e,
|
|
135
|
+
function jn(e, r = {}) {
|
|
136
136
|
const i = {}, t = k({});
|
|
137
137
|
Object.keys(e).forEach((a) => {
|
|
138
|
-
const m =
|
|
138
|
+
const m = r[a] || [];
|
|
139
139
|
i[a] = Kt(e[a], m);
|
|
140
140
|
});
|
|
141
|
-
const l =
|
|
141
|
+
const l = b(() => Object.values(i).every((a) => a.isValid.value)), n = b(() => Object.values(i).some((a) => a.error.value !== null)), s = (a) => {
|
|
142
142
|
const m = i[a];
|
|
143
143
|
if (!m) return !0;
|
|
144
|
-
const
|
|
145
|
-
return !
|
|
144
|
+
const _ = m.validate();
|
|
145
|
+
return !_ && m.error.value ? t.value[a] = m.error.value : delete t.value[a], _;
|
|
146
146
|
}, c = () => {
|
|
147
147
|
let a = !0;
|
|
148
148
|
const m = {};
|
|
149
|
-
return Object.keys(i).forEach((
|
|
150
|
-
!s(
|
|
149
|
+
return Object.keys(i).forEach((_) => {
|
|
150
|
+
!s(_) && i[_].error.value && (m[_] = i[_].error.value, a = !1);
|
|
151
151
|
}), t.value = m, a;
|
|
152
152
|
}, u = () => {
|
|
153
153
|
Object.values(i).forEach((a) => a.clearError()), t.value = {};
|
|
@@ -177,38 +177,38 @@ function jn(e, o = {}) {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
const Kn = {
|
|
180
|
-
required: (e = "Поле обязательно для заполнения") => (
|
|
181
|
-
minLength: (e,
|
|
182
|
-
maxLength: (e,
|
|
180
|
+
required: (e = "Поле обязательно для заполнения") => (r) => r == null || r === "" ? e : !0,
|
|
181
|
+
minLength: (e, r) => (i) => i && i.length < e ? r || `Минимальная длина: ${e} символов` : !0,
|
|
182
|
+
maxLength: (e, r) => (i) => i && i.length > e ? r || `Максимальная длина: ${e} символов` : !0,
|
|
183
183
|
email: (e = "Некорректный email адрес") => {
|
|
184
|
-
const
|
|
185
|
-
return (i) => i && !
|
|
184
|
+
const r = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
185
|
+
return (i) => i && !r.test(i) ? e : !0;
|
|
186
186
|
},
|
|
187
|
-
pattern: (e,
|
|
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
|
|
191
|
-
const
|
|
190
|
+
const se = /* @__PURE__ */ new Map(), Jt = (e) => {
|
|
191
|
+
const r = `${Wt}-${++Zt}`, i = document.createElement("style"), t = Object.entries(e).map(([l, n]) => `${l}: ${n};`).join(`
|
|
192
192
|
`);
|
|
193
|
-
return i.textContent = `.${
|
|
193
|
+
return i.textContent = `.${r} {
|
|
194
194
|
${t}
|
|
195
|
-
}`, document.head.appendChild(i), { className:
|
|
196
|
-
},
|
|
197
|
-
const
|
|
195
|
+
}`, document.head.appendChild(i), { className: r, styleElement: i };
|
|
196
|
+
}, Me = (e) => {
|
|
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
|
-
s.refCount++,
|
|
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(),
|
|
211
|
-
}),
|
|
210
|
+
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), se.delete(i)));
|
|
211
|
+
}), r;
|
|
212
212
|
}, Wn = () => {
|
|
213
213
|
};
|
|
214
214
|
function Zn(e = "amocrm") {
|
|
@@ -217,29 +217,29 @@ function Zn(e = "amocrm") {
|
|
|
217
217
|
function Jn(...e) {
|
|
218
218
|
return e.filter(Boolean).join(" ");
|
|
219
219
|
}
|
|
220
|
-
function Xn(e,
|
|
220
|
+
function Xn(e, r) {
|
|
221
221
|
let i;
|
|
222
222
|
return function(...l) {
|
|
223
223
|
const n = () => {
|
|
224
224
|
clearTimeout(i), e(...l);
|
|
225
225
|
};
|
|
226
|
-
clearTimeout(i), i = setTimeout(n,
|
|
226
|
+
clearTimeout(i), i = setTimeout(n, r);
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
function Qn(e,
|
|
229
|
+
function Qn(e, r) {
|
|
230
230
|
let i;
|
|
231
231
|
return function(...t) {
|
|
232
|
-
i || (e.apply(this, t), i = !0, setTimeout(() => i = !1,
|
|
232
|
+
i || (e.apply(this, t), i = !0, setTimeout(() => i = !1, r));
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
function He(e) {
|
|
236
236
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
237
237
|
}
|
|
238
|
-
function Xt(e,
|
|
238
|
+
function Xt(e, r) {
|
|
239
239
|
const i = { ...e };
|
|
240
|
-
for (const t in
|
|
241
|
-
if (
|
|
242
|
-
const l =
|
|
240
|
+
for (const t in r)
|
|
241
|
+
if (r.hasOwnProperty(t)) {
|
|
242
|
+
const l = r[t], n = i[t];
|
|
243
243
|
He(l) && He(n) ? i[t] = Xt(n, l) : i[t] = l;
|
|
244
244
|
}
|
|
245
245
|
return i;
|
|
@@ -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"],
|
|
264
|
+
}, ii = ["disabled", "readonly"], ze = /* @__PURE__ */ g({
|
|
265
265
|
inheritAttrs: !1,
|
|
266
266
|
__name: "BaseInput",
|
|
267
267
|
props: {
|
|
@@ -269,26 +269,26 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
269
269
|
isReadonly: { type: Boolean, default: !1 },
|
|
270
270
|
isPlaceholderVisibleOnFocus: { type: Boolean, default: !1 }
|
|
271
271
|
},
|
|
272
|
-
setup(e, { expose:
|
|
272
|
+
setup(e, { expose: r }) {
|
|
273
273
|
const i = k(null);
|
|
274
|
-
return
|
|
274
|
+
return r({
|
|
275
275
|
inputRef: i
|
|
276
276
|
}), (t, l) => (p(), v("input", $(t.$attrs, {
|
|
277
277
|
ref_key: "inputRef",
|
|
278
278
|
ref: i,
|
|
279
279
|
class: [
|
|
280
|
-
|
|
280
|
+
o(Ye).input,
|
|
281
281
|
{
|
|
282
|
-
[
|
|
282
|
+
[o(Ye).placeholder_visible]: e.isPlaceholderVisibleOnFocus
|
|
283
283
|
}
|
|
284
284
|
],
|
|
285
285
|
disabled: e.isDisabled,
|
|
286
286
|
readonly: e.isReadonly
|
|
287
287
|
}), null, 16, ii));
|
|
288
288
|
}
|
|
289
|
-
}),
|
|
290
|
-
input:
|
|
291
|
-
},
|
|
289
|
+
}), ri = "VisuallyHiddenInput-module__input___deWRN", oi = {
|
|
290
|
+
input: ri
|
|
291
|
+
}, fe = /* @__PURE__ */ g({
|
|
292
292
|
__name: "VisuallyHiddenInput",
|
|
293
293
|
props: {
|
|
294
294
|
isDisabled: { type: Boolean },
|
|
@@ -299,15 +299,15 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
299
299
|
isChecked: { type: Boolean },
|
|
300
300
|
isDefaultChecked: { type: Boolean }
|
|
301
301
|
},
|
|
302
|
-
setup(e, { expose:
|
|
303
|
-
const i = e, t = k(null), l =
|
|
302
|
+
setup(e, { expose: r }) {
|
|
303
|
+
const i = e, t = k(null), l = b(() => {
|
|
304
304
|
const { isChecked: s, isDefaultChecked: c, ...u } = i;
|
|
305
305
|
return s !== void 0 ? { checked: s, ...u } : u;
|
|
306
306
|
}), n = () => {
|
|
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);
|
|
@@ -315,12 +315,12 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
315
315
|
}), i.isChecked !== void 0 && P(() => i.isChecked, (s) => {
|
|
316
316
|
const c = n();
|
|
317
317
|
c && (c.checked = !!s);
|
|
318
|
-
}),
|
|
318
|
+
}), r({
|
|
319
319
|
inputRef: t
|
|
320
|
-
}), (s, c) => (p(),
|
|
320
|
+
}), (s, c) => (p(), M(ze, $({
|
|
321
321
|
ref_key: "inputRef",
|
|
322
322
|
ref: t,
|
|
323
|
-
class:
|
|
323
|
+
class: o(oi).input
|
|
324
324
|
}, l.value), null, 16, ["class"]));
|
|
325
325
|
}
|
|
326
326
|
}), li = "Spinner-module__spinner___SZoUP", ni = "Spinner-module__spinner_animation___LJyzJ", si = "Spinner-module__spinner_animation___LJyzJ", ai = "Spinner-module__centered___vcz-G", qe = {
|
|
@@ -335,13 +335,13 @@ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholde
|
|
|
335
335
|
theme: { default: void 0 }
|
|
336
336
|
},
|
|
337
337
|
setup(e) {
|
|
338
|
-
return (
|
|
338
|
+
return (r, i) => (p(), v("span", $({
|
|
339
339
|
class: [
|
|
340
|
-
|
|
341
|
-
{ [
|
|
340
|
+
o(qe).spinner,
|
|
341
|
+
{ [o(qe).centered]: e.isCentered }
|
|
342
342
|
],
|
|
343
343
|
style: e.theme || {}
|
|
344
|
-
},
|
|
344
|
+
}, r.$attrs), null, 16));
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
function ui() {
|
|
@@ -368,12 +368,12 @@ 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",
|
|
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,
|
|
375
|
-
before:
|
|
376
|
-
after:
|
|
375
|
+
before: bi,
|
|
376
|
+
after: _i,
|
|
377
377
|
spinner_container: fi,
|
|
378
378
|
spinnerContainer: vi,
|
|
379
379
|
invalid: ki,
|
|
@@ -392,19 +392,19 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
392
392
|
isClickableWhileDisabled: { type: Boolean, default: !1 }
|
|
393
393
|
},
|
|
394
394
|
emits: ["click"],
|
|
395
|
-
setup(e, { expose:
|
|
395
|
+
setup(e, { expose: r, emit: i }) {
|
|
396
396
|
const t = e, l = i, { shouldShowInvalidAnimation: n, showInvalidAnimation: s } = ui(), { shouldShowSuccessfulState: c, showSuccessfulState: u } = di();
|
|
397
|
-
|
|
398
|
-
const d =
|
|
399
|
-
var a, m,
|
|
397
|
+
r({ showInvalidAnimation: s, showSuccessfulState: u });
|
|
398
|
+
const d = b(() => {
|
|
399
|
+
var a, m, _, S, q;
|
|
400
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
|
-
"--crm-ui-kit-spinner-circle-size": (
|
|
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
406
|
...y,
|
|
407
|
-
"--crm-ui-kit-spinner-border-color": (
|
|
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
409
|
return { defaultTheme: y, disabledTheme: f };
|
|
410
410
|
}), h = (y) => {
|
|
@@ -413,11 +413,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
413
413
|
return (y, f) => (p(), v("button", $(y.$attrs, {
|
|
414
414
|
type: e.type,
|
|
415
415
|
class: [
|
|
416
|
-
|
|
416
|
+
o(U).button,
|
|
417
417
|
{
|
|
418
|
-
[
|
|
419
|
-
[
|
|
420
|
-
[
|
|
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,23 +425,23 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
425
425
|
onClick: h
|
|
426
426
|
}), [
|
|
427
427
|
T("span", {
|
|
428
|
-
class: x(
|
|
428
|
+
class: x(o(U).content)
|
|
429
429
|
}, [
|
|
430
|
-
|
|
430
|
+
o(c) ? (p(), v("span", Ci, [
|
|
431
431
|
L(D(e.successfulStateText) + " ", 1),
|
|
432
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(
|
|
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(
|
|
444
|
+
class: x(o(U).before)
|
|
445
445
|
}, [
|
|
446
446
|
I(y.$slots, "before", {}, () => [
|
|
447
447
|
L(D(e.before), 1)
|
|
@@ -452,7 +452,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
452
452
|
]),
|
|
453
453
|
e.after ? (p(), v("span", {
|
|
454
454
|
key: 1,
|
|
455
|
-
class: x(
|
|
455
|
+
class: x(o(U).after)
|
|
456
456
|
}, [
|
|
457
457
|
I(y.$slots, "after", {}, () => [
|
|
458
458
|
L(D(e.after), 1)
|
|
@@ -462,7 +462,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
462
462
|
], 2)
|
|
463
463
|
], 16, gi));
|
|
464
464
|
}
|
|
465
|
-
}),
|
|
465
|
+
}), Ee = {
|
|
466
466
|
"--crm-ui-kit-button-z-index": "1",
|
|
467
467
|
"--crm-ui-kit-button-height": "36px",
|
|
468
468
|
"--crm-ui-kit-button-elements-spacing": "4px",
|
|
@@ -488,7 +488,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
488
488
|
"--crm-ui-kit-button-spinner-circle-size": "16px",
|
|
489
489
|
"--crm-ui-kit-button-spinner-border-style": "solid"
|
|
490
490
|
}, is = {
|
|
491
|
-
...
|
|
491
|
+
...Ee,
|
|
492
492
|
"--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
493
493
|
"--crm-ui-kit-button-border-color": "var(--crm-ui-kit-palette-border-primary)",
|
|
494
494
|
"--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
@@ -498,8 +498,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
498
498
|
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
499
499
|
"--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-palette-button-classic-hover-background)",
|
|
500
500
|
"--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
501
|
-
},
|
|
502
|
-
...
|
|
501
|
+
}, rs = {
|
|
502
|
+
...Ee,
|
|
503
503
|
"--crm-ui-kit-button-color": "var(--crm-ui-kit-color-white)",
|
|
504
504
|
"--crm-ui-kit-button-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
|
|
505
505
|
"--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
@@ -511,8 +511,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
511
511
|
"--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
|
|
512
512
|
"--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-white)",
|
|
513
513
|
"--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)"
|
|
514
|
-
},
|
|
515
|
-
...
|
|
514
|
+
}, os = {
|
|
515
|
+
...Ee,
|
|
516
516
|
"--crm-ui-kit-button-height": "30px",
|
|
517
517
|
"--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-secondary-light)",
|
|
518
518
|
"--crm-ui-kit-button-padding": "0px 8px",
|
|
@@ -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",
|
|
@@ -535,23 +535,23 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
535
535
|
"--crm-ui-kit-text-size-l-line-height": "20px",
|
|
536
536
|
"--crm-ui-kit-text-size-xl-font-size": "18px",
|
|
537
537
|
"--crm-ui-kit-text-size-xl-line-height": "24px"
|
|
538
|
-
},
|
|
539
|
-
...
|
|
538
|
+
}, Oe = {
|
|
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 = {
|
|
555
555
|
"--crm-ui-kit-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
556
556
|
"--crm-ui-kit-input-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
557
557
|
"--crm-ui-kit-input-error-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
@@ -573,8 +573,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
573
573
|
"--crm-ui-kit-input-padding-left": "9px",
|
|
574
574
|
"--crm-ui-kit-input-height": "34px",
|
|
575
575
|
"--crm-ui-kit-input-width": "100%"
|
|
576
|
-
},
|
|
577
|
-
...
|
|
576
|
+
}, _t = {
|
|
577
|
+
...bt,
|
|
578
578
|
"--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
579
579
|
"--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
580
580
|
"--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
@@ -588,7 +588,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
588
588
|
"--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
589
589
|
"--crm-ui-kit-input-disabled-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
590
590
|
}, $i = {
|
|
591
|
-
...
|
|
591
|
+
...bt,
|
|
592
592
|
"--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
593
593
|
"--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
594
594
|
"--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
@@ -601,7 +601,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
601
601
|
"--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
602
602
|
"--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
603
603
|
"--crm-ui-kit-input-disabled-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
604
|
-
}, wi = Ii, ss =
|
|
604
|
+
}, wi = Ii, ss = _t, as = $i, Si = "Input-module__wrapper___dpfdV", Ti = "Input-module__input_wrapper___iVA--", Ai = "Input-module__input_wrapper___iVA--", Ri = "Input-module__input_container___TOBIn", Di = "Input-module__input_container___TOBIn", Bi = "Input-module__input___505b7", Vi = "Input-module__placeholder_visible___O2Udj", Mi = "Input-module__placeholder_visible___O2Udj", zi = "Input-module__after___dpDKi", Ei = "Input-module__has_after___ADuC4", Oi = "Input-module__has_after___ADuC4", Li = "Input-module__invalid___no7WZ", Pi = "Input-module__disabled___ProN9", Gi = "Input-module__invalid_description___xpoxv", Ni = "Input-module__invalid_description___xpoxv", Fi = "Input-module__invalid_description_right___-zM0v", Hi = "Input-module__invalid_description_right___-zM0v", Y = {
|
|
605
605
|
wrapper: Si,
|
|
606
606
|
input_wrapper: Ti,
|
|
607
607
|
inputWrapper: Ai,
|
|
@@ -609,10 +609,10 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
609
609
|
inputContainer: Di,
|
|
610
610
|
input: Bi,
|
|
611
611
|
placeholder_visible: Vi,
|
|
612
|
-
placeholderVisible:
|
|
613
|
-
after:
|
|
614
|
-
has_after:
|
|
615
|
-
hasAfter:
|
|
612
|
+
placeholderVisible: Mi,
|
|
613
|
+
after: zi,
|
|
614
|
+
has_after: Ei,
|
|
615
|
+
hasAfter: Oi,
|
|
616
616
|
invalid: Li,
|
|
617
617
|
disabled: Pi,
|
|
618
618
|
invalid_description: Gi,
|
|
@@ -634,15 +634,15 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
634
634
|
modelValue: { default: void 0 }
|
|
635
635
|
},
|
|
636
636
|
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
637
|
-
setup(e, { expose:
|
|
638
|
-
const t = ut(), l =
|
|
639
|
-
const { class: m, style:
|
|
637
|
+
setup(e, { expose: r, emit: i }) {
|
|
638
|
+
const t = ut(), l = b(() => {
|
|
639
|
+
const { class: m, style: _, ...S } = t;
|
|
640
640
|
return n.modelValue !== void 0 ? { ...S, value: n.modelValue } : S;
|
|
641
|
-
}), n = e, s = i, c = k(null), u =
|
|
641
|
+
}), n = e, s = i, c = k(null), u = b(() => n.theme || _t), d = b(() => ({
|
|
642
642
|
...wi
|
|
643
643
|
})), h = (m) => {
|
|
644
|
-
const
|
|
645
|
-
s("update:modelValue",
|
|
644
|
+
const _ = m.target;
|
|
645
|
+
s("update:modelValue", _.value), s("input", m);
|
|
646
646
|
}, y = (m) => {
|
|
647
647
|
s("change", m);
|
|
648
648
|
}, f = (m) => {
|
|
@@ -650,33 +650,33 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
650
650
|
}, a = (m) => {
|
|
651
651
|
s("blur", m);
|
|
652
652
|
};
|
|
653
|
-
return
|
|
653
|
+
return r({
|
|
654
654
|
inputRef: c
|
|
655
|
-
}), (m,
|
|
656
|
-
class: x([
|
|
655
|
+
}), (m, _) => (p(), v("div", {
|
|
656
|
+
class: x([o(Y).wrapper, m.$attrs.class]),
|
|
657
657
|
style: V(u.value)
|
|
658
658
|
}, [
|
|
659
659
|
T("div", {
|
|
660
660
|
class: x([
|
|
661
|
-
|
|
661
|
+
o(Y).input_wrapper,
|
|
662
662
|
{
|
|
663
|
-
[
|
|
663
|
+
[o(Y).invalid_description_right]: e.invalidDescriptionPlacement === "right"
|
|
664
664
|
}
|
|
665
665
|
])
|
|
666
666
|
}, [
|
|
667
667
|
T("div", {
|
|
668
668
|
class: x([
|
|
669
|
-
|
|
669
|
+
o(Y).input_container,
|
|
670
670
|
{
|
|
671
|
-
[
|
|
672
|
-
[
|
|
671
|
+
[o(Y).invalid]: e.isInvalid,
|
|
672
|
+
[o(Y).disabled]: e.isDisabled
|
|
673
673
|
}
|
|
674
674
|
])
|
|
675
675
|
}, [
|
|
676
|
-
|
|
676
|
+
z(ze, $(l.value, {
|
|
677
677
|
ref_key: "inputRef",
|
|
678
678
|
ref: c,
|
|
679
|
-
class: { [
|
|
679
|
+
class: { [o(Y).has_after]: !!e.after || !!m.$slots.after },
|
|
680
680
|
"is-disabled": e.isDisabled,
|
|
681
681
|
"is-readonly": e.isReadonly,
|
|
682
682
|
"is-placeholder-visible-on-focus": e.isPlaceholderVisibleOnFocus,
|
|
@@ -687,7 +687,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
687
687
|
}), null, 16, ["class", "is-disabled", "is-readonly", "is-placeholder-visible-on-focus"]),
|
|
688
688
|
e.after || m.$slots.after ? (p(), v("div", {
|
|
689
689
|
key: 0,
|
|
690
|
-
class: x(
|
|
690
|
+
class: x(o(Y).after)
|
|
691
691
|
}, [
|
|
692
692
|
I(m.$slots, "after", {}, () => [
|
|
693
693
|
L(D(e.after), 1)
|
|
@@ -696,13 +696,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
696
696
|
], 2),
|
|
697
697
|
e.isInvalid && e.invalidDescription ? (p(), v("div", {
|
|
698
698
|
key: 0,
|
|
699
|
-
class: x(
|
|
699
|
+
class: x(o(Y).invalid_description),
|
|
700
700
|
style: V(d.value)
|
|
701
701
|
}, D(e.invalidDescription), 7)) : A("", !0)
|
|
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
|
-
},
|
|
716
|
+
}, er = ["disabled", "readonly", "value"], us = /* @__PURE__ */ g({
|
|
717
717
|
inheritAttrs: !1,
|
|
718
718
|
__name: "TextArea",
|
|
719
719
|
props: {
|
|
@@ -728,12 +728,12 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
728
728
|
modelValue: { default: "" }
|
|
729
729
|
},
|
|
730
730
|
emits: ["update:modelValue", "autosize"],
|
|
731
|
-
setup(e, { expose:
|
|
731
|
+
setup(e, { expose: r, emit: i }) {
|
|
732
732
|
const t = e, l = i, n = k(null), s = (u) => {
|
|
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
|
};
|
|
@@ -747,18 +747,18 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
747
747
|
(u) => {
|
|
748
748
|
u && c();
|
|
749
749
|
}
|
|
750
|
-
),
|
|
750
|
+
), r({
|
|
751
751
|
textareaRef: n
|
|
752
752
|
}), (u, d) => (p(), v("div", {
|
|
753
|
-
class: x(
|
|
753
|
+
class: x(o(J).wrapper),
|
|
754
754
|
style: V(e.theme)
|
|
755
755
|
}, [
|
|
756
756
|
T("div", {
|
|
757
757
|
class: x([
|
|
758
|
-
|
|
758
|
+
o(J).textarea_container,
|
|
759
759
|
{
|
|
760
|
-
[
|
|
761
|
-
[
|
|
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
|
-
|
|
769
|
+
o(J).textarea,
|
|
770
770
|
{
|
|
771
|
-
[
|
|
771
|
+
[o(J).placeholder_visible]: e.isPlaceholderVisibleOnFocus
|
|
772
772
|
}
|
|
773
773
|
],
|
|
774
774
|
style: { maxHeight: e.maxHeight ? `${e.maxHeight}px` : void 0 },
|
|
@@ -776,11 +776,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
776
776
|
readonly: e.isReadOnly,
|
|
777
777
|
value: e.modelValue,
|
|
778
778
|
onInput: s
|
|
779
|
-
}), null, 16,
|
|
779
|
+
}), null, 16, er)
|
|
780
780
|
], 2),
|
|
781
781
|
e.isInvalid && e.invalidDescription ? (p(), v("div", {
|
|
782
782
|
key: 0,
|
|
783
|
-
class: x(
|
|
783
|
+
class: x(o(J).invalid_description)
|
|
784
784
|
}, D(e.invalidDescription), 3)) : A("", !0)
|
|
785
785
|
], 6));
|
|
786
786
|
}
|
|
@@ -815,16 +815,16 @@ 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
|
-
},
|
|
819
|
-
text:
|
|
820
|
-
ellipsis:
|
|
821
|
-
line_clamp:
|
|
822
|
-
lineClamp:
|
|
823
|
-
s:
|
|
824
|
-
m:
|
|
825
|
-
ms:
|
|
826
|
-
l:
|
|
827
|
-
xl:
|
|
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
|
+
text: tr,
|
|
820
|
+
ellipsis: ir,
|
|
821
|
+
line_clamp: rr,
|
|
822
|
+
lineClamp: or,
|
|
823
|
+
s: lr,
|
|
824
|
+
m: nr,
|
|
825
|
+
ms: sr,
|
|
826
|
+
l: ar,
|
|
827
|
+
xl: cr
|
|
828
828
|
}, Le = /* @__PURE__ */ g({
|
|
829
829
|
__name: "Text",
|
|
830
830
|
props: {
|
|
@@ -835,17 +835,17 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
835
835
|
style: { default: () => ({}) }
|
|
836
836
|
},
|
|
837
837
|
setup(e) {
|
|
838
|
-
const
|
|
839
|
-
if (!["s", "m", "ms", "l", "xl"].includes(
|
|
838
|
+
const r = e;
|
|
839
|
+
if (!["s", "m", "ms", "l", "xl"].includes(r.size))
|
|
840
840
|
throw new Error("Unknown size was presented");
|
|
841
|
-
const t =
|
|
841
|
+
const t = b(() => r.maxRows > 1);
|
|
842
842
|
return (l, n) => (p(), v("span", $(l.$attrs, {
|
|
843
843
|
class: [
|
|
844
|
-
|
|
845
|
-
|
|
844
|
+
o(ae).text,
|
|
845
|
+
o(ae)[e.size],
|
|
846
846
|
{
|
|
847
|
-
[
|
|
848
|
-
[
|
|
847
|
+
[o(ae).ellipsis]: e.isEllipsis,
|
|
848
|
+
[o(ae).line_clamp]: t.value
|
|
849
849
|
}
|
|
850
850
|
],
|
|
851
851
|
style: {
|
|
@@ -889,25 +889,25 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
889
889
|
...vt,
|
|
890
890
|
"--crm-ui-kit-inline-input-border-color": "var(--crm-ui-kit-color-blueberry)",
|
|
891
891
|
"--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
|
|
892
|
-
},
|
|
893
|
-
...
|
|
892
|
+
}, ur = {
|
|
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
|
-
},
|
|
897
|
-
wrapper:
|
|
898
|
-
input_container:
|
|
899
|
-
inputContainer:
|
|
900
|
-
after_container:
|
|
901
|
-
afterContainer:
|
|
902
|
-
after:
|
|
903
|
-
has_after:
|
|
904
|
-
hasAfter:
|
|
905
|
-
invalid_description_container:
|
|
906
|
-
invalidDescriptionContainer:
|
|
907
|
-
invalid_description:
|
|
908
|
-
invalidDescription:
|
|
909
|
-
disabled:
|
|
910
|
-
},
|
|
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
|
+
wrapper: dr,
|
|
898
|
+
input_container: mr,
|
|
899
|
+
inputContainer: pr,
|
|
900
|
+
after_container: hr,
|
|
901
|
+
afterContainer: br,
|
|
902
|
+
after: _r,
|
|
903
|
+
has_after: fr,
|
|
904
|
+
hasAfter: vr,
|
|
905
|
+
invalid_description_container: kr,
|
|
906
|
+
invalidDescriptionContainer: xr,
|
|
907
|
+
invalid_description: yr,
|
|
908
|
+
invalidDescription: gr,
|
|
909
|
+
disabled: Cr
|
|
910
|
+
}, bs = /* @__PURE__ */ g({
|
|
911
911
|
inheritAttrs: !1,
|
|
912
912
|
__name: "InlineInput",
|
|
913
913
|
props: {
|
|
@@ -921,32 +921,32 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
921
921
|
modelValue: { default: void 0 }
|
|
922
922
|
},
|
|
923
923
|
emits: ["update:modelValue", "input"],
|
|
924
|
-
setup(e, { expose:
|
|
925
|
-
const t = e, l = i, n = ut(), s =
|
|
924
|
+
setup(e, { expose: r, emit: i }) {
|
|
925
|
+
const t = e, l = i, n = ut(), s = b(() => {
|
|
926
926
|
const { class: d, style: h, ...y } = n;
|
|
927
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);
|
|
931
931
|
}, u = k(null);
|
|
932
|
-
return
|
|
932
|
+
return r({
|
|
933
933
|
inputRef: u
|
|
934
934
|
}), (d, h) => (p(), v("div", {
|
|
935
|
-
class: x(
|
|
935
|
+
class: x(o(j).wrapper),
|
|
936
936
|
style: V(e.theme)
|
|
937
937
|
}, [
|
|
938
938
|
T("div", {
|
|
939
939
|
class: x([
|
|
940
|
-
|
|
940
|
+
o(j).input_container,
|
|
941
941
|
{
|
|
942
|
-
[
|
|
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: { [
|
|
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,22 +955,22 @@ 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(
|
|
958
|
+
class: x(o(j).after_container)
|
|
959
959
|
}, [
|
|
960
960
|
T("div", {
|
|
961
|
-
class: x(
|
|
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(
|
|
966
|
+
class: x(o(j).invalid_description_container)
|
|
967
967
|
}, [
|
|
968
|
-
|
|
968
|
+
z(Le, {
|
|
969
969
|
size: "m",
|
|
970
|
-
theme:
|
|
971
|
-
class: x(
|
|
970
|
+
theme: o(ur),
|
|
971
|
+
class: x(o(j).invalid_description)
|
|
972
972
|
}, {
|
|
973
|
-
default:
|
|
973
|
+
default: O(() => [
|
|
974
974
|
L(D(e.invalidDescription), 1)
|
|
975
975
|
]),
|
|
976
976
|
_: 1
|
|
@@ -978,11 +978,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
978
978
|
], 2)) : A("", !0)
|
|
979
979
|
], 6));
|
|
980
980
|
}
|
|
981
|
-
}),
|
|
982
|
-
wrapper:
|
|
983
|
-
switcher:
|
|
984
|
-
input:
|
|
985
|
-
},
|
|
981
|
+
}), Ir = "Switcher-module__wrapper___Bamq6", $r = "Switcher-module__switcher___MjuSh", wr = "Switcher-module__input___-K2Ku", Ie = {
|
|
982
|
+
wrapper: Ir,
|
|
983
|
+
switcher: $r,
|
|
984
|
+
input: wr
|
|
985
|
+
}, _s = /* @__PURE__ */ g({
|
|
986
986
|
inheritAttrs: !1,
|
|
987
987
|
__name: "Switcher",
|
|
988
988
|
props: {
|
|
@@ -995,19 +995,19 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
995
995
|
isDefaultChecked: { type: Boolean },
|
|
996
996
|
theme: {}
|
|
997
997
|
},
|
|
998
|
-
setup(e, { expose:
|
|
998
|
+
setup(e, { expose: r }) {
|
|
999
999
|
const i = e, t = k(null);
|
|
1000
|
-
return
|
|
1000
|
+
return r({
|
|
1001
1001
|
inputRef: t
|
|
1002
1002
|
}), (l, n) => (p(), v("div", {
|
|
1003
|
-
class: x(
|
|
1003
|
+
class: x(o(Ie).wrapper),
|
|
1004
1004
|
style: V(e.theme)
|
|
1005
1005
|
}, [
|
|
1006
|
-
|
|
1006
|
+
z(fe, $(l.$attrs, {
|
|
1007
1007
|
id: i.id,
|
|
1008
1008
|
ref_key: "inputRef",
|
|
1009
1009
|
ref: t,
|
|
1010
|
-
class:
|
|
1010
|
+
class: o(Ie).input,
|
|
1011
1011
|
type: "checkbox",
|
|
1012
1012
|
"is-disabled": i.isDisabled,
|
|
1013
1013
|
"is-readonly": i.isReadonly,
|
|
@@ -1017,21 +1017,21 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1017
1017
|
name: i.name
|
|
1018
1018
|
}), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
|
|
1019
1019
|
T("span", {
|
|
1020
|
-
class: x(
|
|
1020
|
+
class: x(o(Ie).switcher)
|
|
1021
1021
|
}, null, 2)
|
|
1022
1022
|
], 6));
|
|
1023
1023
|
}
|
|
1024
|
-
}),
|
|
1025
|
-
wrapper:
|
|
1026
|
-
top:
|
|
1027
|
-
text_container:
|
|
1028
|
-
textContainer:
|
|
1029
|
-
centered:
|
|
1030
|
-
left:
|
|
1031
|
-
right:
|
|
1032
|
-
text_description:
|
|
1033
|
-
textDescription:
|
|
1034
|
-
},
|
|
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
|
+
wrapper: Sr,
|
|
1026
|
+
top: Tr,
|
|
1027
|
+
text_container: Ar,
|
|
1028
|
+
textContainer: Rr,
|
|
1029
|
+
centered: Dr,
|
|
1030
|
+
left: Br,
|
|
1031
|
+
right: Vr,
|
|
1032
|
+
text_description: Mr,
|
|
1033
|
+
textDescription: zr
|
|
1034
|
+
}, Er = { key: 0 }, fs = /* @__PURE__ */ g({
|
|
1035
1035
|
__name: "Label",
|
|
1036
1036
|
props: {
|
|
1037
1037
|
theme: {},
|
|
@@ -1040,13 +1040,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1040
1040
|
textPlacement: { default: "top" },
|
|
1041
1041
|
isCentered: { type: Boolean, default: !1 }
|
|
1042
1042
|
},
|
|
1043
|
-
setup(e, { expose:
|
|
1043
|
+
setup(e, { expose: r }) {
|
|
1044
1044
|
const i = e, t = k(null), l = {
|
|
1045
|
-
top:
|
|
1046
|
-
left:
|
|
1047
|
-
right:
|
|
1048
|
-
}, n =
|
|
1049
|
-
return
|
|
1045
|
+
top: X.top,
|
|
1046
|
+
left: X.left,
|
|
1047
|
+
right: X.right
|
|
1048
|
+
}, n = b(() => l[i.textPlacement]);
|
|
1049
|
+
return r({
|
|
1050
1050
|
labelRef: t
|
|
1051
1051
|
}), (s, c) => (p(), v("label", $(s.$attrs, {
|
|
1052
1052
|
ref_key: "labelRef",
|
|
@@ -1054,23 +1054,23 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1054
1054
|
class: [
|
|
1055
1055
|
n.value,
|
|
1056
1056
|
{
|
|
1057
|
-
[
|
|
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(
|
|
1064
|
+
class: x(o(X).text_container)
|
|
1065
1065
|
}, [
|
|
1066
|
-
e.text || s.$slots.text ? (p(), v("span",
|
|
1066
|
+
e.text || s.$slots.text ? (p(), v("span", Er, [
|
|
1067
1067
|
I(s.$slots, "text", {}, () => [
|
|
1068
1068
|
L(D(e.text), 1)
|
|
1069
1069
|
])
|
|
1070
1070
|
])) : A("", !0),
|
|
1071
1071
|
e.description || s.$slots.description ? (p(), v("div", {
|
|
1072
1072
|
key: 1,
|
|
1073
|
-
class: x(
|
|
1073
|
+
class: x(o(X).text_description)
|
|
1074
1074
|
}, [
|
|
1075
1075
|
I(s.$slots, "description", {}, () => [
|
|
1076
1076
|
L(D(e.description), 1)
|
|
@@ -1093,11 +1093,11 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1093
1093
|
"--crm-ui-kit-switcher-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
1094
1094
|
"--crm-ui-kit-switcher-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
1095
1095
|
"--crm-ui-kit-switcher-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
1096
|
-
},
|
|
1097
|
-
button:
|
|
1098
|
-
invalid:
|
|
1099
|
-
disabled:
|
|
1100
|
-
},
|
|
1096
|
+
}, Or = "SelectButton-module__button___rXDb-", Lr = "SelectButton-module__invalid___9dO2z", Pr = "SelectButton-module__disabled___sqM8-", $e = {
|
|
1097
|
+
button: Or,
|
|
1098
|
+
invalid: Lr,
|
|
1099
|
+
disabled: Pr
|
|
1100
|
+
}, Gr = ["disabled"], Nr = "Enter", Fr = "Space", kt = /* @__PURE__ */ g({
|
|
1101
1101
|
__name: "SelectButton",
|
|
1102
1102
|
props: {
|
|
1103
1103
|
theme: {},
|
|
@@ -1105,13 +1105,13 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1105
1105
|
isDisabled: { type: Boolean, default: !1 }
|
|
1106
1106
|
},
|
|
1107
1107
|
emits: ["toggle"],
|
|
1108
|
-
setup(e, { expose:
|
|
1108
|
+
setup(e, { expose: r, emit: i }) {
|
|
1109
1109
|
const t = i, l = k(null), n = () => {
|
|
1110
1110
|
t("toggle");
|
|
1111
1111
|
}, s = (c) => {
|
|
1112
|
-
[
|
|
1112
|
+
[Nr, Fr].includes(c.code) && (c.preventDefault(), n());
|
|
1113
1113
|
};
|
|
1114
|
-
return
|
|
1114
|
+
return r({
|
|
1115
1115
|
buttonRef: l
|
|
1116
1116
|
}), (c, u) => (p(), v("button", $({
|
|
1117
1117
|
ref_key: "buttonRef",
|
|
@@ -1119,10 +1119,10 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1119
1119
|
}, c.$attrs, {
|
|
1120
1120
|
type: "button",
|
|
1121
1121
|
class: [
|
|
1122
|
-
|
|
1122
|
+
o($e).button,
|
|
1123
1123
|
{
|
|
1124
|
-
[
|
|
1125
|
-
[
|
|
1124
|
+
[o($e).invalid]: e.isInvalid,
|
|
1125
|
+
[o($e).disabled]: e.isDisabled
|
|
1126
1126
|
}
|
|
1127
1127
|
],
|
|
1128
1128
|
style: e.theme,
|
|
@@ -1131,7 +1131,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1131
1131
|
onKeydown: s
|
|
1132
1132
|
}), [
|
|
1133
1133
|
I(c.$slots, "default")
|
|
1134
|
-
], 16,
|
|
1134
|
+
], 16, Gr));
|
|
1135
1135
|
}
|
|
1136
1136
|
}), xt = {
|
|
1137
1137
|
"--crm-ui-kit-select-button-border-width": "1px",
|
|
@@ -1158,25 +1158,25 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1158
1158
|
"--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
1159
1159
|
"--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
|
|
1160
1160
|
"--crm-ui-kit-select-button-disabled-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
1161
|
-
}, F = (e,
|
|
1161
|
+
}, F = (e, r) => {
|
|
1162
1162
|
const i = Symbol(e);
|
|
1163
1163
|
return [(n) => {
|
|
1164
1164
|
st(i, n);
|
|
1165
1165
|
}, (n) => {
|
|
1166
|
-
const s = at(i,
|
|
1166
|
+
const s = at(i, r);
|
|
1167
1167
|
if (s)
|
|
1168
1168
|
return s;
|
|
1169
1169
|
throw new Error(
|
|
1170
1170
|
`\`${n}\` must be used within \`${e}\``
|
|
1171
1171
|
);
|
|
1172
1172
|
}];
|
|
1173
|
-
}, yt = "Select", [
|
|
1174
|
-
select:
|
|
1175
|
-
opened:
|
|
1176
|
-
},
|
|
1173
|
+
}, yt = "Select", [Hr, ke] = F(yt), Yr = "Select-module__select___U4LyF", qr = "Select-module__opened___IOv4m", Ue = {
|
|
1174
|
+
select: Yr,
|
|
1175
|
+
opened: qr
|
|
1176
|
+
}, Ur = g({
|
|
1177
1177
|
name: yt
|
|
1178
1178
|
}), ys = /* @__PURE__ */ g({
|
|
1179
|
-
...
|
|
1179
|
+
...Ur,
|
|
1180
1180
|
props: {
|
|
1181
1181
|
theme: {},
|
|
1182
1182
|
value: {},
|
|
@@ -1187,15 +1187,15 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1187
1187
|
isDefaultOpen: { type: Boolean }
|
|
1188
1188
|
},
|
|
1189
1189
|
emits: ["change", "openChange"],
|
|
1190
|
-
setup(e, { expose:
|
|
1191
|
-
const l = e, n = i, s = k(null), c = k(l.isDefaultOpen ?? !1), u = k(-1), d = k(l.defaultValue), h =
|
|
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), y = dt(), f = b(() => {
|
|
1192
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
|
-
}), a =
|
|
1194
|
+
}), a = b(
|
|
1195
1195
|
() => h.value ? l.value : d.value
|
|
1196
|
-
), m =
|
|
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,15 +1227,15 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1227
1227
|
return l.defaultValue;
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
|
-
return
|
|
1230
|
+
return Hr(Q), r({
|
|
1231
1231
|
selectRef: s
|
|
1232
1232
|
}), (R, Ne) => (p(), v("div", $(R.$attrs, {
|
|
1233
1233
|
ref_key: "selectRef",
|
|
1234
1234
|
ref: s,
|
|
1235
1235
|
class: [
|
|
1236
|
-
|
|
1236
|
+
o(Ue).select,
|
|
1237
1237
|
{
|
|
1238
|
-
[
|
|
1238
|
+
[o(Ue).opened]: m.value
|
|
1239
1239
|
}
|
|
1240
1240
|
],
|
|
1241
1241
|
style: e.theme
|
|
@@ -1246,42 +1246,42 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1246
1246
|
}), gs = {
|
|
1247
1247
|
"--crm-ui-kit-select-z-index": "auto",
|
|
1248
1248
|
"--crm-ui-kit-select-opened-z-index": "60"
|
|
1249
|
-
},
|
|
1250
|
-
text:
|
|
1251
|
-
},
|
|
1249
|
+
}, jr = "Option-module__text___taK9J", Kr = {
|
|
1250
|
+
text: jr
|
|
1251
|
+
}, le = /* @__PURE__ */ g({
|
|
1252
1252
|
__name: "Option",
|
|
1253
1253
|
props: {
|
|
1254
1254
|
class: {}
|
|
1255
1255
|
},
|
|
1256
|
-
setup(e, { expose:
|
|
1256
|
+
setup(e, { expose: r }) {
|
|
1257
1257
|
const i = e, t = {
|
|
1258
|
-
...
|
|
1258
|
+
...Oe,
|
|
1259
1259
|
"--crm-ui-kit-text-color": "inherit"
|
|
1260
1260
|
}, l = k(null);
|
|
1261
|
-
return
|
|
1261
|
+
return r({
|
|
1262
1262
|
optionRef: l
|
|
1263
1263
|
}), (n, s) => (p(), v("span", {
|
|
1264
1264
|
ref_key: "optionRef",
|
|
1265
1265
|
ref: l,
|
|
1266
|
-
class: x([
|
|
1266
|
+
class: x([o(Kr).text, i.class])
|
|
1267
1267
|
}, [
|
|
1268
|
-
|
|
1268
|
+
z(Le, {
|
|
1269
1269
|
theme: t,
|
|
1270
1270
|
size: "l",
|
|
1271
1271
|
"is-ellipsis": !0
|
|
1272
1272
|
}, {
|
|
1273
|
-
default:
|
|
1273
|
+
default: O(() => [
|
|
1274
1274
|
I(n.$slots, "default")
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 3
|
|
1277
1277
|
})
|
|
1278
1278
|
], 2));
|
|
1279
1279
|
}
|
|
1280
|
-
}),
|
|
1281
|
-
item:
|
|
1282
|
-
selected:
|
|
1283
|
-
hovered:
|
|
1284
|
-
},
|
|
1280
|
+
}), Wr = "Item-module__item___MhuKP", Zr = "Item-module__selected___vlZkB", Jr = "Item-module__hovered___Zad41", we = {
|
|
1281
|
+
item: Wr,
|
|
1282
|
+
selected: Zr,
|
|
1283
|
+
hovered: Jr
|
|
1284
|
+
}, Xr = "Select.Item", Cs = /* @__PURE__ */ g({
|
|
1285
1285
|
__name: "Item",
|
|
1286
1286
|
props: {
|
|
1287
1287
|
item: {},
|
|
@@ -1289,24 +1289,24 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1289
1289
|
class: {},
|
|
1290
1290
|
theme: {}
|
|
1291
1291
|
},
|
|
1292
|
-
setup(e, { expose:
|
|
1293
|
-
const i = e, t =
|
|
1292
|
+
setup(e, { expose: r }) {
|
|
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
|
-
}), s =
|
|
1296
|
+
}), s = b(() => t.hoveredIndex === i.index), c = (u) => {
|
|
1297
1297
|
u.preventDefault(), t.onHoveredIndexChange(i.index), typeof t.onChange == "function" && t.onChange(i.item);
|
|
1298
1298
|
};
|
|
1299
|
-
return
|
|
1299
|
+
return r({
|
|
1300
1300
|
itemRef: l
|
|
1301
1301
|
}), (u, d) => (p(), v("li", $({
|
|
1302
1302
|
ref_key: "itemRef",
|
|
1303
1303
|
ref: l
|
|
1304
1304
|
}, u.$attrs, {
|
|
1305
1305
|
class: [
|
|
1306
|
-
|
|
1306
|
+
o(we).item,
|
|
1307
1307
|
{
|
|
1308
|
-
[
|
|
1309
|
-
[
|
|
1308
|
+
[o(we).selected]: n.value,
|
|
1309
|
+
[o(we).hovered]: s.value
|
|
1310
1310
|
},
|
|
1311
1311
|
i.class
|
|
1312
1312
|
],
|
|
@@ -1314,8 +1314,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1314
1314
|
onClick: c
|
|
1315
1315
|
}), [
|
|
1316
1316
|
I(u.$slots, "default", {}, () => [
|
|
1317
|
-
|
|
1318
|
-
default:
|
|
1317
|
+
z(le, null, {
|
|
1318
|
+
default: O(() => [
|
|
1319
1319
|
L(D(e.item.option), 1)
|
|
1320
1320
|
]),
|
|
1321
1321
|
_: 1
|
|
@@ -1332,29 +1332,29 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1332
1332
|
"--crm-ui-kit-select-item-selected-background": "var(--crm-ui-kit-icon-check-mark) 8px 14px no-repeat",
|
|
1333
1333
|
"--crm-ui-kit-select-item-hovered-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
1334
1334
|
"--crm-ui-kit-select-item-hover-background-color": "var(--crm-ui-kit-palette-background-default)"
|
|
1335
|
-
},
|
|
1336
|
-
wrapper:
|
|
1337
|
-
},
|
|
1335
|
+
}, Qr = "Arrow-module__wrapper___MpIq-", eo = {
|
|
1336
|
+
wrapper: Qr
|
|
1337
|
+
}, to = 20, io = 20, $s = /* @__PURE__ */ g({
|
|
1338
1338
|
__name: "Arrow",
|
|
1339
1339
|
props: {
|
|
1340
1340
|
theme: {},
|
|
1341
1341
|
class: {}
|
|
1342
1342
|
},
|
|
1343
|
-
setup(e, { expose:
|
|
1343
|
+
setup(e, { expose: r }) {
|
|
1344
1344
|
const i = e, t = k(null);
|
|
1345
|
-
return
|
|
1345
|
+
return r({
|
|
1346
1346
|
arrowRef: t
|
|
1347
1347
|
}), (l, n) => (p(), v("span", {
|
|
1348
1348
|
ref_key: "arrowRef",
|
|
1349
1349
|
ref: t,
|
|
1350
|
-
class: x([
|
|
1350
|
+
class: x([o(eo).wrapper, i.class]),
|
|
1351
1351
|
style: V(e.theme)
|
|
1352
1352
|
}, [
|
|
1353
1353
|
I(l.$slots, "default", {}, () => [
|
|
1354
1354
|
(p(), v("svg", {
|
|
1355
1355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1356
|
-
width:
|
|
1357
|
-
height:
|
|
1356
|
+
width: to,
|
|
1357
|
+
height: io,
|
|
1358
1358
|
fill: "none",
|
|
1359
1359
|
viewBox: "0 0 21 21"
|
|
1360
1360
|
}, [...n[0] || (n[0] = [
|
|
@@ -1372,22 +1372,22 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1372
1372
|
"--crm-ui-kit-select-arrow-width": "20px",
|
|
1373
1373
|
"--crm-ui-kit-select-arrow-height": "20px",
|
|
1374
1374
|
"--crm-ui-kit-select-margin": "0 0 0 auto"
|
|
1375
|
-
},
|
|
1376
|
-
wrapper:
|
|
1375
|
+
}, ro = "Icon-module__wrapper___LScci", oo = {
|
|
1376
|
+
wrapper: ro
|
|
1377
1377
|
}, Ss = /* @__PURE__ */ g({
|
|
1378
1378
|
__name: "Icon",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
theme: {}
|
|
1381
1381
|
},
|
|
1382
|
-
setup(e, { expose:
|
|
1382
|
+
setup(e, { expose: r }) {
|
|
1383
1383
|
const i = k(null);
|
|
1384
|
-
return
|
|
1384
|
+
return r({
|
|
1385
1385
|
iconRef: i
|
|
1386
1386
|
}), (t, l) => t.$slots.default ? (p(), v("span", {
|
|
1387
1387
|
key: 0,
|
|
1388
1388
|
ref_key: "iconRef",
|
|
1389
1389
|
ref: i,
|
|
1390
|
-
class: x(
|
|
1390
|
+
class: x(o(oo).wrapper),
|
|
1391
1391
|
style: V(e.theme)
|
|
1392
1392
|
}, [
|
|
1393
1393
|
I(t.$slots, "default")
|
|
@@ -1397,9 +1397,9 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1397
1397
|
"--crm-ui-kit-select-icon-width": "20px",
|
|
1398
1398
|
"--crm-ui-kit-select-icon-height": "20px",
|
|
1399
1399
|
"--crm-ui-kit-select-icon-margin": "0 6px 0 0"
|
|
1400
|
-
},
|
|
1401
|
-
list:
|
|
1402
|
-
opened:
|
|
1400
|
+
}, lo = "List-module__list___yt0s5", no = "List-module__opened___-UDVm", je = {
|
|
1401
|
+
list: lo,
|
|
1402
|
+
opened: no
|
|
1403
1403
|
}, Ke = /* @__PURE__ */ g({
|
|
1404
1404
|
__name: "List",
|
|
1405
1405
|
props: {
|
|
@@ -1408,8 +1408,8 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1408
1408
|
hoveredIndex: { default: 0 }
|
|
1409
1409
|
},
|
|
1410
1410
|
emits: ["select", "toggle", "hoveredIndexChange"],
|
|
1411
|
-
setup(e, { expose:
|
|
1412
|
-
const t = e, l = i, n = k(null), s = oe(), c =
|
|
1411
|
+
setup(e, { expose: r, emit: i }) {
|
|
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":
|
|
@@ -1427,7 +1427,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1427
1427
|
break;
|
|
1428
1428
|
}
|
|
1429
1429
|
};
|
|
1430
|
-
return
|
|
1430
|
+
return r({
|
|
1431
1431
|
listRef: n
|
|
1432
1432
|
}), (d, h) => e.isOpened ? (p(), v("ul", $({ key: 0 }, d.$attrs, {
|
|
1433
1433
|
ref_key: "listRef",
|
|
@@ -1435,9 +1435,9 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1435
1435
|
tabindex: "0",
|
|
1436
1436
|
role: "list",
|
|
1437
1437
|
class: [
|
|
1438
|
-
|
|
1438
|
+
o(je).list,
|
|
1439
1439
|
{
|
|
1440
|
-
[
|
|
1440
|
+
[o(je).opened]: e.isOpened
|
|
1441
1441
|
}
|
|
1442
1442
|
],
|
|
1443
1443
|
style: e.theme,
|
|
@@ -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
|
-
},
|
|
1464
|
+
}, so = "Select.Button", Rs = /* @__PURE__ */ g({
|
|
1465
1465
|
__name: "Button",
|
|
1466
1466
|
props: {
|
|
1467
1467
|
theme: {}
|
|
1468
1468
|
},
|
|
1469
|
-
setup(e, { expose:
|
|
1470
|
-
const i =
|
|
1469
|
+
setup(e, { expose: r }) {
|
|
1470
|
+
const i = ke(so), t = k(null), l = () => {
|
|
1471
1471
|
i.onOpen(!i.isOpened);
|
|
1472
1472
|
};
|
|
1473
1473
|
return P(
|
|
@@ -1476,49 +1476,49 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1476
1476
|
var c, u;
|
|
1477
1477
|
s && !n && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
|
|
1478
1478
|
}
|
|
1479
|
-
),
|
|
1479
|
+
), r({
|
|
1480
1480
|
buttonRef: t
|
|
1481
|
-
}), (n, s) => (p(),
|
|
1481
|
+
}), (n, s) => (p(), M(kt, $({
|
|
1482
1482
|
ref_key: "buttonRef",
|
|
1483
1483
|
ref: t
|
|
1484
1484
|
}, n.$attrs, {
|
|
1485
1485
|
theme: e.theme,
|
|
1486
|
-
"is-disabled":
|
|
1487
|
-
"is-invalid":
|
|
1486
|
+
"is-disabled": o(i).isDisabled,
|
|
1487
|
+
"is-invalid": o(i).isInvalid,
|
|
1488
1488
|
onToggle: l
|
|
1489
1489
|
}), {
|
|
1490
|
-
default:
|
|
1490
|
+
default: O(() => [
|
|
1491
1491
|
I(n.$slots, "default")
|
|
1492
1492
|
]),
|
|
1493
1493
|
_: 3
|
|
1494
1494
|
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
1495
1495
|
}
|
|
1496
|
-
}), gt = ({ ref: e, handler:
|
|
1496
|
+
}), gt = ({ ref: e, handler: r }) => {
|
|
1497
1497
|
const i = (t) => {
|
|
1498
|
-
e.value && !e.value.contains(t.target) &&
|
|
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
|
-
},
|
|
1505
|
+
}, ao = "Select.List", Ds = /* @__PURE__ */ g({
|
|
1506
1506
|
__name: "SelectList",
|
|
1507
1507
|
props: {
|
|
1508
1508
|
theme: {},
|
|
1509
1509
|
class: {},
|
|
1510
1510
|
container: {}
|
|
1511
1511
|
},
|
|
1512
|
-
setup(e, { expose:
|
|
1513
|
-
const i = e, t =
|
|
1514
|
-
var
|
|
1515
|
-
return (
|
|
1516
|
-
}).filter(Boolean) : []), c =
|
|
1512
|
+
setup(e, { expose: r }) {
|
|
1513
|
+
const i = e, t = ke(ao), l = k(null), n = oe(), s = b(() => n.default ? n.default().map((m) => {
|
|
1514
|
+
var _;
|
|
1515
|
+
return (_ = m.props) == null ? void 0 : _.item;
|
|
1516
|
+
}).filter(Boolean) : []), c = b(() => {
|
|
1517
1517
|
const a = {};
|
|
1518
|
-
return s.value.forEach((m,
|
|
1519
|
-
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] =
|
|
1518
|
+
return s.value.forEach((m, _) => {
|
|
1519
|
+
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = _);
|
|
1520
1520
|
}), a;
|
|
1521
|
-
}), u =
|
|
1521
|
+
}), u = b(() => {
|
|
1522
1522
|
if (t.value) {
|
|
1523
1523
|
const a = c.value[String(t.value.value)];
|
|
1524
1524
|
if (a !== void 0) return a;
|
|
@@ -1531,7 +1531,7 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1531
1531
|
}, y = (a) => {
|
|
1532
1532
|
const m = s.value[a];
|
|
1533
1533
|
m && typeof t.onChange == "function" && t.onChange(m);
|
|
1534
|
-
}, f =
|
|
1534
|
+
}, f = b(() => {
|
|
1535
1535
|
var a;
|
|
1536
1536
|
return ((a = l.value) == null ? void 0 : a.listRef) ?? null;
|
|
1537
1537
|
});
|
|
@@ -1543,92 +1543,92 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1543
1543
|
}), P(
|
|
1544
1544
|
() => t.isOpened,
|
|
1545
1545
|
(a) => {
|
|
1546
|
-
var m,
|
|
1547
|
-
a && ((
|
|
1546
|
+
var m, _;
|
|
1547
|
+
a && ((_ = (m = l.value) == null ? void 0 : m.listRef) == null || _.focus());
|
|
1548
1548
|
}
|
|
1549
|
-
),
|
|
1549
|
+
), r({
|
|
1550
1550
|
listRef: l
|
|
1551
|
-
}), (a, m) => e.container ? (p(),
|
|
1551
|
+
}), (a, m) => e.container ? (p(), M(Ae, {
|
|
1552
1552
|
key: 0,
|
|
1553
1553
|
to: e.container
|
|
1554
1554
|
}, [
|
|
1555
|
-
|
|
1555
|
+
z(Ke, {
|
|
1556
1556
|
ref_key: "listRef",
|
|
1557
1557
|
ref: l,
|
|
1558
1558
|
class: x(i.class),
|
|
1559
|
-
"is-opened":
|
|
1559
|
+
"is-opened": o(t).isOpened,
|
|
1560
1560
|
theme: e.theme,
|
|
1561
1561
|
"hovered-index": u.value,
|
|
1562
1562
|
onHoveredIndexChange: d,
|
|
1563
1563
|
onToggle: h,
|
|
1564
1564
|
onSelect: y
|
|
1565
1565
|
}, {
|
|
1566
|
-
default:
|
|
1566
|
+
default: O(() => [
|
|
1567
1567
|
I(a.$slots, "default")
|
|
1568
1568
|
]),
|
|
1569
1569
|
_: 3
|
|
1570
1570
|
}, 8, ["class", "is-opened", "theme", "hovered-index"])
|
|
1571
|
-
], 8, ["to"])) : (p(),
|
|
1571
|
+
], 8, ["to"])) : (p(), M(Ke, {
|
|
1572
1572
|
key: 1,
|
|
1573
1573
|
ref_key: "listRef",
|
|
1574
1574
|
ref: l,
|
|
1575
1575
|
class: x(i.class),
|
|
1576
|
-
"is-opened":
|
|
1576
|
+
"is-opened": o(t).isOpened,
|
|
1577
1577
|
theme: e.theme,
|
|
1578
1578
|
"hovered-index": u.value,
|
|
1579
1579
|
onHoveredIndexChange: d,
|
|
1580
1580
|
onToggle: h,
|
|
1581
1581
|
onSelect: y
|
|
1582
1582
|
}, {
|
|
1583
|
-
default:
|
|
1583
|
+
default: O(() => [
|
|
1584
1584
|
I(a.$slots, "default")
|
|
1585
1585
|
]),
|
|
1586
1586
|
_: 3
|
|
1587
1587
|
}, 8, ["class", "is-opened", "theme", "hovered-index"]));
|
|
1588
1588
|
}
|
|
1589
|
-
}),
|
|
1589
|
+
}), co = "Select.Value", Bs = /* @__PURE__ */ g({
|
|
1590
1590
|
__name: "Value",
|
|
1591
1591
|
props: {
|
|
1592
1592
|
placeholder: { default: "" },
|
|
1593
1593
|
class: { default: "" },
|
|
1594
1594
|
name: {}
|
|
1595
1595
|
},
|
|
1596
|
-
setup(e, { expose:
|
|
1597
|
-
const i = e, t =
|
|
1598
|
-
return
|
|
1596
|
+
setup(e, { expose: r }) {
|
|
1597
|
+
const i = e, t = ke(co), l = b(() => !t.value), n = k(null);
|
|
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(),
|
|
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,
|
|
1607
1607
|
class: x(i.class)
|
|
1608
1608
|
}, {
|
|
1609
|
-
default:
|
|
1609
|
+
default: O(() => {
|
|
1610
1610
|
var d;
|
|
1611
1611
|
return [
|
|
1612
|
-
L(D(l.value ? e.placeholder : (d =
|
|
1612
|
+
L(D(l.value ? e.placeholder : (d = o(t).value) == null ? void 0 : d.option), 1)
|
|
1613
1613
|
];
|
|
1614
1614
|
}),
|
|
1615
1615
|
_: 1
|
|
1616
1616
|
}, 8, ["class"])),
|
|
1617
|
-
|
|
1617
|
+
z(fe, {
|
|
1618
1618
|
name: e.name,
|
|
1619
1619
|
type: "hidden",
|
|
1620
|
-
value: (u =
|
|
1620
|
+
value: (u = o(t).value) == null ? void 0 : u.value
|
|
1621
1621
|
}, null, 8, ["name", "value"])
|
|
1622
1622
|
], 64);
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
|
-
}), Ct = "MultiSelect", [
|
|
1626
|
-
multiselect:
|
|
1627
|
-
opened:
|
|
1628
|
-
},
|
|
1625
|
+
}), Ct = "MultiSelect", [uo, Z] = F(Ct), mo = "MultiSelect-module__multiselect___93yRK", po = "MultiSelect-module__opened___thrIy", We = {
|
|
1626
|
+
multiselect: mo,
|
|
1627
|
+
opened: po
|
|
1628
|
+
}, ho = g({
|
|
1629
1629
|
name: Ct
|
|
1630
1630
|
}), Vs = /* @__PURE__ */ g({
|
|
1631
|
-
...
|
|
1631
|
+
...ho,
|
|
1632
1632
|
props: {
|
|
1633
1633
|
theme: {},
|
|
1634
1634
|
mode: { default: "multi" },
|
|
@@ -1642,49 +1642,49 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1642
1642
|
isDefaultOpen: { type: Boolean }
|
|
1643
1643
|
},
|
|
1644
1644
|
emits: ["change", "openChange"],
|
|
1645
|
-
setup(e, { expose:
|
|
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 =
|
|
1648
|
+
), h = b(() => t.value !== void 0), y = dt(), f = b(() => {
|
|
1649
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
|
-
}), a =
|
|
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
|
-
return
|
|
1656
|
-
}),
|
|
1655
|
+
return _.value.filter((w) => C.has(w.value));
|
|
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);
|
|
1664
|
-
const
|
|
1665
|
-
l("change",
|
|
1664
|
+
const E = _.value.filter((B) => w.has(B.value));
|
|
1665
|
+
l("change", E);
|
|
1666
1666
|
}
|
|
1667
1667
|
}, R = (C) => {
|
|
1668
|
-
const w =
|
|
1668
|
+
const w = _.value.filter((N) => N.group === C);
|
|
1669
1669
|
if (w.length === 0) return;
|
|
1670
|
-
const
|
|
1671
|
-
|
|
1672
|
-
const H =
|
|
1670
|
+
const E = w.every((N) => a.value.has(N.value)), B = new Set(a.value);
|
|
1671
|
+
E ? w.forEach((N) => B.delete(N.value)) : w.forEach((N) => B.add(N.value)), h.value || (d.value = B);
|
|
1672
|
+
const H = _.value.filter((N) => B.has(N.value));
|
|
1673
1673
|
l("change", H);
|
|
1674
1674
|
}, Ne = () => {
|
|
1675
|
-
const C =
|
|
1676
|
-
C ||
|
|
1677
|
-
const
|
|
1678
|
-
l("change",
|
|
1679
|
-
},
|
|
1680
|
-
const w =
|
|
1681
|
-
return w.length > 0 && w.every((
|
|
1682
|
-
},
|
|
1683
|
-
const w =
|
|
1684
|
-
return
|
|
1685
|
-
}, Lt = () =>
|
|
1686
|
-
const C =
|
|
1687
|
-
return C > 0 && C <
|
|
1675
|
+
const C = _.value.length > 0 && _.value.every((B) => a.value.has(B.value)), w = /* @__PURE__ */ new Set();
|
|
1676
|
+
C || _.value.forEach((B) => w.add(B.value)), h.value || (d.value = w);
|
|
1677
|
+
const E = _.value.filter((B) => w.has(B.value));
|
|
1678
|
+
l("change", E);
|
|
1679
|
+
}, ne = (C) => _.value.filter((w) => w.group === C), Et = (C) => {
|
|
1680
|
+
const w = ne(C);
|
|
1681
|
+
return w.length > 0 && w.every((E) => a.value.has(E.value));
|
|
1682
|
+
}, Ot = (C) => {
|
|
1683
|
+
const w = ne(C), E = w.filter((B) => a.value.has(B.value)).length;
|
|
1684
|
+
return E > 0 && E < w.length;
|
|
1685
|
+
}, Lt = () => _.value.length > 0 && _.value.every((C) => a.value.has(C.value)), Pt = () => {
|
|
1686
|
+
const C = _.value.filter((w) => a.value.has(w.value)).length;
|
|
1687
|
+
return C > 0 && C < _.value.length;
|
|
1688
1688
|
}, Gt = (C) => {
|
|
1689
1689
|
c.value = C;
|
|
1690
1690
|
}, Nt = (C) => {
|
|
@@ -1694,15 +1694,15 @@ 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,
|
|
1701
1701
|
(C) => {
|
|
1702
1702
|
if (!C) return;
|
|
1703
|
-
const w = new Set(C.map((H) => H.value)),
|
|
1703
|
+
const w = new Set(C.map((H) => H.value)), E = a.value, B = [...E].filter((H) => !w.has(H));
|
|
1704
1704
|
if (B.length > 0) {
|
|
1705
|
-
const H = new Set(
|
|
1705
|
+
const H = new Set(E);
|
|
1706
1706
|
B.forEach((Ce) => H.delete(Ce)), h.value || (d.value = H);
|
|
1707
1707
|
const N = C.filter((Ce) => H.has(Ce.value));
|
|
1708
1708
|
l("change", N);
|
|
@@ -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,29 +1738,29 @@ 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:
|
|
1750
|
-
isGroupAllSelected:
|
|
1751
|
-
isGroupPartiallySelected:
|
|
1749
|
+
getGroupItems: ne,
|
|
1750
|
+
isGroupAllSelected: Et,
|
|
1751
|
+
isGroupPartiallySelected: Ot,
|
|
1752
1752
|
isAllSelected: Lt,
|
|
1753
1753
|
isPartiallySelected: Pt
|
|
1754
1754
|
});
|
|
1755
|
-
return
|
|
1755
|
+
return uo(Yt), r({
|
|
1756
1756
|
multiSelectRef: n
|
|
1757
1757
|
}), (C, w) => (p(), v("div", $(C.$attrs, {
|
|
1758
1758
|
ref_key: "multiSelectRef",
|
|
1759
1759
|
ref: n,
|
|
1760
1760
|
class: [
|
|
1761
|
-
|
|
1761
|
+
o(We).multiselect,
|
|
1762
1762
|
{
|
|
1763
|
-
[
|
|
1763
|
+
[o(We).opened]: m.value
|
|
1764
1764
|
}
|
|
1765
1765
|
],
|
|
1766
1766
|
style: e.theme
|
|
@@ -1768,186 +1768,17 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1768
1768
|
I(C.$slots, "default")
|
|
1769
1769
|
], 16));
|
|
1770
1770
|
}
|
|
1771
|
-
}),
|
|
1771
|
+
}), Ms = {
|
|
1772
1772
|
"--crm-ui-kit-multiselect-z-index": "auto",
|
|
1773
1773
|
"--crm-ui-kit-multiselect-opened-z-index": "60"
|
|
1774
|
-
},
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
};
|
|
1783
|
-
return P(
|
|
1784
|
-
() => i.isOpened,
|
|
1785
|
-
(n, s) => {
|
|
1786
|
-
var c, u;
|
|
1787
|
-
s && !n && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
|
|
1788
|
-
}
|
|
1789
|
-
), o({
|
|
1790
|
-
buttonRef: t
|
|
1791
|
-
}), (n, s) => (p(), E(kt, $({
|
|
1792
|
-
ref_key: "buttonRef",
|
|
1793
|
-
ref: t
|
|
1794
|
-
}, n.$attrs, {
|
|
1795
|
-
theme: e.theme,
|
|
1796
|
-
"is-disabled": r(i).isDisabled,
|
|
1797
|
-
"is-invalid": r(i).isInvalid,
|
|
1798
|
-
onToggle: l
|
|
1799
|
-
}), {
|
|
1800
|
-
default: z(() => [
|
|
1801
|
-
I(n.$slots, "default")
|
|
1802
|
-
]),
|
|
1803
|
-
_: 3
|
|
1804
|
-
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
1805
|
-
}
|
|
1806
|
-
}), br = "MultiSelectList-module__list___lKhqs", fr = "MultiSelectList-module__empty___4vLBH", ae = {
|
|
1807
|
-
list: br,
|
|
1808
|
-
empty: fr
|
|
1809
|
-
}, vr = ["aria-multiselectable"], kr = ["aria-multiselectable"], xr = "MultiSelect.List", Os = /* @__PURE__ */ g({
|
|
1810
|
-
__name: "MultiSelectList",
|
|
1811
|
-
props: {
|
|
1812
|
-
theme: {},
|
|
1813
|
-
class: {},
|
|
1814
|
-
container: {},
|
|
1815
|
-
emptyText: { default: "Нет элементов" }
|
|
1816
|
-
},
|
|
1817
|
-
setup(e, { expose: o }) {
|
|
1818
|
-
const i = e, t = W(xr), l = k(null), n = oe();
|
|
1819
|
-
function s(a) {
|
|
1820
|
-
var b;
|
|
1821
|
-
const m = [];
|
|
1822
|
-
for (const S of a)
|
|
1823
|
-
(b = S.props) != null && b.item && m.push(S.props.item), Array.isArray(S.children) && m.push(...s(S.children));
|
|
1824
|
-
return m;
|
|
1825
|
-
}
|
|
1826
|
-
const c = _(() => {
|
|
1827
|
-
if (!n.default) return [];
|
|
1828
|
-
const a = n.default();
|
|
1829
|
-
return s(a);
|
|
1830
|
-
}), u = _(() => c.value.length), d = _(() => {
|
|
1831
|
-
const a = {};
|
|
1832
|
-
return c.value.forEach((m, b) => {
|
|
1833
|
-
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = b);
|
|
1834
|
-
}), a;
|
|
1835
|
-
}), h = k(-1), y = _(() => {
|
|
1836
|
-
const a = t.hoveredItemValue;
|
|
1837
|
-
return a === null ? -1 : d.value[String(a)] ?? -1;
|
|
1838
|
-
});
|
|
1839
|
-
P(
|
|
1840
|
-
() => t.isOpened,
|
|
1841
|
-
(a) => {
|
|
1842
|
-
a && (h.value = y.value);
|
|
1843
|
-
}
|
|
1844
|
-
);
|
|
1845
|
-
const f = (a) => {
|
|
1846
|
-
const m = u.value;
|
|
1847
|
-
let b = h.value;
|
|
1848
|
-
switch (a.code) {
|
|
1849
|
-
case "ArrowDown":
|
|
1850
|
-
if (a.preventDefault(), b < m - 1) {
|
|
1851
|
-
b++, h.value = b;
|
|
1852
|
-
const S = c.value[b];
|
|
1853
|
-
S && t.onHoveredItemChange(S.value);
|
|
1854
|
-
}
|
|
1855
|
-
break;
|
|
1856
|
-
case "ArrowUp":
|
|
1857
|
-
if (a.preventDefault(), b > 0) {
|
|
1858
|
-
b--, h.value = b;
|
|
1859
|
-
const S = c.value[b];
|
|
1860
|
-
S && t.onHoveredItemChange(S.value);
|
|
1861
|
-
}
|
|
1862
|
-
break;
|
|
1863
|
-
case "Enter":
|
|
1864
|
-
case "Space":
|
|
1865
|
-
if (a.preventDefault(), b >= 0 && b < m) {
|
|
1866
|
-
const S = c.value[b];
|
|
1867
|
-
S && t.onToggleItem(S);
|
|
1868
|
-
}
|
|
1869
|
-
break;
|
|
1870
|
-
case "Escape":
|
|
1871
|
-
a.preventDefault(), t.onOpen(!1);
|
|
1872
|
-
break;
|
|
1873
|
-
}
|
|
1874
|
-
};
|
|
1875
|
-
return gt({
|
|
1876
|
-
ref: l,
|
|
1877
|
-
handler: () => {
|
|
1878
|
-
t.isOpened && t.onOpen(!1);
|
|
1879
|
-
}
|
|
1880
|
-
}), P(
|
|
1881
|
-
() => t.isOpened,
|
|
1882
|
-
(a) => {
|
|
1883
|
-
a && setTimeout(() => {
|
|
1884
|
-
var m;
|
|
1885
|
-
(m = l.value) == null || m.focus();
|
|
1886
|
-
}, 0);
|
|
1887
|
-
}
|
|
1888
|
-
), o({
|
|
1889
|
-
listRef: l,
|
|
1890
|
-
items: c,
|
|
1891
|
-
itemsMap: d
|
|
1892
|
-
}), (a, m) => e.container ? (p(), E(Ae, {
|
|
1893
|
-
key: 0,
|
|
1894
|
-
to: e.container
|
|
1895
|
-
}, [
|
|
1896
|
-
r(t).isOpened ? (p(), v("ul", $({
|
|
1897
|
-
key: 0,
|
|
1898
|
-
ref_key: "listRef",
|
|
1899
|
-
ref: l
|
|
1900
|
-
}, a.$attrs, {
|
|
1901
|
-
tabindex: "0",
|
|
1902
|
-
role: "listbox",
|
|
1903
|
-
"aria-multiselectable": r(t).mode === "multi" ? "true" : void 0,
|
|
1904
|
-
class: [
|
|
1905
|
-
"custom-scroll",
|
|
1906
|
-
r(ae).list,
|
|
1907
|
-
i.class
|
|
1908
|
-
],
|
|
1909
|
-
style: e.theme,
|
|
1910
|
-
onKeydown: f
|
|
1911
|
-
}), [
|
|
1912
|
-
I(a.$slots, "default"),
|
|
1913
|
-
u.value === 0 ? (p(), v("li", {
|
|
1914
|
-
key: 0,
|
|
1915
|
-
class: x(r(ae).empty)
|
|
1916
|
-
}, D(e.emptyText), 3)) : A("", !0)
|
|
1917
|
-
], 16, vr)) : A("", !0)
|
|
1918
|
-
], 8, ["to"])) : (p(), v(me, { key: 1 }, [
|
|
1919
|
-
r(t).isOpened ? (p(), v("ul", $({
|
|
1920
|
-
key: 0,
|
|
1921
|
-
ref_key: "listRef",
|
|
1922
|
-
ref: l
|
|
1923
|
-
}, a.$attrs, {
|
|
1924
|
-
tabindex: "0",
|
|
1925
|
-
role: "listbox",
|
|
1926
|
-
"aria-multiselectable": r(t).mode === "multi" ? "true" : void 0,
|
|
1927
|
-
class: [
|
|
1928
|
-
"custom-scroll",
|
|
1929
|
-
r(ae).list,
|
|
1930
|
-
i.class
|
|
1931
|
-
],
|
|
1932
|
-
style: e.theme,
|
|
1933
|
-
onKeydown: f
|
|
1934
|
-
}), [
|
|
1935
|
-
I(a.$slots, "default"),
|
|
1936
|
-
u.value === 0 ? (p(), v("li", {
|
|
1937
|
-
key: 0,
|
|
1938
|
-
class: x(r(ae).empty)
|
|
1939
|
-
}, D(e.emptyText), 3)) : A("", !0)
|
|
1940
|
-
], 16, kr)) : A("", !0)
|
|
1941
|
-
], 64));
|
|
1942
|
-
}
|
|
1943
|
-
}), yr = () => "ontouchstart" in window, gr = "Checkbox-module__wrapper___rznMS", Cr = "Checkbox-module__input___-039s", Ir = "Checkbox-module__checkbox___D0D4S", $r = "Checkbox-module__indeterminate___rX-dK", wr = "Checkbox-module__invalid___B4jAs", Sr = "Checkbox-module__touchable___glE4H", Q = {
|
|
1944
|
-
wrapper: gr,
|
|
1945
|
-
input: Cr,
|
|
1946
|
-
checkbox: Ir,
|
|
1947
|
-
indeterminate: $r,
|
|
1948
|
-
invalid: wr,
|
|
1949
|
-
touchable: Sr
|
|
1950
|
-
}, ke = /* @__PURE__ */ g({
|
|
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
|
+
wrapper: _o,
|
|
1776
|
+
input: fo,
|
|
1777
|
+
checkbox: vo,
|
|
1778
|
+
indeterminate: ko,
|
|
1779
|
+
invalid: xo,
|
|
1780
|
+
touchable: yo
|
|
1781
|
+
}, xe = /* @__PURE__ */ g({
|
|
1951
1782
|
inheritAttrs: !1,
|
|
1952
1783
|
__name: "Checkbox",
|
|
1953
1784
|
props: {
|
|
@@ -1962,26 +1793,26 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1962
1793
|
isInvalid: { type: Boolean, default: !1 },
|
|
1963
1794
|
theme: {}
|
|
1964
1795
|
},
|
|
1965
|
-
setup(e, { expose:
|
|
1796
|
+
setup(e, { expose: r }) {
|
|
1966
1797
|
const i = e, t = k(null), l = k(!1);
|
|
1967
|
-
return
|
|
1968
|
-
l.value =
|
|
1969
|
-
}),
|
|
1798
|
+
return ie(() => {
|
|
1799
|
+
l.value = bo();
|
|
1800
|
+
}), r({
|
|
1970
1801
|
inputRef: t
|
|
1971
1802
|
}), (n, s) => (p(), v("div", {
|
|
1972
1803
|
class: x([
|
|
1973
|
-
|
|
1804
|
+
o(ee).wrapper,
|
|
1974
1805
|
{
|
|
1975
|
-
[
|
|
1806
|
+
[o(ee).touchable]: l.value
|
|
1976
1807
|
}
|
|
1977
1808
|
]),
|
|
1978
1809
|
style: V(e.theme)
|
|
1979
1810
|
}, [
|
|
1980
|
-
|
|
1811
|
+
z(fe, $(n.$attrs, {
|
|
1981
1812
|
id: i.id,
|
|
1982
1813
|
ref_key: "inputRef",
|
|
1983
1814
|
ref: t,
|
|
1984
|
-
class:
|
|
1815
|
+
class: o(ee).input,
|
|
1985
1816
|
type: "checkbox",
|
|
1986
1817
|
"is-disabled": i.isDisabled,
|
|
1987
1818
|
"is-readonly": i.isReadonly,
|
|
@@ -1992,10 +1823,10 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
1992
1823
|
}), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
|
|
1993
1824
|
T("span", {
|
|
1994
1825
|
class: x([
|
|
1995
|
-
|
|
1826
|
+
o(ee).checkbox,
|
|
1996
1827
|
{
|
|
1997
|
-
[
|
|
1998
|
-
[
|
|
1828
|
+
[o(ee).indeterminate]: e.checkedStyle === "indeterminate",
|
|
1829
|
+
[o(ee).invalid]: e.isInvalid
|
|
1999
1830
|
}
|
|
2000
1831
|
])
|
|
2001
1832
|
}, null, 2)
|
|
@@ -2006,30 +1837,30 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2006
1837
|
props: {
|
|
2007
1838
|
theme: {}
|
|
2008
1839
|
},
|
|
2009
|
-
setup(e, { expose:
|
|
2010
|
-
const i = oe(), t = k(null), l =
|
|
2011
|
-
return
|
|
1840
|
+
setup(e, { expose: r }) {
|
|
1841
|
+
const i = oe(), t = k(null), l = b(() => i.default ? i.default() : []);
|
|
1842
|
+
return r({
|
|
2012
1843
|
groupRef: t
|
|
2013
1844
|
}), (n, s) => (p(), v("div", {
|
|
2014
1845
|
ref_key: "groupRef",
|
|
2015
1846
|
ref: t
|
|
2016
1847
|
}, [
|
|
2017
|
-
(p(!0), v(
|
|
1848
|
+
(p(!0), v(pe, null, Ut(l.value, (c, u) => (p(), v("div", {
|
|
2018
1849
|
key: u,
|
|
2019
|
-
class: x([
|
|
1850
|
+
class: x([o(X).wrapper]),
|
|
2020
1851
|
style: V(e.theme)
|
|
2021
1852
|
}, [
|
|
2022
|
-
(p(),
|
|
1853
|
+
(p(), M(Re(c)))
|
|
2023
1854
|
], 6))), 128))
|
|
2024
1855
|
], 512));
|
|
2025
1856
|
}
|
|
2026
|
-
}),
|
|
1857
|
+
}), Es = {
|
|
2027
1858
|
"--crm-ui-kit-label-group-margin-bottom": "16px"
|
|
2028
|
-
},
|
|
1859
|
+
}, go = {
|
|
2029
1860
|
"--crm-ui-kit-label-spacing": "4px",
|
|
2030
1861
|
"--crm-ui-kit-label-description-spacing": "4px",
|
|
2031
1862
|
"--crm-ui-kit-label-text-width": "auto"
|
|
2032
|
-
},
|
|
1863
|
+
}, ye = {
|
|
2033
1864
|
"--crm-ui-kit-checkbox-z-index": "3",
|
|
2034
1865
|
"--crm-ui-kit-checkbox-border-width": "1px",
|
|
2035
1866
|
"--crm-ui-kit-checkbox-border-radius": "3px",
|
|
@@ -2045,40 +1876,40 @@ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdW
|
|
|
2045
1876
|
"--crm-ui-kit-checkbox-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
2046
1877
|
"--crm-ui-kit-checkbox-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
2047
1878
|
}, Pe = {
|
|
2048
|
-
...
|
|
1879
|
+
...ye,
|
|
2049
1880
|
"--crm-ui-kit-checkbox-size": "20px",
|
|
2050
1881
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
2051
|
-
},
|
|
2052
|
-
...
|
|
1882
|
+
}, Os = {
|
|
1883
|
+
...ye,
|
|
2053
1884
|
"--crm-ui-kit-checkbox-size": "16px",
|
|
2054
1885
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
2055
|
-
},
|
|
2056
|
-
...
|
|
1886
|
+
}, Ls = {
|
|
1887
|
+
...ye,
|
|
2057
1888
|
"--crm-ui-kit-checkbox-size": "20px",
|
|
2058
1889
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
2059
|
-
},
|
|
2060
|
-
...
|
|
1890
|
+
}, Ps = {
|
|
1891
|
+
...ye,
|
|
2061
1892
|
"--crm-ui-kit-checkbox-size": "16px",
|
|
2062
1893
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
item:
|
|
2069
|
-
selected:
|
|
2070
|
-
hovered:
|
|
2071
|
-
},
|
|
1894
|
+
}, Gs = {
|
|
1895
|
+
...go,
|
|
1896
|
+
"--crm-ui-kit-label-description-spacing": "8px",
|
|
1897
|
+
"--crm-ui-kit-label-spacing": "8px"
|
|
1898
|
+
}, Co = "Item-module__item___KOHVr", Io = "Item-module__selected___rWQeZ", $o = "Item-module__hovered___UY-ih", de = {
|
|
1899
|
+
item: Co,
|
|
1900
|
+
selected: Io,
|
|
1901
|
+
hovered: $o
|
|
1902
|
+
}, wo = ["aria-selected", "title"], So = "MultiSelect.Item", Ns = /* @__PURE__ */ g({
|
|
2072
1903
|
__name: "Item",
|
|
2073
1904
|
props: {
|
|
2074
1905
|
item: {},
|
|
2075
1906
|
theme: {}
|
|
2076
1907
|
},
|
|
2077
|
-
setup(e, { expose:
|
|
2078
|
-
const i = e, t =
|
|
1908
|
+
setup(e, { expose: r }) {
|
|
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) => {
|
|
2079
1910
|
h.preventDefault(), t.onToggleItem(i.item);
|
|
2080
1911
|
};
|
|
2081
|
-
return
|
|
1912
|
+
return r({
|
|
2082
1913
|
itemRef: l
|
|
2083
1914
|
}), (h, y) => s.value ? (p(), v("li", $({
|
|
2084
1915
|
key: 0,
|
|
@@ -2088,42 +1919,50 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2088
1919
|
role: "option",
|
|
2089
1920
|
"aria-selected": c.value,
|
|
2090
1921
|
class: [
|
|
2091
|
-
|
|
1922
|
+
o(de).item,
|
|
2092
1923
|
{
|
|
2093
|
-
[
|
|
2094
|
-
[
|
|
1924
|
+
[o(de).selected]: c.value,
|
|
1925
|
+
[o(de).hovered]: u.value
|
|
2095
1926
|
}
|
|
2096
1927
|
],
|
|
2097
1928
|
style: e.theme,
|
|
2098
1929
|
title: e.item.option,
|
|
2099
1930
|
onClick: d
|
|
2100
1931
|
}), [
|
|
2101
|
-
|
|
1932
|
+
o(t).mode === "multi" ? (p(), M(xe, {
|
|
2102
1933
|
key: 0,
|
|
2103
|
-
theme:
|
|
1934
|
+
theme: o(n),
|
|
2104
1935
|
"is-checked": c.value,
|
|
2105
1936
|
tabindex: -1,
|
|
2106
|
-
onClick: y[0] || (y[0] =
|
|
1937
|
+
onClick: y[0] || (y[0] = be(() => {
|
|
2107
1938
|
}, ["stop"]))
|
|
2108
1939
|
}, null, 8, ["theme", "is-checked"])) : A("", !0),
|
|
2109
1940
|
I(h.$slots, "default", {}, () => [
|
|
2110
|
-
|
|
2111
|
-
default:
|
|
1941
|
+
z(le, null, {
|
|
1942
|
+
default: O(() => [
|
|
2112
1943
|
L(D(e.item.option), 1)
|
|
2113
1944
|
]),
|
|
2114
1945
|
_: 1
|
|
2115
1946
|
})
|
|
2116
1947
|
])
|
|
2117
|
-
], 16,
|
|
1948
|
+
], 16, wo)) : A("", !0);
|
|
2118
1949
|
}
|
|
2119
|
-
}),
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
1950
|
+
}), Fs = {
|
|
1951
|
+
"--crm-ui-kit-multiselect-item-padding": "7px 6px 7px 12px",
|
|
1952
|
+
"--crm-ui-kit-multiselect-item-font-size": "var(--crm-ui-kit-base-font-size)",
|
|
1953
|
+
"--crm-ui-kit-multiselect-item-font-weight": "400",
|
|
1954
|
+
"--crm-ui-kit-multiselect-item-selected-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
1955
|
+
"--crm-ui-kit-multiselect-item-hovered-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
1956
|
+
"--crm-ui-kit-multiselect-item-hover-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
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", te = {
|
|
1959
|
+
group: To,
|
|
1960
|
+
header: Ao,
|
|
1961
|
+
headerSelectable: Ro,
|
|
1962
|
+
label: Do,
|
|
1963
|
+
children: Bo,
|
|
1964
|
+
empty: Vo
|
|
1965
|
+
}, Mo = ["aria-label"], zo = ["title"], Eo = "MultiSelect.Group", Hs = /* @__PURE__ */ g({
|
|
2127
1966
|
__name: "Group",
|
|
2128
1967
|
props: {
|
|
2129
1968
|
group: {},
|
|
@@ -2131,212 +1970,107 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2131
1970
|
emptyText: { default: "Нет элементов" }
|
|
2132
1971
|
},
|
|
2133
1972
|
setup(e) {
|
|
2134
|
-
const
|
|
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(
|
|
2135
1974
|
() => t.isGroupAllSelected(i.group.id)
|
|
2136
|
-
), d =
|
|
1975
|
+
), d = b(
|
|
2137
1976
|
() => t.isGroupPartiallySelected(i.group.id)
|
|
2138
|
-
), h =
|
|
1977
|
+
), h = b(
|
|
2139
1978
|
() => u.value || d.value
|
|
2140
|
-
), y =
|
|
1979
|
+
), y = b(
|
|
2141
1980
|
() => u.value ? "mark" : "indeterminate"
|
|
2142
|
-
), f = (
|
|
2143
|
-
const
|
|
2144
|
-
return i.group.color && f(i.group.color) && (
|
|
1981
|
+
), f = (_) => r.test(_.trim()), a = b(() => {
|
|
1982
|
+
const _ = { ...i.theme };
|
|
1983
|
+
return i.group.color && f(i.group.color) && (_.backgroundColor = i.group.color), _;
|
|
2145
1984
|
}), m = () => {
|
|
2146
1985
|
t.groupSelectable && t.onToggleGroup(i.group.id);
|
|
2147
1986
|
};
|
|
2148
|
-
return (
|
|
1987
|
+
return (_, S) => l.value ? (p(), v("li", {
|
|
2149
1988
|
key: 0,
|
|
2150
|
-
class: x(
|
|
1989
|
+
class: x(o(te).group),
|
|
2151
1990
|
role: "group",
|
|
2152
1991
|
"aria-label": e.group.label
|
|
2153
1992
|
}, [
|
|
2154
1993
|
T("div", {
|
|
2155
1994
|
class: x([
|
|
2156
|
-
|
|
1995
|
+
o(te).header,
|
|
2157
1996
|
{
|
|
2158
|
-
[
|
|
1997
|
+
[o(te).headerSelectable]: o(t).groupSelectable
|
|
2159
1998
|
}
|
|
2160
1999
|
]),
|
|
2161
2000
|
style: V(a.value),
|
|
2162
2001
|
title: e.group.label,
|
|
2163
2002
|
onClick: m
|
|
2164
2003
|
}, [
|
|
2165
|
-
|
|
2004
|
+
o(t).groupSelectable ? (p(), M(xe, {
|
|
2166
2005
|
key: 0,
|
|
2167
|
-
theme:
|
|
2006
|
+
theme: o(n),
|
|
2168
2007
|
"is-checked": h.value,
|
|
2169
2008
|
"checked-style": y.value,
|
|
2170
2009
|
tabindex: -1,
|
|
2171
|
-
onClick: S[0] || (S[0] =
|
|
2010
|
+
onClick: S[0] || (S[0] = be(() => {
|
|
2172
2011
|
}, ["stop"]))
|
|
2173
2012
|
}, null, 8, ["theme", "is-checked", "checked-style"])) : A("", !0),
|
|
2174
2013
|
T("span", {
|
|
2175
|
-
class: x(
|
|
2014
|
+
class: x(o(te).label)
|
|
2176
2015
|
}, D(e.group.label), 3)
|
|
2177
|
-
], 14,
|
|
2016
|
+
], 14, zo),
|
|
2178
2017
|
T("ul", {
|
|
2179
|
-
class: x(
|
|
2018
|
+
class: x(o(te).children)
|
|
2180
2019
|
}, [
|
|
2181
|
-
I(
|
|
2020
|
+
I(_.$slots, "default"),
|
|
2182
2021
|
c.value ? (p(), v("li", {
|
|
2183
2022
|
key: 0,
|
|
2184
|
-
class: x(
|
|
2023
|
+
class: x(o(te).empty)
|
|
2185
2024
|
}, D(e.emptyText), 3)) : A("", !0)
|
|
2186
2025
|
], 2)
|
|
2187
|
-
], 10,
|
|
2188
|
-
}
|
|
2189
|
-
}), Hr = "MultiSelect.All", Ys = /* @__PURE__ */ g({
|
|
2190
|
-
__name: "All",
|
|
2191
|
-
props: {
|
|
2192
|
-
theme: {},
|
|
2193
|
-
label: { default: "Выбрать всё" }
|
|
2194
|
-
},
|
|
2195
|
-
setup(e) {
|
|
2196
|
-
const o = W(Hr), i = Pe, t = _(() => o.isAllSelected()), l = _(() => o.isPartiallySelected()), n = _(
|
|
2197
|
-
() => t.value || l.value
|
|
2198
|
-
), s = _(
|
|
2199
|
-
() => t.value ? "mark" : "indeterminate"
|
|
2200
|
-
), c = (u) => {
|
|
2201
|
-
u.preventDefault(), o.onToggleAll();
|
|
2202
|
-
};
|
|
2203
|
-
return (u, d) => r(o).searchQuery ? A("", !0) : (p(), v("li", {
|
|
2204
|
-
key: 0,
|
|
2205
|
-
class: x(r(ue).item),
|
|
2206
|
-
style: V(e.theme),
|
|
2207
|
-
onClick: c
|
|
2208
|
-
}, [
|
|
2209
|
-
M(ke, {
|
|
2210
|
-
theme: r(i),
|
|
2211
|
-
"is-checked": n.value,
|
|
2212
|
-
"checked-style": s.value,
|
|
2213
|
-
tabindex: -1,
|
|
2214
|
-
onClick: d[0] || (d[0] = he(() => {
|
|
2215
|
-
}, ["stop"]))
|
|
2216
|
-
}, null, 8, ["theme", "is-checked", "checked-style"]),
|
|
2217
|
-
M(re, null, {
|
|
2218
|
-
default: z(() => [
|
|
2219
|
-
L(D(e.label), 1)
|
|
2220
|
-
]),
|
|
2221
|
-
_: 1
|
|
2222
|
-
})
|
|
2223
|
-
], 6));
|
|
2224
|
-
}
|
|
2225
|
-
}), Yr = "Value-module__value___Aswvw", qr = "Value-module__text___-f1lX", Ur = {
|
|
2226
|
-
value: Yr,
|
|
2227
|
-
text: qr
|
|
2228
|
-
}, jr = "MultiSelect.Value", qs = /* @__PURE__ */ g({
|
|
2229
|
-
__name: "Value",
|
|
2230
|
-
props: {
|
|
2231
|
-
placeholder: { default: "" },
|
|
2232
|
-
displayMode: { default: "count" },
|
|
2233
|
-
maxDisplayItems: { default: 2 },
|
|
2234
|
-
countTemplate: { default: "{n} выбрано" },
|
|
2235
|
-
class: {}
|
|
2236
|
-
},
|
|
2237
|
-
setup(e, { expose: o }) {
|
|
2238
|
-
const i = e, t = W(jr), l = k(null), n = _(() => {
|
|
2239
|
-
const s = t.selectedItems;
|
|
2240
|
-
if (s.length === 0)
|
|
2241
|
-
return i.placeholder;
|
|
2242
|
-
if (i.displayMode === "count")
|
|
2243
|
-
return i.countTemplate.replace("{n}", String(s.length));
|
|
2244
|
-
const c = s.slice(0, i.maxDisplayItems), u = s.length - c.length, d = c.map((h) => h.option).join(", ");
|
|
2245
|
-
return u > 0 ? `${d} +${u}` : d;
|
|
2246
|
-
});
|
|
2247
|
-
return o({
|
|
2248
|
-
optionRef: l
|
|
2249
|
-
}), (s, c) => s.$slots.default ? I(s.$slots, "default", { key: 0 }) : (p(), E(re, {
|
|
2250
|
-
key: 1,
|
|
2251
|
-
ref_key: "optionRef",
|
|
2252
|
-
ref: l,
|
|
2253
|
-
class: x(r(Ur).text)
|
|
2254
|
-
}, {
|
|
2255
|
-
default: z(() => [
|
|
2256
|
-
L(D(n.value), 1)
|
|
2257
|
-
]),
|
|
2258
|
-
_: 1
|
|
2259
|
-
}, 8, ["class"]));
|
|
2026
|
+
], 10, Mo)) : A("", !0);
|
|
2260
2027
|
}
|
|
2261
|
-
}),
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
setTimeout(() => {
|
|
2279
|
-
var n;
|
|
2280
|
-
return (n = i.value) == null ? void 0 : n.focus();
|
|
2281
|
-
}, 0);
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
), (l, n) => (p(), v("li", {
|
|
2285
|
-
class: x(r(Ze).search),
|
|
2286
|
-
style: V(e.theme)
|
|
2287
|
-
}, [
|
|
2288
|
-
T("input", {
|
|
2289
|
-
ref_key: "inputRef",
|
|
2290
|
-
ref: i,
|
|
2291
|
-
class: x(r(Ze).input),
|
|
2292
|
-
type: "text",
|
|
2293
|
-
placeholder: e.placeholder,
|
|
2294
|
-
value: r(o).searchQuery,
|
|
2295
|
-
onInput: t,
|
|
2296
|
-
onKeydown: n[0] || (n[0] = he(() => {
|
|
2297
|
-
}, ["stop"]))
|
|
2298
|
-
}, null, 42, Zr)
|
|
2299
|
-
], 6));
|
|
2300
|
-
}
|
|
2301
|
-
}), Xr = "Combobox-module__combobox___97Qx9", Qr = "Combobox-module__inputContainer___6t-il", el = "Combobox-module__focused___Ur996", tl = "Combobox-module__invalid___Ur1or", il = "Combobox-module__disabled___2nCcW", ol = "Combobox-module__input___KbcCI", rl = "Combobox-module__arrow___FwmsJ", ll = "Combobox-module__arrowOpen___U6A3h", j = {
|
|
2302
|
-
combobox: Xr,
|
|
2303
|
-
inputContainer: Qr,
|
|
2304
|
-
focused: el,
|
|
2305
|
-
invalid: tl,
|
|
2306
|
-
disabled: il,
|
|
2307
|
-
input: ol,
|
|
2308
|
-
arrow: rl,
|
|
2309
|
-
arrowOpen: ll
|
|
2310
|
-
}, nl = ["placeholder", "value", "disabled", "readonly"], sl = "MultiSelect.Combobox", js = /* @__PURE__ */ g({
|
|
2028
|
+
}), Ys = {
|
|
2029
|
+
"--crm-ui-kit-multiselect-group-padding": "8px 12px",
|
|
2030
|
+
"--crm-ui-kit-multiselect-group-font-size": "13px",
|
|
2031
|
+
"--crm-ui-kit-multiselect-group-font-weight": "700",
|
|
2032
|
+
"--crm-ui-kit-multiselect-group-color": "#363b44",
|
|
2033
|
+
"--crm-ui-kit-multiselect-group-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
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", K = {
|
|
2036
|
+
combobox: Oo,
|
|
2037
|
+
inputContainer: Lo,
|
|
2038
|
+
focused: Po,
|
|
2039
|
+
invalid: Go,
|
|
2040
|
+
disabled: No,
|
|
2041
|
+
input: Fo,
|
|
2042
|
+
arrow: Ho,
|
|
2043
|
+
arrowOpen: Yo
|
|
2044
|
+
}, qo = ["placeholder", "value", "disabled", "readonly"], Uo = "MultiSelect.Combobox", qs = /* @__PURE__ */ g({
|
|
2311
2045
|
__name: "Combobox",
|
|
2312
2046
|
props: {
|
|
2313
2047
|
theme: {},
|
|
2314
2048
|
placeholder: { default: "Поиск..." },
|
|
2315
2049
|
groups: {}
|
|
2316
2050
|
},
|
|
2317
|
-
setup(e, { expose:
|
|
2318
|
-
const i = e, t =
|
|
2051
|
+
setup(e, { expose: r }) {
|
|
2052
|
+
const i = e, t = Z(Uo), l = k(null), n = k(null), s = b(() => {
|
|
2319
2053
|
if (!i.groups) return null;
|
|
2320
2054
|
const f = /* @__PURE__ */ new Map();
|
|
2321
2055
|
for (const a of i.groups)
|
|
2322
2056
|
f.set(a.id, a.label);
|
|
2323
2057
|
return f;
|
|
2324
|
-
}), c =
|
|
2058
|
+
}), c = b(() => {
|
|
2325
2059
|
if (t.isOpened) return "";
|
|
2326
2060
|
const f = t.selectedItems;
|
|
2327
2061
|
if (f.length === 0) return "";
|
|
2328
2062
|
if (f.length === 1) return f[0].option;
|
|
2329
2063
|
if (t.isAllSelected()) return `Все (${f.length})`;
|
|
2330
2064
|
if (s.value && f.every((a) => a.group != null)) {
|
|
2331
|
-
const a = [...new Set(f.map((
|
|
2065
|
+
const a = [...new Set(f.map((_) => _.group))], m = a.filter((_) => t.isGroupAllSelected(_));
|
|
2332
2066
|
if (m.length > 0 && m.length === a.length) {
|
|
2333
2067
|
if (m.length === 1) {
|
|
2334
2068
|
const S = s.value.get(m[0]);
|
|
2335
2069
|
if (S) return `${S} (${f.length})`;
|
|
2336
2070
|
}
|
|
2337
|
-
const
|
|
2338
|
-
if (
|
|
2339
|
-
return m.length === 2 ? `${
|
|
2071
|
+
const _ = s.value.get(m[0]);
|
|
2072
|
+
if (_)
|
|
2073
|
+
return m.length === 2 ? `${_}, ${s.value.get(m[1])}` : `${_} +${m.length - 1}`;
|
|
2340
2074
|
}
|
|
2341
2075
|
}
|
|
2342
2076
|
return `${f[0].option} +${f.length - 1}`;
|
|
@@ -2353,23 +2087,23 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2353
2087
|
f.code === "Escape" && (t.onOpen(!1), (a = l.value) == null || a.blur());
|
|
2354
2088
|
};
|
|
2355
2089
|
return P(() => t.isOpened, (f) => {
|
|
2356
|
-
f &&
|
|
2090
|
+
f && he(() => {
|
|
2357
2091
|
var a;
|
|
2358
2092
|
return (a = l.value) == null ? void 0 : a.focus();
|
|
2359
2093
|
});
|
|
2360
|
-
}),
|
|
2361
|
-
class: x(
|
|
2094
|
+
}), r({ inputRef: l }), (f, a) => (p(), v("div", {
|
|
2095
|
+
class: x(o(K).combobox),
|
|
2362
2096
|
style: V(e.theme)
|
|
2363
2097
|
}, [
|
|
2364
2098
|
T("div", {
|
|
2365
2099
|
ref_key: "containerRef",
|
|
2366
2100
|
ref: n,
|
|
2367
2101
|
class: x([
|
|
2368
|
-
|
|
2102
|
+
o(K).inputContainer,
|
|
2369
2103
|
{
|
|
2370
|
-
[
|
|
2371
|
-
[
|
|
2372
|
-
[
|
|
2104
|
+
[o(K).focused]: o(t).isOpened,
|
|
2105
|
+
[o(K).invalid]: o(t).isInvalid,
|
|
2106
|
+
[o(K).disabled]: o(t).isDisabled
|
|
2373
2107
|
}
|
|
2374
2108
|
]),
|
|
2375
2109
|
onClick: h
|
|
@@ -2377,34 +2111,353 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2377
2111
|
T("input", {
|
|
2378
2112
|
ref_key: "inputRef",
|
|
2379
2113
|
ref: l,
|
|
2380
|
-
class: x(
|
|
2114
|
+
class: x(o(K).input),
|
|
2381
2115
|
type: "text",
|
|
2382
2116
|
placeholder: e.placeholder,
|
|
2383
|
-
value:
|
|
2384
|
-
disabled:
|
|
2385
|
-
readonly: !
|
|
2117
|
+
value: o(t).isOpened ? o(t).searchQuery : c.value,
|
|
2118
|
+
disabled: o(t).isDisabled,
|
|
2119
|
+
readonly: !o(t).isOpened,
|
|
2386
2120
|
onInput: u,
|
|
2387
2121
|
onFocus: d,
|
|
2388
2122
|
onKeydown: y
|
|
2389
|
-
}, null, 42,
|
|
2123
|
+
}, null, 42, qo),
|
|
2390
2124
|
I(f.$slots, "after", {}, () => [
|
|
2391
2125
|
T("span", {
|
|
2392
|
-
class: x([
|
|
2126
|
+
class: x([o(K).arrow, { [o(K).arrowOpen]: o(t).isOpened }])
|
|
2393
2127
|
}, null, 2)
|
|
2394
2128
|
])
|
|
2395
2129
|
], 2)
|
|
2396
2130
|
], 6));
|
|
2397
2131
|
}
|
|
2398
|
-
}),
|
|
2132
|
+
}), Us = {
|
|
2133
|
+
"--crm-ui-kit-multiselect-combobox-width": "100%",
|
|
2134
|
+
"--crm-ui-kit-multiselect-combobox-height": "36px",
|
|
2135
|
+
"--crm-ui-kit-multiselect-combobox-padding": "0 7px 0 9px",
|
|
2136
|
+
"--crm-ui-kit-multiselect-combobox-font-size": "var(--crm-ui-kit-base-font-size)",
|
|
2137
|
+
"--crm-ui-kit-multiselect-combobox-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
2138
|
+
"--crm-ui-kit-multiselect-combobox-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
|
|
2139
|
+
"--crm-ui-kit-multiselect-combobox-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
2140
|
+
"--crm-ui-kit-multiselect-combobox-border": "1px solid var(--crm-ui-kit-palette-border-default)",
|
|
2141
|
+
"--crm-ui-kit-multiselect-combobox-border-radius": "3px",
|
|
2142
|
+
"--crm-ui-kit-multiselect-combobox-hover-border-color": "var(--crm-ui-kit-palette-border-default)",
|
|
2143
|
+
"--crm-ui-kit-multiselect-combobox-focus-border-color": "var(--crm-ui-kit-palette-border-active)",
|
|
2144
|
+
"--crm-ui-kit-multiselect-combobox-error-border-color": "var(--crm-ui-kit-color-error)"
|
|
2145
|
+
}, js = {
|
|
2146
|
+
"--crm-ui-kit-multiselect-combobox-width": "100%",
|
|
2147
|
+
"--crm-ui-kit-multiselect-combobox-height": "24px",
|
|
2148
|
+
"--crm-ui-kit-multiselect-combobox-padding": "0 2px",
|
|
2149
|
+
"--crm-ui-kit-multiselect-combobox-font-size": "var(--crm-ui-kit-base-font-size)",
|
|
2150
|
+
"--crm-ui-kit-multiselect-combobox-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
2151
|
+
"--crm-ui-kit-multiselect-combobox-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
|
|
2152
|
+
"--crm-ui-kit-multiselect-combobox-background-color": "transparent",
|
|
2153
|
+
"--crm-ui-kit-multiselect-combobox-border": "1px solid transparent",
|
|
2154
|
+
"--crm-ui-kit-multiselect-combobox-border-radius": "0",
|
|
2155
|
+
"--crm-ui-kit-multiselect-combobox-hover-border-color": "transparent",
|
|
2156
|
+
"--crm-ui-kit-multiselect-combobox-focus-border-color": "transparent",
|
|
2157
|
+
"--crm-ui-kit-multiselect-combobox-error-border-color": "var(--crm-ui-kit-color-error)"
|
|
2158
|
+
}, jo = "Search-module__search___cGZ5b", Ko = "Search-module__input___HP47K", Ze = {
|
|
2159
|
+
search: jo,
|
|
2160
|
+
input: Ko
|
|
2161
|
+
}, Wo = ["placeholder", "value"], Zo = "MultiSelect.Search", Ks = /* @__PURE__ */ g({
|
|
2162
|
+
__name: "Search",
|
|
2163
|
+
props: {
|
|
2164
|
+
theme: {},
|
|
2165
|
+
placeholder: { default: "Поиск..." }
|
|
2166
|
+
},
|
|
2167
|
+
setup(e) {
|
|
2168
|
+
const r = Z(Zo), i = k(null), t = (l) => {
|
|
2169
|
+
r.onSearchChange(l.target.value);
|
|
2170
|
+
};
|
|
2171
|
+
return P(
|
|
2172
|
+
() => r.isOpened,
|
|
2173
|
+
(l) => {
|
|
2174
|
+
l && he(() => {
|
|
2175
|
+
setTimeout(() => {
|
|
2176
|
+
var n;
|
|
2177
|
+
return (n = i.value) == null ? void 0 : n.focus();
|
|
2178
|
+
}, 0);
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
), (l, n) => (p(), v("li", {
|
|
2182
|
+
class: x(o(Ze).search),
|
|
2183
|
+
style: V(e.theme)
|
|
2184
|
+
}, [
|
|
2185
|
+
T("input", {
|
|
2186
|
+
ref_key: "inputRef",
|
|
2187
|
+
ref: i,
|
|
2188
|
+
class: x(o(Ze).input),
|
|
2189
|
+
type: "text",
|
|
2190
|
+
placeholder: e.placeholder,
|
|
2191
|
+
value: o(r).searchQuery,
|
|
2192
|
+
onInput: t,
|
|
2193
|
+
onKeydown: n[0] || (n[0] = be(() => {
|
|
2194
|
+
}, ["stop"]))
|
|
2195
|
+
}, null, 42, Wo)
|
|
2196
|
+
], 6));
|
|
2197
|
+
}
|
|
2198
|
+
}), Ws = {
|
|
2199
|
+
"--crm-ui-kit-multiselect-search-padding": "4px 8px",
|
|
2200
|
+
"--crm-ui-kit-multiselect-search-input-padding": "6px 4px",
|
|
2201
|
+
"--crm-ui-kit-multiselect-search-font-size": "var(--crm-ui-kit-base-font-size)",
|
|
2202
|
+
"--crm-ui-kit-multiselect-search-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
2203
|
+
"--crm-ui-kit-multiselect-search-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
2204
|
+
"--crm-ui-kit-multiselect-search-border-bottom": "1px solid var(--crm-ui-kit-palette-border-primary)"
|
|
2205
|
+
}, Jo = "MultiSelect.Trigger", Zs = /* @__PURE__ */ g({
|
|
2206
|
+
__name: "Trigger",
|
|
2207
|
+
props: {
|
|
2208
|
+
theme: {}
|
|
2209
|
+
},
|
|
2210
|
+
setup(e, { expose: r }) {
|
|
2211
|
+
const i = Z(Jo), t = k(null), l = () => {
|
|
2212
|
+
i.onOpen(!i.isOpened);
|
|
2213
|
+
};
|
|
2214
|
+
return P(
|
|
2215
|
+
() => i.isOpened,
|
|
2216
|
+
(n, s) => {
|
|
2217
|
+
var c, u;
|
|
2218
|
+
s && !n && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
|
|
2219
|
+
}
|
|
2220
|
+
), r({
|
|
2221
|
+
buttonRef: t
|
|
2222
|
+
}), (n, s) => (p(), M(kt, $({
|
|
2223
|
+
ref_key: "buttonRef",
|
|
2224
|
+
ref: t
|
|
2225
|
+
}, n.$attrs, {
|
|
2226
|
+
theme: e.theme,
|
|
2227
|
+
"is-disabled": o(i).isDisabled,
|
|
2228
|
+
"is-invalid": o(i).isInvalid,
|
|
2229
|
+
onToggle: l
|
|
2230
|
+
}), {
|
|
2231
|
+
default: O(() => [
|
|
2232
|
+
I(n.$slots, "default")
|
|
2233
|
+
]),
|
|
2234
|
+
_: 3
|
|
2235
|
+
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
2236
|
+
}
|
|
2237
|
+
}), Xo = "MultiSelectList-module__list___lKhqs", Qo = "MultiSelectList-module__empty___4vLBH", ce = {
|
|
2238
|
+
list: Xo,
|
|
2239
|
+
empty: Qo
|
|
2240
|
+
}, el = ["aria-multiselectable"], tl = ["aria-multiselectable"], il = "MultiSelect.List", Js = /* @__PURE__ */ g({
|
|
2241
|
+
__name: "MultiSelectList",
|
|
2242
|
+
props: {
|
|
2243
|
+
theme: {},
|
|
2244
|
+
class: {},
|
|
2245
|
+
container: {},
|
|
2246
|
+
emptyText: { default: "Нет элементов" }
|
|
2247
|
+
},
|
|
2248
|
+
setup(e, { expose: r }) {
|
|
2249
|
+
const i = e, t = Z(il), l = k(null), n = oe();
|
|
2250
|
+
function s(a) {
|
|
2251
|
+
var _;
|
|
2252
|
+
const m = [];
|
|
2253
|
+
for (const S of a)
|
|
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
|
+
}
|
|
2260
|
+
return m;
|
|
2261
|
+
}
|
|
2262
|
+
const c = b(() => {
|
|
2263
|
+
if (!n.default) return [];
|
|
2264
|
+
const a = n.default();
|
|
2265
|
+
return s(a);
|
|
2266
|
+
}), u = b(() => c.value.length), d = b(() => {
|
|
2267
|
+
const a = {};
|
|
2268
|
+
return c.value.forEach((m, _) => {
|
|
2269
|
+
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = _);
|
|
2270
|
+
}), a;
|
|
2271
|
+
}), h = k(-1), y = b(() => {
|
|
2272
|
+
const a = t.hoveredItemValue;
|
|
2273
|
+
return a === null ? -1 : d.value[String(a)] ?? -1;
|
|
2274
|
+
});
|
|
2275
|
+
P(
|
|
2276
|
+
() => t.isOpened,
|
|
2277
|
+
(a) => {
|
|
2278
|
+
a && (h.value = y.value);
|
|
2279
|
+
}
|
|
2280
|
+
);
|
|
2281
|
+
const f = (a) => {
|
|
2282
|
+
const m = u.value;
|
|
2283
|
+
let _ = h.value;
|
|
2284
|
+
switch (a.code) {
|
|
2285
|
+
case "ArrowDown":
|
|
2286
|
+
if (a.preventDefault(), _ < m - 1) {
|
|
2287
|
+
_++, h.value = _;
|
|
2288
|
+
const S = c.value[_];
|
|
2289
|
+
S && t.onHoveredItemChange(S.value);
|
|
2290
|
+
}
|
|
2291
|
+
break;
|
|
2292
|
+
case "ArrowUp":
|
|
2293
|
+
if (a.preventDefault(), _ > 0) {
|
|
2294
|
+
_--, h.value = _;
|
|
2295
|
+
const S = c.value[_];
|
|
2296
|
+
S && t.onHoveredItemChange(S.value);
|
|
2297
|
+
}
|
|
2298
|
+
break;
|
|
2299
|
+
case "Enter":
|
|
2300
|
+
case "Space":
|
|
2301
|
+
if (a.preventDefault(), _ >= 0 && _ < m) {
|
|
2302
|
+
const S = c.value[_];
|
|
2303
|
+
S && t.onToggleItem(S);
|
|
2304
|
+
}
|
|
2305
|
+
break;
|
|
2306
|
+
case "Escape":
|
|
2307
|
+
a.preventDefault(), t.onOpen(!1);
|
|
2308
|
+
break;
|
|
2309
|
+
}
|
|
2310
|
+
};
|
|
2311
|
+
return gt({
|
|
2312
|
+
ref: l,
|
|
2313
|
+
handler: () => {
|
|
2314
|
+
t.isOpened && t.onOpen(!1);
|
|
2315
|
+
}
|
|
2316
|
+
}), P(
|
|
2317
|
+
() => t.isOpened,
|
|
2318
|
+
(a) => {
|
|
2319
|
+
a && setTimeout(() => {
|
|
2320
|
+
var m;
|
|
2321
|
+
(m = l.value) == null || m.focus();
|
|
2322
|
+
}, 0);
|
|
2323
|
+
}
|
|
2324
|
+
), r({
|
|
2325
|
+
listRef: l,
|
|
2326
|
+
items: c,
|
|
2327
|
+
itemsMap: d
|
|
2328
|
+
}), (a, m) => e.container ? (p(), M(Ae, {
|
|
2329
|
+
key: 0,
|
|
2330
|
+
to: e.container
|
|
2331
|
+
}, [
|
|
2332
|
+
o(t).isOpened ? (p(), v("ul", $({
|
|
2333
|
+
key: 0,
|
|
2334
|
+
ref_key: "listRef",
|
|
2335
|
+
ref: l
|
|
2336
|
+
}, a.$attrs, {
|
|
2337
|
+
tabindex: "0",
|
|
2338
|
+
role: "listbox",
|
|
2339
|
+
"aria-multiselectable": o(t).mode === "multi" ? "true" : void 0,
|
|
2340
|
+
class: [
|
|
2341
|
+
"custom-scroll",
|
|
2342
|
+
o(ce).list,
|
|
2343
|
+
i.class
|
|
2344
|
+
],
|
|
2345
|
+
style: e.theme,
|
|
2346
|
+
onKeydown: f
|
|
2347
|
+
}), [
|
|
2348
|
+
I(a.$slots, "default"),
|
|
2349
|
+
u.value === 0 ? (p(), v("li", {
|
|
2350
|
+
key: 0,
|
|
2351
|
+
class: x(o(ce).empty)
|
|
2352
|
+
}, D(e.emptyText), 3)) : A("", !0)
|
|
2353
|
+
], 16, el)) : A("", !0)
|
|
2354
|
+
], 8, ["to"])) : (p(), v(pe, { key: 1 }, [
|
|
2355
|
+
o(t).isOpened ? (p(), v("ul", $({
|
|
2356
|
+
key: 0,
|
|
2357
|
+
ref_key: "listRef",
|
|
2358
|
+
ref: l
|
|
2359
|
+
}, a.$attrs, {
|
|
2360
|
+
tabindex: "0",
|
|
2361
|
+
role: "listbox",
|
|
2362
|
+
"aria-multiselectable": o(t).mode === "multi" ? "true" : void 0,
|
|
2363
|
+
class: [
|
|
2364
|
+
"custom-scroll",
|
|
2365
|
+
o(ce).list,
|
|
2366
|
+
i.class
|
|
2367
|
+
],
|
|
2368
|
+
style: e.theme,
|
|
2369
|
+
onKeydown: f
|
|
2370
|
+
}), [
|
|
2371
|
+
I(a.$slots, "default"),
|
|
2372
|
+
u.value === 0 ? (p(), v("li", {
|
|
2373
|
+
key: 0,
|
|
2374
|
+
class: x(o(ce).empty)
|
|
2375
|
+
}, D(e.emptyText), 3)) : A("", !0)
|
|
2376
|
+
], 16, tl)) : A("", !0)
|
|
2377
|
+
], 64));
|
|
2378
|
+
}
|
|
2379
|
+
}), rl = "MultiSelect.All", Xs = /* @__PURE__ */ g({
|
|
2380
|
+
__name: "All",
|
|
2381
|
+
props: {
|
|
2382
|
+
theme: {},
|
|
2383
|
+
label: { default: "Выбрать всё" }
|
|
2384
|
+
},
|
|
2385
|
+
setup(e) {
|
|
2386
|
+
const r = Z(rl), i = Pe, t = b(() => r.isAllSelected()), l = b(() => r.isPartiallySelected()), n = b(
|
|
2387
|
+
() => t.value || l.value
|
|
2388
|
+
), s = b(
|
|
2389
|
+
() => t.value ? "mark" : "indeterminate"
|
|
2390
|
+
), c = (u) => {
|
|
2391
|
+
u.preventDefault(), r.onToggleAll();
|
|
2392
|
+
};
|
|
2393
|
+
return (u, d) => o(r).searchQuery ? A("", !0) : (p(), v("li", {
|
|
2394
|
+
key: 0,
|
|
2395
|
+
class: x(o(de).item),
|
|
2396
|
+
style: V(e.theme),
|
|
2397
|
+
onClick: c
|
|
2398
|
+
}, [
|
|
2399
|
+
z(xe, {
|
|
2400
|
+
theme: o(i),
|
|
2401
|
+
"is-checked": n.value,
|
|
2402
|
+
"checked-style": s.value,
|
|
2403
|
+
tabindex: -1,
|
|
2404
|
+
onClick: d[0] || (d[0] = be(() => {
|
|
2405
|
+
}, ["stop"]))
|
|
2406
|
+
}, null, 8, ["theme", "is-checked", "checked-style"]),
|
|
2407
|
+
z(le, null, {
|
|
2408
|
+
default: O(() => [
|
|
2409
|
+
L(D(e.label), 1)
|
|
2410
|
+
]),
|
|
2411
|
+
_: 1
|
|
2412
|
+
})
|
|
2413
|
+
], 6));
|
|
2414
|
+
}
|
|
2415
|
+
}), ol = "Value-module__value___Aswvw", ll = "Value-module__text___-f1lX", nl = {
|
|
2416
|
+
value: ol,
|
|
2417
|
+
text: ll
|
|
2418
|
+
}, sl = "MultiSelect.Value", Qs = /* @__PURE__ */ g({
|
|
2419
|
+
__name: "Value",
|
|
2420
|
+
props: {
|
|
2421
|
+
placeholder: { default: "" },
|
|
2422
|
+
displayMode: { default: "count" },
|
|
2423
|
+
maxDisplayItems: { default: 2 },
|
|
2424
|
+
countTemplate: { default: "{n} выбрано" },
|
|
2425
|
+
class: {}
|
|
2426
|
+
},
|
|
2427
|
+
setup(e, { expose: r }) {
|
|
2428
|
+
const i = e, t = Z(sl), l = k(null), n = b(() => {
|
|
2429
|
+
const s = t.selectedItems;
|
|
2430
|
+
if (s.length === 0)
|
|
2431
|
+
return i.placeholder;
|
|
2432
|
+
if (i.displayMode === "count")
|
|
2433
|
+
return i.countTemplate.replace("{n}", String(s.length));
|
|
2434
|
+
const c = s.slice(0, i.maxDisplayItems), u = s.length - c.length, d = c.map((h) => h.option).join(", ");
|
|
2435
|
+
return u > 0 ? `${d} +${u}` : d;
|
|
2436
|
+
});
|
|
2437
|
+
return r({
|
|
2438
|
+
optionRef: l
|
|
2439
|
+
}), (s, c) => s.$slots.default ? I(s.$slots, "default", { key: 0 }) : (p(), M(le, {
|
|
2440
|
+
key: 1,
|
|
2441
|
+
ref_key: "optionRef",
|
|
2442
|
+
ref: l,
|
|
2443
|
+
class: x(o(nl).text)
|
|
2444
|
+
}, {
|
|
2445
|
+
default: O(() => [
|
|
2446
|
+
L(D(n.value), 1)
|
|
2447
|
+
]),
|
|
2448
|
+
_: 1
|
|
2449
|
+
}, 8, ["class"]));
|
|
2450
|
+
}
|
|
2451
|
+
}), ea = /* @__PURE__ */ g({
|
|
2399
2452
|
__name: "Portal",
|
|
2400
2453
|
props: {
|
|
2401
2454
|
container: { default: void 0 }
|
|
2402
2455
|
},
|
|
2403
|
-
setup(e, { expose:
|
|
2404
|
-
const i = e, t = k(null), l =
|
|
2405
|
-
return
|
|
2456
|
+
setup(e, { expose: r }) {
|
|
2457
|
+
const i = e, t = k(null), l = b(() => i.container || document.body);
|
|
2458
|
+
return r({
|
|
2406
2459
|
portalRef: t
|
|
2407
|
-
}), (n, s) => (p(),
|
|
2460
|
+
}), (n, s) => (p(), M(Ae, {
|
|
2408
2461
|
to: l.value,
|
|
2409
2462
|
disabled: !l.value
|
|
2410
2463
|
}, [
|
|
@@ -2418,25 +2471,25 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2418
2471
|
}
|
|
2419
2472
|
}), al = "ContentBlock-module__block___UvzuN", cl = {
|
|
2420
2473
|
block: al
|
|
2421
|
-
},
|
|
2474
|
+
}, ta = /* @__PURE__ */ g({
|
|
2422
2475
|
__name: "ContentBlock",
|
|
2423
2476
|
props: {
|
|
2424
2477
|
theme: {}
|
|
2425
2478
|
},
|
|
2426
|
-
setup(e, { expose:
|
|
2479
|
+
setup(e, { expose: r }) {
|
|
2427
2480
|
const i = k(null);
|
|
2428
|
-
return
|
|
2481
|
+
return r({
|
|
2429
2482
|
blockRef: i
|
|
2430
2483
|
}), (t, l) => (p(), v("div", $(t.$attrs, {
|
|
2431
2484
|
ref_key: "blockRef",
|
|
2432
2485
|
ref: i,
|
|
2433
|
-
class:
|
|
2486
|
+
class: o(cl).block,
|
|
2434
2487
|
style: e.theme
|
|
2435
2488
|
}), [
|
|
2436
2489
|
I(t.$slots, "default")
|
|
2437
2490
|
], 16));
|
|
2438
2491
|
}
|
|
2439
|
-
}),
|
|
2492
|
+
}), ia = {
|
|
2440
2493
|
"--crm-ui-kit-content-block-box-sizing": "border-box",
|
|
2441
2494
|
"--crm-ui-kit-content-block-padding": "18px 18px 29px",
|
|
2442
2495
|
"--crm-ui-kit-content-block-border-radius": "3px",
|
|
@@ -2444,26 +2497,26 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2444
2497
|
"--crm-ui-kit-content-block-background": "var(--crm-ui-kit-palette-background-primary)"
|
|
2445
2498
|
}, ul = "Link-module__link___35Vo1", dl = {
|
|
2446
2499
|
link: ul
|
|
2447
|
-
},
|
|
2500
|
+
}, ra = /* @__PURE__ */ g({
|
|
2448
2501
|
__name: "Link",
|
|
2449
2502
|
props: {
|
|
2450
2503
|
theme: {}
|
|
2451
2504
|
},
|
|
2452
|
-
setup(e, { expose:
|
|
2505
|
+
setup(e, { expose: r }) {
|
|
2453
2506
|
const i = k(null);
|
|
2454
|
-
return
|
|
2507
|
+
return r({
|
|
2455
2508
|
linkRef: i
|
|
2456
2509
|
}), (t, l) => (p(), v("a", $({
|
|
2457
2510
|
ref_key: "linkRef",
|
|
2458
2511
|
ref: i
|
|
2459
2512
|
}, t.$attrs, {
|
|
2460
|
-
class:
|
|
2513
|
+
class: o(dl).link,
|
|
2461
2514
|
style: e.theme
|
|
2462
2515
|
}), [
|
|
2463
2516
|
I(t.$slots, "default")
|
|
2464
2517
|
], 16));
|
|
2465
2518
|
}
|
|
2466
|
-
}),
|
|
2519
|
+
}), oa = {
|
|
2467
2520
|
"--crm-ui-kit-link-color": "var(--crm-ui-kit-palette-link-primary)",
|
|
2468
2521
|
"--crm-ui-kit-link-hover-color": "var(--crm-ui-kit-palette-link-hover-primary)",
|
|
2469
2522
|
"--crm-ui-kit-link-text-decoration": "underline",
|
|
@@ -2472,7 +2525,7 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2472
2525
|
"--crm-ui-kit-link-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
2473
2526
|
"--crm-ui-kit-link-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
2474
2527
|
"--crm-ui-kit-link-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
2475
|
-
},
|
|
2528
|
+
}, la = {
|
|
2476
2529
|
"--crm-ui-kit-spinner-border-color": "#158fd2",
|
|
2477
2530
|
"--crm-ui-kit-spinner-border-width": "2px",
|
|
2478
2531
|
"--crm-ui-kit-spinner-circle-size": "16px",
|
|
@@ -2480,28 +2533,28 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2480
2533
|
}, ml = "Callout-module__wrapper___gW-Zt", pl = "Callout-module__icon___4CBkz", Je = {
|
|
2481
2534
|
wrapper: ml,
|
|
2482
2535
|
icon: pl
|
|
2483
|
-
},
|
|
2536
|
+
}, na = /* @__PURE__ */ g({
|
|
2484
2537
|
__name: "Callout",
|
|
2485
2538
|
props: {
|
|
2486
2539
|
theme: {},
|
|
2487
2540
|
isIconAvailable: { type: Boolean, default: !0 }
|
|
2488
2541
|
},
|
|
2489
|
-
setup(e, { expose:
|
|
2490
|
-
const i = e, t = k(null), l =
|
|
2542
|
+
setup(e, { expose: r }) {
|
|
2543
|
+
const i = e, t = k(null), l = b(() => {
|
|
2491
2544
|
const { Icon: n, ...s } = i.theme;
|
|
2492
2545
|
return s;
|
|
2493
2546
|
});
|
|
2494
|
-
return
|
|
2547
|
+
return r({
|
|
2495
2548
|
calloutRef: t
|
|
2496
2549
|
}), (n, s) => (p(), v("div", $(n.$attrs, {
|
|
2497
2550
|
ref_key: "calloutRef",
|
|
2498
2551
|
ref: t,
|
|
2499
|
-
class:
|
|
2552
|
+
class: o(Je).wrapper,
|
|
2500
2553
|
style: l.value
|
|
2501
2554
|
}), [
|
|
2502
|
-
e.isIconAvailable ? (p(),
|
|
2555
|
+
e.isIconAvailable ? (p(), M(Re(e.theme.Icon), {
|
|
2503
2556
|
key: 0,
|
|
2504
|
-
class: x(
|
|
2557
|
+
class: x(o(Je).icon)
|
|
2505
2558
|
}, null, 8, ["class"])) : A("", !0),
|
|
2506
2559
|
I(n.$slots, "default")
|
|
2507
2560
|
], 16));
|
|
@@ -2512,19 +2565,19 @@ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr
|
|
|
2512
2565
|
height: "20",
|
|
2513
2566
|
fill: "none"
|
|
2514
2567
|
};
|
|
2515
|
-
function
|
|
2516
|
-
return p(), v("svg", hl, [...
|
|
2568
|
+
function bl(e, r) {
|
|
2569
|
+
return p(), v("svg", hl, [...r[0] || (r[0] = [
|
|
2517
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)
|
|
2518
2571
|
])]);
|
|
2519
2572
|
}
|
|
2520
|
-
const
|
|
2573
|
+
const _l = { render: bl }, fl = {
|
|
2521
2574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2522
2575
|
width: "20",
|
|
2523
2576
|
height: "20",
|
|
2524
2577
|
fill: "currentColor"
|
|
2525
2578
|
};
|
|
2526
|
-
function vl(e,
|
|
2527
|
-
return p(), v("svg", fl, [...
|
|
2579
|
+
function vl(e, r) {
|
|
2580
|
+
return p(), v("svg", fl, [...r[0] || (r[0] = [
|
|
2528
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)
|
|
2529
2582
|
])]);
|
|
2530
2583
|
}
|
|
@@ -2534,8 +2587,8 @@ const kl = { render: vl }, xl = {
|
|
|
2534
2587
|
height: "20",
|
|
2535
2588
|
fill: "none"
|
|
2536
2589
|
};
|
|
2537
|
-
function yl(e,
|
|
2538
|
-
return p(), v("svg", xl, [...
|
|
2590
|
+
function yl(e, r) {
|
|
2591
|
+
return p(), v("svg", xl, [...r[0] || (r[0] = [
|
|
2539
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)
|
|
2540
2593
|
])]);
|
|
2541
2594
|
}
|
|
@@ -2545,29 +2598,29 @@ const gl = { render: yl }, Cl = {
|
|
|
2545
2598
|
height: "20",
|
|
2546
2599
|
fill: "currentColor"
|
|
2547
2600
|
};
|
|
2548
|
-
function Il(e,
|
|
2549
|
-
return p(), v("svg", Cl, [...
|
|
2601
|
+
function Il(e, r) {
|
|
2602
|
+
return p(), v("svg", Cl, [...r[0] || (r[0] = [
|
|
2550
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)
|
|
2551
2604
|
])]);
|
|
2552
2605
|
}
|
|
2553
|
-
const $l = { render: Il },
|
|
2606
|
+
const $l = { render: Il }, ge = {
|
|
2554
2607
|
"--crm-ui-kit-callout-padding": "12px",
|
|
2555
2608
|
"--crm-ui-kit-callout-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
|
|
2556
2609
|
"--crm-ui-kit-callout-icon-color": "var(--crm-ui-kit-palette-text-primary)"
|
|
2557
|
-
},
|
|
2558
|
-
...
|
|
2559
|
-
Icon:
|
|
2610
|
+
}, sa = {
|
|
2611
|
+
...ge,
|
|
2612
|
+
Icon: _l,
|
|
2560
2613
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-warning-background-color)"
|
|
2561
|
-
},
|
|
2562
|
-
...
|
|
2614
|
+
}, aa = {
|
|
2615
|
+
...ge,
|
|
2563
2616
|
Icon: kl,
|
|
2564
2617
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-error-background-color)"
|
|
2565
|
-
},
|
|
2566
|
-
...
|
|
2618
|
+
}, ca = {
|
|
2619
|
+
...ge,
|
|
2567
2620
|
Icon: gl,
|
|
2568
2621
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-success-background-color)"
|
|
2569
|
-
},
|
|
2570
|
-
...
|
|
2622
|
+
}, ua = {
|
|
2623
|
+
...ge,
|
|
2571
2624
|
Icon: $l,
|
|
2572
2625
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-info-background-color)"
|
|
2573
2626
|
}, It = "Accordion", [$t, wl] = F(It), Sl = "Accordion-module__wrapper___X4UEj", wt = {
|
|
@@ -2581,8 +2634,8 @@ const $l = { render: Il }, ye = {
|
|
|
2581
2634
|
theme: {}
|
|
2582
2635
|
},
|
|
2583
2636
|
emits: ["change"],
|
|
2584
|
-
setup(e, { expose:
|
|
2585
|
-
const t = e, l = i, n = k(null), s = k(t.defaultValue), c =
|
|
2637
|
+
setup(e, { expose: r, emit: i }) {
|
|
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(
|
|
2586
2639
|
() => u.value ? t.value : s.value
|
|
2587
2640
|
), h = (f) => t.isCollapsible && f === d.value ? void 0 : f, y = (f) => {
|
|
2588
2641
|
const a = h(f);
|
|
@@ -2593,12 +2646,12 @@ const $l = { render: Il }, ye = {
|
|
|
2593
2646
|
// computed ref
|
|
2594
2647
|
defaultValue: De(() => t.defaultValue),
|
|
2595
2648
|
onChange: y
|
|
2596
|
-
}),
|
|
2649
|
+
}), r({
|
|
2597
2650
|
accordionRef: n
|
|
2598
2651
|
}), (f, a) => (p(), v("div", $(f.$attrs, {
|
|
2599
2652
|
ref_key: "accordionRef",
|
|
2600
2653
|
ref: n,
|
|
2601
|
-
class: [
|
|
2654
|
+
class: [o(wt).wrapper, o(c)]
|
|
2602
2655
|
}), [
|
|
2603
2656
|
I(f.$slots, "default")
|
|
2604
2657
|
], 16));
|
|
@@ -2611,8 +2664,8 @@ const $l = { render: Il }, ye = {
|
|
|
2611
2664
|
theme: {}
|
|
2612
2665
|
},
|
|
2613
2666
|
emits: ["change"],
|
|
2614
|
-
setup(e, { expose:
|
|
2615
|
-
const t = e, l = i, n = k(null), s = k(t.defaultValue || []), c =
|
|
2667
|
+
setup(e, { expose: r, emit: i }) {
|
|
2668
|
+
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(
|
|
2616
2669
|
() => u.value ? t.value || [] : s.value
|
|
2617
2670
|
), h = (f) => {
|
|
2618
2671
|
const a = d.value || [];
|
|
@@ -2626,12 +2679,12 @@ const $l = { render: Il }, ye = {
|
|
|
2626
2679
|
// computed ref
|
|
2627
2680
|
defaultValue: De(() => t.defaultValue),
|
|
2628
2681
|
onChange: y
|
|
2629
|
-
}),
|
|
2682
|
+
}), r({
|
|
2630
2683
|
accordionRef: n
|
|
2631
2684
|
}), (f, a) => (p(), v("div", $(f.$attrs, {
|
|
2632
2685
|
ref_key: "accordionRef",
|
|
2633
2686
|
ref: n,
|
|
2634
|
-
class: [
|
|
2687
|
+
class: [o(wt).wrapper, o(c)]
|
|
2635
2688
|
}), [
|
|
2636
2689
|
I(f.$slots, "default")
|
|
2637
2690
|
], 16));
|
|
@@ -2647,23 +2700,23 @@ const $l = { render: Il }, ye = {
|
|
|
2647
2700
|
defaultValue: {},
|
|
2648
2701
|
theme: {}
|
|
2649
2702
|
},
|
|
2650
|
-
setup(e, { expose:
|
|
2703
|
+
setup(e, { expose: r }) {
|
|
2651
2704
|
const i = k(null);
|
|
2652
|
-
return
|
|
2705
|
+
return r({
|
|
2653
2706
|
accordionRef: i
|
|
2654
|
-
}), (t, l) => e.type === "multiple" ? (p(),
|
|
2707
|
+
}), (t, l) => e.type === "multiple" ? (p(), M(Al, $({ key: 0 }, t.$props, {
|
|
2655
2708
|
ref_key: "accordionRef",
|
|
2656
2709
|
ref: i
|
|
2657
2710
|
}), {
|
|
2658
|
-
default:
|
|
2711
|
+
default: O(() => [
|
|
2659
2712
|
I(t.$slots, "default")
|
|
2660
2713
|
]),
|
|
2661
2714
|
_: 3
|
|
2662
|
-
}, 16)) : (p(),
|
|
2715
|
+
}, 16)) : (p(), M(Tl, $({ key: 1 }, t.$props, {
|
|
2663
2716
|
ref_key: "accordionRef",
|
|
2664
2717
|
ref: i
|
|
2665
2718
|
}), {
|
|
2666
|
-
default:
|
|
2719
|
+
default: O(() => [
|
|
2667
2720
|
I(t.$slots, "default")
|
|
2668
2721
|
]),
|
|
2669
2722
|
_: 3
|
|
@@ -2675,8 +2728,8 @@ const $l = { render: Il }, ye = {
|
|
|
2675
2728
|
height: "7",
|
|
2676
2729
|
fill: "none"
|
|
2677
2730
|
};
|
|
2678
|
-
function Vl(e,
|
|
2679
|
-
return p(), v("svg", Bl, [...
|
|
2731
|
+
function Vl(e, r) {
|
|
2732
|
+
return p(), v("svg", Bl, [...r[0] || (r[0] = [
|
|
2680
2733
|
T("path", {
|
|
2681
2734
|
fill: "currentColor",
|
|
2682
2735
|
"fill-rule": "evenodd",
|
|
@@ -2685,10 +2738,10 @@ function Vl(e, o) {
|
|
|
2685
2738
|
}, null, -1)
|
|
2686
2739
|
])]);
|
|
2687
2740
|
}
|
|
2688
|
-
const
|
|
2689
|
-
wrapper:
|
|
2690
|
-
header:
|
|
2691
|
-
header_left:
|
|
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 = {
|
|
2742
|
+
wrapper: zl,
|
|
2743
|
+
header: El,
|
|
2744
|
+
header_left: Ol,
|
|
2692
2745
|
headerLeft: Ll,
|
|
2693
2746
|
before_title: Pl,
|
|
2694
2747
|
beforeTitle: Gl,
|
|
@@ -2706,68 +2759,68 @@ const El = { render: Vl }, Ml = "Item-module__wrapper___Yv5zw", Ol = "Item-modul
|
|
|
2706
2759
|
title: {},
|
|
2707
2760
|
before: { default: null }
|
|
2708
2761
|
},
|
|
2709
|
-
setup(e, { expose:
|
|
2710
|
-
const i = e, t = k(null), { onChange: l, value: n } = wl(jl), s =
|
|
2762
|
+
setup(e, { expose: r }) {
|
|
2763
|
+
const i = e, t = k(null), { onChange: l, value: n } = wl(jl), s = Me(i.theme), c = () => {
|
|
2711
2764
|
l(i.value);
|
|
2712
|
-
}, u =
|
|
2713
|
-
const d =
|
|
2765
|
+
}, u = b(() => {
|
|
2766
|
+
const d = o(n);
|
|
2714
2767
|
return Array.isArray(d) ? d.includes(i.value) : d === i.value;
|
|
2715
2768
|
});
|
|
2716
|
-
return
|
|
2769
|
+
return r({
|
|
2717
2770
|
itemRef: t
|
|
2718
2771
|
}), (d, h) => (p(), v("div", $(d.$attrs, {
|
|
2719
2772
|
ref_key: "itemRef",
|
|
2720
2773
|
ref: t,
|
|
2721
2774
|
class: [
|
|
2722
|
-
|
|
2775
|
+
o(W).wrapper,
|
|
2723
2776
|
{
|
|
2724
|
-
[
|
|
2777
|
+
[o(W).active]: u.value
|
|
2725
2778
|
},
|
|
2726
|
-
|
|
2779
|
+
o(s)
|
|
2727
2780
|
]
|
|
2728
2781
|
}), [
|
|
2729
2782
|
T("div", {
|
|
2730
|
-
class: x(
|
|
2783
|
+
class: x(o(W).header),
|
|
2731
2784
|
onClick: c
|
|
2732
2785
|
}, [
|
|
2733
2786
|
T("div", {
|
|
2734
|
-
class: x(
|
|
2787
|
+
class: x(o(W).header_left)
|
|
2735
2788
|
}, [
|
|
2736
2789
|
e.before ? (p(), v("div", {
|
|
2737
2790
|
key: 0,
|
|
2738
|
-
class: x(
|
|
2791
|
+
class: x(o(W).before_title)
|
|
2739
2792
|
}, [
|
|
2740
|
-
(p(),
|
|
2793
|
+
(p(), M(Re(e.before)))
|
|
2741
2794
|
], 2)) : A("", !0),
|
|
2742
|
-
|
|
2743
|
-
theme:
|
|
2795
|
+
z(Le, {
|
|
2796
|
+
theme: o(Oe),
|
|
2744
2797
|
size: "xl",
|
|
2745
2798
|
"is-ellipsis": !0
|
|
2746
2799
|
}, {
|
|
2747
|
-
default:
|
|
2800
|
+
default: O(() => [
|
|
2748
2801
|
L(D(e.title), 1)
|
|
2749
2802
|
]),
|
|
2750
2803
|
_: 1
|
|
2751
2804
|
}, 8, ["theme"])
|
|
2752
2805
|
], 2),
|
|
2753
2806
|
T("span", {
|
|
2754
|
-
class: x(
|
|
2807
|
+
class: x(o(W).chevron_container)
|
|
2755
2808
|
}, [
|
|
2756
|
-
|
|
2757
|
-
class: x(
|
|
2809
|
+
z(o(Ml), {
|
|
2810
|
+
class: x(o(W).chevron_icon)
|
|
2758
2811
|
}, null, 8, ["class"])
|
|
2759
2812
|
], 2)
|
|
2760
2813
|
], 2),
|
|
2761
2814
|
T("div", {
|
|
2762
|
-
class: x(
|
|
2815
|
+
class: x(o(W).content)
|
|
2763
2816
|
}, [
|
|
2764
2817
|
I(d.$slots, "default")
|
|
2765
2818
|
], 2)
|
|
2766
2819
|
], 16));
|
|
2767
2820
|
}
|
|
2768
|
-
}),
|
|
2821
|
+
}), da = {
|
|
2769
2822
|
"--crm-ui-kit-accordion-width": "100%"
|
|
2770
|
-
},
|
|
2823
|
+
}, ma = {
|
|
2771
2824
|
"--crm-ui-kit-accordion-item-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
|
|
2772
2825
|
"--crm-ui-kit-accordion-item-box-shadow": "var(--crm-ui-kit-palette-accordion-item-box-shadow)",
|
|
2773
2826
|
"--crm-ui-kit-accordion-item-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
@@ -2783,7 +2836,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2783
2836
|
horizontal: Ql
|
|
2784
2837
|
}, en = g({
|
|
2785
2838
|
name: St
|
|
2786
|
-
}),
|
|
2839
|
+
}), pa = /* @__PURE__ */ g({
|
|
2787
2840
|
...en,
|
|
2788
2841
|
props: {
|
|
2789
2842
|
theme: {},
|
|
@@ -2792,7 +2845,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2792
2845
|
isDisabled: { type: Boolean, default: !1 }
|
|
2793
2846
|
},
|
|
2794
2847
|
emits: ["change"],
|
|
2795
|
-
setup(e, { expose:
|
|
2848
|
+
setup(e, { expose: r, emit: i }) {
|
|
2796
2849
|
const t = e, l = i, n = k(null), s = k([]), c = (h) => {
|
|
2797
2850
|
const y = s.value;
|
|
2798
2851
|
let f = y;
|
|
@@ -2808,7 +2861,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2808
2861
|
return;
|
|
2809
2862
|
}
|
|
2810
2863
|
!t.isMultiSelect && !y.length && (s.value = [h]);
|
|
2811
|
-
}, d =
|
|
2864
|
+
}, d = re({
|
|
2812
2865
|
values: s.value,
|
|
2813
2866
|
onChange: c,
|
|
2814
2867
|
registerActiveName: u,
|
|
@@ -2816,15 +2869,15 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2816
2869
|
});
|
|
2817
2870
|
return mt(() => {
|
|
2818
2871
|
d.values = s.value, d.isDisabled = t.isDisabled;
|
|
2819
|
-
}), Zl(d),
|
|
2872
|
+
}), Zl(d), r({
|
|
2820
2873
|
filterTabsRef: n
|
|
2821
2874
|
}), (h, y) => (p(), v("div", $(h.$attrs, {
|
|
2822
2875
|
ref_key: "filterTabsRef",
|
|
2823
2876
|
ref: n,
|
|
2824
2877
|
class: [
|
|
2825
|
-
|
|
2878
|
+
o(Xe).filter_tabs,
|
|
2826
2879
|
{
|
|
2827
|
-
[
|
|
2880
|
+
[o(Xe).horizontal]: e.orientation === "horizontal"
|
|
2828
2881
|
}
|
|
2829
2882
|
],
|
|
2830
2883
|
style: e.theme
|
|
@@ -2832,13 +2885,13 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2832
2885
|
I(h.$slots, "default")
|
|
2833
2886
|
], 16));
|
|
2834
2887
|
}
|
|
2835
|
-
}),
|
|
2888
|
+
}), ha = {
|
|
2836
2889
|
"--crm-ui-kit-filter-tabs-spacing": "8px"
|
|
2837
|
-
}, At = "FilterTabs.ItemRoot", [tn,
|
|
2838
|
-
item_root:
|
|
2890
|
+
}, At = "FilterTabs.ItemRoot", [tn, rn] = F(At), on = "ItemRoot-module__item_root___TqVxI", ln = "ItemRoot-module__item_root___TqVxI", nn = "ItemRoot-module__disabled___VgRs7", Qe = {
|
|
2891
|
+
item_root: on,
|
|
2839
2892
|
itemRoot: ln,
|
|
2840
2893
|
disabled: nn
|
|
2841
|
-
},
|
|
2894
|
+
}, ba = /* @__PURE__ */ g({
|
|
2842
2895
|
__name: "ItemRoot",
|
|
2843
2896
|
props: {
|
|
2844
2897
|
isDisabled: { type: Boolean },
|
|
@@ -2848,20 +2901,20 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2848
2901
|
class: {}
|
|
2849
2902
|
},
|
|
2850
2903
|
setup(e) {
|
|
2851
|
-
const
|
|
2852
|
-
|
|
2853
|
-
|
|
2904
|
+
const r = e, i = Tt(At), t = b(() => i.isDisabled), { registerActiveName: l } = i;
|
|
2905
|
+
ie(() => {
|
|
2906
|
+
r.isDefaultActive && r.name && l(r.name);
|
|
2854
2907
|
});
|
|
2855
|
-
const n =
|
|
2856
|
-
const { theme: s, class: c, isDefaultActive: u, ...d } =
|
|
2908
|
+
const n = b(() => {
|
|
2909
|
+
const { theme: s, class: c, isDefaultActive: u, ...d } = r;
|
|
2857
2910
|
return d;
|
|
2858
2911
|
});
|
|
2859
2912
|
return tn(n.value), (s, c) => (p(), v("div", {
|
|
2860
2913
|
class: x([
|
|
2861
|
-
|
|
2862
|
-
|
|
2914
|
+
o(Qe).item_root,
|
|
2915
|
+
r.class,
|
|
2863
2916
|
{
|
|
2864
|
-
[
|
|
2917
|
+
[o(Qe).disabled]: t.value || e.isDisabled
|
|
2865
2918
|
}
|
|
2866
2919
|
]),
|
|
2867
2920
|
style: V(e.theme)
|
|
@@ -2869,44 +2922,44 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2869
2922
|
I(s.$slots, "default")
|
|
2870
2923
|
], 6));
|
|
2871
2924
|
}
|
|
2872
|
-
}),
|
|
2925
|
+
}), _a = {
|
|
2873
2926
|
"--crm-ui-kit-filter-tabs-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
2874
2927
|
}, sn = "Tab-module__button___iGASN", an = "Tab-module__selected___zxPPy", et = {
|
|
2875
2928
|
button: sn,
|
|
2876
2929
|
selected: an
|
|
2877
|
-
}, cn = ["name", "disabled"], tt = "FilterTabs.Tab",
|
|
2930
|
+
}, cn = ["name", "disabled"], tt = "FilterTabs.Tab", fa = /* @__PURE__ */ g({
|
|
2878
2931
|
__name: "Tab",
|
|
2879
2932
|
props: {
|
|
2880
2933
|
class: { default: "" },
|
|
2881
2934
|
theme: {},
|
|
2882
2935
|
onClick: {}
|
|
2883
2936
|
},
|
|
2884
|
-
setup(e, { expose:
|
|
2885
|
-
const i = e, { theme: t, class: l, ...n } = i, s = k(null), c = Tt(tt), { name: u, isDisabled: d } =
|
|
2937
|
+
setup(e, { expose: r }) {
|
|
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 = () => {
|
|
2886
2939
|
c.onChange(u);
|
|
2887
2940
|
};
|
|
2888
|
-
return
|
|
2941
|
+
return r({
|
|
2889
2942
|
buttonRef: s
|
|
2890
2943
|
}), (a, m) => (p(), v("button", $({
|
|
2891
2944
|
ref_key: "buttonRef",
|
|
2892
2945
|
ref: s
|
|
2893
2946
|
}, n, {
|
|
2894
2947
|
class: [
|
|
2895
|
-
|
|
2948
|
+
o(et).button,
|
|
2896
2949
|
{
|
|
2897
|
-
[
|
|
2950
|
+
[o(et).selected]: h.value
|
|
2898
2951
|
},
|
|
2899
|
-
|
|
2952
|
+
o(l)
|
|
2900
2953
|
],
|
|
2901
|
-
style:
|
|
2902
|
-
name:
|
|
2903
|
-
disabled: y.value ||
|
|
2954
|
+
style: o(t),
|
|
2955
|
+
name: o(u),
|
|
2956
|
+
disabled: y.value || o(d),
|
|
2904
2957
|
onClick: f
|
|
2905
2958
|
}), [
|
|
2906
2959
|
I(a.$slots, "default")
|
|
2907
2960
|
], 16, cn));
|
|
2908
2961
|
}
|
|
2909
|
-
}),
|
|
2962
|
+
}), va = {
|
|
2910
2963
|
"--crm-ui-kit-filter-tabs-tab-z-index": "3",
|
|
2911
2964
|
"--crm-ui-kit-filter-tabs-tab-action-color": "var(--crm-ui-kit-color-blueberry)",
|
|
2912
2965
|
"--crm-ui-kit-filter-tabs-tab-border-width": "1px",
|
|
@@ -2921,7 +2974,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2921
2974
|
"--crm-ui-kit-filter-tabs-tab-hover-background-color": "var(--crm-ui-kit-palette-surface-hover-background-color)"
|
|
2922
2975
|
}, Rt = "CheckboxGroup", [un, Ge] = F(Rt), dn = ({
|
|
2923
2976
|
isDisabled: e,
|
|
2924
|
-
onChange:
|
|
2977
|
+
onChange: r
|
|
2925
2978
|
}) => {
|
|
2926
2979
|
const i = k(/* @__PURE__ */ new Map()), t = k({}), l = k([]), n = (c) => {
|
|
2927
2980
|
const u = new Map(i.value);
|
|
@@ -2940,13 +2993,13 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2940
2993
|
isChecked: !d.isChecked
|
|
2941
2994
|
});
|
|
2942
2995
|
}
|
|
2943
|
-
i.value = u, typeof
|
|
2996
|
+
i.value = u, typeof r.value == "function" && r.value([...u.values()], c);
|
|
2944
2997
|
};
|
|
2945
2998
|
return P(
|
|
2946
2999
|
() => l.value.length,
|
|
2947
3000
|
async () => {
|
|
2948
3001
|
if (l.value.length) {
|
|
2949
|
-
await
|
|
3002
|
+
await he();
|
|
2950
3003
|
const c = [...l.value];
|
|
2951
3004
|
l.value = [];
|
|
2952
3005
|
const u = new Map(i.value);
|
|
@@ -2970,36 +3023,36 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
2970
3023
|
checkbox_group: mn,
|
|
2971
3024
|
checkboxGroup: pn,
|
|
2972
3025
|
horizontal: hn
|
|
2973
|
-
},
|
|
3026
|
+
}, bn = g({
|
|
2974
3027
|
name: Rt
|
|
2975
|
-
}),
|
|
2976
|
-
...
|
|
3028
|
+
}), ka = /* @__PURE__ */ g({
|
|
3029
|
+
...bn,
|
|
2977
3030
|
props: {
|
|
2978
3031
|
onChange: {},
|
|
2979
3032
|
orientation: { default: "vertical" },
|
|
2980
3033
|
theme: {},
|
|
2981
3034
|
isDisabled: { type: Boolean, default: !1 }
|
|
2982
3035
|
},
|
|
2983
|
-
setup(e, { expose:
|
|
3036
|
+
setup(e, { expose: r }) {
|
|
2984
3037
|
const i = e, t = k(null), { register: l, state: n } = dn({
|
|
2985
3038
|
onChange: De(i, "onChange"),
|
|
2986
3039
|
isDisabled: i.isDisabled
|
|
2987
|
-
}), s =
|
|
3040
|
+
}), s = re({
|
|
2988
3041
|
values: n.value,
|
|
2989
3042
|
register: l,
|
|
2990
3043
|
isDisabled: i.isDisabled
|
|
2991
3044
|
});
|
|
2992
3045
|
return mt(() => {
|
|
2993
3046
|
s.values = n.value, s.isDisabled = i.isDisabled;
|
|
2994
|
-
}), un(s),
|
|
3047
|
+
}), un(s), r({
|
|
2995
3048
|
checkboxGroupRef: t
|
|
2996
3049
|
}), (c, u) => (p(), v("div", $(c.$attrs, {
|
|
2997
3050
|
ref_key: "checkboxGroupRef",
|
|
2998
3051
|
ref: t,
|
|
2999
3052
|
class: [
|
|
3000
|
-
|
|
3053
|
+
o(it).checkbox_group,
|
|
3001
3054
|
{
|
|
3002
|
-
[
|
|
3055
|
+
[o(it).horizontal]: e.orientation === "horizontal"
|
|
3003
3056
|
}
|
|
3004
3057
|
],
|
|
3005
3058
|
style: e.theme
|
|
@@ -3007,13 +3060,13 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3007
3060
|
I(c.$slots, "default")
|
|
3008
3061
|
], 16));
|
|
3009
3062
|
}
|
|
3010
|
-
}),
|
|
3063
|
+
}), xa = {
|
|
3011
3064
|
"--crm-ui-kit-checkbox-group-spacing": "8px"
|
|
3012
|
-
}, Dt = "CheckboxGroup.ItemRoot", [
|
|
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 = {
|
|
3013
3066
|
item_root: fn,
|
|
3014
3067
|
itemRoot: vn,
|
|
3015
3068
|
disabled: kn
|
|
3016
|
-
},
|
|
3069
|
+
}, ya = /* @__PURE__ */ g({
|
|
3017
3070
|
__name: "ItemRoot",
|
|
3018
3071
|
props: {
|
|
3019
3072
|
name: {},
|
|
@@ -3024,19 +3077,19 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3024
3077
|
theme: {}
|
|
3025
3078
|
},
|
|
3026
3079
|
setup(e) {
|
|
3027
|
-
const
|
|
3028
|
-
const { theme: n, class: s, ...c } =
|
|
3080
|
+
const r = e, i = Ge(Dt), t = b(() => i.isDisabled), l = b(() => {
|
|
3081
|
+
const { theme: n, class: s, ...c } = r;
|
|
3029
3082
|
return {
|
|
3030
|
-
...i.register(
|
|
3031
|
-
value:
|
|
3083
|
+
...i.register(r.name, c),
|
|
3084
|
+
value: r.value
|
|
3032
3085
|
};
|
|
3033
3086
|
});
|
|
3034
|
-
return
|
|
3087
|
+
return _n(l.value), (n, s) => (p(), v("div", {
|
|
3035
3088
|
class: x([
|
|
3036
|
-
|
|
3037
|
-
|
|
3089
|
+
o(me).item_root,
|
|
3090
|
+
r.class,
|
|
3038
3091
|
{
|
|
3039
|
-
[
|
|
3092
|
+
[o(me).disabled]: t.value || e.isDisabled
|
|
3040
3093
|
}
|
|
3041
3094
|
]),
|
|
3042
3095
|
style: V(e.theme)
|
|
@@ -3044,12 +3097,12 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3044
3097
|
I(n.$slots, "default")
|
|
3045
3098
|
], 6));
|
|
3046
3099
|
}
|
|
3047
|
-
}),
|
|
3100
|
+
}), ga = {
|
|
3048
3101
|
"--crm-ui-kit-checkbox-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
3049
3102
|
}, Bt = "CheckboxGroup.ItemRootSelectAll", [
|
|
3050
3103
|
xn,
|
|
3051
3104
|
yn
|
|
3052
|
-
] = F(Bt),
|
|
3105
|
+
] = F(Bt), Ca = /* @__PURE__ */ g({
|
|
3053
3106
|
__name: "ItemRootSelectAll",
|
|
3054
3107
|
props: {
|
|
3055
3108
|
isDisabled: { type: Boolean },
|
|
@@ -3057,8 +3110,8 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3057
3110
|
theme: {}
|
|
3058
3111
|
},
|
|
3059
3112
|
setup(e) {
|
|
3060
|
-
const
|
|
3061
|
-
const { theme: n, class: s, ...c } =
|
|
3113
|
+
const r = e, i = Ge(Bt), t = b(() => i.isDisabled), l = b(() => {
|
|
3114
|
+
const { theme: n, class: s, ...c } = r;
|
|
3062
3115
|
return {
|
|
3063
3116
|
...i.register("selectAll"),
|
|
3064
3117
|
...c
|
|
@@ -3066,10 +3119,10 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3066
3119
|
});
|
|
3067
3120
|
return xn(l.value), (n, s) => (p(), v("div", {
|
|
3068
3121
|
class: x([
|
|
3069
|
-
|
|
3070
|
-
|
|
3122
|
+
o(me).item_root,
|
|
3123
|
+
r.class,
|
|
3071
3124
|
{
|
|
3072
|
-
[
|
|
3125
|
+
[o(me).disabled]: t.value || e.isDisabled
|
|
3073
3126
|
}
|
|
3074
3127
|
]),
|
|
3075
3128
|
style: V(e.theme)
|
|
@@ -3077,7 +3130,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3077
3130
|
I(n.$slots, "default")
|
|
3078
3131
|
], 6));
|
|
3079
3132
|
}
|
|
3080
|
-
}),
|
|
3133
|
+
}), rt = "CheckboxGroup.CheckboxSelectAll", Se = "selectAll", Ia = /* @__PURE__ */ g({
|
|
3081
3134
|
__name: "CheckboxSelectAll",
|
|
3082
3135
|
props: {
|
|
3083
3136
|
isReadonly: { type: Boolean },
|
|
@@ -3088,41 +3141,41 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3088
3141
|
theme: {},
|
|
3089
3142
|
class: { default: "" }
|
|
3090
3143
|
},
|
|
3091
|
-
setup(e, { expose:
|
|
3092
|
-
const i = e, { theme: t, class: l, checkedStyle: n, ...s } = i, c = k(null), u = Ge(
|
|
3144
|
+
setup(e, { expose: r }) {
|
|
3145
|
+
const i = e, { theme: t, class: l, checkedStyle: n, ...s } = i, c = k(null), u = Ge(rt), d = yn(rt), h = () => {
|
|
3093
3146
|
d.onChange({ type: Se, name: Se });
|
|
3094
|
-
}, y =
|
|
3147
|
+
}, y = b(() => {
|
|
3095
3148
|
const f = u.values, m = Array.from(f.values()).every(
|
|
3096
|
-
(
|
|
3149
|
+
(_) => _.isChecked
|
|
3097
3150
|
) ? "mark" : "indeterminate";
|
|
3098
3151
|
return {
|
|
3099
3152
|
isChecked: Array.from(f.values()).some(
|
|
3100
|
-
(
|
|
3153
|
+
(_) => _.isChecked
|
|
3101
3154
|
),
|
|
3102
3155
|
checkedStyle: m
|
|
3103
3156
|
};
|
|
3104
3157
|
});
|
|
3105
|
-
return
|
|
3158
|
+
return r({
|
|
3106
3159
|
checkboxRef: c
|
|
3107
|
-
}), (f, a) => (p(),
|
|
3160
|
+
}), (f, a) => (p(), M(xe, $({
|
|
3108
3161
|
ref_key: "checkboxRef",
|
|
3109
3162
|
ref: c,
|
|
3110
|
-
class:
|
|
3111
|
-
theme:
|
|
3163
|
+
class: o(l),
|
|
3164
|
+
theme: o(t),
|
|
3112
3165
|
value: Se,
|
|
3113
|
-
"is-disabled":
|
|
3166
|
+
"is-disabled": o(u).isDisabled || o(d).isDisabled,
|
|
3114
3167
|
"is-checked": y.value.isChecked,
|
|
3115
3168
|
"checked-style": y.value.checkedStyle
|
|
3116
3169
|
}, s, { onChange: h }), null, 16, ["class", "theme", "is-disabled", "is-checked", "checked-style"]));
|
|
3117
3170
|
}
|
|
3118
|
-
}), Vt = "RadioGroup", [gn,
|
|
3171
|
+
}), Vt = "RadioGroup", [gn, Mt] = F(Vt), Cn = "RadioGroup-module__radiogroup___A36hR", In = "RadioGroup-module__horizontal___QsBvv", ot = {
|
|
3119
3172
|
radiogroup: Cn,
|
|
3120
3173
|
horizontal: In
|
|
3121
|
-
},
|
|
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 = {
|
|
3122
3175
|
item_root: Sn,
|
|
3123
3176
|
itemRoot: Tn,
|
|
3124
3177
|
disabled: An
|
|
3125
|
-
},
|
|
3178
|
+
}, $a = /* @__PURE__ */ g({
|
|
3126
3179
|
__name: "ItemRoot",
|
|
3127
3180
|
props: {
|
|
3128
3181
|
theme: {},
|
|
@@ -3136,15 +3189,15 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3136
3189
|
onBlur: {}
|
|
3137
3190
|
},
|
|
3138
3191
|
setup(e) {
|
|
3139
|
-
const
|
|
3140
|
-
const { theme: n, ...s } =
|
|
3192
|
+
const r = e, i = Mt(zt), t = b(() => i.isDisabled), l = b(() => {
|
|
3193
|
+
const { theme: n, ...s } = r;
|
|
3141
3194
|
return s;
|
|
3142
3195
|
});
|
|
3143
3196
|
return $n(l.value), (n, s) => (p(), v("div", {
|
|
3144
3197
|
class: x([
|
|
3145
|
-
|
|
3198
|
+
o(lt).item_root,
|
|
3146
3199
|
{
|
|
3147
|
-
[
|
|
3200
|
+
[o(lt).disabled]: t.value || e.isDisabled
|
|
3148
3201
|
}
|
|
3149
3202
|
]),
|
|
3150
3203
|
style: V(e.theme)
|
|
@@ -3152,25 +3205,25 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3152
3205
|
I(n.$slots, "default")
|
|
3153
3206
|
], 6));
|
|
3154
3207
|
}
|
|
3155
|
-
}),
|
|
3208
|
+
}), wa = {
|
|
3156
3209
|
"--crm-ui-kit-radio-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
3157
3210
|
}, Rn = "Radio-module__wrapper___hnp4O", Dn = "Radio-module__radio___XkxE9", Bn = "Radio-module__input___ccZzQ", Te = {
|
|
3158
3211
|
wrapper: Rn,
|
|
3159
3212
|
radio: Dn,
|
|
3160
3213
|
input: Bn
|
|
3161
|
-
}, nt = "RadioGroup.Radio",
|
|
3214
|
+
}, nt = "RadioGroup.Radio", Sa = /* @__PURE__ */ g({
|
|
3162
3215
|
__name: "Radio",
|
|
3163
3216
|
props: {
|
|
3164
3217
|
class: { default: "" },
|
|
3165
3218
|
theme: {}
|
|
3166
3219
|
},
|
|
3167
|
-
setup(e, { expose:
|
|
3168
|
-
const i = e, t = k(null), l =
|
|
3220
|
+
setup(e, { expose: r }) {
|
|
3221
|
+
const i = e, t = k(null), l = Mt(nt), {
|
|
3169
3222
|
value: n,
|
|
3170
3223
|
isDisabled: s,
|
|
3171
3224
|
class: c,
|
|
3172
3225
|
...u
|
|
3173
|
-
} = wn(nt), d =
|
|
3226
|
+
} = wn(nt), d = b(() => {
|
|
3174
3227
|
const h = {
|
|
3175
3228
|
name: l.name,
|
|
3176
3229
|
onChange: l.onChange,
|
|
@@ -3184,26 +3237,26 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3184
3237
|
...h
|
|
3185
3238
|
};
|
|
3186
3239
|
});
|
|
3187
|
-
return
|
|
3240
|
+
return r({
|
|
3188
3241
|
inputRef: t
|
|
3189
3242
|
}), (h, y) => (p(), v("div", {
|
|
3190
|
-
class: x([
|
|
3243
|
+
class: x([o(Te).wrapper, o(c)]),
|
|
3191
3244
|
style: V(e.theme)
|
|
3192
3245
|
}, [
|
|
3193
|
-
|
|
3246
|
+
z(fe, $({
|
|
3194
3247
|
ref_key: "inputRef",
|
|
3195
3248
|
ref: t,
|
|
3196
|
-
class: [
|
|
3249
|
+
class: [o(Te).input, i.class],
|
|
3197
3250
|
type: "radio",
|
|
3198
|
-
value:
|
|
3199
|
-
"is-disabled":
|
|
3251
|
+
value: o(n),
|
|
3252
|
+
"is-disabled": o(l).isDisabled || o(s)
|
|
3200
3253
|
}, d.value), null, 16, ["class", "value", "is-disabled"]),
|
|
3201
3254
|
T("span", {
|
|
3202
|
-
class: x(
|
|
3255
|
+
class: x(o(Te).radio)
|
|
3203
3256
|
}, null, 2)
|
|
3204
3257
|
], 6));
|
|
3205
3258
|
}
|
|
3206
|
-
}),
|
|
3259
|
+
}), Ta = {
|
|
3207
3260
|
"--crm-ui-kit-radio-size": "20px",
|
|
3208
3261
|
"--crm-ui-kit-radio-z-index": "3",
|
|
3209
3262
|
"--crm-ui-kit-radio-checked-circle-size": "8px",
|
|
@@ -3220,7 +3273,7 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3220
3273
|
"--crm-ui-kit-radio-focus-visible-border-radius": "50%"
|
|
3221
3274
|
}, Vn = g({
|
|
3222
3275
|
name: Vt
|
|
3223
|
-
}),
|
|
3276
|
+
}), Aa = /* @__PURE__ */ g({
|
|
3224
3277
|
...Vn,
|
|
3225
3278
|
props: {
|
|
3226
3279
|
theme: {},
|
|
@@ -3231,8 +3284,8 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3231
3284
|
isDisabled: { type: Boolean, default: !1 }
|
|
3232
3285
|
},
|
|
3233
3286
|
emits: ["change"],
|
|
3234
|
-
setup(e, { expose:
|
|
3235
|
-
const t = e, l = i, n = k(null), c =
|
|
3287
|
+
setup(e, { expose: r, emit: i }) {
|
|
3288
|
+
const t = e, l = i, n = k(null), c = re({
|
|
3236
3289
|
get name() {
|
|
3237
3290
|
return t.name;
|
|
3238
3291
|
},
|
|
@@ -3250,16 +3303,16 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3250
3303
|
l("change", d.value);
|
|
3251
3304
|
}
|
|
3252
3305
|
});
|
|
3253
|
-
return gn(c),
|
|
3306
|
+
return gn(c), r({
|
|
3254
3307
|
radiogroupRef: n
|
|
3255
3308
|
}), (u, d) => (p(), v("div", $(u.$attrs, {
|
|
3256
3309
|
ref_key: "radiogroupRef",
|
|
3257
3310
|
ref: n,
|
|
3258
3311
|
role: "radiogroup",
|
|
3259
3312
|
class: [
|
|
3260
|
-
|
|
3313
|
+
o(ot).radiogroup,
|
|
3261
3314
|
{
|
|
3262
|
-
[
|
|
3315
|
+
[o(ot).horizontal]: e.orientation === "horizontal"
|
|
3263
3316
|
}
|
|
3264
3317
|
],
|
|
3265
3318
|
style: e.theme
|
|
@@ -3267,86 +3320,92 @@ const St = "FilterTabs", [Zl, Tt] = F(St), Jl = "FilterTabs-module__filter_tabs_
|
|
|
3267
3320
|
I(u.$slots, "default")
|
|
3268
3321
|
], 16));
|
|
3269
3322
|
}
|
|
3270
|
-
}),
|
|
3323
|
+
}), Ra = {
|
|
3271
3324
|
"--crm-ui-kit-radio-group-spacing": "8px"
|
|
3272
|
-
},
|
|
3273
|
-
function
|
|
3325
|
+
}, Mn = "0.0.1";
|
|
3326
|
+
function zn(e, r) {
|
|
3274
3327
|
}
|
|
3275
|
-
const
|
|
3276
|
-
install:
|
|
3277
|
-
version:
|
|
3328
|
+
const Da = {
|
|
3329
|
+
install: zn,
|
|
3330
|
+
version: Mn
|
|
3278
3331
|
};
|
|
3279
3332
|
export {
|
|
3280
|
-
|
|
3333
|
+
On as APPEARANCE_ATTRIBUTE_NAME,
|
|
3281
3334
|
Wl as Accordion,
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3335
|
+
ma as AccordionItemTheme,
|
|
3336
|
+
da as AccordionTheme,
|
|
3337
|
+
ue as Appearance,
|
|
3338
|
+
ze as BaseInput,
|
|
3286
3339
|
ts as Button,
|
|
3287
3340
|
is as ButtonNeutralTheme,
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3341
|
+
rs as ButtonPrimaryTheme,
|
|
3342
|
+
os as ButtonSecondaryTheme,
|
|
3343
|
+
na as Callout,
|
|
3344
|
+
ge as CalloutBaseValues,
|
|
3345
|
+
aa as CalloutErrorTheme,
|
|
3346
|
+
ua as CalloutInfoTheme,
|
|
3347
|
+
ca as CalloutSuccessTheme,
|
|
3348
|
+
sa as CalloutWarningTheme,
|
|
3349
|
+
xe as Checkbox,
|
|
3350
|
+
Ls as CheckboxDarkTheme,
|
|
3351
|
+
ka as CheckboxGroup,
|
|
3352
|
+
ya as CheckboxGroupItemRoot,
|
|
3353
|
+
ga as CheckboxGroupItemRootTheme,
|
|
3354
|
+
xa as CheckboxGroupTheme,
|
|
3355
|
+
Gs as CheckboxLabelTheme,
|
|
3302
3356
|
Pe as CheckboxLightTheme,
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3357
|
+
Ia as CheckboxSelectAll,
|
|
3358
|
+
Ps as CheckboxSmallDarkTheme,
|
|
3359
|
+
Os as CheckboxSmallLightTheme,
|
|
3360
|
+
ta as ContentBlock,
|
|
3361
|
+
ia as ContentBlockTheme,
|
|
3308
3362
|
Ln as DEFAULT_APPEARANCE,
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3363
|
+
pa as FilterTabs,
|
|
3364
|
+
_a as FilterTabsItemRootTheme,
|
|
3365
|
+
ha as FilterTabsTheme,
|
|
3366
|
+
bs as InlineInput,
|
|
3367
|
+
ur as InlineInputInvalidTextTheme,
|
|
3314
3368
|
hs as InlineInputPrimaryFocusedTheme,
|
|
3315
3369
|
ps as InlineInputPrimaryTheme,
|
|
3316
3370
|
cs as Input,
|
|
3317
3371
|
$i as InputDarkTheme,
|
|
3318
3372
|
wi as InputInvalidTextTheme,
|
|
3319
|
-
|
|
3373
|
+
_t as InputLightTheme,
|
|
3320
3374
|
ss as InputPrimaryTheme,
|
|
3321
3375
|
as as InputSecondaryTheme,
|
|
3322
|
-
|
|
3323
|
-
|
|
3376
|
+
ba as ItemRoot,
|
|
3377
|
+
Ca as ItemRootSelectAll,
|
|
3324
3378
|
fs as Label,
|
|
3325
3379
|
zs as LabelGroup,
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3380
|
+
Es as LabelGroupTheme,
|
|
3381
|
+
go as LabelTheme,
|
|
3382
|
+
ra as Link,
|
|
3383
|
+
oa as LinkPrimaryTheme,
|
|
3330
3384
|
Ke as List,
|
|
3331
3385
|
As as ListTheme,
|
|
3332
3386
|
Vs as MultiSelect,
|
|
3333
|
-
|
|
3334
|
-
|
|
3387
|
+
Xs as MultiSelectAll,
|
|
3388
|
+
qs as MultiSelectCombobox,
|
|
3389
|
+
js as MultiSelectComboboxInlineTheme,
|
|
3390
|
+
Us as MultiSelectComboboxTheme,
|
|
3335
3391
|
Hs as MultiSelectGroup,
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
Ms as
|
|
3341
|
-
|
|
3392
|
+
Ys as MultiSelectGroupTheme,
|
|
3393
|
+
Ns as MultiSelectItem,
|
|
3394
|
+
Fs as MultiSelectItemTheme,
|
|
3395
|
+
Js as MultiSelectList,
|
|
3396
|
+
Ms as MultiSelectRootTheme,
|
|
3397
|
+
Ks as MultiSelectSearch,
|
|
3398
|
+
Ws as MultiSelectSearchTheme,
|
|
3399
|
+
Zs as MultiSelectTrigger,
|
|
3400
|
+
Qs as MultiSelectValue,
|
|
3342
3401
|
Ve as PORTAL_TARGETS,
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3402
|
+
ea as Portal,
|
|
3403
|
+
Sa as Radio,
|
|
3404
|
+
Aa as RadioGroup,
|
|
3405
|
+
$a as RadioGroupItemRoot,
|
|
3406
|
+
wa as RadioGroupItemRootTheme,
|
|
3407
|
+
Ra as RadioGroupTheme,
|
|
3408
|
+
Ta as RadioPrimaryTheme,
|
|
3350
3409
|
ys as Select,
|
|
3351
3410
|
$s as SelectArrow,
|
|
3352
3411
|
ws as SelectArrowTheme,
|
|
@@ -3359,36 +3418,36 @@ export {
|
|
|
3359
3418
|
Is as SelectItemTheme,
|
|
3360
3419
|
Ds as SelectList,
|
|
3361
3420
|
As as SelectListTheme,
|
|
3362
|
-
|
|
3421
|
+
le as SelectOption,
|
|
3363
3422
|
gs as SelectRootTheme,
|
|
3364
3423
|
Rs as SelectTrigger,
|
|
3365
3424
|
Bs as SelectValue,
|
|
3366
3425
|
ci as Spinner,
|
|
3367
|
-
|
|
3368
|
-
|
|
3426
|
+
la as SpinnerTheme,
|
|
3427
|
+
_s as Switcher,
|
|
3369
3428
|
vs as SwitcherPrimaryTheme,
|
|
3370
3429
|
pt as THEME_PROVIDER_KEY,
|
|
3371
|
-
|
|
3372
|
-
|
|
3430
|
+
fa as Tab,
|
|
3431
|
+
va as TabPrimaryTheme,
|
|
3373
3432
|
Le as Text,
|
|
3374
3433
|
us as TextArea,
|
|
3375
|
-
|
|
3434
|
+
ve as TextBaseSizesTheme,
|
|
3376
3435
|
Ii as TextErrorTheme,
|
|
3377
|
-
|
|
3436
|
+
Oe as TextPrimaryTheme,
|
|
3378
3437
|
ns as TextSecondaryDarkTheme,
|
|
3379
3438
|
ls as TextSecondaryLightTheme,
|
|
3380
3439
|
ms as TextareaDarkTheme,
|
|
3381
3440
|
ds as TextareaLightTheme,
|
|
3382
3441
|
Kn as ValidationRules,
|
|
3383
|
-
|
|
3442
|
+
fe as VisuallyHiddenInput,
|
|
3384
3443
|
Jn as cn,
|
|
3385
3444
|
Fn as createComponentTheme,
|
|
3386
3445
|
Hn as createPortalId,
|
|
3387
3446
|
Xn as debounce,
|
|
3388
3447
|
Xt as deepMerge,
|
|
3389
|
-
|
|
3448
|
+
Da as default,
|
|
3390
3449
|
Zn as generateId,
|
|
3391
|
-
|
|
3450
|
+
zn as install,
|
|
3392
3451
|
He as isObject,
|
|
3393
3452
|
es as isSupported,
|
|
3394
3453
|
Wn as noop,
|
|
@@ -3399,13 +3458,13 @@ export {
|
|
|
3399
3458
|
Kt as useFieldValidation,
|
|
3400
3459
|
jn as useFormValidation,
|
|
3401
3460
|
Yn as useModalPortal,
|
|
3402
|
-
|
|
3461
|
+
Z as useMultiSelectContext,
|
|
3403
3462
|
Be as usePortal,
|
|
3404
3463
|
ht as useTheme,
|
|
3405
|
-
|
|
3464
|
+
Me as useThemeClassName,
|
|
3406
3465
|
Gn as useThemeMode,
|
|
3407
3466
|
Nn as useThemeVariables,
|
|
3408
3467
|
qn as useTooltipPortal,
|
|
3409
|
-
|
|
3468
|
+
Mn as version
|
|
3410
3469
|
};
|
|
3411
3470
|
//# sourceMappingURL=index.js.map
|