sprintify-ui 0.8.7 → 0.8.8
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/sprintify-ui.es.js +110 -105
- package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +32 -32
- package/dist/types/components/BaseDataTable.vue.d.ts +17 -0
- package/dist/types/components/BaseDataTableTemplate.vue.d.ts +9 -9
- package/package.json +1 -1
- package/src/components/BaseDataTable.stories.js +2 -1
- package/src/components/BaseDataTable.vue +10 -0
- package/src/components/BaseDataTableTemplate.vue +22 -21
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Qb = Object.defineProperty;
|
|
2
2
|
var Zb = (n, t, e) => t in n ? Qb(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var sr = (n, t, e) => (Zb(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as ve, computed as N, inject as ot, resolveComponent as Kt, openBlock as I, createBlock as ke, withCtx as pe, createElementVNode as $, normalizeClass as de, unref as C, withModifiers as Kn, renderSlot as Re, createElementBlock as K, normalizeStyle as rt, createVNode as ge, createCommentVNode as be, toDisplayString as Ce, getCurrentScope as im, onScopeDispose as om, toRef as Xb, readonly as uo, customRef as Jb, ref as ee, watchEffect as dn, h as Et, shallowRef as ud, watch as lt, shallowReadonly as no, Fragment as Ke, Teleport as Tr, Transition as
|
|
4
|
+
import { defineComponent as ve, computed as N, inject as ot, resolveComponent as Kt, openBlock as I, createBlock as ke, withCtx as pe, createElementVNode as $, normalizeClass as de, unref as C, withModifiers as Kn, renderSlot as Re, createElementBlock as K, normalizeStyle as rt, createVNode as ge, createCommentVNode as be, toDisplayString as Ce, getCurrentScope as im, onScopeDispose as om, toRef as Xb, readonly as uo, customRef as Jb, ref as ee, watchEffect as dn, h as Et, shallowRef as ud, watch as lt, shallowReadonly as no, Fragment as Ke, Teleport as Tr, Transition as $n, provide as ht, createTextVNode as cn, onBeforeUnmount as Fn, resolveDynamicComponent as Hn, withDirectives as wn, mergeProps as Xt, renderList as st, onMounted as vt, nextTick as Vt, Comment as e0, useSlots as lm, TransitionGroup as am, isRef as jr, normalizeProps as zt, guardReactiveProps as jt, vShow as mr, createSlots as sm, cloneVNode as t0, onUnmounted as Dn, getCurrentInstance as um, reactive as cd, withKeys as Za, vModelText as Xa, createStaticVNode as cm, vModelSelect as n0 } from "vue";
|
|
5
5
|
import r0 from "axios";
|
|
6
6
|
import { uniqueId as dm, get as ui, isArray as Jt, isString as Il, cloneDeep as Gt, isObject as $r, throttle as dd, debounce as qn, truncate as i0, trim as fm, padStart as Ia, isNumber as ci, merge as wl, range as ei, sortBy as Vf, set as ku, isEqual as o0, isPlainObject as l0, reject as a0, round as Uf, isBoolean as s0, isNull as u0, capitalize as c0 } from "lodash";
|
|
7
7
|
import Wf from "qs";
|
|
@@ -5496,7 +5496,7 @@ const Jw = ["innerHTML"], Ll = /* @__PURE__ */ ve({
|
|
|
5496
5496
|
class: "fixed top-0 left-0 pointer-events-none z-tooltip",
|
|
5497
5497
|
style: rt(C(o))
|
|
5498
5498
|
}, [
|
|
5499
|
-
ge(
|
|
5499
|
+
ge($n, {
|
|
5500
5500
|
"enter-active-class": "transition duration-200 ease-out",
|
|
5501
5501
|
"enter-from-class": "transform scale-90 opacity-0",
|
|
5502
5502
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -7741,7 +7741,7 @@ const rE = {
|
|
|
7741
7741
|
return t({
|
|
7742
7742
|
dialogs: r
|
|
7743
7743
|
}), (d, f) => (I(), ke(Tr, { to: "body" }, [
|
|
7744
|
-
ge(
|
|
7744
|
+
ge($n, {
|
|
7745
7745
|
appear: "",
|
|
7746
7746
|
"enter-active-class": "duration-200 ease-out",
|
|
7747
7747
|
"enter-from-class": "opacity-0",
|
|
@@ -9709,7 +9709,7 @@ const BE = {
|
|
|
9709
9709
|
style: rt(C(l)),
|
|
9710
9710
|
class: "fixed top-0 left-0 pointer-events-none z-modal"
|
|
9711
9711
|
}, [
|
|
9712
|
-
ge(
|
|
9712
|
+
ge($n, {
|
|
9713
9713
|
"enter-active-class": "transition duration-200 ease-out",
|
|
9714
9714
|
"enter-from-class": "transform -translate-y-2 scale-95 opacity-0",
|
|
9715
9715
|
"enter-to-class": "transform translate-y-0 scale-100 opacity-100",
|
|
@@ -10676,15 +10676,15 @@ function hi(n, t, e) {
|
|
|
10676
10676
|
const l_ = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
|
|
10677
10677
|
function Qh(n, t) {
|
|
10678
10678
|
let e = ii(n);
|
|
10679
|
-
return e[2] += t * 7,
|
|
10679
|
+
return e[2] += t * 7, jn(e);
|
|
10680
10680
|
}
|
|
10681
10681
|
function pn(n, t) {
|
|
10682
10682
|
let e = ii(n);
|
|
10683
|
-
return e[2] += t,
|
|
10683
|
+
return e[2] += t, jn(e);
|
|
10684
10684
|
}
|
|
10685
10685
|
function pi(n, t) {
|
|
10686
10686
|
let e = ii(n);
|
|
10687
|
-
return e[6] += t,
|
|
10687
|
+
return e[6] += t, jn(e);
|
|
10688
10688
|
}
|
|
10689
10689
|
function a_(n, t) {
|
|
10690
10690
|
return yi(n, t) / 7;
|
|
@@ -10718,14 +10718,14 @@ function us(n, t) {
|
|
|
10718
10718
|
return oi(n) === oi(t) ? Math.round(yi(n, t)) : null;
|
|
10719
10719
|
}
|
|
10720
10720
|
function $t(n) {
|
|
10721
|
-
return
|
|
10721
|
+
return jn([
|
|
10722
10722
|
n.getUTCFullYear(),
|
|
10723
10723
|
n.getUTCMonth(),
|
|
10724
10724
|
n.getUTCDate()
|
|
10725
10725
|
]);
|
|
10726
10726
|
}
|
|
10727
10727
|
function h_(n) {
|
|
10728
|
-
return
|
|
10728
|
+
return jn([
|
|
10729
10729
|
n.getUTCFullYear(),
|
|
10730
10730
|
n.getUTCMonth(),
|
|
10731
10731
|
n.getUTCDate(),
|
|
@@ -10733,7 +10733,7 @@ function h_(n) {
|
|
|
10733
10733
|
]);
|
|
10734
10734
|
}
|
|
10735
10735
|
function p_(n) {
|
|
10736
|
-
return
|
|
10736
|
+
return jn([
|
|
10737
10737
|
n.getUTCFullYear(),
|
|
10738
10738
|
n.getUTCMonth(),
|
|
10739
10739
|
n.getUTCDate(),
|
|
@@ -10742,7 +10742,7 @@ function p_(n) {
|
|
|
10742
10742
|
]);
|
|
10743
10743
|
}
|
|
10744
10744
|
function m_(n) {
|
|
10745
|
-
return
|
|
10745
|
+
return jn([
|
|
10746
10746
|
n.getUTCFullYear(),
|
|
10747
10747
|
n.getUTCMonth(),
|
|
10748
10748
|
n.getUTCDate(),
|
|
@@ -10759,12 +10759,12 @@ function g_(n, t, e) {
|
|
|
10759
10759
|
return o >= 1 ? Math.min(i, o) : i;
|
|
10760
10760
|
}
|
|
10761
10761
|
function Pu(n, t, e, r) {
|
|
10762
|
-
let i =
|
|
10762
|
+
let i = jn([t, 0, 1 + v_(t, e, r)]), o = $t(n), l = Math.round(yi(i, o));
|
|
10763
10763
|
return Math.floor(l / 7) + 1;
|
|
10764
10764
|
}
|
|
10765
10765
|
function v_(n, t, e) {
|
|
10766
10766
|
let r = 7 + t - e;
|
|
10767
|
-
return -((7 +
|
|
10767
|
+
return -((7 + jn([n, 0, r]).getUTCDay() - t) % 7) + r - 1;
|
|
10768
10768
|
}
|
|
10769
10769
|
function Zh(n) {
|
|
10770
10770
|
return [
|
|
@@ -10799,7 +10799,7 @@ function ii(n) {
|
|
|
10799
10799
|
n.getUTCMilliseconds()
|
|
10800
10800
|
];
|
|
10801
10801
|
}
|
|
10802
|
-
function
|
|
10802
|
+
function jn(n) {
|
|
10803
10803
|
return n.length === 1 && (n = n.concat([0])), new Date(Date.UTC(...n));
|
|
10804
10804
|
}
|
|
10805
10805
|
function Ug(n) {
|
|
@@ -11445,7 +11445,7 @@ class F_ {
|
|
|
11445
11445
|
return t.getUTCDate();
|
|
11446
11446
|
}
|
|
11447
11447
|
arrayToMarker(t) {
|
|
11448
|
-
return
|
|
11448
|
+
return jn(t);
|
|
11449
11449
|
}
|
|
11450
11450
|
markerToArray(t) {
|
|
11451
11451
|
return ii(t);
|
|
@@ -11479,13 +11479,13 @@ class V_ {
|
|
|
11479
11479
|
return e === null ? null : e.marker;
|
|
11480
11480
|
}
|
|
11481
11481
|
createNowMarker() {
|
|
11482
|
-
return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) :
|
|
11482
|
+
return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) : jn(Zh(/* @__PURE__ */ new Date()));
|
|
11483
11483
|
}
|
|
11484
11484
|
createMarkerMeta(t) {
|
|
11485
11485
|
if (typeof t == "string")
|
|
11486
11486
|
return this.parse(t);
|
|
11487
11487
|
let e = null;
|
|
11488
|
-
return typeof t == "number" ? e = this.timestampToMarker(t) : t instanceof Date ? (t = t.valueOf(), isNaN(t) || (e = this.timestampToMarker(t))) : Array.isArray(t) && (e =
|
|
11488
|
+
return typeof t == "number" ? e = this.timestampToMarker(t) : t instanceof Date ? (t = t.valueOf(), isNaN(t) || (e = this.timestampToMarker(t))) : Array.isArray(t) && (e = jn(t)), e === null || !Ug(e) ? null : { marker: e, isTimeUnspecified: !1, forcedTzo: null };
|
|
11489
11489
|
}
|
|
11490
11490
|
parse(t) {
|
|
11491
11491
|
let e = q_(t);
|
|
@@ -11592,7 +11592,7 @@ class V_ {
|
|
|
11592
11592
|
}
|
|
11593
11593
|
// TimeZone
|
|
11594
11594
|
timestampToMarker(t) {
|
|
11595
|
-
return this.timeZone === "local" ?
|
|
11595
|
+
return this.timeZone === "local" ? jn(Zh(new Date(t))) : this.timeZone === "UTC" || !this.namedTimeZoneImpl ? new Date(t) : jn(this.namedTimeZoneImpl.timestampToArray(t));
|
|
11596
11596
|
}
|
|
11597
11597
|
offsetForMarker(t) {
|
|
11598
11598
|
return this.timeZone === "local" ? -Xh(ii(t)).getTimezoneOffset() : this.timeZone === "UTC" ? 0 : this.namedTimeZoneImpl ? this.namedTimeZoneImpl.offsetForArray(ii(t)) : null;
|
|
@@ -20929,7 +20929,7 @@ const PD = {
|
|
|
20929
20929
|
return (o, l) => {
|
|
20930
20930
|
const a = Kt("BaseIcon");
|
|
20931
20931
|
return I(), ke(Tr, { to: "body" }, [
|
|
20932
|
-
ge(
|
|
20932
|
+
ge($n, {
|
|
20933
20933
|
name: "modal",
|
|
20934
20934
|
"enter-active-class": "duration-300",
|
|
20935
20935
|
"leave-active-class": "duration-200"
|
|
@@ -20947,7 +20947,7 @@ const PD = {
|
|
|
20947
20947
|
]])
|
|
20948
20948
|
}, [
|
|
20949
20949
|
$("div", LD, [
|
|
20950
|
-
ge(
|
|
20950
|
+
ge($n, {
|
|
20951
20951
|
appear: "",
|
|
20952
20952
|
"enter-active-class": "duration-100 ease-out",
|
|
20953
20953
|
"enter-from-class": "opacity-0",
|
|
@@ -20968,7 +20968,7 @@ const PD = {
|
|
|
20968
20968
|
]),
|
|
20969
20969
|
_: 1
|
|
20970
20970
|
}),
|
|
20971
|
-
ge(
|
|
20971
|
+
ge($n, {
|
|
20972
20972
|
appear: "",
|
|
20973
20973
|
"enter-active-class": "duration-100 ease-out",
|
|
20974
20974
|
"enter-from-class": "translate-y-20 opacity-0",
|
|
@@ -23826,7 +23826,7 @@ const nR = { class: "grow" }, rR = {
|
|
|
23826
23826
|
}),
|
|
23827
23827
|
class: "fixed top-0 left-0 z-menu"
|
|
23828
23828
|
}, [
|
|
23829
|
-
ge(
|
|
23829
|
+
ge($n, {
|
|
23830
23830
|
"enter-active-class": "transition duration-200 ease-out",
|
|
23831
23831
|
"enter-from-class": "transform -translate-y-2 scale-95 opacity-0",
|
|
23832
23832
|
"enter-to-class": "transform translate-y-0 scale-100 opacity-100",
|
|
@@ -24190,7 +24190,7 @@ const nR = { class: "grow" }, rR = {
|
|
|
24190
24190
|
return (a, s) => {
|
|
24191
24191
|
const c = Kt("BaseIcon");
|
|
24192
24192
|
return I(), ke(Tr, { to: "body" }, [
|
|
24193
|
-
ge(
|
|
24193
|
+
ge($n, {
|
|
24194
24194
|
name: "modal",
|
|
24195
24195
|
"enter-active-class": "duration-300",
|
|
24196
24196
|
"leave-active-class": "duration-200"
|
|
@@ -24200,7 +24200,7 @@ const nR = { class: "grow" }, rR = {
|
|
|
24200
24200
|
$("div", wR, [
|
|
24201
24201
|
$("div", xR, [
|
|
24202
24202
|
$("div", ER, [
|
|
24203
|
-
ge(
|
|
24203
|
+
ge($n, {
|
|
24204
24204
|
appear: "",
|
|
24205
24205
|
"enter-active-class": "duration-200 ease-out",
|
|
24206
24206
|
"enter-from-class": "opacity-0",
|
|
@@ -24222,7 +24222,7 @@ const nR = { class: "grow" }, rR = {
|
|
|
24222
24222
|
]),
|
|
24223
24223
|
_: 1
|
|
24224
24224
|
}),
|
|
24225
|
-
ge(
|
|
24225
|
+
ge($n, {
|
|
24226
24226
|
appear: "",
|
|
24227
24227
|
"enter-active-class": "duration-200 ease-out",
|
|
24228
24228
|
"enter-from-class": "translate-x-20 opacity-0",
|
|
@@ -25159,7 +25159,7 @@ const tb = /* @__PURE__ */ To(GR, [["render", ZR]]), XR = { class: "relative" },
|
|
|
25159
25159
|
], 2)
|
|
25160
25160
|
], 4),
|
|
25161
25161
|
Re(s.$slots, "loading", {}, () => [
|
|
25162
|
-
ge(
|
|
25162
|
+
ge($n, {
|
|
25163
25163
|
"enter-active-class": "transition ease-out duration-200",
|
|
25164
25164
|
"enter-from-class": "opacity-0",
|
|
25165
25165
|
"enter-to-class": "opacity-100",
|
|
@@ -25465,11 +25465,6 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
25465
25465
|
type: Function,
|
|
25466
25466
|
default: () => !0
|
|
25467
25467
|
},
|
|
25468
|
-
/* Transition name to use when toggling row details. */
|
|
25469
|
-
detailTransition: {
|
|
25470
|
-
type: String,
|
|
25471
|
-
default: ""
|
|
25472
|
-
},
|
|
25473
25468
|
/* Max height (in px) */
|
|
25474
25469
|
maxHeight: {
|
|
25475
25470
|
default: void 0,
|
|
@@ -25490,6 +25485,10 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
25490
25485
|
onRowClick: {
|
|
25491
25486
|
default: void 0,
|
|
25492
25487
|
type: Function
|
|
25488
|
+
},
|
|
25489
|
+
rowKey: {
|
|
25490
|
+
default: void 0,
|
|
25491
|
+
type: Function
|
|
25493
25492
|
}
|
|
25494
25493
|
},
|
|
25495
25494
|
emits: [
|
|
@@ -25639,13 +25638,15 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
25639
25638
|
}
|
|
25640
25639
|
let W = !1;
|
|
25641
25640
|
function Q(z) {
|
|
25641
|
+
if (r.rowKey)
|
|
25642
|
+
return r.rowKey(z) + "";
|
|
25642
25643
|
if (z.id)
|
|
25643
25644
|
return z.id;
|
|
25644
25645
|
if (z.key)
|
|
25645
25646
|
return z.key;
|
|
25646
25647
|
if (z.uuid)
|
|
25647
25648
|
return z.uuid;
|
|
25648
|
-
W || (console.warn("%cNo unique key found for items provided to BaseDataTable.%cPlease provide a unique key for each row (id, key or uuid)
|
|
25649
|
+
W || (console.warn("%cNo unique key found for items provided to BaseDataTable.%cPlease provide a unique key for each row (id, key or uuid) or use the row-key props to specify a unique key.", "font-weight: bold", "font-weight: normal"), W = !0);
|
|
25649
25650
|
const te = {};
|
|
25650
25651
|
for (const X in z) {
|
|
25651
25652
|
const R = z[X];
|
|
@@ -25828,27 +25829,22 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
25828
25829
|
]),
|
|
25829
25830
|
_: 2
|
|
25830
25831
|
}, 1040, ["to"]),
|
|
25831
|
-
|
|
25832
|
+
V(R) ? (I(), ke(tl, {
|
|
25833
|
+
key: Q(R) + "detail"
|
|
25834
|
+
}, {
|
|
25832
25835
|
default: pe(() => [
|
|
25833
|
-
|
|
25834
|
-
key: Q(R) + "detail"
|
|
25835
|
-
}, {
|
|
25836
|
+
ge(Va, { colspan: C(m) }, {
|
|
25836
25837
|
default: pe(() => [
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
index: q
|
|
25842
|
-
})
|
|
25843
|
-
]),
|
|
25844
|
-
_: 2
|
|
25845
|
-
}, 1032, ["colspan"])
|
|
25838
|
+
Re(z.$slots, "detail", {
|
|
25839
|
+
row: R,
|
|
25840
|
+
index: q
|
|
25841
|
+
})
|
|
25846
25842
|
]),
|
|
25847
25843
|
_: 2
|
|
25848
|
-
},
|
|
25844
|
+
}, 1032, ["colspan"])
|
|
25849
25845
|
]),
|
|
25850
25846
|
_: 2
|
|
25851
|
-
},
|
|
25847
|
+
}, 1024)) : be("", !0)
|
|
25852
25848
|
], 64))), 128)),
|
|
25853
25849
|
n.data.length == 0 ? (I(), ke(tl, { key: 0 }, {
|
|
25854
25850
|
default: pe(() => [
|
|
@@ -26110,6 +26106,14 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
26110
26106
|
filtersPosition: {
|
|
26111
26107
|
default: "section",
|
|
26112
26108
|
type: String
|
|
26109
|
+
},
|
|
26110
|
+
/**
|
|
26111
|
+
* Row key. Used to identify rows for faster rendering.
|
|
26112
|
+
* If not provided, it will use the id, key or uuid, or create a hash from the row object.
|
|
26113
|
+
*/
|
|
26114
|
+
rowKey: {
|
|
26115
|
+
default: void 0,
|
|
26116
|
+
type: Function
|
|
26113
26117
|
}
|
|
26114
26118
|
},
|
|
26115
26119
|
emits: [
|
|
@@ -26312,6 +26316,7 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
26312
26316
|
size: C(s).size.value,
|
|
26313
26317
|
"row-to": C(h),
|
|
26314
26318
|
"row-href": n.rowHref,
|
|
26319
|
+
"row-key": n.rowKey,
|
|
26315
26320
|
"onUpdate:checkedRows": B,
|
|
26316
26321
|
onSort: j.onSortChange,
|
|
26317
26322
|
onRowClick: n.onRowClick
|
|
@@ -26377,7 +26382,7 @@ const rM = ["align", "colspan"], ab = /* @__PURE__ */ ve({
|
|
|
26377
26382
|
])) : be("", !0)
|
|
26378
26383
|
]),
|
|
26379
26384
|
_: 2
|
|
26380
|
-
}, 1032, ["checked-rows", "data", "loading", "detailed", "has-detailed-visible", "checkable", "is-row-checkable", "sort-field", "sort-direction", "max-height", "visible-columns", "size", "row-to", "row-href", "onSort", "onRowClick"])
|
|
26385
|
+
}, 1032, ["checked-rows", "data", "loading", "detailed", "has-detailed-visible", "checkable", "is-row-checkable", "sort-field", "sort-direction", "max-height", "visible-columns", "size", "row-to", "row-href", "row-key", "onSort", "onRowClick"])
|
|
26381
26386
|
];
|
|
26382
26387
|
}),
|
|
26383
26388
|
_: 2
|
|
@@ -26570,7 +26575,7 @@ var Zu = [
|
|
|
26570
26575
|
hourAriaLabel: "Hour",
|
|
26571
26576
|
minuteAriaLabel: "Minute",
|
|
26572
26577
|
time_24hr: !1
|
|
26573
|
-
},
|
|
26578
|
+
}, Ln = function(n, t) {
|
|
26574
26579
|
return t === void 0 && (t = 2), ("000" + n).slice(t * -1);
|
|
26575
26580
|
}, nr = function(n) {
|
|
26576
26581
|
return n === !0 ? 1 : 0;
|
|
@@ -26727,10 +26732,10 @@ var Ju = function() {
|
|
|
26727
26732
|
return ws(pl.n(n, t, e) - 1, !1, t);
|
|
26728
26733
|
},
|
|
26729
26734
|
G: function(n, t, e) {
|
|
26730
|
-
return
|
|
26735
|
+
return Ln(pl.h(n, t, e));
|
|
26731
26736
|
},
|
|
26732
26737
|
H: function(n) {
|
|
26733
|
-
return
|
|
26738
|
+
return Ln(n.getHours());
|
|
26734
26739
|
},
|
|
26735
26740
|
J: function(n, t) {
|
|
26736
26741
|
return t.ordinal !== void 0 ? n.getDate() + t.ordinal(n.getDate()) : n.getDate();
|
|
@@ -26742,7 +26747,7 @@ var Ju = function() {
|
|
|
26742
26747
|
return ws(n.getMonth(), !0, t);
|
|
26743
26748
|
},
|
|
26744
26749
|
S: function(n) {
|
|
26745
|
-
return
|
|
26750
|
+
return Ln(n.getSeconds());
|
|
26746
26751
|
},
|
|
26747
26752
|
U: function(n) {
|
|
26748
26753
|
return n.getTime() / 1e3;
|
|
@@ -26751,16 +26756,16 @@ var Ju = function() {
|
|
|
26751
26756
|
return e.getWeek(n);
|
|
26752
26757
|
},
|
|
26753
26758
|
Y: function(n) {
|
|
26754
|
-
return
|
|
26759
|
+
return Ln(n.getFullYear(), 4);
|
|
26755
26760
|
},
|
|
26756
26761
|
d: function(n) {
|
|
26757
|
-
return
|
|
26762
|
+
return Ln(n.getDate());
|
|
26758
26763
|
},
|
|
26759
26764
|
h: function(n) {
|
|
26760
26765
|
return n.getHours() % 12 ? n.getHours() % 12 : 12;
|
|
26761
26766
|
},
|
|
26762
26767
|
i: function(n) {
|
|
26763
|
-
return
|
|
26768
|
+
return Ln(n.getMinutes());
|
|
26764
26769
|
},
|
|
26765
26770
|
j: function(n) {
|
|
26766
26771
|
return n.getDate();
|
|
@@ -26769,7 +26774,7 @@ var Ju = function() {
|
|
|
26769
26774
|
return t.weekdays.longhand[n.getDay()];
|
|
26770
26775
|
},
|
|
26771
26776
|
m: function(n) {
|
|
26772
|
-
return
|
|
26777
|
+
return Ln(n.getMonth() + 1);
|
|
26773
26778
|
},
|
|
26774
26779
|
n: function(n) {
|
|
26775
26780
|
return n.getMonth() + 1;
|
|
@@ -26979,7 +26984,7 @@ function BM(n, t) {
|
|
|
26979
26984
|
Z && Z instanceof Date && p(Z.getHours(), Z.getMinutes(), Z.getSeconds());
|
|
26980
26985
|
}
|
|
26981
26986
|
function p(G, Z, fe) {
|
|
26982
|
-
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(G % 24, Z, fe || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value =
|
|
26987
|
+
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(G % 24, Z, fe || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Ln(e.config.time_24hr ? G : (12 + G) % 12 + 12 * nr(G % 12 === 0)), e.minuteElement.value = Ln(Z), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[nr(G >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Ln(fe)));
|
|
26983
26988
|
}
|
|
26984
26989
|
function g(G) {
|
|
26985
26990
|
var Z = Vn(G), fe = parseInt(Z.value) + (G.delta || 0);
|
|
@@ -27173,10 +27178,10 @@ function BM(n, t) {
|
|
|
27173
27178
|
var _e = ka("flatpickr-minute", {
|
|
27174
27179
|
"aria-label": e.l10n.minuteAriaLabel
|
|
27175
27180
|
});
|
|
27176
|
-
if (e.minuteElement = _e.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value =
|
|
27181
|
+
if (e.minuteElement = _e.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Ln(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? G.hours : d(G.hours)), e.minuteElement.value = Ln(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : G.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(fe), e.timeContainer.appendChild(Z), e.timeContainer.appendChild(_e), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
|
|
27177
27182
|
e.timeContainer.classList.add("hasSeconds");
|
|
27178
27183
|
var je = ka("flatpickr-second");
|
|
27179
|
-
e.secondElement = je.getElementsByTagName("input")[0], e.secondElement.value =
|
|
27184
|
+
e.secondElement = je.getElementsByTagName("input")[0], e.secondElement.value = Ln(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : G.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(Ot("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(je);
|
|
27180
27185
|
}
|
|
27181
27186
|
return e.config.time_24hr || (e.amPM = Ot("span", "flatpickr-am-pm", e.l10n.amPM[nr((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
|
|
27182
27187
|
}
|
|
@@ -27766,7 +27771,7 @@ function BM(n, t) {
|
|
|
27766
27771
|
var je = parseFloat(_e.getAttribute("min")), Ve = parseFloat(_e.getAttribute("max")), ft = parseFloat(_e.getAttribute("step")), Je = parseInt(_e.value, 10), xt = G.delta || (Z ? G.which === 38 ? 1 : -1 : 0), Xe = Je + ft * xt;
|
|
27767
27772
|
if (typeof _e.value < "u" && _e.value.length === 2) {
|
|
27768
27773
|
var ct = _e === e.hourElement, Ct = _e === e.minuteElement;
|
|
27769
|
-
Xe < je ? (Xe = Ve + Xe + nr(!ct) + (nr(ct) && nr(!e.amPM)), Ct && w(void 0, -1, e.hourElement)) : Xe > Ve && (Xe = _e === e.hourElement ? Xe - Ve - nr(!e.amPM) : je, Ct && w(void 0, 1, e.hourElement)), e.amPM && ct && (ft === 1 ? Xe + Je === 23 : Math.abs(Xe - Je) > ft) && (e.amPM.textContent = e.l10n.amPM[nr(e.amPM.textContent === e.l10n.amPM[0])]), _e.value =
|
|
27774
|
+
Xe < je ? (Xe = Ve + Xe + nr(!ct) + (nr(ct) && nr(!e.amPM)), Ct && w(void 0, -1, e.hourElement)) : Xe > Ve && (Xe = _e === e.hourElement ? Xe - Ve - nr(!e.amPM) : je, Ct && w(void 0, 1, e.hourElement)), e.amPM && ct && (ft === 1 ? Xe + Je === 23 : Math.abs(Xe - Je) > ft) && (e.amPM.textContent = e.l10n.amPM[nr(e.amPM.textContent === e.l10n.amPM[0])]), _e.value = Ln(Xe);
|
|
27770
27775
|
}
|
|
27771
27776
|
}
|
|
27772
27777
|
return i(), e;
|
|
@@ -28219,7 +28224,7 @@ const zM = ["disabled", "placeholder"], jM = /* @__PURE__ */ ve({
|
|
|
28219
28224
|
style: rt(C(o)),
|
|
28220
28225
|
class: "fixed top-0 left-0 z-menu"
|
|
28221
28226
|
}, [
|
|
28222
|
-
ge(
|
|
28227
|
+
ge($n, {
|
|
28223
28228
|
"enter-active-class": n.animated ? "transition duration-200 ease-out" : "",
|
|
28224
28229
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
28225
28230
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -31203,7 +31208,7 @@ const AI = ["disabled"], TI = ["accept", "multiple"], Rf = /* @__PURE__ */ ve({
|
|
|
31203
31208
|
{
|
|
31204
31209
|
immediate: !0
|
|
31205
31210
|
}
|
|
31206
|
-
), (i, o) => (I(), ke(
|
|
31211
|
+
), (i, o) => (I(), ke($n, {
|
|
31207
31212
|
"enter-active-class": "transition ease-out " + n.duration,
|
|
31208
31213
|
"enter-from-class": "opacity-0",
|
|
31209
31214
|
"enter-to-class": "opacity-100",
|
|
@@ -31541,7 +31546,7 @@ const PI = { class: "absolute z-[1] inset-0 flex h-full w-full items-center just
|
|
|
31541
31546
|
disabled: C(k),
|
|
31542
31547
|
submit: g
|
|
31543
31548
|
}),
|
|
31544
|
-
ge(
|
|
31549
|
+
ge($n, {
|
|
31545
31550
|
"enter-active-class": "transition duration-100 ease-out",
|
|
31546
31551
|
"enter-from-class": "opacity-0",
|
|
31547
31552
|
"enter-to-class": "opacity-100",
|
|
@@ -33203,7 +33208,7 @@ function tB(n) {
|
|
|
33203
33208
|
e && e.dispatchEvent(m), v[y] && v[y].call(t, m);
|
|
33204
33209
|
}
|
|
33205
33210
|
}
|
|
33206
|
-
var nB = ["evt"],
|
|
33211
|
+
var nB = ["evt"], Pn = function(t, e) {
|
|
33207
33212
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = r.evt, o = WN(r, nB);
|
|
33208
33213
|
Ql.pluginEvent.bind(mt)(t, e, Ar({
|
|
33209
33214
|
dragEl: He,
|
|
@@ -33404,7 +33409,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33404
33409
|
targetEl: s,
|
|
33405
33410
|
toEl: r,
|
|
33406
33411
|
fromEl: r
|
|
33407
|
-
}),
|
|
33412
|
+
}), Pn("filter", e, {
|
|
33408
33413
|
evt: t
|
|
33409
33414
|
}), o && t.cancelable && t.preventDefault();
|
|
33410
33415
|
return;
|
|
@@ -33418,7 +33423,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33418
33423
|
targetEl: s,
|
|
33419
33424
|
fromEl: r,
|
|
33420
33425
|
toEl: r
|
|
33421
|
-
}),
|
|
33426
|
+
}), Pn("filter", e, {
|
|
33422
33427
|
evt: t
|
|
33423
33428
|
}), !0;
|
|
33424
33429
|
}), d)) {
|
|
@@ -33438,7 +33443,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33438
33443
|
clientX: (e || t).clientX,
|
|
33439
33444
|
clientY: (e || t).clientY
|
|
33440
33445
|
}, Gp = Ci.clientX - c.left, Yp = Ci.clientY - c.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, He.style["will-change"] = "all", s = function() {
|
|
33441
|
-
if (
|
|
33446
|
+
if (Pn("delayEnded", i, {
|
|
33442
33447
|
evt: t
|
|
33443
33448
|
}), mt.eventCanceled) {
|
|
33444
33449
|
i._onDrop();
|
|
@@ -33451,7 +33456,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33451
33456
|
}), Wn(He, l.chosenClass, !0);
|
|
33452
33457
|
}, l.ignore.split(",").forEach(function(d) {
|
|
33453
33458
|
bb(He, d.trim(), sc);
|
|
33454
|
-
}), Rt(a, "dragover", Ai), Rt(a, "mousemove", Ai), Rt(a, "touchmove", Ai), Rt(a, "mouseup", i._onDrop), Rt(a, "touchend", i._onDrop), Rt(a, "touchcancel", i._onDrop), qp && this.nativeDraggable && (this.options.touchStartThreshold = 4, He.draggable = !0),
|
|
33459
|
+
}), Rt(a, "dragover", Ai), Rt(a, "mousemove", Ai), Rt(a, "touchmove", Ai), Rt(a, "mouseup", i._onDrop), Rt(a, "touchend", i._onDrop), Rt(a, "touchcancel", i._onDrop), qp && this.nativeDraggable && (this.options.touchStartThreshold = 4, He.draggable = !0), Pn("delayStart", this, {
|
|
33455
33460
|
evt: t
|
|
33456
33461
|
}), l.delay && (!l.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Kl || Qr))) {
|
|
33457
33462
|
if (mt.eventCanceled) {
|
|
@@ -33485,7 +33490,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33485
33490
|
},
|
|
33486
33491
|
_dragStarted: function(t, e) {
|
|
33487
33492
|
if (lo = !1, Wt && He) {
|
|
33488
|
-
|
|
33493
|
+
Pn("dragStarted", this, {
|
|
33489
33494
|
evt: e
|
|
33490
33495
|
}), this.nativeDraggable && Rt(document, "dragover", lB);
|
|
33491
33496
|
var r = this.options;
|
|
@@ -33555,14 +33560,14 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33555
33560
|
},
|
|
33556
33561
|
_onDragStart: function(t, e) {
|
|
33557
33562
|
var r = this, i = t.dataTransfer, o = r.options;
|
|
33558
|
-
if (
|
|
33563
|
+
if (Pn("dragStart", this, {
|
|
33559
33564
|
evt: t
|
|
33560
33565
|
}), mt.eventCanceled) {
|
|
33561
33566
|
this._onDrop();
|
|
33562
33567
|
return;
|
|
33563
33568
|
}
|
|
33564
|
-
|
|
33565
|
-
|
|
33569
|
+
Pn("setupClone", this), mt.eventCanceled || (Qt = Eb(He), Qt.removeAttribute("id"), Qt.draggable = !1, Qt.style["will-change"] = "", this._hideClone(), Wn(Qt, this.options.chosenClass, !1), mt.clone = Qt), r.cloneId = Ka(function() {
|
|
33570
|
+
Pn("clone", r), !mt.eventCanceled && (r.options.removeCloneOnHide || Wt.insertBefore(Qt, He), r._hideClone(), Nn({
|
|
33566
33571
|
sortable: r,
|
|
33567
33572
|
name: "clone"
|
|
33568
33573
|
}));
|
|
@@ -33574,7 +33579,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33574
33579
|
if (id)
|
|
33575
33580
|
return;
|
|
33576
33581
|
function v(he, le) {
|
|
33577
|
-
|
|
33582
|
+
Pn(he, g, Ar({
|
|
33578
33583
|
evt: t,
|
|
33579
33584
|
isOwner: d,
|
|
33580
33585
|
axis: p ? "vertical" : "horizontal",
|
|
@@ -33667,7 +33672,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33667
33672
|
},
|
|
33668
33673
|
_onDrop: function(t) {
|
|
33669
33674
|
var e = this.el, r = this.options;
|
|
33670
|
-
if (Gn = rr(He), ti = rr(He, r.draggable),
|
|
33675
|
+
if (Gn = rr(He), ti = rr(He, r.draggable), Pn("drop", this, {
|
|
33671
33676
|
evt: t
|
|
33672
33677
|
}), en = He && He.parentNode, Gn = rr(He), ti = rr(He, r.draggable), mt.eventCanceled) {
|
|
33673
33678
|
this._nulling();
|
|
@@ -33720,7 +33725,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33720
33725
|
}), this.save()))), this._nulling();
|
|
33721
33726
|
},
|
|
33722
33727
|
_nulling: function() {
|
|
33723
|
-
|
|
33728
|
+
Pn("nulling", this), Wt = He = en = wt = Oi = Qt = Ga = ni = Ci = cr = nl = Gn = ti = so = vl = io = yl = bn = Ca = mt.dragged = mt.ghost = mt.clone = mt.active = null, ks.forEach(function(t) {
|
|
33724
33729
|
t.checked = !0;
|
|
33725
33730
|
}), ks.length = oc = lc = 0;
|
|
33726
33731
|
},
|
|
@@ -33794,7 +33799,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33794
33799
|
* Destroy
|
|
33795
33800
|
*/
|
|
33796
33801
|
destroy: function() {
|
|
33797
|
-
|
|
33802
|
+
Pn("destroy", this);
|
|
33798
33803
|
var t = this.el;
|
|
33799
33804
|
t[Yn] = null, Tt(t, "mousedown", this._onTapStart), Tt(t, "touchstart", this._onTapStart), Tt(t, "pointerdown", this._onTapStart), this.nativeDraggable && (Tt(t, "dragover", this), Tt(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
33800
33805
|
e.removeAttribute("draggable");
|
|
@@ -33802,7 +33807,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33802
33807
|
},
|
|
33803
33808
|
_hideClone: function() {
|
|
33804
33809
|
if (!ni) {
|
|
33805
|
-
if (
|
|
33810
|
+
if (Pn("hideClone", this), mt.eventCanceled)
|
|
33806
33811
|
return;
|
|
33807
33812
|
pt(Qt, "display", "none"), this.options.removeCloneOnHide && Qt.parentNode && Qt.parentNode.removeChild(Qt), ni = !0;
|
|
33808
33813
|
}
|
|
@@ -33813,7 +33818,7 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33813
33818
|
return;
|
|
33814
33819
|
}
|
|
33815
33820
|
if (ni) {
|
|
33816
|
-
if (
|
|
33821
|
+
if (Pn("showClone", this), mt.eventCanceled)
|
|
33817
33822
|
return;
|
|
33818
33823
|
He.parentNode == Wt && !this.options.group.revertClone ? Wt.insertBefore(Qt, He) : Oi ? Wt.insertBefore(Qt, Oi) : Wt.appendChild(Qt), this.options.group.revertClone && this.animate(He, Qt), pt(Qt, "display", ""), ni = !1;
|
|
33819
33824
|
}
|
|
@@ -42923,10 +42928,10 @@ var Ib = { exports: {} };
|
|
|
42923
42928
|
})(Ib);
|
|
42924
42929
|
var IP = Ib.exports;
|
|
42925
42930
|
const fc = /* @__PURE__ */ Ao(IP);
|
|
42926
|
-
var Sr = -1, pr = 1,
|
|
42931
|
+
var Sr = -1, pr = 1, zn = 0;
|
|
42927
42932
|
function Ml(n, t, e, r) {
|
|
42928
42933
|
if (n === t)
|
|
42929
|
-
return n ? [[
|
|
42934
|
+
return n ? [[zn, n]] : [];
|
|
42930
42935
|
if (e != null) {
|
|
42931
42936
|
var i = zP(n, t, e);
|
|
42932
42937
|
if (i)
|
|
@@ -42937,7 +42942,7 @@ function Ml(n, t, e, r) {
|
|
|
42937
42942
|
var a = n.substring(n.length - o);
|
|
42938
42943
|
n = n.substring(0, n.length - o), t = t.substring(0, t.length - o);
|
|
42939
42944
|
var s = NP(n, t);
|
|
42940
|
-
return l && s.unshift([
|
|
42945
|
+
return l && s.unshift([zn, l]), a && s.push([zn, a]), Nb(s, r), s;
|
|
42941
42946
|
}
|
|
42942
42947
|
function NP(n, t) {
|
|
42943
42948
|
var e;
|
|
@@ -42949,7 +42954,7 @@ function NP(n, t) {
|
|
|
42949
42954
|
if (o !== -1)
|
|
42950
42955
|
return e = [
|
|
42951
42956
|
[pr, r.substring(0, o)],
|
|
42952
|
-
[
|
|
42957
|
+
[zn, i],
|
|
42953
42958
|
[pr, r.substring(o + i.length)]
|
|
42954
42959
|
], n.length > t.length && (e[0][0] = e[2][0] = Sr), e;
|
|
42955
42960
|
if (i.length === 1)
|
|
@@ -42957,7 +42962,7 @@ function NP(n, t) {
|
|
|
42957
42962
|
var l = PP(n, t);
|
|
42958
42963
|
if (l) {
|
|
42959
42964
|
var a = l[0], s = l[1], c = l[2], d = l[3], f = l[4], h = Ml(a, c), p = Ml(s, d);
|
|
42960
|
-
return h.concat([[
|
|
42965
|
+
return h.concat([[zn, f]], p);
|
|
42961
42966
|
}
|
|
42962
42967
|
return BP(n, t);
|
|
42963
42968
|
}
|
|
@@ -43059,7 +43064,7 @@ function PP(n, t) {
|
|
|
43059
43064
|
return [s, c, d, f, h];
|
|
43060
43065
|
}
|
|
43061
43066
|
function Nb(n, t) {
|
|
43062
|
-
n.push([
|
|
43067
|
+
n.push([zn, ""]);
|
|
43063
43068
|
for (var e = 0, r = 0, i = 0, o = "", l = "", a; e < n.length; ) {
|
|
43064
43069
|
if (e < n.length - 1 && !n[e][1]) {
|
|
43065
43070
|
n.splice(e, 1);
|
|
@@ -43072,7 +43077,7 @@ function Nb(n, t) {
|
|
|
43072
43077
|
case Sr:
|
|
43073
43078
|
r++, o += n[e][1], e++;
|
|
43074
43079
|
break;
|
|
43075
|
-
case
|
|
43080
|
+
case zn:
|
|
43076
43081
|
var s = e - i - r - 1;
|
|
43077
43082
|
if (t) {
|
|
43078
43083
|
if (s >= 0 && zb(n[s][1])) {
|
|
@@ -43093,18 +43098,18 @@ function Nb(n, t) {
|
|
|
43093
43098
|
break;
|
|
43094
43099
|
}
|
|
43095
43100
|
if (o.length > 0 || l.length > 0) {
|
|
43096
|
-
o.length > 0 && l.length > 0 && (a = jf(l, o), a !== 0 && (s >= 0 ? n[s][1] += l.substring(0, a) : (n.splice(0, 0, [
|
|
43101
|
+
o.length > 0 && l.length > 0 && (a = jf(l, o), a !== 0 && (s >= 0 ? n[s][1] += l.substring(0, a) : (n.splice(0, 0, [zn, l.substring(0, a)]), e++), l = l.substring(a), o = o.substring(a)), a = $f(l, o), a !== 0 && (n[e][1] = l.substring(l.length - a) + n[e][1], l = l.substring(0, l.length - a), o = o.substring(0, o.length - a)));
|
|
43097
43102
|
var f = i + r;
|
|
43098
43103
|
o.length === 0 && l.length === 0 ? (n.splice(e - f, f), e = e - f) : o.length === 0 ? (n.splice(e - f, f, [pr, l]), e = e - f + 1) : l.length === 0 ? (n.splice(e - f, f, [Sr, o]), e = e - f + 1) : (n.splice(e - f, f, [Sr, o], [pr, l]), e = e - f + 2);
|
|
43099
43104
|
}
|
|
43100
|
-
e !== 0 && n[e - 1][0] ===
|
|
43105
|
+
e !== 0 && n[e - 1][0] === zn ? (n[e - 1][1] += n[e][1], n.splice(e, 1)) : e++, i = 0, r = 0, o = "", l = "";
|
|
43101
43106
|
break;
|
|
43102
43107
|
}
|
|
43103
43108
|
}
|
|
43104
43109
|
n[n.length - 1][1] === "" && n.pop();
|
|
43105
43110
|
var h = !1;
|
|
43106
43111
|
for (e = 1; e < n.length - 1; )
|
|
43107
|
-
n[e - 1][0] ===
|
|
43112
|
+
n[e - 1][0] === zn && n[e + 1][0] === zn && (n[e][1].substring(n[e][1].length - n[e - 1][1].length) === n[e - 1][1] ? (n[e][1] = n[e - 1][1] + n[e][1].substring(0, n[e][1].length - n[e - 1][1].length), n[e + 1][1] = n[e - 1][1] + n[e + 1][1], n.splice(e - 1, 1), h = !0) : n[e][1].substring(0, n[e + 1][1].length) == n[e + 1][1] && (n[e - 1][1] += n[e + 1][1], n[e][1] = n[e][1].substring(n[e + 1][1].length) + n[e + 1][1], n.splice(e + 1, 1), h = !0)), e++;
|
|
43108
43113
|
h && Nb(n, t);
|
|
43109
43114
|
}
|
|
43110
43115
|
function Bb(n) {
|
|
@@ -43126,10 +43131,10 @@ function LP(n) {
|
|
|
43126
43131
|
}
|
|
43127
43132
|
function hc(n, t, e, r) {
|
|
43128
43133
|
return zb(n) || Lb(r) ? null : LP([
|
|
43129
|
-
[
|
|
43134
|
+
[zn, n],
|
|
43130
43135
|
[Sr, t],
|
|
43131
43136
|
[pr, e],
|
|
43132
|
-
[
|
|
43137
|
+
[zn, r]
|
|
43133
43138
|
]);
|
|
43134
43139
|
}
|
|
43135
43140
|
function zP(n, t, e) {
|
|
@@ -43180,7 +43185,7 @@ function tu(n, t, e) {
|
|
|
43180
43185
|
}
|
|
43181
43186
|
tu.INSERT = pr;
|
|
43182
43187
|
tu.DELETE = Sr;
|
|
43183
|
-
tu.EQUAL =
|
|
43188
|
+
tu.EQUAL = zn;
|
|
43184
43189
|
var jP = tu, As = { exports: {} };
|
|
43185
43190
|
As.exports;
|
|
43186
43191
|
(function(n, t) {
|
|
@@ -43406,9 +43411,9 @@ As.exports;
|
|
|
43406
43411
|
}
|
|
43407
43412
|
}
|
|
43408
43413
|
kt || (kt = new Sn());
|
|
43409
|
-
var
|
|
43410
|
-
if (
|
|
43411
|
-
return
|
|
43414
|
+
var Bn = kt.get(O);
|
|
43415
|
+
if (Bn)
|
|
43416
|
+
return Bn;
|
|
43412
43417
|
if (kt.set(O, At), !rn)
|
|
43413
43418
|
var un = ce ? gu(O) : Uo(O);
|
|
43414
43419
|
return R(un || O, function(kn, vn) {
|
|
@@ -43856,7 +43861,7 @@ Ts.exports;
|
|
|
43856
43861
|
function du(O, Y, ce, Te, bt, nt) {
|
|
43857
43862
|
var kt = eo(O), At = eo(Y), rn = kt ? s : wr(O), It = At ? s : wr(Y);
|
|
43858
43863
|
rn = rn == a ? b : rn, It = It == a ? b : It;
|
|
43859
|
-
var _n = rn == b,
|
|
43864
|
+
var _n = rn == b, Bn = It == b, un = rn == It;
|
|
43860
43865
|
if (un && to(O)) {
|
|
43861
43866
|
if (!to(Y))
|
|
43862
43867
|
return !1;
|
|
@@ -43865,7 +43870,7 @@ Ts.exports;
|
|
|
43865
43870
|
if (un && !_n)
|
|
43866
43871
|
return nt || (nt = new br()), kt || la(O) ? Ho(O, Y, ce, Te, bt, nt) : mu(O, Y, rn, ce, Te, bt, nt);
|
|
43867
43872
|
if (!(ce & i)) {
|
|
43868
|
-
var kn = _n && ae.call(O, "__wrapped__"), vn =
|
|
43873
|
+
var kn = _n && ae.call(O, "__wrapped__"), vn = Bn && ae.call(Y, "__wrapped__");
|
|
43869
43874
|
if (kn || vn) {
|
|
43870
43875
|
var Zr = kn ? O.value() : O, Mr = vn ? Y.value() : Y;
|
|
43871
43876
|
return nt || (nt = new br()), bt(Zr, Mr, ce, Te, nt);
|
|
@@ -43897,7 +43902,7 @@ Ts.exports;
|
|
|
43897
43902
|
var It = nt.get(O);
|
|
43898
43903
|
if (It && nt.get(Y))
|
|
43899
43904
|
return It == Y;
|
|
43900
|
-
var _n = -1,
|
|
43905
|
+
var _n = -1, Bn = !0, un = ce & o ? new Zi() : void 0;
|
|
43901
43906
|
for (nt.set(O, Y), nt.set(Y, O); ++_n < At; ) {
|
|
43902
43907
|
var kn = O[_n], vn = Y[_n];
|
|
43903
43908
|
if (Te)
|
|
@@ -43905,7 +43910,7 @@ Ts.exports;
|
|
|
43905
43910
|
if (Zr !== void 0) {
|
|
43906
43911
|
if (Zr)
|
|
43907
43912
|
continue;
|
|
43908
|
-
|
|
43913
|
+
Bn = !1;
|
|
43909
43914
|
break;
|
|
43910
43915
|
}
|
|
43911
43916
|
if (un) {
|
|
@@ -43913,15 +43918,15 @@ Ts.exports;
|
|
|
43913
43918
|
if (!Pe(un, Si) && (kn === Mr || bt(kn, Mr, ce, Te, nt)))
|
|
43914
43919
|
return un.push(Si);
|
|
43915
43920
|
})) {
|
|
43916
|
-
|
|
43921
|
+
Bn = !1;
|
|
43917
43922
|
break;
|
|
43918
43923
|
}
|
|
43919
43924
|
} else if (!(kn === vn || bt(kn, vn, ce, Te, nt))) {
|
|
43920
|
-
|
|
43925
|
+
Bn = !1;
|
|
43921
43926
|
break;
|
|
43922
43927
|
}
|
|
43923
43928
|
}
|
|
43924
|
-
return nt.delete(O), nt.delete(Y),
|
|
43929
|
+
return nt.delete(O), nt.delete(Y), Bn;
|
|
43925
43930
|
}
|
|
43926
43931
|
function mu(O, Y, ce, Te, bt, nt, kt) {
|
|
43927
43932
|
switch (ce) {
|
|
@@ -43962,8 +43967,8 @@ Ts.exports;
|
|
|
43962
43967
|
var kt = ce & i, At = Ei(O), rn = At.length, It = Ei(Y), _n = It.length;
|
|
43963
43968
|
if (rn != _n && !kt)
|
|
43964
43969
|
return !1;
|
|
43965
|
-
for (var
|
|
43966
|
-
var un = At[
|
|
43970
|
+
for (var Bn = rn; Bn--; ) {
|
|
43971
|
+
var un = At[Bn];
|
|
43967
43972
|
if (!(kt ? un in Y : ae.call(Y, un)))
|
|
43968
43973
|
return !1;
|
|
43969
43974
|
}
|
|
@@ -43972,8 +43977,8 @@ Ts.exports;
|
|
|
43972
43977
|
return kn == Y;
|
|
43973
43978
|
var vn = !0;
|
|
43974
43979
|
nt.set(O, Y), nt.set(Y, O);
|
|
43975
|
-
for (var Zr = kt; ++
|
|
43976
|
-
un = At[
|
|
43980
|
+
for (var Zr = kt; ++Bn < rn; ) {
|
|
43981
|
+
un = At[Bn];
|
|
43977
43982
|
var Mr = O[un], Si = Y[un];
|
|
43978
43983
|
if (Te)
|
|
43979
43984
|
var qf = kt ? Te(Si, Mr, un, Y, O, nt) : Te(Mr, Si, un, O, Y, nt);
|
|
@@ -19,9 +19,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
checkedRows: import("@/index.js").Row[];
|
|
20
20
|
isRowCheckable: Function;
|
|
21
21
|
maxHeight: number;
|
|
22
|
+
rowKey: ((row: import("@/index.js").CollectionItem) => string | number) | undefined;
|
|
22
23
|
data: import("@/index.js").Row[];
|
|
23
24
|
visibleColumns: string[];
|
|
24
|
-
detailTransition: string;
|
|
25
25
|
}> & Omit<{
|
|
26
26
|
readonly size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
27
27
|
readonly loading: boolean;
|
|
@@ -33,11 +33,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
readonly checkedRows: import("@/index.js").Row[];
|
|
34
34
|
readonly isRowCheckable: Function;
|
|
35
35
|
readonly data: import("@/index.js").Row[];
|
|
36
|
-
readonly detailTransition: string;
|
|
37
36
|
readonly rowTo?: ((row: import("@/index.js").CollectionItem) => import("vue-router").RouteLocationRaw) | undefined;
|
|
38
37
|
readonly rowHref?: ((row: import("@/index.js").CollectionItem) => string) | undefined;
|
|
39
38
|
readonly onRowClick?: ((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined;
|
|
40
39
|
readonly maxHeight?: number | undefined;
|
|
40
|
+
readonly rowKey?: ((row: import("@/index.js").CollectionItem) => string | number) | undefined;
|
|
41
41
|
readonly visibleColumns?: string[] | undefined;
|
|
42
42
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
43
43
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -89,10 +89,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
type: FunctionConstructor;
|
|
90
90
|
default: () => boolean;
|
|
91
91
|
};
|
|
92
|
-
detailTransition: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
92
|
maxHeight: {
|
|
97
93
|
default: undefined;
|
|
98
94
|
type: NumberConstructor;
|
|
@@ -113,6 +109,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
109
|
default: undefined;
|
|
114
110
|
type: PropType<((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
115
111
|
};
|
|
112
|
+
rowKey: {
|
|
113
|
+
default: undefined;
|
|
114
|
+
type: PropType<((row: import("@/index.js").CollectionItem) => string | number) | undefined>;
|
|
115
|
+
};
|
|
116
116
|
}>> & {
|
|
117
117
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
118
118
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
"onUpdate:openedDetailed"?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
125
125
|
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
126
|
-
}, "size" | "loading" | "sortField" | "sortDirection" | "rowTo" | "rowHref" | "onRowClick" | "detailed" | "hasDetailedVisible" | "checkable" | "checkedRows" | "isRowCheckable" | "maxHeight" | "
|
|
126
|
+
}, "size" | "loading" | "sortField" | "sortDirection" | "rowTo" | "rowHref" | "onRowClick" | "detailed" | "hasDetailedVisible" | "checkable" | "checkedRows" | "isRowCheckable" | "maxHeight" | "rowKey" | "data" | "visibleColumns">;
|
|
127
127
|
$attrs: {
|
|
128
128
|
[x: string]: unknown;
|
|
129
129
|
};
|
|
@@ -178,10 +178,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
type: FunctionConstructor;
|
|
179
179
|
default: () => boolean;
|
|
180
180
|
};
|
|
181
|
-
detailTransition: {
|
|
182
|
-
type: StringConstructor;
|
|
183
|
-
default: string;
|
|
184
|
-
};
|
|
185
181
|
maxHeight: {
|
|
186
182
|
default: undefined;
|
|
187
183
|
type: NumberConstructor;
|
|
@@ -202,6 +198,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
202
198
|
default: undefined;
|
|
203
199
|
type: PropType<((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
204
200
|
};
|
|
201
|
+
rowKey: {
|
|
202
|
+
default: undefined;
|
|
203
|
+
type: PropType<((row: import("@/index.js").CollectionItem) => string | number) | undefined>;
|
|
204
|
+
};
|
|
205
205
|
}>> & {
|
|
206
206
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
207
207
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -262,9 +262,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
262
|
checkedRows: import("@/index.js").Row[];
|
|
263
263
|
isRowCheckable: Function;
|
|
264
264
|
maxHeight: number;
|
|
265
|
+
rowKey: ((row: import("@/index.js").CollectionItem) => string | number) | undefined;
|
|
265
266
|
data: import("@/index.js").Row[];
|
|
266
267
|
visibleColumns: string[];
|
|
267
|
-
detailTransition: string;
|
|
268
268
|
}, {}, string, {}> & {
|
|
269
269
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
270
270
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -326,10 +326,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
326
326
|
type: FunctionConstructor;
|
|
327
327
|
default: () => boolean;
|
|
328
328
|
};
|
|
329
|
-
detailTransition: {
|
|
330
|
-
type: StringConstructor;
|
|
331
|
-
default: string;
|
|
332
|
-
};
|
|
333
329
|
maxHeight: {
|
|
334
330
|
default: undefined;
|
|
335
331
|
type: NumberConstructor;
|
|
@@ -350,6 +346,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
350
346
|
default: undefined;
|
|
351
347
|
type: PropType<((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
352
348
|
};
|
|
349
|
+
rowKey: {
|
|
350
|
+
default: undefined;
|
|
351
|
+
type: PropType<((row: import("@/index.js").CollectionItem) => string | number) | undefined>;
|
|
352
|
+
};
|
|
353
353
|
}>> & {
|
|
354
354
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
355
355
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -423,9 +423,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
423
423
|
checkedRows: import("@/index.js").Row[];
|
|
424
424
|
isRowCheckable: Function;
|
|
425
425
|
maxHeight: number;
|
|
426
|
+
rowKey: ((row: import("@/index.js").CollectionItem) => string | number) | undefined;
|
|
426
427
|
data: import("@/index.js").Row[];
|
|
427
428
|
visibleColumns: string[];
|
|
428
|
-
detailTransition: string;
|
|
429
429
|
}> & Omit<{
|
|
430
430
|
readonly size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
431
431
|
readonly loading: boolean;
|
|
@@ -437,11 +437,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
437
437
|
readonly checkedRows: import("@/index.js").Row[];
|
|
438
438
|
readonly isRowCheckable: Function;
|
|
439
439
|
readonly data: import("@/index.js").Row[];
|
|
440
|
-
readonly detailTransition: string;
|
|
441
440
|
readonly rowTo?: ((row: import("@/index.js").CollectionItem) => import("vue-router").RouteLocationRaw) | undefined;
|
|
442
441
|
readonly rowHref?: ((row: import("@/index.js").CollectionItem) => string) | undefined;
|
|
443
442
|
readonly onRowClick?: ((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined;
|
|
444
443
|
readonly maxHeight?: number | undefined;
|
|
444
|
+
readonly rowKey?: ((row: import("@/index.js").CollectionItem) => string | number) | undefined;
|
|
445
445
|
readonly visibleColumns?: string[] | undefined;
|
|
446
446
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
447
447
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -493,10 +493,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
493
493
|
type: FunctionConstructor;
|
|
494
494
|
default: () => boolean;
|
|
495
495
|
};
|
|
496
|
-
detailTransition: {
|
|
497
|
-
type: StringConstructor;
|
|
498
|
-
default: string;
|
|
499
|
-
};
|
|
500
496
|
maxHeight: {
|
|
501
497
|
default: undefined;
|
|
502
498
|
type: NumberConstructor;
|
|
@@ -517,6 +513,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
517
513
|
default: undefined;
|
|
518
514
|
type: PropType<((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
519
515
|
};
|
|
516
|
+
rowKey: {
|
|
517
|
+
default: undefined;
|
|
518
|
+
type: PropType<((row: import("@/index.js").CollectionItem) => string | number) | undefined>;
|
|
519
|
+
};
|
|
520
520
|
}>> & {
|
|
521
521
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
522
522
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -527,7 +527,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
527
527
|
"onUpdate:openedDetailed"?: ((...args: any[]) => any) | undefined;
|
|
528
528
|
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
529
529
|
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
530
|
-
}, "size" | "loading" | "sortField" | "sortDirection" | "rowTo" | "rowHref" | "onRowClick" | "detailed" | "hasDetailedVisible" | "checkable" | "checkedRows" | "isRowCheckable" | "maxHeight" | "
|
|
530
|
+
}, "size" | "loading" | "sortField" | "sortDirection" | "rowTo" | "rowHref" | "onRowClick" | "detailed" | "hasDetailedVisible" | "checkable" | "checkedRows" | "isRowCheckable" | "maxHeight" | "rowKey" | "data" | "visibleColumns">;
|
|
531
531
|
$attrs: {
|
|
532
532
|
[x: string]: unknown;
|
|
533
533
|
};
|
|
@@ -582,10 +582,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
582
582
|
type: FunctionConstructor;
|
|
583
583
|
default: () => boolean;
|
|
584
584
|
};
|
|
585
|
-
detailTransition: {
|
|
586
|
-
type: StringConstructor;
|
|
587
|
-
default: string;
|
|
588
|
-
};
|
|
589
585
|
maxHeight: {
|
|
590
586
|
default: undefined;
|
|
591
587
|
type: NumberConstructor;
|
|
@@ -606,6 +602,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
606
602
|
default: undefined;
|
|
607
603
|
type: PropType<((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
608
604
|
};
|
|
605
|
+
rowKey: {
|
|
606
|
+
default: undefined;
|
|
607
|
+
type: PropType<((row: import("@/index.js").CollectionItem) => string | number) | undefined>;
|
|
608
|
+
};
|
|
609
609
|
}>> & {
|
|
610
610
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
611
611
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -666,9 +666,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
666
666
|
checkedRows: import("@/index.js").Row[];
|
|
667
667
|
isRowCheckable: Function;
|
|
668
668
|
maxHeight: number;
|
|
669
|
+
rowKey: ((row: import("@/index.js").CollectionItem) => string | number) | undefined;
|
|
669
670
|
data: import("@/index.js").Row[];
|
|
670
671
|
visibleColumns: string[];
|
|
671
|
-
detailTransition: string;
|
|
672
672
|
}, {}, string, {}> & {
|
|
673
673
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
674
674
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -730,10 +730,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
730
730
|
type: FunctionConstructor;
|
|
731
731
|
default: () => boolean;
|
|
732
732
|
};
|
|
733
|
-
detailTransition: {
|
|
734
|
-
type: StringConstructor;
|
|
735
|
-
default: string;
|
|
736
|
-
};
|
|
737
733
|
maxHeight: {
|
|
738
734
|
default: undefined;
|
|
739
735
|
type: NumberConstructor;
|
|
@@ -754,6 +750,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
754
750
|
default: undefined;
|
|
755
751
|
type: PropType<((row: import("@/index.js").CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
756
752
|
};
|
|
753
|
+
rowKey: {
|
|
754
|
+
default: undefined;
|
|
755
|
+
type: PropType<((row: import("@/index.js").CollectionItem) => string | number) | undefined>;
|
|
756
|
+
};
|
|
757
757
|
}>> & {
|
|
758
758
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
759
759
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -228,6 +228,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
228
228
|
default: string;
|
|
229
229
|
type: PropType<"section" | "top">;
|
|
230
230
|
};
|
|
231
|
+
/**
|
|
232
|
+
* Row key. Used to identify rows for faster rendering.
|
|
233
|
+
* If not provided, it will use the id, key or uuid, or create a hash from the row object.
|
|
234
|
+
*/
|
|
235
|
+
rowKey: {
|
|
236
|
+
default: undefined;
|
|
237
|
+
type: PropType<(row: CollectionItem) => string | number>;
|
|
238
|
+
};
|
|
231
239
|
}, {
|
|
232
240
|
fetch: typeof fetch;
|
|
233
241
|
fetchWithoutLoading: typeof fetchWithoutLoading;
|
|
@@ -460,6 +468,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
460
468
|
default: string;
|
|
461
469
|
type: PropType<"section" | "top">;
|
|
462
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
* Row key. Used to identify rows for faster rendering.
|
|
473
|
+
* If not provided, it will use the id, key or uuid, or create a hash from the row object.
|
|
474
|
+
*/
|
|
475
|
+
rowKey: {
|
|
476
|
+
default: undefined;
|
|
477
|
+
type: PropType<(row: CollectionItem) => string | number>;
|
|
478
|
+
};
|
|
463
479
|
}>> & {
|
|
464
480
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
465
481
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
@@ -498,6 +514,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
498
514
|
maxHeight: number;
|
|
499
515
|
rowActions: RowAction[];
|
|
500
516
|
numberOfVisibleRowActions: number;
|
|
517
|
+
rowKey: (row: CollectionItem) => string | number;
|
|
501
518
|
}, {}>, Partial<Record<string, (_: {}) => any>> & {
|
|
502
519
|
default?(_: {}): any;
|
|
503
520
|
detail?(_: {
|
|
@@ -58,10 +58,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
type: FunctionConstructor;
|
|
59
59
|
default: () => boolean;
|
|
60
60
|
};
|
|
61
|
-
detailTransition: {
|
|
62
|
-
type: StringConstructor;
|
|
63
|
-
default: string;
|
|
64
|
-
};
|
|
65
61
|
maxHeight: {
|
|
66
62
|
default: undefined;
|
|
67
63
|
type: NumberConstructor;
|
|
@@ -82,6 +78,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
82
78
|
default: undefined;
|
|
83
79
|
type: PropType<((row: CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
84
80
|
};
|
|
81
|
+
rowKey: {
|
|
82
|
+
default: undefined;
|
|
83
|
+
type: PropType<((row: CollectionItem) => string | number) | undefined>;
|
|
84
|
+
};
|
|
85
85
|
}, {
|
|
86
86
|
newColumns: import("vue").ComputedRef<{
|
|
87
87
|
id: string;
|
|
@@ -171,10 +171,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
171
171
|
type: FunctionConstructor;
|
|
172
172
|
default: () => boolean;
|
|
173
173
|
};
|
|
174
|
-
detailTransition: {
|
|
175
|
-
type: StringConstructor;
|
|
176
|
-
default: string;
|
|
177
|
-
};
|
|
178
174
|
maxHeight: {
|
|
179
175
|
default: undefined;
|
|
180
176
|
type: NumberConstructor;
|
|
@@ -195,6 +191,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
195
191
|
default: undefined;
|
|
196
192
|
type: PropType<((row: CollectionItem, index: number, event: MouseEvent) => void) | undefined>;
|
|
197
193
|
};
|
|
194
|
+
rowKey: {
|
|
195
|
+
default: undefined;
|
|
196
|
+
type: PropType<((row: CollectionItem) => string | number) | undefined>;
|
|
197
|
+
};
|
|
198
198
|
}>> & {
|
|
199
199
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
200
200
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
@@ -219,9 +219,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
219
219
|
checkedRows: Row[];
|
|
220
220
|
isRowCheckable: Function;
|
|
221
221
|
maxHeight: number;
|
|
222
|
+
rowKey: ((row: CollectionItem) => string | number) | undefined;
|
|
222
223
|
data: Row[];
|
|
223
224
|
visibleColumns: string[];
|
|
224
|
-
detailTransition: string;
|
|
225
225
|
}, {}>, {
|
|
226
226
|
default?(_: {}): any;
|
|
227
227
|
detail?(_: {
|
package/package.json
CHANGED
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
:size="sizeInternal.size.value"
|
|
83
83
|
:row-to="rowToInternal"
|
|
84
84
|
:row-href="rowHref"
|
|
85
|
+
:row-key="rowKey"
|
|
85
86
|
@update:checked-rows="onCheckedRowsUpdate"
|
|
86
87
|
@sort="dataIteratorProps.onSortChange"
|
|
87
88
|
@row-click="onRowClick"
|
|
@@ -532,6 +533,15 @@ const props = defineProps({
|
|
|
532
533
|
default: 'section',
|
|
533
534
|
type: String as PropType<'top' | 'section'>,
|
|
534
535
|
},
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Row key. Used to identify rows for faster rendering.
|
|
539
|
+
* If not provided, it will use the id, key or uuid, or create a hash from the row object.
|
|
540
|
+
*/
|
|
541
|
+
rowKey: {
|
|
542
|
+
default: undefined,
|
|
543
|
+
type: Function as PropType<(row: CollectionItem) => string | number>,
|
|
544
|
+
},
|
|
535
545
|
});
|
|
536
546
|
|
|
537
547
|
const sizeInternal = useInputSize(props.size);
|
|
@@ -166,22 +166,20 @@
|
|
|
166
166
|
</BaseTableCell>
|
|
167
167
|
</BaseTableRow>
|
|
168
168
|
|
|
169
|
-
<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
<BaseTableRow
|
|
170
|
+
v-if="isActiveDetailRow(row)"
|
|
171
|
+
:key="getRowKey(row) + 'detail'"
|
|
172
|
+
>
|
|
173
|
+
<BaseTableCell
|
|
174
|
+
:colspan="columnCount"
|
|
173
175
|
>
|
|
174
|
-
<
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
/>
|
|
182
|
-
</BaseTableCell>
|
|
183
|
-
</BaseTableRow>
|
|
184
|
-
</transition>
|
|
176
|
+
<slot
|
|
177
|
+
name="detail"
|
|
178
|
+
:row="row"
|
|
179
|
+
:index="index"
|
|
180
|
+
/>
|
|
181
|
+
</BaseTableCell>
|
|
182
|
+
</BaseTableRow>
|
|
185
183
|
</template>
|
|
186
184
|
|
|
187
185
|
<BaseTableRow v-if="data.length == 0">
|
|
@@ -272,11 +270,6 @@ const props = defineProps({
|
|
|
272
270
|
type: Function,
|
|
273
271
|
default: () => true,
|
|
274
272
|
},
|
|
275
|
-
/* Transition name to use when toggling row details. */
|
|
276
|
-
detailTransition: {
|
|
277
|
-
type: String,
|
|
278
|
-
default: '',
|
|
279
|
-
},
|
|
280
273
|
/* Max height (in px) */
|
|
281
274
|
maxHeight: {
|
|
282
275
|
default: undefined,
|
|
@@ -298,6 +291,10 @@ const props = defineProps({
|
|
|
298
291
|
default: undefined,
|
|
299
292
|
type: Function as PropType<((row: CollectionItem, index: number, event: MouseEvent) => void) | undefined>,
|
|
300
293
|
},
|
|
294
|
+
rowKey: {
|
|
295
|
+
default: undefined,
|
|
296
|
+
type: Function as PropType<((row: CollectionItem) => string | number) | undefined>,
|
|
297
|
+
},
|
|
301
298
|
});
|
|
302
299
|
|
|
303
300
|
const emit = defineEmits([
|
|
@@ -693,6 +690,10 @@ let warningNoRowKeyFoundShown = false;
|
|
|
693
690
|
|
|
694
691
|
function getRowKey(row: Row): string {
|
|
695
692
|
|
|
693
|
+
if (props.rowKey) {
|
|
694
|
+
return props.rowKey(row) + '';
|
|
695
|
+
}
|
|
696
|
+
|
|
696
697
|
if (row.id) {
|
|
697
698
|
return row.id;
|
|
698
699
|
}
|
|
@@ -706,7 +707,7 @@ function getRowKey(row: Row): string {
|
|
|
706
707
|
}
|
|
707
708
|
|
|
708
709
|
if (!warningNoRowKeyFoundShown) {
|
|
709
|
-
console.warn('%cNo unique key found for items provided to BaseDataTable.%cPlease provide a unique key for each row (id, key or uuid)
|
|
710
|
+
console.warn('%cNo unique key found for items provided to BaseDataTable.%cPlease provide a unique key for each row (id, key or uuid) or use the row-key props to specify a unique key.', 'font-weight: bold', 'font-weight: normal');
|
|
710
711
|
warningNoRowKeyFoundShown = true;
|
|
711
712
|
}
|
|
712
713
|
|