@prefabs.tech/vue3-user 0.29.1 → 0.30.0
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/PrefabsTechVue3User.es.js +244 -240
- package/dist/PrefabsTechVue3User.umd.js +6 -6
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +21 -20
|
@@ -683,8 +683,8 @@ const ut = (e) => {
|
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
685
|
/**
|
|
686
|
-
* vee-validate v4.15.
|
|
687
|
-
* (c)
|
|
686
|
+
* vee-validate v4.15.1
|
|
687
|
+
* (c) 2025 Abdelrahman Awad
|
|
688
688
|
* @license MIT
|
|
689
689
|
*/
|
|
690
690
|
const ed = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
|
@@ -7999,7 +7999,7 @@ const Xb = {
|
|
|
7999
7999
|
os(Va(z, ["stop"]), ["enter"]),
|
|
8000
8000
|
os(Va(z, ["stop", "prevent"]), ["space"])
|
|
8001
8001
|
]
|
|
8002
|
-
}, oe[7] || (oe[7] = [
|
|
8002
|
+
}, [...oe[7] || (oe[7] = [
|
|
8003
8003
|
ne("path", {
|
|
8004
8004
|
d: "M6 6L18 18M18 6L6 18",
|
|
8005
8005
|
stroke: "currentColor",
|
|
@@ -8007,7 +8007,7 @@ const Xb = {
|
|
|
8007
8007
|
"stroke-linejoin": "round",
|
|
8008
8008
|
"stroke-width": "2"
|
|
8009
8009
|
}, null, -1)
|
|
8010
|
-
]), 40, Qb)) : H("", !0),
|
|
8010
|
+
])], 40, Qb)) : H("", !0),
|
|
8011
8011
|
oe[8] || (oe[8] = ne("svg", {
|
|
8012
8012
|
viewBox: "0 0 24 24",
|
|
8013
8013
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -17984,7 +17984,7 @@ const BA = ["for"], VA = ["id", "disabled", "placeholder", "type"], UA = {
|
|
|
17984
17984
|
variant: "textOnly",
|
|
17985
17985
|
onClick: u[0] || (u[0] = (c) => i.value = !0)
|
|
17986
17986
|
}, {
|
|
17987
|
-
iconLeft: K(() => u[2] || (u[2] = [
|
|
17987
|
+
iconLeft: K(() => [...u[2] || (u[2] = [
|
|
17988
17988
|
ne("svg", {
|
|
17989
17989
|
height: "20",
|
|
17990
17990
|
width: "20",
|
|
@@ -17996,7 +17996,7 @@ const BA = ["for"], VA = ["id", "disabled", "placeholder", "type"], UA = {
|
|
|
17996
17996
|
d: "M4.21 20.52a.73.73 0 0 1-.52-.21a.75.75 0 0 1-.22-.6l.31-3.84A.73.73 0 0 1 4 15.4L15.06 4.34a3.2 3.2 0 0 1 2.28-.86a3.3 3.3 0 0 1 2.25.91a3.31 3.31 0 0 1 .11 4.5L8.63 20a.77.77 0 0 1-.46.22l-3.89.35Zm1-4.26L5 19l2.74-.25l10.9-10.92A1.72 1.72 0 0 0 17.31 5a1.6 1.6 0 0 0-1.19.42ZM15.59 4.87"
|
|
17997
17997
|
})
|
|
17998
17998
|
], -1)
|
|
17999
|
-
])),
|
|
17999
|
+
])]),
|
|
18000
18000
|
_: 1
|
|
18001
18001
|
}, 8, ["label"])) : H("", !0)
|
|
18002
18002
|
]),
|
|
@@ -20141,7 +20141,11 @@ const gM = {
|
|
|
20141
20141
|
return t.filter((l) => !n.includes(l.id));
|
|
20142
20142
|
}, Oe(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
20143
20143
|
}
|
|
20144
|
-
}
|
|
20144
|
+
};
|
|
20145
|
+
function yM(e) {
|
|
20146
|
+
return e || (typeof document < "u" ? document : null);
|
|
20147
|
+
}
|
|
20148
|
+
const es = {
|
|
20145
20149
|
size: 150,
|
|
20146
20150
|
minSize: 20,
|
|
20147
20151
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
@@ -20152,7 +20156,7 @@ const gM = {
|
|
|
20152
20156
|
deltaPercentage: null,
|
|
20153
20157
|
isResizingColumn: !1,
|
|
20154
20158
|
columnSizingStart: []
|
|
20155
|
-
}),
|
|
20159
|
+
}), bM = {
|
|
20156
20160
|
getDefaultColumnDef: () => es,
|
|
20157
20161
|
getInitialState: (e) => ({
|
|
20158
20162
|
columnSizing: {},
|
|
@@ -20232,7 +20236,7 @@ const gM = {
|
|
|
20232
20236
|
deltaPercentage: null,
|
|
20233
20237
|
columnSizingStart: []
|
|
20234
20238
|
}));
|
|
20235
|
-
}, p = a
|
|
20239
|
+
}, p = yM(a), y = {
|
|
20236
20240
|
moveHandler: (h) => d(h.clientX),
|
|
20237
20241
|
upHandler: (h) => {
|
|
20238
20242
|
p?.removeEventListener("mousemove", y.moveHandler), p?.removeEventListener("mouseup", y.upHandler), f(h.clientX);
|
|
@@ -20243,7 +20247,7 @@ const gM = {
|
|
|
20243
20247
|
var b;
|
|
20244
20248
|
p?.removeEventListener("touchmove", g.moveHandler), p?.removeEventListener("touchend", g.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), f((b = h.touches[0]) == null ? void 0 : b.clientX);
|
|
20245
20249
|
}
|
|
20246
|
-
}, v =
|
|
20250
|
+
}, v = wM() ? {
|
|
20247
20251
|
passive: !1
|
|
20248
20252
|
} : !1;
|
|
20249
20253
|
yi(l) ? (p?.addEventListener("touchmove", g.moveHandler, v), p?.addEventListener("touchend", g.upHandler, v)) : (p?.addEventListener("mousemove", y.moveHandler, v), p?.addEventListener("mouseup", y.upHandler, v)), t.setColumnSizingInfo((h) => ({
|
|
@@ -20281,7 +20285,7 @@ const gM = {
|
|
|
20281
20285
|
}
|
|
20282
20286
|
};
|
|
20283
20287
|
let ts = null;
|
|
20284
|
-
function
|
|
20288
|
+
function wM() {
|
|
20285
20289
|
if (typeof ts == "boolean") return ts;
|
|
20286
20290
|
let e = !1;
|
|
20287
20291
|
try {
|
|
@@ -20300,7 +20304,7 @@ function bM() {
|
|
|
20300
20304
|
function yi(e) {
|
|
20301
20305
|
return e.type === "touchstart";
|
|
20302
20306
|
}
|
|
20303
|
-
const
|
|
20307
|
+
const _M = {
|
|
20304
20308
|
getInitialState: (e) => ({
|
|
20305
20309
|
columnVisibility: {},
|
|
20306
20310
|
...e
|
|
@@ -20348,14 +20352,14 @@ const wM = {
|
|
|
20348
20352
|
function Un(e, t) {
|
|
20349
20353
|
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
20350
20354
|
}
|
|
20351
|
-
const
|
|
20355
|
+
const SM = {
|
|
20352
20356
|
createTable: (e) => {
|
|
20353
20357
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
20354
20358
|
if (e._getGlobalFacetedMinMaxValues)
|
|
20355
20359
|
return e._getGlobalFacetedMinMaxValues();
|
|
20356
20360
|
};
|
|
20357
20361
|
}
|
|
20358
|
-
},
|
|
20362
|
+
}, AM = {
|
|
20359
20363
|
getInitialState: (e) => ({
|
|
20360
20364
|
globalFilter: void 0,
|
|
20361
20365
|
...e
|
|
@@ -20388,7 +20392,7 @@ const _M = {
|
|
|
20388
20392
|
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
20389
20393
|
};
|
|
20390
20394
|
}
|
|
20391
|
-
},
|
|
20395
|
+
}, RM = {
|
|
20392
20396
|
getInitialState: (e) => ({
|
|
20393
20397
|
expanded: {},
|
|
20394
20398
|
...e
|
|
@@ -20478,7 +20482,7 @@ const _M = {
|
|
|
20478
20482
|
}, Wi = 0, Zi = 10, bi = () => ({
|
|
20479
20483
|
pageIndex: Wi,
|
|
20480
20484
|
pageSize: Zi
|
|
20481
|
-
}),
|
|
20485
|
+
}), MM = {
|
|
20482
20486
|
getInitialState: (e) => ({
|
|
20483
20487
|
...e,
|
|
20484
20488
|
pagination: {
|
|
@@ -20561,7 +20565,7 @@ const _M = {
|
|
|
20561
20565
|
}, wi = () => ({
|
|
20562
20566
|
top: [],
|
|
20563
20567
|
bottom: []
|
|
20564
|
-
}),
|
|
20568
|
+
}), IM = {
|
|
20565
20569
|
getInitialState: (e) => ({
|
|
20566
20570
|
rowPinning: wi(),
|
|
20567
20571
|
...e
|
|
@@ -20660,7 +20664,7 @@ const _M = {
|
|
|
20660
20664
|
return t.filter((l) => !n.has(l.id));
|
|
20661
20665
|
}, Oe(e.options, "debugRows", "getCenterRows"));
|
|
20662
20666
|
}
|
|
20663
|
-
},
|
|
20667
|
+
}, CM = {
|
|
20664
20668
|
getInitialState: (e) => ({
|
|
20665
20669
|
rowSelection: {},
|
|
20666
20670
|
...e
|
|
@@ -20816,10 +20820,10 @@ function Ki(e, t, a) {
|
|
|
20816
20820
|
}
|
|
20817
20821
|
}), n ? "all" : l ? "some" : !1;
|
|
20818
20822
|
}
|
|
20819
|
-
const Xi = /([0-9]+)/gm,
|
|
20823
|
+
const Xi = /([0-9]+)/gm, xM = (e, t, a) => Sv(ur(e.getValue(a)).toLowerCase(), ur(t.getValue(a)).toLowerCase()), kM = (e, t, a) => Sv(ur(e.getValue(a)), ur(t.getValue(a))), $M = (e, t, a) => Vu(ur(e.getValue(a)).toLowerCase(), ur(t.getValue(a)).toLowerCase()), PM = (e, t, a) => Vu(ur(e.getValue(a)), ur(t.getValue(a))), DM = (e, t, a) => {
|
|
20820
20824
|
const r = e.getValue(a), n = t.getValue(a);
|
|
20821
20825
|
return r > n ? 1 : r < n ? -1 : 0;
|
|
20822
|
-
},
|
|
20826
|
+
}, EM = (e, t, a) => Vu(e.getValue(a), t.getValue(a));
|
|
20823
20827
|
function Vu(e, t) {
|
|
20824
20828
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
20825
20829
|
}
|
|
@@ -20847,13 +20851,13 @@ function Sv(e, t) {
|
|
|
20847
20851
|
return a.length - r.length;
|
|
20848
20852
|
}
|
|
20849
20853
|
const xn = {
|
|
20850
|
-
alphanumeric:
|
|
20851
|
-
alphanumericCaseSensitive:
|
|
20852
|
-
text:
|
|
20853
|
-
textCaseSensitive:
|
|
20854
|
-
datetime:
|
|
20855
|
-
basic:
|
|
20856
|
-
},
|
|
20854
|
+
alphanumeric: xM,
|
|
20855
|
+
alphanumericCaseSensitive: kM,
|
|
20856
|
+
text: $M,
|
|
20857
|
+
textCaseSensitive: PM,
|
|
20858
|
+
datetime: DM,
|
|
20859
|
+
basic: EM
|
|
20860
|
+
}, TM = {
|
|
20857
20861
|
getInitialState: (e) => ({
|
|
20858
20862
|
sorting: [],
|
|
20859
20863
|
...e
|
|
@@ -20939,30 +20943,30 @@ const xn = {
|
|
|
20939
20943
|
e.setSorting(t ? [] : (a = (r = e.initialState) == null ? void 0 : r.sorting) != null ? a : []);
|
|
20940
20944
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
20941
20945
|
}
|
|
20942
|
-
},
|
|
20946
|
+
}, OM = [
|
|
20943
20947
|
aM,
|
|
20944
|
-
|
|
20948
|
+
_M,
|
|
20945
20949
|
gM,
|
|
20946
20950
|
hM,
|
|
20947
20951
|
rM,
|
|
20948
20952
|
nM,
|
|
20949
|
-
_M,
|
|
20950
|
-
//depends on ColumnFaceting
|
|
20951
20953
|
SM,
|
|
20954
|
+
//depends on ColumnFaceting
|
|
20955
|
+
AM,
|
|
20952
20956
|
//depends on ColumnFiltering
|
|
20953
|
-
|
|
20957
|
+
TM,
|
|
20954
20958
|
mM,
|
|
20955
20959
|
//depends on RowSorting
|
|
20956
|
-
AM,
|
|
20957
20960
|
RM,
|
|
20958
20961
|
MM,
|
|
20959
20962
|
IM,
|
|
20960
|
-
|
|
20963
|
+
CM,
|
|
20964
|
+
bM
|
|
20961
20965
|
];
|
|
20962
|
-
function
|
|
20966
|
+
function NM(e) {
|
|
20963
20967
|
var t, a;
|
|
20964
20968
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
20965
|
-
const r = [...
|
|
20969
|
+
const r = [...OM, ...(t = e._features) != null ? t : []];
|
|
20966
20970
|
let n = {
|
|
20967
20971
|
_features: r
|
|
20968
20972
|
};
|
|
@@ -21065,7 +21069,7 @@ function OM(e) {
|
|
|
21065
21069
|
}
|
|
21066
21070
|
return n;
|
|
21067
21071
|
}
|
|
21068
|
-
function
|
|
21072
|
+
function LM() {
|
|
21069
21073
|
return (e) => Te(() => [e.options.data], (t) => {
|
|
21070
21074
|
const a = {
|
|
21071
21075
|
rows: [],
|
|
@@ -21086,7 +21090,7 @@ function NM() {
|
|
|
21086
21090
|
return a.rows = r(t), a;
|
|
21087
21091
|
}, Oe(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
21088
21092
|
}
|
|
21089
|
-
function
|
|
21093
|
+
function FM(e) {
|
|
21090
21094
|
const t = [], a = (r) => {
|
|
21091
21095
|
var n;
|
|
21092
21096
|
t.push(r), (n = r.subRows) != null && n.length && r.getIsExpanded() && r.subRows.forEach(a);
|
|
@@ -21097,10 +21101,10 @@ function LM(e) {
|
|
|
21097
21101
|
rowsById: e.rowsById
|
|
21098
21102
|
};
|
|
21099
21103
|
}
|
|
21100
|
-
function FM(e, t, a) {
|
|
21101
|
-
return a.options.filterFromLeafRows ? BM(e, t, a) : VM(e, t, a);
|
|
21102
|
-
}
|
|
21103
21104
|
function BM(e, t, a) {
|
|
21105
|
+
return a.options.filterFromLeafRows ? VM(e, t, a) : UM(e, t, a);
|
|
21106
|
+
}
|
|
21107
|
+
function VM(e, t, a) {
|
|
21104
21108
|
var r;
|
|
21105
21109
|
const n = [], l = {}, o = (r = a.options.maxLeafRowFilterDepth) != null ? r : 100, i = function(s, u) {
|
|
21106
21110
|
u === void 0 && (u = 0);
|
|
@@ -21129,7 +21133,7 @@ function BM(e, t, a) {
|
|
|
21129
21133
|
rowsById: l
|
|
21130
21134
|
};
|
|
21131
21135
|
}
|
|
21132
|
-
function
|
|
21136
|
+
function UM(e, t, a) {
|
|
21133
21137
|
var r;
|
|
21134
21138
|
const n = [], l = {}, o = (r = a.options.maxLeafRowFilterDepth) != null ? r : 100, i = function(s, u) {
|
|
21135
21139
|
u === void 0 && (u = 0);
|
|
@@ -21153,7 +21157,7 @@ function VM(e, t, a) {
|
|
|
21153
21157
|
rowsById: l
|
|
21154
21158
|
};
|
|
21155
21159
|
}
|
|
21156
|
-
function
|
|
21160
|
+
function qM() {
|
|
21157
21161
|
return (e) => Te(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (t, a, r) => {
|
|
21158
21162
|
if (!t.rows.length || !(a != null && a.length) && !r) {
|
|
21159
21163
|
for (let f = 0; f < t.flatRows.length; f++)
|
|
@@ -21217,10 +21221,10 @@ function UM() {
|
|
|
21217
21221
|
return !1;
|
|
21218
21222
|
return !0;
|
|
21219
21223
|
};
|
|
21220
|
-
return
|
|
21224
|
+
return BM(t.rows, d, e);
|
|
21221
21225
|
}, Oe(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
21222
21226
|
}
|
|
21223
|
-
function
|
|
21227
|
+
function HM(e) {
|
|
21224
21228
|
return (t) => Te(() => [t.getState().pagination, t.getPrePaginationRowModel(), t.options.paginateExpandedRows ? void 0 : t.getState().expanded], (a, r) => {
|
|
21225
21229
|
if (!r.rows.length)
|
|
21226
21230
|
return r;
|
|
@@ -21240,7 +21244,7 @@ function qM(e) {
|
|
|
21240
21244
|
rows: o,
|
|
21241
21245
|
flatRows: i,
|
|
21242
21246
|
rowsById: s
|
|
21243
|
-
} : d =
|
|
21247
|
+
} : d = FM({
|
|
21244
21248
|
rows: o,
|
|
21245
21249
|
flatRows: i,
|
|
21246
21250
|
rowsById: s
|
|
@@ -21251,7 +21255,7 @@ function qM(e) {
|
|
|
21251
21255
|
return d.rows.forEach(f), d;
|
|
21252
21256
|
}, Oe(t.options, "debugTable", "getPaginationRowModel"));
|
|
21253
21257
|
}
|
|
21254
|
-
function
|
|
21258
|
+
function GM() {
|
|
21255
21259
|
return (e) => Te(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, a) => {
|
|
21256
21260
|
if (!a.rows.length || !(t != null && t.length))
|
|
21257
21261
|
return a;
|
|
@@ -21313,9 +21317,9 @@ function HM() {
|
|
|
21313
21317
|
function as() {
|
|
21314
21318
|
return !0;
|
|
21315
21319
|
}
|
|
21316
|
-
const
|
|
21320
|
+
const YM = Symbol("merge-proxy"), WM = {
|
|
21317
21321
|
get(e, t, a) {
|
|
21318
|
-
return t ===
|
|
21322
|
+
return t === YM ? a : e.get(t);
|
|
21319
21323
|
},
|
|
21320
21324
|
has(e, t) {
|
|
21321
21325
|
return e.has(t);
|
|
@@ -21360,7 +21364,7 @@ function En() {
|
|
|
21360
21364
|
for (let n = 0; n < t.length; n++) r.push(...Object.keys(Si(t[n])));
|
|
21361
21365
|
return [...Array.from(new Set(r))];
|
|
21362
21366
|
}
|
|
21363
|
-
},
|
|
21367
|
+
}, WM);
|
|
21364
21368
|
}
|
|
21365
21369
|
const ji = Re({
|
|
21366
21370
|
props: ["render", "props"],
|
|
@@ -21371,7 +21375,7 @@ function Jf(e) {
|
|
|
21371
21375
|
data: m(e.data)
|
|
21372
21376
|
});
|
|
21373
21377
|
}
|
|
21374
|
-
function
|
|
21378
|
+
function ZM(e) {
|
|
21375
21379
|
const t = Ai(e.data), a = En({
|
|
21376
21380
|
state: {},
|
|
21377
21381
|
// Dummy state
|
|
@@ -21385,7 +21389,7 @@ function WM(e) {
|
|
|
21385
21389
|
...o
|
|
21386
21390
|
} : En(l, o);
|
|
21387
21391
|
}
|
|
21388
|
-
}, t ? Jf(e) : e), r =
|
|
21392
|
+
}, t ? Jf(e) : e), r = NM(a);
|
|
21389
21393
|
if (t) {
|
|
21390
21394
|
const l = ms(e.data);
|
|
21391
21395
|
ft(l, () => {
|
|
@@ -21419,19 +21423,19 @@ function WM(e) {
|
|
|
21419
21423
|
}), r;
|
|
21420
21424
|
}
|
|
21421
21425
|
var Je = /* @__PURE__ */ ((e) => (e.BETWEEN = "between", e.CONTAINS = "contains", e.ENDS_WITH = "endsWith", e.EQUALS = "equals", e.GREATER_THAN = "greaterThan", e.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", e.IN = "in", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.IS_NOT_NULL = "isNotNull", e.IS_NULL = "isNull", e.LESS_THAN = "lessThan", e.LESS_THAN_OR_EQUAL = "lessThanOrEqual", e.LIKE = "like", e.NOT_BETWEEN = "notBetween", e.NOT_EQUAL = "notEqual", e.NOT_IN = "notIn", e.NOT_LIKE = "notLike", e.STARTS_WITH = "startsWith", e))(Je || {}), Ct = /* @__PURE__ */ ((e) => (e.BETWEEN = "bt", e.CONTAINS = "ct", e.EMPTY = "empty", e.ENDS_WITH = "ew", e.EQUALS = "eq", e.GREATER_THAN = "gt", e.GREATER_THAN_OR_EQUAL = "gte", e.IN = "in", e.LESS_THAN = "lt", e.LESS_THAN_OR_EQUAL = "lte", e.LIKE = "like", e.NULL = "null", e.STARTS_WITH = "sw", e))(Ct || {});
|
|
21422
|
-
const
|
|
21426
|
+
const zM = { class: "pagination" }, KM = {
|
|
21423
21427
|
key: 0,
|
|
21424
21428
|
class: "items-per-page-control"
|
|
21425
|
-
},
|
|
21429
|
+
}, XM = ["value"], jM = ["value"], JM = {
|
|
21426
21430
|
key: 1,
|
|
21427
21431
|
class: "page-input-control"
|
|
21428
|
-
},
|
|
21432
|
+
}, QM = {
|
|
21429
21433
|
key: 2,
|
|
21430
21434
|
class: "pagination-buttons-wrapper"
|
|
21431
|
-
},
|
|
21435
|
+
}, eI = { key: 0 }, tI = { key: 1 }, aI = { key: 1 }, rI = { key: 3 }, nI = {
|
|
21432
21436
|
name: "TablePagination"
|
|
21433
|
-
},
|
|
21434
|
-
...
|
|
21437
|
+
}, lI = /* @__PURE__ */ Re({
|
|
21438
|
+
...nI,
|
|
21435
21439
|
props: {
|
|
21436
21440
|
currentPage: {
|
|
21437
21441
|
required: !0,
|
|
@@ -21500,8 +21504,8 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21500
21504
|
const c = parseInt(u.toString(), 10) - 1;
|
|
21501
21505
|
!isNaN(c) && c >= 0 && c < l.value && r("update:currentPage", c);
|
|
21502
21506
|
};
|
|
21503
|
-
return (u, c) => (S(), L("div",
|
|
21504
|
-
e.showItemsPerPageControl ? (S(), L("div",
|
|
21507
|
+
return (u, c) => (S(), L("div", zM, [
|
|
21508
|
+
e.showItemsPerPageControl ? (S(), L("div", KM, [
|
|
21505
21509
|
ne("span", null, Ce(e.itemsPerPageControlLabel), 1),
|
|
21506
21510
|
ne("select", {
|
|
21507
21511
|
value: n.value,
|
|
@@ -21510,10 +21514,10 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21510
21514
|
(S(!0), L(ke, null, He(e.itemsPerPageOptions, (d) => (S(), L("option", {
|
|
21511
21515
|
key: `items-per-page-option-${d}`,
|
|
21512
21516
|
value: d
|
|
21513
|
-
}, Ce(d), 9,
|
|
21514
|
-
], 40,
|
|
21517
|
+
}, Ce(d), 9, jM))), 128))
|
|
21518
|
+
], 40, XM)
|
|
21515
21519
|
])) : H("", !0),
|
|
21516
|
-
l.value > 1 && e.showPageInput ? (S(), L("div",
|
|
21520
|
+
l.value > 1 && e.showPageInput ? (S(), L("div", JM, [
|
|
21517
21521
|
ne("span", null, Ce(e.pageInputLabel), 1),
|
|
21518
21522
|
ue(m(cp), {
|
|
21519
21523
|
type: "number",
|
|
@@ -21521,8 +21525,8 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21521
21525
|
"onUpdate:modelValue": s
|
|
21522
21526
|
}, null, 8, ["debounce-time"])
|
|
21523
21527
|
])) : H("", !0),
|
|
21524
|
-
l.value > 1 ? (S(), L("div",
|
|
21525
|
-
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), L("div",
|
|
21528
|
+
l.value > 1 ? (S(), L("div", QM, [
|
|
21529
|
+
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), L("div", eI, [
|
|
21526
21530
|
e.showFirstLastButtons ? (S(), j(m(la), {
|
|
21527
21531
|
key: 0,
|
|
21528
21532
|
disabled: !(e.currentPage > 0),
|
|
@@ -21555,9 +21559,9 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21555
21559
|
label: `${d}`,
|
|
21556
21560
|
size: "small",
|
|
21557
21561
|
onClick: (f) => u.$emit("update:currentPage", d - 1)
|
|
21558
|
-
}, null, 8, ["class", "label", "onClick"]))), 128)) : (S(), L("span",
|
|
21562
|
+
}, null, 8, ["class", "label", "onClick"]))), 128)) : (S(), L("span", tI, Ce(`${e.currentPage + 1} / ${l.value}`), 1))
|
|
21559
21563
|
]),
|
|
21560
|
-
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), L("div",
|
|
21564
|
+
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), L("div", aI, [
|
|
21561
21565
|
e.showPreviousNextButtons ? (S(), j(m(la), {
|
|
21562
21566
|
key: 0,
|
|
21563
21567
|
disabled: !(e.currentPage < l.value - 1),
|
|
@@ -21583,14 +21587,14 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21583
21587
|
_: 1
|
|
21584
21588
|
}, 8, ["disabled"])) : H("", !0)
|
|
21585
21589
|
])) : H("", !0)
|
|
21586
|
-
])) : (S(), L("span",
|
|
21590
|
+
])) : (S(), L("span", rI, Ce(`${e.currentPage + 1} / ${l.value}`), 1))
|
|
21587
21591
|
]));
|
|
21588
21592
|
}
|
|
21589
|
-
}), rs = 0,
|
|
21593
|
+
}), rs = 0, oI = [10, 20, 30], sI = 10, Av = "table", Rv = {
|
|
21590
21594
|
day: "2-digit",
|
|
21591
21595
|
month: "2-digit",
|
|
21592
21596
|
year: "numeric"
|
|
21593
|
-
},
|
|
21597
|
+
}, iI = {
|
|
21594
21598
|
...Rv,
|
|
21595
21599
|
hour: "2-digit",
|
|
21596
21600
|
minute: "2-digit",
|
|
@@ -21599,7 +21603,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21599
21603
|
value: e,
|
|
21600
21604
|
locale: t = "en-GB",
|
|
21601
21605
|
formatOptions: a
|
|
21602
|
-
}) => typeof e != "number" || isNaN(e) ? e : new Intl.NumberFormat(t, a).format(e),
|
|
21606
|
+
}) => typeof e != "number" || isNaN(e) ? e : new Intl.NumberFormat(t, a).format(e), uI = (e, t, a) => bg(e, t, a ?? Rv), dI = (e, t, a) => yg(e, t, a ?? iI), qn = (e) => {
|
|
21603
21607
|
switch (e) {
|
|
21604
21608
|
case Je.CONTAINS:
|
|
21605
21609
|
return { operator: Ct.CONTAINS };
|
|
@@ -21662,7 +21666,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21662
21666
|
key: e.id,
|
|
21663
21667
|
...qn(e.filterFn),
|
|
21664
21668
|
value: t.slice(0, 2).join(",")
|
|
21665
|
-
} : null : e.filterFn && !
|
|
21669
|
+
} : null : e.filterFn && !pI(e.filterFn) ? {
|
|
21666
21670
|
key: e.id,
|
|
21667
21671
|
...qn(e.filterFn),
|
|
21668
21672
|
value: t[0]
|
|
@@ -21671,7 +21675,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21671
21675
|
...qn(e.filterFn || Je.IN),
|
|
21672
21676
|
value: t.join(",")
|
|
21673
21677
|
};
|
|
21674
|
-
},
|
|
21678
|
+
}, cI = (e, t, a) => {
|
|
21675
21679
|
const r = () => {
|
|
21676
21680
|
if (!t || t.length === 0) return null;
|
|
21677
21681
|
const i = t.filter((s) => Array.isArray(s.value) ? s.value.filter((u) => Mv(u)).length > 0 : typeof s.value == "string" ? s.value.trim() !== "" : s.value != null);
|
|
@@ -21701,7 +21705,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21701
21705
|
sort: o(),
|
|
21702
21706
|
offset: l()
|
|
21703
21707
|
};
|
|
21704
|
-
},
|
|
21708
|
+
}, fI = (e, t) => {
|
|
21705
21709
|
try {
|
|
21706
21710
|
const a = t.getItem(`${Av}-${e}`);
|
|
21707
21711
|
return a && JSON.parse(a);
|
|
@@ -21715,15 +21719,15 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21715
21719
|
} catch (r) {
|
|
21716
21720
|
console.log("[Dz table] Could not store table state", r);
|
|
21717
21721
|
}
|
|
21718
|
-
},
|
|
21722
|
+
}, pI = (e) => [
|
|
21719
21723
|
Je.IN,
|
|
21720
21724
|
Je.NOT_IN,
|
|
21721
21725
|
Je.BETWEEN,
|
|
21722
21726
|
Je.NOT_BETWEEN
|
|
21723
|
-
].includes(e), Mv = (e) => e != null,
|
|
21727
|
+
].includes(e), Mv = (e) => e != null, mI = ["data-id", "data-selected"], vI = ["data-label", "data-align"], gI = { key: 1 }, hI = ["colspan"], yI = {
|
|
21724
21728
|
name: "TableBody"
|
|
21725
|
-
},
|
|
21726
|
-
...
|
|
21729
|
+
}, bI = /* @__PURE__ */ Re({
|
|
21730
|
+
...yI,
|
|
21727
21731
|
props: {
|
|
21728
21732
|
customFormatters: {
|
|
21729
21733
|
default: () => ({}),
|
|
@@ -21757,13 +21761,13 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21757
21761
|
formatOptions: i?.formatOptions
|
|
21758
21762
|
}),
|
|
21759
21763
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21760
|
-
date: (d) =>
|
|
21764
|
+
date: (d) => uI(
|
|
21761
21765
|
d,
|
|
21762
21766
|
o?.locale ?? t.locale,
|
|
21763
21767
|
o?.formatOptions
|
|
21764
21768
|
),
|
|
21765
21769
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21766
|
-
datetime: (d) =>
|
|
21770
|
+
datetime: (d) => dI(
|
|
21767
21771
|
d,
|
|
21768
21772
|
o?.locale ?? t.locale,
|
|
21769
21773
|
o?.formatOptions
|
|
@@ -21824,25 +21828,25 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21824
21828
|
key: 1,
|
|
21825
21829
|
ref_for: !0
|
|
21826
21830
|
}, a(i)), null, 16))
|
|
21827
|
-
], 14,
|
|
21828
|
-
], 8,
|
|
21831
|
+
], 14, vI))), 128))
|
|
21832
|
+
], 8, mI))), 128)) : (S(), L("tr", gI, [
|
|
21829
21833
|
ne("td", {
|
|
21830
21834
|
colspan: e.table.getAllColumns()?.length,
|
|
21831
21835
|
class: "empty-table"
|
|
21832
|
-
}, Ce(e.emptyTableMessage), 9,
|
|
21836
|
+
}, Ce(e.emptyTableMessage), 9, hI)
|
|
21833
21837
|
]))
|
|
21834
21838
|
]));
|
|
21835
21839
|
}
|
|
21836
|
-
}),
|
|
21840
|
+
}), wI = {
|
|
21837
21841
|
key: 0,
|
|
21838
21842
|
class: "data-actions"
|
|
21839
|
-
},
|
|
21843
|
+
}, _I = {
|
|
21840
21844
|
key: 0,
|
|
21841
21845
|
class: "title"
|
|
21842
|
-
},
|
|
21846
|
+
}, SI = { key: 0 }, AI = { key: 0 }, RI = {
|
|
21843
21847
|
name: "TableDataActions"
|
|
21844
|
-
},
|
|
21845
|
-
...
|
|
21848
|
+
}, MI = /* @__PURE__ */ Re({
|
|
21849
|
+
...RI,
|
|
21846
21850
|
props: {
|
|
21847
21851
|
actions: {
|
|
21848
21852
|
type: Array,
|
|
@@ -21889,7 +21893,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21889
21893
|
}, f = (p) => {
|
|
21890
21894
|
l.value = p, p?.requireConfirmationModal ? n.value = !0 : r("action:select", l.value);
|
|
21891
21895
|
};
|
|
21892
|
-
return (p, y) => s.value ? (S(), L("div",
|
|
21896
|
+
return (p, y) => s.value ? (S(), L("div", wI, [
|
|
21893
21897
|
u.value ? (S(!0), L(ke, { key: 0 }, He(o.value, (g, v) => (S(), j(m(la), Ve({ ref_for: !0 }, g, {
|
|
21894
21898
|
key: `mode-button-${v}`,
|
|
21895
21899
|
class: g.class,
|
|
@@ -21924,21 +21928,21 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21924
21928
|
i.value?.header ? {
|
|
21925
21929
|
name: "header",
|
|
21926
21930
|
fn: K(() => [
|
|
21927
|
-
typeof i.value?.header == "string" ? (S(), L("p",
|
|
21931
|
+
typeof i.value?.header == "string" ? (S(), L("p", _I, Ce(i.value?.header), 1)) : (S(), j(jt(i.value?.header), { key: 1 }))
|
|
21928
21932
|
]),
|
|
21929
21933
|
key: "0"
|
|
21930
21934
|
} : void 0,
|
|
21931
21935
|
i.value?.body ? {
|
|
21932
21936
|
name: "message",
|
|
21933
21937
|
fn: K(() => [
|
|
21934
|
-
typeof i.value?.body == "string" ? (S(), L("p",
|
|
21938
|
+
typeof i.value?.body == "string" ? (S(), L("p", SI, Ce(i.value?.body), 1)) : (S(), j(jt(i.value?.body), { key: 1 }))
|
|
21935
21939
|
]),
|
|
21936
21940
|
key: "1"
|
|
21937
21941
|
} : void 0,
|
|
21938
21942
|
i.value?.footer ? {
|
|
21939
21943
|
name: "footer",
|
|
21940
21944
|
fn: K(() => [
|
|
21941
|
-
typeof i.value?.footer == "string" ? (S(), L("p",
|
|
21945
|
+
typeof i.value?.footer == "string" ? (S(), L("p", AI, Ce(i.value?.footer), 1)) : (S(), j(jt(i.value?.footer), { key: 1 }))
|
|
21942
21946
|
]),
|
|
21943
21947
|
key: "2"
|
|
21944
21948
|
} : void 0
|
|
@@ -21946,40 +21950,40 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
21946
21950
|
])
|
|
21947
21951
|
])) : H("", !0);
|
|
21948
21952
|
}
|
|
21949
|
-
}),
|
|
21953
|
+
}), II = ["colSpan", "data-align", "onClick"], CI = {
|
|
21950
21954
|
key: 0,
|
|
21951
21955
|
class: "sort-state"
|
|
21952
|
-
},
|
|
21956
|
+
}, xI = {
|
|
21953
21957
|
key: 0,
|
|
21954
21958
|
class: "sort-icon",
|
|
21955
21959
|
height: "16",
|
|
21956
21960
|
viewBox: "0 0 24 24",
|
|
21957
21961
|
width: "16",
|
|
21958
21962
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21959
|
-
},
|
|
21963
|
+
}, kI = {
|
|
21960
21964
|
key: 0,
|
|
21961
21965
|
class: "sort-icon",
|
|
21962
21966
|
height: "16",
|
|
21963
21967
|
viewBox: "0 0 24 24",
|
|
21964
21968
|
width: "16",
|
|
21965
21969
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21966
|
-
},
|
|
21970
|
+
}, $I = {
|
|
21967
21971
|
key: 1,
|
|
21968
21972
|
class: "sort-icon",
|
|
21969
21973
|
height: "16",
|
|
21970
21974
|
viewBox: "0 0 24 24",
|
|
21971
21975
|
width: "16",
|
|
21972
21976
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21973
|
-
},
|
|
21977
|
+
}, PI = {
|
|
21974
21978
|
key: 0,
|
|
21975
21979
|
class: "header-row filters"
|
|
21976
|
-
},
|
|
21980
|
+
}, DI = ["data-align"], EI = {
|
|
21977
21981
|
key: 3,
|
|
21978
21982
|
class: "number-range-filter"
|
|
21979
|
-
},
|
|
21983
|
+
}, TI = {
|
|
21980
21984
|
name: "TableHeader"
|
|
21981
|
-
},
|
|
21982
|
-
...
|
|
21985
|
+
}, OI = /* @__PURE__ */ Re({
|
|
21986
|
+
...TI,
|
|
21983
21987
|
props: {
|
|
21984
21988
|
highlightActiveColumn: Boolean,
|
|
21985
21989
|
inputDebounceTime: {
|
|
@@ -22036,31 +22040,31 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22036
22040
|
props: u.getContext(),
|
|
22037
22041
|
render: u.column.columnDef.header
|
|
22038
22042
|
}, null, 8, ["props", "render"]),
|
|
22039
|
-
u.column.columnDef.enableSorting ? (S(), L("span",
|
|
22040
|
-
!u.column.getIsSorted() && u.column.getCanSort() ? (S(), L("svg",
|
|
22043
|
+
u.column.columnDef.enableSorting ? (S(), L("span", CI, [
|
|
22044
|
+
!u.column.getIsSorted() && u.column.getCanSort() ? (S(), L("svg", xI, [...i[0] || (i[0] = [
|
|
22041
22045
|
ne("path", {
|
|
22042
22046
|
d: "M18 10.75H6a.74.74 0 0 1-.69-.46a.75.75 0 0 1 .16-.82l6-6a.75.75 0 0 1 1.06 0l6 6a.75.75 0 0 1 .16.82a.74.74 0 0 1-.69.46M7.81 9.25h8.38L12 5.06ZM12 20.75a.74.74 0 0 1-.53-.22l-6-6a.75.75 0 0 1-.16-.82a.74.74 0 0 1 .69-.46h12a.74.74 0 0 1 .69.46a.75.75 0 0 1-.16.82l-6 6a.74.74 0 0 1-.53.22m-4.19-6L12 18.94l4.19-4.19Z",
|
|
22043
22047
|
fill: "currentColor"
|
|
22044
22048
|
}, null, -1)
|
|
22045
|
-
]))) : H("", !0),
|
|
22049
|
+
])])) : H("", !0),
|
|
22046
22050
|
u.column.getIsSorted() && u.column.getCanSort() ? (S(), L(ke, { key: 1 }, [
|
|
22047
|
-
u.column.getIsSorted() === "asc" ? (S(), L("svg",
|
|
22051
|
+
u.column.getIsSorted() === "asc" ? (S(), L("svg", kI, [...i[1] || (i[1] = [
|
|
22048
22052
|
ne("path", {
|
|
22049
22053
|
d: "M12.53 7.97a.75.75 0 0 0-1.06 0l-7 7A.75.75 0 0 0 5 16.25h14a.75.75 0 0 0 .53-1.28z",
|
|
22050
22054
|
fill: "currentColor"
|
|
22051
22055
|
}, null, -1)
|
|
22052
|
-
]))) : (S(), L("svg",
|
|
22056
|
+
])])) : (S(), L("svg", $I, [...i[2] || (i[2] = [
|
|
22053
22057
|
ne("path", {
|
|
22054
22058
|
d: "M5 7.75a.75.75 0 0 0-.53 1.28l7 7a.75.75 0 0 0 1.06 0l7-7A.75.75 0 0 0 19 7.75z",
|
|
22055
22059
|
fill: "currentColor"
|
|
22056
22060
|
}, null, -1)
|
|
22057
|
-
])))
|
|
22061
|
+
])]))
|
|
22058
22062
|
], 64)) : H("", !0)
|
|
22059
22063
|
])) : H("", !0)
|
|
22060
22064
|
], 64))
|
|
22061
|
-
], 14,
|
|
22065
|
+
], 14, II))), 128))
|
|
22062
22066
|
]))), 128)),
|
|
22063
|
-
e.isFilterRowVisible ? (S(), L("tr",
|
|
22067
|
+
e.isFilterRowVisible ? (S(), L("tr", PI, [
|
|
22064
22068
|
(S(!0), L(ke, null, He(e.table.getVisibleLeafColumns(), (s) => (S(), L("th", {
|
|
22065
22069
|
key: `table-filter-${s.id}`,
|
|
22066
22070
|
class: xe([
|
|
@@ -22097,7 +22101,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22097
22101
|
range: "",
|
|
22098
22102
|
teleport: "",
|
|
22099
22103
|
"onUpdate:modelValue": (u) => s.setFilterValue(n(u))
|
|
22100
|
-
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : s.columnDef.meta?.filterVariant === "range" ? (S(), L("div",
|
|
22104
|
+
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : s.columnDef.meta?.filterVariant === "range" ? (S(), L("div", EI, [
|
|
22101
22105
|
ue(m(Vi), {
|
|
22102
22106
|
"model-value": Array.isArray(r(s)) && r(s)[0] !== null ? Number(r(s)[0]) : void 0,
|
|
22103
22107
|
placeholder: s.columnDef.filterPlaceholder?.split(",")[0],
|
|
@@ -22119,14 +22123,14 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22119
22123
|
"onUpdate:modelValue": (u) => s.setFilterValue(u)
|
|
22120
22124
|
}, null, 8, ["id", "debounce-time", "model-value", "placeholder", "onUpdate:modelValue"]))
|
|
22121
22125
|
], 64)) : H("", !0)
|
|
22122
|
-
], 14,
|
|
22126
|
+
], 14, DI))), 128))
|
|
22123
22127
|
])) : H("", !0)
|
|
22124
22128
|
]));
|
|
22125
22129
|
}
|
|
22126
|
-
}),
|
|
22130
|
+
}), NI = { class: "toolbar" }, LI = {
|
|
22127
22131
|
name: "TableToolbar"
|
|
22128
|
-
},
|
|
22129
|
-
...
|
|
22132
|
+
}, FI = /* @__PURE__ */ Re({
|
|
22133
|
+
...LI,
|
|
22130
22134
|
props: {
|
|
22131
22135
|
columnActionButtonLabel: {
|
|
22132
22136
|
default: "Columns",
|
|
@@ -22170,7 +22174,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22170
22174
|
];
|
|
22171
22175
|
r("on:drag", i);
|
|
22172
22176
|
};
|
|
22173
|
-
return (o, i) => (S(), L("div",
|
|
22177
|
+
return (o, i) => (S(), L("div", NI, [
|
|
22174
22178
|
e.showResetButton ? (S(), j(m(la), {
|
|
22175
22179
|
key: 0,
|
|
22176
22180
|
label: e.resetButtonLabel,
|
|
@@ -22200,13 +22204,13 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22200
22204
|
re(o.$slots, "default")
|
|
22201
22205
|
]));
|
|
22202
22206
|
}
|
|
22203
|
-
}),
|
|
22207
|
+
}), BI = ["id"], VI = {
|
|
22204
22208
|
key: 0,
|
|
22205
22209
|
class: "loading-overlay"
|
|
22206
|
-
},
|
|
22210
|
+
}, UI = ["data-align"], qI = { class: "table-wrapper" }, HI = { key: 0 }, GI = {
|
|
22207
22211
|
name: "DataTable"
|
|
22208
22212
|
}, Uu = /* @__PURE__ */ Re({
|
|
22209
|
-
...
|
|
22213
|
+
...GI,
|
|
22210
22214
|
props: {
|
|
22211
22215
|
actionsMode: {
|
|
22212
22216
|
default: "auto",
|
|
@@ -22299,11 +22303,11 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22299
22303
|
type: String
|
|
22300
22304
|
},
|
|
22301
22305
|
rowPerPage: {
|
|
22302
|
-
default:
|
|
22306
|
+
default: sI,
|
|
22303
22307
|
type: Number
|
|
22304
22308
|
},
|
|
22305
22309
|
rowPerPageOptions: {
|
|
22306
|
-
default: () =>
|
|
22310
|
+
default: () => oI,
|
|
22307
22311
|
type: Array
|
|
22308
22312
|
},
|
|
22309
22313
|
showColumnAction: Boolean,
|
|
@@ -22347,7 +22351,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22347
22351
|
), g = Y(
|
|
22348
22352
|
() => v.value.getSelectedRowModel().rows.map((I) => I.original)
|
|
22349
22353
|
), v = Y(
|
|
22350
|
-
() =>
|
|
22354
|
+
() => ZM({
|
|
22351
22355
|
columns: n,
|
|
22352
22356
|
state: {
|
|
22353
22357
|
columnFilters: l.value,
|
|
@@ -22399,10 +22403,10 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22399
22403
|
columnResizeMode: "onChange",
|
|
22400
22404
|
data: a.data,
|
|
22401
22405
|
enableSortingRemoval: a.enableSortingRemoval,
|
|
22402
|
-
getCoreRowModel:
|
|
22403
|
-
getFilteredRowModel:
|
|
22404
|
-
getPaginationRowModel:
|
|
22405
|
-
getSortedRowModel:
|
|
22406
|
+
getCoreRowModel: LM(),
|
|
22407
|
+
getFilteredRowModel: qM(),
|
|
22408
|
+
getPaginationRowModel: HM(),
|
|
22409
|
+
getSortedRowModel: GM(),
|
|
22406
22410
|
manualFiltering: a.isServerTable,
|
|
22407
22411
|
manualSorting: a.isServerTable,
|
|
22408
22412
|
manualPagination: a.isServerTable,
|
|
@@ -22416,7 +22420,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22416
22420
|
}
|
|
22417
22421
|
);
|
|
22418
22422
|
const h = () => {
|
|
22419
|
-
const I =
|
|
22423
|
+
const I = cI(
|
|
22420
22424
|
c.value,
|
|
22421
22425
|
l.value,
|
|
22422
22426
|
s.value
|
|
@@ -22469,7 +22473,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22469
22473
|
icon: "prime:cog",
|
|
22470
22474
|
width: "24"
|
|
22471
22475
|
}),
|
|
22472
|
-
cell: ({ row: I }) => Et(
|
|
22476
|
+
cell: ({ row: I }) => Et(MI, {
|
|
22473
22477
|
actions: a.dataActionMenu,
|
|
22474
22478
|
autoModeCount: a.autoModeCount,
|
|
22475
22479
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -22487,21 +22491,21 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22487
22491
|
}, R = () => {
|
|
22488
22492
|
if (!a.persistState || !a.id)
|
|
22489
22493
|
return;
|
|
22490
|
-
const I =
|
|
22494
|
+
const I = fI(a.id, p.value);
|
|
22491
22495
|
I && (l.value = I.columnFilters, o.value = I.columnOrder, i.value = I.columnVisibility, c.value = I.sorting, a.rowPerPageOptions.includes(I.pagination.pageSize) && (s.value = I.pagination)), ap(a.id, f.value, p.value);
|
|
22492
22496
|
};
|
|
22493
22497
|
return w(), (I, M) => (S(), L("div", {
|
|
22494
22498
|
id: e.id,
|
|
22495
22499
|
class: "table-container"
|
|
22496
22500
|
}, [
|
|
22497
|
-
e.isLoading ? (S(), L("div",
|
|
22501
|
+
e.isLoading ? (S(), L("div", VI, [
|
|
22498
22502
|
ue(m(fg), { class: "loading-icon" })
|
|
22499
22503
|
])) : H("", !0),
|
|
22500
22504
|
e.titleInfo ? (S(), L("span", {
|
|
22501
22505
|
key: 1,
|
|
22502
22506
|
"data-align": e.titleInfo.align || "center"
|
|
22503
|
-
}, Ce(e.titleInfo.text), 9,
|
|
22504
|
-
e.showColumnAction || e.showResetButton || I.$slots.toolbar ? (S(), j(
|
|
22507
|
+
}, Ce(e.titleInfo.text), 9, UI)) : H("", !0),
|
|
22508
|
+
e.showColumnAction || e.showResetButton || I.$slots.toolbar ? (S(), j(FI, {
|
|
22505
22509
|
key: 2,
|
|
22506
22510
|
"column-action-button-label": e.columnActionButtonLabel,
|
|
22507
22511
|
"has-actions-column": !!e.dataActionMenu.length,
|
|
@@ -22518,29 +22522,29 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22518
22522
|
]),
|
|
22519
22523
|
_: 3
|
|
22520
22524
|
}, 8, ["column-action-button-label", "has-actions-column", "has-selection-column", "reset-button-label", "show-column-action", "show-reset-button", "table"])) : H("", !0),
|
|
22521
|
-
ne("div",
|
|
22525
|
+
ne("div", qI, [
|
|
22522
22526
|
ne("table", {
|
|
22523
22527
|
style: Tt(`width: ${v.value.getCenterTotalSize()}`)
|
|
22524
22528
|
}, [
|
|
22525
|
-
ue(
|
|
22529
|
+
ue(OI, {
|
|
22526
22530
|
"highlight-active-column": e.highlightActiveHeaderColumn,
|
|
22527
22531
|
"input-debounce-time": e.inputDebounceTime,
|
|
22528
22532
|
"is-filter-row-visible": d.value,
|
|
22529
22533
|
table: v.value
|
|
22530
22534
|
}, null, 8, ["highlight-active-column", "input-debounce-time", "is-filter-row-visible", "table"]),
|
|
22531
|
-
ue(
|
|
22535
|
+
ue(bI, {
|
|
22532
22536
|
"custom-formatters": e.customFormatters,
|
|
22533
22537
|
"empty-table-message": e.emptyTableMessage,
|
|
22534
22538
|
locale: e.locale,
|
|
22535
22539
|
table: v.value
|
|
22536
22540
|
}, null, 8, ["custom-formatters", "empty-table-message", "locale", "table"]),
|
|
22537
|
-
I.$slots.footer ? (S(), L("tfoot",
|
|
22541
|
+
I.$slots.footer ? (S(), L("tfoot", HI, [
|
|
22538
22542
|
re(I.$slots, "footer")
|
|
22539
22543
|
])) : H("", !0)
|
|
22540
22544
|
], 4)
|
|
22541
22545
|
]),
|
|
22542
22546
|
(e.isServerTable || e.paginated) && y.value > 0 ? re(I.$slots, "pagination", { key: 3 }, () => [
|
|
22543
|
-
ue(
|
|
22547
|
+
ue(lI, Ve(e.paginationOptions, {
|
|
22544
22548
|
"current-page": s.value.pageIndex,
|
|
22545
22549
|
"default-items-per-page": s.value.pageSize,
|
|
22546
22550
|
"items-per-page-options": e.rowPerPageOptions,
|
|
@@ -22549,9 +22553,9 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22549
22553
|
"onUpdate:itemsPerPage": v.value.setPageSize
|
|
22550
22554
|
}), null, 16, ["current-page", "default-items-per-page", "items-per-page-options", "total-items", "onUpdate:currentPage", "onUpdate:itemsPerPage"])
|
|
22551
22555
|
]) : H("", !0)
|
|
22552
|
-
], 8,
|
|
22556
|
+
], 8, BI));
|
|
22553
22557
|
}
|
|
22554
|
-
}),
|
|
22558
|
+
}), YI = async (e, t) => {
|
|
22555
22559
|
const a = await ut(t).post(
|
|
22556
22560
|
"/roles",
|
|
22557
22561
|
e,
|
|
@@ -22562,7 +22566,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22562
22566
|
if (a.data.status === Ir)
|
|
22563
22567
|
throw new Error(a.data.message);
|
|
22564
22568
|
return a.data;
|
|
22565
|
-
},
|
|
22569
|
+
}, WI = async (e, t) => {
|
|
22566
22570
|
const a = await ut(t).delete(
|
|
22567
22571
|
"/roles",
|
|
22568
22572
|
{
|
|
@@ -22574,7 +22578,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22574
22578
|
if (a.data.status === Ir)
|
|
22575
22579
|
throw new Error(a.data.message);
|
|
22576
22580
|
return a.data;
|
|
22577
|
-
},
|
|
22581
|
+
}, ZI = async (e) => await ut(e).get("permissions"), zI = async (e) => {
|
|
22578
22582
|
const t = await ut(e).get("roles");
|
|
22579
22583
|
return {
|
|
22580
22584
|
...t.data,
|
|
@@ -22583,7 +22587,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22583
22587
|
id: r
|
|
22584
22588
|
}))
|
|
22585
22589
|
};
|
|
22586
|
-
},
|
|
22590
|
+
}, KI = async (e, t) => {
|
|
22587
22591
|
const a = await ut(t).put(
|
|
22588
22592
|
"/roles/permissions",
|
|
22589
22593
|
e,
|
|
@@ -22595,15 +22599,15 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22595
22599
|
throw new Error(a.data.message);
|
|
22596
22600
|
return a.data;
|
|
22597
22601
|
}, Iv = ip("roles", () => ({
|
|
22598
|
-
createRole: async (l, o) => await
|
|
22599
|
-
deleteRole: async (l, o) => await
|
|
22600
|
-
getPermissions: async (l) => await
|
|
22601
|
-
getRoles: async (l) => await
|
|
22602
|
-
updateRolePermissions: async (l, o) => await
|
|
22603
|
-
})),
|
|
22602
|
+
createRole: async (l, o) => await YI(l, o),
|
|
22603
|
+
deleteRole: async (l, o) => await WI(l, o),
|
|
22604
|
+
getPermissions: async (l) => await ZI(l),
|
|
22605
|
+
getRoles: async (l) => await zI(l),
|
|
22606
|
+
updateRolePermissions: async (l, o) => await KI(l, o)
|
|
22607
|
+
})), XI = { class: "role-form" }, jI = {
|
|
22604
22608
|
name: "RoleForm"
|
|
22605
|
-
},
|
|
22606
|
-
...
|
|
22609
|
+
}, JI = /* @__PURE__ */ Re({
|
|
22610
|
+
...jI,
|
|
22607
22611
|
props: {
|
|
22608
22612
|
loading: Boolean,
|
|
22609
22613
|
role: {
|
|
@@ -22633,7 +22637,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22633
22637
|
value: p
|
|
22634
22638
|
})
|
|
22635
22639
|
);
|
|
22636
|
-
})(), (f, p) => (S(), L("div",
|
|
22640
|
+
})(), (f, p) => (S(), L("div", XI, [
|
|
22637
22641
|
ue(m(nl), {
|
|
22638
22642
|
onSubmit: p[3] || (p[3] = (y) => f.$emit("submit", i.value))
|
|
22639
22643
|
}, {
|
|
@@ -22668,10 +22672,10 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22668
22672
|
})
|
|
22669
22673
|
]));
|
|
22670
22674
|
}
|
|
22671
|
-
}),
|
|
22675
|
+
}), QI = {
|
|
22672
22676
|
name: "RolesTable"
|
|
22673
|
-
},
|
|
22674
|
-
...
|
|
22677
|
+
}, eC = /* @__PURE__ */ Re({
|
|
22678
|
+
...QI,
|
|
22675
22679
|
props: {
|
|
22676
22680
|
isLoading: Boolean,
|
|
22677
22681
|
persistState: {
|
|
@@ -22819,7 +22823,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22819
22823
|
severity: "danger",
|
|
22820
22824
|
onClose: O[0] || (O[0] = (te) => c.value = void 0)
|
|
22821
22825
|
}, null, 8, ["message"])) : H("", !0),
|
|
22822
|
-
ue(
|
|
22826
|
+
ue(JI, {
|
|
22823
22827
|
loading: d.value,
|
|
22824
22828
|
role: f.value,
|
|
22825
22829
|
onCancel: b,
|
|
@@ -22833,10 +22837,10 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22833
22837
|
}, 8, ["title"]);
|
|
22834
22838
|
};
|
|
22835
22839
|
}
|
|
22836
|
-
}),
|
|
22840
|
+
}), tC = { class: "links" }, aC = {
|
|
22837
22841
|
name: "Signup"
|
|
22838
|
-
},
|
|
22839
|
-
...
|
|
22842
|
+
}, rC = /* @__PURE__ */ Re({
|
|
22843
|
+
...aC,
|
|
22840
22844
|
setup(e) {
|
|
22841
22845
|
const t = Ze(), { t: a } = We({ messages: t }), r = Xe(), { signup: n } = r, { user: l } = ea(r), o = ta(), i = U(), s = U(!1), u = async (c) => {
|
|
22842
22846
|
s.value = !0, await n(c).catch((d) => {
|
|
@@ -22869,7 +22873,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22869
22873
|
loading: s.value,
|
|
22870
22874
|
onSubmit: u
|
|
22871
22875
|
}, null, 8, ["loading"]),
|
|
22872
|
-
ne("div",
|
|
22876
|
+
ne("div", tC, [
|
|
22873
22877
|
ue(f, {
|
|
22874
22878
|
to: { name: "login" },
|
|
22875
22879
|
class: "login"
|
|
@@ -22894,10 +22898,10 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22894
22898
|
}, 8, ["title"]);
|
|
22895
22899
|
};
|
|
22896
22900
|
}
|
|
22897
|
-
}),
|
|
22901
|
+
}), nC = {
|
|
22898
22902
|
name: "SignupFirstUser"
|
|
22899
|
-
},
|
|
22900
|
-
...
|
|
22903
|
+
}, lC = /* @__PURE__ */ Re({
|
|
22904
|
+
...nC,
|
|
22901
22905
|
setup(e) {
|
|
22902
22906
|
const t = ot(), a = Ze(), { t: r } = We({ messages: a }), n = ta(), l = Xe(), { getIsFirstUser: o, signUpFirstUser: i } = l, { user: s } = ea(l), u = U(), c = U(!1), d = async (p) => {
|
|
22903
22907
|
c.value = !0, await i(p, t.apiBaseUrl).then(() => {
|
|
@@ -22945,10 +22949,10 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
22945
22949
|
_: 1
|
|
22946
22950
|
}, 8, ["loading", "title"]));
|
|
22947
22951
|
}
|
|
22948
|
-
}),
|
|
22952
|
+
}), oC = {
|
|
22949
22953
|
name: "VerifyEmail"
|
|
22950
|
-
},
|
|
22951
|
-
...
|
|
22954
|
+
}, sC = /* @__PURE__ */ Re({
|
|
22955
|
+
...oC,
|
|
22952
22956
|
setup(e) {
|
|
22953
22957
|
const t = ot(), a = Kn(), r = Ze(), { t: n } = We({ messages: r }), { user: l, setUser: o, verifyEmail: i } = Xe(), s = U(!1), u = U(), c = Y(() => {
|
|
22954
22958
|
if (s.value)
|
|
@@ -23036,17 +23040,17 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
23036
23040
|
meta: {
|
|
23037
23041
|
authenticated: !0
|
|
23038
23042
|
},
|
|
23039
|
-
component:
|
|
23043
|
+
component: eC,
|
|
23040
23044
|
name: "roles",
|
|
23041
23045
|
path: "/roles"
|
|
23042
23046
|
},
|
|
23043
23047
|
signup: {
|
|
23044
|
-
component:
|
|
23048
|
+
component: rC,
|
|
23045
23049
|
name: "signup",
|
|
23046
23050
|
path: "/signup"
|
|
23047
23051
|
},
|
|
23048
23052
|
signupFirstUser: {
|
|
23049
|
-
component:
|
|
23053
|
+
component: lC,
|
|
23050
23054
|
name: "signupFirstUser",
|
|
23051
23055
|
path: "/signup-first-user"
|
|
23052
23056
|
},
|
|
@@ -23064,7 +23068,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
23064
23068
|
meta: {
|
|
23065
23069
|
authenticated: !0
|
|
23066
23070
|
},
|
|
23067
|
-
component:
|
|
23071
|
+
component: sC,
|
|
23068
23072
|
name: "verifyEmail",
|
|
23069
23073
|
path: "/verify-email"
|
|
23070
23074
|
},
|
|
@@ -23081,7 +23085,7 @@ const ZM = { class: "pagination" }, zM = {
|
|
|
23081
23085
|
...t
|
|
23082
23086
|
});
|
|
23083
23087
|
let Cv = [];
|
|
23084
|
-
const
|
|
23088
|
+
const iC = (e, t) => {
|
|
23085
23089
|
const a = t?.routes;
|
|
23086
23090
|
e.addRoute(ca(da.facebook, a?.facebook)), e.addRoute(ca(da.google, a?.google)), e.addRoute(ca(da.login, a?.login)), a?.signup?.disabled || e.addRoute(ca(da.signup, a?.signup)), a?.signup?.disabled && !a?.signupFirstUser?.disabled && e.addRoute(ca(da.signupFirstUser, a?.signupFirstUser)), e.addRoute(ca(da.passwordReset, a?.passwordReset)), e.addRoute(
|
|
23087
23091
|
ca(da.passwordResetRequest, a?.passwordResetRequest)
|
|
@@ -23098,7 +23102,7 @@ const sC = (e, t) => {
|
|
|
23098
23102
|
let i = typeof r.display == "boolean" ? r.display : !0;
|
|
23099
23103
|
typeof r.display == "function" && l.value && (i = r.display(l.value)), i || e.removeRoute(a.name);
|
|
23100
23104
|
}
|
|
23101
|
-
},
|
|
23105
|
+
}, uC = (e) => {
|
|
23102
23106
|
e.beforeEach((t, a, r) => {
|
|
23103
23107
|
const n = Xe(), { user: l } = ea(n), o = [
|
|
23104
23108
|
"acceptInvitation",
|
|
@@ -23110,7 +23114,7 @@ const sC = (e, t) => {
|
|
|
23110
23114
|
], i = t.name;
|
|
23111
23115
|
l.value && o.includes(i) ? r({ name: "profile" }) : r();
|
|
23112
23116
|
});
|
|
23113
|
-
},
|
|
23117
|
+
}, dC = (e, t) => {
|
|
23114
23118
|
e.beforeEach(async (a) => {
|
|
23115
23119
|
const r = a.meta, n = Xe(), l = !!t?.features?.signUp?.emailVerification, o = a.name, i = ["verifyEmail", "verifyEmailReminder"], { user: s } = ea(n), { getUser: u } = n;
|
|
23116
23120
|
if (s.value || (s.value = await u()), s.value?.thirdParty && t?.socialLogins?.includes(s.value?.thirdParty?.id), r.authenticated && !s.value && (sessionStorage.setItem("redirectAfterLogin", a.name), e.hasRoute("login") && e.push({ name: "login" })), r.authenticated && l && s.value) {
|
|
@@ -23123,12 +23127,12 @@ const sC = (e, t) => {
|
|
|
23123
23127
|
const c = !!s.value?.isProfileCompleted, d = s.value?.isProfileCompleted !== void 0;
|
|
23124
23128
|
r.authenticated && d && !c && ![...i, "profile"].includes(o) && e.hasRoute("profile") && e.push({ name: "profile" });
|
|
23125
23129
|
});
|
|
23126
|
-
},
|
|
23127
|
-
|
|
23128
|
-
},
|
|
23130
|
+
}, cC = (e, t) => {
|
|
23131
|
+
iC(e, t), Cv = e.getRoutes(), Os(e), dC(e, t), uC(e);
|
|
23132
|
+
}, fC = {
|
|
23129
23133
|
name: "ChangePassword"
|
|
23130
|
-
},
|
|
23131
|
-
...
|
|
23134
|
+
}, QC = /* @__PURE__ */ Re({
|
|
23135
|
+
...fC,
|
|
23132
23136
|
setup(e) {
|
|
23133
23137
|
const t = ot(), a = Ze(), { t: r } = We({ messages: a }), n = Xe(), { changePassword: l } = n, o = ta(), i = U(), s = U(!1), u = async (c) => {
|
|
23134
23138
|
s.value = !0, await l(c, t?.apiBaseUrl).then((d) => {
|
|
@@ -23163,10 +23167,10 @@ const sC = (e, t) => {
|
|
|
23163
23167
|
_: 3
|
|
23164
23168
|
}, 8, ["title"]));
|
|
23165
23169
|
}
|
|
23166
|
-
}),
|
|
23170
|
+
}), pC = {
|
|
23167
23171
|
name: "ProfilePage"
|
|
23168
|
-
},
|
|
23169
|
-
...
|
|
23172
|
+
}, ex = /* @__PURE__ */ Re({
|
|
23173
|
+
...pC,
|
|
23170
23174
|
setup(e) {
|
|
23171
23175
|
const t = Ze(), { t: a } = We({ messages: t });
|
|
23172
23176
|
return (r, n) => (S(), j(m(Sa), {
|
|
@@ -23185,10 +23189,10 @@ const sC = (e, t) => {
|
|
|
23185
23189
|
_: 3
|
|
23186
23190
|
}, 8, ["title"]));
|
|
23187
23191
|
}
|
|
23188
|
-
}),
|
|
23192
|
+
}), mC = { class: "trigger" }, vC = { class: "email" }, gC = { class: "dropdown" }, hC = {
|
|
23189
23193
|
name: "DropdownUserMenu"
|
|
23190
|
-
},
|
|
23191
|
-
...
|
|
23194
|
+
}, yC = /* @__PURE__ */ Re({
|
|
23195
|
+
...hC,
|
|
23192
23196
|
props: {
|
|
23193
23197
|
user: {
|
|
23194
23198
|
required: !0,
|
|
@@ -23214,9 +23218,9 @@ const sC = (e, t) => {
|
|
|
23214
23218
|
class: xe(["user-menu-dropdown", { expanded: t.value }]),
|
|
23215
23219
|
onClick: l
|
|
23216
23220
|
}, [
|
|
23217
|
-
ne("div",
|
|
23221
|
+
ne("div", mC, [
|
|
23218
23222
|
re(i.$slots, "userMenuTrigger", {}, () => [
|
|
23219
|
-
ne("span",
|
|
23223
|
+
ne("span", vC, Ce(e.user?.email), 1)
|
|
23220
23224
|
]),
|
|
23221
23225
|
s[3] || (s[3] = ne("span", { class: "toggle" }, [
|
|
23222
23226
|
ne("svg", {
|
|
@@ -23234,7 +23238,7 @@ const sC = (e, t) => {
|
|
|
23234
23238
|
])
|
|
23235
23239
|
], -1))
|
|
23236
23240
|
]),
|
|
23237
|
-
ne("ul",
|
|
23241
|
+
ne("ul", gC, [
|
|
23238
23242
|
ne("li", {
|
|
23239
23243
|
onClick: s[0] || (s[0] = (c) => i.$emit("select:menu"))
|
|
23240
23244
|
}, [
|
|
@@ -23297,10 +23301,10 @@ const sC = (e, t) => {
|
|
|
23297
23301
|
], 2);
|
|
23298
23302
|
};
|
|
23299
23303
|
}
|
|
23300
|
-
}),
|
|
23304
|
+
}), bC = { class: "invitation-form" }, wC = {
|
|
23301
23305
|
name: "InvitationForm"
|
|
23302
|
-
},
|
|
23303
|
-
...
|
|
23306
|
+
}, _C = /* @__PURE__ */ Re({
|
|
23307
|
+
...wC,
|
|
23304
23308
|
props: {
|
|
23305
23309
|
apps: {
|
|
23306
23310
|
default: () => [],
|
|
@@ -23390,7 +23394,7 @@ const sC = (e, t) => {
|
|
|
23390
23394
|
const h = /* @__PURE__ */ new Date(), w = new Date(d.value?.expiresAt).getTime() - h.getTime();
|
|
23391
23395
|
c.value = Math.round(w / (24 * 60 * 60 * 1e3));
|
|
23392
23396
|
}
|
|
23393
|
-
})(), (h, b) => (S(), L("div",
|
|
23397
|
+
})(), (h, b) => (S(), L("div", bC, [
|
|
23394
23398
|
u.value ? (S(), j(m(Aa), {
|
|
23395
23399
|
key: 0,
|
|
23396
23400
|
message: m(o)(`user.invitation.errors.${u.value}`),
|
|
@@ -23458,10 +23462,10 @@ const sC = (e, t) => {
|
|
|
23458
23462
|
})
|
|
23459
23463
|
]));
|
|
23460
23464
|
}
|
|
23461
|
-
}),
|
|
23465
|
+
}), SC = {
|
|
23462
23466
|
name: "InvitationModal"
|
|
23463
23467
|
}, xv = /* @__PURE__ */ Re({
|
|
23464
|
-
...
|
|
23468
|
+
...SC,
|
|
23465
23469
|
props: {
|
|
23466
23470
|
apps: {
|
|
23467
23471
|
default: () => [],
|
|
@@ -23532,7 +23536,7 @@ const sC = (e, t) => {
|
|
|
23532
23536
|
"onOn:close": r
|
|
23533
23537
|
}, {
|
|
23534
23538
|
default: K(() => [
|
|
23535
|
-
ue(
|
|
23539
|
+
ue(_C, {
|
|
23536
23540
|
apps: e.apps,
|
|
23537
23541
|
"app-schema": e.appSchema,
|
|
23538
23542
|
"expires-after-schema": e.expiresAfterSchema,
|
|
@@ -23549,10 +23553,10 @@ const sC = (e, t) => {
|
|
|
23549
23553
|
_: 1
|
|
23550
23554
|
}, 8, ["dismiss-on-click-out", "show", "title"]));
|
|
23551
23555
|
}
|
|
23552
|
-
}),
|
|
23556
|
+
}), AC = { className: "table-actions" }, RC = {
|
|
23553
23557
|
name: "InvitationTable"
|
|
23554
|
-
},
|
|
23555
|
-
...
|
|
23558
|
+
}, tx = /* @__PURE__ */ Re({
|
|
23559
|
+
...RC,
|
|
23556
23560
|
props: {
|
|
23557
23561
|
appFilterOptions: {
|
|
23558
23562
|
default: () => [],
|
|
@@ -23874,12 +23878,12 @@ const sC = (e, t) => {
|
|
|
23874
23878
|
e.showInviteAction ? {
|
|
23875
23879
|
name: "toolbar",
|
|
23876
23880
|
fn: K(() => [
|
|
23877
|
-
ne("div",
|
|
23881
|
+
ne("div", AC, [
|
|
23878
23882
|
ue(m(la), {
|
|
23879
23883
|
label: m(i)("user.invitation.table.inviteUser"),
|
|
23880
23884
|
onClick: w[0] || (w[0] = (R) => s.value = !0)
|
|
23881
23885
|
}, {
|
|
23882
|
-
iconLeft: K(() => w[2] || (w[2] = [
|
|
23886
|
+
iconLeft: K(() => [...w[2] || (w[2] = [
|
|
23883
23887
|
ne("svg", {
|
|
23884
23888
|
height: "24",
|
|
23885
23889
|
viewBox: "0 0 24 24",
|
|
@@ -23891,7 +23895,7 @@ const sC = (e, t) => {
|
|
|
23891
23895
|
fill: "currentColor"
|
|
23892
23896
|
})
|
|
23893
23897
|
], -1)
|
|
23894
|
-
])),
|
|
23898
|
+
])]),
|
|
23895
23899
|
_: 1
|
|
23896
23900
|
}, 8, ["label"]),
|
|
23897
23901
|
ue(xv, {
|
|
@@ -23911,10 +23915,10 @@ const sC = (e, t) => {
|
|
|
23911
23915
|
]), 1040, ["id", "columns-data", "data", "data-action-menu", "empty-table-message", "initial-sorting", "is-server-table", "locale", "pagination-options", "persist-state", "persist-state-storage", "total-records", "visible-columns"]))
|
|
23912
23916
|
], 64));
|
|
23913
23917
|
}
|
|
23914
|
-
}),
|
|
23918
|
+
}), MC = {
|
|
23915
23919
|
name: "ResetPasswordModal"
|
|
23916
|
-
},
|
|
23917
|
-
...
|
|
23920
|
+
}, ax = /* @__PURE__ */ Re({
|
|
23921
|
+
...MC,
|
|
23918
23922
|
props: {
|
|
23919
23923
|
errorMessage: {
|
|
23920
23924
|
default: void 0,
|
|
@@ -23975,10 +23979,10 @@ const sC = (e, t) => {
|
|
|
23975
23979
|
_: 1
|
|
23976
23980
|
}, 8, ["show", "title"]));
|
|
23977
23981
|
}
|
|
23978
|
-
}),
|
|
23982
|
+
}), IC = {
|
|
23979
23983
|
name: "SignInUpMenu"
|
|
23980
|
-
},
|
|
23981
|
-
...
|
|
23984
|
+
}, CC = /* @__PURE__ */ Re({
|
|
23985
|
+
...IC,
|
|
23982
23986
|
emits: ["select:menu"],
|
|
23983
23987
|
setup(e) {
|
|
23984
23988
|
const t = ot(), a = Ze(), { t: r } = We({ messages: a }), n = {
|
|
@@ -23993,10 +23997,10 @@ const sC = (e, t) => {
|
|
|
23993
23997
|
onChangeRoute: s[0] || (s[0] = (u) => i.$emit("select:menu"))
|
|
23994
23998
|
}, null, 8, ["routes"]));
|
|
23995
23999
|
}
|
|
23996
|
-
}),
|
|
24000
|
+
}), xC = {
|
|
23997
24001
|
name: "UserMenu"
|
|
23998
24002
|
}, qu = /* @__PURE__ */ Re({
|
|
23999
|
-
...
|
|
24003
|
+
...xC,
|
|
24000
24004
|
props: {
|
|
24001
24005
|
userMenuItems: {
|
|
24002
24006
|
type: Array,
|
|
@@ -24009,7 +24013,7 @@ const sC = (e, t) => {
|
|
|
24009
24013
|
const u = a.user?.logoutRedirectRoute || "login";
|
|
24010
24014
|
await l(), o.hasRoute(u) && o.push({ name: u }), i("select:menu");
|
|
24011
24015
|
};
|
|
24012
|
-
return (u, c) => m(n) ? (S(), j(
|
|
24016
|
+
return (u, c) => m(n) ? (S(), j(yC, {
|
|
24013
24017
|
key: 0,
|
|
24014
24018
|
class: "user-menu",
|
|
24015
24019
|
user: m(n),
|
|
@@ -24024,16 +24028,16 @@ const sC = (e, t) => {
|
|
|
24024
24028
|
]),
|
|
24025
24029
|
key: "0"
|
|
24026
24030
|
} : void 0
|
|
24027
|
-
]), 1032, ["user", "user-menu-items"])) : (S(), j(
|
|
24031
|
+
]), 1032, ["user", "user-menu-items"])) : (S(), j(CC, {
|
|
24028
24032
|
key: 1,
|
|
24029
24033
|
class: "user-menu",
|
|
24030
24034
|
"onSelect:menu": c[1] || (c[1] = (d) => u.$emit("select:menu"))
|
|
24031
24035
|
}));
|
|
24032
24036
|
}
|
|
24033
|
-
}),
|
|
24037
|
+
}), kC = { className: "table-actions" }, $C = {
|
|
24034
24038
|
name: "UsersTable"
|
|
24035
|
-
},
|
|
24036
|
-
|
|
24039
|
+
}, rx = /* @__PURE__ */ Re({
|
|
24040
|
+
...$C,
|
|
24037
24041
|
props: {
|
|
24038
24042
|
apps: {
|
|
24039
24043
|
default: () => [],
|
|
@@ -24322,7 +24326,7 @@ const sC = (e, t) => {
|
|
|
24322
24326
|
e.showInviteAction ? {
|
|
24323
24327
|
name: "toolbar",
|
|
24324
24328
|
fn: K(() => [
|
|
24325
|
-
ne("div",
|
|
24329
|
+
ne("div", kC, [
|
|
24326
24330
|
ue(m(la), {
|
|
24327
24331
|
label: m(o)("user.table.inviteUser"),
|
|
24328
24332
|
onClick: x[0] || (x[0] = (N) => p.value = !0)
|
|
@@ -24343,10 +24347,10 @@ const sC = (e, t) => {
|
|
|
24343
24347
|
} : void 0
|
|
24344
24348
|
]), 1040, ["id", "columns-data", "data", "data-action-menu", "empty-table-message", "initial-sorting", "is-loading", "is-server-table", "locale", "pagination-options", "persist-state", "persist-state-storage", "total-records", "visible-columns"]));
|
|
24345
24349
|
}
|
|
24346
|
-
}),
|
|
24350
|
+
}), PC = {
|
|
24347
24351
|
name: "BasicLayout"
|
|
24348
|
-
},
|
|
24349
|
-
|
|
24352
|
+
}, nx = /* @__PURE__ */ Re({
|
|
24353
|
+
...PC,
|
|
24350
24354
|
props: {
|
|
24351
24355
|
noFooter: Boolean,
|
|
24352
24356
|
noLocaleSwitcher: Boolean,
|
|
@@ -24415,10 +24419,10 @@ const sC = (e, t) => {
|
|
|
24415
24419
|
_: 3
|
|
24416
24420
|
}, 8, ["aria-expanded", "no-footer"]));
|
|
24417
24421
|
}
|
|
24418
|
-
}),
|
|
24422
|
+
}), DC = {
|
|
24419
24423
|
name: "SidebarHeaderLayout"
|
|
24420
|
-
},
|
|
24421
|
-
...
|
|
24424
|
+
}, lx = /* @__PURE__ */ Re({
|
|
24425
|
+
...DC,
|
|
24422
24426
|
props: {
|
|
24423
24427
|
collapsible: {
|
|
24424
24428
|
default: !0,
|
|
@@ -24514,10 +24518,10 @@ const sC = (e, t) => {
|
|
|
24514
24518
|
_: 3
|
|
24515
24519
|
}, 8, ["collapsible", "menu", "no-footer", "no-locale-switcher", "no-sidebar", "user-menu-location"]));
|
|
24516
24520
|
}
|
|
24517
|
-
}),
|
|
24521
|
+
}), EC = {
|
|
24518
24522
|
name: "SidebarOnlyLayout"
|
|
24519
|
-
},
|
|
24520
|
-
...
|
|
24523
|
+
}, ox = /* @__PURE__ */ Re({
|
|
24524
|
+
...EC,
|
|
24521
24525
|
props: {
|
|
24522
24526
|
noFooter: Boolean,
|
|
24523
24527
|
noLocaleSwitcher: Boolean,
|
|
@@ -24593,9 +24597,9 @@ const sC = (e, t) => {
|
|
|
24593
24597
|
}
|
|
24594
24598
|
}), kv = Symbol.for(
|
|
24595
24599
|
"dzangolab.vue-user.translations"
|
|
24596
|
-
), Ke = Dg(),
|
|
24600
|
+
), Ke = Dg(), sx = {
|
|
24597
24601
|
install: (e, t) => {
|
|
24598
|
-
if (
|
|
24602
|
+
if (cC(t.router, t.config?.user), t?.config?.user?.features?.authProvider !== "laravel-passport" && kh(t.config), t?.config?.user?.features?.signUp?.emailVerification) {
|
|
24599
24603
|
const { getVerificationStatus: r, logout: n } = Xe();
|
|
24600
24604
|
r().catch((l) => {
|
|
24601
24605
|
l.status === Xg && n();
|
|
@@ -24613,37 +24617,37 @@ const sC = (e, t) => {
|
|
|
24613
24617
|
);
|
|
24614
24618
|
export {
|
|
24615
24619
|
ev as AccountInfo,
|
|
24616
|
-
|
|
24617
|
-
|
|
24620
|
+
nx as BasicLayout,
|
|
24621
|
+
QC as ChangePassword,
|
|
24618
24622
|
tv as ChangePasswordForm,
|
|
24619
|
-
|
|
24620
|
-
|
|
24623
|
+
yC as DropdownUserMenu,
|
|
24624
|
+
_C as InvitationForm,
|
|
24621
24625
|
xv as InvitationModal,
|
|
24622
|
-
|
|
24626
|
+
tx as InvitationTable,
|
|
24623
24627
|
yR as LoginForm,
|
|
24624
24628
|
MR as PasswordResetForm,
|
|
24625
24629
|
NR as PasswordResetRequestForm,
|
|
24626
24630
|
av as ProfileForm,
|
|
24627
|
-
|
|
24631
|
+
ex as ProfilePage,
|
|
24628
24632
|
JR as ProfileTabsPage,
|
|
24629
|
-
|
|
24630
|
-
|
|
24631
|
-
|
|
24632
|
-
|
|
24633
|
+
ax as ResetPasswordModal,
|
|
24634
|
+
lx as SidebarHeaderLayout,
|
|
24635
|
+
ox as SidebarOnlyLayout,
|
|
24636
|
+
CC as SignInUpMenu,
|
|
24633
24637
|
Eu as SignupForm,
|
|
24634
24638
|
rR as TermsAndConditions,
|
|
24635
24639
|
UR as UpdateEmailForm,
|
|
24636
24640
|
HR as UpdateEmailModal,
|
|
24637
24641
|
qu as UserMenu,
|
|
24638
|
-
|
|
24642
|
+
rx as UsersTable,
|
|
24639
24643
|
ut as client,
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24644
|
+
YI as createRole,
|
|
24645
|
+
sx as default,
|
|
24646
|
+
WI as deleteRole,
|
|
24643
24647
|
Ke as emitter,
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24648
|
+
ZI as getPermissions,
|
|
24649
|
+
zI as getRoles,
|
|
24650
|
+
KI as updateRolePermissions,
|
|
24647
24651
|
Ze as useTranslations,
|
|
24648
24652
|
Xe as userStore
|
|
24649
24653
|
};
|