vue-efko-data-view 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-view.cjs.js +7 -7
- package/dist/data-view.cjs.js.map +1 -1
- package/dist/data-view.es.js +1079 -1057
- package/dist/data-view.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/data-view.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { isEqual as
|
|
3
|
-
import
|
|
4
|
-
import { CheckCircleTwoTone as
|
|
5
|
-
import
|
|
6
|
-
import { Empty as
|
|
7
|
-
function
|
|
8
|
-
return
|
|
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
9
|
for (var o = 1; o < arguments.length; o++) {
|
|
10
10
|
var t = arguments[o];
|
|
11
11
|
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
12
12
|
}
|
|
13
13
|
return e;
|
|
14
|
-
},
|
|
14
|
+
}, T.apply(null, arguments);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function xt(e) {
|
|
17
17
|
for (var o = 0, t, n = 0, r = e.length; r >= 4; ++n, r -= 4)
|
|
18
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
19
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
@@ -32,199 +32,199 @@ function bt(e) {
|
|
|
32
32
|
return o ^= o >>> 13, o = /* Math.imul(h, m): */
|
|
33
33
|
(o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16), ((o ^ o >>> 15) >>> 0).toString(36);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
class
|
|
35
|
+
const et = "%";
|
|
36
|
+
class jt {
|
|
37
37
|
constructor(o) {
|
|
38
38
|
this.cache = /* @__PURE__ */ new Map(), this.instanceId = o;
|
|
39
39
|
}
|
|
40
40
|
get(o) {
|
|
41
|
-
return this.cache.get(Array.isArray(o) ? o.join(
|
|
41
|
+
return this.cache.get(Array.isArray(o) ? o.join(et) : o) || null;
|
|
42
42
|
}
|
|
43
43
|
update(o, t) {
|
|
44
|
-
const n = Array.isArray(o) ? o.join(
|
|
44
|
+
const n = Array.isArray(o) ? o.join(et) : o, r = this.cache.get(n), a = t(r);
|
|
45
45
|
a === null ? this.cache.delete(n) : this.cache.set(n, a);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Ut = (e) => {
|
|
49
49
|
const o = e;
|
|
50
50
|
return o.install = function(t) {
|
|
51
51
|
t.component(o.displayName || o.name, e);
|
|
52
52
|
}, e;
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function St(e) {
|
|
55
55
|
return {
|
|
56
56
|
type: Object,
|
|
57
57
|
default: e
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ke(e) {
|
|
61
61
|
return {
|
|
62
62
|
type: Boolean,
|
|
63
63
|
default: e
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Xt(e, o) {
|
|
67
67
|
const t = {
|
|
68
68
|
validator: () => !0,
|
|
69
69
|
default: e
|
|
70
70
|
};
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function tt(e) {
|
|
74
74
|
return {
|
|
75
75
|
type: Array,
|
|
76
76
|
default: e
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ot(e) {
|
|
80
80
|
return {
|
|
81
81
|
type: String,
|
|
82
82
|
default: e
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Gt(e, o) {
|
|
86
86
|
return e ? {
|
|
87
87
|
type: e,
|
|
88
88
|
default: o
|
|
89
|
-
} :
|
|
89
|
+
} : Xt(o);
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
function
|
|
91
|
+
const Wt = "data-token-hash", Me = "data-css-hash", pe = "__cssinjs_instance__";
|
|
92
|
+
function he() {
|
|
93
93
|
const e = Math.random().toString(12).slice(2);
|
|
94
94
|
if (typeof document < "u" && document.head && document.body) {
|
|
95
|
-
const o = document.body.querySelectorAll(`style[${
|
|
95
|
+
const o = document.body.querySelectorAll(`style[${Me}]`) || [], {
|
|
96
96
|
firstChild: t
|
|
97
97
|
} = document.head;
|
|
98
98
|
Array.from(o).forEach((r) => {
|
|
99
|
-
r[
|
|
99
|
+
r[pe] = r[pe] || e, r[pe] === e && document.head.insertBefore(r, t);
|
|
100
100
|
});
|
|
101
101
|
const n = {};
|
|
102
|
-
Array.from(document.querySelectorAll(`style[${
|
|
102
|
+
Array.from(document.querySelectorAll(`style[${Me}]`)).forEach((r) => {
|
|
103
103
|
var a;
|
|
104
|
-
const l = r.getAttribute(
|
|
105
|
-
n[l] ? r[
|
|
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
106
|
});
|
|
107
107
|
}
|
|
108
|
-
return new
|
|
108
|
+
return new jt(e);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const At = Symbol("StyleContextKey"), qt = () => {
|
|
111
111
|
var e, o, t;
|
|
112
|
-
const n =
|
|
112
|
+
const n = Vt();
|
|
113
113
|
let r;
|
|
114
114
|
if (n && n.appContext) {
|
|
115
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 =
|
|
116
|
+
a ? r = a : (r = he(), n.appContext.config.globalProperties && (n.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = r));
|
|
117
117
|
} else
|
|
118
|
-
r =
|
|
118
|
+
r = he();
|
|
119
119
|
return r;
|
|
120
|
-
},
|
|
121
|
-
cache:
|
|
120
|
+
}, Ct = {
|
|
121
|
+
cache: he(),
|
|
122
122
|
defaultCache: !0,
|
|
123
123
|
hashPriority: "low"
|
|
124
|
-
},
|
|
125
|
-
const e =
|
|
126
|
-
return
|
|
124
|
+
}, qe = () => {
|
|
125
|
+
const e = qt();
|
|
126
|
+
return pt(At, ge(T(T({}, Ct), {
|
|
127
127
|
cache: e
|
|
128
128
|
})));
|
|
129
|
-
},
|
|
130
|
-
const o =
|
|
131
|
-
cache:
|
|
129
|
+
}, Kt = (e) => {
|
|
130
|
+
const o = qe(), t = ge(T(T({}, Ct), {
|
|
131
|
+
cache: he()
|
|
132
132
|
}));
|
|
133
|
-
return
|
|
134
|
-
const n =
|
|
133
|
+
return D([() => F(e), o], () => {
|
|
134
|
+
const n = T({}, o.value), r = F(e);
|
|
135
135
|
Object.keys(r).forEach((l) => {
|
|
136
|
-
const
|
|
137
|
-
r[l] !== void 0 && (n[l] =
|
|
136
|
+
const c = r[l];
|
|
137
|
+
r[l] !== void 0 && (n[l] = c);
|
|
138
138
|
});
|
|
139
139
|
const {
|
|
140
140
|
cache: a
|
|
141
141
|
} = r;
|
|
142
|
-
n.cache = n.cache ||
|
|
142
|
+
n.cache = n.cache || he(), n.defaultCache = !a && o.value.defaultCache, t.value = n;
|
|
143
143
|
}, {
|
|
144
144
|
immediate: !0
|
|
145
|
-
}),
|
|
146
|
-
},
|
|
147
|
-
autoClear:
|
|
145
|
+
}), gt(At, t), t;
|
|
146
|
+
}, Zt = () => ({
|
|
147
|
+
autoClear: ke(),
|
|
148
148
|
/** @private Test only. Not work in production. */
|
|
149
|
-
mock:
|
|
149
|
+
mock: ot(),
|
|
150
150
|
/**
|
|
151
151
|
* Only set when you need ssr to extract style on you own.
|
|
152
152
|
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
153
153
|
*/
|
|
154
|
-
cache:
|
|
154
|
+
cache: St(),
|
|
155
155
|
/** Tell children that this context is default generated context */
|
|
156
|
-
defaultCache:
|
|
156
|
+
defaultCache: ke(),
|
|
157
157
|
/** Use `:where` selector to reduce hashId css selector priority */
|
|
158
|
-
hashPriority:
|
|
158
|
+
hashPriority: ot(),
|
|
159
159
|
/** Tell cssinjs where to inject style in */
|
|
160
|
-
container:
|
|
160
|
+
container: Gt(),
|
|
161
161
|
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
162
|
-
ssrInline:
|
|
162
|
+
ssrInline: ke(),
|
|
163
163
|
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
164
|
-
transformers:
|
|
164
|
+
transformers: tt(),
|
|
165
165
|
/**
|
|
166
166
|
* Linters to lint css before inject in document.
|
|
167
167
|
* Styles will be linted after transforming.
|
|
168
168
|
* Please note that `linters` do not support dynamic update.
|
|
169
169
|
*/
|
|
170
|
-
linters:
|
|
170
|
+
linters: tt()
|
|
171
171
|
});
|
|
172
|
-
|
|
172
|
+
Ut(z({
|
|
173
173
|
name: "AStyleProvider",
|
|
174
174
|
inheritAttrs: !1,
|
|
175
|
-
props:
|
|
175
|
+
props: Zt(),
|
|
176
176
|
setup(e, {
|
|
177
177
|
slots: o
|
|
178
178
|
}) {
|
|
179
|
-
return
|
|
179
|
+
return Kt(e), () => {
|
|
180
180
|
var t;
|
|
181
181
|
return (t = o.default) === null || t === void 0 ? void 0 : t.call(o);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
185
|
+
function Qt() {
|
|
186
186
|
return !1;
|
|
187
187
|
}
|
|
188
|
-
let
|
|
189
|
-
function
|
|
190
|
-
return
|
|
188
|
+
let _e = !1;
|
|
189
|
+
function Jt() {
|
|
190
|
+
return _e;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const Yt = process.env.NODE_ENV === "production" ? Qt : Jt;
|
|
193
193
|
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
194
194
|
const e = window;
|
|
195
195
|
if (typeof e.webpackHotUpdate == "function") {
|
|
196
196
|
const o = e.webpackHotUpdate;
|
|
197
|
-
e.webpackHotUpdate = (...t) => (
|
|
198
|
-
|
|
197
|
+
e.webpackHotUpdate = (...t) => (_e = !0, setTimeout(() => {
|
|
198
|
+
_e = !1;
|
|
199
199
|
}, 0), o(...t));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
const r =
|
|
204
|
-
|
|
202
|
+
function eo(e, o, t, n) {
|
|
203
|
+
const r = qe(), a = ge(""), l = ge();
|
|
204
|
+
_t(() => {
|
|
205
205
|
a.value = [e, ...o.value].join("%");
|
|
206
206
|
});
|
|
207
|
-
const
|
|
208
|
-
r.value.cache.update(
|
|
209
|
-
const [p = 0, S] =
|
|
207
|
+
const c = Yt(), f = (d) => {
|
|
208
|
+
r.value.cache.update(d, (u) => {
|
|
209
|
+
const [p = 0, S] = u || [];
|
|
210
210
|
return p - 1 === 0 ? (n == null || n(S, !1), null) : [p - 1, S];
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
const [S = 0,
|
|
216
|
-
let i =
|
|
217
|
-
process.env.NODE_ENV !== "production" &&
|
|
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
218
|
const m = i || t();
|
|
219
219
|
return [S + 1, m];
|
|
220
220
|
}), l.value = r.value.cache.get(a.value)[1];
|
|
221
221
|
}, {
|
|
222
222
|
immediate: !0
|
|
223
|
-
}),
|
|
224
|
-
|
|
223
|
+
}), Ue(() => {
|
|
224
|
+
f(a.value);
|
|
225
225
|
}), l;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function to(e, o) {
|
|
228
228
|
if (e.length !== o.length)
|
|
229
229
|
return !1;
|
|
230
230
|
for (let t = 0; t < e.length; t++)
|
|
@@ -232,7 +232,7 @@ function Yt(e, o) {
|
|
|
232
232
|
return !1;
|
|
233
233
|
return !0;
|
|
234
234
|
}
|
|
235
|
-
class
|
|
235
|
+
class se {
|
|
236
236
|
constructor() {
|
|
237
237
|
this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
238
238
|
}
|
|
@@ -257,10 +257,10 @@ class ae {
|
|
|
257
257
|
}
|
|
258
258
|
set(o, t) {
|
|
259
259
|
if (!this.has(o)) {
|
|
260
|
-
if (this.size() + 1 >
|
|
260
|
+
if (this.size() + 1 > se.MAX_CACHE_SIZE + se.MAX_CACHE_OFFSET) {
|
|
261
261
|
const [r] = this.keys.reduce((a, l) => {
|
|
262
|
-
const [,
|
|
263
|
-
return this.internalGet(l)[1] <
|
|
262
|
+
const [, c] = a;
|
|
263
|
+
return this.internalGet(l)[1] < c ? [l, this.internalGet(l)[1]] : a;
|
|
264
264
|
}, [this.keys[0], this.cacheCallTimes]);
|
|
265
265
|
this.delete(r);
|
|
266
266
|
}
|
|
@@ -292,221 +292,221 @@ class ae {
|
|
|
292
292
|
}
|
|
293
293
|
delete(o) {
|
|
294
294
|
if (this.has(o))
|
|
295
|
-
return this.keys = this.keys.filter((t) => !
|
|
295
|
+
return this.keys = this.keys.filter((t) => !to(t, o)), this.deleteByPath(this.cache, o);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
let
|
|
301
|
-
function
|
|
298
|
+
se.MAX_CACHE_SIZE = 20;
|
|
299
|
+
se.MAX_CACHE_OFFSET = 5;
|
|
300
|
+
let Re = {};
|
|
301
|
+
function oo(e, o) {
|
|
302
302
|
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${o}`);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
304
|
+
function no() {
|
|
305
|
+
Re = {};
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
!o && !
|
|
307
|
+
function ro(e, o, t) {
|
|
308
|
+
!o && !Re[t] && (e(!1, t), Re[t] = !0);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
oo
|
|
310
|
+
function ao(e, o) {
|
|
311
|
+
ro(oo, e, o);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function io() {
|
|
314
314
|
}
|
|
315
|
-
let
|
|
316
|
-
process.env.NODE_ENV !== "production" && (
|
|
317
|
-
|
|
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
318
|
});
|
|
319
|
-
let
|
|
320
|
-
class
|
|
319
|
+
let nt = 0;
|
|
320
|
+
class kt {
|
|
321
321
|
constructor(o) {
|
|
322
|
-
this.derivatives = Array.isArray(o) ? o : [o], this.id =
|
|
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
323
|
}
|
|
324
324
|
getDerivativeToken(o) {
|
|
325
325
|
return this.derivatives.reduce((t, n) => n(o, t), void 0);
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
const
|
|
329
|
-
function
|
|
328
|
+
const Ee = new se();
|
|
329
|
+
function lo(e) {
|
|
330
330
|
const o = Array.isArray(e) ? e : [e];
|
|
331
|
-
return
|
|
331
|
+
return Ee.has(o) || Ee.set(o, new kt(o)), Ee.get(o);
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
function
|
|
335
|
-
let o =
|
|
333
|
+
const rt = /* @__PURE__ */ new WeakMap();
|
|
334
|
+
function Se(e) {
|
|
335
|
+
let o = rt.get(e) || "";
|
|
336
336
|
return o || (Object.keys(e).forEach((t) => {
|
|
337
337
|
const n = e[t];
|
|
338
|
-
o += t, n instanceof
|
|
339
|
-
}),
|
|
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
340
|
}
|
|
341
|
-
function
|
|
342
|
-
return
|
|
341
|
+
function so(e, o) {
|
|
342
|
+
return xt(`${o}_${Se(e)}`);
|
|
343
343
|
}
|
|
344
|
-
const
|
|
345
|
-
function
|
|
346
|
-
|
|
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
347
|
}
|
|
348
|
-
function
|
|
349
|
-
typeof document < "u" && document.querySelectorAll(`style[${
|
|
348
|
+
function go(e, o) {
|
|
349
|
+
typeof document < "u" && document.querySelectorAll(`style[${Wt}="${e}"]`).forEach((n) => {
|
|
350
350
|
var r;
|
|
351
|
-
n[
|
|
351
|
+
n[pe] === o && ((r = n.parentNode) === null || r === void 0 || r.removeChild(n));
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
const
|
|
355
|
-
function
|
|
356
|
-
|
|
357
|
-
const t = Array.from(
|
|
358
|
-
t.length - n.length >
|
|
359
|
-
|
|
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
360
|
});
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const mo = (e, o, t, n) => {
|
|
363
363
|
const r = t.getDerivativeToken(e);
|
|
364
|
-
let a =
|
|
364
|
+
let a = T(T({}, r), o);
|
|
365
365
|
return n && (a = n(a)), a;
|
|
366
366
|
};
|
|
367
|
-
function
|
|
368
|
-
const n =
|
|
369
|
-
return
|
|
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
370
|
const {
|
|
371
|
-
salt:
|
|
372
|
-
override:
|
|
373
|
-
formatToken:
|
|
371
|
+
salt: f = "",
|
|
372
|
+
override: d = at,
|
|
373
|
+
formatToken: u,
|
|
374
374
|
getComputedToken: p
|
|
375
|
-
} = t.value, S = p ? p(r.value,
|
|
376
|
-
S._tokenKey =
|
|
377
|
-
const i = `${
|
|
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
378
|
return S._hashId = i, [S, i];
|
|
379
|
-
}, (
|
|
380
|
-
var
|
|
381
|
-
|
|
379
|
+
}, (f) => {
|
|
380
|
+
var d;
|
|
381
|
+
vo(f[0]._tokenKey, (d = n.value) === null || d === void 0 ? void 0 : d.cache.instanceId);
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
function
|
|
386
|
-
|
|
387
|
-
var t =
|
|
384
|
+
const bo = "1.7.0";
|
|
385
|
+
function N(e, o) {
|
|
386
|
+
xo(e) && (e = "100%");
|
|
387
|
+
var t = So(e);
|
|
388
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
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ve(e) {
|
|
391
391
|
return Math.min(1, Math.max(0, e));
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function xo(e) {
|
|
394
394
|
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function So(e) {
|
|
397
397
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Mt(e) {
|
|
400
400
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function me(e) {
|
|
403
403
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ne(e) {
|
|
406
406
|
return e.length === 1 ? "0" + e : String(e);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ao(e, o, t) {
|
|
409
409
|
return {
|
|
410
|
-
r:
|
|
411
|
-
g:
|
|
412
|
-
b:
|
|
410
|
+
r: N(e, 255) * 255,
|
|
411
|
+
g: N(o, 255) * 255,
|
|
412
|
+
b: N(t, 255) * 255
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
e =
|
|
417
|
-
var n = Math.max(e, o, t), r = Math.min(e, o, t), a = 0, l = 0,
|
|
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
418
|
if (n === r)
|
|
419
419
|
l = 0, a = 0;
|
|
420
420
|
else {
|
|
421
|
-
var
|
|
422
|
-
switch (l =
|
|
421
|
+
var f = n - r;
|
|
422
|
+
switch (l = c > 0.5 ? f / (2 - n - r) : f / (n + r), n) {
|
|
423
423
|
case e:
|
|
424
|
-
a = (o - t) /
|
|
424
|
+
a = (o - t) / f + (o < t ? 6 : 0);
|
|
425
425
|
break;
|
|
426
426
|
case o:
|
|
427
|
-
a = (t - e) /
|
|
427
|
+
a = (t - e) / f + 2;
|
|
428
428
|
break;
|
|
429
429
|
case t:
|
|
430
|
-
a = (e - o) /
|
|
430
|
+
a = (e - o) / f + 4;
|
|
431
431
|
break;
|
|
432
432
|
}
|
|
433
433
|
a /= 6;
|
|
434
434
|
}
|
|
435
|
-
return { h: a, s: l, l:
|
|
435
|
+
return { h: a, s: l, l: c };
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Te(e, o, t) {
|
|
438
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
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Co(e, o, t) {
|
|
441
441
|
var n, r, a;
|
|
442
|
-
if (e =
|
|
442
|
+
if (e = N(e, 360), o = N(o, 100), t = N(t, 100), o === 0)
|
|
443
443
|
r = t, a = t, n = t;
|
|
444
444
|
else {
|
|
445
|
-
var l = t < 0.5 ? t * (1 + o) : t + o - t * o,
|
|
446
|
-
n =
|
|
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
447
|
}
|
|
448
448
|
return { r: n * 255, g: r * 255, b: a * 255 };
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
e =
|
|
452
|
-
var n = Math.max(e, o, t), r = Math.min(e, o, t), a = 0, l = n,
|
|
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
453
|
if (n === r)
|
|
454
454
|
a = 0;
|
|
455
455
|
else {
|
|
456
456
|
switch (n) {
|
|
457
457
|
case e:
|
|
458
|
-
a = (o - t) /
|
|
458
|
+
a = (o - t) / c + (o < t ? 6 : 0);
|
|
459
459
|
break;
|
|
460
460
|
case o:
|
|
461
|
-
a = (t - e) /
|
|
461
|
+
a = (t - e) / c + 2;
|
|
462
462
|
break;
|
|
463
463
|
case t:
|
|
464
|
-
a = (e - o) /
|
|
464
|
+
a = (e - o) / c + 4;
|
|
465
465
|
break;
|
|
466
466
|
}
|
|
467
467
|
a /= 6;
|
|
468
468
|
}
|
|
469
|
-
return { h: a, s:
|
|
469
|
+
return { h: a, s: f, v: l };
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
e =
|
|
473
|
-
var n = Math.floor(e), r = e - n, a = t * (1 - o), l = t * (1 - r * o),
|
|
474
|
-
return { r:
|
|
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
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Oe(e, o, t, n) {
|
|
477
477
|
var r = [
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
ne(Math.round(e).toString(16)),
|
|
479
|
+
ne(Math.round(o).toString(16)),
|
|
480
|
+
ne(Math.round(t).toString(16))
|
|
481
481
|
];
|
|
482
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
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function ko(e, o, t, n, r) {
|
|
485
485
|
var a = [
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
490
|
];
|
|
491
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
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Mo(e) {
|
|
494
494
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
495
495
|
}
|
|
496
|
-
function
|
|
497
|
-
return
|
|
496
|
+
function lt(e) {
|
|
497
|
+
return X(e) / 255;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function X(e) {
|
|
500
500
|
return parseInt(e, 16);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Eo(e) {
|
|
503
503
|
return {
|
|
504
504
|
r: e >> 16,
|
|
505
505
|
g: (e & 65280) >> 8,
|
|
506
506
|
b: e & 255
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
var
|
|
509
|
+
var ze = {
|
|
510
510
|
aliceblue: "#f0f8ff",
|
|
511
511
|
antiquewhite: "#faebd7",
|
|
512
512
|
aqua: "#00ffff",
|
|
@@ -656,67 +656,67 @@ var Le = {
|
|
|
656
656
|
yellow: "#ffff00",
|
|
657
657
|
yellowgreen: "#9acd32"
|
|
658
658
|
};
|
|
659
|
-
function
|
|
660
|
-
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, r = null, a = null, l = !1,
|
|
661
|
-
return typeof e == "string" && (e =
|
|
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
662
|
ok: l,
|
|
663
|
-
format: e.format ||
|
|
663
|
+
format: e.format || c,
|
|
664
664
|
r: Math.min(255, Math.max(o.r, 0)),
|
|
665
665
|
g: Math.min(255, Math.max(o.g, 0)),
|
|
666
666
|
b: Math.min(255, Math.max(o.b, 0)),
|
|
667
667
|
a: t
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
var
|
|
671
|
-
CSS_UNIT: new RegExp(
|
|
672
|
-
rgb: new RegExp("rgb" +
|
|
673
|
-
rgba: new RegExp("rgba" +
|
|
674
|
-
hsl: new RegExp("hsl" +
|
|
675
|
-
hsla: new RegExp("hsla" +
|
|
676
|
-
hsv: new RegExp("hsv" +
|
|
677
|
-
hsva: new RegExp("hsva" +
|
|
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
678
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
679
679
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
680
680
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
681
681
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
682
682
|
};
|
|
683
|
-
function
|
|
683
|
+
function Io(e) {
|
|
684
684
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
685
685
|
return !1;
|
|
686
686
|
var o = !1;
|
|
687
|
-
if (
|
|
688
|
-
e =
|
|
687
|
+
if (ze[e])
|
|
688
|
+
e = ze[e], o = !0;
|
|
689
689
|
else if (e === "transparent")
|
|
690
690
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
691
|
-
var t =
|
|
692
|
-
return t ? { r: t[1], g: t[2], b: t[3] } : (t =
|
|
693
|
-
r:
|
|
694
|
-
g:
|
|
695
|
-
b:
|
|
696
|
-
a:
|
|
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
697
|
format: o ? "name" : "hex8"
|
|
698
|
-
} : (t =
|
|
699
|
-
r:
|
|
700
|
-
g:
|
|
701
|
-
b:
|
|
698
|
+
} : (t = W.hex6.exec(e), t ? {
|
|
699
|
+
r: X(t[1]),
|
|
700
|
+
g: X(t[2]),
|
|
701
|
+
b: X(t[3]),
|
|
702
702
|
format: o ? "name" : "hex"
|
|
703
|
-
} : (t =
|
|
704
|
-
r:
|
|
705
|
-
g:
|
|
706
|
-
b:
|
|
707
|
-
a:
|
|
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
708
|
format: o ? "name" : "hex8"
|
|
709
|
-
} : (t =
|
|
710
|
-
r:
|
|
711
|
-
g:
|
|
712
|
-
b:
|
|
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
713
|
format: o ? "name" : "hex"
|
|
714
714
|
} : !1)))))))));
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
return !!
|
|
716
|
+
function K(e) {
|
|
717
|
+
return !!W.CSS_UNIT.exec(String(e));
|
|
718
718
|
}
|
|
719
|
-
var
|
|
719
|
+
var q = (
|
|
720
720
|
/** @class */
|
|
721
721
|
function() {
|
|
722
722
|
function e(o, t) {
|
|
@@ -724,8 +724,8 @@ var W = (
|
|
|
724
724
|
var n;
|
|
725
725
|
if (o instanceof e)
|
|
726
726
|
return o;
|
|
727
|
-
typeof o == "number" && (o =
|
|
728
|
-
var r =
|
|
727
|
+
typeof o == "number" && (o = Eo(o)), this.originalInput = o;
|
|
728
|
+
var r = ae(o);
|
|
729
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
730
|
}
|
|
731
731
|
return e.prototype.isDark = function() {
|
|
@@ -736,33 +736,33 @@ var W = (
|
|
|
736
736
|
var o = this.toRgb();
|
|
737
737
|
return (o.r * 299 + o.g * 587 + o.b * 114) / 1e3;
|
|
738
738
|
}, e.prototype.getLuminance = function() {
|
|
739
|
-
var o = this.toRgb(), t, n, r, a = o.r / 255, l = o.g / 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),
|
|
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
741
|
}, e.prototype.getAlpha = function() {
|
|
742
742
|
return this.a;
|
|
743
743
|
}, e.prototype.setAlpha = function(o) {
|
|
744
|
-
return this.a =
|
|
744
|
+
return this.a = Mt(o), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
745
745
|
}, e.prototype.isMonochrome = function() {
|
|
746
746
|
var o = this.toHsl().s;
|
|
747
747
|
return o === 0;
|
|
748
748
|
}, e.prototype.toHsv = function() {
|
|
749
|
-
var o =
|
|
749
|
+
var o = Le(this.r, this.g, this.b);
|
|
750
750
|
return { h: o.h * 360, s: o.s, v: o.v, a: this.a };
|
|
751
751
|
}, e.prototype.toHsvString = function() {
|
|
752
|
-
var o =
|
|
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
753
|
return this.a === 1 ? "hsv(".concat(t, ", ").concat(n, "%, ").concat(r, "%)") : "hsva(".concat(t, ", ").concat(n, "%, ").concat(r, "%, ").concat(this.roundA, ")");
|
|
754
754
|
}, e.prototype.toHsl = function() {
|
|
755
|
-
var o =
|
|
755
|
+
var o = it(this.r, this.g, this.b);
|
|
756
756
|
return { h: o.h * 360, s: o.s, l: o.l, a: this.a };
|
|
757
757
|
}, e.prototype.toHslString = function() {
|
|
758
|
-
var o =
|
|
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
759
|
return this.a === 1 ? "hsl(".concat(t, ", ").concat(n, "%, ").concat(r, "%)") : "hsla(".concat(t, ", ").concat(n, "%, ").concat(r, "%, ").concat(this.roundA, ")");
|
|
760
760
|
}, e.prototype.toHex = function(o) {
|
|
761
|
-
return o === void 0 && (o = !1),
|
|
761
|
+
return o === void 0 && (o = !1), Oe(this.r, this.g, this.b, o);
|
|
762
762
|
}, e.prototype.toHexString = function(o) {
|
|
763
763
|
return o === void 0 && (o = !1), "#" + this.toHex(o);
|
|
764
764
|
}, e.prototype.toHex8 = function(o) {
|
|
765
|
-
return o === void 0 && (o = !1),
|
|
765
|
+
return o === void 0 && (o = !1), ko(this.r, this.g, this.b, this.a, o);
|
|
766
766
|
}, e.prototype.toHex8String = function(o) {
|
|
767
767
|
return o === void 0 && (o = !1), "#" + this.toHex8(o);
|
|
768
768
|
}, e.prototype.toHexShortString = function(o) {
|
|
@@ -779,7 +779,7 @@ var W = (
|
|
|
779
779
|
return this.a === 1 ? "rgb(".concat(o, ", ").concat(t, ", ").concat(n, ")") : "rgba(".concat(o, ", ").concat(t, ", ").concat(n, ", ").concat(this.roundA, ")");
|
|
780
780
|
}, e.prototype.toPercentageRgb = function() {
|
|
781
781
|
var o = function(t) {
|
|
782
|
-
return "".concat(Math.round(
|
|
782
|
+
return "".concat(Math.round(N(t, 255) * 100), "%");
|
|
783
783
|
};
|
|
784
784
|
return {
|
|
785
785
|
r: o(this.r),
|
|
@@ -789,7 +789,7 @@ var W = (
|
|
|
789
789
|
};
|
|
790
790
|
}, e.prototype.toPercentageRgbString = function() {
|
|
791
791
|
var o = function(t) {
|
|
792
|
-
return Math.round(
|
|
792
|
+
return Math.round(N(t, 255) * 100);
|
|
793
793
|
};
|
|
794
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
795
|
}, e.prototype.toName = function() {
|
|
@@ -797,7 +797,7 @@ var W = (
|
|
|
797
797
|
return "transparent";
|
|
798
798
|
if (this.a < 1)
|
|
799
799
|
return !1;
|
|
800
|
-
for (var o = "#" +
|
|
800
|
+
for (var o = "#" + Oe(this.r, this.g, this.b, !1), t = 0, n = Object.entries(ze); t < n.length; t++) {
|
|
801
801
|
var r = n[t], a = r[0], l = r[1];
|
|
802
802
|
if (o === l)
|
|
803
803
|
return a;
|
|
@@ -815,7 +815,7 @@ var W = (
|
|
|
815
815
|
}, e.prototype.lighten = function(o) {
|
|
816
816
|
o === void 0 && (o = 10);
|
|
817
817
|
var t = this.toHsl();
|
|
818
|
-
return t.l += o / 100, t.l =
|
|
818
|
+
return t.l += o / 100, t.l = ve(t.l), new e(t);
|
|
819
819
|
}, e.prototype.brighten = function(o) {
|
|
820
820
|
o === void 0 && (o = 10);
|
|
821
821
|
var t = this.toRgb();
|
|
@@ -823,7 +823,7 @@ var W = (
|
|
|
823
823
|
}, e.prototype.darken = function(o) {
|
|
824
824
|
o === void 0 && (o = 10);
|
|
825
825
|
var t = this.toHsl();
|
|
826
|
-
return t.l -= o / 100, t.l =
|
|
826
|
+
return t.l -= o / 100, t.l = ve(t.l), new e(t);
|
|
827
827
|
}, e.prototype.tint = function(o) {
|
|
828
828
|
return o === void 0 && (o = 10), this.mix("white", o);
|
|
829
829
|
}, e.prototype.shade = function(o) {
|
|
@@ -831,11 +831,11 @@ var W = (
|
|
|
831
831
|
}, e.prototype.desaturate = function(o) {
|
|
832
832
|
o === void 0 && (o = 10);
|
|
833
833
|
var t = this.toHsl();
|
|
834
|
-
return t.s -= o / 100, t.s =
|
|
834
|
+
return t.s -= o / 100, t.s = ve(t.s), new e(t);
|
|
835
835
|
}, e.prototype.saturate = function(o) {
|
|
836
836
|
o === void 0 && (o = 10);
|
|
837
837
|
var t = this.toHsl();
|
|
838
|
-
return t.s += o / 100, t.s =
|
|
838
|
+
return t.s += o / 100, t.s = ve(t.s), new e(t);
|
|
839
839
|
}, e.prototype.greyscale = function() {
|
|
840
840
|
return this.desaturate(100);
|
|
841
841
|
}, e.prototype.spin = function(o) {
|
|
@@ -861,8 +861,8 @@ var W = (
|
|
|
861
861
|
return o.h = (o.h + 180) % 360, new e(o);
|
|
862
862
|
}, e.prototype.monochromatic = function(o) {
|
|
863
863
|
o === void 0 && (o = 6);
|
|
864
|
-
for (var t = this.toHsv(), n = t.h, r = t.s, a = t.v, l = [],
|
|
865
|
-
l.push(new e({ h: n, s: r, v: a })), a = (a +
|
|
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
866
|
return l;
|
|
867
867
|
}, e.prototype.splitcomplement = function() {
|
|
868
868
|
var o = this.toHsl(), t = o.h;
|
|
@@ -891,7 +891,7 @@ var W = (
|
|
|
891
891
|
return this.toRgbString() === new e(o).toRgbString();
|
|
892
892
|
}, e;
|
|
893
893
|
}()
|
|
894
|
-
),
|
|
894
|
+
), ye = 2, st = 0.16, Bo = 0.05, $o = 0.05, Do = 0.15, Et = 5, Tt = 4, Fo = [{
|
|
895
895
|
index: 7,
|
|
896
896
|
opacity: 0.15
|
|
897
897
|
}, {
|
|
@@ -922,19 +922,19 @@ var W = (
|
|
|
922
922
|
index: 1,
|
|
923
923
|
opacity: 0.98
|
|
924
924
|
}];
|
|
925
|
-
function
|
|
926
|
-
var o = e.r, t = e.g, n = e.b, r =
|
|
925
|
+
function ct(e) {
|
|
926
|
+
var o = e.r, t = e.g, n = e.b, r = Le(o, t, n);
|
|
927
927
|
return {
|
|
928
928
|
h: r.h * 360,
|
|
929
929
|
s: r.s,
|
|
930
930
|
v: r.v
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function be(e) {
|
|
934
934
|
var o = e.r, t = e.g, n = e.b;
|
|
935
|
-
return "#".concat(
|
|
935
|
+
return "#".concat(Oe(o, t, n, !1));
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Vo(e, o, t) {
|
|
938
938
|
var n = t / 100, r = {
|
|
939
939
|
r: (o.r - e.r) * n + e.r,
|
|
940
940
|
g: (o.g - e.g) * n + e.g,
|
|
@@ -942,44 +942,44 @@ function Do(e, o, t) {
|
|
|
942
942
|
};
|
|
943
943
|
return r;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function ut(e, o, t) {
|
|
946
946
|
var n;
|
|
947
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = t ? Math.round(e.h) -
|
|
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
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function dt(e, o, t) {
|
|
950
950
|
if (e.h === 0 && e.s === 0)
|
|
951
951
|
return e.s;
|
|
952
952
|
var n;
|
|
953
|
-
return t ? n = e.s -
|
|
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
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function ft(e, o, t) {
|
|
956
956
|
var n;
|
|
957
|
-
return t ? n = e.v +
|
|
958
|
-
}
|
|
959
|
-
function
|
|
960
|
-
for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n =
|
|
961
|
-
var a =
|
|
962
|
-
h:
|
|
963
|
-
s:
|
|
964
|
-
v:
|
|
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
965
|
}));
|
|
966
966
|
t.push(l);
|
|
967
967
|
}
|
|
968
|
-
t.push(
|
|
969
|
-
for (var
|
|
970
|
-
var
|
|
971
|
-
h:
|
|
972
|
-
s:
|
|
973
|
-
v:
|
|
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
974
|
}));
|
|
975
|
-
t.push(
|
|
975
|
+
t.push(d);
|
|
976
976
|
}
|
|
977
|
-
return o.theme === "dark" ?
|
|
978
|
-
var p =
|
|
979
|
-
return
|
|
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
980
|
}) : t;
|
|
981
981
|
}
|
|
982
|
-
var
|
|
982
|
+
var Be = {
|
|
983
983
|
red: "#F5222D",
|
|
984
984
|
volcano: "#FA541C",
|
|
985
985
|
orange: "#FA8C16",
|
|
@@ -993,14 +993,14 @@ var He = {
|
|
|
993
993
|
purple: "#722ED1",
|
|
994
994
|
magenta: "#EB2F96",
|
|
995
995
|
grey: "#666666"
|
|
996
|
-
},
|
|
997
|
-
Object.keys(
|
|
998
|
-
|
|
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
999
|
theme: "dark",
|
|
1000
1000
|
backgroundColor: "#141414"
|
|
1001
|
-
}),
|
|
1001
|
+
}), De[e].primary = De[e][5];
|
|
1002
1002
|
});
|
|
1003
|
-
const
|
|
1003
|
+
const _o = (e) => {
|
|
1004
1004
|
const {
|
|
1005
1005
|
controlHeight: o
|
|
1006
1006
|
} = e;
|
|
@@ -1010,7 +1010,7 @@ const Fo = (e) => {
|
|
|
1010
1010
|
controlHeightLG: o * 1.25
|
|
1011
1011
|
};
|
|
1012
1012
|
};
|
|
1013
|
-
function
|
|
1013
|
+
function Ro(e) {
|
|
1014
1014
|
const {
|
|
1015
1015
|
sizeUnit: o,
|
|
1016
1016
|
sizeStep: t
|
|
@@ -1036,7 +1036,7 @@ function Vo(e) {
|
|
|
1036
1036
|
// 4
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
const
|
|
1039
|
+
const Ht = {
|
|
1040
1040
|
blue: "#1677ff",
|
|
1041
1041
|
purple: "#722ED1",
|
|
1042
1042
|
cyan: "#13C2C2",
|
|
@@ -1050,7 +1050,7 @@ const Et = {
|
|
|
1050
1050
|
geekblue: "#2F54EB",
|
|
1051
1051
|
gold: "#FAAD14",
|
|
1052
1052
|
lime: "#A0D911"
|
|
1053
|
-
},
|
|
1053
|
+
}, Ke = T(T({}, Ht), {
|
|
1054
1054
|
// Color
|
|
1055
1055
|
colorPrimary: "#1677ff",
|
|
1056
1056
|
colorSuccess: "#52c41a",
|
|
@@ -1094,7 +1094,7 @@ const Et = {
|
|
|
1094
1094
|
// Wireframe
|
|
1095
1095
|
wireframe: !1
|
|
1096
1096
|
});
|
|
1097
|
-
function
|
|
1097
|
+
function Lo(e, {
|
|
1098
1098
|
generateColorPalettes: o,
|
|
1099
1099
|
generateNeutralColorPalettes: t
|
|
1100
1100
|
}) {
|
|
@@ -1103,21 +1103,21 @@ function _o(e, {
|
|
|
1103
1103
|
colorWarning: r,
|
|
1104
1104
|
colorError: a,
|
|
1105
1105
|
colorInfo: l,
|
|
1106
|
-
colorPrimary:
|
|
1107
|
-
colorBgBase:
|
|
1108
|
-
colorTextBase:
|
|
1109
|
-
} = e,
|
|
1110
|
-
return
|
|
1111
|
-
colorPrimaryBg:
|
|
1112
|
-
colorPrimaryBgHover:
|
|
1113
|
-
colorPrimaryBorder:
|
|
1114
|
-
colorPrimaryBorderHover:
|
|
1115
|
-
colorPrimaryHover:
|
|
1116
|
-
colorPrimary:
|
|
1117
|
-
colorPrimaryActive:
|
|
1118
|
-
colorPrimaryTextHover:
|
|
1119
|
-
colorPrimaryText:
|
|
1120
|
-
colorPrimaryTextActive:
|
|
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
1121
|
colorSuccessBg: p[1],
|
|
1122
1122
|
colorSuccessBgHover: p[2],
|
|
1123
1123
|
colorSuccessBorder: p[3],
|
|
@@ -1128,16 +1128,16 @@ function _o(e, {
|
|
|
1128
1128
|
colorSuccessTextHover: p[8],
|
|
1129
1129
|
colorSuccessText: p[9],
|
|
1130
1130
|
colorSuccessTextActive: p[10],
|
|
1131
|
-
colorErrorBg:
|
|
1132
|
-
colorErrorBgHover:
|
|
1133
|
-
colorErrorBorder:
|
|
1134
|
-
colorErrorBorderHover:
|
|
1135
|
-
colorErrorHover:
|
|
1136
|
-
colorError:
|
|
1137
|
-
colorErrorActive:
|
|
1138
|
-
colorErrorTextHover:
|
|
1139
|
-
colorErrorText:
|
|
1140
|
-
colorErrorTextActive:
|
|
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
1141
|
colorWarningBg: S[1],
|
|
1142
1142
|
colorWarningBgHover: S[2],
|
|
1143
1143
|
colorWarningBorder: S[3],
|
|
@@ -1158,11 +1158,11 @@ function _o(e, {
|
|
|
1158
1158
|
colorInfoTextHover: i[8],
|
|
1159
1159
|
colorInfoText: i[9],
|
|
1160
1160
|
colorInfoTextActive: i[10],
|
|
1161
|
-
colorBgMask: new
|
|
1161
|
+
colorBgMask: new q("#000").setAlpha(0.45).toRgbString(),
|
|
1162
1162
|
colorWhite: "#fff"
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1165
|
+
const Oo = (e) => {
|
|
1166
1166
|
let o = e, t = e, n = e, r = e;
|
|
1167
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
1168
|
borderRadius: e > 16 ? 16 : e,
|
|
@@ -1172,24 +1172,24 @@ const Ro = (e) => {
|
|
|
1172
1172
|
borderRadiusOuter: r
|
|
1173
1173
|
};
|
|
1174
1174
|
};
|
|
1175
|
-
function
|
|
1175
|
+
function zo(e) {
|
|
1176
1176
|
const {
|
|
1177
1177
|
motionUnit: o,
|
|
1178
1178
|
motionBase: t,
|
|
1179
1179
|
borderRadius: n,
|
|
1180
1180
|
lineWidth: r
|
|
1181
1181
|
} = e;
|
|
1182
|
-
return
|
|
1182
|
+
return T({
|
|
1183
1183
|
// motion
|
|
1184
1184
|
motionDurationFast: `${(t + o).toFixed(1)}s`,
|
|
1185
1185
|
motionDurationMid: `${(t + o * 2).toFixed(1)}s`,
|
|
1186
1186
|
motionDurationSlow: `${(t + o * 3).toFixed(1)}s`,
|
|
1187
1187
|
// line
|
|
1188
1188
|
lineWidthBold: r + 1
|
|
1189
|
-
},
|
|
1189
|
+
}, Oo(n));
|
|
1190
1190
|
}
|
|
1191
|
-
const
|
|
1192
|
-
const o =
|
|
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
1193
|
return {
|
|
1194
1194
|
1: o[0],
|
|
1195
1195
|
2: o[1],
|
|
@@ -1205,28 +1205,28 @@ const K = (e, o) => new W(e).setAlpha(o).toRgbString(), ce = (e, o) => new W(e).
|
|
|
1205
1205
|
// 9: colors[8],
|
|
1206
1206
|
// 10: colors[9],
|
|
1207
1207
|
};
|
|
1208
|
-
},
|
|
1208
|
+
}, No = (e, o) => {
|
|
1209
1209
|
const t = e || "#fff", n = o || "#000";
|
|
1210
1210
|
return {
|
|
1211
1211
|
colorBgBase: t,
|
|
1212
1212
|
colorTextBase: n,
|
|
1213
|
-
colorText:
|
|
1214
|
-
colorTextSecondary:
|
|
1215
|
-
colorTextTertiary:
|
|
1216
|
-
colorTextQuaternary:
|
|
1217
|
-
colorFill:
|
|
1218
|
-
colorFillSecondary:
|
|
1219
|
-
colorFillTertiary:
|
|
1220
|
-
colorFillQuaternary:
|
|
1221
|
-
colorBgLayout:
|
|
1222
|
-
colorBgContainer:
|
|
1223
|
-
colorBgElevated:
|
|
1224
|
-
colorBgSpotlight:
|
|
1225
|
-
colorBorder:
|
|
1226
|
-
colorBorderSecondary:
|
|
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
1227
|
};
|
|
1228
1228
|
};
|
|
1229
|
-
function
|
|
1229
|
+
function jo(e) {
|
|
1230
1230
|
const o = new Array(10).fill(null).map((t, n) => {
|
|
1231
1231
|
const r = n - 1, a = e * Math.pow(2.71828, r / 5), l = n > 1 ? Math.floor(a) : Math.ceil(a);
|
|
1232
1232
|
return Math.floor(l / 2) * 2;
|
|
@@ -1239,8 +1239,8 @@ function Po(e) {
|
|
|
1239
1239
|
};
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1243
|
-
const o =
|
|
1242
|
+
const Uo = (e) => {
|
|
1243
|
+
const o = jo(e), t = o.map((r) => r.size), n = o.map((r) => r.lineHeight);
|
|
1244
1244
|
return {
|
|
1245
1245
|
fontSizeSM: t[0],
|
|
1246
1246
|
fontSize: t[1],
|
|
@@ -1261,66 +1261,66 @@ const No = (e) => {
|
|
|
1261
1261
|
lineHeightHeading5: n[2]
|
|
1262
1262
|
};
|
|
1263
1263
|
};
|
|
1264
|
-
function
|
|
1265
|
-
const o = Object.keys(
|
|
1266
|
-
const n =
|
|
1264
|
+
function Xo(e) {
|
|
1265
|
+
const o = Object.keys(Ht).map((t) => {
|
|
1266
|
+
const n = Ae(e[t]);
|
|
1267
1267
|
return new Array(10).fill(1).reduce((r, a, l) => (r[`${t}-${l + 1}`] = n[l], r), {});
|
|
1268
|
-
}).reduce((t, n) => (t =
|
|
1269
|
-
return
|
|
1270
|
-
generateColorPalettes:
|
|
1271
|
-
generateNeutralColorPalettes:
|
|
1272
|
-
})),
|
|
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
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Fe(e) {
|
|
1275
1275
|
return e >= 0 && e <= 255;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function xe(e, o) {
|
|
1278
1278
|
const {
|
|
1279
1279
|
r: t,
|
|
1280
1280
|
g: n,
|
|
1281
1281
|
b: r,
|
|
1282
1282
|
a
|
|
1283
|
-
} = new
|
|
1283
|
+
} = new q(e).toRgb();
|
|
1284
1284
|
if (a < 1)
|
|
1285
1285
|
return e;
|
|
1286
1286
|
const {
|
|
1287
1287
|
r: l,
|
|
1288
|
-
g:
|
|
1289
|
-
b:
|
|
1290
|
-
} = new
|
|
1291
|
-
for (let
|
|
1292
|
-
const
|
|
1293
|
-
if (
|
|
1294
|
-
return new
|
|
1295
|
-
r:
|
|
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
1296
|
g: p,
|
|
1297
1297
|
b: S,
|
|
1298
|
-
a: Math.round(
|
|
1298
|
+
a: Math.round(d * 100) / 100
|
|
1299
1299
|
}).toRgbString();
|
|
1300
1300
|
}
|
|
1301
|
-
return new
|
|
1301
|
+
return new q({
|
|
1302
1302
|
r: t,
|
|
1303
1303
|
g: n,
|
|
1304
1304
|
b: r,
|
|
1305
1305
|
a: 1
|
|
1306
1306
|
}).toRgbString();
|
|
1307
1307
|
}
|
|
1308
|
-
var
|
|
1308
|
+
var Go = function(e, o) {
|
|
1309
1309
|
var t = {};
|
|
1310
1310
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
|
|
1311
1311
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1312
1312
|
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
1313
1313
|
return t;
|
|
1314
1314
|
};
|
|
1315
|
-
function
|
|
1315
|
+
function Wo(e) {
|
|
1316
1316
|
const {
|
|
1317
1317
|
override: o
|
|
1318
|
-
} = e, t =
|
|
1319
|
-
Object.keys(
|
|
1320
|
-
delete n[
|
|
1318
|
+
} = e, t = Go(e, ["override"]), n = T({}, o);
|
|
1319
|
+
Object.keys(Ke).forEach((x) => {
|
|
1320
|
+
delete n[x];
|
|
1321
1321
|
});
|
|
1322
|
-
const r =
|
|
1323
|
-
return
|
|
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
1324
|
colorLink: r.colorInfoText,
|
|
1325
1325
|
colorLinkHover: r.colorInfoHover,
|
|
1326
1326
|
colorLinkActive: r.colorInfoActive,
|
|
@@ -1331,7 +1331,7 @@ function Xo(e) {
|
|
|
1331
1331
|
colorBgContainerDisabled: r.colorFillTertiary,
|
|
1332
1332
|
// ============== Split ============== //
|
|
1333
1333
|
colorBorderBg: r.colorBgContainer,
|
|
1334
|
-
colorSplit:
|
|
1334
|
+
colorSplit: xe(r.colorBorderSecondary, r.colorBgContainer),
|
|
1335
1335
|
// ============== Text ============== //
|
|
1336
1336
|
colorTextPlaceholder: r.colorTextQuaternary,
|
|
1337
1337
|
colorTextDisabled: r.colorTextQuaternary,
|
|
@@ -1344,8 +1344,8 @@ function Xo(e) {
|
|
|
1344
1344
|
colorBgTextActive: r.colorFill,
|
|
1345
1345
|
colorIcon: r.colorTextTertiary,
|
|
1346
1346
|
colorIconHover: r.colorText,
|
|
1347
|
-
colorErrorOutline:
|
|
1348
|
-
colorWarningOutline:
|
|
1347
|
+
colorErrorOutline: xe(r.colorErrorBg, r.colorBgContainer),
|
|
1348
|
+
colorWarningOutline: xe(r.colorWarningBg, r.colorBgContainer),
|
|
1349
1349
|
/** Custom colors (efko) */
|
|
1350
1350
|
colorLogo: r.colorLogo,
|
|
1351
1351
|
colorSelectedMenu: r.colorSelectedMenu,
|
|
@@ -1362,7 +1362,7 @@ function Xo(e) {
|
|
|
1362
1362
|
controlItemBgActiveHover: r.colorPrimaryBgHover,
|
|
1363
1363
|
controlItemBgActiveDisabled: r.colorFill,
|
|
1364
1364
|
controlTmpOutline: r.colorFillQuaternary,
|
|
1365
|
-
controlOutline:
|
|
1365
|
+
controlOutline: xe(r.colorPrimaryBg, r.colorBgContainer),
|
|
1366
1366
|
lineType: r.lineType,
|
|
1367
1367
|
borderRadius: r.borderRadius,
|
|
1368
1368
|
borderRadiusXS: r.borderRadiusXS,
|
|
@@ -1416,27 +1416,27 @@ function Xo(e) {
|
|
|
1416
1416
|
screenXSMax: l - 1,
|
|
1417
1417
|
screenSM: l,
|
|
1418
1418
|
screenSMMin: l,
|
|
1419
|
-
screenSMMax:
|
|
1420
|
-
screenMD:
|
|
1421
|
-
screenMDMin:
|
|
1422
|
-
screenMDMax:
|
|
1423
|
-
screenLG:
|
|
1424
|
-
screenLGMin:
|
|
1425
|
-
screenLGMax:
|
|
1426
|
-
screenXL:
|
|
1427
|
-
screenXLMin:
|
|
1428
|
-
screenXLMax:
|
|
1429
|
-
screenXXL:
|
|
1430
|
-
screenXXLMin:
|
|
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
1431
|
screenXXLMax: p - 1,
|
|
1432
1432
|
screenXXXL: p,
|
|
1433
1433
|
screenXXXLMin: p,
|
|
1434
1434
|
// FIXME: component box-shadow, should be removed
|
|
1435
1435
|
boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
|
|
1436
1436
|
boxShadowCard: `
|
|
1437
|
-
0 1px 2px -2px ${new
|
|
1438
|
-
0 3px 6px 0 ${new
|
|
1439
|
-
0 5px 12px 4px ${new
|
|
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
1440
|
`,
|
|
1441
1441
|
boxShadowDrawerRight: `
|
|
1442
1442
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -1464,56 +1464,56 @@ function Xo(e) {
|
|
|
1464
1464
|
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
|
1465
1465
|
}), n);
|
|
1466
1466
|
}
|
|
1467
|
-
const
|
|
1468
|
-
token:
|
|
1467
|
+
const qo = lo(Xo), Ko = {
|
|
1468
|
+
token: Ke,
|
|
1469
1469
|
hashed: !0
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
|
|
1470
|
+
}, It = Symbol("DesignTokenContext"), Pe = ge(), Zo = (e) => {
|
|
1471
|
+
gt(It, e), D(e, () => {
|
|
1472
|
+
Pe.value = F(e), Rt(Pe);
|
|
1473
1473
|
}, {
|
|
1474
1474
|
immediate: !0,
|
|
1475
1475
|
deep: !0
|
|
1476
1476
|
});
|
|
1477
1477
|
};
|
|
1478
|
-
|
|
1478
|
+
z({
|
|
1479
1479
|
props: {
|
|
1480
|
-
value:
|
|
1480
|
+
value: St()
|
|
1481
1481
|
},
|
|
1482
1482
|
setup(e, {
|
|
1483
1483
|
slots: o
|
|
1484
1484
|
}) {
|
|
1485
|
-
return
|
|
1485
|
+
return Zo(E(() => e.value)), () => {
|
|
1486
1486
|
var t;
|
|
1487
1487
|
return (t = o.default) === null || t === void 0 ? void 0 : t.call(o);
|
|
1488
1488
|
};
|
|
1489
1489
|
}
|
|
1490
1490
|
});
|
|
1491
|
-
function
|
|
1492
|
-
const e =
|
|
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
1493
|
salt: o.value,
|
|
1494
|
-
override:
|
|
1494
|
+
override: T({
|
|
1495
1495
|
override: e.value.token
|
|
1496
1496
|
}, e.value.components),
|
|
1497
|
-
formatToken:
|
|
1497
|
+
formatToken: Wo
|
|
1498
1498
|
})));
|
|
1499
|
-
return [t,
|
|
1499
|
+
return [t, E(() => n.value[0]), E(() => e.value.hashed ? n.value[1] : "")];
|
|
1500
1500
|
}
|
|
1501
|
-
const
|
|
1501
|
+
const Qo = { class: "flex flex-wrap tag-cloud" }, Jo = { class: "flex flex-wrap" }, Yo = /* @__PURE__ */ z({
|
|
1502
1502
|
__name: "FilterTagCloud",
|
|
1503
1503
|
props: {
|
|
1504
1504
|
filters: {}
|
|
1505
1505
|
},
|
|
1506
1506
|
emits: ["update:filters", "remove", "clear"],
|
|
1507
1507
|
setup(e, { emit: o }) {
|
|
1508
|
-
const t = e, n = o, [, r] =
|
|
1508
|
+
const t = e, n = o, [, r] = Bt(), a = E(() => (console.log(r), {
|
|
1509
1509
|
color: r.value.colorSelectedMenu,
|
|
1510
1510
|
borderColor: r.value.colorBorderSecondary,
|
|
1511
1511
|
backgroundColor: r.value.mainBgColor || r.value.colorPrimaryBg
|
|
1512
|
-
})), l = (i) => i == null ? !1 : Array.isArray(i) ? i.length > 0 : !!i,
|
|
1513
|
-
function
|
|
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
1514
|
return typeof i == "object" && i !== null && "name" in i && typeof i.name == "string";
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1516
|
+
const d = (i) => {
|
|
1517
1517
|
if (typeof i == "string")
|
|
1518
1518
|
return {
|
|
1519
1519
|
key: i,
|
|
@@ -1522,25 +1522,25 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1522
1522
|
};
|
|
1523
1523
|
if (Array.isArray(i)) {
|
|
1524
1524
|
if (i.length === 2 && typeof i[0] == "string" && typeof i[1] == "string") {
|
|
1525
|
-
const
|
|
1525
|
+
const w = `${i[0]} - ${i[1]}`;
|
|
1526
1526
|
return {
|
|
1527
|
-
key:
|
|
1528
|
-
label:
|
|
1527
|
+
key: w,
|
|
1528
|
+
label: w,
|
|
1529
1529
|
original: i
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
const
|
|
1532
|
+
const y = i.join(", ");
|
|
1533
1533
|
return {
|
|
1534
|
-
key:
|
|
1535
|
-
label:
|
|
1534
|
+
key: y,
|
|
1535
|
+
label: y,
|
|
1536
1536
|
original: i
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
|
-
if (
|
|
1540
|
-
const
|
|
1539
|
+
if (f(i)) {
|
|
1540
|
+
const y = i.name;
|
|
1541
1541
|
return {
|
|
1542
|
-
key:
|
|
1543
|
-
label:
|
|
1542
|
+
key: y,
|
|
1543
|
+
label: y,
|
|
1544
1544
|
original: i
|
|
1545
1545
|
};
|
|
1546
1546
|
}
|
|
@@ -1550,80 +1550,80 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1550
1550
|
label: m,
|
|
1551
1551
|
original: i
|
|
1552
1552
|
};
|
|
1553
|
-
},
|
|
1554
|
-
|
|
1555
|
-
], p = (i, m) => typeof i == "string" || typeof m == "string" ? i === m : JSON.stringify(i) === JSON.stringify(m), S = (i, m,
|
|
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
1556
|
if (Array.isArray(m)) {
|
|
1557
|
-
const
|
|
1558
|
-
(
|
|
1557
|
+
const w = m.filter(
|
|
1558
|
+
(b) => !p(b, y)
|
|
1559
1559
|
);
|
|
1560
1560
|
n("update:filters", {
|
|
1561
1561
|
...t.filters,
|
|
1562
|
-
[i]:
|
|
1562
|
+
[i]: w
|
|
1563
1563
|
});
|
|
1564
1564
|
} else
|
|
1565
1565
|
n("update:filters", {
|
|
1566
1566
|
...t.filters,
|
|
1567
1567
|
[i]: null
|
|
1568
1568
|
});
|
|
1569
|
-
n("remove", i, m,
|
|
1570
|
-
},
|
|
1569
|
+
n("remove", i, m, y);
|
|
1570
|
+
}, x = () => {
|
|
1571
1571
|
n("update:filters", {}), n("clear");
|
|
1572
1572
|
};
|
|
1573
1573
|
return (i, m) => {
|
|
1574
|
-
const
|
|
1575
|
-
return
|
|
1576
|
-
|
|
1577
|
-
(
|
|
1578
|
-
(
|
|
1579
|
-
key:
|
|
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, {
|
|
1579
|
+
key: v.key,
|
|
1580
1580
|
class: "filter-tag",
|
|
1581
1581
|
closable: !0,
|
|
1582
|
-
style:
|
|
1583
|
-
onClose: () => S(
|
|
1582
|
+
style: Ve(a.value),
|
|
1583
|
+
onClose: () => S(b, s, v.original)
|
|
1584
1584
|
}, {
|
|
1585
|
-
default:
|
|
1586
|
-
|
|
1585
|
+
default: C(() => [
|
|
1586
|
+
P(U(v.label), 1)
|
|
1587
1587
|
]),
|
|
1588
1588
|
_: 2
|
|
1589
1589
|
}, 1032, ["style", "onClose"]))), 128))
|
|
1590
1590
|
], 64))), 128))
|
|
1591
1591
|
]),
|
|
1592
|
-
|
|
1592
|
+
c.value ? (g(), B(w, {
|
|
1593
1593
|
key: 0,
|
|
1594
1594
|
type: "link",
|
|
1595
|
-
onClick:
|
|
1595
|
+
onClick: x
|
|
1596
1596
|
}, {
|
|
1597
|
-
default:
|
|
1598
|
-
|
|
1597
|
+
default: C(() => [...m[0] || (m[0] = [
|
|
1598
|
+
P(" Очистить все ", -1)
|
|
1599
1599
|
])]),
|
|
1600
1600
|
_: 1
|
|
1601
|
-
})) :
|
|
1601
|
+
})) : j("", !0)
|
|
1602
1602
|
]);
|
|
1603
1603
|
};
|
|
1604
1604
|
}
|
|
1605
|
-
}),
|
|
1605
|
+
}), ce = (e, o) => {
|
|
1606
1606
|
const t = e.__vccOpts || e;
|
|
1607
1607
|
for (const [n, r] of o)
|
|
1608
1608
|
t[n] = r;
|
|
1609
1609
|
return t;
|
|
1610
|
-
},
|
|
1610
|
+
}, en = /* @__PURE__ */ ce(Yo, [["__scopeId", "data-v-a32f7554"]]), tn = { class: "flex items-center justify-center text-lg" }, Ce = /* @__PURE__ */ z({
|
|
1611
1611
|
__name: "TableCellStatus",
|
|
1612
1612
|
props: {
|
|
1613
1613
|
value: {}
|
|
1614
1614
|
},
|
|
1615
1615
|
setup(e) {
|
|
1616
|
-
return (o, t) => (
|
|
1617
|
-
e.value ? (
|
|
1616
|
+
return (o, t) => (g(), A("div", tn, [
|
|
1617
|
+
e.value ? (g(), B(F(Ye), {
|
|
1618
1618
|
key: 1,
|
|
1619
1619
|
"two-tone-color": "#bfbfbf"
|
|
1620
|
-
})) : (
|
|
1620
|
+
})) : (g(), B(F(Ye), {
|
|
1621
1621
|
key: 0,
|
|
1622
1622
|
"two-tone-color": "#4ade80"
|
|
1623
1623
|
}))
|
|
1624
1624
|
]));
|
|
1625
1625
|
}
|
|
1626
|
-
}),
|
|
1626
|
+
}), on = { class: "flex items-center justify-center gap-2" }, nn = /* @__PURE__ */ z({
|
|
1627
1627
|
__name: "CardCellActions",
|
|
1628
1628
|
props: {
|
|
1629
1629
|
record: {},
|
|
@@ -1632,54 +1632,54 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1632
1632
|
},
|
|
1633
1633
|
emits: ["edit", "delete", "restore"],
|
|
1634
1634
|
setup(e, { emit: o }) {
|
|
1635
|
-
const t = e, n = o, r = t.canEdit ?? !0, a = t.editAction ?? !0, l = (
|
|
1636
|
-
return (
|
|
1637
|
-
const p =
|
|
1638
|
-
return
|
|
1639
|
-
|
|
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, {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
title: "Смотреть"
|
|
1642
1642
|
}, {
|
|
1643
|
-
default:
|
|
1644
|
-
|
|
1645
|
-
icon:
|
|
1646
|
-
onClick:
|
|
1643
|
+
default: C(() => [
|
|
1644
|
+
M(p, {
|
|
1645
|
+
icon: ie(F(vt)),
|
|
1646
|
+
onClick: u[0] || (u[0] = (x) => f(e.record))
|
|
1647
1647
|
}, null, 8, ["icon"])
|
|
1648
1648
|
]),
|
|
1649
1649
|
_: 1
|
|
1650
|
-
})) :
|
|
1651
|
-
|
|
1652
|
-
|
|
1650
|
+
})) : j("", !0),
|
|
1651
|
+
F(r) !== !1 ? (g(), A(L, { key: 1 }, [
|
|
1652
|
+
F(a) !== !1 ? (g(), B(S, {
|
|
1653
1653
|
key: 0,
|
|
1654
1654
|
title: "Редактировать"
|
|
1655
1655
|
}, {
|
|
1656
|
-
default:
|
|
1657
|
-
|
|
1658
|
-
icon:
|
|
1659
|
-
onClick:
|
|
1656
|
+
default: C(() => [
|
|
1657
|
+
M(p, {
|
|
1658
|
+
icon: ie(F(mt)),
|
|
1659
|
+
onClick: u[1] || (u[1] = (x) => f(e.record))
|
|
1660
1660
|
}, null, 8, ["icon"])
|
|
1661
1661
|
]),
|
|
1662
1662
|
_: 1
|
|
1663
|
-
})) :
|
|
1664
|
-
|
|
1663
|
+
})) : j("", !0),
|
|
1664
|
+
M(S, {
|
|
1665
1665
|
title: e.record.deletedAt ? "Восстановить" : "Удалить"
|
|
1666
1666
|
}, {
|
|
1667
|
-
default:
|
|
1668
|
-
|
|
1669
|
-
icon:
|
|
1670
|
-
onClick:
|
|
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))
|
|
1671
1671
|
}, null, 8, ["icon"])
|
|
1672
1672
|
]),
|
|
1673
1673
|
_: 1
|
|
1674
1674
|
}, 8, ["title"])
|
|
1675
|
-
], 64)) :
|
|
1675
|
+
], 64)) : j("", !0)
|
|
1676
1676
|
]);
|
|
1677
1677
|
};
|
|
1678
1678
|
}
|
|
1679
|
-
}),
|
|
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 = {
|
|
1680
1680
|
key: 0,
|
|
1681
1681
|
class: "data-card__footer"
|
|
1682
|
-
},
|
|
1682
|
+
}, hn = /* @__PURE__ */ z({
|
|
1683
1683
|
__name: "TheCard",
|
|
1684
1684
|
props: {
|
|
1685
1685
|
loading: { type: Boolean },
|
|
@@ -1691,98 +1691,98 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1691
1691
|
},
|
|
1692
1692
|
emits: ["delete", "restore", "edit"],
|
|
1693
1693
|
setup(e, { emit: o }) {
|
|
1694
|
-
const t = e, n = (
|
|
1695
|
-
if (
|
|
1694
|
+
const t = e, n = (y) => t.record[String(y.dataIndex)], r = (y) => {
|
|
1695
|
+
if (y === null || typeof y != "object")
|
|
1696
1696
|
return "";
|
|
1697
|
-
if ("name" in
|
|
1698
|
-
const
|
|
1699
|
-
return typeof
|
|
1697
|
+
if ("name" in y) {
|
|
1698
|
+
const w = y.name;
|
|
1699
|
+
return typeof w == "string" ? w : "";
|
|
1700
1700
|
}
|
|
1701
1701
|
return "";
|
|
1702
|
-
}, a = (
|
|
1703
|
-
const
|
|
1704
|
-
return Array.isArray(
|
|
1705
|
-
},
|
|
1706
|
-
key: `${
|
|
1707
|
-
label:
|
|
1708
|
-
})),
|
|
1709
|
-
return (
|
|
1710
|
-
const
|
|
1711
|
-
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, {
|
|
1712
1712
|
loading: e.loading,
|
|
1713
1713
|
bordered: !1,
|
|
1714
1714
|
class: "data-card bg-white rounded-3 shadow-sm"
|
|
1715
|
-
},
|
|
1716
|
-
title:
|
|
1717
|
-
|
|
1718
|
-
|
|
1715
|
+
}, we({
|
|
1716
|
+
title: C(() => [
|
|
1717
|
+
V("div", rn, [
|
|
1718
|
+
O(y.$slots, "title", {}, void 0, !0)
|
|
1719
1719
|
])
|
|
1720
1720
|
]),
|
|
1721
|
-
default:
|
|
1722
|
-
|
|
1723
|
-
|
|
1721
|
+
default: C(() => [
|
|
1722
|
+
V("div", an, [
|
|
1723
|
+
O(y.$slots, "body", {
|
|
1724
1724
|
record: e.record,
|
|
1725
1725
|
columns: e.columns
|
|
1726
1726
|
}, () => [
|
|
1727
|
-
(
|
|
1728
|
-
key:
|
|
1727
|
+
(g(!0), A(L, null, G(e.columns, (v) => (g(), A("div", {
|
|
1728
|
+
key: v.dataIndex,
|
|
1729
1729
|
class: "data-card__row"
|
|
1730
1730
|
}, [
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1731
|
+
V("span", ln, U(v.title) + ": ", 1),
|
|
1732
|
+
V("span", sn, [
|
|
1733
|
+
v.dataIndex === "deletedAt" ? (g(), A("span", cn, [
|
|
1734
|
+
M(Ce, {
|
|
1735
1735
|
value: e.record.deletedAt
|
|
1736
1736
|
}, null, 8, ["value"])
|
|
1737
|
-
])) : Array.isArray(n(
|
|
1738
|
-
|
|
1739
|
-
key:
|
|
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,
|
|
1740
1740
|
class: "mr-1 mb-1"
|
|
1741
1741
|
}, {
|
|
1742
|
-
default:
|
|
1743
|
-
|
|
1742
|
+
default: C(() => [
|
|
1743
|
+
P(U(k.label), 1)
|
|
1744
1744
|
]),
|
|
1745
1745
|
_: 2
|
|
1746
|
-
}, 1024))), 128)) : (
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
], 64)) :
|
|
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)
|
|
1751
1751
|
]))), 128))
|
|
1752
|
-
], 64)) : typeof n(
|
|
1753
|
-
|
|
1754
|
-
value: !n(
|
|
1752
|
+
], 64)) : typeof n(v) == "boolean" ? (g(), A("span", un, [
|
|
1753
|
+
M(Ce, {
|
|
1754
|
+
value: !n(v)
|
|
1755
1755
|
}, null, 8, ["value"])
|
|
1756
|
-
])) : n(
|
|
1757
|
-
a(n(
|
|
1758
|
-
default:
|
|
1759
|
-
|
|
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)
|
|
1760
1760
|
]),
|
|
1761
1761
|
_: 2
|
|
1762
1762
|
}, 1024))
|
|
1763
|
-
])) : (
|
|
1763
|
+
])) : (g(), A("span", pn, U(n(v)), 1))
|
|
1764
1764
|
])
|
|
1765
1765
|
]))), 128))
|
|
1766
1766
|
], !0)
|
|
1767
1767
|
]),
|
|
1768
|
-
|
|
1769
|
-
|
|
1768
|
+
y.$slots.footer ? (g(), A("div", gn, [
|
|
1769
|
+
O(y.$slots, "footer", {
|
|
1770
1770
|
record: e.record,
|
|
1771
1771
|
columns: e.columns
|
|
1772
1772
|
}, void 0, !0)
|
|
1773
|
-
])) :
|
|
1773
|
+
])) : j("", !0)
|
|
1774
1774
|
]),
|
|
1775
1775
|
_: 2
|
|
1776
1776
|
}, [
|
|
1777
|
-
|
|
1777
|
+
F(S) ? {
|
|
1778
1778
|
name: "actions",
|
|
1779
|
-
fn:
|
|
1780
|
-
|
|
1779
|
+
fn: C(() => [
|
|
1780
|
+
M(nn, {
|
|
1781
1781
|
record: e.record,
|
|
1782
|
-
"can-edit":
|
|
1783
|
-
"edit-action":
|
|
1782
|
+
"can-edit": F(u),
|
|
1783
|
+
"edit-action": F(p),
|
|
1784
1784
|
onEdit: m,
|
|
1785
|
-
onDelete:
|
|
1785
|
+
onDelete: x,
|
|
1786
1786
|
onRestore: i
|
|
1787
1787
|
}, null, 8, ["record", "can-edit", "edit-action"])
|
|
1788
1788
|
]),
|
|
@@ -1791,7 +1791,7 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1791
1791
|
]), 1032, ["loading"]);
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
|
-
}),
|
|
1794
|
+
}), vn = /* @__PURE__ */ ce(hn, [["__scopeId", "data-v-c6be2770"]]), mn = { class: "efko-dataview" }, yn = /* @__PURE__ */ z({
|
|
1795
1795
|
__name: "LazyLoadTrigger",
|
|
1796
1796
|
props: {
|
|
1797
1797
|
onIntersect: {},
|
|
@@ -1800,33 +1800,33 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1800
1800
|
loading: { type: Boolean }
|
|
1801
1801
|
},
|
|
1802
1802
|
setup(e) {
|
|
1803
|
-
const o = e, t =
|
|
1803
|
+
const o = e, t = _(null);
|
|
1804
1804
|
let n = null;
|
|
1805
1805
|
const r = (a) => {
|
|
1806
|
-
var
|
|
1807
|
-
a[0].isIntersecting && ((
|
|
1806
|
+
var c;
|
|
1807
|
+
a[0].isIntersecting && ((c = o.onIntersect) == null || c.call(o), o.once && n && n.disconnect());
|
|
1808
1808
|
};
|
|
1809
|
-
return
|
|
1809
|
+
return le(() => {
|
|
1810
1810
|
n = new IntersectionObserver(r, {
|
|
1811
1811
|
threshold: o.threshold
|
|
1812
1812
|
}), t.value && n.observe(t.value);
|
|
1813
|
-
}),
|
|
1813
|
+
}), Ue(() => {
|
|
1814
1814
|
n && n.disconnect();
|
|
1815
1815
|
}), (a, l) => {
|
|
1816
|
-
const
|
|
1817
|
-
return
|
|
1818
|
-
|
|
1816
|
+
const c = H("a-spin");
|
|
1817
|
+
return g(), A("div", mn, [
|
|
1818
|
+
V("div", {
|
|
1819
1819
|
ref_key: "container",
|
|
1820
1820
|
ref: t,
|
|
1821
1821
|
style: { height: "1px" },
|
|
1822
1822
|
class: "flex items-center justify-center py-5"
|
|
1823
1823
|
}, [
|
|
1824
|
-
|
|
1824
|
+
M(c, { spinning: e.loading }, null, 8, ["spinning"])
|
|
1825
1825
|
], 512)
|
|
1826
1826
|
]);
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
|
-
}),
|
|
1829
|
+
}), bn = { class: "efko-dataview" }, xn = { class: "flex flex-col gap-4" }, Sn = /* @__PURE__ */ z({
|
|
1830
1830
|
__name: "CardGrid",
|
|
1831
1831
|
props: {
|
|
1832
1832
|
loading: { type: Boolean },
|
|
@@ -1842,13 +1842,13 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1842
1842
|
emits: ["delete", "restore", "edit", "pageChange", "sizeChange"],
|
|
1843
1843
|
setup(e, { emit: o }) {
|
|
1844
1844
|
const t = e, n = o;
|
|
1845
|
-
|
|
1846
|
-
const
|
|
1847
|
-
|
|
1845
|
+
le(() => {
|
|
1846
|
+
const u = document.querySelector(".card-grid");
|
|
1847
|
+
u !== null && We(u);
|
|
1848
1848
|
});
|
|
1849
|
-
const r =
|
|
1849
|
+
const r = E(
|
|
1850
1850
|
() => t.cardLayout === "row" ? "card-grid card-grid--row" : "card-grid card-grid--grid"
|
|
1851
|
-
), a =
|
|
1851
|
+
), a = E(() => t.columns), l = _([]), c = () => {
|
|
1852
1852
|
var S;
|
|
1853
1853
|
if (((S = t.meta) == null ? void 0 : S.currentPage) === 1) {
|
|
1854
1854
|
l.value = [
|
|
@@ -1856,28 +1856,28 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1856
1856
|
];
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
|
-
const
|
|
1859
|
+
const u = new Set(l.value.map((x) => x.id)), p = t.dataSource.filter((x) => !u.has(x.id));
|
|
1860
1860
|
l.value.push(...p);
|
|
1861
1861
|
};
|
|
1862
|
-
|
|
1863
|
-
var
|
|
1862
|
+
c(), D(() => {
|
|
1863
|
+
var u;
|
|
1864
1864
|
return [
|
|
1865
1865
|
t.dataSource,
|
|
1866
|
-
(
|
|
1866
|
+
(u = t.meta) == null ? void 0 : u.currentPage
|
|
1867
1867
|
];
|
|
1868
|
-
},
|
|
1868
|
+
}, c, {
|
|
1869
1869
|
deep: !0
|
|
1870
1870
|
});
|
|
1871
|
-
const
|
|
1872
|
-
t.loading ||
|
|
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);
|
|
1873
1873
|
};
|
|
1874
|
-
return (
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
class:
|
|
1874
|
+
return (u, p) => (g(), A("div", bn, [
|
|
1875
|
+
V("div", xn, [
|
|
1876
|
+
V("div", {
|
|
1877
|
+
class: Lt(r.value)
|
|
1878
1878
|
}, [
|
|
1879
|
-
(
|
|
1880
|
-
key: String(S.id ?? `card-${
|
|
1879
|
+
(g(!0), A(L, null, G(l.value, (S, x) => (g(), B(vn, {
|
|
1880
|
+
key: String(S.id ?? `card-${x}`),
|
|
1881
1881
|
loading: e.loading,
|
|
1882
1882
|
record: S,
|
|
1883
1883
|
columns: a.value,
|
|
@@ -1887,31 +1887,31 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1887
1887
|
onEdit: p[0] || (p[0] = (i) => n("edit", i)),
|
|
1888
1888
|
onDelete: p[1] || (p[1] = (i) => n("delete", i)),
|
|
1889
1889
|
onRestore: p[2] || (p[2] = (i) => n("restore", i))
|
|
1890
|
-
},
|
|
1891
|
-
|
|
1890
|
+
}, we({ _: 2 }, [
|
|
1891
|
+
u.$slots.titleCard ? {
|
|
1892
1892
|
name: "title",
|
|
1893
|
-
fn:
|
|
1894
|
-
|
|
1893
|
+
fn: C(() => [
|
|
1894
|
+
O(u.$slots, "titleCard", {
|
|
1895
1895
|
record: S,
|
|
1896
1896
|
columns: a.value
|
|
1897
1897
|
}, void 0, !0)
|
|
1898
1898
|
]),
|
|
1899
1899
|
key: "0"
|
|
1900
1900
|
} : void 0,
|
|
1901
|
-
|
|
1901
|
+
u.$slots.bodyCard ? {
|
|
1902
1902
|
name: "body",
|
|
1903
|
-
fn:
|
|
1904
|
-
|
|
1903
|
+
fn: C(({ record: i, columns: m }) => [
|
|
1904
|
+
O(u.$slots, "bodyCard", {
|
|
1905
1905
|
record: i,
|
|
1906
1906
|
columns: m
|
|
1907
1907
|
}, void 0, !0)
|
|
1908
1908
|
]),
|
|
1909
1909
|
key: "1"
|
|
1910
1910
|
} : void 0,
|
|
1911
|
-
|
|
1911
|
+
u.$slots.footerCard ? {
|
|
1912
1912
|
name: "footer",
|
|
1913
|
-
fn:
|
|
1914
|
-
|
|
1913
|
+
fn: C(({ record: i, columns: m }) => [
|
|
1914
|
+
O(u.$slots, "footerCard", {
|
|
1915
1915
|
record: i,
|
|
1916
1916
|
columns: m
|
|
1917
1917
|
}, void 0, !0)
|
|
@@ -1920,28 +1920,28 @@ const Ko = { class: "flex flex-wrap tag-cloud" }, Zo = { class: "flex flex-wrap"
|
|
|
1920
1920
|
} : void 0
|
|
1921
1921
|
]), 1032, ["loading", "record", "columns", "can-edit", "edit-action", "show-actions-column"]))), 128))
|
|
1922
1922
|
], 2),
|
|
1923
|
-
e.pagination && !
|
|
1923
|
+
e.pagination && !f.value ? (g(), B(yn, {
|
|
1924
1924
|
key: 0,
|
|
1925
1925
|
loading: e.loading,
|
|
1926
1926
|
once: !1,
|
|
1927
|
-
"on-intersect":
|
|
1928
|
-
}, null, 8, ["loading"])) :
|
|
1927
|
+
"on-intersect": d
|
|
1928
|
+
}, null, 8, ["loading"])) : j("", !0)
|
|
1929
1929
|
])
|
|
1930
1930
|
]));
|
|
1931
1931
|
}
|
|
1932
|
-
}),
|
|
1933
|
-
var ee = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.SELECT = "select", e.DATE = "date", e))(ee || {}),
|
|
1934
|
-
const
|
|
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 = [
|
|
1935
1935
|
"10",
|
|
1936
1936
|
"20",
|
|
1937
1937
|
"50",
|
|
1938
1938
|
"100"
|
|
1939
1939
|
/* EXTRA_LARGE */
|
|
1940
1940
|
];
|
|
1941
|
-
var
|
|
1942
|
-
const
|
|
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({
|
|
1943
1943
|
name: "MultiselectWrapper",
|
|
1944
|
-
components: { VueMultiselect:
|
|
1944
|
+
components: { VueMultiselect: Pt },
|
|
1945
1945
|
props: {
|
|
1946
1946
|
modelValue: {
|
|
1947
1947
|
type: [Array, String, Number, Object, Boolean, null],
|
|
@@ -1950,25 +1950,25 @@ const Mn = L({
|
|
|
1950
1950
|
},
|
|
1951
1951
|
emits: ["update:modelValue"],
|
|
1952
1952
|
data() {
|
|
1953
|
-
return { simpleImage:
|
|
1953
|
+
return { simpleImage: Nt.PRESENTED_IMAGE_SIMPLE };
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
|
-
function
|
|
1957
|
-
const l =
|
|
1958
|
-
return
|
|
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, {
|
|
1959
1959
|
class: "filter-select",
|
|
1960
1960
|
modelValue: e.modelValue,
|
|
1961
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1961
|
+
"onUpdate:modelValue": o[0] || (o[0] = (f) => e.$emit("update:modelValue", f)),
|
|
1962
1962
|
label: "name",
|
|
1963
1963
|
"value-prop": "id"
|
|
1964
1964
|
}), {
|
|
1965
|
-
nooptions:
|
|
1966
|
-
|
|
1965
|
+
nooptions: C(() => [
|
|
1966
|
+
M(l, { image: e.simpleImage }, null, 8, ["image"])
|
|
1967
1967
|
]),
|
|
1968
1968
|
_: 1
|
|
1969
1969
|
}, 16, ["modelValue"]);
|
|
1970
1970
|
}
|
|
1971
|
-
const
|
|
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({
|
|
1972
1972
|
__name: "FilterDropdown",
|
|
1973
1973
|
props: {
|
|
1974
1974
|
placeholder: {},
|
|
@@ -1977,29 +1977,29 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
1977
1977
|
},
|
|
1978
1978
|
emits: ["update:modelValue", "apply"],
|
|
1979
1979
|
setup(e, { emit: o }) {
|
|
1980
|
-
const t = e, n = o, r =
|
|
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
1981
|
n("update:modelValue", a.value), n("apply");
|
|
1982
1982
|
};
|
|
1983
|
-
return (
|
|
1984
|
-
const
|
|
1985
|
-
return
|
|
1986
|
-
|
|
1987
|
-
(
|
|
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
1988
|
value: a.value,
|
|
1989
|
-
"onUpdate:value":
|
|
1989
|
+
"onUpdate:value": f[0] || (f[0] = (u) => a.value = u),
|
|
1990
1990
|
modelValue: a.value,
|
|
1991
|
-
"onUpdate:modelValue":
|
|
1991
|
+
"onUpdate:modelValue": f[1] || (f[1] = (u) => a.value = u),
|
|
1992
1992
|
placeholder: e.placeholder,
|
|
1993
1993
|
style: { "min-width": "240px", "max-width": "300px", "font-size": "14px" },
|
|
1994
1994
|
object: ""
|
|
1995
1995
|
}), null, 16, ["value", "modelValue", "placeholder"])),
|
|
1996
|
-
|
|
1996
|
+
M(d, {
|
|
1997
1997
|
type: "primary",
|
|
1998
1998
|
size: "small",
|
|
1999
1999
|
onClick: l
|
|
2000
2000
|
}, {
|
|
2001
|
-
default:
|
|
2002
|
-
|
|
2001
|
+
default: C(() => [...f[2] || (f[2] = [
|
|
2002
|
+
P(" Добавить ", -1)
|
|
2003
2003
|
])]),
|
|
2004
2004
|
_: 1
|
|
2005
2005
|
})
|
|
@@ -2007,7 +2007,7 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2007
2007
|
]);
|
|
2008
2008
|
};
|
|
2009
2009
|
}
|
|
2010
|
-
}),
|
|
2010
|
+
}), Dn = { class: "flex items-center justify-center gap-2" }, Fn = /* @__PURE__ */ z({
|
|
2011
2011
|
__name: "TableCellActions",
|
|
2012
2012
|
props: {
|
|
2013
2013
|
record: {},
|
|
@@ -2017,58 +2017,58 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2017
2017
|
},
|
|
2018
2018
|
emits: ["edit", "delete", "restore"],
|
|
2019
2019
|
setup(e, { emit: o }) {
|
|
2020
|
-
const t = e, n = o, r = (
|
|
2021
|
-
n("delete",
|
|
2022
|
-
}, a = (
|
|
2023
|
-
n("restore",
|
|
2024
|
-
}, l = (
|
|
2025
|
-
n("edit",
|
|
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);
|
|
2026
2026
|
};
|
|
2027
|
-
return (
|
|
2028
|
-
const
|
|
2029
|
-
return
|
|
2030
|
-
t.canEdit === !1 ? (
|
|
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, {
|
|
2031
2031
|
key: 0,
|
|
2032
2032
|
title: "Смотреть"
|
|
2033
2033
|
}, {
|
|
2034
|
-
default:
|
|
2035
|
-
|
|
2036
|
-
icon:
|
|
2037
|
-
onClick:
|
|
2034
|
+
default: C(() => [
|
|
2035
|
+
M(d, {
|
|
2036
|
+
icon: ie(F(vt)),
|
|
2037
|
+
onClick: f[0] || (f[0] = (p) => l(e.record))
|
|
2038
2038
|
}, null, 8, ["icon"])
|
|
2039
2039
|
]),
|
|
2040
2040
|
_: 1
|
|
2041
|
-
})) :
|
|
2042
|
-
e.canEdit !== !1 ? (
|
|
2043
|
-
t.editAction !== !1 ? (
|
|
2041
|
+
})) : j("", !0),
|
|
2042
|
+
e.canEdit !== !1 ? (g(), A(L, { key: 1 }, [
|
|
2043
|
+
t.editAction !== !1 ? (g(), B(u, {
|
|
2044
2044
|
key: 0,
|
|
2045
2045
|
title: "Редактировать"
|
|
2046
2046
|
}, {
|
|
2047
|
-
default:
|
|
2048
|
-
|
|
2049
|
-
icon:
|
|
2050
|
-
onClick:
|
|
2047
|
+
default: C(() => [
|
|
2048
|
+
M(d, {
|
|
2049
|
+
icon: ie(F(mt)),
|
|
2050
|
+
onClick: f[1] || (f[1] = (p) => l(e.record))
|
|
2051
2051
|
}, null, 8, ["icon"])
|
|
2052
2052
|
]),
|
|
2053
2053
|
_: 1
|
|
2054
|
-
})) :
|
|
2055
|
-
e.deleteAction !== !1 ? (
|
|
2054
|
+
})) : j("", !0),
|
|
2055
|
+
e.deleteAction !== !1 ? (g(), B(u, {
|
|
2056
2056
|
key: 1,
|
|
2057
2057
|
title: e.record.isDeleted ? "Восстановить" : "Удалить"
|
|
2058
2058
|
}, {
|
|
2059
|
-
default:
|
|
2060
|
-
|
|
2061
|
-
icon:
|
|
2062
|
-
onClick:
|
|
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))
|
|
2063
2063
|
}, null, 8, ["icon"])
|
|
2064
2064
|
]),
|
|
2065
2065
|
_: 1
|
|
2066
|
-
}, 8, ["title"])) :
|
|
2067
|
-
], 64)) :
|
|
2066
|
+
}, 8, ["title"])) : j("", !0)
|
|
2067
|
+
], 64)) : j("", !0)
|
|
2068
2068
|
]);
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
|
-
}),
|
|
2071
|
+
}), Vn = { key: 0 }, _n = { key: 1 }, Rn = { key: 2 }, Ln = { key: 3 }, On = { key: 4 }, zn = { key: 5 }, Pn = /* @__PURE__ */ z({
|
|
2072
2072
|
__name: "TableBodyCell",
|
|
2073
2073
|
props: {
|
|
2074
2074
|
loading: { type: Boolean },
|
|
@@ -2077,69 +2077,69 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2077
2077
|
tagStyle: {}
|
|
2078
2078
|
},
|
|
2079
2079
|
setup(e) {
|
|
2080
|
-
const o = e, t =
|
|
2081
|
-
if (
|
|
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")
|
|
2082
2082
|
return "";
|
|
2083
|
-
if ("name" in
|
|
2084
|
-
const
|
|
2085
|
-
return typeof
|
|
2083
|
+
if ("name" in d) {
|
|
2084
|
+
const u = d.name;
|
|
2085
|
+
return typeof u == "string" ? u : "";
|
|
2086
2086
|
}
|
|
2087
2087
|
return "";
|
|
2088
|
-
}, a = (
|
|
2089
|
-
const
|
|
2090
|
-
return Array.isArray(
|
|
2091
|
-
}),
|
|
2092
|
-
key: `${
|
|
2093
|
-
label:
|
|
2094
|
-
}))),
|
|
2095
|
-
return (
|
|
2096
|
-
const p =
|
|
2097
|
-
return e.loading ? (
|
|
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, {
|
|
2098
2098
|
key: 0,
|
|
2099
2099
|
active: !0,
|
|
2100
2100
|
loading: !0,
|
|
2101
2101
|
title: !1,
|
|
2102
2102
|
paragraph: { rows: 1 }
|
|
2103
|
-
})) : (
|
|
2104
|
-
e.column.dataIndex === "isDeleted" ? (
|
|
2105
|
-
|
|
2103
|
+
})) : (g(), A(L, { key: 1 }, [
|
|
2104
|
+
e.column.dataIndex === "isDeleted" ? (g(), A("span", Vn, [
|
|
2105
|
+
M(Ce, {
|
|
2106
2106
|
value: e.record.isDeleted
|
|
2107
2107
|
}, null, 8, ["value"])
|
|
2108
|
-
])) : Array.isArray(t.value) ? (
|
|
2109
|
-
e.column.tag === !0 ? (
|
|
2110
|
-
key:
|
|
2111
|
-
style:
|
|
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),
|
|
2112
2112
|
class: "mr-1 mb-1"
|
|
2113
2113
|
}, {
|
|
2114
|
-
default:
|
|
2115
|
-
|
|
2114
|
+
default: C(() => [
|
|
2115
|
+
P(U(x.label), 1)
|
|
2116
2116
|
]),
|
|
2117
2117
|
_: 2
|
|
2118
|
-
}, 1032, ["style"]))), 128)) : (
|
|
2119
|
-
|
|
2120
|
-
i < l.value.length - 1 ? (
|
|
2121
|
-
|
|
2122
|
-
], 64)) :
|
|
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)
|
|
2123
2123
|
]))), 128))
|
|
2124
|
-
])) : typeof t.value == "boolean" ? (
|
|
2125
|
-
|
|
2124
|
+
])) : typeof t.value == "boolean" ? (g(), A("span", Rn, [
|
|
2125
|
+
M(Ce, {
|
|
2126
2126
|
value: !t.value
|
|
2127
2127
|
}, null, 8, ["value"])
|
|
2128
|
-
])) : t.value !== null && typeof t.value == "object" ? (
|
|
2129
|
-
|
|
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, {
|
|
2130
2130
|
key: 0,
|
|
2131
|
-
style:
|
|
2131
|
+
style: Ve(e.tagStyle)
|
|
2132
2132
|
}, {
|
|
2133
|
-
default:
|
|
2134
|
-
|
|
2133
|
+
default: C(() => [
|
|
2134
|
+
P(U(String(t.value)), 1)
|
|
2135
2135
|
]),
|
|
2136
2136
|
_: 1
|
|
2137
|
-
}, 8, ["style"])) : (
|
|
2138
|
-
])) : (
|
|
2137
|
+
}, 8, ["style"])) : (g(), A(L, { key: 1 }, [], 64))
|
|
2138
|
+
])) : (g(), A("span", zn, U(t.value), 1))
|
|
2139
2139
|
], 64));
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
|
-
}),
|
|
2142
|
+
}), Nn = { class: "efko-dataview" }, jn = { class: "flex items-center justify-between" }, Un = { class: "flex items-center gap-2" }, Xn = /* @__PURE__ */ z({
|
|
2143
2143
|
__name: "TheTable",
|
|
2144
2144
|
props: {
|
|
2145
2145
|
loading: { type: Boolean },
|
|
@@ -2158,44 +2158,44 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2158
2158
|
},
|
|
2159
2159
|
emits: ["update:filterValues", "filterApply", "restore", "edit", "delete", "sortChange", "pageChange", "sizeChange", "openColumnDrawer", "openFilterDrawer"],
|
|
2160
2160
|
setup(e, { emit: o }) {
|
|
2161
|
-
const [, t] =
|
|
2161
|
+
const [, t] = Bt(), n = e, r = o, a = E(() => n.showFilterButton === !0), l = _(
|
|
2162
2162
|
n.filterValues || {}
|
|
2163
|
-
),
|
|
2163
|
+
), c = _([
|
|
2164
2164
|
...n.columns
|
|
2165
|
-
]),
|
|
2166
|
-
(
|
|
2167
|
-
)),
|
|
2168
|
-
const
|
|
2169
|
-
if (
|
|
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)
|
|
2170
2170
|
return !1;
|
|
2171
|
-
const
|
|
2172
|
-
return n.columnsVisibility[
|
|
2173
|
-
}).map((
|
|
2174
|
-
const { headerAlign:
|
|
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;
|
|
2175
2175
|
return {
|
|
2176
|
-
...
|
|
2177
|
-
sorter: !!
|
|
2178
|
-
sortDirections:
|
|
2179
|
-
|
|
2180
|
-
|
|
2176
|
+
...R,
|
|
2177
|
+
sorter: !!R.sortable,
|
|
2178
|
+
sortDirections: R.sortable ? [
|
|
2179
|
+
Ne.ASCEND,
|
|
2180
|
+
Ne.DESCEND
|
|
2181
2181
|
] : void 0,
|
|
2182
|
-
customHeaderCell: () =>
|
|
2182
|
+
customHeaderCell: () => I ? {
|
|
2183
2183
|
style: {
|
|
2184
|
-
textAlign:
|
|
2184
|
+
textAlign: I
|
|
2185
2185
|
}
|
|
2186
2186
|
} : void 0,
|
|
2187
|
-
customCell: () =>
|
|
2187
|
+
customCell: () => h ? {
|
|
2188
2188
|
style: {
|
|
2189
|
-
textAlign:
|
|
2189
|
+
textAlign: h
|
|
2190
2190
|
}
|
|
2191
2191
|
} : void 0,
|
|
2192
|
-
customFilterDropdown: !!
|
|
2193
|
-
slots:
|
|
2194
|
-
filterDropdown: `filter${String(
|
|
2192
|
+
customFilterDropdown: !!R.filterable,
|
|
2193
|
+
slots: R.filterable ? {
|
|
2194
|
+
filterDropdown: `filter${String(R.dataIndex)}Dropdown`
|
|
2195
2195
|
} : void 0
|
|
2196
2196
|
};
|
|
2197
2197
|
});
|
|
2198
|
-
return n.showActionsColumn !== !1 && n.columnsVisibility.actions !== !1 &&
|
|
2198
|
+
return n.showActionsColumn !== !1 && n.columnsVisibility.actions !== !1 && v.push({
|
|
2199
2199
|
title: "Действия",
|
|
2200
2200
|
key: "actions",
|
|
2201
2201
|
dataIndex: "actions",
|
|
@@ -2203,92 +2203,123 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2203
2203
|
slots: {
|
|
2204
2204
|
customRender: "actionColumn"
|
|
2205
2205
|
}
|
|
2206
|
-
}),
|
|
2207
|
-
}), p =
|
|
2206
|
+
}), v;
|
|
2207
|
+
}), p = E(
|
|
2208
2208
|
() => Object.keys(n.columnsVisibility).filter(
|
|
2209
|
-
(
|
|
2209
|
+
(s) => n.columnsVisibility[s] === !1
|
|
2210
2210
|
).length
|
|
2211
|
-
), S =
|
|
2211
|
+
), S = E(() => ({
|
|
2212
2212
|
color: t.value.colorSelectedMenu,
|
|
2213
2213
|
borderColor: t.value.colorBorderSecondary,
|
|
2214
2214
|
backgroundColor: t.value.mainBgColor || t.value.colorPrimaryBg
|
|
2215
|
-
})),
|
|
2216
|
-
const
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
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 }));
|
|
2225
|
+
} 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;
|
|
2220
2232
|
return;
|
|
2221
2233
|
}
|
|
2222
|
-
if (
|
|
2223
|
-
h
|
|
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);
|
|
2241
|
+
return;
|
|
2242
|
+
}
|
|
2243
|
+
if (h.some((R) => J(R, v))) {
|
|
2244
|
+
f.value[k] = null;
|
|
2245
|
+
return;
|
|
2246
|
+
}
|
|
2247
|
+
i(k, [
|
|
2248
|
+
...h,
|
|
2249
|
+
v
|
|
2250
|
+
]);
|
|
2224
2251
|
return;
|
|
2225
2252
|
}
|
|
2226
|
-
const
|
|
2227
|
-
|
|
2228
|
-
|
|
2253
|
+
const I = l.value[k];
|
|
2254
|
+
if (J(I, v)) {
|
|
2255
|
+
f.value[k] = null;
|
|
2256
|
+
return;
|
|
2257
|
+
}
|
|
2258
|
+
i(k, v);
|
|
2259
|
+
}, y = (s) => s.isGroup ? "parent-row" : "", w = (s, v, k) => {
|
|
2229
2260
|
r("sortChange", {
|
|
2230
|
-
columnKey:
|
|
2231
|
-
order:
|
|
2261
|
+
columnKey: k.columnKey || "",
|
|
2262
|
+
order: k.order || null
|
|
2232
2263
|
});
|
|
2233
|
-
}, b = (
|
|
2234
|
-
const
|
|
2235
|
-
(
|
|
2264
|
+
}, b = (s, v) => {
|
|
2265
|
+
const k = v.key || String(v.dataIndex), I = c.value.findIndex(
|
|
2266
|
+
(h) => (h.key || String(h.dataIndex)) === k
|
|
2236
2267
|
);
|
|
2237
|
-
|
|
2238
|
-
...
|
|
2239
|
-
width:
|
|
2268
|
+
I !== -1 && c.value.splice(I, 1, {
|
|
2269
|
+
...v,
|
|
2270
|
+
width: s
|
|
2240
2271
|
});
|
|
2241
2272
|
};
|
|
2242
|
-
return
|
|
2273
|
+
return D(
|
|
2243
2274
|
() => n.filterValues,
|
|
2244
|
-
(
|
|
2245
|
-
l.value =
|
|
2275
|
+
(s) => {
|
|
2276
|
+
l.value = s || {};
|
|
2246
2277
|
}
|
|
2247
|
-
),
|
|
2278
|
+
), D(
|
|
2248
2279
|
() => n.columns,
|
|
2249
|
-
(
|
|
2250
|
-
|
|
2251
|
-
...
|
|
2280
|
+
(s) => {
|
|
2281
|
+
c.value = [
|
|
2282
|
+
...s
|
|
2252
2283
|
];
|
|
2253
2284
|
},
|
|
2254
2285
|
{
|
|
2255
2286
|
immediate: !0
|
|
2256
2287
|
}
|
|
2257
|
-
),
|
|
2258
|
-
const
|
|
2259
|
-
|
|
2260
|
-
}), (
|
|
2261
|
-
var te,
|
|
2262
|
-
const
|
|
2263
|
-
return
|
|
2264
|
-
|
|
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, {
|
|
2265
2296
|
bordered: "",
|
|
2266
2297
|
"table-layout": "fixed",
|
|
2267
2298
|
class: "the-table",
|
|
2268
2299
|
loading: e.loading,
|
|
2269
|
-
columns:
|
|
2300
|
+
columns: u.value,
|
|
2270
2301
|
"data-source": e.dataSource,
|
|
2271
|
-
"row-key": (
|
|
2302
|
+
"row-key": ($) => $.id,
|
|
2272
2303
|
pagination: !1,
|
|
2273
2304
|
scroll: { x: "max-content" },
|
|
2274
|
-
"row-class-name":
|
|
2275
|
-
onChange:
|
|
2305
|
+
"row-class-name": y,
|
|
2306
|
+
onChange: w,
|
|
2276
2307
|
onResizeColumn: b
|
|
2277
|
-
},
|
|
2278
|
-
title:
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2308
|
+
}, we({
|
|
2309
|
+
title: C(() => [
|
|
2310
|
+
V("div", jn, [
|
|
2311
|
+
V("div", Un, [
|
|
2312
|
+
M(h, {
|
|
2282
2313
|
dot: "",
|
|
2283
2314
|
count: p.value
|
|
2284
2315
|
}, {
|
|
2285
|
-
default:
|
|
2286
|
-
|
|
2316
|
+
default: C(() => [
|
|
2317
|
+
M(I, {
|
|
2287
2318
|
class: "flex items-center justify-center p-2",
|
|
2288
|
-
onClick:
|
|
2319
|
+
onClick: v[0] || (v[0] = ($) => s.$emit("openColumnDrawer"))
|
|
2289
2320
|
}, {
|
|
2290
|
-
default:
|
|
2291
|
-
k
|
|
2321
|
+
default: C(() => [
|
|
2322
|
+
M(k, {
|
|
2292
2323
|
name: "solar:settings-outline",
|
|
2293
2324
|
class: "text-lg"
|
|
2294
2325
|
})
|
|
@@ -2298,80 +2329,80 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2298
2329
|
]),
|
|
2299
2330
|
_: 1
|
|
2300
2331
|
}, 8, ["count"]),
|
|
2301
|
-
a.value ? (
|
|
2332
|
+
a.value ? (g(), B(I, {
|
|
2302
2333
|
key: 0,
|
|
2303
2334
|
class: "flex items-center justify-center p-2",
|
|
2304
|
-
onClick:
|
|
2335
|
+
onClick: v[1] || (v[1] = ($) => s.$emit("openFilterDrawer"))
|
|
2305
2336
|
}, {
|
|
2306
|
-
default:
|
|
2307
|
-
k
|
|
2337
|
+
default: C(() => [
|
|
2338
|
+
M(k, {
|
|
2308
2339
|
name: "ant-design:filter-outlined",
|
|
2309
2340
|
class: "text-lg"
|
|
2310
2341
|
})
|
|
2311
2342
|
]),
|
|
2312
2343
|
_: 1
|
|
2313
|
-
})) :
|
|
2344
|
+
})) : j("", !0)
|
|
2314
2345
|
]),
|
|
2315
|
-
|
|
2346
|
+
O(s.$slots, "title")
|
|
2316
2347
|
])
|
|
2317
2348
|
]),
|
|
2318
|
-
bodyCell:
|
|
2319
|
-
|
|
2320
|
-
column:
|
|
2321
|
-
record:
|
|
2349
|
+
bodyCell: C(({ column: $, record: Q }) => [
|
|
2350
|
+
O(s.$slots, "bodyCell", {
|
|
2351
|
+
column: $,
|
|
2352
|
+
record: Q
|
|
2322
2353
|
}, () => [
|
|
2323
|
-
|
|
2354
|
+
M(Pn, {
|
|
2324
2355
|
loading: e.loading,
|
|
2325
|
-
column:
|
|
2326
|
-
record:
|
|
2356
|
+
column: $,
|
|
2357
|
+
record: Q,
|
|
2327
2358
|
"tag-style": S.value
|
|
2328
2359
|
}, null, 8, ["loading", "column", "record", "tag-style"])
|
|
2329
2360
|
])
|
|
2330
2361
|
]),
|
|
2331
|
-
actionColumn:
|
|
2332
|
-
|
|
2333
|
-
|
|
2362
|
+
actionColumn: C(({ record: $ }) => [
|
|
2363
|
+
O(s.$slots, "actionColumn", { record: $ }, () => [
|
|
2364
|
+
M(Fn, {
|
|
2334
2365
|
"edit-action": e.editAction,
|
|
2335
2366
|
"delete-action": e.deleteAction,
|
|
2336
2367
|
"can-edit": e.canEdit,
|
|
2337
|
-
record:
|
|
2338
|
-
onEdit: () =>
|
|
2339
|
-
onDelete: () =>
|
|
2340
|
-
onRestore: () =>
|
|
2368
|
+
record: $,
|
|
2369
|
+
onEdit: () => s.$emit("edit", $),
|
|
2370
|
+
onDelete: () => s.$emit("delete", $),
|
|
2371
|
+
onRestore: () => s.$emit("restore", $)
|
|
2341
2372
|
}, null, 8, ["edit-action", "delete-action", "can-edit", "record", "onEdit", "onDelete", "onRestore"])
|
|
2342
2373
|
])
|
|
2343
2374
|
]),
|
|
2344
2375
|
_: 2
|
|
2345
2376
|
}, [
|
|
2346
|
-
|
|
2347
|
-
name: `filter${String(
|
|
2348
|
-
fn:
|
|
2349
|
-
|
|
2350
|
-
modelValue:
|
|
2351
|
-
"onUpdate:modelValue": [(
|
|
2352
|
-
"filter-mode":
|
|
2353
|
-
"component-props":
|
|
2354
|
-
placeholder:
|
|
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
|
|
2355
2386
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "filter-mode", "component-props", "placeholder"])
|
|
2356
2387
|
])
|
|
2357
2388
|
}))
|
|
2358
2389
|
]), 1032, ["loading", "columns", "data-source", "row-key"]),
|
|
2359
|
-
e.pagination ? (
|
|
2390
|
+
e.pagination ? (g(), B(Ze, {
|
|
2360
2391
|
key: 0,
|
|
2361
2392
|
class: "mt-4 text-right",
|
|
2362
2393
|
current: (te = e.meta) == null ? void 0 : te.currentPage,
|
|
2363
|
-
"page-size": (
|
|
2364
|
-
total: (
|
|
2365
|
-
"show-total": (
|
|
2366
|
-
"page-size-options": (
|
|
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,
|
|
2367
2398
|
"show-size-changer": !0,
|
|
2368
|
-
onChange:
|
|
2369
|
-
onShowSizeChange:
|
|
2370
|
-
}, null, 8, ["current", "page-size", "total", "show-total", "page-size-options"])) :
|
|
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)
|
|
2371
2402
|
]);
|
|
2372
2403
|
};
|
|
2373
2404
|
}
|
|
2374
|
-
}),
|
|
2405
|
+
}), Gn = { class: "mb-4" }, Wn = { class: "flex flex-col gap-1" }, qn = /* @__PURE__ */ z({
|
|
2375
2406
|
__name: "ColumnSettingsDrawer",
|
|
2376
2407
|
props: {
|
|
2377
2408
|
visible: { type: Boolean },
|
|
@@ -2384,113 +2415,113 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2384
2415
|
},
|
|
2385
2416
|
emits: ["update:visible", "update:modelValue", "update:viewMode", "update:cardLayout"],
|
|
2386
2417
|
setup(e, { emit: o }) {
|
|
2387
|
-
const t = e, n = o, r =
|
|
2418
|
+
const t = e, n = o, r = _(t.visible), a = _(t.viewMode), l = _(t.cardLayout), c = Ge({
|
|
2388
2419
|
...t.modelValue
|
|
2389
|
-
}),
|
|
2390
|
-
return
|
|
2420
|
+
}), f = E(() => a.value === "grid"), d = t.disableViewMode || !1;
|
|
2421
|
+
return D(
|
|
2391
2422
|
() => t.visible,
|
|
2392
|
-
(
|
|
2393
|
-
r.value =
|
|
2423
|
+
(u) => {
|
|
2424
|
+
r.value = u;
|
|
2394
2425
|
}
|
|
2395
|
-
),
|
|
2396
|
-
n("update:visible",
|
|
2397
|
-
}),
|
|
2426
|
+
), D(r, (u) => {
|
|
2427
|
+
n("update:visible", u);
|
|
2428
|
+
}), D(
|
|
2398
2429
|
() => t.viewMode,
|
|
2399
|
-
(
|
|
2400
|
-
a.value =
|
|
2430
|
+
(u) => {
|
|
2431
|
+
a.value = u;
|
|
2401
2432
|
}
|
|
2402
|
-
),
|
|
2403
|
-
n("update:viewMode",
|
|
2404
|
-
}),
|
|
2433
|
+
), D(a, (u) => {
|
|
2434
|
+
n("update:viewMode", u);
|
|
2435
|
+
}), D(
|
|
2405
2436
|
() => t.cardLayout,
|
|
2406
|
-
(
|
|
2407
|
-
l.value =
|
|
2437
|
+
(u) => {
|
|
2438
|
+
l.value = u;
|
|
2408
2439
|
}
|
|
2409
|
-
),
|
|
2410
|
-
n("update:cardLayout",
|
|
2411
|
-
}),
|
|
2440
|
+
), D(l, (u) => {
|
|
2441
|
+
n("update:cardLayout", u);
|
|
2442
|
+
}), D(
|
|
2412
2443
|
() => t.modelValue,
|
|
2413
|
-
(
|
|
2444
|
+
(u) => Object.assign(c, u),
|
|
2414
2445
|
{
|
|
2415
2446
|
deep: !0
|
|
2416
2447
|
}
|
|
2417
|
-
),
|
|
2418
|
-
...
|
|
2448
|
+
), D(c, (u) => n("update:modelValue", {
|
|
2449
|
+
...u
|
|
2419
2450
|
}), {
|
|
2420
2451
|
deep: !0
|
|
2421
|
-
}), t.showActionsColumn &&
|
|
2422
|
-
const S =
|
|
2423
|
-
return
|
|
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, {
|
|
2424
2455
|
open: r.value,
|
|
2425
|
-
"onUpdate:open": p[2] || (p[2] = (
|
|
2456
|
+
"onUpdate:open": p[2] || (p[2] = (w) => r.value = w),
|
|
2426
2457
|
class: "efko-dataview",
|
|
2427
2458
|
title: "Настройки представления",
|
|
2428
2459
|
placement: "right"
|
|
2429
2460
|
}, {
|
|
2430
|
-
default:
|
|
2431
|
-
|
|
2432
|
-
p[3] || (p[3] =
|
|
2433
|
-
|
|
2434
|
-
(
|
|
2435
|
-
key:
|
|
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
|
|
2436
2467
|
}, [
|
|
2437
|
-
|
|
2438
|
-
checked:
|
|
2439
|
-
"onUpdate:checked": (
|
|
2440
|
-
disabled:
|
|
2468
|
+
M(S, {
|
|
2469
|
+
checked: c[w.key ?? w.dataIndex],
|
|
2470
|
+
"onUpdate:checked": (b) => c[w.key ?? w.dataIndex] = b,
|
|
2471
|
+
disabled: f.value,
|
|
2441
2472
|
class: "flex"
|
|
2442
2473
|
}, {
|
|
2443
|
-
default:
|
|
2444
|
-
|
|
2474
|
+
default: C(() => [
|
|
2475
|
+
P(U(w.title), 1)
|
|
2445
2476
|
]),
|
|
2446
2477
|
_: 2
|
|
2447
2478
|
}, 1032, ["checked", "onUpdate:checked", "disabled"])
|
|
2448
2479
|
]))), 128))
|
|
2449
2480
|
])
|
|
2450
2481
|
]),
|
|
2451
|
-
|
|
2452
|
-
p[8] || (p[8] =
|
|
2453
|
-
|
|
2482
|
+
V("section", null, [
|
|
2483
|
+
p[8] || (p[8] = V("h3", { class: "font-bold text-base mb-2" }, "Вид", -1)),
|
|
2484
|
+
M(i, {
|
|
2454
2485
|
value: a.value,
|
|
2455
|
-
"onUpdate:value": p[0] || (p[0] = (
|
|
2486
|
+
"onUpdate:value": p[0] || (p[0] = (w) => a.value = w),
|
|
2456
2487
|
"button-style": "solid",
|
|
2457
2488
|
class: "mb-3",
|
|
2458
|
-
disabled:
|
|
2489
|
+
disabled: F(d)
|
|
2459
2490
|
}, {
|
|
2460
|
-
default:
|
|
2461
|
-
|
|
2462
|
-
default:
|
|
2463
|
-
|
|
2491
|
+
default: C(() => [
|
|
2492
|
+
M(x, { value: "table" }, {
|
|
2493
|
+
default: C(() => [...p[4] || (p[4] = [
|
|
2494
|
+
P("Таблица", -1)
|
|
2464
2495
|
])]),
|
|
2465
2496
|
_: 1
|
|
2466
2497
|
}),
|
|
2467
|
-
|
|
2468
|
-
default:
|
|
2469
|
-
|
|
2498
|
+
M(x, { value: "grid" }, {
|
|
2499
|
+
default: C(() => [...p[5] || (p[5] = [
|
|
2500
|
+
P("Карточки", -1)
|
|
2470
2501
|
])]),
|
|
2471
2502
|
_: 1
|
|
2472
2503
|
})
|
|
2473
2504
|
]),
|
|
2474
2505
|
_: 1
|
|
2475
2506
|
}, 8, ["value", "disabled"]),
|
|
2476
|
-
|
|
2507
|
+
M(i, {
|
|
2477
2508
|
value: l.value,
|
|
2478
|
-
"onUpdate:value": p[1] || (p[1] = (
|
|
2509
|
+
"onUpdate:value": p[1] || (p[1] = (w) => l.value = w),
|
|
2479
2510
|
"button-style": "solid",
|
|
2480
|
-
disabled: !
|
|
2511
|
+
disabled: !f.value
|
|
2481
2512
|
}, {
|
|
2482
|
-
default:
|
|
2483
|
-
|
|
2484
|
-
default:
|
|
2485
|
-
|
|
2486
|
-
p[6] || (p[6] =
|
|
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))
|
|
2487
2518
|
]),
|
|
2488
2519
|
_: 1
|
|
2489
2520
|
}),
|
|
2490
|
-
|
|
2491
|
-
default:
|
|
2492
|
-
|
|
2493
|
-
p[7] || (p[7] =
|
|
2521
|
+
M(m, { value: "row" }, {
|
|
2522
|
+
default: C(() => [
|
|
2523
|
+
M(F(zt), { class: "mr-2" }),
|
|
2524
|
+
p[7] || (p[7] = P("Строка ", -1))
|
|
2494
2525
|
]),
|
|
2495
2526
|
_: 1
|
|
2496
2527
|
})
|
|
@@ -2503,7 +2534,7 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2503
2534
|
}, 8, ["open"]);
|
|
2504
2535
|
};
|
|
2505
2536
|
}
|
|
2506
|
-
}),
|
|
2537
|
+
}), Dt = /* @__PURE__ */ z({
|
|
2507
2538
|
__name: "FilterInput",
|
|
2508
2539
|
props: {
|
|
2509
2540
|
modelValue: { type: [String, Number, Boolean, Object, Array, null] },
|
|
@@ -2513,19 +2544,19 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2513
2544
|
},
|
|
2514
2545
|
emits: ["update:modelValue"],
|
|
2515
2546
|
setup(e, { emit: o }) {
|
|
2516
|
-
const t = e, n = o, r =
|
|
2517
|
-
return
|
|
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) => {
|
|
2518
2549
|
a.value = l;
|
|
2519
|
-
}),
|
|
2550
|
+
}), D(a, (l) => n("update:modelValue", l)), (l, c) => (g(), B(ht(r.value), Xe(e.componentProps, {
|
|
2520
2551
|
value: a.value,
|
|
2521
|
-
"onUpdate:value":
|
|
2552
|
+
"onUpdate:value": c[0] || (c[0] = (f) => a.value = f),
|
|
2522
2553
|
modelValue: a.value,
|
|
2523
|
-
"onUpdate:modelValue":
|
|
2554
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => a.value = f),
|
|
2524
2555
|
placeholder: e.placeholder,
|
|
2525
2556
|
class: "w-full text-sm"
|
|
2526
2557
|
}), null, 16, ["value", "modelValue", "placeholder"]));
|
|
2527
2558
|
}
|
|
2528
|
-
}),
|
|
2559
|
+
}), Kn = { class: "text-sm font-medium" }, Zn = { class: "mt-2 flex flex-col gap-2" }, Qn = /* @__PURE__ */ z({
|
|
2529
2560
|
__name: "CardFiltersDrawer",
|
|
2530
2561
|
props: {
|
|
2531
2562
|
visible: { type: Boolean },
|
|
@@ -2534,23 +2565,23 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2534
2565
|
},
|
|
2535
2566
|
emits: ["update:visible", "update:filterValues", "filterApply"],
|
|
2536
2567
|
setup(e, { emit: o }) {
|
|
2537
|
-
const t = e, n = o, r =
|
|
2568
|
+
const t = e, n = o, r = _(t.visible), a = Ge({
|
|
2538
2569
|
...t.filterValues
|
|
2539
|
-
}), l = (i) => i.key ?? String(i.dataIndex),
|
|
2540
|
-
(i) => !
|
|
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])
|
|
2541
2572
|
)), p = (i) => {
|
|
2542
2573
|
Object.keys(a).forEach((m) => {
|
|
2543
2574
|
delete a[m];
|
|
2544
2575
|
}), Object.assign(a, i);
|
|
2545
2576
|
};
|
|
2546
|
-
|
|
2577
|
+
D(
|
|
2547
2578
|
() => t.visible,
|
|
2548
2579
|
(i) => {
|
|
2549
2580
|
r.value = i, i && p(t.filterValues);
|
|
2550
2581
|
}
|
|
2551
|
-
),
|
|
2582
|
+
), D(r, (i) => {
|
|
2552
2583
|
n("update:visible", i);
|
|
2553
|
-
}),
|
|
2584
|
+
}), D(
|
|
2554
2585
|
() => t.filterValues,
|
|
2555
2586
|
(i) => {
|
|
2556
2587
|
p(i);
|
|
@@ -2563,67 +2594,67 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2563
2594
|
const i = {
|
|
2564
2595
|
...t.filterValues
|
|
2565
2596
|
};
|
|
2566
|
-
Object.entries(a).forEach(([m,
|
|
2567
|
-
if (
|
|
2597
|
+
Object.entries(a).forEach(([m, y]) => {
|
|
2598
|
+
if (f(y)) {
|
|
2568
2599
|
i[m] = null, n("filterApply", {
|
|
2569
2600
|
key: m,
|
|
2570
2601
|
value: []
|
|
2571
2602
|
});
|
|
2572
2603
|
return;
|
|
2573
2604
|
}
|
|
2574
|
-
i[m] =
|
|
2605
|
+
i[m] = y, n("filterApply", {
|
|
2575
2606
|
key: m,
|
|
2576
|
-
value:
|
|
2607
|
+
value: c(y)
|
|
2577
2608
|
});
|
|
2578
2609
|
}), n("update:filterValues", i), r.value = !1;
|
|
2579
|
-
},
|
|
2610
|
+
}, x = () => {
|
|
2580
2611
|
Object.keys(a).forEach((m) => {
|
|
2581
2612
|
delete a[m];
|
|
2582
2613
|
}), n("update:filterValues", {});
|
|
2583
2614
|
};
|
|
2584
2615
|
return (i, m) => {
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2616
|
+
const y = H("a-button"), w = H("a-drawer");
|
|
2617
|
+
return g(), B(w, {
|
|
2587
2618
|
open: r.value,
|
|
2588
|
-
"onUpdate:open": m[0] || (m[0] = (
|
|
2619
|
+
"onUpdate:open": m[0] || (m[0] = (b) => r.value = b),
|
|
2589
2620
|
class: "efko-dataview",
|
|
2590
2621
|
placement: "right",
|
|
2591
2622
|
width: "360",
|
|
2592
2623
|
title: "Фильтры",
|
|
2593
2624
|
"body-style": "padding: 24px"
|
|
2594
2625
|
}, {
|
|
2595
|
-
default:
|
|
2596
|
-
(
|
|
2597
|
-
key: l(
|
|
2626
|
+
default: C(() => [
|
|
2627
|
+
(g(!0), A(L, null, G(d.value, (b) => (g(), A("section", {
|
|
2628
|
+
key: l(b),
|
|
2598
2629
|
class: "mb-4 flex flex-col gap-2"
|
|
2599
2630
|
}, [
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
modelValue: a[l(
|
|
2603
|
-
"onUpdate:modelValue": (
|
|
2604
|
-
"filter-mode":
|
|
2605
|
-
"component-props":
|
|
2606
|
-
placeholder:
|
|
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
|
|
2607
2638
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "filter-mode", "component-props", "placeholder"])
|
|
2608
2639
|
]))), 128)),
|
|
2609
|
-
|
|
2610
|
-
|
|
2640
|
+
V("div", Zn, [
|
|
2641
|
+
M(y, {
|
|
2611
2642
|
block: "",
|
|
2612
|
-
onClick:
|
|
2643
|
+
onClick: x
|
|
2613
2644
|
}, {
|
|
2614
|
-
default:
|
|
2615
|
-
|
|
2645
|
+
default: C(() => [...m[1] || (m[1] = [
|
|
2646
|
+
P(" Сбросить ", -1)
|
|
2616
2647
|
])]),
|
|
2617
2648
|
_: 1
|
|
2618
2649
|
}),
|
|
2619
|
-
|
|
2650
|
+
M(y, {
|
|
2620
2651
|
type: "primary",
|
|
2621
2652
|
block: "",
|
|
2622
|
-
disabled: !
|
|
2653
|
+
disabled: !u.value,
|
|
2623
2654
|
onClick: S
|
|
2624
2655
|
}, {
|
|
2625
|
-
default:
|
|
2626
|
-
|
|
2656
|
+
default: C(() => [...m[2] || (m[2] = [
|
|
2657
|
+
P(" Применить ", -1)
|
|
2627
2658
|
])]),
|
|
2628
2659
|
_: 1
|
|
2629
2660
|
}, 8, ["disabled"])
|
|
@@ -2633,7 +2664,7 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2633
2664
|
}, 8, ["open"]);
|
|
2634
2665
|
};
|
|
2635
2666
|
}
|
|
2636
|
-
}),
|
|
2667
|
+
}), Jn = /* @__PURE__ */ ce(Qn, [["__scopeId", "data-v-2b4aab81"]]), Yn = { class: "text-sm font-medium" }, er = /* @__PURE__ */ z({
|
|
2637
2668
|
__name: "CardFiltersModal",
|
|
2638
2669
|
props: {
|
|
2639
2670
|
visible: { type: Boolean },
|
|
@@ -2642,25 +2673,25 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2642
2673
|
},
|
|
2643
2674
|
emits: ["update:visible", "update:filterValues", "filterApply"],
|
|
2644
2675
|
setup(e, { emit: o }) {
|
|
2645
|
-
const t = e, n = o, r =
|
|
2676
|
+
const t = e, n = o, r = _(t.visible), a = Ge({
|
|
2646
2677
|
...t.filterValues
|
|
2647
|
-
}), l = (i) => i.key ?? String(i.dataIndex),
|
|
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(
|
|
2648
2679
|
() => t.columns.filter((i) => i.filterable)
|
|
2649
|
-
),
|
|
2650
|
-
(i) => !
|
|
2680
|
+
), u = E(() => Object.keys(a).some(
|
|
2681
|
+
(i) => !J(a[i], t.filterValues[i])
|
|
2651
2682
|
)), p = (i) => {
|
|
2652
2683
|
Object.keys(a).forEach((m) => {
|
|
2653
2684
|
delete a[m];
|
|
2654
2685
|
}), Object.assign(a, i);
|
|
2655
2686
|
};
|
|
2656
|
-
|
|
2687
|
+
D(
|
|
2657
2688
|
() => t.visible,
|
|
2658
2689
|
(i) => {
|
|
2659
2690
|
r.value = i, i && p(t.filterValues);
|
|
2660
2691
|
}
|
|
2661
|
-
),
|
|
2692
|
+
), D(r, (i) => {
|
|
2662
2693
|
n("update:visible", i);
|
|
2663
|
-
}),
|
|
2694
|
+
}), D(
|
|
2664
2695
|
() => t.filterValues,
|
|
2665
2696
|
(i) => {
|
|
2666
2697
|
p(i);
|
|
@@ -2673,48 +2704,48 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2673
2704
|
const i = {
|
|
2674
2705
|
...t.filterValues
|
|
2675
2706
|
};
|
|
2676
|
-
Object.entries(a).forEach(([m,
|
|
2677
|
-
if (
|
|
2707
|
+
Object.entries(a).forEach(([m, y]) => {
|
|
2708
|
+
if (f(y)) {
|
|
2678
2709
|
i[m] = null, n("filterApply", {
|
|
2679
2710
|
key: m,
|
|
2680
2711
|
value: []
|
|
2681
2712
|
});
|
|
2682
2713
|
return;
|
|
2683
2714
|
}
|
|
2684
|
-
i[m] =
|
|
2715
|
+
i[m] = y, n("filterApply", {
|
|
2685
2716
|
key: m,
|
|
2686
|
-
value:
|
|
2717
|
+
value: c(y)
|
|
2687
2718
|
});
|
|
2688
2719
|
}), n("update:filterValues", i), r.value = !1;
|
|
2689
|
-
},
|
|
2720
|
+
}, x = () => {
|
|
2690
2721
|
r.value = !1;
|
|
2691
2722
|
};
|
|
2692
2723
|
return (i, m) => {
|
|
2693
|
-
const
|
|
2694
|
-
return
|
|
2724
|
+
const y = H("a-modal");
|
|
2725
|
+
return g(), B(y, {
|
|
2695
2726
|
visible: r.value,
|
|
2696
|
-
"onUpdate:visible": m[0] || (m[0] = (
|
|
2727
|
+
"onUpdate:visible": m[0] || (m[0] = (w) => r.value = w),
|
|
2697
2728
|
class: "efko-dataview",
|
|
2698
2729
|
title: "Фильтры",
|
|
2699
2730
|
"destroy-on-close": "",
|
|
2700
2731
|
"ok-text": "Применить",
|
|
2701
2732
|
"cancel-text": "Сбросить",
|
|
2702
|
-
"ok-button-props": { disabled: !
|
|
2733
|
+
"ok-button-props": { disabled: !u.value },
|
|
2703
2734
|
onOk: S,
|
|
2704
|
-
onCancel:
|
|
2735
|
+
onCancel: x
|
|
2705
2736
|
}, {
|
|
2706
|
-
default:
|
|
2707
|
-
(
|
|
2708
|
-
key: l(
|
|
2737
|
+
default: C(() => [
|
|
2738
|
+
(g(!0), A(L, null, G(d.value, (w) => (g(), A("section", {
|
|
2739
|
+
key: l(w),
|
|
2709
2740
|
class: "mb-4 flex flex-col gap-2"
|
|
2710
2741
|
}, [
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
modelValue: a[l(
|
|
2714
|
-
"onUpdate:modelValue": (
|
|
2715
|
-
"filter-mode":
|
|
2716
|
-
"component-props":
|
|
2717
|
-
placeholder:
|
|
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
|
|
2718
2749
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "filter-mode", "component-props", "placeholder"])
|
|
2719
2750
|
]))), 128))
|
|
2720
2751
|
]),
|
|
@@ -2722,9 +2753,9 @@ const It = /* @__PURE__ */ ie(Mn, [["render", En], ["__scopeId", "data-v-cfb3f12
|
|
|
2722
2753
|
}, 8, ["visible", "ok-button-props"]);
|
|
2723
2754
|
};
|
|
2724
2755
|
}
|
|
2725
|
-
}),
|
|
2726
|
-
var
|
|
2727
|
-
const
|
|
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({
|
|
2728
2759
|
__name: "DataView",
|
|
2729
2760
|
props: {
|
|
2730
2761
|
viewMode: {},
|
|
@@ -2745,79 +2776,70 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2745
2776
|
},
|
|
2746
2777
|
emits: ["update:viewMode", "update:filterValues", "filterApply", "edit", "delete", "restore", "sortChange", "pageChange", "sizeChange"],
|
|
2747
2778
|
setup(e, { emit: o }) {
|
|
2748
|
-
const t = e, n = o, r =
|
|
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 = _(
|
|
2749
2780
|
t.filterValues || {}
|
|
2750
|
-
),
|
|
2751
|
-
|
|
2752
|
-
},
|
|
2753
|
-
const
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
I[f] = g.filter((N) => !fe(N, w)), u(I);
|
|
2762
|
-
return;
|
|
2763
|
-
}
|
|
2764
|
-
if (fe(g, w)) {
|
|
2765
|
-
I[f] = [], u(I);
|
|
2766
|
-
return;
|
|
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);
|
|
2789
|
+
return;
|
|
2790
|
+
}
|
|
2791
|
+
J(s, v) && (k[b] = null, d(k));
|
|
2767
2792
|
}
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
f.forEach((g) => {
|
|
2777
|
-
const w = g.key ?? String(g.dataIndex);
|
|
2778
|
-
m.value[w] === void 0 && (m.value[w] = !0);
|
|
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);
|
|
2779
2801
|
}), t.showActionsColumn && m.value.actions === void 0 && (m.value.actions = !0);
|
|
2780
2802
|
};
|
|
2781
|
-
return
|
|
2803
|
+
return D(
|
|
2782
2804
|
() => t.filterValues,
|
|
2783
|
-
(
|
|
2784
|
-
|
|
2805
|
+
(b) => {
|
|
2806
|
+
c.value = b || {};
|
|
2785
2807
|
}
|
|
2786
|
-
),
|
|
2808
|
+
), D(
|
|
2787
2809
|
() => t.viewMode,
|
|
2788
|
-
(
|
|
2789
|
-
|
|
2810
|
+
(b) => {
|
|
2811
|
+
b !== void 0 && (r.value = b);
|
|
2790
2812
|
}
|
|
2791
|
-
),
|
|
2792
|
-
|
|
2793
|
-
}), (
|
|
2794
|
-
const
|
|
2795
|
-
return
|
|
2796
|
-
|
|
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", {
|
|
2797
2819
|
ref_key: "tagCloudContainer",
|
|
2798
|
-
ref:
|
|
2820
|
+
ref: f
|
|
2799
2821
|
}, [
|
|
2800
|
-
|
|
2801
|
-
filters:
|
|
2802
|
-
"onUpdate:filters":
|
|
2803
|
-
onRemove:
|
|
2822
|
+
M(en, {
|
|
2823
|
+
filters: c.value,
|
|
2824
|
+
"onUpdate:filters": d,
|
|
2825
|
+
onRemove: u,
|
|
2804
2826
|
onClear: p
|
|
2805
2827
|
}, null, 8, ["filters"])
|
|
2806
2828
|
], 512),
|
|
2807
|
-
a.value ? (
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2829
|
+
a.value ? (g(), A(L, { key: 0 }, [
|
|
2830
|
+
V("div", nr, [
|
|
2831
|
+
V("div", rr, [
|
|
2832
|
+
M(I, {
|
|
2811
2833
|
dot: "",
|
|
2812
|
-
count:
|
|
2834
|
+
count: y.value
|
|
2813
2835
|
}, {
|
|
2814
|
-
default:
|
|
2815
|
-
k
|
|
2836
|
+
default: C(() => [
|
|
2837
|
+
M(k, {
|
|
2816
2838
|
class: "flex items-center justify-center p-2",
|
|
2817
|
-
onClick:
|
|
2839
|
+
onClick: s[0] || (s[0] = (h) => i.value = !0)
|
|
2818
2840
|
}, {
|
|
2819
|
-
default:
|
|
2820
|
-
|
|
2841
|
+
default: C(() => [
|
|
2842
|
+
M(v, {
|
|
2821
2843
|
name: "solar:settings-outline",
|
|
2822
2844
|
class: "text-lg"
|
|
2823
2845
|
})
|
|
@@ -2827,12 +2849,12 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2827
2849
|
]),
|
|
2828
2850
|
_: 1
|
|
2829
2851
|
}, 8, ["count"]),
|
|
2830
|
-
k
|
|
2852
|
+
M(k, {
|
|
2831
2853
|
class: "flex items-center justify-center p-2",
|
|
2832
|
-
onClick:
|
|
2854
|
+
onClick: s[1] || (s[1] = (h) => x.value = !0)
|
|
2833
2855
|
}, {
|
|
2834
|
-
default:
|
|
2835
|
-
|
|
2856
|
+
default: C(() => [
|
|
2857
|
+
M(v, {
|
|
2836
2858
|
name: "ant-design:filter-outlined",
|
|
2837
2859
|
class: "text-lg"
|
|
2838
2860
|
})
|
|
@@ -2840,10 +2862,10 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2840
2862
|
_: 1
|
|
2841
2863
|
})
|
|
2842
2864
|
]),
|
|
2843
|
-
|
|
2844
|
-
|
|
2865
|
+
O(b.$slots, "headerCardContainer"),
|
|
2866
|
+
O(b.$slots, "title")
|
|
2845
2867
|
]),
|
|
2846
|
-
a.value ? (
|
|
2868
|
+
a.value ? (g(), B(An, {
|
|
2847
2869
|
key: 0,
|
|
2848
2870
|
loading: e.loading,
|
|
2849
2871
|
columns: e.columns,
|
|
@@ -2854,41 +2876,41 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2854
2876
|
"show-actions-column": e.showActionsColumn,
|
|
2855
2877
|
pagination: e.pagination,
|
|
2856
2878
|
meta: e.meta,
|
|
2857
|
-
onRestore:
|
|
2858
|
-
onEdit:
|
|
2859
|
-
onDelete:
|
|
2860
|
-
onPageChange:
|
|
2861
|
-
onSizeChange:
|
|
2862
|
-
},
|
|
2863
|
-
|
|
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 ? {
|
|
2864
2886
|
name: "titleCard",
|
|
2865
|
-
fn:
|
|
2866
|
-
|
|
2887
|
+
fn: C((h) => [
|
|
2888
|
+
O(b.$slots, "titleCard", ue(de(h)))
|
|
2867
2889
|
]),
|
|
2868
2890
|
key: "0"
|
|
2869
2891
|
} : void 0,
|
|
2870
|
-
|
|
2892
|
+
b.$slots.body ? {
|
|
2871
2893
|
name: "bodyCard",
|
|
2872
|
-
fn:
|
|
2873
|
-
|
|
2894
|
+
fn: C((h) => [
|
|
2895
|
+
O(b.$slots, "body", ue(de(h)))
|
|
2874
2896
|
]),
|
|
2875
2897
|
key: "1"
|
|
2876
2898
|
} : void 0,
|
|
2877
|
-
|
|
2899
|
+
b.$slots.footer ? {
|
|
2878
2900
|
name: "footerCard",
|
|
2879
|
-
fn:
|
|
2880
|
-
|
|
2901
|
+
fn: C((h) => [
|
|
2902
|
+
O(b.$slots, "footer", ue(de(h)))
|
|
2881
2903
|
]),
|
|
2882
2904
|
key: "2"
|
|
2883
2905
|
} : void 0
|
|
2884
|
-
]), 1032, ["loading", "columns", "data-source", "card-layout", "can-edit", "edit-action", "show-actions-column", "pagination", "meta"])) :
|
|
2885
|
-
], 64)) : (
|
|
2906
|
+
]), 1032, ["loading", "columns", "data-source", "card-layout", "can-edit", "edit-action", "show-actions-column", "pagination", "meta"])) : j("", !0)
|
|
2907
|
+
], 64)) : (g(), B(Xn, {
|
|
2886
2908
|
key: 1,
|
|
2887
2909
|
loading: e.loading,
|
|
2888
2910
|
pagination: e.pagination,
|
|
2889
2911
|
columns: e.columns,
|
|
2890
2912
|
"data-source": e.dataSource,
|
|
2891
|
-
"filter-values":
|
|
2913
|
+
"filter-values": c.value,
|
|
2892
2914
|
meta: e.meta,
|
|
2893
2915
|
"can-edit": e.canEdit,
|
|
2894
2916
|
"edit-action": e.editAction,
|
|
@@ -2897,64 +2919,64 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2897
2919
|
"columns-visibility": m.value,
|
|
2898
2920
|
"disable-column-filter-dropdowns": t.disableColumnFilterDropdowns === !0,
|
|
2899
2921
|
"show-filter-button": t.enableTableFilterDrawer === !0,
|
|
2900
|
-
onOpenColumnDrawer:
|
|
2901
|
-
onOpenFilterDrawer:
|
|
2902
|
-
"onUpdate:filterValues":
|
|
2903
|
-
onFilterApply:
|
|
2904
|
-
onRestore:
|
|
2905
|
-
onEdit:
|
|
2906
|
-
onDelete:
|
|
2907
|
-
onSortChange:
|
|
2908
|
-
onPageChange:
|
|
2909
|
-
onSizeChange:
|
|
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))
|
|
2910
2932
|
}, {
|
|
2911
|
-
title:
|
|
2912
|
-
|
|
2933
|
+
title: C(() => [
|
|
2934
|
+
O(b.$slots, "title")
|
|
2913
2935
|
]),
|
|
2914
|
-
bodyCell:
|
|
2915
|
-
|
|
2936
|
+
bodyCell: C((h) => [
|
|
2937
|
+
O(b.$slots, "bodyCell", ue(de(h)))
|
|
2916
2938
|
]),
|
|
2917
|
-
actionColumn:
|
|
2918
|
-
|
|
2939
|
+
actionColumn: C((h) => [
|
|
2940
|
+
O(b.$slots, "actionColumn", ue(de(h)))
|
|
2919
2941
|
]),
|
|
2920
2942
|
_: 3
|
|
2921
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"])),
|
|
2922
|
-
|
|
2923
|
-
visible:
|
|
2924
|
-
setVisible: (
|
|
2925
|
-
|
|
2944
|
+
O(b.$slots, "filtersDrawer", {
|
|
2945
|
+
visible: x.value,
|
|
2946
|
+
setVisible: (h) => {
|
|
2947
|
+
x.value = h;
|
|
2926
2948
|
},
|
|
2927
|
-
filters:
|
|
2928
|
-
updateFilters:
|
|
2949
|
+
filters: c.value,
|
|
2950
|
+
updateFilters: d,
|
|
2929
2951
|
emitFilterApply: S
|
|
2930
2952
|
}, () => [
|
|
2931
|
-
t.useFilterModal === !0 ? (
|
|
2953
|
+
t.useFilterModal === !0 ? (g(), B(tr, {
|
|
2932
2954
|
key: 0,
|
|
2933
|
-
visible:
|
|
2934
|
-
"onUpdate:visible":
|
|
2955
|
+
visible: x.value,
|
|
2956
|
+
"onUpdate:visible": s[16] || (s[16] = (h) => x.value = h),
|
|
2935
2957
|
columns: e.columns,
|
|
2936
|
-
"filter-values":
|
|
2937
|
-
"onUpdate:filterValues":
|
|
2938
|
-
onFilterApply:
|
|
2939
|
-
}, null, 8, ["visible", "columns", "filter-values"])) : (
|
|
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, {
|
|
2940
2962
|
key: 1,
|
|
2941
|
-
visible:
|
|
2942
|
-
"onUpdate:visible":
|
|
2963
|
+
visible: x.value,
|
|
2964
|
+
"onUpdate:visible": s[18] || (s[18] = (h) => x.value = h),
|
|
2943
2965
|
columns: e.columns,
|
|
2944
|
-
"filter-values":
|
|
2945
|
-
"onUpdate:filterValues":
|
|
2946
|
-
onFilterApply:
|
|
2966
|
+
"filter-values": c.value,
|
|
2967
|
+
"onUpdate:filterValues": d,
|
|
2968
|
+
onFilterApply: s[19] || (s[19] = (h) => n("filterApply", h))
|
|
2947
2969
|
}, null, 8, ["visible", "columns", "filter-values"]))
|
|
2948
2970
|
]),
|
|
2949
|
-
|
|
2971
|
+
M(qn, {
|
|
2950
2972
|
visible: i.value,
|
|
2951
|
-
"onUpdate:visible":
|
|
2973
|
+
"onUpdate:visible": s[20] || (s[20] = (h) => i.value = h),
|
|
2952
2974
|
"model-value": m.value,
|
|
2953
|
-
"onUpdate:modelValue":
|
|
2975
|
+
"onUpdate:modelValue": s[21] || (s[21] = (h) => m.value = h),
|
|
2954
2976
|
"view-mode": r.value,
|
|
2955
|
-
"onUpdate:viewMode":
|
|
2977
|
+
"onUpdate:viewMode": s[22] || (s[22] = (h) => r.value = h),
|
|
2956
2978
|
"card-layout": l.value,
|
|
2957
|
-
"onUpdate:cardLayout":
|
|
2979
|
+
"onUpdate:cardLayout": s[23] || (s[23] = (h) => l.value = h),
|
|
2958
2980
|
columns: e.columns,
|
|
2959
2981
|
"show-actions-column": e.showActionsColumn,
|
|
2960
2982
|
"disable-view-mode": e.disableViewMode
|
|
@@ -2962,7 +2984,7 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2962
2984
|
]);
|
|
2963
2985
|
};
|
|
2964
2986
|
}
|
|
2965
|
-
}),
|
|
2987
|
+
}), br = /* @__PURE__ */ z({
|
|
2966
2988
|
__name: "LazyLoadContainer",
|
|
2967
2989
|
props: {
|
|
2968
2990
|
onIntersect: {},
|
|
@@ -2971,52 +2993,52 @@ const er = { class: "efko-dataview" }, tr = { class: "flex items-center justify-
|
|
|
2971
2993
|
rootMargin: { default: "0px" }
|
|
2972
2994
|
},
|
|
2973
2995
|
setup(e) {
|
|
2974
|
-
const o = e, t =
|
|
2996
|
+
const o = e, t = _(null);
|
|
2975
2997
|
let n = null;
|
|
2976
2998
|
const r = (a) => {
|
|
2977
2999
|
a[0].isIntersecting && o.onIntersect && (o.onIntersect(), o.once && n && n.disconnect());
|
|
2978
3000
|
};
|
|
2979
|
-
return
|
|
3001
|
+
return le(() => {
|
|
2980
3002
|
n = new IntersectionObserver(r, {
|
|
2981
3003
|
threshold: o.threshold,
|
|
2982
3004
|
rootMargin: o.rootMargin
|
|
2983
3005
|
}), t.value && n.observe(t.value);
|
|
2984
|
-
}),
|
|
3006
|
+
}), Ue(() => {
|
|
2985
3007
|
n == null || n.disconnect();
|
|
2986
|
-
}), (a, l) => (
|
|
3008
|
+
}), (a, l) => (g(), A("div", {
|
|
2987
3009
|
ref_key: "container",
|
|
2988
3010
|
ref: t
|
|
2989
3011
|
}, [
|
|
2990
|
-
|
|
3012
|
+
O(a.$slots, "default")
|
|
2991
3013
|
], 512));
|
|
2992
3014
|
}
|
|
2993
3015
|
});
|
|
2994
3016
|
export {
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
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,
|
|
3004
3026
|
ee as FilterMode,
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
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
|
|
3021
3043
|
};
|
|
3022
3044
|
//# sourceMappingURL=data-view.es.js.map
|