@realtek/core-theme 0.0.375 → 0.0.376
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 +9 -9
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +197 -180
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -4845,37 +4845,52 @@ function Gh({ prompt: e, action: t, record: n, tab: r, onSubmit: i, onCancel: a,
|
|
|
4845
4845
|
}
|
|
4846
4846
|
//#endregion
|
|
4847
4847
|
//#region src/components/detail/DetailGroupActions.jsx
|
|
4848
|
-
function Kh({ moduleName: e, keys: t = [], record: n, onHostAction: r = null, onDone: i = null }) {
|
|
4849
|
-
let
|
|
4848
|
+
function Kh({ moduleName: e, keys: t = [], record: n, onHostAction: r = null, onDone: i = null, displayOnly: a = !1 }) {
|
|
4849
|
+
let o = ru(), s = nu(), { actions: c, actionRules: l } = jh(e), [u, d] = R(null), f = new Map((c ?? []).filter((e) => e?.key).map((e) => [String(e.key), e])), p = t.map((e) => f.get(String(e))).filter(Boolean).filter((e) => e.actionType !== "host" || typeof r == "function").filter((e) => !j(e.key, n, l, void 0, "detail")).map((e) => ({
|
|
4850
4850
|
action: e,
|
|
4851
|
-
reason: Cn(e.key, n,
|
|
4851
|
+
reason: Cn(e.key, n, l, void 0, "detail")
|
|
4852
4852
|
}));
|
|
4853
|
-
if (!
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4853
|
+
if (!p.length) return null;
|
|
4854
|
+
if (a) return /* @__PURE__ */ X("ul", {
|
|
4855
|
+
className: "v1-dg-actions v1-dg-actions--display",
|
|
4856
|
+
children: p.map(({ action: e }) => /* @__PURE__ */ Z("li", {
|
|
4857
|
+
className: "v1-dg-step",
|
|
4858
|
+
"data-action": e.key,
|
|
4859
|
+
children: [/* @__PURE__ */ X("span", {
|
|
4860
|
+
className: "v1-dg-action__icon",
|
|
4861
|
+
"aria-hidden": "true",
|
|
4862
|
+
"data-icon": e.icon || void 0
|
|
4863
|
+
}), /* @__PURE__ */ X("span", {
|
|
4864
|
+
className: "v1-dg-action__label",
|
|
4865
|
+
children: e.label || e.key
|
|
4866
|
+
})]
|
|
4867
|
+
}, e.key))
|
|
4868
|
+
});
|
|
4869
|
+
let m = String(n?._id?.$oid ?? n?._id ?? n?.id ?? ""), h = (t, a = null) => (m && ir(e, m), t.actionType === "host" ? r?.(t.key, n, t) : Fh(t, n, {
|
|
4870
|
+
navigate: o,
|
|
4871
|
+
location: s,
|
|
4857
4872
|
module: e,
|
|
4858
4873
|
onDone: () => i?.(),
|
|
4859
|
-
input:
|
|
4860
|
-
})),
|
|
4874
|
+
input: a
|
|
4875
|
+
})), g = (e) => {
|
|
4861
4876
|
let t = () => {
|
|
4862
4877
|
if (Lh(e.inputPrompt)) {
|
|
4863
|
-
|
|
4878
|
+
d(e);
|
|
4864
4879
|
return;
|
|
4865
4880
|
}
|
|
4866
|
-
return
|
|
4881
|
+
return h(e);
|
|
4867
4882
|
};
|
|
4868
4883
|
return Lt(e) ? $t(e, n, {}).then((e) => e ? t() : void 0) : t();
|
|
4869
4884
|
};
|
|
4870
4885
|
return /* @__PURE__ */ Z("div", {
|
|
4871
4886
|
className: "v1-dg-actions",
|
|
4872
|
-
children: [
|
|
4887
|
+
children: [p.map(({ action: e, reason: t }) => {
|
|
4873
4888
|
let n = /* @__PURE__ */ Z(z, {
|
|
4874
4889
|
className: "v1-dg-action",
|
|
4875
4890
|
"data-action": e.key,
|
|
4876
4891
|
danger: !!e.danger || void 0,
|
|
4877
4892
|
disabled: !!t,
|
|
4878
|
-
onClick: () =>
|
|
4893
|
+
onClick: () => g(e),
|
|
4879
4894
|
children: [
|
|
4880
4895
|
/* @__PURE__ */ X("span", {
|
|
4881
4896
|
className: "v1-dg-action__icon",
|
|
@@ -4896,17 +4911,17 @@ function Kh({ moduleName: e, keys: t = [], record: n, onHostAction: r = null, on
|
|
|
4896
4911
|
title: t,
|
|
4897
4912
|
children: /* @__PURE__ */ X("span", { children: n })
|
|
4898
4913
|
}, e.key) : n;
|
|
4899
|
-
}),
|
|
4900
|
-
prompt:
|
|
4901
|
-
action:
|
|
4914
|
+
}), u && /* @__PURE__ */ X(Gh, {
|
|
4915
|
+
prompt: u.inputPrompt,
|
|
4916
|
+
action: u,
|
|
4902
4917
|
record: n,
|
|
4903
4918
|
tab: "",
|
|
4904
|
-
onCancel: () =>
|
|
4919
|
+
onCancel: () => d(null),
|
|
4905
4920
|
onSubmit: (e, t) => {
|
|
4906
|
-
let n =
|
|
4907
|
-
|
|
4921
|
+
let n = u;
|
|
4922
|
+
d(null), h(n, Bh(n.inputPrompt, e, t));
|
|
4908
4923
|
}
|
|
4909
|
-
},
|
|
4924
|
+
}, u.key)]
|
|
4910
4925
|
});
|
|
4911
4926
|
}
|
|
4912
4927
|
//#endregion
|
|
@@ -5064,18 +5079,18 @@ function og({ value: e }) {
|
|
|
5064
5079
|
children: t
|
|
5065
5080
|
});
|
|
5066
5081
|
}
|
|
5067
|
-
function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, masterLabelFields: i = [], groupFilter: o = null, emptyContent: s = null, onOpenTab: c = null, onHostAction: l = null, onActionDone: u = null }) {
|
|
5068
|
-
let [
|
|
5082
|
+
function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, masterLabelFields: i = [], groupFilter: o = null, emptyContent: s = null, onOpenTab: c = null, onHostAction: l = null, onActionDone: u = null, displayOnlyActionGroups: d = null }) {
|
|
5083
|
+
let [f, p] = R([]), [m, h] = R(!!e), [g, _] = R(""), [y, b] = R(!1), [x, S] = R(""), [C, w] = R(!1), [T, E] = R([]), D = Array.isArray(i) ? [...new Set(i.map((e) => String(e ?? "").trim()).filter(Boolean))].sort().join("|") : "", O = L(() => new Set(D ? D.split("|") : []), [D]), [A, j] = R({});
|
|
5069
5084
|
I(() => {
|
|
5070
5085
|
if (!e || !t) {
|
|
5071
|
-
Promise.resolve().then(() =>
|
|
5086
|
+
Promise.resolve().then(() => E([]));
|
|
5072
5087
|
return;
|
|
5073
5088
|
}
|
|
5074
5089
|
let n = !1;
|
|
5075
5090
|
return qt(e, t).then((e) => {
|
|
5076
|
-
n ||
|
|
5091
|
+
n || E(Array.isArray(e) ? e : e?.data ?? []);
|
|
5077
5092
|
}).catch(() => {
|
|
5078
|
-
n ||
|
|
5093
|
+
n || E([]);
|
|
5079
5094
|
}), () => {
|
|
5080
5095
|
n = !0;
|
|
5081
5096
|
};
|
|
@@ -5084,18 +5099,18 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5084
5099
|
t,
|
|
5085
5100
|
n
|
|
5086
5101
|
]);
|
|
5087
|
-
let [
|
|
5102
|
+
let [M, N] = R(null), [ee, P] = R({}), [te, ne] = R({});
|
|
5088
5103
|
I(() => {
|
|
5089
5104
|
if (!e || !t) {
|
|
5090
|
-
|
|
5105
|
+
N(null);
|
|
5091
5106
|
return;
|
|
5092
5107
|
}
|
|
5093
5108
|
let n = !1;
|
|
5094
5109
|
return v(a, `/module/list?module=${encodeURIComponent(e)}&id=${encodeURIComponent(t)}`).then((e) => {
|
|
5095
5110
|
let t = e?.data?.data ?? e?.data ?? [];
|
|
5096
|
-
n ||
|
|
5111
|
+
n || N(Array.isArray(t) ? t[0] : null);
|
|
5097
5112
|
}).catch(() => {
|
|
5098
|
-
n ||
|
|
5113
|
+
n || N(null);
|
|
5099
5114
|
}), () => {
|
|
5100
5115
|
n = !0;
|
|
5101
5116
|
};
|
|
@@ -5107,7 +5122,7 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5107
5122
|
let e = !1;
|
|
5108
5123
|
return v(a, "/module/list?module=users").then((t) => {
|
|
5109
5124
|
let n = t?.data?.data ?? t?.data ?? [];
|
|
5110
|
-
e ||
|
|
5125
|
+
e || P(Xt(n));
|
|
5111
5126
|
}).catch(() => {}), () => {
|
|
5112
5127
|
e = !0;
|
|
5113
5128
|
};
|
|
@@ -5116,17 +5131,17 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5116
5131
|
let n = !1;
|
|
5117
5132
|
async function r() {
|
|
5118
5133
|
try {
|
|
5119
|
-
|
|
5134
|
+
h(!0), _("");
|
|
5120
5135
|
let [r] = await Promise.all([Pe({
|
|
5121
5136
|
module: e,
|
|
5122
5137
|
id: t,
|
|
5123
5138
|
view: "detail"
|
|
5124
5139
|
}), Te()]), i = await ig(Array.isArray(r) ? r : [], t, e);
|
|
5125
|
-
n ||
|
|
5140
|
+
n || p(i);
|
|
5126
5141
|
} catch (t) {
|
|
5127
|
-
console.error(`Failed to fetch ${e} detail fields:`, t), n ||
|
|
5142
|
+
console.error(`Failed to fetch ${e} detail fields:`, t), n || _(t?.message || "Failed to fetch detail fields");
|
|
5128
5143
|
} finally {
|
|
5129
|
-
n ||
|
|
5144
|
+
n || h(!1);
|
|
5130
5145
|
}
|
|
5131
5146
|
}
|
|
5132
5147
|
return r(), () => {
|
|
@@ -5137,17 +5152,17 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5137
5152
|
t,
|
|
5138
5153
|
n
|
|
5139
5154
|
]), I(() => {
|
|
5140
|
-
if (!e || !
|
|
5141
|
-
|
|
5155
|
+
if (!e || !D || !f.length) {
|
|
5156
|
+
j((e) => Object.keys(e).length ? {} : e);
|
|
5142
5157
|
return;
|
|
5143
5158
|
}
|
|
5144
5159
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
5145
|
-
for (let e of
|
|
5160
|
+
for (let e of f) for (let r of e?.fields ?? []) {
|
|
5146
5161
|
let e = String(r?.field ?? "").trim();
|
|
5147
|
-
!e || n.has(e) || !
|
|
5162
|
+
!e || n.has(e) || !O.has(e) || (n.add(e), !(String(r?.dataSource ?? "").trim().toLowerCase() !== "master" || !r?.masterName) && t.push(r));
|
|
5148
5163
|
}
|
|
5149
5164
|
if (!t.length) {
|
|
5150
|
-
|
|
5165
|
+
j((e) => Object.keys(e).length ? {} : e);
|
|
5151
5166
|
return;
|
|
5152
5167
|
}
|
|
5153
5168
|
let r = !1;
|
|
@@ -5171,38 +5186,38 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5171
5186
|
return console.warn(`[DetailViewV1] Unable to resolve master label for "${t.field}":`, e), [t.field, {}];
|
|
5172
5187
|
}
|
|
5173
5188
|
})).then((e) => {
|
|
5174
|
-
r ||
|
|
5189
|
+
r || j(Object.fromEntries(e));
|
|
5175
5190
|
}), () => {
|
|
5176
5191
|
r = !0;
|
|
5177
5192
|
};
|
|
5178
5193
|
}, [
|
|
5179
5194
|
e,
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5195
|
+
f,
|
|
5196
|
+
D,
|
|
5197
|
+
O
|
|
5183
5198
|
]);
|
|
5184
|
-
let
|
|
5199
|
+
let re = L(() => Qh(f).filter((e) => typeof o != "function" || o(e)), [f, o]), ie = L(() => {
|
|
5185
5200
|
let e = /* @__PURE__ */ new Set();
|
|
5186
|
-
return
|
|
5201
|
+
return f.forEach((t) => {
|
|
5187
5202
|
Yh(t.appendHistory) && [t.historyField, ...t.historyFields || []].filter(Boolean).forEach((t) => e.add(t));
|
|
5188
5203
|
}), e;
|
|
5189
|
-
}, [
|
|
5204
|
+
}, [f]);
|
|
5190
5205
|
I(() => {
|
|
5191
|
-
if (!
|
|
5206
|
+
if (!M || !ie.size) return;
|
|
5192
5207
|
let e = /* @__PURE__ */ new Set();
|
|
5193
|
-
if (
|
|
5194
|
-
let n =
|
|
5208
|
+
if (ie.forEach((t) => {
|
|
5209
|
+
let n = M[t];
|
|
5195
5210
|
Array.isArray(n) && n.forEach((t) => {
|
|
5196
5211
|
let n = t?.updatedBy ?? t?.changedBy;
|
|
5197
5212
|
if (n == null || n === "") return;
|
|
5198
5213
|
let r = String(n);
|
|
5199
|
-
!
|
|
5214
|
+
!ee[r] && !te[r] && e.add(r);
|
|
5200
5215
|
});
|
|
5201
5216
|
}), !e.size) return;
|
|
5202
5217
|
let t = !1;
|
|
5203
5218
|
return Promise.all([...e].map((e) => ar(e).then((t) => [e, t]))).then((e) => {
|
|
5204
5219
|
let n = Object.fromEntries(e.filter(([, e]) => e));
|
|
5205
|
-
!t && Object.keys(n).length &&
|
|
5220
|
+
!t && Object.keys(n).length && ne((e) => ({
|
|
5206
5221
|
...e,
|
|
5207
5222
|
...n
|
|
5208
5223
|
}));
|
|
@@ -5210,15 +5225,15 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5210
5225
|
t = !0;
|
|
5211
5226
|
};
|
|
5212
5227
|
}, [
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5228
|
+
M,
|
|
5229
|
+
ie,
|
|
5230
|
+
ee,
|
|
5231
|
+
te
|
|
5217
5232
|
]);
|
|
5218
|
-
let
|
|
5233
|
+
let ae = {
|
|
5219
5234
|
proposedRate: "Proposed Rate",
|
|
5220
5235
|
candidateBudget: "Candidate Rate"
|
|
5221
|
-
},
|
|
5236
|
+
}, oe = (e, t, n) => {
|
|
5222
5237
|
let r = `${e}.`, i = (t) => [t?.historyField, ...t?.historyFields || []].includes(e);
|
|
5223
5238
|
for (let r of t ?? []) {
|
|
5224
5239
|
if (!i(r)) continue;
|
|
@@ -5227,81 +5242,81 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5227
5242
|
let a = r.historyLabelFrom?.[e];
|
|
5228
5243
|
if (a) {
|
|
5229
5244
|
let t = (r.fields ?? []).find((e) => e?.field === a);
|
|
5230
|
-
if (t) return fm(t, n) ||
|
|
5245
|
+
if (t) return fm(t, n) || ae[e] || e;
|
|
5231
5246
|
}
|
|
5232
5247
|
}
|
|
5233
|
-
for (let i of t ?? []) for (let t of i?.fields ?? []) if (String(t?.field ?? "").startsWith(r)) return fm(t, n) ||
|
|
5234
|
-
return
|
|
5235
|
-
},
|
|
5236
|
-
let { amount: n, currency: r, unit: i } = Em(e, t,
|
|
5248
|
+
for (let i of t ?? []) for (let t of i?.fields ?? []) if (String(t?.field ?? "").startsWith(r)) return fm(t, n) || ae[e] || e;
|
|
5249
|
+
return ae[e] || e;
|
|
5250
|
+
}, se = (e, t) => {
|
|
5251
|
+
let { amount: n, currency: r, unit: i } = Em(e, t, f), a = e?.timestamp?.$date ?? e?.timestamp ?? e?.updatedAt?.$date ?? e?.updatedAt ?? e?.changedAt?.$date ?? e?.changedAt, o = e?.updatedBy ?? e?.changedBy, s = n == null || n === "" ? null : Number(n);
|
|
5237
5252
|
return {
|
|
5238
5253
|
amount: s != null && !Number.isNaN(s) ? `${Om(r)}${Pm(s)}` : "—",
|
|
5239
5254
|
unit: Am(i),
|
|
5240
5255
|
when: a && Jl(a).isValid() ? We(a) : "",
|
|
5241
|
-
by: o == null ? "" :
|
|
5256
|
+
by: o == null ? "" : ee[String(o)] || te[String(o)] || ""
|
|
5242
5257
|
};
|
|
5243
|
-
},
|
|
5244
|
-
if (!
|
|
5245
|
-
let e = lm(
|
|
5246
|
-
return
|
|
5247
|
-
let r =
|
|
5258
|
+
}, ce = L(() => {
|
|
5259
|
+
if (!M) return [];
|
|
5260
|
+
let e = lm(f), t = [];
|
|
5261
|
+
return ie.forEach((n) => {
|
|
5262
|
+
let r = M[n];
|
|
5248
5263
|
if (!Array.isArray(r) || r.length === 0) return;
|
|
5249
5264
|
let i = r.filter((e) => e && (e.timestamp || e.updatedAt || e.changedAt));
|
|
5250
5265
|
i.length !== 0 && t.push({
|
|
5251
5266
|
key: n,
|
|
5252
|
-
label:
|
|
5253
|
-
entries: [...i].reverse().map((e) =>
|
|
5267
|
+
label: oe(n, f, e),
|
|
5268
|
+
entries: [...i].reverse().map((e) => se(e, n))
|
|
5254
5269
|
});
|
|
5255
5270
|
}), t;
|
|
5256
5271
|
}, [
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
]),
|
|
5263
|
-
let e = new Set(
|
|
5264
|
-
return e.size ?
|
|
5272
|
+
M,
|
|
5273
|
+
f,
|
|
5274
|
+
ie,
|
|
5275
|
+
ee,
|
|
5276
|
+
te
|
|
5277
|
+
]), le = L(() => {
|
|
5278
|
+
let e = new Set(ce.map((e) => e.key));
|
|
5279
|
+
return e.size ? re.map((t) => {
|
|
5265
5280
|
if (!Yh(t.appendHistory)) return t;
|
|
5266
5281
|
let n = [t.historyField, ...t.historyFields || []].filter((t) => t && e.has(t));
|
|
5267
5282
|
return n.length ? {
|
|
5268
5283
|
...t,
|
|
5269
5284
|
fields: t.fields.filter((e) => !n.some((t) => String(e.field ?? "").startsWith(`${t}.`)))
|
|
5270
5285
|
} : t;
|
|
5271
|
-
}).filter((e) => e.fields.length) :
|
|
5272
|
-
}, [
|
|
5273
|
-
let e = new Set(
|
|
5286
|
+
}).filter((e) => e.fields.length) : re;
|
|
5287
|
+
}, [re, ce]), ue = L(() => {
|
|
5288
|
+
let e = new Set(ce.map((e) => e.key)), t = f.find((t) => Yh(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
|
|
5274
5289
|
return t?.label ?? t?.name ?? "Rate Details";
|
|
5275
|
-
}, [
|
|
5276
|
-
|
|
5277
|
-
},
|
|
5278
|
-
if (!
|
|
5290
|
+
}, [f, ce]), de = e === "job", fe = L(() => de ? Zh(f) : null, [de, f]), pe = () => {
|
|
5291
|
+
b(!1), S("");
|
|
5292
|
+
}, me = async () => {
|
|
5293
|
+
if (!x.trim()) {
|
|
5279
5294
|
J.warning("Please enter a job description");
|
|
5280
5295
|
return;
|
|
5281
5296
|
}
|
|
5282
|
-
|
|
5297
|
+
w(!0);
|
|
5283
5298
|
try {
|
|
5284
|
-
await mp(t,
|
|
5299
|
+
await mp(t, x.trim()), b(!1), S(""), h(!0);
|
|
5285
5300
|
let n = await Pe({
|
|
5286
5301
|
module: e,
|
|
5287
5302
|
id: t,
|
|
5288
5303
|
view: "detail"
|
|
5289
5304
|
});
|
|
5290
|
-
|
|
5305
|
+
p(Array.isArray(n) ? n : []), J.success("Description updated and parsed successfully"), r?.();
|
|
5291
5306
|
} catch {
|
|
5292
5307
|
J.error("Failed to update description");
|
|
5293
5308
|
} finally {
|
|
5294
|
-
|
|
5309
|
+
w(!1), h(!1);
|
|
5295
5310
|
}
|
|
5296
|
-
},
|
|
5311
|
+
}, he = (e) => {
|
|
5297
5312
|
let t = Number(e.detailCol);
|
|
5298
5313
|
if (Number.isFinite(t) && t > 0) return Math.max(1, Math.min(3, Math.round(t / 8)));
|
|
5299
5314
|
let n = typeof e.value == "string" ? e.value : "";
|
|
5300
5315
|
return e.renderType === "document" || e.type === "text-editor" || n.length > 120 ? 3 : /\s(?:·|-|–|\/)\s/.test(n) && n.length >= 16 ? 2 : 1;
|
|
5301
|
-
},
|
|
5316
|
+
}, ge = (e) => e.renderType === "document" || e.type === "text-editor" || (typeof e.value == "string" ? e.value : "").length > 60, _e = L(() => lm(f), [f]), ve = (e, t) => {
|
|
5302
5317
|
let n = String(e?.field ?? "").trim();
|
|
5303
|
-
if (!n || !
|
|
5304
|
-
let r =
|
|
5318
|
+
if (!n || !O.has(n)) return t;
|
|
5319
|
+
let r = A[n];
|
|
5305
5320
|
if (!r || !Object.keys(r).length) return t;
|
|
5306
5321
|
let i = (e) => {
|
|
5307
5322
|
if (e == null || e === "") return e;
|
|
@@ -5314,17 +5329,17 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5314
5329
|
return r[String(e)] ?? e;
|
|
5315
5330
|
};
|
|
5316
5331
|
return Array.isArray(t) ? t.map(i) : i(t);
|
|
5317
|
-
},
|
|
5318
|
-
let t =
|
|
5332
|
+
}, ye = (e) => {
|
|
5333
|
+
let t = ve(e, e?.value);
|
|
5319
5334
|
return t === e?.value ? e : {
|
|
5320
5335
|
...e,
|
|
5321
5336
|
value: t
|
|
5322
5337
|
};
|
|
5323
|
-
},
|
|
5324
|
-
let r =
|
|
5338
|
+
}, be = (e, t = "", n = _e) => {
|
|
5339
|
+
let r = ye(e), i = r.label ?? r.field, a = ge(r), o = typeof r.value == "string" ? r.value : void 0;
|
|
5325
5340
|
return /* @__PURE__ */ X("div", {
|
|
5326
5341
|
className: `v1-detail-cell${a ? " v1-detail-cell--wrap" : ""}`,
|
|
5327
|
-
style: { "--v1-cell-span":
|
|
5342
|
+
style: { "--v1-cell-span": he(r) },
|
|
5328
5343
|
children: /* @__PURE__ */ Z("div", {
|
|
5329
5344
|
className: "v1-detail-field",
|
|
5330
5345
|
title: !a && o ? `${i}: ${o}` : void 0,
|
|
@@ -5339,18 +5354,18 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5339
5354
|
})]
|
|
5340
5355
|
})
|
|
5341
5356
|
}, `${e.field}${t}`);
|
|
5342
|
-
},
|
|
5343
|
-
let r =
|
|
5357
|
+
}, xe = /^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}|$)/, Se = (e, t, n = _e) => {
|
|
5358
|
+
let r = ve(e, t), i = sm(e, r, St());
|
|
5344
5359
|
if (i) return i.join("; ");
|
|
5345
5360
|
if (r == null || typeof r == "object" && !Array.isArray(r)) return "";
|
|
5346
5361
|
let a = Array.isArray(r) ? r.map((e) => String(e ?? "").trim()).filter(Boolean).join(", ") : String(r).trim();
|
|
5347
5362
|
if (!a) return "";
|
|
5348
|
-
if (e?.type === "date" || e?.renderType === "date" ||
|
|
5363
|
+
if (e?.type === "date" || e?.renderType === "date" || xe.test(a)) {
|
|
5349
5364
|
let t = Jl(a);
|
|
5350
5365
|
if (t.isValid()) return t.format(e?.renderOptions?.dateFormat || St().dateFormat);
|
|
5351
5366
|
}
|
|
5352
5367
|
return (e?.formatter === "phone" || e?.type === "phone" || e?.renderType === "phone") && we(e, a, n) || a;
|
|
5353
|
-
},
|
|
5368
|
+
}, Ce = (e, t) => {
|
|
5354
5369
|
if (e?.hidePartLabel || e?.renderOptions?.hidePartLabel) return "";
|
|
5355
5370
|
let n = String(e?.label ?? "").trim();
|
|
5356
5371
|
if (!n) return "";
|
|
@@ -5361,11 +5376,11 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5361
5376
|
a += 1;
|
|
5362
5377
|
}
|
|
5363
5378
|
return i.slice(a).join(" ").trim();
|
|
5364
|
-
},
|
|
5379
|
+
}, Ee = (e, t, n, r, i = _e) => {
|
|
5365
5380
|
let a = e.map((e) => ({
|
|
5366
5381
|
field: e,
|
|
5367
5382
|
cell: n(e)
|
|
5368
|
-
})), o = a.filter(({ cell: e }) =>
|
|
5383
|
+
})), o = a.filter(({ cell: e }) => ke(e)).map(({ cell: e }) => ({
|
|
5369
5384
|
...e,
|
|
5370
5385
|
renderType: "document"
|
|
5371
5386
|
})).filter((e) => Hp(e.value)), s = /* @__PURE__ */ new Set();
|
|
@@ -5376,13 +5391,13 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5376
5391
|
n !== e && t.includes(n.field) && s.add(n.field);
|
|
5377
5392
|
});
|
|
5378
5393
|
});
|
|
5379
|
-
let c = typeof t.combineLabel == "string" && t.combineLabel.trim() ? t.combineLabel : t.label ?? t.field, l = a.filter(({ cell: e }) => !
|
|
5394
|
+
let c = typeof t.combineLabel == "string" && t.combineLabel.trim() ? t.combineLabel : t.label ?? t.field, l = a.filter(({ cell: e }) => !ke(e)).filter(({ field: e }) => !s.has(e.field)).filter(({ cell: e }) => !Kp(e, e.value)).map(({ field: e, cell: t }) => ({
|
|
5380
5395
|
key: e.field,
|
|
5381
|
-
label:
|
|
5382
|
-
text:
|
|
5396
|
+
label: Ce(e, c),
|
|
5397
|
+
text: Se(e, t.value, i)
|
|
5383
5398
|
})).filter((e) => e.text !== "");
|
|
5384
5399
|
if (!l.length && !o.length && Kp(t, void 0)) return null;
|
|
5385
|
-
let u = l.map((e) => `${e.label ? `${e.label} ` : ""}${e.text}`).join(" · "), d =
|
|
5400
|
+
let u = l.map((e) => `${e.label ? `${e.label} ` : ""}${e.text}`).join(" · "), d = he({
|
|
5386
5401
|
detailCol: t.detailCol,
|
|
5387
5402
|
value: u
|
|
5388
5403
|
}), f = o.length ? Math.max(d, 2) : d;
|
|
@@ -5420,7 +5435,7 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5420
5435
|
]
|
|
5421
5436
|
})
|
|
5422
5437
|
}, `${t.field}-merged${r}`);
|
|
5423
|
-
},
|
|
5438
|
+
}, De = (e, t, n = "", r = _e) => {
|
|
5424
5439
|
let i = /* @__PURE__ */ new Set(), a = [];
|
|
5425
5440
|
return e.forEach((o) => {
|
|
5426
5441
|
let s = o.combineKey?.trim?.();
|
|
@@ -5429,17 +5444,17 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5429
5444
|
i.add(s);
|
|
5430
5445
|
let o = e.filter((e) => e.combineKey?.trim?.() === s);
|
|
5431
5446
|
if (o.length > 1) {
|
|
5432
|
-
let e = o.find((e) => e.combineLabel) ?? o[0], i =
|
|
5447
|
+
let e = o.find((e) => e.combineLabel) ?? o[0], i = Ee(o, e, t, n, r);
|
|
5433
5448
|
i && a.push(i);
|
|
5434
5449
|
return;
|
|
5435
5450
|
}
|
|
5436
5451
|
}
|
|
5437
5452
|
let c = t(o);
|
|
5438
|
-
Kp(c, c.value) || a.push(
|
|
5453
|
+
Kp(c, c.value) || a.push(be(c, n, r));
|
|
5439
5454
|
}), a;
|
|
5440
|
-
},
|
|
5455
|
+
}, Oe = L(() => {
|
|
5441
5456
|
let e = {};
|
|
5442
|
-
for (let t of
|
|
5457
|
+
for (let t of T) {
|
|
5443
5458
|
let n = t.fieldName || t.field || "file";
|
|
5444
5459
|
(e[n] ??= []).push({
|
|
5445
5460
|
location: t.s3Key ?? t.location ?? t.uniqueName ?? "",
|
|
@@ -5448,25 +5463,25 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5448
5463
|
});
|
|
5449
5464
|
}
|
|
5450
5465
|
return e;
|
|
5451
|
-
}, [
|
|
5466
|
+
}, [T]), ke = (e) => e.type === "file" || e.type === "document" || e.renderType === "document", Ae = (e) => Oe[e.field] || e.fileKey && Oe[e.fileKey] || null, je = (e) => String(e?.name || e?.location || "").trim().toLowerCase(), Me = (e) => {
|
|
5452
5467
|
let [t] = F(e);
|
|
5453
|
-
return !t || !t.location && !t.url ? null :
|
|
5454
|
-
},
|
|
5468
|
+
return !t || !t.location && !t.url ? null : je(t);
|
|
5469
|
+
}, Ne = (e, t = []) => {
|
|
5455
5470
|
let n = /* @__PURE__ */ new Set(), r = [], i = (e) => {
|
|
5456
5471
|
if (e == null || e === "") return;
|
|
5457
|
-
let t =
|
|
5472
|
+
let t = Me(e);
|
|
5458
5473
|
t !== null && (t && n.has(t) || (t && n.add(t), r.push(e)));
|
|
5459
5474
|
};
|
|
5460
5475
|
return t.forEach(i), (Array.isArray(e) ? e : [e]).forEach(i), r;
|
|
5461
|
-
},
|
|
5476
|
+
}, Fe = (e) => F(e).map(je).filter(Boolean), Ie = (e) => {
|
|
5462
5477
|
let t = (e.validations ?? []).find((e) => e?.type === "maxFiles");
|
|
5463
5478
|
return t ? Math.max(1, Number(t.value ?? 1)) : Yh(e.multiple) ? Math.max(1, Number(e.maxCount ?? 5)) : Math.max(1, Number(e.maxCount ?? 1));
|
|
5464
|
-
},
|
|
5465
|
-
let r =
|
|
5479
|
+
}, Le = (e, t, n) => {
|
|
5480
|
+
let r = Ie(e);
|
|
5466
5481
|
if (t.length <= r) return t;
|
|
5467
|
-
let [i] =
|
|
5468
|
-
return (i ? [...t].sort((e, t) => Number(
|
|
5469
|
-
},
|
|
5482
|
+
let [i] = Fe(n);
|
|
5483
|
+
return (i ? [...t].sort((e, t) => Number(Me(t) === i) - Number(Me(e) === i)) : t).slice(0, r);
|
|
5484
|
+
}, Re = (e, t) => {
|
|
5470
5485
|
if (e.type === "file" || e.type === "document") return {
|
|
5471
5486
|
...e,
|
|
5472
5487
|
renderType: "document",
|
|
@@ -5477,19 +5492,19 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5477
5492
|
...e,
|
|
5478
5493
|
value: n
|
|
5479
5494
|
};
|
|
5480
|
-
},
|
|
5481
|
-
if (!
|
|
5482
|
-
let t =
|
|
5495
|
+
}, ze = (e) => {
|
|
5496
|
+
if (!ke(e)) return e;
|
|
5497
|
+
let t = Le(e, Ne(e.value, Ae(e) ?? []), e.value);
|
|
5483
5498
|
return t.length ? {
|
|
5484
5499
|
...e,
|
|
5485
5500
|
renderType: "document",
|
|
5486
5501
|
value: t
|
|
5487
5502
|
} : e;
|
|
5488
|
-
},
|
|
5489
|
-
let r = e.name ?? e.id ?? String(t), i = Array.isArray(e.rows) ? e.rows : [], a = new Set(i.flatMap((e) =>
|
|
5490
|
-
return n.filter(
|
|
5491
|
-
(
|
|
5492
|
-
let t =
|
|
5503
|
+
}, Be = (e, t, n) => {
|
|
5504
|
+
let r = e.name ?? e.id ?? String(t), i = Array.isArray(e.rows) ? e.rows : [], a = new Set(i.flatMap((e) => Fe(e))), o = [], s = /* @__PURE__ */ new Set();
|
|
5505
|
+
return n.filter(ke).forEach((e) => {
|
|
5506
|
+
(Ae(e) ?? []).forEach((e) => {
|
|
5507
|
+
let t = je(e);
|
|
5493
5508
|
!t || a.has(t) || s.has(t) || (s.add(t), o.push(e));
|
|
5494
5509
|
});
|
|
5495
5510
|
}), /* @__PURE__ */ Z(Vo, {
|
|
@@ -5514,13 +5529,13 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5514
5529
|
]
|
|
5515
5530
|
}), /* @__PURE__ */ X("div", {
|
|
5516
5531
|
className: "v1-detail-grid",
|
|
5517
|
-
children:
|
|
5532
|
+
children: De(n, (e) => Re(e, t), `-${r}`, t)
|
|
5518
5533
|
})]
|
|
5519
5534
|
}, r)), o.length > 0 && /* @__PURE__ */ X("div", {
|
|
5520
5535
|
className: "v1-detail-addrow-item",
|
|
5521
5536
|
children: /* @__PURE__ */ X("div", {
|
|
5522
5537
|
className: "v1-detail-grid",
|
|
5523
|
-
children:
|
|
5538
|
+
children: be({
|
|
5524
5539
|
field: `${r}-files`,
|
|
5525
5540
|
label: "Uploaded Files",
|
|
5526
5541
|
renderType: "document",
|
|
@@ -5530,62 +5545,63 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5530
5545
|
})
|
|
5531
5546
|
})]
|
|
5532
5547
|
}, r);
|
|
5533
|
-
},
|
|
5534
|
-
let i = n.name ?? n.id ?? String(r), a =
|
|
5548
|
+
}, Ve = (n, r) => {
|
|
5549
|
+
let i = n.name ?? n.id ?? String(r), a = fe ? n.fields.filter((e) => e.field !== fe.key) : n.fields, o = Sh(n);
|
|
5535
5550
|
if (!a.length && !o.length) return null;
|
|
5536
|
-
if (n.addRow && a.length) return
|
|
5551
|
+
if (n.addRow && a.length) return Be(n, r, a);
|
|
5537
5552
|
let s = fh(n);
|
|
5538
5553
|
if (s && !o.length && !gh({
|
|
5539
5554
|
...n,
|
|
5540
5555
|
fields: a
|
|
5541
5556
|
}).length) return null;
|
|
5542
|
-
let
|
|
5557
|
+
let f = s && a.length ? /* @__PURE__ */ X(Th, {
|
|
5543
5558
|
group: {
|
|
5544
5559
|
...n,
|
|
5545
5560
|
fields: a
|
|
5546
5561
|
},
|
|
5547
|
-
record:
|
|
5548
|
-
}) : null,
|
|
5562
|
+
record: _e
|
|
5563
|
+
}) : null, p = uh(n), m = bh(n), h = String(n.detailLinkTab ?? "").trim(), g = h && typeof c == "function" ? /* @__PURE__ */ X(z, {
|
|
5549
5564
|
type: "link",
|
|
5550
5565
|
size: "small",
|
|
5551
5566
|
className: "v1-detail-card__link",
|
|
5552
|
-
onClick: () => c(
|
|
5567
|
+
onClick: () => c(h),
|
|
5553
5568
|
children: n.detailLinkLabel || "View All"
|
|
5554
5569
|
}) : null;
|
|
5555
5570
|
return /* @__PURE__ */ Z(Vo, {
|
|
5556
5571
|
size: "small",
|
|
5557
|
-
className: `v1-card v1-detail-card${s ? ` v1-detail-card--${s}` : ""}${
|
|
5558
|
-
style:
|
|
5572
|
+
className: `v1-card v1-detail-card${s ? ` v1-detail-card--${s}` : ""}${p ? ` v1-detail-card--w-${n.detailWidth}` : ""}${o.length ? " v1-detail-card--with-actions" : ""}`,
|
|
5573
|
+
style: p ? { "--v1-group-span": p } : void 0,
|
|
5559
5574
|
"data-group": n.name ?? void 0,
|
|
5560
|
-
"data-column":
|
|
5575
|
+
"data-column": m || void 0,
|
|
5561
5576
|
title: /* @__PURE__ */ X(ag, {
|
|
5562
5577
|
icon: Jh[r % Jh.length],
|
|
5563
5578
|
title: n.label ?? n.name ?? "Details"
|
|
5564
5579
|
}),
|
|
5565
|
-
extra:
|
|
5566
|
-
children: [a.length ?
|
|
5580
|
+
extra: g,
|
|
5581
|
+
children: [a.length ? f ?? /* @__PURE__ */ X("div", {
|
|
5567
5582
|
className: "v1-detail-grid",
|
|
5568
|
-
children:
|
|
5583
|
+
children: De(a, ze)
|
|
5569
5584
|
}) : null, o.length ? /* @__PURE__ */ X(Kh, {
|
|
5570
5585
|
moduleName: e,
|
|
5571
5586
|
keys: o,
|
|
5572
5587
|
record: {
|
|
5573
|
-
...
|
|
5574
|
-
_id:
|
|
5575
|
-
id:
|
|
5588
|
+
..._e,
|
|
5589
|
+
_id: _e?._id ?? t,
|
|
5590
|
+
id: _e?.id ?? t
|
|
5576
5591
|
},
|
|
5577
5592
|
onHostAction: l,
|
|
5578
|
-
onDone: u
|
|
5593
|
+
onDone: u,
|
|
5594
|
+
displayOnly: Array.isArray(d) && d.includes(n.name)
|
|
5579
5595
|
}) : null]
|
|
5580
5596
|
}, i);
|
|
5581
|
-
},
|
|
5597
|
+
}, He = () => /* @__PURE__ */ X(Vo, {
|
|
5582
5598
|
size: "small",
|
|
5583
5599
|
className: "v1-card v1-detail-card",
|
|
5584
5600
|
title: /* @__PURE__ */ X(ag, {
|
|
5585
5601
|
icon: /* @__PURE__ */ X(Pc, {}),
|
|
5586
|
-
title:
|
|
5602
|
+
title: ue
|
|
5587
5603
|
}),
|
|
5588
|
-
children:
|
|
5604
|
+
children: ce.map((e, t) => /* @__PURE__ */ Z("div", {
|
|
5589
5605
|
className: `v1-rh-section${t > 0 ? " v1-rh-section--gap" : ""}`,
|
|
5590
5606
|
children: [/* @__PURE__ */ X("div", {
|
|
5591
5607
|
className: "v1-rh-section-title",
|
|
@@ -5627,49 +5643,49 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5627
5643
|
}, t))
|
|
5628
5644
|
})]
|
|
5629
5645
|
}, e.key))
|
|
5630
|
-
}, "rate-details-history"),
|
|
5631
|
-
let e =
|
|
5646
|
+
}, "rate-details-history"), Ue = L(() => {
|
|
5647
|
+
let e = f.find((e) => Yh(e.appendHistory) && e.historyAfterGroup);
|
|
5632
5648
|
return String(e?.historyAfterGroup ?? "").trim().toLowerCase();
|
|
5633
|
-
}, [
|
|
5649
|
+
}, [f]), Ge = (e) => Ue ? String(e.name ?? "").trim().toLowerCase() === Ue : /current_employer|employer_details/i.test(e.name || "") || (e.fields || []).some((e) => e.field === "employerId");
|
|
5634
5650
|
return /* @__PURE__ */ X(ps, {
|
|
5635
|
-
spinning:
|
|
5651
|
+
spinning: m,
|
|
5636
5652
|
tip: "Loading detail fields...",
|
|
5637
5653
|
children: /* @__PURE__ */ Z("div", {
|
|
5638
|
-
className: `v1-detail-left${dh(
|
|
5654
|
+
className: `v1-detail-left${dh(le) ? " v1-detail-left--layout" : ""}`,
|
|
5639
5655
|
children: [
|
|
5640
|
-
|
|
5656
|
+
g && /* @__PURE__ */ X(Io, {
|
|
5641
5657
|
type: "error",
|
|
5642
5658
|
showIcon: !0,
|
|
5643
5659
|
message: "Unable to load detail fields",
|
|
5644
|
-
description:
|
|
5660
|
+
description: g,
|
|
5645
5661
|
className: "v1-detail-alert"
|
|
5646
5662
|
}),
|
|
5647
|
-
!
|
|
5648
|
-
xh(
|
|
5663
|
+
!m && !g && le.length === 0 && ce.length === 0 && (s ?? /* @__PURE__ */ X(Yo, { description: "No detail fields are configured." })),
|
|
5664
|
+
xh(le) ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
5649
5665
|
className: "v1-detail-columns",
|
|
5650
|
-
"data-columns": Math.max(...
|
|
5666
|
+
"data-columns": Math.max(...le.map(bh)),
|
|
5651
5667
|
children: [
|
|
5652
5668
|
1,
|
|
5653
5669
|
2,
|
|
5654
5670
|
3
|
|
5655
|
-
].filter((e) => e <= Math.max(...
|
|
5671
|
+
].filter((e) => e <= Math.max(...le.map(bh))).map((e) => /* @__PURE__ */ X("div", {
|
|
5656
5672
|
className: "v1-detail-column",
|
|
5657
5673
|
"data-column": e,
|
|
5658
|
-
children:
|
|
5674
|
+
children: le.map((t, n) => bh(t) === e ? Ve(t, n) : null)
|
|
5659
5675
|
}, `column-${e}`))
|
|
5660
|
-
}),
|
|
5661
|
-
let n = [
|
|
5662
|
-
return
|
|
5676
|
+
}), le.map((e, t) => bh(e) ? null : Ve(e, t))] }) : le.flatMap((e, t) => {
|
|
5677
|
+
let n = [Ve(e, t)];
|
|
5678
|
+
return Ge(e) && ce.length > 0 && n.push(He()), n;
|
|
5663
5679
|
}),
|
|
5664
|
-
|
|
5665
|
-
|
|
5680
|
+
ce.length > 0 && !le.some(Ge) && He(),
|
|
5681
|
+
de && fe?.value && /* @__PURE__ */ X(Vo, {
|
|
5666
5682
|
size: "small",
|
|
5667
5683
|
className: "v1-card v1-detail-card",
|
|
5668
5684
|
title: /* @__PURE__ */ X(ag, {
|
|
5669
5685
|
icon: /* @__PURE__ */ X(Dc, {}),
|
|
5670
5686
|
title: "Description"
|
|
5671
5687
|
}),
|
|
5672
|
-
children:
|
|
5688
|
+
children: y ? /* @__PURE__ */ Z("div", {
|
|
5673
5689
|
style: {
|
|
5674
5690
|
display: "flex",
|
|
5675
5691
|
flexDirection: "column",
|
|
@@ -5685,9 +5701,9 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5685
5701
|
},
|
|
5686
5702
|
children: /* @__PURE__ */ X(H.TextArea, {
|
|
5687
5703
|
rows: 10,
|
|
5688
|
-
value:
|
|
5689
|
-
onChange: (e) =>
|
|
5690
|
-
placeholder:
|
|
5704
|
+
value: x,
|
|
5705
|
+
onChange: (e) => S(e.target.value),
|
|
5706
|
+
placeholder: fe.hidePlaceholder ? void 0 : fe.placeholder,
|
|
5691
5707
|
style: {
|
|
5692
5708
|
fontSize: 13,
|
|
5693
5709
|
lineHeight: 1.65,
|
|
@@ -5705,16 +5721,16 @@ function sg({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r, ma
|
|
|
5705
5721
|
children: [/* @__PURE__ */ X(Mn, {
|
|
5706
5722
|
variant: "primary",
|
|
5707
5723
|
size: "small",
|
|
5708
|
-
loading:
|
|
5709
|
-
onClick:
|
|
5724
|
+
loading: C,
|
|
5725
|
+
onClick: me,
|
|
5710
5726
|
children: "Save & Parse"
|
|
5711
5727
|
}), /* @__PURE__ */ X(Mn, {
|
|
5712
5728
|
size: "small",
|
|
5713
|
-
onClick:
|
|
5729
|
+
onClick: pe,
|
|
5714
5730
|
children: "Cancel"
|
|
5715
5731
|
})]
|
|
5716
5732
|
})]
|
|
5717
|
-
}) : /* @__PURE__ */ X(og, { value:
|
|
5733
|
+
}) : /* @__PURE__ */ X(og, { value: fe.value })
|
|
5718
5734
|
})
|
|
5719
5735
|
]
|
|
5720
5736
|
})
|
|
@@ -68216,7 +68232,8 @@ function MY({ tab: e, moduleName: t, id: n, refreshKey: r, onOpenTab: i = null,
|
|
|
68216
68232
|
emptyContent: d,
|
|
68217
68233
|
onOpenTab: i,
|
|
68218
68234
|
onHostAction: a,
|
|
68219
|
-
onActionDone: o
|
|
68235
|
+
onActionDone: o,
|
|
68236
|
+
displayOnlyActionGroups: Array.isArray(e.displayOnlyActionGroups) ? e.displayOnlyActionGroups : null
|
|
68220
68237
|
})
|
|
68221
68238
|
});
|
|
68222
68239
|
}
|
|
@@ -73211,7 +73228,7 @@ async function OQ(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
|
|
|
73211
73228
|
}
|
|
73212
73229
|
//#endregion
|
|
73213
73230
|
//#region src/index.js
|
|
73214
|
-
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-
|
|
73231
|
+
typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-13T14:35:17.266Z");
|
|
73215
73232
|
var kQ = AV, AQ = WD(zW), jQ = WD(VW), MQ = WD(nG), NQ = WD(mG), PQ = WD(CG), FQ = WD(EG), IQ = WD(kG), LQ = WD(MG), RQ = WD(PG), zQ = WD(qG), BQ = WD(YG);
|
|
73216
73233
|
//#endregion
|
|
73217
73234
|
export { se as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, sY as ActionInputBox, qf as ActivityNotesCard, Hf as ActivityTab, aV as AddBatchCandidatePopup, Aa as AddFormV1, JZ as AddRecordDrawer, AV as AdminDashboard, nI as AdminDashboardContent, kQ as AdminPage, Ra as AppAlert, Mn as AppButton, pD as AppShell, bw as ApprovalActionBar, Jf as AssigneeAvatars, oD as AuthGuard, l_ as BILLING_STATUS_FLOW, oC as BOOLEAN_API_KEYS, Gx as BOOLEAN_PARSEABLE_API_KEYS, bv as BUILT_IN_WIZARD_STEP_TYPES, Yf as BULK_UPLOAD_DEFAULT_ACCEPT, Xf as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, rt as Breadcrumb, MQ as BulkUploadPage, ip as BulkUploadPanel, t as CANDIDATES_URL, Ww as CONTRACT_C2C, Uw as CONTRACT_W2, Dm as CURRENCY_SYMBOLS, bu as CalendarCard, zX as CombinedDashboardPage, zX as DASHBOARDPAGE, IY as CombinedDetailViewPage, IY as DETAILVIEWPAGE, SY as CombinedHomePage, SY as HOMEPAGE, BZ as CompactRecordList, oI as CoreThemeAdminApp, aI as CoreThemeAdminRoutes, jZ as CreateActionButton, pe as CustomPagination, HC as DEFAULT_HOURS_POLICY, nC as DEFAULT_RESULTS_VIEW, wZ as DETAILSSECTION, wZ as DetailsSection, _Z as DETAILS_BLOCKS, BX as DETAILS_ICONS, fw as DayLogModal, _p as DescriptionBlock, fv as DetailHeaderCard, yv as DetailViewPage, sg as DetailViewV1, va as DocumentViewer, xf as DynamicCards, DR as DynamicPopup, uV as DynamicPopupRoute, kn as DynamicTabs, Yb as DynamicWizard, Ub as EditFormV1, ES as FIELD_TYPE_REGISTRY, Fw as FINANCE_APPROVAL_CONFIG, Ow as FINANCE_TYPE_CFO, Dw as FINANCE_TYPE_ONBOARDING_MANAGER, jw as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, kw as FINANCE_TYPE_ONLY_FINANCE, Ew as FINANCE_TYPE_SUBMISSION_MANAGER, Aw as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, YT as FileListCard, JK as FilterRail, OT as FinanceApprovalPanel, W_ as FinanceAvatar, J_ as FinanceBadge, Sw as FinanceDayCell, I_ as FinanceDivider, G_ as FinanceEmployeeCell, N_ as FinanceEmptyState, L_ as FinanceEquation, V_ as FinanceHistoryTimeline, M_ as FinanceHoursGrid, j_ as FinanceKpiRow, F_ as FinanceLine, VC as FinanceListToolbar, Y_ as FinanceMarginBadge, q_ as FinanceMoneyCell, Q_ as FinanceRecordsTable, X_ as FinanceRowChevron, P_ as FinanceSection, A_ as FinanceStatusPill, K_ as FinanceTextCell, ww as FinanceTimesheetAnalysis, R_ as FinanceWorkflowSteps, UC as HOURS_MESSAGES, wE as Header, Ef as HierarchyUserFilter, CY as HubOverview, T as JOBS_URL, AQ as LegacyAdminPage, cr as ListView, cq as ListWithQuickView, BQ as LmsHomePage, zQ as LmsTestForm, mD as Login, bq as MATCH_NOTHING, LI as MailPopup, FQ as ManageModules, IQ as ManageSubmodules, AZ as MasterDetailWorkspace, ex as ModuleRowActions, aQ as ModuleWorkspace, yw as NotesPanel, Kf as NotesTab, qS as OPEN_AS_OPTIONS, MJ as PAGE_ICONS, u_ as PAYROLL_STATUS_FLOW, XB as POPUP_CONFIGS, GZ as PanelBreadcrumb, UZ as PanelTabs, wx as ParamCardView, Ax as ParamListView, bV as PaymentInvoicePopup, tw as PeriodBadgeTag, mL as PreviewPopup, UD as ProjectSelect, vw as ProofUploadPreview, hw as QuickLogBar, pw as QuickLogSelectionBar, xY as QuickViewCard, cY as QuickViewModuleActions, sq as QuickViewPopover, TK as RAIL_KIND, oJ as REALTIME_STATUS, tC as RESULTS_VIEW_OPTIONS, EQ as RealtimeProvider, WZ as RecordDetailPanel, AY as RecordHub, yq as RecordQuickView, qZ as RecordSidePanel, mw as RejectionReasonModal, Xq as RelatedModuleTab, r as SUBMISSIONS_URL, MC as SearchBuilderV1, lQ as SearchResultsWorkspace, dQ as SearchSummaryBanner, VU as SettingsPage, nD as Sidebar, Ia as StatStrip, PC as StatusBadge, ew as StatusBadgeTag, jQ as StickyNotesFullPage, IC as StylishDynamicTabs, RC as TemplateEditor, NQ as TestForm, RQ as TestingHomePage, Pf as TimelineGroups, lw as TimesheetDayCell, ht as TipTapEditor, kV as UserForm, mV as VendorShareDrawer, br as ViewSummaryWidget, Fy as WIZARD_ACTIONS_CONTRACT_VERSION, Iy as WIZARD_ACTIONS_PATH, uy as WIZARD_CONTENT_TYPES, Sy as WizardAccessMatrixStep, Ry as WizardActionError, Cy as WizardActivityStep, xy as WizardChoiceCardsStep, wy as WizardDeclarationStep, _y as WizardListStep, Zv as WizardPermissionMatrixStep, bL as WizardPopup, Dy as WizardPreview, qv as WizardPreviewStep, Py as WizardStepContent, Ay as WizardSuccessStep, jy as WizardUnknownContentStep, vQ as WorkspaceAppFrame, oq as WorkspaceListView, MZ as WorkspaceTopBar, LQ as ZinnextTableView, PQ as ZinnextTestForm, Rn as actedRecently, Dn as actionRuleConditionMatches, hx as adminActionAllowed, N as appNow, qi as applyIntegrationStatus, Qu as approveSubmission, BY as attentionItems, tp as buildAcceptAttr, dC as buildBooleanRequest, w_ as buildCsv, v_ as buildDailyRows, sw as buildDayGradient, Ka as buildFormWizardSteps, hT as buildRateHistoryEntries, wq as buildRelationConditions, gC as buildSearchRequest, x_ as buildWeeklyRollup, sJ as canonicalModule, er as clearNewRecord, m as clearSelectedProject, Ze as colors, sT as computeFinance, YC as computeHoursPolicy, S_ as computeMarginBand, dr as conditionMatches, n as configureCoreTheme, Vn as configuredFieldLabel, Kb as configuredWizardSteps, $t as confirmAction, BK as countActiveRows, SK as createAllWorkflowsListFetcher, gK as createMergedListFetcher, lK as createModuleListFetchAdapter, pJ as createRealtimeClient, _K as createWorkflowStageListFetcher, Om as currencySymbol, LY as dashboardRange, tK as defaultMergeRow, Zi as deleteIntegrationConfig, __ as deriveDayStats, ZC as describeCapacity, FZ as displayText, O_ as downloadCsv, RK as draftToRows, rr as evaluateShowIfWith, v as fetchJsonWithAuth, DQ as fetchRelatedRecords, OQ as fetchScopedRecords, Kn as fillConfirmText, tT as findEmployerRow, $w as flattenGroups, Pm as formatAmount, Tn as formatApp, We as formatAppDateTime, ep as formatFileSize, gT as formatFinanceMoney, e_ as formatHours, Fm as formatMoney, n_ as formatPercent, Im as formatRate, TQ as formatSearchCount, wQ as formatSearchDuration, In as getActivity, CK as getAllWorkflowsModuleList, Je as getAppTimeZone, o_ as getApprovalDate, Bi as getBgcIntegrationConfig, ti as getBgcIntegrationSummary, d_ as getBillingActionStates, MS as getBooleanEligibleTypes, l as getCurrentRoleName, E_ as getFieldLabel, OS as getFieldType, $f as getFileExtension, Bw as getFinanceApprovalConfig, Pa as getFormGroups, RT as getFormGroupsRaw, ga as getIntegrationConfig, zr as getIntegrationConfigs, _i as getIntegrationSummary, vd as getModuleConfig, pn as getModuleDataDetail, f_ as getPayrollActionStates, bd as getPeriodBadgeConfig, WS as getSearchPopup, g as getSelectedProject, C as getStoredToken, u as getStoredUser, d as getUserRoles, $u as getVMSApprove, D_ as getValueStyle, wK as getWorkflowStageModuleList, p_ as getWorkflowSteps, a_ as humanizeEvent, T_ as indexFieldConfig, r_ as initialsOf, Bh as inputPayload, Yx as insertTokenAtCursor, y as invalidateGetCache, kS as isBooleanEligible, qx as isBooleanParsable, _ as isTester, Ga as isWizardConfigEnabled, Ja as isWizardConfigReady, qJ as listPropsForColumns, f as logout, yC as makeSearchFetcher, de as mapListResponse, Hw as marginIncludesReferral, yn as markNewRecord, oT as matchLocationTax, so as mergeWizardSubmitValues, cJ as moduleTopic, he as moduleViewAllowed, Zy as n, Hn as newRecordMarks, Lt as normalizeConfirm, rT as normalizeContract, Lh as normalizeInputPrompt, VJ as normalizePageLayout, GK as parseRows, RZ as pickCompactFields, gq as quickViewFields, hq as quickViewValueText, ap as r, Am as rateUnitLabel, Mm as rateUnitShort, ZS as readActionButtons, rq as readPageParam, XC as reconcileHours, ir as recordActionRun, zZ as recordIdOf, lJ as recordTopic, DS as registerFieldType, US as registerSearchPopup, Ov as registerWizardPreview, Dv as registerWizardStepType, td as rejectSubmission, Eq as relationSignature, zf as resolveActivityMeta, cT as resolveAndCompute, qC as resolveDayKind, aT as resolveFinanceInputs, $G as resolveMergeKey, $G as resolveMergedListKey, YS as resolveOpenAs, BJ as resolvePageButtons, NJ as resolvePageIcon, IJ as resolvePageValue, oY as resolveQuickViewActions, Vw as resolveRejectionReason, aC as resolveResultsSearchPlaceholder, iC as resolveResultsView, zT as resolveSubmissionFinance, VK as rowsSignature, zK as rowsToDraft, He as ruleAppliesToSurface, Ke as rulePrimaryAction, Fh as runModuleAction, Hy as runWizardAction, Bv as safeWizardActionRoute, Ki as saveBgcIntegrationConfig, Ci as saveIntegrationConfig, Nq as scopeConditionsFor, CQ as searchCriteriaParts, WK as serializeRows, w as setSelectedProject, Wt as showIfConditions, vK as stageCountKey, Mq as supportsAnyOf, hD as t, hi as testIntegrationConnection, _e as toApp, Nm as toNumber, NK as toRailFields, dJ as topicsForEvent, ke as tzLabel, Be as tzShortLabel, GS as unregisterSearchPopup, Tq as unscopedConditions, _x as useAdminAction, gx as useAdminActionsVersion, Jb as useConfiguredWizardSteps, Mr as useDropdownFields, re as useDropdownValues, XT as useEditForm, P as useFieldConfig, bt as useFilterFields, aq as useInPlaceRecordLinks, jJ as useLiveRefresh, De as useMenuPermission, jh as useModuleActions, Re as useModuleViewAccess, Yt as useNewRecordMarks, EJ as useRealtimeClient, AJ as useRealtimeReconnect, DJ as useRealtimeStatus, kJ as useRealtimeTopics, KZ as useRecordFields, OY as useRecordHub, gv as useRecordRefresh, qq as useRelatedCounts, tq as useWorkspaceList, Jx as validateBooleanQuery, np as validateBulkFile, zh as validateInputValue, i as withAdminAppId, h as withAppId, WD as withAuthGuard, iq as withPageParam, Dq as withSubTab };
|