@realtek/core-theme 0.0.240 → 0.0.241
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 +5 -5
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +327 -323
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -3216,9 +3216,9 @@ var Zl = {
|
|
|
3216
3216
|
]
|
|
3217
3217
|
},
|
|
3218
3218
|
submissions: {
|
|
3219
|
-
module: "
|
|
3219
|
+
module: "submission",
|
|
3220
3220
|
keys: ["internalSubmissionStatus.internalSubmissionStatusText", "clientSubmissionStatus.clientSubmissionStatusText"],
|
|
3221
|
-
dateField: "
|
|
3221
|
+
dateField: "createdAt"
|
|
3222
3222
|
}
|
|
3223
3223
|
}, Ql = { jobSummary: [
|
|
3224
3224
|
{
|
|
@@ -4966,90 +4966,94 @@ function vf({ filters: e, onRemove: t, onClearAll: n }) {
|
|
|
4966
4966
|
]
|
|
4967
4967
|
});
|
|
4968
4968
|
}
|
|
4969
|
-
function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [], breadcrumbItems: i = [], dataSource: s = [], className: c = "", initialPageSize: l = 10, onAction: u, onSummaryClick: f, rowKey: p, showSummaryButton: m = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, fieldButtonLabel: y = "View Field", fieldButtonRoute: b, tabs: x, tableClassName: S = "job-list-table", fields: C = ff, fieldOverrides: w = null, extraFields: T = ff, listName: E = "", loading: D = !1, total: O, current: k, pageSize: A, onPageChange: j, onPageSizeChange: M, onSearch: ee, toolbarExtra: N = null, showSearch: te = !0, searchPlaceholder: ne = "Min 3 Chars, press Enter to search", searchFields: re = ff, showViewToggle: ie = !1, activeView: ae = "list", onViewChange: oe, createAction: se, onRecordClick: ce, selectedRecordId: le, selectionMode: P = "checkbox", compact: F = !1, onSelectionChange: ue, selectedSource: de, onTabChange: fe, fetchData: pe = kc, responseMapper: me = Xl, queryParams: he = pf, defaultVisibleColumnCount: ge = 6, showAdd: _e = !0 }) {
|
|
4970
|
-
let
|
|
4971
|
-
current:
|
|
4969
|
+
function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [], breadcrumbItems: i = [], dataSource: s = [], className: c = "", initialPageSize: l = 10, onAction: u, onSummaryClick: f, rowKey: p, showSummaryButton: m = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, fieldButtonLabel: y = "View Field", fieldButtonRoute: b, tabs: x, tableClassName: S = "job-list-table", fields: C = ff, fieldOverrides: w = null, extraFields: T = ff, listName: E = "", loading: D = !1, total: O, current: k, pageSize: A, onPageChange: j, onPageSizeChange: M, onSearch: ee, toolbarExtra: N = null, showSearch: te = !0, searchPlaceholder: ne = "Min 3 Chars, press Enter to search", searchFields: re = ff, showViewToggle: ie = !1, activeView: ae = "list", onViewChange: oe, createAction: se, onRecordClick: ce, selectedRecordId: le, selectionMode: P = "checkbox", compact: F = !1, onSelectionChange: ue, selectedSource: de, onTabChange: fe, fetchData: pe = kc, responseMapper: me = Xl, queryParams: he = pf, defaultVisibleColumnCount: ge = 6, showAdd: _e = !0, lockOuterPageScroll: ve = !1 }) {
|
|
4970
|
+
let ye = Fa(), be = Pa(), xe = hn(e), Se = !!ve, { canView: Ce, canAdd: we, canEdit: Te, canDelete: Ee } = $c(xe), De = L(() => he ?? pf, [JSON.stringify(he ?? pf)]), [Oe] = La(), ke = uf(Oe), [Ae, je] = R("all"), [Me, Ne] = R(""), [Pe, Fe] = R(""), [Ie, Le] = R(!1), [Re, ze] = R([]), [Be, Ve] = R([]), [He, Ue] = R([]), [We, Ge] = R(0), [Ke, qe] = R({
|
|
4971
|
+
current: ke,
|
|
4972
4972
|
pageSize: l
|
|
4973
|
-
}), [
|
|
4973
|
+
}), [Je, Ye] = R({
|
|
4974
4974
|
sort: "",
|
|
4975
4975
|
sortDir: ""
|
|
4976
|
-
}), [
|
|
4976
|
+
}), [Xe, Ze] = R([]), [Qe, $e] = R(!1), [et, tt] = R([]);
|
|
4977
4977
|
I(() => (t && d(t), () => {
|
|
4978
4978
|
t && h();
|
|
4979
|
-
}), [t])
|
|
4980
|
-
|
|
4979
|
+
}), [t]), I(() => {
|
|
4980
|
+
if (Se) return document.documentElement.classList.add("listview-page-scroll-lock"), document.body.classList.add("listview-page-scroll-lock"), () => {
|
|
4981
|
+
document.documentElement.classList.remove("listview-page-scroll-lock"), document.body.classList.remove("listview-page-scroll-lock");
|
|
4982
|
+
};
|
|
4983
|
+
}, [Se]);
|
|
4984
|
+
let nt = Xn(null), [rt, it] = R(0), at = Xn();
|
|
4981
4985
|
I(() => {
|
|
4982
|
-
let e =
|
|
4986
|
+
let e = nt.current;
|
|
4983
4987
|
if (!e || typeof ResizeObserver > "u") return;
|
|
4984
4988
|
let t = new ResizeObserver((e) => {
|
|
4985
4989
|
let t = e[0]?.contentRect?.width;
|
|
4986
|
-
typeof t == "number" &&
|
|
4990
|
+
typeof t == "number" && it(t);
|
|
4987
4991
|
});
|
|
4988
4992
|
return t.observe(e), () => t.disconnect();
|
|
4989
4993
|
}, []);
|
|
4990
|
-
let
|
|
4991
|
-
let n =
|
|
4994
|
+
let ot = (e, t) => String(qd(e, t, p)), st = (e, t) => String(ot(e, t)) === String(le ?? ""), ct = (e, t) => {
|
|
4995
|
+
let n = ot(e, t);
|
|
4992
4996
|
n && ce?.(e, n);
|
|
4993
|
-
},
|
|
4994
|
-
|
|
4995
|
-
}, [
|
|
4997
|
+
}, lt = (e, t) => {
|
|
4998
|
+
Ve(e), Ue(t), ue?.(e, t);
|
|
4999
|
+
}, [ut, dt] = R(s), [ft, pt] = R(s.length), [mt, ht] = R([]), [gt, _t] = R([]), [vt, yt] = R(""), [bt, xt] = R([]), [St, Ct] = R([]), [wt, Tt] = R(!1), [Et, Dt] = R(null), [Ot, kt] = R(null), [At, jt] = R(!1), Mt = !!(j || M || ee), Nt = Mt ? s : ut, Pt = Mt ? O ?? 0 : ft, Ft = Mt ? C : gt, It = L(() => Nt.some((e) => Yu(e)), [Nt]), Lt = L(() => Ft.some((e) => Ju(e)), [Ft]), Rt = It || Lt ? "card" : ae, zt = n.length > 0 ? n : bt, Vt = r.length > 0 ? r : St, Ht = L(() => nf(zt), [zt]), Ut = L(() => new Map(tf(Ht).map((e) => [e.key, e])), [Ht]), Wt = L(() => ef(Ht, (e) => {
|
|
4996
5000
|
let t = tl(e);
|
|
4997
|
-
return t === "add" && !
|
|
5001
|
+
return t === "add" && !we || t === "edit" && !Te || t === "delete" && !Ee || !Bt(e.permission, xe) || e.showInList === !1 ? !1 : e.allowedTabs ? e.allowedTabs.some((e) => Hd(e) === Hd(Ae)) : !0;
|
|
4998
5002
|
}), [
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
Se,
|
|
5002
|
-
Ce,
|
|
5003
|
+
Ht,
|
|
5004
|
+
Ae,
|
|
5003
5005
|
we,
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5006
|
+
Te,
|
|
5007
|
+
Ee,
|
|
5008
|
+
xe
|
|
5009
|
+
]), Gt = L(() => ef(Wt, (e) => (Be.length === 1 || e.allowMultiple || e.danger) && rf(e, He) && !pl(e.key, He, Vt, Ae)), [
|
|
5010
|
+
Ae,
|
|
5011
|
+
Vt,
|
|
5012
|
+
Be.length,
|
|
5013
|
+
He,
|
|
5014
|
+
Wt
|
|
5015
|
+
]), Kt = typeof e == "string" ? e.trim().length > 0 : !!e, qt = Kt ? `/${xe}-create${se ? `?action=${encodeURIComponent(se)}` : ""}` : "";
|
|
5012
5016
|
I(() => {
|
|
5013
|
-
|
|
5017
|
+
Kt && !Ce && ye("/", { replace: !0 });
|
|
5014
5018
|
}, [
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5019
|
+
Ce,
|
|
5020
|
+
Kt,
|
|
5021
|
+
ye
|
|
5018
5022
|
]);
|
|
5019
|
-
let
|
|
5020
|
-
let n = new URLSearchParams(
|
|
5023
|
+
let Jt = (e, { replace: t = !1 } = {}) => {
|
|
5024
|
+
let n = new URLSearchParams(Oe);
|
|
5021
5025
|
df(n);
|
|
5022
5026
|
let r = [n.toString(), e > 1 ? `p${e}` : ""].filter(Boolean).join("&");
|
|
5023
|
-
r !==
|
|
5024
|
-
pathname:
|
|
5027
|
+
r !== be.search.replace(/^\?/, "") && ye({
|
|
5028
|
+
pathname: be.pathname,
|
|
5025
5029
|
search: r ? `?${r}` : ""
|
|
5026
5030
|
}, { replace: t });
|
|
5027
|
-
},
|
|
5028
|
-
|
|
5031
|
+
}, Yt = (e, t) => {
|
|
5032
|
+
qe((t) => ({
|
|
5029
5033
|
...t,
|
|
5030
5034
|
current: e
|
|
5031
|
-
})),
|
|
5032
|
-
},
|
|
5033
|
-
|
|
5034
|
-
}, { config:
|
|
5035
|
-
let t =
|
|
5036
|
-
|
|
5035
|
+
})), Jt(e, t);
|
|
5036
|
+
}, Xt = () => {
|
|
5037
|
+
Yt(1, { replace: !0 });
|
|
5038
|
+
}, { config: Zt, loading: Qt, error: $t } = Kc(!Mt && Kt ? e : null), en = Jn((e) => {
|
|
5039
|
+
let t = Je.sort === e, n = af(Je.sortDir, t), r = n ? String(e) : "";
|
|
5040
|
+
Ye({
|
|
5037
5041
|
sort: r,
|
|
5038
5042
|
sortDir: n
|
|
5039
|
-
}), typeof ee == "function" && ee(r, n),
|
|
5043
|
+
}), typeof ee == "function" && ee(r, n), Xt();
|
|
5040
5044
|
}, [
|
|
5041
5045
|
ee,
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5046
|
+
Xt,
|
|
5047
|
+
Je.sort,
|
|
5048
|
+
Je.sortDir
|
|
5045
5049
|
]);
|
|
5046
5050
|
I(() => {
|
|
5047
|
-
|
|
5051
|
+
qe((e) => e.current === ke ? e : {
|
|
5048
5052
|
...e,
|
|
5049
|
-
current:
|
|
5053
|
+
current: ke
|
|
5050
5054
|
});
|
|
5051
|
-
}, [
|
|
5052
|
-
|
|
5055
|
+
}, [ke]), I(() => {
|
|
5056
|
+
Mt && qe((e) => {
|
|
5053
5057
|
let t = lf(k ?? e.current), n = Number(A) > 0 ? Number(A) : e.pageSize;
|
|
5054
5058
|
return e.current === t && e.pageSize === n ? e : {
|
|
5055
5059
|
current: t,
|
|
@@ -5059,46 +5063,46 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5059
5063
|
}, [
|
|
5060
5064
|
k,
|
|
5061
5065
|
A,
|
|
5062
|
-
|
|
5066
|
+
Mt
|
|
5063
5067
|
]);
|
|
5064
|
-
let
|
|
5068
|
+
let tn = be.state?.refreshTimestamp;
|
|
5065
5069
|
I(() => {
|
|
5066
|
-
|
|
5067
|
-
}, [
|
|
5068
|
-
let
|
|
5069
|
-
let e = [...Array.isArray(x) ? x : [], ...
|
|
5070
|
+
tn && (lt([], []), Ge((e) => e + 1));
|
|
5071
|
+
}, [tn]);
|
|
5072
|
+
let nn = L(() => {
|
|
5073
|
+
let e = [...Array.isArray(x) ? x : [], ...mt], t = Wd(Ae);
|
|
5070
5074
|
return e.find((e, n) => Wd(Ud(e, n)) === t);
|
|
5071
5075
|
}, [
|
|
5072
|
-
|
|
5073
|
-
|
|
5076
|
+
Ae,
|
|
5077
|
+
mt,
|
|
5074
5078
|
x
|
|
5075
|
-
]),
|
|
5079
|
+
]), rn = nn?.field ?? nn?.fieldName ?? nn?.filterField ?? nn?.dataIndex ?? vt, an = Gd(Ae) ? "" : Ae, on = !an && !Gd(Ae) && Hd(rn).length > 0, sn = Pe.trim().length >= 3, cn = sn ? Pe.trim() : "", ln = Re.some((e) => e.field), un = cf({
|
|
5076
5080
|
moduleName: e,
|
|
5077
|
-
activeTabScope:
|
|
5078
|
-
pageSize:
|
|
5079
|
-
sort:
|
|
5080
|
-
sortDir:
|
|
5081
|
-
queryParams:
|
|
5082
|
-
}),
|
|
5081
|
+
activeTabScope: an,
|
|
5082
|
+
pageSize: Ke.pageSize,
|
|
5083
|
+
sort: Je.sort,
|
|
5084
|
+
sortDir: Je.sortDir,
|
|
5085
|
+
queryParams: De
|
|
5086
|
+
}), dn = Ke.current === 1 && Ot?.key === un;
|
|
5083
5087
|
I(() => {
|
|
5084
|
-
if (
|
|
5085
|
-
if (!
|
|
5086
|
-
|
|
5088
|
+
if (Mt) return;
|
|
5089
|
+
if (!Kt) {
|
|
5090
|
+
dt([]), pt(0), ht([]), _t([]), yt(""), xt([]), Ct([]), Dt(null);
|
|
5087
5091
|
return;
|
|
5088
5092
|
}
|
|
5089
|
-
let t = !1, n =
|
|
5090
|
-
return
|
|
5091
|
-
scope:
|
|
5092
|
-
sort:
|
|
5093
|
-
sortDir:
|
|
5094
|
-
search:
|
|
5095
|
-
filters:
|
|
5096
|
-
queryParams:
|
|
5093
|
+
let t = !1, n = sn && ft > Ke.pageSize, r = n ? ft : Ke.pageSize, i = n ? 0 : (Ke.current - 1) * Ke.pageSize;
|
|
5094
|
+
return Tt(!(!sn && !ln && Ke.current === 1 && dn)), Dt(null), pe(e, r, i, {
|
|
5095
|
+
scope: an,
|
|
5096
|
+
sort: Je.sort,
|
|
5097
|
+
sortDir: Je.sortDir,
|
|
5098
|
+
search: cn,
|
|
5099
|
+
filters: Re,
|
|
5100
|
+
queryParams: De
|
|
5097
5101
|
}).then((n) => {
|
|
5098
5102
|
if (t) return;
|
|
5099
5103
|
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = me(n, e);
|
|
5100
|
-
|
|
5101
|
-
key:
|
|
5104
|
+
dt(r), pt(i), ht(a), _t(o), yt(s), xt(c), Ct(l), !sn && !ln && Ke.current === 1 && kt({
|
|
5105
|
+
key: un,
|
|
5102
5106
|
rows: r,
|
|
5103
5107
|
total: i,
|
|
5104
5108
|
tabs: a,
|
|
@@ -5108,34 +5112,34 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5108
5112
|
actionRules: l
|
|
5109
5113
|
});
|
|
5110
5114
|
}).catch((e) => {
|
|
5111
|
-
t || (
|
|
5115
|
+
t || (dt([]), pt(0), ht([]), _t([]), yt(""), xt([]), Ct([]), Dt(e.message), Kt && J.error("Invalid module name or data could not be loaded."));
|
|
5112
5116
|
}).finally(() => {
|
|
5113
|
-
t ||
|
|
5117
|
+
t || Tt(!1);
|
|
5114
5118
|
}), () => {
|
|
5115
5119
|
t = !0;
|
|
5116
5120
|
};
|
|
5117
5121
|
}, [
|
|
5118
|
-
on,
|
|
5119
|
-
nn,
|
|
5120
|
-
Ie,
|
|
5121
5122
|
cn,
|
|
5122
|
-
pe,
|
|
5123
|
-
sn,
|
|
5124
5123
|
an,
|
|
5125
|
-
|
|
5124
|
+
Re,
|
|
5125
|
+
un,
|
|
5126
|
+
pe,
|
|
5126
5127
|
ln,
|
|
5128
|
+
sn,
|
|
5129
|
+
Kt,
|
|
5130
|
+
dn,
|
|
5127
5131
|
e,
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
+
ft,
|
|
5133
|
+
Ke.current,
|
|
5134
|
+
Ke.pageSize,
|
|
5135
|
+
We,
|
|
5132
5136
|
me,
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5137
|
+
Je.sort,
|
|
5138
|
+
Je.sortDir,
|
|
5139
|
+
De
|
|
5136
5140
|
]);
|
|
5137
|
-
let
|
|
5138
|
-
let e =
|
|
5141
|
+
let fn = L(() => {
|
|
5142
|
+
let e = Mt && Array.isArray(C) && C.length, t = !Mt && Array.isArray(gt) && gt.length, n = !$t && Array.isArray(Zt) && Zt.length, r = e ? C : t ? gt : n ? Zt : [], i = new Map(gt.map((e) => [Bu(e), e]).filter(([e]) => e)), a = r.map((e) => {
|
|
5139
5143
|
let t = Bu(e), n = i.get(t) ?? {}, r = t && w && typeof w == "object" ? w[t] : null, a = r?.renderConfig ? {
|
|
5140
5144
|
...n.renderConfig ?? e.renderConfig ?? {},
|
|
5141
5145
|
...r.renderConfig
|
|
@@ -5160,86 +5164,86 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5160
5164
|
}).filter(Boolean);
|
|
5161
5165
|
return yd([...a, ...o]);
|
|
5162
5166
|
}, [
|
|
5163
|
-
Yt,
|
|
5164
5167
|
Zt,
|
|
5168
|
+
$t,
|
|
5165
5169
|
C,
|
|
5166
5170
|
T,
|
|
5167
5171
|
w,
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
]),
|
|
5172
|
+
Mt,
|
|
5173
|
+
gt
|
|
5174
|
+
]), pn = L(() => fn.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible == "string" ? e.isVisible.toLowerCase() === "true" : !0).map((e) => ({
|
|
5171
5175
|
key: e.key,
|
|
5172
5176
|
label: e.label
|
|
5173
|
-
})), [
|
|
5174
|
-
let e =
|
|
5177
|
+
})), [fn]), mn = pn.map((e) => e.key), gn = Xe.filter((e) => mn.includes(e)), _n = gn.length ? gn : pn.slice(0, ge).map((e) => e.key), vn = Math.min(ge, pn.length), yn = _n.length > ge, bn = L(() => fn.filter((e) => !e.cardHidden && (e.tableHidden || _n.includes(e.key))), [fn, _n]), xn = L(() => {
|
|
5178
|
+
let e = Me.toLowerCase(), t = Nt, n = on ? t.filter((e) => Kd(e, Ae, nn, fn, rn)) : t, r = re.length ? fn.filter((e) => re.includes(e.key)) : fn;
|
|
5175
5179
|
return !e || e.length < 3 ? n : n.filter((t) => r.some((n) => String(Xu(t, n.key)).toLowerCase().includes(e) || Td(n).some((n) => String(Xu(t, n)).toLowerCase().includes(e))));
|
|
5176
5180
|
}, [
|
|
5177
|
-
Oe,
|
|
5178
|
-
en,
|
|
5179
|
-
tn,
|
|
5180
|
-
rn,
|
|
5181
|
-
jt,
|
|
5182
|
-
un,
|
|
5183
5181
|
Ae,
|
|
5182
|
+
nn,
|
|
5183
|
+
rn,
|
|
5184
|
+
on,
|
|
5185
|
+
Nt,
|
|
5186
|
+
fn,
|
|
5187
|
+
Me,
|
|
5184
5188
|
re
|
|
5185
|
-
]),
|
|
5186
|
-
if (!
|
|
5187
|
-
let e = (
|
|
5188
|
-
return
|
|
5189
|
+
]), Sn = L(() => {
|
|
5190
|
+
if (!sn) return xn;
|
|
5191
|
+
let e = (Ke.current - 1) * Ke.pageSize;
|
|
5192
|
+
return xn.slice(e, e + Ke.pageSize);
|
|
5189
5193
|
}, [
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
]),
|
|
5194
|
+
xn,
|
|
5195
|
+
sn,
|
|
5196
|
+
Ke.current,
|
|
5197
|
+
Ke.pageSize
|
|
5198
|
+
]), wn = sn ? xn.length : Pt, Tn = Pe.trim().length >= 3, En = String(xn.length).padStart(2, "0"), Dn = Pt > 0 || Nt.length > 0, On = Kt ? Et ? "Invalid module name or data could not be loaded." : $t ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", kn = L(() => {
|
|
5195
5199
|
let t = Array.isArray(x) ? x : [];
|
|
5196
|
-
return t.length ? t :
|
|
5200
|
+
return t.length ? t : mt.length ? mt : [{
|
|
5197
5201
|
key: "all",
|
|
5198
5202
|
title: e ?? "List",
|
|
5199
|
-
count:
|
|
5203
|
+
count: wn
|
|
5200
5204
|
}];
|
|
5201
5205
|
}, [
|
|
5202
5206
|
e,
|
|
5203
|
-
|
|
5204
|
-
|
|
5207
|
+
mt,
|
|
5208
|
+
wn,
|
|
5205
5209
|
x
|
|
5206
5210
|
]);
|
|
5207
5211
|
I(() => {
|
|
5208
|
-
if (!
|
|
5209
|
-
let e = Wd(
|
|
5210
|
-
if (!
|
|
5211
|
-
let e = Ud(
|
|
5212
|
-
e &&
|
|
5213
|
-
}
|
|
5214
|
-
}, [
|
|
5215
|
-
if (de === void 0 || !
|
|
5216
|
-
|
|
5217
|
-
let e =
|
|
5218
|
-
t &&
|
|
5219
|
-
}, [
|
|
5220
|
-
let
|
|
5221
|
-
|
|
5222
|
-
background:
|
|
5223
|
-
moduleName:
|
|
5212
|
+
if (!kn.length) return;
|
|
5213
|
+
let e = Wd(Ae);
|
|
5214
|
+
if (!kn.some((t, n) => Wd(Ud(t, n)) === e)) {
|
|
5215
|
+
let e = Ud(kn[0], 0);
|
|
5216
|
+
e && je(String(e));
|
|
5217
|
+
}
|
|
5218
|
+
}, [Ae, kn]), I(() => {
|
|
5219
|
+
if (de === void 0 || !kn.length || de === at.current) return;
|
|
5220
|
+
at.current = de;
|
|
5221
|
+
let e = kn.find((e, t) => Wd(Ud(e, t)) === Wd(de)), t = e ? String(Ud(e, kn.indexOf(e))) : "";
|
|
5222
|
+
t && je((e) => t === e ? e : t);
|
|
5223
|
+
}, [kn, de]);
|
|
5224
|
+
let An = (e) => {
|
|
5225
|
+
ye("/popup/preview", { state: {
|
|
5226
|
+
background: be,
|
|
5227
|
+
moduleName: xe,
|
|
5224
5228
|
record: e,
|
|
5225
|
-
fields:
|
|
5229
|
+
fields: fn.map((e) => {
|
|
5226
5230
|
let t = {};
|
|
5227
5231
|
return Object.entries(e).forEach(([e, n]) => {
|
|
5228
5232
|
typeof n != "function" && (t[e] = n);
|
|
5229
5233
|
}), t;
|
|
5230
5234
|
})
|
|
5231
5235
|
} });
|
|
5232
|
-
},
|
|
5236
|
+
}, jn = (e, t) => {
|
|
5233
5237
|
let n = ad(e, t), r = n.startsWith("/") ? n : `/${n}`, i = t?._id ?? t?.id;
|
|
5234
|
-
|
|
5235
|
-
background:
|
|
5238
|
+
ye(r, { state: {
|
|
5239
|
+
background: be,
|
|
5236
5240
|
selectedIds: i === void 0 ? [] : [i],
|
|
5237
5241
|
selectedRecords: [t],
|
|
5238
|
-
moduleName:
|
|
5242
|
+
moduleName: xe,
|
|
5239
5243
|
popupContext: {},
|
|
5240
5244
|
popupAction: {}
|
|
5241
5245
|
} });
|
|
5242
|
-
},
|
|
5246
|
+
}, Mn = L(() => {
|
|
5243
5247
|
let e = {
|
|
5244
5248
|
dataIndex: "icons",
|
|
5245
5249
|
key: "icons",
|
|
@@ -5253,7 +5257,7 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5253
5257
|
type: "button",
|
|
5254
5258
|
className: "job-row-eye-button",
|
|
5255
5259
|
"aria-label": "Preview job",
|
|
5256
|
-
onClick: () =>
|
|
5260
|
+
onClick: () => An(t),
|
|
5257
5261
|
children: /* @__PURE__ */ X("img", {
|
|
5258
5262
|
src: Iu,
|
|
5259
5263
|
alt: "",
|
|
@@ -5264,69 +5268,69 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5264
5268
|
children: /* @__PURE__ */ X(Li, { className: "job-row-linkedin-icon" })
|
|
5265
5269
|
})]
|
|
5266
5270
|
})
|
|
5267
|
-
}, t =
|
|
5268
|
-
let n =
|
|
5271
|
+
}, t = fn.filter((e) => _n.includes(e.key)).map((e, t) => {
|
|
5272
|
+
let n = Je.sort === e.key ? Je.sortDir : "";
|
|
5269
5273
|
return {
|
|
5270
5274
|
title: sf({
|
|
5271
5275
|
label: e.label,
|
|
5272
5276
|
sortDir: n,
|
|
5273
|
-
sortable:
|
|
5274
|
-
onSort: () =>
|
|
5277
|
+
sortable: Dn,
|
|
5278
|
+
onSort: () => en(e.key)
|
|
5275
5279
|
}),
|
|
5276
5280
|
dataIndex: e.key,
|
|
5277
5281
|
key: e.key,
|
|
5278
5282
|
fixed: t === 0 ? "left" : void 0,
|
|
5279
5283
|
ellipsis: { showTitle: !1 },
|
|
5280
|
-
width: Vd(e,
|
|
5281
|
-
render: (t, n) => Nd(e, n,
|
|
5282
|
-
canAdd:
|
|
5283
|
-
canEdit:
|
|
5284
|
-
canDelete:
|
|
5285
|
-
},
|
|
5284
|
+
width: Vd(e, Sn),
|
|
5285
|
+
render: (t, n) => Nd(e, n, Pe, jn, {
|
|
5286
|
+
canAdd: we,
|
|
5287
|
+
canEdit: Te,
|
|
5288
|
+
canDelete: Ee
|
|
5289
|
+
}, Vt, an)
|
|
5286
5290
|
};
|
|
5287
5291
|
});
|
|
5288
|
-
if (!(
|
|
5289
|
-
let n = e.width + (
|
|
5292
|
+
if (!(yn || Mt) && rt > 0 && t.length > 0) {
|
|
5293
|
+
let n = e.width + (Dn && P === "checkbox" ? 48 : 0) + Bd, r = t.reduce((e, t) => e + t.width, 0), i = rt - n - r;
|
|
5290
5294
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
5291
5295
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
5292
5296
|
});
|
|
5293
5297
|
}
|
|
5294
5298
|
return [e, ...t];
|
|
5295
5299
|
}, [
|
|
5296
|
-
|
|
5297
|
-
Se,
|
|
5300
|
+
Ae,
|
|
5298
5301
|
we,
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5302
|
+
Ee,
|
|
5303
|
+
Te,
|
|
5304
|
+
Pe,
|
|
5305
|
+
Vt,
|
|
5306
|
+
en,
|
|
5307
|
+
yn,
|
|
5308
|
+
Dn,
|
|
5309
|
+
Mt,
|
|
5310
|
+
be,
|
|
5307
5311
|
e,
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5312
|
+
ye,
|
|
5313
|
+
fn,
|
|
5314
|
+
Sn,
|
|
5311
5315
|
P,
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
]),
|
|
5318
|
-
let t =
|
|
5319
|
-
if (
|
|
5316
|
+
Je.sort,
|
|
5317
|
+
Je.sortDir,
|
|
5318
|
+
rt,
|
|
5319
|
+
Wt,
|
|
5320
|
+
_n
|
|
5321
|
+
]), Nn = Jn((e) => {
|
|
5322
|
+
let t = kn.find((t, n) => Wd(Ud(t, n)) === Wd(e)), n = String(t ? Ud(t, kn.indexOf(t)) : e);
|
|
5323
|
+
if (je(n), Ve([]), Ue([]), Xt(), typeof fe == "function") {
|
|
5320
5324
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
5321
|
-
|
|
5325
|
+
at.current = e, fe(e);
|
|
5322
5326
|
}
|
|
5323
5327
|
}, [
|
|
5324
5328
|
fe,
|
|
5325
|
-
|
|
5326
|
-
|
|
5329
|
+
kn,
|
|
5330
|
+
Xt
|
|
5327
5331
|
]);
|
|
5328
|
-
function
|
|
5329
|
-
let r =
|
|
5332
|
+
function Pn(e, t, n) {
|
|
5333
|
+
let r = Ut.get(String(e));
|
|
5330
5334
|
if (r && r.actionType !== "group") {
|
|
5331
5335
|
if (typeof u == "function" && u({
|
|
5332
5336
|
key: r.key,
|
|
@@ -5355,18 +5359,18 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5355
5359
|
records: n
|
|
5356
5360
|
})
|
|
5357
5361
|
}).then(() => {
|
|
5358
|
-
J.success(`${r.label} completed`),
|
|
5362
|
+
J.success(`${r.label} completed`), Ge((e) => e + 1);
|
|
5359
5363
|
}).catch((e) => J.error(e.message || `${r.label} failed`));
|
|
5360
5364
|
return;
|
|
5361
5365
|
}
|
|
5362
5366
|
if (r.route) {
|
|
5363
5367
|
let e = n[0] ?? {}, i = ad(r.route, e), a = i.startsWith("/") ? i : `/${i}`;
|
|
5364
5368
|
if (r.route.startsWith("/popup/") || r.route.startsWith("popup/")) {
|
|
5365
|
-
|
|
5366
|
-
background:
|
|
5369
|
+
ye(a, { state: {
|
|
5370
|
+
background: be,
|
|
5367
5371
|
selectedIds: t,
|
|
5368
5372
|
selectedRecords: n,
|
|
5369
|
-
moduleName:
|
|
5373
|
+
moduleName: xe,
|
|
5370
5374
|
popupContext: r.popupState ?? {},
|
|
5371
5375
|
popupAction: {
|
|
5372
5376
|
key: r.key,
|
|
@@ -5378,85 +5382,85 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5378
5382
|
} });
|
|
5379
5383
|
return;
|
|
5380
5384
|
}
|
|
5381
|
-
|
|
5385
|
+
ye(a);
|
|
5382
5386
|
}
|
|
5383
5387
|
}
|
|
5384
5388
|
}
|
|
5385
|
-
function
|
|
5386
|
-
let t = tf(
|
|
5387
|
-
t && $d(t,
|
|
5389
|
+
function Fn({ key: e }) {
|
|
5390
|
+
let t = tf(Gt).find((t) => String(t.key) === String(e));
|
|
5391
|
+
t && $d(t, He, Ae) || Pn(e, Be, He);
|
|
5388
5392
|
}
|
|
5389
|
-
let
|
|
5390
|
-
|
|
5391
|
-
let r =
|
|
5392
|
-
return t ? i.includes(e) ? i : [...i, e] : i.length <=
|
|
5393
|
+
let In = _n.length === pn.length, Ln = _n.length > 0 && !In, Rn = (e, t) => {
|
|
5394
|
+
Ze((n) => {
|
|
5395
|
+
let r = pn.slice(0, ge).map((e) => e.key), i = n.length ? n : r;
|
|
5396
|
+
return t ? i.includes(e) ? i : [...i, e] : i.length <= vn ? i : i.filter((t) => t !== e);
|
|
5393
5397
|
});
|
|
5394
|
-
},
|
|
5398
|
+
}, zn = () => {
|
|
5395
5399
|
if (typeof f == "function") {
|
|
5396
5400
|
f();
|
|
5397
5401
|
return;
|
|
5398
5402
|
}
|
|
5399
5403
|
if (_) {
|
|
5400
|
-
|
|
5404
|
+
ye(_);
|
|
5401
5405
|
return;
|
|
5402
5406
|
}
|
|
5403
|
-
|
|
5404
|
-
},
|
|
5405
|
-
b &&
|
|
5407
|
+
jt(!0);
|
|
5408
|
+
}, Bn = () => {
|
|
5409
|
+
b && ye(b);
|
|
5406
5410
|
};
|
|
5407
5411
|
I(() => {
|
|
5408
|
-
if (!
|
|
5412
|
+
if (!At) return;
|
|
5409
5413
|
let e = (e) => {
|
|
5410
|
-
e.key === "Escape" &&
|
|
5414
|
+
e.key === "Escape" && jt(!1);
|
|
5411
5415
|
};
|
|
5412
5416
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
5413
|
-
}, [
|
|
5414
|
-
let
|
|
5415
|
-
|
|
5416
|
-
},
|
|
5417
|
-
let t = e.target.value, n = t.trim().length < 3, r =
|
|
5418
|
-
n && (
|
|
5419
|
-
},
|
|
5420
|
-
let e =
|
|
5421
|
-
e.length >= 3 && (
|
|
5422
|
-
},
|
|
5423
|
-
|
|
5417
|
+
}, [At]);
|
|
5418
|
+
let Vn = () => {
|
|
5419
|
+
dn && (dt(Ot.rows), pt(Ot.total), ht(Ot.tabs), _t(Ot.fields), yt(Ot.tabField), xt(Ot.actions ?? []), Ct(Ot.actionRules ?? []), Dt(null), Tt(!1));
|
|
5420
|
+
}, Hn = (e) => {
|
|
5421
|
+
let t = e.target.value, n = t.trim().length < 3, r = Re.some((e) => e.field);
|
|
5422
|
+
n && (Fe(""), r || Vn()), Ne(t), Xt();
|
|
5423
|
+
}, Un = () => {
|
|
5424
|
+
let e = Me.trim();
|
|
5425
|
+
e.length >= 3 && (Fe(e), Xt());
|
|
5426
|
+
}, Wn = () => {
|
|
5427
|
+
Vn(), ze([]), lt([], []), Xt();
|
|
5424
5428
|
};
|
|
5425
5429
|
I(() => {
|
|
5426
|
-
|
|
5430
|
+
Rt === "card" && (tt([]), lt([], []));
|
|
5427
5431
|
}, [
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
+
Ke.current,
|
|
5433
|
+
Ke.pageSize,
|
|
5434
|
+
Ae,
|
|
5435
|
+
Rt
|
|
5432
5436
|
]);
|
|
5433
|
-
let
|
|
5434
|
-
|
|
5437
|
+
let Gn = (e) => {
|
|
5438
|
+
tt((t) => {
|
|
5435
5439
|
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
|
|
5436
|
-
return
|
|
5440
|
+
return lt(n, Sn.filter((e, t) => n.includes(String(qd(e, t, p))))), n;
|
|
5437
5441
|
});
|
|
5438
|
-
},
|
|
5442
|
+
}, Kn = /* @__PURE__ */ Z("div", {
|
|
5439
5443
|
className: "column-visibility-menu",
|
|
5440
5444
|
onClick: (e) => e.stopPropagation(),
|
|
5441
5445
|
children: [/* @__PURE__ */ X(rr, {
|
|
5442
|
-
checked:
|
|
5443
|
-
indeterminate:
|
|
5446
|
+
checked: In,
|
|
5447
|
+
indeterminate: Ln,
|
|
5444
5448
|
onChange: (e) => {
|
|
5445
|
-
|
|
5449
|
+
Ze(e.target.checked ? pn.map((e) => e.key) : pn.slice(0, ge).map((e) => e.key));
|
|
5446
5450
|
},
|
|
5447
5451
|
children: "Select All"
|
|
5448
5452
|
}), /* @__PURE__ */ X("div", {
|
|
5449
5453
|
className: "column-visibility-menu__list",
|
|
5450
|
-
children:
|
|
5451
|
-
checked:
|
|
5452
|
-
disabled:
|
|
5453
|
-
onChange: (t) =>
|
|
5454
|
+
children: pn.map((e) => /* @__PURE__ */ X(rr, {
|
|
5455
|
+
checked: _n.includes(e.key),
|
|
5456
|
+
disabled: _n.includes(e.key) && _n.length <= vn,
|
|
5457
|
+
onChange: (t) => Rn(e.key, t.target.checked),
|
|
5454
5458
|
children: e.label
|
|
5455
5459
|
}, e.key))
|
|
5456
5460
|
})]
|
|
5457
5461
|
});
|
|
5458
5462
|
return /* @__PURE__ */ Z("div", {
|
|
5459
|
-
className: `antd dynamic-list-view${F ? " list-view--compact" : ""} ${c}`.trim(),
|
|
5463
|
+
className: `antd dynamic-list-view${F ? " list-view--compact" : ""}${Se ? " list-view--page-scroll-lock" : ""} ${c}`.trim(),
|
|
5460
5464
|
children: [
|
|
5461
5465
|
i.length > 0 && /* @__PURE__ */ X("div", {
|
|
5462
5466
|
className: "job-list-header",
|
|
@@ -5468,88 +5472,88 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5468
5472
|
align: "center",
|
|
5469
5473
|
justify: "space-between",
|
|
5470
5474
|
children: [/* @__PURE__ */ X(co, {
|
|
5471
|
-
activeKey:
|
|
5472
|
-
tabs:
|
|
5473
|
-
onChange:
|
|
5475
|
+
activeKey: Ae,
|
|
5476
|
+
tabs: kn,
|
|
5477
|
+
onChange: Nn
|
|
5474
5478
|
}), /* @__PURE__ */ Z(ur, {
|
|
5475
5479
|
align: "center",
|
|
5476
5480
|
gap: 8,
|
|
5477
5481
|
children: [
|
|
5478
5482
|
N,
|
|
5479
|
-
|
|
5483
|
+
Dn && /* @__PURE__ */ X(H, {
|
|
5480
5484
|
prefix: /* @__PURE__ */ X(oa, { className: "job-search-icon" }),
|
|
5481
5485
|
placeholder: ne,
|
|
5482
|
-
value:
|
|
5483
|
-
onChange:
|
|
5484
|
-
onPressEnter:
|
|
5486
|
+
value: Me,
|
|
5487
|
+
onChange: Hn,
|
|
5488
|
+
onPressEnter: Un,
|
|
5485
5489
|
allowClear: !0,
|
|
5486
5490
|
className: "job-search-input"
|
|
5487
5491
|
}),
|
|
5488
|
-
!
|
|
5492
|
+
!Mt && we && _e && /* @__PURE__ */ X(q, {
|
|
5489
5493
|
title: "Add",
|
|
5490
5494
|
children: /* @__PURE__ */ X(z, {
|
|
5491
5495
|
"aria-label": "Add",
|
|
5492
5496
|
className: "job-toolbar-icon-button",
|
|
5493
5497
|
icon: /* @__PURE__ */ X(Yi, {}),
|
|
5494
5498
|
onClick: () => {
|
|
5495
|
-
|
|
5499
|
+
qt && ye(qt);
|
|
5496
5500
|
}
|
|
5497
5501
|
})
|
|
5498
5502
|
}),
|
|
5499
|
-
|
|
5503
|
+
Dn && /* @__PURE__ */ X(q, {
|
|
5500
5504
|
title: "Filter",
|
|
5501
5505
|
children: /* @__PURE__ */ X(er, {
|
|
5502
|
-
count:
|
|
5506
|
+
count: Re.filter((e) => e.field && hf(e)).length,
|
|
5503
5507
|
size: "small",
|
|
5504
5508
|
offset: [-2, 2],
|
|
5505
5509
|
children: /* @__PURE__ */ X(z, {
|
|
5506
5510
|
"aria-label": "Filter",
|
|
5507
5511
|
className: "job-toolbar-icon-button",
|
|
5508
5512
|
icon: /* @__PURE__ */ X(Di, {}),
|
|
5509
|
-
onClick: () =>
|
|
5513
|
+
onClick: () => Le(!0)
|
|
5510
5514
|
})
|
|
5511
5515
|
})
|
|
5512
5516
|
}),
|
|
5513
|
-
ie &&
|
|
5517
|
+
ie && Dn && /* @__PURE__ */ Z(ur, {
|
|
5514
5518
|
align: "center",
|
|
5515
5519
|
gap: 6,
|
|
5516
5520
|
children: [/* @__PURE__ */ X(q, {
|
|
5517
5521
|
title: "List View",
|
|
5518
5522
|
children: /* @__PURE__ */ X(z, {
|
|
5519
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5523
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Rt === "list" ? " param-view-toggle-btn--active" : ""}`,
|
|
5520
5524
|
icon: /* @__PURE__ */ X(xa, {}),
|
|
5521
5525
|
onClick: () => {
|
|
5522
|
-
oe?.("list"),
|
|
5526
|
+
oe?.("list"), tt([]), lt([], []);
|
|
5523
5527
|
}
|
|
5524
5528
|
})
|
|
5525
5529
|
}), /* @__PURE__ */ X(q, {
|
|
5526
5530
|
title: "Card View",
|
|
5527
5531
|
children: /* @__PURE__ */ X(z, {
|
|
5528
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5532
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Rt === "card" ? " param-view-toggle-btn--active" : ""}`,
|
|
5529
5533
|
icon: /* @__PURE__ */ X(Ir, {}),
|
|
5530
5534
|
onClick: () => {
|
|
5531
|
-
oe?.("card"),
|
|
5535
|
+
oe?.("card"), tt([]), lt([], []);
|
|
5532
5536
|
}
|
|
5533
5537
|
})
|
|
5534
5538
|
})]
|
|
5535
5539
|
}),
|
|
5536
|
-
m &&
|
|
5540
|
+
m && Dn && /* @__PURE__ */ X(z, {
|
|
5537
5541
|
className: "job-summary-button",
|
|
5538
5542
|
type: "primary",
|
|
5539
|
-
onClick:
|
|
5543
|
+
onClick: zn,
|
|
5540
5544
|
children: g
|
|
5541
5545
|
}),
|
|
5542
5546
|
v && b && /* @__PURE__ */ X(z, {
|
|
5543
5547
|
className: "job-summary-button",
|
|
5544
5548
|
type: "primary",
|
|
5545
|
-
onClick:
|
|
5549
|
+
onClick: Bn,
|
|
5546
5550
|
children: y
|
|
5547
5551
|
})
|
|
5548
5552
|
]
|
|
5549
5553
|
})]
|
|
5550
5554
|
})
|
|
5551
5555
|
}),
|
|
5552
|
-
|
|
5556
|
+
Dn && /* @__PURE__ */ X(Y, { children: /* @__PURE__ */ X(nr, {
|
|
5553
5557
|
className: "job-toolbar-card",
|
|
5554
5558
|
children: /* @__PURE__ */ Z(ur, {
|
|
5555
5559
|
className: "p-flex",
|
|
@@ -5559,24 +5563,24 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5559
5563
|
align: "center",
|
|
5560
5564
|
gap: 3,
|
|
5561
5565
|
children: [
|
|
5562
|
-
|
|
5563
|
-
checked:
|
|
5564
|
-
indeterminate:
|
|
5566
|
+
Rt === "card" && /* @__PURE__ */ X(rr, {
|
|
5567
|
+
checked: Sn.length > 0 && et.length >= Sn.length,
|
|
5568
|
+
indeterminate: et.length > 0 && et.length < Sn.length,
|
|
5565
5569
|
className: "param-card-view__select-all",
|
|
5566
5570
|
onChange: () => {
|
|
5567
|
-
if (
|
|
5571
|
+
if (et.length > 0) tt([]), lt([], []);
|
|
5568
5572
|
else {
|
|
5569
|
-
let e =
|
|
5570
|
-
|
|
5573
|
+
let e = Sn.map((e, t) => String(qd(e, t, p)));
|
|
5574
|
+
tt(e), lt(e, [...Sn]);
|
|
5571
5575
|
}
|
|
5572
5576
|
},
|
|
5573
5577
|
children: "Select All"
|
|
5574
5578
|
}),
|
|
5575
5579
|
/* @__PURE__ */ X(cr, {
|
|
5576
|
-
open:
|
|
5577
|
-
onOpenChange:
|
|
5580
|
+
open: Qe,
|
|
5581
|
+
onOpenChange: $e,
|
|
5578
5582
|
trigger: ["click"],
|
|
5579
|
-
dropdownRender: () =>
|
|
5583
|
+
dropdownRender: () => Kn,
|
|
5580
5584
|
placement: "bottomLeft",
|
|
5581
5585
|
overlayClassName: "column-visibility-dropdown",
|
|
5582
5586
|
children: /* @__PURE__ */ X(z, {
|
|
@@ -5592,10 +5596,10 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5592
5596
|
children: /* @__PURE__ */ X(ui, { className: "job-actions-caret" })
|
|
5593
5597
|
})
|
|
5594
5598
|
}),
|
|
5595
|
-
|
|
5599
|
+
Gt.length > 0 && Be.length > 0 && /* @__PURE__ */ X(cr, {
|
|
5596
5600
|
menu: {
|
|
5597
|
-
items:
|
|
5598
|
-
onClick:
|
|
5601
|
+
items: Gt.map((e) => Qd(e, $d(e, He, Ae))),
|
|
5602
|
+
onClick: Fn
|
|
5599
5603
|
},
|
|
5600
5604
|
trigger: ["click"],
|
|
5601
5605
|
children: /* @__PURE__ */ Z(z, {
|
|
@@ -5613,152 +5617,152 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5613
5617
|
]
|
|
5614
5618
|
})
|
|
5615
5619
|
}),
|
|
5616
|
-
|
|
5620
|
+
Be.length > 0 && /* @__PURE__ */ Z(Ru, {
|
|
5617
5621
|
className: "job-selected-count",
|
|
5618
5622
|
children: [
|
|
5619
5623
|
"Selected (",
|
|
5620
|
-
|
|
5624
|
+
Be.length,
|
|
5621
5625
|
")"
|
|
5622
5626
|
]
|
|
5623
5627
|
})
|
|
5624
5628
|
]
|
|
5625
|
-
}),
|
|
5629
|
+
}), Tn && /* @__PURE__ */ Z(Ru, {
|
|
5626
5630
|
className: "job-search-results-count",
|
|
5627
5631
|
children: [
|
|
5628
5632
|
"Search Results (",
|
|
5629
|
-
|
|
5633
|
+
En,
|
|
5630
5634
|
")"
|
|
5631
5635
|
]
|
|
5632
5636
|
})]
|
|
5633
5637
|
})
|
|
5634
5638
|
}) }),
|
|
5635
|
-
|
|
5636
|
-
filters:
|
|
5639
|
+
ln && /* @__PURE__ */ X(vf, {
|
|
5640
|
+
filters: Re,
|
|
5637
5641
|
onRemove: (e) => {
|
|
5638
|
-
|
|
5642
|
+
ze(Re.filter((t, n) => n !== e)), Xt();
|
|
5639
5643
|
},
|
|
5640
|
-
onClearAll:
|
|
5644
|
+
onClearAll: Wn
|
|
5641
5645
|
}),
|
|
5642
5646
|
/* @__PURE__ */ X("div", {
|
|
5643
|
-
ref:
|
|
5647
|
+
ref: nt,
|
|
5644
5648
|
className: "job-table-measure",
|
|
5645
5649
|
children: /* @__PURE__ */ X(Cr, {
|
|
5646
|
-
spinning:
|
|
5647
|
-
children:
|
|
5650
|
+
spinning: Mt ? D : Qt || wt,
|
|
5651
|
+
children: Rt === "card" ? Sn.length === 0 ? /* @__PURE__ */ X(lr, {
|
|
5648
5652
|
image: lr.PRESENTED_IMAGE_SIMPLE,
|
|
5649
|
-
description:
|
|
5653
|
+
description: On,
|
|
5650
5654
|
className: "param-card-view__empty",
|
|
5651
|
-
children: !
|
|
5655
|
+
children: !Mt && we && _e && qt && !Et && /* @__PURE__ */ X(z, {
|
|
5652
5656
|
type: "primary",
|
|
5653
5657
|
icon: /* @__PURE__ */ X(Yi, {}),
|
|
5654
|
-
onClick: () =>
|
|
5658
|
+
onClick: () => ye(qt),
|
|
5655
5659
|
children: "Add New"
|
|
5656
5660
|
})
|
|
5657
5661
|
}) : /* @__PURE__ */ X("div", {
|
|
5658
5662
|
className: "param-card-view__grid",
|
|
5659
|
-
children:
|
|
5663
|
+
children: Sn.map((e, t) => {
|
|
5660
5664
|
let n = String(qd(e, t, p));
|
|
5661
5665
|
return /* @__PURE__ */ X(mf, {
|
|
5662
5666
|
record: e,
|
|
5663
|
-
fields:
|
|
5664
|
-
selected: P === "checkbox" ?
|
|
5665
|
-
isControlled:
|
|
5666
|
-
onPreview: () =>
|
|
5667
|
-
onSelect: () =>
|
|
5668
|
-
onPopupAction:
|
|
5669
|
-
onRecordClick: ce ? () =>
|
|
5667
|
+
fields: bn,
|
|
5668
|
+
selected: P === "checkbox" ? et.includes(n) : st(e, t),
|
|
5669
|
+
isControlled: Mt,
|
|
5670
|
+
onPreview: () => An(e),
|
|
5671
|
+
onSelect: () => Gn(n),
|
|
5672
|
+
onPopupAction: jn,
|
|
5673
|
+
onRecordClick: ce ? () => ct(e, t) : void 0,
|
|
5670
5674
|
selectionMode: P,
|
|
5671
5675
|
permissions: {
|
|
5672
|
-
canAdd:
|
|
5673
|
-
canEdit:
|
|
5674
|
-
canDelete:
|
|
5676
|
+
canAdd: we,
|
|
5677
|
+
canEdit: Te,
|
|
5678
|
+
canDelete: Ee
|
|
5675
5679
|
}
|
|
5676
5680
|
}, n);
|
|
5677
5681
|
})
|
|
5678
5682
|
}) : /* @__PURE__ */ X(Er, {
|
|
5679
|
-
rowSelection:
|
|
5683
|
+
rowSelection: Dn && P === "checkbox" ? {
|
|
5680
5684
|
type: "checkbox",
|
|
5681
5685
|
fixed: !0,
|
|
5682
5686
|
columnWidth: 48,
|
|
5683
|
-
selectedRowKeys:
|
|
5687
|
+
selectedRowKeys: Be,
|
|
5684
5688
|
onChange: (e, t) => {
|
|
5685
|
-
|
|
5689
|
+
lt(e, t);
|
|
5686
5690
|
},
|
|
5687
5691
|
columnTitle: (() => {
|
|
5688
|
-
let e =
|
|
5692
|
+
let e = Sn.length, t = e > 0 && Be.length >= e, n = Be.length > 0 && !t;
|
|
5689
5693
|
return /* @__PURE__ */ X(rr, {
|
|
5690
5694
|
checked: t,
|
|
5691
5695
|
indeterminate: n,
|
|
5692
5696
|
onChange: () => {
|
|
5693
|
-
n || t ?
|
|
5697
|
+
n || t ? lt([], []) : lt(Sn.map((e, t) => qd(e, t, p)), [...Sn]);
|
|
5694
5698
|
}
|
|
5695
5699
|
});
|
|
5696
5700
|
})()
|
|
5697
5701
|
} : void 0,
|
|
5698
|
-
columns:
|
|
5699
|
-
dataSource:
|
|
5702
|
+
columns: Mn,
|
|
5703
|
+
dataSource: Sn,
|
|
5700
5704
|
size: "middle",
|
|
5701
5705
|
tableLayout: "fixed",
|
|
5702
5706
|
scroll: {
|
|
5703
|
-
x:
|
|
5707
|
+
x: yn || Mt ? "max-content" : void 0,
|
|
5704
5708
|
y: "calc(100vh - 300px)"
|
|
5705
5709
|
},
|
|
5706
5710
|
pagination: !1,
|
|
5707
5711
|
locale: { emptyText: /* @__PURE__ */ X(lr, {
|
|
5708
5712
|
image: lr.PRESENTED_IMAGE_SIMPLE,
|
|
5709
|
-
description:
|
|
5713
|
+
description: On
|
|
5710
5714
|
}) },
|
|
5711
5715
|
className: `${S} ${F ? "list-view-table--compact" : ""}`.trim(),
|
|
5712
5716
|
onRow: ce ? (e, t) => ({
|
|
5713
5717
|
onClick: (n) => {
|
|
5714
|
-
Jd(n.target) ||
|
|
5718
|
+
Jd(n.target) || ct(e, t);
|
|
5715
5719
|
},
|
|
5716
|
-
"aria-selected":
|
|
5720
|
+
"aria-selected": st(e, t)
|
|
5717
5721
|
}) : void 0,
|
|
5718
|
-
rowClassName: le == null ? void 0 : (e, t) =>
|
|
5722
|
+
rowClassName: le == null ? void 0 : (e, t) => st(e, t) ? "list-view-row--active" : "",
|
|
5719
5723
|
rowKey: (e, t) => qd(e, t, p)
|
|
5720
5724
|
})
|
|
5721
5725
|
})
|
|
5722
5726
|
}),
|
|
5723
|
-
|
|
5724
|
-
current:
|
|
5725
|
-
pageSize:
|
|
5726
|
-
total:
|
|
5727
|
+
Dn ? /* @__PURE__ */ X(Zo, {
|
|
5728
|
+
current: Ke.current,
|
|
5729
|
+
pageSize: Ke.pageSize,
|
|
5730
|
+
total: wn,
|
|
5727
5731
|
onChange: (e, t) => {
|
|
5728
|
-
if (
|
|
5729
|
-
j(e, t ??
|
|
5732
|
+
if (Mt && typeof j == "function") {
|
|
5733
|
+
j(e, t ?? Ke.pageSize);
|
|
5730
5734
|
return;
|
|
5731
5735
|
}
|
|
5732
|
-
|
|
5736
|
+
Yt(e);
|
|
5733
5737
|
},
|
|
5734
5738
|
onPageSizeChange: (e) => {
|
|
5735
|
-
if (
|
|
5739
|
+
if (Mt && typeof M == "function") {
|
|
5736
5740
|
M(e);
|
|
5737
5741
|
return;
|
|
5738
5742
|
}
|
|
5739
|
-
|
|
5743
|
+
qe({
|
|
5740
5744
|
current: 1,
|
|
5741
5745
|
pageSize: e
|
|
5742
|
-
}),
|
|
5746
|
+
}), Jt(1, { replace: !0 });
|
|
5743
5747
|
}
|
|
5744
5748
|
}) : void 0,
|
|
5745
5749
|
/* @__PURE__ */ X(Fu, {
|
|
5746
|
-
moduleName:
|
|
5747
|
-
open:
|
|
5748
|
-
filters:
|
|
5749
|
-
onClose: () =>
|
|
5750
|
+
moduleName: xe,
|
|
5751
|
+
open: Ie,
|
|
5752
|
+
filters: Re,
|
|
5753
|
+
onClose: () => Le(!1),
|
|
5750
5754
|
onApply: ({ filters: e }) => {
|
|
5751
|
-
|
|
5755
|
+
ze(e), Xt();
|
|
5752
5756
|
},
|
|
5753
|
-
onReset:
|
|
5757
|
+
onReset: Wn
|
|
5754
5758
|
}),
|
|
5755
5759
|
/* @__PURE__ */ X(Su, {
|
|
5756
|
-
moduleName:
|
|
5757
|
-
open:
|
|
5758
|
-
rows:
|
|
5759
|
-
tabs:
|
|
5760
|
-
total:
|
|
5761
|
-
onClose: () =>
|
|
5760
|
+
moduleName: xe,
|
|
5761
|
+
open: At,
|
|
5762
|
+
rows: ut,
|
|
5763
|
+
tabs: kn,
|
|
5764
|
+
total: wn,
|
|
5765
|
+
onClose: () => jt(!1)
|
|
5762
5766
|
})
|
|
5763
5767
|
]
|
|
5764
5768
|
});
|