@nivaro/react 0.3.49 → 0.3.51
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/InlineGridField.js +166 -105
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/shared/components/ItemEditForm.js +5258 -5034
- package/dist/shared/components/QueryTable.js +489 -347
- package/dist/shared/components/ReportView.js +105 -99
- package/dist/shared/components/alerts/AlertManagerView.js +327 -301
- package/dist/shared/components/item-edit/CatalogPickerField.js +1230 -1175
- package/dist/shared/components/item-edit/CloneDialog.js +192 -142
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +58 -53
- package/dist/shared/components/item-edit/FieldRenderer.js +249 -244
- package/dist/shared/components/item-edit/FieldRow.js +402 -370
- package/dist/shared/components/item-edit/FilePickerField.js +315 -307
- package/dist/shared/components/item-edit/InlineGridField.js +92 -90
- package/dist/shared/components/item-edit/InlineTableField.js +3119 -2951
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +175 -0
- package/dist/shared/components/item-edit/PlanGrid.js +162 -162
- package/dist/shared/components/item-edit/PolishFields.js +169 -162
- package/dist/shared/components/item-edit/RecordHeaderActions.js +76 -75
- package/dist/shared/components/item-edit/RecordLiveSync.js +93 -91
- package/dist/shared/components/item-edit/RelationCombobox.js +198 -191
- package/dist/shared/components/item-edit/SummaryPanel.js +282 -259
- package/dist/shared/components/item-edit/UserChip.js +233 -200
- package/dist/shared/components/item-edit/ValidationSummary.js +64 -47
- package/dist/shared/components/item-edit/header-midair.js +51 -0
- package/dist/shared/components/item-edit/helpers.js +181 -155
- package/dist/shared/components/item-edit/line-midair.js +207 -0
- package/dist/shared/components/item-edit/soft-rules.js +27 -0
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/panels/CommentPanel.js +290 -284
- package/dist/shared/components/panels/ItemLockBanner.js +414 -358
- package/dist/shared/components/panels/PipelinePanel.js +1241 -992
- package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
- package/dist/shared/components/panels/TaskPanel.js +71 -61
- package/dist/shared/components/panels/TransitionRequirementsDialog.js +569 -439
- package/dist/shared/components/panels/requirement-side-effects.js +40 -0
- package/dist/shared/components/queue/QueueWorklist.js +925 -871
- package/dist/shared/components/queue/column-chooser.js +21 -0
- package/dist/shared/components/queue/live-state-aspect.js +6 -0
- package/dist/shared/components/ui/number-draft-input.js +93 -0
- package/dist/shared/components/widgets/ReviewListWidget.js +191 -166
- package/dist/shared/lib/draft-store.js +48 -34
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/query-stats.js +60 -60
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const o = (n) => n == null || n === "";
|
|
2
|
+
function c(n, e) {
|
|
3
|
+
if (n === e || o(n) && o(e)) return !0;
|
|
4
|
+
if (o(n) || o(e)) return !1;
|
|
5
|
+
if (typeof n != "object" && typeof e != "object") {
|
|
6
|
+
const r = Number(n), t = Number(e);
|
|
7
|
+
return !Number.isNaN(r) && !Number.isNaN(t) ? r === t : String(n) === String(e);
|
|
8
|
+
}
|
|
9
|
+
return JSON.stringify(n) === JSON.stringify(e);
|
|
10
|
+
}
|
|
11
|
+
function l(n, e) {
|
|
12
|
+
if (!n || n.ok === !1 || !Array.isArray(n.changes)) return [];
|
|
13
|
+
const r = [];
|
|
14
|
+
for (const t of n.changes)
|
|
15
|
+
!t || typeof t.field != "string" || t.field in e || t.field.startsWith("_") || o(t.from) || c(t.from, t.to) || r.push({ field: t.field, from: t.from, to: t.to });
|
|
16
|
+
return r;
|
|
17
|
+
}
|
|
18
|
+
function a(n) {
|
|
19
|
+
const e = {};
|
|
20
|
+
for (const r of n) e[r.field] = r.from;
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
const s = 5;
|
|
24
|
+
async function m(n, e = s) {
|
|
25
|
+
const r = new Array(n.length);
|
|
26
|
+
let t = 0;
|
|
27
|
+
const f = async () => {
|
|
28
|
+
for (; t < n.length; ) {
|
|
29
|
+
const i = t++;
|
|
30
|
+
r[i] = await n[i]();
|
|
31
|
+
}
|
|
32
|
+
}, u = Math.max(1, Math.min(e, n.length));
|
|
33
|
+
return await Promise.all(Array.from({ length: u }, f)), r;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
s as ROW_WRITE_CONCURRENCY,
|
|
37
|
+
a as keepValuesPatch,
|
|
38
|
+
l as overwrittenBySideEffect,
|
|
39
|
+
m as runPooled
|
|
40
|
+
};
|