@declarion/react 0.48.2 → 0.49.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/Check-DAfMbQIw.js +38 -0
- package/dist-lib/{DraggableChildrenTable-p2ZSdwzj.js → DraggableChildrenTable-B98Md-Yq.js} +30 -30
- package/dist-lib/{Grid-CjLFAKMZ.js → Grid-BdtEd4R9.js} +2 -2
- package/dist-lib/{LayoutRenderer-DCscqXsv.js → LayoutRenderer-oVU3nEb5.js} +600 -597
- package/dist-lib/ListCardsBody-DYMt1H8l.js +287 -0
- package/dist-lib/{MarkdownRenderer-Sb7zcvj0.js → MarkdownRenderer-E9hbyoUn.js} +1 -1
- package/dist-lib/RefreshControl-B_2eW53M.js +430 -0
- package/dist-lib/{SmartDetailPage.impl-BAW-Tx_H.js → SmartDetailPage.impl-Dg22HOxb.js} +520 -515
- package/dist-lib/SmartListPage.impl-CPhhXT5S.js +2849 -0
- package/dist-lib/{SmartRecordListPage.impl-DtSSlGrI.js → SmartRecordListPage.impl-CF0UKgUj.js} +243 -240
- package/dist-lib/SortHeaderMenu-DodGvb7A.js +106 -0
- package/dist-lib/action-dispatch-CYOw7nkP.js +1984 -0
- package/dist-lib/api/batch.d.ts +5 -2
- package/dist-lib/api/data.d.ts +35 -4
- package/dist-lib/api/entities.d.ts +3 -3
- package/dist-lib/cardProjection-D-AufCh-.js +757 -0
- package/dist-lib/components/{shared → actions}/ObjectActionBar.d.ts +1 -1
- package/dist-lib/components/{shared → actions}/ResponsiveActionBar.d.ts +1 -1
- package/dist-lib/components/fields/cells/factories/date.d.ts +2 -0
- package/dist-lib/components/file-widgets/upload.d.ts +6 -1
- package/dist-lib/components/layout/Layout.d.ts +1 -1
- package/dist-lib/components/layout/TopBar.d.ts +1 -1
- package/dist-lib/components/pages/SmartListPage.d.ts +2 -12
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +4 -0
- package/dist-lib/components/pages/list/ListCardRow.d.ts +40 -0
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +34 -0
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
- package/dist-lib/components/pages/list/ListFooter.d.ts +26 -0
- package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
- package/dist-lib/components/pages/list/ListNoRows.d.ts +32 -0
- package/dist-lib/components/pages/list/ListTable.d.ts +34 -0
- package/dist-lib/components/pages/list/ListTableRow.d.ts +18 -0
- package/dist-lib/components/pages/list/ListToolbar.d.ts +43 -0
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +14 -0
- package/dist-lib/components/pages/list/page-size.d.ts +3 -0
- package/dist-lib/components/pages/list/sortable-header.d.ts +2 -0
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +37 -0
- package/dist-lib/components/pages/list/useListQuery.d.ts +66 -0
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +61 -0
- package/dist-lib/components/pages/list/useListSelection.d.ts +31 -0
- package/dist-lib/components/pages/list/useListSort.d.ts +45 -0
- package/dist-lib/components/pages/list/useListViews.d.ts +46 -0
- package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
- package/dist-lib/components/shared/RefreshControl.d.ts +17 -4
- package/dist-lib/field-classification-DTgUnbzd.js +1134 -0
- package/dist-lib/format-count-DAHCcHZO.js +1551 -0
- package/dist-lib/hooks/useBrandingChrome.d.ts +17 -1
- package/dist-lib/hooks/useText.d.ts +3 -0
- package/dist-lib/hooks/useViews.d.ts +1 -1
- package/dist-lib/index.d.ts +17 -15
- package/dist-lib/index.js +1783 -6287
- package/dist-lib/lib/messages.d.ts +7 -1
- package/dist-lib/lib/rowClickGesture.d.ts +12 -0
- package/dist-lib/lib/timestamp.d.ts +8 -3
- package/dist-lib/peekDraftStore-CnxqkoWN.js +194 -0
- package/dist-lib/record-documents-key-DEFlLxnF.js +27 -0
- package/dist-lib/registry-WypUQQ7t.js +1768 -0
- package/dist-lib/testing.d.ts +17 -2
- package/dist-lib/testing.js +72 -58
- package/dist-lib/types/api.d.ts +54 -12
- package/dist-lib/types/schema.d.ts +22 -6
- package/dist-lib/{useCurrentScreen-BshVTPVq.js → useCurrentScreen-C5Oio-1G.js} +1125 -1068
- package/dist-lib/useListQuery-Dc2vbxqs.js +87 -0
- package/dist-lib/useProperties-C36ENFdY.js +81 -0
- package/dist-lib/{useProperties-DrHFr0A1.js → useTabSearchMirror-sIuYEFaq.js} +116 -194
- package/dist-lib/{value-B1O6QikE.js → value-igT4LsqW.js} +69 -69
- package/package.json +1 -1
- package/dist-lib/RefreshControl-Cnl9nE0x.js +0 -945
- package/dist-lib/registry-CCxnZW2b.js +0 -5281
- /package/dist-lib/components/{shared → actions}/ActionButton.d.ts +0 -0
- /package/dist-lib/components/{shared → actions}/ActionDialog.d.ts +0 -0
- /package/dist-lib/components/{shared → actions}/ActionResultDialog.d.ts +0 -0
- /package/dist-lib/components/{shared → actions}/ActionRunner.d.ts +0 -0
- /package/dist-lib/components/{mass-edit → actions}/PropertyGridEditor.d.ts +0 -0
- /package/dist-lib/components/{shared → actions}/RowActionsKebab.d.ts +0 -0
- /package/dist-lib/components/{shared → chrome}/AssociationTabs.d.ts +0 -0
- /package/dist-lib/components/{shared → chrome}/AuditMetaStrip.d.ts +0 -0
- /package/dist-lib/components/{shared → chrome}/Breadcrumbs.d.ts +0 -0
- /package/dist-lib/components/{shared → chrome}/HighlightsStrip.d.ts +0 -0
- /package/dist-lib/components/{shared → chrome}/PageHeader.d.ts +0 -0
- /package/dist-lib/components/{shared → chrome}/RecordHeader.d.ts +0 -0
- /package/dist-lib/components/{shell → layout}/CommandPalette.d.ts +0 -0
- /package/dist-lib/components/{columns → list}/ColumnPicker.d.ts +0 -0
- /package/dist-lib/components/{views → list}/ViewSwitcher.d.ts +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { FilterNode } from "../../../lib/filters";
|
|
2
|
+
import { type Screen } from "../../../types/schema";
|
|
3
|
+
import type { ViewItem } from "../../../components/list/ViewSwitcher";
|
|
4
|
+
interface ListViewsInput {
|
|
5
|
+
screenCode: string;
|
|
6
|
+
screen: Screen | undefined;
|
|
7
|
+
searchParams: URLSearchParams;
|
|
8
|
+
setSearchParams: (next: URLSearchParams, options?: {
|
|
9
|
+
replace?: boolean;
|
|
10
|
+
}) => void;
|
|
11
|
+
userId: string | undefined;
|
|
12
|
+
tenantId: string | undefined;
|
|
13
|
+
/** A malformed `?filters=` bookmark. A visible recoverable state must not be
|
|
14
|
+
* replaced by a personal default view before the user can see it. */
|
|
15
|
+
filterError: boolean;
|
|
16
|
+
/** The live layout, compared against the saved one to decide dirtiness and
|
|
17
|
+
* written into a save. */
|
|
18
|
+
filters: FilterNode[];
|
|
19
|
+
visibleColumns: string[];
|
|
20
|
+
sort: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
/** Which saved view a list screen is showing, and every way that changes. */
|
|
23
|
+
export interface ListViews {
|
|
24
|
+
all: ViewItem[];
|
|
25
|
+
activeId: string | null;
|
|
26
|
+
active: ViewItem | undefined;
|
|
27
|
+
/** True when the live layout differs from what the active view saved. */
|
|
28
|
+
isDirty: boolean;
|
|
29
|
+
/** Open a view, or clear to no view. Also the reset gesture: open the same
|
|
30
|
+
* view again. */
|
|
31
|
+
apply: (view: ViewItem) => void;
|
|
32
|
+
saveAsNew: (name: string) => Promise<void>;
|
|
33
|
+
overwriteActive: () => Promise<void>;
|
|
34
|
+
isSaving: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The saved views a list screen offers.
|
|
38
|
+
*
|
|
39
|
+
* A view owns the LOGICAL layout - filters, columns, sort - and nothing else.
|
|
40
|
+
* Column widths are per device and never travel in one.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useListViews({ screenCode, screen, searchParams, setSearchParams, userId, tenantId, filterError, filters, visibleColumns, sort, }: ListViewsInput): ListViews;
|
|
43
|
+
/** The name a save dialog offers to overwrite, or null when the active view is
|
|
44
|
+
* not the caller's to overwrite. */
|
|
45
|
+
export declare function overwritableViewName(active: ViewItem | undefined): string | null;
|
|
46
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ResolvedActionLayoutNode } from "../../../lib/actions";
|
|
2
|
-
import type { ActionRunHandler, WidgetContext } from "../../../components/
|
|
2
|
+
import type { ActionRunHandler, WidgetContext } from "../../../components/actions/ResponsiveActionBar";
|
|
3
3
|
import type { Action, Entity, Screen } from "../../../types/schema";
|
|
4
4
|
export interface UseRowMenuArgs {
|
|
5
5
|
row: Record<string, unknown>;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* What the control needs, which is less than any one caller happens to have.
|
|
3
|
+
*
|
|
4
|
+
* A detail page hands it a `useLiveObject` result; a list hands it a refresh
|
|
5
|
+
* that cancels in-flight queries first and returns nothing. Typing `refetch` as
|
|
6
|
+
* react-query's own signature would have made the second caller impossible and
|
|
7
|
+
* left the list with a copy of this component - which is how the two surfaces
|
|
8
|
+
* drifted in the first place.
|
|
9
|
+
*/
|
|
10
|
+
export interface RefreshControlProps {
|
|
11
|
+
liveObject: {
|
|
12
|
+
refetch: () => unknown;
|
|
13
|
+
isFetching: boolean;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
isLive: boolean;
|
|
16
|
+
};
|
|
4
17
|
realtime?: boolean;
|
|
5
18
|
}
|
|
6
|
-
export declare function RefreshControl
|
|
19
|
+
export declare function RefreshControl({ liveObject, realtime }: RefreshControlProps): import("react").JSX.Element;
|