@realtek/core-theme 0.0.216 → 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 +32 -32
- 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
|
@@ -16567,14 +16567,14 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16567
16567
|
v,
|
|
16568
16568
|
oe,
|
|
16569
16569
|
d
|
|
16570
|
-
]), 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) => {
|
|
16571
16571
|
_(e), ee(!1);
|
|
16572
16572
|
let t = (i ?? []).find((t) => t.value === e);
|
|
16573
16573
|
t?.lastRate != null && y(Number(t.lastRate) || 0), t?.type && x(t.type), a?.(e, t);
|
|
16574
|
-
},
|
|
16574
|
+
}, ye = (e) => {
|
|
16575
16575
|
let t = e.target.checked;
|
|
16576
16576
|
ne(t), ee(t);
|
|
16577
|
-
},
|
|
16577
|
+
}, be = (e) => /* @__PURE__ */ Z("div", { children: [e, o && /* @__PURE__ */ X("div", {
|
|
16578
16578
|
className: "fa-referral-dropdown-footer",
|
|
16579
16579
|
children: /* @__PURE__ */ X(bu, {
|
|
16580
16580
|
className: "fa-referral-add-btn",
|
|
@@ -16585,10 +16585,10 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16585
16585
|
},
|
|
16586
16586
|
children: "Add"
|
|
16587
16587
|
})
|
|
16588
|
-
})] }),
|
|
16588
|
+
})] }), xe = async (e) => {
|
|
16589
16589
|
if (!e) return;
|
|
16590
|
-
if (e === d.actions.primary &&
|
|
16591
|
-
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).`);
|
|
16592
16592
|
return;
|
|
16593
16593
|
}
|
|
16594
16594
|
if (e.requireReason && !S.trim()) {
|
|
@@ -16628,7 +16628,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16628
16628
|
} finally {
|
|
16629
16629
|
j("");
|
|
16630
16630
|
}
|
|
16631
|
-
},
|
|
16631
|
+
}, Se = d.actions.primary, Ce = d.actions.reject;
|
|
16632
16632
|
return /* @__PURE__ */ Z("div", {
|
|
16633
16633
|
className: `fa-panel fa-variant-${u}`,
|
|
16634
16634
|
children: [
|
|
@@ -16817,14 +16817,14 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16817
16817
|
className: "fa-panel-head",
|
|
16818
16818
|
children: [
|
|
16819
16819
|
/* @__PURE__ */ X("span", { className: "fa-dot" }),
|
|
16820
|
-
|
|
16820
|
+
me,
|
|
16821
16821
|
" Rate"
|
|
16822
16822
|
]
|
|
16823
16823
|
}), /* @__PURE__ */ Z("div", {
|
|
16824
16824
|
className: "fa-rate-rows",
|
|
16825
16825
|
children: [
|
|
16826
16826
|
/* @__PURE__ */ X(ob, {
|
|
16827
|
-
label: `${
|
|
16827
|
+
label: `${me} Rate`,
|
|
16828
16828
|
sub: "as submitted by recruiter",
|
|
16829
16829
|
value: /* @__PURE__ */ Z(Y, { children: [
|
|
16830
16830
|
eb(P.employerRate, ce),
|
|
@@ -16867,7 +16867,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16867
16867
|
}),
|
|
16868
16868
|
/* @__PURE__ */ X(ob, {
|
|
16869
16869
|
total: !0,
|
|
16870
|
-
label: `Net ${
|
|
16870
|
+
label: `Net ${me} Rate`,
|
|
16871
16871
|
value: /* @__PURE__ */ X("span", {
|
|
16872
16872
|
style: { color: "var(--color-purple, #7c3aed)" },
|
|
16873
16873
|
children: eb(P.netEmployerRate, ce)
|
|
@@ -16902,18 +16902,18 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16902
16902
|
onChange: (e) => h(Number(e ?? 0)),
|
|
16903
16903
|
prefix: ce,
|
|
16904
16904
|
controls: !1,
|
|
16905
|
-
status:
|
|
16905
|
+
status: _e ? "error" : ""
|
|
16906
16906
|
})]
|
|
16907
16907
|
}),
|
|
16908
16908
|
/* @__PURE__ */ X("div", {
|
|
16909
16909
|
className: "fa-editable-sub",
|
|
16910
16910
|
children: "rate we ask the client for"
|
|
16911
16911
|
}),
|
|
16912
|
-
|
|
16912
|
+
_e && /* @__PURE__ */ Z("div", {
|
|
16913
16913
|
className: "fa-reason-error",
|
|
16914
16914
|
children: [
|
|
16915
16915
|
"! Proposed rate can’t exceed the Client Job Rate (",
|
|
16916
|
-
eb(
|
|
16916
|
+
eb(ge, ce),
|
|
16917
16917
|
"/hr)."
|
|
16918
16918
|
]
|
|
16919
16919
|
}),
|
|
@@ -16967,7 +16967,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
16967
16967
|
className: "fa-referral-toggle",
|
|
16968
16968
|
children: [/* @__PURE__ */ X(nr, {
|
|
16969
16969
|
checked: te,
|
|
16970
|
-
onChange:
|
|
16970
|
+
onChange: ye,
|
|
16971
16971
|
children: /* @__PURE__ */ X("span", {
|
|
16972
16972
|
className: "fa-rt-title",
|
|
16973
16973
|
children: N.toggleLabel ?? "Add Referral"
|
|
@@ -17004,14 +17004,14 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17004
17004
|
placeholder: "Select a referral",
|
|
17005
17005
|
open: M,
|
|
17006
17006
|
value: g ?? void 0,
|
|
17007
|
-
onChange:
|
|
17007
|
+
onChange: ve,
|
|
17008
17008
|
options: i ?? [],
|
|
17009
17009
|
showSearch: !0,
|
|
17010
17010
|
optionFilterProp: "label",
|
|
17011
17011
|
onDropdownVisibleChange: ee,
|
|
17012
17012
|
onOpenChange: ee,
|
|
17013
|
-
popupRender:
|
|
17014
|
-
dropdownRender:
|
|
17013
|
+
popupRender: be,
|
|
17014
|
+
dropdownRender: be
|
|
17015
17015
|
})]
|
|
17016
17016
|
}),
|
|
17017
17017
|
/* @__PURE__ */ Z("div", {
|
|
@@ -17081,12 +17081,12 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17081
17081
|
})]
|
|
17082
17082
|
}),
|
|
17083
17083
|
ue && /* @__PURE__ */ Z("div", {
|
|
17084
|
-
className: `fa-outcome ${
|
|
17084
|
+
className: `fa-outcome ${pe}`,
|
|
17085
17085
|
children: [/* @__PURE__ */ Z("div", {
|
|
17086
17086
|
className: "fa-outcome-label",
|
|
17087
17087
|
children: [/* @__PURE__ */ X("div", {
|
|
17088
17088
|
className: "fa-outcome-icon",
|
|
17089
|
-
children:
|
|
17089
|
+
children: X(pe === "fa-good" ? ta : Ea, {})
|
|
17090
17090
|
}), /* @__PURE__ */ X("div", {
|
|
17091
17091
|
className: "fa-outcome-t",
|
|
17092
17092
|
children: d.margin.label
|
|
@@ -17106,7 +17106,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17106
17106
|
children: "−"
|
|
17107
17107
|
}),
|
|
17108
17108
|
/* @__PURE__ */ X(sb, {
|
|
17109
|
-
label: `Net ${
|
|
17109
|
+
label: `Net ${me} Rate`,
|
|
17110
17110
|
value: /* @__PURE__ */ Z(Y, { children: [eb(P.netEmployerRate, ce), /* @__PURE__ */ X("span", {
|
|
17111
17111
|
className: "fa-u",
|
|
17112
17112
|
children: "/hr"
|
|
@@ -17134,10 +17134,10 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17134
17134
|
]
|
|
17135
17135
|
})]
|
|
17136
17136
|
}),
|
|
17137
|
-
|
|
17137
|
+
Ce?.requireReason && /* @__PURE__ */ Z("div", {
|
|
17138
17138
|
className: "fa-reason",
|
|
17139
17139
|
children: [
|
|
17140
|
-
|
|
17140
|
+
Ce.requireCategory && /* @__PURE__ */ Z(Y, { children: [
|
|
17141
17141
|
/* @__PURE__ */ Z("label", {
|
|
17142
17142
|
className: "fa-reason-label",
|
|
17143
17143
|
htmlFor: "fa-rejection-category",
|
|
@@ -17191,7 +17191,7 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17191
17191
|
})
|
|
17192
17192
|
]
|
|
17193
17193
|
}),
|
|
17194
|
-
d.actions?.show !== !1 && (
|
|
17194
|
+
d.actions?.show !== !1 && (Se || Ce) && /* @__PURE__ */ Z("div", {
|
|
17195
17195
|
className: "fa-action-bar",
|
|
17196
17196
|
children: [/* @__PURE__ */ X("div", {
|
|
17197
17197
|
className: "fa-action-note",
|
|
@@ -17219,20 +17219,20 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
|
|
|
17219
17219
|
onClick: l,
|
|
17220
17220
|
children: "Cancel"
|
|
17221
17221
|
}),
|
|
17222
|
-
|
|
17222
|
+
Ce && /* @__PURE__ */ X(bu, {
|
|
17223
17223
|
danger: !0,
|
|
17224
|
-
loading: A ===
|
|
17224
|
+
loading: A === Ce.key,
|
|
17225
17225
|
disabled: !!A,
|
|
17226
|
-
onClick: () =>
|
|
17227
|
-
children:
|
|
17226
|
+
onClick: () => xe(Ce),
|
|
17227
|
+
children: Ce.label
|
|
17228
17228
|
}),
|
|
17229
|
-
|
|
17229
|
+
Se && /* @__PURE__ */ X(bu, {
|
|
17230
17230
|
variant: "primary",
|
|
17231
17231
|
icon: /* @__PURE__ */ X(Jr, {}),
|
|
17232
|
-
loading: A ===
|
|
17233
|
-
disabled: !!A ||
|
|
17234
|
-
onClick: () =>
|
|
17235
|
-
children:
|
|
17232
|
+
loading: A === Se.key,
|
|
17233
|
+
disabled: !!A || _e,
|
|
17234
|
+
onClick: () => xe(Se),
|
|
17235
|
+
children: Se.label
|
|
17236
17236
|
})
|
|
17237
17237
|
]
|
|
17238
17238
|
})]
|