@nivaro/react 0.3.15 → 0.3.16
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 +127 -6
- package/dist/index.js +736 -734
- package/dist/shared/components/CollectionBrowserView.js +2344 -2309
- package/dist/shared/components/ItemEditForm.js +3773 -3604
- package/dist/shared/components/RecordGridEditor.js +319 -282
- package/dist/shared/components/RecordReadView.js +202 -200
- package/dist/shared/components/cbv/unknown-fields.js +18 -8
- package/dist/shared/components/import/DocumentAutofillButton.js +148 -142
- package/dist/shared/components/item-edit/CatalogPickerField.js +264 -276
- package/dist/shared/components/item-edit/FieldRenderer.js +136 -133
- package/dist/shared/components/item-edit/FieldRow.js +198 -184
- package/dist/shared/components/item-edit/HeaderTools.js +107 -99
- package/dist/shared/components/item-edit/InlineTableField.js +138 -136
- package/dist/shared/components/item-edit/RecordLiveSync.js +1 -0
- package/dist/shared/components/item-edit/RelationCombobox.js +30 -23
- package/dist/shared/components/item-edit/SummaryPanel.js +334 -294
- package/dist/shared/components/item-edit/column-length.js +12 -0
- package/dist/shared/components/panels/AccessDeniedPanel.js +47 -37
- package/dist/shared/components/panels/ItemLockBanner.js +307 -285
- package/dist/shared/components/panels/PipelinePanel.js +486 -465
- package/dist/shared/components/panels/RevisionsPanel.js +210 -204
- package/dist/shared/components/profile/DelegationCard.js +178 -121
- package/dist/shared/components/profile/PersonActivity.js +152 -139
- package/dist/shared/components/queue/QueueWorklist.js +668 -659
- package/dist/shared/components/queue/transition-note.js +90 -0
- package/dist/shared/components/support/SupportRequestDialog.js +100 -89
- package/dist/shared/components/support/TicketDetailSheet.js +104 -91
- package/dist/shared/lib/autofill-runs.js +33 -26
- package/dist/shared/lib/draft-store.js +40 -24
- package/dist/shared/lib/live-queries.js +10 -9
- package/dist/shared/lib/restore-skipped.js +10 -0
- package/package.json +1 -1
|
@@ -1,18 +1,28 @@
|
|
|
1
|
+
function n(r) {
|
|
2
|
+
const e = r, t = e == null ? void 0 : e.response;
|
|
3
|
+
return t && typeof t == "object" && t.data && typeof t.data == "object" ? t.data : t;
|
|
4
|
+
}
|
|
1
5
|
function l(r) {
|
|
2
|
-
const e = r
|
|
3
|
-
return (
|
|
6
|
+
const e = n(r);
|
|
7
|
+
return !i(r) || !Array.isArray(e == null ? void 0 : e.fields) ? [] : e.fields.filter((t) => typeof t == "string" && t.length > 0);
|
|
8
|
+
}
|
|
9
|
+
function i(r) {
|
|
10
|
+
var t;
|
|
11
|
+
const e = (t = n(r)) == null ? void 0 : t.code;
|
|
12
|
+
return e === "UNKNOWN_FIELD" || e === "FIELD_NOT_READABLE";
|
|
4
13
|
}
|
|
5
|
-
const
|
|
6
|
-
function
|
|
14
|
+
const c = (r, e) => r.toLowerCase() === e.toLowerCase(), o = (r, e) => r.some((t) => t.split(".").some((s) => c(s, e)));
|
|
15
|
+
function f(r, e) {
|
|
7
16
|
return {
|
|
8
|
-
filters: e.filters.filter((t) => !
|
|
9
|
-
sort: e.sort.split(",").map((t) => t.trim()).filter((t) => t && !
|
|
17
|
+
filters: e.filters.filter((t) => !o(t.path, r)),
|
|
18
|
+
sort: e.sort.split(",").map((t) => t.trim()).filter((t) => t && !o([t.replace(/^-/, "")], r)).join(","),
|
|
10
19
|
colFilters: Object.fromEntries(
|
|
11
|
-
Object.entries(e.colFilters).filter(([t]) => !
|
|
20
|
+
Object.entries(e.colFilters).filter(([t]) => !o([t], r))
|
|
12
21
|
)
|
|
13
22
|
};
|
|
14
23
|
}
|
|
15
24
|
export {
|
|
16
|
-
|
|
25
|
+
f as dropUnknownField,
|
|
26
|
+
i as isFilterRefusal,
|
|
17
27
|
l as unknownFieldsOf
|
|
18
28
|
};
|