@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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const s = {
|
|
2
2
|
gt: ">",
|
|
3
3
|
gte: "≥",
|
|
4
4
|
lt: "<",
|
|
5
5
|
lte: "≤",
|
|
6
6
|
eq: "=",
|
|
7
7
|
change_pct: "% Δ"
|
|
8
|
-
},
|
|
8
|
+
}, u = [
|
|
9
9
|
{ label: "greater than (>)", value: "gt" },
|
|
10
10
|
{ label: "at least (≥)", value: "gte" },
|
|
11
11
|
{ label: "less than (<)", value: "lt" },
|
|
@@ -13,16 +13,16 @@ const a = {
|
|
|
13
13
|
{ label: "equals (=)", value: "eq" },
|
|
14
14
|
{ label: "% change", value: "change_pct" }
|
|
15
15
|
];
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
if (!Number.isFinite(
|
|
19
|
-
const
|
|
20
|
-
return
|
|
16
|
+
function c(e, r) {
|
|
17
|
+
const n = Number(e);
|
|
18
|
+
if (!Number.isFinite(n)) return String(e ?? "—");
|
|
19
|
+
const t = Number.isInteger(n) ? n.toLocaleString() : n.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
20
|
+
return r === "dollar" ? `$${t}` : r === "percent" ? `${t}%` : r === "days" ? `${t}d` : t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function m(e) {
|
|
23
23
|
if (!e) return "—";
|
|
24
|
-
const
|
|
25
|
-
return Number.isNaN(
|
|
24
|
+
const r = new Date(e);
|
|
25
|
+
return Number.isNaN(r.getTime()) ? String(e) : r.toLocaleString(void 0, {
|
|
26
26
|
month: "short",
|
|
27
27
|
day: "numeric",
|
|
28
28
|
year: "numeric",
|
|
@@ -30,9 +30,32 @@ function u(e) {
|
|
|
30
30
|
minute: "2-digit"
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
+
function g(e) {
|
|
34
|
+
const r = { gt: ">", gte: "≥", lt: "<", lte: "≤", eq: "=", neq: "≠" }, n = (i) => {
|
|
35
|
+
const a = i.replace(/_/g, " ").trim();
|
|
36
|
+
return a && a.charAt(0).toUpperCase() + a.slice(1);
|
|
37
|
+
};
|
|
38
|
+
let t;
|
|
39
|
+
if (e.field === "value") t = "Value";
|
|
40
|
+
else if (e.field === "row_count") t = "Rows";
|
|
41
|
+
else {
|
|
42
|
+
const i = /^(sum|avg|max|min|tile):(.+)$/.exec(e.field);
|
|
43
|
+
i ? i[1] === "tile" ? t = i[2].trim() : t = `${{ sum: "Total of", avg: "Average", max: "Largest", min: "Smallest" }[i[1]] ?? ""} ${i[2].replace(/_/g, " ").trim()}`.trim() : t = n(e.field);
|
|
44
|
+
}
|
|
45
|
+
const l = Number(e.value), o = Number.isFinite(l) ? l.toLocaleString("en-US", { maximumFractionDigits: 2 }) : String(e.value ?? "");
|
|
46
|
+
return `${t} ${r[e.op] ?? e.op} ${o}`;
|
|
47
|
+
}
|
|
48
|
+
function f(e) {
|
|
49
|
+
const r = { sla: "SLA", ai: "AI", kpi: "KPI", erp: "ERP" }, n = e.trim().toLowerCase();
|
|
50
|
+
if (r[n]) return r[n];
|
|
51
|
+
const t = e.replace(/[_-]+/g, " ").trim();
|
|
52
|
+
return t && t.charAt(0).toUpperCase() + t.slice(1);
|
|
53
|
+
}
|
|
33
54
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
55
|
+
s as OPERATOR_LABELS,
|
|
56
|
+
u as OPERATOR_OPTIONS,
|
|
57
|
+
f as categoryLabel,
|
|
58
|
+
m as fmtDateTime,
|
|
59
|
+
c as fmtMetric,
|
|
60
|
+
g as reportConditionText
|
|
38
61
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function u(o, t) {
|
|
2
|
+
let n = null;
|
|
3
|
+
for (const r of o) {
|
|
4
|
+
if (r.kind !== "row" || !r.row) continue;
|
|
5
|
+
const l = String(r.row.id);
|
|
6
|
+
if (l === t) return l;
|
|
7
|
+
n ?? (n = l);
|
|
8
|
+
}
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function i(o, t, n) {
|
|
12
|
+
if (o <= 0) return null;
|
|
13
|
+
const r = n === "ArrowDown" ? t + 1 : n === "ArrowUp" ? t - 1 : n === "Home" ? 0 : n === "End" ? o - 1 : null;
|
|
14
|
+
return r === null || r < 0 || r >= o ? null : r;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as rowFocusTarget,
|
|
18
|
+
u as tabStopRowKey
|
|
19
|
+
};
|