@declarion/react 0.87.0 → 0.88.0
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-lib/app.js +28 -28
- package/dist-lib/components/actions/ActionButton.js +86 -85
- package/dist-lib/components/actions/ActionResultDialog.impl.js +47 -47
- package/dist-lib/components/actions/ActionRunner.js +47 -47
- package/dist-lib/components/actions/ObjectActionBar.js +9 -9
- package/dist-lib/components/actions/RowActionsKebab.js +19 -19
- package/dist-lib/components/agents/AgentChatPanel.impl.js +53 -53
- package/dist-lib/components/chrome/AssociationTabs.js +21 -21
- package/dist-lib/components/chrome/RecordHeader.js +33 -40
- package/dist-lib/components/detail-layout/AssociatedBlock.js +387 -381
- package/dist-lib/components/detail-layout/ChildrenBlock.js +12 -13
- package/dist-lib/components/detail-layout/ChildrenTimeline.js +198 -198
- package/dist-lib/components/detail-layout/DraggableChildrenTable.js +114 -114
- package/dist-lib/components/detail-layout/EditableChildrenTable.js +160 -160
- package/dist-lib/components/detail-layout/EvidenceBlock.js +20 -21
- package/dist-lib/components/detail-layout/PropertiesBlock.js +45 -39
- package/dist-lib/components/detail-layout/QuickAddForm.js +9 -9
- package/dist-lib/components/detail-layout/TimelineComposer.js +87 -89
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +100 -99
- package/dist-lib/components/fields/FileReferenceField.js +9 -9
- package/dist-lib/components/fields/StructureField.js +57 -47
- package/dist-lib/components/fields/TimestampField.js +59 -54
- package/dist-lib/components/fields/cells/factories/money.js +14 -23
- package/dist-lib/components/fields/cells/factories/nextRun.js +1 -1
- package/dist-lib/components/fields/cells/factories/text.js +18 -3
- package/dist-lib/components/fields/cells/factories/timestamp.js +24 -12
- package/dist-lib/components/file-widgets/DocumentCard.js +108 -106
- package/dist-lib/components/layout/Layout.js +306 -361
- package/dist-lib/components/layout/Rail.js +42 -41
- package/dist-lib/components/layout/Sidebar.js +132 -117
- package/dist-lib/components/layout/TabStrip.js +116 -115
- package/dist-lib/components/layout/TenantChip.js +47 -54
- package/dist-lib/components/layout/TopBar.js +108 -105
- package/dist-lib/components/list/InlineEditCell.js +23 -23
- package/dist-lib/components/list/QuickPeek.js +65 -66
- package/dist-lib/components/pages/DocumentsMenu.js +42 -42
- package/dist-lib/components/pages/ExportMenu.js +25 -25
- package/dist-lib/components/pages/RecordDocumentsPanel.js +35 -35
- package/dist-lib/components/pages/RecordNotesPanel.js +94 -93
- package/dist-lib/components/pages/SmartDetailPage.impl.js +421 -417
- package/dist-lib/components/pages/SmartListPage.impl.js +293 -295
- package/dist-lib/components/pages/SmartRecordListPage.impl.js +310 -310
- package/dist-lib/components/pages/auth/AuthShell.js +73 -73
- package/dist-lib/components/pages/auth/SignIn.js +32 -32
- package/dist-lib/components/pages/auth/SignUp.impl.js +3 -3
- package/dist-lib/components/pages/auth/SignUpCode.js +9 -9
- package/dist-lib/components/pages/list/ListFloatbar.js +12 -12
- package/dist-lib/components/pages/list/ListHeader.js +19 -19
- package/dist-lib/components/pages/list/ListNoRows.js +15 -15
- package/dist-lib/components/pages/list/ListToolbar.js +145 -145
- package/dist-lib/components/pages/list/useActiveView.js +14 -5
- package/dist-lib/components/pages/list/useListQuery.js +121 -81
- package/dist-lib/components/pages/list/useListRowInteraction.js +70 -70
- package/dist-lib/components/pages/list/useRowMenu.js +7 -7
- package/dist-lib/components/pages/profile/Preferences.impl.js +81 -78
- package/dist-lib/components/pages/profile/Profile.impl.js +191 -189
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +166 -158
- package/dist-lib/components/shared/ChangePasswordDialog.impl.js +23 -23
- package/dist-lib/components/shared/MarkdownRenderer.js +9 -9
- package/dist-lib/hooks/useAuth.js +11 -11
- package/dist-lib/hooks/useBranding.js +4 -4
- package/dist-lib/hooks/useDisplayTimeZone.js +8 -0
- package/dist-lib/hooks/useFollowAgentOpen.js +24 -24
- package/dist-lib/hooks/useImpersonation.js +6 -6
- package/dist-lib/hooks/useMutations.js +23 -23
- package/dist-lib/hooks/useObjectStatus.js +5 -5
- package/dist-lib/hooks/useParams.js +59 -51
- package/dist-lib/hooks/useProperties.js +8 -8
- package/dist-lib/hooks/useRowTenant.js +18 -6
- package/dist-lib/hooks/useText.js +9 -7
- package/dist-lib/hooks/useUiPreferences.js +71 -0
- package/dist-lib/index.d.ts +22 -6
- package/dist-lib/index.js +127 -126
- package/dist-lib/lib/actions.js +116 -84
- package/dist-lib/lib/child-config.js +10 -1
- package/dist-lib/lib/format-count.js +16 -1
- package/dist-lib/lib/language.js +23 -21
- package/dist-lib/lib/money-text.js +29 -0
- package/dist-lib/lib/profile.js +4 -0
- package/dist-lib/lib/role-label.js +8 -0
- package/dist-lib/lib/schema-routing.js +34 -14
- package/dist-lib/lib/shortcut.js +10 -0
- package/dist-lib/lib/timestamp.js +93 -31
- package/dist-lib/stores/auth.js +9 -8
- package/dist-lib/stores/preferences.js +56 -17
- package/dist-lib/testing.d.ts +1 -1
- package/dist-lib/testing.js +25 -28
- package/dist-lib/types/schema.js +33 -27
- package/dist-lib/{useResponsiveMode-D3SKz5z4.d.ts → useResponsiveMode-9_eJT18k.d.ts} +5 -5
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { findChildRelation as c, resolveChildConfig as l } from "../../lib/child-config.js";
|
|
1
|
+
import { useText as e } from "../../hooks/useText.js";
|
|
2
|
+
import { SectionCard as t } from "../primitives/SectionCard.js";
|
|
3
|
+
import { useResponsiveMode as n } from "../../hooks/useResponsiveMode.js";
|
|
4
|
+
import { DynamicIcon as r } from "../shared/DynamicIcon.js";
|
|
5
|
+
import { TableSkeleton as i } from "../shared/LoadingSkeleton.js";
|
|
6
|
+
import { resolveBlockIcon as a, resolveBlockLabel as o } from "./blockMeta.js";
|
|
7
|
+
import { editsChildrenInline as s, findChildRelation as c, resolveChildConfig as l } from "../../lib/child-config.js";
|
|
9
8
|
import { ChildrenTable as u } from "./ChildrenTable.js";
|
|
10
9
|
import { ChildrenList as d } from "./ChildrenList.js";
|
|
11
10
|
import { ChildrenCards as f } from "./ChildrenCards.js";
|
|
@@ -16,7 +15,7 @@ import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
|
16
15
|
//#region src/components/detail-layout/ChildrenBlock.tsx
|
|
17
16
|
var y = g(() => import("./DraggableChildrenTable.js").then((e) => ({ default: e.DraggableChildrenTable })));
|
|
18
17
|
function b({ node: g, ctx: b }) {
|
|
19
|
-
let x =
|
|
18
|
+
let x = e(), S = e("errors"), C = n(), w = g.children;
|
|
20
19
|
if (!w) return null;
|
|
21
20
|
let T = C.isPhone && b.relatedRecordsPresentation === "table";
|
|
22
21
|
if (b.isNew && b.mode !== "edit") return null;
|
|
@@ -31,18 +30,18 @@ function b({ node: g, ctx: b }) {
|
|
|
31
30
|
});
|
|
32
31
|
let D = b.schema.entities[E.entity];
|
|
33
32
|
if (!D) return null;
|
|
34
|
-
let O = l(E, D, g), k =
|
|
33
|
+
let O = l(E, D, g), k = o(g, b, x), A = a(g, b), j = (e) => O.mode === "timeline" || b.withinCard ? e : /* @__PURE__ */ _(t, {
|
|
35
34
|
title: k,
|
|
36
|
-
icon: A ? /* @__PURE__ */ _(
|
|
35
|
+
icon: A ? /* @__PURE__ */ _(r, {
|
|
37
36
|
name: A,
|
|
38
37
|
size: 14
|
|
39
38
|
}) : void 0,
|
|
40
39
|
children: e
|
|
41
40
|
});
|
|
42
|
-
if (b.mode === "edit" && O
|
|
41
|
+
if (b.mode === "edit" && s(O, D) && b.pendingChildren !== void 0 && b.onChildrenChange) {
|
|
43
42
|
let e = b.pendingChildren[w] ?? [], t = b.childValidationErrors?.[w], n = O.position_field ? C.isPhone && !T ? m : y : m;
|
|
44
43
|
return j(/* @__PURE__ */ _(h, {
|
|
45
|
-
fallback: /* @__PURE__ */ _(
|
|
44
|
+
fallback: /* @__PURE__ */ _(i, {}),
|
|
46
45
|
children: /* @__PURE__ */ _(n, {
|
|
47
46
|
config: O,
|
|
48
47
|
childEntity: D,
|