@realtek/core-theme 0.0.272 → 0.0.274

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
@@ -4566,6 +4566,22 @@ function lf(e, t = {}) {
4566
4566
  return n === "add" ? t.canAdd !== !1 : n === "edit" ? t.canEdit !== !1 : n === "delete" ? t.canDelete !== !1 : !0;
4567
4567
  }
4568
4568
  function uf(e, t, n) {
4569
+ if (typeof e.onClick == "function") return /* @__PURE__ */ X(q, {
4570
+ title: e.label,
4571
+ children: /* @__PURE__ */ X("button", {
4572
+ "aria-label": e.label,
4573
+ className: "job-field-action-button",
4574
+ type: "button",
4575
+ onClick: (n) => {
4576
+ n.stopPropagation(), e.onClick(t);
4577
+ },
4578
+ children: /* @__PURE__ */ X("img", {
4579
+ src: e.iconUrl,
4580
+ alt: e.label,
4581
+ className: "job-field-action-icon"
4582
+ })
4583
+ })
4584
+ }, e.key);
4569
4585
  let r = Hd(e.routeUrl ?? e.routeURL ?? e.url ?? e.href, t), i = Of(e.type), a = /* @__PURE__ */ X("img", {
4570
4586
  src: e.iconUrl,
4571
4587
  alt: e.label,
@@ -5426,6 +5442,12 @@ function ip({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5426
5442
  if (r.route) {
5427
5443
  let e = n[0] ?? {}, i = Hd(r.route, e), a = i.startsWith("/") ? i : `/${i}`;
5428
5444
  if (r.route.startsWith("/popup/") || r.route.startsWith("popup/")) {
5445
+ 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;
5446
+ if (o && c && l) {
5447
+ let e = new URLSearchParams();
5448
+ e.set("candidateId", String(l)), e.set("isFromSubmission", "false"), be(`/submission-create/${encodeURIComponent(String(c))}?${e.toString()}`);
5449
+ return;
5450
+ }
5429
5451
  be(a, { state: {
5430
5452
  background: xe,
5431
5453
  selectedIds: t,