@flysk-tech/amocrm-kommo-vue-ui-kit 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/index.d.ts +897 -118
- package/dist/index.js +2069 -1416
- 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,250 +1,250 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
var
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const
|
|
1
|
+
import { ref as k, computed as _, readonly as G, provide as st, inject as at, onMounted as te, onUnmounted as ct, watch as P, onBeforeUnmount as Yt, defineComponent as y, createElementBlock as v, openBlock as p, mergeProps as I, unref as r, createBlock as E, createElementVNode as T, normalizeClass as x, createTextVNode as L, renderSlot as $, createCommentVNode as A, toDisplayString as D, createVNode as M, Fragment as me, useAttrs as qt, normalizeStyle as V, nextTick as pe, withCtx as z, getCurrentInstance as ut, reactive as ie, useSlots as oe, Teleport as Ae, renderList as Ut, resolveDynamicComponent as Re, withModifiers as he, createStaticVNode as _e, toRef as De, watchEffect as dt } from "vue";
|
|
2
|
+
var ce = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.ALTERNATIVE = "alternative", e))(ce || {});
|
|
3
|
+
const zl = "data-crm-ui-kit-theme", Ll = "default", mt = Symbol("theme-provider");
|
|
4
|
+
function Pl(e) {
|
|
5
|
+
const o = k({
|
|
6
6
|
mode: "light",
|
|
7
7
|
customVariables: {},
|
|
8
8
|
...e
|
|
9
|
-
}),
|
|
10
|
-
|
|
11
|
-
...
|
|
12
|
-
...
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
const
|
|
16
|
-
|
|
9
|
+
}), i = _(() => o.value.mode === "dark" ? ce.ALTERNATIVE : ce.DEFAULT), t = (c) => {
|
|
10
|
+
o.value = {
|
|
11
|
+
...o.value,
|
|
12
|
+
...c
|
|
13
|
+
}, Fe(o.value);
|
|
14
|
+
}, n = (c) => {
|
|
15
|
+
const u = c === ce.ALTERNATIVE ? "dark" : "light";
|
|
16
|
+
t({ mode: u });
|
|
17
17
|
}, l = () => {
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const c = o.value.mode === "light" ? "dark" : "light";
|
|
19
|
+
t({ mode: c });
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
themeConfig:
|
|
24
|
-
appearance:
|
|
25
|
-
setTheme:
|
|
26
|
-
setAppearance:
|
|
21
|
+
Fe(o.value);
|
|
22
|
+
const s = {
|
|
23
|
+
themeConfig: G(o),
|
|
24
|
+
appearance: G(i),
|
|
25
|
+
setTheme: t,
|
|
26
|
+
setAppearance: n,
|
|
27
27
|
toggleTheme: l
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return st(mt, s), s;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
const e =
|
|
31
|
+
function pt() {
|
|
32
|
+
const e = at(mt);
|
|
33
33
|
if (!e)
|
|
34
34
|
throw new Error(
|
|
35
35
|
"useTheme must be used within a component that has provideTheme() called in a parent component"
|
|
36
36
|
);
|
|
37
37
|
return e;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
typeof document > "u" || (document.documentElement.setAttribute("data-theme", e.mode), e.customVariables && Object.entries(e.customVariables).forEach(([
|
|
41
|
-
document.documentElement.style.setProperty(
|
|
39
|
+
function Fe(e) {
|
|
40
|
+
typeof document > "u" || (document.documentElement.setAttribute("data-theme", e.mode), e.customVariables && Object.entries(e.customVariables).forEach(([o, i]) => {
|
|
41
|
+
document.documentElement.style.setProperty(o, i);
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const { themeConfig: e } =
|
|
46
|
-
return
|
|
44
|
+
function Gl() {
|
|
45
|
+
const { themeConfig: e } = pt();
|
|
46
|
+
return _(() => e.value.mode);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const { themeConfig: e } =
|
|
50
|
-
return
|
|
48
|
+
function Nl() {
|
|
49
|
+
const { themeConfig: e } = pt();
|
|
50
|
+
return _(() => e.value.customVariables || {});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const
|
|
52
|
+
function jt(e, o) {
|
|
53
|
+
const i = typeof o == "object" && "value" in o ? o : _(() => o), t = _(() => {
|
|
54
54
|
const l = {};
|
|
55
|
-
return Object.entries(
|
|
56
|
-
const
|
|
57
|
-
l[
|
|
55
|
+
return Object.entries(i.value).forEach(([s, c]) => {
|
|
56
|
+
const u = `--crm-ui-kit-${e}-${s}`;
|
|
57
|
+
l[u] = String(c);
|
|
58
58
|
}), l;
|
|
59
|
-
}),
|
|
59
|
+
}), n = _(() => {
|
|
60
60
|
const l = {};
|
|
61
|
-
return Object.entries(
|
|
62
|
-
l[
|
|
61
|
+
return Object.entries(t.value).forEach(([s, c]) => {
|
|
62
|
+
l[s] = c;
|
|
63
63
|
}), l;
|
|
64
64
|
});
|
|
65
65
|
return {
|
|
66
|
-
cssVariables:
|
|
67
|
-
styleVars:
|
|
66
|
+
cssVariables: G(t),
|
|
67
|
+
styleVars: G(n)
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return function(
|
|
72
|
-
const
|
|
73
|
-
...
|
|
74
|
-
...
|
|
70
|
+
function Fl(e, o) {
|
|
71
|
+
return function(t) {
|
|
72
|
+
const n = _(() => ({
|
|
73
|
+
...o,
|
|
74
|
+
...t
|
|
75
75
|
}));
|
|
76
|
-
return
|
|
76
|
+
return jt(e, n);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const
|
|
79
|
+
function Be(e) {
|
|
80
|
+
const o = k(), i = k(!1), t = (n) => {
|
|
81
81
|
if (typeof document > "u") return null;
|
|
82
|
-
let l = document.querySelector(
|
|
83
|
-
return l || (l = document.createElement("div"), l.setAttribute("id",
|
|
82
|
+
let l = document.querySelector(n);
|
|
83
|
+
return l || (l = document.createElement("div"), l.setAttribute("id", n.replace("#", "")), document.body.appendChild(l)), l;
|
|
84
84
|
};
|
|
85
|
-
return
|
|
86
|
-
typeof document > "u" || (e ?
|
|
87
|
-
}),
|
|
88
|
-
e &&
|
|
85
|
+
return te(() => {
|
|
86
|
+
typeof document > "u" || (e ? o.value = t(e) || document.body : o.value = document.body, i.value = !0);
|
|
87
|
+
}), ct(() => {
|
|
88
|
+
e && o.value && o.value !== document.body && o.value.children.length === 0 && o.value.remove();
|
|
89
89
|
}), {
|
|
90
|
-
portalTarget:
|
|
91
|
-
isReady:
|
|
90
|
+
portalTarget: G(o),
|
|
91
|
+
isReady: G(i)
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Hl(e = "amocrm-portal") {
|
|
95
95
|
return `${e}-${Math.random().toString(36).substr(2, 9)}`;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const Ve = {
|
|
98
98
|
MODAL: "#amocrm-modal-portal",
|
|
99
99
|
TOOLTIP: "#amocrm-tooltip-portal",
|
|
100
100
|
DROPDOWN: "#amocrm-dropdown-portal",
|
|
101
101
|
NOTIFICATION: "#amocrm-notification-portal"
|
|
102
102
|
};
|
|
103
|
-
function
|
|
104
|
-
return
|
|
103
|
+
function Yl() {
|
|
104
|
+
return Be(Ve.MODAL);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function ql() {
|
|
107
|
+
return Be(Ve.TOOLTIP);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function Ul() {
|
|
110
|
+
return Be(Ve.DROPDOWN);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const
|
|
114
|
-
for (const d of
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
return
|
|
112
|
+
function Kt(e, o = []) {
|
|
113
|
+
const i = k(e), t = k(null), n = k(!1), l = _(() => t.value === null), s = () => {
|
|
114
|
+
for (const d of o) {
|
|
115
|
+
const h = d(i.value);
|
|
116
|
+
if (h !== !0)
|
|
117
|
+
return t.value = h, !1;
|
|
118
118
|
}
|
|
119
|
-
return
|
|
120
|
-
}, s = () => {
|
|
121
|
-
i.value = null;
|
|
119
|
+
return t.value = null, !0;
|
|
122
120
|
}, c = () => {
|
|
123
|
-
|
|
121
|
+
t.value = null;
|
|
122
|
+
}, u = () => {
|
|
123
|
+
n.value = !0;
|
|
124
124
|
};
|
|
125
125
|
return {
|
|
126
|
-
value:
|
|
127
|
-
error:
|
|
128
|
-
isValid:
|
|
129
|
-
isDirty:
|
|
130
|
-
validate:
|
|
131
|
-
clearError:
|
|
132
|
-
touch:
|
|
126
|
+
value: i,
|
|
127
|
+
error: G(t),
|
|
128
|
+
isValid: G(l),
|
|
129
|
+
isDirty: G(n),
|
|
130
|
+
validate: s,
|
|
131
|
+
clearError: c,
|
|
132
|
+
touch: u
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const
|
|
137
|
-
Object.keys(e).forEach((
|
|
138
|
-
const
|
|
139
|
-
|
|
135
|
+
function jl(e, o = {}) {
|
|
136
|
+
const i = {}, t = k({});
|
|
137
|
+
Object.keys(e).forEach((a) => {
|
|
138
|
+
const m = o[a] || [];
|
|
139
|
+
i[a] = Kt(e[a], m);
|
|
140
140
|
});
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
if (!
|
|
144
|
-
const
|
|
145
|
-
return !
|
|
146
|
-
}, s = () => {
|
|
147
|
-
let u = !0;
|
|
148
|
-
const h = {};
|
|
149
|
-
return Object.keys(t).forEach((I) => {
|
|
150
|
-
!a(I) && t[I].error.value && (h[I] = t[I].error.value, u = !1);
|
|
151
|
-
}), i.value = h, u;
|
|
141
|
+
const n = _(() => Object.values(i).every((a) => a.isValid.value)), l = _(() => Object.values(i).some((a) => a.error.value !== null)), s = (a) => {
|
|
142
|
+
const m = i[a];
|
|
143
|
+
if (!m) return !0;
|
|
144
|
+
const b = m.validate();
|
|
145
|
+
return !b && m.error.value ? t.value[a] = m.error.value : delete t.value[a], b;
|
|
152
146
|
}, c = () => {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
147
|
+
let a = !0;
|
|
148
|
+
const m = {};
|
|
149
|
+
return Object.keys(i).forEach((b) => {
|
|
150
|
+
!s(b) && i[b].error.value && (m[b] = i[b].error.value, a = !1);
|
|
151
|
+
}), t.value = m, a;
|
|
152
|
+
}, u = () => {
|
|
153
|
+
Object.values(i).forEach((a) => a.clearError()), t.value = {};
|
|
154
|
+
}, d = (a) => {
|
|
155
|
+
var m;
|
|
156
|
+
(m = i[a]) == null || m.clearError(), delete t.value[a];
|
|
157
|
+
}, h = (a, m) => {
|
|
158
|
+
i[a] && (i[a].error.value = m, t.value[a] = m);
|
|
159
|
+
}, g = (a) => {
|
|
160
|
+
var m;
|
|
161
|
+
return (m = i[a]) == null ? void 0 : m.value.value;
|
|
162
|
+
}, f = (a, m) => {
|
|
163
|
+
i[a] && (i[a].value.value = m);
|
|
164
164
|
};
|
|
165
165
|
return {
|
|
166
|
-
fields:
|
|
167
|
-
errors:
|
|
168
|
-
isFormValid:
|
|
169
|
-
hasErrors:
|
|
170
|
-
validateField:
|
|
171
|
-
validateForm:
|
|
172
|
-
clearErrors:
|
|
166
|
+
fields: i,
|
|
167
|
+
errors: G(t),
|
|
168
|
+
isFormValid: G(n),
|
|
169
|
+
hasErrors: G(l),
|
|
170
|
+
validateField: s,
|
|
171
|
+
validateForm: c,
|
|
172
|
+
clearErrors: u,
|
|
173
173
|
clearFieldError: d,
|
|
174
|
-
setFieldError:
|
|
174
|
+
setFieldError: h,
|
|
175
175
|
getFieldValue: g,
|
|
176
|
-
setFieldValue:
|
|
176
|
+
setFieldValue: f
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
required: (e = "Поле обязательно для заполнения") => (
|
|
181
|
-
minLength: (e,
|
|
182
|
-
maxLength: (e,
|
|
179
|
+
const Kl = {
|
|
180
|
+
required: (e = "Поле обязательно для заполнения") => (o) => o == null || o === "" ? e : !0,
|
|
181
|
+
minLength: (e, o) => (i) => i && i.length < e ? o || `Минимальная длина: ${e} символов` : !0,
|
|
182
|
+
maxLength: (e, o) => (i) => i && i.length > e ? o || `Максимальная длина: ${e} символов` : !0,
|
|
183
183
|
email: (e = "Некорректный email адрес") => {
|
|
184
|
-
const
|
|
185
|
-
return (
|
|
184
|
+
const o = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
185
|
+
return (i) => i && !o.test(i) ? e : !0;
|
|
186
186
|
},
|
|
187
|
-
pattern: (e,
|
|
188
|
-
},
|
|
189
|
-
let
|
|
190
|
-
const
|
|
191
|
-
const
|
|
187
|
+
pattern: (e, o = "Некорректный формат") => (i) => i && !e.test(i) ? o : !0
|
|
188
|
+
}, Wt = "crm-ui-kit-theme";
|
|
189
|
+
let Zt = 0;
|
|
190
|
+
const le = /* @__PURE__ */ new Map(), Jt = (e) => {
|
|
191
|
+
const o = `${Wt}-${++Zt}`, i = document.createElement("style"), t = Object.entries(e).map(([n, l]) => `${n}: ${l};`).join(`
|
|
192
192
|
`);
|
|
193
|
-
return
|
|
194
|
-
${
|
|
195
|
-
}`, document.head.appendChild(
|
|
196
|
-
},
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
203
|
-
|
|
193
|
+
return i.textContent = `.${o} {
|
|
194
|
+
${t}
|
|
195
|
+
}`, document.head.appendChild(i), { className: o, styleElement: i };
|
|
196
|
+
}, Ee = (e) => {
|
|
197
|
+
const o = k("");
|
|
198
|
+
let i = e, t;
|
|
199
|
+
const n = (l) => {
|
|
200
|
+
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), le.delete(i))), i = l;
|
|
201
|
+
const s = le.get(l);
|
|
202
|
+
if (s)
|
|
203
|
+
s.refCount++, o.value = s.className, t = s;
|
|
204
204
|
else {
|
|
205
|
-
const { className:
|
|
206
|
-
|
|
205
|
+
const { className: c, styleElement: u } = Jt(l), d = { className: c, styleElement: u, refCount: 1 };
|
|
206
|
+
le.set(l, d), o.value = c, t = d;
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
}),
|
|
212
|
-
},
|
|
209
|
+
return n(e), P(() => e, n), Yt(() => {
|
|
210
|
+
t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), le.delete(i)));
|
|
211
|
+
}), o;
|
|
212
|
+
}, Wl = () => {
|
|
213
213
|
};
|
|
214
|
-
function
|
|
214
|
+
function Zl(e = "amocrm") {
|
|
215
215
|
return `${e}-${Math.random().toString(36).substr(2, 9)}`;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Jl(...e) {
|
|
218
218
|
return e.filter(Boolean).join(" ");
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
let
|
|
222
|
-
return function(...
|
|
220
|
+
function Xl(e, o) {
|
|
221
|
+
let i;
|
|
222
|
+
return function(...n) {
|
|
223
223
|
const l = () => {
|
|
224
|
-
clearTimeout(
|
|
224
|
+
clearTimeout(i), e(...n);
|
|
225
225
|
};
|
|
226
|
-
clearTimeout(
|
|
226
|
+
clearTimeout(i), i = setTimeout(l, o);
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
let
|
|
231
|
-
return function(...
|
|
232
|
-
|
|
229
|
+
function Ql(e, o) {
|
|
230
|
+
let i;
|
|
231
|
+
return function(...t) {
|
|
232
|
+
i || (e.apply(this, t), i = !0, setTimeout(() => i = !1, o));
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function He(e) {
|
|
236
236
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const
|
|
240
|
-
for (const
|
|
241
|
-
if (
|
|
242
|
-
const
|
|
243
|
-
|
|
238
|
+
function Xt(e, o) {
|
|
239
|
+
const i = { ...e };
|
|
240
|
+
for (const t in o)
|
|
241
|
+
if (o.hasOwnProperty(t)) {
|
|
242
|
+
const n = o[t], l = i[t];
|
|
243
|
+
He(n) && He(l) ? i[t] = Xt(l, n) : i[t] = n;
|
|
244
244
|
}
|
|
245
|
-
return
|
|
245
|
+
return i;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function es(e) {
|
|
248
248
|
if (typeof window > "u") return !1;
|
|
249
249
|
switch (e) {
|
|
250
250
|
case "IntersectionObserver":
|
|
@@ -257,11 +257,11 @@ function On(e) {
|
|
|
257
257
|
return !1;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
input:
|
|
262
|
-
placeholder_visible:
|
|
263
|
-
placeholderVisible:
|
|
264
|
-
},
|
|
260
|
+
const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholder_visible___qkWAb", ti = "BaseInput-module__placeholder_visible___qkWAb", Ye = {
|
|
261
|
+
input: Qt,
|
|
262
|
+
placeholder_visible: ei,
|
|
263
|
+
placeholderVisible: ti
|
|
264
|
+
}, ii = ["disabled", "readonly"], Me = /* @__PURE__ */ y({
|
|
265
265
|
inheritAttrs: !1,
|
|
266
266
|
__name: "BaseInput",
|
|
267
267
|
props: {
|
|
@@ -269,26 +269,26 @@ const yt = "BaseInput-module__input___pIIgE", gt = "BaseInput-module__placeholde
|
|
|
269
269
|
isReadonly: { type: Boolean, default: !1 },
|
|
270
270
|
isPlaceholderVisibleOnFocus: { type: Boolean, default: !1 }
|
|
271
271
|
},
|
|
272
|
-
setup(e, { expose:
|
|
273
|
-
const
|
|
274
|
-
return
|
|
275
|
-
inputRef:
|
|
276
|
-
}), (
|
|
272
|
+
setup(e, { expose: o }) {
|
|
273
|
+
const i = k(null);
|
|
274
|
+
return o({
|
|
275
|
+
inputRef: i
|
|
276
|
+
}), (t, n) => (p(), v("input", I(t.$attrs, {
|
|
277
277
|
ref_key: "inputRef",
|
|
278
|
-
ref:
|
|
278
|
+
ref: i,
|
|
279
279
|
class: [
|
|
280
|
-
|
|
280
|
+
r(Ye).input,
|
|
281
281
|
{
|
|
282
|
-
[
|
|
282
|
+
[r(Ye).placeholder_visible]: e.isPlaceholderVisibleOnFocus
|
|
283
283
|
}
|
|
284
284
|
],
|
|
285
285
|
disabled: e.isDisabled,
|
|
286
286
|
readonly: e.isReadonly
|
|
287
|
-
}), null, 16,
|
|
287
|
+
}), null, 16, ii));
|
|
288
288
|
}
|
|
289
|
-
}),
|
|
290
|
-
input:
|
|
291
|
-
},
|
|
289
|
+
}), oi = "VisuallyHiddenInput-module__input___deWRN", ri = {
|
|
290
|
+
input: oi
|
|
291
|
+
}, be = /* @__PURE__ */ y({
|
|
292
292
|
__name: "VisuallyHiddenInput",
|
|
293
293
|
props: {
|
|
294
294
|
isDisabled: { type: Boolean },
|
|
@@ -299,87 +299,87 @@ const yt = "BaseInput-module__input___pIIgE", gt = "BaseInput-module__placeholde
|
|
|
299
299
|
isChecked: { type: Boolean },
|
|
300
300
|
isDefaultChecked: { type: Boolean }
|
|
301
301
|
},
|
|
302
|
-
setup(e, { expose:
|
|
303
|
-
const
|
|
304
|
-
const { isChecked:
|
|
305
|
-
return
|
|
302
|
+
setup(e, { expose: o }) {
|
|
303
|
+
const i = e, t = k(null), n = _(() => {
|
|
304
|
+
const { isChecked: s, isDefaultChecked: c, ...u } = i;
|
|
305
|
+
return s !== void 0 ? { checked: s, ...u } : u;
|
|
306
306
|
}), l = () => {
|
|
307
|
-
var
|
|
308
|
-
return ((
|
|
307
|
+
var s;
|
|
308
|
+
return ((s = t.value) == null ? void 0 : s.inputRef) ?? null;
|
|
309
309
|
};
|
|
310
|
-
return
|
|
311
|
-
if (
|
|
312
|
-
const
|
|
313
|
-
|
|
310
|
+
return te(() => {
|
|
311
|
+
if (i.isDefaultChecked) {
|
|
312
|
+
const s = l();
|
|
313
|
+
s && (s.checked = !0);
|
|
314
314
|
}
|
|
315
|
-
}),
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
}),
|
|
319
|
-
inputRef:
|
|
320
|
-
}), (
|
|
315
|
+
}), i.isChecked !== void 0 && P(() => i.isChecked, (s) => {
|
|
316
|
+
const c = l();
|
|
317
|
+
c && (c.checked = !!s);
|
|
318
|
+
}), o({
|
|
319
|
+
inputRef: t
|
|
320
|
+
}), (s, c) => (p(), E(Me, I({
|
|
321
321
|
ref_key: "inputRef",
|
|
322
|
-
ref:
|
|
323
|
-
class:
|
|
324
|
-
},
|
|
322
|
+
ref: t,
|
|
323
|
+
class: r(ri).input
|
|
324
|
+
}, n.value), null, 16, ["class"]));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
327
|
-
spinner:
|
|
328
|
-
spinner_animation:
|
|
329
|
-
spinnerAnimation:
|
|
330
|
-
centered:
|
|
331
|
-
},
|
|
326
|
+
}), ni = "Spinner-module__spinner___SZoUP", li = "Spinner-module__spinner_animation___LJyzJ", si = "Spinner-module__spinner_animation___LJyzJ", ai = "Spinner-module__centered___vcz-G", qe = {
|
|
327
|
+
spinner: ni,
|
|
328
|
+
spinner_animation: li,
|
|
329
|
+
spinnerAnimation: si,
|
|
330
|
+
centered: ai
|
|
331
|
+
}, ci = /* @__PURE__ */ y({
|
|
332
332
|
__name: "Spinner",
|
|
333
333
|
props: {
|
|
334
334
|
isCentered: { type: Boolean, default: !1 },
|
|
335
335
|
theme: { default: void 0 }
|
|
336
336
|
},
|
|
337
337
|
setup(e) {
|
|
338
|
-
return (
|
|
338
|
+
return (o, i) => (p(), v("span", I({
|
|
339
339
|
class: [
|
|
340
|
-
|
|
341
|
-
{ [
|
|
340
|
+
r(qe).spinner,
|
|
341
|
+
{ [r(qe).centered]: e.isCentered }
|
|
342
342
|
],
|
|
343
343
|
style: e.theme || {}
|
|
344
|
-
},
|
|
344
|
+
}, o.$attrs), null, 16));
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
|
-
function
|
|
348
|
-
const e =
|
|
347
|
+
function ui() {
|
|
348
|
+
const e = k(!1);
|
|
349
349
|
return {
|
|
350
350
|
shouldShowInvalidAnimation: e,
|
|
351
|
-
showInvalidAnimation: (
|
|
351
|
+
showInvalidAnimation: (i = () => {
|
|
352
352
|
}) => {
|
|
353
353
|
e.value = !0, setTimeout(() => {
|
|
354
|
-
e.value = !1,
|
|
354
|
+
e.value = !1, i();
|
|
355
355
|
}, 400);
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
const e =
|
|
359
|
+
function di() {
|
|
360
|
+
const e = k(!1);
|
|
361
361
|
return {
|
|
362
362
|
shouldShowSuccessfulState: e,
|
|
363
|
-
showSuccessfulState: (
|
|
363
|
+
showSuccessfulState: (i = () => {
|
|
364
364
|
}) => {
|
|
365
365
|
e.value = !0, setTimeout(() => {
|
|
366
|
-
e.value = !1,
|
|
366
|
+
e.value = !1, i();
|
|
367
367
|
}, 1500);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
button:
|
|
373
|
-
disabled:
|
|
374
|
-
content:
|
|
375
|
-
before:
|
|
376
|
-
after:
|
|
377
|
-
spinner_container:
|
|
378
|
-
spinnerContainer:
|
|
379
|
-
invalid:
|
|
380
|
-
buttonShakeAnimation:
|
|
381
|
-
success:
|
|
382
|
-
},
|
|
371
|
+
const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdWL", hi = "Button-module__content___PpYVU", _i = "Button-module__before___iPqpW", bi = "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", q = {
|
|
372
|
+
button: mi,
|
|
373
|
+
disabled: pi,
|
|
374
|
+
content: hi,
|
|
375
|
+
before: _i,
|
|
376
|
+
after: bi,
|
|
377
|
+
spinner_container: fi,
|
|
378
|
+
spinnerContainer: vi,
|
|
379
|
+
invalid: ki,
|
|
380
|
+
buttonShakeAnimation: xi,
|
|
381
|
+
success: yi
|
|
382
|
+
}, gi = ["type", "disabled"], Ci = { key: 0 }, ts = /* @__PURE__ */ y({
|
|
383
383
|
__name: "Button",
|
|
384
384
|
props: {
|
|
385
385
|
type: { default: "button" },
|
|
@@ -388,87 +388,81 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
388
388
|
isDisabled: { type: Boolean, default: !1 },
|
|
389
389
|
before: {},
|
|
390
390
|
after: {},
|
|
391
|
-
children: {},
|
|
392
|
-
showInvalidAnimationRef: {},
|
|
393
|
-
showSuccessfulStateRef: {},
|
|
394
391
|
successfulStateText: {},
|
|
395
392
|
isClickableWhileDisabled: { type: Boolean, default: !1 }
|
|
396
393
|
},
|
|
397
394
|
emits: ["click"],
|
|
398
|
-
setup(e, { emit:
|
|
399
|
-
const t = e,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"--crm-ui-kit-spinner-
|
|
411
|
-
"--crm-ui-kit-spinner-border-style": (I = t.theme) == null ? void 0 : I["--crm-ui-kit-button-spinner-border-style"]
|
|
412
|
-
}, g = {
|
|
413
|
-
...p,
|
|
414
|
-
"--crm-ui-kit-spinner-border-color": (H = t.theme) == null ? void 0 : H["--crm-ui-kit-button-spinner-disabled-border-color"]
|
|
395
|
+
setup(e, { expose: o, emit: i }) {
|
|
396
|
+
const t = e, n = i, { shouldShowInvalidAnimation: l, showInvalidAnimation: s } = ui(), { shouldShowSuccessfulState: c, showSuccessfulState: u } = di();
|
|
397
|
+
o({ showInvalidAnimation: s, showSuccessfulState: u });
|
|
398
|
+
const d = _(() => {
|
|
399
|
+
var a, m, b, S, X;
|
|
400
|
+
const g = {
|
|
401
|
+
"--crm-ui-kit-spinner-border-color": (a = t.theme) == null ? void 0 : a["--crm-ui-kit-button-spinner-border-color"],
|
|
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": (b = t.theme) == null ? void 0 : b["--crm-ui-kit-button-spinner-circle-size"],
|
|
404
|
+
"--crm-ui-kit-spinner-border-style": (S = t.theme) == null ? void 0 : S["--crm-ui-kit-button-spinner-border-style"]
|
|
405
|
+
}, f = {
|
|
406
|
+
...g,
|
|
407
|
+
"--crm-ui-kit-spinner-border-color": (X = t.theme) == null ? void 0 : X["--crm-ui-kit-button-spinner-disabled-border-color"]
|
|
415
408
|
};
|
|
416
|
-
return { defaultTheme:
|
|
417
|
-
}),
|
|
418
|
-
t.isDisabled && !t.isClickableWhileDisabled || t.isLoading ||
|
|
409
|
+
return { defaultTheme: g, disabledTheme: f };
|
|
410
|
+
}), h = (g) => {
|
|
411
|
+
t.isDisabled && !t.isClickableWhileDisabled || t.isLoading || n("click", g);
|
|
419
412
|
};
|
|
420
|
-
return (
|
|
413
|
+
return (g, f) => (p(), v("button", I(g.$attrs, {
|
|
421
414
|
type: e.type,
|
|
422
415
|
class: [
|
|
423
|
-
|
|
416
|
+
r(q).button,
|
|
424
417
|
{
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
[
|
|
418
|
+
[r(q).invalid]: r(l),
|
|
419
|
+
[r(q).success]: r(c),
|
|
420
|
+
[r(q).disabled]: e.isDisabled
|
|
428
421
|
}
|
|
429
422
|
],
|
|
430
423
|
style: e.theme,
|
|
431
424
|
disabled: (e.isDisabled || e.isLoading) && !e.isClickableWhileDisabled,
|
|
432
|
-
onClick:
|
|
425
|
+
onClick: h
|
|
433
426
|
}), [
|
|
434
|
-
|
|
435
|
-
class:
|
|
427
|
+
T("span", {
|
|
428
|
+
class: x(r(q).content)
|
|
436
429
|
}, [
|
|
437
|
-
|
|
430
|
+
r(c) ? (p(), v("span", Ci, [
|
|
431
|
+
L(D(e.successfulStateText) + " ", 1),
|
|
432
|
+
e.successfulStateText ? A("", !0) : $(g.$slots, "default", { key: 0 })
|
|
433
|
+
])) : e.isLoading ? (p(), v("span", {
|
|
438
434
|
key: 1,
|
|
439
|
-
class:
|
|
435
|
+
class: x(r(q).spinner_container)
|
|
440
436
|
}, [
|
|
441
|
-
|
|
442
|
-
theme: e.isDisabled ?
|
|
437
|
+
M(ci, {
|
|
438
|
+
theme: e.isDisabled ? d.value.disabledTheme : d.value.defaultTheme,
|
|
443
439
|
"is-centered": !0
|
|
444
440
|
}, null, 8, ["theme"])
|
|
445
|
-
], 2)) : (
|
|
446
|
-
e.before ? (
|
|
441
|
+
], 2)) : (p(), v(me, { key: 2 }, [
|
|
442
|
+
e.before ? (p(), v("span", {
|
|
447
443
|
key: 0,
|
|
448
|
-
class:
|
|
444
|
+
class: x(r(q).before)
|
|
449
445
|
}, [
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
])
|
|
453
|
-
], 2)) : R("", !0),
|
|
454
|
-
$("span", null, [
|
|
455
|
-
y(p.$slots, "default", {}, () => [
|
|
456
|
-
z(T(e.children), 1)
|
|
446
|
+
$(g.$slots, "before", {}, () => [
|
|
447
|
+
L(D(e.before), 1)
|
|
457
448
|
])
|
|
449
|
+
], 2)) : A("", !0),
|
|
450
|
+
T("span", null, [
|
|
451
|
+
$(g.$slots, "default")
|
|
458
452
|
]),
|
|
459
|
-
e.after ? (
|
|
453
|
+
e.after ? (p(), v("span", {
|
|
460
454
|
key: 1,
|
|
461
|
-
class:
|
|
455
|
+
class: x(r(q).after)
|
|
462
456
|
}, [
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
$(g.$slots, "after", {}, () => [
|
|
458
|
+
L(D(e.after), 1)
|
|
465
459
|
])
|
|
466
|
-
], 2)) :
|
|
460
|
+
], 2)) : A("", !0)
|
|
467
461
|
], 64))
|
|
468
462
|
], 2)
|
|
469
|
-
], 16,
|
|
463
|
+
], 16, gi));
|
|
470
464
|
}
|
|
471
|
-
}),
|
|
465
|
+
}), Oe = {
|
|
472
466
|
"--crm-ui-kit-button-z-index": "1",
|
|
473
467
|
"--crm-ui-kit-button-height": "36px",
|
|
474
468
|
"--crm-ui-kit-button-elements-spacing": "4px",
|
|
@@ -493,8 +487,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
493
487
|
"--crm-ui-kit-button-spinner-border-width": "2px",
|
|
494
488
|
"--crm-ui-kit-button-spinner-circle-size": "16px",
|
|
495
489
|
"--crm-ui-kit-button-spinner-border-style": "solid"
|
|
496
|
-
},
|
|
497
|
-
...
|
|
490
|
+
}, is = {
|
|
491
|
+
...Oe,
|
|
498
492
|
"--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
499
493
|
"--crm-ui-kit-button-border-color": "var(--crm-ui-kit-palette-border-primary)",
|
|
500
494
|
"--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
@@ -504,8 +498,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
504
498
|
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
505
499
|
"--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-palette-button-classic-hover-background)",
|
|
506
500
|
"--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
507
|
-
},
|
|
508
|
-
...
|
|
501
|
+
}, os = {
|
|
502
|
+
...Oe,
|
|
509
503
|
"--crm-ui-kit-button-color": "var(--crm-ui-kit-color-white)",
|
|
510
504
|
"--crm-ui-kit-button-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
|
|
511
505
|
"--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
@@ -517,8 +511,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
517
511
|
"--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
|
|
518
512
|
"--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-white)",
|
|
519
513
|
"--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)"
|
|
520
|
-
},
|
|
521
|
-
...
|
|
514
|
+
}, rs = {
|
|
515
|
+
...Oe,
|
|
522
516
|
"--crm-ui-kit-button-height": "30px",
|
|
523
517
|
"--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-secondary-light)",
|
|
524
518
|
"--crm-ui-kit-button-padding": "0px 8px",
|
|
@@ -530,7 +524,7 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
530
524
|
"--crm-ui-kit-button-hover-background-color": "inherit",
|
|
531
525
|
"--crm-ui-kit-button-hover-border-color": "transparent",
|
|
532
526
|
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-secondary-light)"
|
|
533
|
-
},
|
|
527
|
+
}, fe = {
|
|
534
528
|
"--crm-ui-kit-text-size-s-font-size": "11px",
|
|
535
529
|
"--crm-ui-kit-text-size-s-line-height": "15px",
|
|
536
530
|
"--crm-ui-kit-text-size-m-font-size": "13px",
|
|
@@ -541,23 +535,23 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
541
535
|
"--crm-ui-kit-text-size-l-line-height": "20px",
|
|
542
536
|
"--crm-ui-kit-text-size-xl-font-size": "18px",
|
|
543
537
|
"--crm-ui-kit-text-size-xl-line-height": "24px"
|
|
544
|
-
},
|
|
545
|
-
...
|
|
538
|
+
}, ze = {
|
|
539
|
+
...fe,
|
|
546
540
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
547
541
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
548
|
-
},
|
|
549
|
-
...
|
|
542
|
+
}, ns = {
|
|
543
|
+
...fe,
|
|
550
544
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-light)",
|
|
551
545
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
552
|
-
},
|
|
553
|
-
...
|
|
546
|
+
}, ls = {
|
|
547
|
+
...fe,
|
|
554
548
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-dark)",
|
|
555
549
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
556
|
-
},
|
|
557
|
-
...
|
|
550
|
+
}, $i = {
|
|
551
|
+
...fe,
|
|
558
552
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-color-error)",
|
|
559
553
|
"--crm-ui-kit-text-font": "PT Sans"
|
|
560
|
-
},
|
|
554
|
+
}, ht = {
|
|
561
555
|
"--crm-ui-kit-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
562
556
|
"--crm-ui-kit-input-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
563
557
|
"--crm-ui-kit-input-error-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
@@ -579,8 +573,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
579
573
|
"--crm-ui-kit-input-padding-left": "9px",
|
|
580
574
|
"--crm-ui-kit-input-height": "34px",
|
|
581
575
|
"--crm-ui-kit-input-width": "100%"
|
|
582
|
-
},
|
|
583
|
-
...
|
|
576
|
+
}, _t = {
|
|
577
|
+
...ht,
|
|
584
578
|
"--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
585
579
|
"--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
586
580
|
"--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
@@ -593,8 +587,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
593
587
|
"--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
594
588
|
"--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
595
589
|
"--crm-ui-kit-input-disabled-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
596
|
-
},
|
|
597
|
-
...
|
|
590
|
+
}, Ii = {
|
|
591
|
+
...ht,
|
|
598
592
|
"--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
599
593
|
"--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
600
594
|
"--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
@@ -607,25 +601,25 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
607
601
|
"--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
608
602
|
"--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
609
603
|
"--crm-ui-kit-input-disabled-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
610
|
-
},
|
|
611
|
-
wrapper:
|
|
612
|
-
input_wrapper:
|
|
613
|
-
inputWrapper:
|
|
614
|
-
input_container:
|
|
615
|
-
inputContainer:
|
|
616
|
-
input:
|
|
617
|
-
placeholder_visible:
|
|
618
|
-
placeholderVisible:
|
|
619
|
-
after:
|
|
620
|
-
has_after:
|
|
621
|
-
hasAfter:
|
|
622
|
-
invalid:
|
|
623
|
-
disabled:
|
|
624
|
-
invalid_description:
|
|
625
|
-
invalidDescription:
|
|
626
|
-
invalid_description_right:
|
|
627
|
-
invalidDescriptionRight:
|
|
628
|
-
},
|
|
604
|
+
}, wi = $i, ss = _t, as = Ii, 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", Ei = "Input-module__placeholder_visible___O2Udj", Mi = "Input-module__after___dpDKi", Oi = "Input-module__has_after___ADuC4", zi = "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
|
+
wrapper: Si,
|
|
606
|
+
input_wrapper: Ti,
|
|
607
|
+
inputWrapper: Ai,
|
|
608
|
+
input_container: Ri,
|
|
609
|
+
inputContainer: Di,
|
|
610
|
+
input: Bi,
|
|
611
|
+
placeholder_visible: Vi,
|
|
612
|
+
placeholderVisible: Ei,
|
|
613
|
+
after: Mi,
|
|
614
|
+
has_after: Oi,
|
|
615
|
+
hasAfter: zi,
|
|
616
|
+
invalid: Li,
|
|
617
|
+
disabled: Pi,
|
|
618
|
+
invalid_description: Gi,
|
|
619
|
+
invalidDescription: Ni,
|
|
620
|
+
invalid_description_right: Fi,
|
|
621
|
+
invalidDescriptionRight: Hi
|
|
622
|
+
}, cs = /* @__PURE__ */ y({
|
|
629
623
|
inheritAttrs: !1,
|
|
630
624
|
__name: "Input",
|
|
631
625
|
props: {
|
|
@@ -640,86 +634,86 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
640
634
|
modelValue: { default: "" }
|
|
641
635
|
},
|
|
642
636
|
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
643
|
-
setup(e, { expose:
|
|
644
|
-
const
|
|
645
|
-
const { class:
|
|
646
|
-
return
|
|
647
|
-
}), l = e,
|
|
648
|
-
...
|
|
649
|
-
})),
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
}, g = (
|
|
653
|
-
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
},
|
|
657
|
-
|
|
637
|
+
setup(e, { expose: o, emit: i }) {
|
|
638
|
+
const t = qt(), n = _(() => {
|
|
639
|
+
const { class: m, style: b, ...S } = t;
|
|
640
|
+
return S;
|
|
641
|
+
}), l = e, s = i, c = k(null), u = _(() => l.theme || _t), d = _(() => ({
|
|
642
|
+
...wi
|
|
643
|
+
})), h = (m) => {
|
|
644
|
+
const b = m.target;
|
|
645
|
+
s("update:modelValue", b.value), s("input", m);
|
|
646
|
+
}, g = (m) => {
|
|
647
|
+
s("change", m);
|
|
648
|
+
}, f = (m) => {
|
|
649
|
+
s("focus", m);
|
|
650
|
+
}, a = (m) => {
|
|
651
|
+
s("blur", m);
|
|
658
652
|
};
|
|
659
|
-
return
|
|
660
|
-
inputRef:
|
|
661
|
-
}), (
|
|
662
|
-
class:
|
|
663
|
-
style:
|
|
653
|
+
return o({
|
|
654
|
+
inputRef: c
|
|
655
|
+
}), (m, b) => (p(), v("div", {
|
|
656
|
+
class: x([r(Y).wrapper, m.$attrs.class]),
|
|
657
|
+
style: V(u.value)
|
|
664
658
|
}, [
|
|
665
|
-
|
|
666
|
-
class:
|
|
667
|
-
|
|
659
|
+
T("div", {
|
|
660
|
+
class: x([
|
|
661
|
+
r(Y).input_wrapper,
|
|
668
662
|
{
|
|
669
|
-
[
|
|
663
|
+
[r(Y).invalid_description_right]: e.invalidDescriptionPlacement === "right"
|
|
670
664
|
}
|
|
671
665
|
])
|
|
672
666
|
}, [
|
|
673
|
-
|
|
674
|
-
class:
|
|
675
|
-
|
|
667
|
+
T("div", {
|
|
668
|
+
class: x([
|
|
669
|
+
r(Y).input_container,
|
|
676
670
|
{
|
|
677
|
-
[
|
|
678
|
-
[
|
|
671
|
+
[r(Y).invalid]: e.isInvalid,
|
|
672
|
+
[r(Y).disabled]: e.isDisabled
|
|
679
673
|
}
|
|
680
674
|
])
|
|
681
675
|
}, [
|
|
682
|
-
|
|
676
|
+
M(Me, I(n.value, {
|
|
683
677
|
ref_key: "inputRef",
|
|
684
|
-
ref:
|
|
685
|
-
class: { [
|
|
678
|
+
ref: c,
|
|
679
|
+
class: { [r(Y).has_after]: !!e.after || !!m.$slots.after },
|
|
686
680
|
"is-disabled": e.isDisabled,
|
|
687
681
|
"is-readonly": e.isReadonly,
|
|
688
682
|
"is-placeholder-visible-on-focus": e.isPlaceholderVisibleOnFocus,
|
|
689
|
-
onInput:
|
|
683
|
+
onInput: h,
|
|
690
684
|
onChange: g,
|
|
691
|
-
onFocus:
|
|
692
|
-
onBlur:
|
|
685
|
+
onFocus: f,
|
|
686
|
+
onBlur: a
|
|
693
687
|
}), null, 16, ["class", "is-disabled", "is-readonly", "is-placeholder-visible-on-focus"]),
|
|
694
|
-
e.after ||
|
|
688
|
+
e.after || m.$slots.after ? (p(), v("div", {
|
|
695
689
|
key: 0,
|
|
696
|
-
class:
|
|
690
|
+
class: x(r(Y).after)
|
|
697
691
|
}, [
|
|
698
|
-
|
|
699
|
-
|
|
692
|
+
$(m.$slots, "after", {}, () => [
|
|
693
|
+
L(D(e.after), 1)
|
|
700
694
|
])
|
|
701
|
-
], 2)) :
|
|
695
|
+
], 2)) : A("", !0)
|
|
702
696
|
], 2),
|
|
703
|
-
e.isInvalid && e.invalidDescription ? (
|
|
697
|
+
e.isInvalid && e.invalidDescription ? (p(), v("div", {
|
|
704
698
|
key: 0,
|
|
705
|
-
class:
|
|
706
|
-
style:
|
|
707
|
-
},
|
|
699
|
+
class: x(r(Y).invalid_description),
|
|
700
|
+
style: V(d.value)
|
|
701
|
+
}, D(e.invalidDescription), 7)) : A("", !0)
|
|
708
702
|
], 2)
|
|
709
703
|
], 6));
|
|
710
704
|
}
|
|
711
|
-
}),
|
|
712
|
-
wrapper:
|
|
713
|
-
textarea_container:
|
|
714
|
-
textareaContainer:
|
|
715
|
-
textarea:
|
|
716
|
-
placeholder_visible:
|
|
717
|
-
placeholderVisible:
|
|
718
|
-
disabled:
|
|
719
|
-
invalid_description:
|
|
720
|
-
invalidDescription:
|
|
721
|
-
invalid:
|
|
722
|
-
},
|
|
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", Z = {
|
|
706
|
+
wrapper: Yi,
|
|
707
|
+
textarea_container: qi,
|
|
708
|
+
textareaContainer: Ui,
|
|
709
|
+
textarea: ji,
|
|
710
|
+
placeholder_visible: Ki,
|
|
711
|
+
placeholderVisible: Wi,
|
|
712
|
+
disabled: Zi,
|
|
713
|
+
invalid_description: Ji,
|
|
714
|
+
invalidDescription: Xi,
|
|
715
|
+
invalid: Qi
|
|
716
|
+
}, eo = ["disabled", "readonly", "value"], us = /* @__PURE__ */ y({
|
|
723
717
|
inheritAttrs: !1,
|
|
724
718
|
__name: "TextArea",
|
|
725
719
|
props: {
|
|
@@ -734,63 +728,63 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
734
728
|
modelValue: { default: "" }
|
|
735
729
|
},
|
|
736
730
|
emits: ["update:modelValue", "autosize"],
|
|
737
|
-
setup(e, { expose:
|
|
738
|
-
const
|
|
739
|
-
const d =
|
|
740
|
-
|
|
741
|
-
},
|
|
742
|
-
!l.value || !
|
|
743
|
-
l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`,
|
|
731
|
+
setup(e, { expose: o, emit: i }) {
|
|
732
|
+
const t = e, n = i, l = k(null), s = (u) => {
|
|
733
|
+
const d = u.target;
|
|
734
|
+
n("update:modelValue", d.value), t.isAutosized && c();
|
|
735
|
+
}, c = () => {
|
|
736
|
+
!l.value || !t.isAutosized || pe(() => {
|
|
737
|
+
l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`, n("autosize"));
|
|
744
738
|
});
|
|
745
739
|
};
|
|
746
|
-
return
|
|
747
|
-
() =>
|
|
740
|
+
return P(
|
|
741
|
+
() => t.modelValue,
|
|
748
742
|
() => {
|
|
749
|
-
|
|
743
|
+
t.isAutosized && c();
|
|
750
744
|
}
|
|
751
|
-
),
|
|
752
|
-
() =>
|
|
753
|
-
(
|
|
754
|
-
|
|
745
|
+
), P(
|
|
746
|
+
() => t.isAutosized,
|
|
747
|
+
(u) => {
|
|
748
|
+
u && c();
|
|
755
749
|
}
|
|
756
|
-
),
|
|
750
|
+
), o({
|
|
757
751
|
textareaRef: l
|
|
758
|
-
}), (
|
|
759
|
-
class:
|
|
760
|
-
style:
|
|
752
|
+
}), (u, d) => (p(), v("div", {
|
|
753
|
+
class: x(r(Z).wrapper),
|
|
754
|
+
style: V(e.theme)
|
|
761
755
|
}, [
|
|
762
|
-
|
|
763
|
-
class:
|
|
764
|
-
|
|
756
|
+
T("div", {
|
|
757
|
+
class: x([
|
|
758
|
+
r(Z).textarea_container,
|
|
765
759
|
{
|
|
766
|
-
[
|
|
767
|
-
[
|
|
760
|
+
[r(Z).invalid]: e.isInvalid,
|
|
761
|
+
[r(Z).disabled]: e.isDisabled
|
|
768
762
|
}
|
|
769
763
|
])
|
|
770
764
|
}, [
|
|
771
|
-
|
|
765
|
+
T("textarea", I(u.$attrs, {
|
|
772
766
|
ref_key: "textareaRef",
|
|
773
767
|
ref: l,
|
|
774
768
|
class: [
|
|
775
|
-
|
|
769
|
+
r(Z).textarea,
|
|
776
770
|
{
|
|
777
|
-
[
|
|
771
|
+
[r(Z).placeholder_visible]: e.isPlaceholderVisibleOnFocus
|
|
778
772
|
}
|
|
779
773
|
],
|
|
780
774
|
style: { maxHeight: e.maxHeight ? `${e.maxHeight}px` : void 0 },
|
|
781
775
|
disabled: e.isDisabled,
|
|
782
776
|
readonly: e.isReadOnly,
|
|
783
777
|
value: e.modelValue,
|
|
784
|
-
onInput:
|
|
785
|
-
}), null, 16,
|
|
778
|
+
onInput: s
|
|
779
|
+
}), null, 16, eo)
|
|
786
780
|
], 2),
|
|
787
|
-
e.isInvalid && e.invalidDescription ? (
|
|
781
|
+
e.isInvalid && e.invalidDescription ? (p(), v("div", {
|
|
788
782
|
key: 0,
|
|
789
|
-
class:
|
|
790
|
-
},
|
|
783
|
+
class: x(r(Z).invalid_description)
|
|
784
|
+
}, D(e.invalidDescription), 3)) : A("", !0)
|
|
791
785
|
], 6));
|
|
792
786
|
}
|
|
793
|
-
}),
|
|
787
|
+
}), bt = {
|
|
794
788
|
"--crm-ui-kit-textarea-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
|
|
795
789
|
"--crm-ui-kit-textarea-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
796
790
|
"--crm-ui-kit-textarea-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
@@ -815,23 +809,23 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
815
809
|
"--crm-ui-kit-textarea-border-style": "solid",
|
|
816
810
|
"--crm-ui-kit-textarea-scrollbar-thumb-background": "var(--crm-ui-kit-palette-scrollbar-thumb-background)",
|
|
817
811
|
"--crm-ui-kit-textarea-scrollbar-offset": "4px"
|
|
818
|
-
},
|
|
819
|
-
...
|
|
812
|
+
}, ds = {
|
|
813
|
+
...bt,
|
|
820
814
|
"--crm-ui-kit-textarea-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
821
|
-
},
|
|
822
|
-
...
|
|
815
|
+
}, ms = {
|
|
816
|
+
...bt,
|
|
823
817
|
"--crm-ui-kit-textarea-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
824
|
-
},
|
|
825
|
-
text:
|
|
826
|
-
ellipsis:
|
|
827
|
-
line_clamp:
|
|
828
|
-
lineClamp:
|
|
829
|
-
s:
|
|
830
|
-
m:
|
|
831
|
-
ms:
|
|
832
|
-
l:
|
|
833
|
-
xl:
|
|
834
|
-
},
|
|
818
|
+
}, to = "Text-module__text___XXjeA", io = "Text-module__ellipsis___79OkO", oo = "Text-module__line_clamp___joAdp", ro = "Text-module__line_clamp___joAdp", no = "Text-module__s___sApyd", lo = "Text-module__m___SHtLp", so = "Text-module__ms___jfRqe", ao = "Text-module__l___GNH3i", co = "Text-module__xl___qII75", se = {
|
|
819
|
+
text: to,
|
|
820
|
+
ellipsis: io,
|
|
821
|
+
line_clamp: oo,
|
|
822
|
+
lineClamp: ro,
|
|
823
|
+
s: no,
|
|
824
|
+
m: lo,
|
|
825
|
+
ms: so,
|
|
826
|
+
l: ao,
|
|
827
|
+
xl: co
|
|
828
|
+
}, Le = /* @__PURE__ */ y({
|
|
835
829
|
__name: "Text",
|
|
836
830
|
props: {
|
|
837
831
|
size: {},
|
|
@@ -841,29 +835,29 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
841
835
|
style: { default: () => ({}) }
|
|
842
836
|
},
|
|
843
837
|
setup(e) {
|
|
844
|
-
const
|
|
845
|
-
if (!["s", "m", "ms", "l", "xl"].includes(
|
|
838
|
+
const o = e;
|
|
839
|
+
if (!["s", "m", "ms", "l", "xl"].includes(o.size))
|
|
846
840
|
throw new Error("Unknown size was presented");
|
|
847
|
-
const
|
|
848
|
-
return (
|
|
841
|
+
const t = _(() => o.maxRows > 1);
|
|
842
|
+
return (n, l) => (p(), v("span", I(n.$attrs, {
|
|
849
843
|
class: [
|
|
850
|
-
|
|
851
|
-
|
|
844
|
+
r(se).text,
|
|
845
|
+
r(se)[e.size],
|
|
852
846
|
{
|
|
853
|
-
[
|
|
854
|
-
[
|
|
847
|
+
[r(se).ellipsis]: e.isEllipsis,
|
|
848
|
+
[r(se).line_clamp]: t.value
|
|
855
849
|
}
|
|
856
850
|
],
|
|
857
851
|
style: {
|
|
858
|
-
...
|
|
852
|
+
...t.value && { WebkitLineClamp: e.maxRows },
|
|
859
853
|
...e.theme,
|
|
860
854
|
...e.style
|
|
861
855
|
}
|
|
862
856
|
}), [
|
|
863
|
-
|
|
857
|
+
$(n.$slots, "default")
|
|
864
858
|
], 16));
|
|
865
859
|
}
|
|
866
|
-
}),
|
|
860
|
+
}), ft = {
|
|
867
861
|
"--crm-ui-kit-inline-input-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
868
862
|
"--crm-ui-kit-inline-input-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
|
|
869
863
|
"--crm-ui-kit-inline-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
@@ -887,33 +881,33 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
887
881
|
"--crm-ui-kit-inline-input-invalid-description-arrow-width": "4px",
|
|
888
882
|
"--crm-ui-kit-inline-input-invalid-description-arrow-top": "13px",
|
|
889
883
|
"--crm-ui-kit-inline-input-invalid-description-arrow-left": "-5px"
|
|
890
|
-
},
|
|
891
|
-
...
|
|
884
|
+
}, ps = {
|
|
885
|
+
...ft,
|
|
892
886
|
"--crm-ui-kit-inline-input-border-color": "transparent",
|
|
893
887
|
"--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
|
|
894
|
-
},
|
|
895
|
-
...
|
|
888
|
+
}, hs = {
|
|
889
|
+
...ft,
|
|
896
890
|
"--crm-ui-kit-inline-input-border-color": "var(--crm-ui-kit-color-blueberry)",
|
|
897
891
|
"--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
|
|
898
|
-
},
|
|
899
|
-
...
|
|
892
|
+
}, uo = {
|
|
893
|
+
...ze,
|
|
900
894
|
"--crm-ui-kit-text-color": "var(--crm-ui-kit-inline-input-invalid-description-color)",
|
|
901
895
|
"--crm-ui-kit-text-size-m-line-height": "15px"
|
|
902
|
-
},
|
|
903
|
-
wrapper:
|
|
904
|
-
input_container:
|
|
905
|
-
inputContainer:
|
|
906
|
-
after_container:
|
|
907
|
-
afterContainer:
|
|
908
|
-
after:
|
|
909
|
-
has_after:
|
|
910
|
-
hasAfter:
|
|
911
|
-
invalid_description_container:
|
|
912
|
-
invalidDescriptionContainer:
|
|
913
|
-
invalid_description:
|
|
914
|
-
invalidDescription:
|
|
915
|
-
disabled:
|
|
916
|
-
},
|
|
896
|
+
}, mo = "InlineInput-module__wrapper___qm49n", po = "InlineInput-module__input_container___gEtfR", ho = "InlineInput-module__input_container___gEtfR", _o = "InlineInput-module__after_container___zn-12", bo = "InlineInput-module__after_container___zn-12", fo = "InlineInput-module__after___-G08s", vo = "InlineInput-module__has_after___5vayE", ko = "InlineInput-module__has_after___5vayE", xo = "InlineInput-module__invalid_description_container___-HlH-", yo = "InlineInput-module__invalid_description_container___-HlH-", go = "InlineInput-module__invalid_description___lJpY9", Co = "InlineInput-module__invalid_description___lJpY9", $o = "InlineInput-module__disabled___bzvEo", U = {
|
|
897
|
+
wrapper: mo,
|
|
898
|
+
input_container: po,
|
|
899
|
+
inputContainer: ho,
|
|
900
|
+
after_container: _o,
|
|
901
|
+
afterContainer: bo,
|
|
902
|
+
after: fo,
|
|
903
|
+
has_after: vo,
|
|
904
|
+
hasAfter: ko,
|
|
905
|
+
invalid_description_container: xo,
|
|
906
|
+
invalidDescriptionContainer: yo,
|
|
907
|
+
invalid_description: go,
|
|
908
|
+
invalidDescription: Co,
|
|
909
|
+
disabled: $o
|
|
910
|
+
}, _s = /* @__PURE__ */ y({
|
|
917
911
|
inheritAttrs: !1,
|
|
918
912
|
__name: "InlineInput",
|
|
919
913
|
props: {
|
|
@@ -925,59 +919,59 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
925
919
|
after: {},
|
|
926
920
|
theme: {}
|
|
927
921
|
},
|
|
928
|
-
setup(e, { expose:
|
|
929
|
-
const
|
|
930
|
-
return
|
|
931
|
-
inputRef:
|
|
932
|
-
}), (
|
|
933
|
-
class:
|
|
934
|
-
style:
|
|
922
|
+
setup(e, { expose: o }) {
|
|
923
|
+
const i = k(null);
|
|
924
|
+
return o({
|
|
925
|
+
inputRef: i
|
|
926
|
+
}), (t, n) => (p(), v("div", {
|
|
927
|
+
class: x(r(U).wrapper),
|
|
928
|
+
style: V(e.theme)
|
|
935
929
|
}, [
|
|
936
|
-
|
|
937
|
-
class:
|
|
938
|
-
|
|
930
|
+
T("div", {
|
|
931
|
+
class: x([
|
|
932
|
+
r(U).input_container,
|
|
939
933
|
{
|
|
940
|
-
[
|
|
934
|
+
[r(U).disabled]: e.isDisabled
|
|
941
935
|
}
|
|
942
936
|
])
|
|
943
937
|
}, [
|
|
944
|
-
|
|
938
|
+
M(Me, I(t.$attrs, {
|
|
945
939
|
ref_key: "inputRef",
|
|
946
|
-
ref:
|
|
947
|
-
class: { [
|
|
940
|
+
ref: i,
|
|
941
|
+
class: { [r(U).has_after]: !!e.after },
|
|
948
942
|
"is-disabled": e.isDisabled
|
|
949
943
|
}), null, 16, ["class", "is-disabled"])
|
|
950
944
|
], 2),
|
|
951
|
-
e.after ? (
|
|
945
|
+
e.after ? (p(), v("div", {
|
|
952
946
|
key: 0,
|
|
953
|
-
class:
|
|
947
|
+
class: x(r(U).after_container)
|
|
954
948
|
}, [
|
|
955
|
-
|
|
956
|
-
class:
|
|
957
|
-
},
|
|
958
|
-
], 2)) :
|
|
959
|
-
e.isInvalid ? (
|
|
949
|
+
T("div", {
|
|
950
|
+
class: x(r(U).after)
|
|
951
|
+
}, D(e.after), 3)
|
|
952
|
+
], 2)) : A("", !0),
|
|
953
|
+
e.isInvalid ? (p(), v("div", {
|
|
960
954
|
key: 1,
|
|
961
|
-
class:
|
|
955
|
+
class: x(r(U).invalid_description_container)
|
|
962
956
|
}, [
|
|
963
|
-
|
|
957
|
+
M(Le, {
|
|
964
958
|
size: "m",
|
|
965
|
-
theme:
|
|
966
|
-
class:
|
|
959
|
+
theme: r(uo),
|
|
960
|
+
class: x(r(U).invalid_description)
|
|
967
961
|
}, {
|
|
968
|
-
default:
|
|
969
|
-
|
|
962
|
+
default: z(() => [
|
|
963
|
+
L(D(e.invalidDescription), 1)
|
|
970
964
|
]),
|
|
971
965
|
_: 1
|
|
972
966
|
}, 8, ["theme", "class"])
|
|
973
|
-
], 2)) :
|
|
967
|
+
], 2)) : A("", !0)
|
|
974
968
|
], 6));
|
|
975
969
|
}
|
|
976
|
-
}),
|
|
977
|
-
wrapper:
|
|
978
|
-
switcher:
|
|
979
|
-
input:
|
|
980
|
-
},
|
|
970
|
+
}), Io = "Switcher-module__wrapper___Bamq6", wo = "Switcher-module__switcher___MjuSh", So = "Switcher-module__input___-K2Ku", $e = {
|
|
971
|
+
wrapper: Io,
|
|
972
|
+
switcher: wo,
|
|
973
|
+
input: So
|
|
974
|
+
}, bs = /* @__PURE__ */ y({
|
|
981
975
|
inheritAttrs: !1,
|
|
982
976
|
__name: "Switcher",
|
|
983
977
|
props: {
|
|
@@ -990,43 +984,43 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
990
984
|
isDefaultChecked: { type: Boolean },
|
|
991
985
|
theme: {}
|
|
992
986
|
},
|
|
993
|
-
setup(e, { expose:
|
|
994
|
-
const
|
|
995
|
-
return
|
|
996
|
-
inputRef:
|
|
997
|
-
}), (
|
|
998
|
-
class:
|
|
999
|
-
style:
|
|
987
|
+
setup(e, { expose: o }) {
|
|
988
|
+
const i = e, t = k(null);
|
|
989
|
+
return o({
|
|
990
|
+
inputRef: t
|
|
991
|
+
}), (n, l) => (p(), v("div", {
|
|
992
|
+
class: x(r($e).wrapper),
|
|
993
|
+
style: V(e.theme)
|
|
1000
994
|
}, [
|
|
1001
|
-
|
|
1002
|
-
id:
|
|
995
|
+
M(be, I(n.$attrs, {
|
|
996
|
+
id: i.id,
|
|
1003
997
|
ref_key: "inputRef",
|
|
1004
|
-
ref:
|
|
1005
|
-
class:
|
|
998
|
+
ref: t,
|
|
999
|
+
class: r($e).input,
|
|
1006
1000
|
type: "checkbox",
|
|
1007
|
-
"is-disabled":
|
|
1008
|
-
"is-readonly":
|
|
1009
|
-
"is-checked":
|
|
1010
|
-
"is-default-checked":
|
|
1011
|
-
value:
|
|
1012
|
-
name:
|
|
1001
|
+
"is-disabled": i.isDisabled,
|
|
1002
|
+
"is-readonly": i.isReadonly,
|
|
1003
|
+
"is-checked": i.isChecked,
|
|
1004
|
+
"is-default-checked": i.isDefaultChecked,
|
|
1005
|
+
value: i.value,
|
|
1006
|
+
name: i.name
|
|
1013
1007
|
}), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
|
|
1014
|
-
|
|
1015
|
-
class:
|
|
1008
|
+
T("span", {
|
|
1009
|
+
class: x(r($e).switcher)
|
|
1016
1010
|
}, null, 2)
|
|
1017
1011
|
], 6));
|
|
1018
1012
|
}
|
|
1019
|
-
}),
|
|
1020
|
-
wrapper:
|
|
1021
|
-
top:
|
|
1022
|
-
text_container:
|
|
1023
|
-
textContainer:
|
|
1024
|
-
centered:
|
|
1025
|
-
left:
|
|
1026
|
-
right:
|
|
1027
|
-
text_description:
|
|
1028
|
-
textDescription:
|
|
1029
|
-
},
|
|
1013
|
+
}), To = "Label-module__wrapper___NGGOS", Ao = "Label-module__top___-lhYX", Ro = "Label-module__text_container___UrUIG", Do = "Label-module__text_container___UrUIG", Bo = "Label-module__centered___l3-JI", Vo = "Label-module__left___YkSoh", Eo = "Label-module__right___KNrND", Mo = "Label-module__text_description___UScdu", Oo = "Label-module__text_description___UScdu", J = {
|
|
1014
|
+
wrapper: To,
|
|
1015
|
+
top: Ao,
|
|
1016
|
+
text_container: Ro,
|
|
1017
|
+
textContainer: Do,
|
|
1018
|
+
centered: Bo,
|
|
1019
|
+
left: Vo,
|
|
1020
|
+
right: Eo,
|
|
1021
|
+
text_description: Mo,
|
|
1022
|
+
textDescription: Oo
|
|
1023
|
+
}, zo = { key: 0 }, fs = /* @__PURE__ */ y({
|
|
1030
1024
|
__name: "Label",
|
|
1031
1025
|
props: {
|
|
1032
1026
|
theme: {},
|
|
@@ -1035,47 +1029,47 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1035
1029
|
textPlacement: { default: "top" },
|
|
1036
1030
|
isCentered: { type: Boolean, default: !1 }
|
|
1037
1031
|
},
|
|
1038
|
-
setup(e, { expose:
|
|
1039
|
-
const
|
|
1040
|
-
top:
|
|
1041
|
-
left:
|
|
1042
|
-
right:
|
|
1043
|
-
}, l =
|
|
1044
|
-
return
|
|
1045
|
-
labelRef:
|
|
1046
|
-
}), (
|
|
1032
|
+
setup(e, { expose: o }) {
|
|
1033
|
+
const i = e, t = k(null), n = {
|
|
1034
|
+
top: J.top,
|
|
1035
|
+
left: J.left,
|
|
1036
|
+
right: J.right
|
|
1037
|
+
}, l = _(() => n[i.textPlacement]);
|
|
1038
|
+
return o({
|
|
1039
|
+
labelRef: t
|
|
1040
|
+
}), (s, c) => (p(), v("label", I(s.$attrs, {
|
|
1047
1041
|
ref_key: "labelRef",
|
|
1048
|
-
ref:
|
|
1042
|
+
ref: t,
|
|
1049
1043
|
class: [
|
|
1050
1044
|
l.value,
|
|
1051
1045
|
{
|
|
1052
|
-
[
|
|
1046
|
+
[r(J).centered]: e.isCentered
|
|
1053
1047
|
}
|
|
1054
1048
|
],
|
|
1055
1049
|
style: e.theme
|
|
1056
1050
|
}), [
|
|
1057
|
-
e.text || e.description ||
|
|
1051
|
+
e.text || e.description || s.$slots.text || s.$slots.description ? (p(), v("div", {
|
|
1058
1052
|
key: 0,
|
|
1059
|
-
class:
|
|
1053
|
+
class: x(r(J).text_container)
|
|
1060
1054
|
}, [
|
|
1061
|
-
e.text ||
|
|
1062
|
-
|
|
1063
|
-
|
|
1055
|
+
e.text || s.$slots.text ? (p(), v("span", zo, [
|
|
1056
|
+
$(s.$slots, "text", {}, () => [
|
|
1057
|
+
L(D(e.text), 1)
|
|
1064
1058
|
])
|
|
1065
|
-
])) :
|
|
1066
|
-
e.description ||
|
|
1059
|
+
])) : A("", !0),
|
|
1060
|
+
e.description || s.$slots.description ? (p(), v("div", {
|
|
1067
1061
|
key: 1,
|
|
1068
|
-
class:
|
|
1062
|
+
class: x(r(J).text_description)
|
|
1069
1063
|
}, [
|
|
1070
|
-
|
|
1071
|
-
|
|
1064
|
+
$(s.$slots, "description", {}, () => [
|
|
1065
|
+
L(D(e.description), 1)
|
|
1072
1066
|
])
|
|
1073
|
-
], 2)) :
|
|
1074
|
-
], 2)) :
|
|
1075
|
-
|
|
1067
|
+
], 2)) : A("", !0)
|
|
1068
|
+
], 2)) : A("", !0),
|
|
1069
|
+
$(s.$slots, "default")
|
|
1076
1070
|
], 16));
|
|
1077
1071
|
}
|
|
1078
|
-
}),
|
|
1072
|
+
}), vs = {
|
|
1079
1073
|
"--crm-ui-kit-switcher-active-element-color": "var(--crm-ui-kit-palette-active-element-900)",
|
|
1080
1074
|
"--crm-ui-kit-switcher-border-color": "var(--crm-ui-kit-palette-switcher-border-default)",
|
|
1081
1075
|
"--crm-ui-kit-switcher-line-border-radius": "26px",
|
|
@@ -1088,11 +1082,11 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1088
1082
|
"--crm-ui-kit-switcher-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
1089
1083
|
"--crm-ui-kit-switcher-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
1090
1084
|
"--crm-ui-kit-switcher-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
1091
|
-
},
|
|
1092
|
-
button:
|
|
1093
|
-
invalid:
|
|
1094
|
-
disabled:
|
|
1095
|
-
},
|
|
1085
|
+
}, Lo = "SelectButton-module__button___rXDb-", Po = "SelectButton-module__invalid___9dO2z", Go = "SelectButton-module__disabled___sqM8-", Ie = {
|
|
1086
|
+
button: Lo,
|
|
1087
|
+
invalid: Po,
|
|
1088
|
+
disabled: Go
|
|
1089
|
+
}, No = ["disabled"], Fo = "Enter", Ho = "Space", vt = /* @__PURE__ */ y({
|
|
1096
1090
|
__name: "SelectButton",
|
|
1097
1091
|
props: {
|
|
1098
1092
|
theme: {},
|
|
@@ -1100,35 +1094,35 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1100
1094
|
isDisabled: { type: Boolean, default: !1 }
|
|
1101
1095
|
},
|
|
1102
1096
|
emits: ["toggle"],
|
|
1103
|
-
setup(e, { expose:
|
|
1104
|
-
const
|
|
1105
|
-
|
|
1106
|
-
},
|
|
1107
|
-
[
|
|
1097
|
+
setup(e, { expose: o, emit: i }) {
|
|
1098
|
+
const t = i, n = k(null), l = () => {
|
|
1099
|
+
t("toggle");
|
|
1100
|
+
}, s = (c) => {
|
|
1101
|
+
[Fo, Ho].includes(c.code) && (c.preventDefault(), l());
|
|
1108
1102
|
};
|
|
1109
|
-
return
|
|
1110
|
-
buttonRef:
|
|
1111
|
-
}), (
|
|
1103
|
+
return o({
|
|
1104
|
+
buttonRef: n
|
|
1105
|
+
}), (c, u) => (p(), v("button", I({
|
|
1112
1106
|
ref_key: "buttonRef",
|
|
1113
|
-
ref:
|
|
1114
|
-
},
|
|
1107
|
+
ref: n
|
|
1108
|
+
}, c.$attrs, {
|
|
1115
1109
|
type: "button",
|
|
1116
1110
|
class: [
|
|
1117
|
-
|
|
1111
|
+
r(Ie).button,
|
|
1118
1112
|
{
|
|
1119
|
-
[
|
|
1120
|
-
[
|
|
1113
|
+
[r(Ie).invalid]: e.isInvalid,
|
|
1114
|
+
[r(Ie).disabled]: e.isDisabled
|
|
1121
1115
|
}
|
|
1122
1116
|
],
|
|
1123
1117
|
style: e.theme,
|
|
1124
1118
|
disabled: e.isDisabled,
|
|
1125
1119
|
onClick: l,
|
|
1126
|
-
onKeydown:
|
|
1120
|
+
onKeydown: s
|
|
1127
1121
|
}), [
|
|
1128
|
-
|
|
1129
|
-
], 16,
|
|
1122
|
+
$(c.$slots, "default")
|
|
1123
|
+
], 16, No));
|
|
1130
1124
|
}
|
|
1131
|
-
}),
|
|
1125
|
+
}), kt = {
|
|
1132
1126
|
"--crm-ui-kit-select-button-border-width": "1px",
|
|
1133
1127
|
"--crm-ui-kit-select-button-z-index": "10",
|
|
1134
1128
|
"--crm-ui-kit-select-button-height": "36px",
|
|
@@ -1143,35 +1137,35 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1143
1137
|
"--crm-ui-kit-select-button-line-height": "20px",
|
|
1144
1138
|
"--crm-ui-kit-select-button-focus-visible-border": "1px solid var(--crm-ui-kit-palette-border-active)",
|
|
1145
1139
|
"--crm-ui-kit-select-button-color": "var(--crm-ui-kit-palette-text-primary)"
|
|
1146
|
-
},
|
|
1147
|
-
...
|
|
1140
|
+
}, ks = {
|
|
1141
|
+
...kt,
|
|
1148
1142
|
"--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-default)",
|
|
1149
1143
|
"--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
|
|
1150
1144
|
"--crm-ui-kit-select-button-disabled-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
1151
|
-
},
|
|
1152
|
-
...
|
|
1145
|
+
}, xs = {
|
|
1146
|
+
...kt,
|
|
1153
1147
|
"--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)",
|
|
1154
1148
|
"--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
|
|
1155
1149
|
"--crm-ui-kit-select-button-disabled-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)"
|
|
1156
|
-
},
|
|
1157
|
-
const
|
|
1150
|
+
}, F = (e, o) => {
|
|
1151
|
+
const i = Symbol(e);
|
|
1158
1152
|
return [(l) => {
|
|
1159
|
-
|
|
1153
|
+
st(i, l);
|
|
1160
1154
|
}, (l) => {
|
|
1161
|
-
const
|
|
1162
|
-
if (
|
|
1163
|
-
return
|
|
1155
|
+
const s = at(i, o);
|
|
1156
|
+
if (s)
|
|
1157
|
+
return s;
|
|
1164
1158
|
throw new Error(
|
|
1165
1159
|
`\`${l}\` must be used within \`${e}\``
|
|
1166
1160
|
);
|
|
1167
1161
|
}];
|
|
1168
|
-
},
|
|
1169
|
-
select:
|
|
1170
|
-
opened:
|
|
1171
|
-
},
|
|
1172
|
-
name:
|
|
1173
|
-
}),
|
|
1174
|
-
...
|
|
1162
|
+
}, xt = "Select", [Yo, ve] = F(xt), qo = "Select-module__select___U4LyF", Uo = "Select-module__opened___IOv4m", Ue = {
|
|
1163
|
+
select: qo,
|
|
1164
|
+
opened: Uo
|
|
1165
|
+
}, jo = y({
|
|
1166
|
+
name: xt
|
|
1167
|
+
}), ys = /* @__PURE__ */ y({
|
|
1168
|
+
...jo,
|
|
1175
1169
|
props: {
|
|
1176
1170
|
theme: {},
|
|
1177
1171
|
value: {},
|
|
@@ -1182,101 +1176,101 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1182
1176
|
isDefaultOpen: { type: Boolean }
|
|
1183
1177
|
},
|
|
1184
1178
|
emits: ["change", "openChange"],
|
|
1185
|
-
setup(e, { expose:
|
|
1186
|
-
const
|
|
1187
|
-
const
|
|
1188
|
-
return
|
|
1189
|
-
}),
|
|
1190
|
-
() =>
|
|
1191
|
-
),
|
|
1192
|
-
() =>
|
|
1193
|
-
),
|
|
1179
|
+
setup(e, { expose: o, emit: i }) {
|
|
1180
|
+
const n = e, l = i, s = k(null), c = k(n.isDefaultOpen ?? !1), u = k(-1), d = k(n.defaultValue), h = _(() => n.value !== void 0), g = ut(), f = _(() => {
|
|
1181
|
+
const R = g == null ? void 0 : g.vnode;
|
|
1182
|
+
return R != null && R.props ? "isOpen" in R.props || "is-open" in R.props : !1;
|
|
1183
|
+
}), a = _(
|
|
1184
|
+
() => h.value ? n.value : d.value
|
|
1185
|
+
), m = _(
|
|
1186
|
+
() => f.value ? !!n.isOpen : c.value
|
|
1187
|
+
), ge = ie({
|
|
1194
1188
|
get hoveredIndex() {
|
|
1195
|
-
return
|
|
1189
|
+
return u.value;
|
|
1196
1190
|
},
|
|
1197
|
-
set hoveredIndex(
|
|
1198
|
-
|
|
1191
|
+
set hoveredIndex(R) {
|
|
1192
|
+
u.value = R;
|
|
1199
1193
|
},
|
|
1200
|
-
onHoveredIndexChange: (
|
|
1201
|
-
|
|
1194
|
+
onHoveredIndexChange: (R) => {
|
|
1195
|
+
u.value = R;
|
|
1202
1196
|
},
|
|
1203
|
-
onChange: (
|
|
1204
|
-
|
|
1197
|
+
onChange: (R) => {
|
|
1198
|
+
h.value || (d.value = R), l("change", R), c.value = !1;
|
|
1205
1199
|
},
|
|
1206
1200
|
get isOpened() {
|
|
1207
|
-
return
|
|
1201
|
+
return m.value;
|
|
1208
1202
|
},
|
|
1209
|
-
onOpen: (
|
|
1210
|
-
!(
|
|
1203
|
+
onOpen: (R) => {
|
|
1204
|
+
!(n.isDisabled ?? !1) && !f.value && (c.value = R, l("openChange", R));
|
|
1211
1205
|
},
|
|
1212
1206
|
get isDisabled() {
|
|
1213
|
-
return
|
|
1207
|
+
return n.isDisabled ?? !1;
|
|
1214
1208
|
},
|
|
1215
1209
|
get isInvalid() {
|
|
1216
|
-
return
|
|
1210
|
+
return n.isInvalid ?? !1;
|
|
1217
1211
|
},
|
|
1218
1212
|
get value() {
|
|
1219
|
-
return
|
|
1213
|
+
return a.value;
|
|
1220
1214
|
},
|
|
1221
1215
|
get defaultValue() {
|
|
1222
|
-
return
|
|
1216
|
+
return n.defaultValue;
|
|
1223
1217
|
}
|
|
1224
1218
|
});
|
|
1225
|
-
return
|
|
1226
|
-
selectRef:
|
|
1227
|
-
}), (
|
|
1219
|
+
return Yo(ge), o({
|
|
1220
|
+
selectRef: s
|
|
1221
|
+
}), (R, Ne) => (p(), v("div", I(R.$attrs, {
|
|
1228
1222
|
ref_key: "selectRef",
|
|
1229
|
-
ref:
|
|
1223
|
+
ref: s,
|
|
1230
1224
|
class: [
|
|
1231
|
-
|
|
1225
|
+
r(Ue).select,
|
|
1232
1226
|
{
|
|
1233
|
-
[
|
|
1227
|
+
[r(Ue).opened]: m.value
|
|
1234
1228
|
}
|
|
1235
1229
|
],
|
|
1236
1230
|
style: e.theme
|
|
1237
1231
|
}), [
|
|
1238
|
-
|
|
1232
|
+
$(R.$slots, "default")
|
|
1239
1233
|
], 16));
|
|
1240
1234
|
}
|
|
1241
|
-
}),
|
|
1235
|
+
}), gs = {
|
|
1242
1236
|
"--crm-ui-kit-select-z-index": "auto",
|
|
1243
1237
|
"--crm-ui-kit-select-opened-z-index": "60"
|
|
1244
|
-
},
|
|
1245
|
-
text:
|
|
1246
|
-
},
|
|
1238
|
+
}, Ko = "Option-module__text___taK9J", Wo = {
|
|
1239
|
+
text: Ko
|
|
1240
|
+
}, re = /* @__PURE__ */ y({
|
|
1247
1241
|
__name: "Option",
|
|
1248
1242
|
props: {
|
|
1249
1243
|
class: {}
|
|
1250
1244
|
},
|
|
1251
|
-
setup(e, { expose:
|
|
1252
|
-
const
|
|
1253
|
-
...
|
|
1245
|
+
setup(e, { expose: o }) {
|
|
1246
|
+
const i = e, t = {
|
|
1247
|
+
...ze,
|
|
1254
1248
|
"--crm-ui-kit-text-color": "inherit"
|
|
1255
|
-
},
|
|
1256
|
-
return
|
|
1257
|
-
optionRef:
|
|
1258
|
-
}), (l,
|
|
1249
|
+
}, n = k(null);
|
|
1250
|
+
return o({
|
|
1251
|
+
optionRef: n
|
|
1252
|
+
}), (l, s) => (p(), v("span", {
|
|
1259
1253
|
ref_key: "optionRef",
|
|
1260
|
-
ref:
|
|
1261
|
-
class:
|
|
1254
|
+
ref: n,
|
|
1255
|
+
class: x([r(Wo).text, i.class])
|
|
1262
1256
|
}, [
|
|
1263
|
-
|
|
1264
|
-
theme:
|
|
1257
|
+
M(Le, {
|
|
1258
|
+
theme: t,
|
|
1265
1259
|
size: "l",
|
|
1266
1260
|
"is-ellipsis": !0
|
|
1267
1261
|
}, {
|
|
1268
|
-
default:
|
|
1269
|
-
|
|
1262
|
+
default: z(() => [
|
|
1263
|
+
$(l.$slots, "default")
|
|
1270
1264
|
]),
|
|
1271
1265
|
_: 3
|
|
1272
1266
|
})
|
|
1273
1267
|
], 2));
|
|
1274
1268
|
}
|
|
1275
|
-
}),
|
|
1276
|
-
item:
|
|
1277
|
-
selected:
|
|
1278
|
-
hovered:
|
|
1279
|
-
},
|
|
1269
|
+
}), Zo = "Item-module__item___MhuKP", Jo = "Item-module__selected___vlZkB", Xo = "Item-module__hovered___Zad41", we = {
|
|
1270
|
+
item: Zo,
|
|
1271
|
+
selected: Jo,
|
|
1272
|
+
hovered: Xo
|
|
1273
|
+
}, Qo = "Select.Item", Cs = /* @__PURE__ */ y({
|
|
1280
1274
|
__name: "Item",
|
|
1281
1275
|
props: {
|
|
1282
1276
|
item: {},
|
|
@@ -1284,41 +1278,41 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1284
1278
|
class: {},
|
|
1285
1279
|
theme: {}
|
|
1286
1280
|
},
|
|
1287
|
-
setup(e, { expose:
|
|
1288
|
-
const
|
|
1289
|
-
var
|
|
1290
|
-
return ((
|
|
1291
|
-
}),
|
|
1292
|
-
|
|
1281
|
+
setup(e, { expose: o }) {
|
|
1282
|
+
const i = e, t = ve(Qo), n = k(null), l = _(() => {
|
|
1283
|
+
var u;
|
|
1284
|
+
return ((u = t.value) == null ? void 0 : u.value) === i.item.value;
|
|
1285
|
+
}), s = _(() => t.hoveredIndex === i.index), c = (u) => {
|
|
1286
|
+
u.preventDefault(), t.onHoveredIndexChange(i.index), typeof t.onChange == "function" && t.onChange(i.item);
|
|
1293
1287
|
};
|
|
1294
|
-
return
|
|
1295
|
-
itemRef:
|
|
1296
|
-
}), (
|
|
1288
|
+
return o({
|
|
1289
|
+
itemRef: n
|
|
1290
|
+
}), (u, d) => (p(), v("li", I({
|
|
1297
1291
|
ref_key: "itemRef",
|
|
1298
|
-
ref:
|
|
1299
|
-
},
|
|
1292
|
+
ref: n
|
|
1293
|
+
}, u.$attrs, {
|
|
1300
1294
|
class: [
|
|
1301
|
-
|
|
1295
|
+
r(we).item,
|
|
1302
1296
|
{
|
|
1303
|
-
[
|
|
1304
|
-
[
|
|
1297
|
+
[r(we).selected]: l.value,
|
|
1298
|
+
[r(we).hovered]: s.value
|
|
1305
1299
|
},
|
|
1306
|
-
|
|
1300
|
+
i.class
|
|
1307
1301
|
],
|
|
1308
1302
|
style: e.theme,
|
|
1309
|
-
onClick:
|
|
1303
|
+
onClick: c
|
|
1310
1304
|
}), [
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
default:
|
|
1314
|
-
|
|
1305
|
+
$(u.$slots, "default", {}, () => [
|
|
1306
|
+
M(re, null, {
|
|
1307
|
+
default: z(() => [
|
|
1308
|
+
L(D(e.item.option), 1)
|
|
1315
1309
|
]),
|
|
1316
1310
|
_: 1
|
|
1317
1311
|
})
|
|
1318
1312
|
])
|
|
1319
1313
|
], 16));
|
|
1320
1314
|
}
|
|
1321
|
-
}),
|
|
1315
|
+
}), $s = {
|
|
1322
1316
|
"--crm-ui-kit-select-item-padding": "7px 6px 7px 22px",
|
|
1323
1317
|
"--crm-ui-kit-select-item-margin": "0px -11px 0px 0px",
|
|
1324
1318
|
"--crm-ui-kit-select-item-font-size": "var(--crm-ui-kit-base-font-size)",
|
|
@@ -1327,33 +1321,33 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1327
1321
|
"--crm-ui-kit-select-item-selected-background": "var(--crm-ui-kit-icon-check-mark) 8px 14px no-repeat",
|
|
1328
1322
|
"--crm-ui-kit-select-item-hovered-background-color": "var(--crm-ui-kit-palette-background-default)",
|
|
1329
1323
|
"--crm-ui-kit-select-item-hover-background-color": "var(--crm-ui-kit-palette-background-default)"
|
|
1330
|
-
},
|
|
1331
|
-
wrapper:
|
|
1332
|
-
},
|
|
1324
|
+
}, er = "Arrow-module__wrapper___MpIq-", tr = {
|
|
1325
|
+
wrapper: er
|
|
1326
|
+
}, ir = 20, or = 20, Is = /* @__PURE__ */ y({
|
|
1333
1327
|
__name: "Arrow",
|
|
1334
1328
|
props: {
|
|
1335
1329
|
theme: {},
|
|
1336
1330
|
class: {}
|
|
1337
1331
|
},
|
|
1338
|
-
setup(e, { expose:
|
|
1339
|
-
const
|
|
1340
|
-
return
|
|
1341
|
-
arrowRef:
|
|
1342
|
-
}), (
|
|
1332
|
+
setup(e, { expose: o }) {
|
|
1333
|
+
const i = e, t = k(null);
|
|
1334
|
+
return o({
|
|
1335
|
+
arrowRef: t
|
|
1336
|
+
}), (n, l) => (p(), v("span", {
|
|
1343
1337
|
ref_key: "arrowRef",
|
|
1344
|
-
ref:
|
|
1345
|
-
class:
|
|
1346
|
-
style:
|
|
1338
|
+
ref: t,
|
|
1339
|
+
class: x([r(tr).wrapper, i.class]),
|
|
1340
|
+
style: V(e.theme)
|
|
1347
1341
|
}, [
|
|
1348
|
-
|
|
1349
|
-
(
|
|
1342
|
+
$(n.$slots, "default", {}, () => [
|
|
1343
|
+
(p(), v("svg", {
|
|
1350
1344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1351
|
-
width:
|
|
1352
|
-
height:
|
|
1345
|
+
width: ir,
|
|
1346
|
+
height: or,
|
|
1353
1347
|
fill: "none",
|
|
1354
1348
|
viewBox: "0 0 21 21"
|
|
1355
1349
|
}, [...l[0] || (l[0] = [
|
|
1356
|
-
|
|
1350
|
+
T("path", {
|
|
1357
1351
|
fill: "currentColor",
|
|
1358
1352
|
"fill-rule": "evenodd",
|
|
1359
1353
|
d: "m5.25 8.826 1-1 4.5 4.4 4.5-4.4 1 1-5.5 5.5-5.5-5.5Z",
|
|
@@ -1363,39 +1357,39 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1363
1357
|
])
|
|
1364
1358
|
], 6));
|
|
1365
1359
|
}
|
|
1366
|
-
}),
|
|
1360
|
+
}), ws = {
|
|
1367
1361
|
"--crm-ui-kit-select-arrow-width": "20px",
|
|
1368
1362
|
"--crm-ui-kit-select-arrow-height": "20px",
|
|
1369
1363
|
"--crm-ui-kit-select-margin": "0 0 0 auto"
|
|
1370
|
-
},
|
|
1371
|
-
wrapper:
|
|
1372
|
-
},
|
|
1364
|
+
}, rr = "Icon-module__wrapper___LScci", nr = {
|
|
1365
|
+
wrapper: rr
|
|
1366
|
+
}, Ss = /* @__PURE__ */ y({
|
|
1373
1367
|
__name: "Icon",
|
|
1374
1368
|
props: {
|
|
1375
1369
|
theme: {}
|
|
1376
1370
|
},
|
|
1377
|
-
setup(e, { expose:
|
|
1378
|
-
const
|
|
1379
|
-
return
|
|
1380
|
-
iconRef:
|
|
1381
|
-
}), (
|
|
1371
|
+
setup(e, { expose: o }) {
|
|
1372
|
+
const i = k(null);
|
|
1373
|
+
return o({
|
|
1374
|
+
iconRef: i
|
|
1375
|
+
}), (t, n) => t.$slots.default ? (p(), v("span", {
|
|
1382
1376
|
key: 0,
|
|
1383
1377
|
ref_key: "iconRef",
|
|
1384
|
-
ref:
|
|
1385
|
-
class:
|
|
1386
|
-
style:
|
|
1378
|
+
ref: i,
|
|
1379
|
+
class: x(r(nr).wrapper),
|
|
1380
|
+
style: V(e.theme)
|
|
1387
1381
|
}, [
|
|
1388
|
-
|
|
1389
|
-
], 6)) :
|
|
1382
|
+
$(t.$slots, "default")
|
|
1383
|
+
], 6)) : A("", !0);
|
|
1390
1384
|
}
|
|
1391
|
-
}),
|
|
1385
|
+
}), Ts = {
|
|
1392
1386
|
"--crm-ui-kit-select-icon-width": "20px",
|
|
1393
1387
|
"--crm-ui-kit-select-icon-height": "20px",
|
|
1394
1388
|
"--crm-ui-kit-select-icon-margin": "0 6px 0 0"
|
|
1395
|
-
},
|
|
1396
|
-
list:
|
|
1397
|
-
opened:
|
|
1398
|
-
},
|
|
1389
|
+
}, lr = "List-module__list___yt0s5", sr = "List-module__opened___-UDVm", je = {
|
|
1390
|
+
list: lr,
|
|
1391
|
+
opened: sr
|
|
1392
|
+
}, Ke = /* @__PURE__ */ y({
|
|
1399
1393
|
__name: "List",
|
|
1400
1394
|
props: {
|
|
1401
1395
|
theme: {},
|
|
@@ -1403,46 +1397,45 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1403
1397
|
hoveredIndex: { default: 0 }
|
|
1404
1398
|
},
|
|
1405
1399
|
emits: ["select", "toggle", "hoveredIndexChange"],
|
|
1406
|
-
setup(e, { expose:
|
|
1407
|
-
const
|
|
1408
|
-
const { hoveredIndex:
|
|
1400
|
+
setup(e, { expose: o, emit: i }) {
|
|
1401
|
+
const t = e, n = i, l = k(null), s = oe(), c = _(() => s.default ? s.default().length : 0), u = (d) => {
|
|
1402
|
+
const { hoveredIndex: h } = t;
|
|
1409
1403
|
switch (d.code) {
|
|
1410
1404
|
case "ArrowDown":
|
|
1411
|
-
d.preventDefault(),
|
|
1405
|
+
d.preventDefault(), h < c.value - 1 && n("hoveredIndexChange", h + 1);
|
|
1412
1406
|
break;
|
|
1413
1407
|
case "ArrowUp":
|
|
1414
|
-
d.preventDefault(),
|
|
1408
|
+
d.preventDefault(), h > 0 && n("hoveredIndexChange", h - 1);
|
|
1415
1409
|
break;
|
|
1416
1410
|
case "Enter":
|
|
1417
1411
|
case "Space":
|
|
1418
|
-
d.preventDefault(),
|
|
1412
|
+
d.preventDefault(), n("select", h);
|
|
1419
1413
|
break;
|
|
1420
1414
|
case "Escape":
|
|
1421
|
-
d.preventDefault(),
|
|
1415
|
+
d.preventDefault(), n("toggle", !1);
|
|
1422
1416
|
break;
|
|
1423
1417
|
}
|
|
1424
1418
|
};
|
|
1425
|
-
return
|
|
1419
|
+
return o({
|
|
1426
1420
|
listRef: l
|
|
1427
|
-
}), (d,
|
|
1421
|
+
}), (d, h) => e.isOpened ? (p(), v("ul", I({ key: 0 }, d.$attrs, {
|
|
1428
1422
|
ref_key: "listRef",
|
|
1429
1423
|
ref: l,
|
|
1430
1424
|
tabindex: "0",
|
|
1431
1425
|
role: "list",
|
|
1432
1426
|
class: [
|
|
1433
|
-
|
|
1434
|
-
n($e).list,
|
|
1427
|
+
r(je).list,
|
|
1435
1428
|
{
|
|
1436
|
-
[
|
|
1429
|
+
[r(je).opened]: e.isOpened
|
|
1437
1430
|
}
|
|
1438
1431
|
],
|
|
1439
1432
|
style: e.theme,
|
|
1440
|
-
onKeydown:
|
|
1433
|
+
onKeydown: u
|
|
1441
1434
|
}), [
|
|
1442
|
-
|
|
1443
|
-
], 16)) :
|
|
1435
|
+
$(d.$slots, "default")
|
|
1436
|
+
], 16)) : A("", !0);
|
|
1444
1437
|
}
|
|
1445
|
-
}),
|
|
1438
|
+
}), As = {
|
|
1446
1439
|
"--crm-ui-kit-list-top": "0px",
|
|
1447
1440
|
"--crm-ui-kit-list-max-height": "211px",
|
|
1448
1441
|
"--crm-ui-kit-list-z-index": "30",
|
|
@@ -1457,175 +1450,493 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1457
1450
|
"--crm-ui-kit-list-border-radius": "3px",
|
|
1458
1451
|
"--crm-ui-kit-list-outline": "none",
|
|
1459
1452
|
"--crm-ui-kit-list-color": "var(--crm-ui-kit-palette-text-primary)"
|
|
1460
|
-
},
|
|
1453
|
+
}, ar = "Select.Button", Rs = /* @__PURE__ */ y({
|
|
1461
1454
|
__name: "Button",
|
|
1462
1455
|
props: {
|
|
1463
1456
|
theme: {}
|
|
1464
1457
|
},
|
|
1465
|
-
setup(e, { expose:
|
|
1466
|
-
const
|
|
1467
|
-
|
|
1458
|
+
setup(e, { expose: o }) {
|
|
1459
|
+
const i = ve(ar), t = k(null), n = () => {
|
|
1460
|
+
i.onOpen(!i.isOpened);
|
|
1468
1461
|
};
|
|
1469
|
-
return
|
|
1470
|
-
() =>
|
|
1471
|
-
(l,
|
|
1472
|
-
var
|
|
1473
|
-
|
|
1462
|
+
return P(
|
|
1463
|
+
() => i.isOpened,
|
|
1464
|
+
(l, s) => {
|
|
1465
|
+
var c, u;
|
|
1466
|
+
s && !l && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
|
|
1474
1467
|
}
|
|
1475
|
-
),
|
|
1476
|
-
buttonRef:
|
|
1477
|
-
}), (l,
|
|
1468
|
+
), o({
|
|
1469
|
+
buttonRef: t
|
|
1470
|
+
}), (l, s) => (p(), E(vt, I({
|
|
1478
1471
|
ref_key: "buttonRef",
|
|
1479
|
-
ref:
|
|
1472
|
+
ref: t
|
|
1480
1473
|
}, l.$attrs, {
|
|
1481
1474
|
theme: e.theme,
|
|
1482
|
-
"is-disabled":
|
|
1483
|
-
"is-invalid":
|
|
1484
|
-
onToggle:
|
|
1475
|
+
"is-disabled": r(i).isDisabled,
|
|
1476
|
+
"is-invalid": r(i).isInvalid,
|
|
1477
|
+
onToggle: n
|
|
1485
1478
|
}), {
|
|
1486
|
-
default:
|
|
1487
|
-
|
|
1479
|
+
default: z(() => [
|
|
1480
|
+
$(l.$slots, "default")
|
|
1488
1481
|
]),
|
|
1489
1482
|
_: 3
|
|
1490
1483
|
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
1491
1484
|
}
|
|
1492
|
-
}),
|
|
1493
|
-
const
|
|
1494
|
-
e.value && !e.value.contains(
|
|
1485
|
+
}), yt = ({ ref: e, handler: o }) => {
|
|
1486
|
+
const i = (t) => {
|
|
1487
|
+
e.value && !e.value.contains(t.target) && o();
|
|
1495
1488
|
};
|
|
1496
|
-
|
|
1497
|
-
document.addEventListener("mousedown",
|
|
1498
|
-
}),
|
|
1499
|
-
document.removeEventListener("mousedown",
|
|
1489
|
+
te(() => {
|
|
1490
|
+
document.addEventListener("mousedown", i);
|
|
1491
|
+
}), ct(() => {
|
|
1492
|
+
document.removeEventListener("mousedown", i);
|
|
1500
1493
|
});
|
|
1501
|
-
},
|
|
1494
|
+
}, cr = "Select.List", Ds = /* @__PURE__ */ y({
|
|
1502
1495
|
__name: "SelectList",
|
|
1503
1496
|
props: {
|
|
1504
1497
|
theme: {},
|
|
1505
1498
|
class: {},
|
|
1506
1499
|
container: {}
|
|
1507
1500
|
},
|
|
1508
|
-
setup(e, { expose:
|
|
1509
|
-
const
|
|
1510
|
-
var
|
|
1511
|
-
return (
|
|
1512
|
-
}).filter(Boolean) : []),
|
|
1513
|
-
const
|
|
1514
|
-
return
|
|
1515
|
-
(
|
|
1516
|
-
}),
|
|
1517
|
-
}),
|
|
1518
|
-
if (
|
|
1519
|
-
const
|
|
1520
|
-
if (
|
|
1501
|
+
setup(e, { expose: o }) {
|
|
1502
|
+
const i = e, t = ve(cr), n = k(null), l = oe(), s = _(() => l.default ? l.default().map((m) => {
|
|
1503
|
+
var b;
|
|
1504
|
+
return (b = m.props) == null ? void 0 : b.item;
|
|
1505
|
+
}).filter(Boolean) : []), c = _(() => {
|
|
1506
|
+
const a = {};
|
|
1507
|
+
return s.value.forEach((m, b) => {
|
|
1508
|
+
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = b);
|
|
1509
|
+
}), a;
|
|
1510
|
+
}), u = _(() => {
|
|
1511
|
+
if (t.value) {
|
|
1512
|
+
const a = c.value[String(t.value.value)];
|
|
1513
|
+
if (a !== void 0) return a;
|
|
1521
1514
|
}
|
|
1522
|
-
return
|
|
1523
|
-
}), d = (
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1526
|
-
|
|
1527
|
-
}, g = (
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
},
|
|
1531
|
-
var
|
|
1532
|
-
return ((
|
|
1515
|
+
return t.hoveredIndex;
|
|
1516
|
+
}), d = (a) => {
|
|
1517
|
+
t.onHoveredIndexChange(a);
|
|
1518
|
+
}, h = (a) => {
|
|
1519
|
+
t.onOpen(a);
|
|
1520
|
+
}, g = (a) => {
|
|
1521
|
+
const m = s.value[a];
|
|
1522
|
+
m && typeof t.onChange == "function" && t.onChange(m);
|
|
1523
|
+
}, f = _(() => {
|
|
1524
|
+
var a;
|
|
1525
|
+
return ((a = n.value) == null ? void 0 : a.listRef) ?? null;
|
|
1533
1526
|
});
|
|
1534
|
-
return
|
|
1535
|
-
ref:
|
|
1527
|
+
return yt({
|
|
1528
|
+
ref: f,
|
|
1536
1529
|
handler: () => {
|
|
1537
|
-
|
|
1530
|
+
t.isOpened && t.onOpen(!1);
|
|
1538
1531
|
}
|
|
1539
|
-
}),
|
|
1540
|
-
() =>
|
|
1541
|
-
(
|
|
1542
|
-
var
|
|
1543
|
-
|
|
1532
|
+
}), P(
|
|
1533
|
+
() => t.isOpened,
|
|
1534
|
+
(a) => {
|
|
1535
|
+
var m, b;
|
|
1536
|
+
a && ((b = (m = n.value) == null ? void 0 : m.listRef) == null || b.focus());
|
|
1544
1537
|
}
|
|
1545
|
-
),
|
|
1546
|
-
listRef:
|
|
1547
|
-
}), (
|
|
1538
|
+
), o({
|
|
1539
|
+
listRef: n
|
|
1540
|
+
}), (a, m) => e.container ? (p(), E(Ae, {
|
|
1548
1541
|
key: 0,
|
|
1549
1542
|
to: e.container
|
|
1550
1543
|
}, [
|
|
1551
|
-
|
|
1544
|
+
M(Ke, {
|
|
1552
1545
|
ref_key: "listRef",
|
|
1553
|
-
ref:
|
|
1554
|
-
class:
|
|
1555
|
-
"is-opened":
|
|
1546
|
+
ref: n,
|
|
1547
|
+
class: x(i.class),
|
|
1548
|
+
"is-opened": r(t).isOpened,
|
|
1556
1549
|
theme: e.theme,
|
|
1557
|
-
"hovered-index":
|
|
1550
|
+
"hovered-index": u.value,
|
|
1558
1551
|
onHoveredIndexChange: d,
|
|
1559
|
-
onToggle:
|
|
1552
|
+
onToggle: h,
|
|
1560
1553
|
onSelect: g
|
|
1561
1554
|
}, {
|
|
1562
|
-
default:
|
|
1563
|
-
|
|
1555
|
+
default: z(() => [
|
|
1556
|
+
$(a.$slots, "default")
|
|
1564
1557
|
]),
|
|
1565
1558
|
_: 3
|
|
1566
1559
|
}, 8, ["class", "is-opened", "theme", "hovered-index"])
|
|
1567
|
-
], 8, ["to"])) : (
|
|
1560
|
+
], 8, ["to"])) : (p(), E(Ke, {
|
|
1568
1561
|
key: 1,
|
|
1569
1562
|
ref_key: "listRef",
|
|
1570
|
-
ref:
|
|
1571
|
-
class:
|
|
1572
|
-
"is-opened":
|
|
1563
|
+
ref: n,
|
|
1564
|
+
class: x(i.class),
|
|
1565
|
+
"is-opened": r(t).isOpened,
|
|
1573
1566
|
theme: e.theme,
|
|
1574
|
-
"hovered-index":
|
|
1567
|
+
"hovered-index": u.value,
|
|
1575
1568
|
onHoveredIndexChange: d,
|
|
1576
|
-
onToggle:
|
|
1569
|
+
onToggle: h,
|
|
1577
1570
|
onSelect: g
|
|
1578
1571
|
}, {
|
|
1579
|
-
default:
|
|
1580
|
-
|
|
1572
|
+
default: z(() => [
|
|
1573
|
+
$(a.$slots, "default")
|
|
1581
1574
|
]),
|
|
1582
1575
|
_: 3
|
|
1583
1576
|
}, 8, ["class", "is-opened", "theme", "hovered-index"]));
|
|
1584
1577
|
}
|
|
1585
|
-
}),
|
|
1578
|
+
}), ur = "Select.Value", Bs = /* @__PURE__ */ y({
|
|
1586
1579
|
__name: "Value",
|
|
1587
1580
|
props: {
|
|
1588
1581
|
placeholder: { default: "" },
|
|
1589
1582
|
class: { default: "" },
|
|
1590
1583
|
name: {}
|
|
1591
1584
|
},
|
|
1592
|
-
setup(e, { expose:
|
|
1593
|
-
const
|
|
1594
|
-
return
|
|
1585
|
+
setup(e, { expose: o }) {
|
|
1586
|
+
const i = e, t = ve(ur), n = _(() => !t.value), l = k(null);
|
|
1587
|
+
return o({
|
|
1595
1588
|
optionRef: l
|
|
1596
|
-
}), (
|
|
1597
|
-
var
|
|
1598
|
-
return
|
|
1599
|
-
|
|
1589
|
+
}), (s, c) => {
|
|
1590
|
+
var u;
|
|
1591
|
+
return p(), v(me, null, [
|
|
1592
|
+
s.$slots.default ? $(s.$slots, "default", { key: 0 }) : (p(), E(re, {
|
|
1600
1593
|
key: 1,
|
|
1601
1594
|
ref_key: "optionRef",
|
|
1602
1595
|
ref: l,
|
|
1603
|
-
class:
|
|
1596
|
+
class: x(i.class)
|
|
1604
1597
|
}, {
|
|
1605
|
-
default:
|
|
1598
|
+
default: z(() => {
|
|
1606
1599
|
var d;
|
|
1607
1600
|
return [
|
|
1608
|
-
|
|
1601
|
+
L(D(n.value ? e.placeholder : (d = r(t).value) == null ? void 0 : d.option), 1)
|
|
1609
1602
|
];
|
|
1610
1603
|
}),
|
|
1611
1604
|
_: 1
|
|
1612
1605
|
}, 8, ["class"])),
|
|
1613
|
-
|
|
1606
|
+
M(be, {
|
|
1614
1607
|
name: e.name,
|
|
1615
1608
|
type: "hidden",
|
|
1616
|
-
value: (
|
|
1609
|
+
value: (u = r(t).value) == null ? void 0 : u.value
|
|
1617
1610
|
}, null, 8, ["name", "value"])
|
|
1618
1611
|
], 64);
|
|
1619
1612
|
};
|
|
1620
1613
|
}
|
|
1621
|
-
}),
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1614
|
+
}), gt = "MultiSelect", [dr, W] = F(gt), mr = "MultiSelect-module__multiselect___93yRK", pr = "MultiSelect-module__opened___thrIy", We = {
|
|
1615
|
+
multiselect: mr,
|
|
1616
|
+
opened: pr
|
|
1617
|
+
}, hr = y({
|
|
1618
|
+
name: gt
|
|
1619
|
+
}), Vs = /* @__PURE__ */ y({
|
|
1620
|
+
...hr,
|
|
1621
|
+
props: {
|
|
1622
|
+
theme: {},
|
|
1623
|
+
mode: { default: "multi" },
|
|
1624
|
+
groupSelectable: { type: Boolean, default: !1 },
|
|
1625
|
+
value: {},
|
|
1626
|
+
defaultValue: {},
|
|
1627
|
+
items: {},
|
|
1628
|
+
isInvalid: { type: Boolean },
|
|
1629
|
+
isDisabled: { type: Boolean },
|
|
1630
|
+
isOpen: { type: Boolean },
|
|
1631
|
+
isDefaultOpen: { type: Boolean }
|
|
1632
|
+
},
|
|
1633
|
+
emits: ["change", "openChange"],
|
|
1634
|
+
setup(e, { expose: o, emit: i }) {
|
|
1635
|
+
const t = e, n = i, l = k(null), s = k(t.isDefaultOpen ?? !1), c = k(null), u = k(""), d = k(
|
|
1636
|
+
new Set((t.defaultValue ?? []).map((C) => C.value))
|
|
1637
|
+
), h = _(() => t.value !== void 0), g = ut(), f = _(() => {
|
|
1638
|
+
const C = g == null ? void 0 : g.vnode;
|
|
1639
|
+
return C != null && C.props ? "isOpen" in C.props || "is-open" in C.props : !1;
|
|
1640
|
+
}), a = _(() => h.value ? new Set((t.value ?? []).map((C) => C.value)) : d.value), m = _(
|
|
1641
|
+
() => f.value ? !!t.isOpen : s.value
|
|
1642
|
+
), b = _(() => t.items ?? []), S = _(() => {
|
|
1643
|
+
const C = a.value;
|
|
1644
|
+
return b.value.filter((w) => C.has(w.value));
|
|
1645
|
+
}), X = (C) => {
|
|
1646
|
+
(t.isDisabled ?? !1) || (f.value || (s.value = C), C || (u.value = ""), n("openChange", C));
|
|
1647
|
+
}, ge = (C) => {
|
|
1648
|
+
if (t.mode === "single")
|
|
1649
|
+
h.value || (d.value = /* @__PURE__ */ new Set([C.value])), n("change", [C]), X(!1);
|
|
1650
|
+
else {
|
|
1651
|
+
const w = new Set(a.value);
|
|
1652
|
+
w.has(C.value) ? w.delete(C.value) : w.add(C.value), h.value || (d.value = w);
|
|
1653
|
+
const O = b.value.filter((B) => w.has(B.value));
|
|
1654
|
+
n("change", O);
|
|
1655
|
+
}
|
|
1656
|
+
}, R = (C) => {
|
|
1657
|
+
const w = b.value.filter((N) => N.group === C);
|
|
1658
|
+
if (w.length === 0) return;
|
|
1659
|
+
const O = w.every((N) => a.value.has(N.value)), B = new Set(a.value);
|
|
1660
|
+
O ? w.forEach((N) => B.delete(N.value)) : w.forEach((N) => B.add(N.value)), h.value || (d.value = B);
|
|
1661
|
+
const H = b.value.filter((N) => B.has(N.value));
|
|
1662
|
+
n("change", H);
|
|
1663
|
+
}, Ne = () => {
|
|
1664
|
+
const C = b.value.length > 0 && b.value.every((B) => a.value.has(B.value)), w = /* @__PURE__ */ new Set();
|
|
1665
|
+
C || b.value.forEach((B) => w.add(B.value)), h.value || (d.value = w);
|
|
1666
|
+
const O = b.value.filter((B) => w.has(B.value));
|
|
1667
|
+
n("change", O);
|
|
1668
|
+
}, ne = (C) => b.value.filter((w) => w.group === C), Mt = (C) => {
|
|
1669
|
+
const w = ne(C);
|
|
1670
|
+
return w.length > 0 && w.every((O) => a.value.has(O.value));
|
|
1671
|
+
}, Ot = (C) => {
|
|
1672
|
+
const w = ne(C), O = w.filter((B) => a.value.has(B.value)).length;
|
|
1673
|
+
return O > 0 && O < w.length;
|
|
1674
|
+
}, zt = () => b.value.length > 0 && b.value.every((C) => a.value.has(C.value)), Lt = () => {
|
|
1675
|
+
const C = b.value.filter((w) => a.value.has(w.value)).length;
|
|
1676
|
+
return C > 0 && C < b.value.length;
|
|
1677
|
+
}, Pt = (C) => {
|
|
1678
|
+
c.value = C;
|
|
1679
|
+
}, Gt = (C) => {
|
|
1680
|
+
u.value = C;
|
|
1681
|
+
}, Nt = (C) => {
|
|
1682
|
+
const w = u.value.trim().toLowerCase();
|
|
1683
|
+
return w ? C.option.toLowerCase().includes(w) : !0;
|
|
1684
|
+
}, Ft = (C) => {
|
|
1685
|
+
const w = u.value.trim().toLowerCase();
|
|
1686
|
+
return w ? ne(C).some((B) => B.option.toLowerCase().includes(w)) : !0;
|
|
1687
|
+
};
|
|
1688
|
+
P(
|
|
1689
|
+
() => t.items,
|
|
1690
|
+
(C) => {
|
|
1691
|
+
if (!C) return;
|
|
1692
|
+
const w = new Set(C.map((H) => H.value)), O = a.value, B = [...O].filter((H) => !w.has(H));
|
|
1693
|
+
if (B.length > 0) {
|
|
1694
|
+
const H = new Set(O);
|
|
1695
|
+
B.forEach((Ce) => H.delete(Ce)), h.value || (d.value = H);
|
|
1696
|
+
const N = C.filter((Ce) => H.has(Ce.value));
|
|
1697
|
+
n("change", N);
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
{ deep: !0 }
|
|
1701
|
+
);
|
|
1702
|
+
const Ht = ie({
|
|
1703
|
+
get values() {
|
|
1704
|
+
return a.value;
|
|
1705
|
+
},
|
|
1706
|
+
get selectedItems() {
|
|
1707
|
+
return S.value;
|
|
1708
|
+
},
|
|
1709
|
+
get isOpened() {
|
|
1710
|
+
return m.value;
|
|
1711
|
+
},
|
|
1712
|
+
get isDisabled() {
|
|
1713
|
+
return t.isDisabled ?? !1;
|
|
1714
|
+
},
|
|
1715
|
+
get isInvalid() {
|
|
1716
|
+
return t.isInvalid ?? !1;
|
|
1717
|
+
},
|
|
1718
|
+
get hoveredItemValue() {
|
|
1719
|
+
return c.value;
|
|
1720
|
+
},
|
|
1721
|
+
get mode() {
|
|
1722
|
+
return t.mode ?? "multi";
|
|
1723
|
+
},
|
|
1724
|
+
get groupSelectable() {
|
|
1725
|
+
return t.groupSelectable ?? !1;
|
|
1726
|
+
},
|
|
1727
|
+
get searchQuery() {
|
|
1728
|
+
return u.value;
|
|
1729
|
+
},
|
|
1730
|
+
onOpen: X,
|
|
1731
|
+
onToggleItem: ge,
|
|
1732
|
+
onToggleGroup: R,
|
|
1733
|
+
onToggleAll: Ne,
|
|
1734
|
+
onHoveredItemChange: Pt,
|
|
1735
|
+
onSearchChange: Gt,
|
|
1736
|
+
isItemMatchingSearch: Nt,
|
|
1737
|
+
isGroupMatchingSearch: Ft,
|
|
1738
|
+
getGroupItems: ne,
|
|
1739
|
+
isGroupAllSelected: Mt,
|
|
1740
|
+
isGroupPartiallySelected: Ot,
|
|
1741
|
+
isAllSelected: zt,
|
|
1742
|
+
isPartiallySelected: Lt
|
|
1743
|
+
});
|
|
1744
|
+
return dr(Ht), o({
|
|
1745
|
+
multiSelectRef: l
|
|
1746
|
+
}), (C, w) => (p(), v("div", I(C.$attrs, {
|
|
1747
|
+
ref_key: "multiSelectRef",
|
|
1748
|
+
ref: l,
|
|
1749
|
+
class: [
|
|
1750
|
+
r(We).multiselect,
|
|
1751
|
+
{
|
|
1752
|
+
[r(We).opened]: m.value
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
style: e.theme
|
|
1756
|
+
}), [
|
|
1757
|
+
$(C.$slots, "default")
|
|
1758
|
+
], 16));
|
|
1759
|
+
}
|
|
1760
|
+
}), Es = {
|
|
1761
|
+
"--crm-ui-kit-multiselect-z-index": "auto",
|
|
1762
|
+
"--crm-ui-kit-multiselect-opened-z-index": "60"
|
|
1763
|
+
}, _r = "MultiSelect.Trigger", Ms = /* @__PURE__ */ y({
|
|
1764
|
+
__name: "Trigger",
|
|
1765
|
+
props: {
|
|
1766
|
+
theme: {}
|
|
1767
|
+
},
|
|
1768
|
+
setup(e, { expose: o }) {
|
|
1769
|
+
const i = W(_r), t = k(null), n = () => {
|
|
1770
|
+
i.onOpen(!i.isOpened);
|
|
1771
|
+
};
|
|
1772
|
+
return P(
|
|
1773
|
+
() => i.isOpened,
|
|
1774
|
+
(l, s) => {
|
|
1775
|
+
var c, u;
|
|
1776
|
+
s && !l && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
|
|
1777
|
+
}
|
|
1778
|
+
), o({
|
|
1779
|
+
buttonRef: t
|
|
1780
|
+
}), (l, s) => (p(), E(vt, I({
|
|
1781
|
+
ref_key: "buttonRef",
|
|
1782
|
+
ref: t
|
|
1783
|
+
}, l.$attrs, {
|
|
1784
|
+
theme: e.theme,
|
|
1785
|
+
"is-disabled": r(i).isDisabled,
|
|
1786
|
+
"is-invalid": r(i).isInvalid,
|
|
1787
|
+
onToggle: n
|
|
1788
|
+
}), {
|
|
1789
|
+
default: z(() => [
|
|
1790
|
+
$(l.$slots, "default")
|
|
1791
|
+
]),
|
|
1792
|
+
_: 3
|
|
1793
|
+
}, 16, ["theme", "is-disabled", "is-invalid"]));
|
|
1794
|
+
}
|
|
1795
|
+
}), br = "MultiSelectList-module__list___lKhqs", fr = "MultiSelectList-module__empty___4vLBH", ae = {
|
|
1796
|
+
list: br,
|
|
1797
|
+
empty: fr
|
|
1798
|
+
}, vr = ["aria-multiselectable"], kr = ["aria-multiselectable"], xr = "MultiSelect.List", Os = /* @__PURE__ */ y({
|
|
1799
|
+
__name: "MultiSelectList",
|
|
1800
|
+
props: {
|
|
1801
|
+
theme: {},
|
|
1802
|
+
class: {},
|
|
1803
|
+
container: {},
|
|
1804
|
+
emptyText: { default: "Нет элементов" }
|
|
1805
|
+
},
|
|
1806
|
+
setup(e, { expose: o }) {
|
|
1807
|
+
const i = e, t = W(xr), n = k(null), l = oe();
|
|
1808
|
+
function s(a) {
|
|
1809
|
+
var b;
|
|
1810
|
+
const m = [];
|
|
1811
|
+
for (const S of a)
|
|
1812
|
+
(b = S.props) != null && b.item && m.push(S.props.item), Array.isArray(S.children) && m.push(...s(S.children));
|
|
1813
|
+
return m;
|
|
1814
|
+
}
|
|
1815
|
+
const c = _(() => {
|
|
1816
|
+
if (!l.default) return [];
|
|
1817
|
+
const a = l.default();
|
|
1818
|
+
return s(a);
|
|
1819
|
+
}), u = _(() => c.value.length), d = _(() => {
|
|
1820
|
+
const a = {};
|
|
1821
|
+
return c.value.forEach((m, b) => {
|
|
1822
|
+
(m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = b);
|
|
1823
|
+
}), a;
|
|
1824
|
+
}), h = k(-1), g = _(() => {
|
|
1825
|
+
const a = t.hoveredItemValue;
|
|
1826
|
+
return a === null ? -1 : d.value[String(a)] ?? -1;
|
|
1827
|
+
});
|
|
1828
|
+
P(
|
|
1829
|
+
() => t.isOpened,
|
|
1830
|
+
(a) => {
|
|
1831
|
+
a && (h.value = g.value);
|
|
1832
|
+
}
|
|
1833
|
+
);
|
|
1834
|
+
const f = (a) => {
|
|
1835
|
+
const m = u.value;
|
|
1836
|
+
let b = h.value;
|
|
1837
|
+
switch (a.code) {
|
|
1838
|
+
case "ArrowDown":
|
|
1839
|
+
if (a.preventDefault(), b < m - 1) {
|
|
1840
|
+
b++, h.value = b;
|
|
1841
|
+
const S = c.value[b];
|
|
1842
|
+
S && t.onHoveredItemChange(S.value);
|
|
1843
|
+
}
|
|
1844
|
+
break;
|
|
1845
|
+
case "ArrowUp":
|
|
1846
|
+
if (a.preventDefault(), b > 0) {
|
|
1847
|
+
b--, h.value = b;
|
|
1848
|
+
const S = c.value[b];
|
|
1849
|
+
S && t.onHoveredItemChange(S.value);
|
|
1850
|
+
}
|
|
1851
|
+
break;
|
|
1852
|
+
case "Enter":
|
|
1853
|
+
case "Space":
|
|
1854
|
+
if (a.preventDefault(), b >= 0 && b < m) {
|
|
1855
|
+
const S = c.value[b];
|
|
1856
|
+
S && t.onToggleItem(S);
|
|
1857
|
+
}
|
|
1858
|
+
break;
|
|
1859
|
+
case "Escape":
|
|
1860
|
+
a.preventDefault(), t.onOpen(!1);
|
|
1861
|
+
break;
|
|
1862
|
+
}
|
|
1863
|
+
};
|
|
1864
|
+
return yt({
|
|
1865
|
+
ref: n,
|
|
1866
|
+
handler: () => {
|
|
1867
|
+
t.isOpened && t.onOpen(!1);
|
|
1868
|
+
}
|
|
1869
|
+
}), P(
|
|
1870
|
+
() => t.isOpened,
|
|
1871
|
+
(a) => {
|
|
1872
|
+
a && setTimeout(() => {
|
|
1873
|
+
var m;
|
|
1874
|
+
(m = n.value) == null || m.focus();
|
|
1875
|
+
}, 0);
|
|
1876
|
+
}
|
|
1877
|
+
), o({
|
|
1878
|
+
listRef: n,
|
|
1879
|
+
items: c,
|
|
1880
|
+
itemsMap: d
|
|
1881
|
+
}), (a, m) => e.container ? (p(), E(Ae, {
|
|
1882
|
+
key: 0,
|
|
1883
|
+
to: e.container
|
|
1884
|
+
}, [
|
|
1885
|
+
r(t).isOpened ? (p(), v("ul", I({
|
|
1886
|
+
key: 0,
|
|
1887
|
+
ref_key: "listRef",
|
|
1888
|
+
ref: n
|
|
1889
|
+
}, a.$attrs, {
|
|
1890
|
+
tabindex: "0",
|
|
1891
|
+
role: "listbox",
|
|
1892
|
+
"aria-multiselectable": r(t).mode === "multi" ? "true" : void 0,
|
|
1893
|
+
class: [
|
|
1894
|
+
"custom-scroll",
|
|
1895
|
+
r(ae).list,
|
|
1896
|
+
i.class
|
|
1897
|
+
],
|
|
1898
|
+
style: e.theme,
|
|
1899
|
+
onKeydown: f
|
|
1900
|
+
}), [
|
|
1901
|
+
$(a.$slots, "default"),
|
|
1902
|
+
u.value === 0 ? (p(), v("li", {
|
|
1903
|
+
key: 0,
|
|
1904
|
+
class: x(r(ae).empty)
|
|
1905
|
+
}, D(e.emptyText), 3)) : A("", !0)
|
|
1906
|
+
], 16, vr)) : A("", !0)
|
|
1907
|
+
], 8, ["to"])) : (p(), v(me, { key: 1 }, [
|
|
1908
|
+
r(t).isOpened ? (p(), v("ul", I({
|
|
1909
|
+
key: 0,
|
|
1910
|
+
ref_key: "listRef",
|
|
1911
|
+
ref: n
|
|
1912
|
+
}, a.$attrs, {
|
|
1913
|
+
tabindex: "0",
|
|
1914
|
+
role: "listbox",
|
|
1915
|
+
"aria-multiselectable": r(t).mode === "multi" ? "true" : void 0,
|
|
1916
|
+
class: [
|
|
1917
|
+
"custom-scroll",
|
|
1918
|
+
r(ae).list,
|
|
1919
|
+
i.class
|
|
1920
|
+
],
|
|
1921
|
+
style: e.theme,
|
|
1922
|
+
onKeydown: f
|
|
1923
|
+
}), [
|
|
1924
|
+
$(a.$slots, "default"),
|
|
1925
|
+
u.value === 0 ? (p(), v("li", {
|
|
1926
|
+
key: 0,
|
|
1927
|
+
class: x(r(ae).empty)
|
|
1928
|
+
}, D(e.emptyText), 3)) : A("", !0)
|
|
1929
|
+
], 16, kr)) : A("", !0)
|
|
1930
|
+
], 64));
|
|
1931
|
+
}
|
|
1932
|
+
}), yr = () => "ontouchstart" in window, gr = "Checkbox-module__wrapper___rznMS", Cr = "Checkbox-module__input___-039s", $r = "Checkbox-module__checkbox___D0D4S", Ir = "Checkbox-module__indeterminate___rX-dK", wr = "Checkbox-module__invalid___B4jAs", Sr = "Checkbox-module__touchable___glE4H", Q = {
|
|
1933
|
+
wrapper: gr,
|
|
1934
|
+
input: Cr,
|
|
1935
|
+
checkbox: $r,
|
|
1936
|
+
indeterminate: Ir,
|
|
1937
|
+
invalid: wr,
|
|
1938
|
+
touchable: Sr
|
|
1939
|
+
}, ke = /* @__PURE__ */ y({
|
|
1629
1940
|
inheritAttrs: !1,
|
|
1630
1941
|
__name: "Checkbox",
|
|
1631
1942
|
props: {
|
|
@@ -1640,74 +1951,74 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1640
1951
|
isInvalid: { type: Boolean, default: !1 },
|
|
1641
1952
|
theme: {}
|
|
1642
1953
|
},
|
|
1643
|
-
setup(e, { expose:
|
|
1644
|
-
const
|
|
1645
|
-
return
|
|
1646
|
-
|
|
1647
|
-
}),
|
|
1648
|
-
inputRef:
|
|
1649
|
-
}), (l,
|
|
1650
|
-
class:
|
|
1651
|
-
|
|
1954
|
+
setup(e, { expose: o }) {
|
|
1955
|
+
const i = e, t = k(null), n = k(!1);
|
|
1956
|
+
return te(() => {
|
|
1957
|
+
n.value = yr();
|
|
1958
|
+
}), o({
|
|
1959
|
+
inputRef: t
|
|
1960
|
+
}), (l, s) => (p(), v("div", {
|
|
1961
|
+
class: x([
|
|
1962
|
+
r(Q).wrapper,
|
|
1652
1963
|
{
|
|
1653
|
-
[
|
|
1964
|
+
[r(Q).touchable]: n.value
|
|
1654
1965
|
}
|
|
1655
1966
|
]),
|
|
1656
|
-
style:
|
|
1967
|
+
style: V(e.theme)
|
|
1657
1968
|
}, [
|
|
1658
|
-
|
|
1659
|
-
id:
|
|
1969
|
+
M(be, I(l.$attrs, {
|
|
1970
|
+
id: i.id,
|
|
1660
1971
|
ref_key: "inputRef",
|
|
1661
|
-
ref:
|
|
1662
|
-
class:
|
|
1972
|
+
ref: t,
|
|
1973
|
+
class: r(Q).input,
|
|
1663
1974
|
type: "checkbox",
|
|
1664
|
-
"is-disabled":
|
|
1665
|
-
"is-readonly":
|
|
1666
|
-
"is-checked":
|
|
1667
|
-
"is-default-checked":
|
|
1668
|
-
value:
|
|
1669
|
-
name:
|
|
1975
|
+
"is-disabled": i.isDisabled,
|
|
1976
|
+
"is-readonly": i.isReadonly,
|
|
1977
|
+
"is-checked": i.isChecked,
|
|
1978
|
+
"is-default-checked": i.isDefaultChecked,
|
|
1979
|
+
value: i.value,
|
|
1980
|
+
name: i.name
|
|
1670
1981
|
}), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
|
|
1671
|
-
|
|
1672
|
-
class:
|
|
1673
|
-
|
|
1982
|
+
T("span", {
|
|
1983
|
+
class: x([
|
|
1984
|
+
r(Q).checkbox,
|
|
1674
1985
|
{
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1986
|
+
[r(Q).indeterminate]: e.checkedStyle === "indeterminate",
|
|
1987
|
+
[r(Q).invalid]: e.isInvalid
|
|
1677
1988
|
}
|
|
1678
1989
|
])
|
|
1679
1990
|
}, null, 2)
|
|
1680
1991
|
], 6));
|
|
1681
1992
|
}
|
|
1682
|
-
}),
|
|
1993
|
+
}), zs = /* @__PURE__ */ y({
|
|
1683
1994
|
__name: "LabelGroup",
|
|
1684
1995
|
props: {
|
|
1685
1996
|
theme: {}
|
|
1686
1997
|
},
|
|
1687
|
-
setup(e, { expose:
|
|
1688
|
-
const
|
|
1689
|
-
return
|
|
1690
|
-
groupRef:
|
|
1691
|
-
}), (l,
|
|
1998
|
+
setup(e, { expose: o }) {
|
|
1999
|
+
const i = oe(), t = k(null), n = _(() => i.default ? i.default() : []);
|
|
2000
|
+
return o({
|
|
2001
|
+
groupRef: t
|
|
2002
|
+
}), (l, s) => (p(), v("div", {
|
|
1692
2003
|
ref_key: "groupRef",
|
|
1693
|
-
ref:
|
|
2004
|
+
ref: t
|
|
1694
2005
|
}, [
|
|
1695
|
-
(
|
|
1696
|
-
key:
|
|
1697
|
-
class:
|
|
1698
|
-
style:
|
|
2006
|
+
(p(!0), v(me, null, Ut(n.value, (c, u) => (p(), v("div", {
|
|
2007
|
+
key: u,
|
|
2008
|
+
class: x([r(J).wrapper]),
|
|
2009
|
+
style: V(e.theme)
|
|
1699
2010
|
}, [
|
|
1700
|
-
(
|
|
2011
|
+
(p(), E(Re(c)))
|
|
1701
2012
|
], 6))), 128))
|
|
1702
2013
|
], 512));
|
|
1703
2014
|
}
|
|
1704
|
-
}),
|
|
2015
|
+
}), Ls = {
|
|
1705
2016
|
"--crm-ui-kit-label-group-margin-bottom": "16px"
|
|
1706
|
-
},
|
|
2017
|
+
}, Tr = {
|
|
1707
2018
|
"--crm-ui-kit-label-spacing": "4px",
|
|
1708
2019
|
"--crm-ui-kit-label-description-spacing": "4px",
|
|
1709
2020
|
"--crm-ui-kit-label-text-width": "auto"
|
|
1710
|
-
},
|
|
2021
|
+
}, xe = {
|
|
1711
2022
|
"--crm-ui-kit-checkbox-z-index": "3",
|
|
1712
2023
|
"--crm-ui-kit-checkbox-border-width": "1px",
|
|
1713
2024
|
"--crm-ui-kit-checkbox-border-radius": "3px",
|
|
@@ -1722,95 +2033,426 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
|
|
|
1722
2033
|
"--crm-ui-kit-checkbox-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
1723
2034
|
"--crm-ui-kit-checkbox-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
1724
2035
|
"--crm-ui-kit-checkbox-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
1725
|
-
},
|
|
1726
|
-
...
|
|
2036
|
+
}, Pe = {
|
|
2037
|
+
...xe,
|
|
1727
2038
|
"--crm-ui-kit-checkbox-size": "20px",
|
|
1728
2039
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
1729
|
-
},
|
|
1730
|
-
...
|
|
2040
|
+
}, Ps = {
|
|
2041
|
+
...xe,
|
|
1731
2042
|
"--crm-ui-kit-checkbox-size": "16px",
|
|
1732
2043
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
|
|
1733
|
-
},
|
|
1734
|
-
...
|
|
2044
|
+
}, Gs = {
|
|
2045
|
+
...xe,
|
|
1735
2046
|
"--crm-ui-kit-checkbox-size": "20px",
|
|
1736
2047
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
1737
|
-
},
|
|
1738
|
-
...
|
|
2048
|
+
}, Ns = {
|
|
2049
|
+
...xe,
|
|
1739
2050
|
"--crm-ui-kit-checkbox-size": "16px",
|
|
1740
2051
|
"--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
1741
2052
|
};
|
|
1742
2053
|
({
|
|
1743
|
-
...
|
|
2054
|
+
...Tr
|
|
1744
2055
|
});
|
|
1745
|
-
const
|
|
2056
|
+
const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr = "Item-module__hovered___UY-ih", ue = {
|
|
2057
|
+
item: Ar,
|
|
2058
|
+
selected: Rr,
|
|
2059
|
+
hovered: Dr
|
|
2060
|
+
}, Br = ["aria-selected", "title"], Vr = "MultiSelect.Item", Fs = /* @__PURE__ */ y({
|
|
2061
|
+
__name: "Item",
|
|
2062
|
+
props: {
|
|
2063
|
+
item: {},
|
|
2064
|
+
theme: {}
|
|
2065
|
+
},
|
|
2066
|
+
setup(e, { expose: o }) {
|
|
2067
|
+
const i = e, t = W(Vr), n = k(null), l = Pe, s = _(() => t.isItemMatchingSearch(i.item)), c = _(() => t.values.has(i.item.value)), u = _(() => t.hoveredItemValue === i.item.value), d = (h) => {
|
|
2068
|
+
h.preventDefault(), t.onToggleItem(i.item);
|
|
2069
|
+
};
|
|
2070
|
+
return o({
|
|
2071
|
+
itemRef: n
|
|
2072
|
+
}), (h, g) => s.value ? (p(), v("li", I({
|
|
2073
|
+
key: 0,
|
|
2074
|
+
ref_key: "itemRef",
|
|
2075
|
+
ref: n
|
|
2076
|
+
}, h.$attrs, {
|
|
2077
|
+
role: "option",
|
|
2078
|
+
"aria-selected": c.value,
|
|
2079
|
+
class: [
|
|
2080
|
+
r(ue).item,
|
|
2081
|
+
{
|
|
2082
|
+
[r(ue).selected]: c.value,
|
|
2083
|
+
[r(ue).hovered]: u.value
|
|
2084
|
+
}
|
|
2085
|
+
],
|
|
2086
|
+
style: e.theme,
|
|
2087
|
+
title: e.item.option,
|
|
2088
|
+
onClick: d
|
|
2089
|
+
}), [
|
|
2090
|
+
r(t).mode === "multi" ? (p(), E(ke, {
|
|
2091
|
+
key: 0,
|
|
2092
|
+
theme: r(l),
|
|
2093
|
+
"is-checked": c.value,
|
|
2094
|
+
tabindex: -1,
|
|
2095
|
+
onClick: g[0] || (g[0] = he(() => {
|
|
2096
|
+
}, ["stop"]))
|
|
2097
|
+
}, null, 8, ["theme", "is-checked"])) : A("", !0),
|
|
2098
|
+
$(h.$slots, "default", {}, () => [
|
|
2099
|
+
M(re, null, {
|
|
2100
|
+
default: z(() => [
|
|
2101
|
+
L(D(e.item.option), 1)
|
|
2102
|
+
]),
|
|
2103
|
+
_: 1
|
|
2104
|
+
})
|
|
2105
|
+
])
|
|
2106
|
+
], 16, Br)) : A("", !0);
|
|
2107
|
+
}
|
|
2108
|
+
}), Er = "Group-module__group___KLx-N", Mr = "Group-module__header___eqC1O", Or = "Group-module__headerSelectable___Xrf4T", zr = "Group-module__label___uz8UE", Lr = "Group-module__children___CvJVM", Pr = "Group-module__empty___1ph2n", ee = {
|
|
2109
|
+
group: Er,
|
|
2110
|
+
header: Mr,
|
|
2111
|
+
headerSelectable: Or,
|
|
2112
|
+
label: zr,
|
|
2113
|
+
children: Lr,
|
|
2114
|
+
empty: Pr
|
|
2115
|
+
}, Gr = ["aria-label"], Nr = ["title"], Fr = "MultiSelect.Group", Hs = /* @__PURE__ */ y({
|
|
2116
|
+
__name: "Group",
|
|
2117
|
+
props: {
|
|
2118
|
+
group: {},
|
|
2119
|
+
theme: {},
|
|
2120
|
+
emptyText: { default: "Нет элементов" }
|
|
2121
|
+
},
|
|
2122
|
+
setup(e) {
|
|
2123
|
+
const o = /^(#[\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 = W(Fr), n = _(() => t.isGroupMatchingSearch(i.group.id)), l = Pe, s = oe(), c = _(() => s.default ? s.default().length === 0 : !0), u = _(
|
|
2124
|
+
() => t.isGroupAllSelected(i.group.id)
|
|
2125
|
+
), d = _(
|
|
2126
|
+
() => t.isGroupPartiallySelected(i.group.id)
|
|
2127
|
+
), h = _(
|
|
2128
|
+
() => u.value || d.value
|
|
2129
|
+
), g = _(
|
|
2130
|
+
() => u.value ? "mark" : "indeterminate"
|
|
2131
|
+
), f = (b) => o.test(b.trim()), a = _(() => {
|
|
2132
|
+
const b = { ...i.theme };
|
|
2133
|
+
return i.group.color && f(i.group.color) && (b.backgroundColor = i.group.color), b;
|
|
2134
|
+
}), m = () => {
|
|
2135
|
+
t.groupSelectable && t.onToggleGroup(i.group.id);
|
|
2136
|
+
};
|
|
2137
|
+
return (b, S) => n.value ? (p(), v("li", {
|
|
2138
|
+
key: 0,
|
|
2139
|
+
class: x(r(ee).group),
|
|
2140
|
+
role: "group",
|
|
2141
|
+
"aria-label": e.group.label
|
|
2142
|
+
}, [
|
|
2143
|
+
T("div", {
|
|
2144
|
+
class: x([
|
|
2145
|
+
r(ee).header,
|
|
2146
|
+
{
|
|
2147
|
+
[r(ee).headerSelectable]: r(t).groupSelectable
|
|
2148
|
+
}
|
|
2149
|
+
]),
|
|
2150
|
+
style: V(a.value),
|
|
2151
|
+
title: e.group.label,
|
|
2152
|
+
onClick: m
|
|
2153
|
+
}, [
|
|
2154
|
+
r(t).groupSelectable ? (p(), E(ke, {
|
|
2155
|
+
key: 0,
|
|
2156
|
+
theme: r(l),
|
|
2157
|
+
"is-checked": h.value,
|
|
2158
|
+
"checked-style": g.value,
|
|
2159
|
+
tabindex: -1,
|
|
2160
|
+
onClick: S[0] || (S[0] = he(() => {
|
|
2161
|
+
}, ["stop"]))
|
|
2162
|
+
}, null, 8, ["theme", "is-checked", "checked-style"])) : A("", !0),
|
|
2163
|
+
T("span", {
|
|
2164
|
+
class: x(r(ee).label)
|
|
2165
|
+
}, D(e.group.label), 3)
|
|
2166
|
+
], 14, Nr),
|
|
2167
|
+
T("ul", {
|
|
2168
|
+
class: x(r(ee).children)
|
|
2169
|
+
}, [
|
|
2170
|
+
$(b.$slots, "default"),
|
|
2171
|
+
c.value ? (p(), v("li", {
|
|
2172
|
+
key: 0,
|
|
2173
|
+
class: x(r(ee).empty)
|
|
2174
|
+
}, D(e.emptyText), 3)) : A("", !0)
|
|
2175
|
+
], 2)
|
|
2176
|
+
], 10, Gr)) : A("", !0);
|
|
2177
|
+
}
|
|
2178
|
+
}), Hr = "MultiSelect.All", Ys = /* @__PURE__ */ y({
|
|
2179
|
+
__name: "All",
|
|
2180
|
+
props: {
|
|
2181
|
+
theme: {},
|
|
2182
|
+
label: { default: "Выбрать всё" }
|
|
2183
|
+
},
|
|
2184
|
+
setup(e) {
|
|
2185
|
+
const o = W(Hr), i = Pe, t = _(() => o.isAllSelected()), n = _(() => o.isPartiallySelected()), l = _(
|
|
2186
|
+
() => t.value || n.value
|
|
2187
|
+
), s = _(
|
|
2188
|
+
() => t.value ? "mark" : "indeterminate"
|
|
2189
|
+
), c = (u) => {
|
|
2190
|
+
u.preventDefault(), o.onToggleAll();
|
|
2191
|
+
};
|
|
2192
|
+
return (u, d) => r(o).searchQuery ? A("", !0) : (p(), v("li", {
|
|
2193
|
+
key: 0,
|
|
2194
|
+
class: x(r(ue).item),
|
|
2195
|
+
style: V(e.theme),
|
|
2196
|
+
onClick: c
|
|
2197
|
+
}, [
|
|
2198
|
+
M(ke, {
|
|
2199
|
+
theme: r(i),
|
|
2200
|
+
"is-checked": l.value,
|
|
2201
|
+
"checked-style": s.value,
|
|
2202
|
+
tabindex: -1,
|
|
2203
|
+
onClick: d[0] || (d[0] = he(() => {
|
|
2204
|
+
}, ["stop"]))
|
|
2205
|
+
}, null, 8, ["theme", "is-checked", "checked-style"]),
|
|
2206
|
+
M(re, null, {
|
|
2207
|
+
default: z(() => [
|
|
2208
|
+
L(D(e.label), 1)
|
|
2209
|
+
]),
|
|
2210
|
+
_: 1
|
|
2211
|
+
})
|
|
2212
|
+
], 6));
|
|
2213
|
+
}
|
|
2214
|
+
}), Yr = "Value-module__value___Aswvw", qr = "Value-module__text___-f1lX", Ur = {
|
|
2215
|
+
value: Yr,
|
|
2216
|
+
text: qr
|
|
2217
|
+
}, jr = "MultiSelect.Value", qs = /* @__PURE__ */ y({
|
|
2218
|
+
__name: "Value",
|
|
2219
|
+
props: {
|
|
2220
|
+
placeholder: { default: "" },
|
|
2221
|
+
displayMode: { default: "count" },
|
|
2222
|
+
maxDisplayItems: { default: 2 },
|
|
2223
|
+
countTemplate: { default: "{n} выбрано" },
|
|
2224
|
+
class: {}
|
|
2225
|
+
},
|
|
2226
|
+
setup(e, { expose: o }) {
|
|
2227
|
+
const i = e, t = W(jr), n = k(null), l = _(() => {
|
|
2228
|
+
const s = t.selectedItems;
|
|
2229
|
+
if (s.length === 0)
|
|
2230
|
+
return i.placeholder;
|
|
2231
|
+
if (i.displayMode === "count")
|
|
2232
|
+
return i.countTemplate.replace("{n}", String(s.length));
|
|
2233
|
+
const c = s.slice(0, i.maxDisplayItems), u = s.length - c.length, d = c.map((h) => h.option).join(", ");
|
|
2234
|
+
return u > 0 ? `${d} +${u}` : d;
|
|
2235
|
+
});
|
|
2236
|
+
return o({
|
|
2237
|
+
optionRef: n
|
|
2238
|
+
}), (s, c) => s.$slots.default ? $(s.$slots, "default", { key: 0 }) : (p(), E(re, {
|
|
2239
|
+
key: 1,
|
|
2240
|
+
ref_key: "optionRef",
|
|
2241
|
+
ref: n,
|
|
2242
|
+
class: x(r(Ur).text)
|
|
2243
|
+
}, {
|
|
2244
|
+
default: z(() => [
|
|
2245
|
+
L(D(l.value), 1)
|
|
2246
|
+
]),
|
|
2247
|
+
_: 1
|
|
2248
|
+
}, 8, ["class"]));
|
|
2249
|
+
}
|
|
2250
|
+
}), Kr = "Search-module__search___cGZ5b", Wr = "Search-module__input___HP47K", Ze = {
|
|
2251
|
+
search: Kr,
|
|
2252
|
+
input: Wr
|
|
2253
|
+
}, Zr = ["placeholder", "value"], Jr = "MultiSelect.Search", Us = /* @__PURE__ */ y({
|
|
2254
|
+
__name: "Search",
|
|
2255
|
+
props: {
|
|
2256
|
+
theme: {},
|
|
2257
|
+
placeholder: { default: "Поиск..." }
|
|
2258
|
+
},
|
|
2259
|
+
setup(e) {
|
|
2260
|
+
const o = W(Jr), i = k(null), t = (n) => {
|
|
2261
|
+
o.onSearchChange(n.target.value);
|
|
2262
|
+
};
|
|
2263
|
+
return P(
|
|
2264
|
+
() => o.isOpened,
|
|
2265
|
+
(n) => {
|
|
2266
|
+
n && pe(() => {
|
|
2267
|
+
setTimeout(() => {
|
|
2268
|
+
var l;
|
|
2269
|
+
return (l = i.value) == null ? void 0 : l.focus();
|
|
2270
|
+
}, 0);
|
|
2271
|
+
});
|
|
2272
|
+
}
|
|
2273
|
+
), (n, l) => (p(), v("li", {
|
|
2274
|
+
class: x(r(Ze).search),
|
|
2275
|
+
style: V(e.theme)
|
|
2276
|
+
}, [
|
|
2277
|
+
T("input", {
|
|
2278
|
+
ref_key: "inputRef",
|
|
2279
|
+
ref: i,
|
|
2280
|
+
class: x(r(Ze).input),
|
|
2281
|
+
type: "text",
|
|
2282
|
+
placeholder: e.placeholder,
|
|
2283
|
+
value: r(o).searchQuery,
|
|
2284
|
+
onInput: t,
|
|
2285
|
+
onKeydown: l[0] || (l[0] = he(() => {
|
|
2286
|
+
}, ["stop"]))
|
|
2287
|
+
}, null, 42, Zr)
|
|
2288
|
+
], 6));
|
|
2289
|
+
}
|
|
2290
|
+
}), Xr = "Combobox-module__combobox___97Qx9", Qr = "Combobox-module__inputContainer___6t-il", en = "Combobox-module__focused___Ur996", tn = "Combobox-module__invalid___Ur1or", on = "Combobox-module__disabled___2nCcW", rn = "Combobox-module__input___KbcCI", nn = "Combobox-module__arrow___FwmsJ", ln = "Combobox-module__arrowOpen___U6A3h", j = {
|
|
2291
|
+
combobox: Xr,
|
|
2292
|
+
inputContainer: Qr,
|
|
2293
|
+
focused: en,
|
|
2294
|
+
invalid: tn,
|
|
2295
|
+
disabled: on,
|
|
2296
|
+
input: rn,
|
|
2297
|
+
arrow: nn,
|
|
2298
|
+
arrowOpen: ln
|
|
2299
|
+
}, sn = ["placeholder", "value", "disabled", "readonly"], an = "MultiSelect.Combobox", js = /* @__PURE__ */ y({
|
|
2300
|
+
__name: "Combobox",
|
|
2301
|
+
props: {
|
|
2302
|
+
theme: {},
|
|
2303
|
+
placeholder: { default: "Поиск..." },
|
|
2304
|
+
groups: {}
|
|
2305
|
+
},
|
|
2306
|
+
setup(e, { expose: o }) {
|
|
2307
|
+
const i = e, t = W(an), n = k(null), l = k(null), s = _(() => {
|
|
2308
|
+
if (!i.groups) return null;
|
|
2309
|
+
const f = /* @__PURE__ */ new Map();
|
|
2310
|
+
for (const a of i.groups)
|
|
2311
|
+
f.set(a.id, a.label);
|
|
2312
|
+
return f;
|
|
2313
|
+
}), c = _(() => {
|
|
2314
|
+
if (t.isOpened) return "";
|
|
2315
|
+
const f = t.selectedItems;
|
|
2316
|
+
if (f.length === 0) return "";
|
|
2317
|
+
if (f.length === 1) return f[0].option;
|
|
2318
|
+
if (t.isAllSelected()) return `Все (${f.length})`;
|
|
2319
|
+
if (s.value && f.every((a) => a.group != null)) {
|
|
2320
|
+
const a = [...new Set(f.map((b) => b.group))], m = a.filter((b) => t.isGroupAllSelected(b));
|
|
2321
|
+
if (m.length > 0 && m.length === a.length) {
|
|
2322
|
+
if (m.length === 1) {
|
|
2323
|
+
const S = s.value.get(m[0]);
|
|
2324
|
+
if (S) return `${S} (${f.length})`;
|
|
2325
|
+
}
|
|
2326
|
+
const b = s.value.get(m[0]);
|
|
2327
|
+
if (b)
|
|
2328
|
+
return m.length === 2 ? `${b}, ${s.value.get(m[1])}` : `${b} +${m.length - 1}`;
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
return `${f[0].option} +${f.length - 1}`;
|
|
2332
|
+
}), u = (f) => {
|
|
2333
|
+
const a = f.target.value;
|
|
2334
|
+
t.onSearchChange(a);
|
|
2335
|
+
}, d = () => {
|
|
2336
|
+
t.isDisabled || t.onOpen(!0);
|
|
2337
|
+
}, h = () => {
|
|
2338
|
+
var f;
|
|
2339
|
+
(f = n.value) == null || f.focus();
|
|
2340
|
+
}, g = (f) => {
|
|
2341
|
+
var a;
|
|
2342
|
+
f.code === "Escape" && (t.onOpen(!1), (a = n.value) == null || a.blur());
|
|
2343
|
+
};
|
|
2344
|
+
return P(() => t.isOpened, (f) => {
|
|
2345
|
+
f && pe(() => {
|
|
2346
|
+
var a;
|
|
2347
|
+
return (a = n.value) == null ? void 0 : a.focus();
|
|
2348
|
+
});
|
|
2349
|
+
}), o({ inputRef: n }), (f, a) => (p(), v("div", {
|
|
2350
|
+
class: x(r(j).combobox),
|
|
2351
|
+
style: V(e.theme)
|
|
2352
|
+
}, [
|
|
2353
|
+
T("div", {
|
|
2354
|
+
ref_key: "containerRef",
|
|
2355
|
+
ref: l,
|
|
2356
|
+
class: x([
|
|
2357
|
+
r(j).inputContainer,
|
|
2358
|
+
{
|
|
2359
|
+
[r(j).focused]: r(t).isOpened,
|
|
2360
|
+
[r(j).invalid]: r(t).isInvalid,
|
|
2361
|
+
[r(j).disabled]: r(t).isDisabled
|
|
2362
|
+
}
|
|
2363
|
+
]),
|
|
2364
|
+
onClick: h
|
|
2365
|
+
}, [
|
|
2366
|
+
T("input", {
|
|
2367
|
+
ref_key: "inputRef",
|
|
2368
|
+
ref: n,
|
|
2369
|
+
class: x(r(j).input),
|
|
2370
|
+
type: "text",
|
|
2371
|
+
placeholder: e.placeholder,
|
|
2372
|
+
value: r(t).isOpened ? r(t).searchQuery : c.value,
|
|
2373
|
+
disabled: r(t).isDisabled,
|
|
2374
|
+
readonly: !r(t).isOpened,
|
|
2375
|
+
onInput: u,
|
|
2376
|
+
onFocus: d,
|
|
2377
|
+
onKeydown: g
|
|
2378
|
+
}, null, 42, sn),
|
|
2379
|
+
$(f.$slots, "after", {}, () => [
|
|
2380
|
+
T("span", {
|
|
2381
|
+
class: x([r(j).arrow, { [r(j).arrowOpen]: r(t).isOpened }])
|
|
2382
|
+
}, null, 2)
|
|
2383
|
+
])
|
|
2384
|
+
], 2)
|
|
2385
|
+
], 6));
|
|
2386
|
+
}
|
|
2387
|
+
}), Ks = /* @__PURE__ */ y({
|
|
1746
2388
|
__name: "Portal",
|
|
1747
2389
|
props: {
|
|
1748
2390
|
container: { default: void 0 }
|
|
1749
2391
|
},
|
|
1750
|
-
setup(e, { expose:
|
|
1751
|
-
const
|
|
1752
|
-
return
|
|
1753
|
-
portalRef:
|
|
1754
|
-
}), (l,
|
|
1755
|
-
to:
|
|
1756
|
-
disabled: !
|
|
2392
|
+
setup(e, { expose: o }) {
|
|
2393
|
+
const i = e, t = k(null), n = _(() => i.container || document.body);
|
|
2394
|
+
return o({
|
|
2395
|
+
portalRef: t
|
|
2396
|
+
}), (l, s) => (p(), E(Ae, {
|
|
2397
|
+
to: n.value,
|
|
2398
|
+
disabled: !n.value
|
|
1757
2399
|
}, [
|
|
1758
|
-
|
|
2400
|
+
T("div", I({
|
|
1759
2401
|
ref_key: "portalRef",
|
|
1760
|
-
ref:
|
|
2402
|
+
ref: t
|
|
1761
2403
|
}, l.$attrs), [
|
|
1762
|
-
|
|
2404
|
+
$(l.$slots, "default")
|
|
1763
2405
|
], 16)
|
|
1764
2406
|
], 8, ["to", "disabled"]));
|
|
1765
2407
|
}
|
|
1766
|
-
}),
|
|
1767
|
-
block:
|
|
1768
|
-
},
|
|
2408
|
+
}), cn = "ContentBlock-module__block___UvzuN", un = {
|
|
2409
|
+
block: cn
|
|
2410
|
+
}, Ws = /* @__PURE__ */ y({
|
|
1769
2411
|
__name: "ContentBlock",
|
|
1770
2412
|
props: {
|
|
1771
2413
|
theme: {}
|
|
1772
2414
|
},
|
|
1773
|
-
setup(e, { expose:
|
|
1774
|
-
const
|
|
1775
|
-
return
|
|
1776
|
-
blockRef:
|
|
1777
|
-
}), (
|
|
2415
|
+
setup(e, { expose: o }) {
|
|
2416
|
+
const i = k(null);
|
|
2417
|
+
return o({
|
|
2418
|
+
blockRef: i
|
|
2419
|
+
}), (t, n) => (p(), v("div", I(t.$attrs, {
|
|
1778
2420
|
ref_key: "blockRef",
|
|
1779
|
-
ref:
|
|
1780
|
-
class:
|
|
2421
|
+
ref: i,
|
|
2422
|
+
class: r(un).block,
|
|
1781
2423
|
style: e.theme
|
|
1782
2424
|
}), [
|
|
1783
|
-
|
|
2425
|
+
$(t.$slots, "default")
|
|
1784
2426
|
], 16));
|
|
1785
2427
|
}
|
|
1786
|
-
}),
|
|
2428
|
+
}), Zs = {
|
|
1787
2429
|
"--crm-ui-kit-content-block-box-sizing": "border-box",
|
|
1788
2430
|
"--crm-ui-kit-content-block-padding": "18px 18px 29px",
|
|
1789
2431
|
"--crm-ui-kit-content-block-border-radius": "3px",
|
|
1790
2432
|
"--crm-ui-kit-content-block-box-shadow": "var(--crm-ui-kit-palette-content-block-box-shadow)",
|
|
1791
2433
|
"--crm-ui-kit-content-block-background": "var(--crm-ui-kit-palette-background-primary)"
|
|
1792
|
-
},
|
|
1793
|
-
link:
|
|
1794
|
-
},
|
|
2434
|
+
}, dn = "Link-module__link___35Vo1", mn = {
|
|
2435
|
+
link: dn
|
|
2436
|
+
}, Js = /* @__PURE__ */ y({
|
|
1795
2437
|
__name: "Link",
|
|
1796
2438
|
props: {
|
|
1797
2439
|
theme: {}
|
|
1798
2440
|
},
|
|
1799
|
-
setup(e, { expose:
|
|
1800
|
-
const
|
|
1801
|
-
return
|
|
1802
|
-
linkRef:
|
|
1803
|
-
}), (
|
|
2441
|
+
setup(e, { expose: o }) {
|
|
2442
|
+
const i = k(null);
|
|
2443
|
+
return o({
|
|
2444
|
+
linkRef: i
|
|
2445
|
+
}), (t, n) => (p(), v("a", I({
|
|
1804
2446
|
ref_key: "linkRef",
|
|
1805
|
-
ref:
|
|
1806
|
-
},
|
|
1807
|
-
class:
|
|
2447
|
+
ref: i
|
|
2448
|
+
}, t.$attrs, {
|
|
2449
|
+
class: r(mn).link,
|
|
1808
2450
|
style: e.theme
|
|
1809
2451
|
}), [
|
|
1810
|
-
|
|
2452
|
+
$(t.$slots, "default")
|
|
1811
2453
|
], 16));
|
|
1812
2454
|
}
|
|
1813
|
-
}),
|
|
2455
|
+
}), Xs = {
|
|
1814
2456
|
"--crm-ui-kit-link-color": "var(--crm-ui-kit-palette-link-primary)",
|
|
1815
2457
|
"--crm-ui-kit-link-hover-color": "var(--crm-ui-kit-palette-link-hover-primary)",
|
|
1816
2458
|
"--crm-ui-kit-link-text-decoration": "underline",
|
|
@@ -1819,107 +2461,107 @@ const wl = /* @__PURE__ */ f({
|
|
|
1819
2461
|
"--crm-ui-kit-link-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
1820
2462
|
"--crm-ui-kit-link-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
1821
2463
|
"--crm-ui-kit-link-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
|
|
1822
|
-
},
|
|
2464
|
+
}, Qs = {
|
|
1823
2465
|
"--crm-ui-kit-spinner-border-color": "#158fd2",
|
|
1824
2466
|
"--crm-ui-kit-spinner-border-width": "2px",
|
|
1825
2467
|
"--crm-ui-kit-spinner-circle-size": "16px",
|
|
1826
2468
|
"--crm-ui-kit-spinner-border-style": "solid"
|
|
1827
|
-
},
|
|
1828
|
-
wrapper:
|
|
1829
|
-
icon:
|
|
1830
|
-
},
|
|
2469
|
+
}, pn = "Callout-module__wrapper___gW-Zt", hn = "Callout-module__icon___4CBkz", Je = {
|
|
2470
|
+
wrapper: pn,
|
|
2471
|
+
icon: hn
|
|
2472
|
+
}, ea = /* @__PURE__ */ y({
|
|
1831
2473
|
__name: "Callout",
|
|
1832
2474
|
props: {
|
|
1833
2475
|
theme: {},
|
|
1834
2476
|
isIconAvailable: { type: Boolean, default: !0 }
|
|
1835
2477
|
},
|
|
1836
|
-
setup(e, { expose:
|
|
1837
|
-
const
|
|
1838
|
-
const { Icon: l, ...
|
|
1839
|
-
return
|
|
2478
|
+
setup(e, { expose: o }) {
|
|
2479
|
+
const i = e, t = k(null), n = _(() => {
|
|
2480
|
+
const { Icon: l, ...s } = i.theme;
|
|
2481
|
+
return s;
|
|
1840
2482
|
});
|
|
1841
|
-
return
|
|
1842
|
-
calloutRef:
|
|
1843
|
-
}), (l,
|
|
2483
|
+
return o({
|
|
2484
|
+
calloutRef: t
|
|
2485
|
+
}), (l, s) => (p(), v("div", I(l.$attrs, {
|
|
1844
2486
|
ref_key: "calloutRef",
|
|
1845
|
-
ref:
|
|
1846
|
-
class:
|
|
1847
|
-
style:
|
|
2487
|
+
ref: t,
|
|
2488
|
+
class: r(Je).wrapper,
|
|
2489
|
+
style: n.value
|
|
1848
2490
|
}), [
|
|
1849
|
-
e.isIconAvailable ? (
|
|
2491
|
+
e.isIconAvailable ? (p(), E(Re(e.theme.Icon), {
|
|
1850
2492
|
key: 0,
|
|
1851
|
-
class:
|
|
1852
|
-
}, null, 8, ["class"])) :
|
|
1853
|
-
|
|
2493
|
+
class: x(r(Je).icon)
|
|
2494
|
+
}, null, 8, ["class"])) : A("", !0),
|
|
2495
|
+
$(l.$slots, "default")
|
|
1854
2496
|
], 16));
|
|
1855
2497
|
}
|
|
1856
|
-
}),
|
|
2498
|
+
}), _n = {
|
|
1857
2499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1858
2500
|
width: "20",
|
|
1859
2501
|
height: "20",
|
|
1860
2502
|
fill: "none"
|
|
1861
2503
|
};
|
|
1862
|
-
function
|
|
1863
|
-
return
|
|
1864
|
-
|
|
2504
|
+
function bn(e, o) {
|
|
2505
|
+
return p(), v("svg", _n, [...o[0] || (o[0] = [
|
|
2506
|
+
_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)
|
|
1865
2507
|
])]);
|
|
1866
2508
|
}
|
|
1867
|
-
const
|
|
2509
|
+
const fn = { render: bn }, vn = {
|
|
1868
2510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1869
2511
|
width: "20",
|
|
1870
2512
|
height: "20",
|
|
1871
2513
|
fill: "currentColor"
|
|
1872
2514
|
};
|
|
1873
|
-
function
|
|
1874
|
-
return
|
|
1875
|
-
|
|
2515
|
+
function kn(e, o) {
|
|
2516
|
+
return p(), v("svg", vn, [...o[0] || (o[0] = [
|
|
2517
|
+
_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)
|
|
1876
2518
|
])]);
|
|
1877
2519
|
}
|
|
1878
|
-
const
|
|
2520
|
+
const xn = { render: kn }, yn = {
|
|
1879
2521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1880
2522
|
width: "20",
|
|
1881
2523
|
height: "20",
|
|
1882
2524
|
fill: "none"
|
|
1883
2525
|
};
|
|
1884
|
-
function
|
|
1885
|
-
return
|
|
1886
|
-
|
|
2526
|
+
function gn(e, o) {
|
|
2527
|
+
return p(), v("svg", yn, [...o[0] || (o[0] = [
|
|
2528
|
+
_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)
|
|
1887
2529
|
])]);
|
|
1888
2530
|
}
|
|
1889
|
-
const
|
|
2531
|
+
const Cn = { render: gn }, $n = {
|
|
1890
2532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1891
2533
|
width: "20",
|
|
1892
2534
|
height: "20",
|
|
1893
2535
|
fill: "currentColor"
|
|
1894
2536
|
};
|
|
1895
|
-
function
|
|
1896
|
-
return
|
|
1897
|
-
|
|
2537
|
+
function In(e, o) {
|
|
2538
|
+
return p(), v("svg", $n, [...o[0] || (o[0] = [
|
|
2539
|
+
_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)
|
|
1898
2540
|
])]);
|
|
1899
2541
|
}
|
|
1900
|
-
const
|
|
2542
|
+
const wn = { render: In }, ye = {
|
|
1901
2543
|
"--crm-ui-kit-callout-padding": "12px",
|
|
1902
2544
|
"--crm-ui-kit-callout-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
|
|
1903
2545
|
"--crm-ui-kit-callout-icon-color": "var(--crm-ui-kit-palette-text-primary)"
|
|
1904
|
-
},
|
|
1905
|
-
...
|
|
1906
|
-
Icon:
|
|
2546
|
+
}, ta = {
|
|
2547
|
+
...ye,
|
|
2548
|
+
Icon: fn,
|
|
1907
2549
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-warning-background-color)"
|
|
1908
|
-
},
|
|
1909
|
-
...
|
|
1910
|
-
Icon:
|
|
2550
|
+
}, ia = {
|
|
2551
|
+
...ye,
|
|
2552
|
+
Icon: xn,
|
|
1911
2553
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-error-background-color)"
|
|
1912
|
-
},
|
|
1913
|
-
...
|
|
1914
|
-
Icon:
|
|
2554
|
+
}, oa = {
|
|
2555
|
+
...ye,
|
|
2556
|
+
Icon: Cn,
|
|
1915
2557
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-success-background-color)"
|
|
1916
|
-
},
|
|
1917
|
-
...
|
|
1918
|
-
Icon:
|
|
2558
|
+
}, ra = {
|
|
2559
|
+
...ye,
|
|
2560
|
+
Icon: wn,
|
|
1919
2561
|
"--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-info-background-color)"
|
|
1920
|
-
},
|
|
1921
|
-
wrapper:
|
|
1922
|
-
},
|
|
2562
|
+
}, Ct = "Accordion", [$t, Sn] = F(Ct), Tn = "Accordion-module__wrapper___X4UEj", It = {
|
|
2563
|
+
wrapper: Tn
|
|
2564
|
+
}, An = /* @__PURE__ */ y({
|
|
1923
2565
|
__name: "AccordionSingle",
|
|
1924
2566
|
props: {
|
|
1925
2567
|
isCollapsible: { type: Boolean, default: !1 },
|
|
@@ -1928,29 +2570,29 @@ const lo = { render: no }, re = {
|
|
|
1928
2570
|
theme: {}
|
|
1929
2571
|
},
|
|
1930
2572
|
emits: ["change"],
|
|
1931
|
-
setup(e, { expose:
|
|
1932
|
-
const
|
|
1933
|
-
() =>
|
|
1934
|
-
),
|
|
1935
|
-
const
|
|
1936
|
-
|
|
2573
|
+
setup(e, { expose: o, emit: i }) {
|
|
2574
|
+
const t = e, n = i, l = k(null), s = k(t.defaultValue), c = Ee(t.theme), u = _(() => "value" in t && t.value !== void 0), d = _(
|
|
2575
|
+
() => u.value ? t.value : s.value
|
|
2576
|
+
), h = (f) => t.isCollapsible && f === d.value ? void 0 : f, g = (f) => {
|
|
2577
|
+
const a = h(f);
|
|
2578
|
+
u.value || (s.value = a), n("change", a);
|
|
1937
2579
|
};
|
|
1938
|
-
return
|
|
2580
|
+
return $t({
|
|
1939
2581
|
value: d,
|
|
1940
2582
|
// computed ref
|
|
1941
|
-
defaultValue:
|
|
2583
|
+
defaultValue: De(() => t.defaultValue),
|
|
1942
2584
|
onChange: g
|
|
1943
|
-
}),
|
|
2585
|
+
}), o({
|
|
1944
2586
|
accordionRef: l
|
|
1945
|
-
}), (
|
|
2587
|
+
}), (f, a) => (p(), v("div", I(f.$attrs, {
|
|
1946
2588
|
ref_key: "accordionRef",
|
|
1947
2589
|
ref: l,
|
|
1948
|
-
class: [
|
|
2590
|
+
class: [r(It).wrapper, r(c)]
|
|
1949
2591
|
}), [
|
|
1950
|
-
|
|
2592
|
+
$(f.$slots, "default")
|
|
1951
2593
|
], 16));
|
|
1952
2594
|
}
|
|
1953
|
-
}),
|
|
2595
|
+
}), Rn = /* @__PURE__ */ y({
|
|
1954
2596
|
__name: "AccordionMultiple",
|
|
1955
2597
|
props: {
|
|
1956
2598
|
value: {},
|
|
@@ -1958,35 +2600,35 @@ const lo = { render: no }, re = {
|
|
|
1958
2600
|
theme: {}
|
|
1959
2601
|
},
|
|
1960
2602
|
emits: ["change"],
|
|
1961
|
-
setup(e, { expose:
|
|
1962
|
-
const
|
|
1963
|
-
() =>
|
|
1964
|
-
),
|
|
1965
|
-
const
|
|
1966
|
-
return
|
|
1967
|
-
}, g = (
|
|
1968
|
-
const
|
|
1969
|
-
|
|
2603
|
+
setup(e, { expose: o, emit: i }) {
|
|
2604
|
+
const t = e, n = i, l = k(null), s = k(t.defaultValue || []), c = Ee(t.theme), u = _(() => "value" in t && t.value !== void 0), d = _(
|
|
2605
|
+
() => u.value ? t.value || [] : s.value
|
|
2606
|
+
), h = (f) => {
|
|
2607
|
+
const a = d.value || [];
|
|
2608
|
+
return a.includes(f) ? a.filter((m) => m !== f) : [...a, f];
|
|
2609
|
+
}, g = (f) => {
|
|
2610
|
+
const a = h(f);
|
|
2611
|
+
u.value || (s.value = a), n("change", a);
|
|
1970
2612
|
};
|
|
1971
|
-
return
|
|
2613
|
+
return $t({
|
|
1972
2614
|
value: d,
|
|
1973
2615
|
// computed ref
|
|
1974
|
-
defaultValue:
|
|
2616
|
+
defaultValue: De(() => t.defaultValue),
|
|
1975
2617
|
onChange: g
|
|
1976
|
-
}),
|
|
2618
|
+
}), o({
|
|
1977
2619
|
accordionRef: l
|
|
1978
|
-
}), (
|
|
2620
|
+
}), (f, a) => (p(), v("div", I(f.$attrs, {
|
|
1979
2621
|
ref_key: "accordionRef",
|
|
1980
2622
|
ref: l,
|
|
1981
|
-
class: [
|
|
2623
|
+
class: [r(It).wrapper, r(c)]
|
|
1982
2624
|
}), [
|
|
1983
|
-
|
|
2625
|
+
$(f.$slots, "default")
|
|
1984
2626
|
], 16));
|
|
1985
2627
|
}
|
|
1986
|
-
}),
|
|
1987
|
-
name:
|
|
1988
|
-
}),
|
|
1989
|
-
...
|
|
2628
|
+
}), Dn = y({
|
|
2629
|
+
name: Ct
|
|
2630
|
+
}), Bn = /* @__PURE__ */ y({
|
|
2631
|
+
...Dn,
|
|
1990
2632
|
props: {
|
|
1991
2633
|
type: {},
|
|
1992
2634
|
isCollapsible: { type: Boolean },
|
|
@@ -1994,37 +2636,37 @@ const lo = { render: no }, re = {
|
|
|
1994
2636
|
defaultValue: {},
|
|
1995
2637
|
theme: {}
|
|
1996
2638
|
},
|
|
1997
|
-
setup(e, { expose:
|
|
1998
|
-
const
|
|
1999
|
-
return
|
|
2000
|
-
accordionRef:
|
|
2001
|
-
}), (
|
|
2639
|
+
setup(e, { expose: o }) {
|
|
2640
|
+
const i = k(null);
|
|
2641
|
+
return o({
|
|
2642
|
+
accordionRef: i
|
|
2643
|
+
}), (t, n) => e.type === "multiple" ? (p(), E(Rn, I({ key: 0 }, t.$props, {
|
|
2002
2644
|
ref_key: "accordionRef",
|
|
2003
|
-
ref:
|
|
2645
|
+
ref: i
|
|
2004
2646
|
}), {
|
|
2005
|
-
default:
|
|
2006
|
-
|
|
2647
|
+
default: z(() => [
|
|
2648
|
+
$(t.$slots, "default")
|
|
2007
2649
|
]),
|
|
2008
2650
|
_: 3
|
|
2009
|
-
}, 16)) : (
|
|
2651
|
+
}, 16)) : (p(), E(An, I({ key: 1 }, t.$props, {
|
|
2010
2652
|
ref_key: "accordionRef",
|
|
2011
|
-
ref:
|
|
2653
|
+
ref: i
|
|
2012
2654
|
}), {
|
|
2013
|
-
default:
|
|
2014
|
-
|
|
2655
|
+
default: z(() => [
|
|
2656
|
+
$(t.$slots, "default")
|
|
2015
2657
|
]),
|
|
2016
2658
|
_: 3
|
|
2017
2659
|
}, 16));
|
|
2018
2660
|
}
|
|
2019
|
-
}),
|
|
2661
|
+
}), Vn = {
|
|
2020
2662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2021
2663
|
width: "10",
|
|
2022
2664
|
height: "7",
|
|
2023
2665
|
fill: "none"
|
|
2024
2666
|
};
|
|
2025
|
-
function
|
|
2026
|
-
return
|
|
2027
|
-
|
|
2667
|
+
function En(e, o) {
|
|
2668
|
+
return p(), v("svg", Vn, [...o[0] || (o[0] = [
|
|
2669
|
+
T("path", {
|
|
2028
2670
|
fill: "currentColor",
|
|
2029
2671
|
"fill-rule": "evenodd",
|
|
2030
2672
|
d: "M.176.78a.574.574 0 0 1 .857 0L4.96 5.058 8.967.692a.573.573 0 0 1 .857 0 .705.705 0 0 1 0 .933L5.485 6.351a.6.6 0 0 1-.14.114.573.573 0 0 1-.83-.026L.175 1.713a.706.706 0 0 1 0-.933Z",
|
|
@@ -2032,20 +2674,20 @@ function bo(e, r) {
|
|
|
2032
2674
|
}, null, -1)
|
|
2033
2675
|
])]);
|
|
2034
2676
|
}
|
|
2035
|
-
const
|
|
2036
|
-
wrapper:
|
|
2037
|
-
header:
|
|
2038
|
-
header_left:
|
|
2039
|
-
headerLeft:
|
|
2040
|
-
before_title:
|
|
2041
|
-
beforeTitle:
|
|
2042
|
-
chevron_container:
|
|
2043
|
-
chevronContainer:
|
|
2044
|
-
chevron_icon:
|
|
2045
|
-
chevronIcon:
|
|
2046
|
-
content:
|
|
2047
|
-
active:
|
|
2048
|
-
},
|
|
2677
|
+
const Mn = { render: En }, On = "Item-module__wrapper___Yv5zw", zn = "Item-module__header___Q13eV", Ln = "Item-module__header_left___cPyvw", Pn = "Item-module__header_left___cPyvw", Gn = "Item-module__before_title___moIL0", Nn = "Item-module__before_title___moIL0", Fn = "Item-module__chevron_container___0McTp", Hn = "Item-module__chevron_container___0McTp", Yn = "Item-module__chevron_icon___Yku1p", qn = "Item-module__chevron_icon___Yku1p", Un = "Item-module__content___GATuv", jn = "Item-module__active___fMoSb", K = {
|
|
2678
|
+
wrapper: On,
|
|
2679
|
+
header: zn,
|
|
2680
|
+
header_left: Ln,
|
|
2681
|
+
headerLeft: Pn,
|
|
2682
|
+
before_title: Gn,
|
|
2683
|
+
beforeTitle: Nn,
|
|
2684
|
+
chevron_container: Fn,
|
|
2685
|
+
chevronContainer: Hn,
|
|
2686
|
+
chevron_icon: Yn,
|
|
2687
|
+
chevronIcon: qn,
|
|
2688
|
+
content: Un,
|
|
2689
|
+
active: jn
|
|
2690
|
+
}, Kn = "Accordion.Item", Wn = /* @__PURE__ */ y({
|
|
2049
2691
|
__name: "Item",
|
|
2050
2692
|
props: {
|
|
2051
2693
|
theme: {},
|
|
@@ -2053,68 +2695,68 @@ const _o = { render: bo }, ko = "Item-module__wrapper___Yv5zw", fo = "Item-modul
|
|
|
2053
2695
|
title: {},
|
|
2054
2696
|
before: { default: null }
|
|
2055
2697
|
},
|
|
2056
|
-
setup(e, { expose:
|
|
2057
|
-
const
|
|
2058
|
-
|
|
2059
|
-
},
|
|
2060
|
-
const d =
|
|
2061
|
-
return Array.isArray(d) ? d.includes(
|
|
2698
|
+
setup(e, { expose: o }) {
|
|
2699
|
+
const i = e, t = k(null), { onChange: n, value: l } = Sn(Kn), s = Ee(i.theme), c = () => {
|
|
2700
|
+
n(i.value);
|
|
2701
|
+
}, u = _(() => {
|
|
2702
|
+
const d = r(l);
|
|
2703
|
+
return Array.isArray(d) ? d.includes(i.value) : d === i.value;
|
|
2062
2704
|
});
|
|
2063
|
-
return
|
|
2064
|
-
itemRef:
|
|
2065
|
-
}), (d,
|
|
2705
|
+
return o({
|
|
2706
|
+
itemRef: t
|
|
2707
|
+
}), (d, h) => (p(), v("div", I(d.$attrs, {
|
|
2066
2708
|
ref_key: "itemRef",
|
|
2067
|
-
ref:
|
|
2709
|
+
ref: t,
|
|
2068
2710
|
class: [
|
|
2069
|
-
|
|
2711
|
+
r(K).wrapper,
|
|
2070
2712
|
{
|
|
2071
|
-
[
|
|
2713
|
+
[r(K).active]: u.value
|
|
2072
2714
|
},
|
|
2073
|
-
|
|
2715
|
+
r(s)
|
|
2074
2716
|
]
|
|
2075
2717
|
}), [
|
|
2076
|
-
|
|
2077
|
-
class:
|
|
2078
|
-
onClick:
|
|
2718
|
+
T("div", {
|
|
2719
|
+
class: x(r(K).header),
|
|
2720
|
+
onClick: c
|
|
2079
2721
|
}, [
|
|
2080
|
-
|
|
2081
|
-
class:
|
|
2722
|
+
T("div", {
|
|
2723
|
+
class: x(r(K).header_left)
|
|
2082
2724
|
}, [
|
|
2083
|
-
e.before ? (
|
|
2725
|
+
e.before ? (p(), v("div", {
|
|
2084
2726
|
key: 0,
|
|
2085
|
-
class:
|
|
2727
|
+
class: x(r(K).before_title)
|
|
2086
2728
|
}, [
|
|
2087
|
-
(
|
|
2088
|
-
], 2)) :
|
|
2089
|
-
|
|
2090
|
-
theme:
|
|
2729
|
+
(p(), E(Re(e.before)))
|
|
2730
|
+
], 2)) : A("", !0),
|
|
2731
|
+
M(Le, {
|
|
2732
|
+
theme: r(ze),
|
|
2091
2733
|
size: "xl",
|
|
2092
2734
|
"is-ellipsis": !0
|
|
2093
2735
|
}, {
|
|
2094
|
-
default:
|
|
2095
|
-
|
|
2736
|
+
default: z(() => [
|
|
2737
|
+
L(D(e.title), 1)
|
|
2096
2738
|
]),
|
|
2097
2739
|
_: 1
|
|
2098
2740
|
}, 8, ["theme"])
|
|
2099
2741
|
], 2),
|
|
2100
|
-
|
|
2101
|
-
class:
|
|
2742
|
+
T("span", {
|
|
2743
|
+
class: x(r(K).chevron_container)
|
|
2102
2744
|
}, [
|
|
2103
|
-
|
|
2104
|
-
class:
|
|
2745
|
+
M(r(Mn), {
|
|
2746
|
+
class: x(r(K).chevron_icon)
|
|
2105
2747
|
}, null, 8, ["class"])
|
|
2106
2748
|
], 2)
|
|
2107
2749
|
], 2),
|
|
2108
|
-
|
|
2109
|
-
class:
|
|
2750
|
+
T("div", {
|
|
2751
|
+
class: x(r(K).content)
|
|
2110
2752
|
}, [
|
|
2111
|
-
|
|
2753
|
+
$(d.$slots, "default")
|
|
2112
2754
|
], 2)
|
|
2113
2755
|
], 16));
|
|
2114
2756
|
}
|
|
2115
|
-
}),
|
|
2757
|
+
}), na = {
|
|
2116
2758
|
"--crm-ui-kit-accordion-width": "100%"
|
|
2117
|
-
},
|
|
2759
|
+
}, la = {
|
|
2118
2760
|
"--crm-ui-kit-accordion-item-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
|
|
2119
2761
|
"--crm-ui-kit-accordion-item-box-shadow": "var(--crm-ui-kit-palette-accordion-item-box-shadow)",
|
|
2120
2762
|
"--crm-ui-kit-accordion-item-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
@@ -2122,16 +2764,16 @@ const _o = { render: bo }, ko = "Item-module__wrapper___Yv5zw", fo = "Item-modul
|
|
|
2122
2764
|
"--crm-ui-kit-accordion-item-margin-bottom": "16px",
|
|
2123
2765
|
"--crm-ui-kit-accordion-item-chevron-icon-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
2124
2766
|
"--crm-ui-kit-accordion-item-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
2125
|
-
},
|
|
2126
|
-
|
|
2127
|
-
const
|
|
2128
|
-
filter_tabs:
|
|
2129
|
-
filterTabs:
|
|
2130
|
-
horizontal:
|
|
2131
|
-
},
|
|
2132
|
-
name:
|
|
2133
|
-
}),
|
|
2134
|
-
...
|
|
2767
|
+
}, Zn = Bn;
|
|
2768
|
+
Zn.Item = Wn;
|
|
2769
|
+
const wt = "FilterTabs", [Jn, St] = F(wt), Xn = "FilterTabs-module__filter_tabs___-haM1", Qn = "FilterTabs-module__filter_tabs___-haM1", el = "FilterTabs-module__horizontal___e2s9c", Xe = {
|
|
2770
|
+
filter_tabs: Xn,
|
|
2771
|
+
filterTabs: Qn,
|
|
2772
|
+
horizontal: el
|
|
2773
|
+
}, tl = y({
|
|
2774
|
+
name: wt
|
|
2775
|
+
}), sa = /* @__PURE__ */ y({
|
|
2776
|
+
...tl,
|
|
2135
2777
|
props: {
|
|
2136
2778
|
theme: {},
|
|
2137
2779
|
orientation: { default: "horizontal" },
|
|
@@ -2139,53 +2781,53 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2139
2781
|
isDisabled: { type: Boolean, default: !1 }
|
|
2140
2782
|
},
|
|
2141
2783
|
emits: ["change"],
|
|
2142
|
-
setup(e, { expose:
|
|
2143
|
-
const
|
|
2144
|
-
const g =
|
|
2145
|
-
let
|
|
2146
|
-
if (!
|
|
2147
|
-
const
|
|
2148
|
-
|
|
2784
|
+
setup(e, { expose: o, emit: i }) {
|
|
2785
|
+
const t = e, n = i, l = k(null), s = k([]), c = (h) => {
|
|
2786
|
+
const g = s.value;
|
|
2787
|
+
let f = g;
|
|
2788
|
+
if (!h && s.value.length && (f = []), h) {
|
|
2789
|
+
const a = s.value.includes(h);
|
|
2790
|
+
t.isMultiSelect && (f = a ? g.filter((m) => m !== h) : [...g, h]), !t.isMultiSelect && !a && (f = [h]);
|
|
2149
2791
|
}
|
|
2150
|
-
|
|
2151
|
-
},
|
|
2152
|
-
const g =
|
|
2153
|
-
if (
|
|
2154
|
-
|
|
2792
|
+
s.value = f, n("change", f, h);
|
|
2793
|
+
}, u = (h) => {
|
|
2794
|
+
const g = s.value;
|
|
2795
|
+
if (t.isMultiSelect) {
|
|
2796
|
+
s.value = [...g, h];
|
|
2155
2797
|
return;
|
|
2156
2798
|
}
|
|
2157
|
-
!
|
|
2158
|
-
}, d =
|
|
2159
|
-
values:
|
|
2160
|
-
onChange:
|
|
2161
|
-
registerActiveName:
|
|
2162
|
-
isDisabled:
|
|
2799
|
+
!t.isMultiSelect && !g.length && (s.value = [h]);
|
|
2800
|
+
}, d = ie({
|
|
2801
|
+
values: s.value,
|
|
2802
|
+
onChange: c,
|
|
2803
|
+
registerActiveName: u,
|
|
2804
|
+
isDisabled: t.isDisabled
|
|
2163
2805
|
});
|
|
2164
|
-
return
|
|
2165
|
-
d.values =
|
|
2166
|
-
}),
|
|
2806
|
+
return dt(() => {
|
|
2807
|
+
d.values = s.value, d.isDisabled = t.isDisabled;
|
|
2808
|
+
}), Jn(d), o({
|
|
2167
2809
|
filterTabsRef: l
|
|
2168
|
-
}), (
|
|
2810
|
+
}), (h, g) => (p(), v("div", I(h.$attrs, {
|
|
2169
2811
|
ref_key: "filterTabsRef",
|
|
2170
2812
|
ref: l,
|
|
2171
2813
|
class: [
|
|
2172
|
-
|
|
2814
|
+
r(Xe).filter_tabs,
|
|
2173
2815
|
{
|
|
2174
|
-
[
|
|
2816
|
+
[r(Xe).horizontal]: e.orientation === "horizontal"
|
|
2175
2817
|
}
|
|
2176
2818
|
],
|
|
2177
2819
|
style: e.theme
|
|
2178
2820
|
}), [
|
|
2179
|
-
|
|
2821
|
+
$(h.$slots, "default")
|
|
2180
2822
|
], 16));
|
|
2181
2823
|
}
|
|
2182
|
-
}),
|
|
2824
|
+
}), aa = {
|
|
2183
2825
|
"--crm-ui-kit-filter-tabs-spacing": "8px"
|
|
2184
|
-
},
|
|
2185
|
-
item_root:
|
|
2186
|
-
itemRoot:
|
|
2187
|
-
disabled:
|
|
2188
|
-
},
|
|
2826
|
+
}, Tt = "FilterTabs.ItemRoot", [il, ol] = F(Tt), rl = "ItemRoot-module__item_root___TqVxI", nl = "ItemRoot-module__item_root___TqVxI", ll = "ItemRoot-module__disabled___VgRs7", Qe = {
|
|
2827
|
+
item_root: rl,
|
|
2828
|
+
itemRoot: nl,
|
|
2829
|
+
disabled: ll
|
|
2830
|
+
}, ca = /* @__PURE__ */ y({
|
|
2189
2831
|
__name: "ItemRoot",
|
|
2190
2832
|
props: {
|
|
2191
2833
|
isDisabled: { type: Boolean },
|
|
@@ -2195,65 +2837,65 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2195
2837
|
class: {}
|
|
2196
2838
|
},
|
|
2197
2839
|
setup(e) {
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
-
|
|
2840
|
+
const o = e, i = St(Tt), t = _(() => i.isDisabled), { registerActiveName: n } = i;
|
|
2841
|
+
te(() => {
|
|
2842
|
+
o.isDefaultActive && o.name && n(o.name);
|
|
2201
2843
|
});
|
|
2202
|
-
const l =
|
|
2203
|
-
const { theme:
|
|
2844
|
+
const l = _(() => {
|
|
2845
|
+
const { theme: s, class: c, isDefaultActive: u, ...d } = o;
|
|
2204
2846
|
return d;
|
|
2205
2847
|
});
|
|
2206
|
-
return
|
|
2207
|
-
class:
|
|
2208
|
-
|
|
2209
|
-
|
|
2848
|
+
return il(l.value), (s, c) => (p(), v("div", {
|
|
2849
|
+
class: x([
|
|
2850
|
+
r(Qe).item_root,
|
|
2851
|
+
o.class,
|
|
2210
2852
|
{
|
|
2211
|
-
[
|
|
2853
|
+
[r(Qe).disabled]: t.value || e.isDisabled
|
|
2212
2854
|
}
|
|
2213
2855
|
]),
|
|
2214
|
-
style:
|
|
2856
|
+
style: V(e.theme)
|
|
2215
2857
|
}, [
|
|
2216
|
-
|
|
2858
|
+
$(s.$slots, "default")
|
|
2217
2859
|
], 6));
|
|
2218
2860
|
}
|
|
2219
|
-
}),
|
|
2861
|
+
}), ua = {
|
|
2220
2862
|
"--crm-ui-kit-filter-tabs-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
2221
|
-
},
|
|
2222
|
-
button:
|
|
2223
|
-
selected:
|
|
2224
|
-
},
|
|
2863
|
+
}, sl = "Tab-module__button___iGASN", al = "Tab-module__selected___zxPPy", et = {
|
|
2864
|
+
button: sl,
|
|
2865
|
+
selected: al
|
|
2866
|
+
}, cl = ["name", "disabled"], tt = "FilterTabs.Tab", da = /* @__PURE__ */ y({
|
|
2225
2867
|
__name: "Tab",
|
|
2226
2868
|
props: {
|
|
2227
2869
|
class: { default: "" },
|
|
2228
2870
|
theme: {},
|
|
2229
2871
|
onClick: {}
|
|
2230
2872
|
},
|
|
2231
|
-
setup(e, { expose:
|
|
2232
|
-
const
|
|
2233
|
-
|
|
2873
|
+
setup(e, { expose: o }) {
|
|
2874
|
+
const i = e, { theme: t, class: n, ...l } = i, s = k(null), c = St(tt), { name: u, isDisabled: d } = ol(tt), h = _(() => c.values.includes(u)), g = _(() => c.isDisabled), f = () => {
|
|
2875
|
+
c.onChange(u);
|
|
2234
2876
|
};
|
|
2235
|
-
return
|
|
2236
|
-
buttonRef:
|
|
2237
|
-
}), (
|
|
2877
|
+
return o({
|
|
2878
|
+
buttonRef: s
|
|
2879
|
+
}), (a, m) => (p(), v("button", I({
|
|
2238
2880
|
ref_key: "buttonRef",
|
|
2239
|
-
ref:
|
|
2881
|
+
ref: s
|
|
2240
2882
|
}, l, {
|
|
2241
2883
|
class: [
|
|
2242
|
-
|
|
2884
|
+
r(et).button,
|
|
2243
2885
|
{
|
|
2244
|
-
[
|
|
2886
|
+
[r(et).selected]: h.value
|
|
2245
2887
|
},
|
|
2246
|
-
n
|
|
2888
|
+
r(n)
|
|
2247
2889
|
],
|
|
2248
|
-
style:
|
|
2249
|
-
name:
|
|
2250
|
-
disabled: g.value ||
|
|
2251
|
-
onClick:
|
|
2890
|
+
style: r(t),
|
|
2891
|
+
name: r(u),
|
|
2892
|
+
disabled: g.value || r(d),
|
|
2893
|
+
onClick: f
|
|
2252
2894
|
}), [
|
|
2253
|
-
|
|
2254
|
-
], 16,
|
|
2895
|
+
$(a.$slots, "default")
|
|
2896
|
+
], 16, cl));
|
|
2255
2897
|
}
|
|
2256
|
-
}),
|
|
2898
|
+
}), ma = {
|
|
2257
2899
|
"--crm-ui-kit-filter-tabs-tab-z-index": "3",
|
|
2258
2900
|
"--crm-ui-kit-filter-tabs-tab-action-color": "var(--crm-ui-kit-color-blueberry)",
|
|
2259
2901
|
"--crm-ui-kit-filter-tabs-tab-border-width": "1px",
|
|
@@ -2266,101 +2908,101 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2266
2908
|
"--crm-ui-kit-filter-tabs-tab-background-color": "var(--crm-ui-kit-palette-surface-background-color)",
|
|
2267
2909
|
"--crm-ui-kit-filter-tabs-tab-text-color": "var(--crm-ui-kit-palette-surface-text-color)",
|
|
2268
2910
|
"--crm-ui-kit-filter-tabs-tab-hover-background-color": "var(--crm-ui-kit-palette-surface-hover-background-color)"
|
|
2269
|
-
},
|
|
2911
|
+
}, At = "CheckboxGroup", [ul, Ge] = F(At), dl = ({
|
|
2270
2912
|
isDisabled: e,
|
|
2271
|
-
onChange:
|
|
2913
|
+
onChange: o
|
|
2272
2914
|
}) => {
|
|
2273
|
-
const
|
|
2274
|
-
const
|
|
2275
|
-
if (
|
|
2276
|
-
const d = Array.from(
|
|
2277
|
-
(
|
|
2915
|
+
const i = k(/* @__PURE__ */ new Map()), t = k({}), n = k([]), l = (c) => {
|
|
2916
|
+
const u = new Map(i.value);
|
|
2917
|
+
if (c.type === "selectAll" && !e) {
|
|
2918
|
+
const d = Array.from(u.values()).some(
|
|
2919
|
+
(h) => h.isChecked && !h.isDisabled
|
|
2278
2920
|
);
|
|
2279
|
-
|
|
2280
|
-
|
|
2921
|
+
u.forEach((h) => {
|
|
2922
|
+
h.isDisabled || (h.isChecked = !d);
|
|
2281
2923
|
});
|
|
2282
2924
|
}
|
|
2283
|
-
if (
|
|
2284
|
-
const d =
|
|
2285
|
-
d && !d.isDisabled &&
|
|
2925
|
+
if (c.type === "checkbox" && !e) {
|
|
2926
|
+
const d = u.get(c.name);
|
|
2927
|
+
d && !d.isDisabled && u.set(d.name, {
|
|
2286
2928
|
...d,
|
|
2287
2929
|
isChecked: !d.isChecked
|
|
2288
2930
|
});
|
|
2289
2931
|
}
|
|
2290
|
-
|
|
2932
|
+
i.value = u, typeof o.value == "function" && o.value([...u.values()], c);
|
|
2291
2933
|
};
|
|
2292
|
-
return
|
|
2293
|
-
() =>
|
|
2934
|
+
return P(
|
|
2935
|
+
() => n.value.length,
|
|
2294
2936
|
async () => {
|
|
2295
|
-
if (
|
|
2296
|
-
await
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2299
|
-
const
|
|
2300
|
-
|
|
2937
|
+
if (n.value.length) {
|
|
2938
|
+
await pe();
|
|
2939
|
+
const c = [...n.value];
|
|
2940
|
+
n.value = [];
|
|
2941
|
+
const u = new Map(i.value);
|
|
2942
|
+
c.forEach((d) => u.set(d.name, d)), i.value = u;
|
|
2301
2943
|
}
|
|
2302
2944
|
},
|
|
2303
2945
|
{ flush: "post" }
|
|
2304
2946
|
), {
|
|
2305
|
-
state:
|
|
2306
|
-
register: (
|
|
2307
|
-
name:
|
|
2308
|
-
isChecked: !!
|
|
2309
|
-
isDisabled: !!
|
|
2947
|
+
state: i,
|
|
2948
|
+
register: (c, u = {}) => (c !== "selectAll" && !t.value[c] && (t.value[c] = !0, n.value.push({
|
|
2949
|
+
name: c,
|
|
2950
|
+
isChecked: !!u.isDefaultChecked,
|
|
2951
|
+
isDisabled: !!u.isDisabled
|
|
2310
2952
|
})), {
|
|
2311
|
-
name:
|
|
2953
|
+
name: c,
|
|
2312
2954
|
onChange: l,
|
|
2313
|
-
...
|
|
2955
|
+
...u
|
|
2314
2956
|
})
|
|
2315
2957
|
};
|
|
2316
|
-
},
|
|
2317
|
-
checkbox_group:
|
|
2318
|
-
checkboxGroup:
|
|
2319
|
-
horizontal:
|
|
2320
|
-
},
|
|
2321
|
-
name:
|
|
2322
|
-
}),
|
|
2323
|
-
...
|
|
2958
|
+
}, ml = "CheckboxGroup-module__checkbox_group___4vTLu", pl = "CheckboxGroup-module__checkbox_group___4vTLu", hl = "CheckboxGroup-module__horizontal___ge9lI", it = {
|
|
2959
|
+
checkbox_group: ml,
|
|
2960
|
+
checkboxGroup: pl,
|
|
2961
|
+
horizontal: hl
|
|
2962
|
+
}, _l = y({
|
|
2963
|
+
name: At
|
|
2964
|
+
}), pa = /* @__PURE__ */ y({
|
|
2965
|
+
..._l,
|
|
2324
2966
|
props: {
|
|
2325
2967
|
onChange: {},
|
|
2326
2968
|
orientation: { default: "vertical" },
|
|
2327
2969
|
theme: {},
|
|
2328
2970
|
isDisabled: { type: Boolean, default: !1 }
|
|
2329
2971
|
},
|
|
2330
|
-
setup(e, { expose:
|
|
2331
|
-
const
|
|
2332
|
-
onChange:
|
|
2333
|
-
isDisabled:
|
|
2334
|
-
}),
|
|
2972
|
+
setup(e, { expose: o }) {
|
|
2973
|
+
const i = e, t = k(null), { register: n, state: l } = dl({
|
|
2974
|
+
onChange: De(i, "onChange"),
|
|
2975
|
+
isDisabled: i.isDisabled
|
|
2976
|
+
}), s = ie({
|
|
2335
2977
|
values: l.value,
|
|
2336
|
-
register:
|
|
2337
|
-
isDisabled:
|
|
2978
|
+
register: n,
|
|
2979
|
+
isDisabled: i.isDisabled
|
|
2338
2980
|
});
|
|
2339
|
-
return
|
|
2340
|
-
|
|
2341
|
-
}),
|
|
2342
|
-
checkboxGroupRef:
|
|
2343
|
-
}), (
|
|
2981
|
+
return dt(() => {
|
|
2982
|
+
s.values = l.value, s.isDisabled = i.isDisabled;
|
|
2983
|
+
}), ul(s), o({
|
|
2984
|
+
checkboxGroupRef: t
|
|
2985
|
+
}), (c, u) => (p(), v("div", I(c.$attrs, {
|
|
2344
2986
|
ref_key: "checkboxGroupRef",
|
|
2345
|
-
ref:
|
|
2987
|
+
ref: t,
|
|
2346
2988
|
class: [
|
|
2347
|
-
|
|
2989
|
+
r(it).checkbox_group,
|
|
2348
2990
|
{
|
|
2349
|
-
[
|
|
2991
|
+
[r(it).horizontal]: e.orientation === "horizontal"
|
|
2350
2992
|
}
|
|
2351
2993
|
],
|
|
2352
2994
|
style: e.theme
|
|
2353
2995
|
}), [
|
|
2354
|
-
|
|
2996
|
+
$(c.$slots, "default")
|
|
2355
2997
|
], 16));
|
|
2356
2998
|
}
|
|
2357
|
-
}),
|
|
2999
|
+
}), ha = {
|
|
2358
3000
|
"--crm-ui-kit-checkbox-group-spacing": "8px"
|
|
2359
|
-
},
|
|
2360
|
-
item_root:
|
|
2361
|
-
itemRoot:
|
|
2362
|
-
disabled:
|
|
2363
|
-
},
|
|
3001
|
+
}, Rt = "CheckboxGroup.ItemRoot", [bl] = F(Rt), fl = "ItemRoot-module__item_root___kiMNv", vl = "ItemRoot-module__item_root___kiMNv", kl = "ItemRoot-module__disabled___leaqM", de = {
|
|
3002
|
+
item_root: fl,
|
|
3003
|
+
itemRoot: vl,
|
|
3004
|
+
disabled: kl
|
|
3005
|
+
}, _a = /* @__PURE__ */ y({
|
|
2364
3006
|
__name: "ItemRoot",
|
|
2365
3007
|
props: {
|
|
2366
3008
|
name: {},
|
|
@@ -2371,32 +3013,32 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2371
3013
|
theme: {}
|
|
2372
3014
|
},
|
|
2373
3015
|
setup(e) {
|
|
2374
|
-
const
|
|
2375
|
-
const { theme: l, class:
|
|
3016
|
+
const o = e, i = Ge(Rt), t = _(() => i.isDisabled), n = _(() => {
|
|
3017
|
+
const { theme: l, class: s, ...c } = o;
|
|
2376
3018
|
return {
|
|
2377
|
-
...
|
|
2378
|
-
value:
|
|
3019
|
+
...i.register(o.name, c),
|
|
3020
|
+
value: o.value
|
|
2379
3021
|
};
|
|
2380
3022
|
});
|
|
2381
|
-
return
|
|
2382
|
-
class:
|
|
2383
|
-
|
|
2384
|
-
|
|
3023
|
+
return bl(n.value), (l, s) => (p(), v("div", {
|
|
3024
|
+
class: x([
|
|
3025
|
+
r(de).item_root,
|
|
3026
|
+
o.class,
|
|
2385
3027
|
{
|
|
2386
|
-
[
|
|
3028
|
+
[r(de).disabled]: t.value || e.isDisabled
|
|
2387
3029
|
}
|
|
2388
3030
|
]),
|
|
2389
|
-
style:
|
|
3031
|
+
style: V(e.theme)
|
|
2390
3032
|
}, [
|
|
2391
|
-
|
|
3033
|
+
$(l.$slots, "default")
|
|
2392
3034
|
], 6));
|
|
2393
3035
|
}
|
|
2394
|
-
}),
|
|
3036
|
+
}), ba = {
|
|
2395
3037
|
"--crm-ui-kit-checkbox-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
2396
|
-
},
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
] =
|
|
3038
|
+
}, Dt = "CheckboxGroup.ItemRootSelectAll", [
|
|
3039
|
+
xl,
|
|
3040
|
+
yl
|
|
3041
|
+
] = F(Dt), fa = /* @__PURE__ */ y({
|
|
2400
3042
|
__name: "ItemRootSelectAll",
|
|
2401
3043
|
props: {
|
|
2402
3044
|
isDisabled: { type: Boolean },
|
|
@@ -2404,27 +3046,27 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2404
3046
|
theme: {}
|
|
2405
3047
|
},
|
|
2406
3048
|
setup(e) {
|
|
2407
|
-
const
|
|
2408
|
-
const { theme: l, class:
|
|
3049
|
+
const o = e, i = Ge(Dt), t = _(() => i.isDisabled), n = _(() => {
|
|
3050
|
+
const { theme: l, class: s, ...c } = o;
|
|
2409
3051
|
return {
|
|
2410
|
-
...
|
|
2411
|
-
...
|
|
3052
|
+
...i.register("selectAll"),
|
|
3053
|
+
...c
|
|
2412
3054
|
};
|
|
2413
3055
|
});
|
|
2414
|
-
return
|
|
2415
|
-
class:
|
|
2416
|
-
|
|
2417
|
-
|
|
3056
|
+
return xl(n.value), (l, s) => (p(), v("div", {
|
|
3057
|
+
class: x([
|
|
3058
|
+
r(de).item_root,
|
|
3059
|
+
o.class,
|
|
2418
3060
|
{
|
|
2419
|
-
[
|
|
3061
|
+
[r(de).disabled]: t.value || e.isDisabled
|
|
2420
3062
|
}
|
|
2421
3063
|
]),
|
|
2422
|
-
style:
|
|
3064
|
+
style: V(e.theme)
|
|
2423
3065
|
}, [
|
|
2424
|
-
|
|
3066
|
+
$(l.$slots, "default")
|
|
2425
3067
|
], 6));
|
|
2426
3068
|
}
|
|
2427
|
-
}),
|
|
3069
|
+
}), ot = "CheckboxGroup.CheckboxSelectAll", Se = "selectAll", va = /* @__PURE__ */ y({
|
|
2428
3070
|
__name: "CheckboxSelectAll",
|
|
2429
3071
|
props: {
|
|
2430
3072
|
isReadonly: { type: Boolean },
|
|
@@ -2435,41 +3077,41 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2435
3077
|
theme: {},
|
|
2436
3078
|
class: { default: "" }
|
|
2437
3079
|
},
|
|
2438
|
-
setup(e, { expose:
|
|
2439
|
-
const
|
|
2440
|
-
d.onChange({ type:
|
|
2441
|
-
}, g =
|
|
2442
|
-
const
|
|
2443
|
-
(
|
|
3080
|
+
setup(e, { expose: o }) {
|
|
3081
|
+
const i = e, { theme: t, class: n, checkedStyle: l, ...s } = i, c = k(null), u = Ge(ot), d = yl(ot), h = () => {
|
|
3082
|
+
d.onChange({ type: Se, name: Se });
|
|
3083
|
+
}, g = _(() => {
|
|
3084
|
+
const f = u.values, m = Array.from(f.values()).every(
|
|
3085
|
+
(b) => b.isChecked
|
|
2444
3086
|
) ? "mark" : "indeterminate";
|
|
2445
3087
|
return {
|
|
2446
|
-
isChecked: Array.from(
|
|
2447
|
-
(
|
|
3088
|
+
isChecked: Array.from(f.values()).some(
|
|
3089
|
+
(b) => b.isChecked
|
|
2448
3090
|
),
|
|
2449
|
-
checkedStyle:
|
|
3091
|
+
checkedStyle: m
|
|
2450
3092
|
};
|
|
2451
3093
|
});
|
|
2452
|
-
return
|
|
2453
|
-
checkboxRef:
|
|
2454
|
-
}), (
|
|
3094
|
+
return o({
|
|
3095
|
+
checkboxRef: c
|
|
3096
|
+
}), (f, a) => (p(), E(ke, I({
|
|
2455
3097
|
ref_key: "checkboxRef",
|
|
2456
|
-
ref:
|
|
2457
|
-
class: n
|
|
2458
|
-
theme:
|
|
2459
|
-
value:
|
|
2460
|
-
"is-disabled":
|
|
3098
|
+
ref: c,
|
|
3099
|
+
class: r(n),
|
|
3100
|
+
theme: r(t),
|
|
3101
|
+
value: Se,
|
|
3102
|
+
"is-disabled": r(u).isDisabled || r(d).isDisabled,
|
|
2461
3103
|
"is-checked": g.value.isChecked,
|
|
2462
3104
|
"checked-style": g.value.checkedStyle
|
|
2463
|
-
},
|
|
3105
|
+
}, s, { onChange: h }), null, 16, ["class", "theme", "is-disabled", "is-checked", "checked-style"]));
|
|
2464
3106
|
}
|
|
2465
|
-
}),
|
|
2466
|
-
radiogroup:
|
|
2467
|
-
horizontal:
|
|
2468
|
-
},
|
|
2469
|
-
item_root:
|
|
2470
|
-
itemRoot:
|
|
2471
|
-
disabled:
|
|
2472
|
-
},
|
|
3107
|
+
}), Bt = "RadioGroup", [gl, Vt] = F(Bt), Cl = "RadioGroup-module__radiogroup___A36hR", $l = "RadioGroup-module__horizontal___QsBvv", rt = {
|
|
3108
|
+
radiogroup: Cl,
|
|
3109
|
+
horizontal: $l
|
|
3110
|
+
}, Et = "RadioGroup.ItemRoot", [Il, wl] = F(Et), Sl = "ItemRoot-module__item_root___PGFFE", Tl = "ItemRoot-module__item_root___PGFFE", Al = "ItemRoot-module__disabled___-CJGV", nt = {
|
|
3111
|
+
item_root: Sl,
|
|
3112
|
+
itemRoot: Tl,
|
|
3113
|
+
disabled: Al
|
|
3114
|
+
}, ka = /* @__PURE__ */ y({
|
|
2473
3115
|
__name: "ItemRoot",
|
|
2474
3116
|
props: {
|
|
2475
3117
|
theme: {},
|
|
@@ -2483,74 +3125,74 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2483
3125
|
onBlur: {}
|
|
2484
3126
|
},
|
|
2485
3127
|
setup(e) {
|
|
2486
|
-
const
|
|
2487
|
-
const { theme: l, ...
|
|
2488
|
-
return
|
|
3128
|
+
const o = e, i = Vt(Et), t = _(() => i.isDisabled), n = _(() => {
|
|
3129
|
+
const { theme: l, ...s } = o;
|
|
3130
|
+
return s;
|
|
2489
3131
|
});
|
|
2490
|
-
return
|
|
2491
|
-
class:
|
|
2492
|
-
|
|
3132
|
+
return Il(n.value), (l, s) => (p(), v("div", {
|
|
3133
|
+
class: x([
|
|
3134
|
+
r(nt).item_root,
|
|
2493
3135
|
{
|
|
2494
|
-
[
|
|
3136
|
+
[r(nt).disabled]: t.value || e.isDisabled
|
|
2495
3137
|
}
|
|
2496
3138
|
]),
|
|
2497
|
-
style:
|
|
3139
|
+
style: V(e.theme)
|
|
2498
3140
|
}, [
|
|
2499
|
-
|
|
3141
|
+
$(l.$slots, "default")
|
|
2500
3142
|
], 6));
|
|
2501
3143
|
}
|
|
2502
|
-
}),
|
|
3144
|
+
}), xa = {
|
|
2503
3145
|
"--crm-ui-kit-radio-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
|
|
2504
|
-
},
|
|
2505
|
-
wrapper:
|
|
2506
|
-
radio:
|
|
2507
|
-
input:
|
|
2508
|
-
},
|
|
3146
|
+
}, Rl = "Radio-module__wrapper___hnp4O", Dl = "Radio-module__radio___XkxE9", Bl = "Radio-module__input___ccZzQ", Te = {
|
|
3147
|
+
wrapper: Rl,
|
|
3148
|
+
radio: Dl,
|
|
3149
|
+
input: Bl
|
|
3150
|
+
}, lt = "RadioGroup.Radio", ya = /* @__PURE__ */ y({
|
|
2509
3151
|
__name: "Radio",
|
|
2510
3152
|
props: {
|
|
2511
3153
|
class: { default: "" },
|
|
2512
3154
|
theme: {}
|
|
2513
3155
|
},
|
|
2514
|
-
setup(e, { expose:
|
|
2515
|
-
const
|
|
3156
|
+
setup(e, { expose: o }) {
|
|
3157
|
+
const i = e, t = k(null), n = Vt(lt), {
|
|
2516
3158
|
value: l,
|
|
2517
|
-
isDisabled:
|
|
2518
|
-
class:
|
|
2519
|
-
...
|
|
2520
|
-
} =
|
|
2521
|
-
const
|
|
2522
|
-
name:
|
|
2523
|
-
onChange:
|
|
2524
|
-
...
|
|
3159
|
+
isDisabled: s,
|
|
3160
|
+
class: c,
|
|
3161
|
+
...u
|
|
3162
|
+
} = wl(lt), d = _(() => {
|
|
3163
|
+
const h = {
|
|
3164
|
+
name: n.name,
|
|
3165
|
+
onChange: n.onChange,
|
|
3166
|
+
...u
|
|
2525
3167
|
};
|
|
2526
|
-
return
|
|
2527
|
-
isDefaultChecked:
|
|
2528
|
-
...
|
|
3168
|
+
return n.defaultValue ? {
|
|
3169
|
+
isDefaultChecked: n.defaultValue === l,
|
|
3170
|
+
...h
|
|
2529
3171
|
} : {
|
|
2530
|
-
isChecked:
|
|
2531
|
-
...
|
|
3172
|
+
isChecked: n.value === l,
|
|
3173
|
+
...h
|
|
2532
3174
|
};
|
|
2533
3175
|
});
|
|
2534
|
-
return
|
|
2535
|
-
inputRef:
|
|
2536
|
-
}), (
|
|
2537
|
-
class:
|
|
2538
|
-
style:
|
|
3176
|
+
return o({
|
|
3177
|
+
inputRef: t
|
|
3178
|
+
}), (h, g) => (p(), v("div", {
|
|
3179
|
+
class: x([r(Te).wrapper, r(c)]),
|
|
3180
|
+
style: V(e.theme)
|
|
2539
3181
|
}, [
|
|
2540
|
-
|
|
3182
|
+
M(be, I({
|
|
2541
3183
|
ref_key: "inputRef",
|
|
2542
|
-
ref:
|
|
2543
|
-
class: [
|
|
3184
|
+
ref: t,
|
|
3185
|
+
class: [r(Te).input, i.class],
|
|
2544
3186
|
type: "radio",
|
|
2545
|
-
value:
|
|
2546
|
-
"is-disabled": n
|
|
3187
|
+
value: r(l),
|
|
3188
|
+
"is-disabled": r(n).isDisabled || r(s)
|
|
2547
3189
|
}, d.value), null, 16, ["class", "value", "is-disabled"]),
|
|
2548
|
-
|
|
2549
|
-
class:
|
|
3190
|
+
T("span", {
|
|
3191
|
+
class: x(r(Te).radio)
|
|
2550
3192
|
}, null, 2)
|
|
2551
3193
|
], 6));
|
|
2552
3194
|
}
|
|
2553
|
-
}),
|
|
3195
|
+
}), ga = {
|
|
2554
3196
|
"--crm-ui-kit-radio-size": "20px",
|
|
2555
3197
|
"--crm-ui-kit-radio-z-index": "3",
|
|
2556
3198
|
"--crm-ui-kit-radio-checked-circle-size": "8px",
|
|
@@ -2565,10 +3207,10 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2565
3207
|
"--crm-ui-kit-radio-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
|
|
2566
3208
|
"--crm-ui-kit-radio-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
|
|
2567
3209
|
"--crm-ui-kit-radio-focus-visible-border-radius": "50%"
|
|
2568
|
-
},
|
|
2569
|
-
name:
|
|
2570
|
-
}),
|
|
2571
|
-
...
|
|
3210
|
+
}, Vl = y({
|
|
3211
|
+
name: Bt
|
|
3212
|
+
}), Ca = /* @__PURE__ */ y({
|
|
3213
|
+
...Vl,
|
|
2572
3214
|
props: {
|
|
2573
3215
|
theme: {},
|
|
2574
3216
|
orientation: { default: "vertical" },
|
|
@@ -2578,170 +3220,181 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
|
|
|
2578
3220
|
isDisabled: { type: Boolean, default: !1 }
|
|
2579
3221
|
},
|
|
2580
3222
|
emits: ["change"],
|
|
2581
|
-
setup(e, { expose:
|
|
2582
|
-
const
|
|
3223
|
+
setup(e, { expose: o, emit: i }) {
|
|
3224
|
+
const t = e, n = i, l = k(null), c = ie({
|
|
2583
3225
|
get name() {
|
|
2584
|
-
return
|
|
3226
|
+
return t.name;
|
|
2585
3227
|
},
|
|
2586
3228
|
get value() {
|
|
2587
|
-
return
|
|
3229
|
+
return t.value;
|
|
2588
3230
|
},
|
|
2589
3231
|
get defaultValue() {
|
|
2590
|
-
return
|
|
3232
|
+
return t.defaultValue;
|
|
2591
3233
|
},
|
|
2592
3234
|
get isDisabled() {
|
|
2593
|
-
return
|
|
3235
|
+
return t.isDisabled;
|
|
2594
3236
|
},
|
|
2595
|
-
onChange: (
|
|
2596
|
-
const d =
|
|
2597
|
-
|
|
3237
|
+
onChange: (u) => {
|
|
3238
|
+
const d = u.target;
|
|
3239
|
+
n("change", d.value);
|
|
2598
3240
|
}
|
|
2599
3241
|
});
|
|
2600
|
-
return
|
|
3242
|
+
return gl(c), o({
|
|
2601
3243
|
radiogroupRef: l
|
|
2602
|
-
}), (
|
|
3244
|
+
}), (u, d) => (p(), v("div", I(u.$attrs, {
|
|
2603
3245
|
ref_key: "radiogroupRef",
|
|
2604
3246
|
ref: l,
|
|
2605
3247
|
role: "radiogroup",
|
|
2606
3248
|
class: [
|
|
2607
|
-
|
|
3249
|
+
r(rt).radiogroup,
|
|
2608
3250
|
{
|
|
2609
|
-
[
|
|
3251
|
+
[r(rt).horizontal]: e.orientation === "horizontal"
|
|
2610
3252
|
}
|
|
2611
3253
|
],
|
|
2612
3254
|
style: e.theme
|
|
2613
3255
|
}), [
|
|
2614
|
-
|
|
3256
|
+
$(u.$slots, "default")
|
|
2615
3257
|
], 16));
|
|
2616
3258
|
}
|
|
2617
|
-
}),
|
|
3259
|
+
}), $a = {
|
|
2618
3260
|
"--crm-ui-kit-radio-group-spacing": "8px"
|
|
2619
|
-
},
|
|
2620
|
-
function
|
|
3261
|
+
}, El = "0.0.1";
|
|
3262
|
+
function Ml(e, o) {
|
|
2621
3263
|
}
|
|
2622
|
-
const
|
|
2623
|
-
install:
|
|
2624
|
-
version:
|
|
3264
|
+
const Ia = {
|
|
3265
|
+
install: Ml,
|
|
3266
|
+
version: El
|
|
2625
3267
|
};
|
|
2626
3268
|
export {
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
3269
|
+
zl as APPEARANCE_ATTRIBUTE_NAME,
|
|
3270
|
+
Zn as Accordion,
|
|
3271
|
+
la as AccordionItemTheme,
|
|
3272
|
+
na as AccordionTheme,
|
|
3273
|
+
ce as Appearance,
|
|
3274
|
+
Me as BaseInput,
|
|
3275
|
+
ts as Button,
|
|
3276
|
+
is as ButtonNeutralTheme,
|
|
3277
|
+
os as ButtonPrimaryTheme,
|
|
3278
|
+
rs as ButtonSecondaryTheme,
|
|
3279
|
+
ea as Callout,
|
|
3280
|
+
ye as CalloutBaseValues,
|
|
3281
|
+
ia as CalloutErrorTheme,
|
|
3282
|
+
ra as CalloutInfoTheme,
|
|
3283
|
+
oa as CalloutSuccessTheme,
|
|
3284
|
+
ta as CalloutWarningTheme,
|
|
3285
|
+
ke as Checkbox,
|
|
3286
|
+
Gs as CheckboxDarkTheme,
|
|
3287
|
+
pa as CheckboxGroup,
|
|
3288
|
+
_a as CheckboxGroupItemRoot,
|
|
3289
|
+
ba as CheckboxGroupItemRootTheme,
|
|
3290
|
+
ha as CheckboxGroupTheme,
|
|
3291
|
+
Pe as CheckboxLightTheme,
|
|
3292
|
+
va as CheckboxSelectAll,
|
|
3293
|
+
Ns as CheckboxSmallDarkTheme,
|
|
3294
|
+
Ps as CheckboxSmallLightTheme,
|
|
3295
|
+
Ws as ContentBlock,
|
|
3296
|
+
Zs as ContentBlockTheme,
|
|
3297
|
+
Ll as DEFAULT_APPEARANCE,
|
|
3298
|
+
sa as FilterTabs,
|
|
3299
|
+
ua as FilterTabsItemRootTheme,
|
|
3300
|
+
aa as FilterTabsTheme,
|
|
3301
|
+
_s as InlineInput,
|
|
3302
|
+
uo as InlineInputInvalidTextTheme,
|
|
3303
|
+
hs as InlineInputPrimaryFocusedTheme,
|
|
3304
|
+
ps as InlineInputPrimaryTheme,
|
|
3305
|
+
cs as Input,
|
|
3306
|
+
Ii as InputDarkTheme,
|
|
3307
|
+
wi as InputInvalidTextTheme,
|
|
3308
|
+
_t as InputLightTheme,
|
|
3309
|
+
ss as InputPrimaryTheme,
|
|
3310
|
+
as as InputSecondaryTheme,
|
|
3311
|
+
ca as ItemRoot,
|
|
3312
|
+
fa as ItemRootSelectAll,
|
|
3313
|
+
fs as Label,
|
|
3314
|
+
zs as LabelGroup,
|
|
3315
|
+
Ls as LabelGroupTheme,
|
|
3316
|
+
Tr as LabelTheme,
|
|
3317
|
+
Js as Link,
|
|
3318
|
+
Xs as LinkPrimaryTheme,
|
|
3319
|
+
Ke as List,
|
|
3320
|
+
As as ListTheme,
|
|
3321
|
+
Vs as MultiSelect,
|
|
3322
|
+
Ys as MultiSelectAll,
|
|
3323
|
+
js as MultiSelectCombobox,
|
|
3324
|
+
Hs as MultiSelectGroup,
|
|
3325
|
+
Fs as MultiSelectItem,
|
|
3326
|
+
Os as MultiSelectList,
|
|
3327
|
+
Es as MultiSelectRootTheme,
|
|
3328
|
+
Us as MultiSelectSearch,
|
|
3329
|
+
Ms as MultiSelectTrigger,
|
|
3330
|
+
qs as MultiSelectValue,
|
|
3331
|
+
Ve as PORTAL_TARGETS,
|
|
3332
|
+
Ks as Portal,
|
|
3333
|
+
ya as Radio,
|
|
3334
|
+
Ca as RadioGroup,
|
|
3335
|
+
ka as RadioGroupItemRoot,
|
|
3336
|
+
xa as RadioGroupItemRootTheme,
|
|
3337
|
+
$a as RadioGroupTheme,
|
|
3338
|
+
ga as RadioPrimaryTheme,
|
|
3339
|
+
ys as Select,
|
|
3340
|
+
Is as SelectArrow,
|
|
3341
|
+
ws as SelectArrowTheme,
|
|
3342
|
+
vt as SelectButton,
|
|
3343
|
+
xs as SelectButtonDarkTheme,
|
|
3344
|
+
ks as SelectButtonLightTheme,
|
|
3345
|
+
Ss as SelectIcon,
|
|
3346
|
+
Ts as SelectIconTheme,
|
|
3347
|
+
Cs as SelectItem,
|
|
3348
|
+
$s as SelectItemTheme,
|
|
3349
|
+
Ds as SelectList,
|
|
3350
|
+
As as SelectListTheme,
|
|
3351
|
+
re as SelectOption,
|
|
3352
|
+
gs as SelectRootTheme,
|
|
3353
|
+
Rs as SelectTrigger,
|
|
3354
|
+
Bs as SelectValue,
|
|
3355
|
+
ci as Spinner,
|
|
3356
|
+
Qs as SpinnerTheme,
|
|
3357
|
+
bs as Switcher,
|
|
3358
|
+
vs as SwitcherPrimaryTheme,
|
|
3359
|
+
mt as THEME_PROVIDER_KEY,
|
|
3360
|
+
da as Tab,
|
|
3361
|
+
ma as TabPrimaryTheme,
|
|
3362
|
+
Le as Text,
|
|
3363
|
+
us as TextArea,
|
|
3364
|
+
fe as TextBaseSizesTheme,
|
|
3365
|
+
$i as TextErrorTheme,
|
|
3366
|
+
ze as TextPrimaryTheme,
|
|
3367
|
+
ls as TextSecondaryDarkTheme,
|
|
3368
|
+
ns as TextSecondaryLightTheme,
|
|
3369
|
+
ms as TextareaDarkTheme,
|
|
3370
|
+
ds as TextareaLightTheme,
|
|
3371
|
+
Kl as ValidationRules,
|
|
3372
|
+
be as VisuallyHiddenInput,
|
|
3373
|
+
Jl as cn,
|
|
3374
|
+
Fl as createComponentTheme,
|
|
3375
|
+
Hl as createPortalId,
|
|
3376
|
+
Xl as debounce,
|
|
3377
|
+
Xt as deepMerge,
|
|
3378
|
+
Ia as default,
|
|
3379
|
+
Zl as generateId,
|
|
3380
|
+
Ml as install,
|
|
3381
|
+
He as isObject,
|
|
3382
|
+
es as isSupported,
|
|
3383
|
+
Wl as noop,
|
|
3384
|
+
Pl as provideTheme,
|
|
3385
|
+
Ql as throttle,
|
|
3386
|
+
jt as useComponentTheme,
|
|
3387
|
+
Ul as useDropdownPortal,
|
|
3388
|
+
Kt as useFieldValidation,
|
|
3389
|
+
jl as useFormValidation,
|
|
3390
|
+
Yl as useModalPortal,
|
|
3391
|
+
W as useMultiSelectContext,
|
|
3392
|
+
Be as usePortal,
|
|
3393
|
+
pt as useTheme,
|
|
3394
|
+
Ee as useThemeClassName,
|
|
3395
|
+
Gl as useThemeMode,
|
|
3396
|
+
Nl as useThemeVariables,
|
|
3397
|
+
ql as useTooltipPortal,
|
|
3398
|
+
El as version
|
|
2746
3399
|
};
|
|
2747
3400
|
//# sourceMappingURL=index.js.map
|