@realtek/core-theme 0.0.250 → 0.0.251
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 +33 -28
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -47595,7 +47595,12 @@ var $M = (e, t) => Xl(e, t).rows, eN = (e, t) => {
|
|
|
47595
47595
|
total: r
|
|
47596
47596
|
};
|
|
47597
47597
|
};
|
|
47598
|
-
function tN(e) {
|
|
47598
|
+
function tN(e, t) {
|
|
47599
|
+
return function(n, r, i, a = {}) {
|
|
47600
|
+
return e(t ?? n, r, i, a);
|
|
47601
|
+
};
|
|
47602
|
+
}
|
|
47603
|
+
function nN(e) {
|
|
47599
47604
|
return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
|
|
47600
47605
|
...e,
|
|
47601
47606
|
fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
|
|
@@ -47606,8 +47611,8 @@ function tN(e) {
|
|
|
47606
47611
|
fetchById: typeof e.fetchById == "function" ? e.fetchById : null
|
|
47607
47612
|
};
|
|
47608
47613
|
}
|
|
47609
|
-
function
|
|
47610
|
-
return !e && !t && !r ? [] : [
|
|
47614
|
+
function rN({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
|
|
47615
|
+
return !e && !t && !r ? [] : [nN({
|
|
47611
47616
|
key: i,
|
|
47612
47617
|
fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
|
|
47613
47618
|
function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
|
|
@@ -47616,7 +47621,7 @@ function nN({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
|
|
|
47616
47621
|
mergeRow: a
|
|
47617
47622
|
})].filter(Boolean);
|
|
47618
47623
|
}
|
|
47619
|
-
function
|
|
47624
|
+
function iN(e) {
|
|
47620
47625
|
if (typeof e == "function") return (t) => {
|
|
47621
47626
|
let n = e(t);
|
|
47622
47627
|
return n == null || n === "" ? [] : [String(n)];
|
|
@@ -47624,13 +47629,13 @@ function rN(e) {
|
|
|
47624
47629
|
let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : HM;
|
|
47625
47630
|
return (e) => WM(e, t);
|
|
47626
47631
|
}
|
|
47627
|
-
function
|
|
47632
|
+
function aN(e, t) {
|
|
47628
47633
|
let n = /* @__PURE__ */ new Map();
|
|
47629
47634
|
return e.forEach((e) => {
|
|
47630
47635
|
for (let r of t(e)) n.has(r) || n.set(r, e);
|
|
47631
47636
|
}), n;
|
|
47632
47637
|
}
|
|
47633
|
-
function
|
|
47638
|
+
function oN({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
|
|
47634
47639
|
return {
|
|
47635
47640
|
moduleName: e,
|
|
47636
47641
|
limit: t,
|
|
@@ -47644,7 +47649,7 @@ function aN({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
|
|
|
47644
47649
|
source: l
|
|
47645
47650
|
};
|
|
47646
47651
|
}
|
|
47647
|
-
async function
|
|
47652
|
+
async function sN(e, t) {
|
|
47648
47653
|
if (typeof e.args == "function") {
|
|
47649
47654
|
let n = e.args(t);
|
|
47650
47655
|
return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
|
|
@@ -47654,8 +47659,8 @@ async function oN(e, t) {
|
|
|
47654
47659
|
let n = e.fetch ?? e.function;
|
|
47655
47660
|
return typeof n == "function" ? n(t) : null;
|
|
47656
47661
|
}
|
|
47657
|
-
function
|
|
47658
|
-
let h = Array.isArray(r) && r.length ? r.map(
|
|
47662
|
+
function cN({ fetchPrimaryPage: e, extractPrimaryPage: t = eN, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = $M, fetchSecondary: o, extractSecondaryRows: s = $M, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = qM, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
|
|
47663
|
+
let h = Array.isArray(r) && r.length ? r.map(nN).filter(Boolean) : rN({
|
|
47659
47664
|
fetchSecondaryByKeys: n,
|
|
47660
47665
|
fetchSecondary: o,
|
|
47661
47666
|
extractSecondaryRows: s,
|
|
@@ -47675,7 +47680,7 @@ function sN({ fetchPrimaryPage: e, extractPrimaryPage: t = eN, fetchSecondaryByK
|
|
|
47675
47680
|
}
|
|
47676
47681
|
async function v(e, t, n, r, i) {
|
|
47677
47682
|
if (!n) return e;
|
|
47678
|
-
let a = t.extractRows(n, r) ?? [], o = KM(t.primaryKey ?? l), s =
|
|
47683
|
+
let a = t.extractRows(n, r) ?? [], o = KM(t.primaryKey ?? l), s = iN(t.key), c = aN(a, s);
|
|
47679
47684
|
return Promise.all(e.map(async (e) => {
|
|
47680
47685
|
let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
|
|
47681
47686
|
return t.mergeRow(e, a, n);
|
|
@@ -47704,7 +47709,7 @@ function sN({ fetchPrimaryPage: e, extractPrimaryPage: t = eN, fetchSecondaryByK
|
|
|
47704
47709
|
response: null
|
|
47705
47710
|
} : {
|
|
47706
47711
|
source: c,
|
|
47707
|
-
response: await
|
|
47712
|
+
response: await sN(c, oN({
|
|
47708
47713
|
moduleName: e,
|
|
47709
47714
|
limit: t,
|
|
47710
47715
|
offset: n,
|
|
@@ -47758,8 +47763,8 @@ function sN({ fetchPrimaryPage: e, extractPrimaryPage: t = eN, fetchSecondaryByK
|
|
|
47758
47763
|
}
|
|
47759
47764
|
//#endregion
|
|
47760
47765
|
//#region src/services/workflowModuleListApi.js
|
|
47761
|
-
function
|
|
47762
|
-
return
|
|
47766
|
+
function lN(e, t, n = {}) {
|
|
47767
|
+
return cN({
|
|
47763
47768
|
fetchPrimary: () => _k(e, t),
|
|
47764
47769
|
extractPrimaryRows: mk,
|
|
47765
47770
|
fetchSecondary: kc,
|
|
@@ -47767,16 +47772,16 @@ function cN(e, t, n = {}) {
|
|
|
47767
47772
|
secondaryFetchLimit: n.moduleFetchLimit ?? 200
|
|
47768
47773
|
});
|
|
47769
47774
|
}
|
|
47770
|
-
function
|
|
47775
|
+
function uN(e) {
|
|
47771
47776
|
let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
47772
47777
|
return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
|
|
47773
47778
|
}
|
|
47774
|
-
function
|
|
47779
|
+
function dN(e) {
|
|
47775
47780
|
let t = Array.isArray(e?.stages) ? e.stages : [];
|
|
47776
47781
|
if (!t.length) return e;
|
|
47777
47782
|
let n = {};
|
|
47778
47783
|
for (let e of t) {
|
|
47779
|
-
let t =
|
|
47784
|
+
let t = uN(e?.stageName);
|
|
47780
47785
|
t && (n[t] = Number(e?.count) || 0);
|
|
47781
47786
|
}
|
|
47782
47787
|
return {
|
|
@@ -47784,25 +47789,25 @@ function uN(e) {
|
|
|
47784
47789
|
...e
|
|
47785
47790
|
};
|
|
47786
47791
|
}
|
|
47787
|
-
var
|
|
47792
|
+
var fN = (e) => {
|
|
47788
47793
|
let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
|
|
47789
47794
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
47790
47795
|
};
|
|
47791
|
-
function
|
|
47796
|
+
function pN({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
|
|
47792
47797
|
return function(n, r, i) {
|
|
47793
|
-
let a = qM(n, r, i), o =
|
|
47798
|
+
let a = qM(n, r, i), o = fN(a);
|
|
47794
47799
|
return o != null && (console.log("mergeJobWorkflowRow", i, a?.[e], o), a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
|
|
47795
47800
|
};
|
|
47796
47801
|
}
|
|
47797
|
-
function
|
|
47798
|
-
let t =
|
|
47802
|
+
function mN(e = {}) {
|
|
47803
|
+
let t = pN(), n = cN({
|
|
47799
47804
|
primaryKey: "_id",
|
|
47800
47805
|
secondaryKey: "entityId",
|
|
47801
47806
|
extraFields: e.extraFields,
|
|
47802
47807
|
extraFieldsAfter: e.extraFieldsAfter,
|
|
47803
47808
|
fetchPrimaryPage: kc,
|
|
47804
47809
|
fetchSecondaryByKeys: () => gk(),
|
|
47805
|
-
extractSecondaryRows: (e) => (e?.items ?? []).map(
|
|
47810
|
+
extractSecondaryRows: (e) => (e?.items ?? []).map(dN),
|
|
47806
47811
|
mergeRow: (e, n, r) => {
|
|
47807
47812
|
let i = t(e, n, r);
|
|
47808
47813
|
return n?._id && (i.workflowId = n._id), i;
|
|
@@ -47812,16 +47817,16 @@ function pN(e = {}) {
|
|
|
47812
47817
|
return await n(e, t, r, i);
|
|
47813
47818
|
};
|
|
47814
47819
|
}
|
|
47815
|
-
async function
|
|
47816
|
-
return Xl(await
|
|
47820
|
+
async function hN(e, t = 10, n = 0, r = {}, i = {}) {
|
|
47821
|
+
return Xl(await mN(i)(e, t, n, r), e);
|
|
47817
47822
|
}
|
|
47818
|
-
async function
|
|
47819
|
-
return Xl(await
|
|
47823
|
+
async function gN(e, t, n, r = 10, i = 0, a = {}) {
|
|
47824
|
+
return Xl(await lN(e, t)(n, r, i, a), n);
|
|
47820
47825
|
}
|
|
47821
47826
|
//#endregion
|
|
47822
47827
|
//#region src/index.js
|
|
47823
|
-
var
|
|
47828
|
+
var _N = PA, vN = vS(jj), yN = vS(Nj), bN = vS(Jj), xN = vS(oM), SN = vS(hM), CN = vS(vM), wN = vS(xM), TN = vS(wM), EN = vS(EM), DN = vS(zM), ON = vS(VM);
|
|
47824
47829
|
//#endregion
|
|
47825
|
-
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, am as ActivityTab, _A as AddBatchCandidatePopup, Up as AddFormV1, PA as AdminDashboard, WE as AdminDashboardContent,
|
|
47830
|
+
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, am as ActivityTab, _A as AddBatchCandidatePopup, Up as AddFormV1, PA as AdminDashboard, WE as AdminDashboardContent, _N as AdminPage, Wp as AppAlert, Cu as AppButton, Vx as AppShell, Iy as ApprovalActionBar, om as AssigneeAvatars, zx as AuthGuard, Dg as BILLING_STATUS_FLOW, sm as BULK_UPLOAD_DEFAULT_ACCEPT, cm as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Cn as Breadcrumb, bN as BulkUploadPage, gm as BulkUploadPanel, w as CANDIDATES_URL, tb as CONTRACT_C2C, eb as CONTRACT_W2, io as CalendarCard, JE as CoreThemeAdminApp, qE as CoreThemeAdminRoutes, Zo as CustomPagination, Ay as DayLogModal, km as DescriptionBlock, k_ as DetailHeaderCard, I_ as DetailViewPage, jh as DetailViewV1, ft as DocumentViewer, Zs as DynamicCards, NO as DynamicPopup, bA as DynamicPopupRoute, co as DynamicTabs, Av as EditFormV1, Yy as FINANCE_APPROVAL_CONFIG, Wy as FINANCE_TYPE_CFO, Uy as FINANCE_TYPE_ONBOARDING_MANAGER, qy as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Gy as FINANCE_TYPE_ONLY_FINANCE, Hy as FINANCE_TYPE_SUBMISSION_MANAGER, Ky as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, Rb as FileListCard, Ob as FinanceApprovalPanel, c_ as FinanceAvatar, f_ as FinanceBadge, Ry as FinanceDayCell, e_ as FinanceDivider, l_ as FinanceEmployeeCell, Zg as FinanceEmptyState, t_ as FinanceEquation, a_ as FinanceHistoryTimeline, Xg as FinanceHoursGrid, Yg as FinanceKpiRow, $g as FinanceLine, uy as FinanceListToolbar, p_ as FinanceMarginBadge, d_ as FinanceMoneyCell, g_ as FinanceRecordsTable, m_ as FinanceRowChevron, Qg as FinanceSection, Jg as FinanceStatusPill, u_ as FinanceTextCell, By as FinanceTimesheetAnalysis, n_ as FinanceWorkflowSteps, px as Header, nc as HierarchyUserFilter, n as JOBS_URL, vN as LegacyAdminPage, yf as ListView, ON as LmsHomePage, DN as LmsTestForm, Hx as Login, nD as MailPopup, CN as ManageModules, wN as ManageSubmodules, zv as ModuleRowActions, Fy as NotesPanel, Og as PAYROLL_STATUS_FLOW, cA as POPUP_CONFIGS, Kv as ParamCardView, Qv as ParamListView, my as PeriodBadgeTag, PD as PreviewPopup, _S as ProjectSelect, Py as ProofUploadPreview, Ny as QuickLogBar, jy as QuickLogSelectionBar, My as RejectionReasonModal, e as SUBMISSIONS_URL, Fx as Sidebar, ey as StatusBadge, py as StatusBadgeTag, yN as StickyNotesFullPage, ny as StylishDynamicTabs, sy as TemplateEditor, xN as TestForm, EN as TestingHomePage, Zp as TimelineGroups, Sy as TimesheetDayCell, lt as TipTapEditor, NA as UserForm, wA as VendorShareDrawer, Su as ViewSummaryWidget, BD as WizardPopup, TN as ZinnextTableView, SN as ZinnextTestForm, Ht as applyIntegrationStatus, Mo as approveSubmission, pm as buildAcceptAttr, Hg as buildCsv, Ig as buildDailyRows, by as buildDayGradient, yb as buildRateHistoryEntries, zg as buildWeeklyRollup, v as clearSelectedProject, D as colors, _b as computeFinance, Bg as computeMarginBand, C as configureCoreTheme, mN as createAllWorkflowsListFetcher, cN as createMergedListFetcher, tN as createModuleListFetchAdapter, lN as createWorkflowStageListFetcher, qM as defaultMergeRow, ce as deleteIntegrationConfig, Fg as deriveDayStats, Kg as downloadCsv, db as findEmployerRow, lb as flattenGroups, fm as formatFileSize, bb as formatFinanceMoney, vg as formatHours, _g as formatMoney, bg as formatPercent, yg as formatRate, un as getActivity, hN as getAllWorkflowsModuleList, wg as getApprovalDate, tt as getBgcIntegrationConfig, st as getBgcIntegrationSummary, kg as getBillingActionStates, y as getCurrentRoleName, Wg as getFieldLabel, dm as getFileExtension, Zy as getFinanceApprovalConfig, Ib as getFormGroupsRaw, ut as getIntegrationConfig, gt as getIntegrationConfigs, Ue as getIntegrationSummary, Jo as getModuleConfig, Ot as getModuleDataDetail, Ag as getPayrollActionStates, Xo as getPeriodBadgeConfig, s as getSelectedProject, p as getStoredToken, x as getStoredUser, c as getUserRoles, No as getVMSApprove, Gg as getValueStyle, gN as getWorkflowStageModuleList, jg as getWorkflowSteps, Cg as humanizeEvent, Vf as i, Ug as indexFieldConfig, xg as initialsOf, l as isTester, m as logout, $y as marginIncludesReferral, gb as matchLocationTax, z_ as n, pb as normalizeContract, _m as r, Fo as rejectSubmission, nm as resolveActivityMeta, vb as resolveAndCompute, hb as resolveFinanceInputs, GM as resolveMergeKey, GM as resolveMergedListKey, Qy as resolveRejectionReason, Lb as resolveSubmissionFinance, zn as saveBgcIntegrationConfig, Je as saveIntegrationConfig, u as setSelectedProject, uN as stageCountKey, Ux as t, Ie as testIntegrationConnection, Gc as useDropdownFields, wu as useDropdownValues, zb as useEditForm, Kc as useFieldConfig, qc as useFilterFields, $c as useMenuPermission, Mv as useModuleActions, N_ as useRecordRefresh, mm as validateBulkFile, r as withAdminAppId, t as withAppId, vS as withAuthGuard };
|
|
47826
47831
|
|
|
47827
47832
|
//# sourceMappingURL=index.js.map
|