@realtek/core-theme-live 0.0.345 → 0.0.346
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 +3 -3
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +207 -200
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -404,6 +404,7 @@ function zs(e, t) {
|
|
|
404
404
|
children: [/* @__PURE__ */ X("span", { children: Rs(r) }), Ls(i) && /* @__PURE__ */ X(ki, {
|
|
405
405
|
className: "dynamic-tabs-count",
|
|
406
406
|
count: i,
|
|
407
|
+
showZero: !0,
|
|
407
408
|
overflowCount: 2 ** 53 - 1
|
|
408
409
|
})]
|
|
409
410
|
})
|
|
@@ -5376,34 +5377,34 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5376
5377
|
n && ue?.(e, n);
|
|
5377
5378
|
}, bt = (e, t) => {
|
|
5378
5379
|
Ze(e), $e(t), me?.(e, t);
|
|
5379
|
-
}, [xt, St] = R(a), [Ct, wt] = R(a.length), [Tt, Et] = R([]), [Dt, Ot] = R([]), [kt, At] = R(""), [jt, Mt] = R([]), [Nt, Pt] = R([]), [Ft, It] = R(!1), [Lt, Rt] = R(
|
|
5380
|
+
}, [xt, St] = R(a), [Ct, wt] = R(a.length), [Tt, Et] = R([]), [Dt, Ot] = R([]), [kt, At] = R(""), [jt, Mt] = R([]), [Nt, Pt] = R([]), [Ft, It] = R(!1), [Lt, Rt] = R(!1), [zt, Bt] = R(null), [Vt, Ht] = R(null), [Ut, Wt] = R(!1), Gt = !!(te || N || P), Kt = Gt ? a : xt, qt = Gt ? j ?? 0 : Ct, Jt = Gt ? T : Dt, Yt = L(() => Kt.some((e) => ip(e)), [Kt]), Xt = L(() => Jt.some((e) => rp(e)), [Jt]), Zt = ce && (Yt || Xt) ? "card" : oe, Qt = n.length > 0 ? n : jt, $t = r.length > 0 ? r : Nt, en = L(() => ym(Qt), [Qt]), tn = L(() => new Map(vm(en).map((e) => [e.key, e])), [en]), nn = L(() => _m(en, (e) => {
|
|
5380
5381
|
let t = ad(e);
|
|
5381
5382
|
return t === "add" && !Ne || t === "edit" && !Pe || t === "delete" && !Fe || !ye(e.permission, Ee) || e.showInList === !1 ? !1 : !e.allowedTabs || e.allowedTabs.some((e) => am(e) === am(Be));
|
|
5382
5383
|
}), [
|
|
5383
|
-
|
|
5384
|
+
en,
|
|
5384
5385
|
Be,
|
|
5385
5386
|
Ne,
|
|
5386
5387
|
Pe,
|
|
5387
5388
|
Fe,
|
|
5388
5389
|
Ee
|
|
5389
|
-
]),
|
|
5390
|
+
]), rn = L(() => _m(nn, (e) => (Xe.length === 1 || e.allowMultiple || e.danger) && wm(e, Qe) && !(am(Ee) === "submissions" && bm(e) && Cm(Qe, De, ke)) && !xd(e.key, Qe, $t, Be)), [
|
|
5390
5391
|
Be,
|
|
5391
5392
|
Ee,
|
|
5392
|
-
|
|
5393
|
+
$t,
|
|
5393
5394
|
Xe.length,
|
|
5394
5395
|
Qe,
|
|
5395
5396
|
De,
|
|
5396
5397
|
ke,
|
|
5397
|
-
|
|
5398
|
-
]),
|
|
5398
|
+
nn
|
|
5399
|
+
]), an = typeof e == "string" ? e.trim().length > 0 : !!e, on = an ? `/${Ee}-create${le ? `?action=${encodeURIComponent(le)}` : ""}` : "";
|
|
5399
5400
|
I(() => {
|
|
5400
|
-
|
|
5401
|
+
an && !Me && we("/", { replace: !0 });
|
|
5401
5402
|
}, [
|
|
5402
5403
|
Me,
|
|
5403
|
-
|
|
5404
|
+
an,
|
|
5404
5405
|
we
|
|
5405
5406
|
]);
|
|
5406
|
-
let
|
|
5407
|
+
let sn = (e, { replace: t = !1 } = {}) => {
|
|
5407
5408
|
let n = new URLSearchParams(Re);
|
|
5408
5409
|
jm(n);
|
|
5409
5410
|
let r = [n.toString(), e > 1 ? `p${e}` : ""].filter(Boolean).join("&");
|
|
@@ -5411,22 +5412,22 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5411
5412
|
pathname: Te.pathname,
|
|
5412
5413
|
search: r ? `?${r}` : ""
|
|
5413
5414
|
}, { replace: t });
|
|
5414
|
-
},
|
|
5415
|
+
}, cn = (e, t) => {
|
|
5415
5416
|
rt((t) => ({
|
|
5416
5417
|
...t,
|
|
5417
5418
|
current: e
|
|
5418
|
-
})),
|
|
5419
|
-
},
|
|
5420
|
-
|
|
5421
|
-
}, { config:
|
|
5419
|
+
})), sn(e, t);
|
|
5420
|
+
}, ln = () => {
|
|
5421
|
+
cn(1, { replace: !0 });
|
|
5422
|
+
}, { config: un, loading: dn, error: fn } = qu(!Gt && an ? e : null), pn = xi((e) => {
|
|
5422
5423
|
let t = it.sort === e, n = Tm(it.sortDir, t), r = n ? String(e) : "";
|
|
5423
5424
|
at({
|
|
5424
5425
|
sort: r,
|
|
5425
5426
|
sortDir: n
|
|
5426
|
-
}), typeof P == "function" && P(r, n),
|
|
5427
|
+
}), typeof P == "function" && P(r, n), ln();
|
|
5427
5428
|
}, [
|
|
5428
5429
|
P,
|
|
5429
|
-
|
|
5430
|
+
ln,
|
|
5430
5431
|
it.sort,
|
|
5431
5432
|
it.sortDir
|
|
5432
5433
|
]);
|
|
@@ -5436,7 +5437,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5436
5437
|
current: ze
|
|
5437
5438
|
});
|
|
5438
5439
|
}, [ze]), I(() => {
|
|
5439
|
-
|
|
5440
|
+
Gt && rt((e) => {
|
|
5440
5441
|
let t = km(M ?? e.current), n = Number(ee) > 0 ? Number(ee) : e.pageSize;
|
|
5441
5442
|
return e.current === t && e.pageSize === n ? e : {
|
|
5442
5443
|
current: t,
|
|
@@ -5446,57 +5447,57 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5446
5447
|
}, [
|
|
5447
5448
|
M,
|
|
5448
5449
|
ee,
|
|
5449
|
-
|
|
5450
|
+
Gt
|
|
5450
5451
|
]);
|
|
5451
|
-
let
|
|
5452
|
+
let mn = Te.state?.refreshTimestamp;
|
|
5452
5453
|
I(() => {
|
|
5453
|
-
|
|
5454
|
-
}, [
|
|
5455
|
-
let
|
|
5454
|
+
mn && (bt([], []), tt((e) => e + 1));
|
|
5455
|
+
}, [mn]);
|
|
5456
|
+
let hn = L(() => {
|
|
5456
5457
|
let e = [...Array.isArray(b) ? b : [], ...Tt], t = sm(Be);
|
|
5457
5458
|
return e.find((e, n) => sm(om(e, n)) === t);
|
|
5458
5459
|
}, [
|
|
5459
5460
|
Be,
|
|
5460
5461
|
Tt,
|
|
5461
5462
|
b
|
|
5462
|
-
]),
|
|
5463
|
+
]), gn = hn?.field ?? hn?.fieldName ?? hn?.filterField ?? hn?.dataIndex ?? kt, _n = cm(Be) ? "" : Be, vn = !_n && !cm(Be) && am(gn).length > 0, yn = We.trim().length >= 3, bn = yn ? We.trim() : "", xn = Je.some((e) => e.field), Sn = Om({
|
|
5463
5464
|
moduleName: e,
|
|
5464
|
-
activeTabScope:
|
|
5465
|
+
activeTabScope: _n,
|
|
5465
5466
|
pageSize: nt.pageSize,
|
|
5466
5467
|
sort: it.sort,
|
|
5467
5468
|
sortDir: it.sortDir,
|
|
5468
5469
|
queryParams: Le
|
|
5469
|
-
}),
|
|
5470
|
+
}), Cn = nt.current === 1 && Vt?.key === Sn, wn = Number(Vt?.total), Tn = yn ? Number.isFinite(wn) && wn > 0 ? wn : Ct : 0;
|
|
5470
5471
|
I(() => {
|
|
5471
|
-
if (
|
|
5472
|
-
if (!
|
|
5473
|
-
St([]), wt(0), Et([]), Ot([]), At(""), Mt([]), Pt([]),
|
|
5472
|
+
if (Gt) return;
|
|
5473
|
+
if (!an) {
|
|
5474
|
+
St([]), wt(0), Et([]), Ot([]), At(""), Mt([]), Pt([]), Bt(null);
|
|
5474
5475
|
return;
|
|
5475
5476
|
}
|
|
5476
|
-
let t = sm(
|
|
5477
|
+
let t = sm(_n);
|
|
5477
5478
|
if (gt.current && gt.current === t) {
|
|
5478
5479
|
gt.current = "";
|
|
5479
5480
|
return;
|
|
5480
5481
|
}
|
|
5481
|
-
let n = !1, r =
|
|
5482
|
-
return It(!(!
|
|
5483
|
-
scope:
|
|
5482
|
+
let n = !1, r = yn && Tn > nt.pageSize, i = r ? Tn : nt.pageSize, a = r ? 0 : (nt.current - 1) * nt.pageSize;
|
|
5483
|
+
return It(!(!yn && !xn && nt.current === 1 && Cn)), Bt(null), _e(e, i, a, {
|
|
5484
|
+
scope: _n,
|
|
5484
5485
|
sort: it.sort,
|
|
5485
5486
|
sortDir: it.sortDir,
|
|
5486
|
-
search:
|
|
5487
|
+
search: bn,
|
|
5487
5488
|
filters: Je,
|
|
5488
5489
|
queryParams: Le
|
|
5489
5490
|
}).then((t) => {
|
|
5490
5491
|
if (n) return;
|
|
5491
5492
|
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ve(t, e), u = !he && cm(Be) && Array.isArray(a) && a.length > 0 && !a.some((e, t) => cm(om(e, t))) ? om(a[0], 0) : "", d = Om({
|
|
5492
5493
|
moduleName: e,
|
|
5493
|
-
activeTabScope: u ? String(u) :
|
|
5494
|
+
activeTabScope: u ? String(u) : _n,
|
|
5494
5495
|
pageSize: nt.pageSize,
|
|
5495
5496
|
sort: it.sort,
|
|
5496
5497
|
sortDir: it.sortDir,
|
|
5497
5498
|
queryParams: Le
|
|
5498
5499
|
});
|
|
5499
|
-
St(r), wt(i), Et(a), Ot(o), At(s), Mt(c), Pt(l), u && (gt.current = sm(u), Ve((e) => sm(e) === sm(u) ? e : String(u))), !
|
|
5500
|
+
St(r), wt(i), Et(a), Ot(o), At(s), Mt(c), Pt(l), u && (gt.current = sm(u), Ve((e) => sm(e) === sm(u) ? e : String(u))), !yn && !xn && nt.current === 1 && Ht({
|
|
5500
5501
|
key: d,
|
|
5501
5502
|
rows: r,
|
|
5502
5503
|
total: i,
|
|
@@ -5507,35 +5508,35 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5507
5508
|
actionRules: l
|
|
5508
5509
|
});
|
|
5509
5510
|
}).catch((e) => {
|
|
5510
|
-
n || (St([]), wt(0), Et([]), Ot([]), At(""), Mt([]), Pt([]),
|
|
5511
|
+
n || (St([]), wt(0), Et([]), Ot([]), At(""), Mt([]), Pt([]), Bt(e.message), an && J.error("Invalid module name or data could not be loaded."));
|
|
5511
5512
|
}).finally(() => {
|
|
5512
|
-
n || It(!1);
|
|
5513
|
+
n || (It(!1), Rt(!0));
|
|
5513
5514
|
}), () => {
|
|
5514
5515
|
n = !0;
|
|
5515
5516
|
};
|
|
5516
5517
|
}, [
|
|
5517
|
-
|
|
5518
|
+
bn,
|
|
5518
5519
|
Be,
|
|
5519
|
-
|
|
5520
|
+
_n,
|
|
5520
5521
|
Je,
|
|
5521
5522
|
_e,
|
|
5523
|
+
xn,
|
|
5522
5524
|
yn,
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
Ut,
|
|
5525
|
+
an,
|
|
5526
|
+
Gt,
|
|
5526
5527
|
e,
|
|
5527
5528
|
nt.current,
|
|
5528
5529
|
nt.pageSize,
|
|
5529
5530
|
et,
|
|
5530
5531
|
ve,
|
|
5531
|
-
|
|
5532
|
+
Tn,
|
|
5532
5533
|
he,
|
|
5533
5534
|
it.sort,
|
|
5534
5535
|
it.sortDir,
|
|
5535
5536
|
Le
|
|
5536
5537
|
]);
|
|
5537
|
-
let
|
|
5538
|
-
let e =
|
|
5538
|
+
let En = L(() => {
|
|
5539
|
+
let e = Gt && Array.isArray(T) && T.length, t = !Gt && Array.isArray(Dt) && Dt.length, n = !fn && Array.isArray(un) && un.length, r = e ? T : t ? Dt : n ? un : [], i = new Map(Dt.map((e) => [Yf(e), e]).filter(([e]) => e)), a = r.map((e) => {
|
|
5539
5540
|
let t = Yf(e), n = i.get(t) ?? {}, r = t && E && typeof E == "object" ? E[t] : null, a = r?.renderConfig ? {
|
|
5540
5541
|
...n.renderConfig ?? e.renderConfig ?? {},
|
|
5541
5542
|
...r.renderConfig
|
|
@@ -5560,83 +5561,89 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5560
5561
|
}).filter(Boolean);
|
|
5561
5562
|
return Ip([...a, ...o]);
|
|
5562
5563
|
}, [
|
|
5563
|
-
cn,
|
|
5564
5564
|
un,
|
|
5565
|
+
fn,
|
|
5565
5566
|
T,
|
|
5566
5567
|
D,
|
|
5567
5568
|
E,
|
|
5568
|
-
|
|
5569
|
+
Gt,
|
|
5569
5570
|
Dt
|
|
5570
|
-
]),
|
|
5571
|
+
]), Dn = L(() => En.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible != "string" || e.isVisible.toLowerCase() === "true").map((e) => ({
|
|
5571
5572
|
key: e.key,
|
|
5572
5573
|
label: e.label
|
|
5573
|
-
})), [
|
|
5574
|
-
let e = He.toLowerCase(), t =
|
|
5574
|
+
})), [En]), On = Dn.map((e) => e.key), kn = ot.filter((e) => On.includes(e)), An = kn.length ? kn : Dn.slice(0, xe).map((e) => e.key), jn = Math.min(xe, Dn.length), Mn = An.length > xe, Nn = L(() => En.filter((e) => !e.cardHidden && (e.tableHidden || An.includes(e.key))), [En, An]), Pn = L(() => {
|
|
5575
|
+
let e = He.toLowerCase(), t = Kt, n = vn ? t.filter((e) => lm(e, Be, hn, En, gn)) : t, r = ie.length ? En.filter((e) => ie.includes(e.key)) : En;
|
|
5575
5576
|
return !e || e.length < 3 ? n : n.filter((t) => r.some((n) => String(ap(t, n.key)).toLowerCase().includes(e) || Hp(n).some((n) => String(ap(t, n)).toLowerCase().includes(e))));
|
|
5576
5577
|
}, [
|
|
5577
5578
|
Be,
|
|
5578
|
-
|
|
5579
|
-
mn,
|
|
5579
|
+
hn,
|
|
5580
5580
|
gn,
|
|
5581
|
-
|
|
5582
|
-
|
|
5581
|
+
vn,
|
|
5582
|
+
Kt,
|
|
5583
|
+
En,
|
|
5583
5584
|
He,
|
|
5584
5585
|
ie
|
|
5585
|
-
]),
|
|
5586
|
-
if (!
|
|
5586
|
+
]), Fn = L(() => {
|
|
5587
|
+
if (!yn) return Pn;
|
|
5587
5588
|
let e = (nt.current - 1) * nt.pageSize;
|
|
5588
|
-
return
|
|
5589
|
+
return Pn.slice(e, e + nt.pageSize);
|
|
5589
5590
|
}, [
|
|
5590
|
-
|
|
5591
|
-
|
|
5591
|
+
Pn,
|
|
5592
|
+
yn,
|
|
5592
5593
|
nt.current,
|
|
5593
5594
|
nt.pageSize
|
|
5594
|
-
]),
|
|
5595
|
-
let t = Array.isArray(b) ? b : [], n = t.length ? t : Tt.length ? Tt : [{
|
|
5595
|
+
]), In = yn ? Pn.length : qt, Ln = We.trim().length >= 3, Rn = String(Pn.length).padStart(2, "0"), zn = qt > 0 || Kt.length > 0, Bn = zn || He.trim().length > 0 || We.trim().length > 0, Vn = an ? zt ? "Invalid module name or data could not be loaded." : fn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Hn = L(() => !S || typeof S != "object" ? null : Object.entries(S).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [S]), Un = L(() => {
|
|
5596
|
+
let t = Array.isArray(b) ? b : [], n = !t.length, r = t.length ? t : Tt.length ? Tt : [{
|
|
5596
5597
|
key: "all",
|
|
5597
5598
|
title: e ?? "List",
|
|
5598
|
-
count:
|
|
5599
|
-
}];
|
|
5600
|
-
return !
|
|
5599
|
+
count: In
|
|
5600
|
+
}], i = !!(Hn && Object.keys(Hn).length);
|
|
5601
|
+
return !n && !i ? r : r.map((e, t) => {
|
|
5601
5602
|
if (!e || typeof e != "object") return e;
|
|
5602
|
-
let
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5603
|
+
let r = i ? Hn[String(om(e, t))] : void 0;
|
|
5604
|
+
if (!r && !n) return e;
|
|
5605
|
+
let a = { ...e };
|
|
5606
|
+
if (r && (a.title = r), n) {
|
|
5607
|
+
if (Lt) {
|
|
5608
|
+
let t = Number(e.count ?? e.countValue);
|
|
5609
|
+
a.count = Number.isFinite(t) ? t : 0;
|
|
5610
|
+
} else delete a.count, delete a.countValue;
|
|
5611
|
+
}
|
|
5612
|
+
return a;
|
|
5607
5613
|
});
|
|
5608
5614
|
}, [
|
|
5615
|
+
Lt,
|
|
5609
5616
|
e,
|
|
5610
5617
|
Tt,
|
|
5611
|
-
|
|
5612
|
-
|
|
5618
|
+
Hn,
|
|
5619
|
+
In,
|
|
5613
5620
|
b
|
|
5614
5621
|
]);
|
|
5615
5622
|
I(() => {
|
|
5616
|
-
if (!
|
|
5623
|
+
if (!Un.length || !((Tt?.length ?? 0) > 0 || Array.isArray(b) && b.length > 0)) return;
|
|
5617
5624
|
let e = sm(Be);
|
|
5618
|
-
if (!
|
|
5619
|
-
let e = om(
|
|
5625
|
+
if (!Un.some((t, n) => sm(om(t, n)) === e)) {
|
|
5626
|
+
let e = om(Un[0], 0);
|
|
5620
5627
|
e && Ve(String(e));
|
|
5621
5628
|
}
|
|
5622
5629
|
}, [
|
|
5623
5630
|
Be,
|
|
5624
|
-
|
|
5631
|
+
Un,
|
|
5625
5632
|
Tt,
|
|
5626
5633
|
b
|
|
5627
5634
|
]), I(() => {
|
|
5628
|
-
if (he === void 0 || !
|
|
5629
|
-
let e =
|
|
5635
|
+
if (he === void 0 || !Un.length) return;
|
|
5636
|
+
let e = Un.find((e, t) => sm(om(e, t)) === sm(he));
|
|
5630
5637
|
if (!e) return;
|
|
5631
|
-
let t = String(om(e,
|
|
5638
|
+
let t = String(om(e, Un.indexOf(e)));
|
|
5632
5639
|
(he !== ht.current || sm(Be) !== sm(t)) && (ht.current = he, Ve((e) => sm(e) === sm(t) ? e : t));
|
|
5633
5640
|
}, [
|
|
5634
5641
|
Be,
|
|
5635
|
-
|
|
5642
|
+
Un,
|
|
5636
5643
|
he
|
|
5637
5644
|
]);
|
|
5638
|
-
let
|
|
5639
|
-
let t =
|
|
5645
|
+
let Wn = (e) => {
|
|
5646
|
+
let t = En.map((e) => {
|
|
5640
5647
|
let t = {};
|
|
5641
5648
|
return Object.entries(e).forEach(([e, n]) => {
|
|
5642
5649
|
typeof n != "function" && (t[e] = n);
|
|
@@ -5648,7 +5655,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5648
5655
|
record: e,
|
|
5649
5656
|
fields: t
|
|
5650
5657
|
} });
|
|
5651
|
-
},
|
|
5658
|
+
}, Gn = (e, t, n = {}) => {
|
|
5652
5659
|
let r = vp(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
|
|
5653
5660
|
we(i, { state: {
|
|
5654
5661
|
background: Te,
|
|
@@ -5669,7 +5676,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5669
5676
|
requireJobId: n.requireJobId,
|
|
5670
5677
|
...n.popupState
|
|
5671
5678
|
} });
|
|
5672
|
-
},
|
|
5679
|
+
}, Kn = L(() => {
|
|
5673
5680
|
let e = {
|
|
5674
5681
|
dataIndex: "icons",
|
|
5675
5682
|
key: "icons",
|
|
@@ -5683,7 +5690,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5683
5690
|
type: "button",
|
|
5684
5691
|
className: "job-row-eye-button",
|
|
5685
5692
|
"aria-label": "Preview job",
|
|
5686
|
-
onClick: () =>
|
|
5693
|
+
onClick: () => Wn(t),
|
|
5687
5694
|
children: /* @__PURE__ */ X("img", {
|
|
5688
5695
|
src: Gf,
|
|
5689
5696
|
alt: "",
|
|
@@ -5694,29 +5701,29 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5694
5701
|
children: /* @__PURE__ */ X(ho, { className: "job-row-linkedin-icon" })
|
|
5695
5702
|
})]
|
|
5696
5703
|
})
|
|
5697
|
-
}, t =
|
|
5704
|
+
}, t = En.filter((e) => An.includes(e.key)).map((e, t) => {
|
|
5698
5705
|
let n = it.sort === e.key ? it.sortDir : "";
|
|
5699
5706
|
return {
|
|
5700
5707
|
title: Dm({
|
|
5701
5708
|
label: e.label,
|
|
5702
5709
|
sortDir: n,
|
|
5703
|
-
sortable:
|
|
5704
|
-
onSort: () =>
|
|
5710
|
+
sortable: zn,
|
|
5711
|
+
onSort: () => pn(e.key)
|
|
5705
5712
|
}),
|
|
5706
5713
|
dataIndex: e.key,
|
|
5707
5714
|
key: e.key,
|
|
5708
5715
|
fixed: t === 0 ? "left" : void 0,
|
|
5709
5716
|
ellipsis: { showTitle: !1 },
|
|
5710
|
-
width: im(e,
|
|
5711
|
-
render: (t, n) => Xp(e, n, We,
|
|
5717
|
+
width: im(e, Fn),
|
|
5718
|
+
render: (t, n) => Xp(e, n, We, Gn, {
|
|
5712
5719
|
canAdd: Ne,
|
|
5713
5720
|
canEdit: Pe,
|
|
5714
5721
|
canDelete: Fe
|
|
5715
|
-
},
|
|
5722
|
+
}, $t, _n)
|
|
5716
5723
|
};
|
|
5717
5724
|
});
|
|
5718
|
-
if (!(
|
|
5719
|
-
let n = e.width + (
|
|
5725
|
+
if (!(Mn || Gt) && pt > 0 && t.length > 0) {
|
|
5726
|
+
let n = e.width + (zn && fe === "checkbox" ? 48 : 0) + rm, r = t.reduce((e, t) => e + t.width, 0), i = pt - n - r;
|
|
5720
5727
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
5721
5728
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
5722
5729
|
});
|
|
@@ -5728,35 +5735,35 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5728
5735
|
Fe,
|
|
5729
5736
|
Pe,
|
|
5730
5737
|
We,
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5738
|
+
$t,
|
|
5739
|
+
pn,
|
|
5740
|
+
Mn,
|
|
5741
|
+
zn,
|
|
5742
|
+
Gt,
|
|
5736
5743
|
Te,
|
|
5737
5744
|
e,
|
|
5738
5745
|
we,
|
|
5739
|
-
|
|
5740
|
-
|
|
5746
|
+
En,
|
|
5747
|
+
Fn,
|
|
5741
5748
|
fe,
|
|
5742
5749
|
it.sort,
|
|
5743
5750
|
it.sortDir,
|
|
5744
5751
|
pt,
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
]),
|
|
5748
|
-
let t =
|
|
5749
|
-
if (Ve(n), Ze([]), $e([]),
|
|
5752
|
+
nn,
|
|
5753
|
+
An
|
|
5754
|
+
]), qn = xi((e) => {
|
|
5755
|
+
let t = Un.find((t, n) => sm(om(t, n)) === sm(e)), n = String(t ? om(t, Un.indexOf(t)) : e);
|
|
5756
|
+
if (Ve(n), Ze([]), $e([]), ln(), typeof ge == "function") {
|
|
5750
5757
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
5751
5758
|
ht.current = e, ge(e);
|
|
5752
5759
|
}
|
|
5753
5760
|
}, [
|
|
5754
5761
|
ge,
|
|
5755
|
-
|
|
5756
|
-
|
|
5762
|
+
Un,
|
|
5763
|
+
ln
|
|
5757
5764
|
]);
|
|
5758
|
-
function
|
|
5759
|
-
let r =
|
|
5765
|
+
function Jn(e, t, n) {
|
|
5766
|
+
let r = tn.get(String(e));
|
|
5760
5767
|
if (r && r.actionType !== "group") {
|
|
5761
5768
|
if (typeof c == "function" && c({
|
|
5762
5769
|
key: r.key,
|
|
@@ -5820,16 +5827,16 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5820
5827
|
}
|
|
5821
5828
|
}
|
|
5822
5829
|
}
|
|
5823
|
-
function
|
|
5824
|
-
let t = vm(
|
|
5825
|
-
t && gm(t, Qe, Be) ||
|
|
5830
|
+
function Yn({ key: e }) {
|
|
5831
|
+
let t = vm(rn).find((t) => String(t.key) === String(e));
|
|
5832
|
+
t && gm(t, Qe, Be) || Jn(e, Xe, Qe);
|
|
5826
5833
|
}
|
|
5827
|
-
let
|
|
5834
|
+
let Xn = An.length === Dn.length, Zn = An.length > 0 && !Xn, Qn = (e, t) => {
|
|
5828
5835
|
st((n) => {
|
|
5829
|
-
let r =
|
|
5830
|
-
return t ? i.includes(e) ? i : [...i, e] : i.length <=
|
|
5836
|
+
let r = Dn.slice(0, xe).map((e) => e.key), i = n.length ? n : r;
|
|
5837
|
+
return t ? i.includes(e) ? i : [...i, e] : i.length <= jn ? i : i.filter((t) => t !== e);
|
|
5831
5838
|
});
|
|
5832
|
-
},
|
|
5839
|
+
}, $n = () => {
|
|
5833
5840
|
if (typeof l == "function") {
|
|
5834
5841
|
l();
|
|
5835
5842
|
return;
|
|
@@ -5838,57 +5845,57 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5838
5845
|
we(h);
|
|
5839
5846
|
return;
|
|
5840
5847
|
}
|
|
5841
|
-
|
|
5842
|
-
},
|
|
5848
|
+
Wt(!0);
|
|
5849
|
+
}, er = () => {
|
|
5843
5850
|
y && we(y);
|
|
5844
5851
|
};
|
|
5845
5852
|
I(() => {
|
|
5846
|
-
if (!
|
|
5853
|
+
if (!Ut) return;
|
|
5847
5854
|
let e = (e) => {
|
|
5848
|
-
e.key === "Escape" &&
|
|
5855
|
+
e.key === "Escape" && Wt(!1);
|
|
5849
5856
|
};
|
|
5850
5857
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
5851
|
-
}, [
|
|
5852
|
-
let
|
|
5853
|
-
|
|
5854
|
-
},
|
|
5858
|
+
}, [Ut]);
|
|
5859
|
+
let tr = () => {
|
|
5860
|
+
Cn && (St(Vt.rows), wt(Vt.total), Et(Vt.tabs), Ot(Vt.fields), At(Vt.tabField), Mt(Vt.actions ?? []), Pt(Vt.actionRules ?? []), Bt(null), It(!1));
|
|
5861
|
+
}, nr = (e) => {
|
|
5855
5862
|
let t = e.target.value, n = t.trim().length < 3, r = Je.some((e) => e.field);
|
|
5856
|
-
n && (Ge(""), r ||
|
|
5857
|
-
},
|
|
5863
|
+
n && (Ge(""), r || tr()), Ue(t), ln();
|
|
5864
|
+
}, rr = () => {
|
|
5858
5865
|
let e = He.trim();
|
|
5859
|
-
e.length >= 3 && (Ge(e),
|
|
5860
|
-
},
|
|
5861
|
-
|
|
5866
|
+
e.length >= 3 && (Ge(e), ln());
|
|
5867
|
+
}, ir = () => {
|
|
5868
|
+
tr(), Ye([]), bt([], []), ln();
|
|
5862
5869
|
};
|
|
5863
5870
|
I(() => {
|
|
5864
|
-
|
|
5871
|
+
Zt === "card" && (dt([]), bt([], []));
|
|
5865
5872
|
}, [
|
|
5866
5873
|
nt.current,
|
|
5867
5874
|
nt.pageSize,
|
|
5868
5875
|
Be,
|
|
5869
|
-
|
|
5876
|
+
Zt
|
|
5870
5877
|
]);
|
|
5871
|
-
let
|
|
5878
|
+
let ar = (e) => {
|
|
5872
5879
|
dt((t) => {
|
|
5873
|
-
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e], r =
|
|
5880
|
+
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e], r = Fn.filter((e, t) => n.includes(String(um(e, t, d))));
|
|
5874
5881
|
return bt(n, r), n;
|
|
5875
5882
|
});
|
|
5876
|
-
},
|
|
5883
|
+
}, or = /* @__PURE__ */ Z("div", {
|
|
5877
5884
|
className: "column-visibility-menu",
|
|
5878
5885
|
onClick: (e) => e.stopPropagation(),
|
|
5879
5886
|
children: [/* @__PURE__ */ X(Mi, {
|
|
5880
|
-
checked:
|
|
5881
|
-
indeterminate:
|
|
5887
|
+
checked: Xn,
|
|
5888
|
+
indeterminate: Zn,
|
|
5882
5889
|
onChange: (e) => {
|
|
5883
|
-
st(e.target.checked ?
|
|
5890
|
+
st(e.target.checked ? Dn.map((e) => e.key) : Dn.slice(0, xe).map((e) => e.key));
|
|
5884
5891
|
},
|
|
5885
5892
|
children: "Select All"
|
|
5886
5893
|
}), /* @__PURE__ */ X("div", {
|
|
5887
5894
|
className: "column-visibility-menu__list",
|
|
5888
|
-
children:
|
|
5889
|
-
checked:
|
|
5890
|
-
disabled:
|
|
5891
|
-
onChange: (t) =>
|
|
5895
|
+
children: Dn.map((e) => /* @__PURE__ */ X(Mi, {
|
|
5896
|
+
checked: An.includes(e.key),
|
|
5897
|
+
disabled: An.includes(e.key) && An.length <= jn,
|
|
5898
|
+
onChange: (t) => Qn(e.key, t.target.checked),
|
|
5892
5899
|
children: e.label
|
|
5893
5900
|
}, e.key))
|
|
5894
5901
|
})]
|
|
@@ -5907,34 +5914,34 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5907
5914
|
justify: "space-between",
|
|
5908
5915
|
children: [/* @__PURE__ */ X(Bs, {
|
|
5909
5916
|
activeKey: Be,
|
|
5910
|
-
tabs:
|
|
5911
|
-
onChange:
|
|
5917
|
+
tabs: Un,
|
|
5918
|
+
onChange: qn
|
|
5912
5919
|
}), /* @__PURE__ */ Z(zi, {
|
|
5913
5920
|
align: "center",
|
|
5914
5921
|
gap: 8,
|
|
5915
5922
|
children: [
|
|
5916
5923
|
F,
|
|
5917
|
-
|
|
5924
|
+
Bn && /* @__PURE__ */ X(H, {
|
|
5918
5925
|
prefix: /* @__PURE__ */ X(Ro, { className: "job-search-icon" }),
|
|
5919
5926
|
placeholder: re,
|
|
5920
5927
|
value: He,
|
|
5921
|
-
onChange:
|
|
5922
|
-
onPressEnter:
|
|
5928
|
+
onChange: nr,
|
|
5929
|
+
onPressEnter: rr,
|
|
5923
5930
|
allowClear: !0,
|
|
5924
5931
|
className: "job-search-input"
|
|
5925
5932
|
}),
|
|
5926
|
-
!
|
|
5933
|
+
!Gt && Ne && Se && /* @__PURE__ */ X(q, {
|
|
5927
5934
|
title: "Add",
|
|
5928
5935
|
children: /* @__PURE__ */ X(z, {
|
|
5929
5936
|
"aria-label": "Add",
|
|
5930
5937
|
className: "job-toolbar-icon-button",
|
|
5931
5938
|
icon: /* @__PURE__ */ X(Do, {}),
|
|
5932
5939
|
onClick: () => {
|
|
5933
|
-
|
|
5940
|
+
on && we(on);
|
|
5934
5941
|
}
|
|
5935
5942
|
})
|
|
5936
5943
|
}),
|
|
5937
|
-
|
|
5944
|
+
zn && /* @__PURE__ */ X(q, {
|
|
5938
5945
|
title: "Filter",
|
|
5939
5946
|
children: /* @__PURE__ */ X(ki, {
|
|
5940
5947
|
count: Je.filter((e) => e.field && Fm(e)).length,
|
|
@@ -5948,13 +5955,13 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5948
5955
|
})
|
|
5949
5956
|
})
|
|
5950
5957
|
}),
|
|
5951
|
-
ae &&
|
|
5958
|
+
ae && zn && /* @__PURE__ */ Z(zi, {
|
|
5952
5959
|
align: "center",
|
|
5953
5960
|
gap: 6,
|
|
5954
5961
|
children: [/* @__PURE__ */ X(q, {
|
|
5955
5962
|
title: "List View",
|
|
5956
5963
|
children: /* @__PURE__ */ X(z, {
|
|
5957
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5964
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Zt === "list" ? " param-view-toggle-btn--active" : ""}`,
|
|
5958
5965
|
icon: /* @__PURE__ */ X(ts, {}),
|
|
5959
5966
|
onClick: () => {
|
|
5960
5967
|
se?.("list"), dt([]), bt([], []);
|
|
@@ -5963,7 +5970,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5963
5970
|
}), /* @__PURE__ */ X(q, {
|
|
5964
5971
|
title: "Card View",
|
|
5965
5972
|
children: /* @__PURE__ */ X(z, {
|
|
5966
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5973
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Zt === "card" ? " param-view-toggle-btn--active" : ""}`,
|
|
5967
5974
|
icon: /* @__PURE__ */ X(pa, {}),
|
|
5968
5975
|
onClick: () => {
|
|
5969
5976
|
se?.("card"), dt([]), bt([], []);
|
|
@@ -5974,20 +5981,20 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5974
5981
|
f && /* @__PURE__ */ X(z, {
|
|
5975
5982
|
className: "job-summary-button",
|
|
5976
5983
|
type: "primary",
|
|
5977
|
-
onClick:
|
|
5984
|
+
onClick: $n,
|
|
5978
5985
|
children: p
|
|
5979
5986
|
}),
|
|
5980
5987
|
g && y && /* @__PURE__ */ X(z, {
|
|
5981
5988
|
className: "job-summary-button",
|
|
5982
5989
|
type: "primary",
|
|
5983
|
-
onClick:
|
|
5990
|
+
onClick: er,
|
|
5984
5991
|
children: v
|
|
5985
5992
|
})
|
|
5986
5993
|
]
|
|
5987
5994
|
})]
|
|
5988
5995
|
})
|
|
5989
5996
|
}),
|
|
5990
|
-
|
|
5997
|
+
zn && /* @__PURE__ */ X(Y, { children: /* @__PURE__ */ X(ji, {
|
|
5991
5998
|
className: "job-toolbar-card",
|
|
5992
5999
|
children: /* @__PURE__ */ Z(zi, {
|
|
5993
6000
|
className: "p-flex",
|
|
@@ -5997,15 +6004,15 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5997
6004
|
align: "center",
|
|
5998
6005
|
gap: 3,
|
|
5999
6006
|
children: [
|
|
6000
|
-
|
|
6001
|
-
checked:
|
|
6002
|
-
indeterminate: ut.length > 0 && ut.length <
|
|
6007
|
+
Zt === "card" && /* @__PURE__ */ X(Mi, {
|
|
6008
|
+
checked: Fn.length > 0 && ut.length >= Fn.length,
|
|
6009
|
+
indeterminate: ut.length > 0 && ut.length < Fn.length,
|
|
6003
6010
|
className: "param-card-view__select-all",
|
|
6004
6011
|
onChange: () => {
|
|
6005
6012
|
if (ut.length > 0) dt([]), bt([], []);
|
|
6006
6013
|
else {
|
|
6007
|
-
let e =
|
|
6008
|
-
dt(e), bt(e, [...
|
|
6014
|
+
let e = Fn.map((e, t) => String(um(e, t, d)));
|
|
6015
|
+
dt(e), bt(e, [...Fn]);
|
|
6009
6016
|
}
|
|
6010
6017
|
},
|
|
6011
6018
|
children: "Select All"
|
|
@@ -6014,7 +6021,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6014
6021
|
open: ct,
|
|
6015
6022
|
onOpenChange: lt,
|
|
6016
6023
|
trigger: ["click"],
|
|
6017
|
-
dropdownRender: () =>
|
|
6024
|
+
dropdownRender: () => or,
|
|
6018
6025
|
placement: "bottomLeft",
|
|
6019
6026
|
overlayClassName: "column-visibility-dropdown",
|
|
6020
6027
|
children: /* @__PURE__ */ X(z, {
|
|
@@ -6030,10 +6037,10 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6030
6037
|
children: /* @__PURE__ */ X(Va, { className: "job-actions-caret" })
|
|
6031
6038
|
})
|
|
6032
6039
|
}),
|
|
6033
|
-
|
|
6040
|
+
rn.length > 0 && Xe.length > 0 && /* @__PURE__ */ X(Li, {
|
|
6034
6041
|
menu: {
|
|
6035
|
-
items:
|
|
6036
|
-
onClick:
|
|
6042
|
+
items: rn.map((e) => hm(e, gm(e, Qe, Be))),
|
|
6043
|
+
onClick: Yn
|
|
6037
6044
|
},
|
|
6038
6045
|
trigger: ["click"],
|
|
6039
6046
|
children: /* @__PURE__ */ Z(z, {
|
|
@@ -6060,51 +6067,51 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6060
6067
|
]
|
|
6061
6068
|
})
|
|
6062
6069
|
]
|
|
6063
|
-
}),
|
|
6070
|
+
}), Ln && /* @__PURE__ */ Z(qf, {
|
|
6064
6071
|
className: "job-search-results-count",
|
|
6065
6072
|
children: [
|
|
6066
6073
|
"Search Results (",
|
|
6067
|
-
|
|
6074
|
+
Rn,
|
|
6068
6075
|
")"
|
|
6069
6076
|
]
|
|
6070
6077
|
})]
|
|
6071
6078
|
})
|
|
6072
6079
|
}) }),
|
|
6073
|
-
|
|
6080
|
+
xn && /* @__PURE__ */ X(Rm, {
|
|
6074
6081
|
filters: Je,
|
|
6075
6082
|
onRemove: (e) => {
|
|
6076
6083
|
let t = Je.filter((t, n) => n !== e);
|
|
6077
|
-
Ye(t),
|
|
6084
|
+
Ye(t), ln();
|
|
6078
6085
|
},
|
|
6079
|
-
onClearAll:
|
|
6086
|
+
onClearAll: ir
|
|
6080
6087
|
}),
|
|
6081
6088
|
/* @__PURE__ */ X("div", {
|
|
6082
6089
|
ref: ft,
|
|
6083
6090
|
className: "job-table-measure",
|
|
6084
6091
|
children: /* @__PURE__ */ X(ea, {
|
|
6085
|
-
spinning:
|
|
6086
|
-
children:
|
|
6092
|
+
spinning: Gt ? A : dn || Ft,
|
|
6093
|
+
children: Zt === "card" ? Fn.length === 0 ? /* @__PURE__ */ X(Ri, {
|
|
6087
6094
|
image: Ri.PRESENTED_IMAGE_SIMPLE,
|
|
6088
|
-
description:
|
|
6095
|
+
description: Vn,
|
|
6089
6096
|
className: "param-card-view__empty",
|
|
6090
|
-
children: !
|
|
6097
|
+
children: !Gt && Ne && Se && on && !zt && /* @__PURE__ */ X(z, {
|
|
6091
6098
|
type: "primary",
|
|
6092
6099
|
icon: /* @__PURE__ */ X(Do, {}),
|
|
6093
|
-
onClick: () => we(
|
|
6100
|
+
onClick: () => we(on),
|
|
6094
6101
|
children: "Add New"
|
|
6095
6102
|
})
|
|
6096
6103
|
}) : /* @__PURE__ */ X("div", {
|
|
6097
6104
|
className: "param-card-view__grid",
|
|
6098
|
-
children:
|
|
6105
|
+
children: Fn.map((e, t) => {
|
|
6099
6106
|
let n = String(um(e, t, d));
|
|
6100
6107
|
return /* @__PURE__ */ X(Pm, {
|
|
6101
6108
|
record: e,
|
|
6102
|
-
fields:
|
|
6109
|
+
fields: Nn,
|
|
6103
6110
|
selected: fe === "checkbox" ? ut.includes(n) : vt(e, t),
|
|
6104
|
-
isControlled:
|
|
6105
|
-
onPreview: () =>
|
|
6106
|
-
onSelect: () =>
|
|
6107
|
-
onPopupAction:
|
|
6111
|
+
isControlled: Gt,
|
|
6112
|
+
onPreview: () => Wn(e),
|
|
6113
|
+
onSelect: () => ar(n),
|
|
6114
|
+
onPopupAction: Gn,
|
|
6108
6115
|
onRecordClick: ue ? () => yt(e, t) : void 0,
|
|
6109
6116
|
selectionMode: fe,
|
|
6110
6117
|
permissions: {
|
|
@@ -6115,7 +6122,7 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6115
6122
|
}, n);
|
|
6116
6123
|
})
|
|
6117
6124
|
}) : /* @__PURE__ */ X(ra, {
|
|
6118
|
-
rowSelection:
|
|
6125
|
+
rowSelection: zn && fe === "checkbox" ? {
|
|
6119
6126
|
type: "checkbox",
|
|
6120
6127
|
fixed: !0,
|
|
6121
6128
|
columnWidth: 48,
|
|
@@ -6124,32 +6131,32 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6124
6131
|
bt(e, t);
|
|
6125
6132
|
},
|
|
6126
6133
|
columnTitle: (() => {
|
|
6127
|
-
let e =
|
|
6134
|
+
let e = Fn.length, t = e > 0 && Xe.length >= e, n = Xe.length > 0 && !t;
|
|
6128
6135
|
return /* @__PURE__ */ X(Mi, {
|
|
6129
6136
|
checked: t,
|
|
6130
6137
|
indeterminate: n,
|
|
6131
6138
|
onChange: () => {
|
|
6132
6139
|
if (n || t) bt([], []);
|
|
6133
6140
|
else {
|
|
6134
|
-
let e =
|
|
6135
|
-
bt(e, [...
|
|
6141
|
+
let e = Fn.map((e, t) => um(e, t, d));
|
|
6142
|
+
bt(e, [...Fn]);
|
|
6136
6143
|
}
|
|
6137
6144
|
}
|
|
6138
6145
|
});
|
|
6139
6146
|
})()
|
|
6140
6147
|
} : void 0,
|
|
6141
|
-
columns:
|
|
6142
|
-
dataSource:
|
|
6148
|
+
columns: Kn,
|
|
6149
|
+
dataSource: Fn,
|
|
6143
6150
|
size: "middle",
|
|
6144
6151
|
tableLayout: "fixed",
|
|
6145
6152
|
scroll: {
|
|
6146
|
-
x:
|
|
6153
|
+
x: Mn || Gt ? "max-content" : void 0,
|
|
6147
6154
|
y: "calc(100vh - 300px)"
|
|
6148
6155
|
},
|
|
6149
6156
|
pagination: !1,
|
|
6150
6157
|
locale: { emptyText: /* @__PURE__ */ X(Ri, {
|
|
6151
6158
|
image: Ri.PRESENTED_IMAGE_SIMPLE,
|
|
6152
|
-
description:
|
|
6159
|
+
description: Vn
|
|
6153
6160
|
}) },
|
|
6154
6161
|
className: `${w} ${pe ? "list-view-table--compact" : ""}`.trim(),
|
|
6155
6162
|
onRow: ue ? (e, t) => ({
|
|
@@ -6163,26 +6170,26 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6163
6170
|
})
|
|
6164
6171
|
})
|
|
6165
6172
|
}),
|
|
6166
|
-
|
|
6173
|
+
zn ? /* @__PURE__ */ X(Lc, {
|
|
6167
6174
|
current: nt.current,
|
|
6168
6175
|
pageSize: nt.pageSize,
|
|
6169
|
-
total:
|
|
6176
|
+
total: In,
|
|
6170
6177
|
onChange: (e, t) => {
|
|
6171
|
-
if (
|
|
6178
|
+
if (Gt && typeof te == "function") {
|
|
6172
6179
|
te(e, t ?? nt.pageSize);
|
|
6173
6180
|
return;
|
|
6174
6181
|
}
|
|
6175
|
-
|
|
6182
|
+
cn(e);
|
|
6176
6183
|
},
|
|
6177
6184
|
onPageSizeChange: (e) => {
|
|
6178
|
-
if (
|
|
6185
|
+
if (Gt && typeof N == "function") {
|
|
6179
6186
|
N(e);
|
|
6180
6187
|
return;
|
|
6181
6188
|
}
|
|
6182
6189
|
rt({
|
|
6183
6190
|
current: 1,
|
|
6184
6191
|
pageSize: e
|
|
6185
|
-
}),
|
|
6192
|
+
}), sn(1, { replace: !0 });
|
|
6186
6193
|
}
|
|
6187
6194
|
}) : void 0,
|
|
6188
6195
|
/* @__PURE__ */ X(Wf, {
|
|
@@ -6191,17 +6198,17 @@ function zm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6191
6198
|
filters: Je,
|
|
6192
6199
|
onClose: () => qe(!1),
|
|
6193
6200
|
onApply: ({ filters: e }) => {
|
|
6194
|
-
Ye(e),
|
|
6201
|
+
Ye(e), ln();
|
|
6195
6202
|
},
|
|
6196
|
-
onReset:
|
|
6203
|
+
onReset: ir
|
|
6197
6204
|
}),
|
|
6198
6205
|
/* @__PURE__ */ X(Mf, {
|
|
6199
6206
|
moduleName: Ee,
|
|
6200
|
-
open:
|
|
6207
|
+
open: Ut,
|
|
6201
6208
|
rows: xt,
|
|
6202
|
-
tabs:
|
|
6203
|
-
total:
|
|
6204
|
-
onClose: () =>
|
|
6209
|
+
tabs: Un,
|
|
6210
|
+
total: In,
|
|
6211
|
+
onClose: () => Wt(!1)
|
|
6205
6212
|
})
|
|
6206
6213
|
]
|
|
6207
6214
|
});
|
|
@@ -58109,7 +58116,7 @@ async function EV(e, t, n, r = 10, i = 0, a = {}) {
|
|
|
58109
58116
|
}
|
|
58110
58117
|
//#endregion
|
|
58111
58118
|
//#region src/index.js
|
|
58112
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-
|
|
58119
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-26T10:34:10.935Z");
|
|
58113
58120
|
var DV = UR, OV = nO(Vz), kV = nO(Uz), AV = nO(iB), jV = nO(gB), MV = nO(TB), NV = nO(OB), PV = nO(jB), FV = nO(PB), IV = nO(IB), LV = nO(YB), RV = nO(ZB);
|
|
58114
58121
|
//#endregion
|
|
58115
58122
|
export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, Pg as ActivityNotesCard, kg as ActivityTab, wR as AddBatchCandidatePopup, fg as AddFormV1, UR as AdminDashboard, UN as AdminDashboardContent, DV as AdminPage, pg as AppAlert, nr as AppButton, TD as AppShell, Hw as ApprovalActionBar, Fg as AssigneeAvatars, vD as AuthGuard, Wy as BILLING_STATUS_FLOW, OC as BOOLEAN_API_KEYS, PS as BOOLEAN_PARSEABLE_API_KEYS, Ig as BULK_UPLOAD_DEFAULT_ACCEPT, Lg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Lr as Breadcrumb, AV as BulkUploadPage, Gg as BulkUploadPanel, o as CANDIDATES_URL, fT as CONTRACT_C2C, dT as CONTRACT_W2, n as CORE_URL, $_ as CURRENCY_SYMBOLS, Is as CalendarCard, qN as CoreThemeAdminApp, KN as CoreThemeAdminRoutes, Lc as CustomPagination, uw as DEFAULT_HOURS_POLICY, Pw as DayLogModal, i_ as DescriptionBlock, Kb as DetailHeaderCard, $b as DetailViewPage, Uv as DetailViewV1, ce as DocumentViewer, Ll as DynamicCards, fI as DynamicPopup, kR as DynamicPopupRoute, Bs as DynamicTabs, Zx as EditFormV1, hC as FIELD_TYPE_REGISTRY, rT as FINANCE_APPROVAL_CONFIG, Xw as FINANCE_TYPE_CFO, Yw as FINANCE_TYPE_ONBOARDING_MANAGER, $w as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Zw as FINANCE_TYPE_ONLY_FINANCE, Jw as FINANCE_TYPE_SUBMISSION_MANAGER, Qw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, _E as FileListCard, XT as FinanceApprovalPanel, Tb as FinanceAvatar, kb as FinanceBadge, Ww as FinanceDayCell, _b as FinanceDivider, Eb as FinanceEmployeeCell, mb as FinanceEmptyState, vb as FinanceEquation, Sb as FinanceHistoryTimeline, pb as FinanceHoursGrid, fb as FinanceKpiRow, gb as FinanceLine, lw as FinanceListToolbar, Ab as FinanceMarginBadge, Ob as FinanceMoneyCell, Nb as FinanceRecordsTable, jb as FinanceRowChevron, hb as FinanceSection, db as FinanceStatusPill, Db as FinanceTextCell, Kw as FinanceTimesheetAnalysis, yb as FinanceWorkflowSteps, O as GATEWAY_URL, dw as HOURS_MESSAGES, KE as Header, Hl as HierarchyUserFilter, s as JOBS_URL, OV as LegacyAdminPage, zm as ListView, RV as LmsHomePage, LV as LmsTestForm, ED as Login, SP as MailPopup, NV as ManageModules, PV as ManageSubmodules, oS as ModuleRowActions, Vw as NotesPanel, Ng as NotesTab, Gy as PAYROLL_STATUS_FLOW, hR as POPUP_CONFIGS, i as PYOPS_URL, pS as ParamCardView, yS as ParamListView, Cw as PeriodBadgeTag, $P as PreviewPopup, tO as ProjectSelect, Bw as ProofUploadPreview, Lw as QuickLogBar, Fw as QuickLogSelectionBar, Iw as RejectionReasonModal, r as SUBMISSIONS_URL, ew as SearchBuilderV1, mD as Sidebar, nw as StatusBadge, Sw as StatusBadgeTag, kV as StickyNotesFullPage, iw as StylishDynamicTabs, ow as TemplateEditor, jV as TestForm, IV as TestingHomePage, xg as TimelineGroups, jw as TimesheetDayCell, Qr as TipTapEditor, HR as UserForm, NR as VendorShareDrawer, Mf as ViewSummaryWidget, aF as WizardPopup, a as ZINNEXT_URL, FV as ZinnextTableView, MV as ZinnextTestForm, nt as appNow, Pt as applyIntegrationStatus, vc as approveSubmission, Hg as buildAcceptAttr, NC as buildBooleanRequest, ab as buildCsv, $y as buildDailyRows, kw as buildDayGradient, LT as buildRateHistoryEntries, nb as buildWeeklyRollup, g as clearSelectedProject, fe as colors, kT as computeFinance, _w as computeHoursPolicy, rb as computeMarginBand, zn as conditionMatches, v as configureCoreTheme, en as configuredFieldLabel, wV as createAllWorkflowsListFetcher, vV as createMergedListFetcher, dV as createModuleListFetchAdapter, yV as createWorkflowStageListFetcher, ev as currencySymbol, rV as defaultMergeRow, Br as deleteIntegrationConfig, Qy as deriveDayStats, yw as describeCapacity, lb as downloadCsv, pr as evaluateShowIfWith, CT as findEmployerRow, xT as flattenGroups, ov as formatAmount, Yn as formatApp, P as formatAppDateTime, Vg as formatFileSize, RT as formatFinanceMoney, Fy as formatHours, sv as formatMoney, Ly as formatPercent, cv as formatRate, Wr as getActivity, TV as getAllWorkflowsModuleList, Gn as getAppTimeZone, Vy as getApprovalDate, Yr as getBgcIntegrationConfig, si as getBgcIntegrationSummary, Ky as getBillingActionStates, xC as getBooleanEligibleTypes, d as getCurrentRoleName, sb as getFieldLabel, _C as getFieldType, Bg as getFileExtension, cT as getFinanceApprovalConfig, oE as getFormGroupsRaw, Ct as getIntegrationConfig, _e as getIntegrationConfigs, pe as getIntegrationSummary, Pc as getModuleConfig, En as getModuleDataDetail, qy as getPayrollActionStates, Ic as getPeriodBadgeConfig, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, yc as getVMSApprove, cb as getValueStyle, EV as getWorkflowStageModuleList, Jy as getWorkflowSteps, By as humanizeEvent, uh as i, ob as indexFieldConfig, Ry as initialsOf, RS as insertTokenAtCursor, vC as isBooleanEligible, IS as isBooleanParsable, S as isTester, h as logout, uT as marginIncludesReferral, OT as matchLocationTax, sx as n, TT as normalizeContract, Kg as r, nv as rateUnitLabel, iv as rateUnitShort, vw as reconcileHours, gC as registerFieldType, xc as rejectSubmission, Eg as resolveActivityMeta, AT as resolveAndCompute, hw as resolveDayKind, DT as resolveFinanceInputs, tV as resolveMergeKey, tV as resolveMergedListKey, lT as resolveRejectionReason, sE as resolveSubmissionFinance, Ut as saveBgcIntegrationConfig, dt as saveIntegrationConfig, c as setSelectedProject, un as showIfConditions, bV as stageCountKey, DD as t, Bn as testIntegrationConnection, Qe as toApp, av as toNumber, ot as tzLabel, be as tzShortLabel, Ku as useDropdownFields, Nf as useDropdownValues, vE as useEditForm, qu as useFieldConfig, Ju as useFilterFields, rd as useMenuPermission, $x as useModuleActions, Xb as useRecordRefresh, LS as validateBooleanQuery, Ug as validateBulkFile, t as withAdminAppId, _ as withAppId, nO as withAuthGuard };
|