@sulzanoks/vue-datatable 0.3.5 → 0.3.6
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/datatable-card.es.js +177 -172
- package/dist/datatable-card.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/Components/DatatableCard.vue +6 -1
|
@@ -4,7 +4,7 @@ function go(e, t) {
|
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString: ya } = Object.prototype, { getPrototypeOf:
|
|
7
|
+
const { toString: ya } = Object.prototype, { getPrototypeOf: bi } = Object, Vr = ((e) => (t) => {
|
|
8
8
|
const r = ya.call(t);
|
|
9
9
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
10
10
|
})(/* @__PURE__ */ Object.create(null)), Pe = (e) => (e = e.toLowerCase(), (t) => Vr(t) === e), Wr = (e) => (t) => typeof t === e, { isArray: _t } = Array, Qt = Wr("undefined");
|
|
@@ -16,12 +16,12 @@ function ga(e) {
|
|
|
16
16
|
let t;
|
|
17
17
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && vo(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const va = Wr("string"), fe = Wr("function"),
|
|
19
|
+
const va = Wr("string"), fe = Wr("function"), bo = Wr("number"), zr = (e) => e !== null && typeof e == "object", ba = (e) => e === !0 || e === !1, Ir = (e) => {
|
|
20
20
|
if (Vr(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
|
-
const t =
|
|
22
|
+
const t = bi(e);
|
|
23
23
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
-
},
|
|
24
|
+
}, Sa = Pe("Date"), wa = Pe("File"), _a = Pe("Blob"), Aa = Pe("FileList"), Oa = (e) => zr(e) && fe(e.pipe), Ea = (e) => {
|
|
25
25
|
let t;
|
|
26
26
|
return e && (typeof FormData == "function" && e instanceof FormData || fe(e.append) && ((t = Vr(e)) === "formdata" || // detect form-data instance
|
|
27
27
|
t === "object" && fe(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -40,7 +40,7 @@ function Yt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
40
40
|
c = a[i], t.call(null, e[c], c, e);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function So(e, t) {
|
|
44
44
|
t = t.toLowerCase();
|
|
45
45
|
const r = Object.keys(e);
|
|
46
46
|
let i = r.length, o;
|
|
@@ -52,7 +52,7 @@ function bo(e, t) {
|
|
|
52
52
|
const wo = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), _o = (e) => !Qt(e) && e !== wo;
|
|
53
53
|
function ii() {
|
|
54
54
|
const { caseless: e } = _o(this) && this || {}, t = {}, r = (i, o) => {
|
|
55
|
-
const a = e &&
|
|
55
|
+
const a = e && So(t, o) || o;
|
|
56
56
|
Ir(t[a]) && Ir(i) ? t[a] = ii(t[a], i) : Ir(i) ? t[a] = ii({}, i) : _t(i) ? t[a] = i.slice() : t[a] = i;
|
|
57
57
|
};
|
|
58
58
|
for (let i = 0, o = arguments.length; i < o; i++)
|
|
@@ -73,7 +73,7 @@ const Ca = (e, t, r, { allOwnKeys: i } = {}) => (Yt(t, (o, a) => {
|
|
|
73
73
|
do {
|
|
74
74
|
for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; )
|
|
75
75
|
l = o[a], (!i || i(l, e, t)) && !c[l] && (t[l] = e[l], c[l] = !0);
|
|
76
|
-
e = r !== !1 &&
|
|
76
|
+
e = r !== !1 && bi(e);
|
|
77
77
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
79
|
}, Ia = (e, t, r) => {
|
|
@@ -86,13 +86,13 @@ const Ca = (e, t, r, { allOwnKeys: i } = {}) => (Yt(t, (o, a) => {
|
|
|
86
86
|
if (_t(e))
|
|
87
87
|
return e;
|
|
88
88
|
let t = e.length;
|
|
89
|
-
if (!
|
|
89
|
+
if (!bo(t))
|
|
90
90
|
return null;
|
|
91
91
|
const r = new Array(t);
|
|
92
92
|
for (; t-- > 0; )
|
|
93
93
|
r[t] = e[t];
|
|
94
94
|
return r;
|
|
95
|
-
}, La = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
95
|
+
}, La = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && bi(Uint8Array)), Ba = (e, t) => {
|
|
96
96
|
const i = (e && e[Symbol.iterator]).call(e);
|
|
97
97
|
let o;
|
|
98
98
|
for (; (o = i.next()) && !o.done; ) {
|
|
@@ -177,12 +177,12 @@ const za = (e) => {
|
|
|
177
177
|
isFormData: Ea,
|
|
178
178
|
isArrayBufferView: ga,
|
|
179
179
|
isString: va,
|
|
180
|
-
isNumber:
|
|
181
|
-
isBoolean:
|
|
180
|
+
isNumber: bo,
|
|
181
|
+
isBoolean: ba,
|
|
182
182
|
isObject: zr,
|
|
183
183
|
isPlainObject: Ir,
|
|
184
184
|
isUndefined: Qt,
|
|
185
|
-
isDate:
|
|
185
|
+
isDate: Sa,
|
|
186
186
|
isFile: wa,
|
|
187
187
|
isBlob: _a,
|
|
188
188
|
isRegExp: Ua,
|
|
@@ -214,7 +214,7 @@ const za = (e) => {
|
|
|
214
214
|
toCamelCase: ja,
|
|
215
215
|
noop: qa,
|
|
216
216
|
toFiniteNumber: Ha,
|
|
217
|
-
findKey:
|
|
217
|
+
findKey: So,
|
|
218
218
|
global: wo,
|
|
219
219
|
isContextDefined: _o,
|
|
220
220
|
ALPHABET: Oo,
|
|
@@ -330,12 +330,12 @@ function Gr(e, t, r) {
|
|
|
330
330
|
}
|
|
331
331
|
return oi(d) ? !0 : (t.append(Ui(_, g, a), f(d)), !1);
|
|
332
332
|
}
|
|
333
|
-
const v = [],
|
|
333
|
+
const v = [], b = Object.assign(Xa, {
|
|
334
334
|
defaultVisitor: h,
|
|
335
335
|
convertValue: f,
|
|
336
336
|
isVisitable: oi
|
|
337
337
|
});
|
|
338
|
-
function
|
|
338
|
+
function S(d, g) {
|
|
339
339
|
if (!m.isUndefined(d)) {
|
|
340
340
|
if (v.indexOf(d) !== -1)
|
|
341
341
|
throw Error("Circular reference detected in " + g.join("."));
|
|
@@ -345,14 +345,14 @@ function Gr(e, t, r) {
|
|
|
345
345
|
w,
|
|
346
346
|
m.isString(C) ? C.trim() : C,
|
|
347
347
|
g,
|
|
348
|
-
|
|
349
|
-
)) === !0 &&
|
|
348
|
+
b
|
|
349
|
+
)) === !0 && S(w, g ? g.concat(C) : [C]);
|
|
350
350
|
}), v.pop();
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
if (!m.isObject(e))
|
|
354
354
|
throw new TypeError("data must be an object");
|
|
355
|
-
return
|
|
355
|
+
return S(e), t;
|
|
356
356
|
}
|
|
357
357
|
function ki(e) {
|
|
358
358
|
const t = {
|
|
@@ -368,10 +368,10 @@ function ki(e) {
|
|
|
368
368
|
return t[i];
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Si(e, t) {
|
|
372
372
|
this._pairs = [], e && Gr(e, this, t);
|
|
373
373
|
}
|
|
374
|
-
const Co =
|
|
374
|
+
const Co = Si.prototype;
|
|
375
375
|
Co.append = function(t, r) {
|
|
376
376
|
this._pairs.push([t, r]);
|
|
377
377
|
};
|
|
@@ -391,7 +391,7 @@ function Ro(e, t, r) {
|
|
|
391
391
|
return e;
|
|
392
392
|
const i = r && r.encode || Ya, o = r && r.serialize;
|
|
393
393
|
let a;
|
|
394
|
-
if (o ? a = o(t, r) : a = m.isURLSearchParams(t) ? t.toString() : new
|
|
394
|
+
if (o ? a = o(t, r) : a = m.isURLSearchParams(t) ? t.toString() : new Si(t, r).toString(i), a) {
|
|
395
395
|
const l = e.indexOf("#");
|
|
396
396
|
l !== -1 && (e = e.slice(0, l)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
397
397
|
}
|
|
@@ -455,11 +455,11 @@ const $i = Za, xo = {
|
|
|
455
455
|
silentJSONParsing: !0,
|
|
456
456
|
forcedJSONParsing: !0,
|
|
457
457
|
clarifyTimeoutError: !1
|
|
458
|
-
}, es = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
458
|
+
}, es = typeof URLSearchParams < "u" ? URLSearchParams : Si, ts = typeof FormData < "u" ? FormData : null, rs = typeof Blob < "u" ? Blob : null, ns = (() => {
|
|
459
459
|
let e;
|
|
460
460
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
461
461
|
})(), is = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
462
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
462
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), be = {
|
|
463
463
|
isBrowser: !0,
|
|
464
464
|
classes: {
|
|
465
465
|
URLSearchParams: es,
|
|
@@ -471,9 +471,9 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
471
471
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
472
472
|
};
|
|
473
473
|
function os(e, t) {
|
|
474
|
-
return Gr(e, new
|
|
474
|
+
return Gr(e, new be.classes.URLSearchParams(), Object.assign({
|
|
475
475
|
visitor: function(r, i, o, a) {
|
|
476
|
-
return
|
|
476
|
+
return be.isNode && m.isBuffer(r) ? (this.append(i, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
477
477
|
}
|
|
478
478
|
}, t));
|
|
479
479
|
}
|
|
@@ -515,7 +515,7 @@ function ls(e, t, r) {
|
|
|
515
515
|
}
|
|
516
516
|
const wi = {
|
|
517
517
|
transitional: xo,
|
|
518
|
-
adapter:
|
|
518
|
+
adapter: be.isNode ? "http" : "xhr",
|
|
519
519
|
transformRequest: [function(t, r) {
|
|
520
520
|
const i = r.getContentType() || "", o = i.indexOf("application/json") > -1, a = m.isObject(t);
|
|
521
521
|
if (a && m.isHTMLForm(t) && (t = new FormData(t)), m.isFormData(t))
|
|
@@ -564,8 +564,8 @@ const wi = {
|
|
|
564
564
|
maxContentLength: -1,
|
|
565
565
|
maxBodyLength: -1,
|
|
566
566
|
env: {
|
|
567
|
-
FormData:
|
|
568
|
-
Blob:
|
|
567
|
+
FormData: be.classes.FormData,
|
|
568
|
+
Blob: be.classes.Blob
|
|
569
569
|
},
|
|
570
570
|
validateStatus: function(t) {
|
|
571
571
|
return t >= 200 && t < 300;
|
|
@@ -791,7 +791,7 @@ function ys(e, t, r) {
|
|
|
791
791
|
r
|
|
792
792
|
));
|
|
793
793
|
}
|
|
794
|
-
const ms =
|
|
794
|
+
const ms = be.isStandardBrowserEnv ? (
|
|
795
795
|
// Standard browser envs support document.cookie
|
|
796
796
|
function() {
|
|
797
797
|
return {
|
|
@@ -831,7 +831,7 @@ function vs(e, t) {
|
|
|
831
831
|
function Fo(e, t) {
|
|
832
832
|
return e && !gs(t) ? vs(e, t) : t;
|
|
833
833
|
}
|
|
834
|
-
const
|
|
834
|
+
const bs = be.isStandardBrowserEnv ? (
|
|
835
835
|
// Standard browser envs have full support of the APIs needed to test
|
|
836
836
|
// whether the request URL is of the same origin as current location.
|
|
837
837
|
function() {
|
|
@@ -863,7 +863,7 @@ const Ss = Se.isStandardBrowserEnv ? (
|
|
|
863
863
|
};
|
|
864
864
|
}()
|
|
865
865
|
);
|
|
866
|
-
function
|
|
866
|
+
function Ss(e) {
|
|
867
867
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
868
868
|
return t && t[1] || "";
|
|
869
869
|
}
|
|
@@ -874,13 +874,13 @@ function ws(e, t) {
|
|
|
874
874
|
return t = t !== void 0 ? t : 1e3, function(p) {
|
|
875
875
|
const f = Date.now(), h = i[a];
|
|
876
876
|
l || (l = f), r[o] = p, i[o] = f;
|
|
877
|
-
let v = a,
|
|
877
|
+
let v = a, b = 0;
|
|
878
878
|
for (; v !== o; )
|
|
879
|
-
|
|
879
|
+
b += r[v++], v = v % e;
|
|
880
880
|
if (o = (o + 1) % e, o === a && (a = (a + 1) % e), f - l < t)
|
|
881
881
|
return;
|
|
882
|
-
const
|
|
883
|
-
return
|
|
882
|
+
const S = h && f - h;
|
|
883
|
+
return S ? Math.round(b * 1e3 / S) : void 0;
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
886
|
function Hi(e, t) {
|
|
@@ -909,24 +909,24 @@ const _s = typeof XMLHttpRequest < "u", As = _s && function(e) {
|
|
|
909
909
|
function p() {
|
|
910
910
|
e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
|
|
911
911
|
}
|
|
912
|
-
m.isFormData(o) && (
|
|
912
|
+
m.isFormData(o) && (be.isStandardBrowserEnv || be.isStandardBrowserWebWorkerEnv ? a.setContentType(!1) : a.setContentType("multipart/form-data;", !1));
|
|
913
913
|
let f = new XMLHttpRequest();
|
|
914
914
|
if (e.auth) {
|
|
915
|
-
const
|
|
916
|
-
a.set("Authorization", "Basic " + btoa(
|
|
915
|
+
const S = e.auth.username || "", d = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
916
|
+
a.set("Authorization", "Basic " + btoa(S + ":" + d));
|
|
917
917
|
}
|
|
918
918
|
const h = Fo(e.baseURL, e.url);
|
|
919
919
|
f.open(e.method.toUpperCase(), Ro(h, e.params, e.paramsSerializer), !0), f.timeout = e.timeout;
|
|
920
920
|
function v() {
|
|
921
921
|
if (!f)
|
|
922
922
|
return;
|
|
923
|
-
const
|
|
923
|
+
const S = De.from(
|
|
924
924
|
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
925
925
|
), g = {
|
|
926
926
|
data: !l || l === "text" || l === "json" ? f.responseText : f.response,
|
|
927
927
|
status: f.status,
|
|
928
928
|
statusText: f.statusText,
|
|
929
|
-
headers:
|
|
929
|
+
headers: S,
|
|
930
930
|
config: e,
|
|
931
931
|
request: f
|
|
932
932
|
};
|
|
@@ -951,18 +951,18 @@ const _s = typeof XMLHttpRequest < "u", As = _s && function(e) {
|
|
|
951
951
|
e,
|
|
952
952
|
f
|
|
953
953
|
)), f = null;
|
|
954
|
-
},
|
|
955
|
-
const
|
|
956
|
-
|
|
954
|
+
}, be.isStandardBrowserEnv) {
|
|
955
|
+
const S = (e.withCredentials || bs(h)) && e.xsrfCookieName && ms.read(e.xsrfCookieName);
|
|
956
|
+
S && a.set(e.xsrfHeaderName, S);
|
|
957
957
|
}
|
|
958
958
|
o === void 0 && a.setContentType(null), "setRequestHeader" in f && m.forEach(a.toJSON(), function(d, g) {
|
|
959
959
|
f.setRequestHeader(g, d);
|
|
960
|
-
}), m.isUndefined(e.withCredentials) || (f.withCredentials = !!e.withCredentials), l && l !== "json" && (f.responseType = e.responseType), typeof e.onDownloadProgress == "function" && f.addEventListener("progress", Hi(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Hi(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (
|
|
961
|
-
f && (i(!
|
|
960
|
+
}), m.isUndefined(e.withCredentials) || (f.withCredentials = !!e.withCredentials), l && l !== "json" && (f.responseType = e.responseType), typeof e.onDownloadProgress == "function" && f.addEventListener("progress", Hi(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Hi(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (S) => {
|
|
961
|
+
f && (i(!S || S.type ? new Zt(null, e, f) : S), f.abort(), f = null);
|
|
962
962
|
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
|
|
963
|
-
const
|
|
964
|
-
if (
|
|
965
|
-
i(new B("Unsupported protocol " +
|
|
963
|
+
const b = Ss(h);
|
|
964
|
+
if (b && be.protocols.indexOf(b) === -1) {
|
|
965
|
+
i(new B("Unsupported protocol " + b + ":", B.ERR_BAD_REQUEST, e));
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
968
|
f.send(o || null);
|
|
@@ -1084,8 +1084,8 @@ function gt(e, t) {
|
|
|
1084
1084
|
headers: (f, h) => o(Wi(f), Wi(h), !0)
|
|
1085
1085
|
};
|
|
1086
1086
|
return m.forEach(Object.keys(Object.assign({}, e, t)), function(h) {
|
|
1087
|
-
const v = p[h] || o,
|
|
1088
|
-
m.isUndefined(
|
|
1087
|
+
const v = p[h] || o, b = v(e[h], t[h], h);
|
|
1088
|
+
m.isUndefined(b) && v !== c || (r[h] = b);
|
|
1089
1089
|
}), r;
|
|
1090
1090
|
}
|
|
1091
1091
|
const Bo = "1.5.0", Ai = {};
|
|
@@ -1181,30 +1181,30 @@ class Dr {
|
|
|
1181
1181
|
this.interceptors.response.forEach(function(g) {
|
|
1182
1182
|
f.push(g.fulfilled, g.rejected);
|
|
1183
1183
|
});
|
|
1184
|
-
let h, v = 0,
|
|
1184
|
+
let h, v = 0, b;
|
|
1185
1185
|
if (!p) {
|
|
1186
1186
|
const d = [Vi.bind(this), void 0];
|
|
1187
|
-
for (d.unshift.apply(d, c), d.push.apply(d, f),
|
|
1187
|
+
for (d.unshift.apply(d, c), d.push.apply(d, f), b = d.length, h = Promise.resolve(r); v < b; )
|
|
1188
1188
|
h = h.then(d[v++], d[v++]);
|
|
1189
1189
|
return h;
|
|
1190
1190
|
}
|
|
1191
|
-
|
|
1192
|
-
let
|
|
1193
|
-
for (v = 0; v <
|
|
1191
|
+
b = c.length;
|
|
1192
|
+
let S = r;
|
|
1193
|
+
for (v = 0; v < b; ) {
|
|
1194
1194
|
const d = c[v++], g = c[v++];
|
|
1195
1195
|
try {
|
|
1196
|
-
|
|
1196
|
+
S = d(S);
|
|
1197
1197
|
} catch (_) {
|
|
1198
1198
|
g.call(this, _);
|
|
1199
1199
|
break;
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
try {
|
|
1203
|
-
h = Vi.call(this,
|
|
1203
|
+
h = Vi.call(this, S);
|
|
1204
1204
|
} catch (d) {
|
|
1205
1205
|
return Promise.reject(d);
|
|
1206
1206
|
}
|
|
1207
|
-
for (v = 0,
|
|
1207
|
+
for (v = 0, b = f.length; v < b; )
|
|
1208
1208
|
h = h.then(f[v++], f[v++]);
|
|
1209
1209
|
return h;
|
|
1210
1210
|
}
|
|
@@ -1561,7 +1561,7 @@ var zs = function() {
|
|
|
1561
1561
|
f.prototype = r.prototype, o.prototype = new f(), f.prototype = null;
|
|
1562
1562
|
}
|
|
1563
1563
|
return o;
|
|
1564
|
-
}, tl = el, Ei = Function.prototype.bind || tl, rl = Ei, nl = rl.call(Function.call, Object.prototype.hasOwnProperty), x,
|
|
1564
|
+
}, tl = el, Ei = Function.prototype.bind || tl, rl = Ei, nl = rl.call(Function.call, Object.prototype.hasOwnProperty), x, bt = SyntaxError, jo = Function, mt = TypeError, Jn = function(e) {
|
|
1565
1565
|
try {
|
|
1566
1566
|
return jo('"use strict"; return (' + e + ").constructor;")();
|
|
1567
1567
|
} catch {
|
|
@@ -1643,7 +1643,7 @@ var Kn = function() {
|
|
|
1643
1643
|
"%String%": String,
|
|
1644
1644
|
"%StringIteratorPrototype%": pt && G ? G(""[Symbol.iterator]()) : x,
|
|
1645
1645
|
"%Symbol%": pt ? Symbol : x,
|
|
1646
|
-
"%SyntaxError%":
|
|
1646
|
+
"%SyntaxError%": bt,
|
|
1647
1647
|
"%ThrowTypeError%": il,
|
|
1648
1648
|
"%TypedArray%": al,
|
|
1649
1649
|
"%TypeError%": mt,
|
|
@@ -1734,9 +1734,9 @@ var ll = function e(t) {
|
|
|
1734
1734
|
}, er = Ei, jr = nl, cl = er.call(Function.call, Array.prototype.concat), ul = er.call(Function.apply, Array.prototype.splice), Xi = er.call(Function.call, String.prototype.replace), Ur = er.call(Function.call, String.prototype.slice), fl = er.call(Function.call, RegExp.prototype.exec), dl = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, pl = /\\(\\)?/g, hl = function(t) {
|
|
1735
1735
|
var r = Ur(t, 0, 1), i = Ur(t, -1);
|
|
1736
1736
|
if (r === "%" && i !== "%")
|
|
1737
|
-
throw new
|
|
1737
|
+
throw new bt("invalid intrinsic syntax, expected closing `%`");
|
|
1738
1738
|
if (i === "%" && r !== "%")
|
|
1739
|
-
throw new
|
|
1739
|
+
throw new bt("invalid intrinsic syntax, expected opening `%`");
|
|
1740
1740
|
var o = [];
|
|
1741
1741
|
return Xi(t, dl, function(a, l, c, p) {
|
|
1742
1742
|
o[o.length] = c ? Xi(p, pl, "$1") : l || a;
|
|
@@ -1753,33 +1753,33 @@ var ll = function e(t) {
|
|
|
1753
1753
|
value: a
|
|
1754
1754
|
};
|
|
1755
1755
|
}
|
|
1756
|
-
throw new
|
|
1756
|
+
throw new bt("intrinsic " + t + " does not exist!");
|
|
1757
1757
|
}, Ti = function(t, r) {
|
|
1758
1758
|
if (typeof t != "string" || t.length === 0)
|
|
1759
1759
|
throw new mt("intrinsic name must be a non-empty string");
|
|
1760
1760
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1761
1761
|
throw new mt('"allowMissing" argument must be a boolean');
|
|
1762
1762
|
if (fl(/^%?[^%]*%?$/, t) === null)
|
|
1763
|
-
throw new
|
|
1763
|
+
throw new bt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1764
1764
|
var i = hl(t), o = i.length > 0 ? i[0] : "", a = yl("%" + o + "%", r), l = a.name, c = a.value, p = !1, f = a.alias;
|
|
1765
1765
|
f && (o = f[0], ul(i, cl([0, 1], f)));
|
|
1766
1766
|
for (var h = 1, v = !0; h < i.length; h += 1) {
|
|
1767
|
-
var
|
|
1768
|
-
if ((
|
|
1769
|
-
throw new
|
|
1770
|
-
if ((
|
|
1767
|
+
var b = i[h], S = Ur(b, 0, 1), d = Ur(b, -1);
|
|
1768
|
+
if ((S === '"' || S === "'" || S === "`" || d === '"' || d === "'" || d === "`") && S !== d)
|
|
1769
|
+
throw new bt("property names with quotes must have matching quotes");
|
|
1770
|
+
if ((b === "constructor" || !v) && (p = !0), o += "." + b, l = "%" + o + "%", jr(et, l))
|
|
1771
1771
|
c = et[l];
|
|
1772
1772
|
else if (c != null) {
|
|
1773
|
-
if (!(
|
|
1773
|
+
if (!(b in c)) {
|
|
1774
1774
|
if (!r)
|
|
1775
1775
|
throw new mt("base intrinsic for " + t + " exists, but the property is not available.");
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
1778
1778
|
if (Ze && h + 1 >= i.length) {
|
|
1779
|
-
var g = Ze(c,
|
|
1780
|
-
v = !!g, v && "get" in g && !("originalValue" in g.get) ? c = g.get : c = c[
|
|
1779
|
+
var g = Ze(c, b);
|
|
1780
|
+
v = !!g, v && "get" in g && !("originalValue" in g.get) ? c = g.get : c = c[b];
|
|
1781
1781
|
} else
|
|
1782
|
-
v = jr(c,
|
|
1782
|
+
v = jr(c, b), c = c[b];
|
|
1783
1783
|
v && !p && (et[l] = c);
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
@@ -1794,16 +1794,16 @@ var ll = function e(t) {
|
|
|
1794
1794
|
c = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
e.exports = function(v) {
|
|
1797
|
-
var
|
|
1797
|
+
var b = a(t, o, arguments);
|
|
1798
1798
|
if (l && c) {
|
|
1799
|
-
var
|
|
1800
|
-
|
|
1801
|
-
|
|
1799
|
+
var S = l(b, "length");
|
|
1800
|
+
S.configurable && c(
|
|
1801
|
+
b,
|
|
1802
1802
|
"length",
|
|
1803
1803
|
{ value: 1 + p(0, v.length - (arguments.length - 1)) }
|
|
1804
1804
|
);
|
|
1805
1805
|
}
|
|
1806
|
-
return
|
|
1806
|
+
return b;
|
|
1807
1807
|
};
|
|
1808
1808
|
var f = function() {
|
|
1809
1809
|
return a(t, i, arguments);
|
|
@@ -1814,11 +1814,11 @@ var ml = Uo.exports, ko = Ti, $o = ml, gl = $o(ko("String.prototype.indexOf")),
|
|
|
1814
1814
|
var i = ko(t, !!r);
|
|
1815
1815
|
return typeof i == "function" && gl(t, ".prototype.") > -1 ? $o(i) : i;
|
|
1816
1816
|
};
|
|
1817
|
-
const
|
|
1817
|
+
const bl = {}, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1818
1818
|
__proto__: null,
|
|
1819
|
-
default:
|
|
1820
|
-
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ xs(
|
|
1821
|
-
var Pi = typeof Map == "function" && Map.prototype, Qn = Object.getOwnPropertyDescriptor && Pi ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, kr = Pi && Qn && typeof Qn.get == "function" ? Qn.get : null, Yi = Pi && Map.prototype.forEach, Ci = typeof Set == "function" && Set.prototype, Xn = Object.getOwnPropertyDescriptor && Ci ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, $r = Ci && Xn && typeof Xn.get == "function" ? Xn.get : null, Zi = Ci && Set.prototype.forEach, _l = typeof WeakMap == "function" && WeakMap.prototype, Gt = _l ? WeakMap.prototype.has : null, Al = typeof WeakSet == "function" && WeakSet.prototype, Jt = Al ? WeakSet.prototype.has : null, Ol = typeof WeakRef == "function" && WeakRef.prototype, eo = Ol ? WeakRef.prototype.deref : null, El = Boolean.prototype.valueOf, Tl = Object.prototype.toString, Pl = Function.prototype.toString, Cl = String.prototype.match, Ri = String.prototype.slice, He = String.prototype.replace, Rl = String.prototype.toUpperCase, to = String.prototype.toLowerCase, qo = RegExp.prototype.test, ro = Array.prototype.concat, Te = Array.prototype.join, xl = Array.prototype.slice, no = Math.floor, ci = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Yn = Object.getOwnPropertySymbols, ui = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null,
|
|
1819
|
+
default: bl
|
|
1820
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ xs(Sl);
|
|
1821
|
+
var Pi = typeof Map == "function" && Map.prototype, Qn = Object.getOwnPropertyDescriptor && Pi ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, kr = Pi && Qn && typeof Qn.get == "function" ? Qn.get : null, Yi = Pi && Map.prototype.forEach, Ci = typeof Set == "function" && Set.prototype, Xn = Object.getOwnPropertyDescriptor && Ci ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, $r = Ci && Xn && typeof Xn.get == "function" ? Xn.get : null, Zi = Ci && Set.prototype.forEach, _l = typeof WeakMap == "function" && WeakMap.prototype, Gt = _l ? WeakMap.prototype.has : null, Al = typeof WeakSet == "function" && WeakSet.prototype, Jt = Al ? WeakSet.prototype.has : null, Ol = typeof WeakRef == "function" && WeakRef.prototype, eo = Ol ? WeakRef.prototype.deref : null, El = Boolean.prototype.valueOf, Tl = Object.prototype.toString, Pl = Function.prototype.toString, Cl = String.prototype.match, Ri = String.prototype.slice, He = String.prototype.replace, Rl = String.prototype.toUpperCase, to = String.prototype.toLowerCase, qo = RegExp.prototype.test, ro = Array.prototype.concat, Te = Array.prototype.join, xl = Array.prototype.slice, no = Math.floor, ci = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Yn = Object.getOwnPropertySymbols, ui = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, St = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === St || "symbol") ? Symbol.toStringTag : null, Ho = Object.prototype.propertyIsEnumerable, io = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
1822
1822
|
return e.__proto__;
|
|
1823
1823
|
} : null);
|
|
1824
1824
|
function oo(e, t) {
|
|
@@ -1874,22 +1874,22 @@ var fi = wl, ao = fi.custom, so = Wo(ao) ? ao : null, Nl = function e(t, r, i, o
|
|
|
1874
1874
|
o = [];
|
|
1875
1875
|
else if (zo(o, t) >= 0)
|
|
1876
1876
|
return "[Circular]";
|
|
1877
|
-
function
|
|
1877
|
+
function b(oe, pe, Re) {
|
|
1878
1878
|
if (pe && (o = xl.call(o), o.push(pe)), Re) {
|
|
1879
|
-
var
|
|
1879
|
+
var Se = {
|
|
1880
1880
|
depth: a.depth
|
|
1881
1881
|
};
|
|
1882
|
-
return qe(a, "quoteStyle") && (
|
|
1882
|
+
return qe(a, "quoteStyle") && (Se.quoteStyle = a.quoteStyle), e(oe, Se, i + 1, o);
|
|
1883
1883
|
}
|
|
1884
1884
|
return e(oe, a, i + 1, o);
|
|
1885
1885
|
}
|
|
1886
1886
|
if (typeof t == "function" && !lo(t)) {
|
|
1887
|
-
var
|
|
1888
|
-
return "[Function" + (
|
|
1887
|
+
var S = kl(t), d = Tr(t, b);
|
|
1888
|
+
return "[Function" + (S ? ": " + S : " (anonymous)") + "]" + (d.length > 0 ? " { " + Te.call(d, ", ") + " }" : "");
|
|
1889
1889
|
}
|
|
1890
1890
|
if (Wo(t)) {
|
|
1891
|
-
var g =
|
|
1892
|
-
return typeof t == "object" && !
|
|
1891
|
+
var g = St ? He.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : ui.call(t);
|
|
1892
|
+
return typeof t == "object" && !St ? Vt(g) : g;
|
|
1893
1893
|
}
|
|
1894
1894
|
if (zl(t)) {
|
|
1895
1895
|
for (var _ = "<" + to.call(String(t.nodeName)), w = t.attributes || [], C = 0; C < w.length; C++)
|
|
@@ -1899,12 +1899,12 @@ var fi = wl, ao = fi.custom, so = Wo(ao) ? ao : null, Nl = function e(t, r, i, o
|
|
|
1899
1899
|
if (di(t)) {
|
|
1900
1900
|
if (t.length === 0)
|
|
1901
1901
|
return "[]";
|
|
1902
|
-
var N = Tr(t,
|
|
1902
|
+
var N = Tr(t, b);
|
|
1903
1903
|
return v && !Jl(N) ? "[" + pi(N, v) + "]" : "[ " + Te.call(N, ", ") + " ]";
|
|
1904
1904
|
}
|
|
1905
1905
|
if (Ll(t)) {
|
|
1906
|
-
var R = Tr(t,
|
|
1907
|
-
return !("cause" in Error.prototype) && "cause" in t && !Ho.call(t, "cause") ? "{ [" + String(t) + "] " + Te.call(ro.call("[cause]: " +
|
|
1906
|
+
var R = Tr(t, b);
|
|
1907
|
+
return !("cause" in Error.prototype) && "cause" in t && !Ho.call(t, "cause") ? "{ [" + String(t) + "] " + Te.call(ro.call("[cause]: " + b(t.cause), R), ", ") + " }" : R.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + Te.call(R, ", ") + " }";
|
|
1908
1908
|
}
|
|
1909
1909
|
if (typeof t == "object" && l) {
|
|
1910
1910
|
if (so && typeof t[so] == "function" && fi)
|
|
@@ -1915,13 +1915,13 @@ var fi = wl, ao = fi.custom, so = Wo(ao) ? ao : null, Nl = function e(t, r, i, o
|
|
|
1915
1915
|
if ($l(t)) {
|
|
1916
1916
|
var $ = [];
|
|
1917
1917
|
return Yi && Yi.call(t, function(oe, pe) {
|
|
1918
|
-
$.push(
|
|
1918
|
+
$.push(b(pe, t, !0) + " => " + b(oe, t));
|
|
1919
1919
|
}), co("Map", kr.call(t), $, v);
|
|
1920
1920
|
}
|
|
1921
1921
|
if (Vl(t)) {
|
|
1922
1922
|
var O = [];
|
|
1923
1923
|
return Zi && Zi.call(t, function(oe) {
|
|
1924
|
-
O.push(
|
|
1924
|
+
O.push(b(oe, t));
|
|
1925
1925
|
}), co("Set", $r.call(t), O, v);
|
|
1926
1926
|
}
|
|
1927
1927
|
if (ql(t))
|
|
@@ -1931,15 +1931,15 @@ var fi = wl, ao = fi.custom, so = Wo(ao) ? ao : null, Nl = function e(t, r, i, o
|
|
|
1931
1931
|
if (Hl(t))
|
|
1932
1932
|
return Zn("WeakRef");
|
|
1933
1933
|
if (Ml(t))
|
|
1934
|
-
return Vt(
|
|
1934
|
+
return Vt(b(Number(t)));
|
|
1935
1935
|
if (jl(t))
|
|
1936
|
-
return Vt(
|
|
1936
|
+
return Vt(b(ci.call(t)));
|
|
1937
1937
|
if (Dl(t))
|
|
1938
1938
|
return Vt(El.call(t));
|
|
1939
1939
|
if (Bl(t))
|
|
1940
|
-
return Vt(
|
|
1940
|
+
return Vt(b(String(t)));
|
|
1941
1941
|
if (!Fl(t) && !lo(t)) {
|
|
1942
|
-
var T = Tr(t,
|
|
1942
|
+
var T = Tr(t, b), j = io ? io(t) === Object.prototype : t instanceof Object || t.constructor === Object, Q = t instanceof Object ? "" : "null prototype", X = !j && re && Object(t) === t && re in t ? Ri.call(Ve(t), 8, -1) : Q ? "Object" : "", de = j || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", V = de + (X || Q ? "[" + Te.call(ro.call([], X || [], Q || []), ": ") + "] " : "");
|
|
1943
1943
|
return T.length === 0 ? V + "{}" : v ? V + "{" + pi(T, v) + "}" : V + "{ " + Te.call(T, ", ") + " }";
|
|
1944
1944
|
}
|
|
1945
1945
|
return String(t);
|
|
@@ -1973,7 +1973,7 @@ function Dl(e) {
|
|
|
1973
1973
|
return Ve(e) === "[object Boolean]" && (!re || !(typeof e == "object" && re in e));
|
|
1974
1974
|
}
|
|
1975
1975
|
function Wo(e) {
|
|
1976
|
-
if (
|
|
1976
|
+
if (St)
|
|
1977
1977
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
1978
1978
|
if (typeof e == "symbol")
|
|
1979
1979
|
return !0;
|
|
@@ -2153,13 +2153,13 @@ function Tr(e, t) {
|
|
|
2153
2153
|
i[o] = qe(e, o) ? t(e[o], e) : "";
|
|
2154
2154
|
}
|
|
2155
2155
|
var a = typeof Yn == "function" ? Yn(e) : [], l;
|
|
2156
|
-
if (
|
|
2156
|
+
if (St) {
|
|
2157
2157
|
l = {};
|
|
2158
2158
|
for (var c = 0; c < a.length; c++)
|
|
2159
2159
|
l["$" + a[c]] = a[c];
|
|
2160
2160
|
}
|
|
2161
2161
|
for (var p in e)
|
|
2162
|
-
qe(e, p) && (r && String(Number(p)) === p && p < e.length ||
|
|
2162
|
+
qe(e, p) && (r && String(Number(p)) === p && p < e.length || St && l["$" + p] instanceof Symbol || (qo.call(/[^\w$]/, p) ? i.push(t(p, e) + ": " + t(e[p], e)) : i.push(p + ": " + t(e[p], e))));
|
|
2163
2163
|
if (typeof Yn == "function")
|
|
2164
2164
|
for (var f = 0; f < a.length; f++)
|
|
2165
2165
|
Ho.call(e, a[f]) && i.push("[" + t(a[f]) + "]: " + t(e[a[f]], e));
|
|
@@ -2324,9 +2324,9 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2324
2324
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
2325
2325
|
}, vc = function(t) {
|
|
2326
2326
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
2327
|
-
}, Sc = function(t, r) {
|
|
2328
|
-
return [].concat(t, r);
|
|
2329
2327
|
}, bc = function(t, r) {
|
|
2328
|
+
return [].concat(t, r);
|
|
2329
|
+
}, Sc = function(t, r) {
|
|
2330
2330
|
if (Ye(t)) {
|
|
2331
2331
|
for (var i = [], o = 0; o < t.length; o += 1)
|
|
2332
2332
|
i.push(r(t[o]));
|
|
@@ -2336,13 +2336,13 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2336
2336
|
}, Ko = {
|
|
2337
2337
|
arrayToObject: Jo,
|
|
2338
2338
|
assign: pc,
|
|
2339
|
-
combine:
|
|
2339
|
+
combine: bc,
|
|
2340
2340
|
compact: mc,
|
|
2341
2341
|
decode: hc,
|
|
2342
2342
|
encode: yc,
|
|
2343
2343
|
isBuffer: vc,
|
|
2344
2344
|
isRegExp: gc,
|
|
2345
|
-
maybeMap:
|
|
2345
|
+
maybeMap: Sc,
|
|
2346
2346
|
merge: dc
|
|
2347
2347
|
}, Qo = sc, Mr = Ko, Kt = Ii, wc = Object.prototype.hasOwnProperty, uo = {
|
|
2348
2348
|
brackets: function(t) {
|
|
@@ -2377,7 +2377,7 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2377
2377
|
strictNullHandling: !1
|
|
2378
2378
|
}, Oc = function(t) {
|
|
2379
2379
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
2380
|
-
}, ri = {}, Ec = function e(t, r, i, o, a, l, c, p, f, h, v,
|
|
2380
|
+
}, ri = {}, Ec = function e(t, r, i, o, a, l, c, p, f, h, v, b, S, d, g, _) {
|
|
2381
2381
|
for (var w = t, C = _, N = 0, R = !1; (C = C.get(ri)) !== void 0 && !R; ) {
|
|
2382
2382
|
var $ = C.get(t);
|
|
2383
2383
|
if (N += 1, typeof $ < "u") {
|
|
@@ -2387,19 +2387,19 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2387
2387
|
}
|
|
2388
2388
|
typeof C.get(ri) > "u" && (N = 0);
|
|
2389
2389
|
}
|
|
2390
|
-
if (typeof p == "function" ? w = p(r, w) : w instanceof Date ? w = v(w) : i === "comma" && Be(w) && (w = Mr.maybeMap(w, function(
|
|
2391
|
-
return
|
|
2390
|
+
if (typeof p == "function" ? w = p(r, w) : w instanceof Date ? w = v(w) : i === "comma" && Be(w) && (w = Mr.maybeMap(w, function(Se) {
|
|
2391
|
+
return Se instanceof Date ? v(Se) : Se;
|
|
2392
2392
|
})), w === null) {
|
|
2393
2393
|
if (a)
|
|
2394
|
-
return c && !d ? c(r, te.encoder, g, "key",
|
|
2394
|
+
return c && !d ? c(r, te.encoder, g, "key", b) : r;
|
|
2395
2395
|
w = "";
|
|
2396
2396
|
}
|
|
2397
2397
|
if (Oc(w) || Mr.isBuffer(w)) {
|
|
2398
2398
|
if (c) {
|
|
2399
|
-
var O = d ? r : c(r, te.encoder, g, "key",
|
|
2400
|
-
return [
|
|
2399
|
+
var O = d ? r : c(r, te.encoder, g, "key", b);
|
|
2400
|
+
return [S(O) + "=" + S(c(w, te.encoder, g, "value", b))];
|
|
2401
2401
|
}
|
|
2402
|
-
return [
|
|
2402
|
+
return [S(r) + "=" + S(String(w))];
|
|
2403
2403
|
}
|
|
2404
2404
|
var T = [];
|
|
2405
2405
|
if (typeof w > "u")
|
|
@@ -2431,8 +2431,8 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2431
2431
|
f,
|
|
2432
2432
|
h,
|
|
2433
2433
|
v,
|
|
2434
|
-
S,
|
|
2435
2434
|
b,
|
|
2435
|
+
S,
|
|
2436
2436
|
d,
|
|
2437
2437
|
g,
|
|
2438
2438
|
Re
|
|
@@ -2486,10 +2486,10 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2486
2486
|
var f = p === "comma" && t && t.commaRoundTrip;
|
|
2487
2487
|
o || (o = Object.keys(r)), i.sort && o.sort(i.sort);
|
|
2488
2488
|
for (var h = Qo(), v = 0; v < o.length; ++v) {
|
|
2489
|
-
var
|
|
2490
|
-
i.skipNulls && r[
|
|
2491
|
-
r[
|
|
2492
|
-
|
|
2489
|
+
var b = o[v];
|
|
2490
|
+
i.skipNulls && r[b] === null || Xo(l, Ec(
|
|
2491
|
+
r[b],
|
|
2492
|
+
b,
|
|
2493
2493
|
p,
|
|
2494
2494
|
f,
|
|
2495
2495
|
i.strictNullHandling,
|
|
@@ -2506,8 +2506,8 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2506
2506
|
h
|
|
2507
2507
|
));
|
|
2508
2508
|
}
|
|
2509
|
-
var
|
|
2510
|
-
return i.charsetSentinel && (i.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"),
|
|
2509
|
+
var S = l.join(i.delimiter), d = i.addQueryPrefix === !0 ? "?" : "";
|
|
2510
|
+
return i.charsetSentinel && (i.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), S.length > 0 ? d + S : "";
|
|
2511
2511
|
}, wt = Ko, hi = Object.prototype.hasOwnProperty, Cc = Array.isArray, z = {
|
|
2512
2512
|
allowDots: !1,
|
|
2513
2513
|
allowPrototypes: !1,
|
|
@@ -2538,13 +2538,13 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2538
2538
|
l[p].indexOf("utf8=") === 0 && (l[p] === Nc ? f = "utf-8" : l[p] === xc && (f = "iso-8859-1"), c = p, p = l.length);
|
|
2539
2539
|
for (p = 0; p < l.length; ++p)
|
|
2540
2540
|
if (p !== c) {
|
|
2541
|
-
var h = l[p], v = h.indexOf("]="),
|
|
2542
|
-
|
|
2543
|
-
Yo(h.slice(
|
|
2541
|
+
var h = l[p], v = h.indexOf("]="), b = v === -1 ? h.indexOf("=") : v + 1, S, d;
|
|
2542
|
+
b === -1 ? (S = r.decoder(h, z.decoder, f, "key"), d = r.strictNullHandling ? null : "") : (S = r.decoder(h.slice(0, b), z.decoder, f, "key"), d = wt.maybeMap(
|
|
2543
|
+
Yo(h.slice(b + 1), r),
|
|
2544
2544
|
function(g) {
|
|
2545
2545
|
return r.decoder(g, z.decoder, f, "value");
|
|
2546
2546
|
}
|
|
2547
|
-
)), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = Rc(d)), h.indexOf("[]=") > -1 && (d = Cc(d) ? [d] : d), hi.call(i,
|
|
2547
|
+
)), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = Rc(d)), h.indexOf("[]=") > -1 && (d = Cc(d) ? [d] : d), hi.call(i, S) ? i[S] = wt.combine(i[S], d) : i[S] = d;
|
|
2548
2548
|
}
|
|
2549
2549
|
return i;
|
|
2550
2550
|
}, Fc = function(e, t, r, i) {
|
|
@@ -2694,11 +2694,11 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2694
2694
|
return p(_, {
|
|
2695
2695
|
transition: "all 0 linear",
|
|
2696
2696
|
transform: "translate3d(" + w + "%,0,0)"
|
|
2697
|
-
}), i.showSpinner || (N = g.querySelector(i.spinnerSelector), N &&
|
|
2697
|
+
}), i.showSpinner || (N = g.querySelector(i.spinnerSelector), N && S(N)), C != document.body && h(C, "nprogress-custom-parent"), C.appendChild(g), g;
|
|
2698
2698
|
}, r.remove = function() {
|
|
2699
2699
|
v(document.documentElement, "nprogress-busy"), v(document.querySelector(i.parent), "nprogress-custom-parent");
|
|
2700
2700
|
var d = document.getElementById("nprogress");
|
|
2701
|
-
d &&
|
|
2701
|
+
d && S(d);
|
|
2702
2702
|
}, r.isRendered = function() {
|
|
2703
2703
|
return !!document.getElementById("nprogress");
|
|
2704
2704
|
}, r.getPositioningCSS = function() {
|
|
@@ -2756,21 +2756,21 @@ var xi = Ti, At = vl, Ql = Nl, Xl = xi("%TypeError%"), Pr = xi("%WeakMap%", !0),
|
|
|
2756
2756
|
};
|
|
2757
2757
|
}();
|
|
2758
2758
|
function f(d, g) {
|
|
2759
|
-
var _ = typeof d == "string" ? d :
|
|
2759
|
+
var _ = typeof d == "string" ? d : b(d);
|
|
2760
2760
|
return _.indexOf(" " + g + " ") >= 0;
|
|
2761
2761
|
}
|
|
2762
2762
|
function h(d, g) {
|
|
2763
|
-
var _ =
|
|
2763
|
+
var _ = b(d), w = _ + g;
|
|
2764
2764
|
f(_, g) || (d.className = w.substring(1));
|
|
2765
2765
|
}
|
|
2766
2766
|
function v(d, g) {
|
|
2767
|
-
var _ =
|
|
2767
|
+
var _ = b(d), w;
|
|
2768
2768
|
f(d, g) && (w = _.replace(" " + g + " ", " "), d.className = w.substring(1, w.length - 1));
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function b(d) {
|
|
2771
2771
|
return (" " + (d.className || "") + " ").replace(/\s+/gi, " ");
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function S(d) {
|
|
2774
2774
|
d && d.parentNode && d.parentNode.removeChild(d);
|
|
2775
2775
|
}
|
|
2776
2776
|
return r;
|
|
@@ -2939,8 +2939,8 @@ var yo = typeof window > "u", Kc = class {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
visit(e, { method: t = "get", data: r = {}, replace: i = !1, preserveScroll: o = !1, preserveState: a = !1, only: l = [], headers: c = {}, errorBag: p = "", forceFormData: f = !1, onCancelToken: h = () => {
|
|
2941
2941
|
}, onBefore: v = () => {
|
|
2942
|
-
}, onStart:
|
|
2943
|
-
}, onProgress:
|
|
2942
|
+
}, onStart: b = () => {
|
|
2943
|
+
}, onProgress: S = () => {
|
|
2944
2944
|
}, onFinish: d = () => {
|
|
2945
2945
|
}, onCancel: g = () => {
|
|
2946
2946
|
}, onSuccess: _ = () => {
|
|
@@ -2956,10 +2956,10 @@ var yo = typeof window > "u", Kc = class {
|
|
|
2956
2956
|
return;
|
|
2957
2957
|
this.activeVisit && this.cancelVisit(this.activeVisit, { interrupted: !0 }), this.saveScrollPositions();
|
|
2958
2958
|
let $ = this.createVisitId();
|
|
2959
|
-
this.activeVisit = { ...R, onCancelToken: h, onBefore: v, onStart:
|
|
2959
|
+
this.activeVisit = { ...R, onCancelToken: h, onBefore: v, onStart: b, onProgress: S, onFinish: d, onCancel: g, onSuccess: _, onError: w, queryStringArrayFormat: C, cancelToken: new AbortController() }, h({ cancel: () => {
|
|
2960
2960
|
this.activeVisit && this.cancelVisit(this.activeVisit, { cancelled: !0 });
|
|
2961
|
-
} }), zc(R),
|
|
2962
|
-
r instanceof FormData && (O.percentage = O.progress ? Math.round(O.progress * 100) : 0, Wc(O),
|
|
2961
|
+
} }), zc(R), b(R), li({ method: t, url: zt(N).href, data: t === "get" ? {} : r, params: t === "get" ? r : {}, signal: this.activeVisit.cancelToken.signal, headers: { ...c, Accept: "text/html, application/xhtml+xml", "X-Requested-With": "XMLHttpRequest", "X-Inertia": !0, ...l.length ? { "X-Inertia-Partial-Component": this.page.component, "X-Inertia-Partial-Data": l.join(",") } : {}, ...p && p.length ? { "X-Inertia-Error-Bag": p } : {}, ...this.page.version ? { "X-Inertia-Version": this.page.version } : {} }, onUploadProgress: (O) => {
|
|
2962
|
+
r instanceof FormData && (O.percentage = O.progress ? Math.round(O.progress * 100) : 0, Wc(O), S(O));
|
|
2963
2963
|
} }).then((O) => {
|
|
2964
2964
|
var X;
|
|
2965
2965
|
if (!this.isInertiaResponse(O))
|
|
@@ -3099,17 +3099,17 @@ function Xc(e, t, r) {
|
|
|
3099
3099
|
h !== null && Object.keys(i).indexOf(h) > -1 && (i[h] = v), f();
|
|
3100
3100
|
}
|
|
3101
3101
|
function p() {
|
|
3102
|
-
let h = t(""), v = { ...h ? { title: `<title inertia="">${h}</title>` } : {} },
|
|
3102
|
+
let h = t(""), v = { ...h ? { title: `<title inertia="">${h}</title>` } : {} }, b = Object.values(i).reduce((S, d) => S.concat(d), []).reduce((S, d) => {
|
|
3103
3103
|
if (d.indexOf("<") === -1)
|
|
3104
|
-
return
|
|
3104
|
+
return S;
|
|
3105
3105
|
if (d.indexOf("<title ") === 0) {
|
|
3106
3106
|
let _ = d.match(/(<title [^>]+>)(.*?)(<\/title>)/);
|
|
3107
|
-
return
|
|
3107
|
+
return S.title = _ ? `${_[1]}${t(_[2])}${_[3]}` : d, S;
|
|
3108
3108
|
}
|
|
3109
3109
|
let g = d.match(/ inertia="[^"]+"/);
|
|
3110
|
-
return g ?
|
|
3110
|
+
return g ? S[g[0]] = d : S[Object.keys(S).length] = d, S;
|
|
3111
3111
|
}, v);
|
|
3112
|
-
return Object.values(
|
|
3112
|
+
return Object.values(b);
|
|
3113
3113
|
}
|
|
3114
3114
|
function f() {
|
|
3115
3115
|
e ? r(p()) : Qc.update(p());
|
|
@@ -3126,8 +3126,8 @@ function Yc(e) {
|
|
|
3126
3126
|
var mi = new Kc(), qr = { exports: {} };
|
|
3127
3127
|
qr.exports;
|
|
3128
3128
|
(function(e, t) {
|
|
3129
|
-
var r = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object Boolean]", p = "[object Date]", f = "[object Error]", h = "[object Function]", v = "[object GeneratorFunction]",
|
|
3130
|
-
U[a] = U[l] = U[$] = U[O] = U[c] = U[p] = U[T] = U[j] = U[Q] = U[X] = U[de] = U[
|
|
3129
|
+
var r = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object Boolean]", p = "[object Date]", f = "[object Error]", h = "[object Function]", v = "[object GeneratorFunction]", b = "[object Map]", S = "[object Number]", d = "[object Object]", g = "[object Promise]", _ = "[object RegExp]", w = "[object Set]", C = "[object String]", N = "[object Symbol]", R = "[object WeakMap]", $ = "[object ArrayBuffer]", O = "[object DataView]", T = "[object Float32Array]", j = "[object Float64Array]", Q = "[object Int8Array]", X = "[object Int16Array]", de = "[object Int32Array]", V = "[object Uint8Array]", oe = "[object Uint8ClampedArray]", pe = "[object Uint16Array]", Re = "[object Uint32Array]", Se = /[\\^$.*+?()[\]{}|]/g, Kr = /\w*$/, Qr = /^\[object .+?Constructor\]$/, Xr = /^(?:0|[1-9]\d*)$/, U = {};
|
|
3130
|
+
U[a] = U[l] = U[$] = U[O] = U[c] = U[p] = U[T] = U[j] = U[Q] = U[X] = U[de] = U[b] = U[S] = U[d] = U[_] = U[w] = U[C] = U[N] = U[V] = U[oe] = U[pe] = U[Re] = !0, U[f] = U[h] = U[R] = !1;
|
|
3131
3131
|
var Yr = typeof Me == "object" && Me && Me.Object === Object && Me, Zr = typeof self == "object" && self && self.Object === Object && self, he = Yr || Zr || Function("return this")(), tr = t && !t.nodeType && t, k = tr && !0 && e && !e.nodeType && e, rr = k && k.exports === tr;
|
|
3132
3132
|
function en(n, s) {
|
|
3133
3133
|
return n.set(s[0], s[1]), n;
|
|
@@ -3189,7 +3189,7 @@ qr.exports;
|
|
|
3189
3189
|
var n = /[^.]+$/.exec(Ct && Ct.keys && Ct.keys.IE_PROTO || "");
|
|
3190
3190
|
return n ? "Symbol(src)_1." + n : "";
|
|
3191
3191
|
}(), cr = rn.toString, we = tt.hasOwnProperty, rt = tt.toString, nn = RegExp(
|
|
3192
|
-
"^" + cr.call(we).replace(
|
|
3192
|
+
"^" + cr.call(we).replace(Se, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3193
3193
|
), We = rr ? he.Buffer : void 0, nt = he.Symbol, Rt = he.Uint8Array, ue = Pt(Object.getPrototypeOf, Object), ur = Object.create, fr = tt.propertyIsEnumerable, on = tn.splice, xt = Object.getOwnPropertySymbols, it = We ? We.isBuffer : void 0, dr = Pt(Object.keys, Object), ot = ge(he, "DataView"), ze = ge(he, "Map"), me = ge(he, "Promise"), at = ge(he, "Set"), Nt = ge(he, "WeakMap"), Ge = ge(Object, "create"), It = ne(ot), Je = ne(ze), Ft = ne(me), Lt = ne(at), Bt = ne(Nt), Ue = nt ? nt.prototype : void 0, pr = Ue ? Ue.valueOf : void 0;
|
|
3194
3194
|
function xe(n) {
|
|
3195
3195
|
var s = -1, u = n ? n.length : 0;
|
|
@@ -3280,10 +3280,10 @@ qr.exports;
|
|
|
3280
3280
|
function ae(n) {
|
|
3281
3281
|
this.__data__ = new J(n);
|
|
3282
3282
|
}
|
|
3283
|
-
function
|
|
3283
|
+
function bn() {
|
|
3284
3284
|
this.__data__ = new J();
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function Sn(n) {
|
|
3287
3287
|
return this.__data__.delete(n);
|
|
3288
3288
|
}
|
|
3289
3289
|
function wn(n) {
|
|
@@ -3302,7 +3302,7 @@ qr.exports;
|
|
|
3302
3302
|
}
|
|
3303
3303
|
return u.set(n, s), this;
|
|
3304
3304
|
}
|
|
3305
|
-
ae.prototype.clear =
|
|
3305
|
+
ae.prototype.clear = bn, ae.prototype.delete = Sn, ae.prototype.get = wn, ae.prototype.has = _n, ae.prototype.set = An;
|
|
3306
3306
|
function st(n, s) {
|
|
3307
3307
|
var u = kt(n) || ut(n) ? Et(n.length, String) : [], y = u.length, E = !!y;
|
|
3308
3308
|
for (var A in n)
|
|
@@ -3311,11 +3311,11 @@ qr.exports;
|
|
|
3311
3311
|
}
|
|
3312
3312
|
function yr(n, s, u) {
|
|
3313
3313
|
var y = n[s];
|
|
3314
|
-
(!(we.call(n, s) &&
|
|
3314
|
+
(!(we.call(n, s) && Sr(y, u)) || u === void 0 && !(s in n)) && (n[s] = u);
|
|
3315
3315
|
}
|
|
3316
3316
|
function lt(n, s) {
|
|
3317
3317
|
for (var u = n.length; u--; )
|
|
3318
|
-
if (
|
|
3318
|
+
if (Sr(n[u][0], s))
|
|
3319
3319
|
return u;
|
|
3320
3320
|
return -1;
|
|
3321
3321
|
}
|
|
@@ -3443,14 +3443,14 @@ qr.exports;
|
|
|
3443
3443
|
return Pn(u) ? u : void 0;
|
|
3444
3444
|
}
|
|
3445
3445
|
var Ne = xt ? Pt(xt, Object) : $n, Ie = Tn;
|
|
3446
|
-
(ot && Ie(new ot(new ArrayBuffer(1))) != O || ze && Ie(new ze()) !=
|
|
3446
|
+
(ot && Ie(new ot(new ArrayBuffer(1))) != O || ze && Ie(new ze()) != b || me && Ie(me.resolve()) != g || at && Ie(new at()) != w || Nt && Ie(new Nt()) != R) && (Ie = function(n) {
|
|
3447
3447
|
var s = rt.call(n), u = s == d ? n.constructor : void 0, y = u ? ne(u) : void 0;
|
|
3448
3448
|
if (y)
|
|
3449
3449
|
switch (y) {
|
|
3450
3450
|
case It:
|
|
3451
3451
|
return O;
|
|
3452
3452
|
case Je:
|
|
3453
|
-
return
|
|
3453
|
+
return b;
|
|
3454
3454
|
case Ft:
|
|
3455
3455
|
return g;
|
|
3456
3456
|
case Lt:
|
|
@@ -3487,9 +3487,9 @@ qr.exports;
|
|
|
3487
3487
|
case pe:
|
|
3488
3488
|
case Re:
|
|
3489
3489
|
return Nn(n, y);
|
|
3490
|
-
case S:
|
|
3491
|
-
return mr(n, y, u);
|
|
3492
3490
|
case b:
|
|
3491
|
+
return mr(n, y, u);
|
|
3492
|
+
case S:
|
|
3493
3493
|
case C:
|
|
3494
3494
|
return new E(n);
|
|
3495
3495
|
case _:
|
|
@@ -3527,10 +3527,10 @@ qr.exports;
|
|
|
3527
3527
|
}
|
|
3528
3528
|
return "";
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3530
|
+
function br(n) {
|
|
3531
3531
|
return Dt(n, !0, !0);
|
|
3532
3532
|
}
|
|
3533
|
-
function
|
|
3533
|
+
function Sr(n, s) {
|
|
3534
3534
|
return n === s || n !== n && s !== s;
|
|
3535
3535
|
}
|
|
3536
3536
|
function ut(n) {
|
|
@@ -3567,14 +3567,14 @@ qr.exports;
|
|
|
3567
3567
|
function qn() {
|
|
3568
3568
|
return !1;
|
|
3569
3569
|
}
|
|
3570
|
-
e.exports =
|
|
3570
|
+
e.exports = br;
|
|
3571
3571
|
})(qr, qr.exports);
|
|
3572
3572
|
qr.exports;
|
|
3573
3573
|
var Hr = { exports: {} };
|
|
3574
3574
|
Hr.exports;
|
|
3575
3575
|
(function(e, t) {
|
|
3576
|
-
var r = 200, i = "__lodash_hash_undefined__", o = 1, a = 2, l = 9007199254740991, c = "[object Arguments]", p = "[object Array]", f = "[object AsyncFunction]", h = "[object Boolean]", v = "[object Date]",
|
|
3577
|
-
k[oe] = k[pe] = k[Re] = k[
|
|
3576
|
+
var r = 200, i = "__lodash_hash_undefined__", o = 1, a = 2, l = 9007199254740991, c = "[object Arguments]", p = "[object Array]", f = "[object AsyncFunction]", h = "[object Boolean]", v = "[object Date]", b = "[object Error]", S = "[object Function]", d = "[object GeneratorFunction]", g = "[object Map]", _ = "[object Number]", w = "[object Null]", C = "[object Object]", N = "[object Promise]", R = "[object Proxy]", $ = "[object RegExp]", O = "[object Set]", T = "[object String]", j = "[object Symbol]", Q = "[object Undefined]", X = "[object WeakMap]", de = "[object ArrayBuffer]", V = "[object DataView]", oe = "[object Float32Array]", pe = "[object Float64Array]", Re = "[object Int8Array]", Se = "[object Int16Array]", Kr = "[object Int32Array]", Qr = "[object Uint8Array]", Xr = "[object Uint8ClampedArray]", U = "[object Uint16Array]", Yr = "[object Uint32Array]", Zr = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, tr = /^(?:0|[1-9]\d*)$/, k = {};
|
|
3577
|
+
k[oe] = k[pe] = k[Re] = k[Se] = k[Kr] = k[Qr] = k[Xr] = k[U] = k[Yr] = !0, k[c] = k[p] = k[de] = k[h] = k[V] = k[v] = k[b] = k[S] = k[g] = k[_] = k[C] = k[$] = k[O] = k[T] = k[X] = !1;
|
|
3578
3578
|
var rr = typeof Me == "object" && Me && Me.Object === Object && Me, en = typeof self == "object" && self && self.Object === Object && self, ye = rr || en || Function("return this")(), nr = t && !t.nodeType && t, ir = nr && !0 && e && !e.nodeType && e, Ot = ir && ir.exports === nr, Et = Ot && rr.process, or = function() {
|
|
3579
3579
|
try {
|
|
3580
3580
|
return Et && Et.binding && Et.binding("util");
|
|
@@ -3705,14 +3705,14 @@ Hr.exports;
|
|
|
3705
3705
|
this.set(y[0], y[1]);
|
|
3706
3706
|
}
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function bn() {
|
|
3709
3709
|
this.size = 0, this.__data__ = {
|
|
3710
3710
|
hash: new J(),
|
|
3711
3711
|
map: new (Je || Y)(),
|
|
3712
3712
|
string: new J()
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3715
|
+
function Sn(n) {
|
|
3716
3716
|
var s = ge(this, n).delete(n);
|
|
3717
3717
|
return this.size -= s ? 1 : 0, s;
|
|
3718
3718
|
}
|
|
@@ -3726,7 +3726,7 @@ Hr.exports;
|
|
|
3726
3726
|
var u = ge(this, n), y = u.size;
|
|
3727
3727
|
return u.set(n, s), this.size += u.size == y ? 0 : 1, this;
|
|
3728
3728
|
}
|
|
3729
|
-
ae.prototype.clear =
|
|
3729
|
+
ae.prototype.clear = bn, ae.prototype.delete = Sn, ae.prototype.get = wn, ae.prototype.has = _n, ae.prototype.set = An;
|
|
3730
3730
|
function st(n) {
|
|
3731
3731
|
var s = -1, u = n == null ? 0 : n.length;
|
|
3732
3732
|
for (this.__data__ = new ae(); ++s < u; )
|
|
@@ -3768,7 +3768,7 @@ Hr.exports;
|
|
|
3768
3768
|
}
|
|
3769
3769
|
_e.prototype.clear = Dt, _e.prototype.delete = On, _e.prototype.get = En, _e.prototype.has = Tn, _e.prototype.set = Pn;
|
|
3770
3770
|
function Cn(n, s) {
|
|
3771
|
-
var u = ut(n), y = !u &&
|
|
3771
|
+
var u = ut(n), y = !u && Sr(n), E = !u && !y && ft(n), A = !u && !y && !E && Ar(n), I = u || y || E || A, F = I ? tn(n.length, String) : [], q = F.length;
|
|
3772
3772
|
for (var D in n)
|
|
3773
3773
|
(s || ue.call(n, D)) && !(I && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3774
3774
|
(D == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -3779,7 +3779,7 @@ Hr.exports;
|
|
|
3779
3779
|
}
|
|
3780
3780
|
function ct(n, s) {
|
|
3781
3781
|
for (var u = n.length; u--; )
|
|
3782
|
-
if (
|
|
3782
|
+
if (br(n[u][0], s))
|
|
3783
3783
|
return u;
|
|
3784
3784
|
return -1;
|
|
3785
3785
|
}
|
|
@@ -3877,8 +3877,8 @@ Hr.exports;
|
|
|
3877
3877
|
case h:
|
|
3878
3878
|
case v:
|
|
3879
3879
|
case _:
|
|
3880
|
-
return
|
|
3881
|
-
case
|
|
3880
|
+
return br(+n, +s);
|
|
3881
|
+
case b:
|
|
3882
3882
|
return n.name == s.name && n.message == s.message;
|
|
3883
3883
|
case $:
|
|
3884
3884
|
case T:
|
|
@@ -4005,10 +4005,10 @@ Hr.exports;
|
|
|
4005
4005
|
}
|
|
4006
4006
|
return "";
|
|
4007
4007
|
}
|
|
4008
|
-
function
|
|
4008
|
+
function br(n, s) {
|
|
4009
4009
|
return n === s || n !== n && s !== s;
|
|
4010
4010
|
}
|
|
4011
|
-
var
|
|
4011
|
+
var Sr = mr(function() {
|
|
4012
4012
|
return arguments;
|
|
4013
4013
|
}()) ? mr : function(n) {
|
|
4014
4014
|
return Oe(n) && ue.call(n, "callee") && !ot.call(n, "callee");
|
|
@@ -4024,7 +4024,7 @@ Hr.exports;
|
|
|
4024
4024
|
if (!_r(n))
|
|
4025
4025
|
return !1;
|
|
4026
4026
|
var s = Ke(n);
|
|
4027
|
-
return s ==
|
|
4027
|
+
return s == S || s == d || s == f || s == R;
|
|
4028
4028
|
}
|
|
4029
4029
|
function $t(n) {
|
|
4030
4030
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= l;
|
|
@@ -4205,6 +4205,11 @@ const tu = (e, t) => {
|
|
|
4205
4205
|
type: String,
|
|
4206
4206
|
required: !1,
|
|
4207
4207
|
default: "Link"
|
|
4208
|
+
},
|
|
4209
|
+
pageLength: {
|
|
4210
|
+
type: Number,
|
|
4211
|
+
required: !1,
|
|
4212
|
+
default: 10
|
|
4208
4213
|
}
|
|
4209
4214
|
},
|
|
4210
4215
|
emits: ["row-click"],
|
|
@@ -4343,7 +4348,7 @@ const tu = (e, t) => {
|
|
|
4343
4348
|
})),
|
|
4344
4349
|
order: this.order,
|
|
4345
4350
|
start: 0,
|
|
4346
|
-
length:
|
|
4351
|
+
length: this.pageLength,
|
|
4347
4352
|
search: {
|
|
4348
4353
|
value: "",
|
|
4349
4354
|
regex: !1
|
|
@@ -4427,7 +4432,7 @@ const tu = (e, t) => {
|
|
|
4427
4432
|
mounted() {
|
|
4428
4433
|
this.initColumnSettings(), this.loadDataOnInit && this.loadData();
|
|
4429
4434
|
}
|
|
4430
|
-
}, Ce = (e) => (pa("data-v-
|
|
4435
|
+
}, Ce = (e) => (pa("data-v-de43b70a"), e = e(), ha(), e), nu = {
|
|
4431
4436
|
key: 0,
|
|
4432
4437
|
class: "card-icon"
|
|
4433
4438
|
}, iu = {
|
|
@@ -4454,8 +4459,8 @@ const tu = (e, t) => {
|
|
|
4454
4459
|
"data-bs-toggle": "dropdown"
|
|
4455
4460
|
}, [
|
|
4456
4461
|
/* @__PURE__ */ P("i", { class: "material-icons" }, "more_vert")
|
|
4457
|
-
], -1)),
|
|
4458
|
-
|
|
4462
|
+
], -1)), bu = { class: "dropdown-menu dropdown-menu-right" }, Su = /* @__PURE__ */ Ce(() => /* @__PURE__ */ P("a", { href: "javascript:void(0)" }, "10", -1)), wu = [
|
|
4463
|
+
Su
|
|
4459
4464
|
], _u = /* @__PURE__ */ Ce(() => /* @__PURE__ */ P("a", { href: "javascript:void(0)" }, "25", -1)), Au = [
|
|
4460
4465
|
_u
|
|
4461
4466
|
], Ou = /* @__PURE__ */ Ce(() => /* @__PURE__ */ P("a", { href: "javascript:void(0)" }, "50", -1)), Eu = [
|
|
@@ -4531,7 +4536,7 @@ function Ku(e, t, r, i, o, a) {
|
|
|
4531
4536
|
]),
|
|
4532
4537
|
P("li", gu, [
|
|
4533
4538
|
vu,
|
|
4534
|
-
P("ul",
|
|
4539
|
+
P("ul", bu, [
|
|
4535
4540
|
P("li", {
|
|
4536
4541
|
onClick: t[3] || (t[3] = (c) => a.setPageLength(10))
|
|
4537
4542
|
}, wu),
|
|
@@ -4679,7 +4684,7 @@ function Ku(e, t, r, i, o, a) {
|
|
|
4679
4684
|
])
|
|
4680
4685
|
], 2);
|
|
4681
4686
|
}
|
|
4682
|
-
const Xu = /* @__PURE__ */ tu(ru, [["render", Ku], ["__scopeId", "data-v-
|
|
4687
|
+
const Xu = /* @__PURE__ */ tu(ru, [["render", Ku], ["__scopeId", "data-v-de43b70a"]]);
|
|
4683
4688
|
export {
|
|
4684
4689
|
Xu as default
|
|
4685
4690
|
};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
Please specify a more appropriate element using the "as" attribute. For example:
|
|
10
10
|
|
|
11
|
-
<Link href="${a}" method="${o}" as="button">...</Link>`),d.h(e.as,{...r,...i==="a"?{href:a}:{},onClick:c=>{_c(c)&&(c.preventDefault(),Rn.visit(a,{data:l,method:o,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:e.preserveState??o!=="get",only:e.only,headers:e.headers,onCancelToken:r.onCancelToken||(()=>({})),onBefore:r.onBefore||(()=>({})),onStart:r.onStart||(()=>({})),onProgress:r.onProgress||(()=>({})),onFinish:r.onFinish||(()=>({})),onCancel:r.onCancel||(()=>({})),onSuccess:r.onSuccess||(()=>({})),onError:r.onError||(()=>({}))}))}},t)}}}),Oc=Ac;const vu="",Tc=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},Pc={name:"DatatableCard",components:{Link:Oc},props:{cardTitle:{type:String,required:!1,default:null},cardIconStyle:{type:String,required:!1,default:"card-header-primary"},cardIcon:{type:String,required:!1,default:null},cardClasses:{type:String,required:!1,default:null},createLink:{type:String,required:!1,default:null},columns:{type:Array,required:!0},url:{type:String,required:!0},selectableRows:{type:Boolean,required:!1,default:!1},order:{type:Array,required:!1,default:[{column:0,dir:"asc"}]},advancedSearch:{type:Boolean,required:!1,default:!1},loadDataOnInit:{type:Boolean,required:!1,default:!0},requestQueryParams:{type:Object,required:!1,default:()=>({})},actions:{type:Array,required:!1},clickableRows:{type:Boolean,required:!1,default:!1},hyperlinkStyle:{type:String,required:!1,default:"Link"}},emits:["row-click"],data(){return{searchBarOpen:!1,rows:[],columnSettings:{},searchTerm:"",recordsTotal:0,recordsFiltered:0,selectedRows:[],cardError:null}},watch:{selectedRows:function(e,t){this.selectableRows&&(e.length===this.rows.length&&e.length>0?(this.$refs.selectAllRows.indeterminate=!1,this.$refs.selectAllRows.checked=!0):e.length===0?(this.$refs.selectAllRows.indeterminate=!1,this.$refs.selectAllRows.checked=!1):this.$refs.selectAllRows.indeterminate=!0)}},computed:{firstRecord(){return this.columnSettings.start+1},lastRecord(){return this.columnSettings.start+this.rows.length},currentPage(){return Math.ceil(this.columnSettings.start/this.columnSettings.length)+1},pageCount(){return Math.ceil(this.recordsFiltered/this.columnSettings.length)},lastPageStart(){return(this.pageCount-1)*this.columnSettings.length},columnSortingClasses(){let e=[];if(!this.columnSettings.order)return e;for(let t=0;t<this.columns.length;t++){let r="";for(let i=0;i<this.columnSettings.order.length;i++)this.columnSettings.order[i].column==t&&(r=this.columnSettings.order[i].dir=="asc"?"sorting_asc":"sorting_desc");e.push(r)}return e},pages(){let e=[],t=this.currentPage-2,r=this.currentPage+2;t<1&&(t=1,r=5),r>this.pageCount&&(t=this.pageCount-4,r=this.pageCount),t<1&&(t=1);for(let i=t;i<=r;i++)e.push(i);return e}},methods:{getCellClasses(e,t){const r=[];if(!e.classes)return r;if(typeof e.classes=="string")return r.push(e.classes),r;if(Array.isArray(e.classes)){const i=t[e.data];e.classes.forEach(o=>{if(!o||!o.class)return;let l=o.valueKey?t[o.valueKey]:i;if(typeof l=="string"&&(l=parseFloat(l.replace("%","").trim())),typeof l!="number"||isNaN(l))return;const c=o.min!==void 0?o.min:-1/0,h=o.max!==void 0?o.max:1/0;l>=c&&l<=h&&r.push(o.class)})}return r},handleEmit(e,t){this.$emit(e,t)},refresh(){this.initColumnSettings(),this.searchBarOpen=!1,this.loadDataOnInit?this.loadData():this.rows=[],this.selectedRows=[],this.advancedSearch||(this.$el.querySelector(".filter-input").value=""),this.$el.querySelectorAll(".advanced-filter-input").forEach(e=>{e.value=""})},toggleSearch(){this.advancedSearch||(this.searchBarOpen=!0),this.advancedSearch&&(this.searchBarOpen=!this.searchBarOpen)},clearSearch(){this.searchBarOpen=!1,this.$el.querySelector(".filter-input").value="",this.columnSettings.search.value="",this.loadData()},setAdvancedSearchFilters(){this.columnSettings.columns.forEach((e,t)=>{e.searchable&&(e.search.value=this.$el.querySelector(`input[name="${e.name}"]`).value)}),this.loadData()},loadData(){this.columnSettings.draw++,this.clearSelectedRows();const e={...this.requestQueryParams,...this.columnSettings};rn.get(this.url,{params:e}).then(t=>{if(t.data.error){this.cardError="error loading data. see console for details",console.error(t.data.error);return}this.cardError=null,this.rows=t.data.data,this.recordsTotal=t.data.recordsTotal,this.recordsFiltered=t.data.recordsFiltered}).catch(t=>{this.cardError=t.response.data.message,console.error(t)})},initColumnSettings(){this.columnSettings={draw:0,columns:this.columns.map((e,t)=>({data:e.data,name:e.name,searchable:e.searchable===void 0?!0:e.searchable,sortable:e.sortable===void 0?!0:e.sortable,visible:e.visible===void 0?!0:e.visible,search:{value:"",regex:!1}})),order:this.order,start:0,length:10,search:{value:"",regex:!1}}},setPageLength(e){this.columnSettings.length=e,this.loadData()},setPage(e){e<1||e>this.pageCount||(this.columnSettings.start=(e-1)*this.columnSettings.length,this.loadData())},setSearchTerm(){setTimeout(()=>{this.columnSettings.search.value=this.$el.querySelector(".filter-input").value,this.columnSettings.start=0,this.loadData()},500)},setSorting(e){this.columnSettings.columns[e].sortable&&(this.columnSettings.order[0].column==e?this.columnSettings.order[0].dir=this.columnSettings.order[0].dir=="asc"?"desc":"asc":this.columnSettings.order=[{column:e,dir:"asc"}],this.loadData())},generateLink(e,t){const r=(o,a)=>{if(!a||typeof a!="object")return o;const l=new URLSearchParams(a).toString();return l?`${o}?${l}`:o},i=(o,a)=>{if(!o)return"";let l=o.replace(/\{(\w+)\}/g,(c,h)=>a[h]??"");return l=l.replace(/(^|[^:]):(\w+)/g,(c,h,f)=>`${h}${a[f]??""}`),l};if(typeof e=="string")return i(e,t);if(!e||typeof e!="object")return"";if(e.template){const o={...t||{},...e.params||{}},a=i(e.template,o);return r(a,e.query)}if(e.name){const o=Array.isArray(e.resourceIds)?e.resourceIds.map(l=>t?t[l]:void 0):[];let a=route(e.name,o);return r(a,e.query)}return""},selectAllRows(){this.selectedRows.length==this.rows.length?this.selectedRows=[]:this.selectedRows=this.rows.map(e=>e.id)},clearSelectedRows(){this.selectedRows=[]},filterColumns(e){this.columnSettings.columns.forEach((t,r)=>{t.searchable&&(t.search.value="",e.forEach(i=>{i.name==t.name&&(t.search.value=i.value)}))}),this.loadData()},getSelectedRows(){return this.selectedRows}},mounted(){this.initColumnSettings(),this.loadDataOnInit&&this.loadData()}},Se=e=>(d.pushScopeId("data-v-c63fe957"),e=e(),d.popScopeId(),e),Cc={key:0,class:"card-icon"},Rc={key:0,class:"material-icons"},xc={key:1,class:"material-icons"},Nc={key:1,class:"card-title"},Bc={key:2,class:"card-title text-danger"},Ic={class:"form-group label-floating is-empty"},Fc=Se(()=>d.createElementVNode("i",{class:"material-icons search-icon-left"},"search",-1)),kc=[Se(()=>d.createElementVNode("i",{class:"material-icons"},"close",-1))],Lc={class:"card-actions icons right-top"},Dc={key:0},Mc=Se(()=>d.createElementVNode("i",{class:"material-icons"},"add",-1)),jc=[Se(()=>d.createElementVNode("i",{class:"material-icons"},"search",-1))],Uc={class:"dropdown","data-tippy-content":"Show Entries"},Vc=Se(()=>d.createElementVNode("a",{href:"javascript:void(0)","data-bs-toggle":"dropdown"},[d.createElementVNode("i",{class:"material-icons"},"more_vert")],-1)),$c={class:"dropdown-menu dropdown-menu-right"},qc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"10",-1))],Hc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"25",-1))],zc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"50",-1))],Wc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"100",-1))],Gc={class:"card-body"},Jc=["name","placeholder"],Kc=Se(()=>d.createElementVNode("button",{type:"submit",class:"btn btn-primary"},"Meklēt",-1)),Qc={class:"table-responsive"},Xc={class:"dataTables_wrapper no-footer"},Yc={key:0},Zc=["onClick"],eu={key:1,class:"w-25"},tu=["onClick"],ru={key:0},nu=["value"],iu=["href","innerHTML"],ou=["innerHTML"],au={key:1},su=["onClick"],lu={key:0,class:"material-icons"},cu={class:"d-flex justify-content-between align-items-center mt-3"},uu={class:"dataTables_info"},fu={key:0},du={class:"dataTables_paginate paging_simple_numbers user-select-none",id:"document-index-table_paginate"},pu=["onClick"];function hu(e,t,r,i,o,a){const l=d.resolveComponent("Link");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["card",r.cardClasses])},[d.createElementVNode("header",{class:d.normalizeClass(["card-header",{"card-header-primary":!o.cardError&&r.cardIcon,"card-header-danger":o.cardError&&r.cardIcon,"card-header-icon":r.cardIcon}])},[r.cardIcon?(d.openBlock(),d.createElementBlock("div",Cc,[o.cardError?(d.openBlock(),d.createElementBlock("i",xc,"dangerous")):(d.openBlock(),d.createElementBlock("i",Rc,d.toDisplayString(r.cardIcon),1))])):d.createCommentVNode("",!0),r.cardTitle&&!o.cardError?(d.openBlock(),d.createElementBlock("h4",Nc,d.toDisplayString(r.cardTitle),1)):d.createCommentVNode("",!0),o.cardError?(d.openBlock(),d.createElementBlock("h4",Bc,d.toDisplayString(o.cardError),1)):d.createCommentVNode("",!0),r.advancedSearch?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",{key:3,class:d.normalizeClass(["card-search",{open:o.searchBarOpen}])},[d.createElementVNode("div",Ic,[Fc,d.createElementVNode("input",{type:"text",class:"form-control filter-input",placeholder:"Search...",autocomplete:"off",onKeyup:t[0]||(t[0]=(...c)=>a.setSearchTerm&&a.setSearchTerm(...c))},null,32),d.createElementVNode("a",{href:"javascript:void(0)",class:"close-search",onClick:t[1]||(t[1]=(...c)=>a.clearSearch&&a.clearSearch(...c)),"data-tippy-content":"Close"},kc)])],2)),d.createElementVNode("ul",Lc,[d.renderSlot(e.$slots,"actions",{},void 0,!0),r.createLink?(d.openBlock(),d.createElementBlock("li",Dc,[d.createVNode(l,{href:r.createLink,"data-tippy-content":"Create new"},{default:d.withCtx(()=>[Mc]),_:1},8,["href"])])):d.createCommentVNode("",!0),d.createElementVNode("li",null,[d.createElementVNode("a",{href:"javascript:void(0)","data-tippy-content":"Meklēt",onClick:t[2]||(t[2]=(...c)=>a.toggleSearch&&a.toggleSearch(...c))},jc)]),d.createElementVNode("li",Uc,[Vc,d.createElementVNode("ul",$c,[d.createElementVNode("li",{onClick:t[3]||(t[3]=c=>a.setPageLength(10))},qc),d.createElementVNode("li",{onClick:t[4]||(t[4]=c=>a.setPageLength(25))},Hc),d.createElementVNode("li",{onClick:t[5]||(t[5]=c=>a.setPageLength(50))},zc),d.createElementVNode("li",{onClick:t[6]||(t[6]=c=>a.setPageLength(100))},Wc)])])])],2),d.createElementVNode("div",Gc,[d.renderSlot(e.$slots,"default",{},void 0,!0),r.advancedSearch?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(["toolbar",{open:o.searchBarOpen}])},[d.createElementVNode("form",{onSubmit:t[7]||(t[7]=d.withModifiers((...c)=>a.setAdvancedSearchFilters&&a.setAdvancedSearchFilters(...c),["prevent"]))},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.columns,(c,h)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[c.searchable!==!1?(d.openBlock(),d.createElementBlock("span",{class:"bmd-form-group",key:h},[d.createElementVNode("input",{name:c.name,class:"form-control advanced-filter-input",placeholder:c.displayName,autocomplete:"off"},null,8,Jc)])):d.createCommentVNode("",!0)],64))),256)),Kc],32)],2)):d.createCommentVNode("",!0),d.createElementVNode("div",Qc,[d.createElementVNode("div",Xc,[d.createElementVNode("table",{class:d.normalizeClass(["table data-table dataTable no-footer",{"table-hover":r.clickableRows}])},[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[r.selectableRows?(d.openBlock(),d.createElementBlock("th",Yc,[d.createElementVNode("input",{type:"checkbox",onClick:t[8]||(t[8]=(...c)=>a.selectAllRows&&a.selectAllRows(...c)),ref:"selectAllRows"},null,512)])):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.columns,(c,h)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:h},[c.visible!==!1?(d.openBlock(),d.createElementBlock("th",{key:0,class:d.normalizeClass([a.columnSortingClasses[h],c.sortable!==!1?"sorting":""]),onClick:f=>a.setSorting(h),style:d.normalizeStyle(c.width?{width:c.width}:{})},d.toDisplayString(c.displayName),15,Zc)):d.createCommentVNode("",!0)],64))),128)),r.actions?(d.openBlock(),d.createElementBlock("th",eu,"Darbības")):d.createCommentVNode("",!0)])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.rows,(c,h)=>(d.openBlock(),d.createElementBlock("tr",{key:h,onClick:f=>r.clickableRows?e.$emit("row-click",c):null},[r.selectableRows?(d.openBlock(),d.createElementBlock("td",ru,[d.withDirectives(d.createElementVNode("input",{type:"checkbox",value:c.id,"onUpdate:modelValue":t[9]||(t[9]=f=>o.selectedRows=f)},null,8,nu),[[d.vModelCheckbox,o.selectedRows]])])):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.columns,(f,y)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:y},[f.visible!==!1?(d.openBlock(),d.createElementBlock("td",{key:0,class:d.normalizeClass(a.getCellClasses(f,c))},[f.linkParams&&r.hyperlinkStyle==="Link"?(d.openBlock(),d.createBlock(l,{key:0,href:a.generateLink(f.linkParams,c),innerHTML:c[f.data]},null,8,["href","innerHTML"])):f.linkParams&&r.hyperlinkStyle==="a"?(d.openBlock(),d.createElementBlock("a",{key:1,href:a.generateLink(f.linkParams,c),innerHTML:c[f.data]},null,8,iu)):(d.openBlock(),d.createElementBlock("span",{key:2,innerHTML:c[f.data]},null,8,ou))],2)):d.createCommentVNode("",!0)],64))),128)),r.actions?(d.openBlock(),d.createElementBlock("td",au,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.actions,(f,y)=>(d.openBlock(),d.createElementBlock("button",{key:y,class:d.normalizeClass(["btn btn-sm",f.class]),onClick:b=>a.handleEmit(f.emit,c)},[f.icon?(d.openBlock(),d.createElementBlock("i",lu,d.toDisplayString(f.icon),1)):d.createCommentVNode("",!0),d.createTextVNode(" "+d.toDisplayString(f.label),1)],10,su))),128))])):d.createCommentVNode("",!0)],8,tu))),128))])],2),d.createElementVNode("div",cu,[d.createElementVNode("div",uu,[d.createTextVNode(" Rāda "+d.toDisplayString(a.firstRecord)+". līdz "+d.toDisplayString(a.lastRecord)+". no "+d.toDisplayString(o.recordsFiltered)+" ierakstiem ",1),o.recordsFiltered!=o.recordsTotal?(d.openBlock(),d.createElementBlock("span",fu," (kopā "+d.toDisplayString(o.recordsTotal)+" ieraksti) ",1)):d.createCommentVNode("",!0)]),d.createElementVNode("div",du,[d.createElementVNode("a",{class:d.normalizeClass(["paginate_button first user-select-none",{disabled:o.columnSettings.start==0}]),onClick:t[10]||(t[10]=c=>a.setPage(1))},"Pirmā",2),d.createElementVNode("a",{class:d.normalizeClass(["paginate_button previous",{disabled:o.columnSettings.start==0}]),onClick:t[11]||(t[11]=c=>a.setPage(a.currentPage-1))},"Iepriekšējā",2),d.createElementVNode("span",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pages,(c,h)=>(d.openBlock(),d.createElementBlock("a",{class:d.normalizeClass(["paginate_button",{current:c==a.currentPage}]),onClick:f=>a.setPage(c)},d.toDisplayString(c),11,pu))),256))]),d.createElementVNode("a",{class:d.normalizeClass(["paginate_button next",{disabled:o.columnSettings.start>=a.lastPageStart}]),onClick:t[12]||(t[12]=c=>a.setPage(a.currentPage+1))},"Nākamā",2),d.createElementVNode("a",{class:d.normalizeClass(["paginate_button last",{disabled:o.columnSettings.start>=a.lastPageStart}]),onClick:t[13]||(t[13]=c=>a.setPage(a.pageCount))},"Pēdējā",2)])])])])])],2)}return Tc(Pc,[["render",hu],["__scopeId","data-v-c63fe957"]])});
|
|
11
|
+
<Link href="${a}" method="${o}" as="button">...</Link>`),d.h(e.as,{...r,...i==="a"?{href:a}:{},onClick:c=>{_c(c)&&(c.preventDefault(),Rn.visit(a,{data:l,method:o,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:e.preserveState??o!=="get",only:e.only,headers:e.headers,onCancelToken:r.onCancelToken||(()=>({})),onBefore:r.onBefore||(()=>({})),onStart:r.onStart||(()=>({})),onProgress:r.onProgress||(()=>({})),onFinish:r.onFinish||(()=>({})),onCancel:r.onCancel||(()=>({})),onSuccess:r.onSuccess||(()=>({})),onError:r.onError||(()=>({}))}))}},t)}}}),Oc=Ac;const vu="",Tc=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},Pc={name:"DatatableCard",components:{Link:Oc},props:{cardTitle:{type:String,required:!1,default:null},cardIconStyle:{type:String,required:!1,default:"card-header-primary"},cardIcon:{type:String,required:!1,default:null},cardClasses:{type:String,required:!1,default:null},createLink:{type:String,required:!1,default:null},columns:{type:Array,required:!0},url:{type:String,required:!0},selectableRows:{type:Boolean,required:!1,default:!1},order:{type:Array,required:!1,default:[{column:0,dir:"asc"}]},advancedSearch:{type:Boolean,required:!1,default:!1},loadDataOnInit:{type:Boolean,required:!1,default:!0},requestQueryParams:{type:Object,required:!1,default:()=>({})},actions:{type:Array,required:!1},clickableRows:{type:Boolean,required:!1,default:!1},hyperlinkStyle:{type:String,required:!1,default:"Link"},pageLength:{type:Number,required:!1,default:10}},emits:["row-click"],data(){return{searchBarOpen:!1,rows:[],columnSettings:{},searchTerm:"",recordsTotal:0,recordsFiltered:0,selectedRows:[],cardError:null}},watch:{selectedRows:function(e,t){this.selectableRows&&(e.length===this.rows.length&&e.length>0?(this.$refs.selectAllRows.indeterminate=!1,this.$refs.selectAllRows.checked=!0):e.length===0?(this.$refs.selectAllRows.indeterminate=!1,this.$refs.selectAllRows.checked=!1):this.$refs.selectAllRows.indeterminate=!0)}},computed:{firstRecord(){return this.columnSettings.start+1},lastRecord(){return this.columnSettings.start+this.rows.length},currentPage(){return Math.ceil(this.columnSettings.start/this.columnSettings.length)+1},pageCount(){return Math.ceil(this.recordsFiltered/this.columnSettings.length)},lastPageStart(){return(this.pageCount-1)*this.columnSettings.length},columnSortingClasses(){let e=[];if(!this.columnSettings.order)return e;for(let t=0;t<this.columns.length;t++){let r="";for(let i=0;i<this.columnSettings.order.length;i++)this.columnSettings.order[i].column==t&&(r=this.columnSettings.order[i].dir=="asc"?"sorting_asc":"sorting_desc");e.push(r)}return e},pages(){let e=[],t=this.currentPage-2,r=this.currentPage+2;t<1&&(t=1,r=5),r>this.pageCount&&(t=this.pageCount-4,r=this.pageCount),t<1&&(t=1);for(let i=t;i<=r;i++)e.push(i);return e}},methods:{getCellClasses(e,t){const r=[];if(!e.classes)return r;if(typeof e.classes=="string")return r.push(e.classes),r;if(Array.isArray(e.classes)){const i=t[e.data];e.classes.forEach(o=>{if(!o||!o.class)return;let l=o.valueKey?t[o.valueKey]:i;if(typeof l=="string"&&(l=parseFloat(l.replace("%","").trim())),typeof l!="number"||isNaN(l))return;const c=o.min!==void 0?o.min:-1/0,h=o.max!==void 0?o.max:1/0;l>=c&&l<=h&&r.push(o.class)})}return r},handleEmit(e,t){this.$emit(e,t)},refresh(){this.initColumnSettings(),this.searchBarOpen=!1,this.loadDataOnInit?this.loadData():this.rows=[],this.selectedRows=[],this.advancedSearch||(this.$el.querySelector(".filter-input").value=""),this.$el.querySelectorAll(".advanced-filter-input").forEach(e=>{e.value=""})},toggleSearch(){this.advancedSearch||(this.searchBarOpen=!0),this.advancedSearch&&(this.searchBarOpen=!this.searchBarOpen)},clearSearch(){this.searchBarOpen=!1,this.$el.querySelector(".filter-input").value="",this.columnSettings.search.value="",this.loadData()},setAdvancedSearchFilters(){this.columnSettings.columns.forEach((e,t)=>{e.searchable&&(e.search.value=this.$el.querySelector(`input[name="${e.name}"]`).value)}),this.loadData()},loadData(){this.columnSettings.draw++,this.clearSelectedRows();const e={...this.requestQueryParams,...this.columnSettings};rn.get(this.url,{params:e}).then(t=>{if(t.data.error){this.cardError="error loading data. see console for details",console.error(t.data.error);return}this.cardError=null,this.rows=t.data.data,this.recordsTotal=t.data.recordsTotal,this.recordsFiltered=t.data.recordsFiltered}).catch(t=>{this.cardError=t.response.data.message,console.error(t)})},initColumnSettings(){this.columnSettings={draw:0,columns:this.columns.map((e,t)=>({data:e.data,name:e.name,searchable:e.searchable===void 0?!0:e.searchable,sortable:e.sortable===void 0?!0:e.sortable,visible:e.visible===void 0?!0:e.visible,search:{value:"",regex:!1}})),order:this.order,start:0,length:this.pageLength,search:{value:"",regex:!1}}},setPageLength(e){this.columnSettings.length=e,this.loadData()},setPage(e){e<1||e>this.pageCount||(this.columnSettings.start=(e-1)*this.columnSettings.length,this.loadData())},setSearchTerm(){setTimeout(()=>{this.columnSettings.search.value=this.$el.querySelector(".filter-input").value,this.columnSettings.start=0,this.loadData()},500)},setSorting(e){this.columnSettings.columns[e].sortable&&(this.columnSettings.order[0].column==e?this.columnSettings.order[0].dir=this.columnSettings.order[0].dir=="asc"?"desc":"asc":this.columnSettings.order=[{column:e,dir:"asc"}],this.loadData())},generateLink(e,t){const r=(o,a)=>{if(!a||typeof a!="object")return o;const l=new URLSearchParams(a).toString();return l?`${o}?${l}`:o},i=(o,a)=>{if(!o)return"";let l=o.replace(/\{(\w+)\}/g,(c,h)=>a[h]??"");return l=l.replace(/(^|[^:]):(\w+)/g,(c,h,f)=>`${h}${a[f]??""}`),l};if(typeof e=="string")return i(e,t);if(!e||typeof e!="object")return"";if(e.template){const o={...t||{},...e.params||{}},a=i(e.template,o);return r(a,e.query)}if(e.name){const o=Array.isArray(e.resourceIds)?e.resourceIds.map(l=>t?t[l]:void 0):[];let a=route(e.name,o);return r(a,e.query)}return""},selectAllRows(){this.selectedRows.length==this.rows.length?this.selectedRows=[]:this.selectedRows=this.rows.map(e=>e.id)},clearSelectedRows(){this.selectedRows=[]},filterColumns(e){this.columnSettings.columns.forEach((t,r)=>{t.searchable&&(t.search.value="",e.forEach(i=>{i.name==t.name&&(t.search.value=i.value)}))}),this.loadData()},getSelectedRows(){return this.selectedRows}},mounted(){this.initColumnSettings(),this.loadDataOnInit&&this.loadData()}},Se=e=>(d.pushScopeId("data-v-de43b70a"),e=e(),d.popScopeId(),e),Cc={key:0,class:"card-icon"},Rc={key:0,class:"material-icons"},xc={key:1,class:"material-icons"},Nc={key:1,class:"card-title"},Bc={key:2,class:"card-title text-danger"},Ic={class:"form-group label-floating is-empty"},Fc=Se(()=>d.createElementVNode("i",{class:"material-icons search-icon-left"},"search",-1)),kc=[Se(()=>d.createElementVNode("i",{class:"material-icons"},"close",-1))],Lc={class:"card-actions icons right-top"},Dc={key:0},Mc=Se(()=>d.createElementVNode("i",{class:"material-icons"},"add",-1)),jc=[Se(()=>d.createElementVNode("i",{class:"material-icons"},"search",-1))],Uc={class:"dropdown","data-tippy-content":"Show Entries"},Vc=Se(()=>d.createElementVNode("a",{href:"javascript:void(0)","data-bs-toggle":"dropdown"},[d.createElementVNode("i",{class:"material-icons"},"more_vert")],-1)),$c={class:"dropdown-menu dropdown-menu-right"},qc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"10",-1))],Hc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"25",-1))],zc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"50",-1))],Wc=[Se(()=>d.createElementVNode("a",{href:"javascript:void(0)"},"100",-1))],Gc={class:"card-body"},Jc=["name","placeholder"],Kc=Se(()=>d.createElementVNode("button",{type:"submit",class:"btn btn-primary"},"Meklēt",-1)),Qc={class:"table-responsive"},Xc={class:"dataTables_wrapper no-footer"},Yc={key:0},Zc=["onClick"],eu={key:1,class:"w-25"},tu=["onClick"],ru={key:0},nu=["value"],iu=["href","innerHTML"],ou=["innerHTML"],au={key:1},su=["onClick"],lu={key:0,class:"material-icons"},cu={class:"d-flex justify-content-between align-items-center mt-3"},uu={class:"dataTables_info"},fu={key:0},du={class:"dataTables_paginate paging_simple_numbers user-select-none",id:"document-index-table_paginate"},pu=["onClick"];function hu(e,t,r,i,o,a){const l=d.resolveComponent("Link");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["card",r.cardClasses])},[d.createElementVNode("header",{class:d.normalizeClass(["card-header",{"card-header-primary":!o.cardError&&r.cardIcon,"card-header-danger":o.cardError&&r.cardIcon,"card-header-icon":r.cardIcon}])},[r.cardIcon?(d.openBlock(),d.createElementBlock("div",Cc,[o.cardError?(d.openBlock(),d.createElementBlock("i",xc,"dangerous")):(d.openBlock(),d.createElementBlock("i",Rc,d.toDisplayString(r.cardIcon),1))])):d.createCommentVNode("",!0),r.cardTitle&&!o.cardError?(d.openBlock(),d.createElementBlock("h4",Nc,d.toDisplayString(r.cardTitle),1)):d.createCommentVNode("",!0),o.cardError?(d.openBlock(),d.createElementBlock("h4",Bc,d.toDisplayString(o.cardError),1)):d.createCommentVNode("",!0),r.advancedSearch?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",{key:3,class:d.normalizeClass(["card-search",{open:o.searchBarOpen}])},[d.createElementVNode("div",Ic,[Fc,d.createElementVNode("input",{type:"text",class:"form-control filter-input",placeholder:"Search...",autocomplete:"off",onKeyup:t[0]||(t[0]=(...c)=>a.setSearchTerm&&a.setSearchTerm(...c))},null,32),d.createElementVNode("a",{href:"javascript:void(0)",class:"close-search",onClick:t[1]||(t[1]=(...c)=>a.clearSearch&&a.clearSearch(...c)),"data-tippy-content":"Close"},kc)])],2)),d.createElementVNode("ul",Lc,[d.renderSlot(e.$slots,"actions",{},void 0,!0),r.createLink?(d.openBlock(),d.createElementBlock("li",Dc,[d.createVNode(l,{href:r.createLink,"data-tippy-content":"Create new"},{default:d.withCtx(()=>[Mc]),_:1},8,["href"])])):d.createCommentVNode("",!0),d.createElementVNode("li",null,[d.createElementVNode("a",{href:"javascript:void(0)","data-tippy-content":"Meklēt",onClick:t[2]||(t[2]=(...c)=>a.toggleSearch&&a.toggleSearch(...c))},jc)]),d.createElementVNode("li",Uc,[Vc,d.createElementVNode("ul",$c,[d.createElementVNode("li",{onClick:t[3]||(t[3]=c=>a.setPageLength(10))},qc),d.createElementVNode("li",{onClick:t[4]||(t[4]=c=>a.setPageLength(25))},Hc),d.createElementVNode("li",{onClick:t[5]||(t[5]=c=>a.setPageLength(50))},zc),d.createElementVNode("li",{onClick:t[6]||(t[6]=c=>a.setPageLength(100))},Wc)])])])],2),d.createElementVNode("div",Gc,[d.renderSlot(e.$slots,"default",{},void 0,!0),r.advancedSearch?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(["toolbar",{open:o.searchBarOpen}])},[d.createElementVNode("form",{onSubmit:t[7]||(t[7]=d.withModifiers((...c)=>a.setAdvancedSearchFilters&&a.setAdvancedSearchFilters(...c),["prevent"]))},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.columns,(c,h)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[c.searchable!==!1?(d.openBlock(),d.createElementBlock("span",{class:"bmd-form-group",key:h},[d.createElementVNode("input",{name:c.name,class:"form-control advanced-filter-input",placeholder:c.displayName,autocomplete:"off"},null,8,Jc)])):d.createCommentVNode("",!0)],64))),256)),Kc],32)],2)):d.createCommentVNode("",!0),d.createElementVNode("div",Qc,[d.createElementVNode("div",Xc,[d.createElementVNode("table",{class:d.normalizeClass(["table data-table dataTable no-footer",{"table-hover":r.clickableRows}])},[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[r.selectableRows?(d.openBlock(),d.createElementBlock("th",Yc,[d.createElementVNode("input",{type:"checkbox",onClick:t[8]||(t[8]=(...c)=>a.selectAllRows&&a.selectAllRows(...c)),ref:"selectAllRows"},null,512)])):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.columns,(c,h)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:h},[c.visible!==!1?(d.openBlock(),d.createElementBlock("th",{key:0,class:d.normalizeClass([a.columnSortingClasses[h],c.sortable!==!1?"sorting":""]),onClick:f=>a.setSorting(h),style:d.normalizeStyle(c.width?{width:c.width}:{})},d.toDisplayString(c.displayName),15,Zc)):d.createCommentVNode("",!0)],64))),128)),r.actions?(d.openBlock(),d.createElementBlock("th",eu,"Darbības")):d.createCommentVNode("",!0)])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.rows,(c,h)=>(d.openBlock(),d.createElementBlock("tr",{key:h,onClick:f=>r.clickableRows?e.$emit("row-click",c):null},[r.selectableRows?(d.openBlock(),d.createElementBlock("td",ru,[d.withDirectives(d.createElementVNode("input",{type:"checkbox",value:c.id,"onUpdate:modelValue":t[9]||(t[9]=f=>o.selectedRows=f)},null,8,nu),[[d.vModelCheckbox,o.selectedRows]])])):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.columns,(f,y)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:y},[f.visible!==!1?(d.openBlock(),d.createElementBlock("td",{key:0,class:d.normalizeClass(a.getCellClasses(f,c))},[f.linkParams&&r.hyperlinkStyle==="Link"?(d.openBlock(),d.createBlock(l,{key:0,href:a.generateLink(f.linkParams,c),innerHTML:c[f.data]},null,8,["href","innerHTML"])):f.linkParams&&r.hyperlinkStyle==="a"?(d.openBlock(),d.createElementBlock("a",{key:1,href:a.generateLink(f.linkParams,c),innerHTML:c[f.data]},null,8,iu)):(d.openBlock(),d.createElementBlock("span",{key:2,innerHTML:c[f.data]},null,8,ou))],2)):d.createCommentVNode("",!0)],64))),128)),r.actions?(d.openBlock(),d.createElementBlock("td",au,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.actions,(f,y)=>(d.openBlock(),d.createElementBlock("button",{key:y,class:d.normalizeClass(["btn btn-sm",f.class]),onClick:b=>a.handleEmit(f.emit,c)},[f.icon?(d.openBlock(),d.createElementBlock("i",lu,d.toDisplayString(f.icon),1)):d.createCommentVNode("",!0),d.createTextVNode(" "+d.toDisplayString(f.label),1)],10,su))),128))])):d.createCommentVNode("",!0)],8,tu))),128))])],2),d.createElementVNode("div",cu,[d.createElementVNode("div",uu,[d.createTextVNode(" Rāda "+d.toDisplayString(a.firstRecord)+". līdz "+d.toDisplayString(a.lastRecord)+". no "+d.toDisplayString(o.recordsFiltered)+" ierakstiem ",1),o.recordsFiltered!=o.recordsTotal?(d.openBlock(),d.createElementBlock("span",fu," (kopā "+d.toDisplayString(o.recordsTotal)+" ieraksti) ",1)):d.createCommentVNode("",!0)]),d.createElementVNode("div",du,[d.createElementVNode("a",{class:d.normalizeClass(["paginate_button first user-select-none",{disabled:o.columnSettings.start==0}]),onClick:t[10]||(t[10]=c=>a.setPage(1))},"Pirmā",2),d.createElementVNode("a",{class:d.normalizeClass(["paginate_button previous",{disabled:o.columnSettings.start==0}]),onClick:t[11]||(t[11]=c=>a.setPage(a.currentPage-1))},"Iepriekšējā",2),d.createElementVNode("span",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pages,(c,h)=>(d.openBlock(),d.createElementBlock("a",{class:d.normalizeClass(["paginate_button",{current:c==a.currentPage}]),onClick:f=>a.setPage(c)},d.toDisplayString(c),11,pu))),256))]),d.createElementVNode("a",{class:d.normalizeClass(["paginate_button next",{disabled:o.columnSettings.start>=a.lastPageStart}]),onClick:t[12]||(t[12]=c=>a.setPage(a.currentPage+1))},"Nākamā",2),d.createElementVNode("a",{class:d.normalizeClass(["paginate_button last",{disabled:o.columnSettings.start>=a.lastPageStart}]),onClick:t[13]||(t[13]=c=>a.setPage(a.pageCount))},"Pēdējā",2)])])])])])],2)}return Tc(Pc,[["render",hu],["__scopeId","data-v-de43b70a"]])});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.toolbar[data-v-
|
|
1
|
+
.toolbar[data-v-de43b70a]:not(.open){display:none}.card .card-heading[data-v-de43b70a]{padding:15px 20px;position:relative;height:65px}.card .card-search[data-v-de43b70a]{position:absolute;top:0;right:0;margin:0;padding:0;height:100%;z-index:15;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s;border:0;box-shadow:none;width:100%;display:none;background:#fff}.card .card-search .form-group[data-v-de43b70a]{margin:0;padding:0;height:65px}.card .card-search .search-icon-left[data-v-de43b70a]{left:15px;right:auto}.card .card-search .close-search[data-v-de43b70a],.card .card-search .search-icon-left[data-v-de43b70a]{top:50%;margin-top:-15px;line-height:30px;margin-right:10px;font-size:25px;position:absolute;right:15px;z-index:99}.card .card-search .form-control[data-v-de43b70a]{width:100%;height:100%;position:absolute;border:none;box-shadow:none;left:0;top:0;margin:0;font-size:15px;text-indent:45px;background-color:#eef5f9;background-image:none}.card .card-search .close-search[data-v-de43b70a]{right:15px;left:auto}.card .card-search .search-icon-left[data-v-de43b70a]{top:50%;margin-top:-15px;line-height:30px;margin-right:10px;font-size:25px;position:absolute;right:15px;z-index:99;width:30px}.card .card-search.open[data-v-de43b70a]{display:block}.card-heading ul.card-actions.icons[data-v-de43b70a]{position:absolute;list-style:none;padding:0;margin:0}ul.card-actions.icons li[data-v-de43b70a]{display:inline}.dataTables_wrapper .dataTables_paginate .paginate_button.current[data-v-de43b70a],.dataTables_wrapper .dataTables_paginate .paginate_button.current[data-v-de43b70a]:hover{background:unset;background-color:#00bcd4;border-color:#00bcd4;box-shadow:0 4px 5px #00bcd424,0 1px 10px #00bcd41f,0 2px 4px -1px #00bcd433}.dataTables_wrapper .dataTables_paginate .paginate_button[data-v-de43b70a],.dataTables_wrapper .dataTables_paginate .paginate_button[data-v-de43b70a]:hover{background:unset;border:0;border-color:#00bcd4;border-radius:30px!important;-webkit-transition:all .3s;transition:all .3s;padding:0 11px;margin:0 3px;min-width:30px;height:30px;line-height:30px;color:#999!important;font-weight:400;font-size:12px;text-transform:uppercase;background:transparent;text-align:center}.dataTables_wrapper .dataTables_paginate .paginate_button[data-v-de43b70a]:hover{border:1}.card-header[data-v-de43b70a]:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card .card-header[data-v-de43b70a]{border-bottom:none;background:transparent}.card [class*=card-header-][data-v-de43b70a],.card[class*=bg-][data-v-de43b70a]{color:#fff}.card .card-header[data-v-de43b70a]{z-index:3!important}.card [class*=card-header-][data-v-de43b70a]{margin:0 15px;padding:0;position:relative}.card [class*=card-header-] .card-icon[data-v-de43b70a],.card [class*=card-header-] .card-text[data-v-de43b70a]{border-radius:3px;background-color:#999;padding:15px;margin-top:-20px;margin-right:15px;float:left}.card .card-header.card-header-icon i[data-v-de43b70a],.card .card-header.card-header-text i[data-v-de43b70a]{width:33px;height:33px;text-align:center;line-height:33px}.card[data-v-de43b70a]{border:0;margin-bottom:30px;margin-top:30px;border-radius:6px;color:#333;background:#ffffff;width:100%;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f;box-shadow:0 1px 4px #00000024;font-size:.875rem}.card .card-header.card-header-icon .card-title[data-v-de43b70a],.card .card-header.card-header-text .card-title[data-v-de43b70a]{margin-top:15px;color:#3c4858}.card .card-header.card-header-icon h4[data-v-de43b70a],.card .card-header.card-header-text h4[data-v-de43b70a]{font-weight:300}.card .card-header .card-title[data-v-de43b70a]{margin-bottom:3px}.card .card-actions[data-v-de43b70a]{position:absolute;z-index:1;top:-50px;width:calc(100% - 30px);left:17px;right:17px;text-align:center}.card .card-actions[data-v-de43b70a]{text-align:end}.card ul.card-actions.icons[data-v-de43b70a]{position:absolute;list-style:none;padding:0;margin:0;right:10px;top:15px}ul.card-actions.icons.right-top[data-v-de43b70a]{right:10px;top:15px}ul.card-actions.icons li[data-v-de43b70a]{display:inline;width:100%;text-align:unset}.dropdown-menu .dropdown-item[data-v-de43b70a],.dropdown-menu li>a[data-v-de43b70a]{position:relative;width:auto;display:flex;flex-flow:nowrap;align-items:center;color:#333;font-weight:400;text-decoration:none;font-size:.8125rem;border-radius:.125rem;margin:0 .3125rem;transition:all .15s linear;min-width:7rem;padding:.625rem 1.25rem;overflow:hidden;line-height:1.42857143;text-overflow:ellipsis;word-wrap:break-word}.dropdown-menu .dropdown-item[data-v-de43b70a],.dropdown-menu li>a[data-v-de43b70a]{padding-right:1.5rem;padding-left:1.5rem}.dropdown-menu[data-v-de43b70a]{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.dropdown-menu[data-v-de43b70a]{border:0;display:none;padding:.3125rem 0;transform:scale(0);transform-origin:0 0;will-change:transform,opacity;box-shadow:0 2px 5px #00000042}.dropdown-menu[data-v-de43b70a]{margin:0!important}.clickable-rows tbody tr[data-v-de43b70a]{cursor:pointer}
|
package/package.json
CHANGED
|
@@ -239,6 +239,11 @@ export default {
|
|
|
239
239
|
required: false,
|
|
240
240
|
default: 'Link',
|
|
241
241
|
},
|
|
242
|
+
pageLength: {
|
|
243
|
+
type: Number,
|
|
244
|
+
required: false,
|
|
245
|
+
default: 10,
|
|
246
|
+
},
|
|
242
247
|
},
|
|
243
248
|
emits: ['row-click'],
|
|
244
249
|
data() {
|
|
@@ -472,7 +477,7 @@ export default {
|
|
|
472
477
|
}),
|
|
473
478
|
order: this.order,
|
|
474
479
|
start: 0,
|
|
475
|
-
length:
|
|
480
|
+
length: this.pageLength,
|
|
476
481
|
search: {
|
|
477
482
|
value: '',
|
|
478
483
|
regex: false,
|