@declarion/react 0.54.0 → 0.56.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/{DraggableChildrenTable-CPoUY99R.js → DraggableChildrenTable-BV5sb8Uo.js} +32 -32
- package/dist-lib/{Grid--QAEby8k.js → Grid-DWgUPuZ3.js} +45 -45
- package/dist-lib/{JsonEditor-DoNmyrYd.js → JsonEditor-Dz1PQHC8.js} +2 -2
- package/dist-lib/{LayoutRenderer-BxZ7Nd9b.js → LayoutRenderer-C9AH9cXf.js} +716 -714
- package/dist-lib/{ListCardsBody-BPV4GPrv.js → ListCardsBody-DXcDg536.js} +29 -29
- package/dist-lib/{MarkdownRenderer-CIKuh_0i.js → MarkdownRenderer-CcSFc2N3.js} +1 -1
- package/dist-lib/{RefreshControl-DMLkZP3R.js → RefreshControl-CNtN8zSl.js} +41 -41
- package/dist-lib/{SmartDetailPage.impl-SnNu6Ug-.js → SmartDetailPage.impl-lskCd-WG.js} +492 -492
- package/dist-lib/{SmartListPage.impl-C73pR7Iw.js → SmartListPage.impl-CrGbdzyK.js} +744 -743
- package/dist-lib/{SmartRecordListPage.impl-rJjQZe1V.js → SmartRecordListPage.impl-Bkl9aZJ8.js} +129 -129
- package/dist-lib/{SortHeaderMenu-DQ_KrkWk.js → SortHeaderMenu-SYSAaqQJ.js} +1 -1
- package/dist-lib/{action-dispatch-DsuUS7ae.js → action-dispatch-CR4ajBtT.js} +179 -179
- package/dist-lib/api/auth.d.ts +1 -1
- package/dist-lib/api/batch.d.ts +1 -1
- package/dist-lib/api/data.d.ts +3 -3
- package/dist-lib/api/entities.d.ts +1 -1
- package/dist-lib/api/events.d.ts +13 -4
- package/dist-lib/api/params.d.ts +1 -1
- package/dist-lib/api/properties.d.ts +1 -1
- package/dist-lib/api/schema.d.ts +1 -1
- package/dist-lib/api/status.d.ts +1 -1
- package/dist-lib/{cardProjection-BadzqyeQ.js → cardProjection-CW5RIMko.js} +24 -24
- package/dist-lib/components/actions/ActionButton.d.ts +1 -1
- package/dist-lib/components/actions/ActionDialog.d.ts +1 -1
- package/dist-lib/components/actions/ActionRunner.d.ts +1 -1
- package/dist-lib/components/actions/ObjectActionBar.d.ts +3 -3
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +2 -2
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +2 -2
- package/dist-lib/components/actions/RowActionsKebab.d.ts +1 -1
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +1 -1
- package/dist-lib/components/agents/AgentPicker.d.ts +1 -1
- package/dist-lib/components/agents/transcript-runs.d.ts +1 -1
- package/dist-lib/components/chrome/AssociationTabs.d.ts +1 -1
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +1 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +1 -1
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +2 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +2 -2
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +3 -3
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +3 -3
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +3 -3
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +3 -3
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +1 -1
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +2 -2
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +2 -2
- package/dist-lib/components/detail-layout/blockMeta.d.ts +1 -1
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +2 -2
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +1 -1
- package/dist-lib/components/fields/RefCombobox.d.ts +2 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +1 -1
- package/dist-lib/components/fields/cells/registry.d.ts +2 -2
- package/dist-lib/components/fields/index.d.ts +3 -3
- package/dist-lib/components/file-widgets/helpers.d.ts +1 -1
- package/dist-lib/components/file-widgets/host.d.ts +3 -3
- package/dist-lib/components/file-widgets/payload.d.ts +2 -2
- package/dist-lib/components/file-widgets/types.d.ts +1 -1
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +1 -1
- package/dist-lib/components/filters/FilterChips.d.ts +1 -1
- package/dist-lib/components/filters/FilterDrawer.d.ts +3 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +2 -2
- package/dist-lib/components/layout/Layout.d.ts +3 -3
- package/dist-lib/components/layout/Rail.d.ts +2 -2
- package/dist-lib/components/layout/Sidebar.d.ts +1 -1
- package/dist-lib/components/layout/TabStrip.d.ts +1 -1
- package/dist-lib/components/layout/TenantChip.d.ts +1 -1
- package/dist-lib/components/layout/TopBar.d.ts +1 -1
- package/dist-lib/components/layout/tab-close.d.ts +1 -1
- package/dist-lib/components/list/InlineEditCell.d.ts +1 -1
- package/dist-lib/components/list/PeekFieldCell.d.ts +2 -2
- package/dist-lib/components/list/QuickPeek.d.ts +3 -3
- package/dist-lib/components/list/ViewSwitcher.d.ts +1 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -1
- package/dist-lib/components/pages/ExportMenu.d.ts +1 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +1 -1
- package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
- package/dist-lib/components/pages/exportRequest.d.ts +1 -1
- package/dist-lib/components/pages/list/ListCardRow.d.ts +3 -3
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +3 -3
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +3 -3
- package/dist-lib/components/pages/list/ListHeader.d.ts +3 -3
- package/dist-lib/components/pages/list/ListNoRows.d.ts +1 -1
- package/dist-lib/components/pages/list/ListTable.d.ts +2 -2
- package/dist-lib/components/pages/list/ListTableRow.d.ts +1 -1
- package/dist-lib/components/pages/list/ListToolbar.d.ts +7 -5
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +1 -1
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +1 -1
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +1 -1
- package/dist-lib/components/pages/list/cardProjection.d.ts +2 -2
- package/dist-lib/components/pages/list/columns.d.ts +3 -3
- package/dist-lib/components/pages/list/filter-meta.d.ts +2 -2
- package/dist-lib/components/pages/list/sortable-header.d.ts +1 -1
- package/dist-lib/components/pages/list/table-features.d.ts +1 -1
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +4 -4
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +1 -1
- package/dist-lib/components/pages/list/useListQuery.d.ts +4 -8
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +4 -4
- package/dist-lib/components/pages/list/useListSelection.d.ts +2 -2
- package/dist-lib/components/pages/list/useListSort.d.ts +1 -1
- package/dist-lib/components/pages/list/useListViews.d.ts +3 -3
- package/dist-lib/components/pages/list/useRowMenu.d.ts +3 -3
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +1 -1
- package/dist-lib/components/params/param-editors.d.ts +1 -1
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +1 -1
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +1 -1
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +2 -2
- package/dist-lib/embed/screen-location.d.ts +1 -1
- package/dist-lib/{field-classification-sMkkAEg9.js → field-classification-D6xQYn-h.js} +271 -400
- package/dist-lib/{format-count-B5SLlNOb.js → format-count-Dobmi-Ji.js} +238 -238
- package/dist-lib/hooks/useAgentConversation.d.ts +1 -1
- package/dist-lib/hooks/useAllEntityData.d.ts +1 -1
- package/dist-lib/hooks/useAssociatedData.d.ts +1 -1
- package/dist-lib/hooks/useBranding.d.ts +4 -4
- package/dist-lib/hooks/useBrandingChrome.d.ts +2 -2
- package/dist-lib/hooks/useChildrenData.d.ts +1 -1
- package/dist-lib/hooks/useCurrentScreen.d.ts +1 -1
- package/dist-lib/hooks/useCursorEntityData.d.ts +5 -5
- package/dist-lib/hooks/useEntity.d.ts +1 -1
- package/dist-lib/hooks/useEntityData.d.ts +8 -1
- package/dist-lib/hooks/useFilters.d.ts +1 -1
- package/dist-lib/hooks/useImpersonation.d.ts +1 -1
- package/dist-lib/hooks/useLiveObject.d.ts +2 -2
- package/dist-lib/hooks/useMutations.d.ts +3 -3
- package/dist-lib/hooks/useObject.d.ts +1 -1
- package/dist-lib/hooks/useParams.d.ts +2 -2
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +1 -0
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +1 -1
- package/dist-lib/hooks/useResponsiveMode.d.ts +1 -1
- package/dist-lib/hooks/useSSE.d.ts +1 -2
- package/dist-lib/hooks/useScreen.d.ts +1 -1
- package/dist-lib/hooks/useTimelineData.d.ts +2 -2
- package/dist-lib/hooks/useViews.d.ts +1 -1
- package/dist-lib/index.js +811 -811
- package/dist-lib/lib/action-dispatch.d.ts +2 -2
- package/dist-lib/lib/actions.d.ts +1 -1
- package/dist-lib/lib/brand-tokens.d.ts +1 -1
- package/dist-lib/lib/branding.d.ts +1 -1
- package/dist-lib/lib/child-config.d.ts +1 -1
- package/dist-lib/lib/children-validation.d.ts +2 -2
- package/dist-lib/lib/document-templates.d.ts +1 -1
- package/dist-lib/lib/evidence-verdict.d.ts +1 -1
- package/dist-lib/lib/mass-edit.d.ts +1 -1
- package/dist-lib/lib/messages.d.ts +2 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +22 -0
- package/dist-lib/lib/realtime-reconcile.d.ts +1 -10
- package/dist-lib/lib/realtime-resync.d.ts +23 -0
- package/dist-lib/lib/rich-text.d.ts +1 -1
- package/dist-lib/lib/schema-routing.d.ts +1 -1
- package/dist-lib/lib/screen-back.d.ts +1 -1
- package/dist-lib/lib/size-value.d.ts +1 -1
- package/dist-lib/lib/toast.d.ts +2 -2
- package/dist-lib/lib/ui-actions.d.ts +1 -1
- package/dist-lib/lib/variants.d.ts +1 -1
- package/dist-lib/{peekDraftStore-CbHFwz_F.js → peekDraftStore-5wQ7lq_V.js} +17 -17
- package/dist-lib/{registry-D0RhCnEL.js → registry-CjgUaF7C.js} +511 -511
- package/dist-lib/stores/auth.d.ts +1 -1
- package/dist-lib/stores/preferences.d.ts +1 -1
- package/dist-lib/stores/realtime.d.ts +86 -19
- package/dist-lib/testing.d.ts +4 -4
- package/dist-lib/testing.js +40 -40
- package/dist-lib/types/api.d.ts +1 -1
- package/dist-lib/types/schema.d.ts +2 -2
- package/dist-lib/{useCurrentScreen-DVTXCj_K.js → useCurrentScreen-CzwzQpoW.js} +2476 -1967
- package/dist-lib/useListQuery-D7Hr5WM1.js +96 -0
- package/dist-lib/{useProperties-BcIz-MyO.js → useProperties-CqtCzFCr.js} +25 -25
- package/dist-lib/{useTabSearchMirror-UYCsopxP.js → useTabSearchMirror-C39U85cg.js} +13 -13
- package/dist-lib/{value-CQzGOI0F.js → value-Bo8C8WMU.js} +4 -4
- package/package.json +10 -10
- package/dist-lib/useListQuery-C2nq58YV.js +0 -90
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { er as e, mr as t, nr as n, zr as r } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
2
|
import { t as i } from "./Check-DAfMbQIw.js";
|
|
3
|
-
import { f as a, m as o, p as s, r as c } from "./action-dispatch-
|
|
4
|
-
import { t as l } from "./cardProjection-
|
|
5
|
-
import { t as u } from "./SmartListPage.impl-
|
|
3
|
+
import { f as a, m as o, p as s, r as c } from "./action-dispatch-CR4ajBtT.js";
|
|
4
|
+
import { t as l } from "./cardProjection-CW5RIMko.js";
|
|
5
|
+
import { t as u } from "./SmartListPage.impl-CrGbdzyK.js";
|
|
6
6
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/pages/list/ListCardRow.tsx
|
|
8
8
|
function p(e, t, r) {
|
|
@@ -16,72 +16,72 @@ function p(e, t, r) {
|
|
|
16
16
|
}
|
|
17
17
|
return o(t, e, r);
|
|
18
18
|
}
|
|
19
|
-
function m(e,
|
|
19
|
+
function m(e, n, r) {
|
|
20
20
|
if (e.startsWith("$status.")) {
|
|
21
|
-
let
|
|
22
|
-
return Array.isArray(r) && r.some((e) => e.group_code ===
|
|
21
|
+
let t = e.slice(8), r = n.$statuses;
|
|
22
|
+
return Array.isArray(r) && r.some((e) => e.group_code === t);
|
|
23
23
|
}
|
|
24
24
|
if (e.startsWith("$property.")) {
|
|
25
|
-
let
|
|
26
|
-
return a?.value != null &&
|
|
25
|
+
let r = e.slice(10), i = n.$properties, a = Array.isArray(i) ? i.find((e) => e.property_code === r) : void 0;
|
|
26
|
+
return a?.value != null && t(a.value) !== "";
|
|
27
27
|
}
|
|
28
|
-
let i = a(
|
|
29
|
-
return i != null &&
|
|
28
|
+
let i = a(r, n, e);
|
|
29
|
+
return i != null && t(i) !== "";
|
|
30
30
|
}
|
|
31
|
-
function h(
|
|
31
|
+
function h(e, i, a) {
|
|
32
32
|
let { entity: o, entityCode: c, refs: l, locale: u, renderers: f } = a;
|
|
33
|
-
if (
|
|
34
|
-
let
|
|
33
|
+
if (e.startsWith("$status.")) {
|
|
34
|
+
let t = e.slice(8), a = o.status_groups?.[t], s = i.$statuses, c = Array.isArray(s) ? s.find((e) => e.group_code === t) : void 0;
|
|
35
35
|
if (!a || !c) return /* @__PURE__ */ d("span", {
|
|
36
36
|
style: { color: "var(--text-3)" },
|
|
37
37
|
children: "-"
|
|
38
38
|
});
|
|
39
39
|
let l = a.statuses.find((e) => e.code === c.status_code);
|
|
40
|
-
return /* @__PURE__ */ d(
|
|
40
|
+
return /* @__PURE__ */ d(r, {
|
|
41
41
|
tone: l?.color ?? "slate",
|
|
42
42
|
size: "xs",
|
|
43
43
|
children: n(l?.name) || c.status_code
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
if (
|
|
47
|
-
let
|
|
46
|
+
if (e.startsWith("$property.")) {
|
|
47
|
+
let n = e.slice(10), r = i.$properties, a = Array.isArray(r) ? r.find((e) => e.property_code === n) : void 0;
|
|
48
48
|
return !a || a.value == null ? /* @__PURE__ */ d("span", {
|
|
49
49
|
style: { color: "var(--text-3)" },
|
|
50
50
|
children: "-"
|
|
51
|
-
}) : /* @__PURE__ */ d("span", { children:
|
|
51
|
+
}) : /* @__PURE__ */ d("span", { children: t(a.value) });
|
|
52
52
|
}
|
|
53
|
-
if (o.files?.get(
|
|
53
|
+
if (o.files?.get(e)) return s({
|
|
54
54
|
entity: o,
|
|
55
55
|
entityCode: c,
|
|
56
|
-
fieldName:
|
|
56
|
+
fieldName: e,
|
|
57
57
|
record: i,
|
|
58
58
|
mode: "display",
|
|
59
59
|
surface: "list",
|
|
60
60
|
refs: l,
|
|
61
61
|
locale: u
|
|
62
62
|
});
|
|
63
|
-
let p = f.get(
|
|
63
|
+
let p = f.get(e);
|
|
64
64
|
if (!p) {
|
|
65
|
-
let
|
|
66
|
-
return
|
|
65
|
+
let n = i[e];
|
|
66
|
+
return t(n) || /* @__PURE__ */ d("span", {
|
|
67
67
|
style: { color: "var(--text-3)" },
|
|
68
68
|
children: "-"
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
return p(i[
|
|
71
|
+
return p(i[e], i);
|
|
72
72
|
}
|
|
73
|
-
function g({ row:
|
|
73
|
+
function g({ row: t, rowIndex: n, entity: r, screen: a, entityCode: o, entities: s, savedViewColumns: g, refs: _, locale: v, renderers: y, rowActions: b, tabNavigate: x, interaction: S, hasSoftDelete: C, zebra: w, hasBatchActions: T, hasDetailTarget: E, rowKey: D, measureElement: O }) {
|
|
74
74
|
let k = {
|
|
75
75
|
entity: r,
|
|
76
76
|
entityCode: o,
|
|
77
77
|
refs: _,
|
|
78
78
|
locale: v,
|
|
79
79
|
renderers: y
|
|
80
|
-
}, A =
|
|
80
|
+
}, A = t.original, j = c(r, a, A), M = l({
|
|
81
81
|
entity: r,
|
|
82
82
|
screen: j,
|
|
83
83
|
savedViewColumns: g
|
|
84
|
-
}), N = C && A[r.soft_delete] != null, P =
|
|
84
|
+
}), N = C && A[r.soft_delete] != null, P = t.getIsSelected(), F = w && n % 2 == 1, I = E || S.peekAllowed, L = (M.titleUsesDisplay ? e(A, r) ?? (M.titleField ? null : D(A)) : null) || (M.titleField ? h(M.titleField, A, k) : D(A)), R = M.badgeFields.filter((e) => !M.hideEmptyFields || m(e, A, r)), z = M.bodyFields.filter((e) => !M.hideEmptyFields || m(e, A, r)), B = M.metaFields.filter((e) => !M.hideEmptyFields || m(e, A, r));
|
|
85
85
|
return /* @__PURE__ */ d("div", {
|
|
86
86
|
"data-index": n,
|
|
87
87
|
"data-testid": "list-card",
|
|
@@ -135,7 +135,7 @@ function g({ row: e, rowIndex: n, entity: r, screen: a, entityCode: o, entities:
|
|
|
135
135
|
style: { paddingTop: 2 },
|
|
136
136
|
children: /* @__PURE__ */ d(i, {
|
|
137
137
|
checked: P,
|
|
138
|
-
onChange: () =>
|
|
138
|
+
onChange: () => t.toggleSelected()
|
|
139
139
|
})
|
|
140
140
|
}),
|
|
141
141
|
/* @__PURE__ */ f("div", {
|
|
@@ -253,7 +253,7 @@ function g({ row: e, rowIndex: n, entity: r, screen: a, entityCode: o, entities:
|
|
|
253
253
|
})
|
|
254
254
|
]
|
|
255
255
|
})
|
|
256
|
-
},
|
|
256
|
+
}, t.id);
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/pages/list/ListCardsBody.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tt as e, ft as t } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import i, { defaultUrlTransform as a } from "react-markdown";
|
|
4
4
|
import o from "remark-breaks";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as e } from "./DynamicIcon-DW5krHuX.js";
|
|
2
|
-
import {
|
|
3
|
-
import { D as
|
|
2
|
+
import { Br as t, Gt as n, Mr as r, Nr as i, Or as a, Vt as o, zr as s } from "./useCurrentScreen-CzwzQpoW.js";
|
|
3
|
+
import { D as c, b as l, c as u } from "./field-classification-D6xQYn-h.js";
|
|
4
4
|
import { useCallback as d, useEffect as f, useId as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
5
5
|
import { useLocation as _ } from "react-router";
|
|
6
6
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -104,7 +104,7 @@ function D(e, t) {
|
|
|
104
104
|
onFocus: () => _(!0),
|
|
105
105
|
onBlur: v,
|
|
106
106
|
onPointerUp: (e) => {
|
|
107
|
-
e.pointerType
|
|
107
|
+
e.pointerType !== "mouse" && t && (u(), r((e) => !e));
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
describedBy: n && t ? l : void 0,
|
|
@@ -171,7 +171,7 @@ function I(e) {
|
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region src/hooks/useBranding.ts
|
|
173
173
|
function L() {
|
|
174
|
-
let e =
|
|
174
|
+
let e = n(A);
|
|
175
175
|
return {
|
|
176
176
|
branding: N(e.value),
|
|
177
177
|
isLoading: e.loading
|
|
@@ -186,34 +186,34 @@ function z() {
|
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region src/hooks/useBrandingChrome.ts
|
|
188
188
|
function B() {
|
|
189
|
-
let e =
|
|
189
|
+
let e = o(), t = z();
|
|
190
190
|
return (e.enabled ? t?.embed?.viewport : t?.full?.viewport) ?? "auto";
|
|
191
191
|
}
|
|
192
192
|
function V(e, t) {
|
|
193
193
|
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : t;
|
|
194
194
|
}
|
|
195
195
|
function H() {
|
|
196
|
-
let e =
|
|
196
|
+
let e = o(), t = z(), n = e.enabled ? t?.embed?.breakpoints : t?.full?.breakpoints, r = n?.phone_max, i = n?.tablet_max, a = n?.landscape_phone_max_height;
|
|
197
197
|
return m(() => U({
|
|
198
198
|
phone_max: r,
|
|
199
|
-
tablet_max:
|
|
200
|
-
landscape_phone_max_height:
|
|
199
|
+
tablet_max: i,
|
|
200
|
+
landscape_phone_max_height: a
|
|
201
201
|
}), [
|
|
202
202
|
r,
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
i,
|
|
204
|
+
a
|
|
205
205
|
]);
|
|
206
206
|
}
|
|
207
207
|
function U(e) {
|
|
208
|
-
let t = V(e?.phone_max,
|
|
208
|
+
let t = V(e?.phone_max, i.phoneMax), n = V(e?.tablet_max, i.tabletMax), r = t < n;
|
|
209
209
|
return r || console.error(`branding.chrome breakpoints: phone_max (${t}) must be below tablet_max (${n}), or no viewport can ever resolve to the tablet class. Both bounds fall back to the SDK defaults.`), {
|
|
210
|
-
phoneMax: r ? t :
|
|
211
|
-
tabletMax: r ? n :
|
|
212
|
-
landscapePhoneMaxHeight: V(e?.landscape_phone_max_height,
|
|
210
|
+
phoneMax: r ? t : i.phoneMax,
|
|
211
|
+
tabletMax: r ? n : i.tabletMax,
|
|
212
|
+
landscapePhoneMaxHeight: V(e?.landscape_phone_max_height, i.landscapePhoneMaxHeight)
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
function W(e) {
|
|
216
|
-
let t =
|
|
216
|
+
let t = o(), n = z();
|
|
217
217
|
return m(() => {
|
|
218
218
|
let r = { ...t.enabled ? n?.embed?.surfaces?.[e] : n?.full?.surfaces?.[e] };
|
|
219
219
|
return {
|
|
@@ -272,7 +272,7 @@ function Q(e, t, n, r) {
|
|
|
272
272
|
function te(e = K) {
|
|
273
273
|
let t = _(), n = h(null);
|
|
274
274
|
if (n.current === null) {
|
|
275
|
-
let r = l(t), i =
|
|
275
|
+
let r = l(t), i = c.getState().read(r, e);
|
|
276
276
|
n.current = i && Number.isFinite(i.offset) ? Math.max(0, i.offset) : 0;
|
|
277
277
|
}
|
|
278
278
|
return n.current;
|
|
@@ -295,19 +295,19 @@ function ne(e) {
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
function re(e) {
|
|
298
|
-
let { virtualizer: t, scrollElementRef: n, rowKeys: r } = e, i = e.stateKey ?? "scroll", a = e.enabled ?? !0, o = _(),
|
|
298
|
+
let { virtualizer: t, scrollElementRef: n, rowKeys: r } = e, i = e.stateKey ?? "scroll", a = e.enabled ?? !0, o = _(), s = l(o), u = h(t);
|
|
299
299
|
u.current = t;
|
|
300
300
|
let d = h(r);
|
|
301
301
|
d.current = r;
|
|
302
302
|
let p = h(null);
|
|
303
303
|
f(() => {
|
|
304
|
-
p.current !==
|
|
305
|
-
}, [
|
|
304
|
+
p.current !== s && (p.current = null);
|
|
305
|
+
}, [s]), f(() => {
|
|
306
306
|
if (!a) return;
|
|
307
307
|
let e = u.current;
|
|
308
308
|
if (!e || r.length === 0) return;
|
|
309
|
-
let t =
|
|
310
|
-
if (p.current =
|
|
309
|
+
let t = c.getState().read(s, i), n = p.current !== s;
|
|
310
|
+
if (p.current = s, !t) {
|
|
311
311
|
n && e.scrollToOffset(0, {
|
|
312
312
|
align: "start",
|
|
313
313
|
behavior: "auto"
|
|
@@ -328,10 +328,10 @@ function re(e) {
|
|
|
328
328
|
};
|
|
329
329
|
}, [
|
|
330
330
|
a,
|
|
331
|
-
|
|
331
|
+
s,
|
|
332
332
|
r,
|
|
333
333
|
i
|
|
334
|
-
]), $(n, a,
|
|
334
|
+
]), $(n, a, s, i, (e) => {
|
|
335
335
|
let t = u.current;
|
|
336
336
|
if (!t) return null;
|
|
337
337
|
let n = e.scrollTop, r = n > 0 ? n : t.scrollOffset ?? 0;
|
|
@@ -342,19 +342,19 @@ function $(e, t, n, r, i) {
|
|
|
342
342
|
let a = h(i);
|
|
343
343
|
a.current = i, f(() => {
|
|
344
344
|
if (!t) return;
|
|
345
|
-
let i = 0, o = Y,
|
|
345
|
+
let i = 0, o = Y, s = null, l = null, u = (e) => {
|
|
346
346
|
let t = a.current(e);
|
|
347
|
-
t &&
|
|
347
|
+
t && c.getState().set(n, r, t);
|
|
348
348
|
}, d = () => l?.trigger(), f = () => {
|
|
349
349
|
let t = e.current;
|
|
350
350
|
if (!t) {
|
|
351
351
|
o-- > 0 && (i = requestAnimationFrame(f));
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
|
-
|
|
354
|
+
s = t, l = ne(() => u(t)), t.addEventListener("scroll", d, { passive: !0 });
|
|
355
355
|
};
|
|
356
356
|
return f(), () => {
|
|
357
|
-
i && cancelAnimationFrame(i),
|
|
357
|
+
i && cancelAnimationFrame(i), s && s.removeEventListener("scroll", d), l?.flush();
|
|
358
358
|
};
|
|
359
359
|
}, [
|
|
360
360
|
t,
|
|
@@ -367,17 +367,17 @@ function ie(e) {
|
|
|
367
367
|
let { scrollElementRef: t } = e, n = e.stateKey ?? "scroll", r = e.enabled ?? !0, i = _(), a = l(i), o = h(null);
|
|
368
368
|
f(() => {
|
|
369
369
|
if (!r || o.current === a) return;
|
|
370
|
-
let e = 0, i = Y,
|
|
370
|
+
let e = 0, i = Y, s = () => {
|
|
371
371
|
let r = t.current;
|
|
372
372
|
if (!r) {
|
|
373
|
-
i-- > 0 && (e = requestAnimationFrame(
|
|
373
|
+
i-- > 0 && (e = requestAnimationFrame(s));
|
|
374
374
|
return;
|
|
375
375
|
}
|
|
376
376
|
o.current = a;
|
|
377
|
-
let l =
|
|
377
|
+
let l = c.getState().read(a, n);
|
|
378
378
|
l && (r.scrollTop = Number.isFinite(l.offset) ? Math.max(0, l.offset) : 0);
|
|
379
379
|
};
|
|
380
|
-
return
|
|
380
|
+
return s(), () => {
|
|
381
381
|
e && cancelAnimationFrame(e);
|
|
382
382
|
};
|
|
383
383
|
}, [
|
|
@@ -393,30 +393,30 @@ function ie(e) {
|
|
|
393
393
|
}
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region src/components/shared/RefreshControl.tsx
|
|
396
|
-
function ae({ liveObject:
|
|
397
|
-
let { isPhone:
|
|
396
|
+
function ae({ liveObject: n, realtime: i = !0 }) {
|
|
397
|
+
let { isPhone: o } = r(), { refreshing: c, refresh: l } = u(n.refetch), d = n.isLive ? o ? void 0 : "Live" : "Updates paused";
|
|
398
398
|
return /* @__PURE__ */ b("span", {
|
|
399
399
|
style: {
|
|
400
400
|
display: "inline-flex",
|
|
401
401
|
alignItems: "center",
|
|
402
402
|
gap: 8
|
|
403
403
|
},
|
|
404
|
-
children: [/* @__PURE__ */ y(
|
|
404
|
+
children: [/* @__PURE__ */ y(t, {
|
|
405
405
|
icon: c ? /* @__PURE__ */ y("span", {
|
|
406
406
|
"data-testid": "refresh-spinner",
|
|
407
407
|
style: { display: "inline-flex" },
|
|
408
|
-
children: /* @__PURE__ */ y(
|
|
408
|
+
children: /* @__PURE__ */ y(a, { size: 14 })
|
|
409
409
|
}) : /* @__PURE__ */ y(e.refresh, { size: 14 }),
|
|
410
410
|
title: "Refresh",
|
|
411
|
-
disabled:
|
|
411
|
+
disabled: n.isLoading || c,
|
|
412
412
|
onClick: l
|
|
413
|
-
}),
|
|
413
|
+
}), i && /* @__PURE__ */ y("span", {
|
|
414
414
|
"data-testid": "live-indicator",
|
|
415
415
|
role: "status",
|
|
416
|
-
"aria-label":
|
|
417
|
-
title:
|
|
418
|
-
children: /* @__PURE__ */ y(
|
|
419
|
-
tone:
|
|
416
|
+
"aria-label": n.isLive ? "Live" : "Updates paused",
|
|
417
|
+
title: n.isLive ? "This view updates automatically in realtime." : "Realtime updates are paused. Refresh manually to load the latest data.",
|
|
418
|
+
children: /* @__PURE__ */ y(s, {
|
|
419
|
+
tone: n.isLive ? "emerald" : "amber",
|
|
420
420
|
size: "xs",
|
|
421
421
|
dot: !0,
|
|
422
422
|
children: d
|