@realtek/core-theme 0.0.370 → 0.0.371

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
@@ -67297,7 +67297,7 @@ function NJ({ panel: e, rows: t, ctx: n }) {
67297
67297
  borderCollapse: "separate",
67298
67298
  borderSpacing: 0
67299
67299
  },
67300
- children: [/* @__PURE__ */ X("thead", { children: /* @__PURE__ */ X("tr", { children: r.map((e) => /* @__PURE__ */ X("th", {
67300
+ children: [e.hideHeader ? null : /* @__PURE__ */ X("thead", { children: /* @__PURE__ */ X("tr", { children: r.map((e) => /* @__PURE__ */ X("th", {
67301
67301
  scope: "col",
67302
67302
  style: { textAlign: e.align ?? "start" },
67303
67303
  children: wJ(e.label, n)
@@ -67314,12 +67314,15 @@ function NJ({ panel: e, rows: t, ctx: n }) {
67314
67314
  children: i
67315
67315
  }) }, t.key);
67316
67316
  }
67317
- return t.kind === "status" ? /* @__PURE__ */ X("td", { children: i ? /* @__PURE__ */ X(K, {
67318
- className: "cc-dash-table__status",
67319
- "data-tone": a,
67320
- style: { marginInlineEnd: 0 },
67321
- children: i
67322
- }) : "–" }, t.key) : t.kind === "person" ? /* @__PURE__ */ X("td", { children: /* @__PURE__ */ Z("span", {
67317
+ return t.kind === "status" ? /* @__PURE__ */ X("td", {
67318
+ style: { textAlign: t.align ?? "start" },
67319
+ children: i ? /* @__PURE__ */ X(K, {
67320
+ className: "cc-dash-table__status",
67321
+ "data-tone": a,
67322
+ style: { marginInlineEnd: 0 },
67323
+ children: i
67324
+ }) : "–"
67325
+ }, t.key) : t.kind === "person" ? /* @__PURE__ */ X("td", { children: /* @__PURE__ */ Z("span", {
67323
67326
  className: "cc-dash-table__who",
67324
67327
  style: {
67325
67328
  display: "inline-flex",
@@ -67837,8 +67840,8 @@ function VJ({ items: e, height: t = 180, format: n = lJ, onSelect: r }) {
67837
67840
  }, e.key))
67838
67841
  });
67839
67842
  }
67840
- function HJ({ items: e, onSelect: t, format: n = lJ }) {
67841
- let r = Math.max(1, ...e.map((e) => Number(e.value) || 0));
67843
+ function HJ({ items: e, onSelect: t, format: n = lJ, precise: r = !1 }) {
67844
+ let i = Math.max(1, ...e.map((e) => Number(e.value) || 0));
67842
67845
  return /* @__PURE__ */ X("ol", {
67843
67846
  className: "cc-chart cc-chart--funnel",
67844
67847
  style: {
@@ -67848,14 +67851,14 @@ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67848
67851
  display: "grid",
67849
67852
  gap: 14
67850
67853
  },
67851
- children: e.map((i, a) => {
67852
- let o = Number(i.value), s = a > 0 ? Number(e[a - 1].value) : null, c = s > 0 && Number.isFinite(o) ? Math.round(o / s * 100) : null, l = c !== null && c <= 100 ? c : null, u = Number.isFinite(o) && o > 0 ? Math.max(2, o / r * 100) : 0;
67854
+ children: e.map((a, o) => {
67855
+ let s = Number(a.value), c = o > 0 ? Number(e[o - 1].value) : null, l = c > 0 && Number.isFinite(s) ? r ? Number((s / c * 100).toFixed(1)) : Math.round(s / c * 100) : null, u = l !== null && l <= 100 ? l : null, d = Number.isFinite(s) && s > 0 ? Math.max(2, s / i * 100) : 0;
67853
67856
  return /* @__PURE__ */ X("li", { children: /* @__PURE__ */ Z("button", {
67854
67857
  type: "button",
67855
67858
  className: "cc-chart__funnel-row",
67856
67859
  disabled: !t,
67857
- onClick: () => t?.(i),
67858
- "aria-label": `${i.label}: ${n(i.value)}${l === null ? "" : `, ${l}% of ${e[a - 1].label}`}`,
67860
+ onClick: () => t?.(a),
67861
+ "aria-label": `${a.label}: ${n(a.value)}${u === null ? "" : `, ${u}% of ${e[o - 1].label}`}`,
67859
67862
  style: {
67860
67863
  display: "grid",
67861
67864
  gap: 6,
@@ -67885,7 +67888,7 @@ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67885
67888
  width: 8,
67886
67889
  height: 8,
67887
67890
  borderRadius: "50%",
67888
- background: FJ(a),
67891
+ background: FJ(o),
67889
67892
  alignSelf: "center"
67890
67893
  }
67891
67894
  }),
@@ -67899,9 +67902,9 @@ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67899
67902
  whiteSpace: "nowrap",
67900
67903
  fontWeight: 500
67901
67904
  },
67902
- children: i.label
67905
+ children: a.label
67903
67906
  }),
67904
- l === null ? null : /* @__PURE__ */ Z("span", {
67907
+ u === null ? null : /* @__PURE__ */ Z("span", {
67905
67908
  className: "cc-chart__funnel-conv",
67906
67909
  style: {
67907
67910
  fontSize: 12,
@@ -67910,9 +67913,9 @@ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67910
67913
  fontVariantNumeric: "tabular-nums"
67911
67914
  },
67912
67915
  children: [
67913
- l,
67916
+ r ? u.toFixed(1) : u,
67914
67917
  "% of ",
67915
- e[a - 1].label
67918
+ e[o - 1].label
67916
67919
  ]
67917
67920
  }),
67918
67921
  /* @__PURE__ */ X("strong", {
@@ -67922,7 +67925,7 @@ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67922
67925
  minWidth: 48,
67923
67926
  textAlign: "end"
67924
67927
  },
67925
- children: n(i.value)
67928
+ children: n(a.value)
67926
67929
  })
67927
67930
  ]
67928
67931
  }), /* @__PURE__ */ X("span", {
@@ -67939,15 +67942,15 @@ function HJ({ items: e, onSelect: t, format: n = lJ }) {
67939
67942
  className: "cc-chart__funnel-bar",
67940
67943
  style: {
67941
67944
  display: "block",
67942
- width: `${u}%`,
67945
+ width: `${d}%`,
67943
67946
  height: "100%",
67944
67947
  borderRadius: 999,
67945
- background: FJ(a),
67948
+ background: FJ(o),
67946
67949
  transition: "width 400ms cubic-bezier(0.2, 0, 0, 1)"
67947
67950
  }
67948
67951
  })
67949
67952
  })]
67950
- }) }, i.key);
67953
+ }) }, a.key);
67951
67954
  })
67952
67955
  });
67953
67956
  }
@@ -68095,7 +68098,8 @@ function ZJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, c
68095
68098
  }) : /* @__PURE__ */ X(HJ, {
68096
68099
  items: a,
68097
68100
  format: p,
68098
- onSelect: o
68101
+ onSelect: o,
68102
+ precise: !!e.precise
68099
68103
  });
68100
68104
  }
68101
68105
  if (!d) return /* @__PURE__ */ X(zo, {
@@ -68171,18 +68175,20 @@ function ZJ({ panel: e, counts: t, kpis: n, loading: r, ctx: i, refreshKey: a, c
68171
68175
  ...t,
68172
68176
  icon: nq(typeof e.icons == "function" ? e.icons(t.key) : e.icons[t.key])
68173
68177
  } : t);
68174
- return !g.length || g.every((e) => !e.value) ? /* @__PURE__ */ X(TJ, {
68178
+ if (!g.length || g.every((e) => !e.value)) return /* @__PURE__ */ X(TJ, {
68175
68179
  spec: e.emptyState,
68176
68180
  ctx: i,
68177
68181
  fallback: sq(oq(e.empty, {}, i)) || "No data for this period."
68178
- }) : e.chart === "donut" ? /* @__PURE__ */ X(LJ, {
68179
- items: g,
68182
+ });
68183
+ let _ = Number(e.max) > 0 ? g.slice(0, Number(e.max)) : g;
68184
+ return e.chart === "donut" ? /* @__PURE__ */ X(LJ, {
68185
+ items: _,
68180
68186
  format: p,
68181
68187
  onSelect: h,
68182
68188
  precise: !!e.precise,
68183
68189
  centerLabel: sq(oq(e.centerLabel, {}, i)) || void 0
68184
68190
  }) : e.chart === "column" ? /* @__PURE__ */ X(VJ, {
68185
- items: g,
68191
+ items: _,
68186
68192
  format: p,
68187
68193
  onSelect: h
68188
68194
  }) : /* @__PURE__ */ X(RJ, {
@@ -71345,7 +71351,7 @@ async function YX(e, t, { limit: n = 20, offset: r = 0, sort: i = "", sortDir: a
71345
71351
  }
71346
71352
  //#endregion
71347
71353
  //#region src/index.js
71348
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-12T07:42:24.150Z");
71354
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-11-12T12:07:14.264Z");
71349
71355
  var XX = qz, ZX = $T(cU), QX = $T(uU), $X = $T(TU), eZ = $T(LU), tZ = $T(KU), nZ = $T(YU), rZ = $T(QU), iZ = $T(tW), aZ = $T(rW), oZ = $T(gW), sZ = $T(vW);
71350
71356
  //#endregion
71351
71357
  export { re as ACTION_RULE_SURFACES, D as ADMIN_API_URL, c as ADMIN_APP_ID, E as APP_ID, a as AUTH_URL, Aq as ActionInputBox, Yf as ActivityNotesCard, Wf as ActivityTab, Sz as AddBatchCandidatePopup, po as AddFormV1, hX as AddRecordDrawer, qz as AdminDashboard, yP as AdminDashboardContent, XX as AdminPage, vo as AppAlert, ot as AppButton, ST as AppShell, AS as ApprovalActionBar, Xf as AssigneeAvatars, hT as AuthGuard, Rg as BILLING_STATUS_FLOW, gx as BOOLEAN_API_KEYS, tb as BOOLEAN_PARSEABLE_API_KEYS, Or as BUILT_IN_WIZARD_STEP_TYPES, Zf as BULK_UPLOAD_DEFAULT_ACCEPT, Qf as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, be as Breadcrumb, $X as BulkUploadPage, op as BulkUploadPanel, t as CANDIDATES_URL, eC as CONTRACT_C2C, $S as CONTRACT_W2, km as CURRENCY_SYMBOLS, Su as CalendarCard, oY as CombinedDashboardPage, oY as DASHBOARDPAGE, oJ as CombinedDetailViewPage, oJ as DETAILVIEWPAGE, Kq as CombinedHomePage, Kq as HOMEPAGE, sX as CompactRecordList, CP as CoreThemeAdminApp, SP as CoreThemeAdminRoutes, QY as CreateActionButton, fr as CustomPagination, Qx as DEFAULT_HOURS_POLICY, fx as DEFAULT_RESULTS_VIEW, GY as DETAILSSECTION, GY as DetailsSection, RY as DETAILS_BLOCKS, sY as DETAILS_ICONS, SS as DayLogModal, yp as DescriptionBlock, V_ as DetailHeaderCard, J_ as DetailViewPage, Ih as DetailViewV1, eo as DocumentViewer, Cf as DynamicCards, WI as DynamicPopup, Dz as DynamicPopupRoute, yr as DynamicTabs, Yv as DynamicWizard, Uv as EditFormV1, Ib as FIELD_TYPE_REGISTRY, GS as FINANCE_APPROVAL_CONFIG, RS as FINANCE_TYPE_CFO, LS as FINANCE_TYPE_ONBOARDING_MANAGER, VS as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, zS as FINANCE_TYPE_ONLY_FINANCE, IS as FINANCE_TYPE_SUBMISSION_MANAGER, BS as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, aw as FileListCard, _G as FilterRail, RC as FinanceApprovalPanel, y_ as FinanceAvatar, C_ as FinanceBadge, MS as FinanceDayCell, d_ as FinanceDivider, b_ as FinanceEmployeeCell, c_ as FinanceEmptyState, f_ as FinanceEquation, g_ as FinanceHistoryTimeline, s_ as FinanceHoursGrid, o_ as FinanceKpiRow, u_ as FinanceLine, Zx as FinanceListToolbar, w_ as FinanceMarginBadge, S_ as FinanceMoneyCell, D_ as FinanceRecordsTable, T_ as FinanceRowChevron, l_ as FinanceSection, a_ as FinanceStatusPill, x_ as FinanceTextCell, PS as FinanceTimesheetAnalysis, p_ as FinanceWorkflowSteps, $x as HOURS_MESSAGES, Pw as Header, Of as HierarchyUserFilter, qq as HubOverview, T as JOBS_URL, ZX as LegacyAdminPage, na as ListView, jG as ListWithQuickView, sZ as LmsHomePage, oZ as LmsTestForm, CT as Login, UG as MATCH_NOTHING, eF as MailPopup, nZ as ManageModules, rZ as ManageSubmodules, ZY as MasterDetailWorkspace, uy as ModuleRowActions, EX as ModuleWorkspace, kS as NotesPanel, Jf as NotesTab, rx as OPEN_AS_OPTIONS, tq as PAGE_ICONS, zg as PAYROLL_STATUS_FLOW, pz as POPUP_CONFIGS, fX as PanelBreadcrumb, uX as PanelTabs, Py as ParamCardView, By as ParamListView, Lz as PaymentInvoicePopup, dS as PeriodBadgeTag, jF as PreviewPopup, QT as ProjectSelect, OS as ProofUploadPreview, TS as QuickLogBar, CS as QuickLogSelectionBar, Gq as QuickViewCard, Mq as QuickViewModuleActions, AG as QuickViewPopover, JW as RAIL_KIND, kK as REALTIME_STATUS, dx as RESULTS_VIEW_OPTIONS, qX as RealtimeProvider, dX as RecordDetailPanel, eJ as RecordHub, HG as RecordQuickView, mX as RecordSidePanel, wS as RejectionReasonModal, yK as RelatedModuleTab, r as SUBMISSIONS_URL, Hx as SearchBuilderV1, AX as SearchResultsWorkspace, MX as SearchSummaryBanner, uH as SettingsPage, dT as Sidebar, yo as StatStrip, Wx as StatusBadge, uS as StatusBadgeTag, QX as StickyNotesFullPage, Kx as StylishDynamicTabs, Jx as TemplateEditor, eZ as TestForm, aZ as TestingHomePage, If as TimelineGroups, yS as TimesheetDayCell, aa as TipTapEditor, Kz as UserForm, jz as VendorShareDrawer, Ee as ViewSummaryWidget, xt as WIZARD_ACTIONS_CONTRACT_VERSION, Nt as WIZARD_ACTIONS_PATH, lt as WIZARD_CONTENT_TYPES, Gt as WizardAccessMatrixStep, De as WizardActionError, qa as WizardActivityStep, ie as WizardChoiceCardsStep, gn as WizardDeclarationStep, ze as WizardListStep, Wi as WizardPermissionMatrixStep, LF as WizardPopup, un as WizardPreview, Ze as WizardPreviewStep, Sn as WizardStepContent, Ne as WizardSuccessStep, rt as WizardUnknownContentStep, zX as WorkspaceAppFrame, kG as WorkspaceListView, $Y as WorkspaceTopBar, iZ as ZinnextTableView, tZ as ZinnextTestForm, $r as actedRecently, bt as actionRuleConditionMatches, Ty as adminActionAllowed, jr as appNow, kt as applyIntegrationStatus, ed as approveSubmission, uJ as attentionItems, rp as buildAcceptAttr, xx as buildBooleanRequest, $g as buildCsv, qg as buildDailyRows, _S as buildDayGradient, Xr as buildFormWizardSteps, TC as buildRateHistoryEntries, qG as buildRelationConditions, Ex as buildSearchRequest, Xg as buildWeeklyRollup, AK as canonicalModule, rr as clearNewRecord, m as clearSelectedProject, ya as colors, _C as computeFinance, aS as computeHoursPolicy, Zg as computeMarginBand, Xi as conditionMatches, n as configureCoreTheme, qr as configuredFieldLabel, Kv as configuredWizardSteps, Ui as confirmAction, lG as countActiveRows, GW as createAllWorkflowsListFetcher, zW as createMergedListFetcher, MW as createModuleListFetchAdapter, IK as createRealtimeClient, BW as createWorkflowStageListFetcher, Am as currencySymbol, sJ as dashboardRange, wW as defaultMergeRow, Ya as deleteIntegrationConfig, Kg as deriveDayStats, sS as describeCapacity, nX as displayText, r_ as downloadCsv, sG as draftToRows, Zn as evaluateShowIfWith, v as fetchJsonWithAuth, JX as fetchRelatedRecords, YX as fetchScopedRecords, Kr as fillConfirmText, dC as findEmployerRow, lC as flattenGroups, Im as formatAmount, Bi as formatApp, bi as formatAppDateTime, np as formatFileSize, EC as formatFinanceMoney, kg as formatHours, Lm as formatMoney, jg as formatPercent, Rm as formatRate, KX as formatSearchCount, GX as formatSearchDuration, Mn as getActivity, KW as getAllWorkflowsModuleList, Ur as getAppTimeZone, Fg as getApprovalDate, Zi as getBgcIntegrationConfig, Jr as getBgcIntegrationSummary, Bg as getBillingActionStates, Hb as getBooleanEligibleTypes, l as getCurrentRoleName, t_ as getFieldLabel, Rb as getFieldType, tp as getFileExtension, XS as getFinanceApprovalConfig, _o as getFormGroups, JC as getFormGroupsRaw, vr as getIntegrationConfig, Ar as getIntegrationConfigs, zi as getIntegrationSummary, bd as getModuleConfig, Ut as getModuleDataDetail, Vg as getPayrollActionStates, Sd as getPeriodBadgeConfig, ex as getSearchPopup, g as getSelectedProject, C as getStoredToken, u as getStoredUser, d as getUserRoles, td as getVMSApprove, n_ as getValueStyle, qW as getWorkflowStageModuleList, Hg as getWorkflowSteps, Pg as humanizeEvent, e_ as indexFieldConfig, Mg as initialsOf, Rj as inputPayload, ab as insertTokenAtCursor, y as invalidateGetCache, zb as isBooleanEligible, rb as isBooleanParsable, _ as isTester, er as isWizardConfigEnabled, Pi as isWizardConfigReady, gq as listPropsForColumns, f as logout, kx as makeSearchFetcher, ui as mapListResponse, QS as marginIncludesReferral, Li as markNewRecord, gC as matchLocationTax, oa as mergeWizardSubmitValues, jK as moduleTopic, Xt as moduleViewAllowed, Z_ as n, gr as newRecordMarks, Ka as normalizeConfirm, pC as normalizeContract, Fj as normalizeInputPrompt, uq as normalizePageLayout, mG as parseRows, aX as pickCompactFields, zG as quickViewFields, RG as quickViewValueText, sp as r, Mm as rateUnitLabel, Pm as rateUnitShort, sx as readActionButtons, EG as readPageParam, oS as reconcileHours, _i as recordActionRun, oX as recordIdOf, MK as recordTopic, Lb as registerFieldType, $b as registerSearchPopup, ga as registerWizardPreview, Ai as registerWizardStepType, rd as rejectSubmission, YG as relationSignature, Vf as resolveActivityMeta, vC as resolveAndCompute, rS as resolveDayKind, hC as resolveFinanceInputs, SW as resolveMergeKey, SW as resolveMergedListKey, ax as resolveOpenAs, lq as resolvePageButtons, nq as resolvePageIcon, aq as resolvePageValue, kq as resolveQuickViewActions, ZS as resolveRejectionReason, hx as resolveResultsSearchPlaceholder, mx as resolveResultsView, YC as resolveSubmissionFinance, uG as rowsSignature, cG as rowsToDraft, Me as ruleAppliesToSurface, Xe as rulePrimaryAction, ay as runModuleAction, Ge as runWizardAction, Pn as safeWizardActionRoute, ut as saveBgcIntegrationConfig, ae as saveIntegrationConfig, nK as scopeConditionsFor, WX as searchCriteriaParts, pG as serializeRows, w as setSelectedProject, ra as showIfConditions, VW as stageCountKey, tK as supportsAnyOf, wT as t, Qe as testIntegrationConnection, qn as toApp, Fm as toNumber, nG as toRailFields, PK as topicsForEvent, Ea as tzLabel, Ua as tzShortLabel, tx as unregisterSearchPopup, JG as unscopedConditions, Dy as useAdminAction, Ey as useAdminActionsVersion, Jv as useConfiguredWizardSteps, We as useDropdownFields, ln as useDropdownValues, ow as useEditForm, hn as useFieldConfig, Dn as useFilterFields, OG as useInPlaceRecordLinks, eq as useLiveRefresh, Qa as useMenuPermission, ty as useModuleActions, le as useModuleViewAccess, Ca as useNewRecordMarks, YK as useRealtimeClient, $K as useRealtimeReconnect, XK as useRealtimeStatus, QK as useRealtimeTopics, pX as useRecordFields, Qq as useRecordHub, G_ as useRecordRefresh, gK as useRelatedCounts, wG as useWorkspaceList, ib as validateBooleanQuery, ip as validateBulkFile, Lj as validateInputValue, i as withAdminAppId, h as withAppId, $T as withAuthGuard, DG as withPageParam, XG as withSubTab };