@realtek/core-theme 0.0.201 → 0.0.203

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.js CHANGED
@@ -7196,7 +7196,7 @@ function jp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
7196
7196
  ...ft && et ? { clientId: et } : {},
7197
7197
  ...St?.linkage ?? v ?? {}
7198
7198
  }, jt = !vt && !Ye && (!St?.source || ze !== null && !He), Mt = (e) => {
7199
- let t = wt[e.payloadKey || e.name], n = Math.max(0, Number(e.minRows ?? 0) || 0), r = Pn(e);
7199
+ let t = wt[e.prefillFrom || e.payloadKey || e.name], n = Math.max(0, Number(e.minRows ?? 0) || 0), r = Pn(e);
7200
7200
  if (!t || t.length === 0) {
7201
7201
  let t = e.initialRows === void 0 ? n : Math.max(n, Math.max(0, Number(e.initialRows) || 0));
7202
7202
  return Array.from({ length: t }, () => ({ ...r }));
@@ -16365,14 +16365,14 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16365
16365
  d
16366
16366
  ]);
16367
16367
  ie && (g || Number(P.referralRate));
16368
- let F = P.currency, se = d.readOnly, ce = (e) => {
16368
+ let F = P.currency, se = d.readOnly, ce = P.isW2 ? "Candidate" : "Employer", le = !!d.sections.rateBreakdown?.proposed?.editable, ue = Number(P.clientJobRate) || 0, de = le && ue > 0 && Number(m) > ue, fe = (e) => {
16369
16369
  _(e), M(!1);
16370
16370
  let t = (i ?? []).find((t) => t.value === e);
16371
16371
  t?.lastRate != null && y(Number(t.lastRate) || 0), t?.type && x(t.type), a?.(e, t);
16372
- }, le = (e) => {
16372
+ }, pe = (e) => {
16373
16373
  let t = e.target.checked;
16374
16374
  ne(t), M(t);
16375
- }, ue = (e) => /* @__PURE__ */ Z("div", { children: [e, o && /* @__PURE__ */ X("div", {
16375
+ }, me = (e) => /* @__PURE__ */ Z("div", { children: [e, o && /* @__PURE__ */ X("div", {
16376
16376
  className: "fa-referral-dropdown-footer",
16377
16377
  children: /* @__PURE__ */ X(_u, {
16378
16378
  className: "fa-referral-add-btn",
@@ -16383,8 +16383,12 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16383
16383
  },
16384
16384
  children: "Add"
16385
16385
  })
16386
- })] }), de = async (e) => {
16386
+ })] }), he = async (e) => {
16387
16387
  if (!e) return;
16388
+ if (e === d.actions.primary && de) {
16389
+ J.error(`Proposed rate can't exceed the Client Job Rate (${Gy(ue, F)}/hr).`);
16390
+ return;
16391
+ }
16388
16392
  if (e.requireReason && !S.trim()) {
16389
16393
  T(!0);
16390
16394
  return;
@@ -16422,7 +16426,7 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16422
16426
  } finally {
16423
16427
  ee("");
16424
16428
  }
16425
- }, fe = d.actions.primary, pe = d.actions.reject;
16429
+ }, ge = d.actions.primary, _e = d.actions.reject;
16426
16430
  return /* @__PURE__ */ Z("div", {
16427
16431
  className: `fa-panel fa-variant-${u}`,
16428
16432
  children: [
@@ -16484,7 +16488,7 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16484
16488
  className: "fa-card",
16485
16489
  children: [/* @__PURE__ */ X("div", {
16486
16490
  className: "fa-card-head",
16487
- children: /* @__PURE__ */ X("h3", { children: "Job & Client Details" })
16491
+ children: /* @__PURE__ */ X("h3", { children: "Basic Details" })
16488
16492
  }), /* @__PURE__ */ X("div", {
16489
16493
  className: "fa-card-body",
16490
16494
  children: /* @__PURE__ */ Z("div", {
@@ -16499,32 +16503,32 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16499
16503
  value: qy(t?.job?.jobTitle, r?.role)
16500
16504
  }),
16501
16505
  /* @__PURE__ */ X(Yy, {
16502
- label: "Req #",
16506
+ label: "Job Location",
16507
+ value: qy(r?.location, t?.job?.jobLocation)
16508
+ }),
16509
+ /* @__PURE__ */ X(Yy, {
16510
+ label: "Job ID",
16503
16511
  value: qy(t?.job?.jobReferenceId, r?.reqId)
16504
16512
  }),
16505
16513
  /* @__PURE__ */ X(Yy, {
16506
- label: "Candidate",
16514
+ label: "Candidate Name",
16507
16515
  value: qy(r?.name, t?.submission?.candidateFullName)
16508
16516
  }),
16509
16517
  /* @__PURE__ */ X(Yy, {
16510
- label: "Location",
16511
- value: qy(r?.location, t?.job?.jobLocation)
16518
+ label: "Candidate Email",
16519
+ value: qy(r?.email, t?.submission?.email)
16512
16520
  }),
16513
16521
  /* @__PURE__ */ X(Yy, {
16514
16522
  label: "Employment Type",
16515
16523
  value: f.contractType
16516
16524
  }),
16517
16525
  /* @__PURE__ */ X(Yy, {
16518
- label: "Vendor / MSP",
16526
+ label: "Employer",
16519
16527
  value: qy(t?.submission?.supplierName, r?.vendor)
16520
16528
  }),
16521
16529
  /* @__PURE__ */ X(Yy, {
16522
16530
  label: "Submitted By",
16523
16531
  value: qy(t?.submission?.signatureEmail, r?.submittedBy)
16524
- }),
16525
- /* @__PURE__ */ X(Yy, {
16526
- label: "Email",
16527
- value: qy(r?.email, t?.submission?.email)
16528
16532
  })
16529
16533
  ]
16530
16534
  })
@@ -16605,12 +16609,16 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16605
16609
  className: "fa-rate-panel fa-employer",
16606
16610
  children: [/* @__PURE__ */ Z("div", {
16607
16611
  className: "fa-panel-head",
16608
- children: [/* @__PURE__ */ X("span", { className: "fa-dot" }), "Employer Rate"]
16612
+ children: [
16613
+ /* @__PURE__ */ X("span", { className: "fa-dot" }),
16614
+ ce,
16615
+ " Rate"
16616
+ ]
16609
16617
  }), /* @__PURE__ */ Z("div", {
16610
16618
  className: "fa-rate-rows",
16611
16619
  children: [
16612
16620
  /* @__PURE__ */ X(Xy, {
16613
- label: "Employer Rate",
16621
+ label: `${ce} Rate`,
16614
16622
  sub: "as submitted by recruiter",
16615
16623
  value: /* @__PURE__ */ Z(Y, { children: [
16616
16624
  Gy(P.employerRate, F),
@@ -16643,7 +16651,7 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16643
16651
  }),
16644
16652
  /* @__PURE__ */ X(Xy, {
16645
16653
  total: !0,
16646
- label: "Net Employer Rate",
16654
+ label: `Net ${ce} Rate`,
16647
16655
  value: /* @__PURE__ */ X("span", {
16648
16656
  style: { color: "var(--color-purple, #7c3aed)" },
16649
16657
  children: Gy(P.netEmployerRate, F)
@@ -16677,13 +16685,22 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16677
16685
  value: m,
16678
16686
  onChange: (e) => h(Number(e ?? 0)),
16679
16687
  prefix: F,
16680
- controls: !1
16688
+ controls: !1,
16689
+ status: de ? "error" : ""
16681
16690
  })]
16682
16691
  }),
16683
16692
  /* @__PURE__ */ X("div", {
16684
16693
  className: "fa-editable-sub",
16685
16694
  children: "rate we ask the client for"
16686
16695
  }),
16696
+ de && /* @__PURE__ */ Z("div", {
16697
+ className: "fa-reason-error",
16698
+ children: [
16699
+ "! Proposed rate can’t exceed the Client Job Rate (",
16700
+ Gy(ue, F),
16701
+ "/hr)."
16702
+ ]
16703
+ }),
16687
16704
  d.rejection?.show && /* @__PURE__ */ Z("div", {
16688
16705
  className: "fa-last-rejected",
16689
16706
  children: ["Last rejected at ", /* @__PURE__ */ Z("b", { children: [Gy(f.proposedRate, F), "/hr"] })]
@@ -16734,7 +16751,7 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16734
16751
  className: "fa-referral-toggle",
16735
16752
  children: [/* @__PURE__ */ X(Xn, {
16736
16753
  checked: N,
16737
- onChange: le,
16754
+ onChange: pe,
16738
16755
  children: /* @__PURE__ */ X("span", {
16739
16756
  className: "fa-rt-title",
16740
16757
  children: te.toggleLabel ?? "Add Referral"
@@ -16771,14 +16788,14 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16771
16788
  placeholder: "Select a referral",
16772
16789
  open: j,
16773
16790
  value: g ?? void 0,
16774
- onChange: ce,
16791
+ onChange: fe,
16775
16792
  options: i ?? [],
16776
16793
  showSearch: !0,
16777
16794
  optionFilterProp: "label",
16778
16795
  onDropdownVisibleChange: M,
16779
16796
  onOpenChange: M,
16780
- popupRender: ue,
16781
- dropdownRender: ue
16797
+ popupRender: me,
16798
+ dropdownRender: me
16782
16799
  })]
16783
16800
  }),
16784
16801
  /* @__PURE__ */ Z("div", {
@@ -16873,7 +16890,7 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16873
16890
  children: "−"
16874
16891
  }),
16875
16892
  /* @__PURE__ */ X(Zy, {
16876
- label: "Net Employer Rate",
16893
+ label: `Net ${ce} Rate`,
16877
16894
  value: /* @__PURE__ */ Z(Y, { children: [Gy(P.netEmployerRate, F), /* @__PURE__ */ X("span", {
16878
16895
  className: "fa-u",
16879
16896
  children: "/hr"
@@ -16901,10 +16918,10 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16901
16918
  ]
16902
16919
  })]
16903
16920
  }),
16904
- pe?.requireReason && /* @__PURE__ */ Z("div", {
16921
+ _e?.requireReason && /* @__PURE__ */ Z("div", {
16905
16922
  className: "fa-reason",
16906
16923
  children: [
16907
- pe.requireCategory && /* @__PURE__ */ Z(Y, { children: [
16924
+ _e.requireCategory && /* @__PURE__ */ Z(Y, { children: [
16908
16925
  /* @__PURE__ */ Z("label", {
16909
16926
  className: "fa-reason-label",
16910
16927
  htmlFor: "fa-rejection-category",
@@ -16986,20 +17003,20 @@ function Qy({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16986
17003
  onClick: l,
16987
17004
  children: "Cancel"
16988
17005
  }),
16989
- pe && /* @__PURE__ */ X(_u, {
17006
+ _e && /* @__PURE__ */ X(_u, {
16990
17007
  danger: !0,
16991
- loading: A === pe.key,
17008
+ loading: A === _e.key,
16992
17009
  disabled: !!A,
16993
- onClick: () => de(pe),
16994
- children: pe.label
17010
+ onClick: () => he(_e),
17011
+ children: _e.label
16995
17012
  }),
16996
- fe && /* @__PURE__ */ X(_u, {
17013
+ ge && /* @__PURE__ */ X(_u, {
16997
17014
  variant: "primary",
16998
17015
  icon: /* @__PURE__ */ X(Hr, {}),
16999
- loading: A === fe.key,
17000
- disabled: !!A,
17001
- onClick: () => de(fe),
17002
- children: fe.label
17016
+ loading: A === ge.key,
17017
+ disabled: !!A || de,
17018
+ onClick: () => he(ge),
17019
+ children: ge.label
17003
17020
  })
17004
17021
  ]
17005
17022
  })]
@@ -38534,7 +38551,7 @@ var RD = {
38534
38551
  }, zD = { deleteItems: async (e, t) => {
38535
38552
  await oo(t.moduleName, e);
38536
38553
  } }, BD = {
38537
- title: "Quick Submit",
38554
+ title: "Submit",
38538
38555
  okText: "Submit",
38539
38556
  width: 480,
38540
38557
  disabledUntilFilled: !0,