@nivaro/react 0.3.56 → 0.3.58
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/shared/components/CollectionBrowserView.js +2827 -2750
- package/dist/shared/components/DataTable.js +247 -236
- package/dist/shared/components/ItemEditForm.js +1693 -1668
- package/dist/shared/components/ProfileView.js +716 -715
- package/dist/shared/components/RecordReadView.js +367 -364
- package/dist/shared/components/ReportView.js +64 -39
- package/dist/shared/components/alerts/AlertManagerView.js +284 -271
- package/dist/shared/components/cbv/row-focus.js +19 -0
- package/dist/shared/components/help-videos/HelpVideoPlayer.js +152 -147
- package/dist/shared/components/integrations/console/SignalCard.js +59 -59
- package/dist/shared/components/integrations/console/tone.js +52 -30
- package/dist/shared/components/item-edit/CatalogPickerField.js +525 -505
- package/dist/shared/components/item-edit/FieldRow.js +175 -173
- package/dist/shared/components/item-edit/InlineTableField.js +407 -402
- package/dist/shared/components/item-edit/M2MCombobox.js +313 -291
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +1 -1
- package/dist/shared/components/item-edit/PlanGrid.js +826 -803
- package/dist/shared/components/item-edit/QuickCreateButton.js +115 -79
- package/dist/shared/components/item-edit/RecordLiveSync.js +77 -75
- package/dist/shared/components/item-edit/RelationCombobox.js +412 -328
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +147 -125
- package/dist/shared/components/item-edit/SummaryPanel.js +406 -392
- package/dist/shared/components/item-edit/option-disambiguate.js +44 -32
- package/dist/shared/components/item-edit/related-missing.js +45 -0
- package/dist/shared/components/item-edit/save-outcome.js +5 -5
- package/dist/shared/components/notifications/NotificationRulesEditor.js +130 -123
- package/dist/shared/components/panels/AccessDeniedPanel.js +52 -48
- package/dist/shared/components/panels/ItemLockBanner.js +2 -3
- package/dist/shared/components/panels/PipelinePanel.js +1027 -978
- package/dist/shared/components/panels/RevisionsPanel.js +4 -1
- package/dist/shared/components/panels/TaskPanel.js +265 -249
- package/dist/shared/components/panels/landing-state.js +27 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +86 -78
- package/dist/shared/components/profile/AiMemoryCard.js +12 -10
- package/dist/shared/components/queue/OwnerAvatars.js +80 -41
- package/dist/shared/components/queue/QueueItemSheet.js +111 -111
- package/dist/shared/components/queue/QueueQuickFilters.js +48 -48
- package/dist/shared/components/queue/QueueWorklist.js +975 -964
- package/dist/shared/components/queue/group-sums.js +27 -0
- package/dist/shared/components/queue/live-state-aspect.js +7 -3
- package/dist/shared/components/queue/path-label.js +14 -0
- package/dist/shared/components/widgets/ReviewListWidget.js +186 -168
- package/dist/shared/lib/back-closes.js +25 -0
- package/dist/shared/lib/cbv-page-warm.js +36 -0
- package/dist/shared/lib/form-usage-beacon.js +7 -7
- package/dist/shared/lib/list-page-memory.js +41 -0
- package/dist/shared/lib/live.js +44 -44
- package/dist/shared/lib/own-writes.js +76 -28
- package/dist/shared/lib/record-ref.js +78 -53
- package/dist/shared/lib/request-gate.js +110 -109
- package/dist/shared/lib/validation-rules.js +34 -19
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function s(e) {
|
|
2
|
+
return e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
3
|
+
}
|
|
4
|
+
const o = /* @__PURE__ */ new Set(["year", "years", "yr", "fy"]), f = /* @__PURE__ */ new Set(["value", "name", "label", "number", "code", "year"]);
|
|
5
|
+
function l(e) {
|
|
6
|
+
const n = e.split("."), t = n[n.length - 1] ?? e;
|
|
7
|
+
if (t === "id" || /_id$/i.test(t) || /[a-z]Id$/.test(t)) return !1;
|
|
8
|
+
const r = s(t);
|
|
9
|
+
if (o.has(r[r.length - 1] ?? "")) return !1;
|
|
10
|
+
const a = n.length > 1 ? s(n[n.length - 2]) : [];
|
|
11
|
+
return !(o.has(a[a.length - 1] ?? "") && f.has(t.toLowerCase()));
|
|
12
|
+
}
|
|
13
|
+
function c(e) {
|
|
14
|
+
const n = /* @__PURE__ */ new Set();
|
|
15
|
+
for (const t of (e == null ? void 0 : e.extra_field_meta) ?? [])
|
|
16
|
+
t.aggregate && t.aggregate !== "count" && n.add(t.path);
|
|
17
|
+
for (const t of (e == null ? void 0 : e.sources) ?? []) {
|
|
18
|
+
for (const [r, a] of Object.entries(t.column_formats ?? {}))
|
|
19
|
+
(a == null ? void 0 : a.type) === "number" && l(r) && n.add(r);
|
|
20
|
+
t.type === "addendums" && n.add("cost_impact");
|
|
21
|
+
}
|
|
22
|
+
return [...n].slice(0, 12);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
c as groupSumPathsFor,
|
|
26
|
+
l as isSummableColumn
|
|
27
|
+
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
function r(
|
|
2
|
-
return
|
|
1
|
+
function r(e, t) {
|
|
2
|
+
return e || t ? { refresh: !0, pill: 0, stats: !0 } : { refresh: !1, pill: 1, stats: !0 };
|
|
3
|
+
}
|
|
4
|
+
function l(e) {
|
|
5
|
+
return !e.table || e.busy || typeof e.liveTotal != "number" || typeof e.rowsTotal != "number" ? !1 : e.liveTotal !== e.rowsTotal;
|
|
3
6
|
}
|
|
4
7
|
export {
|
|
5
|
-
r as stateAspectEffect
|
|
8
|
+
r as stateAspectEffect,
|
|
9
|
+
l as statsOutrunRows
|
|
6
10
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const s = /* @__PURE__ */ new Set(["id", "name", "title", "label", "type", "code", "display_name"]);
|
|
2
|
+
function n(t) {
|
|
3
|
+
return t.replace(/_/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()).replace(/\bId\b/g, "ID");
|
|
4
|
+
}
|
|
5
|
+
function i(t) {
|
|
6
|
+
const e = t.split(".").filter(Boolean);
|
|
7
|
+
if (e.length === 0) return t;
|
|
8
|
+
if (e.length === 1) return n(e[0]);
|
|
9
|
+
const r = e[e.length - 1], o = e[e.length - 2], a = e.slice(0, -1);
|
|
10
|
+
return s.has(r.toLowerCase()) ? a.map(n).join(" → ") : r.toLowerCase().startsWith(`${o.toLowerCase()}_`) ? [...e.slice(0, -2), r].map(n).join(" → ") : e.map(n).join(" → ");
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
i as pathHeader
|
|
14
|
+
};
|