@nivaro/react 0.3.57 → 0.3.59
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/components/fields/RelationField.js +110 -80
- package/dist/full.css +1 -1
- package/dist/hooks/useRelationOptions.js +1 -0
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +37 -2
- package/dist/index.js +523 -520
- package/dist/shared/components/CollectionBrowserView.js +2693 -2619
- package/dist/shared/components/DataTable.js +538 -495
- package/dist/shared/components/ItemEditForm.js +4559 -4386
- package/dist/shared/components/PageRenderer.js +537 -508
- package/dist/shared/components/ProfileView.js +716 -715
- package/dist/shared/components/QueryTable.js +74 -74
- package/dist/shared/components/RecordReadView.js +367 -364
- package/dist/shared/components/ReportView.js +64 -39
- package/dist/shared/components/WidgetSlot.js +543 -520
- package/dist/shared/components/alerts/AlertManagerView.js +324 -317
- package/dist/shared/components/alerts/types.js +37 -14
- 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/FieldRenderer.js +22 -20
- package/dist/shared/components/item-edit/FieldRow.js +175 -173
- package/dist/shared/components/item-edit/GridBulkEditDialog.js +55 -54
- package/dist/shared/components/item-edit/InlineTableField.js +2487 -2442
- package/dist/shared/components/item-edit/M2MCombobox.js +321 -295
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +1 -1
- package/dist/shared/components/item-edit/PlanGrid.js +973 -894
- package/dist/shared/components/item-edit/QuickCreateButton.js +335 -106
- package/dist/shared/components/item-edit/RecordLiveSync.js +77 -75
- package/dist/shared/components/item-edit/RelationCombobox.js +452 -335
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +262 -141
- package/dist/shared/components/item-edit/SummaryPanel.js +385 -358
- package/dist/shared/components/item-edit/duplicate-rehearsal.js +47 -0
- package/dist/shared/components/item-edit/line-midair.js +82 -75
- 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 +9 -7
- 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 +213 -211
- package/dist/shared/components/panels/PipelinePanel.js +1140 -1053
- package/dist/shared/components/panels/RecordIntegrityBanner.js +114 -86
- package/dist/shared/components/panels/RevisionsPanel.js +316 -299
- 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 +110 -92
- package/dist/shared/components/profile/AiMemoryCard.js +12 -10
- package/dist/shared/components/queue/OwnerAvatars.js +80 -41
- package/dist/shared/components/queue/QueueQuickFilters.js +52 -52
- package/dist/shared/components/queue/QueueWorklist.js +1050 -1026
- package/dist/shared/components/queue/group-sums.js +27 -0
- package/dist/shared/components/queue/live-state-aspect.js +9 -5
- package/dist/shared/components/widgets/ReviewListWidget.js +175 -154
- package/dist/shared/lib/back-closes.js +25 -0
- package/dist/shared/lib/display-prefs.js +60 -52
- package/dist/shared/lib/draft-store.js +71 -48
- package/dist/shared/lib/expression.js +53 -53
- package/dist/shared/lib/form-usage-beacon.js +7 -7
- package/dist/shared/lib/list-page-memory.js +63 -0
- package/dist/shared/lib/live.js +44 -44
- package/dist/shared/lib/money-input.js +45 -0
- package/dist/shared/lib/own-writes.js +76 -28
- package/dist/shared/lib/request-gate.js +110 -109
- package/dist/shared/lib/sanitize-html.js +10 -6
- package/dist/shared/lib/staged-row-labels.js +18 -0
- 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,10 +1,14 @@
|
|
|
1
|
-
function
|
|
2
|
-
return e ||
|
|
1
|
+
function t(e, r) {
|
|
2
|
+
return e || r ? { refresh: !0, pill: 0, stats: !0 } : { refresh: !1, pill: 1, stats: !0 };
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function n(e) {
|
|
5
5
|
return !e.table || e.busy || typeof e.liveTotal != "number" || typeof e.rowsTotal != "number" ? !1 : e.liveTotal !== e.rowsTotal;
|
|
6
6
|
}
|
|
7
|
+
function l(e) {
|
|
8
|
+
return e.pending <= 0 || !e.busy || typeof e.liveTotal != "number" || typeof e.rowsTotal != "number" ? 0 : e.liveTotal !== e.rowsTotal ? e.pending : 0;
|
|
9
|
+
}
|
|
7
10
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
l as offscreenPill,
|
|
12
|
+
t as stateAspectEffect,
|
|
13
|
+
n as statsOutrunRows
|
|
10
14
|
};
|