@nivaro/react 0.3.50 → 0.3.52

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.
Files changed (29) hide show
  1. package/dist/hooks/useSessionRecorder.js +1 -1
  2. package/dist/index.d.ts +13 -3
  3. package/dist/shared/components/ItemEditForm.js +4801 -4666
  4. package/dist/shared/components/QueryTable.js +337 -324
  5. package/dist/shared/components/ReportView.js +105 -99
  6. package/dist/shared/components/alerts/AlertManagerView.js +327 -301
  7. package/dist/shared/components/item-edit/CatalogPickerField.js +1149 -1111
  8. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +58 -53
  9. package/dist/shared/components/item-edit/FieldRenderer.js +227 -223
  10. package/dist/shared/components/item-edit/FieldRow.js +287 -265
  11. package/dist/shared/components/item-edit/FilePickerField.js +315 -307
  12. package/dist/shared/components/item-edit/InlineTableField.js +491 -466
  13. package/dist/shared/components/item-edit/RecordHeaderActions.js +76 -75
  14. package/dist/shared/components/item-edit/RecordLiveSync.js +93 -91
  15. package/dist/shared/components/item-edit/RelationCombobox.js +62 -60
  16. package/dist/shared/components/item-edit/SummaryPanel.js +287 -277
  17. package/dist/shared/components/item-edit/UserChip.js +233 -200
  18. package/dist/shared/components/item-edit/header-midair.js +51 -0
  19. package/dist/shared/components/item-edit/line-midair.js +76 -70
  20. package/dist/shared/components/panels/CommentPanel.js +290 -284
  21. package/dist/shared/components/panels/ItemLockBanner.js +30 -30
  22. package/dist/shared/components/panels/PipelinePanel.js +956 -901
  23. package/dist/shared/components/panels/TaskPanel.js +71 -61
  24. package/dist/shared/components/panels/TransitionRequirementsDialog.js +569 -439
  25. package/dist/shared/components/panels/requirement-side-effects.js +40 -0
  26. package/dist/shared/components/queue/QueueWorklist.js +141 -130
  27. package/dist/shared/lib/draft-store.js +48 -34
  28. package/dist/shared/lib/query-stats.js +60 -60
  29. 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
+ };