@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,5 +1,5 @@
|
|
|
1
|
-
import type { AreaDef } from "../../types/schema";
|
|
2
|
-
import type { BrandingIdentity } from "../../types/api";
|
|
1
|
+
import type { AreaDef } from "../../types/schema.d.ts";
|
|
2
|
+
import type { BrandingIdentity } from "../../types/api.d.ts";
|
|
3
3
|
export interface RailAreaItem {
|
|
4
4
|
id: string;
|
|
5
5
|
icon: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SelectOption } from "../primitives";
|
|
1
|
+
import { type SelectOption } from "../primitives/index.d.ts";
|
|
2
2
|
export type InlineEditTrigger = "dblclick" | "enter" | "always";
|
|
3
3
|
export type InlineEditKind = "text" | "select" | "bool";
|
|
4
4
|
export interface InlineEditCellProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Refs } from "../fields";
|
|
2
|
-
import type { EntityField } from "../../types/schema";
|
|
1
|
+
import { type Refs } from "../fields/index.d.ts";
|
|
2
|
+
import type { EntityField } from "../../types/schema.d.ts";
|
|
3
3
|
export interface PeekFieldCellProps {
|
|
4
4
|
field: EntityField;
|
|
5
5
|
fieldName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type Action, type Entity, type EntityField, type Screen } from "../../types/schema";
|
|
3
|
-
import type { Refs } from "../fields";
|
|
4
|
-
import { type ResolvedActionLayoutNode } from "../../lib/actions";
|
|
2
|
+
import { type Action, type Entity, type EntityField, type Screen } from "../../types/schema.d.ts";
|
|
3
|
+
import type { Refs } from "../fields/index.d.ts";
|
|
4
|
+
import { type ResolvedActionLayoutNode } from "../../lib/actions.d.ts";
|
|
5
5
|
export interface QuickPeekRegularFieldSpec {
|
|
6
6
|
key: string;
|
|
7
7
|
label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilterNode } from "../../lib/filters";
|
|
1
|
+
import type { FilterNode } from "../../lib/filters.d.ts";
|
|
2
2
|
/** ExportQuery mirrors the Go ExportQuery struct (server/handlers/data_export.go).
|
|
3
3
|
* Field order matches; semantics match parseListParams 1:1. */
|
|
4
4
|
export interface ExportQuery {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ListRow } from "./table-features";
|
|
2
|
-
import type { ListResponse, RowData } from "../../../types/api";
|
|
3
|
-
import { type Action, type Entity, type Screen } from "../../../types/schema";
|
|
4
|
-
import type { resolveCellRenderer } from "../../fields/cells/registry";
|
|
2
|
+
import type { ListResponse, RowData } from "../../../types/api.d.ts";
|
|
3
|
+
import { type Action, type Entity, type Screen } from "../../../types/schema.d.ts";
|
|
4
|
+
import type { resolveCellRenderer } from "../../fields/cells/registry.d.ts";
|
|
5
5
|
import type { RowInteraction } from "./useListRowInteraction";
|
|
6
6
|
type CellRenderer = ReturnType<typeof resolveCellRenderer>;
|
|
7
7
|
interface ListCardRowProps {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ListRow } from "./table-features";
|
|
2
2
|
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
3
|
-
import type { ListResponse, RowData } from "../../../types/api";
|
|
4
|
-
import type { resolveCellRenderer } from "../../fields/cells/registry";
|
|
5
|
-
import type { Action, Entity, Screen } from "../../../types/schema";
|
|
3
|
+
import type { ListResponse, RowData } from "../../../types/api.d.ts";
|
|
4
|
+
import type { resolveCellRenderer } from "../../fields/cells/registry.d.ts";
|
|
5
|
+
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
6
6
|
import type { RowInteraction } from "./useListRowInteraction";
|
|
7
7
|
interface ListCardsBodyProps {
|
|
8
8
|
rows: ListRow[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ResolvedActionLayoutNode } from "../../../lib/actions";
|
|
2
|
-
import { type WidgetContext } from "../../actions/ResponsiveActionBar";
|
|
3
|
-
import type { Action, Entity, Screen } from "../../../types/schema";
|
|
1
|
+
import { type ResolvedActionLayoutNode } from "../../../lib/actions.d.ts";
|
|
2
|
+
import { type WidgetContext } from "../../actions/ResponsiveActionBar.d.ts";
|
|
3
|
+
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
4
4
|
export interface ListFloatbarProps {
|
|
5
5
|
selectedIds: string[];
|
|
6
6
|
/** Actions whose visibility includes `list_floatbar` - the floatbar slot.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ResolvedActionLayoutNode } from "../../../lib/actions";
|
|
2
|
-
import { type WidgetContext } from "../../actions/ResponsiveActionBar";
|
|
3
|
-
import type { Action } from "../../../types/schema";
|
|
1
|
+
import { type ResolvedActionLayoutNode } from "../../../lib/actions.d.ts";
|
|
2
|
+
import { type WidgetContext } from "../../actions/ResponsiveActionBar.d.ts";
|
|
3
|
+
import type { Action } from "../../../types/schema.d.ts";
|
|
4
4
|
export interface ListHeaderProps {
|
|
5
5
|
title: string;
|
|
6
6
|
/** Localized explanation of this list, surfaced behind a small info
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import { type Action, type Entity, type Screen } from "../../../types/schema";
|
|
2
|
+
import { type Action, type Entity, type Screen } from "../../../types/schema.d.ts";
|
|
3
3
|
/** The sentence a failed load shows: the server's own, then the two members
|
|
4
4
|
* saying WHICH value it is about - without them the reader is told something
|
|
5
5
|
* went wrong and not what to change. Never the machine code, which is already
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type { ListColumnDef, ListRow, ListTableInstance } from "./table-features";
|
|
3
3
|
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
4
|
-
import { type SortCol, type SortNulls } from "../../../lib/sort";
|
|
5
|
-
import type { Entity } from "../../../types/schema";
|
|
4
|
+
import { type SortCol, type SortNulls } from "../../../lib/sort.d.ts";
|
|
5
|
+
import type { Entity } from "../../../types/schema.d.ts";
|
|
6
6
|
import type { useHeaderReorder } from "./useHeaderReorder";
|
|
7
7
|
interface ListTableProps {
|
|
8
8
|
table: ListTableInstance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ListRow } from "./table-features";
|
|
2
|
-
import type { Entity } from "../../../types/schema";
|
|
2
|
+
import type { Entity } from "../../../types/schema.d.ts";
|
|
3
3
|
import type { RowInteraction } from "./useListRowInteraction";
|
|
4
4
|
interface ListTableRowProps {
|
|
5
5
|
row: ListRow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilterNode } from "../../../lib/filters";
|
|
2
|
-
import { type Entity, type Schema, type Screen } from "../../../types/schema";
|
|
1
|
+
import type { FilterNode } from "../../../lib/filters.d.ts";
|
|
2
|
+
import { type Entity, type Schema, type Screen } from "../../../types/schema.d.ts";
|
|
3
3
|
import type { ListColumnLayout } from "./useListColumnLayout";
|
|
4
4
|
import type { ListQueryResult } from "./useListQuery";
|
|
5
5
|
import type { ListSelection } from "./useListSelection";
|
|
@@ -35,9 +35,11 @@ interface ListToolbarProps {
|
|
|
35
35
|
includeDeleted: boolean;
|
|
36
36
|
canViewDeleted: boolean;
|
|
37
37
|
onToggleDeleted: () => void;
|
|
38
|
-
/** The entity
|
|
39
|
-
* the
|
|
38
|
+
/** The entity is declared `realtime: true`, so the refresh control carries
|
|
39
|
+
* the indicator in every state. */
|
|
40
|
+
realtime: boolean;
|
|
41
|
+
/** The screen is current - useScreenIsLive. */
|
|
40
42
|
isLive: boolean;
|
|
41
43
|
}
|
|
42
|
-
export declare function ListToolbar({ screen, entity, entityCode, schema, screenCode, screenName, locale, isPhone, isCardsPresentation, sort, columns, views, query, selection, filters, searchValue, onSearchChange, onSaveView, page, perPage, includeDeleted, canViewDeleted, onToggleDeleted, isLive, }: ListToolbarProps): import("react").JSX.Element;
|
|
44
|
+
export declare function ListToolbar({ screen, entity, entityCode, schema, screenCode, screenName, locale, isPhone, isCardsPresentation, sort, columns, views, query, selection, filters, searchValue, onSearchChange, onSaveView, page, perPage, includeDeleted, canViewDeleted, onToggleDeleted, realtime, isLive, }: ListToolbarProps): import("react").JSX.Element;
|
|
43
45
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SortNulls } from "../../../lib/sort";
|
|
1
|
+
import type { SortNulls } from "../../../lib/sort.d.ts";
|
|
2
2
|
export declare function SortHeaderMenu({ field, activeDir, activeNulls, inMultiSort, canAppend, onApply, onAppend, onClearColumn, onClearAll, }: {
|
|
3
3
|
field: string;
|
|
4
4
|
activeDir: "asc" | "desc" | false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SortCol } from "../../../lib/sort";
|
|
2
|
-
import { type Action, type Entity, type Screen, type Schema } from "../../../types/schema";
|
|
1
|
+
import { type SortCol } from "../../../lib/sort.d.ts";
|
|
2
|
+
import { type Action, type Entity, type Screen, type Schema } from "../../../types/schema.d.ts";
|
|
3
3
|
export type ListPresentationMode = "table" | "cards";
|
|
4
4
|
export type CardSource = "screen_card" | "entity_card" | "saved_view_columns" | "screen_default_columns" | "screen_columns" | "entity_inference";
|
|
5
5
|
export type CardBucket = "title" | "subtitle" | "badges" | "body" | "meta";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import type { ListColumnDef } from "./table-features";
|
|
3
|
-
import { type Refs } from "../../fields/cells/registry";
|
|
4
|
-
import type { Action, Entity, Screen } from "../../../types/schema";
|
|
5
|
-
import type { RowData } from "../../../types/api";
|
|
3
|
+
import { type Refs } from "../../fields/cells/registry.d.ts";
|
|
4
|
+
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
5
|
+
import type { RowData } from "../../../types/api.d.ts";
|
|
6
6
|
type SchemaMaps = {
|
|
7
7
|
entities?: Record<string, Entity>;
|
|
8
8
|
screens?: Record<string, Screen>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Entity, Screen, ScreenFilterSpecialValues } from "../../../types/schema";
|
|
2
|
-
import type { FilterFieldMeta } from "../../filters/FilterDrawer";
|
|
1
|
+
import type { Entity, Screen, ScreenFilterSpecialValues } from "../../../types/schema.d.ts";
|
|
2
|
+
import type { FilterFieldMeta } from "../../filters/FilterDrawer.d.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Build FilterFieldMeta array from screen + entity for the FilterDrawer.
|
|
5
5
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Entity } from "../../../types/schema";
|
|
1
|
+
import type { Entity } from "../../../types/schema.d.ts";
|
|
2
2
|
export declare function isHeaderSortable(headerId: string, entity: Entity | undefined): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Cell, type ColumnDef, type Row, type Table } from "@tanstack/react-table";
|
|
2
|
-
import type { RowData } from "../../../types/api";
|
|
2
|
+
import type { RowData } from "../../../types/api.d.ts";
|
|
3
3
|
export declare const listTableFeatures: {
|
|
4
4
|
rowSortingFeature: import("@tanstack/react-table").TableFeature;
|
|
5
5
|
rowSelectionFeature: import("@tanstack/react-table").TableFeature;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type FilterNode, type FilterValueResolver } from "../../../lib/filters";
|
|
2
|
-
import type { Entity } from "../../../types/schema";
|
|
3
|
-
import type { FilterFieldMeta } from "../../filters/FilterDrawer";
|
|
4
|
-
import type { Refs } from "../../../types/api";
|
|
1
|
+
import { type FilterNode, type FilterValueResolver } from "../../../lib/filters.d.ts";
|
|
2
|
+
import type { Entity } from "../../../types/schema.d.ts";
|
|
3
|
+
import type { FilterFieldMeta } from "../../filters/FilterDrawer.d.ts";
|
|
4
|
+
import type { Refs } from "../../../types/api.d.ts";
|
|
5
5
|
/**
|
|
6
6
|
* useFilterValueLabels - the single source of human labels for stored filter
|
|
7
7
|
* values, shared by the chip strip and the filter drawer's RefCombobox.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FilterNode } from "../../../lib/filters";
|
|
2
|
-
import type { RowData, ListResponse } from "../../../types/api";
|
|
3
|
-
import type { Entity, Screen } from "../../../types/schema";
|
|
1
|
+
import type { FilterNode } from "../../../lib/filters.d.ts";
|
|
2
|
+
import type { RowData, ListResponse } from "../../../types/api.d.ts";
|
|
3
|
+
import type { Entity, Screen } from "../../../types/schema.d.ts";
|
|
4
4
|
interface ListQueryInput {
|
|
5
5
|
entity: Entity | undefined;
|
|
6
6
|
entityCode: string | undefined;
|
|
@@ -39,11 +39,7 @@ export interface ListQueryResult {
|
|
|
39
39
|
error: unknown;
|
|
40
40
|
/** True while a load has been running long enough to be worth saying so. */
|
|
41
41
|
isLoadingStale: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Cancels this query's in-flight fetch and refetches it, resolving when both
|
|
44
|
-
* have settled - in that order. Returning nothing made every completion-based
|
|
45
|
-
* state silently instant, so a control that waited on it never waited.
|
|
46
|
-
*/
|
|
42
|
+
/** Refetches this list's window and count, resolving when both have settled. */
|
|
47
43
|
retry: () => Promise<void>;
|
|
48
44
|
/** The total, and how it was produced. Undefined while the count is in flight
|
|
49
45
|
* or after it failed - a caller degrades to the loaded row count. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MouseEvent as ReactMouseEvent } from "react";
|
|
2
|
-
import type { QuickPeekFieldSpec } from "../../list/QuickPeek";
|
|
3
|
-
import { useLongPress } from "../../../hooks/useLongPress";
|
|
4
|
-
import type { RowData } from "../../../types/api";
|
|
5
|
-
import { type Action, type Entity, type Screen } from "../../../types/schema";
|
|
2
|
+
import type { QuickPeekFieldSpec } from "../../list/QuickPeek.d.ts";
|
|
3
|
+
import { useLongPress } from "../../../hooks/useLongPress.d.ts";
|
|
4
|
+
import type { RowData } from "../../../types/api.d.ts";
|
|
5
|
+
import { type Action, type Entity, type Screen } from "../../../types/schema.d.ts";
|
|
6
6
|
interface RowInteractionInput {
|
|
7
7
|
entity: Entity | undefined;
|
|
8
8
|
screen: Screen | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RowSelectionState } from "@tanstack/react-table";
|
|
2
|
-
import type { RowData } from "../../../types/api";
|
|
3
|
-
import { type Entity, type PkValues } from "../../../types/schema";
|
|
2
|
+
import type { RowData } from "../../../types/api.d.ts";
|
|
3
|
+
import { type Entity, type PkValues } from "../../../types/schema.d.ts";
|
|
4
4
|
/** The id a selection is keyed by: the entity's primary key values in the
|
|
5
5
|
* platform's own detail-id encoding, so a composite key selects as stably as a
|
|
6
6
|
* single one and the key round-trips to a detail route. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SortingState } from "@tanstack/react-table";
|
|
2
|
-
import { type SortCol, type SortNulls } from "../../../lib/sort";
|
|
2
|
+
import { type SortCol, type SortNulls } from "../../../lib/sort.d.ts";
|
|
3
3
|
interface ListSortInput {
|
|
4
4
|
searchParams: URLSearchParams;
|
|
5
5
|
setSearchParams: (next: URLSearchParams) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FilterNode } from "../../../lib/filters";
|
|
2
|
-
import { type Screen } from "../../../types/schema";
|
|
3
|
-
import type { ViewItem } from "../../list/ViewSwitcher";
|
|
1
|
+
import type { FilterNode } from "../../../lib/filters.d.ts";
|
|
2
|
+
import { type Screen } from "../../../types/schema.d.ts";
|
|
3
|
+
import type { ViewItem } from "../../list/ViewSwitcher.d.ts";
|
|
4
4
|
interface ListViewsInput {
|
|
5
5
|
screenCode: string;
|
|
6
6
|
screen: Screen | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ResolvedActionLayoutNode } from "../../../lib/actions";
|
|
2
|
-
import type { ActionRunHandler, WidgetContext } from "../../actions/ResponsiveActionBar";
|
|
3
|
-
import type { Action, Entity, Screen } from "../../../types/schema";
|
|
1
|
+
import { type ResolvedActionLayoutNode } from "../../../lib/actions.d.ts";
|
|
2
|
+
import type { ActionRunHandler, WidgetContext } from "../../actions/ResponsiveActionBar.d.ts";
|
|
3
|
+
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
4
4
|
export interface UseRowMenuArgs {
|
|
5
5
|
row: Record<string, unknown>;
|
|
6
6
|
rowId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CustomScreenProps } from "../../../stores/screen-registry";
|
|
1
|
+
import type { CustomScreenProps } from "../../../stores/screen-registry.d.ts";
|
|
2
2
|
export declare function TenantParamsPage(_props: CustomScreenProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StatusGroupDef } from "../../types/schema";
|
|
2
|
-
import type { StatusInfo } from "../../types/api";
|
|
1
|
+
import type { StatusGroupDef } from "../../types/schema.d.ts";
|
|
2
|
+
import type { StatusInfo } from "../../types/api.d.ts";
|
|
3
3
|
interface StatusGroupsDisplayProps {
|
|
4
4
|
statusGroups: Record<string, StatusGroupDef>;
|
|
5
5
|
objectStatuses: StatusInfo[] | undefined;
|