@declarion/react 0.57.0 → 0.59.2
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/README.md +0 -2
- package/dist-lib/AgentChatPanel.impl-DBH1Ff4G.js +1200 -0
- package/dist-lib/DetailAuditStrip-9eJM2Fml.js +288 -0
- package/dist-lib/{DraggableChildrenTable-BV5sb8Uo.js → DraggableChildrenTable-4RZC351U.js} +87 -86
- package/dist-lib/Grid-CQabaBLx.js +405 -0
- package/dist-lib/{LayoutRenderer-C9AH9cXf.js → LayoutRenderer-DGKWZKpW.js} +1000 -1114
- package/dist-lib/{ListCardsBody-DXcDg536.js → ListCardsBody-DfGmyNIu.js} +84 -84
- package/dist-lib/MarkdownRenderer-BDbzDv_y.js +87 -0
- package/dist-lib/{RefreshControl-CNtN8zSl.js → RefreshControl-Bhoib0ZA.js} +126 -155
- package/dist-lib/SmartDetailPage.impl-DFjz29Ff.js +1565 -0
- package/dist-lib/SmartListPage.impl-BrZLE_Gb.js +3046 -0
- package/dist-lib/{SmartRecordListPage.impl-Bkl9aZJ8.js → SmartRecordListPage.impl-C1FJLr80.js} +281 -280
- package/dist-lib/SortHeaderMenu-Cijxk4cX.js +107 -0
- package/dist-lib/action-dispatch-DY0c8U81.js +1967 -0
- package/dist-lib/api/client.d.ts +5 -0
- package/dist-lib/api/data.d.ts +2 -4
- package/dist-lib/api/entities.d.ts +8 -15
- package/dist-lib/api/events.d.ts +3 -3
- package/dist-lib/cardProjection-Bkl2SSYz.js +499 -0
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +17 -16
- package/dist-lib/components/agents/AgentChatPanel.d.ts +3 -13
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +14 -0
- package/dist-lib/components/agents/AgentPicker.d.ts +1 -2
- package/dist-lib/components/chrome/PageShell.d.ts +7 -0
- package/dist-lib/components/chrome/RecordHeader.d.ts +1 -2
- package/dist-lib/components/chrome/headerActionZone.d.ts +27 -0
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +1 -2
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +1 -2
- package/dist-lib/components/detail-layout/blockMeta.d.ts +2 -1
- package/dist-lib/components/fields/BoolField.d.ts +1 -1
- package/dist-lib/components/fields/EnumField.d.ts +1 -1
- package/dist-lib/components/fields/IntArrayField.d.ts +1 -1
- package/dist-lib/components/fields/MultilangArrayField.d.ts +2 -0
- package/dist-lib/components/fields/MultilangField.d.ts +1 -1
- package/dist-lib/components/fields/MultilangTextField.d.ts +1 -1
- package/dist-lib/components/fields/NumberField.d.ts +1 -1
- package/dist-lib/components/fields/PasswordField.d.ts +1 -1
- package/dist-lib/components/fields/RefCombobox.d.ts +1 -1
- package/dist-lib/components/fields/SecretField.d.ts +1 -1
- package/dist-lib/components/fields/StringArrayField.d.ts +1 -1
- package/dist-lib/components/fields/TimestampField.d.ts +1 -1
- package/dist-lib/components/fields/cells/registry.d.ts +2 -1
- package/dist-lib/components/fields/index.d.ts +2 -1
- package/dist-lib/components/fields/langMap.d.ts +2 -0
- package/dist-lib/components/fields/secretValue.d.ts +2 -0
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +3 -0
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +4 -0
- package/dist-lib/components/file-widgets/helpers.d.ts +1 -1
- package/dist-lib/components/file-widgets/host.d.ts +4 -3
- package/dist-lib/components/file-widgets/types.d.ts +1 -0
- package/dist-lib/components/file-widgets/upload.d.ts +18 -3
- package/dist-lib/components/filters/filter-op-label.d.ts +3 -0
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +1 -1
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +1 -1
- package/dist-lib/components/layout/Layout.d.ts +2 -1
- package/dist-lib/components/layout/Sidebar.d.ts +2 -1
- package/dist-lib/components/layout/TenantChip.d.ts +1 -1
- package/dist-lib/components/list/ViewSwitcher.d.ts +4 -2
- package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -2
- package/dist-lib/components/pages/ExportMenu.d.ts +3 -5
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +1 -2
- package/dist-lib/components/pages/auth/AuthShell.d.ts +4 -31
- package/dist-lib/components/pages/exportRequest.d.ts +4 -6
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +8 -0
- package/dist-lib/components/pages/list/ListCardRow.d.ts +1 -2
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -1
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +2 -2
- package/dist-lib/components/pages/list/ListHeader.d.ts +2 -2
- package/dist-lib/components/pages/list/ListNoRows.d.ts +4 -5
- package/dist-lib/components/pages/list/ListToolbar.d.ts +3 -2
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +10 -0
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +2 -4
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +1 -2
- package/dist-lib/components/pages/list/columns.d.ts +2 -1
- package/dist-lib/components/pages/list/filter-meta.d.ts +2 -1
- package/dist-lib/components/pages/list/useActiveView.d.ts +38 -0
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +6 -5
- package/dist-lib/components/pages/list/useListQuery.d.ts +4 -4
- package/dist-lib/components/pages/list/useListSort.d.ts +5 -4
- package/dist-lib/components/pages/list/useListViews.d.ts +18 -8
- package/dist-lib/components/pages/list/useRowMenu.d.ts +2 -3
- package/dist-lib/components/pages/profile/Profile.d.ts +3 -0
- package/dist-lib/components/params/ParamsBlock.d.ts +1 -13
- package/dist-lib/components/params/param-editors.d.ts +3 -11
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +1 -2
- package/dist-lib/components/shared/DynamicIcon.d.ts +2 -2
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +1 -0
- package/dist-lib/components/shared/LucideIcon.d.ts +1 -1
- package/dist-lib/components/shared/useOwnRefresh.d.ts +1 -1
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/embed/theme.d.ts +1 -1
- package/dist-lib/embed/useEmbedNavigate.d.ts +1 -1
- package/dist-lib/failure-v-uGSpbX.js +158 -0
- package/dist-lib/{field-classification-D6xQYn-h.js → field-classification-C28XE-_P.js} +514 -307
- package/dist-lib/format-count-DA4wmmWR.js +1771 -0
- package/dist-lib/hooks/useEntityData.d.ts +1 -1
- package/dist-lib/hooks/useFilters.d.ts +7 -5
- package/dist-lib/hooks/useLanguage.d.ts +4 -0
- package/dist-lib/hooks/useParams.d.ts +4 -51
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +1 -1
- package/dist-lib/hooks/useSSE.d.ts +3 -3
- package/dist-lib/hooks/useTabTitle.d.ts +2 -0
- package/dist-lib/hooks/useText.d.ts +3 -3
- package/dist-lib/hooks/useVersionWatcher.d.ts +1 -1
- package/dist-lib/hooks/useViews.d.ts +20 -0
- package/dist-lib/index.d.ts +8 -7
- package/dist-lib/index.js +2716 -5803
- package/dist-lib/lib/action-dispatch.d.ts +2 -1
- package/dist-lib/lib/actions.d.ts +30 -42
- package/dist-lib/lib/anchor.d.ts +3 -4
- package/dist-lib/lib/decimal-text.d.ts +1 -0
- package/dist-lib/lib/document-templates.d.ts +1 -2
- package/dist-lib/lib/download.d.ts +2 -1
- package/dist-lib/lib/evidence-verdict.d.ts +2 -1
- package/dist-lib/lib/failure.d.ts +2 -0
- package/dist-lib/lib/field-classification.d.ts +3 -3
- package/dist-lib/lib/filters.d.ts +18 -2
- package/dist-lib/lib/format-count.d.ts +8 -7
- package/dist-lib/lib/language.d.ts +19 -0
- package/dist-lib/lib/mass-edit.d.ts +2 -1
- package/dist-lib/lib/realtime-query-keys.d.ts +1 -1
- package/dist-lib/lib/realtime-reconcile.d.ts +3 -4
- package/dist-lib/lib/screen-back.d.ts +4 -6
- package/dist-lib/lib/sort.d.ts +9 -9
- package/dist-lib/lib/timestamp.d.ts +5 -7
- package/dist-lib/lib/ui-actions.d.ts +2 -1
- package/dist-lib/peekDraftStore-D-cTbiIr.js +199 -0
- package/dist-lib/registry-Cb3W-czW.js +1950 -0
- package/dist-lib/safe-url-oSJw5pzO.js +34 -0
- package/dist-lib/stores/icon-registry.d.ts +2 -2
- package/dist-lib/stores/list-layout.d.ts +3 -4
- package/dist-lib/stores/realtime.d.ts +1 -1
- package/dist-lib/stores/tabs.d.ts +3 -2
- package/dist-lib/testing.d.ts +6 -0
- package/dist-lib/testing.js +98 -76
- package/dist-lib/types/api.d.ts +7 -8
- package/dist-lib/types/fieldType.d.ts +1 -1
- package/dist-lib/types/files.d.ts +4 -4
- package/dist-lib/types/schema.d.ts +44 -50
- package/dist-lib/useAgentConversation-D97IqE-J.js +623 -0
- package/dist-lib/{useCurrentScreen-CzwzQpoW.js → useCurrentScreen-BL5NZFCw.js} +2777 -3768
- package/dist-lib/useListQuery-BG1GyKtJ.js +103 -0
- package/dist-lib/useProperties-4Lg3odrt.js +83 -0
- package/dist-lib/{useTabSearchMirror-C39U85cg.js → useTabSearchMirror-ZVLlINBX.js} +49 -51
- package/dist-lib/useText-BFDCTUSo.js +952 -0
- package/dist-lib/{value-Bo8C8WMU.js → value-By1-WJ8J.js} +74 -76
- package/dist-lib/vite/fingerprint-plugin.d.ts +2 -3
- package/package.json +9 -9
- package/dist-lib/Grid-DWgUPuZ3.js +0 -404
- package/dist-lib/MarkdownRenderer-CcSFc2N3.js +0 -85
- package/dist-lib/RecordIdBadge-CGxPR-8q.js +0 -24
- package/dist-lib/SmartDetailPage.impl-lskCd-WG.js +0 -1846
- package/dist-lib/SmartListPage.impl-CrGbdzyK.js +0 -2854
- package/dist-lib/SortHeaderMenu-SYSAaqQJ.js +0 -106
- package/dist-lib/action-dispatch-CR4ajBtT.js +0 -1985
- package/dist-lib/cardProjection-CW5RIMko.js +0 -699
- package/dist-lib/components/pages/home/HomeStub.d.ts +0 -6
- package/dist-lib/components/pages/jobs/Jobs.d.ts +0 -1
- package/dist-lib/components/pages/pipeline/Pipeline.d.ts +0 -1
- package/dist-lib/format-count-Dobmi-Ji.js +0 -1551
- package/dist-lib/hooks/useUserLocale.d.ts +0 -1
- package/dist-lib/lib/messages.d.ts +0 -12
- package/dist-lib/peekDraftStore-5wQ7lq_V.js +0 -194
- package/dist-lib/registry-CjgUaF7C.js +0 -1768
- package/dist-lib/useListQuery-D7Hr5WM1.js +0 -96
- package/dist-lib/useProperties-CqtCzFCr.js +0 -81
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { bt as e, l as t, s as n, vt as r, xt as i, yt as a } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
|
-
import { g as o } from "./field-classification-D6xQYn-h.js";
|
|
3
|
-
import { useCallback as s, useEffect as c, useMemo as l, useState as u } from "react";
|
|
4
|
-
import { useQueryClient as d } from "@tanstack/react-query";
|
|
5
|
-
//#region src/components/pages/list/useListQuery.ts
|
|
6
|
-
var f = 1e4;
|
|
7
|
-
function p(c) {
|
|
8
|
-
let u = d(), { entity: f, entityCode: p, screen: h, screenCode: g, page: _, perPage: v, sortForRequest: y, debouncedSearch: b, filters: x, filterError: S, includeDeleted: C, expand: w, select: T, runCountQuery: E, urlKey: D } = c, O = S ? void 0 : x.length > 0 ? x : void 0, k = {
|
|
9
|
-
page: _,
|
|
10
|
-
per_page: v,
|
|
11
|
-
sort: y,
|
|
12
|
-
search: b || void 0,
|
|
13
|
-
filters: O,
|
|
14
|
-
include_deleted: C || void 0,
|
|
15
|
-
expand: w,
|
|
16
|
-
select: T,
|
|
17
|
-
preview: !0,
|
|
18
|
-
screen: h?.fixed_filters ? g : void 0
|
|
19
|
-
}, A = {
|
|
20
|
-
sort: y,
|
|
21
|
-
filters: O,
|
|
22
|
-
search: b || void 0,
|
|
23
|
-
select: T,
|
|
24
|
-
expand: w,
|
|
25
|
-
includeDeleted: C || void 0,
|
|
26
|
-
screen: h?.fixed_filters ? g : void 0,
|
|
27
|
-
preview: !0,
|
|
28
|
-
limit: v
|
|
29
|
-
}, j = f?.list_pagination === "cursor", M = i(p, k, !j), N = e(p, k, E && !j), P = t(p, A, j);
|
|
30
|
-
o(a(p, k), !j), o(n(p, A), j);
|
|
31
|
-
let F = j ? P.isLoading : M.isLoading, I = l(() => j ? P.rows : M.data?.data ?? [], [
|
|
32
|
-
j,
|
|
33
|
-
P.rows,
|
|
34
|
-
M.data?.data
|
|
35
|
-
]), L = j ? P.total : N.data?.meta?.total, R = l(() => {
|
|
36
|
-
if (!(j || L === void 0 || v <= 0)) return Math.max(1, Math.ceil(L / v));
|
|
37
|
-
}, [
|
|
38
|
-
j,
|
|
39
|
-
L,
|
|
40
|
-
v
|
|
41
|
-
]), z = m(F, D), B = j ? n(p, A) : a(p, k), V = r(p, k), H = E && !j, U = s(async () => {
|
|
42
|
-
p && (await Promise.all([u.cancelQueries({
|
|
43
|
-
queryKey: B,
|
|
44
|
-
exact: !0
|
|
45
|
-
}), H ? u.cancelQueries({
|
|
46
|
-
queryKey: V,
|
|
47
|
-
exact: !0
|
|
48
|
-
}) : void 0]), await Promise.all([j ? P.refetch() : M.refetch(), H ? N.refetch() : void 0]));
|
|
49
|
-
}, [
|
|
50
|
-
p,
|
|
51
|
-
u,
|
|
52
|
-
B,
|
|
53
|
-
V,
|
|
54
|
-
H,
|
|
55
|
-
j,
|
|
56
|
-
P,
|
|
57
|
-
M,
|
|
58
|
-
N
|
|
59
|
-
]), W = s(() => {
|
|
60
|
-
P.fetchNextPage();
|
|
61
|
-
}, [P]);
|
|
62
|
-
return {
|
|
63
|
-
rows: I,
|
|
64
|
-
meta: M.data?.meta,
|
|
65
|
-
refs: j ? P.refs : M.data?.$refs,
|
|
66
|
-
isLoading: F,
|
|
67
|
-
isFetching: j ? P.isFetching : M.isFetching,
|
|
68
|
-
isError: j ? P.isError : M.isError,
|
|
69
|
-
error: j ? P.error : M.error,
|
|
70
|
-
isLoadingStale: z,
|
|
71
|
-
retry: U,
|
|
72
|
-
countTotal: L,
|
|
73
|
-
countStrategy: j ? P.countMode : N.data?.meta?.count_mode,
|
|
74
|
-
countLoading: j ? P.isLoading : N.isLoading,
|
|
75
|
-
countError: !j && N.isError,
|
|
76
|
-
totalPages: R,
|
|
77
|
-
hasMorePages: j ? P.hasMore : M.data?.meta?.has_more ?? (R !== void 0 && _ < R),
|
|
78
|
-
isCursor: j,
|
|
79
|
-
fetchNextPage: W,
|
|
80
|
-
isFetchingNextPage: P.isFetchingNextPage
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function m(e, t) {
|
|
84
|
-
let [n, r] = u(!1);
|
|
85
|
-
return c(() => {
|
|
86
|
-
if (!e) {
|
|
87
|
-
r(!1);
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
r(!1);
|
|
91
|
-
let t = window.setTimeout(() => r(!0), f);
|
|
92
|
-
return () => window.clearTimeout(t);
|
|
93
|
-
}, [e, t]), n;
|
|
94
|
-
}
|
|
95
|
-
//#endregion
|
|
96
|
-
export { p as t };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { en as e, jt as t } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
|
-
import { useMutation as n, useQueryClient as r } from "@tanstack/react-query";
|
|
3
|
-
//#region src/api/status.ts
|
|
4
|
-
async function i(t, n, r, i, a) {
|
|
5
|
-
let o = {
|
|
6
|
-
status_group_code: r,
|
|
7
|
-
status_code: i
|
|
8
|
-
};
|
|
9
|
-
a != null && (o.note = a);
|
|
10
|
-
let s = (await e(`${t}.__update`, {
|
|
11
|
-
object_ids: [n],
|
|
12
|
-
entity: t,
|
|
13
|
-
fields: { $statuses: [o] }
|
|
14
|
-
})).result?.rows?.[0]?.$statuses ?? [];
|
|
15
|
-
return s.find((e) => e.group_code === r) ?? s[0];
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/hooks/useObjectStatus.ts
|
|
19
|
-
function a(e, a) {
|
|
20
|
-
let o = r();
|
|
21
|
-
return n({
|
|
22
|
-
mutationFn: ({ groupCode: t, statusCode: n, note: r }) => i(e, a, t, n, r),
|
|
23
|
-
onSuccess: () => {
|
|
24
|
-
o.invalidateQueries({ queryKey: ["entity-item", e] });
|
|
25
|
-
},
|
|
26
|
-
onError: (e) => {
|
|
27
|
-
t.error(e.message);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/api/properties.ts
|
|
33
|
-
async function o(t, n, r, i) {
|
|
34
|
-
let a = (await e(`${t}.__update`, {
|
|
35
|
-
object_ids: [n],
|
|
36
|
-
entity: t,
|
|
37
|
-
fields: { $properties: [{
|
|
38
|
-
property_code: r,
|
|
39
|
-
value: i
|
|
40
|
-
}] }
|
|
41
|
-
})).result?.rows?.[0]?.$properties ?? [];
|
|
42
|
-
return a.find((e) => e.property_code === r) ?? a[0];
|
|
43
|
-
}
|
|
44
|
-
async function s(t, n, r) {
|
|
45
|
-
await e(`${t}.__update`, {
|
|
46
|
-
object_ids: [n],
|
|
47
|
-
entity: t,
|
|
48
|
-
fields: { $properties: [{
|
|
49
|
-
property_code: r,
|
|
50
|
-
value: null
|
|
51
|
-
}] }
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/hooks/useProperties.ts
|
|
56
|
-
function c(e, i) {
|
|
57
|
-
let a = r();
|
|
58
|
-
return n({
|
|
59
|
-
mutationFn: ({ propertyCode: t, value: n }) => o(e, i, t, n),
|
|
60
|
-
onSuccess: () => {
|
|
61
|
-
a.invalidateQueries({ queryKey: ["entity-item", e] });
|
|
62
|
-
},
|
|
63
|
-
onError: (e) => {
|
|
64
|
-
t.error(e.message);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function l(e, i) {
|
|
69
|
-
let a = r();
|
|
70
|
-
return n({
|
|
71
|
-
mutationFn: (t) => s(e, i, t),
|
|
72
|
-
onSuccess: () => {
|
|
73
|
-
a.invalidateQueries({ queryKey: ["entity-item", e] });
|
|
74
|
-
},
|
|
75
|
-
onError: (e) => {
|
|
76
|
-
t.error(e.message);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
//#endregion
|
|
81
|
-
export { c as n, a as r, l as t };
|