@realtek/core-theme 0.0.215 → 0.0.217
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 +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +56 -35
- 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
|
@@ -11586,8 +11586,19 @@ function f_({ moduleName: e, id: t, customConfigName: n, authToken: r, onAction:
|
|
|
11586
11586
|
let be = (n) => {
|
|
11587
11587
|
let r = [...ve, ...ye].find((e) => e.key === n);
|
|
11588
11588
|
if (r?.actionType === "document" && r.documentField) {
|
|
11589
|
-
let
|
|
11590
|
-
|
|
11589
|
+
let n = d_(g, r.documentField);
|
|
11590
|
+
if (n.length) {
|
|
11591
|
+
T(n), C(!0);
|
|
11592
|
+
return;
|
|
11593
|
+
}
|
|
11594
|
+
At(r.documentModule || e, r.documentIdField ? o_(oe, r.documentIdField) : t, r.documentField).then((e) => {
|
|
11595
|
+
let t = (e?.data ?? []).map((e) => ({
|
|
11596
|
+
name: e.fileName || e.name || e.uploadedFileName || r.documentField,
|
|
11597
|
+
url: e.fileUrl || e.url || "",
|
|
11598
|
+
type: "file"
|
|
11599
|
+
})).filter((e) => e.url);
|
|
11600
|
+
t.length ? (T(t), C(!0)) : J.warning(`No ${(r.label || "document").toLowerCase()} available`);
|
|
11601
|
+
}).catch(() => J.warning(`No ${(r.label || "document").toLowerCase()} available`));
|
|
11591
11602
|
return;
|
|
11592
11603
|
}
|
|
11593
11604
|
if (r?.actionType === "copy") {
|
|
@@ -16556,14 +16567,14 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16556
16567
|
v,
|
|
16557
16568
|
oe,
|
|
16558
16569
|
d
|
|
16559
|
-
]), ce = P.currency, le = d.readOnly, ue = Number(P.proposedRate) > 0, de = P.isW2 ? "Candidate" : "Employer",
|
|
16570
|
+
]), ce = P.currency, le = d.readOnly, ue = Number(P.proposedRate) > 0, de = Number(d.margin?.minMarginPercent ?? 20), fe = Number(P.netProposedRate) > 0 ? Number(P.totalMargin) / Number(P.netProposedRate) * 100 : 0, pe = P.marginPositive ? fe < de ? "fa-warn" : "fa-good" : "fa-bad", me = P.isW2 ? "Candidate" : "Employer", he = !!d.sections.rateBreakdown?.proposed?.editable, ge = Number(P.clientJobRate) || 0, _e = he && ge > 0 && Number(m) > ge, ve = (e) => {
|
|
16560
16571
|
_(e), ee(!1);
|
|
16561
16572
|
let t = (i ?? []).find((t) => t.value === e);
|
|
16562
16573
|
t?.lastRate != null && y(Number(t.lastRate) || 0), t?.type && x(t.type), a?.(e, t);
|
|
16563
|
-
},
|
|
16574
|
+
}, ye = (e) => {
|
|
16564
16575
|
let t = e.target.checked;
|
|
16565
16576
|
ne(t), ee(t);
|
|
16566
|
-
},
|
|
16577
|
+
}, be = (e) => /* @__PURE__ */ Z("div", { children: [e, o && /* @__PURE__ */ X("div", {
|
|
16567
16578
|
className: "fa-referral-dropdown-footer",
|
|
16568
16579
|
children: /* @__PURE__ */ X(bu, {
|
|
16569
16580
|
className: "fa-referral-add-btn",
|
|
@@ -16574,10 +16585,10 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16574
16585
|
},
|
|
16575
16586
|
children: "Add"
|
|
16576
16587
|
})
|
|
16577
|
-
})] }),
|
|
16588
|
+
})] }), xe = async (e) => {
|
|
16578
16589
|
if (!e) return;
|
|
16579
|
-
if (e === d.actions.primary &&
|
|
16580
|
-
J.error(`Proposed rate can't exceed the Client Job Rate (${eb(
|
|
16590
|
+
if (e === d.actions.primary && _e) {
|
|
16591
|
+
J.error(`Proposed rate can't exceed the Client Job Rate (${eb(ge, ce)}/hr).`);
|
|
16581
16592
|
return;
|
|
16582
16593
|
}
|
|
16583
16594
|
if (e.requireReason && !S.trim()) {
|
|
@@ -16617,7 +16628,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16617
16628
|
} finally {
|
|
16618
16629
|
j("");
|
|
16619
16630
|
}
|
|
16620
|
-
},
|
|
16631
|
+
}, Se = d.actions.primary, Ce = d.actions.reject;
|
|
16621
16632
|
return /* @__PURE__ */ Z("div", {
|
|
16622
16633
|
className: `fa-panel fa-variant-${u}`,
|
|
16623
16634
|
children: [
|
|
@@ -16806,14 +16817,14 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16806
16817
|
className: "fa-panel-head",
|
|
16807
16818
|
children: [
|
|
16808
16819
|
/* @__PURE__ */ X("span", { className: "fa-dot" }),
|
|
16809
|
-
|
|
16820
|
+
me,
|
|
16810
16821
|
" Rate"
|
|
16811
16822
|
]
|
|
16812
16823
|
}), /* @__PURE__ */ Z("div", {
|
|
16813
16824
|
className: "fa-rate-rows",
|
|
16814
16825
|
children: [
|
|
16815
16826
|
/* @__PURE__ */ X(ob, {
|
|
16816
|
-
label: `${
|
|
16827
|
+
label: `${me} Rate`,
|
|
16817
16828
|
sub: "as submitted by recruiter",
|
|
16818
16829
|
value: /* @__PURE__ */ Z(Y, { children: [
|
|
16819
16830
|
eb(P.employerRate, ce),
|
|
@@ -16832,7 +16843,17 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16832
16843
|
children: nb(r?.employerLocation, t?.submission?.city, t?.job?.jobLocation)
|
|
16833
16844
|
})
|
|
16834
16845
|
}),
|
|
16835
|
-
/* @__PURE__ */ X(ob, {
|
|
16846
|
+
!P.isW2 && !P.employerVmsRequired ? /* @__PURE__ */ X(ob, {
|
|
16847
|
+
label: /* @__PURE__ */ X("span", {
|
|
16848
|
+
className: "fa-locked-label",
|
|
16849
|
+
children: "Employer VMS"
|
|
16850
|
+
}),
|
|
16851
|
+
sub: "VMS not required",
|
|
16852
|
+
value: /* @__PURE__ */ X("span", {
|
|
16853
|
+
className: "fa-vms-none",
|
|
16854
|
+
children: "Not required"
|
|
16855
|
+
})
|
|
16856
|
+
}) : /* @__PURE__ */ X(ob, {
|
|
16836
16857
|
label: P.isW2 ? P.employerDeductionLabel : /* @__PURE__ */ Z("span", {
|
|
16837
16858
|
className: "fa-locked-label",
|
|
16838
16859
|
children: [P.employerDeductionLabel, /* @__PURE__ */ X("span", {
|
|
@@ -16846,7 +16867,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16846
16867
|
}),
|
|
16847
16868
|
/* @__PURE__ */ X(ob, {
|
|
16848
16869
|
total: !0,
|
|
16849
|
-
label: `Net ${
|
|
16870
|
+
label: `Net ${me} Rate`,
|
|
16850
16871
|
value: /* @__PURE__ */ X("span", {
|
|
16851
16872
|
style: { color: "var(--color-purple, #7c3aed)" },
|
|
16852
16873
|
children: eb(P.netEmployerRate, ce)
|
|
@@ -16881,18 +16902,18 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16881
16902
|
onChange: (e) => h(Number(e ?? 0)),
|
|
16882
16903
|
prefix: ce,
|
|
16883
16904
|
controls: !1,
|
|
16884
|
-
status:
|
|
16905
|
+
status: _e ? "error" : ""
|
|
16885
16906
|
})]
|
|
16886
16907
|
}),
|
|
16887
16908
|
/* @__PURE__ */ X("div", {
|
|
16888
16909
|
className: "fa-editable-sub",
|
|
16889
16910
|
children: "rate we ask the client for"
|
|
16890
16911
|
}),
|
|
16891
|
-
|
|
16912
|
+
_e && /* @__PURE__ */ Z("div", {
|
|
16892
16913
|
className: "fa-reason-error",
|
|
16893
16914
|
children: [
|
|
16894
16915
|
"! Proposed rate can’t exceed the Client Job Rate (",
|
|
16895
|
-
eb(
|
|
16916
|
+
eb(ge, ce),
|
|
16896
16917
|
"/hr)."
|
|
16897
16918
|
]
|
|
16898
16919
|
}),
|
|
@@ -16946,7 +16967,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16946
16967
|
className: "fa-referral-toggle",
|
|
16947
16968
|
children: [/* @__PURE__ */ X(nr, {
|
|
16948
16969
|
checked: te,
|
|
16949
|
-
onChange:
|
|
16970
|
+
onChange: ye,
|
|
16950
16971
|
children: /* @__PURE__ */ X("span", {
|
|
16951
16972
|
className: "fa-rt-title",
|
|
16952
16973
|
children: N.toggleLabel ?? "Add Referral"
|
|
@@ -16983,14 +17004,14 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16983
17004
|
placeholder: "Select a referral",
|
|
16984
17005
|
open: M,
|
|
16985
17006
|
value: g ?? void 0,
|
|
16986
|
-
onChange:
|
|
17007
|
+
onChange: ve,
|
|
16987
17008
|
options: i ?? [],
|
|
16988
17009
|
showSearch: !0,
|
|
16989
17010
|
optionFilterProp: "label",
|
|
16990
17011
|
onDropdownVisibleChange: ee,
|
|
16991
17012
|
onOpenChange: ee,
|
|
16992
|
-
popupRender:
|
|
16993
|
-
dropdownRender:
|
|
17013
|
+
popupRender: be,
|
|
17014
|
+
dropdownRender: be
|
|
16994
17015
|
})]
|
|
16995
17016
|
}),
|
|
16996
17017
|
/* @__PURE__ */ Z("div", {
|
|
@@ -17060,12 +17081,12 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17060
17081
|
})]
|
|
17061
17082
|
}),
|
|
17062
17083
|
ue && /* @__PURE__ */ Z("div", {
|
|
17063
|
-
className: `fa-outcome ${
|
|
17084
|
+
className: `fa-outcome ${pe}`,
|
|
17064
17085
|
children: [/* @__PURE__ */ Z("div", {
|
|
17065
17086
|
className: "fa-outcome-label",
|
|
17066
17087
|
children: [/* @__PURE__ */ X("div", {
|
|
17067
17088
|
className: "fa-outcome-icon",
|
|
17068
|
-
children:
|
|
17089
|
+
children: X(pe === "fa-good" ? ta : Ea, {})
|
|
17069
17090
|
}), /* @__PURE__ */ X("div", {
|
|
17070
17091
|
className: "fa-outcome-t",
|
|
17071
17092
|
children: d.margin.label
|
|
@@ -17085,7 +17106,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17085
17106
|
children: "−"
|
|
17086
17107
|
}),
|
|
17087
17108
|
/* @__PURE__ */ X(sb, {
|
|
17088
|
-
label: `Net ${
|
|
17109
|
+
label: `Net ${me} Rate`,
|
|
17089
17110
|
value: /* @__PURE__ */ Z(Y, { children: [eb(P.netEmployerRate, ce), /* @__PURE__ */ X("span", {
|
|
17090
17111
|
className: "fa-u",
|
|
17091
17112
|
children: "/hr"
|
|
@@ -17113,10 +17134,10 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17113
17134
|
]
|
|
17114
17135
|
})]
|
|
17115
17136
|
}),
|
|
17116
|
-
|
|
17137
|
+
Ce?.requireReason && /* @__PURE__ */ Z("div", {
|
|
17117
17138
|
className: "fa-reason",
|
|
17118
17139
|
children: [
|
|
17119
|
-
|
|
17140
|
+
Ce.requireCategory && /* @__PURE__ */ Z(Y, { children: [
|
|
17120
17141
|
/* @__PURE__ */ Z("label", {
|
|
17121
17142
|
className: "fa-reason-label",
|
|
17122
17143
|
htmlFor: "fa-rejection-category",
|
|
@@ -17170,7 +17191,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17170
17191
|
})
|
|
17171
17192
|
]
|
|
17172
17193
|
}),
|
|
17173
|
-
d.actions?.show !== !1 && (
|
|
17194
|
+
d.actions?.show !== !1 && (Se || Ce) && /* @__PURE__ */ Z("div", {
|
|
17174
17195
|
className: "fa-action-bar",
|
|
17175
17196
|
children: [/* @__PURE__ */ X("div", {
|
|
17176
17197
|
className: "fa-action-note",
|
|
@@ -17198,20 +17219,20 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17198
17219
|
onClick: l,
|
|
17199
17220
|
children: "Cancel"
|
|
17200
17221
|
}),
|
|
17201
|
-
|
|
17222
|
+
Ce && /* @__PURE__ */ X(bu, {
|
|
17202
17223
|
danger: !0,
|
|
17203
|
-
loading: A ===
|
|
17224
|
+
loading: A === Ce.key,
|
|
17204
17225
|
disabled: !!A,
|
|
17205
|
-
onClick: () =>
|
|
17206
|
-
children:
|
|
17226
|
+
onClick: () => xe(Ce),
|
|
17227
|
+
children: Ce.label
|
|
17207
17228
|
}),
|
|
17208
|
-
|
|
17229
|
+
Se && /* @__PURE__ */ X(bu, {
|
|
17209
17230
|
variant: "primary",
|
|
17210
17231
|
icon: /* @__PURE__ */ X(Jr, {}),
|
|
17211
|
-
loading: A ===
|
|
17212
|
-
disabled: !!A ||
|
|
17213
|
-
onClick: () =>
|
|
17214
|
-
children:
|
|
17232
|
+
loading: A === Se.key,
|
|
17233
|
+
disabled: !!A || _e,
|
|
17234
|
+
onClick: () => xe(Se),
|
|
17235
|
+
children: Se.label
|
|
17215
17236
|
})
|
|
17216
17237
|
]
|
|
17217
17238
|
})]
|