@realtek/core-theme 0.0.309 → 0.0.310
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 +54 -54
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -5468,15 +5468,15 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5468
5468
|
fn,
|
|
5469
5469
|
Xe.current,
|
|
5470
5470
|
Xe.pageSize
|
|
5471
|
-
]), kn = fn ? 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." : an ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.",
|
|
5471
|
+
]), kn = fn ? Dn.length : zt, An = Re.trim().length >= 3, jn = String(Dn.length).padStart(2, "0"), Mn = zt > 0 || Rt.length > 0, Nn = Mn || Ie.trim().length > 0 || Re.trim().length > 0, Pn = Xt ? jt ? "Invalid module name or data could not be loaded." : an ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Fn = I(() => !C || typeof C != "object" ? null : Object.entries(C).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [C]), In = I(() => {
|
|
5472
5472
|
let t = Array.isArray(S) ? S : [], n = t.length ? t : yt.length ? yt : [{
|
|
5473
5473
|
key: "all",
|
|
5474
5474
|
title: e ?? "List",
|
|
5475
5475
|
count: kn
|
|
5476
5476
|
}];
|
|
5477
|
-
return !
|
|
5477
|
+
return !Fn || !Object.keys(Fn).length ? n : n.map((e, t) => {
|
|
5478
5478
|
if (!e || typeof e != "object") return e;
|
|
5479
|
-
let n = qp(e, t), r =
|
|
5479
|
+
let n = qp(e, t), r = Fn[String(n)];
|
|
5480
5480
|
return r ? {
|
|
5481
5481
|
...e,
|
|
5482
5482
|
title: r
|
|
@@ -5485,24 +5485,24 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5485
5485
|
}, [
|
|
5486
5486
|
e,
|
|
5487
5487
|
yt,
|
|
5488
|
-
|
|
5488
|
+
Fn,
|
|
5489
5489
|
kn,
|
|
5490
5490
|
S
|
|
5491
5491
|
]);
|
|
5492
5492
|
F(() => {
|
|
5493
|
-
if (!
|
|
5493
|
+
if (!In.length) return;
|
|
5494
5494
|
let e = Jp(Pe);
|
|
5495
|
-
if (!
|
|
5496
|
-
let e = qp(
|
|
5495
|
+
if (!In.some((t, n) => Jp(qp(t, n)) === e)) {
|
|
5496
|
+
let e = qp(In[0], 0);
|
|
5497
5497
|
e && Fe(String(e));
|
|
5498
5498
|
}
|
|
5499
|
-
}, [Pe,
|
|
5500
|
-
if (me === void 0 || !
|
|
5499
|
+
}, [Pe, In]), F(() => {
|
|
5500
|
+
if (me === void 0 || !In.length || me === lt.current) return;
|
|
5501
5501
|
lt.current = me;
|
|
5502
|
-
let e =
|
|
5502
|
+
let e = In.find((e, t) => Jp(qp(e, t)) === Jp(me)), t = e ? String(qp(e, In.indexOf(e))) : "";
|
|
5503
5503
|
t && Fe((e) => t === e ? e : t);
|
|
5504
|
-
}, [
|
|
5505
|
-
let
|
|
5504
|
+
}, [In, me]);
|
|
5505
|
+
let Ln = (e) => {
|
|
5506
5506
|
Ce("/popup/preview", { state: {
|
|
5507
5507
|
background: we,
|
|
5508
5508
|
moduleName: Te,
|
|
@@ -5514,7 +5514,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5514
5514
|
}), t;
|
|
5515
5515
|
})
|
|
5516
5516
|
} });
|
|
5517
|
-
},
|
|
5517
|
+
}, Rn = (e, t, n = {}) => {
|
|
5518
5518
|
let r = ap(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
|
|
5519
5519
|
Ce(i, { state: {
|
|
5520
5520
|
background: we,
|
|
@@ -5535,7 +5535,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5535
5535
|
requireJobId: n.requireJobId,
|
|
5536
5536
|
...n.popupState
|
|
5537
5537
|
} });
|
|
5538
|
-
},
|
|
5538
|
+
}, zn = I(() => {
|
|
5539
5539
|
let e = {
|
|
5540
5540
|
dataIndex: "icons",
|
|
5541
5541
|
key: "icons",
|
|
@@ -5549,7 +5549,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5549
5549
|
type: "button",
|
|
5550
5550
|
className: "job-row-eye-button",
|
|
5551
5551
|
"aria-label": "Preview job",
|
|
5552
|
-
onClick: () =>
|
|
5552
|
+
onClick: () => Ln(t),
|
|
5553
5553
|
children: /* @__PURE__ */ Y("img", {
|
|
5554
5554
|
src: Mf,
|
|
5555
5555
|
alt: "",
|
|
@@ -5574,7 +5574,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5574
5574
|
fixed: t === 0 ? "left" : void 0,
|
|
5575
5575
|
ellipsis: { showTitle: !1 },
|
|
5576
5576
|
width: Gp(e, On),
|
|
5577
|
-
render: (t, n) => Lp(e, n, Re,
|
|
5577
|
+
render: (t, n) => Lp(e, n, Re, Rn, {
|
|
5578
5578
|
canAdd: Oe,
|
|
5579
5579
|
canEdit: ke,
|
|
5580
5580
|
canDelete: Ae
|
|
@@ -5610,18 +5610,18 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5610
5610
|
st,
|
|
5611
5611
|
Jt,
|
|
5612
5612
|
Cn
|
|
5613
|
-
]),
|
|
5614
|
-
let t =
|
|
5613
|
+
]), Bn = mi((e) => {
|
|
5614
|
+
let t = In.find((t, n) => Jp(qp(t, n)) === Jp(e)), n = String(t ? qp(t, In.indexOf(t)) : e);
|
|
5615
5615
|
if (Fe(n), Ge([]), qe([]), en(), typeof he == "function") {
|
|
5616
5616
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
5617
5617
|
lt.current = e, he(e);
|
|
5618
5618
|
}
|
|
5619
5619
|
}, [
|
|
5620
5620
|
he,
|
|
5621
|
-
|
|
5621
|
+
In,
|
|
5622
5622
|
en
|
|
5623
5623
|
]);
|
|
5624
|
-
function
|
|
5624
|
+
function Vn(e, t, n) {
|
|
5625
5625
|
let r = qt.get(String(e));
|
|
5626
5626
|
if (r && r.actionType !== "group") {
|
|
5627
5627
|
if (typeof u == "function" && u({
|
|
@@ -5686,16 +5686,16 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5686
5686
|
}
|
|
5687
5687
|
}
|
|
5688
5688
|
}
|
|
5689
|
-
function
|
|
5689
|
+
function Hn({ key: e }) {
|
|
5690
5690
|
let t = am(Yt).find((t) => String(t.key) === String(e));
|
|
5691
|
-
t && rm(t, Ke, Pe) ||
|
|
5691
|
+
t && rm(t, Ke, Pe) || Vn(e, We, Ke);
|
|
5692
5692
|
}
|
|
5693
|
-
let
|
|
5693
|
+
let Un = Cn.length === bn.length, Wn = Cn.length > 0 && !Un, Gn = (e, t) => {
|
|
5694
5694
|
tt((n) => {
|
|
5695
5695
|
let r = bn.slice(0, be).map((e) => e.key), i = n.length ? n : r;
|
|
5696
5696
|
return t ? i.includes(e) ? i : [...i, e] : i.length <= wn ? i : i.filter((t) => t !== e);
|
|
5697
5697
|
});
|
|
5698
|
-
},
|
|
5698
|
+
}, Kn = () => {
|
|
5699
5699
|
if (typeof d == "function") {
|
|
5700
5700
|
d();
|
|
5701
5701
|
return;
|
|
@@ -5705,7 +5705,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5705
5705
|
return;
|
|
5706
5706
|
}
|
|
5707
5707
|
It(!0);
|
|
5708
|
-
},
|
|
5708
|
+
}, qn = () => {
|
|
5709
5709
|
x && Ce(x);
|
|
5710
5710
|
};
|
|
5711
5711
|
F(() => {
|
|
@@ -5715,16 +5715,16 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5715
5715
|
};
|
|
5716
5716
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
5717
5717
|
}, [Ft]);
|
|
5718
|
-
let
|
|
5718
|
+
let Jn = () => {
|
|
5719
5719
|
gn && (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
|
-
},
|
|
5720
|
+
}, Yn = (e) => {
|
|
5721
5721
|
let t = e.target.value, n = t.trim().length < 3, r = He.some((e) => e.field);
|
|
5722
|
-
n && (ze(""), r ||
|
|
5723
|
-
},
|
|
5722
|
+
n && (ze(""), r || Jn()), Le(t), en();
|
|
5723
|
+
}, Xn = () => {
|
|
5724
5724
|
let e = Ie.trim();
|
|
5725
5725
|
e.length >= 3 && (ze(e), en());
|
|
5726
|
-
},
|
|
5727
|
-
|
|
5726
|
+
}, Zn = () => {
|
|
5727
|
+
Jn(), Ue([]), mt([], []), en();
|
|
5728
5728
|
};
|
|
5729
5729
|
F(() => {
|
|
5730
5730
|
Ut === "card" && (at([]), mt([], []));
|
|
@@ -5734,17 +5734,17 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5734
5734
|
Pe,
|
|
5735
5735
|
Ut
|
|
5736
5736
|
]);
|
|
5737
|
-
let
|
|
5737
|
+
let Qn = (e) => {
|
|
5738
5738
|
at((t) => {
|
|
5739
5739
|
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
|
|
5740
5740
|
return mt(n, On.filter((e, t) => n.includes(String(Zp(e, t, p))))), n;
|
|
5741
5741
|
});
|
|
5742
|
-
},
|
|
5742
|
+
}, $n = /* @__PURE__ */ X("div", {
|
|
5743
5743
|
className: "column-visibility-menu",
|
|
5744
5744
|
onClick: (e) => e.stopPropagation(),
|
|
5745
5745
|
children: [/* @__PURE__ */ Y(wi, {
|
|
5746
|
-
checked:
|
|
5747
|
-
indeterminate:
|
|
5746
|
+
checked: Un,
|
|
5747
|
+
indeterminate: Wn,
|
|
5748
5748
|
onChange: (e) => {
|
|
5749
5749
|
tt(e.target.checked ? bn.map((e) => e.key) : bn.slice(0, be).map((e) => e.key));
|
|
5750
5750
|
},
|
|
@@ -5754,7 +5754,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5754
5754
|
children: bn.map((e) => /* @__PURE__ */ Y(wi, {
|
|
5755
5755
|
checked: Cn.includes(e.key),
|
|
5756
5756
|
disabled: Cn.includes(e.key) && Cn.length <= wn,
|
|
5757
|
-
onChange: (t) =>
|
|
5757
|
+
onChange: (t) => Gn(e.key, t.target.checked),
|
|
5758
5758
|
children: e.label
|
|
5759
5759
|
}, e.key))
|
|
5760
5760
|
})]
|
|
@@ -5773,19 +5773,19 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5773
5773
|
justify: "space-between",
|
|
5774
5774
|
children: [/* @__PURE__ */ Y(Ms, {
|
|
5775
5775
|
activeKey: Pe,
|
|
5776
|
-
tabs:
|
|
5777
|
-
onChange:
|
|
5776
|
+
tabs: In,
|
|
5777
|
+
onChange: Bn
|
|
5778
5778
|
}), /* @__PURE__ */ X(ji, {
|
|
5779
5779
|
align: "center",
|
|
5780
5780
|
gap: 8,
|
|
5781
5781
|
children: [
|
|
5782
5782
|
ne,
|
|
5783
|
-
|
|
5783
|
+
Nn && /* @__PURE__ */ Y(V, {
|
|
5784
5784
|
prefix: /* @__PURE__ */ Y(Ao, { className: "job-search-icon" }),
|
|
5785
5785
|
placeholder: re,
|
|
5786
5786
|
value: Ie,
|
|
5787
|
-
onChange:
|
|
5788
|
-
onPressEnter:
|
|
5787
|
+
onChange: Yn,
|
|
5788
|
+
onPressEnter: Xn,
|
|
5789
5789
|
allowClear: !0,
|
|
5790
5790
|
className: "job-search-input"
|
|
5791
5791
|
}),
|
|
@@ -5840,13 +5840,13 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5840
5840
|
m && /* @__PURE__ */ Y(R, {
|
|
5841
5841
|
className: "job-summary-button",
|
|
5842
5842
|
type: "primary",
|
|
5843
|
-
onClick:
|
|
5843
|
+
onClick: Kn,
|
|
5844
5844
|
children: h
|
|
5845
5845
|
}),
|
|
5846
5846
|
v && x && /* @__PURE__ */ Y(R, {
|
|
5847
5847
|
className: "job-summary-button",
|
|
5848
5848
|
type: "primary",
|
|
5849
|
-
onClick:
|
|
5849
|
+
onClick: qn,
|
|
5850
5850
|
children: b
|
|
5851
5851
|
})
|
|
5852
5852
|
]
|
|
@@ -5880,7 +5880,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5880
5880
|
open: nt,
|
|
5881
5881
|
onOpenChange: rt,
|
|
5882
5882
|
trigger: ["click"],
|
|
5883
|
-
dropdownRender: () =>
|
|
5883
|
+
dropdownRender: () => $n,
|
|
5884
5884
|
placement: "bottomLeft",
|
|
5885
5885
|
overlayClassName: "column-visibility-dropdown",
|
|
5886
5886
|
children: /* @__PURE__ */ Y(R, {
|
|
@@ -5899,7 +5899,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5899
5899
|
Yt.length > 0 && We.length > 0 && /* @__PURE__ */ Y(ki, {
|
|
5900
5900
|
menu: {
|
|
5901
5901
|
items: Yt.map((e) => nm(e, rm(e, Ke, Pe))),
|
|
5902
|
-
onClick:
|
|
5902
|
+
onClick: Hn
|
|
5903
5903
|
},
|
|
5904
5904
|
trigger: ["click"],
|
|
5905
5905
|
children: /* @__PURE__ */ X(R, {
|
|
@@ -5941,7 +5941,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5941
5941
|
onRemove: (e) => {
|
|
5942
5942
|
Ue(He.filter((t, n) => n !== e)), en();
|
|
5943
5943
|
},
|
|
5944
|
-
onClearAll:
|
|
5944
|
+
onClearAll: Zn
|
|
5945
5945
|
}),
|
|
5946
5946
|
/* @__PURE__ */ Y("div", {
|
|
5947
5947
|
ref: ot,
|
|
@@ -5950,7 +5950,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5950
5950
|
spinning: Lt ? k : rn || kt,
|
|
5951
5951
|
children: Ut === "card" ? On.length === 0 ? /* @__PURE__ */ Y(Ai, {
|
|
5952
5952
|
image: Ai.PRESENTED_IMAGE_SIMPLE,
|
|
5953
|
-
description:
|
|
5953
|
+
description: Pn,
|
|
5954
5954
|
className: "param-card-view__empty",
|
|
5955
5955
|
children: !Lt && Oe && xe && Zt && !jt && /* @__PURE__ */ Y(R, {
|
|
5956
5956
|
type: "primary",
|
|
@@ -5967,9 +5967,9 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5967
5967
|
fields: En,
|
|
5968
5968
|
selected: de === "checkbox" ? it.includes(n) : ft(e, t),
|
|
5969
5969
|
isControlled: Lt,
|
|
5970
|
-
onPreview: () =>
|
|
5971
|
-
onSelect: () =>
|
|
5972
|
-
onPopupAction:
|
|
5970
|
+
onPreview: () => Ln(e),
|
|
5971
|
+
onSelect: () => Qn(n),
|
|
5972
|
+
onPopupAction: Rn,
|
|
5973
5973
|
onRecordClick: le ? () => pt(e, t) : void 0,
|
|
5974
5974
|
selectionMode: de,
|
|
5975
5975
|
permissions: {
|
|
@@ -5999,7 +5999,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5999
5999
|
});
|
|
6000
6000
|
})()
|
|
6001
6001
|
} : void 0,
|
|
6002
|
-
columns:
|
|
6002
|
+
columns: zn,
|
|
6003
6003
|
dataSource: On,
|
|
6004
6004
|
size: "middle",
|
|
6005
6005
|
tableLayout: "fixed",
|
|
@@ -6010,7 +6010,7 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6010
6010
|
pagination: !1,
|
|
6011
6011
|
locale: { emptyText: /* @__PURE__ */ Y(Ai, {
|
|
6012
6012
|
image: Ai.PRESENTED_IMAGE_SIMPLE,
|
|
6013
|
-
description:
|
|
6013
|
+
description: Pn
|
|
6014
6014
|
}) },
|
|
6015
6015
|
className: `${w} ${fe ? "list-view-table--compact" : ""}`.trim(),
|
|
6016
6016
|
onRow: le ? (e, t) => ({
|
|
@@ -6054,13 +6054,13 @@ function Sm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6054
6054
|
onApply: ({ filters: e }) => {
|
|
6055
6055
|
Ue(e), en();
|
|
6056
6056
|
},
|
|
6057
|
-
onReset:
|
|
6057
|
+
onReset: Zn
|
|
6058
6058
|
}),
|
|
6059
6059
|
/* @__PURE__ */ Y(yf, {
|
|
6060
6060
|
moduleName: Te,
|
|
6061
6061
|
open: Ft,
|
|
6062
6062
|
rows: ht,
|
|
6063
|
-
tabs:
|
|
6063
|
+
tabs: In,
|
|
6064
6064
|
total: kn,
|
|
6065
6065
|
onClose: () => It(!1)
|
|
6066
6066
|
})
|