vue-efko-data-view 1.0.3 → 1.0.5

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.
@@ -1,1629 +1,135 @@
1
- import { inject as pt, shallowRef as ge, getCurrentInstance as Vt, defineComponent as z, watch as D, unref as F, provide as gt, watchEffect as _t, onBeforeUnmount as Ue, ref as _, computed as E, triggerRef as Rt, resolveComponent as H, createElementBlock as A, openBlock as g, createElementVNode as V, createBlock as B, createCommentVNode as j, Fragment as L, renderList as G, normalizeStyle as Ve, withCtx as C, createTextVNode as P, toDisplayString as U, createVNode as M, h as ie, createSlots as we, renderSlot as O, onMounted as le, normalizeClass as Lt, mergeProps as Xe, resolveDynamicComponent as ht, reactive as Ge, normalizeProps as ue, guardReactiveProps as de } from "vue";
2
- import { isEqual as J } from "lodash";
3
- import We from "@formkit/auto-animate";
4
- import { CheckCircleTwoTone as Ye, EyeOutlined as vt, EditOutlined as mt, RedoOutlined as yt, DeleteOutlined as bt, AppstoreOutlined as Ot, PicCenterOutlined as zt } from "@ant-design/icons-vue";
5
- import Pt from "@vueform/multiselect";
6
- import { Empty as Nt } from "efko-ui-library";
7
- function T() {
8
- return T = Object.assign ? Object.assign.bind() : function(e) {
9
- for (var o = 1; o < arguments.length; o++) {
10
- var t = arguments[o];
11
- for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
12
- }
13
- return e;
14
- }, T.apply(null, arguments);
15
- }
16
- function xt(e) {
17
- for (var o = 0, t, n = 0, r = e.length; r >= 4; ++n, r -= 4)
18
- t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
19
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
20
- t >>> 24, o = /* Math.imul(k, m): */
21
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
22
- (o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16);
23
- switch (r) {
24
- case 3:
25
- o ^= (e.charCodeAt(n + 2) & 255) << 16;
26
- case 2:
27
- o ^= (e.charCodeAt(n + 1) & 255) << 8;
28
- case 1:
29
- o ^= e.charCodeAt(n) & 255, o = /* Math.imul(h, m): */
30
- (o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16);
31
- }
32
- return o ^= o >>> 13, o = /* Math.imul(h, m): */
33
- (o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16), ((o ^ o >>> 15) >>> 0).toString(36);
34
- }
35
- const et = "%";
36
- class jt {
37
- constructor(o) {
38
- this.cache = /* @__PURE__ */ new Map(), this.instanceId = o;
39
- }
40
- get(o) {
41
- return this.cache.get(Array.isArray(o) ? o.join(et) : o) || null;
42
- }
43
- update(o, t) {
44
- const n = Array.isArray(o) ? o.join(et) : o, r = this.cache.get(n), a = t(r);
45
- a === null ? this.cache.delete(n) : this.cache.set(n, a);
46
- }
47
- }
48
- const Ut = (e) => {
49
- const o = e;
50
- return o.install = function(t) {
51
- t.component(o.displayName || o.name, e);
52
- }, e;
53
- };
54
- function St(e) {
55
- return {
56
- type: Object,
57
- default: e
58
- };
59
- }
60
- function ke(e) {
61
- return {
62
- type: Boolean,
63
- default: e
64
- };
65
- }
66
- function Xt(e, o) {
67
- const t = {
68
- validator: () => !0,
69
- default: e
70
- };
71
- return t;
72
- }
73
- function tt(e) {
74
- return {
75
- type: Array,
76
- default: e
77
- };
78
- }
79
- function ot(e) {
80
- return {
81
- type: String,
82
- default: e
83
- };
84
- }
85
- function Gt(e, o) {
86
- return e ? {
87
- type: e,
88
- default: o
89
- } : Xt(o);
90
- }
91
- const Wt = "data-token-hash", Me = "data-css-hash", pe = "__cssinjs_instance__";
92
- function he() {
93
- const e = Math.random().toString(12).slice(2);
94
- if (typeof document < "u" && document.head && document.body) {
95
- const o = document.body.querySelectorAll(`style[${Me}]`) || [], {
96
- firstChild: t
97
- } = document.head;
98
- Array.from(o).forEach((r) => {
99
- r[pe] = r[pe] || e, r[pe] === e && document.head.insertBefore(r, t);
100
- });
101
- const n = {};
102
- Array.from(document.querySelectorAll(`style[${Me}]`)).forEach((r) => {
103
- var a;
104
- const l = r.getAttribute(Me);
105
- n[l] ? r[pe] === e && ((a = r.parentNode) === null || a === void 0 || a.removeChild(r)) : n[l] = !0;
106
- });
107
- }
108
- return new jt(e);
109
- }
110
- const At = Symbol("StyleContextKey"), qt = () => {
111
- var e, o, t;
112
- const n = Vt();
113
- let r;
114
- if (n && n.appContext) {
115
- const a = (t = (o = (e = n.appContext) === null || e === void 0 ? void 0 : e.config) === null || o === void 0 ? void 0 : o.globalProperties) === null || t === void 0 ? void 0 : t.__ANTDV_CSSINJS_CACHE__;
116
- a ? r = a : (r = he(), n.appContext.config.globalProperties && (n.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = r));
117
- } else
118
- r = he();
119
- return r;
120
- }, Ct = {
121
- cache: he(),
122
- defaultCache: !0,
123
- hashPriority: "low"
124
- }, qe = () => {
125
- const e = qt();
126
- return pt(At, ge(T(T({}, Ct), {
127
- cache: e
128
- })));
129
- }, Kt = (e) => {
130
- const o = qe(), t = ge(T(T({}, Ct), {
131
- cache: he()
132
- }));
133
- return D([() => F(e), o], () => {
134
- const n = T({}, o.value), r = F(e);
135
- Object.keys(r).forEach((l) => {
136
- const c = r[l];
137
- r[l] !== void 0 && (n[l] = c);
138
- });
139
- const {
140
- cache: a
141
- } = r;
142
- n.cache = n.cache || he(), n.defaultCache = !a && o.value.defaultCache, t.value = n;
143
- }, {
144
- immediate: !0
145
- }), gt(At, t), t;
146
- }, Zt = () => ({
147
- autoClear: ke(),
148
- /** @private Test only. Not work in production. */
149
- mock: ot(),
150
- /**
151
- * Only set when you need ssr to extract style on you own.
152
- * If not provided, it will auto create <style /> on the end of Provider in server side.
153
- */
154
- cache: St(),
155
- /** Tell children that this context is default generated context */
156
- defaultCache: ke(),
157
- /** Use `:where` selector to reduce hashId css selector priority */
158
- hashPriority: ot(),
159
- /** Tell cssinjs where to inject style in */
160
- container: Gt(),
161
- /** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
162
- ssrInline: ke(),
163
- /** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
164
- transformers: tt(),
165
- /**
166
- * Linters to lint css before inject in document.
167
- * Styles will be linted after transforming.
168
- * Please note that `linters` do not support dynamic update.
169
- */
170
- linters: tt()
171
- });
172
- Ut(z({
173
- name: "AStyleProvider",
174
- inheritAttrs: !1,
175
- props: Zt(),
176
- setup(e, {
177
- slots: o
178
- }) {
179
- return Kt(e), () => {
180
- var t;
181
- return (t = o.default) === null || t === void 0 ? void 0 : t.call(o);
182
- };
183
- }
184
- }));
185
- function Qt() {
186
- return !1;
187
- }
188
- let _e = !1;
189
- function Jt() {
190
- return _e;
191
- }
192
- const Yt = process.env.NODE_ENV === "production" ? Qt : Jt;
193
- if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
194
- const e = window;
195
- if (typeof e.webpackHotUpdate == "function") {
196
- const o = e.webpackHotUpdate;
197
- e.webpackHotUpdate = (...t) => (_e = !0, setTimeout(() => {
198
- _e = !1;
199
- }, 0), o(...t));
200
- }
201
- }
202
- function eo(e, o, t, n) {
203
- const r = qe(), a = ge(""), l = ge();
204
- _t(() => {
205
- a.value = [e, ...o.value].join("%");
206
- });
207
- const c = Yt(), f = (d) => {
208
- r.value.cache.update(d, (u) => {
209
- const [p = 0, S] = u || [];
210
- return p - 1 === 0 ? (n == null || n(S, !1), null) : [p - 1, S];
211
- });
212
- };
213
- return D(a, (d, u) => {
214
- u && f(u), r.value.cache.update(d, (p) => {
215
- const [S = 0, x] = p || [];
216
- let i = x;
217
- process.env.NODE_ENV !== "production" && x && c && (n == null || n(i, c), i = null);
218
- const m = i || t();
219
- return [S + 1, m];
220
- }), l.value = r.value.cache.get(a.value)[1];
221
- }, {
222
- immediate: !0
223
- }), Ue(() => {
224
- f(a.value);
225
- }), l;
226
- }
227
- function to(e, o) {
228
- if (e.length !== o.length)
229
- return !1;
230
- for (let t = 0; t < e.length; t++)
231
- if (e[t] !== o[t])
232
- return !1;
233
- return !0;
234
- }
235
- class se {
236
- constructor() {
237
- this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
238
- }
239
- size() {
240
- return this.keys.length;
241
- }
242
- internalGet(o, t = !1) {
243
- let n = {
244
- map: this.cache
245
- };
246
- return o.forEach((r) => {
247
- var a;
248
- n ? n = (a = n == null ? void 0 : n.map) === null || a === void 0 ? void 0 : a.get(r) : n = void 0;
249
- }), n != null && n.value && t && (n.value[1] = this.cacheCallTimes++), n == null ? void 0 : n.value;
250
- }
251
- get(o) {
252
- var t;
253
- return (t = this.internalGet(o, !0)) === null || t === void 0 ? void 0 : t[0];
254
- }
255
- has(o) {
256
- return !!this.internalGet(o);
257
- }
258
- set(o, t) {
259
- if (!this.has(o)) {
260
- if (this.size() + 1 > se.MAX_CACHE_SIZE + se.MAX_CACHE_OFFSET) {
261
- const [r] = this.keys.reduce((a, l) => {
262
- const [, c] = a;
263
- return this.internalGet(l)[1] < c ? [l, this.internalGet(l)[1]] : a;
264
- }, [this.keys[0], this.cacheCallTimes]);
265
- this.delete(r);
266
- }
267
- this.keys.push(o);
268
- }
269
- let n = this.cache;
270
- o.forEach((r, a) => {
271
- if (a === o.length - 1)
272
- n.set(r, {
273
- value: [t, this.cacheCallTimes++]
274
- });
275
- else {
276
- const l = n.get(r);
277
- l ? l.map || (l.map = /* @__PURE__ */ new Map()) : n.set(r, {
278
- map: /* @__PURE__ */ new Map()
279
- }), n = n.get(r).map;
280
- }
281
- });
282
- }
283
- deleteByPath(o, t) {
284
- var n;
285
- const r = o.get(t[0]);
286
- if (t.length === 1)
287
- return r.map ? o.set(t[0], {
288
- map: r.map
289
- }) : o.delete(t[0]), (n = r.value) === null || n === void 0 ? void 0 : n[0];
290
- const a = this.deleteByPath(r.map, t.slice(1));
291
- return (!r.map || r.map.size === 0) && !r.value && o.delete(t[0]), a;
292
- }
293
- delete(o) {
294
- if (this.has(o))
295
- return this.keys = this.keys.filter((t) => !to(t, o)), this.deleteByPath(this.cache, o);
296
- }
297
- }
298
- se.MAX_CACHE_SIZE = 20;
299
- se.MAX_CACHE_OFFSET = 5;
300
- let Re = {};
301
- function oo(e, o) {
302
- process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${o}`);
303
- }
304
- function no() {
305
- Re = {};
306
- }
307
- function ro(e, o, t) {
308
- !o && !Re[t] && (e(!1, t), Re[t] = !0);
309
- }
310
- function ao(e, o) {
311
- ro(oo, e, o);
312
- }
313
- function io() {
314
- }
315
- let wt = io;
316
- process.env.NODE_ENV !== "production" && (wt = (e, o, t) => {
317
- ao(e, `[ant-design-vue: ${o}] ${t}`), process.env.NODE_ENV === "test" && no();
318
- });
319
- let nt = 0;
320
- class kt {
321
- constructor(o) {
322
- this.derivatives = Array.isArray(o) ? o : [o], this.id = nt, o.length === 0 && wt(o.length > 0, "[Efko дизайн Vue CSS-in-JS] Theme should have at least one derivative function."), nt += 1;
323
- }
324
- getDerivativeToken(o) {
325
- return this.derivatives.reduce((t, n) => n(o, t), void 0);
326
- }
327
- }
328
- const Ee = new se();
329
- function lo(e) {
330
- const o = Array.isArray(e) ? e : [e];
331
- return Ee.has(o) || Ee.set(o, new kt(o)), Ee.get(o);
332
- }
333
- const rt = /* @__PURE__ */ new WeakMap();
334
- function Se(e) {
335
- let o = rt.get(e) || "";
336
- return o || (Object.keys(e).forEach((t) => {
337
- const n = e[t];
338
- o += t, n instanceof kt ? o += n.id : n && typeof n == "object" ? o += Se(n) : o += n;
339
- }), rt.set(e, o)), o;
340
- }
341
- function so(e, o) {
342
- return xt(`${o}_${Se(e)}`);
343
- }
344
- const at = {}, co = process.env.NODE_ENV === "production", uo = process.env.NODE_ENV === "prerender", fo = !co && !uo ? "css-dev-only-do-not-override" : "css", oe = /* @__PURE__ */ new Map();
345
- function po(e) {
346
- oe.set(e, (oe.get(e) || 0) + 1);
347
- }
348
- function go(e, o) {
349
- typeof document < "u" && document.querySelectorAll(`style[${Wt}="${e}"]`).forEach((n) => {
350
- var r;
351
- n[pe] === o && ((r = n.parentNode) === null || r === void 0 || r.removeChild(n));
352
- });
353
- }
354
- const ho = 0;
355
- function vo(e, o) {
356
- oe.set(e, (oe.get(e) || 0) - 1);
357
- const t = Array.from(oe.keys()), n = t.filter((r) => (oe.get(r) || 0) <= 0);
358
- t.length - n.length > ho && n.forEach((r) => {
359
- go(r, o), oe.delete(r);
360
- });
361
- }
362
- const mo = (e, o, t, n) => {
363
- const r = t.getDerivativeToken(e);
364
- let a = T(T({}, r), o);
365
- return n && (a = n(a)), a;
366
- };
367
- function yo(e, o, t = _({})) {
368
- const n = qe(), r = E(() => T({}, ...o.value)), a = E(() => Se(r.value)), l = E(() => Se(t.value.override || at));
369
- return eo("token", E(() => [t.value.salt || "", e.value.id, a.value, l.value]), () => {
370
- const {
371
- salt: f = "",
372
- override: d = at,
373
- formatToken: u,
374
- getComputedToken: p
375
- } = t.value, S = p ? p(r.value, d, e.value) : mo(r.value, d, e.value, u), x = so(S, f);
376
- S._tokenKey = x, po(x);
377
- const i = `${fo}-${xt(x)}`;
378
- return S._hashId = i, [S, i];
379
- }, (f) => {
380
- var d;
381
- vo(f[0]._tokenKey, (d = n.value) === null || d === void 0 ? void 0 : d.cache.instanceId);
382
- });
383
- }
384
- const bo = "1.7.0";
385
- function N(e, o) {
386
- xo(e) && (e = "100%");
387
- var t = So(e);
388
- return e = o === 360 ? e : Math.min(o, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * o), 10) / 100), Math.abs(e - o) < 1e-6 ? 1 : (o === 360 ? e = (e < 0 ? e % o + o : e % o) / parseFloat(String(o)) : e = e % o / parseFloat(String(o)), e);
389
- }
390
- function ve(e) {
391
- return Math.min(1, Math.max(0, e));
392
- }
393
- function xo(e) {
394
- return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
395
- }
396
- function So(e) {
397
- return typeof e == "string" && e.indexOf("%") !== -1;
398
- }
399
- function Mt(e) {
400
- return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
401
- }
402
- function me(e) {
403
- return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
404
- }
405
- function ne(e) {
406
- return e.length === 1 ? "0" + e : String(e);
407
- }
408
- function Ao(e, o, t) {
409
- return {
410
- r: N(e, 255) * 255,
411
- g: N(o, 255) * 255,
412
- b: N(t, 255) * 255
413
- };
414
- }
415
- function it(e, o, t) {
416
- e = N(e, 255), o = N(o, 255), t = N(t, 255);
417
- var n = Math.max(e, o, t), r = Math.min(e, o, t), a = 0, l = 0, c = (n + r) / 2;
418
- if (n === r)
419
- l = 0, a = 0;
420
- else {
421
- var f = n - r;
422
- switch (l = c > 0.5 ? f / (2 - n - r) : f / (n + r), n) {
423
- case e:
424
- a = (o - t) / f + (o < t ? 6 : 0);
425
- break;
426
- case o:
427
- a = (t - e) / f + 2;
428
- break;
429
- case t:
430
- a = (e - o) / f + 4;
431
- break;
432
- }
433
- a /= 6;
434
- }
435
- return { h: a, s: l, l: c };
436
- }
437
- function Te(e, o, t) {
438
- return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (o - e) * (6 * t) : t < 1 / 2 ? o : t < 2 / 3 ? e + (o - e) * (2 / 3 - t) * 6 : e;
439
- }
440
- function Co(e, o, t) {
441
- var n, r, a;
442
- if (e = N(e, 360), o = N(o, 100), t = N(t, 100), o === 0)
443
- r = t, a = t, n = t;
444
- else {
445
- var l = t < 0.5 ? t * (1 + o) : t + o - t * o, c = 2 * t - l;
446
- n = Te(c, l, e + 1 / 3), r = Te(c, l, e), a = Te(c, l, e - 1 / 3);
447
- }
448
- return { r: n * 255, g: r * 255, b: a * 255 };
449
- }
450
- function Le(e, o, t) {
451
- e = N(e, 255), o = N(o, 255), t = N(t, 255);
452
- var n = Math.max(e, o, t), r = Math.min(e, o, t), a = 0, l = n, c = n - r, f = n === 0 ? 0 : c / n;
453
- if (n === r)
454
- a = 0;
455
- else {
456
- switch (n) {
457
- case e:
458
- a = (o - t) / c + (o < t ? 6 : 0);
459
- break;
460
- case o:
461
- a = (t - e) / c + 2;
462
- break;
463
- case t:
464
- a = (e - o) / c + 4;
465
- break;
466
- }
467
- a /= 6;
468
- }
469
- return { h: a, s: f, v: l };
470
- }
471
- function wo(e, o, t) {
472
- e = N(e, 360) * 6, o = N(o, 100), t = N(t, 100);
473
- var n = Math.floor(e), r = e - n, a = t * (1 - o), l = t * (1 - r * o), c = t * (1 - (1 - r) * o), f = n % 6, d = [t, l, a, a, c, t][f], u = [c, t, t, l, a, a][f], p = [a, a, c, t, t, l][f];
474
- return { r: d * 255, g: u * 255, b: p * 255 };
475
- }
476
- function Oe(e, o, t, n) {
477
- var r = [
478
- ne(Math.round(e).toString(16)),
479
- ne(Math.round(o).toString(16)),
480
- ne(Math.round(t).toString(16))
481
- ];
482
- return n && r[0].startsWith(r[0].charAt(1)) && r[1].startsWith(r[1].charAt(1)) && r[2].startsWith(r[2].charAt(1)) ? r[0].charAt(0) + r[1].charAt(0) + r[2].charAt(0) : r.join("");
483
- }
484
- function ko(e, o, t, n, r) {
485
- var a = [
486
- ne(Math.round(e).toString(16)),
487
- ne(Math.round(o).toString(16)),
488
- ne(Math.round(t).toString(16)),
489
- ne(Mo(n))
490
- ];
491
- return r && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
492
- }
493
- function Mo(e) {
494
- return Math.round(parseFloat(e) * 255).toString(16);
495
- }
496
- function lt(e) {
497
- return X(e) / 255;
498
- }
499
- function X(e) {
500
- return parseInt(e, 16);
501
- }
502
- function Eo(e) {
503
- return {
504
- r: e >> 16,
505
- g: (e & 65280) >> 8,
506
- b: e & 255
507
- };
508
- }
509
- var ze = {
510
- aliceblue: "#f0f8ff",
511
- antiquewhite: "#faebd7",
512
- aqua: "#00ffff",
513
- aquamarine: "#7fffd4",
514
- azure: "#f0ffff",
515
- beige: "#f5f5dc",
516
- bisque: "#ffe4c4",
517
- black: "#000000",
518
- blanchedalmond: "#ffebcd",
519
- blue: "#0000ff",
520
- blueviolet: "#8a2be2",
521
- brown: "#a52a2a",
522
- burlywood: "#deb887",
523
- cadetblue: "#5f9ea0",
524
- chartreuse: "#7fff00",
525
- chocolate: "#d2691e",
526
- coral: "#ff7f50",
527
- cornflowerblue: "#6495ed",
528
- cornsilk: "#fff8dc",
529
- crimson: "#dc143c",
530
- cyan: "#00ffff",
531
- darkblue: "#00008b",
532
- darkcyan: "#008b8b",
533
- darkgoldenrod: "#b8860b",
534
- darkgray: "#a9a9a9",
535
- darkgreen: "#006400",
536
- darkgrey: "#a9a9a9",
537
- darkkhaki: "#bdb76b",
538
- darkmagenta: "#8b008b",
539
- darkolivegreen: "#556b2f",
540
- darkorange: "#ff8c00",
541
- darkorchid: "#9932cc",
542
- darkred: "#8b0000",
543
- darksalmon: "#e9967a",
544
- darkseagreen: "#8fbc8f",
545
- darkslateblue: "#483d8b",
546
- darkslategray: "#2f4f4f",
547
- darkslategrey: "#2f4f4f",
548
- darkturquoise: "#00ced1",
549
- darkviolet: "#9400d3",
550
- deeppink: "#ff1493",
551
- deepskyblue: "#00bfff",
552
- dimgray: "#696969",
553
- dimgrey: "#696969",
554
- dodgerblue: "#1e90ff",
555
- firebrick: "#b22222",
556
- floralwhite: "#fffaf0",
557
- forestgreen: "#228b22",
558
- fuchsia: "#ff00ff",
559
- gainsboro: "#dcdcdc",
560
- ghostwhite: "#f8f8ff",
561
- goldenrod: "#daa520",
562
- gold: "#ffd700",
563
- gray: "#808080",
564
- green: "#008000",
565
- greenyellow: "#adff2f",
566
- grey: "#808080",
567
- honeydew: "#f0fff0",
568
- hotpink: "#ff69b4",
569
- indianred: "#cd5c5c",
570
- indigo: "#4b0082",
571
- ivory: "#fffff0",
572
- khaki: "#f0e68c",
573
- lavenderblush: "#fff0f5",
574
- lavender: "#e6e6fa",
575
- lawngreen: "#7cfc00",
576
- lemonchiffon: "#fffacd",
577
- lightblue: "#add8e6",
578
- lightcoral: "#f08080",
579
- lightcyan: "#e0ffff",
580
- lightgoldenrodyellow: "#fafad2",
581
- lightgray: "#d3d3d3",
582
- lightgreen: "#90ee90",
583
- lightgrey: "#d3d3d3",
584
- lightpink: "#ffb6c1",
585
- lightsalmon: "#ffa07a",
586
- lightseagreen: "#20b2aa",
587
- lightskyblue: "#87cefa",
588
- lightslategray: "#778899",
589
- lightslategrey: "#778899",
590
- lightsteelblue: "#b0c4de",
591
- lightyellow: "#ffffe0",
592
- lime: "#00ff00",
593
- limegreen: "#32cd32",
594
- linen: "#faf0e6",
595
- magenta: "#ff00ff",
596
- maroon: "#800000",
597
- mediumaquamarine: "#66cdaa",
598
- mediumblue: "#0000cd",
599
- mediumorchid: "#ba55d3",
600
- mediumpurple: "#9370db",
601
- mediumseagreen: "#3cb371",
602
- mediumslateblue: "#7b68ee",
603
- mediumspringgreen: "#00fa9a",
604
- mediumturquoise: "#48d1cc",
605
- mediumvioletred: "#c71585",
606
- midnightblue: "#191970",
607
- mintcream: "#f5fffa",
608
- mistyrose: "#ffe4e1",
609
- moccasin: "#ffe4b5",
610
- navajowhite: "#ffdead",
611
- navy: "#000080",
612
- oldlace: "#fdf5e6",
613
- olive: "#808000",
614
- olivedrab: "#6b8e23",
615
- orange: "#ffa500",
616
- orangered: "#ff4500",
617
- orchid: "#da70d6",
618
- palegoldenrod: "#eee8aa",
619
- palegreen: "#98fb98",
620
- paleturquoise: "#afeeee",
621
- palevioletred: "#db7093",
622
- papayawhip: "#ffefd5",
623
- peachpuff: "#ffdab9",
624
- peru: "#cd853f",
625
- pink: "#ffc0cb",
626
- plum: "#dda0dd",
627
- powderblue: "#b0e0e6",
628
- purple: "#800080",
629
- rebeccapurple: "#663399",
630
- red: "#ff0000",
631
- rosybrown: "#bc8f8f",
632
- royalblue: "#4169e1",
633
- saddlebrown: "#8b4513",
634
- salmon: "#fa8072",
635
- sandybrown: "#f4a460",
636
- seagreen: "#2e8b57",
637
- seashell: "#fff5ee",
638
- sienna: "#a0522d",
639
- silver: "#c0c0c0",
640
- skyblue: "#87ceeb",
641
- slateblue: "#6a5acd",
642
- slategray: "#708090",
643
- slategrey: "#708090",
644
- snow: "#fffafa",
645
- springgreen: "#00ff7f",
646
- steelblue: "#4682b4",
647
- tan: "#d2b48c",
648
- teal: "#008080",
649
- thistle: "#d8bfd8",
650
- tomato: "#ff6347",
651
- turquoise: "#40e0d0",
652
- violet: "#ee82ee",
653
- wheat: "#f5deb3",
654
- white: "#ffffff",
655
- whitesmoke: "#f5f5f5",
656
- yellow: "#ffff00",
657
- yellowgreen: "#9acd32"
658
- };
659
- function ae(e) {
660
- var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, r = null, a = null, l = !1, c = !1;
661
- return typeof e == "string" && (e = Io(e)), typeof e == "object" && (K(e.r) && K(e.g) && K(e.b) ? (o = Ao(e.r, e.g, e.b), l = !0, c = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : K(e.h) && K(e.s) && K(e.v) ? (n = me(e.s), r = me(e.v), o = wo(e.h, n, r), l = !0, c = "hsv") : K(e.h) && K(e.s) && K(e.l) && (n = me(e.s), a = me(e.l), o = Co(e.h, n, a), l = !0, c = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = Mt(t), {
662
- ok: l,
663
- format: e.format || c,
664
- r: Math.min(255, Math.max(o.r, 0)),
665
- g: Math.min(255, Math.max(o.g, 0)),
666
- b: Math.min(255, Math.max(o.b, 0)),
667
- a: t
668
- };
669
- }
670
- var To = "[-\\+]?\\d+%?", Ho = "[-\\+]?\\d*\\.\\d+%?", Y = "(?:".concat(Ho, ")|(?:").concat(To, ")"), He = "[\\s|\\(]+(".concat(Y, ")[,|\\s]+(").concat(Y, ")[,|\\s]+(").concat(Y, ")\\s*\\)?"), Ie = "[\\s|\\(]+(".concat(Y, ")[,|\\s]+(").concat(Y, ")[,|\\s]+(").concat(Y, ")[,|\\s]+(").concat(Y, ")\\s*\\)?"), W = {
671
- CSS_UNIT: new RegExp(Y),
672
- rgb: new RegExp("rgb" + He),
673
- rgba: new RegExp("rgba" + Ie),
674
- hsl: new RegExp("hsl" + He),
675
- hsla: new RegExp("hsla" + Ie),
676
- hsv: new RegExp("hsv" + He),
677
- hsva: new RegExp("hsva" + Ie),
678
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
679
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
680
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
681
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
682
- };
683
- function Io(e) {
684
- if (e = e.trim().toLowerCase(), e.length === 0)
685
- return !1;
686
- var o = !1;
687
- if (ze[e])
688
- e = ze[e], o = !0;
689
- else if (e === "transparent")
690
- return { r: 0, g: 0, b: 0, a: 0, format: "name" };
691
- var t = W.rgb.exec(e);
692
- return t ? { r: t[1], g: t[2], b: t[3] } : (t = W.rgba.exec(e), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = W.hsl.exec(e), t ? { h: t[1], s: t[2], l: t[3] } : (t = W.hsla.exec(e), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = W.hsv.exec(e), t ? { h: t[1], s: t[2], v: t[3] } : (t = W.hsva.exec(e), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = W.hex8.exec(e), t ? {
693
- r: X(t[1]),
694
- g: X(t[2]),
695
- b: X(t[3]),
696
- a: lt(t[4]),
697
- format: o ? "name" : "hex8"
698
- } : (t = W.hex6.exec(e), t ? {
699
- r: X(t[1]),
700
- g: X(t[2]),
701
- b: X(t[3]),
702
- format: o ? "name" : "hex"
703
- } : (t = W.hex4.exec(e), t ? {
704
- r: X(t[1] + t[1]),
705
- g: X(t[2] + t[2]),
706
- b: X(t[3] + t[3]),
707
- a: lt(t[4] + t[4]),
708
- format: o ? "name" : "hex8"
709
- } : (t = W.hex3.exec(e), t ? {
710
- r: X(t[1] + t[1]),
711
- g: X(t[2] + t[2]),
712
- b: X(t[3] + t[3]),
713
- format: o ? "name" : "hex"
714
- } : !1)))))))));
715
- }
716
- function K(e) {
717
- return !!W.CSS_UNIT.exec(String(e));
718
- }
719
- var q = (
720
- /** @class */
721
- function() {
722
- function e(o, t) {
723
- o === void 0 && (o = ""), t === void 0 && (t = {});
724
- var n;
725
- if (o instanceof e)
726
- return o;
727
- typeof o == "number" && (o = Eo(o)), this.originalInput = o;
728
- var r = ae(o);
729
- this.originalInput = o, this.r = r.r, this.g = r.g, this.b = r.b, this.a = r.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (n = t.format) !== null && n !== void 0 ? n : r.format, this.gradientType = t.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = r.ok;
730
- }
731
- return e.prototype.isDark = function() {
732
- return this.getBrightness() < 128;
733
- }, e.prototype.isLight = function() {
734
- return !this.isDark();
735
- }, e.prototype.getBrightness = function() {
736
- var o = this.toRgb();
737
- return (o.r * 299 + o.g * 587 + o.b * 114) / 1e3;
738
- }, e.prototype.getLuminance = function() {
739
- var o = this.toRgb(), t, n, r, a = o.r / 255, l = o.g / 255, c = o.b / 255;
740
- return a <= 0.03928 ? t = a / 12.92 : t = Math.pow((a + 0.055) / 1.055, 2.4), l <= 0.03928 ? n = l / 12.92 : n = Math.pow((l + 0.055) / 1.055, 2.4), c <= 0.03928 ? r = c / 12.92 : r = Math.pow((c + 0.055) / 1.055, 2.4), 0.2126 * t + 0.7152 * n + 0.0722 * r;
741
- }, e.prototype.getAlpha = function() {
742
- return this.a;
743
- }, e.prototype.setAlpha = function(o) {
744
- return this.a = Mt(o), this.roundA = Math.round(100 * this.a) / 100, this;
745
- }, e.prototype.isMonochrome = function() {
746
- var o = this.toHsl().s;
747
- return o === 0;
748
- }, e.prototype.toHsv = function() {
749
- var o = Le(this.r, this.g, this.b);
750
- return { h: o.h * 360, s: o.s, v: o.v, a: this.a };
751
- }, e.prototype.toHsvString = function() {
752
- var o = Le(this.r, this.g, this.b), t = Math.round(o.h * 360), n = Math.round(o.s * 100), r = Math.round(o.v * 100);
753
- return this.a === 1 ? "hsv(".concat(t, ", ").concat(n, "%, ").concat(r, "%)") : "hsva(".concat(t, ", ").concat(n, "%, ").concat(r, "%, ").concat(this.roundA, ")");
754
- }, e.prototype.toHsl = function() {
755
- var o = it(this.r, this.g, this.b);
756
- return { h: o.h * 360, s: o.s, l: o.l, a: this.a };
757
- }, e.prototype.toHslString = function() {
758
- var o = it(this.r, this.g, this.b), t = Math.round(o.h * 360), n = Math.round(o.s * 100), r = Math.round(o.l * 100);
759
- return this.a === 1 ? "hsl(".concat(t, ", ").concat(n, "%, ").concat(r, "%)") : "hsla(".concat(t, ", ").concat(n, "%, ").concat(r, "%, ").concat(this.roundA, ")");
760
- }, e.prototype.toHex = function(o) {
761
- return o === void 0 && (o = !1), Oe(this.r, this.g, this.b, o);
762
- }, e.prototype.toHexString = function(o) {
763
- return o === void 0 && (o = !1), "#" + this.toHex(o);
764
- }, e.prototype.toHex8 = function(o) {
765
- return o === void 0 && (o = !1), ko(this.r, this.g, this.b, this.a, o);
766
- }, e.prototype.toHex8String = function(o) {
767
- return o === void 0 && (o = !1), "#" + this.toHex8(o);
768
- }, e.prototype.toHexShortString = function(o) {
769
- return o === void 0 && (o = !1), this.a === 1 ? this.toHexString(o) : this.toHex8String(o);
770
- }, e.prototype.toRgb = function() {
771
- return {
772
- r: Math.round(this.r),
773
- g: Math.round(this.g),
774
- b: Math.round(this.b),
775
- a: this.a
776
- };
777
- }, e.prototype.toRgbString = function() {
778
- var o = Math.round(this.r), t = Math.round(this.g), n = Math.round(this.b);
779
- return this.a === 1 ? "rgb(".concat(o, ", ").concat(t, ", ").concat(n, ")") : "rgba(".concat(o, ", ").concat(t, ", ").concat(n, ", ").concat(this.roundA, ")");
780
- }, e.prototype.toPercentageRgb = function() {
781
- var o = function(t) {
782
- return "".concat(Math.round(N(t, 255) * 100), "%");
783
- };
784
- return {
785
- r: o(this.r),
786
- g: o(this.g),
787
- b: o(this.b),
788
- a: this.a
789
- };
790
- }, e.prototype.toPercentageRgbString = function() {
791
- var o = function(t) {
792
- return Math.round(N(t, 255) * 100);
793
- };
794
- return this.a === 1 ? "rgb(".concat(o(this.r), "%, ").concat(o(this.g), "%, ").concat(o(this.b), "%)") : "rgba(".concat(o(this.r), "%, ").concat(o(this.g), "%, ").concat(o(this.b), "%, ").concat(this.roundA, ")");
795
- }, e.prototype.toName = function() {
796
- if (this.a === 0)
797
- return "transparent";
798
- if (this.a < 1)
799
- return !1;
800
- for (var o = "#" + Oe(this.r, this.g, this.b, !1), t = 0, n = Object.entries(ze); t < n.length; t++) {
801
- var r = n[t], a = r[0], l = r[1];
802
- if (o === l)
803
- return a;
804
- }
805
- return !1;
806
- }, e.prototype.toString = function(o) {
807
- var t = !!o;
808
- o = o ?? this.format;
809
- var n = !1, r = this.a < 1 && this.a >= 0, a = !t && r && (o.startsWith("hex") || o === "name");
810
- return a ? o === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (o === "rgb" && (n = this.toRgbString()), o === "prgb" && (n = this.toPercentageRgbString()), (o === "hex" || o === "hex6") && (n = this.toHexString()), o === "hex3" && (n = this.toHexString(!0)), o === "hex4" && (n = this.toHex8String(!0)), o === "hex8" && (n = this.toHex8String()), o === "name" && (n = this.toName()), o === "hsl" && (n = this.toHslString()), o === "hsv" && (n = this.toHsvString()), n || this.toHexString());
811
- }, e.prototype.toNumber = function() {
812
- return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
813
- }, e.prototype.clone = function() {
814
- return new e(this.toString());
815
- }, e.prototype.lighten = function(o) {
816
- o === void 0 && (o = 10);
817
- var t = this.toHsl();
818
- return t.l += o / 100, t.l = ve(t.l), new e(t);
819
- }, e.prototype.brighten = function(o) {
820
- o === void 0 && (o = 10);
821
- var t = this.toRgb();
822
- return t.r = Math.max(0, Math.min(255, t.r - Math.round(255 * -(o / 100)))), t.g = Math.max(0, Math.min(255, t.g - Math.round(255 * -(o / 100)))), t.b = Math.max(0, Math.min(255, t.b - Math.round(255 * -(o / 100)))), new e(t);
823
- }, e.prototype.darken = function(o) {
824
- o === void 0 && (o = 10);
825
- var t = this.toHsl();
826
- return t.l -= o / 100, t.l = ve(t.l), new e(t);
827
- }, e.prototype.tint = function(o) {
828
- return o === void 0 && (o = 10), this.mix("white", o);
829
- }, e.prototype.shade = function(o) {
830
- return o === void 0 && (o = 10), this.mix("black", o);
831
- }, e.prototype.desaturate = function(o) {
832
- o === void 0 && (o = 10);
833
- var t = this.toHsl();
834
- return t.s -= o / 100, t.s = ve(t.s), new e(t);
835
- }, e.prototype.saturate = function(o) {
836
- o === void 0 && (o = 10);
837
- var t = this.toHsl();
838
- return t.s += o / 100, t.s = ve(t.s), new e(t);
839
- }, e.prototype.greyscale = function() {
840
- return this.desaturate(100);
841
- }, e.prototype.spin = function(o) {
842
- var t = this.toHsl(), n = (t.h + o) % 360;
843
- return t.h = n < 0 ? 360 + n : n, new e(t);
844
- }, e.prototype.mix = function(o, t) {
845
- t === void 0 && (t = 50);
846
- var n = this.toRgb(), r = new e(o).toRgb(), a = t / 100, l = {
847
- r: (r.r - n.r) * a + n.r,
848
- g: (r.g - n.g) * a + n.g,
849
- b: (r.b - n.b) * a + n.b,
850
- a: (r.a - n.a) * a + n.a
851
- };
852
- return new e(l);
853
- }, e.prototype.analogous = function(o, t) {
854
- o === void 0 && (o = 6), t === void 0 && (t = 30);
855
- var n = this.toHsl(), r = 360 / t, a = [this];
856
- for (n.h = (n.h - (r * o >> 1) + 720) % 360; --o; )
857
- n.h = (n.h + r) % 360, a.push(new e(n));
858
- return a;
859
- }, e.prototype.complement = function() {
860
- var o = this.toHsl();
861
- return o.h = (o.h + 180) % 360, new e(o);
862
- }, e.prototype.monochromatic = function(o) {
863
- o === void 0 && (o = 6);
864
- for (var t = this.toHsv(), n = t.h, r = t.s, a = t.v, l = [], c = 1 / o; o--; )
865
- l.push(new e({ h: n, s: r, v: a })), a = (a + c) % 1;
866
- return l;
867
- }, e.prototype.splitcomplement = function() {
868
- var o = this.toHsl(), t = o.h;
869
- return [
870
- this,
871
- new e({ h: (t + 72) % 360, s: o.s, l: o.l }),
872
- new e({ h: (t + 216) % 360, s: o.s, l: o.l })
873
- ];
874
- }, e.prototype.onBackground = function(o) {
875
- var t = this.toRgb(), n = new e(o).toRgb(), r = t.a + n.a * (1 - t.a);
876
- return new e({
877
- r: (t.r * t.a + n.r * n.a * (1 - t.a)) / r,
878
- g: (t.g * t.a + n.g * n.a * (1 - t.a)) / r,
879
- b: (t.b * t.a + n.b * n.a * (1 - t.a)) / r,
880
- a: r
881
- });
882
- }, e.prototype.triad = function() {
883
- return this.polyad(3);
884
- }, e.prototype.tetrad = function() {
885
- return this.polyad(4);
886
- }, e.prototype.polyad = function(o) {
887
- for (var t = this.toHsl(), n = t.h, r = [this], a = 360 / o, l = 1; l < o; l++)
888
- r.push(new e({ h: (n + l * a) % 360, s: t.s, l: t.l }));
889
- return r;
890
- }, e.prototype.equals = function(o) {
891
- return this.toRgbString() === new e(o).toRgbString();
892
- }, e;
893
- }()
894
- ), ye = 2, st = 0.16, Bo = 0.05, $o = 0.05, Do = 0.15, Et = 5, Tt = 4, Fo = [{
895
- index: 7,
896
- opacity: 0.15
897
- }, {
898
- index: 6,
899
- opacity: 0.25
900
- }, {
901
- index: 5,
902
- opacity: 0.3
903
- }, {
904
- index: 5,
905
- opacity: 0.45
906
- }, {
907
- index: 5,
908
- opacity: 0.65
909
- }, {
910
- index: 5,
911
- opacity: 0.85
912
- }, {
913
- index: 4,
914
- opacity: 0.9
915
- }, {
916
- index: 3,
917
- opacity: 0.95
918
- }, {
919
- index: 2,
920
- opacity: 0.97
921
- }, {
922
- index: 1,
923
- opacity: 0.98
924
- }];
925
- function ct(e) {
926
- var o = e.r, t = e.g, n = e.b, r = Le(o, t, n);
927
- return {
928
- h: r.h * 360,
929
- s: r.s,
930
- v: r.v
931
- };
932
- }
933
- function be(e) {
934
- var o = e.r, t = e.g, n = e.b;
935
- return "#".concat(Oe(o, t, n, !1));
936
- }
937
- function Vo(e, o, t) {
938
- var n = t / 100, r = {
939
- r: (o.r - e.r) * n + e.r,
940
- g: (o.g - e.g) * n + e.g,
941
- b: (o.b - e.b) * n + e.b
942
- };
943
- return r;
944
- }
945
- function ut(e, o, t) {
946
- var n;
947
- return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = t ? Math.round(e.h) - ye * o : Math.round(e.h) + ye * o : n = t ? Math.round(e.h) + ye * o : Math.round(e.h) - ye * o, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
948
- }
949
- function dt(e, o, t) {
950
- if (e.h === 0 && e.s === 0)
951
- return e.s;
952
- var n;
953
- return t ? n = e.s - st * o : o === Tt ? n = e.s + st : n = e.s + Bo * o, n > 1 && (n = 1), t && o === Et && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
954
- }
955
- function ft(e, o, t) {
956
- var n;
957
- return t ? n = e.v + $o * o : n = e.v - Do * o, n > 1 && (n = 1), Number(n.toFixed(2));
958
- }
959
- function Ae(e) {
960
- for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = ae(e), r = Et; r > 0; r -= 1) {
961
- var a = ct(n), l = be(ae({
962
- h: ut(a, r, !0),
963
- s: dt(a, r, !0),
964
- v: ft(a, r, !0)
965
- }));
966
- t.push(l);
967
- }
968
- t.push(be(n));
969
- for (var c = 1; c <= Tt; c += 1) {
970
- var f = ct(n), d = be(ae({
971
- h: ut(f, c),
972
- s: dt(f, c),
973
- v: ft(f, c)
974
- }));
975
- t.push(d);
976
- }
977
- return o.theme === "dark" ? Fo.map(function(u) {
978
- var p = u.index, S = u.opacity, x = be(Vo(ae(o.backgroundColor || "#141414"), ae(t[p]), S * 100));
979
- return x;
980
- }) : t;
981
- }
982
- var Be = {
983
- red: "#F5222D",
984
- volcano: "#FA541C",
985
- orange: "#FA8C16",
986
- gold: "#FAAD14",
987
- yellow: "#FADB14",
988
- lime: "#A0D911",
989
- green: "#52C41A",
990
- cyan: "#13C2C2",
991
- blue: "#1890FF",
992
- geekblue: "#2F54EB",
993
- purple: "#722ED1",
994
- magenta: "#EB2F96",
995
- grey: "#666666"
996
- }, $e = {}, De = {};
997
- Object.keys(Be).forEach(function(e) {
998
- $e[e] = Ae(Be[e]), $e[e].primary = $e[e][5], De[e] = Ae(Be[e], {
999
- theme: "dark",
1000
- backgroundColor: "#141414"
1001
- }), De[e].primary = De[e][5];
1002
- });
1003
- const _o = (e) => {
1004
- const {
1005
- controlHeight: o
1006
- } = e;
1007
- return {
1008
- controlHeightSM: o * 0.75,
1009
- controlHeightXS: o * 0.5,
1010
- controlHeightLG: o * 1.25
1011
- };
1012
- };
1013
- function Ro(e) {
1014
- const {
1015
- sizeUnit: o,
1016
- sizeStep: t
1017
- } = e;
1018
- return {
1019
- sizeXXL: o * (t + 8),
1020
- // 48
1021
- sizeXL: o * (t + 4),
1022
- // 32
1023
- sizeLG: o * (t + 2),
1024
- // 24
1025
- sizeMD: o * (t + 1),
1026
- // 20
1027
- sizeMS: o * t,
1028
- // 16
1029
- size: o * t,
1030
- // 16
1031
- sizeSM: o * (t - 1),
1032
- // 12
1033
- sizeXS: o * (t - 2),
1034
- // 8
1035
- sizeXXS: o * (t - 3)
1036
- // 4
1037
- };
1038
- }
1039
- const Ht = {
1040
- blue: "#1677ff",
1041
- purple: "#722ED1",
1042
- cyan: "#13C2C2",
1043
- green: "#52C41A",
1044
- magenta: "#EB2F96",
1045
- pink: "#eb2f96",
1046
- red: "#F5222D",
1047
- orange: "#FA8C16",
1048
- yellow: "#FADB14",
1049
- volcano: "#FA541C",
1050
- geekblue: "#2F54EB",
1051
- gold: "#FAAD14",
1052
- lime: "#A0D911"
1053
- }, Ke = T(T({}, Ht), {
1054
- // Color
1055
- colorPrimary: "#1677ff",
1056
- colorSuccess: "#52c41a",
1057
- colorWarning: "#faad14",
1058
- colorError: "#ff4d4f",
1059
- colorInfo: "#1677ff",
1060
- colorTextBase: "",
1061
- colorBgBase: "",
1062
- // Font
1063
- fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1064
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1065
- 'Noto Color Emoji'`,
1066
- fontSize: 14,
1067
- // Line
1068
- lineWidth: 1,
1069
- lineType: "solid",
1070
- // Motion
1071
- motionUnit: 0.1,
1072
- motionBase: 0,
1073
- motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
1074
- motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
1075
- motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
1076
- motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
1077
- motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
1078
- motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
1079
- motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
1080
- motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
1081
- // Radius
1082
- borderRadius: 6,
1083
- // Size
1084
- sizeUnit: 4,
1085
- sizeStep: 4,
1086
- sizePopupArrow: 16,
1087
- // Control Base
1088
- controlHeight: 32,
1089
- // zIndex
1090
- zIndexBase: 0,
1091
- zIndexPopupBase: 1e3,
1092
- // Image
1093
- opacityImage: 1,
1094
- // Wireframe
1095
- wireframe: !1
1096
- });
1097
- function Lo(e, {
1098
- generateColorPalettes: o,
1099
- generateNeutralColorPalettes: t
1100
- }) {
1101
- const {
1102
- colorSuccess: n,
1103
- colorWarning: r,
1104
- colorError: a,
1105
- colorInfo: l,
1106
- colorPrimary: c,
1107
- colorBgBase: f,
1108
- colorTextBase: d
1109
- } = e, u = o(c), p = o(n), S = o(r), x = o(a), i = o(l), m = t(f, d);
1110
- return T(T({}, m), {
1111
- colorPrimaryBg: u[1],
1112
- colorPrimaryBgHover: u[2],
1113
- colorPrimaryBorder: u[3],
1114
- colorPrimaryBorderHover: u[4],
1115
- colorPrimaryHover: u[5],
1116
- colorPrimary: u[6],
1117
- colorPrimaryActive: u[7],
1118
- colorPrimaryTextHover: u[8],
1119
- colorPrimaryText: u[9],
1120
- colorPrimaryTextActive: u[10],
1121
- colorSuccessBg: p[1],
1122
- colorSuccessBgHover: p[2],
1123
- colorSuccessBorder: p[3],
1124
- colorSuccessBorderHover: p[4],
1125
- colorSuccessHover: p[4],
1126
- colorSuccess: p[6],
1127
- colorSuccessActive: p[7],
1128
- colorSuccessTextHover: p[8],
1129
- colorSuccessText: p[9],
1130
- colorSuccessTextActive: p[10],
1131
- colorErrorBg: x[1],
1132
- colorErrorBgHover: x[2],
1133
- colorErrorBorder: x[3],
1134
- colorErrorBorderHover: x[4],
1135
- colorErrorHover: x[5],
1136
- colorError: x[6],
1137
- colorErrorActive: x[7],
1138
- colorErrorTextHover: x[8],
1139
- colorErrorText: x[9],
1140
- colorErrorTextActive: x[10],
1141
- colorWarningBg: S[1],
1142
- colorWarningBgHover: S[2],
1143
- colorWarningBorder: S[3],
1144
- colorWarningBorderHover: S[4],
1145
- colorWarningHover: S[4],
1146
- colorWarning: S[6],
1147
- colorWarningActive: S[7],
1148
- colorWarningTextHover: S[8],
1149
- colorWarningText: S[9],
1150
- colorWarningTextActive: S[10],
1151
- colorInfoBg: i[1],
1152
- colorInfoBgHover: i[2],
1153
- colorInfoBorder: i[3],
1154
- colorInfoBorderHover: i[4],
1155
- colorInfoHover: i[4],
1156
- colorInfo: i[6],
1157
- colorInfoActive: i[7],
1158
- colorInfoTextHover: i[8],
1159
- colorInfoText: i[9],
1160
- colorInfoTextActive: i[10],
1161
- colorBgMask: new q("#000").setAlpha(0.45).toRgbString(),
1162
- colorWhite: "#fff"
1163
- });
1164
- }
1165
- const Oo = (e) => {
1166
- let o = e, t = e, n = e, r = e;
1167
- return e < 6 && e >= 5 ? o = e + 1 : e < 16 && e >= 6 ? o = e + 2 : e >= 16 && (o = 16), e < 7 && e >= 5 ? t = 4 : e < 8 && e >= 7 ? t = 5 : e < 14 && e >= 8 ? t = 6 : e < 16 && e >= 14 ? t = 7 : e >= 16 && (t = 8), e < 6 && e >= 2 ? n = 1 : e >= 6 && (n = 2), e > 4 && e < 8 ? r = 4 : e >= 8 && (r = 6), {
1168
- borderRadius: e > 16 ? 16 : e,
1169
- borderRadiusXS: n,
1170
- borderRadiusSM: t,
1171
- borderRadiusLG: o,
1172
- borderRadiusOuter: r
1173
- };
1174
- };
1175
- function zo(e) {
1176
- const {
1177
- motionUnit: o,
1178
- motionBase: t,
1179
- borderRadius: n,
1180
- lineWidth: r
1181
- } = e;
1182
- return T({
1183
- // motion
1184
- motionDurationFast: `${(t + o).toFixed(1)}s`,
1185
- motionDurationMid: `${(t + o * 2).toFixed(1)}s`,
1186
- motionDurationSlow: `${(t + o * 3).toFixed(1)}s`,
1187
- // line
1188
- lineWidthBold: r + 1
1189
- }, Oo(n));
1190
- }
1191
- const Z = (e, o) => new q(e).setAlpha(o).toRgbString(), fe = (e, o) => new q(e).darken(o).toHexString(), Po = (e) => {
1192
- const o = Ae(e);
1193
- return {
1194
- 1: o[0],
1195
- 2: o[1],
1196
- 3: o[2],
1197
- 4: o[3],
1198
- 5: o[4],
1199
- 6: o[5],
1200
- 7: o[6],
1201
- 8: o[4],
1202
- 9: o[5],
1203
- 10: o[6]
1204
- // 8: colors[7],
1205
- // 9: colors[8],
1206
- // 10: colors[9],
1207
- };
1208
- }, No = (e, o) => {
1209
- const t = e || "#fff", n = o || "#000";
1210
- return {
1211
- colorBgBase: t,
1212
- colorTextBase: n,
1213
- colorText: Z(n, 0.88),
1214
- colorTextSecondary: Z(n, 0.65),
1215
- colorTextTertiary: Z(n, 0.45),
1216
- colorTextQuaternary: Z(n, 0.25),
1217
- colorFill: Z(n, 0.15),
1218
- colorFillSecondary: Z(n, 0.06),
1219
- colorFillTertiary: Z(n, 0.04),
1220
- colorFillQuaternary: Z(n, 0.02),
1221
- colorBgLayout: fe(t, 4),
1222
- colorBgContainer: fe(t, 0),
1223
- colorBgElevated: fe(t, 0),
1224
- colorBgSpotlight: Z(n, 0.85),
1225
- colorBorder: fe(t, 15),
1226
- colorBorderSecondary: fe(t, 6)
1227
- };
1228
- };
1229
- function jo(e) {
1230
- const o = new Array(10).fill(null).map((t, n) => {
1231
- const r = n - 1, a = e * Math.pow(2.71828, r / 5), l = n > 1 ? Math.floor(a) : Math.ceil(a);
1232
- return Math.floor(l / 2) * 2;
1233
- });
1234
- return o[1] = e, o.map((t) => {
1235
- const n = t + 8;
1236
- return {
1237
- size: t,
1238
- lineHeight: n / t
1239
- };
1240
- });
1241
- }
1242
- const Uo = (e) => {
1243
- const o = jo(e), t = o.map((r) => r.size), n = o.map((r) => r.lineHeight);
1244
- return {
1245
- fontSizeSM: t[0],
1246
- fontSize: t[1],
1247
- fontSizeLG: t[2],
1248
- fontSizeXL: t[3],
1249
- fontSizeHeading1: t[6],
1250
- fontSizeHeading2: t[5],
1251
- fontSizeHeading3: t[4],
1252
- fontSizeHeading4: t[3],
1253
- fontSizeHeading5: t[2],
1254
- lineHeight: n[1],
1255
- lineHeightLG: n[2],
1256
- lineHeightSM: n[0],
1257
- lineHeightHeading1: n[6],
1258
- lineHeightHeading2: n[5],
1259
- lineHeightHeading3: n[4],
1260
- lineHeightHeading4: n[3],
1261
- lineHeightHeading5: n[2]
1262
- };
1263
- };
1264
- function Xo(e) {
1265
- const o = Object.keys(Ht).map((t) => {
1266
- const n = Ae(e[t]);
1267
- return new Array(10).fill(1).reduce((r, a, l) => (r[`${t}-${l + 1}`] = n[l], r), {});
1268
- }).reduce((t, n) => (t = T(T({}, t), n), t), {});
1269
- return T(T(T(T(T(T(T({}, e), o), Lo(e, {
1270
- generateColorPalettes: Po,
1271
- generateNeutralColorPalettes: No
1272
- })), Uo(e.fontSize)), Ro(e)), _o(e)), zo(e));
1273
- }
1274
- function Fe(e) {
1275
- return e >= 0 && e <= 255;
1276
- }
1277
- function xe(e, o) {
1278
- const {
1279
- r: t,
1280
- g: n,
1281
- b: r,
1282
- a
1283
- } = new q(e).toRgb();
1284
- if (a < 1)
1285
- return e;
1286
- const {
1287
- r: l,
1288
- g: c,
1289
- b: f
1290
- } = new q(o).toRgb();
1291
- for (let d = 0.01; d <= 1; d += 0.01) {
1292
- const u = Math.round((t - l * (1 - d)) / d), p = Math.round((n - c * (1 - d)) / d), S = Math.round((r - f * (1 - d)) / d);
1293
- if (Fe(u) && Fe(p) && Fe(S))
1294
- return new q({
1295
- r: u,
1296
- g: p,
1297
- b: S,
1298
- a: Math.round(d * 100) / 100
1299
- }).toRgbString();
1300
- }
1301
- return new q({
1302
- r: t,
1303
- g: n,
1304
- b: r,
1305
- a: 1
1306
- }).toRgbString();
1307
- }
1308
- var Go = function(e, o) {
1309
- var t = {};
1310
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
1311
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1312
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
1313
- return t;
1314
- };
1315
- function Wo(e) {
1316
- const {
1317
- override: o
1318
- } = e, t = Go(e, ["override"]), n = T({}, o);
1319
- Object.keys(Ke).forEach((x) => {
1320
- delete n[x];
1321
- });
1322
- const r = T(T({}, t), n), a = 480, l = 576, c = 768, f = 992, d = 1200, u = 1600, p = 2e3;
1323
- return T(T(T({}, r), {
1324
- colorLink: r.colorInfoText,
1325
- colorLinkHover: r.colorInfoHover,
1326
- colorLinkActive: r.colorInfoActive,
1327
- // ============== Background ============== //
1328
- colorFillContent: r.colorFillSecondary,
1329
- colorFillContentHover: r.colorFill,
1330
- colorFillAlter: r.colorFillQuaternary,
1331
- colorBgContainerDisabled: r.colorFillTertiary,
1332
- // ============== Split ============== //
1333
- colorBorderBg: r.colorBgContainer,
1334
- colorSplit: xe(r.colorBorderSecondary, r.colorBgContainer),
1335
- // ============== Text ============== //
1336
- colorTextPlaceholder: r.colorTextQuaternary,
1337
- colorTextDisabled: r.colorTextQuaternary,
1338
- colorTextHeading: r.colorText,
1339
- colorTextLabel: r.colorTextSecondary,
1340
- colorTextDescription: r.colorTextTertiary,
1341
- colorTextLightSolid: r.colorWhite,
1342
- colorHighlight: r.colorError,
1343
- colorBgTextHover: r.colorFillSecondary,
1344
- colorBgTextActive: r.colorFill,
1345
- colorIcon: r.colorTextTertiary,
1346
- colorIconHover: r.colorText,
1347
- colorErrorOutline: xe(r.colorErrorBg, r.colorBgContainer),
1348
- colorWarningOutline: xe(r.colorWarningBg, r.colorBgContainer),
1349
- /** Custom colors (efko) */
1350
- colorLogo: r.colorLogo,
1351
- colorSelectedMenu: r.colorSelectedMenu,
1352
- mainBgColor: r.mainBgColor,
1353
- // Font
1354
- fontSizeIcon: r.fontSizeSM,
1355
- // Control
1356
- lineWidth: r.lineWidth,
1357
- controlOutlineWidth: r.lineWidth * 2,
1358
- // Checkbox size and expand icon size
1359
- controlInteractiveSize: r.controlHeight / 2,
1360
- controlItemBgHover: r.colorFillTertiary,
1361
- controlItemBgActive: r.colorPrimaryBg,
1362
- controlItemBgActiveHover: r.colorPrimaryBgHover,
1363
- controlItemBgActiveDisabled: r.colorFill,
1364
- controlTmpOutline: r.colorFillQuaternary,
1365
- controlOutline: xe(r.colorPrimaryBg, r.colorBgContainer),
1366
- lineType: r.lineType,
1367
- borderRadius: r.borderRadius,
1368
- borderRadiusXS: r.borderRadiusXS,
1369
- borderRadiusSM: r.borderRadiusSM,
1370
- borderRadiusLG: r.borderRadiusLG,
1371
- fontWeightStrong: 600,
1372
- opacityLoading: 0.65,
1373
- linkDecoration: "none",
1374
- linkHoverDecoration: "none",
1375
- linkFocusDecoration: "none",
1376
- controlPaddingHorizontal: 12,
1377
- controlPaddingHorizontalSM: 8,
1378
- paddingXXS: r.sizeXXS,
1379
- paddingXS: r.sizeXS,
1380
- paddingSM: r.sizeSM,
1381
- padding: r.size,
1382
- paddingMD: r.sizeMD,
1383
- paddingLG: r.sizeLG,
1384
- paddingXL: r.sizeXL,
1385
- paddingContentHorizontalLG: r.sizeLG,
1386
- paddingContentVerticalLG: r.sizeMS,
1387
- paddingContentHorizontal: r.sizeMS,
1388
- paddingContentVertical: r.sizeSM,
1389
- paddingContentHorizontalSM: r.size,
1390
- paddingContentVerticalSM: r.sizeXS,
1391
- marginXXS: r.sizeXXS,
1392
- marginXS: r.sizeXS,
1393
- marginSM: r.sizeSM,
1394
- margin: r.size,
1395
- marginMD: r.sizeMD,
1396
- marginLG: r.sizeLG,
1397
- marginXL: r.sizeXL,
1398
- marginXXL: r.sizeXXL,
1399
- boxShadow: `
1400
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
1401
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
1402
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
1403
- `,
1404
- boxShadowSecondary: `
1405
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1406
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1407
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1408
- `,
1409
- boxShadowTertiary: `
1410
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
1411
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
1412
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
1413
- `,
1414
- screenXS: a,
1415
- screenXSMin: a,
1416
- screenXSMax: l - 1,
1417
- screenSM: l,
1418
- screenSMMin: l,
1419
- screenSMMax: c - 1,
1420
- screenMD: c,
1421
- screenMDMin: c,
1422
- screenMDMax: f - 1,
1423
- screenLG: f,
1424
- screenLGMin: f,
1425
- screenLGMax: d - 1,
1426
- screenXL: d,
1427
- screenXLMin: d,
1428
- screenXLMax: u - 1,
1429
- screenXXL: u,
1430
- screenXXLMin: u,
1431
- screenXXLMax: p - 1,
1432
- screenXXXL: p,
1433
- screenXXXLMin: p,
1434
- // FIXME: component box-shadow, should be removed
1435
- boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
1436
- boxShadowCard: `
1437
- 0 1px 2px -2px ${new q("rgba(0, 0, 0, 0.16)").toRgbString()},
1438
- 0 3px 6px 0 ${new q("rgba(0, 0, 0, 0.12)").toRgbString()},
1439
- 0 5px 12px 4px ${new q("rgba(0, 0, 0, 0.09)").toRgbString()}
1440
- `,
1441
- boxShadowDrawerRight: `
1442
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
1443
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
1444
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
1445
- `,
1446
- boxShadowDrawerLeft: `
1447
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
1448
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
1449
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
1450
- `,
1451
- boxShadowDrawerUp: `
1452
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1453
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1454
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1455
- `,
1456
- boxShadowDrawerDown: `
1457
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
1458
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
1459
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
1460
- `,
1461
- boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
1462
- boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
1463
- boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
1464
- boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
1465
- }), n);
1466
- }
1467
- const qo = lo(Xo), Ko = {
1468
- token: Ke,
1469
- hashed: !0
1470
- }, It = Symbol("DesignTokenContext"), Pe = ge(), Zo = (e) => {
1471
- gt(It, e), D(e, () => {
1472
- Pe.value = F(e), Rt(Pe);
1473
- }, {
1474
- immediate: !0,
1475
- deep: !0
1476
- });
1477
- };
1478
- z({
1479
- props: {
1480
- value: St()
1481
- },
1482
- setup(e, {
1483
- slots: o
1484
- }) {
1485
- return Zo(E(() => e.value)), () => {
1486
- var t;
1487
- return (t = o.default) === null || t === void 0 ? void 0 : t.call(o);
1488
- };
1489
- }
1490
- });
1491
- function Bt() {
1492
- const e = pt(It, E(() => Pe.value || Ko)), o = E(() => `${bo}-${e.value.hashed || ""}`), t = E(() => e.value.theme || qo), n = yo(t, E(() => [Ke, e.value.token]), E(() => ({
1493
- salt: o.value,
1494
- override: T({
1495
- override: e.value.token
1496
- }, e.value.components),
1497
- formatToken: Wo
1498
- })));
1499
- return [t, E(() => n.value[0]), E(() => e.value.hashed ? n.value[1] : "")];
1500
- }
1501
- const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap" }, Yo = /* @__PURE__ */ z({
1
+ import { defineComponent as P, computed as F, resolveComponent as S, createElementBlock as A, openBlock as i, createElementVNode as L, createBlock as D, createCommentVNode as N, Fragment as O, renderList as G, normalizeStyle as ie, withCtx as k, createTextVNode as R, toDisplayString as z, unref as j, createVNode as E, h as J, createSlots as ae, renderSlot as U, ref as T, onMounted as K, onBeforeUnmount as ye, watch as x, normalizeClass as $e, mergeProps as de, resolveDynamicComponent as ge, reactive as ce, normalizeProps as te, guardReactiveProps as ne } from "vue";
2
+ import { isEqual as oe } from "lodash";
3
+ import fe from "@formkit/auto-animate";
4
+ import { theme as ve, Empty as Ve } from "efko-ui-library";
5
+ import { CheckCircleTwoTone as pe, EyeOutlined as be, EditOutlined as Ce, RedoOutlined as Ae, DeleteOutlined as ke, AppstoreOutlined as Se, PicCenterOutlined as De } from "@ant-design/icons-vue";
6
+ import Ie from "@vueform/multiselect";
7
+ const Me = { class: "flex flex-wrap tag-cloud" }, Be = { class: "flex flex-wrap" }, xe = /* @__PURE__ */ P({
1502
8
  __name: "FilterTagCloud",
1503
9
  props: {
1504
10
  filters: {}
1505
11
  },
1506
12
  emits: ["update:filters", "remove", "clear"],
1507
- setup(e, { emit: o }) {
1508
- const t = e, n = o, [, r] = Bt(), a = E(() => (console.log(r), {
1509
- color: r.value.colorSelectedMenu,
1510
- borderColor: r.value.colorBorderSecondary,
1511
- backgroundColor: r.value.mainBgColor || r.value.colorPrimaryBg
1512
- })), l = (i) => i == null ? !1 : Array.isArray(i) ? i.length > 0 : !!i, c = E(() => Object.values(t.filters).some(l));
1513
- function f(i) {
1514
- return typeof i == "object" && i !== null && "name" in i && typeof i.name == "string";
13
+ setup(e, { emit: w }) {
14
+ const n = e, l = w, { token: m } = ve.useToken(), f = F(() => (console.log(m), {
15
+ color: m.value.colorSelectedMenu,
16
+ borderColor: m.value.colorBorderSecondary,
17
+ backgroundColor: m.value.mainBgColor || m.value.colorPrimaryBg
18
+ })), g = (s) => s == null ? !1 : Array.isArray(s) ? s.length > 0 : !!s, y = F(() => Object.values(n.filters).some(g));
19
+ function b(s) {
20
+ return typeof s == "object" && s !== null && "name" in s && typeof s.name == "string";
1515
21
  }
1516
- const d = (i) => {
1517
- if (typeof i == "string")
22
+ const p = (s) => {
23
+ if (typeof s == "string")
1518
24
  return {
1519
- key: i,
1520
- label: i,
1521
- original: i
25
+ key: s,
26
+ label: s,
27
+ original: s
1522
28
  };
1523
- if (Array.isArray(i)) {
1524
- if (i.length === 2 && typeof i[0] == "string" && typeof i[1] == "string") {
1525
- const w = `${i[0]} - ${i[1]}`;
29
+ if (Array.isArray(s)) {
30
+ if (s.length === 2 && typeof s[0] == "string" && typeof s[1] == "string") {
31
+ const r = `${s[0]} - ${s[1]}`;
1526
32
  return {
1527
- key: w,
1528
- label: w,
1529
- original: i
33
+ key: r,
34
+ label: r,
35
+ original: s
1530
36
  };
1531
37
  }
1532
- const y = i.join(", ");
38
+ const t = s.join(", ");
1533
39
  return {
1534
- key: y,
1535
- label: y,
1536
- original: i
40
+ key: t,
41
+ label: t,
42
+ original: s
1537
43
  };
1538
44
  }
1539
- if (f(i)) {
1540
- const y = i.name;
45
+ if (b(s)) {
46
+ const t = s.name;
1541
47
  return {
1542
- key: y,
1543
- label: y,
1544
- original: i
48
+ key: t,
49
+ label: t,
50
+ original: s
1545
51
  };
1546
52
  }
1547
- const m = JSON.stringify(i);
53
+ const h = JSON.stringify(s);
1548
54
  return {
1549
- key: m,
1550
- label: m,
1551
- original: i
55
+ key: h,
56
+ label: h,
57
+ original: s
1552
58
  };
1553
- }, u = (i) => i == null ? [] : Array.isArray(i) ? i.map((m) => d(m)) : [
1554
- d(i)
1555
- ], p = (i, m) => typeof i == "string" || typeof m == "string" ? i === m : JSON.stringify(i) === JSON.stringify(m), S = (i, m, y) => {
1556
- if (Array.isArray(m)) {
1557
- const w = m.filter(
1558
- (b) => !p(b, y)
59
+ }, c = (s) => s == null ? [] : Array.isArray(s) ? s.map((h) => p(h)) : [
60
+ p(s)
61
+ ], C = (s, h) => typeof s == "string" || typeof h == "string" ? s === h : JSON.stringify(s) === JSON.stringify(h), I = (s, h, t) => {
62
+ if (Array.isArray(h)) {
63
+ const r = h.filter(
64
+ (d) => !C(d, t)
1559
65
  );
1560
- n("update:filters", {
1561
- ...t.filters,
1562
- [i]: w
66
+ l("update:filters", {
67
+ ...n.filters,
68
+ [s]: r
1563
69
  });
1564
70
  } else
1565
- n("update:filters", {
1566
- ...t.filters,
1567
- [i]: null
71
+ l("update:filters", {
72
+ ...n.filters,
73
+ [s]: null
1568
74
  });
1569
- n("remove", i, m, y);
1570
- }, x = () => {
1571
- n("update:filters", {}), n("clear");
75
+ l("remove", s, h, t);
76
+ }, V = () => {
77
+ l("update:filters", {}), l("clear");
1572
78
  };
1573
- return (i, m) => {
1574
- const y = H("a-tag"), w = H("a-button");
1575
- return g(), A("div", Qo, [
1576
- V("div", Jo, [
1577
- (g(!0), A(L, null, G(Object.entries(e.filters), ([b, s]) => (g(), A(L, { key: b }, [
1578
- (g(!0), A(L, null, G(u(s), (v) => (g(), B(y, {
79
+ return (s, h) => {
80
+ const t = S("a-tag"), r = S("a-button");
81
+ return i(), A("div", Me, [
82
+ L("div", Be, [
83
+ (i(!0), A(O, null, G(Object.entries(e.filters), ([d, a]) => (i(), A(O, { key: d }, [
84
+ (i(!0), A(O, null, G(c(a), (v) => (i(), D(t, {
1579
85
  key: v.key,
1580
86
  class: "filter-tag",
1581
87
  closable: !0,
1582
- style: Ve(a.value),
1583
- onClose: () => S(b, s, v.original)
88
+ style: ie(f.value),
89
+ onClose: () => I(d, a, v.original)
1584
90
  }, {
1585
- default: C(() => [
1586
- P(U(v.label), 1)
91
+ default: k(() => [
92
+ R(z(v.label), 1)
1587
93
  ]),
1588
94
  _: 2
1589
95
  }, 1032, ["style", "onClose"]))), 128))
1590
96
  ], 64))), 128))
1591
97
  ]),
1592
- c.value ? (g(), B(w, {
98
+ y.value ? (i(), D(r, {
1593
99
  key: 0,
1594
100
  type: "link",
1595
- onClick: x
101
+ onClick: V
1596
102
  }, {
1597
- default: C(() => [...m[0] || (m[0] = [
1598
- P(" Очистить все ", -1)
103
+ default: k(() => [...h[0] || (h[0] = [
104
+ R(" Очистить все ", -1)
1599
105
  ])]),
1600
106
  _: 1
1601
- })) : j("", !0)
107
+ })) : N("", !0)
1602
108
  ]);
1603
109
  };
1604
110
  }
1605
- }), ce = (e, o) => {
1606
- const t = e.__vccOpts || e;
1607
- for (const [n, r] of o)
1608
- t[n] = r;
1609
- return t;
1610
- }, en = /* @__PURE__ */ ce(Yo, [["__scopeId", "data-v-a32f7554"]]), tn = { class: "flex items-center justify-center text-lg" }, Ce = /* @__PURE__ */ z({
111
+ }), X = (e, w) => {
112
+ const n = e.__vccOpts || e;
113
+ for (const [l, m] of w)
114
+ n[l] = m;
115
+ return n;
116
+ }, Fe = /* @__PURE__ */ X(xe, [["__scopeId", "data-v-0de6650e"]]), _e = { class: "flex items-center justify-center text-lg" }, re = /* @__PURE__ */ P({
1611
117
  __name: "TableCellStatus",
1612
118
  props: {
1613
119
  value: {}
1614
120
  },
1615
121
  setup(e) {
1616
- return (o, t) => (g(), A("div", tn, [
1617
- e.value ? (g(), B(F(Ye), {
122
+ return (w, n) => (i(), A("div", _e, [
123
+ e.value ? (i(), D(j(pe), {
1618
124
  key: 1,
1619
125
  "two-tone-color": "#bfbfbf"
1620
- })) : (g(), B(F(Ye), {
126
+ })) : (i(), D(j(pe), {
1621
127
  key: 0,
1622
128
  "two-tone-color": "#4ade80"
1623
129
  }))
1624
130
  ]));
1625
131
  }
1626
- }), on = { class: "flex items-center justify-center gap-2" }, nn = /* @__PURE__ */ z({
132
+ }), Le = { class: "flex items-center justify-center gap-2" }, Te = /* @__PURE__ */ P({
1627
133
  __name: "CardCellActions",
1628
134
  props: {
1629
135
  record: {},
@@ -1631,55 +137,55 @@ const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap"
1631
137
  editAction: { type: Boolean }
1632
138
  },
1633
139
  emits: ["edit", "delete", "restore"],
1634
- setup(e, { emit: o }) {
1635
- const t = e, n = o, r = t.canEdit ?? !0, a = t.editAction ?? !0, l = (d) => n("delete", d), c = (d) => n("restore", d), f = (d) => n("edit", d);
1636
- return (d, u) => {
1637
- const p = H("a-button"), S = H("a-tooltip");
1638
- return g(), A("div", on, [
1639
- F(r) === !1 ? (g(), B(S, {
140
+ setup(e, { emit: w }) {
141
+ const n = e, l = w, m = n.canEdit ?? !0, f = n.editAction ?? !0, g = (p) => l("delete", p), y = (p) => l("restore", p), b = (p) => l("edit", p);
142
+ return (p, c) => {
143
+ const C = S("a-button"), I = S("a-tooltip");
144
+ return i(), A("div", Le, [
145
+ j(m) === !1 ? (i(), D(I, {
1640
146
  key: 0,
1641
147
  title: "Смотреть"
1642
148
  }, {
1643
- default: C(() => [
1644
- M(p, {
1645
- icon: ie(F(vt)),
1646
- onClick: u[0] || (u[0] = (x) => f(e.record))
149
+ default: k(() => [
150
+ E(C, {
151
+ icon: J(j(be)),
152
+ onClick: c[0] || (c[0] = (V) => b(e.record))
1647
153
  }, null, 8, ["icon"])
1648
154
  ]),
1649
155
  _: 1
1650
- })) : j("", !0),
1651
- F(r) !== !1 ? (g(), A(L, { key: 1 }, [
1652
- F(a) !== !1 ? (g(), B(S, {
156
+ })) : N("", !0),
157
+ j(m) !== !1 ? (i(), A(O, { key: 1 }, [
158
+ j(f) !== !1 ? (i(), D(I, {
1653
159
  key: 0,
1654
160
  title: "Редактировать"
1655
161
  }, {
1656
- default: C(() => [
1657
- M(p, {
1658
- icon: ie(F(mt)),
1659
- onClick: u[1] || (u[1] = (x) => f(e.record))
162
+ default: k(() => [
163
+ E(C, {
164
+ icon: J(j(Ce)),
165
+ onClick: c[1] || (c[1] = (V) => b(e.record))
1660
166
  }, null, 8, ["icon"])
1661
167
  ]),
1662
168
  _: 1
1663
- })) : j("", !0),
1664
- M(S, {
169
+ })) : N("", !0),
170
+ E(I, {
1665
171
  title: e.record.deletedAt ? "Восстановить" : "Удалить"
1666
172
  }, {
1667
- default: C(() => [
1668
- M(p, {
1669
- icon: ie(e.record.deletedAt ? F(yt) : F(bt)),
1670
- onClick: u[2] || (u[2] = (x) => e.record.deletedAt ? c(e.record) : l(e.record))
173
+ default: k(() => [
174
+ E(C, {
175
+ icon: J(e.record.deletedAt ? j(Ae) : j(ke)),
176
+ onClick: c[2] || (c[2] = (V) => e.record.deletedAt ? y(e.record) : g(e.record))
1671
177
  }, null, 8, ["icon"])
1672
178
  ]),
1673
179
  _: 1
1674
180
  }, 8, ["title"])
1675
- ], 64)) : j("", !0)
181
+ ], 64)) : N("", !0)
1676
182
  ]);
1677
183
  };
1678
184
  }
1679
- }), rn = { class: "data-card__header" }, an = { class: "data-card__body" }, ln = { class: "data-card__label" }, sn = { class: "data-card__value" }, cn = { key: 0 }, un = { key: 2 }, dn = { key: 3 }, fn = { key: 4 }, pn = { key: 5 }, gn = {
185
+ }), Oe = { class: "data-card__header" }, Ue = { class: "data-card__body" }, je = { class: "data-card__label" }, Re = { class: "data-card__value" }, Pe = { key: 0 }, Ne = { key: 2 }, ze = { key: 3 }, Ge = { key: 4 }, He = { key: 5 }, Ye = {
1680
186
  key: 0,
1681
187
  class: "data-card__footer"
1682
- }, hn = /* @__PURE__ */ z({
188
+ }, Ze = /* @__PURE__ */ P({
1683
189
  __name: "TheCard",
1684
190
  props: {
1685
191
  loading: { type: Boolean },
@@ -1690,100 +196,100 @@ const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap"
1690
196
  showActionsColumn: { type: Boolean }
1691
197
  },
1692
198
  emits: ["delete", "restore", "edit"],
1693
- setup(e, { emit: o }) {
1694
- const t = e, n = (y) => t.record[String(y.dataIndex)], r = (y) => {
1695
- if (y === null || typeof y != "object")
199
+ setup(e, { emit: w }) {
200
+ const n = e, l = (t) => n.record[String(t.dataIndex)], m = (t) => {
201
+ if (t === null || typeof t != "object")
1696
202
  return "";
1697
- if ("name" in y) {
1698
- const w = y.name;
1699
- return typeof w == "string" ? w : "";
203
+ if ("name" in t) {
204
+ const r = t.name;
205
+ return typeof r == "string" ? r : "";
1700
206
  }
1701
207
  return "";
1702
- }, a = (y) => y == null ? !0 : typeof y == "string" ? y.trim().length === 0 : !1, l = (y) => y == null ? "" : typeof y == "string" ? y.trim() : typeof y == "object" ? r(y) : String(y), c = (y) => {
1703
- const w = n(y);
1704
- return Array.isArray(w) ? w.map((b) => l(b)).filter((b) => b.trim().length > 0) : [];
1705
- }, f = (y) => c(y).map((w, b) => ({
1706
- key: `${w}-${b}`,
1707
- label: w
1708
- })), d = o, u = t.canEdit ?? !0, p = t.editAction ?? !0, S = t.showActionsColumn ?? !0, x = (y) => d("delete", y), i = (y) => d("restore", y), m = (y) => d("edit", y);
1709
- return (y, w) => {
1710
- const b = H("a-tag"), s = H("a-card");
1711
- return g(), B(s, {
208
+ }, f = (t) => t == null ? !0 : typeof t == "string" ? t.trim().length === 0 : !1, g = (t) => t == null ? "" : typeof t == "string" ? t.trim() : typeof t == "object" ? m(t) : String(t), y = (t) => {
209
+ const r = l(t);
210
+ return Array.isArray(r) ? r.map((d) => g(d)).filter((d) => d.trim().length > 0) : [];
211
+ }, b = (t) => y(t).map((r, d) => ({
212
+ key: `${r}-${d}`,
213
+ label: r
214
+ })), p = w, c = n.canEdit ?? !0, C = n.editAction ?? !0, I = n.showActionsColumn ?? !0, V = (t) => p("delete", t), s = (t) => p("restore", t), h = (t) => p("edit", t);
215
+ return (t, r) => {
216
+ const d = S("a-tag"), a = S("a-card");
217
+ return i(), D(a, {
1712
218
  loading: e.loading,
1713
219
  bordered: !1,
1714
220
  class: "data-card bg-white rounded-3 shadow-sm"
1715
- }, we({
1716
- title: C(() => [
1717
- V("div", rn, [
1718
- O(y.$slots, "title", {}, void 0, !0)
221
+ }, ae({
222
+ title: k(() => [
223
+ L("div", Oe, [
224
+ U(t.$slots, "title", {}, void 0, !0)
1719
225
  ])
1720
226
  ]),
1721
- default: C(() => [
1722
- V("div", an, [
1723
- O(y.$slots, "body", {
227
+ default: k(() => [
228
+ L("div", Ue, [
229
+ U(t.$slots, "body", {
1724
230
  record: e.record,
1725
231
  columns: e.columns
1726
232
  }, () => [
1727
- (g(!0), A(L, null, G(e.columns, (v) => (g(), A("div", {
233
+ (i(!0), A(O, null, G(e.columns, (v) => (i(), A("div", {
1728
234
  key: v.dataIndex,
1729
235
  class: "data-card__row"
1730
236
  }, [
1731
- V("span", ln, U(v.title) + ": ", 1),
1732
- V("span", sn, [
1733
- v.dataIndex === "deletedAt" ? (g(), A("span", cn, [
1734
- M(Ce, {
237
+ L("span", je, z(v.title) + ": ", 1),
238
+ L("span", Re, [
239
+ v.dataIndex === "deletedAt" ? (i(), A("span", Pe, [
240
+ E(re, {
1735
241
  value: e.record.deletedAt
1736
242
  }, null, 8, ["value"])
1737
- ])) : Array.isArray(n(v)) ? (g(), A(L, { key: 1 }, [
1738
- v.tag === !0 ? (g(!0), A(L, { key: 0 }, G(f(v), (k) => (g(), B(b, {
1739
- key: k.key,
243
+ ])) : Array.isArray(l(v)) ? (i(), A(O, { key: 1 }, [
244
+ v.tag === !0 ? (i(!0), A(O, { key: 0 }, G(b(v), (_) => (i(), D(d, {
245
+ key: _.key,
1740
246
  class: "mr-1 mb-1"
1741
247
  }, {
1742
- default: C(() => [
1743
- P(U(k.label), 1)
248
+ default: k(() => [
249
+ R(z(_.label), 1)
1744
250
  ]),
1745
251
  _: 2
1746
- }, 1024))), 128)) : (g(!0), A(L, { key: 1 }, G(c(v), (k, I) => (g(), A("span", { key: I }, [
1747
- P(U(k) + " ", 1),
1748
- I < c(v).length - 1 ? (g(), A(L, { key: 0 }, [
1749
- P(" , ")
1750
- ], 64)) : j("", !0)
252
+ }, 1024))), 128)) : (i(!0), A(O, { key: 1 }, G(y(v), (_, u) => (i(), A("span", { key: u }, [
253
+ R(z(_) + " ", 1),
254
+ u < y(v).length - 1 ? (i(), A(O, { key: 0 }, [
255
+ R(" , ")
256
+ ], 64)) : N("", !0)
1751
257
  ]))), 128))
1752
- ], 64)) : typeof n(v) == "boolean" ? (g(), A("span", un, [
1753
- M(Ce, {
1754
- value: !n(v)
258
+ ], 64)) : typeof l(v) == "boolean" ? (i(), A("span", Ne, [
259
+ E(re, {
260
+ value: !l(v)
1755
261
  }, null, 8, ["value"])
1756
- ])) : n(v) !== null && typeof n(v) == "object" ? (g(), A("span", dn, U(r(n(v))), 1)) : v.tag === !0 ? (g(), A("span", fn, [
1757
- a(n(v)) ? j("", !0) : (g(), B(b, { key: 0 }, {
1758
- default: C(() => [
1759
- P(U(n(v)), 1)
262
+ ])) : l(v) !== null && typeof l(v) == "object" ? (i(), A("span", ze, z(m(l(v))), 1)) : v.tag === !0 ? (i(), A("span", Ge, [
263
+ f(l(v)) ? N("", !0) : (i(), D(d, { key: 0 }, {
264
+ default: k(() => [
265
+ R(z(l(v)), 1)
1760
266
  ]),
1761
267
  _: 2
1762
268
  }, 1024))
1763
- ])) : (g(), A("span", pn, U(n(v)), 1))
269
+ ])) : (i(), A("span", He, z(l(v)), 1))
1764
270
  ])
1765
271
  ]))), 128))
1766
272
  ], !0)
1767
273
  ]),
1768
- y.$slots.footer ? (g(), A("div", gn, [
1769
- O(y.$slots, "footer", {
274
+ t.$slots.footer ? (i(), A("div", Ye, [
275
+ U(t.$slots, "footer", {
1770
276
  record: e.record,
1771
277
  columns: e.columns
1772
278
  }, void 0, !0)
1773
- ])) : j("", !0)
279
+ ])) : N("", !0)
1774
280
  ]),
1775
281
  _: 2
1776
282
  }, [
1777
- F(S) ? {
283
+ j(I) ? {
1778
284
  name: "actions",
1779
- fn: C(() => [
1780
- M(nn, {
285
+ fn: k(() => [
286
+ E(Te, {
1781
287
  record: e.record,
1782
- "can-edit": F(u),
1783
- "edit-action": F(p),
1784
- onEdit: m,
1785
- onDelete: x,
1786
- onRestore: i
288
+ "can-edit": j(c),
289
+ "edit-action": j(C),
290
+ onEdit: h,
291
+ onDelete: V,
292
+ onRestore: s
1787
293
  }, null, 8, ["record", "can-edit", "edit-action"])
1788
294
  ]),
1789
295
  key: "0"
@@ -1791,7 +297,7 @@ const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap"
1791
297
  ]), 1032, ["loading"]);
1792
298
  };
1793
299
  }
1794
- }), vn = /* @__PURE__ */ ce(hn, [["__scopeId", "data-v-c6be2770"]]), mn = { class: "efko-dataview" }, yn = /* @__PURE__ */ z({
300
+ }), qe = /* @__PURE__ */ X(Ze, [["__scopeId", "data-v-c6be2770"]]), Je = { class: "efko-dataview" }, Ke = /* @__PURE__ */ P({
1795
301
  __name: "LazyLoadTrigger",
1796
302
  props: {
1797
303
  onIntersect: {},
@@ -1800,33 +306,33 @@ const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap"
1800
306
  loading: { type: Boolean }
1801
307
  },
1802
308
  setup(e) {
1803
- const o = e, t = _(null);
1804
- let n = null;
1805
- const r = (a) => {
1806
- var c;
1807
- a[0].isIntersecting && ((c = o.onIntersect) == null || c.call(o), o.once && n && n.disconnect());
309
+ const w = e, n = T(null);
310
+ let l = null;
311
+ const m = (f) => {
312
+ var y;
313
+ f[0].isIntersecting && ((y = w.onIntersect) == null || y.call(w), w.once && l && l.disconnect());
1808
314
  };
1809
- return le(() => {
1810
- n = new IntersectionObserver(r, {
1811
- threshold: o.threshold
1812
- }), t.value && n.observe(t.value);
1813
- }), Ue(() => {
1814
- n && n.disconnect();
1815
- }), (a, l) => {
1816
- const c = H("a-spin");
1817
- return g(), A("div", mn, [
1818
- V("div", {
315
+ return K(() => {
316
+ l = new IntersectionObserver(m, {
317
+ threshold: w.threshold
318
+ }), n.value && l.observe(n.value);
319
+ }), ye(() => {
320
+ l && l.disconnect();
321
+ }), (f, g) => {
322
+ const y = S("a-spin");
323
+ return i(), A("div", Je, [
324
+ L("div", {
1819
325
  ref_key: "container",
1820
- ref: t,
326
+ ref: n,
1821
327
  style: { height: "1px" },
1822
328
  class: "flex items-center justify-center py-5"
1823
329
  }, [
1824
- M(c, { spinning: e.loading }, null, 8, ["spinning"])
330
+ E(y, { spinning: e.loading }, null, 8, ["spinning"])
1825
331
  ], 512)
1826
332
  ]);
1827
333
  };
1828
334
  }
1829
- }), bn = { class: "efko-dataview" }, xn = { class: "flex flex-col gap-4" }, Sn = /* @__PURE__ */ z({
335
+ }), Xe = { class: "efko-dataview" }, We = { class: "flex flex-col gap-4" }, Qe = /* @__PURE__ */ P({
1830
336
  __name: "CardGrid",
1831
337
  props: {
1832
338
  loading: { type: Boolean },
@@ -1840,108 +346,108 @@ const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap"
1840
346
  meta: {}
1841
347
  },
1842
348
  emits: ["delete", "restore", "edit", "pageChange", "sizeChange"],
1843
- setup(e, { emit: o }) {
1844
- const t = e, n = o;
1845
- le(() => {
1846
- const u = document.querySelector(".card-grid");
1847
- u !== null && We(u);
349
+ setup(e, { emit: w }) {
350
+ const n = e, l = w;
351
+ K(() => {
352
+ const c = document.querySelector(".card-grid");
353
+ c !== null && fe(c);
1848
354
  });
1849
- const r = E(
1850
- () => t.cardLayout === "row" ? "card-grid card-grid--row" : "card-grid card-grid--grid"
1851
- ), a = E(() => t.columns), l = _([]), c = () => {
1852
- var S;
1853
- if (((S = t.meta) == null ? void 0 : S.currentPage) === 1) {
1854
- l.value = [
1855
- ...t.dataSource
355
+ const m = F(
356
+ () => n.cardLayout === "row" ? "card-grid card-grid--row" : "card-grid card-grid--grid"
357
+ ), f = F(() => n.columns), g = T([]), y = () => {
358
+ var I;
359
+ if (((I = n.meta) == null ? void 0 : I.currentPage) === 1) {
360
+ g.value = [
361
+ ...n.dataSource
1856
362
  ];
1857
363
  return;
1858
364
  }
1859
- const u = new Set(l.value.map((x) => x.id)), p = t.dataSource.filter((x) => !u.has(x.id));
1860
- l.value.push(...p);
365
+ const c = new Set(g.value.map((V) => V.id)), C = n.dataSource.filter((V) => !c.has(V.id));
366
+ g.value.push(...C);
1861
367
  };
1862
- c(), D(() => {
1863
- var u;
368
+ y(), x(() => {
369
+ var c;
1864
370
  return [
1865
- t.dataSource,
1866
- (u = t.meta) == null ? void 0 : u.currentPage
371
+ n.dataSource,
372
+ (c = n.meta) == null ? void 0 : c.currentPage
1867
373
  ];
1868
- }, c, {
374
+ }, y, {
1869
375
  deep: !0
1870
376
  });
1871
- const f = E(() => t.meta === void 0 ? !0 : t.meta.currentPage * t.meta.pageSize >= t.meta.total), d = () => {
1872
- t.loading || f.value || !t.meta || n("pageChange", t.meta.currentPage + 1);
377
+ const b = F(() => n.meta === void 0 ? !0 : n.meta.currentPage * n.meta.pageSize >= n.meta.total), p = () => {
378
+ n.loading || b.value || !n.meta || l("pageChange", n.meta.currentPage + 1);
1873
379
  };
1874
- return (u, p) => (g(), A("div", bn, [
1875
- V("div", xn, [
1876
- V("div", {
1877
- class: Lt(r.value)
380
+ return (c, C) => (i(), A("div", Xe, [
381
+ L("div", We, [
382
+ L("div", {
383
+ class: $e(m.value)
1878
384
  }, [
1879
- (g(!0), A(L, null, G(l.value, (S, x) => (g(), B(vn, {
1880
- key: String(S.id ?? `card-${x}`),
385
+ (i(!0), A(O, null, G(g.value, (I, V) => (i(), D(qe, {
386
+ key: String(I.id ?? `card-${V}`),
1881
387
  loading: e.loading,
1882
- record: S,
1883
- columns: a.value,
388
+ record: I,
389
+ columns: f.value,
1884
390
  "can-edit": e.canEdit,
1885
391
  "edit-action": e.editAction,
1886
392
  "show-actions-column": e.showActionsColumn,
1887
- onEdit: p[0] || (p[0] = (i) => n("edit", i)),
1888
- onDelete: p[1] || (p[1] = (i) => n("delete", i)),
1889
- onRestore: p[2] || (p[2] = (i) => n("restore", i))
1890
- }, we({ _: 2 }, [
1891
- u.$slots.titleCard ? {
393
+ onEdit: C[0] || (C[0] = (s) => l("edit", s)),
394
+ onDelete: C[1] || (C[1] = (s) => l("delete", s)),
395
+ onRestore: C[2] || (C[2] = (s) => l("restore", s))
396
+ }, ae({ _: 2 }, [
397
+ c.$slots.titleCard ? {
1892
398
  name: "title",
1893
- fn: C(() => [
1894
- O(u.$slots, "titleCard", {
1895
- record: S,
1896
- columns: a.value
399
+ fn: k(() => [
400
+ U(c.$slots, "titleCard", {
401
+ record: I,
402
+ columns: f.value
1897
403
  }, void 0, !0)
1898
404
  ]),
1899
405
  key: "0"
1900
406
  } : void 0,
1901
- u.$slots.bodyCard ? {
407
+ c.$slots.bodyCard ? {
1902
408
  name: "body",
1903
- fn: C(({ record: i, columns: m }) => [
1904
- O(u.$slots, "bodyCard", {
1905
- record: i,
1906
- columns: m
409
+ fn: k(({ record: s, columns: h }) => [
410
+ U(c.$slots, "bodyCard", {
411
+ record: s,
412
+ columns: h
1907
413
  }, void 0, !0)
1908
414
  ]),
1909
415
  key: "1"
1910
416
  } : void 0,
1911
- u.$slots.footerCard ? {
417
+ c.$slots.footerCard ? {
1912
418
  name: "footer",
1913
- fn: C(({ record: i, columns: m }) => [
1914
- O(u.$slots, "footerCard", {
1915
- record: i,
1916
- columns: m
419
+ fn: k(({ record: s, columns: h }) => [
420
+ U(c.$slots, "footerCard", {
421
+ record: s,
422
+ columns: h
1917
423
  }, void 0, !0)
1918
424
  ]),
1919
425
  key: "2"
1920
426
  } : void 0
1921
427
  ]), 1032, ["loading", "record", "columns", "can-edit", "edit-action", "show-actions-column"]))), 128))
1922
428
  ], 2),
1923
- e.pagination && !f.value ? (g(), B(yn, {
429
+ e.pagination && !b.value ? (i(), D(Ke, {
1924
430
  key: 0,
1925
431
  loading: e.loading,
1926
432
  once: !1,
1927
- "on-intersect": d
1928
- }, null, 8, ["loading"])) : j("", !0)
433
+ "on-intersect": p
434
+ }, null, 8, ["loading"])) : N("", !0)
1929
435
  ])
1930
436
  ]));
1931
437
  }
1932
- }), An = /* @__PURE__ */ ce(Sn, [["__scopeId", "data-v-e3e3f0a2"]]), Cn = "10", dr = "20", fr = "50", pr = "100", gr = "1000", hr = 1, vr = Cn;
1933
- var ee = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.SELECT = "select", e.DATE = "date", e))(ee || {}), wn = /* @__PURE__ */ ((e) => (e.SMALL = "10", e.MEDIUM = "20", e.LARGE = "50", e.EXTRA_LARGE = "100", e.ULTRA = "1000", e))(wn || {});
1934
- const mr = [
438
+ }), et = /* @__PURE__ */ X(Qe, [["__scopeId", "data-v-e3e3f0a2"]]), tt = "10", zt = "20", Gt = "50", Ht = "100", Yt = "1000", Zt = 1, qt = tt;
439
+ var H = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.SELECT = "select", e.DATE = "date", e))(H || {}), nt = /* @__PURE__ */ ((e) => (e.SMALL = "10", e.MEDIUM = "20", e.LARGE = "50", e.EXTRA_LARGE = "100", e.ULTRA = "1000", e))(nt || {});
440
+ const Jt = [
1935
441
  "10",
1936
442
  "20",
1937
443
  "50",
1938
444
  "100"
1939
445
  /* EXTRA_LARGE */
1940
446
  ];
1941
- var kn = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.SMALL = 10] = "SMALL", e[e.MEDIUM = 20] = "MEDIUM", e[e.LARGE = 50] = "LARGE", e))(kn || {}), Mn = /* @__PURE__ */ ((e) => (e[e.DEFAULT_CURRENT_PAGE = 1] = "DEFAULT_CURRENT_PAGE", e))(Mn || {}), Ne = /* @__PURE__ */ ((e) => (e.ASCEND = "ascend", e.DESCEND = "descend", e))(Ne || {}), En = /* @__PURE__ */ ((e) => (e.ASC = "asc", e.DESC = "desc", e))(En || {});
1942
- const Tn = z({
447
+ var ot = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.SMALL = 10] = "SMALL", e[e.MEDIUM = 20] = "MEDIUM", e[e.LARGE = 50] = "LARGE", e))(ot || {}), lt = /* @__PURE__ */ ((e) => (e[e.DEFAULT_CURRENT_PAGE = 1] = "DEFAULT_CURRENT_PAGE", e))(lt || {}), se = /* @__PURE__ */ ((e) => (e.ASCEND = "ascend", e.DESCEND = "descend", e))(se || {}), rt = /* @__PURE__ */ ((e) => (e.ASC = "asc", e.DESC = "desc", e))(rt || {});
448
+ const at = P({
1943
449
  name: "MultiselectWrapper",
1944
- components: { VueMultiselect: Pt },
450
+ components: { VueMultiselect: Ie },
1945
451
  props: {
1946
452
  modelValue: {
1947
453
  type: [Array, String, Number, Object, Boolean, null],
@@ -1950,25 +456,25 @@ const Tn = z({
1950
456
  },
1951
457
  emits: ["update:modelValue"],
1952
458
  data() {
1953
- return { simpleImage: Nt.PRESENTED_IMAGE_SIMPLE };
459
+ return { simpleImage: Ve.PRESENTED_IMAGE_SIMPLE };
1954
460
  }
1955
461
  });
1956
- function Hn(e, o, t, n, r, a) {
1957
- const l = H("a-empty"), c = H("VueMultiselect");
1958
- return g(), B(c, Xe(e.$attrs, {
462
+ function it(e, w, n, l, m, f) {
463
+ const g = S("a-empty"), y = S("VueMultiselect");
464
+ return i(), D(y, de(e.$attrs, {
1959
465
  class: "filter-select",
1960
466
  modelValue: e.modelValue,
1961
- "onUpdate:modelValue": o[0] || (o[0] = (f) => e.$emit("update:modelValue", f)),
467
+ "onUpdate:modelValue": w[0] || (w[0] = (b) => e.$emit("update:modelValue", b)),
1962
468
  label: "name",
1963
469
  "value-prop": "id"
1964
470
  }), {
1965
- nooptions: C(() => [
1966
- M(l, { image: e.simpleImage }, null, 8, ["image"])
471
+ nooptions: k(() => [
472
+ E(g, { image: e.simpleImage }, null, 8, ["image"])
1967
473
  ]),
1968
474
  _: 1
1969
475
  }, 16, ["modelValue"]);
1970
476
  }
1971
- const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f123"]]), In = { class: "efko-dataview" }, Bn = { class: "flex items-center gap-2 p-2" }, $n = /* @__PURE__ */ z({
477
+ const we = /* @__PURE__ */ X(at, [["render", it], ["__scopeId", "data-v-cfb3f123"]]), st = { class: "efko-dataview" }, ut = { class: "flex items-center gap-2 p-2" }, dt = /* @__PURE__ */ P({
1972
478
  __name: "FilterDropdown",
1973
479
  props: {
1974
480
  placeholder: {},
@@ -1976,30 +482,30 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
1976
482
  componentProps: {}
1977
483
  },
1978
484
  emits: ["update:modelValue", "apply"],
1979
- setup(e, { emit: o }) {
1980
- const t = e, n = o, r = E(() => t.filterMode === ee.SEARCH ? "a-input" : t.filterMode === ee.SELECT ? $t : t.filterMode === ee.DATE ? "a-range-picker" : null), a = _(null), l = () => {
1981
- n("update:modelValue", a.value), n("apply");
485
+ setup(e, { emit: w }) {
486
+ const n = e, l = w, m = F(() => n.filterMode === H.SEARCH ? "a-input" : n.filterMode === H.SELECT ? we : n.filterMode === H.DATE ? "a-range-picker" : null), f = T(null), g = () => {
487
+ l("update:modelValue", f.value), l("apply"), f.value = null;
1982
488
  };
1983
- return (c, f) => {
1984
- const d = H("a-button");
1985
- return g(), A("div", In, [
1986
- V("div", Bn, [
1987
- (g(), B(ht(r.value), Xe(e.componentProps, {
1988
- value: a.value,
1989
- "onUpdate:value": f[0] || (f[0] = (u) => a.value = u),
1990
- modelValue: a.value,
1991
- "onUpdate:modelValue": f[1] || (f[1] = (u) => a.value = u),
489
+ return (y, b) => {
490
+ const p = S("a-button");
491
+ return i(), A("div", st, [
492
+ L("div", ut, [
493
+ (i(), D(ge(m.value), de(e.componentProps, {
494
+ value: f.value,
495
+ "onUpdate:value": b[0] || (b[0] = (c) => f.value = c),
496
+ modelValue: f.value,
497
+ "onUpdate:modelValue": b[1] || (b[1] = (c) => f.value = c),
1992
498
  placeholder: e.placeholder,
1993
499
  style: { "min-width": "240px", "max-width": "300px", "font-size": "14px" },
1994
500
  object: ""
1995
501
  }), null, 16, ["value", "modelValue", "placeholder"])),
1996
- M(d, {
502
+ E(p, {
1997
503
  type: "primary",
1998
504
  size: "small",
1999
- onClick: l
505
+ onClick: g
2000
506
  }, {
2001
- default: C(() => [...f[2] || (f[2] = [
2002
- P(" Добавить ", -1)
507
+ default: k(() => [...b[2] || (b[2] = [
508
+ R(" Добавить ", -1)
2003
509
  ])]),
2004
510
  _: 1
2005
511
  })
@@ -2007,7 +513,7 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2007
513
  ]);
2008
514
  };
2009
515
  }
2010
- }), Dn = { class: "flex items-center justify-center gap-2" }, Fn = /* @__PURE__ */ z({
516
+ }), ct = { class: "flex items-center justify-center gap-2" }, ft = /* @__PURE__ */ P({
2011
517
  __name: "TableCellActions",
2012
518
  props: {
2013
519
  record: {},
@@ -2016,59 +522,59 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2016
522
  deleteAction: { type: Boolean }
2017
523
  },
2018
524
  emits: ["edit", "delete", "restore"],
2019
- setup(e, { emit: o }) {
2020
- const t = e, n = o, r = (c) => {
2021
- n("delete", c);
2022
- }, a = (c) => {
2023
- n("restore", c);
2024
- }, l = (c) => {
2025
- n("edit", c);
525
+ setup(e, { emit: w }) {
526
+ const n = e, l = w, m = (y) => {
527
+ l("delete", y);
528
+ }, f = (y) => {
529
+ l("restore", y);
530
+ }, g = (y) => {
531
+ l("edit", y);
2026
532
  };
2027
- return (c, f) => {
2028
- const d = H("a-button"), u = H("a-tooltip");
2029
- return g(), A("div", Dn, [
2030
- t.canEdit === !1 ? (g(), B(u, {
533
+ return (y, b) => {
534
+ const p = S("a-button"), c = S("a-tooltip");
535
+ return i(), A("div", ct, [
536
+ n.canEdit === !1 ? (i(), D(c, {
2031
537
  key: 0,
2032
538
  title: "Смотреть"
2033
539
  }, {
2034
- default: C(() => [
2035
- M(d, {
2036
- icon: ie(F(vt)),
2037
- onClick: f[0] || (f[0] = (p) => l(e.record))
540
+ default: k(() => [
541
+ E(p, {
542
+ icon: J(j(be)),
543
+ onClick: b[0] || (b[0] = (C) => g(e.record))
2038
544
  }, null, 8, ["icon"])
2039
545
  ]),
2040
546
  _: 1
2041
- })) : j("", !0),
2042
- e.canEdit !== !1 ? (g(), A(L, { key: 1 }, [
2043
- t.editAction !== !1 ? (g(), B(u, {
547
+ })) : N("", !0),
548
+ e.canEdit !== !1 ? (i(), A(O, { key: 1 }, [
549
+ n.editAction !== !1 ? (i(), D(c, {
2044
550
  key: 0,
2045
551
  title: "Редактировать"
2046
552
  }, {
2047
- default: C(() => [
2048
- M(d, {
2049
- icon: ie(F(mt)),
2050
- onClick: f[1] || (f[1] = (p) => l(e.record))
553
+ default: k(() => [
554
+ E(p, {
555
+ icon: J(j(Ce)),
556
+ onClick: b[1] || (b[1] = (C) => g(e.record))
2051
557
  }, null, 8, ["icon"])
2052
558
  ]),
2053
559
  _: 1
2054
- })) : j("", !0),
2055
- e.deleteAction !== !1 ? (g(), B(u, {
560
+ })) : N("", !0),
561
+ e.deleteAction !== !1 ? (i(), D(c, {
2056
562
  key: 1,
2057
563
  title: e.record.isDeleted ? "Восстановить" : "Удалить"
2058
564
  }, {
2059
- default: C(() => [
2060
- M(d, {
2061
- icon: ie(e.record.isDeleted ? F(yt) : F(bt)),
2062
- onClick: f[2] || (f[2] = (p) => e.record.isDeleted ? a(e.record) : r(e.record))
565
+ default: k(() => [
566
+ E(p, {
567
+ icon: J(e.record.isDeleted ? j(Ae) : j(ke)),
568
+ onClick: b[2] || (b[2] = (C) => e.record.isDeleted ? f(e.record) : m(e.record))
2063
569
  }, null, 8, ["icon"])
2064
570
  ]),
2065
571
  _: 1
2066
- }, 8, ["title"])) : j("", !0)
2067
- ], 64)) : j("", !0)
572
+ }, 8, ["title"])) : N("", !0)
573
+ ], 64)) : N("", !0)
2068
574
  ]);
2069
575
  };
2070
576
  }
2071
- }), Vn = { key: 0 }, _n = { key: 1 }, Rn = { key: 2 }, Ln = { key: 3 }, On = { key: 4 }, zn = { key: 5 }, Pn = /* @__PURE__ */ z({
577
+ }), mt = { key: 0 }, pt = { key: 1 }, yt = { key: 2 }, gt = { key: 3 }, vt = { key: 4 }, bt = { key: 5 }, Ct = /* @__PURE__ */ P({
2072
578
  __name: "TableBodyCell",
2073
579
  props: {
2074
580
  loading: { type: Boolean },
@@ -2077,69 +583,69 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2077
583
  tagStyle: {}
2078
584
  },
2079
585
  setup(e) {
2080
- const o = e, t = E(() => o.record[String(o.column.dataIndex)]), n = (d) => d == null ? !0 : typeof d == "string" ? d.trim().length === 0 : !1, r = (d) => {
2081
- if (d === null || typeof d != "object")
586
+ const w = e, n = F(() => w.record[String(w.column.dataIndex)]), l = (p) => p == null ? !0 : typeof p == "string" ? p.trim().length === 0 : !1, m = (p) => {
587
+ if (p === null || typeof p != "object")
2082
588
  return "";
2083
- if ("name" in d) {
2084
- const u = d.name;
2085
- return typeof u == "string" ? u : "";
589
+ if ("name" in p) {
590
+ const c = p.name;
591
+ return typeof c == "string" ? c : "";
2086
592
  }
2087
593
  return "";
2088
- }, a = (d) => d == null ? "" : typeof d == "string" ? d.trim() : typeof d == "object" ? r(d) : String(d), l = E(() => {
2089
- const d = t.value;
2090
- return Array.isArray(d) ? d.map((u) => a(u)).filter((u) => u.trim().length > 0) : [];
2091
- }), c = E(() => l.value.map((d, u) => ({
2092
- key: `${d}-${u}`,
2093
- label: d
2094
- }))), f = E(() => !n(t.value));
2095
- return (d, u) => {
2096
- const p = H("a-skeleton"), S = H("a-tag");
2097
- return e.loading ? (g(), B(p, {
594
+ }, f = (p) => p == null ? "" : typeof p == "string" ? p.trim() : typeof p == "object" ? m(p) : String(p), g = F(() => {
595
+ const p = n.value;
596
+ return Array.isArray(p) ? p.map((c) => f(c)).filter((c) => c.trim().length > 0) : [];
597
+ }), y = F(() => g.value.map((p, c) => ({
598
+ key: `${p}-${c}`,
599
+ label: p
600
+ }))), b = F(() => !l(n.value));
601
+ return (p, c) => {
602
+ const C = S("a-skeleton"), I = S("a-tag");
603
+ return e.loading ? (i(), D(C, {
2098
604
  key: 0,
2099
605
  active: !0,
2100
606
  loading: !0,
2101
607
  title: !1,
2102
608
  paragraph: { rows: 1 }
2103
- })) : (g(), A(L, { key: 1 }, [
2104
- e.column.dataIndex === "isDeleted" ? (g(), A("span", Vn, [
2105
- M(Ce, {
609
+ })) : (i(), A(O, { key: 1 }, [
610
+ e.column.dataIndex === "isDeleted" ? (i(), A("span", mt, [
611
+ E(re, {
2106
612
  value: e.record.isDeleted
2107
613
  }, null, 8, ["value"])
2108
- ])) : Array.isArray(t.value) ? (g(), A("span", _n, [
2109
- e.column.tag === !0 ? (g(!0), A(L, { key: 0 }, G(c.value, (x) => (g(), B(S, {
2110
- key: x.key,
2111
- style: Ve(e.tagStyle),
614
+ ])) : Array.isArray(n.value) ? (i(), A("span", pt, [
615
+ e.column.tag === !0 ? (i(!0), A(O, { key: 0 }, G(y.value, (V) => (i(), D(I, {
616
+ key: V.key,
617
+ style: ie(e.tagStyle),
2112
618
  class: "mr-1 mb-1"
2113
619
  }, {
2114
- default: C(() => [
2115
- P(U(x.label), 1)
620
+ default: k(() => [
621
+ R(z(V.label), 1)
2116
622
  ]),
2117
623
  _: 2
2118
- }, 1032, ["style"]))), 128)) : (g(!0), A(L, { key: 1 }, G(l.value, (x, i) => (g(), A("span", { key: i }, [
2119
- P(U(x) + " ", 1),
2120
- i < l.value.length - 1 ? (g(), A(L, { key: 0 }, [
2121
- P(", ")
2122
- ], 64)) : j("", !0)
624
+ }, 1032, ["style"]))), 128)) : (i(!0), A(O, { key: 1 }, G(g.value, (V, s) => (i(), A("span", { key: s }, [
625
+ R(z(V) + " ", 1),
626
+ s < g.value.length - 1 ? (i(), A(O, { key: 0 }, [
627
+ R(", ")
628
+ ], 64)) : N("", !0)
2123
629
  ]))), 128))
2124
- ])) : typeof t.value == "boolean" ? (g(), A("span", Rn, [
2125
- M(Ce, {
2126
- value: !t.value
630
+ ])) : typeof n.value == "boolean" ? (i(), A("span", yt, [
631
+ E(re, {
632
+ value: !n.value
2127
633
  }, null, 8, ["value"])
2128
- ])) : t.value !== null && typeof t.value == "object" ? (g(), A("span", Ln, U(r(t.value)), 1)) : e.column.tag === !0 ? (g(), A("span", On, [
2129
- f.value ? (g(), B(S, {
634
+ ])) : n.value !== null && typeof n.value == "object" ? (i(), A("span", gt, z(m(n.value)), 1)) : e.column.tag === !0 ? (i(), A("span", vt, [
635
+ b.value ? (i(), D(I, {
2130
636
  key: 0,
2131
- style: Ve(e.tagStyle)
637
+ style: ie(e.tagStyle)
2132
638
  }, {
2133
- default: C(() => [
2134
- P(U(String(t.value)), 1)
639
+ default: k(() => [
640
+ R(z(String(n.value)), 1)
2135
641
  ]),
2136
642
  _: 1
2137
- }, 8, ["style"])) : (g(), A(L, { key: 1 }, [], 64))
2138
- ])) : (g(), A("span", zn, U(t.value), 1))
643
+ }, 8, ["style"])) : (i(), A(O, { key: 1 }, [], 64))
644
+ ])) : (i(), A("span", bt, z(n.value), 1))
2139
645
  ], 64));
2140
646
  };
2141
647
  }
2142
- }), Nn = { class: "efko-dataview" }, jn = { class: "flex items-center justify-between" }, Un = { class: "flex items-center gap-2" }, Xn = /* @__PURE__ */ z({
648
+ }), At = { class: "efko-dataview" }, kt = { class: "flex items-center justify-between" }, wt = { class: "flex items-center gap-2" }, Et = /* @__PURE__ */ P({
2143
649
  __name: "TheTable",
2144
650
  props: {
2145
651
  loading: { type: Boolean },
@@ -2154,48 +660,49 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2154
660
  showActionsColumn: { type: Boolean },
2155
661
  columnsVisibility: {},
2156
662
  disableColumnFilterDropdowns: { type: Boolean },
2157
- showFilterButton: { type: Boolean }
663
+ showFilterButton: { type: Boolean },
664
+ multiColumnFilters: { type: Boolean }
2158
665
  },
2159
666
  emits: ["update:filterValues", "filterApply", "restore", "edit", "delete", "sortChange", "pageChange", "sizeChange", "openColumnDrawer", "openFilterDrawer"],
2160
- setup(e, { emit: o }) {
2161
- const [, t] = Bt(), n = e, r = o, a = E(() => n.showFilterButton === !0), l = _(
2162
- n.filterValues || {}
2163
- ), c = _([
2164
- ...n.columns
2165
- ]), f = _({}), d = E(() => n.disableColumnFilterDropdowns === !0 ? [] : c.value.filter(
2166
- (s) => s.filterable
2167
- )), u = E(() => {
2168
- const v = c.value.filter((k) => {
2169
- if (k.filterOnly)
667
+ setup(e, { emit: w }) {
668
+ const { token: n } = ve.useToken(), l = e, m = w, f = F(() => l.showFilterButton === !0), g = T(
669
+ l.filterValues || {}
670
+ ), y = T([
671
+ ...l.columns
672
+ ]), b = T({}), p = F(() => l.disableColumnFilterDropdowns === !0 ? [] : y.value.filter(
673
+ (u) => u.filterable
674
+ )), c = F(() => {
675
+ const o = y.value.filter(($) => {
676
+ if ($.filterOnly)
2170
677
  return !1;
2171
- const I = k.key || String(k.dataIndex);
2172
- return n.columnsVisibility[I] !== !1;
2173
- }).map((k) => {
2174
- const { headerAlign: I, cellAlign: h, ...R } = k;
678
+ const B = $.key || String($.dataIndex);
679
+ return l.columnsVisibility[B] !== !1;
680
+ }).map(($) => {
681
+ const { headerAlign: B, cellAlign: Y, ...Z } = $;
2175
682
  return {
2176
- ...R,
2177
- sorter: !!R.sortable,
2178
- sortDirections: R.sortable ? [
2179
- Ne.ASCEND,
2180
- Ne.DESCEND
683
+ ...Z,
684
+ sorter: !!Z.sortable,
685
+ sortDirections: Z.sortable ? [
686
+ se.ASCEND,
687
+ se.DESCEND
2181
688
  ] : void 0,
2182
- customHeaderCell: () => I ? {
689
+ customHeaderCell: () => B ? {
2183
690
  style: {
2184
- textAlign: I
691
+ textAlign: B
2185
692
  }
2186
693
  } : void 0,
2187
- customCell: () => h ? {
694
+ customCell: () => Y ? {
2188
695
  style: {
2189
- textAlign: h
696
+ textAlign: Y
2190
697
  }
2191
698
  } : void 0,
2192
- customFilterDropdown: !!R.filterable,
2193
- slots: R.filterable ? {
2194
- filterDropdown: `filter${String(R.dataIndex)}Dropdown`
699
+ customFilterDropdown: !!Z.filterable,
700
+ slots: Z.filterable ? {
701
+ filterDropdown: `filter${String(Z.dataIndex)}Dropdown`
2195
702
  } : void 0
2196
703
  };
2197
704
  });
2198
- return n.showActionsColumn !== !1 && n.columnsVisibility.actions !== !1 && v.push({
705
+ return l.showActionsColumn !== !1 && l.columnsVisibility.actions !== !1 && o.push({
2199
706
  title: "Действия",
2200
707
  key: "actions",
2201
708
  dataIndex: "actions",
@@ -2203,123 +710,146 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2203
710
  slots: {
2204
711
  customRender: "actionColumn"
2205
712
  }
2206
- }), v;
2207
- }), p = E(
2208
- () => Object.keys(n.columnsVisibility).filter(
2209
- (s) => n.columnsVisibility[s] === !1
713
+ }), o;
714
+ }), C = F(
715
+ () => Object.keys(l.columnsVisibility).filter(
716
+ (u) => l.columnsVisibility[u] === !1
2210
717
  ).length
2211
- ), S = E(() => ({
2212
- color: t.value.colorSelectedMenu,
2213
- borderColor: t.value.colorBorderSecondary,
2214
- backgroundColor: t.value.mainBgColor || t.value.colorPrimaryBg
2215
- })), x = (s) => {
2216
- const v = l.value[s];
2217
- return Array.isArray(v) ? v : v != null ? [v] : [];
2218
- }, i = (s, v) => {
2219
- const k = { ...l.value };
2220
- if (v === null)
2221
- k[s] = null, r("filterApply", { key: s, value: [] });
2222
- else if (Array.isArray(v)) {
2223
- const I = v.filter((h) => h != null);
2224
- I.length === 0 ? (k[s] = null, r("filterApply", { key: s, value: [] })) : I.length === 1 ? (k[s] = I[0], r("filterApply", { key: s, value: I })) : (k[s] = I, r("filterApply", { key: s, value: I }));
718
+ ), I = F(() => ({
719
+ color: n.value.colorSelectedMenu,
720
+ borderColor: n.value.colorBorderSecondary,
721
+ backgroundColor: n.value.mainBgColor || n.value.colorPrimaryBg
722
+ })), V = (u) => {
723
+ const o = g.value[u];
724
+ return Array.isArray(o) ? o : o != null ? [o] : [];
725
+ }, s = (u) => Array.isArray(u) && u.length === 2 && typeof u[0] == "string" && typeof u[1] == "string", h = (u) => {
726
+ if (typeof u == "string")
727
+ return u;
728
+ if (u !== null && typeof u == "object") {
729
+ const o = u.format;
730
+ if (typeof o == "function")
731
+ return o("YYYY-MM-DD");
732
+ const $ = u.toISOString;
733
+ if (typeof $ == "function")
734
+ return $();
735
+ }
736
+ return String(u);
737
+ }, t = (u, o) => {
738
+ if (o == null)
739
+ return [];
740
+ if (u.filterMode === H.SEARCH) {
741
+ if (typeof o != "string")
742
+ return [];
743
+ const $ = o.trim();
744
+ return $.length === 0 ? [] : [$];
745
+ }
746
+ return u.filterMode === H.DATE ? !Array.isArray(o) || o.length !== 2 ? [] : [[
747
+ h(o[0]),
748
+ h(o[1])
749
+ ]] : Array.isArray(o) ? o : [o];
750
+ }, r = (u, o) => {
751
+ const $ = { ...g.value };
752
+ if (o === null)
753
+ $[u] = null, m("filterApply", { key: u, value: [] });
754
+ else if (Array.isArray(o)) {
755
+ const B = o.filter((Y) => Y != null);
756
+ B.length === 0 ? ($[u] = null, m("filterApply", { key: u, value: [] })) : B.length === 1 && !s(B[0]) ? ($[u] = B[0], m("filterApply", { key: u, value: B })) : ($[u] = B, m("filterApply", { key: u, value: B }));
2225
757
  } else
2226
- k[s] = v, r("filterApply", { key: s, value: [v] });
2227
- r("update:filterValues", k), l.value = k, f.value[s] = null;
2228
- }, m = (s, v) => {
2229
- const k = String(s.dataIndex);
2230
- if (v == null) {
2231
- f.value[k] = null;
758
+ $[u] = o, m("filterApply", { key: u, value: [o] });
759
+ m("update:filterValues", $), g.value = $, b.value[u] = null;
760
+ }, d = (u, o) => {
761
+ const $ = String(u.dataIndex), B = t(u, o);
762
+ if (B.length === 0) {
763
+ b.value[$] = null;
2232
764
  return;
2233
765
  }
2234
- if (s.filterMode === ee.SELECT) {
2235
- const h = x(k);
2236
- if (Array.isArray(v)) {
2237
- const R = [];
2238
- v.forEach((te) => {
2239
- R.some((re) => J(re, te)) || R.push(te);
2240
- }), R.length === h.length && R.every((te) => h.some((re) => J(re, te))) ? f.value[k] = null : i(k, R);
766
+ if (!((u.filterMultiple ?? l.multiColumnFilters ?? !0) !== !1)) {
767
+ if (u.filterMode === H.DATE) {
768
+ r($, B);
2241
769
  return;
2242
770
  }
2243
- if (h.some((R) => J(R, v))) {
2244
- f.value[k] = null;
771
+ if (Array.isArray(o)) {
772
+ r($, B[B.length - 1]);
2245
773
  return;
2246
774
  }
2247
- i(k, [
2248
- ...h,
2249
- v
2250
- ]);
775
+ r($, B[0]);
2251
776
  return;
2252
777
  }
2253
- const I = l.value[k];
2254
- if (J(I, v)) {
2255
- f.value[k] = null;
778
+ const W = [
779
+ ...V($)
780
+ ];
781
+ let Q = !1;
782
+ if (B.forEach((ee) => {
783
+ W.some((le) => oe(le, ee)) || (W.push(ee), Q = !0);
784
+ }), !Q) {
785
+ b.value[$] = null;
2256
786
  return;
2257
787
  }
2258
- i(k, v);
2259
- }, y = (s) => s.isGroup ? "parent-row" : "", w = (s, v, k) => {
2260
- r("sortChange", {
2261
- columnKey: k.columnKey || "",
2262
- order: k.order || null
788
+ r($, W);
789
+ }, a = (u) => u.isGroup ? "parent-row" : "", v = (u, o, $) => {
790
+ m("sortChange", {
791
+ columnKey: $.columnKey || "",
792
+ order: $.order || null
2263
793
  });
2264
- }, b = (s, v) => {
2265
- const k = v.key || String(v.dataIndex), I = c.value.findIndex(
2266
- (h) => (h.key || String(h.dataIndex)) === k
794
+ }, _ = (u, o) => {
795
+ const $ = o.key || String(o.dataIndex), B = y.value.findIndex(
796
+ (Y) => (Y.key || String(Y.dataIndex)) === $
2267
797
  );
2268
- I !== -1 && c.value.splice(I, 1, {
2269
- ...v,
2270
- width: s
798
+ B !== -1 && y.value.splice(B, 1, {
799
+ ...o,
800
+ width: u
2271
801
  });
2272
802
  };
2273
- return D(
2274
- () => n.filterValues,
2275
- (s) => {
2276
- l.value = s || {};
803
+ return x(
804
+ () => l.filterValues,
805
+ (u) => {
806
+ g.value = u || {};
2277
807
  }
2278
- ), D(
2279
- () => n.columns,
2280
- (s) => {
2281
- c.value = [
2282
- ...s
808
+ ), x(
809
+ () => l.columns,
810
+ (u) => {
811
+ y.value = [
812
+ ...u
2283
813
  ];
2284
814
  },
2285
815
  {
2286
816
  immediate: !0
2287
817
  }
2288
- ), le(() => {
2289
- const s = document.querySelector(".the-table tbody");
2290
- s !== null && We(s);
2291
- }), (s, v) => {
2292
- var te, re, Qe, Je;
2293
- const k = H("Icon"), I = H("a-button"), h = H("a-badge"), R = H("a-table"), Ze = H("a-pagination");
2294
- return g(), A("div", Nn, [
2295
- M(R, {
818
+ ), K(() => {
819
+ const u = document.querySelector(".the-table tbody");
820
+ u !== null && fe(u);
821
+ }), (u, o) => {
822
+ var Q, ee, le, me;
823
+ const $ = S("Icon"), B = S("a-button"), Y = S("a-badge"), Z = S("a-table"), W = S("a-pagination");
824
+ return i(), A("div", At, [
825
+ E(Z, {
2296
826
  bordered: "",
2297
827
  "table-layout": "fixed",
2298
828
  class: "the-table",
2299
829
  loading: e.loading,
2300
- columns: u.value,
830
+ columns: c.value,
2301
831
  "data-source": e.dataSource,
2302
- "row-key": ($) => $.id,
832
+ "row-key": (M) => M.id,
2303
833
  pagination: !1,
2304
834
  scroll: { x: "max-content" },
2305
- "row-class-name": y,
2306
- onChange: w,
2307
- onResizeColumn: b
2308
- }, we({
2309
- title: C(() => [
2310
- V("div", jn, [
2311
- V("div", Un, [
2312
- M(h, {
835
+ "row-class-name": a,
836
+ onChange: v,
837
+ onResizeColumn: _
838
+ }, ae({
839
+ title: k(() => [
840
+ L("div", kt, [
841
+ L("div", wt, [
842
+ E(Y, {
2313
843
  dot: "",
2314
- count: p.value
844
+ count: C.value
2315
845
  }, {
2316
- default: C(() => [
2317
- M(I, {
846
+ default: k(() => [
847
+ E(B, {
2318
848
  class: "flex items-center justify-center p-2",
2319
- onClick: v[0] || (v[0] = ($) => s.$emit("openColumnDrawer"))
849
+ onClick: o[0] || (o[0] = (M) => u.$emit("openColumnDrawer"))
2320
850
  }, {
2321
- default: C(() => [
2322
- M(k, {
851
+ default: k(() => [
852
+ E($, {
2323
853
  name: "solar:settings-outline",
2324
854
  class: "text-lg"
2325
855
  })
@@ -2329,80 +859,80 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2329
859
  ]),
2330
860
  _: 1
2331
861
  }, 8, ["count"]),
2332
- a.value ? (g(), B(I, {
862
+ f.value ? (i(), D(B, {
2333
863
  key: 0,
2334
864
  class: "flex items-center justify-center p-2",
2335
- onClick: v[1] || (v[1] = ($) => s.$emit("openFilterDrawer"))
865
+ onClick: o[1] || (o[1] = (M) => u.$emit("openFilterDrawer"))
2336
866
  }, {
2337
- default: C(() => [
2338
- M(k, {
867
+ default: k(() => [
868
+ E($, {
2339
869
  name: "ant-design:filter-outlined",
2340
870
  class: "text-lg"
2341
871
  })
2342
872
  ]),
2343
873
  _: 1
2344
- })) : j("", !0)
874
+ })) : N("", !0)
2345
875
  ]),
2346
- O(s.$slots, "title")
876
+ U(u.$slots, "title")
2347
877
  ])
2348
878
  ]),
2349
- bodyCell: C(({ column: $, record: Q }) => [
2350
- O(s.$slots, "bodyCell", {
2351
- column: $,
2352
- record: Q
879
+ bodyCell: k(({ column: M, record: q }) => [
880
+ U(u.$slots, "bodyCell", {
881
+ column: M,
882
+ record: q
2353
883
  }, () => [
2354
- M(Pn, {
884
+ E(Ct, {
2355
885
  loading: e.loading,
2356
- column: $,
2357
- record: Q,
2358
- "tag-style": S.value
886
+ column: M,
887
+ record: q,
888
+ "tag-style": I.value
2359
889
  }, null, 8, ["loading", "column", "record", "tag-style"])
2360
890
  ])
2361
891
  ]),
2362
- actionColumn: C(({ record: $ }) => [
2363
- O(s.$slots, "actionColumn", { record: $ }, () => [
2364
- M(Fn, {
892
+ actionColumn: k(({ record: M }) => [
893
+ U(u.$slots, "actionColumn", { record: M }, () => [
894
+ E(ft, {
2365
895
  "edit-action": e.editAction,
2366
896
  "delete-action": e.deleteAction,
2367
897
  "can-edit": e.canEdit,
2368
- record: $,
2369
- onEdit: () => s.$emit("edit", $),
2370
- onDelete: () => s.$emit("delete", $),
2371
- onRestore: () => s.$emit("restore", $)
898
+ record: M,
899
+ onEdit: () => u.$emit("edit", M),
900
+ onDelete: () => u.$emit("delete", M),
901
+ onRestore: () => u.$emit("restore", M)
2372
902
  }, null, 8, ["edit-action", "delete-action", "can-edit", "record", "onEdit", "onDelete", "onRestore"])
2373
903
  ])
2374
904
  ]),
2375
905
  _: 2
2376
906
  }, [
2377
- G(d.value, ($) => ({
2378
- name: `filter${String($.dataIndex)}Dropdown`,
2379
- fn: C(() => [
2380
- M($n, {
2381
- modelValue: f.value[$.dataIndex],
2382
- "onUpdate:modelValue": [(Q) => f.value[$.dataIndex] = Q, (Q) => m($, Q)],
2383
- "filter-mode": $.filterMode,
2384
- "component-props": $.componentProps,
2385
- placeholder: $.title
907
+ G(p.value, (M) => ({
908
+ name: `filter${String(M.dataIndex)}Dropdown`,
909
+ fn: k(() => [
910
+ E(dt, {
911
+ modelValue: b.value[M.dataIndex],
912
+ "onUpdate:modelValue": [(q) => b.value[M.dataIndex] = q, (q) => d(M, q)],
913
+ "filter-mode": M.filterMode,
914
+ "component-props": M.componentProps,
915
+ placeholder: M.title
2386
916
  }, null, 8, ["modelValue", "onUpdate:modelValue", "filter-mode", "component-props", "placeholder"])
2387
917
  ])
2388
918
  }))
2389
919
  ]), 1032, ["loading", "columns", "data-source", "row-key"]),
2390
- e.pagination ? (g(), B(Ze, {
920
+ e.pagination ? (i(), D(W, {
2391
921
  key: 0,
2392
922
  class: "mt-4 text-right",
2393
- current: (te = e.meta) == null ? void 0 : te.currentPage,
2394
- "page-size": (re = e.meta) == null ? void 0 : re.pageSize,
2395
- total: (Qe = e.meta) == null ? void 0 : Qe.total,
2396
- "show-total": ($) => `Всего ${$} элементов`,
2397
- "page-size-options": (Je = e.meta) == null ? void 0 : Je.pageSizeOptions,
923
+ current: (Q = e.meta) == null ? void 0 : Q.currentPage,
924
+ "page-size": (ee = e.meta) == null ? void 0 : ee.pageSize,
925
+ total: (le = e.meta) == null ? void 0 : le.total,
926
+ "show-total": (M) => `Всего ${M} элементов`,
927
+ "page-size-options": (me = e.meta) == null ? void 0 : me.pageSizeOptions,
2398
928
  "show-size-changer": !0,
2399
- onChange: v[2] || (v[2] = ($) => s.$emit("pageChange", $)),
2400
- onShowSizeChange: v[3] || (v[3] = ($, Q) => s.$emit("sizeChange", $, Q))
2401
- }, null, 8, ["current", "page-size", "total", "show-total", "page-size-options"])) : j("", !0)
929
+ onChange: o[2] || (o[2] = (M) => u.$emit("pageChange", M)),
930
+ onShowSizeChange: o[3] || (o[3] = (M, q) => u.$emit("sizeChange", M, q))
931
+ }, null, 8, ["current", "page-size", "total", "show-total", "page-size-options"])) : N("", !0)
2402
932
  ]);
2403
933
  };
2404
934
  }
2405
- }), Gn = { class: "mb-4" }, Wn = { class: "flex flex-col gap-1" }, qn = /* @__PURE__ */ z({
935
+ }), ht = { class: "mb-4" }, $t = { class: "flex flex-col gap-1" }, Vt = /* @__PURE__ */ P({
2406
936
  __name: "ColumnSettingsDrawer",
2407
937
  props: {
2408
938
  visible: { type: Boolean },
@@ -2414,114 +944,114 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2414
944
  cardLayout: {}
2415
945
  },
2416
946
  emits: ["update:visible", "update:modelValue", "update:viewMode", "update:cardLayout"],
2417
- setup(e, { emit: o }) {
2418
- const t = e, n = o, r = _(t.visible), a = _(t.viewMode), l = _(t.cardLayout), c = Ge({
2419
- ...t.modelValue
2420
- }), f = E(() => a.value === "grid"), d = t.disableViewMode || !1;
2421
- return D(
2422
- () => t.visible,
2423
- (u) => {
2424
- r.value = u;
947
+ setup(e, { emit: w }) {
948
+ const n = e, l = w, m = T(n.visible), f = T(n.viewMode), g = T(n.cardLayout), y = ce({
949
+ ...n.modelValue
950
+ }), b = F(() => f.value === "grid"), p = n.disableViewMode || !1;
951
+ return x(
952
+ () => n.visible,
953
+ (c) => {
954
+ m.value = c;
2425
955
  }
2426
- ), D(r, (u) => {
2427
- n("update:visible", u);
2428
- }), D(
2429
- () => t.viewMode,
2430
- (u) => {
2431
- a.value = u;
956
+ ), x(m, (c) => {
957
+ l("update:visible", c);
958
+ }), x(
959
+ () => n.viewMode,
960
+ (c) => {
961
+ f.value = c;
2432
962
  }
2433
- ), D(a, (u) => {
2434
- n("update:viewMode", u);
2435
- }), D(
2436
- () => t.cardLayout,
2437
- (u) => {
2438
- l.value = u;
963
+ ), x(f, (c) => {
964
+ l("update:viewMode", c);
965
+ }), x(
966
+ () => n.cardLayout,
967
+ (c) => {
968
+ g.value = c;
2439
969
  }
2440
- ), D(l, (u) => {
2441
- n("update:cardLayout", u);
2442
- }), D(
2443
- () => t.modelValue,
2444
- (u) => Object.assign(c, u),
970
+ ), x(g, (c) => {
971
+ l("update:cardLayout", c);
972
+ }), x(
973
+ () => n.modelValue,
974
+ (c) => Object.assign(y, c),
2445
975
  {
2446
976
  deep: !0
2447
977
  }
2448
- ), D(c, (u) => n("update:modelValue", {
2449
- ...u
978
+ ), x(y, (c) => l("update:modelValue", {
979
+ ...c
2450
980
  }), {
2451
981
  deep: !0
2452
- }), t.showActionsColumn && c.actions === void 0 && (c.actions = !0), (u, p) => {
2453
- const S = H("a-checkbox"), x = H("a-radio"), i = H("a-radio-group"), m = H("a-radio-button"), y = H("a-drawer");
2454
- return g(), B(y, {
2455
- open: r.value,
2456
- "onUpdate:open": p[2] || (p[2] = (w) => r.value = w),
982
+ }), n.showActionsColumn && y.actions === void 0 && (y.actions = !0), (c, C) => {
983
+ const I = S("a-checkbox"), V = S("a-radio"), s = S("a-radio-group"), h = S("a-radio-button"), t = S("a-drawer");
984
+ return i(), D(t, {
985
+ open: m.value,
986
+ "onUpdate:open": C[2] || (C[2] = (r) => m.value = r),
2457
987
  class: "efko-dataview",
2458
988
  title: "Настройки представления",
2459
989
  placement: "right"
2460
990
  }, {
2461
- default: C(() => [
2462
- V("section", Gn, [
2463
- p[3] || (p[3] = V("h3", { class: "font-bold text-base mb-2" }, "Отображение колонок", -1)),
2464
- V("div", Wn, [
2465
- (g(!0), A(L, null, G(e.columns, (w) => (g(), A("div", {
2466
- key: w.key ?? w.dataIndex
991
+ default: k(() => [
992
+ L("section", ht, [
993
+ C[3] || (C[3] = L("h3", { class: "font-bold text-base mb-2" }, "Отображение колонок", -1)),
994
+ L("div", $t, [
995
+ (i(!0), A(O, null, G(e.columns, (r) => (i(), A("div", {
996
+ key: r.key ?? r.dataIndex
2467
997
  }, [
2468
- M(S, {
2469
- checked: c[w.key ?? w.dataIndex],
2470
- "onUpdate:checked": (b) => c[w.key ?? w.dataIndex] = b,
2471
- disabled: f.value,
998
+ E(I, {
999
+ checked: y[r.key ?? r.dataIndex],
1000
+ "onUpdate:checked": (d) => y[r.key ?? r.dataIndex] = d,
1001
+ disabled: b.value,
2472
1002
  class: "flex"
2473
1003
  }, {
2474
- default: C(() => [
2475
- P(U(w.title), 1)
1004
+ default: k(() => [
1005
+ R(z(r.title), 1)
2476
1006
  ]),
2477
1007
  _: 2
2478
1008
  }, 1032, ["checked", "onUpdate:checked", "disabled"])
2479
1009
  ]))), 128))
2480
1010
  ])
2481
1011
  ]),
2482
- V("section", null, [
2483
- p[8] || (p[8] = V("h3", { class: "font-bold text-base mb-2" }, "Вид", -1)),
2484
- M(i, {
2485
- value: a.value,
2486
- "onUpdate:value": p[0] || (p[0] = (w) => a.value = w),
1012
+ L("section", null, [
1013
+ C[8] || (C[8] = L("h3", { class: "font-bold text-base mb-2" }, "Вид", -1)),
1014
+ E(s, {
1015
+ value: f.value,
1016
+ "onUpdate:value": C[0] || (C[0] = (r) => f.value = r),
2487
1017
  "button-style": "solid",
2488
1018
  class: "mb-3",
2489
- disabled: F(d)
1019
+ disabled: j(p)
2490
1020
  }, {
2491
- default: C(() => [
2492
- M(x, { value: "table" }, {
2493
- default: C(() => [...p[4] || (p[4] = [
2494
- P("Таблица", -1)
1021
+ default: k(() => [
1022
+ E(V, { value: "table" }, {
1023
+ default: k(() => [...C[4] || (C[4] = [
1024
+ R("Таблица", -1)
2495
1025
  ])]),
2496
1026
  _: 1
2497
1027
  }),
2498
- M(x, { value: "grid" }, {
2499
- default: C(() => [...p[5] || (p[5] = [
2500
- P("Карточки", -1)
1028
+ E(V, { value: "grid" }, {
1029
+ default: k(() => [...C[5] || (C[5] = [
1030
+ R("Карточки", -1)
2501
1031
  ])]),
2502
1032
  _: 1
2503
1033
  })
2504
1034
  ]),
2505
1035
  _: 1
2506
1036
  }, 8, ["value", "disabled"]),
2507
- M(i, {
2508
- value: l.value,
2509
- "onUpdate:value": p[1] || (p[1] = (w) => l.value = w),
1037
+ E(s, {
1038
+ value: g.value,
1039
+ "onUpdate:value": C[1] || (C[1] = (r) => g.value = r),
2510
1040
  "button-style": "solid",
2511
- disabled: !f.value
1041
+ disabled: !b.value
2512
1042
  }, {
2513
- default: C(() => [
2514
- M(m, { value: "grid" }, {
2515
- default: C(() => [
2516
- M(F(Ot), { class: "mr-2" }),
2517
- p[6] || (p[6] = P("Сетка ", -1))
1043
+ default: k(() => [
1044
+ E(h, { value: "grid" }, {
1045
+ default: k(() => [
1046
+ E(j(Se), { class: "mr-2" }),
1047
+ C[6] || (C[6] = R("Сетка ", -1))
2518
1048
  ]),
2519
1049
  _: 1
2520
1050
  }),
2521
- M(m, { value: "row" }, {
2522
- default: C(() => [
2523
- M(F(zt), { class: "mr-2" }),
2524
- p[7] || (p[7] = P("Строка ", -1))
1051
+ E(h, { value: "row" }, {
1052
+ default: k(() => [
1053
+ E(j(De), { class: "mr-2" }),
1054
+ C[7] || (C[7] = R("Строка ", -1))
2525
1055
  ]),
2526
1056
  _: 1
2527
1057
  })
@@ -2534,7 +1064,7 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2534
1064
  }, 8, ["open"]);
2535
1065
  };
2536
1066
  }
2537
- }), Dt = /* @__PURE__ */ z({
1067
+ }), Ee = /* @__PURE__ */ P({
2538
1068
  __name: "FilterInput",
2539
1069
  props: {
2540
1070
  modelValue: { type: [String, Number, Boolean, Object, Array, null] },
@@ -2543,20 +1073,20 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2543
1073
  placeholder: {}
2544
1074
  },
2545
1075
  emits: ["update:modelValue"],
2546
- setup(e, { emit: o }) {
2547
- const t = e, n = o, r = E(() => t.filterMode === ee.SEARCH ? "a-input" : t.filterMode === ee.SELECT ? $t : t.filterMode === ee.DATE ? "a-range-picker" : "a-input"), a = _(t.modelValue);
2548
- return D(() => t.modelValue, (l) => {
2549
- a.value = l;
2550
- }), D(a, (l) => n("update:modelValue", l)), (l, c) => (g(), B(ht(r.value), Xe(e.componentProps, {
2551
- value: a.value,
2552
- "onUpdate:value": c[0] || (c[0] = (f) => a.value = f),
2553
- modelValue: a.value,
2554
- "onUpdate:modelValue": c[1] || (c[1] = (f) => a.value = f),
1076
+ setup(e, { emit: w }) {
1077
+ const n = e, l = w, m = F(() => n.filterMode === H.SEARCH ? "a-input" : n.filterMode === H.SELECT ? we : n.filterMode === H.DATE ? "a-range-picker" : "a-input"), f = T(n.modelValue);
1078
+ return x(() => n.modelValue, (g) => {
1079
+ f.value = g;
1080
+ }), x(f, (g) => l("update:modelValue", g)), (g, y) => (i(), D(ge(m.value), de(e.componentProps, {
1081
+ value: f.value,
1082
+ "onUpdate:value": y[0] || (y[0] = (b) => f.value = b),
1083
+ modelValue: f.value,
1084
+ "onUpdate:modelValue": y[1] || (y[1] = (b) => f.value = b),
2555
1085
  placeholder: e.placeholder,
2556
1086
  class: "w-full text-sm"
2557
1087
  }), null, 16, ["value", "modelValue", "placeholder"]));
2558
1088
  }
2559
- }), Kn = { class: "text-sm font-medium" }, Zn = { class: "mt-2 flex flex-col gap-2" }, Qn = /* @__PURE__ */ z({
1089
+ }), St = { class: "text-sm font-medium" }, Dt = { class: "mt-2 flex flex-col gap-2" }, It = /* @__PURE__ */ P({
2560
1090
  __name: "CardFiltersDrawer",
2561
1091
  props: {
2562
1092
  visible: { type: Boolean },
@@ -2564,97 +1094,113 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2564
1094
  filterValues: {}
2565
1095
  },
2566
1096
  emits: ["update:visible", "update:filterValues", "filterApply"],
2567
- setup(e, { emit: o }) {
2568
- const t = e, n = o, r = _(t.visible), a = Ge({
2569
- ...t.filterValues
2570
- }), l = (i) => i.key ?? String(i.dataIndex), c = (i) => Array.isArray(i) ? i : i != null ? [i] : [], f = (i) => i == null ? !0 : Array.isArray(i) ? i.length === 0 : typeof i == "string" ? i.trim() === "" : !1, d = E(() => t.columns.filter((i) => i.filterable)), u = E(() => Object.keys(a).some(
2571
- (i) => !J(a[i], t.filterValues[i])
2572
- )), p = (i) => {
2573
- Object.keys(a).forEach((m) => {
2574
- delete a[m];
2575
- }), Object.assign(a, i);
1097
+ setup(e, { emit: w }) {
1098
+ const n = e, l = w, m = T(n.visible), f = ce({
1099
+ ...n.filterValues
1100
+ }), g = (t) => t.key ?? String(t.dataIndex), y = (t) => {
1101
+ if (typeof t == "string")
1102
+ return t;
1103
+ if (t !== null && typeof t == "object") {
1104
+ const r = t.format;
1105
+ if (typeof r == "function")
1106
+ return r("YYYY-MM-DD");
1107
+ const d = t.toISOString;
1108
+ if (typeof d == "function")
1109
+ return d();
1110
+ }
1111
+ return String(t);
1112
+ }, b = (t, r) => {
1113
+ if (r !== void 0)
1114
+ return t.filterMode === H.DATE && Array.isArray(r) && r.length === 2 ? [[y(r[0]), y(r[1])]] : r;
1115
+ }, p = (t) => Array.isArray(t) ? t : t != null ? [t] : [], c = (t) => t == null ? !0 : Array.isArray(t) ? t.length === 0 : typeof t == "string" ? t.trim() === "" : !1, C = F(() => n.columns.filter((t) => t.filterable)), I = F(() => Object.keys(f).some(
1116
+ (t) => !oe(f[t], n.filterValues[t])
1117
+ )), V = (t) => {
1118
+ Object.keys(f).forEach((r) => {
1119
+ delete f[r];
1120
+ }), Object.assign(f, t);
2576
1121
  };
2577
- D(
2578
- () => t.visible,
2579
- (i) => {
2580
- r.value = i, i && p(t.filterValues);
1122
+ x(
1123
+ () => n.visible,
1124
+ (t) => {
1125
+ m.value = t, t && V(n.filterValues);
2581
1126
  }
2582
- ), D(r, (i) => {
2583
- n("update:visible", i);
2584
- }), D(
2585
- () => t.filterValues,
2586
- (i) => {
2587
- p(i);
1127
+ ), x(m, (t) => {
1128
+ l("update:visible", t);
1129
+ }), x(
1130
+ () => n.filterValues,
1131
+ (t) => {
1132
+ V(t);
2588
1133
  },
2589
1134
  {
2590
1135
  deep: !0
2591
1136
  }
2592
1137
  );
2593
- const S = () => {
2594
- const i = {
2595
- ...t.filterValues
1138
+ const s = () => {
1139
+ const t = {
1140
+ ...n.filterValues
2596
1141
  };
2597
- Object.entries(a).forEach(([m, y]) => {
2598
- if (f(y)) {
2599
- i[m] = null, n("filterApply", {
2600
- key: m,
1142
+ Object.entries(f).forEach(([r, d]) => {
1143
+ const a = n.columns.find((_) => String(g(_)) === r), v = a ? b(a, d) : d;
1144
+ if (c(d)) {
1145
+ t[r] = null, l("filterApply", {
1146
+ key: r,
2601
1147
  value: []
2602
1148
  });
2603
1149
  return;
2604
1150
  }
2605
- i[m] = y, n("filterApply", {
2606
- key: m,
2607
- value: c(y)
1151
+ t[r] = v, l("filterApply", {
1152
+ key: r,
1153
+ value: p(v)
2608
1154
  });
2609
- }), n("update:filterValues", i), r.value = !1;
2610
- }, x = () => {
2611
- Object.keys(a).forEach((m) => {
2612
- delete a[m];
2613
- }), n("update:filterValues", {});
1155
+ }), l("update:filterValues", t), m.value = !1;
1156
+ }, h = () => {
1157
+ Object.keys(f).forEach((r) => {
1158
+ delete f[r];
1159
+ }), l("update:filterValues", {});
2614
1160
  };
2615
- return (i, m) => {
2616
- const y = H("a-button"), w = H("a-drawer");
2617
- return g(), B(w, {
2618
- open: r.value,
2619
- "onUpdate:open": m[0] || (m[0] = (b) => r.value = b),
1161
+ return (t, r) => {
1162
+ const d = S("a-button"), a = S("a-drawer");
1163
+ return i(), D(a, {
1164
+ open: m.value,
1165
+ "onUpdate:open": r[0] || (r[0] = (v) => m.value = v),
2620
1166
  class: "efko-dataview",
2621
1167
  placement: "right",
2622
1168
  width: "360",
2623
1169
  title: "Фильтры",
2624
1170
  "body-style": "padding: 24px"
2625
1171
  }, {
2626
- default: C(() => [
2627
- (g(!0), A(L, null, G(d.value, (b) => (g(), A("section", {
2628
- key: l(b),
1172
+ default: k(() => [
1173
+ (i(!0), A(O, null, G(C.value, (v) => (i(), A("section", {
1174
+ key: g(v),
2629
1175
  class: "mb-4 flex flex-col gap-2"
2630
1176
  }, [
2631
- V("span", Kn, U(b.title), 1),
2632
- M(Dt, {
2633
- modelValue: a[l(b)],
2634
- "onUpdate:modelValue": (s) => a[l(b)] = s,
2635
- "filter-mode": b.filterMode,
2636
- "component-props": b.componentProps,
2637
- placeholder: b.title
1177
+ L("span", St, z(v.title), 1),
1178
+ E(Ee, {
1179
+ modelValue: f[g(v)],
1180
+ "onUpdate:modelValue": (_) => f[g(v)] = _,
1181
+ "filter-mode": v.filterMode,
1182
+ "component-props": v.componentProps,
1183
+ placeholder: v.title
2638
1184
  }, null, 8, ["modelValue", "onUpdate:modelValue", "filter-mode", "component-props", "placeholder"])
2639
1185
  ]))), 128)),
2640
- V("div", Zn, [
2641
- M(y, {
1186
+ L("div", Dt, [
1187
+ E(d, {
2642
1188
  block: "",
2643
- onClick: x
1189
+ onClick: h
2644
1190
  }, {
2645
- default: C(() => [...m[1] || (m[1] = [
2646
- P(" Сбросить ", -1)
1191
+ default: k(() => [...r[1] || (r[1] = [
1192
+ R(" Сбросить ", -1)
2647
1193
  ])]),
2648
1194
  _: 1
2649
1195
  }),
2650
- M(y, {
1196
+ E(d, {
2651
1197
  type: "primary",
2652
1198
  block: "",
2653
- disabled: !u.value,
2654
- onClick: S
1199
+ disabled: !I.value,
1200
+ onClick: s
2655
1201
  }, {
2656
- default: C(() => [...m[2] || (m[2] = [
2657
- P(" Применить ", -1)
1202
+ default: k(() => [...r[2] || (r[2] = [
1203
+ R(" Применить ", -1)
2658
1204
  ])]),
2659
1205
  _: 1
2660
1206
  }, 8, ["disabled"])
@@ -2664,7 +1210,7 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2664
1210
  }, 8, ["open"]);
2665
1211
  };
2666
1212
  }
2667
- }), Jn = /* @__PURE__ */ ce(Qn, [["__scopeId", "data-v-2b4aab81"]]), Yn = { class: "text-sm font-medium" }, er = /* @__PURE__ */ z({
1213
+ }), Mt = /* @__PURE__ */ X(It, [["__scopeId", "data-v-c29393f2"]]), Bt = { class: "text-sm font-medium" }, xt = /* @__PURE__ */ P({
2668
1214
  __name: "CardFiltersModal",
2669
1215
  props: {
2670
1216
  visible: { type: Boolean },
@@ -2672,80 +1218,96 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2672
1218
  filterValues: {}
2673
1219
  },
2674
1220
  emits: ["update:visible", "update:filterValues", "filterApply"],
2675
- setup(e, { emit: o }) {
2676
- const t = e, n = o, r = _(t.visible), a = Ge({
2677
- ...t.filterValues
2678
- }), l = (i) => i.key ?? String(i.dataIndex), c = (i) => Array.isArray(i) ? i : i != null ? [i] : [], f = (i) => i == null ? !0 : Array.isArray(i) ? i.length === 0 : typeof i == "string" ? i.trim() === "" : !1, d = E(
2679
- () => t.columns.filter((i) => i.filterable)
2680
- ), u = E(() => Object.keys(a).some(
2681
- (i) => !J(a[i], t.filterValues[i])
2682
- )), p = (i) => {
2683
- Object.keys(a).forEach((m) => {
2684
- delete a[m];
2685
- }), Object.assign(a, i);
1221
+ setup(e, { emit: w }) {
1222
+ const n = e, l = w, m = T(n.visible), f = ce({
1223
+ ...n.filterValues
1224
+ }), g = (t) => t.key ?? String(t.dataIndex), y = (t) => {
1225
+ if (typeof t == "string")
1226
+ return t;
1227
+ if (t !== null && typeof t == "object") {
1228
+ const r = t.format;
1229
+ if (typeof r == "function")
1230
+ return r("YYYY-MM-DD");
1231
+ const d = t.toISOString;
1232
+ if (typeof d == "function")
1233
+ return d();
1234
+ }
1235
+ return String(t);
1236
+ }, b = (t, r) => {
1237
+ if (r !== void 0)
1238
+ return t.filterMode === H.DATE && Array.isArray(r) && r.length === 2 ? [[y(r[0]), y(r[1])]] : r;
1239
+ }, p = (t) => Array.isArray(t) ? t : t != null ? [t] : [], c = (t) => t == null ? !0 : Array.isArray(t) ? t.length === 0 : typeof t == "string" ? t.trim() === "" : !1, C = F(
1240
+ () => n.columns.filter((t) => t.filterable)
1241
+ ), I = F(() => Object.keys(f).some(
1242
+ (t) => !oe(f[t], n.filterValues[t])
1243
+ )), V = (t) => {
1244
+ Object.keys(f).forEach((r) => {
1245
+ delete f[r];
1246
+ }), Object.assign(f, t);
2686
1247
  };
2687
- D(
2688
- () => t.visible,
2689
- (i) => {
2690
- r.value = i, i && p(t.filterValues);
1248
+ x(
1249
+ () => n.visible,
1250
+ (t) => {
1251
+ m.value = t, t && V(n.filterValues);
2691
1252
  }
2692
- ), D(r, (i) => {
2693
- n("update:visible", i);
2694
- }), D(
2695
- () => t.filterValues,
2696
- (i) => {
2697
- p(i);
1253
+ ), x(m, (t) => {
1254
+ l("update:visible", t);
1255
+ }), x(
1256
+ () => n.filterValues,
1257
+ (t) => {
1258
+ V(t);
2698
1259
  },
2699
1260
  {
2700
1261
  deep: !0
2701
1262
  }
2702
1263
  );
2703
- const S = () => {
2704
- const i = {
2705
- ...t.filterValues
1264
+ const s = () => {
1265
+ const t = {
1266
+ ...n.filterValues
2706
1267
  };
2707
- Object.entries(a).forEach(([m, y]) => {
2708
- if (f(y)) {
2709
- i[m] = null, n("filterApply", {
2710
- key: m,
1268
+ Object.entries(f).forEach(([r, d]) => {
1269
+ const a = n.columns.find((_) => String(g(_)) === r), v = a ? b(a, d) : d;
1270
+ if (c(d)) {
1271
+ t[r] = null, l("filterApply", {
1272
+ key: r,
2711
1273
  value: []
2712
1274
  });
2713
1275
  return;
2714
1276
  }
2715
- i[m] = y, n("filterApply", {
2716
- key: m,
2717
- value: c(y)
1277
+ t[r] = v, l("filterApply", {
1278
+ key: r,
1279
+ value: p(v)
2718
1280
  });
2719
- }), n("update:filterValues", i), r.value = !1;
2720
- }, x = () => {
2721
- r.value = !1;
1281
+ }), l("update:filterValues", t), m.value = !1;
1282
+ }, h = () => {
1283
+ m.value = !1;
2722
1284
  };
2723
- return (i, m) => {
2724
- const y = H("a-modal");
2725
- return g(), B(y, {
2726
- visible: r.value,
2727
- "onUpdate:visible": m[0] || (m[0] = (w) => r.value = w),
1285
+ return (t, r) => {
1286
+ const d = S("a-modal");
1287
+ return i(), D(d, {
1288
+ visible: m.value,
1289
+ "onUpdate:visible": r[0] || (r[0] = (a) => m.value = a),
2728
1290
  class: "efko-dataview",
2729
1291
  title: "Фильтры",
2730
1292
  "destroy-on-close": "",
2731
1293
  "ok-text": "Применить",
2732
1294
  "cancel-text": "Сбросить",
2733
- "ok-button-props": { disabled: !u.value },
2734
- onOk: S,
2735
- onCancel: x
1295
+ "ok-button-props": { disabled: !I.value },
1296
+ onOk: s,
1297
+ onCancel: h
2736
1298
  }, {
2737
- default: C(() => [
2738
- (g(!0), A(L, null, G(d.value, (w) => (g(), A("section", {
2739
- key: l(w),
1299
+ default: k(() => [
1300
+ (i(!0), A(O, null, G(C.value, (a) => (i(), A("section", {
1301
+ key: g(a),
2740
1302
  class: "mb-4 flex flex-col gap-2"
2741
1303
  }, [
2742
- V("span", Yn, U(w.title), 1),
2743
- M(Dt, {
2744
- modelValue: a[l(w)],
2745
- "onUpdate:modelValue": (b) => a[l(w)] = b,
2746
- "filter-mode": w.filterMode,
2747
- "component-props": w.componentProps,
2748
- placeholder: w.title
1304
+ L("span", Bt, z(a.title), 1),
1305
+ E(Ee, {
1306
+ modelValue: f[g(a)],
1307
+ "onUpdate:modelValue": (v) => f[g(a)] = v,
1308
+ "filter-mode": a.filterMode,
1309
+ "component-props": a.componentProps,
1310
+ placeholder: a.title
2749
1311
  }, null, 8, ["modelValue", "onUpdate:modelValue", "filter-mode", "component-props", "placeholder"])
2750
1312
  ]))), 128))
2751
1313
  ]),
@@ -2753,9 +1315,9 @@ const $t = /* @__PURE__ */ ce(Tn, [["render", Hn], ["__scopeId", "data-v-cfb3f12
2753
1315
  }, 8, ["visible", "ok-button-props"]);
2754
1316
  };
2755
1317
  }
2756
- }), tr = /* @__PURE__ */ ce(er, [["__scopeId", "data-v-f8bc496a"]]);
2757
- var je = /* @__PURE__ */ ((e) => (e.Table = "table", e.Grid = "grid", e))(je || {}), Ft = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.Row = "row", e))(Ft || {});
2758
- const or = { class: "efko-dataview" }, nr = { class: "flex items-center justify-between gap-2 mb-2" }, rr = { class: "flex items-center gap-1" }, yr = /* @__PURE__ */ z({
1318
+ }), Ft = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4171d5f0"]]);
1319
+ var ue = /* @__PURE__ */ ((e) => (e.Table = "table", e.Grid = "grid", e))(ue || {}), he = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.Row = "row", e))(he || {});
1320
+ const _t = { class: "efko-dataview" }, Lt = { class: "flex items-center justify-between gap-2 mb-2" }, Tt = { class: "flex items-center gap-1" }, Kt = /* @__PURE__ */ P({
2759
1321
  __name: "DataView",
2760
1322
  props: {
2761
1323
  viewMode: {},
@@ -2772,74 +1334,75 @@ const or = { class: "efko-dataview" }, nr = { class: "flex items-center justify-
2772
1334
  disableViewMode: { type: Boolean, default: !1 },
2773
1335
  enableTableFilterDrawer: { type: Boolean, default: !1 },
2774
1336
  disableColumnFilterDropdowns: { type: Boolean, default: !1 },
2775
- useFilterModal: { type: Boolean, default: !1 }
1337
+ useFilterModal: { type: Boolean, default: !1 },
1338
+ multiColumnFilters: { type: Boolean, default: !0 }
2776
1339
  },
2777
1340
  emits: ["update:viewMode", "update:filterValues", "filterApply", "edit", "delete", "restore", "sortChange", "pageChange", "sizeChange"],
2778
- setup(e, { emit: o }) {
2779
- const t = e, n = o, r = _(t.viewMode || je.Table), a = E(() => (r == null ? void 0 : r.value) === je.Grid), l = _(Ft.Grid), c = _(
2780
- t.filterValues || {}
2781
- ), f = _(null), d = (b) => {
2782
- c.value = b, n("update:filterValues", b);
2783
- }, u = (b, s, v) => {
2784
- const k = { ...c.value };
2785
- if (s !== void 0) {
2786
- if (Array.isArray(s)) {
2787
- const I = s.filter((h) => !J(h, v));
2788
- I.length === 0 ? k[b] = null : I.length === 1 ? k[b] = I[0] : k[b] = I, d(k);
1341
+ setup(e, { emit: w }) {
1342
+ const n = e, l = w, m = T(n.viewMode || ue.Table), f = F(() => (m == null ? void 0 : m.value) === ue.Grid), g = T(he.Grid), y = T(
1343
+ n.filterValues || {}
1344
+ ), b = T(null), p = (d) => {
1345
+ y.value = d, l("update:filterValues", d);
1346
+ }, c = (d, a, v) => {
1347
+ const _ = { ...y.value };
1348
+ if (a !== void 0) {
1349
+ if (Array.isArray(a)) {
1350
+ const u = a.filter((o) => !oe(o, v));
1351
+ u.length === 0 ? _[d] = null : u.length === 1 && !Array.isArray(u[0]) ? _[d] = u[0] : _[d] = u, p(_);
2789
1352
  return;
2790
1353
  }
2791
- J(s, v) && (k[b] = null, d(k));
1354
+ oe(a, v) && (_[d] = null, p(_));
2792
1355
  }
2793
- }, p = () => d({}), S = (b) => {
2794
- n("filterApply", b);
2795
- }, x = _(!1), i = _(!1), m = _({}), y = E(() => r.value === "table" ? Object.keys(m.value).filter(
2796
- (b) => m.value[b] === !1
2797
- ).length : 0), w = (b) => {
2798
- b.forEach((s) => {
2799
- const v = s.key ?? String(s.dataIndex);
2800
- m.value[v] === void 0 && (m.value[v] = !0);
2801
- }), t.showActionsColumn && m.value.actions === void 0 && (m.value.actions = !0);
1356
+ }, C = () => p({}), I = (d) => {
1357
+ l("filterApply", d);
1358
+ }, V = T(!1), s = T(!1), h = T({}), t = F(() => m.value === "table" ? Object.keys(h.value).filter(
1359
+ (d) => h.value[d] === !1
1360
+ ).length : 0), r = (d) => {
1361
+ d.forEach((a) => {
1362
+ const v = a.key ?? String(a.dataIndex);
1363
+ h.value[v] === void 0 && (h.value[v] = !0);
1364
+ }), n.showActionsColumn && h.value.actions === void 0 && (h.value.actions = !0);
2802
1365
  };
2803
- return D(
2804
- () => t.filterValues,
2805
- (b) => {
2806
- c.value = b || {};
1366
+ return x(
1367
+ () => n.filterValues,
1368
+ (d) => {
1369
+ y.value = d || {};
2807
1370
  }
2808
- ), D(
2809
- () => t.viewMode,
2810
- (b) => {
2811
- b !== void 0 && (r.value = b);
1371
+ ), x(
1372
+ () => n.viewMode,
1373
+ (d) => {
1374
+ d !== void 0 && (m.value = d);
2812
1375
  }
2813
- ), D(() => t.columns, w), D(r, (b) => n("update:viewMode", b)), le(() => w(t.columns)), le(() => {
2814
- f.value && We(f.value);
2815
- }), (b, s) => {
2816
- const v = H("Icon"), k = H("a-button"), I = H("a-badge");
2817
- return g(), A("div", or, [
2818
- V("div", {
1376
+ ), x(() => n.columns, r), x(m, (d) => l("update:viewMode", d)), K(() => r(n.columns)), K(() => {
1377
+ b.value && fe(b.value);
1378
+ }), (d, a) => {
1379
+ const v = S("Icon"), _ = S("a-button"), u = S("a-badge");
1380
+ return i(), A("div", _t, [
1381
+ L("div", {
2819
1382
  ref_key: "tagCloudContainer",
2820
- ref: f
1383
+ ref: b
2821
1384
  }, [
2822
- M(en, {
2823
- filters: c.value,
2824
- "onUpdate:filters": d,
2825
- onRemove: u,
2826
- onClear: p
1385
+ E(Fe, {
1386
+ filters: y.value,
1387
+ "onUpdate:filters": p,
1388
+ onRemove: c,
1389
+ onClear: C
2827
1390
  }, null, 8, ["filters"])
2828
1391
  ], 512),
2829
- a.value ? (g(), A(L, { key: 0 }, [
2830
- V("div", nr, [
2831
- V("div", rr, [
2832
- M(I, {
1392
+ f.value ? (i(), A(O, { key: 0 }, [
1393
+ L("div", Lt, [
1394
+ L("div", Tt, [
1395
+ E(u, {
2833
1396
  dot: "",
2834
- count: y.value
1397
+ count: t.value
2835
1398
  }, {
2836
- default: C(() => [
2837
- M(k, {
1399
+ default: k(() => [
1400
+ E(_, {
2838
1401
  class: "flex items-center justify-center p-2",
2839
- onClick: s[0] || (s[0] = (h) => i.value = !0)
1402
+ onClick: a[0] || (a[0] = (o) => s.value = !0)
2840
1403
  }, {
2841
- default: C(() => [
2842
- M(v, {
1404
+ default: k(() => [
1405
+ E(v, {
2843
1406
  name: "solar:settings-outline",
2844
1407
  class: "text-lg"
2845
1408
  })
@@ -2849,12 +1412,12 @@ const or = { class: "efko-dataview" }, nr = { class: "flex items-center justify-
2849
1412
  ]),
2850
1413
  _: 1
2851
1414
  }, 8, ["count"]),
2852
- M(k, {
1415
+ E(_, {
2853
1416
  class: "flex items-center justify-center p-2",
2854
- onClick: s[1] || (s[1] = (h) => x.value = !0)
1417
+ onClick: a[1] || (a[1] = (o) => V.value = !0)
2855
1418
  }, {
2856
- default: C(() => [
2857
- M(v, {
1419
+ default: k(() => [
1420
+ E(v, {
2858
1421
  name: "ant-design:filter-outlined",
2859
1422
  class: "text-lg"
2860
1423
  })
@@ -2862,121 +1425,122 @@ const or = { class: "efko-dataview" }, nr = { class: "flex items-center justify-
2862
1425
  _: 1
2863
1426
  })
2864
1427
  ]),
2865
- O(b.$slots, "headerCardContainer"),
2866
- O(b.$slots, "title")
1428
+ U(d.$slots, "headerCardContainer"),
1429
+ U(d.$slots, "title")
2867
1430
  ]),
2868
- a.value ? (g(), B(An, {
1431
+ f.value ? (i(), D(et, {
2869
1432
  key: 0,
2870
1433
  loading: e.loading,
2871
1434
  columns: e.columns,
2872
1435
  "data-source": e.dataSource,
2873
- "card-layout": l.value,
1436
+ "card-layout": g.value,
2874
1437
  "can-edit": e.canEdit,
2875
1438
  "edit-action": e.editAction,
2876
1439
  "show-actions-column": e.showActionsColumn,
2877
1440
  pagination: e.pagination,
2878
1441
  meta: e.meta,
2879
- onRestore: s[2] || (s[2] = (h) => n("restore", h)),
2880
- onEdit: s[3] || (s[3] = (h) => n("edit", h)),
2881
- onDelete: s[4] || (s[4] = (h) => n("delete", h)),
2882
- onPageChange: s[5] || (s[5] = (h) => n("pageChange", h)),
2883
- onSizeChange: s[6] || (s[6] = (h, R) => n("sizeChange", h, R))
2884
- }, we({ _: 2 }, [
2885
- b.$slots.titleCard ? {
1442
+ onRestore: a[2] || (a[2] = (o) => l("restore", o)),
1443
+ onEdit: a[3] || (a[3] = (o) => l("edit", o)),
1444
+ onDelete: a[4] || (a[4] = (o) => l("delete", o)),
1445
+ onPageChange: a[5] || (a[5] = (o) => l("pageChange", o)),
1446
+ onSizeChange: a[6] || (a[6] = (o, $) => l("sizeChange", o, $))
1447
+ }, ae({ _: 2 }, [
1448
+ d.$slots.titleCard ? {
2886
1449
  name: "titleCard",
2887
- fn: C((h) => [
2888
- O(b.$slots, "titleCard", ue(de(h)))
1450
+ fn: k((o) => [
1451
+ U(d.$slots, "titleCard", te(ne(o)))
2889
1452
  ]),
2890
1453
  key: "0"
2891
1454
  } : void 0,
2892
- b.$slots.body ? {
1455
+ d.$slots.body ? {
2893
1456
  name: "bodyCard",
2894
- fn: C((h) => [
2895
- O(b.$slots, "body", ue(de(h)))
1457
+ fn: k((o) => [
1458
+ U(d.$slots, "body", te(ne(o)))
2896
1459
  ]),
2897
1460
  key: "1"
2898
1461
  } : void 0,
2899
- b.$slots.footer ? {
1462
+ d.$slots.footer ? {
2900
1463
  name: "footerCard",
2901
- fn: C((h) => [
2902
- O(b.$slots, "footer", ue(de(h)))
1464
+ fn: k((o) => [
1465
+ U(d.$slots, "footer", te(ne(o)))
2903
1466
  ]),
2904
1467
  key: "2"
2905
1468
  } : void 0
2906
- ]), 1032, ["loading", "columns", "data-source", "card-layout", "can-edit", "edit-action", "show-actions-column", "pagination", "meta"])) : j("", !0)
2907
- ], 64)) : (g(), B(Xn, {
1469
+ ]), 1032, ["loading", "columns", "data-source", "card-layout", "can-edit", "edit-action", "show-actions-column", "pagination", "meta"])) : N("", !0)
1470
+ ], 64)) : (i(), D(Et, {
2908
1471
  key: 1,
2909
1472
  loading: e.loading,
2910
1473
  pagination: e.pagination,
2911
1474
  columns: e.columns,
2912
1475
  "data-source": e.dataSource,
2913
- "filter-values": c.value,
1476
+ "filter-values": y.value,
2914
1477
  meta: e.meta,
2915
1478
  "can-edit": e.canEdit,
2916
1479
  "edit-action": e.editAction,
2917
1480
  "delete-action": e.deleteAction,
2918
1481
  "show-actions-column": e.showActionsColumn,
2919
- "columns-visibility": m.value,
2920
- "disable-column-filter-dropdowns": t.disableColumnFilterDropdowns === !0,
2921
- "show-filter-button": t.enableTableFilterDrawer === !0,
2922
- onOpenColumnDrawer: s[7] || (s[7] = (h) => i.value = !0),
2923
- onOpenFilterDrawer: s[8] || (s[8] = (h) => x.value = !0),
2924
- "onUpdate:filterValues": d,
2925
- onFilterApply: s[9] || (s[9] = (h) => n("filterApply", h)),
2926
- onRestore: s[10] || (s[10] = (h) => n("restore", h)),
2927
- onEdit: s[11] || (s[11] = (h) => n("edit", h)),
2928
- onDelete: s[12] || (s[12] = (h) => n("delete", h)),
2929
- onSortChange: s[13] || (s[13] = (h) => n("sortChange", h)),
2930
- onPageChange: s[14] || (s[14] = (h) => n("pageChange", h)),
2931
- onSizeChange: s[15] || (s[15] = (h, R) => n("sizeChange", h, R))
1482
+ "columns-visibility": h.value,
1483
+ "disable-column-filter-dropdowns": n.disableColumnFilterDropdowns === !0,
1484
+ "show-filter-button": n.enableTableFilterDrawer === !0,
1485
+ "multi-column-filters": n.multiColumnFilters,
1486
+ onOpenColumnDrawer: a[7] || (a[7] = (o) => s.value = !0),
1487
+ onOpenFilterDrawer: a[8] || (a[8] = (o) => V.value = !0),
1488
+ "onUpdate:filterValues": p,
1489
+ onFilterApply: a[9] || (a[9] = (o) => l("filterApply", o)),
1490
+ onRestore: a[10] || (a[10] = (o) => l("restore", o)),
1491
+ onEdit: a[11] || (a[11] = (o) => l("edit", o)),
1492
+ onDelete: a[12] || (a[12] = (o) => l("delete", o)),
1493
+ onSortChange: a[13] || (a[13] = (o) => l("sortChange", o)),
1494
+ onPageChange: a[14] || (a[14] = (o) => l("pageChange", o)),
1495
+ onSizeChange: a[15] || (a[15] = (o, $) => l("sizeChange", o, $))
2932
1496
  }, {
2933
- title: C(() => [
2934
- O(b.$slots, "title")
1497
+ title: k(() => [
1498
+ U(d.$slots, "title")
2935
1499
  ]),
2936
- bodyCell: C((h) => [
2937
- O(b.$slots, "bodyCell", ue(de(h)))
1500
+ bodyCell: k((o) => [
1501
+ U(d.$slots, "bodyCell", te(ne(o)))
2938
1502
  ]),
2939
- actionColumn: C((h) => [
2940
- O(b.$slots, "actionColumn", ue(de(h)))
1503
+ actionColumn: k((o) => [
1504
+ U(d.$slots, "actionColumn", te(ne(o)))
2941
1505
  ]),
2942
1506
  _: 3
2943
- }, 8, ["loading", "pagination", "columns", "data-source", "filter-values", "meta", "can-edit", "edit-action", "delete-action", "show-actions-column", "columns-visibility", "disable-column-filter-dropdowns", "show-filter-button"])),
2944
- O(b.$slots, "filtersDrawer", {
2945
- visible: x.value,
2946
- setVisible: (h) => {
2947
- x.value = h;
1507
+ }, 8, ["loading", "pagination", "columns", "data-source", "filter-values", "meta", "can-edit", "edit-action", "delete-action", "show-actions-column", "columns-visibility", "disable-column-filter-dropdowns", "show-filter-button", "multi-column-filters"])),
1508
+ U(d.$slots, "filtersDrawer", {
1509
+ visible: V.value,
1510
+ setVisible: (o) => {
1511
+ V.value = o;
2948
1512
  },
2949
- filters: c.value,
2950
- updateFilters: d,
2951
- emitFilterApply: S
1513
+ filters: y.value,
1514
+ updateFilters: p,
1515
+ emitFilterApply: I
2952
1516
  }, () => [
2953
- t.useFilterModal === !0 ? (g(), B(tr, {
1517
+ n.useFilterModal === !0 ? (i(), D(Ft, {
2954
1518
  key: 0,
2955
- visible: x.value,
2956
- "onUpdate:visible": s[16] || (s[16] = (h) => x.value = h),
1519
+ visible: V.value,
1520
+ "onUpdate:visible": a[16] || (a[16] = (o) => V.value = o),
2957
1521
  columns: e.columns,
2958
- "filter-values": c.value,
2959
- "onUpdate:filterValues": d,
2960
- onFilterApply: s[17] || (s[17] = (h) => n("filterApply", h))
2961
- }, null, 8, ["visible", "columns", "filter-values"])) : (g(), B(Jn, {
1522
+ "filter-values": y.value,
1523
+ "onUpdate:filterValues": p,
1524
+ onFilterApply: a[17] || (a[17] = (o) => l("filterApply", o))
1525
+ }, null, 8, ["visible", "columns", "filter-values"])) : (i(), D(Mt, {
2962
1526
  key: 1,
2963
- visible: x.value,
2964
- "onUpdate:visible": s[18] || (s[18] = (h) => x.value = h),
1527
+ visible: V.value,
1528
+ "onUpdate:visible": a[18] || (a[18] = (o) => V.value = o),
2965
1529
  columns: e.columns,
2966
- "filter-values": c.value,
2967
- "onUpdate:filterValues": d,
2968
- onFilterApply: s[19] || (s[19] = (h) => n("filterApply", h))
1530
+ "filter-values": y.value,
1531
+ "onUpdate:filterValues": p,
1532
+ onFilterApply: a[19] || (a[19] = (o) => l("filterApply", o))
2969
1533
  }, null, 8, ["visible", "columns", "filter-values"]))
2970
1534
  ]),
2971
- M(qn, {
2972
- visible: i.value,
2973
- "onUpdate:visible": s[20] || (s[20] = (h) => i.value = h),
2974
- "model-value": m.value,
2975
- "onUpdate:modelValue": s[21] || (s[21] = (h) => m.value = h),
2976
- "view-mode": r.value,
2977
- "onUpdate:viewMode": s[22] || (s[22] = (h) => r.value = h),
2978
- "card-layout": l.value,
2979
- "onUpdate:cardLayout": s[23] || (s[23] = (h) => l.value = h),
1535
+ E(Vt, {
1536
+ visible: s.value,
1537
+ "onUpdate:visible": a[20] || (a[20] = (o) => s.value = o),
1538
+ "model-value": h.value,
1539
+ "onUpdate:modelValue": a[21] || (a[21] = (o) => h.value = o),
1540
+ "view-mode": m.value,
1541
+ "onUpdate:viewMode": a[22] || (a[22] = (o) => m.value = o),
1542
+ "card-layout": g.value,
1543
+ "onUpdate:cardLayout": a[23] || (a[23] = (o) => g.value = o),
2980
1544
  columns: e.columns,
2981
1545
  "show-actions-column": e.showActionsColumn,
2982
1546
  "disable-view-mode": e.disableViewMode
@@ -2984,7 +1548,7 @@ const or = { class: "efko-dataview" }, nr = { class: "flex items-center justify-
2984
1548
  ]);
2985
1549
  };
2986
1550
  }
2987
- }), br = /* @__PURE__ */ z({
1551
+ }), Xt = /* @__PURE__ */ P({
2988
1552
  __name: "LazyLoadContainer",
2989
1553
  props: {
2990
1554
  onIntersect: {},
@@ -2993,52 +1557,52 @@ const or = { class: "efko-dataview" }, nr = { class: "flex items-center justify-
2993
1557
  rootMargin: { default: "0px" }
2994
1558
  },
2995
1559
  setup(e) {
2996
- const o = e, t = _(null);
2997
- let n = null;
2998
- const r = (a) => {
2999
- a[0].isIntersecting && o.onIntersect && (o.onIntersect(), o.once && n && n.disconnect());
1560
+ const w = e, n = T(null);
1561
+ let l = null;
1562
+ const m = (f) => {
1563
+ f[0].isIntersecting && w.onIntersect && (w.onIntersect(), w.once && l && l.disconnect());
3000
1564
  };
3001
- return le(() => {
3002
- n = new IntersectionObserver(r, {
3003
- threshold: o.threshold,
3004
- rootMargin: o.rootMargin
3005
- }), t.value && n.observe(t.value);
3006
- }), Ue(() => {
3007
- n == null || n.disconnect();
3008
- }), (a, l) => (g(), A("div", {
1565
+ return K(() => {
1566
+ l = new IntersectionObserver(m, {
1567
+ threshold: w.threshold,
1568
+ rootMargin: w.rootMargin
1569
+ }), n.value && l.observe(n.value);
1570
+ }), ye(() => {
1571
+ l == null || l.disconnect();
1572
+ }), (f, g) => (i(), A("div", {
3009
1573
  ref_key: "container",
3010
- ref: t
1574
+ ref: n
3011
1575
  }, [
3012
- O(a.$slots, "default")
1576
+ U(f.$slots, "default")
3013
1577
  ], 512));
3014
1578
  }
3015
1579
  });
3016
1580
  export {
3017
- Jn as CardFiltersDrawer,
3018
- tr as CardFiltersModal,
3019
- An as CardGrid,
3020
- Ft as CardLayout,
3021
- qn as ColumnSettingsDrawer,
3022
- hr as DEFAULT_PAGE_NUMBER,
3023
- vr as DEFAULT_PAGE_SIZE,
3024
- Xn as DataTable,
3025
- yr as DataView,
3026
- ee as FilterMode,
3027
- br as LazyLoadContainer,
3028
- yn as LazyLoadTrigger,
3029
- pr as PAGE_SIZE_EXTRA_LARGE,
3030
- fr as PAGE_SIZE_LARGE,
3031
- dr as PAGE_SIZE_MEDIUM,
3032
- mr as PAGE_SIZE_OPTIONS,
3033
- Cn as PAGE_SIZE_SMALL,
3034
- gr as PAGE_SIZE_ULTRA,
3035
- wn as PageSizes,
3036
- kn as SkipSizes,
3037
- En as SortOrder,
3038
- Pn as TableBodyCell,
3039
- Mn as TableDefaults,
3040
- Ne as TableSortOrder,
3041
- je as ViewMode,
3042
- yr as default
1581
+ Mt as CardFiltersDrawer,
1582
+ Ft as CardFiltersModal,
1583
+ et as CardGrid,
1584
+ he as CardLayout,
1585
+ Vt as ColumnSettingsDrawer,
1586
+ Zt as DEFAULT_PAGE_NUMBER,
1587
+ qt as DEFAULT_PAGE_SIZE,
1588
+ Et as DataTable,
1589
+ Kt as DataView,
1590
+ H as FilterMode,
1591
+ Xt as LazyLoadContainer,
1592
+ Ke as LazyLoadTrigger,
1593
+ Ht as PAGE_SIZE_EXTRA_LARGE,
1594
+ Gt as PAGE_SIZE_LARGE,
1595
+ zt as PAGE_SIZE_MEDIUM,
1596
+ Jt as PAGE_SIZE_OPTIONS,
1597
+ tt as PAGE_SIZE_SMALL,
1598
+ Yt as PAGE_SIZE_ULTRA,
1599
+ nt as PageSizes,
1600
+ ot as SkipSizes,
1601
+ rt as SortOrder,
1602
+ Ct as TableBodyCell,
1603
+ lt as TableDefaults,
1604
+ se as TableSortOrder,
1605
+ ue as ViewMode,
1606
+ Kt as default
3043
1607
  };
3044
1608
  //# sourceMappingURL=data-view.es.js.map