@uibot/renderer-react 0.0.0-stage → 0.2.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/HtmlSourceEditor.d.ts +60 -0
- package/dist/collection-activity.d.ts +12 -0
- package/dist/collection-ai.d.ts +17 -0
- package/dist/collection-application.d.ts +5 -0
- package/dist/collection-application.js +25 -0
- package/dist/collection-approval.d.ts +7 -0
- package/dist/collection-attachments.d.ts +10 -0
- package/dist/collection-automation.d.ts +10 -0
- package/dist/collection-calendar-view.d.ts +2 -0
- package/dist/collection-computed.d.ts +4 -0
- package/dist/collection-conversion.d.ts +6 -0
- package/dist/collection-editors.d.ts +40 -0
- package/dist/collection-editors.js +10 -0
- package/dist/collection-form-view.d.ts +2 -0
- package/dist/collection-formula/evaluate.d.ts +18 -0
- package/dist/collection-formula/index.d.ts +1 -0
- package/dist/collection-gallery-view.d.ts +2 -0
- package/dist/collection-grid/cell-display.d.ts +24 -0
- package/dist/collection-grid/cells.d.ts +29 -0
- package/dist/collection-grid/column-color.d.ts +5 -0
- package/dist/collection-grid/date-value.d.ts +13 -0
- package/dist/collection-grid/features.d.ts +76 -0
- package/dist/collection-grid/field-format.d.ts +17 -0
- package/dist/collection-grid/fill.d.ts +10 -0
- package/dist/collection-grid/filter-labels.d.ts +6 -0
- package/dist/collection-grid/footer-aggregate.d.ts +6 -0
- package/dist/collection-grid/footer-stats.d.ts +5 -0
- package/dist/collection-grid/grouping.d.ts +51 -0
- package/dist/collection-grid/index.d.ts +9 -0
- package/dist/collection-grid/paged-field-input.d.ts +22 -0
- package/dist/collection-grid/paged-locale.d.ts +3 -0
- package/dist/collection-grid/paged-model.d.ts +25 -0
- package/dist/collection-grid/relation-editor.d.ts +14 -0
- package/dist/collection-grid/relation-options.d.ts +4 -0
- package/dist/collection-grid/selection.d.ts +4 -0
- package/dist/collection-interaction-state.d.ts +26 -0
- package/dist/collection-kanban-view.d.ts +2 -0
- package/dist/collection-live-changes.d.ts +8 -0
- package/dist/collection-relations.d.ts +20 -0
- package/dist/collection-sharing.d.ts +10 -0
- package/dist/collection-table-view.d.ts +2 -0
- package/dist/collection-transfer.d.ts +12 -0
- package/dist/collection-ui.d.ts +152 -0
- package/dist/collection-views/aggregate.d.ts +39 -0
- package/dist/collection-views/ai-fill-drawer.d.ts +28 -0
- package/dist/collection-views/ai-fill-model.d.ts +35 -0
- package/dist/collection-views/board.d.ts +2 -0
- package/dist/collection-views/calendar.d.ts +4 -0
- package/dist/collection-views/field-config.d.ts +16 -0
- package/dist/collection-views/filter-builder.d.ts +23 -0
- package/dist/collection-views/gallery.d.ts +2 -0
- package/dist/collection-views/icons.d.ts +43 -0
- package/dist/collection-views/menu.d.ts +16 -0
- package/dist/collection-views/model.d.ts +22 -0
- package/dist/collection-views/record-creator.d.ts +31 -0
- package/dist/collection-views/schema-editor.d.ts +38 -0
- package/dist/collection-views/schema-field-settings.d.ts +22 -0
- package/dist/collection-views/schema-styles.d.ts +4 -0
- package/dist/collection-views/shared.d.ts +110 -0
- package/dist/collection-views/table-nav.d.ts +52 -0
- package/dist/collection-views/toolbar-popover.d.ts +24 -0
- package/dist/collection-views/ui.d.ts +45 -0
- package/dist/collection-views/view-settings-sections.d.ts +39 -0
- package/dist/collection-views/view-tabs.d.ts +35 -0
- package/dist/collection-views.d.ts +35 -0
- package/dist/collection-views.js +10 -0
- package/dist/collection-workspace.d.ts +128 -0
- package/dist/collection-workspace.js +26 -0
- package/dist/define-component.d.ts +35 -0
- package/dist/document-collection.d.ts +30 -0
- package/dist/document-view.d.ts +1 -0
- package/dist/html-source-editor.css +84 -0
- package/dist/index.d.ts +121 -0
- package/dist/index.js +25 -0
- package/dist/live-renderer.d.ts +60 -0
- package/dist/paged-collection-grid.d.ts +95 -0
- package/dist/paged-collection-grid.js +25 -0
- package/dist/paged-collection-views.d.ts +15 -0
- package/dist/renderer.d.ts +20 -0
- package/package.json +69 -4
- package/README.md +0 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PagedCollectionField, PagedCollectionView } from "@uibot/contracts";
|
|
2
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
3
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
4
|
+
/**
|
|
5
|
+
* Field list for the toolbar: search, show/hide with the eye, drag to reorder (Alt+Arrow keys too),
|
|
6
|
+
* "…" to edit the field and an add-field row. Order and visibility write the view draft.
|
|
7
|
+
*/
|
|
8
|
+
export declare function FieldConfigList({ fields, view, onChange, locale, ui, onEditField, onAddField, }: {
|
|
9
|
+
fields: PagedCollectionField[];
|
|
10
|
+
view: PagedCollectionView;
|
|
11
|
+
onChange(view: PagedCollectionView): void;
|
|
12
|
+
locale?: PagedCollectionLocale | undefined;
|
|
13
|
+
ui?: CollectionUiSlots | undefined;
|
|
14
|
+
onEditField?: ((fieldId: string) => void) | undefined;
|
|
15
|
+
onAddField?: (() => void) | undefined;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PagedCollectionField, type PagedCollectionFilterNode } from "@uibot/contracts";
|
|
2
|
+
import type { PagedCollectionGridProps } from "../paged-collection-grid.js";
|
|
3
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
4
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
5
|
+
export interface PagedFilterBuilderProps {
|
|
6
|
+
fields: PagedCollectionField[];
|
|
7
|
+
/** Current filter. Flat leaves are editable rows; nested groups are nested builders (one extra level). */
|
|
8
|
+
filter: PagedCollectionFilterNode | undefined;
|
|
9
|
+
/** Called with every change that leaves all rows complete (or none): conditions apply as you edit. */
|
|
10
|
+
onChange(filter: PagedCollectionFilterNode | undefined): void;
|
|
11
|
+
locale?: PagedCollectionLocale | undefined;
|
|
12
|
+
ui?: CollectionUiSlots | undefined;
|
|
13
|
+
renderCellEditor?: PagedCollectionGridProps["renderCellEditor"] | undefined;
|
|
14
|
+
getRelationOptions?: PagedCollectionGridProps["getRelationOptions"] | undefined;
|
|
15
|
+
/** Offer the full operator set and date modes. Default true; turn off for hosts that cannot run them. */
|
|
16
|
+
advanced?: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Offer "Add group" and edit nested groups. Default true. Nested builders pass false so a group
|
|
19
|
+
* is one extra level; deeper host-provided nesting stays read-only inside that group.
|
|
20
|
+
*/
|
|
21
|
+
allowGroups?: boolean | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare function PagedCollectionFilterBuilder(props: PagedFilterBuilderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/** The few glyphs the collection chrome needs, drawn inline so the renderer carries no icon library. */
|
|
3
|
+
declare const PATHS: {
|
|
4
|
+
readonly refresh: "M13 3v3.5h-3.5M3 13V9.5h3.5M12.4 6.5A5 5 0 0 0 4 5M3.6 9.5A5 5 0 0 0 12 11";
|
|
5
|
+
readonly sliders: "M3 4.5h6M12 4.5h1M3 11.5h1M7 11.5h6M9 3v3M5 10v3";
|
|
6
|
+
readonly save: "M3.5 3.5h7l2 2v7h-9zM5.5 3.5v3h4v-3M5.5 12.5v-3h5v3";
|
|
7
|
+
readonly fields: "M3 3.5h10v9H3zM6.3 3.5v9M9.7 3.5v9";
|
|
8
|
+
readonly plus: "M8 3.5v9M3.5 8h9";
|
|
9
|
+
readonly chevronLeft: "M9.5 3.5 5 8l4.5 4.5";
|
|
10
|
+
readonly chevronRight: "M6.5 3.5 11 8l-4.5 4.5";
|
|
11
|
+
readonly chevronUp: "M3.5 9.5 8 5l4.5 4.5";
|
|
12
|
+
readonly chevronDown: "M3.5 6.5 8 11l4.5-4.5";
|
|
13
|
+
readonly trash: "M3.5 4.5h9M6.5 4.5v-1.5h3v1.5M5 4.5l.5 8h5l.5-8";
|
|
14
|
+
readonly x: "M4 4l8 8M12 4l-8 8";
|
|
15
|
+
readonly eye: "M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8zM8 9.8a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6z";
|
|
16
|
+
readonly eyeOff: "M2 2l12 12M6.4 3.8A6.3 6.3 0 0 1 8 3.5C12 3.5 14.5 8 14.5 8a11 11 0 0 1-2 2.6M9.7 12.2a6.3 6.3 0 0 1-1.7.3C4 12.5 1.5 8 1.5 8a11 11 0 0 1 2.3-2.8M6.6 6.6a1.8 1.8 0 0 0 2.4 2.4";
|
|
17
|
+
readonly group: "M3 4h10M3 8h7M3 12h4";
|
|
18
|
+
readonly filter: "M2.5 3.5h11l-4.2 5v4l-2.6 1v-5z";
|
|
19
|
+
readonly arrowLeft: "M13 8H3M7 4 3 8l4 4";
|
|
20
|
+
readonly arrowRight: "M3 8h10M9 4l4 4-4 4";
|
|
21
|
+
readonly sortAsc: "M4.5 13V3M4.5 3 2.5 5M4.5 3l2 2M9 4h4M9 8h3M9 12h2";
|
|
22
|
+
readonly sortDesc: "M4.5 3v10M4.5 13l-2-2M4.5 13l2-2M9 4h2M9 8h3M9 12h4";
|
|
23
|
+
readonly kanban: "M3 3h3.5v10H3zM9.5 3H13v6H9.5z";
|
|
24
|
+
readonly palette: "M8 2a6 6 0 1 0 0 12h1a1.5 1.5 0 0 0 0-3h-.5a1 1 0 0 1 0-2H11a3 3 0 0 0 3-3c0-2-3-4-6-4zM5 5h.01M8 4h.01M11 5h.01M4 8h.01";
|
|
25
|
+
readonly freeze: "M3 3.5h10v9H3zM6.5 3.5v9M3 6.5h3.5M3 9.5h3.5";
|
|
26
|
+
readonly sigma: "M12 3.5H4.5L8.5 8l-4 4.5H12";
|
|
27
|
+
readonly expand: "M9.5 3H13v3.5M6.5 13H3V9.5M13 3 9 7M3 13l4-4";
|
|
28
|
+
readonly pencil: "M3 13l.7-3L10.5 3.2a1.4 1.4 0 0 1 2 2L5.7 12 3 13z";
|
|
29
|
+
readonly copy: "M5.5 5.5h7v7h-7zM3.5 10.5v-7h7";
|
|
30
|
+
readonly calendar: "M3 4.5h10V13H3zM3 7.5h10M6 3v3M10 3v3";
|
|
31
|
+
readonly sort: "M4.5 3v10M4.5 13l-2-2M4.5 13l2-2M11.5 13V3M11.5 3l-2 2M11.5 3l2 2";
|
|
32
|
+
readonly rows: "M3 4h10M3 8h10M3 12h10";
|
|
33
|
+
readonly more: "M4 8h.01M8 8h.01M12 8h.01";
|
|
34
|
+
readonly sparkles: "M7 2.5l1.2 3.3L11.5 7 8.2 8.2 7 11.5 5.8 8.2 2.5 7l3.3-1.2zM12 9.5l.6 1.4 1.4.6-1.4.6-.6 1.4-.6-1.4-1.4-.6 1.4-.6z";
|
|
35
|
+
readonly grip: "M6 4h.01M10 4h.01M6 8h.01M10 8h.01M6 12h.01M10 12h.01";
|
|
36
|
+
};
|
|
37
|
+
export type PagedIconName = keyof typeof PATHS;
|
|
38
|
+
export declare function PagedIcon({ name, size, style, }: {
|
|
39
|
+
name: PagedIconName;
|
|
40
|
+
size?: number;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
}): import("react").JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { CollectionMenuItem } from "../collection-ui.js";
|
|
3
|
+
/** Minimal menu used when the host provides no design-system menu. */
|
|
4
|
+
export declare function FallbackContextMenu({ items, label, children, block, }: {
|
|
5
|
+
items: ReadonlyArray<CollectionMenuItem>;
|
|
6
|
+
label: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Wrap block-level content (such as the grid) instead of an inline tab. */
|
|
9
|
+
block?: boolean;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
export declare function FallbackDropdown({ label, items, disabled, icon, }: {
|
|
12
|
+
label: string;
|
|
13
|
+
items: ReadonlyArray<CollectionMenuItem>;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PagedCollectionField, PagedCollectionFilterLeaf, PagedCollectionFilterNode, PagedCollectionQuery, PagedCollectionRecord, PagedCollectionView } from "@uibot/contracts";
|
|
2
|
+
import type { PagedCollectionComputedError } from "@uibot/contracts";
|
|
3
|
+
export interface KanbanLane {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string | boolean | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function kanbanLanes(field: PagedCollectionField, t?: (message: string) => string): KanbanLane[];
|
|
9
|
+
export declare function combineFilters(...filters: (PagedCollectionFilterLeaf | PagedCollectionFilterNode | undefined)[]): PagedCollectionFilterNode;
|
|
10
|
+
export declare function viewQuery(view: PagedCollectionView): PagedCollectionQuery;
|
|
11
|
+
export declare function laneQuery(view: PagedCollectionView, field: PagedCollectionField, lane: KanbanLane): PagedCollectionQuery;
|
|
12
|
+
export declare function calendarWindow(month: string, t?: (message: string) => string): {
|
|
13
|
+
start: string;
|
|
14
|
+
end: string;
|
|
15
|
+
days: number;
|
|
16
|
+
weekday: number;
|
|
17
|
+
};
|
|
18
|
+
export declare function calendarQuery(view: PagedCollectionView, dateFieldId: string, month: string): PagedCollectionQuery;
|
|
19
|
+
export declare function moveDateValue(value: unknown, day: string): string;
|
|
20
|
+
export declare function visibleFields(fields: PagedCollectionField[], view: PagedCollectionView): PagedCollectionField[];
|
|
21
|
+
export declare function recordLabel(row: PagedCollectionRecord, fields: PagedCollectionField[]): string;
|
|
22
|
+
export declare function displayValue(value: unknown, field: PagedCollectionField, error?: PagedCollectionComputedError): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PagedCollectionClient, PagedCollectionDescriptor, PagedCollectionMutationReceipt, PagedCollectionRecord } from "@uibot/contracts";
|
|
2
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
3
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
4
|
+
export interface PagedCollectionRecordCreatorProps {
|
|
5
|
+
descriptor: PagedCollectionDescriptor;
|
|
6
|
+
client: Pick<PagedCollectionClient, "mutate" | "query">;
|
|
7
|
+
/** Runs after every successful insert (reload lists and totals here). */
|
|
8
|
+
onCommitted(receipt: PagedCollectionMutationReceipt): void;
|
|
9
|
+
/** Runs after "Save record" (not "Save and continue"): the host closes its panel. */
|
|
10
|
+
onSaved?(receipt: PagedCollectionMutationReceipt): void;
|
|
11
|
+
/** Adds a Cancel button. */
|
|
12
|
+
onCancel?(): void;
|
|
13
|
+
/** The host panel scrolls and has its own close control: pin the actions to the bottom, no Cancel. */
|
|
14
|
+
stickyActions?: boolean;
|
|
15
|
+
/** Reports unsaved values (or an unconfirmed save) so the host can ask before discarding. */
|
|
16
|
+
onDirtyChange?(dirty: boolean): void;
|
|
17
|
+
/** Reports a save in flight, so the host keeps its panel open meanwhile. */
|
|
18
|
+
onBusyChange?(busy: boolean): void;
|
|
19
|
+
locale?: PagedCollectionLocale;
|
|
20
|
+
ui?: CollectionUiSlots;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
autoFocus?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Display name of a saved record: its title (or first) text field, empty when unavailable. */
|
|
25
|
+
export declare function pagedRecordLabel(descriptor: PagedCollectionDescriptor, record: PagedCollectionRecord | undefined): string;
|
|
26
|
+
/**
|
|
27
|
+
* Create-record form. A save whose outcome is unknown (network loss, timeout) keeps its request,
|
|
28
|
+
* so retrying resends the same idempotency key and the host inserts once; any edit starts a new
|
|
29
|
+
* attempt. "Save and continue" keeps the form open for the next record.
|
|
30
|
+
*/
|
|
31
|
+
export declare function PagedCollectionRecordCreator(props: PagedCollectionRecordCreatorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type PagedCollectionField } from "@uibot/contracts";
|
|
2
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
3
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
4
|
+
export type PagedSchemaFieldType = "singleLineText" | "longText" | "number" | "checkbox" | "date" | "singleSelect" | "multipleSelect" | "relation";
|
|
5
|
+
export interface PagedCollectionSchemaEditorProps {
|
|
6
|
+
fields: PagedCollectionField[];
|
|
7
|
+
onChange: (fields: PagedCollectionField[]) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Scroll to and focus this field's name when the editor opens (e.g. from a field list). */
|
|
10
|
+
focusFieldId?: string;
|
|
11
|
+
locale?: PagedCollectionLocale;
|
|
12
|
+
ui?: CollectionUiSlots;
|
|
13
|
+
/** Field types the actor may create or switch to. Fields of other types are kept untouched and hidden. */
|
|
14
|
+
fieldTypes?: ReadonlyArray<PagedSchemaFieldType>;
|
|
15
|
+
/** Tables a `relation` field may point to. Required when `fieldTypes` includes `relation`. */
|
|
16
|
+
relationTargets?: ReadonlyArray<{
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Existing fields whose type cannot change and that cannot be deleted (add-only schemas). */
|
|
21
|
+
lockedFieldIds?: ReadonlyArray<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Per-field settings to offer; all on by default. A host whose storage drops a setting turns it
|
|
24
|
+
* off, so the editor never offers what would silently not be saved.
|
|
25
|
+
*/
|
|
26
|
+
settings?: {
|
|
27
|
+
formatting?: boolean;
|
|
28
|
+
defaults?: boolean;
|
|
29
|
+
optionColors?: boolean;
|
|
30
|
+
descriptions?: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Field and option editor for a collection schema. Controlled: the host owns the draft and the
|
|
35
|
+
* save/CAS flow. Keyboard focus follows add/remove so repeated entry never needs the mouse.
|
|
36
|
+
* Colours come from `--uibot-schema-*` variables with neutral fallbacks.
|
|
37
|
+
*/
|
|
38
|
+
export declare function PagedCollectionSchemaEditor({ fields, onChange, disabled, focusFieldId, locale, ui, fieldTypes, relationTargets, lockedFieldIds, settings, }: PagedCollectionSchemaEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PagedCollectionField } from "@uibot/contracts";
|
|
2
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
3
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
4
|
+
export interface PagedFieldSettingsProps {
|
|
5
|
+
field: PagedCollectionField;
|
|
6
|
+
onChange: (change: (field: PagedCollectionField) => PagedCollectionField) => void;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
locale?: PagedCollectionLocale | undefined;
|
|
9
|
+
ui?: CollectionUiSlots | undefined;
|
|
10
|
+
/** The field's stored values depend on its date format (hosts that cannot migrate them lock it). */
|
|
11
|
+
dateFormatLocked?: boolean | undefined;
|
|
12
|
+
/** Sections the host's storage can keep; both default to on. */
|
|
13
|
+
settings?: {
|
|
14
|
+
formatting?: boolean;
|
|
15
|
+
defaults?: boolean;
|
|
16
|
+
} | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Per-type settings of one field: display format (with a live preview) and the value a new record
|
|
20
|
+
* starts with. Renders nothing for types without settings.
|
|
21
|
+
*/
|
|
22
|
+
export declare function PagedFieldSettings({ field, onChange, disabled, locale, ui, settings, dateFormatLocked, }: PagedFieldSettingsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export declare const schemaBorder = "var(--uibot-schema-border, color-mix(in srgb, currentColor 25%, transparent))";
|
|
3
|
+
export type StyleKey = "root" | "field" | "row" | "control" | "label" | "input" | "button" | "danger" | "checkbox" | "options" | "optionRow" | "settings" | "swatch";
|
|
4
|
+
export declare const schemaStyles: Record<StyleKey, CSSProperties>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
import type { PagedCollectionClient, PagedCollectionDescriptor, PagedCollectionMutationReceipt, PagedCollectionMutationRequest, PagedCollectionPage, PagedCollectionQuery, PagedCollectionRecord, PagedCollectionView } from "@uibot/contracts";
|
|
3
|
+
import { type CollectionAggregateProps } from "./aggregate.js";
|
|
4
|
+
import { pagedText, type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
5
|
+
import { type PagedCollectionGridFeaturesInput } from "../collection-grid/features.js";
|
|
6
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
7
|
+
export interface CollectionViewProps {
|
|
8
|
+
descriptor: PagedCollectionDescriptor;
|
|
9
|
+
view: PagedCollectionView;
|
|
10
|
+
client: Pick<PagedCollectionClient, "query" | "mutate">;
|
|
11
|
+
onCommitted(receipt: PagedCollectionMutationReceipt): void;
|
|
12
|
+
reloadKey?: number;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
onInspectRecord?(recordId: string): void;
|
|
15
|
+
/** Whole-query count/sum. Absent hosts keep the existing page total. */
|
|
16
|
+
aggregate?: CollectionAggregateProps;
|
|
17
|
+
/** Presentation locale only; stored values and protocol tokens never change. */
|
|
18
|
+
locale?: PagedCollectionLocale;
|
|
19
|
+
/** Host design-system controls. Native elements are used for any slot left out. */
|
|
20
|
+
ui?: CollectionUiSlots;
|
|
21
|
+
/** Feature flags shared with the grid (view types, grouping, ...). */
|
|
22
|
+
features?: PagedCollectionGridFeaturesInput;
|
|
23
|
+
/** After creating a record, offer a way back to a records view. Host-owned navigation. */
|
|
24
|
+
onShowRecords?(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare function CollectionAggregateSlot(props: CollectionViewProps): import("react").JSX.Element | null;
|
|
27
|
+
export declare const buttonStyle: CSSProperties;
|
|
28
|
+
export declare const panelStyle: CSSProperties;
|
|
29
|
+
export declare function useCollectionPage(props: CollectionViewProps, query: PagedCollectionQuery, enabled?: boolean): {
|
|
30
|
+
page: PagedCollectionPage;
|
|
31
|
+
loading: boolean;
|
|
32
|
+
error: string;
|
|
33
|
+
previous: (() => void) | undefined;
|
|
34
|
+
next: (() => void) | undefined;
|
|
35
|
+
retry: () => void;
|
|
36
|
+
pageNumber: number;
|
|
37
|
+
};
|
|
38
|
+
/** "8 records", or "8 records · 5 loaded" while more are still to be paged in. */
|
|
39
|
+
export declare function recordCountText(t: ReturnType<typeof pagedText>, total: number, loaded: number, locale?: PagedCollectionLocale): string;
|
|
40
|
+
/** Previous/next as icon buttons; renders nothing while everything fits on one page. */
|
|
41
|
+
export declare function PagerButtons({ hasPrevious, hasNext, onPrevious, onNext, loading, page, locale, ui, }: {
|
|
42
|
+
hasPrevious: boolean;
|
|
43
|
+
hasNext: boolean;
|
|
44
|
+
onPrevious?: (() => void) | undefined;
|
|
45
|
+
onNext?: (() => void) | undefined;
|
|
46
|
+
loading?: boolean | undefined;
|
|
47
|
+
page?: number | undefined;
|
|
48
|
+
locale?: PagedCollectionLocale | undefined;
|
|
49
|
+
ui?: CollectionUiSlots | undefined;
|
|
50
|
+
}): import("react").JSX.Element | null;
|
|
51
|
+
export declare function PageControls({ state, locale, ui, hideCount, }: {
|
|
52
|
+
state: ReturnType<typeof useCollectionPage>;
|
|
53
|
+
locale?: PagedCollectionLocale | undefined;
|
|
54
|
+
ui?: CollectionUiSlots | undefined;
|
|
55
|
+
/** The caller already shows the total (e.g. a kanban lane title). */
|
|
56
|
+
hideCount?: boolean;
|
|
57
|
+
}): import("react").JSX.Element;
|
|
58
|
+
export declare function useCollectionMutation(props: CollectionViewProps): {
|
|
59
|
+
saving: boolean;
|
|
60
|
+
error: string;
|
|
61
|
+
setError: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
62
|
+
remote: PagedCollectionRecord | null;
|
|
63
|
+
pending: import("react").RefObject<PagedCollectionMutationRequest | null>;
|
|
64
|
+
reset: () => void;
|
|
65
|
+
commit: (request: PagedCollectionMutationRequest) => Promise<boolean>;
|
|
66
|
+
retryRequest: () => PagedCollectionMutationRequest | null;
|
|
67
|
+
};
|
|
68
|
+
export declare function MutationFeedback({ mutation, onRetry, locale, ui, }: {
|
|
69
|
+
mutation: ReturnType<typeof useCollectionMutation>;
|
|
70
|
+
onRetry(): void;
|
|
71
|
+
locale?: PagedCollectionLocale | undefined;
|
|
72
|
+
ui?: CollectionUiSlots | undefined;
|
|
73
|
+
}): import("react").JSX.Element;
|
|
74
|
+
export declare function CollectionRecordEditor({ row, onClose, onCancel, onDirtyChange, onBusyChange, stickyActions, ...props }: CollectionViewProps & {
|
|
75
|
+
row: PagedCollectionRecord;
|
|
76
|
+
onClose(): void;
|
|
77
|
+
/** Escape and the close button; defaults to `onClose`. Hosts use it to confirm discarding edits. */
|
|
78
|
+
onCancel?(): void;
|
|
79
|
+
/** Reports unsaved edits so the host can ask before discarding them. */
|
|
80
|
+
onDirtyChange?(dirty: boolean): void;
|
|
81
|
+
onBusyChange?(busy: boolean): void;
|
|
82
|
+
/** The host panel scrolls and has its own close control: pin Save and Delete to the bottom. */
|
|
83
|
+
stickyActions?: boolean;
|
|
84
|
+
}): import("react").JSX.Element;
|
|
85
|
+
export declare function CollectionForm(props: CollectionViewProps): import("react").JSX.Element;
|
|
86
|
+
export declare function useRecordMove(props: CollectionViewProps): {
|
|
87
|
+
intent: {
|
|
88
|
+
row: PagedCollectionRecord;
|
|
89
|
+
values: Record<string, unknown>;
|
|
90
|
+
} | null;
|
|
91
|
+
mutation: {
|
|
92
|
+
saving: boolean;
|
|
93
|
+
error: string;
|
|
94
|
+
setError: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
95
|
+
remote: PagedCollectionRecord | null;
|
|
96
|
+
pending: import("react").RefObject<PagedCollectionMutationRequest | null>;
|
|
97
|
+
reset: () => void;
|
|
98
|
+
commit: (request: PagedCollectionMutationRequest) => Promise<boolean>;
|
|
99
|
+
retryRequest: () => PagedCollectionMutationRequest | null;
|
|
100
|
+
};
|
|
101
|
+
move: (row: PagedCollectionRecord, values: Record<string, unknown>) => Promise<void>;
|
|
102
|
+
retry: () => Promise<void>;
|
|
103
|
+
cancel: () => void;
|
|
104
|
+
blocked: boolean;
|
|
105
|
+
};
|
|
106
|
+
export declare function MoveFeedback({ state, locale, ui, }: {
|
|
107
|
+
state: ReturnType<typeof useRecordMove>;
|
|
108
|
+
locale?: PagedCollectionLocale | undefined;
|
|
109
|
+
ui?: CollectionUiSlots | undefined;
|
|
110
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { PagedCollectionDescriptor } from "@uibot/contracts";
|
|
3
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
4
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
5
|
+
/** Built-in table icons: stroke paths on a 16×16 grid. Hosts may pass their own set. */
|
|
6
|
+
export declare const PAGED_TABLE_ICONS: Readonly<Record<string, {
|
|
7
|
+
label: string;
|
|
8
|
+
path: string;
|
|
9
|
+
}>>;
|
|
10
|
+
export declare const PAGED_DEFAULT_TABLE_ICON = "table";
|
|
11
|
+
export declare function PagedTableIcon({ icon, size, icons, }: {
|
|
12
|
+
icon?: string | undefined;
|
|
13
|
+
size?: number;
|
|
14
|
+
icons?: Readonly<Record<string, {
|
|
15
|
+
label: string;
|
|
16
|
+
path: string;
|
|
17
|
+
}>>;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export interface PagedCollectionTableListProps {
|
|
20
|
+
tables: ReadonlyArray<Pick<PagedCollectionDescriptor, "id" | "name" | "icon">>;
|
|
21
|
+
activeId: string | undefined;
|
|
22
|
+
onSelect(id: string): void;
|
|
23
|
+
/** Absent: no "new table" button. */
|
|
24
|
+
onCreate?: (() => void) | undefined;
|
|
25
|
+
createDisabled?: boolean | undefined;
|
|
26
|
+
locale?: PagedCollectionLocale;
|
|
27
|
+
ui?: CollectionUiSlots;
|
|
28
|
+
icons?: Readonly<Record<string, {
|
|
29
|
+
label: string;
|
|
30
|
+
path: string;
|
|
31
|
+
}>>;
|
|
32
|
+
}
|
|
33
|
+
/** Vertical list of collections with icons; the host owns routing and creation. */
|
|
34
|
+
export declare function PagedCollectionTableList(props: PagedCollectionTableListProps): import("react").JSX.Element;
|
|
35
|
+
export interface PagedCollectionTableHeaderProps {
|
|
36
|
+
table: Pick<PagedCollectionDescriptor, "id" | "name" | "icon" | "fields"> | undefined;
|
|
37
|
+
/** May the actor rename the table and change its icon? */
|
|
38
|
+
canManage: boolean;
|
|
39
|
+
canWrite: boolean;
|
|
40
|
+
/** Throw to report a failure; the editor stays open with the message. */
|
|
41
|
+
onRename?: ((name: string) => void | Promise<void>) | undefined;
|
|
42
|
+
onIconChange?: ((icon: string) => void | Promise<void>) | undefined;
|
|
43
|
+
/** Toolbar buttons (refresh, permissions, AI, …) rendered on the right. */
|
|
44
|
+
actions?: ReactNode;
|
|
45
|
+
locale?: PagedCollectionLocale;
|
|
46
|
+
icons?: Readonly<Record<string, {
|
|
47
|
+
label: string;
|
|
48
|
+
path: string;
|
|
49
|
+
}>>;
|
|
50
|
+
}
|
|
51
|
+
/** Table title row: icon picker, inline rename (double click / Enter / F2) and a summary line. */
|
|
52
|
+
export declare function PagedCollectionTableHeader(props: PagedCollectionTableHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
3
|
+
import { type PagedIconName } from "./icons.js";
|
|
4
|
+
export declare const CollectionViewControlsDisabled: import("react").Context<boolean>;
|
|
5
|
+
/** Native controls use a portal so grid clipping and frozen cells cannot hide the panel. */
|
|
6
|
+
export declare function FallbackPopover({ label, trigger, defaultOpen, disabled, menu, children, }: {
|
|
7
|
+
label: string;
|
|
8
|
+
trigger: ReactNode;
|
|
9
|
+
defaultOpen?: boolean | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
menu?: boolean;
|
|
12
|
+
children: (close: () => void) => ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
/** Host popovers and native fallbacks share the same content and close action. */
|
|
15
|
+
export declare function ToolbarPopover({ ui, label, defaultOpen, icon, chevron, quiet, active, children, }: {
|
|
16
|
+
ui: CollectionUiSlots | undefined;
|
|
17
|
+
label: string;
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
icon?: PagedIconName;
|
|
20
|
+
chevron?: boolean;
|
|
21
|
+
quiet?: boolean;
|
|
22
|
+
active?: boolean;
|
|
23
|
+
children: ReactNode | ((close: () => void) => ReactNode);
|
|
24
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
3
|
+
import { type PagedIconName } from "./icons.js";
|
|
4
|
+
/** Filled primary action look for native fallbacks; hosts' own themes read the same CSS variables. */
|
|
5
|
+
export declare const primaryButtonStyle: CSSProperties;
|
|
6
|
+
export declare function UiButton({ ui, style, variant, size, children, disabled, onClick, title, ariaLabel, icon, iconOnly, badge, }: {
|
|
7
|
+
ui: CollectionUiSlots | undefined;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
variant?: "default" | "outline" | "ghost";
|
|
10
|
+
size?: "sm" | "icon";
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
onClick?: (() => void) | undefined;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
ariaLabel?: string | undefined;
|
|
16
|
+
/** Leading glyph. */
|
|
17
|
+
icon?: PagedIconName | undefined;
|
|
18
|
+
/** Show only the glyph; the label stays as the accessible name and tooltip. Needs `ariaLabel`. */
|
|
19
|
+
iconOnly?: boolean | undefined;
|
|
20
|
+
/** A small dot on the glyph, e.g. unsaved changes. */
|
|
21
|
+
badge?: boolean | undefined;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
export declare function UiSelect({ ui, value, options, onChange, disabled, label, style, "aria-describedby": describedBy, "aria-invalid": invalid, }: {
|
|
24
|
+
ui: CollectionUiSlots | undefined;
|
|
25
|
+
value: string;
|
|
26
|
+
options: ReadonlyArray<{
|
|
27
|
+
value: string;
|
|
28
|
+
label: string;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
onChange: (value: string) => void;
|
|
32
|
+
disabled?: boolean | undefined;
|
|
33
|
+
label: string;
|
|
34
|
+
style?: CSSProperties;
|
|
35
|
+
"aria-describedby"?: string | undefined;
|
|
36
|
+
"aria-invalid"?: boolean | undefined;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
/** Browser-native modal focus containment for hosts without a confirmation slot. */
|
|
39
|
+
export declare function NativeConfirmation({ label, busy, onCancel, children, alert, }: {
|
|
40
|
+
label: string;
|
|
41
|
+
busy: boolean;
|
|
42
|
+
onCancel: () => void;
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
alert?: boolean;
|
|
45
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type PagedCollectionField, type PagedCollectionView } from "@uibot/contracts";
|
|
2
|
+
import type { PagedCollectionGridProps } from "../paged-collection-grid.js";
|
|
3
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
4
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
5
|
+
/** Optional blocks of the view settings panel. Hosts opt in; everything is off by default. */
|
|
6
|
+
export interface PagedViewSettingsSections {
|
|
7
|
+
/** Condition editor writing `view.filter`. */
|
|
8
|
+
filter?: boolean;
|
|
9
|
+
/** Column visibility, order, row-number and record-id toggles. */
|
|
10
|
+
columns?: boolean;
|
|
11
|
+
/** Single-field sort writing `view.sort`. */
|
|
12
|
+
sort?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface SectionProps {
|
|
15
|
+
fields: PagedCollectionField[];
|
|
16
|
+
view: PagedCollectionView;
|
|
17
|
+
onChange(view: PagedCollectionView): void;
|
|
18
|
+
locale?: PagedCollectionLocale | undefined;
|
|
19
|
+
ui?: CollectionUiSlots | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare function ViewFilterSection({ fields, view, onChange, locale, ui, editor, }: SectionProps & {
|
|
22
|
+
editor?: {
|
|
23
|
+
renderCellEditor?: PagedCollectionGridProps["renderCellEditor"] | undefined;
|
|
24
|
+
getRelationOptions?: PagedCollectionGridProps["getRelationOptions"] | undefined;
|
|
25
|
+
/** Offer the full operator set and date modes (default true). */
|
|
26
|
+
advanced?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
/**
|
|
30
|
+
* Ordered sort keys: each row is a field and a direction, earlier rows win, and a field can be used
|
|
31
|
+
* once. Rows reorder with the arrows. No keys means the host's default order.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ViewSortSection({ fields, view, onChange, locale, ui }: SectionProps): import("react").JSX.Element;
|
|
34
|
+
export declare function ViewColumnsSection({ fields, view, onChange, locale, ui, bare, }: SectionProps & {
|
|
35
|
+
bare?: boolean;
|
|
36
|
+
}): import("react").JSX.Element;
|
|
37
|
+
/** Grid grouping as an "add row": no group shows an add button, a group shows one removable row. */
|
|
38
|
+
export declare function ViewGroupSection({ fields, view, onChange, locale, ui }: SectionProps): import("react").JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PagedCollectionView, PagedCollectionViewType } from "@uibot/contracts";
|
|
2
|
+
import { type PagedCollectionLocale } from "../collection-grid/paged-locale.js";
|
|
3
|
+
import type { CollectionUiSlots } from "../collection-ui.js";
|
|
4
|
+
export interface CollectionViewTabsProps {
|
|
5
|
+
views: PagedCollectionView[];
|
|
6
|
+
activeId: string;
|
|
7
|
+
/** Shows an unsaved marker on the active tab. */
|
|
8
|
+
dirty?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
locale?: PagedCollectionLocale;
|
|
11
|
+
ui?: CollectionUiSlots;
|
|
12
|
+
/** View types offered by the add menu. Defaults to all five. */
|
|
13
|
+
viewTypes?: ReadonlyArray<PagedCollectionViewType>;
|
|
14
|
+
/** Types the current schema cannot support (for example kanban without a select field). */
|
|
15
|
+
disabledViewTypes?: ReadonlyArray<PagedCollectionViewType>;
|
|
16
|
+
onSelect(id: string): void;
|
|
17
|
+
/** Present enables the add menu. */
|
|
18
|
+
onAdd?(type: PagedCollectionViewType): void;
|
|
19
|
+
/** Present enables rename by double click, F2 and the context menu. */
|
|
20
|
+
onRename?(id: string, name: string): void;
|
|
21
|
+
/** Present enables delete from the context menu and the Delete key. The last view is protected. */
|
|
22
|
+
onDelete?(id: string): void;
|
|
23
|
+
/** Present enables duplicate in the context menu. */
|
|
24
|
+
onDuplicate?(id: string): void;
|
|
25
|
+
/** Present enables reordering by drag and drop and Alt+Arrow keys; receives every view id in the new order. */
|
|
26
|
+
onReorder?(viewIds: string[]): void;
|
|
27
|
+
}
|
|
28
|
+
/** `ids` with `moved` placed before or after `target`. */
|
|
29
|
+
export declare function reorderViewIds(ids: readonly string[], moved: string, target: string, placeAfter: boolean): string[];
|
|
30
|
+
/**
|
|
31
|
+
* View switcher in the style of Feishu / Airtable: one tab per view, double click or F2
|
|
32
|
+
* renames, a context menu offers rename, duplicate and delete, and an add menu creates a
|
|
33
|
+
* view of any allowed type. The component owns interaction only; the host owns persistence.
|
|
34
|
+
*/
|
|
35
|
+
export declare function CollectionViewTabs(props: CollectionViewTabsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type PagedCollectionField, type PagedCollectionView } from "@uibot/contracts";
|
|
2
|
+
import { ViewFilterSection, type PagedViewSettingsSections } from "./collection-views/view-settings-sections.js";
|
|
3
|
+
import { type PagedCollectionGridFeaturesInput } from "./collection-grid/features.js";
|
|
4
|
+
import { type PagedCollectionLocale } from "./collection-grid/paged-locale.js";
|
|
5
|
+
import type { CollectionUiSlots } from "./collection-ui.js";
|
|
6
|
+
export type { CollectionMenuItem, CollectionUiSlots } from "./collection-ui.js";
|
|
7
|
+
export { PagedCollectionFilterBuilder, type PagedFilterBuilderProps, } from "./collection-views/filter-builder.js";
|
|
8
|
+
export { dateModeLabel, filterOperatorLabel, pagedFilterSummary, } from "./collection-grid/filter-labels.js";
|
|
9
|
+
export type { PagedViewSettingsSections } from "./collection-views/view-settings-sections.js";
|
|
10
|
+
export { PAGED_TABLE_ICONS, PagedCollectionTableHeader, PagedCollectionTableList, PagedTableIcon, type PagedCollectionTableHeaderProps, type PagedCollectionTableListProps, } from "./collection-views/table-nav.js";
|
|
11
|
+
export { PagedCollectionRecordCreator, type PagedCollectionRecordCreatorProps, } from "./collection-views/record-creator.js";
|
|
12
|
+
export { PagedCollectionSchemaEditor, type PagedCollectionSchemaEditorProps, type PagedSchemaFieldType, } from "./collection-views/schema-editor.js";
|
|
13
|
+
export { CollectionViewTabs, type CollectionViewTabsProps, } from "./collection-views/view-tabs.js";
|
|
14
|
+
export { CollectionAggregateRows, CollectionAggregateSummary, type CollectionAggregateProps, } from "./collection-views/aggregate.js";
|
|
15
|
+
export { CollectionKanban } from "./collection-views/board.js";
|
|
16
|
+
export { CollectionGallery } from "./collection-views/gallery.js";
|
|
17
|
+
export { CollectionCalendar } from "./collection-views/calendar.js";
|
|
18
|
+
export { CollectionForm, CollectionRecordEditor, type CollectionViewProps, } from "./collection-views/shared.js";
|
|
19
|
+
export declare function CollectionViewSettings({ fields, view, onChange, locale, ui, features, sections, filterEditor, grouping, rowHeight, }: {
|
|
20
|
+
fields: PagedCollectionField[];
|
|
21
|
+
view: PagedCollectionView;
|
|
22
|
+
onChange(view: PagedCollectionView): void;
|
|
23
|
+
locale?: PagedCollectionLocale;
|
|
24
|
+
ui?: CollectionUiSlots;
|
|
25
|
+
/** `viewTypes` limits the offered view types; `groupBy` adds grid grouping. */
|
|
26
|
+
features?: PagedCollectionGridFeaturesInput;
|
|
27
|
+
/** Extra panel blocks (filter, columns, sort). Off by default so existing callers are unchanged. */
|
|
28
|
+
sections?: PagedViewSettingsSections;
|
|
29
|
+
/** Passed to the filter block so conditions can edit dates, relations and host-specific types. */
|
|
30
|
+
filterEditor?: Parameters<typeof ViewFilterSection>[0]["editor"];
|
|
31
|
+
/** Set false when the host shows grouping as its own toolbar control. */
|
|
32
|
+
grouping?: boolean;
|
|
33
|
+
/** Set false when row height is its own toolbar control. */
|
|
34
|
+
rowHeight?: boolean;
|
|
35
|
+
}): import("react").JSX.Element;
|