@realtek/core-theme 0.0.306 → 0.0.307
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-lib/index.cjs +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +229 -216
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -5241,7 +5241,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5241
5241
|
document.documentElement.classList.remove("listview-page-scroll-lock"), document.body.classList.remove("listview-page-scroll-lock");
|
|
5242
5242
|
};
|
|
5243
5243
|
}, [Ee]);
|
|
5244
|
-
let ot = pi(null), [st, ct] = L(0), lt = pi();
|
|
5244
|
+
let ot = pi(null), [st, ct] = L(0), lt = pi(), ut = pi("");
|
|
5245
5245
|
F(() => {
|
|
5246
5246
|
let e = ot.current;
|
|
5247
5247
|
if (!e || typeof ResizeObserver > "u") return;
|
|
@@ -5251,36 +5251,36 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5251
5251
|
});
|
|
5252
5252
|
return t.observe(e), () => t.disconnect();
|
|
5253
5253
|
}, []);
|
|
5254
|
-
let
|
|
5255
|
-
let n =
|
|
5254
|
+
let dt = (e, t) => String(qp(e, t, p)), ft = (e, t) => String(dt(e, t)) === String(de ?? ""), pt = (e, t) => {
|
|
5255
|
+
let n = dt(e, t);
|
|
5256
5256
|
n && ue?.(e, n);
|
|
5257
|
-
},
|
|
5257
|
+
}, mt = (e, t) => {
|
|
5258
5258
|
Ge(e), qe(t), pe?.(e, t);
|
|
5259
|
-
}, [
|
|
5259
|
+
}, [ht, gt] = L(a), [_t, vt] = L(a.length), [yt, bt] = L([]), [xt, St] = L([]), [Ct, wt] = L(""), [Tt, Et] = L([]), [Dt, Ot] = L([]), [kt, At] = L(!1), [jt, Mt] = L(null), [Nt, Pt] = L(null), [Ft, It] = L(!1), Lt = !!(te || M || ne), Rt = Lt ? a : ht, zt = Lt ? A ?? 0 : _t, Bt = Lt ? T : xt, Vt = I(() => Rt.some((e) => Vf(e)), [Rt]), Ht = I(() => Bt.some((e) => Bf(e)), [Bt]), Ut = Vt || Ht ? "card" : se, Wt = n.length > 0 ? n : Tt, Gt = r.length > 0 ? r : Dt, Kt = I(() => nm(Wt), [Wt]), qt = I(() => new Map(tm(Kt).map((e) => [e.key, e])), [Kt]), Jt = I(() => em(Kt, (e) => {
|
|
5260
5260
|
let t = Uu(e);
|
|
5261
5261
|
return t === "add" && !Oe || t === "edit" && !ke || t === "delete" && !Ae || !ge(e.permission, Te) || e.showInList === !1 ? !1 : e.allowedTabs ? e.allowedTabs.some((e) => Hp(e) === Hp(Pe)) : !0;
|
|
5262
5262
|
}), [
|
|
5263
|
-
|
|
5263
|
+
Kt,
|
|
5264
5264
|
Pe,
|
|
5265
5265
|
Oe,
|
|
5266
5266
|
ke,
|
|
5267
5267
|
Ae,
|
|
5268
5268
|
Te
|
|
5269
|
-
]),
|
|
5269
|
+
]), Yt = I(() => em(Jt, (e) => (We.length === 1 || e.allowMultiple || e.danger) && rm(e, Ke) && !ad(e.key, Ke, Gt, Pe)), [
|
|
5270
5270
|
Pe,
|
|
5271
|
-
|
|
5271
|
+
Gt,
|
|
5272
5272
|
We.length,
|
|
5273
5273
|
Ke,
|
|
5274
|
-
|
|
5275
|
-
]),
|
|
5274
|
+
Jt
|
|
5275
|
+
]), Xt = typeof e == "string" ? e.trim().length > 0 : !!e, Zt = Xt ? `/${Te}-create${le ? `?action=${encodeURIComponent(le)}` : ""}` : "";
|
|
5276
5276
|
F(() => {
|
|
5277
|
-
|
|
5277
|
+
Xt && !De && Ce("/", { replace: !0 });
|
|
5278
5278
|
}, [
|
|
5279
5279
|
De,
|
|
5280
|
-
|
|
5280
|
+
Xt,
|
|
5281
5281
|
Ce
|
|
5282
5282
|
]);
|
|
5283
|
-
let
|
|
5283
|
+
let Qt = (e, { replace: t = !1 } = {}) => {
|
|
5284
5284
|
let n = new URLSearchParams(Me);
|
|
5285
5285
|
um(n);
|
|
5286
5286
|
let r = [n.toString(), e > 1 ? `p${e}` : ""].filter(Boolean).join("&");
|
|
@@ -5288,22 +5288,22 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5288
5288
|
pathname: we.pathname,
|
|
5289
5289
|
search: r ? `?${r}` : ""
|
|
5290
5290
|
}, { replace: t });
|
|
5291
|
-
},
|
|
5291
|
+
}, $t = (e, t) => {
|
|
5292
5292
|
Ze((t) => ({
|
|
5293
5293
|
...t,
|
|
5294
5294
|
current: e
|
|
5295
|
-
})),
|
|
5296
|
-
},
|
|
5297
|
-
|
|
5298
|
-
}, { config:
|
|
5295
|
+
})), Qt(e, t);
|
|
5296
|
+
}, en = () => {
|
|
5297
|
+
$t(1, { replace: !0 });
|
|
5298
|
+
}, { config: tn, loading: nn, error: rn } = ju(!Lt && Xt ? e : null), an = ui((e) => {
|
|
5299
5299
|
let t = Qe.sort === e, n = im(Qe.sortDir, t), r = n ? String(e) : "";
|
|
5300
5300
|
$e({
|
|
5301
5301
|
sort: r,
|
|
5302
5302
|
sortDir: n
|
|
5303
|
-
}), typeof ne == "function" && ne(r, n),
|
|
5303
|
+
}), typeof ne == "function" && ne(r, n), en();
|
|
5304
5304
|
}, [
|
|
5305
5305
|
ne,
|
|
5306
|
-
|
|
5306
|
+
en,
|
|
5307
5307
|
Qe.sort,
|
|
5308
5308
|
Qe.sortDir
|
|
5309
5309
|
]);
|
|
@@ -5313,7 +5313,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5313
5313
|
current: Ne
|
|
5314
5314
|
});
|
|
5315
5315
|
}, [Ne]), F(() => {
|
|
5316
|
-
|
|
5316
|
+
Lt && Ze((e) => {
|
|
5317
5317
|
let t = cm(j ?? e.current), n = Number(ee) > 0 ? Number(ee) : e.pageSize;
|
|
5318
5318
|
return e.current === t && e.pageSize === n ? e : {
|
|
5319
5319
|
current: t,
|
|
@@ -5323,46 +5323,58 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5323
5323
|
}, [
|
|
5324
5324
|
j,
|
|
5325
5325
|
ee,
|
|
5326
|
-
|
|
5326
|
+
Lt
|
|
5327
5327
|
]);
|
|
5328
|
-
let
|
|
5328
|
+
let on = we.state?.refreshTimestamp;
|
|
5329
5329
|
F(() => {
|
|
5330
|
-
|
|
5331
|
-
}, [
|
|
5332
|
-
let
|
|
5333
|
-
let e = [...Array.isArray(S) ? S : [], ...
|
|
5330
|
+
on && (mt([], []), Ye((e) => e + 1));
|
|
5331
|
+
}, [on]);
|
|
5332
|
+
let sn = I(() => {
|
|
5333
|
+
let e = [...Array.isArray(S) ? S : [], ...yt], t = Wp(Pe);
|
|
5334
5334
|
return e.find((e, n) => Wp(Up(e, n)) === t);
|
|
5335
5335
|
}, [
|
|
5336
5336
|
Pe,
|
|
5337
|
-
|
|
5337
|
+
yt,
|
|
5338
5338
|
S
|
|
5339
|
-
]),
|
|
5339
|
+
]), cn = sn?.field ?? sn?.fieldName ?? sn?.filterField ?? sn?.dataIndex ?? Ct, ln = Gp(Pe) ? "" : Pe, un = !ln && !Gp(Pe) && Hp(cn).length > 0, dn = Re.trim().length >= 3, fn = dn ? Re.trim() : "", pn = He.some((e) => e.field), mn = sm({
|
|
5340
5340
|
moduleName: e,
|
|
5341
|
-
activeTabScope:
|
|
5341
|
+
activeTabScope: ln,
|
|
5342
5342
|
pageSize: Xe.pageSize,
|
|
5343
5343
|
sort: Qe.sort,
|
|
5344
5344
|
sortDir: Qe.sortDir,
|
|
5345
5345
|
queryParams: je
|
|
5346
|
-
}),
|
|
5346
|
+
}), hn = Xe.current === 1 && Nt?.key === mn, gn = Number(Nt?.total), _n = dn ? Number.isFinite(gn) && gn > 0 ? gn : _t : 0;
|
|
5347
5347
|
F(() => {
|
|
5348
|
-
if (
|
|
5349
|
-
if (!
|
|
5350
|
-
|
|
5348
|
+
if (Lt) return;
|
|
5349
|
+
if (!Xt) {
|
|
5350
|
+
gt([]), vt(0), bt([]), St([]), wt(""), Et([]), Ot([]), Mt(null);
|
|
5351
|
+
return;
|
|
5352
|
+
}
|
|
5353
|
+
let t = Wp(ln);
|
|
5354
|
+
if (ut.current && ut.current === t) {
|
|
5355
|
+
ut.current = "";
|
|
5351
5356
|
return;
|
|
5352
5357
|
}
|
|
5353
|
-
let
|
|
5354
|
-
return
|
|
5355
|
-
scope:
|
|
5358
|
+
let n = !1, r = dn && _n > Xe.pageSize, i = r ? _n : Xe.pageSize, a = r ? 0 : (Xe.current - 1) * Xe.pageSize;
|
|
5359
|
+
return At(!(!dn && !pn && Xe.current === 1 && hn)), Mt(null), _e(e, i, a, {
|
|
5360
|
+
scope: ln,
|
|
5356
5361
|
sort: Qe.sort,
|
|
5357
5362
|
sortDir: Qe.sortDir,
|
|
5358
|
-
search:
|
|
5363
|
+
search: fn,
|
|
5359
5364
|
filters: He,
|
|
5360
5365
|
queryParams: je
|
|
5361
|
-
}).then((
|
|
5362
|
-
if (
|
|
5363
|
-
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ve(
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
+
}).then((t) => {
|
|
5367
|
+
if (n) return;
|
|
5368
|
+
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ve(t, e), u = !me && Gp(Pe) && Array.isArray(a) && a.length > 0 && !a.some((e, t) => Gp(Up(e, t))) ? Up(a[0], 0) : "", d = sm({
|
|
5369
|
+
moduleName: e,
|
|
5370
|
+
activeTabScope: u ? String(u) : ln,
|
|
5371
|
+
pageSize: Xe.pageSize,
|
|
5372
|
+
sort: Qe.sort,
|
|
5373
|
+
sortDir: Qe.sortDir,
|
|
5374
|
+
queryParams: je
|
|
5375
|
+
});
|
|
5376
|
+
gt(r), vt(i), bt(a), St(o), wt(s), Et(c), Ot(l), u && (ut.current = Wp(u), Fe((e) => Wp(e) === Wp(u) ? e : String(u))), !dn && !pn && Xe.current === 1 && Pt({
|
|
5377
|
+
key: d,
|
|
5366
5378
|
rows: r,
|
|
5367
5379
|
total: i,
|
|
5368
5380
|
tabs: a,
|
|
@@ -5372,34 +5384,35 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5372
5384
|
actionRules: l
|
|
5373
5385
|
});
|
|
5374
5386
|
}).catch((e) => {
|
|
5375
|
-
|
|
5387
|
+
n || (gt([]), vt(0), bt([]), St([]), wt(""), Et([]), Ot([]), Mt(e.message), Xt && q.error("Invalid module name or data could not be loaded."));
|
|
5376
5388
|
}).finally(() => {
|
|
5377
|
-
|
|
5389
|
+
n || At(!1);
|
|
5378
5390
|
}), () => {
|
|
5379
|
-
|
|
5391
|
+
n = !0;
|
|
5380
5392
|
};
|
|
5381
5393
|
}, [
|
|
5382
|
-
|
|
5383
|
-
|
|
5394
|
+
fn,
|
|
5395
|
+
Pe,
|
|
5396
|
+
ln,
|
|
5384
5397
|
He,
|
|
5385
|
-
pn,
|
|
5386
5398
|
_e,
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5399
|
+
pn,
|
|
5400
|
+
dn,
|
|
5401
|
+
Xt,
|
|
5402
|
+
Lt,
|
|
5391
5403
|
e,
|
|
5392
|
-
gt,
|
|
5393
5404
|
Xe.current,
|
|
5394
5405
|
Xe.pageSize,
|
|
5395
5406
|
Je,
|
|
5396
5407
|
ve,
|
|
5408
|
+
_n,
|
|
5409
|
+
me,
|
|
5397
5410
|
Qe.sort,
|
|
5398
5411
|
Qe.sortDir,
|
|
5399
5412
|
je
|
|
5400
5413
|
]);
|
|
5401
|
-
let
|
|
5402
|
-
let e =
|
|
5414
|
+
let vn = I(() => {
|
|
5415
|
+
let e = Lt && Array.isArray(T) && T.length, t = !Lt && Array.isArray(xt) && xt.length, n = !rn && Array.isArray(tn) && tn.length, r = e ? T : t ? xt : n ? tn : [], i = new Map(xt.map((e) => [Mf(e), e]).filter(([e]) => e)), a = r.map((e) => {
|
|
5403
5416
|
let t = Mf(e), n = i.get(t) ?? {}, r = t && E && typeof E == "object" ? E[t] : null, a = r?.renderConfig ? {
|
|
5404
5417
|
...n.renderConfig ?? e.renderConfig ?? {},
|
|
5405
5418
|
...r.renderConfig
|
|
@@ -5424,46 +5437,46 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5424
5437
|
}).filter(Boolean);
|
|
5425
5438
|
return yp([...a, ...o]);
|
|
5426
5439
|
}, [
|
|
5427
|
-
|
|
5428
|
-
|
|
5440
|
+
tn,
|
|
5441
|
+
rn,
|
|
5429
5442
|
T,
|
|
5430
5443
|
D,
|
|
5431
5444
|
E,
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
]),
|
|
5445
|
+
Lt,
|
|
5446
|
+
xt
|
|
5447
|
+
]), yn = I(() => vn.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible == "string" ? e.isVisible.toLowerCase() === "true" : !0).map((e) => ({
|
|
5435
5448
|
key: e.key,
|
|
5436
5449
|
label: e.label
|
|
5437
|
-
})), [
|
|
5438
|
-
let e = Ie.toLowerCase(), t =
|
|
5450
|
+
})), [vn]), bn = yn.map((e) => e.key), xn = et.filter((e) => bn.includes(e)), Sn = xn.length ? xn : yn.slice(0, be).map((e) => e.key), Cn = Math.min(be, yn.length), wn = Sn.length > be, Tn = I(() => vn.filter((e) => !e.cardHidden && (e.tableHidden || Sn.includes(e.key))), [vn, Sn]), Dn = I(() => {
|
|
5451
|
+
let e = Ie.toLowerCase(), t = Rt, n = un ? t.filter((e) => Kp(e, Pe, sn, vn, cn)) : t, r = N.length ? vn.filter((e) => N.includes(e.key)) : vn;
|
|
5439
5452
|
return !e || e.length < 3 ? n : n.filter((t) => r.some((n) => String(Hf(t, n.key)).toLowerCase().includes(e) || Tp(n).some((n) => String(Hf(t, n)).toLowerCase().includes(e))));
|
|
5440
5453
|
}, [
|
|
5441
5454
|
Pe,
|
|
5442
|
-
on,
|
|
5443
5455
|
sn,
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5456
|
+
cn,
|
|
5457
|
+
un,
|
|
5458
|
+
Rt,
|
|
5459
|
+
vn,
|
|
5447
5460
|
Ie,
|
|
5448
5461
|
N
|
|
5449
|
-
]),
|
|
5450
|
-
if (!
|
|
5462
|
+
]), On = I(() => {
|
|
5463
|
+
if (!dn) return Dn;
|
|
5451
5464
|
let e = (Xe.current - 1) * Xe.pageSize;
|
|
5452
|
-
return
|
|
5465
|
+
return Dn.slice(e, e + Xe.pageSize);
|
|
5453
5466
|
}, [
|
|
5454
|
-
|
|
5455
|
-
|
|
5467
|
+
Dn,
|
|
5468
|
+
dn,
|
|
5456
5469
|
Xe.current,
|
|
5457
5470
|
Xe.pageSize
|
|
5458
|
-
]),
|
|
5459
|
-
let t = Array.isArray(S) ? S : [], n = t.length ? t :
|
|
5471
|
+
]), kn = dn ? Dn.length : zt, An = Re.trim().length >= 3, jn = String(Dn.length).padStart(2, "0"), Mn = zt > 0 || Rt.length > 0, Nn = Xt ? jt ? "Invalid module name or data could not be loaded." : rn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Pn = I(() => !C || typeof C != "object" ? null : Object.entries(C).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [C]), Fn = I(() => {
|
|
5472
|
+
let t = Array.isArray(S) ? S : [], n = t.length ? t : yt.length ? yt : [{
|
|
5460
5473
|
key: "all",
|
|
5461
5474
|
title: e ?? "List",
|
|
5462
|
-
count:
|
|
5475
|
+
count: kn
|
|
5463
5476
|
}];
|
|
5464
|
-
return !
|
|
5477
|
+
return !Pn || !Object.keys(Pn).length ? n : n.map((e, t) => {
|
|
5465
5478
|
if (!e || typeof e != "object") return e;
|
|
5466
|
-
let n = Up(e, t), r =
|
|
5479
|
+
let n = Up(e, t), r = Pn[String(n)];
|
|
5467
5480
|
return r ? {
|
|
5468
5481
|
...e,
|
|
5469
5482
|
title: r
|
|
@@ -5471,37 +5484,37 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5471
5484
|
});
|
|
5472
5485
|
}, [
|
|
5473
5486
|
e,
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5487
|
+
yt,
|
|
5488
|
+
Pn,
|
|
5489
|
+
kn,
|
|
5477
5490
|
S
|
|
5478
5491
|
]);
|
|
5479
5492
|
F(() => {
|
|
5480
|
-
if (!
|
|
5493
|
+
if (!Fn.length) return;
|
|
5481
5494
|
let e = Wp(Pe);
|
|
5482
|
-
if (!
|
|
5483
|
-
let e = Up(
|
|
5495
|
+
if (!Fn.some((t, n) => Wp(Up(t, n)) === e)) {
|
|
5496
|
+
let e = Up(Fn[0], 0);
|
|
5484
5497
|
e && Fe(String(e));
|
|
5485
5498
|
}
|
|
5486
|
-
}, [Pe,
|
|
5487
|
-
if (me === void 0 || !
|
|
5499
|
+
}, [Pe, Fn]), F(() => {
|
|
5500
|
+
if (me === void 0 || !Fn.length || me === lt.current) return;
|
|
5488
5501
|
lt.current = me;
|
|
5489
|
-
let e =
|
|
5502
|
+
let e = Fn.find((e, t) => Wp(Up(e, t)) === Wp(me)), t = e ? String(Up(e, Fn.indexOf(e))) : "";
|
|
5490
5503
|
t && Fe((e) => t === e ? e : t);
|
|
5491
|
-
}, [
|
|
5492
|
-
let
|
|
5504
|
+
}, [Fn, me]);
|
|
5505
|
+
let In = (e) => {
|
|
5493
5506
|
Ce("/popup/preview", { state: {
|
|
5494
5507
|
background: we,
|
|
5495
5508
|
moduleName: Te,
|
|
5496
5509
|
record: e,
|
|
5497
|
-
fields:
|
|
5510
|
+
fields: vn.map((e) => {
|
|
5498
5511
|
let t = {};
|
|
5499
5512
|
return Object.entries(e).forEach(([e, n]) => {
|
|
5500
5513
|
typeof n != "function" && (t[e] = n);
|
|
5501
5514
|
}), t;
|
|
5502
5515
|
})
|
|
5503
5516
|
} });
|
|
5504
|
-
},
|
|
5517
|
+
}, Ln = (e, t, n = {}) => {
|
|
5505
5518
|
let r = tp(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
|
|
5506
5519
|
Ce(i, { state: {
|
|
5507
5520
|
background: we,
|
|
@@ -5522,7 +5535,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5522
5535
|
requireJobId: n.requireJobId,
|
|
5523
5536
|
...n.popupState
|
|
5524
5537
|
} });
|
|
5525
|
-
},
|
|
5538
|
+
}, Rn = I(() => {
|
|
5526
5539
|
let e = {
|
|
5527
5540
|
dataIndex: "icons",
|
|
5528
5541
|
key: "icons",
|
|
@@ -5536,7 +5549,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5536
5549
|
type: "button",
|
|
5537
5550
|
className: "job-row-eye-button",
|
|
5538
5551
|
"aria-label": "Preview job",
|
|
5539
|
-
onClick: () =>
|
|
5552
|
+
onClick: () => In(t),
|
|
5540
5553
|
children: /* @__PURE__ */ Y("img", {
|
|
5541
5554
|
src: Of,
|
|
5542
5555
|
alt: "",
|
|
@@ -5547,29 +5560,29 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5547
5560
|
children: /* @__PURE__ */ Y(no, { className: "job-row-linkedin-icon" })
|
|
5548
5561
|
})]
|
|
5549
5562
|
})
|
|
5550
|
-
}, t =
|
|
5563
|
+
}, t = vn.filter((e) => Sn.includes(e.key)).map((e, t) => {
|
|
5551
5564
|
let n = Qe.sort === e.key ? Qe.sortDir : "";
|
|
5552
5565
|
return {
|
|
5553
5566
|
title: om({
|
|
5554
5567
|
label: e.label,
|
|
5555
5568
|
sortDir: n,
|
|
5556
|
-
sortable:
|
|
5557
|
-
onSort: () =>
|
|
5569
|
+
sortable: Mn,
|
|
5570
|
+
onSort: () => an(e.key)
|
|
5558
5571
|
}),
|
|
5559
5572
|
dataIndex: e.key,
|
|
5560
5573
|
key: e.key,
|
|
5561
5574
|
fixed: t === 0 ? "left" : void 0,
|
|
5562
5575
|
ellipsis: { showTitle: !1 },
|
|
5563
|
-
width: Vp(e,
|
|
5564
|
-
render: (t, n) => Np(e, n, Re,
|
|
5576
|
+
width: Vp(e, On),
|
|
5577
|
+
render: (t, n) => Np(e, n, Re, Ln, {
|
|
5565
5578
|
canAdd: Oe,
|
|
5566
5579
|
canEdit: ke,
|
|
5567
5580
|
canDelete: Ae
|
|
5568
|
-
},
|
|
5581
|
+
}, Gt, ln)
|
|
5569
5582
|
};
|
|
5570
5583
|
});
|
|
5571
|
-
if (!(
|
|
5572
|
-
let n = e.width + (
|
|
5584
|
+
if (!(wn || Lt) && st > 0 && t.length > 0) {
|
|
5585
|
+
let n = e.width + (Mn && P === "checkbox" ? 48 : 0) + Bp, r = t.reduce((e, t) => e + t.width, 0), i = st - n - r;
|
|
5573
5586
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
5574
5587
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
5575
5588
|
});
|
|
@@ -5581,35 +5594,35 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5581
5594
|
Ae,
|
|
5582
5595
|
ke,
|
|
5583
5596
|
Re,
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5597
|
+
Gt,
|
|
5598
|
+
an,
|
|
5599
|
+
wn,
|
|
5600
|
+
Mn,
|
|
5601
|
+
Lt,
|
|
5589
5602
|
we,
|
|
5590
5603
|
e,
|
|
5591
5604
|
Ce,
|
|
5592
|
-
|
|
5593
|
-
|
|
5605
|
+
vn,
|
|
5606
|
+
On,
|
|
5594
5607
|
P,
|
|
5595
5608
|
Qe.sort,
|
|
5596
5609
|
Qe.sortDir,
|
|
5597
5610
|
st,
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
]),
|
|
5601
|
-
let t =
|
|
5602
|
-
if (Fe(n), Ge([]), qe([]),
|
|
5611
|
+
Jt,
|
|
5612
|
+
Sn
|
|
5613
|
+
]), zn = ui((e) => {
|
|
5614
|
+
let t = Fn.find((t, n) => Wp(Up(t, n)) === Wp(e)), n = String(t ? Up(t, Fn.indexOf(t)) : e);
|
|
5615
|
+
if (Fe(n), Ge([]), qe([]), en(), typeof he == "function") {
|
|
5603
5616
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
5604
5617
|
lt.current = e, he(e);
|
|
5605
5618
|
}
|
|
5606
5619
|
}, [
|
|
5607
5620
|
he,
|
|
5608
|
-
|
|
5609
|
-
|
|
5621
|
+
Fn,
|
|
5622
|
+
en
|
|
5610
5623
|
]);
|
|
5611
|
-
function
|
|
5612
|
-
let r =
|
|
5624
|
+
function Bn(e, t, n) {
|
|
5625
|
+
let r = qt.get(String(e));
|
|
5613
5626
|
if (r && r.actionType !== "group") {
|
|
5614
5627
|
if (typeof u == "function" && u({
|
|
5615
5628
|
key: r.key,
|
|
@@ -5673,16 +5686,16 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5673
5686
|
}
|
|
5674
5687
|
}
|
|
5675
5688
|
}
|
|
5676
|
-
function
|
|
5677
|
-
let t = tm(
|
|
5678
|
-
t && $p(t, Ke, Pe) ||
|
|
5689
|
+
function Vn({ key: e }) {
|
|
5690
|
+
let t = tm(Yt).find((t) => String(t.key) === String(e));
|
|
5691
|
+
t && $p(t, Ke, Pe) || Bn(e, We, Ke);
|
|
5679
5692
|
}
|
|
5680
|
-
let
|
|
5693
|
+
let Hn = Sn.length === yn.length, Un = Sn.length > 0 && !Hn, Wn = (e, t) => {
|
|
5681
5694
|
tt((n) => {
|
|
5682
|
-
let r =
|
|
5683
|
-
return t ? i.includes(e) ? i : [...i, e] : i.length <=
|
|
5695
|
+
let r = yn.slice(0, be).map((e) => e.key), i = n.length ? n : r;
|
|
5696
|
+
return t ? i.includes(e) ? i : [...i, e] : i.length <= Cn ? i : i.filter((t) => t !== e);
|
|
5684
5697
|
});
|
|
5685
|
-
},
|
|
5698
|
+
}, Gn = () => {
|
|
5686
5699
|
if (typeof d == "function") {
|
|
5687
5700
|
d();
|
|
5688
5701
|
return;
|
|
@@ -5691,57 +5704,57 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5691
5704
|
Ce(_);
|
|
5692
5705
|
return;
|
|
5693
5706
|
}
|
|
5694
|
-
|
|
5695
|
-
},
|
|
5707
|
+
It(!0);
|
|
5708
|
+
}, Kn = () => {
|
|
5696
5709
|
x && Ce(x);
|
|
5697
5710
|
};
|
|
5698
5711
|
F(() => {
|
|
5699
|
-
if (!
|
|
5712
|
+
if (!Ft) return;
|
|
5700
5713
|
let e = (e) => {
|
|
5701
|
-
e.key === "Escape" &&
|
|
5714
|
+
e.key === "Escape" && It(!1);
|
|
5702
5715
|
};
|
|
5703
5716
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
5704
|
-
}, [
|
|
5705
|
-
let
|
|
5706
|
-
|
|
5707
|
-
},
|
|
5717
|
+
}, [Ft]);
|
|
5718
|
+
let qn = () => {
|
|
5719
|
+
hn && (gt(Nt.rows), vt(Nt.total), bt(Nt.tabs), St(Nt.fields), wt(Nt.tabField), Et(Nt.actions ?? []), Ot(Nt.actionRules ?? []), Mt(null), At(!1));
|
|
5720
|
+
}, Jn = (e) => {
|
|
5708
5721
|
let t = e.target.value, n = t.trim().length < 3, r = He.some((e) => e.field);
|
|
5709
|
-
n && (ze(""), r ||
|
|
5710
|
-
},
|
|
5722
|
+
n && (ze(""), r || qn()), Le(t), en();
|
|
5723
|
+
}, Yn = () => {
|
|
5711
5724
|
let e = Ie.trim();
|
|
5712
|
-
e.length >= 3 && (ze(e),
|
|
5713
|
-
},
|
|
5714
|
-
|
|
5725
|
+
e.length >= 3 && (ze(e), en());
|
|
5726
|
+
}, Xn = () => {
|
|
5727
|
+
qn(), Ue([]), mt([], []), en();
|
|
5715
5728
|
};
|
|
5716
5729
|
F(() => {
|
|
5717
|
-
|
|
5730
|
+
Ut === "card" && (at([]), mt([], []));
|
|
5718
5731
|
}, [
|
|
5719
5732
|
Xe.current,
|
|
5720
5733
|
Xe.pageSize,
|
|
5721
5734
|
Pe,
|
|
5722
|
-
|
|
5735
|
+
Ut
|
|
5723
5736
|
]);
|
|
5724
|
-
let
|
|
5737
|
+
let Zn = (e) => {
|
|
5725
5738
|
at((t) => {
|
|
5726
5739
|
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
|
|
5727
|
-
return
|
|
5740
|
+
return mt(n, On.filter((e, t) => n.includes(String(qp(e, t, p))))), n;
|
|
5728
5741
|
});
|
|
5729
|
-
},
|
|
5742
|
+
}, Qn = /* @__PURE__ */ X("div", {
|
|
5730
5743
|
className: "column-visibility-menu",
|
|
5731
5744
|
onClick: (e) => e.stopPropagation(),
|
|
5732
5745
|
children: [/* @__PURE__ */ Y(bi, {
|
|
5733
|
-
checked:
|
|
5734
|
-
indeterminate:
|
|
5746
|
+
checked: Hn,
|
|
5747
|
+
indeterminate: Un,
|
|
5735
5748
|
onChange: (e) => {
|
|
5736
|
-
tt(e.target.checked ?
|
|
5749
|
+
tt(e.target.checked ? yn.map((e) => e.key) : yn.slice(0, be).map((e) => e.key));
|
|
5737
5750
|
},
|
|
5738
5751
|
children: "Select All"
|
|
5739
5752
|
}), /* @__PURE__ */ Y("div", {
|
|
5740
5753
|
className: "column-visibility-menu__list",
|
|
5741
|
-
children:
|
|
5742
|
-
checked:
|
|
5743
|
-
disabled:
|
|
5744
|
-
onChange: (t) =>
|
|
5754
|
+
children: yn.map((e) => /* @__PURE__ */ Y(bi, {
|
|
5755
|
+
checked: Sn.includes(e.key),
|
|
5756
|
+
disabled: Sn.includes(e.key) && Sn.length <= Cn,
|
|
5757
|
+
onChange: (t) => Wn(e.key, t.target.checked),
|
|
5745
5758
|
children: e.label
|
|
5746
5759
|
}, e.key))
|
|
5747
5760
|
})]
|
|
@@ -5760,34 +5773,34 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5760
5773
|
justify: "space-between",
|
|
5761
5774
|
children: [/* @__PURE__ */ Y(Os, {
|
|
5762
5775
|
activeKey: Pe,
|
|
5763
|
-
tabs:
|
|
5764
|
-
onChange:
|
|
5776
|
+
tabs: Fn,
|
|
5777
|
+
onChange: zn
|
|
5765
5778
|
}), /* @__PURE__ */ X(Di, {
|
|
5766
5779
|
align: "center",
|
|
5767
5780
|
gap: 8,
|
|
5768
5781
|
children: [
|
|
5769
5782
|
re,
|
|
5770
|
-
|
|
5783
|
+
Mn && /* @__PURE__ */ Y(V, {
|
|
5771
5784
|
prefix: /* @__PURE__ */ Y(Eo, { className: "job-search-icon" }),
|
|
5772
5785
|
placeholder: ae,
|
|
5773
5786
|
value: Ie,
|
|
5774
|
-
onChange:
|
|
5775
|
-
onPressEnter:
|
|
5787
|
+
onChange: Jn,
|
|
5788
|
+
onPressEnter: Yn,
|
|
5776
5789
|
allowClear: !0,
|
|
5777
5790
|
className: "job-search-input"
|
|
5778
5791
|
}),
|
|
5779
|
-
!
|
|
5792
|
+
!Lt && Oe && xe && /* @__PURE__ */ Y(K, {
|
|
5780
5793
|
title: "Add",
|
|
5781
5794
|
children: /* @__PURE__ */ Y(R, {
|
|
5782
5795
|
"aria-label": "Add",
|
|
5783
5796
|
className: "job-toolbar-icon-button",
|
|
5784
5797
|
icon: /* @__PURE__ */ Y(ho, {}),
|
|
5785
5798
|
onClick: () => {
|
|
5786
|
-
|
|
5799
|
+
Zt && Ce(Zt);
|
|
5787
5800
|
}
|
|
5788
5801
|
})
|
|
5789
5802
|
}),
|
|
5790
|
-
|
|
5803
|
+
Mn && /* @__PURE__ */ Y(K, {
|
|
5791
5804
|
title: "Filter",
|
|
5792
5805
|
children: /* @__PURE__ */ Y(_i, {
|
|
5793
5806
|
count: He.filter((e) => e.field && mm(e)).length,
|
|
@@ -5801,25 +5814,25 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5801
5814
|
})
|
|
5802
5815
|
})
|
|
5803
5816
|
}),
|
|
5804
|
-
oe &&
|
|
5817
|
+
oe && Mn && /* @__PURE__ */ X(Di, {
|
|
5805
5818
|
align: "center",
|
|
5806
5819
|
gap: 6,
|
|
5807
5820
|
children: [/* @__PURE__ */ Y(K, {
|
|
5808
5821
|
title: "List View",
|
|
5809
5822
|
children: /* @__PURE__ */ Y(R, {
|
|
5810
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5823
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Ut === "list" ? " param-view-toggle-btn--active" : ""}`,
|
|
5811
5824
|
icon: /* @__PURE__ */ Y(Vo, {}),
|
|
5812
5825
|
onClick: () => {
|
|
5813
|
-
ce?.("list"), at([]),
|
|
5826
|
+
ce?.("list"), at([]), mt([], []);
|
|
5814
5827
|
}
|
|
5815
5828
|
})
|
|
5816
5829
|
}), /* @__PURE__ */ Y(K, {
|
|
5817
5830
|
title: "Card View",
|
|
5818
5831
|
children: /* @__PURE__ */ Y(R, {
|
|
5819
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5832
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Ut === "card" ? " param-view-toggle-btn--active" : ""}`,
|
|
5820
5833
|
icon: /* @__PURE__ */ Y(ta, {}),
|
|
5821
5834
|
onClick: () => {
|
|
5822
|
-
ce?.("card"), at([]),
|
|
5835
|
+
ce?.("card"), at([]), mt([], []);
|
|
5823
5836
|
}
|
|
5824
5837
|
})
|
|
5825
5838
|
})]
|
|
@@ -5827,20 +5840,20 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5827
5840
|
m && /* @__PURE__ */ Y(R, {
|
|
5828
5841
|
className: "job-summary-button",
|
|
5829
5842
|
type: "primary",
|
|
5830
|
-
onClick:
|
|
5843
|
+
onClick: Gn,
|
|
5831
5844
|
children: h
|
|
5832
5845
|
}),
|
|
5833
5846
|
v && x && /* @__PURE__ */ Y(R, {
|
|
5834
5847
|
className: "job-summary-button",
|
|
5835
5848
|
type: "primary",
|
|
5836
|
-
onClick:
|
|
5849
|
+
onClick: Kn,
|
|
5837
5850
|
children: b
|
|
5838
5851
|
})
|
|
5839
5852
|
]
|
|
5840
5853
|
})]
|
|
5841
5854
|
})
|
|
5842
5855
|
}),
|
|
5843
|
-
|
|
5856
|
+
Mn && /* @__PURE__ */ Y(J, { children: /* @__PURE__ */ Y(yi, {
|
|
5844
5857
|
className: "job-toolbar-card",
|
|
5845
5858
|
children: /* @__PURE__ */ X(Di, {
|
|
5846
5859
|
className: "p-flex",
|
|
@@ -5850,15 +5863,15 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5850
5863
|
align: "center",
|
|
5851
5864
|
gap: 3,
|
|
5852
5865
|
children: [
|
|
5853
|
-
|
|
5854
|
-
checked:
|
|
5855
|
-
indeterminate: it.length > 0 && it.length <
|
|
5866
|
+
Ut === "card" && /* @__PURE__ */ Y(bi, {
|
|
5867
|
+
checked: On.length > 0 && it.length >= On.length,
|
|
5868
|
+
indeterminate: it.length > 0 && it.length < On.length,
|
|
5856
5869
|
className: "param-card-view__select-all",
|
|
5857
5870
|
onChange: () => {
|
|
5858
|
-
if (it.length > 0) at([]),
|
|
5871
|
+
if (it.length > 0) at([]), mt([], []);
|
|
5859
5872
|
else {
|
|
5860
|
-
let e =
|
|
5861
|
-
at(e),
|
|
5873
|
+
let e = On.map((e, t) => String(qp(e, t, p)));
|
|
5874
|
+
at(e), mt(e, [...On]);
|
|
5862
5875
|
}
|
|
5863
5876
|
},
|
|
5864
5877
|
children: "Select All"
|
|
@@ -5867,7 +5880,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5867
5880
|
open: nt,
|
|
5868
5881
|
onOpenChange: rt,
|
|
5869
5882
|
trigger: ["click"],
|
|
5870
|
-
dropdownRender: () =>
|
|
5883
|
+
dropdownRender: () => Qn,
|
|
5871
5884
|
placement: "bottomLeft",
|
|
5872
5885
|
overlayClassName: "column-visibility-dropdown",
|
|
5873
5886
|
children: /* @__PURE__ */ Y(R, {
|
|
@@ -5883,10 +5896,10 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5883
5896
|
children: /* @__PURE__ */ Y(ka, { className: "job-actions-caret" })
|
|
5884
5897
|
})
|
|
5885
5898
|
}),
|
|
5886
|
-
|
|
5899
|
+
Yt.length > 0 && We.length > 0 && /* @__PURE__ */ Y(Ti, {
|
|
5887
5900
|
menu: {
|
|
5888
|
-
items:
|
|
5889
|
-
onClick:
|
|
5901
|
+
items: Yt.map((e) => Qp(e, $p(e, Ke, Pe))),
|
|
5902
|
+
onClick: Vn
|
|
5890
5903
|
},
|
|
5891
5904
|
trigger: ["click"],
|
|
5892
5905
|
children: /* @__PURE__ */ X(R, {
|
|
@@ -5913,51 +5926,51 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5913
5926
|
]
|
|
5914
5927
|
})
|
|
5915
5928
|
]
|
|
5916
|
-
}),
|
|
5929
|
+
}), An && /* @__PURE__ */ X(Af, {
|
|
5917
5930
|
className: "job-search-results-count",
|
|
5918
5931
|
children: [
|
|
5919
5932
|
"Search Results (",
|
|
5920
|
-
|
|
5933
|
+
jn,
|
|
5921
5934
|
")"
|
|
5922
5935
|
]
|
|
5923
5936
|
})]
|
|
5924
5937
|
})
|
|
5925
5938
|
}) }),
|
|
5926
|
-
|
|
5939
|
+
pn && /* @__PURE__ */ Y(_m, {
|
|
5927
5940
|
filters: He,
|
|
5928
5941
|
onRemove: (e) => {
|
|
5929
|
-
Ue(He.filter((t, n) => n !== e)),
|
|
5942
|
+
Ue(He.filter((t, n) => n !== e)), en();
|
|
5930
5943
|
},
|
|
5931
|
-
onClearAll:
|
|
5944
|
+
onClearAll: Xn
|
|
5932
5945
|
}),
|
|
5933
5946
|
/* @__PURE__ */ Y("div", {
|
|
5934
5947
|
ref: ot,
|
|
5935
5948
|
className: "job-table-measure",
|
|
5936
5949
|
children: /* @__PURE__ */ Y(Hi, {
|
|
5937
|
-
spinning:
|
|
5938
|
-
children:
|
|
5950
|
+
spinning: Lt ? k : nn || kt,
|
|
5951
|
+
children: Ut === "card" ? On.length === 0 ? /* @__PURE__ */ Y(Ei, {
|
|
5939
5952
|
image: Ei.PRESENTED_IMAGE_SIMPLE,
|
|
5940
|
-
description:
|
|
5953
|
+
description: Nn,
|
|
5941
5954
|
className: "param-card-view__empty",
|
|
5942
|
-
children: !
|
|
5955
|
+
children: !Lt && Oe && xe && Zt && !jt && /* @__PURE__ */ Y(R, {
|
|
5943
5956
|
type: "primary",
|
|
5944
5957
|
icon: /* @__PURE__ */ Y(ho, {}),
|
|
5945
|
-
onClick: () => Ce(
|
|
5958
|
+
onClick: () => Ce(Zt),
|
|
5946
5959
|
children: "Add New"
|
|
5947
5960
|
})
|
|
5948
5961
|
}) : /* @__PURE__ */ Y("div", {
|
|
5949
5962
|
className: "param-card-view__grid",
|
|
5950
|
-
children:
|
|
5963
|
+
children: On.map((e, t) => {
|
|
5951
5964
|
let n = String(qp(e, t, p));
|
|
5952
5965
|
return /* @__PURE__ */ Y(pm, {
|
|
5953
5966
|
record: e,
|
|
5954
|
-
fields:
|
|
5955
|
-
selected: P === "checkbox" ? it.includes(n) :
|
|
5956
|
-
isControlled:
|
|
5957
|
-
onPreview: () =>
|
|
5958
|
-
onSelect: () =>
|
|
5959
|
-
onPopupAction:
|
|
5960
|
-
onRecordClick: ue ? () =>
|
|
5967
|
+
fields: Tn,
|
|
5968
|
+
selected: P === "checkbox" ? it.includes(n) : ft(e, t),
|
|
5969
|
+
isControlled: Lt,
|
|
5970
|
+
onPreview: () => In(e),
|
|
5971
|
+
onSelect: () => Zn(n),
|
|
5972
|
+
onPopupAction: Ln,
|
|
5973
|
+
onRecordClick: ue ? () => pt(e, t) : void 0,
|
|
5961
5974
|
selectionMode: P,
|
|
5962
5975
|
permissions: {
|
|
5963
5976
|
canAdd: Oe,
|
|
@@ -5967,70 +5980,70 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5967
5980
|
}, n);
|
|
5968
5981
|
})
|
|
5969
5982
|
}) : /* @__PURE__ */ Y(Gi, {
|
|
5970
|
-
rowSelection:
|
|
5983
|
+
rowSelection: Mn && P === "checkbox" ? {
|
|
5971
5984
|
type: "checkbox",
|
|
5972
5985
|
fixed: !0,
|
|
5973
5986
|
columnWidth: 48,
|
|
5974
5987
|
selectedRowKeys: We,
|
|
5975
5988
|
onChange: (e, t) => {
|
|
5976
|
-
|
|
5989
|
+
mt(e, t);
|
|
5977
5990
|
},
|
|
5978
5991
|
columnTitle: (() => {
|
|
5979
|
-
let e =
|
|
5992
|
+
let e = On.length, t = e > 0 && We.length >= e, n = We.length > 0 && !t;
|
|
5980
5993
|
return /* @__PURE__ */ Y(bi, {
|
|
5981
5994
|
checked: t,
|
|
5982
5995
|
indeterminate: n,
|
|
5983
5996
|
onChange: () => {
|
|
5984
|
-
n || t ?
|
|
5997
|
+
n || t ? mt([], []) : mt(On.map((e, t) => qp(e, t, p)), [...On]);
|
|
5985
5998
|
}
|
|
5986
5999
|
});
|
|
5987
6000
|
})()
|
|
5988
6001
|
} : void 0,
|
|
5989
|
-
columns:
|
|
5990
|
-
dataSource:
|
|
6002
|
+
columns: Rn,
|
|
6003
|
+
dataSource: On,
|
|
5991
6004
|
size: "middle",
|
|
5992
6005
|
tableLayout: "fixed",
|
|
5993
6006
|
scroll: {
|
|
5994
|
-
x:
|
|
6007
|
+
x: wn || Lt ? "max-content" : void 0,
|
|
5995
6008
|
y: "calc(100vh - 300px)"
|
|
5996
6009
|
},
|
|
5997
6010
|
pagination: !1,
|
|
5998
6011
|
locale: { emptyText: /* @__PURE__ */ Y(Ei, {
|
|
5999
6012
|
image: Ei.PRESENTED_IMAGE_SIMPLE,
|
|
6000
|
-
description:
|
|
6013
|
+
description: Nn
|
|
6001
6014
|
}) },
|
|
6002
6015
|
className: `${w} ${fe ? "list-view-table--compact" : ""}`.trim(),
|
|
6003
6016
|
onRow: ue ? (e, t) => ({
|
|
6004
6017
|
onClick: (n) => {
|
|
6005
|
-
Jp(n.target) ||
|
|
6018
|
+
Jp(n.target) || pt(e, t);
|
|
6006
6019
|
},
|
|
6007
|
-
"aria-selected":
|
|
6020
|
+
"aria-selected": ft(e, t)
|
|
6008
6021
|
}) : void 0,
|
|
6009
|
-
rowClassName: de == null ? void 0 : (e, t) =>
|
|
6022
|
+
rowClassName: de == null ? void 0 : (e, t) => ft(e, t) ? "list-view-row--active" : "",
|
|
6010
6023
|
rowKey: (e, t) => qp(e, t, p)
|
|
6011
6024
|
})
|
|
6012
6025
|
})
|
|
6013
6026
|
}),
|
|
6014
|
-
|
|
6027
|
+
Mn ? /* @__PURE__ */ Y(xc, {
|
|
6015
6028
|
current: Xe.current,
|
|
6016
6029
|
pageSize: Xe.pageSize,
|
|
6017
|
-
total:
|
|
6030
|
+
total: kn,
|
|
6018
6031
|
onChange: (e, t) => {
|
|
6019
|
-
if (
|
|
6032
|
+
if (Lt && typeof te == "function") {
|
|
6020
6033
|
te(e, t ?? Xe.pageSize);
|
|
6021
6034
|
return;
|
|
6022
6035
|
}
|
|
6023
|
-
|
|
6036
|
+
$t(e);
|
|
6024
6037
|
},
|
|
6025
6038
|
onPageSizeChange: (e) => {
|
|
6026
|
-
if (
|
|
6039
|
+
if (Lt && typeof M == "function") {
|
|
6027
6040
|
M(e);
|
|
6028
6041
|
return;
|
|
6029
6042
|
}
|
|
6030
6043
|
Ze({
|
|
6031
6044
|
current: 1,
|
|
6032
6045
|
pageSize: e
|
|
6033
|
-
}),
|
|
6046
|
+
}), Qt(1, { replace: !0 });
|
|
6034
6047
|
}
|
|
6035
6048
|
}) : void 0,
|
|
6036
6049
|
/* @__PURE__ */ Y(Df, {
|
|
@@ -6039,17 +6052,17 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6039
6052
|
filters: He,
|
|
6040
6053
|
onClose: () => Ve(!1),
|
|
6041
6054
|
onApply: ({ filters: e }) => {
|
|
6042
|
-
Ue(e),
|
|
6055
|
+
Ue(e), en();
|
|
6043
6056
|
},
|
|
6044
|
-
onReset:
|
|
6057
|
+
onReset: Xn
|
|
6045
6058
|
}),
|
|
6046
6059
|
/* @__PURE__ */ Y(hf, {
|
|
6047
6060
|
moduleName: Te,
|
|
6048
|
-
open:
|
|
6049
|
-
rows:
|
|
6050
|
-
tabs:
|
|
6051
|
-
total:
|
|
6052
|
-
onClose: () =>
|
|
6061
|
+
open: Ft,
|
|
6062
|
+
rows: ht,
|
|
6063
|
+
tabs: Fn,
|
|
6064
|
+
total: kn,
|
|
6065
|
+
onClose: () => It(!1)
|
|
6053
6066
|
})
|
|
6054
6067
|
]
|
|
6055
6068
|
});
|