@realtek/core-theme-live 0.0.374 → 0.0.375

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
@@ -44299,6 +44299,7 @@ function nP({ icon: e, title: t, description: n, rules: r, columns: i, onAdd: a,
44299
44299
  });
44300
44300
  }
44301
44301
  var rP = {
44302
+ assignmentSource: null,
44302
44303
  sequence: null,
44303
44304
  duplicateCheck: null,
44304
44305
  fileVersioning: null,
@@ -44363,7 +44364,22 @@ function iP() {
44363
44364
  };
44364
44365
  });
44365
44366
  }
44366
- function A() {
44367
+ function A(e, t) {
44368
+ d((n) => {
44369
+ let r = {
44370
+ ...n.assignmentSource ?? {},
44371
+ [e]: t
44372
+ };
44373
+ return e === "stampAs" && !String(t).trim() ? {
44374
+ ...n,
44375
+ assignmentSource: null
44376
+ } : {
44377
+ ...n,
44378
+ assignmentSource: r
44379
+ };
44380
+ });
44381
+ }
44382
+ function j() {
44367
44383
  h(!0);
44368
44384
  let e = {
44369
44385
  ...u,
@@ -44374,7 +44390,8 @@ function iP() {
44374
44390
  hierarchyExpands: u.hierarchyExpands?.length ? u.hierarchyExpands : void 0,
44375
44391
  relatedUpdates: u.relatedUpdates?.length ? u.relatedUpdates : void 0,
44376
44392
  cacheInvalidate: u.cacheInvalidate?.length ? u.cacheInvalidate : void 0,
44377
- defaults: Object.keys(u.defaults ?? {}).length ? u.defaults : void 0
44393
+ defaults: Object.keys(u.defaults ?? {}).length ? u.defaults : void 0,
44394
+ assignmentSource: u.assignmentSource?.stampAs?.trim() ? u.assignmentSource : void 0
44378
44395
  };
44379
44396
  an(i, {
44380
44397
  gateway: o,
@@ -44383,20 +44400,20 @@ function iP() {
44383
44400
  l(o.storage || "mongo"), q.success("Automations saved");
44384
44401
  }).catch((e) => q.error(e?.message || "Could not save automations")).finally(() => h(!1));
44385
44402
  }
44386
- function j() {
44403
+ function te() {
44387
44404
  if ((o.storage || "mongo") !== c) {
44388
44405
  $i.confirm({
44389
44406
  title: "Change how this module persists writes?",
44390
44407
  content: `You're switching ${i} from "${c}" to "${o.storage}". ` + (o.storage === "mongo" ? "This module will stop calling its downstream service and this gateway will own the write + every Strategy below." : "This module will stop using the Strategies below and go back to calling its downstream service.") + " Make sure the downstream service / e2e checks are ready before confirming.",
44391
44408
  okText: "Confirm cutover",
44392
44409
  okButtonProps: { danger: !0 },
44393
- onOk: A
44410
+ onOk: j
44394
44411
  });
44395
44412
  return;
44396
44413
  }
44397
- A();
44414
+ j();
44398
44415
  }
44399
- let te = [
44416
+ let M = [
44400
44417
  {
44401
44418
  title: "Source module",
44402
44419
  dataIndex: "sourceModule",
@@ -44434,7 +44451,7 @@ function iP() {
44434
44451
  children: "optional"
44435
44452
  })
44436
44453
  }
44437
- ], M = [
44454
+ ], N = [
44438
44455
  {
44439
44456
  title: "Source field",
44440
44457
  dataIndex: "sourceField",
@@ -44467,7 +44484,7 @@ function iP() {
44467
44484
  color: "var(--color-brand)"
44468
44485
  })
44469
44486
  }
44470
- ], N = [
44487
+ ], P = [
44471
44488
  {
44472
44489
  title: "Source field",
44473
44490
  dataIndex: "sourceField",
@@ -44506,7 +44523,7 @@ function iP() {
44506
44523
  children: "—"
44507
44524
  })
44508
44525
  }
44509
- ], P = [
44526
+ ], ne = [
44510
44527
  {
44511
44528
  title: "Name",
44512
44529
  dataIndex: "name",
@@ -44546,7 +44563,7 @@ function iP() {
44546
44563
  children: "top"
44547
44564
  })
44548
44565
  }
44549
- ], ne = [
44566
+ ], re = [
44550
44567
  {
44551
44568
  title: "Target",
44552
44569
  key: "target",
@@ -44584,7 +44601,7 @@ function iP() {
44584
44601
  children: "Insert if missing"
44585
44602
  }) : /* @__PURE__ */ Y(G, { children: "Update" })
44586
44603
  }
44587
- ], re = e.map((e) => ({
44604
+ ], ie = e.map((e) => ({
44588
44605
  key: e.key,
44589
44606
  label: e.label
44590
44607
  }));
@@ -44600,7 +44617,7 @@ function iP() {
44600
44617
  icon: /* @__PURE__ */ Y(Yo, {}),
44601
44618
  loading: m,
44602
44619
  disabled: !i,
44603
- onClick: j,
44620
+ onClick: te,
44604
44621
  children: "Save Automations"
44605
44622
  }),
44606
44623
  children: [/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }), /* @__PURE__ */ Y($, {
@@ -44617,7 +44634,7 @@ function iP() {
44617
44634
  /* @__PURE__ */ Y(pa, {
44618
44635
  activeKey: i,
44619
44636
  onChange: a,
44620
- items: re.map((e) => ({
44637
+ items: ie.map((e) => ({
44621
44638
  ...e,
44622
44639
  children: null
44623
44640
  })),
@@ -45344,7 +45361,7 @@ function iP() {
45344
45361
  title: "Denormalizations",
45345
45362
  description: "Copy fields from ANOTHER module's record onto this payload before insert (e.g. a submission snapshotting job title/client).",
45346
45363
  rules: u.denormalizations ?? [],
45347
- columns: te,
45364
+ columns: M,
45348
45365
  onAdd: () => y({
45349
45366
  index: null,
45350
45367
  rule: null
@@ -45360,7 +45377,7 @@ function iP() {
45360
45377
  title: "Array Enrichments",
45361
45378
  description: "Enrich a payload array of ids (e.g. recruitersData) into objects carrying looked-up fields (name, email) before insert.",
45362
45379
  rules: u.arrayEnrichments ?? [],
45363
- columns: M,
45380
+ columns: N,
45364
45381
  onAdd: () => x({
45365
45382
  index: null,
45366
45383
  rule: null
@@ -45376,7 +45393,7 @@ function iP() {
45376
45393
  title: "File Field Maps",
45377
45394
  description: "Turn an uploaded file field into a nested object (location + filename + who/when) or an array of such objects, instead of a flat S3 path string — needed for schemas like resume/passport/visa.",
45378
45395
  rules: u.fileFieldMaps ?? [],
45379
- columns: N,
45396
+ columns: P,
45380
45397
  onAdd: () => C({
45381
45398
  index: null,
45382
45399
  rule: null
@@ -45406,6 +45423,124 @@ function iP() {
45406
45423
  onChange: (e) => k("sanitizeFields", e)
45407
45424
  })]
45408
45425
  }),
45426
+ /* @__PURE__ */ X(Fk, {
45427
+ title: "Who is assigned to this record",
45428
+ styles: { body: { paddingTop: 8 } },
45429
+ children: [/* @__PURE__ */ X($, {
45430
+ type: "secondary",
45431
+ style: {
45432
+ fontSize: 12,
45433
+ display: "block",
45434
+ marginBottom: 8
45435
+ },
45436
+ children: [
45437
+ "Marks every row of this module's list with whether the signed-in user is assigned to it, by looking in another collection. The result is written onto each row as the field named below, so an ",
45438
+ /* @__PURE__ */ Y("b", { children: "Action Rule" }),
45439
+ " can test it like any other field — e.g.",
45440
+ " ",
45441
+ /* @__PURE__ */ Y("code", { children: "assignedToMe equals false" }),
45442
+ " to restrict what an unassigned user can do.",
45443
+ /* @__PURE__ */ Y("br", {}),
45444
+ "Leave ",
45445
+ /* @__PURE__ */ Y("b", { children: "Stamp as" }),
45446
+ " empty to turn this off."
45447
+ ]
45448
+ }), /* @__PURE__ */ X(U, {
45449
+ direction: "vertical",
45450
+ style: { width: "100%" },
45451
+ size: 8,
45452
+ children: [
45453
+ /* @__PURE__ */ X(U, {
45454
+ wrap: !0,
45455
+ children: [
45456
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y($, {
45457
+ style: { fontSize: 12 },
45458
+ children: "Collection"
45459
+ }), /* @__PURE__ */ Y(V, {
45460
+ style: { width: 220 },
45461
+ placeholder: "workflow_instances",
45462
+ value: u.assignmentSource?.collection ?? "",
45463
+ onChange: (e) => A("collection", e.target.value)
45464
+ })] }),
45465
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y($, {
45466
+ style: { fontSize: 12 },
45467
+ children: "Record id field"
45468
+ }), /* @__PURE__ */ Y(V, {
45469
+ style: { width: 180 },
45470
+ placeholder: "entityId",
45471
+ value: u.assignmentSource?.entityIdField ?? "",
45472
+ onChange: (e) => A("entityIdField", e.target.value)
45473
+ })] }),
45474
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y($, {
45475
+ style: { fontSize: 12 },
45476
+ children: "Stamp as"
45477
+ }), /* @__PURE__ */ Y(V, {
45478
+ style: { width: 180 },
45479
+ placeholder: "assignedToMe",
45480
+ value: u.assignmentSource?.stampAs ?? "",
45481
+ onChange: (e) => A("stampAs", e.target.value)
45482
+ })] })
45483
+ ]
45484
+ }),
45485
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y($, {
45486
+ style: { fontSize: 12 },
45487
+ children: "User fields — assigned if ANY holds the signed-in user"
45488
+ }), /* @__PURE__ */ Y(H, {
45489
+ mode: "tags",
45490
+ style: { width: "100%" },
45491
+ placeholder: "recruiterId, reportingId",
45492
+ value: u.assignmentSource?.userMatchFields ?? [],
45493
+ onChange: (e) => A("userMatchFields", e)
45494
+ })] }),
45495
+ /* @__PURE__ */ X(U, {
45496
+ wrap: !0,
45497
+ align: "start",
45498
+ children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y($, {
45499
+ style: { fontSize: 12 },
45500
+ children: "Entity type field / values"
45501
+ }), /* @__PURE__ */ X(U, { children: [/* @__PURE__ */ Y(V, {
45502
+ style: { width: 140 },
45503
+ placeholder: "entityType",
45504
+ value: u.assignmentSource?.entityTypeField ?? "",
45505
+ onChange: (e) => A("entityTypeField", e.target.value)
45506
+ }), /* @__PURE__ */ Y(H, {
45507
+ mode: "tags",
45508
+ style: { width: 200 },
45509
+ placeholder: "Job",
45510
+ value: u.assignmentSource?.entityTypeValues ?? [],
45511
+ onChange: (e) => A("entityTypeValues", e)
45512
+ })] })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y($, {
45513
+ style: { fontSize: 12 },
45514
+ children: "Module field / values"
45515
+ }), /* @__PURE__ */ X(U, { children: [/* @__PURE__ */ Y(V, {
45516
+ style: { width: 140 },
45517
+ placeholder: "module",
45518
+ value: u.assignmentSource?.moduleField ?? "",
45519
+ onChange: (e) => A("moduleField", e.target.value)
45520
+ }), /* @__PURE__ */ Y(H, {
45521
+ mode: "tags",
45522
+ style: { width: 200 },
45523
+ placeholder: "Jobs, jobs",
45524
+ value: u.assignmentSource?.moduleValues ?? [],
45525
+ onChange: (e) => A("moduleValues", e)
45526
+ })] })] })]
45527
+ }),
45528
+ /* @__PURE__ */ Y(Fi, {
45529
+ type: "warning",
45530
+ showIcon: !0,
45531
+ style: { fontSize: 12 },
45532
+ message: "List every spelling that exists in the data",
45533
+ description: /* @__PURE__ */ X("span", { children: [
45534
+ "These are exact matches. The same value is stored with different casing in places (",
45535
+ /* @__PURE__ */ Y("code", { children: "Jobs" }),
45536
+ " and ",
45537
+ /* @__PURE__ */ Y("code", { children: "jobs" }),
45538
+ "), so listing only one reads as correct while silently missing every row written with the other — and those rows would show as \"not assigned\". Add each spelling as its own tag."
45539
+ ] })
45540
+ })
45541
+ ]
45542
+ })]
45543
+ }),
45409
45544
  /* @__PURE__ */ X(Fk, {
45410
45545
  title: "Defaults",
45411
45546
  styles: { body: { paddingTop: 8 } },
@@ -45429,7 +45564,7 @@ function iP() {
45429
45564
  title: "Hierarchy Expansions",
45430
45565
  description: "Walk the reporting chain up (toward admin) or down (toward a team) from a seed user, publishing the result as {{hierarchy.<name>}} for Related Updates / Notify to use.",
45431
45566
  rules: u.hierarchyExpands ?? [],
45432
- columns: P,
45567
+ columns: ne,
45433
45568
  onAdd: () => T({
45434
45569
  index: null,
45435
45570
  rule: null
@@ -45445,7 +45580,7 @@ function iP() {
45445
45580
  title: "Related Updates",
45446
45581
  description: "Best-effort side-effect writes to other collections after a successful insert — board state, activity logs. Combine with ForEach + a Hierarchy Expansion to seed one document per user in a chain.",
45447
45582
  rules: u.relatedUpdates ?? [],
45448
- columns: ne,
45583
+ columns: re,
45449
45584
  onAdd: () => D({
45450
45585
  index: null,
45451
45586
  rule: null
@@ -60444,7 +60579,7 @@ async function tU(e, t, n, r = 10, i = 0, a = {}) {
60444
60579
  }
60445
60580
  //#endregion
60446
60581
  //#region src/index.js
60447
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-02T09:50:32.355Z");
60582
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-02T10:30:16.432Z");
60448
60583
  var nU = vB, rU = $O(gV), iU = $O(vV), aU = $O(NV), oU = $O(GV), sU = $O(eH), cU = $O(rH), lU = $O(oH), uU = $O(lH), dU = $O(dH), fU = $O(wH), pU = $O(EH);
60449
60584
  //#endregion
60450
60585
  export { D as ADMIN_API_URL, ee as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, a_ as ActivityNotesCard, Jg as ActivityTab, Qz as AddBatchCandidatePopup, jg as AddFormV1, vB as AdminDashboard, LF as AdminDashboardContent, nU as AdminPage, Mg as AppAlert, Xr as AppButton, SO as AppShell, RT as ApprovalActionBar, o_ as AssigneeAvatars, hO as AuthGuard, yb as BILLING_STATUS_FLOW, ww as BOOLEAN_API_KEYS, lC as BOOLEAN_PARSEABLE_API_KEYS, s_ as BULK_UPLOAD_DEFAULT_ACCEPT, c_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Vr as Breadcrumb, aU as BulkUploadPage, g_ as BulkUploadPanel, o as CANDIDATES_URL, cE as CONTRACT_C2C, sE as CONTRACT_W2, n as CORE_URL, wv as CURRENCY_SYMBOLS, Js as CalendarCard, VF as CoreThemeAdminApp, BF as CoreThemeAdminRoutes, Xc as CustomPagination, oT as DEFAULT_HOURS_POLICY, bw as DEFAULT_RESULTS_VIEW, AT as DayLogModal, k_ as DescriptionBlock, xx as DetailHeaderCard, Ox as DetailViewPage, vy as DetailViewV1, me as DocumentViewer, Ql as DynamicCards, BL as DynamicPopup, rB as DynamicPopupRoute, Qs as DynamicTabs, ES as EditFormV1, WC as FIELD_TYPE_REGISTRY, $T as FINANCE_APPROVAL_CONFIG, KT as FINANCE_TYPE_CFO, GT as FINANCE_TYPE_ONBOARDING_MANAGER, YT as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, qT as FINANCE_TYPE_ONLY_FINANCE, WT as FINANCE_TYPE_SUBMISSION_MANAGER, JT as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, pD as FileListCard, KE as FinanceApprovalPanel, ex as FinanceAvatar, ix as FinanceBadge, BT as FinanceDayCell, Kb as FinanceDivider, tx as FinanceEmployeeCell, Ub as FinanceEmptyState, qb as FinanceEquation, Zb as FinanceHistoryTimeline, Hb as FinanceHoursGrid, Vb as FinanceKpiRow, Gb as FinanceLine, aT as FinanceListToolbar, ax as FinanceMarginBadge, rx as FinanceMoneyCell, cx as FinanceRecordsTable, ox as FinanceRowChevron, Wb as FinanceSection, Bb as FinanceStatusPill, nx as FinanceTextCell, HT as FinanceTimesheetAnalysis, Jb as FinanceWorkflowSteps, O as GATEWAY_URL, tF as GLOBAL_DEFAULT_FIELDS, sT as HOURS_MESSAGES, HD as Header, ru as HierarchyUserFilter, s as JOBS_URL, rU as LegacyAdminPage, ih as ListView, pU as LmsHomePage, fU as LmsTestForm, CO as Login, gI as MailPopup, cU as ManageModules, lU as ManageSubmodules, FS as ModuleRowActions, LT as NotesPanel, i_ as NotesTab, dw as OPEN_AS_OPTIONS, bb as PAYROLL_STATUS_FLOW, QP as PLATFORM_SCOPES, Uz as POPUP_CONFIGS, i as PYOPS_URL, HS as ParamCardView, JS as ParamListView, yT as PeriodBadgeTag, dF as PlatformSection, DI as PreviewPopup, QO as ProjectSelect, IT as ProofUploadPreview, NT as QuickLogBar, jT as QuickLogSelectionBar, yw as RESULTS_VIEW_OPTIONS, _B as RegionBanner, MT as RejectionReasonModal, r as SUBMISSIONS_URL, Xw as SearchBuilderV1, dO as Sidebar, Qw as StatusBadge, vT as StatusBadgeTag, iU as StickyNotesFullPage, eT as StylishDynamicTabs, nT as TemplateEditor, oU as TestForm, dU as TestingHomePage, Bg as TimelineGroups, DT as TimesheetDayCell, it as TipTapEditor, gB as UserForm, sB as VendorShareDrawer, Zf as ViewSummaryWidget, NI as WizardPopup, a as ZINNEXT_URL, uU as ZinnextTableView, sU as ZinnextTestForm, Xe as appNow, Re as applyIntegrationStatus, Ac as approveSubmission, p_ as buildAcceptAttr, kw as buildBooleanRequest, Pb as buildCsv, Ob as buildDailyRows, TT as buildDayGradient, NE as buildRateHistoryEntries, jb as buildWeeklyRollup, g as clearSelectedProject, Yn as colors, TE as computeFinance, pT as computeHoursPolicy, Mb as computeMarginBand, Un as conditionMatches, v as configureCoreTheme, rn as configuredFieldLabel, $H as createAllWorkflowsListFetcher, qH as createMergedListFetcher, BH as createModuleListFetchAdapter, JH as createWorkflowStageListFetcher, Tv as currencySymbol, VP as deactivateRegion, MH as defaultMergeRow, sn as deleteIntegrationConfig, Db as deriveDayStats, hT as describeCapacity, Rb as downloadCsv, _r as evaluateShowIfWith, yE as findEmployerRow, _E as flattenGroups, jv as formatAmount, et as formatApp, ct as formatAppDateTime, f_ as formatFileSize, PE as formatFinanceMoney, ub as formatHours, Mv as formatMoney, fb as formatPercent, Nv as formatRate, lr as getActivity, eU as getAllWorkflowsModuleList, Se as getAppTimeZone, gb as getApprovalDate, de as getBgcIntegrationConfig, ai as getBgcIntegrationSummary, xb as getBillingActionStates, XC as getBooleanEligibleTypes, d as getCurrentRoleName, kt as getDetailDisplayDefaults, Ib as getFieldLabel, KC as getFieldType, d_ as getFileExtension, iE as getFinanceApprovalConfig, nD as getFormGroupsRaw, nF as getGlobalAiServices, $P as getGlobalDefaults, ne as getIntegrationConfig, Xn as getIntegrationConfigs, Ze as getIntegrationSummary, Kc as getModuleConfig, Fn as getModuleDataDetail, Sb as getPayrollActionStates, Jc as getPeriodBadgeConfig, JP as getRegionDetailDefaults, cw as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, jc as getVMSApprove, Lb as getValueStyle, tU as getWorkflowStageModuleList, Cb as getWorkflowSteps, UP as grantPlatformAccess, GP as hasPlatformAccess, hb as humanizeEvent, kh as i, Fb as indexFieldConfig, pb as initialsOf, pC as insertTokenAtCursor, qC as isBooleanEligible, dC as isBooleanParsable, S as isTester, HP as listPlatformAccess, qP as listPlatformAudit, KP as listPlatformUsers, ZP as listRegionRoles, XP as listRegionUsers, zP as listRegions, Lt as loadDetailDefaults, h as logout, oE as marginIncludesReferral, wE as matchLocationTax, Ix as n, xE as normalizeContract, __ as r, Dv as rateUnitLabel, kv as rateUnitShort, hw as readActionButtons, mT as reconcileHours, RP as regionPath, GC as registerFieldType, sw as registerSearchPopup, Nc as rejectSubmission, Gg as resolveActivityMeta, EE as resolveAndCompute, dT as resolveDayKind, CE as resolveFinanceInputs, AH as resolveMergeKey, AH as resolveMergedListKey, pw as resolveOpenAs, aE as resolveRejectionReason, Cw as resolveResultsSearchPlaceholder, Sw as resolveResultsView, rD as resolveSubmissionFinance, WP as revokePlatformAccess, Hr as saveBgcIntegrationConfig, rF as saveGlobalAiServices, eF as saveGlobalDefaults, Wn as saveIntegrationConfig, BP as saveRegion, YP as saveRegionDetailDefaults, c as setSelectedProject, mn as showIfConditions, YH as stageCountKey, wO as t, bn as testIntegrationConnection, Ke as toApp, Av as toNumber, gt as tzLabel, vi as tzShortLabel, lw as unregisterSearchPopup, dd as useDropdownFields, Qf as useDropdownValues, mD as useEditForm, fd as useFieldConfig, pd as useFilterFields, Sd as useMenuPermission, OS as useModuleActions, Tx as useRecordRefresh, fC as validateBooleanQuery, m_ as validateBulkFile, t as withAdminAppId, _ as withAppId, $O as withAuthGuard };