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