@realtek/core-theme 0.0.276 → 0.0.277
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 +348 -348
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -4827,7 +4827,7 @@ function rp(e, t, n = "", r, i = {}, a = [], o) {
|
|
|
4827
4827
|
})
|
|
4828
4828
|
}) : Nf(e, t, s, n), c.length > 0 && /* @__PURE__ */ X("span", {
|
|
4829
4829
|
className: "job-field-actions",
|
|
4830
|
-
children: c.map((e) => Jf(e, t, r))
|
|
4830
|
+
children: c.filter((e) => typeof e.hiddenIf != "function" || !e.hiddenIf(t)).map((e) => Jf(e, t, r))
|
|
4831
4831
|
})]
|
|
4832
4832
|
}), l && /* @__PURE__ */ X(q, {
|
|
4833
4833
|
title: l,
|
|
@@ -5137,143 +5137,143 @@ function Vp({ filters: e, onRemove: t, onClearAll: n }) {
|
|
|
5137
5137
|
]
|
|
5138
5138
|
});
|
|
5139
5139
|
}
|
|
5140
|
-
function Hp({ 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,
|
|
5141
|
-
let
|
|
5142
|
-
current:
|
|
5140
|
+
function Hp({ 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, showFilterButton: y = !0, fieldButtonLabel: b = "View Field", fieldButtonRoute: x, tabs: S, tableClassName: C = "job-list-table", fields: w = Fp, fieldOverrides: T = null, extraFields: E = Fp, listName: D = "", loading: O = !1, total: k, current: A, pageSize: j, onPageChange: M, onPageSizeChange: ee, onSearch: te, toolbarExtra: N = null, showSearch: ne = !0, searchPlaceholder: P = "Min 3 Chars, press Enter to search", searchFields: re = Fp, showViewToggle: ie = !1, activeView: ae = "list", onViewChange: oe, createAction: se, onRecordClick: ce, selectedRecordId: le, selectionMode: ue = "checkbox", compact: de = !1, onSelectionChange: fe, selectedSource: pe, onTabChange: me, fetchData: he = Zl, responseMapper: ge = vd, queryParams: F = Ip, defaultVisibleColumnCount: _e = 6, showAdd: ve = !0, lockOuterPageScroll: ye = !1 }) {
|
|
5141
|
+
let be = Wo(), xe = Uo(), Se = Vn(e), Ce = !!ye, { canView: we, canAdd: Te, canEdit: Ee, canDelete: De } = xu(Se), Oe = L(() => F ?? Ip, [JSON.stringify(F ?? Ip)]), [ke] = Ko(), Ae = Np(ke), [je, Me] = R("all"), [Ne, Pe] = R(""), [Fe, Ie] = R(""), [Le, Re] = R(!1), [ze, Be] = R([]), [Ve, He] = R([]), [Ue, We] = R([]), [Ge, Ke] = R(0), [qe, Je] = R({
|
|
5142
|
+
current: Ae,
|
|
5143
5143
|
pageSize: l
|
|
5144
|
-
}), [
|
|
5144
|
+
}), [Ye, Xe] = R({
|
|
5145
5145
|
sort: "",
|
|
5146
5146
|
sortDir: ""
|
|
5147
|
-
}), [
|
|
5147
|
+
}), [Ze, Qe] = R([]), [$e, et] = R(!1), [tt, nt] = R([]);
|
|
5148
5148
|
I(() => (t && d(t), () => {
|
|
5149
5149
|
t && h();
|
|
5150
5150
|
}), [t]), I(() => {
|
|
5151
|
-
if (
|
|
5151
|
+
if (Ce) return document.documentElement.classList.add("listview-page-scroll-lock"), document.body.classList.add("listview-page-scroll-lock"), () => {
|
|
5152
5152
|
document.documentElement.classList.remove("listview-page-scroll-lock"), document.body.classList.remove("listview-page-scroll-lock");
|
|
5153
5153
|
};
|
|
5154
|
-
}, [
|
|
5155
|
-
let
|
|
5154
|
+
}, [Ce]);
|
|
5155
|
+
let rt = ri(null), [it, at] = R(0), ot = ri();
|
|
5156
5156
|
I(() => {
|
|
5157
|
-
let e =
|
|
5157
|
+
let e = rt.current;
|
|
5158
5158
|
if (!e || typeof ResizeObserver > "u") return;
|
|
5159
5159
|
let t = new ResizeObserver((e) => {
|
|
5160
5160
|
let t = e[0]?.contentRect?.width;
|
|
5161
|
-
typeof t == "number" &&
|
|
5161
|
+
typeof t == "number" && at(t);
|
|
5162
5162
|
});
|
|
5163
5163
|
return t.observe(e), () => t.disconnect();
|
|
5164
5164
|
}, []);
|
|
5165
|
-
let
|
|
5166
|
-
let n =
|
|
5167
|
-
n &&
|
|
5168
|
-
},
|
|
5169
|
-
|
|
5170
|
-
}, [
|
|
5165
|
+
let st = (e, t) => String(_p(e, t, p)), ct = (e, t) => String(st(e, t)) === String(le ?? ""), lt = (e, t) => {
|
|
5166
|
+
let n = st(e, t);
|
|
5167
|
+
n && ce?.(e, n);
|
|
5168
|
+
}, ut = (e, t) => {
|
|
5169
|
+
He(e), We(t), fe?.(e, t);
|
|
5170
|
+
}, [dt, ft] = R(s), [pt, mt] = R(s.length), [ht, gt] = R([]), [_t, vt] = R([]), [yt, bt] = R(""), [xt, St] = R([]), [Ct, wt] = R([]), [Tt, Et] = R(!1), [Dt, Ot] = R(null), [kt, At] = R(null), [jt, Mt] = R(!1), Nt = !!(M || ee || te), Pt = Nt ? s : dt, Ft = Nt ? k ?? 0 : pt, It = Nt ? w : _t, Lt = L(() => Pt.some((e) => _f(e)), [Pt]), Rt = L(() => It.some((e) => gf(e)), [It]), zt = Lt || Rt ? "card" : ae, Bt = n.length > 0 ? n : xt, Vt = r.length > 0 ? r : Ct, Ht = L(() => Ep(Bt), [Bt]), Ut = L(() => new Map(Tp(Ht).map((e) => [e.key, e])), [Ht]), Wt = L(() => wp(Ht, (e) => {
|
|
5171
5171
|
let t = Cu(e);
|
|
5172
|
-
return t === "add" && !
|
|
5172
|
+
return t === "add" && !Te || t === "edit" && !Ee || t === "delete" && !De || !In(e.permission, Se) || e.showInList === !1 ? !1 : e.allowedTabs ? e.allowedTabs.some((e) => fp(e) === fp(je)) : !0;
|
|
5173
5173
|
}), [
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
we,
|
|
5174
|
+
Ht,
|
|
5175
|
+
je,
|
|
5177
5176
|
Te,
|
|
5178
5177
|
Ee,
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5178
|
+
De,
|
|
5179
|
+
Se
|
|
5180
|
+
]), Gt = L(() => wp(Wt, (e) => (Ve.length === 1 || e.allowMultiple || e.danger) && Dp(e, Ue) && !Fu(e.key, Ue, Vt, je)), [
|
|
5181
|
+
je,
|
|
5182
|
+
Vt,
|
|
5183
|
+
Ve.length,
|
|
5184
|
+
Ue,
|
|
5185
|
+
Wt
|
|
5186
|
+
]), Kt = typeof e == "string" ? e.trim().length > 0 : !!e, qt = Kt ? `/${Se}-create${se ? `?action=${encodeURIComponent(se)}` : ""}` : "";
|
|
5187
5187
|
I(() => {
|
|
5188
|
-
|
|
5188
|
+
Kt && !we && be("/", { replace: !0 });
|
|
5189
5189
|
}, [
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5190
|
+
we,
|
|
5191
|
+
Kt,
|
|
5192
|
+
be
|
|
5193
5193
|
]);
|
|
5194
|
-
let
|
|
5195
|
-
let n = new URLSearchParams(
|
|
5194
|
+
let Jt = (e, { replace: t = !1 } = {}) => {
|
|
5195
|
+
let n = new URLSearchParams(ke);
|
|
5196
5196
|
Pp(n);
|
|
5197
5197
|
let r = [n.toString(), e > 1 ? `p${e}` : ""].filter(Boolean).join("&");
|
|
5198
|
-
r !==
|
|
5199
|
-
pathname:
|
|
5198
|
+
r !== xe.search.replace(/^\?/, "") && be({
|
|
5199
|
+
pathname: xe.pathname,
|
|
5200
5200
|
search: r ? `?${r}` : ""
|
|
5201
5201
|
}, { replace: t });
|
|
5202
|
-
},
|
|
5203
|
-
|
|
5202
|
+
}, Yt = (e, t) => {
|
|
5203
|
+
Je((t) => ({
|
|
5204
5204
|
...t,
|
|
5205
5205
|
current: e
|
|
5206
|
-
})),
|
|
5207
|
-
},
|
|
5208
|
-
|
|
5209
|
-
}, { config:
|
|
5210
|
-
let t =
|
|
5211
|
-
|
|
5206
|
+
})), Jt(e, t);
|
|
5207
|
+
}, Xt = () => {
|
|
5208
|
+
Yt(1, { replace: !0 });
|
|
5209
|
+
}, { config: Zt, loading: Qt, error: $t } = mu(!Nt && Kt ? e : null), en = ei((e) => {
|
|
5210
|
+
let t = Ye.sort === e, n = Op(Ye.sortDir, t), r = n ? String(e) : "";
|
|
5211
|
+
Xe({
|
|
5212
5212
|
sort: r,
|
|
5213
5213
|
sortDir: n
|
|
5214
|
-
}), typeof
|
|
5214
|
+
}), typeof te == "function" && te(r, n), Xt();
|
|
5215
5215
|
}, [
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5216
|
+
te,
|
|
5217
|
+
Xt,
|
|
5218
|
+
Ye.sort,
|
|
5219
|
+
Ye.sortDir
|
|
5220
5220
|
]);
|
|
5221
5221
|
I(() => {
|
|
5222
|
-
|
|
5222
|
+
Je((e) => e.current === Ae ? e : {
|
|
5223
5223
|
...e,
|
|
5224
|
-
current:
|
|
5224
|
+
current: Ae
|
|
5225
5225
|
});
|
|
5226
|
-
}, [
|
|
5227
|
-
|
|
5228
|
-
let t = Mp(
|
|
5226
|
+
}, [Ae]), I(() => {
|
|
5227
|
+
Nt && Je((e) => {
|
|
5228
|
+
let t = Mp(A ?? e.current), n = Number(j) > 0 ? Number(j) : e.pageSize;
|
|
5229
5229
|
return e.current === t && e.pageSize === n ? e : {
|
|
5230
5230
|
current: t,
|
|
5231
5231
|
pageSize: n
|
|
5232
5232
|
};
|
|
5233
5233
|
});
|
|
5234
5234
|
}, [
|
|
5235
|
-
k,
|
|
5236
5235
|
A,
|
|
5237
|
-
|
|
5236
|
+
j,
|
|
5237
|
+
Nt
|
|
5238
5238
|
]);
|
|
5239
|
-
let
|
|
5239
|
+
let tn = xe.state?.refreshTimestamp;
|
|
5240
5240
|
I(() => {
|
|
5241
|
-
|
|
5242
|
-
}, [
|
|
5243
|
-
let
|
|
5244
|
-
let e = [...Array.isArray(
|
|
5241
|
+
tn && (ut([], []), Ke((e) => e + 1));
|
|
5242
|
+
}, [tn]);
|
|
5243
|
+
let nn = L(() => {
|
|
5244
|
+
let e = [...Array.isArray(S) ? S : [], ...ht], t = mp(je);
|
|
5245
5245
|
return e.find((e, n) => mp(pp(e, n)) === t);
|
|
5246
5246
|
}, [
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
]),
|
|
5247
|
+
je,
|
|
5248
|
+
ht,
|
|
5249
|
+
S
|
|
5250
|
+
]), rn = nn?.field ?? nn?.fieldName ?? nn?.filterField ?? nn?.dataIndex ?? yt, an = hp(je) ? "" : je, on = !an && !hp(je) && fp(rn).length > 0, sn = Fe.trim().length >= 3, cn = sn ? Fe.trim() : "", ln = ze.some((e) => e.field), un = jp({
|
|
5251
5251
|
moduleName: e,
|
|
5252
|
-
activeTabScope:
|
|
5253
|
-
pageSize:
|
|
5254
|
-
sort:
|
|
5255
|
-
sortDir:
|
|
5256
|
-
queryParams:
|
|
5257
|
-
}),
|
|
5252
|
+
activeTabScope: an,
|
|
5253
|
+
pageSize: qe.pageSize,
|
|
5254
|
+
sort: Ye.sort,
|
|
5255
|
+
sortDir: Ye.sortDir,
|
|
5256
|
+
queryParams: Oe
|
|
5257
|
+
}), dn = qe.current === 1 && kt?.key === un;
|
|
5258
5258
|
I(() => {
|
|
5259
|
-
if (
|
|
5260
|
-
if (!
|
|
5261
|
-
|
|
5259
|
+
if (Nt) return;
|
|
5260
|
+
if (!Kt) {
|
|
5261
|
+
ft([]), mt(0), gt([]), vt([]), bt(""), St([]), wt([]), Ot(null);
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
|
-
let t = !1, n =
|
|
5265
|
-
return
|
|
5266
|
-
scope:
|
|
5267
|
-
sort:
|
|
5268
|
-
sortDir:
|
|
5269
|
-
search:
|
|
5270
|
-
filters:
|
|
5271
|
-
queryParams:
|
|
5264
|
+
let t = !1, n = sn && pt > qe.pageSize, r = n ? pt : qe.pageSize, i = n ? 0 : (qe.current - 1) * qe.pageSize;
|
|
5265
|
+
return Et(!(!sn && !ln && qe.current === 1 && dn)), Ot(null), he(e, r, i, {
|
|
5266
|
+
scope: an,
|
|
5267
|
+
sort: Ye.sort,
|
|
5268
|
+
sortDir: Ye.sortDir,
|
|
5269
|
+
search: cn,
|
|
5270
|
+
filters: ze,
|
|
5271
|
+
queryParams: Oe
|
|
5272
5272
|
}).then((n) => {
|
|
5273
5273
|
if (t) return;
|
|
5274
|
-
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } =
|
|
5275
|
-
|
|
5276
|
-
key:
|
|
5274
|
+
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ge(n, e);
|
|
5275
|
+
ft(r), mt(i), gt(a), vt(o), bt(s), St(c), wt(l), !sn && !ln && qe.current === 1 && At({
|
|
5276
|
+
key: un,
|
|
5277
5277
|
rows: r,
|
|
5278
5278
|
total: i,
|
|
5279
5279
|
tabs: a,
|
|
@@ -5283,35 +5283,35 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5283
5283
|
actionRules: l
|
|
5284
5284
|
});
|
|
5285
5285
|
}).catch((e) => {
|
|
5286
|
-
t || (
|
|
5286
|
+
t || (ft([]), mt(0), gt([]), vt([]), bt(""), St([]), wt([]), Ot(e.message), Kt && J.error("Invalid module name or data could not be loaded."));
|
|
5287
5287
|
}).finally(() => {
|
|
5288
|
-
t ||
|
|
5288
|
+
t || Et(!1);
|
|
5289
5289
|
}), () => {
|
|
5290
5290
|
t = !0;
|
|
5291
5291
|
};
|
|
5292
5292
|
}, [
|
|
5293
|
-
sn,
|
|
5294
|
-
rn,
|
|
5295
|
-
Re,
|
|
5296
|
-
ln,
|
|
5297
|
-
me,
|
|
5298
5293
|
cn,
|
|
5299
|
-
|
|
5300
|
-
|
|
5294
|
+
an,
|
|
5295
|
+
ze,
|
|
5301
5296
|
un,
|
|
5302
|
-
e,
|
|
5303
|
-
ft,
|
|
5304
|
-
Ke.current,
|
|
5305
|
-
Ke.pageSize,
|
|
5306
|
-
We,
|
|
5307
5297
|
he,
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5298
|
+
ln,
|
|
5299
|
+
sn,
|
|
5300
|
+
Kt,
|
|
5301
|
+
dn,
|
|
5302
|
+
e,
|
|
5303
|
+
pt,
|
|
5304
|
+
qe.current,
|
|
5305
|
+
qe.pageSize,
|
|
5306
|
+
Ge,
|
|
5307
|
+
ge,
|
|
5308
|
+
Ye.sort,
|
|
5309
|
+
Ye.sortDir,
|
|
5310
|
+
Oe
|
|
5311
5311
|
]);
|
|
5312
|
-
let
|
|
5313
|
-
let e =
|
|
5314
|
-
let t = cf(e), n = i.get(t) ?? {}, r = t &&
|
|
5312
|
+
let fn = L(() => {
|
|
5313
|
+
let e = Nt && Array.isArray(w) && w.length, t = !Nt && Array.isArray(_t) && _t.length, n = !$t && Array.isArray(Zt) && Zt.length, r = e ? w : t ? _t : n ? Zt : [], i = new Map(_t.map((e) => [cf(e), e]).filter(([e]) => e)), a = r.map((e) => {
|
|
5314
|
+
let t = cf(e), n = i.get(t) ?? {}, r = t && T && typeof T == "object" ? T[t] : null, a = r?.renderConfig ? {
|
|
5315
5315
|
...n.renderConfig ?? e.renderConfig ?? {},
|
|
5316
5316
|
...r.renderConfig
|
|
5317
5317
|
} : e.renderConfig ?? n.renderConfig ?? null;
|
|
@@ -5323,7 +5323,7 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5323
5323
|
key: t,
|
|
5324
5324
|
label: sf(r ?? e) ?? sf(e) ?? sf(n)
|
|
5325
5325
|
};
|
|
5326
|
-
}).filter((e) => e.key && e.label), o = (Array.isArray(
|
|
5326
|
+
}).filter((e) => e.key && e.label), o = (Array.isArray(E) ? E : []).map((e, t) => {
|
|
5327
5327
|
let n = cf(e);
|
|
5328
5328
|
return n ? {
|
|
5329
5329
|
...e,
|
|
@@ -5335,86 +5335,86 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5335
5335
|
}).filter(Boolean);
|
|
5336
5336
|
return Uf([...a, ...o]);
|
|
5337
5337
|
}, [
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
C,
|
|
5341
|
-
T,
|
|
5338
|
+
Zt,
|
|
5339
|
+
$t,
|
|
5342
5340
|
w,
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5341
|
+
E,
|
|
5342
|
+
T,
|
|
5343
|
+
Nt,
|
|
5344
|
+
_t
|
|
5345
|
+
]), pn = L(() => fn.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible == "string" ? e.isVisible.toLowerCase() === "true" : !0).map((e) => ({
|
|
5346
5346
|
key: e.key,
|
|
5347
5347
|
label: e.label
|
|
5348
|
-
})), [
|
|
5349
|
-
let e =
|
|
5348
|
+
})), [fn]), mn = pn.map((e) => e.key), hn = Ze.filter((e) => mn.includes(e)), gn = hn.length ? hn : pn.slice(0, _e).map((e) => e.key), _n = Math.min(_e, pn.length), vn = gn.length > _e, yn = L(() => fn.filter((e) => !e.cardHidden && (e.tableHidden || gn.includes(e.key))), [fn, gn]), bn = L(() => {
|
|
5349
|
+
let e = Ne.toLowerCase(), t = Pt, n = on ? t.filter((e) => gp(e, je, nn, fn, rn)) : t, r = re.length ? fn.filter((e) => re.includes(e.key)) : fn;
|
|
5350
5350
|
return !e || e.length < 3 ? n : n.filter((t) => r.some((n) => String(vf(t, n.key)).toLowerCase().includes(e) || Yf(n).some((n) => String(vf(t, n)).toLowerCase().includes(e))));
|
|
5351
5351
|
}, [
|
|
5352
|
-
|
|
5353
|
-
tn,
|
|
5352
|
+
je,
|
|
5354
5353
|
nn,
|
|
5355
|
-
|
|
5356
|
-
Nt,
|
|
5357
|
-
dn,
|
|
5358
|
-
Me,
|
|
5359
|
-
P
|
|
5360
|
-
]), bn = L(() => {
|
|
5361
|
-
if (!on) return yn;
|
|
5362
|
-
let e = (Ke.current - 1) * Ke.pageSize;
|
|
5363
|
-
return yn.slice(e, e + Ke.pageSize);
|
|
5364
|
-
}, [
|
|
5365
|
-
yn,
|
|
5354
|
+
rn,
|
|
5366
5355
|
on,
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5356
|
+
Pt,
|
|
5357
|
+
fn,
|
|
5358
|
+
Ne,
|
|
5359
|
+
re
|
|
5360
|
+
]), xn = L(() => {
|
|
5361
|
+
if (!sn) return bn;
|
|
5362
|
+
let e = (qe.current - 1) * qe.pageSize;
|
|
5363
|
+
return bn.slice(e, e + qe.pageSize);
|
|
5364
|
+
}, [
|
|
5365
|
+
bn,
|
|
5366
|
+
sn,
|
|
5367
|
+
qe.current,
|
|
5368
|
+
qe.pageSize
|
|
5369
|
+
]), Sn = sn ? bn.length : Ft, Cn = Fe.trim().length >= 3, wn = String(bn.length).padStart(2, "0"), Tn = Ft > 0 || Pt.length > 0, En = Kt ? Dt ? "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.", Dn = L(() => {
|
|
5370
|
+
let t = Array.isArray(S) ? S : [];
|
|
5371
|
+
return t.length ? t : ht.length ? ht : [{
|
|
5372
5372
|
key: "all",
|
|
5373
5373
|
title: e ?? "List",
|
|
5374
|
-
count:
|
|
5374
|
+
count: Sn
|
|
5375
5375
|
}];
|
|
5376
5376
|
}, [
|
|
5377
5377
|
e,
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5378
|
+
ht,
|
|
5379
|
+
Sn,
|
|
5380
|
+
S
|
|
5381
5381
|
]);
|
|
5382
5382
|
I(() => {
|
|
5383
|
-
if (!
|
|
5384
|
-
let e = mp(
|
|
5385
|
-
if (!
|
|
5386
|
-
let e = pp(
|
|
5387
|
-
e &&
|
|
5388
|
-
}
|
|
5389
|
-
}, [
|
|
5390
|
-
if (
|
|
5391
|
-
|
|
5392
|
-
let e =
|
|
5393
|
-
t &&
|
|
5394
|
-
}, [
|
|
5395
|
-
let
|
|
5396
|
-
|
|
5397
|
-
background:
|
|
5398
|
-
moduleName:
|
|
5383
|
+
if (!Dn.length) return;
|
|
5384
|
+
let e = mp(je);
|
|
5385
|
+
if (!Dn.some((t, n) => mp(pp(t, n)) === e)) {
|
|
5386
|
+
let e = pp(Dn[0], 0);
|
|
5387
|
+
e && Me(String(e));
|
|
5388
|
+
}
|
|
5389
|
+
}, [je, Dn]), I(() => {
|
|
5390
|
+
if (pe === void 0 || !Dn.length || pe === ot.current) return;
|
|
5391
|
+
ot.current = pe;
|
|
5392
|
+
let e = Dn.find((e, t) => mp(pp(e, t)) === mp(pe)), t = e ? String(pp(e, Dn.indexOf(e))) : "";
|
|
5393
|
+
t && Me((e) => t === e ? e : t);
|
|
5394
|
+
}, [Dn, pe]);
|
|
5395
|
+
let On = (e) => {
|
|
5396
|
+
be("/popup/preview", { state: {
|
|
5397
|
+
background: xe,
|
|
5398
|
+
moduleName: Se,
|
|
5399
5399
|
record: e,
|
|
5400
|
-
fields:
|
|
5400
|
+
fields: fn.map((e) => {
|
|
5401
5401
|
let t = {};
|
|
5402
5402
|
return Object.entries(e).forEach(([e, n]) => {
|
|
5403
5403
|
typeof n != "function" && (t[e] = n);
|
|
5404
5404
|
}), t;
|
|
5405
5405
|
})
|
|
5406
5406
|
} });
|
|
5407
|
-
},
|
|
5407
|
+
}, kn = (e, t) => {
|
|
5408
5408
|
let n = Df(e, t), r = n.startsWith("/") ? n : `/${n}`, i = t?._id ?? t?.id;
|
|
5409
|
-
|
|
5410
|
-
background:
|
|
5409
|
+
be(r, { state: {
|
|
5410
|
+
background: xe,
|
|
5411
5411
|
selectedIds: i === void 0 ? [] : [i],
|
|
5412
5412
|
selectedRecords: [t],
|
|
5413
|
-
moduleName:
|
|
5413
|
+
moduleName: Se,
|
|
5414
5414
|
popupContext: {},
|
|
5415
5415
|
popupAction: {}
|
|
5416
5416
|
} });
|
|
5417
|
-
},
|
|
5417
|
+
}, An = L(() => {
|
|
5418
5418
|
let e = {
|
|
5419
5419
|
dataIndex: "icons",
|
|
5420
5420
|
key: "icons",
|
|
@@ -5428,7 +5428,7 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5428
5428
|
type: "button",
|
|
5429
5429
|
className: "job-row-eye-button",
|
|
5430
5430
|
"aria-label": "Preview job",
|
|
5431
|
-
onClick: () =>
|
|
5431
|
+
onClick: () => On(t),
|
|
5432
5432
|
children: /* @__PURE__ */ X("img", {
|
|
5433
5433
|
src: rf,
|
|
5434
5434
|
alt: "",
|
|
@@ -5439,69 +5439,69 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5439
5439
|
children: /* @__PURE__ */ X(Wa, { className: "job-row-linkedin-icon" })
|
|
5440
5440
|
})]
|
|
5441
5441
|
})
|
|
5442
|
-
}, t =
|
|
5443
|
-
let n =
|
|
5442
|
+
}, t = fn.filter((e) => gn.includes(e.key)).map((e, t) => {
|
|
5443
|
+
let n = Ye.sort === e.key ? Ye.sortDir : "";
|
|
5444
5444
|
return {
|
|
5445
5445
|
title: Ap({
|
|
5446
5446
|
label: e.label,
|
|
5447
5447
|
sortDir: n,
|
|
5448
|
-
sortable:
|
|
5449
|
-
onSort: () =>
|
|
5448
|
+
sortable: Tn,
|
|
5449
|
+
onSort: () => en(e.key)
|
|
5450
5450
|
}),
|
|
5451
5451
|
dataIndex: e.key,
|
|
5452
5452
|
key: e.key,
|
|
5453
5453
|
fixed: t === 0 ? "left" : void 0,
|
|
5454
5454
|
ellipsis: { showTitle: !1 },
|
|
5455
|
-
width: dp(e,
|
|
5456
|
-
render: (t, n) => rp(e, n,
|
|
5457
|
-
canAdd:
|
|
5458
|
-
canEdit:
|
|
5459
|
-
canDelete:
|
|
5460
|
-
},
|
|
5455
|
+
width: dp(e, xn),
|
|
5456
|
+
render: (t, n) => rp(e, n, Fe, kn, {
|
|
5457
|
+
canAdd: Te,
|
|
5458
|
+
canEdit: Ee,
|
|
5459
|
+
canDelete: De
|
|
5460
|
+
}, Vt, an)
|
|
5461
5461
|
};
|
|
5462
5462
|
});
|
|
5463
|
-
if (!(
|
|
5464
|
-
let n = e.width + (
|
|
5463
|
+
if (!(vn || Nt) && it > 0 && t.length > 0) {
|
|
5464
|
+
let n = e.width + (Tn && ue === "checkbox" ? 48 : 0) + up, r = t.reduce((e, t) => e + t.width, 0), i = it - n - r;
|
|
5465
5465
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
5466
5466
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
5467
5467
|
});
|
|
5468
5468
|
}
|
|
5469
5469
|
return [e, ...t];
|
|
5470
5470
|
}, [
|
|
5471
|
-
|
|
5472
|
-
we,
|
|
5473
|
-
Ee,
|
|
5471
|
+
je,
|
|
5474
5472
|
Te,
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5473
|
+
De,
|
|
5474
|
+
Ee,
|
|
5475
|
+
Fe,
|
|
5476
|
+
Vt,
|
|
5477
|
+
en,
|
|
5478
|
+
vn,
|
|
5479
|
+
Tn,
|
|
5480
|
+
Nt,
|
|
5481
|
+
xe,
|
|
5482
5482
|
e,
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
]),
|
|
5493
|
-
let t =
|
|
5494
|
-
if (
|
|
5483
|
+
be,
|
|
5484
|
+
fn,
|
|
5485
|
+
xn,
|
|
5486
|
+
ue,
|
|
5487
|
+
Ye.sort,
|
|
5488
|
+
Ye.sortDir,
|
|
5489
|
+
it,
|
|
5490
|
+
Wt,
|
|
5491
|
+
gn
|
|
5492
|
+
]), jn = ei((e) => {
|
|
5493
|
+
let t = Dn.find((t, n) => mp(pp(t, n)) === mp(e)), n = String(t ? pp(t, Dn.indexOf(t)) : e);
|
|
5494
|
+
if (Me(n), He([]), We([]), Xt(), typeof me == "function") {
|
|
5495
5495
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
5496
|
-
|
|
5496
|
+
ot.current = e, me(e);
|
|
5497
5497
|
}
|
|
5498
5498
|
}, [
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5499
|
+
me,
|
|
5500
|
+
Dn,
|
|
5501
|
+
Xt
|
|
5502
5502
|
]);
|
|
5503
|
-
function
|
|
5504
|
-
let r =
|
|
5503
|
+
function Mn(e, t, n) {
|
|
5504
|
+
let r = Ut.get(String(e));
|
|
5505
5505
|
if (r && r.actionType !== "group") {
|
|
5506
5506
|
if (typeof u == "function" && u({
|
|
5507
5507
|
key: r.key,
|
|
@@ -5530,24 +5530,24 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5530
5530
|
records: n
|
|
5531
5531
|
})
|
|
5532
5532
|
}).then(() => {
|
|
5533
|
-
J.success(`${r.label} completed`),
|
|
5533
|
+
J.success(`${r.label} completed`), Ke((e) => e + 1);
|
|
5534
5534
|
}).catch((e) => J.error(e.message || `${r.label} failed`));
|
|
5535
5535
|
return;
|
|
5536
5536
|
}
|
|
5537
5537
|
if (r.route) {
|
|
5538
5538
|
let e = n[0] ?? {}, i = Df(r.route, e), a = i.startsWith("/") ? i : `/${i}`;
|
|
5539
5539
|
if (r.route.startsWith("/popup/") || r.route.startsWith("popup/")) {
|
|
5540
|
-
let i = r.popupKey || r.route?.replace(/^\/popup\//i, "") || "", o = /(?:^|\/)(?:quick(?:-|_)?submit|submit)(?:$|\/)/i.test(i), s = new URLSearchParams(
|
|
5540
|
+
let i = r.popupKey || r.route?.replace(/^\/popup\//i, "") || "", o = /(?:^|\/)(?:quick(?:-|_)?submit|submit)(?:$|\/)/i.test(i), s = new URLSearchParams(xe.search).get("jobId"), c = r.popupState?.jobId ?? r.popupState?.jobID ?? r.popupState?.jobId ?? e.jobId ?? e.job?.id ?? e.job?._id ?? s, l = r.popupState?.candidateId ?? r.popupState?.applicantId ?? e.id ?? e._id ?? e.applicantId ?? e.candidateId;
|
|
5541
5541
|
if (o && c && l) {
|
|
5542
5542
|
let e = new URLSearchParams();
|
|
5543
|
-
e.set("candidateId", String(l)), e.set("isFromSubmission", "false"),
|
|
5543
|
+
e.set("candidateId", String(l)), e.set("isFromSubmission", "false"), be(`/submission-create/${encodeURIComponent(String(c))}?${e.toString()}`);
|
|
5544
5544
|
return;
|
|
5545
5545
|
}
|
|
5546
|
-
|
|
5547
|
-
background:
|
|
5546
|
+
be(a, { state: {
|
|
5547
|
+
background: xe,
|
|
5548
5548
|
selectedIds: t,
|
|
5549
5549
|
selectedRecords: n,
|
|
5550
|
-
moduleName:
|
|
5550
|
+
moduleName: Se,
|
|
5551
5551
|
popupContext: r.popupState ?? {},
|
|
5552
5552
|
popupAction: {
|
|
5553
5553
|
key: r.key,
|
|
@@ -5559,85 +5559,85 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5559
5559
|
} });
|
|
5560
5560
|
return;
|
|
5561
5561
|
}
|
|
5562
|
-
|
|
5562
|
+
be(a);
|
|
5563
5563
|
}
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
5566
|
-
function
|
|
5567
|
-
let t = Tp(
|
|
5568
|
-
t && Cp(t,
|
|
5566
|
+
function Nn({ key: e }) {
|
|
5567
|
+
let t = Tp(Gt).find((t) => String(t.key) === String(e));
|
|
5568
|
+
t && Cp(t, Ue, je) || Mn(e, Ve, Ue);
|
|
5569
5569
|
}
|
|
5570
|
-
let
|
|
5571
|
-
|
|
5572
|
-
let r =
|
|
5573
|
-
return t ? i.includes(e) ? i : [...i, e] : i.length <=
|
|
5570
|
+
let Pn = gn.length === pn.length, Fn = gn.length > 0 && !Pn, Ln = (e, t) => {
|
|
5571
|
+
Qe((n) => {
|
|
5572
|
+
let r = pn.slice(0, _e).map((e) => e.key), i = n.length ? n : r;
|
|
5573
|
+
return t ? i.includes(e) ? i : [...i, e] : i.length <= _n ? i : i.filter((t) => t !== e);
|
|
5574
5574
|
});
|
|
5575
|
-
},
|
|
5575
|
+
}, Rn = () => {
|
|
5576
5576
|
if (typeof f == "function") {
|
|
5577
5577
|
f();
|
|
5578
5578
|
return;
|
|
5579
5579
|
}
|
|
5580
5580
|
if (_) {
|
|
5581
|
-
|
|
5581
|
+
be(_);
|
|
5582
5582
|
return;
|
|
5583
5583
|
}
|
|
5584
|
-
|
|
5585
|
-
},
|
|
5586
|
-
|
|
5584
|
+
Mt(!0);
|
|
5585
|
+
}, zn = () => {
|
|
5586
|
+
x && be(x);
|
|
5587
5587
|
};
|
|
5588
5588
|
I(() => {
|
|
5589
|
-
if (!
|
|
5589
|
+
if (!jt) return;
|
|
5590
5590
|
let e = (e) => {
|
|
5591
|
-
e.key === "Escape" &&
|
|
5591
|
+
e.key === "Escape" && Mt(!1);
|
|
5592
5592
|
};
|
|
5593
5593
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
5594
|
-
}, [
|
|
5595
|
-
let
|
|
5596
|
-
|
|
5597
|
-
},
|
|
5598
|
-
let t = e.target.value, n = t.trim().length < 3, r =
|
|
5599
|
-
n && (
|
|
5600
|
-
}, Hn = () => {
|
|
5601
|
-
let e = Me.trim();
|
|
5602
|
-
e.length >= 3 && (Fe(e), Yt());
|
|
5594
|
+
}, [jt]);
|
|
5595
|
+
let Bn = () => {
|
|
5596
|
+
dn && (ft(kt.rows), mt(kt.total), gt(kt.tabs), vt(kt.fields), bt(kt.tabField), St(kt.actions ?? []), wt(kt.actionRules ?? []), Ot(null), Et(!1));
|
|
5597
|
+
}, Hn = (e) => {
|
|
5598
|
+
let t = e.target.value, n = t.trim().length < 3, r = ze.some((e) => e.field);
|
|
5599
|
+
n && (Ie(""), r || Bn()), Pe(t), Xt();
|
|
5603
5600
|
}, Un = () => {
|
|
5604
|
-
|
|
5601
|
+
let e = Ne.trim();
|
|
5602
|
+
e.length >= 3 && (Ie(e), Xt());
|
|
5603
|
+
}, Wn = () => {
|
|
5604
|
+
Bn(), Be([]), ut([], []), Xt();
|
|
5605
5605
|
};
|
|
5606
5606
|
I(() => {
|
|
5607
|
-
|
|
5607
|
+
zt === "card" && (nt([]), ut([], []));
|
|
5608
5608
|
}, [
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5609
|
+
qe.current,
|
|
5610
|
+
qe.pageSize,
|
|
5611
|
+
je,
|
|
5612
|
+
zt
|
|
5613
5613
|
]);
|
|
5614
|
-
let
|
|
5615
|
-
|
|
5614
|
+
let Gn = (e) => {
|
|
5615
|
+
nt((t) => {
|
|
5616
5616
|
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
|
|
5617
|
-
return
|
|
5617
|
+
return ut(n, xn.filter((e, t) => n.includes(String(_p(e, t, p))))), n;
|
|
5618
5618
|
});
|
|
5619
|
-
},
|
|
5619
|
+
}, Kn = /* @__PURE__ */ Z("div", {
|
|
5620
5620
|
className: "column-visibility-menu",
|
|
5621
5621
|
onClick: (e) => e.stopPropagation(),
|
|
5622
5622
|
children: [/* @__PURE__ */ X(ui, {
|
|
5623
|
-
checked:
|
|
5624
|
-
indeterminate:
|
|
5623
|
+
checked: Pn,
|
|
5624
|
+
indeterminate: Fn,
|
|
5625
5625
|
onChange: (e) => {
|
|
5626
|
-
|
|
5626
|
+
Qe(e.target.checked ? pn.map((e) => e.key) : pn.slice(0, _e).map((e) => e.key));
|
|
5627
5627
|
},
|
|
5628
5628
|
children: "Select All"
|
|
5629
5629
|
}), /* @__PURE__ */ X("div", {
|
|
5630
5630
|
className: "column-visibility-menu__list",
|
|
5631
|
-
children:
|
|
5632
|
-
checked:
|
|
5633
|
-
disabled:
|
|
5634
|
-
onChange: (t) =>
|
|
5631
|
+
children: pn.map((e) => /* @__PURE__ */ X(ui, {
|
|
5632
|
+
checked: gn.includes(e.key),
|
|
5633
|
+
disabled: gn.includes(e.key) && gn.length <= _n,
|
|
5634
|
+
onChange: (t) => Ln(e.key, t.target.checked),
|
|
5635
5635
|
children: e.label
|
|
5636
5636
|
}, e.key))
|
|
5637
5637
|
})]
|
|
5638
5638
|
});
|
|
5639
5639
|
return /* @__PURE__ */ Z("div", {
|
|
5640
|
-
className: `antd dynamic-list-view${
|
|
5640
|
+
className: `antd dynamic-list-view${de ? " list-view--compact" : ""}${Ce ? " list-view--page-scroll-lock" : ""} ${c}`.trim(),
|
|
5641
5641
|
children: [
|
|
5642
5642
|
i.length > 0 && /* @__PURE__ */ X("div", {
|
|
5643
5643
|
className: "job-list-header",
|
|
@@ -5649,67 +5649,67 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5649
5649
|
align: "center",
|
|
5650
5650
|
justify: "space-between",
|
|
5651
5651
|
children: [/* @__PURE__ */ X(_s, {
|
|
5652
|
-
activeKey:
|
|
5653
|
-
tabs:
|
|
5654
|
-
onChange:
|
|
5652
|
+
activeKey: je,
|
|
5653
|
+
tabs: Dn,
|
|
5654
|
+
onChange: jn
|
|
5655
5655
|
}), /* @__PURE__ */ Z(_i, {
|
|
5656
5656
|
align: "center",
|
|
5657
5657
|
gap: 8,
|
|
5658
5658
|
children: [
|
|
5659
|
-
|
|
5660
|
-
|
|
5659
|
+
N,
|
|
5660
|
+
Tn && /* @__PURE__ */ X(H, {
|
|
5661
5661
|
prefix: /* @__PURE__ */ X(mo, { className: "job-search-icon" }),
|
|
5662
|
-
placeholder:
|
|
5663
|
-
value:
|
|
5664
|
-
onChange:
|
|
5665
|
-
onPressEnter:
|
|
5662
|
+
placeholder: P,
|
|
5663
|
+
value: Ne,
|
|
5664
|
+
onChange: Hn,
|
|
5665
|
+
onPressEnter: Un,
|
|
5666
5666
|
allowClear: !0,
|
|
5667
5667
|
className: "job-search-input"
|
|
5668
5668
|
}),
|
|
5669
|
-
!
|
|
5669
|
+
!Nt && Te && ve && /* @__PURE__ */ X(q, {
|
|
5670
5670
|
title: "Add",
|
|
5671
5671
|
children: /* @__PURE__ */ X(z, {
|
|
5672
5672
|
"aria-label": "Add",
|
|
5673
5673
|
className: "job-toolbar-icon-button",
|
|
5674
5674
|
icon: /* @__PURE__ */ X(no, {}),
|
|
5675
5675
|
onClick: () => {
|
|
5676
|
-
|
|
5676
|
+
qt && be(qt);
|
|
5677
5677
|
}
|
|
5678
5678
|
})
|
|
5679
5679
|
}),
|
|
5680
|
-
|
|
5680
|
+
Tn && /* @__PURE__ */ X(q, {
|
|
5681
5681
|
title: "Filter",
|
|
5682
5682
|
children: /* @__PURE__ */ X(si, {
|
|
5683
|
-
count:
|
|
5683
|
+
count: ze.filter((e) => e.field && Rp(e)).length,
|
|
5684
5684
|
size: "small",
|
|
5685
5685
|
offset: [-2, 2],
|
|
5686
5686
|
children: /* @__PURE__ */ X(z, {
|
|
5687
5687
|
"aria-label": "Filter",
|
|
5688
5688
|
className: "job-toolbar-icon-button",
|
|
5689
5689
|
icon: /* @__PURE__ */ X(Pa, {}),
|
|
5690
|
-
onClick: () =>
|
|
5690
|
+
onClick: () => Re(!0)
|
|
5691
5691
|
})
|
|
5692
5692
|
})
|
|
5693
5693
|
}),
|
|
5694
|
-
|
|
5694
|
+
ie && Tn && /* @__PURE__ */ Z(_i, {
|
|
5695
5695
|
align: "center",
|
|
5696
5696
|
gap: 6,
|
|
5697
5697
|
children: [/* @__PURE__ */ X(q, {
|
|
5698
5698
|
title: "List View",
|
|
5699
5699
|
children: /* @__PURE__ */ X(z, {
|
|
5700
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5700
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${zt === "list" ? " param-view-toggle-btn--active" : ""}`,
|
|
5701
5701
|
icon: /* @__PURE__ */ X(ko, {}),
|
|
5702
5702
|
onClick: () => {
|
|
5703
|
-
|
|
5703
|
+
oe?.("list"), nt([]), ut([], []);
|
|
5704
5704
|
}
|
|
5705
5705
|
})
|
|
5706
5706
|
}), /* @__PURE__ */ X(q, {
|
|
5707
5707
|
title: "Card View",
|
|
5708
5708
|
children: /* @__PURE__ */ X(z, {
|
|
5709
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5709
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${zt === "card" ? " param-view-toggle-btn--active" : ""}`,
|
|
5710
5710
|
icon: /* @__PURE__ */ X(Ui, {}),
|
|
5711
5711
|
onClick: () => {
|
|
5712
|
-
|
|
5712
|
+
oe?.("card"), nt([]), ut([], []);
|
|
5713
5713
|
}
|
|
5714
5714
|
})
|
|
5715
5715
|
})]
|
|
@@ -5717,20 +5717,20 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5717
5717
|
m && /* @__PURE__ */ X(z, {
|
|
5718
5718
|
className: "job-summary-button",
|
|
5719
5719
|
type: "primary",
|
|
5720
|
-
onClick:
|
|
5720
|
+
onClick: Rn,
|
|
5721
5721
|
children: g
|
|
5722
5722
|
}),
|
|
5723
|
-
v &&
|
|
5723
|
+
v && x && /* @__PURE__ */ X(z, {
|
|
5724
5724
|
className: "job-summary-button",
|
|
5725
5725
|
type: "primary",
|
|
5726
|
-
onClick:
|
|
5727
|
-
children:
|
|
5726
|
+
onClick: zn,
|
|
5727
|
+
children: b
|
|
5728
5728
|
})
|
|
5729
5729
|
]
|
|
5730
5730
|
})]
|
|
5731
5731
|
})
|
|
5732
5732
|
}),
|
|
5733
|
-
|
|
5733
|
+
Tn && /* @__PURE__ */ X(Y, { children: /* @__PURE__ */ X(li, {
|
|
5734
5734
|
className: "job-toolbar-card",
|
|
5735
5735
|
children: /* @__PURE__ */ Z(_i, {
|
|
5736
5736
|
className: "p-flex",
|
|
@@ -5740,24 +5740,24 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5740
5740
|
align: "center",
|
|
5741
5741
|
gap: 3,
|
|
5742
5742
|
children: [
|
|
5743
|
-
|
|
5744
|
-
checked:
|
|
5745
|
-
indeterminate:
|
|
5743
|
+
zt === "card" && /* @__PURE__ */ X(ui, {
|
|
5744
|
+
checked: xn.length > 0 && tt.length >= xn.length,
|
|
5745
|
+
indeterminate: tt.length > 0 && tt.length < xn.length,
|
|
5746
5746
|
className: "param-card-view__select-all",
|
|
5747
5747
|
onChange: () => {
|
|
5748
|
-
if (
|
|
5748
|
+
if (tt.length > 0) nt([]), ut([], []);
|
|
5749
5749
|
else {
|
|
5750
|
-
let e =
|
|
5751
|
-
|
|
5750
|
+
let e = xn.map((e, t) => String(_p(e, t, p)));
|
|
5751
|
+
nt(e), ut(e, [...xn]);
|
|
5752
5752
|
}
|
|
5753
5753
|
},
|
|
5754
5754
|
children: "Select All"
|
|
5755
5755
|
}),
|
|
5756
5756
|
/* @__PURE__ */ X(hi, {
|
|
5757
|
-
open:
|
|
5758
|
-
onOpenChange:
|
|
5757
|
+
open: $e,
|
|
5758
|
+
onOpenChange: et,
|
|
5759
5759
|
trigger: ["click"],
|
|
5760
|
-
dropdownRender: () =>
|
|
5760
|
+
dropdownRender: () => Kn,
|
|
5761
5761
|
placement: "bottomLeft",
|
|
5762
5762
|
overlayClassName: "column-visibility-dropdown",
|
|
5763
5763
|
children: /* @__PURE__ */ X(z, {
|
|
@@ -5773,10 +5773,10 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5773
5773
|
children: /* @__PURE__ */ X(_a, { className: "job-actions-caret" })
|
|
5774
5774
|
})
|
|
5775
5775
|
}),
|
|
5776
|
-
|
|
5776
|
+
Gt.length > 0 && Ve.length > 0 && /* @__PURE__ */ X(hi, {
|
|
5777
5777
|
menu: {
|
|
5778
|
-
items:
|
|
5779
|
-
onClick:
|
|
5778
|
+
items: Gt.map((e) => Sp(e, Cp(e, Ue, je))),
|
|
5779
|
+
onClick: Nn
|
|
5780
5780
|
},
|
|
5781
5781
|
trigger: ["click"],
|
|
5782
5782
|
children: /* @__PURE__ */ Z(z, {
|
|
@@ -5794,152 +5794,152 @@ function Hp({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5794
5794
|
]
|
|
5795
5795
|
})
|
|
5796
5796
|
}),
|
|
5797
|
-
|
|
5797
|
+
Ve.length > 0 && /* @__PURE__ */ Z(of, {
|
|
5798
5798
|
className: "job-selected-count",
|
|
5799
5799
|
children: [
|
|
5800
5800
|
"Selected (",
|
|
5801
|
-
|
|
5801
|
+
Ve.length,
|
|
5802
5802
|
")"
|
|
5803
5803
|
]
|
|
5804
5804
|
})
|
|
5805
5805
|
]
|
|
5806
|
-
}),
|
|
5806
|
+
}), Cn && /* @__PURE__ */ Z(of, {
|
|
5807
5807
|
className: "job-search-results-count",
|
|
5808
5808
|
children: [
|
|
5809
5809
|
"Search Results (",
|
|
5810
|
-
|
|
5810
|
+
wn,
|
|
5811
5811
|
")"
|
|
5812
5812
|
]
|
|
5813
5813
|
})]
|
|
5814
5814
|
})
|
|
5815
5815
|
}) }),
|
|
5816
|
-
|
|
5817
|
-
filters:
|
|
5816
|
+
ln && /* @__PURE__ */ X(Vp, {
|
|
5817
|
+
filters: ze,
|
|
5818
5818
|
onRemove: (e) => {
|
|
5819
|
-
ze
|
|
5819
|
+
Be(ze.filter((t, n) => n !== e)), Xt();
|
|
5820
5820
|
},
|
|
5821
|
-
onClearAll:
|
|
5821
|
+
onClearAll: Wn
|
|
5822
5822
|
}),
|
|
5823
5823
|
/* @__PURE__ */ X("div", {
|
|
5824
|
-
ref:
|
|
5824
|
+
ref: rt,
|
|
5825
5825
|
className: "job-table-measure",
|
|
5826
5826
|
children: /* @__PURE__ */ X(Ai, {
|
|
5827
|
-
spinning:
|
|
5828
|
-
children:
|
|
5827
|
+
spinning: Nt ? O : Qt || Tt,
|
|
5828
|
+
children: zt === "card" ? xn.length === 0 ? /* @__PURE__ */ X(gi, {
|
|
5829
5829
|
image: gi.PRESENTED_IMAGE_SIMPLE,
|
|
5830
|
-
description:
|
|
5830
|
+
description: En,
|
|
5831
5831
|
className: "param-card-view__empty",
|
|
5832
|
-
children: !
|
|
5832
|
+
children: !Nt && Te && ve && qt && !Dt && /* @__PURE__ */ X(z, {
|
|
5833
5833
|
type: "primary",
|
|
5834
5834
|
icon: /* @__PURE__ */ X(no, {}),
|
|
5835
|
-
onClick: () =>
|
|
5835
|
+
onClick: () => be(qt),
|
|
5836
5836
|
children: "Add New"
|
|
5837
5837
|
})
|
|
5838
5838
|
}) : /* @__PURE__ */ X("div", {
|
|
5839
5839
|
className: "param-card-view__grid",
|
|
5840
|
-
children:
|
|
5840
|
+
children: xn.map((e, t) => {
|
|
5841
5841
|
let n = String(_p(e, t, p));
|
|
5842
5842
|
return /* @__PURE__ */ X(Lp, {
|
|
5843
5843
|
record: e,
|
|
5844
|
-
fields:
|
|
5845
|
-
selected:
|
|
5846
|
-
isControlled:
|
|
5847
|
-
onPreview: () =>
|
|
5848
|
-
onSelect: () =>
|
|
5849
|
-
onPopupAction:
|
|
5850
|
-
onRecordClick:
|
|
5851
|
-
selectionMode:
|
|
5844
|
+
fields: yn,
|
|
5845
|
+
selected: ue === "checkbox" ? tt.includes(n) : ct(e, t),
|
|
5846
|
+
isControlled: Nt,
|
|
5847
|
+
onPreview: () => On(e),
|
|
5848
|
+
onSelect: () => Gn(n),
|
|
5849
|
+
onPopupAction: kn,
|
|
5850
|
+
onRecordClick: ce ? () => lt(e, t) : void 0,
|
|
5851
|
+
selectionMode: ue,
|
|
5852
5852
|
permissions: {
|
|
5853
|
-
canAdd:
|
|
5854
|
-
canEdit:
|
|
5855
|
-
canDelete:
|
|
5853
|
+
canAdd: Te,
|
|
5854
|
+
canEdit: Ee,
|
|
5855
|
+
canDelete: De
|
|
5856
5856
|
}
|
|
5857
5857
|
}, n);
|
|
5858
5858
|
})
|
|
5859
5859
|
}) : /* @__PURE__ */ X(Ni, {
|
|
5860
|
-
rowSelection:
|
|
5860
|
+
rowSelection: Tn && ue === "checkbox" ? {
|
|
5861
5861
|
type: "checkbox",
|
|
5862
5862
|
fixed: !0,
|
|
5863
5863
|
columnWidth: 48,
|
|
5864
|
-
selectedRowKeys:
|
|
5864
|
+
selectedRowKeys: Ve,
|
|
5865
5865
|
onChange: (e, t) => {
|
|
5866
|
-
|
|
5866
|
+
ut(e, t);
|
|
5867
5867
|
},
|
|
5868
5868
|
columnTitle: (() => {
|
|
5869
|
-
let e =
|
|
5869
|
+
let e = xn.length, t = e > 0 && Ve.length >= e, n = Ve.length > 0 && !t;
|
|
5870
5870
|
return /* @__PURE__ */ X(ui, {
|
|
5871
5871
|
checked: t,
|
|
5872
5872
|
indeterminate: n,
|
|
5873
5873
|
onChange: () => {
|
|
5874
|
-
n || t ?
|
|
5874
|
+
n || t ? ut([], []) : ut(xn.map((e, t) => _p(e, t, p)), [...xn]);
|
|
5875
5875
|
}
|
|
5876
5876
|
});
|
|
5877
5877
|
})()
|
|
5878
5878
|
} : void 0,
|
|
5879
|
-
columns:
|
|
5880
|
-
dataSource:
|
|
5879
|
+
columns: An,
|
|
5880
|
+
dataSource: xn,
|
|
5881
5881
|
size: "middle",
|
|
5882
5882
|
tableLayout: "fixed",
|
|
5883
5883
|
scroll: {
|
|
5884
|
-
x:
|
|
5884
|
+
x: vn || Nt ? "max-content" : void 0,
|
|
5885
5885
|
y: "calc(100vh - 300px)"
|
|
5886
5886
|
},
|
|
5887
5887
|
pagination: !1,
|
|
5888
5888
|
locale: { emptyText: /* @__PURE__ */ X(gi, {
|
|
5889
5889
|
image: gi.PRESENTED_IMAGE_SIMPLE,
|
|
5890
|
-
description:
|
|
5890
|
+
description: En
|
|
5891
5891
|
}) },
|
|
5892
|
-
className: `${
|
|
5893
|
-
onRow:
|
|
5892
|
+
className: `${C} ${de ? "list-view-table--compact" : ""}`.trim(),
|
|
5893
|
+
onRow: ce ? (e, t) => ({
|
|
5894
5894
|
onClick: (n) => {
|
|
5895
|
-
vp(n.target) ||
|
|
5895
|
+
vp(n.target) || lt(e, t);
|
|
5896
5896
|
},
|
|
5897
|
-
"aria-selected":
|
|
5897
|
+
"aria-selected": ct(e, t)
|
|
5898
5898
|
}) : void 0,
|
|
5899
|
-
rowClassName:
|
|
5899
|
+
rowClassName: le == null ? void 0 : (e, t) => ct(e, t) ? "list-view-row--active" : "",
|
|
5900
5900
|
rowKey: (e, t) => _p(e, t, p)
|
|
5901
5901
|
})
|
|
5902
5902
|
})
|
|
5903
5903
|
}),
|
|
5904
|
-
|
|
5905
|
-
current:
|
|
5906
|
-
pageSize:
|
|
5907
|
-
total:
|
|
5904
|
+
Tn ? /* @__PURE__ */ X(uc, {
|
|
5905
|
+
current: qe.current,
|
|
5906
|
+
pageSize: qe.pageSize,
|
|
5907
|
+
total: Sn,
|
|
5908
5908
|
onChange: (e, t) => {
|
|
5909
|
-
if (
|
|
5910
|
-
|
|
5909
|
+
if (Nt && typeof M == "function") {
|
|
5910
|
+
M(e, t ?? qe.pageSize);
|
|
5911
5911
|
return;
|
|
5912
5912
|
}
|
|
5913
|
-
|
|
5913
|
+
Yt(e);
|
|
5914
5914
|
},
|
|
5915
5915
|
onPageSizeChange: (e) => {
|
|
5916
|
-
if (
|
|
5917
|
-
|
|
5916
|
+
if (Nt && typeof ee == "function") {
|
|
5917
|
+
ee(e);
|
|
5918
5918
|
return;
|
|
5919
5919
|
}
|
|
5920
|
-
|
|
5920
|
+
Je({
|
|
5921
5921
|
current: 1,
|
|
5922
5922
|
pageSize: e
|
|
5923
|
-
}),
|
|
5923
|
+
}), Jt(1, { replace: !0 });
|
|
5924
5924
|
}
|
|
5925
5925
|
}) : void 0,
|
|
5926
5926
|
/* @__PURE__ */ X(nf, {
|
|
5927
|
-
moduleName:
|
|
5928
|
-
open:
|
|
5929
|
-
filters:
|
|
5930
|
-
onClose: () =>
|
|
5927
|
+
moduleName: Se,
|
|
5928
|
+
open: Le,
|
|
5929
|
+
filters: ze,
|
|
5930
|
+
onClose: () => Re(!1),
|
|
5931
5931
|
onApply: ({ filters: e }) => {
|
|
5932
|
-
|
|
5932
|
+
Be(e), Xt();
|
|
5933
5933
|
},
|
|
5934
|
-
onReset:
|
|
5934
|
+
onReset: Wn
|
|
5935
5935
|
}),
|
|
5936
5936
|
/* @__PURE__ */ X(Wd, {
|
|
5937
|
-
moduleName:
|
|
5938
|
-
open:
|
|
5939
|
-
rows:
|
|
5940
|
-
tabs:
|
|
5941
|
-
total:
|
|
5942
|
-
onClose: () =>
|
|
5937
|
+
moduleName: Se,
|
|
5938
|
+
open: jt,
|
|
5939
|
+
rows: dt,
|
|
5940
|
+
tabs: Dn,
|
|
5941
|
+
total: Sn,
|
|
5942
|
+
onClose: () => Mt(!1)
|
|
5943
5943
|
})
|
|
5944
5944
|
]
|
|
5945
5945
|
});
|