@vef-framework-react/approval 2.12.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/LICENSE +201 -0
- package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/api/admin-api.cjs +1 -0
- package/dist/cjs/api/category-api.cjs +1 -0
- package/dist/cjs/api/delegation-api.cjs +1 -0
- package/dist/cjs/api/flow-api.cjs +1 -0
- package/dist/cjs/api/index.cjs +1 -0
- package/dist/cjs/api/instance-api.cjs +1 -0
- package/dist/cjs/api/my-api.cjs +1 -0
- package/dist/cjs/api/query.cjs +1 -0
- package/dist/cjs/components/detail/action-modals.cjs +1 -0
- package/dist/cjs/components/detail/admin.cjs +1 -0
- package/dist/cjs/components/detail/drawer.cjs +1 -0
- package/dist/cjs/components/detail/index.cjs +1 -0
- package/dist/cjs/components/flow-graph/index.cjs +1 -0
- package/dist/cjs/components/form-panel/index.cjs +1 -0
- package/dist/cjs/components/format.cjs +1 -0
- package/dist/cjs/components/icon.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -0
- package/dist/cjs/components/principal/index.cjs +1 -0
- package/dist/cjs/components/status/colors.cjs +1 -0
- package/dist/cjs/components/status/index.cjs +1 -0
- package/dist/cjs/components/status/labels.cjs +1 -0
- package/dist/cjs/components/timeline/index.cjs +1 -0
- package/dist/cjs/components/user/index.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/pages/admin-page/index.cjs +1 -0
- package/dist/cjs/pages/admin-page/instances.cjs +1 -0
- package/dist/cjs/pages/admin-page/metrics.cjs +1 -0
- package/dist/cjs/pages/admin-page/projections.cjs +1 -0
- package/dist/cjs/pages/admin-page/tasks.cjs +1 -0
- package/dist/cjs/pages/category-page/columns.cjs +1 -0
- package/dist/cjs/pages/category-page/form.cjs +1 -0
- package/dist/cjs/pages/category-page/index.cjs +1 -0
- package/dist/cjs/pages/delegation-page/columns.cjs +1 -0
- package/dist/cjs/pages/delegation-page/form.cjs +1 -0
- package/dist/cjs/pages/delegation-page/index.cjs +1 -0
- package/dist/cjs/pages/flow-page/columns.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/basic-step.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/flow-step.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/form-step.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/index.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/review-step.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/types.cjs +1 -0
- package/dist/cjs/pages/flow-page/index.cjs +1 -0
- package/dist/cjs/pages/flow-page/search.cjs +1 -0
- package/dist/cjs/pages/flow-page/versions.cjs +1 -0
- package/dist/cjs/pages/index.cjs +1 -0
- package/dist/cjs/pages/initiate-page/index.cjs +1 -0
- package/dist/cjs/pages/initiate-page/start-drawer.cjs +1 -0
- package/dist/cjs/pages/my-instances-page/index.cjs +1 -0
- package/dist/cjs/pages/task-center-page/index.cjs +1 -0
- package/dist/cjs/permissions.cjs +1 -0
- package/dist/cjs/plugins/index.cjs +1 -0
- package/dist/cjs/types/enums.cjs +1 -0
- package/dist/cjs/types/index.cjs +1 -0
- package/dist/es/api/admin-api.js +33 -0
- package/dist/es/api/category-api.js +17 -0
- package/dist/es/api/delegation-api.js +21 -0
- package/dist/es/api/flow-api.js +22 -0
- package/dist/es/api/index.js +9 -0
- package/dist/es/api/instance-api.js +27 -0
- package/dist/es/api/my-api.js +29 -0
- package/dist/es/api/query.js +14 -0
- package/dist/es/components/detail/action-modals.js +280 -0
- package/dist/es/components/detail/admin.js +147 -0
- package/dist/es/components/detail/drawer.js +21 -0
- package/dist/es/components/detail/index.js +392 -0
- package/dist/es/components/flow-graph/index.js +218 -0
- package/dist/es/components/form-panel/index.js +23 -0
- package/dist/es/components/format.js +16 -0
- package/dist/es/components/icon.js +13 -0
- package/dist/es/components/index.js +14 -0
- package/dist/es/components/principal/index.js +31 -0
- package/dist/es/components/status/colors.js +39 -0
- package/dist/es/components/status/index.js +41 -0
- package/dist/es/components/status/labels.js +94 -0
- package/dist/es/components/timeline/index.js +173 -0
- package/dist/es/components/user/index.js +64 -0
- package/dist/es/index.js +34 -0
- package/dist/es/pages/admin-page/index.js +67 -0
- package/dist/es/pages/admin-page/instances.js +148 -0
- package/dist/es/pages/admin-page/metrics.js +153 -0
- package/dist/es/pages/admin-page/projections.js +122 -0
- package/dist/es/pages/admin-page/tasks.js +170 -0
- package/dist/es/pages/category-page/columns.js +56 -0
- package/dist/es/pages/category-page/form.js +106 -0
- package/dist/es/pages/category-page/index.js +136 -0
- package/dist/es/pages/delegation-page/columns.js +60 -0
- package/dist/es/pages/delegation-page/form.js +117 -0
- package/dist/es/pages/delegation-page/index.js +122 -0
- package/dist/es/pages/flow-page/columns.js +81 -0
- package/dist/es/pages/flow-page/designer/basic-step.js +396 -0
- package/dist/es/pages/flow-page/designer/flow-step.js +41 -0
- package/dist/es/pages/flow-page/designer/form-step.js +87 -0
- package/dist/es/pages/flow-page/designer/index.js +294 -0
- package/dist/es/pages/flow-page/designer/review-step.js +132 -0
- package/dist/es/pages/flow-page/designer/types.js +40 -0
- package/dist/es/pages/flow-page/index.js +99 -0
- package/dist/es/pages/flow-page/search.js +53 -0
- package/dist/es/pages/flow-page/versions.js +94 -0
- package/dist/es/pages/index.js +12 -0
- package/dist/es/pages/initiate-page/index.js +168 -0
- package/dist/es/pages/initiate-page/start-drawer.js +118 -0
- package/dist/es/pages/my-instances-page/index.js +223 -0
- package/dist/es/pages/task-center-page/index.js +182 -0
- package/dist/es/permissions.js +48 -0
- package/dist/es/plugins/index.js +34 -0
- package/dist/es/types/enums.js +12 -0
- package/dist/es/types/index.js +3 -0
- package/dist/types/api/admin-api.d.ts +30 -0
- package/dist/types/api/category-api.d.ts +17 -0
- package/dist/types/api/delegation-api.d.ts +18 -0
- package/dist/types/api/flow-api.d.ts +34 -0
- package/dist/types/api/index.d.ts +7 -0
- package/dist/types/api/instance-api.d.ts +22 -0
- package/dist/types/api/my-api.d.ts +29 -0
- package/dist/types/api/query.d.ts +15 -0
- package/dist/types/components/detail/action-modals.d.ts +82 -0
- package/dist/types/components/detail/admin.d.ts +11 -0
- package/dist/types/components/detail/drawer.d.ts +17 -0
- package/dist/types/components/detail/index.d.ts +36 -0
- package/dist/types/components/flow-graph/index.d.ts +17 -0
- package/dist/types/components/form-panel/index.d.ts +38 -0
- package/dist/types/components/format.d.ts +10 -0
- package/dist/types/components/icon.d.ts +15 -0
- package/dist/types/components/index.d.ts +12 -0
- package/dist/types/components/principal/index.d.ts +18 -0
- package/dist/types/components/status/colors.d.ts +13 -0
- package/dist/types/components/status/index.d.ts +37 -0
- package/dist/types/components/status/labels.d.ts +34 -0
- package/dist/types/components/timeline/index.d.ts +11 -0
- package/dist/types/components/user/index.d.ts +38 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/pages/admin-page/index.d.ts +31 -0
- package/dist/types/pages/admin-page/instances.d.ts +9 -0
- package/dist/types/pages/admin-page/metrics.d.ts +9 -0
- package/dist/types/pages/admin-page/projections.d.ts +8 -0
- package/dist/types/pages/admin-page/tasks.d.ts +7 -0
- package/dist/types/pages/category-page/columns.d.ts +3 -0
- package/dist/types/pages/category-page/form.d.ts +25 -0
- package/dist/types/pages/category-page/index.d.ts +8 -0
- package/dist/types/pages/category-page/props.d.ts +24 -0
- package/dist/types/pages/delegation-page/columns.d.ts +3 -0
- package/dist/types/pages/delegation-page/form.d.ts +6 -0
- package/dist/types/pages/delegation-page/index.d.ts +7 -0
- package/dist/types/pages/delegation-page/props.d.ts +17 -0
- package/dist/types/pages/flow-page/columns.d.ts +12 -0
- package/dist/types/pages/flow-page/designer/basic-step.d.ts +20 -0
- package/dist/types/pages/flow-page/designer/flow-step.d.ts +16 -0
- package/dist/types/pages/flow-page/designer/form-step.d.ts +31 -0
- package/dist/types/pages/flow-page/designer/index.d.ts +20 -0
- package/dist/types/pages/flow-page/designer/review-step.d.ts +18 -0
- package/dist/types/pages/flow-page/designer/types.d.ts +52 -0
- package/dist/types/pages/flow-page/index.d.ts +11 -0
- package/dist/types/pages/flow-page/props.d.ts +24 -0
- package/dist/types/pages/flow-page/search.d.ts +8 -0
- package/dist/types/pages/flow-page/versions.d.ts +16 -0
- package/dist/types/pages/index.d.ts +8 -0
- package/dist/types/pages/initiate-page/index.d.ts +28 -0
- package/dist/types/pages/initiate-page/start-drawer.d.ts +23 -0
- package/dist/types/pages/my-instances-page/index.d.ts +16 -0
- package/dist/types/pages/task-center-page/index.d.ts +17 -0
- package/dist/types/permissions.d.ts +68 -0
- package/dist/types/plugins/index.d.ts +61 -0
- package/dist/types/types/admin.d.ts +185 -0
- package/dist/types/types/base.d.ts +36 -0
- package/dist/types/types/category.d.ts +37 -0
- package/dist/types/types/delegation.d.ts +38 -0
- package/dist/types/types/detail.d.ts +129 -0
- package/dist/types/types/enums.d.ts +81 -0
- package/dist/types/types/flow.d.ts +192 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/types/instance.d.ts +83 -0
- package/dist/types/types/my.d.ts +203 -0
- package/package.json +71 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FormRendererApi, FormSchema, PresentationDevice } from '@vef-framework-react/form-editor';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
import { FieldPermission, FormData } from '../../types';
|
|
4
|
+
export interface InstanceFormPanelProps {
|
|
5
|
+
/**
|
|
6
|
+
* The version-pinned host form-designer document. Absent for flows without
|
|
7
|
+
* a form — renders an empty state.
|
|
8
|
+
*/
|
|
9
|
+
schema?: FormSchema;
|
|
10
|
+
/**
|
|
11
|
+
* The instance's form data (already stripped server-side of fields this
|
|
12
|
+
* viewer may not see).
|
|
13
|
+
*/
|
|
14
|
+
formData?: FormData;
|
|
15
|
+
/**
|
|
16
|
+
* The server-resolved per-field interactivity clamp, applied verbatim.
|
|
17
|
+
*/
|
|
18
|
+
fieldPermissions?: Record<string, FieldPermission>;
|
|
19
|
+
/**
|
|
20
|
+
* Force the whole form read-only (viewers with nothing to execute).
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
device?: PresentationDevice;
|
|
24
|
+
/**
|
|
25
|
+
* Imperative handle: `submit()` runs the renderer's validation + submit
|
|
26
|
+
* pipeline, `getSubmitValues()` reads the writable subset without
|
|
27
|
+
* validating (the reject path).
|
|
28
|
+
*/
|
|
29
|
+
apiRef?: RefObject<FormRendererApi | null>;
|
|
30
|
+
onSubmit?: (values: Record<string, unknown>) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The instance form, rendered against the version-pinned schema with the
|
|
34
|
+
* viewer's field permissions clamped on: `hidden` unmounts, `visible` renders
|
|
35
|
+
* read-only, `editable`/`required` grant write strength. Field registries
|
|
36
|
+
* come from `ApprovalProvider` (defaulting to the approval profile).
|
|
37
|
+
*/
|
|
38
|
+
export declare function InstanceFormPanel({ schema, formData, fieldPermissions, disabled, device, apiRef, onSubmit }: InstanceFormPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a backend timestamp (`YYYY-MM-DD HH:mm:ss`) for display, or a dash
|
|
3
|
+
* when empty.
|
|
4
|
+
*/
|
|
5
|
+
export declare function formatTimestamp(value?: string | null): string;
|
|
6
|
+
/**
|
|
7
|
+
* Format a duration in seconds as a compact human-readable span (`3天2小时`,
|
|
8
|
+
* `45分钟`). Sub-minute durations render as `<1分钟`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatDurationSeconds(seconds: number): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface FlowIconProps {
|
|
2
|
+
/**
|
|
3
|
+
* The stored kebab-case lucide icon name (from `IconPicker`). Absent or
|
|
4
|
+
* empty renders nothing.
|
|
5
|
+
*/
|
|
6
|
+
name?: string | null;
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders a stored flow/category icon string. The single JSON-boundary
|
|
11
|
+
* narrowing to `DynamicIconName` lives here (mirroring the starter's menu
|
|
12
|
+
* icons) — `DynamicIcon` renders a fallback glyph for names it does not know,
|
|
13
|
+
* so a stale stored value degrades instead of breaking.
|
|
14
|
+
*/
|
|
15
|
+
export declare function FlowIcon({ name, size }: FlowIconProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { InstanceDetailPanel, InstanceHeader, type InstanceDetailPanelProps, type UrgeTarget } from './detail';
|
|
2
|
+
export { AdminInstanceDetailPanel, type AdminInstanceDetailPanelProps } from './detail/admin';
|
|
3
|
+
export { InstanceDetailDrawer, type InstanceDetailDrawerProps } from './detail/drawer';
|
|
4
|
+
export { InstanceFlowGraphViewer, type InstanceFlowGraphViewerProps } from './flow-graph';
|
|
5
|
+
export { InstanceFormPanel, type InstanceFormPanelProps } from './form-panel';
|
|
6
|
+
export { formatDurationSeconds, formatTimestamp } from './format';
|
|
7
|
+
export { PrincipalSelect, type PrincipalSelectProps } from './principal';
|
|
8
|
+
export { InstanceStatusTag, NodeProgressTag, ProjectionStatusTag, TaskStatusTag, VersionStatusTag } from './status';
|
|
9
|
+
export { BINDING_PROJECTION_STATUS_COLORS, INSTANCE_STATUS_COLORS, NODE_PROGRESS_COLORS, TASK_STATUS_COLORS, VERSION_STATUS_COLORS } from './status/colors';
|
|
10
|
+
export { ACTIVITY_ACTION_LABELS, BINDING_PROJECTION_STATUS_LABELS, BINDING_PROJECTION_STATUS_OPTIONS, INSTANCE_STATUS_LABELS, INSTANCE_STATUS_OPTIONS, NODE_PROGRESS_LABELS, PROCESS_TASK_ACTION_LABELS, TASK_STATUS_LABELS, TASK_STATUS_OPTIONS, VERSION_STATUS_LABELS } from './status/labels';
|
|
11
|
+
export { InstanceTimeline, type InstanceTimelineProps } from './timeline';
|
|
12
|
+
export { UserGroup, UserLabel, type UserGroupProps, type UserLabelProps } from './user';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PrincipalKind } from '@vef-framework-react/approval-flow-editor';
|
|
2
|
+
export interface PrincipalSelectProps {
|
|
3
|
+
kind: PrincipalKind;
|
|
4
|
+
value: string[];
|
|
5
|
+
onChange: (ids: string[]) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Cap the selection at this many entries (enforced on change).
|
|
9
|
+
*/
|
|
10
|
+
maxCount?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A principal (user / role / department) selection field: renders the host's
|
|
14
|
+
* picker from `ApprovalProvider` when one is wired for the kind, else
|
|
15
|
+
* degrades to a plain id-tags input so the surrounding dialog stays
|
|
16
|
+
* functional.
|
|
17
|
+
*/
|
|
18
|
+
export declare function PrincipalSelect({ kind, value, onChange, disabled, maxCount }: PrincipalSelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BindingProjectionStatus, InstanceStatus, NodeProgressStatus, TaskStatus, VersionStatus } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Status colors, expressed as antd Tag color tokens so they resolve through
|
|
4
|
+
* the framework theme (and flip with the dark algorithm) with no hardcoding.
|
|
5
|
+
* One semantic system across every approval view: blue = in motion, green =
|
|
6
|
+
* positive outcome, red = negative outcome, orange = sent back / needs the
|
|
7
|
+
* applicant, gray = inert.
|
|
8
|
+
*/
|
|
9
|
+
export declare const INSTANCE_STATUS_COLORS: Record<InstanceStatus, string>;
|
|
10
|
+
export declare const TASK_STATUS_COLORS: Record<TaskStatus, string>;
|
|
11
|
+
export declare const NODE_PROGRESS_COLORS: Record<NodeProgressStatus, string>;
|
|
12
|
+
export declare const VERSION_STATUS_COLORS: Record<VersionStatus, string>;
|
|
13
|
+
export declare const BINDING_PROJECTION_STATUS_COLORS: Record<BindingProjectionStatus, string>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BindingProjectionStatus, InstanceStatus, NodeProgressStatus, TaskStatus, VersionStatus } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* An instance lifecycle status as a colored tag.
|
|
4
|
+
*/
|
|
5
|
+
export declare function InstanceStatusTag({ status }: {
|
|
6
|
+
status: InstanceStatus;
|
|
7
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Narrows a plain status string (participant statuses arrive untyped) to the
|
|
10
|
+
* task status vocabulary.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isTaskStatus(value: string): value is TaskStatus;
|
|
13
|
+
/**
|
|
14
|
+
* A task lifecycle status as a colored tag. Unrecognized values (participant
|
|
15
|
+
* statuses arrive as plain strings) render as a neutral tag.
|
|
16
|
+
*/
|
|
17
|
+
export declare function TaskStatusTag({ status }: {
|
|
18
|
+
status: TaskStatus | string;
|
|
19
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* A node's runtime progress as a colored tag.
|
|
22
|
+
*/
|
|
23
|
+
export declare function NodeProgressTag({ status }: {
|
|
24
|
+
status: NodeProgressStatus;
|
|
25
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* A flow version status as a colored tag.
|
|
28
|
+
*/
|
|
29
|
+
export declare function VersionStatusTag({ status }: {
|
|
30
|
+
status: VersionStatus;
|
|
31
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* A business-projection convergence status as a colored tag.
|
|
34
|
+
*/
|
|
35
|
+
export declare function ProjectionStatusTag({ status }: {
|
|
36
|
+
status: BindingProjectionStatus;
|
|
37
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ActivityAction, BindingProjectionStatus, InstanceStatus, NodeProgressStatus, ProcessTaskAction, TaskStatus, VersionStatus } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Display labels for the runtime vocabularies, in the framework's default
|
|
4
|
+
* language. Each map is total over its union so a missing entry is a type
|
|
5
|
+
* error when the backend vocabulary grows.
|
|
6
|
+
*/
|
|
7
|
+
export declare const INSTANCE_STATUS_LABELS: Record<InstanceStatus, string>;
|
|
8
|
+
export declare const TASK_STATUS_LABELS: Record<TaskStatus, string>;
|
|
9
|
+
export declare const NODE_PROGRESS_LABELS: Record<NodeProgressStatus, string>;
|
|
10
|
+
export declare const VERSION_STATUS_LABELS: Record<VersionStatus, string>;
|
|
11
|
+
export declare const BINDING_PROJECTION_STATUS_LABELS: Record<BindingProjectionStatus, string>;
|
|
12
|
+
export declare const ACTIVITY_ACTION_LABELS: Record<ActivityAction, string>;
|
|
13
|
+
export declare const PROCESS_TASK_ACTION_LABELS: Record<ProcessTaskAction, string>;
|
|
14
|
+
/**
|
|
15
|
+
* Options for an instance-status select.
|
|
16
|
+
*/
|
|
17
|
+
export declare const INSTANCE_STATUS_OPTIONS: {
|
|
18
|
+
label: string;
|
|
19
|
+
value: InstanceStatus;
|
|
20
|
+
}[];
|
|
21
|
+
/**
|
|
22
|
+
* Options for a task-status select.
|
|
23
|
+
*/
|
|
24
|
+
export declare const TASK_STATUS_OPTIONS: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: TaskStatus;
|
|
27
|
+
}[];
|
|
28
|
+
/**
|
|
29
|
+
* Options for a binding-projection-status select.
|
|
30
|
+
*/
|
|
31
|
+
export declare const BINDING_PROJECTION_STATUS_OPTIONS: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: BindingProjectionStatus;
|
|
34
|
+
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TimelineEntry } from '../../types';
|
|
2
|
+
export interface InstanceTimelineProps {
|
|
3
|
+
timeline: TimelineEntry[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The chronological transit record of an instance: one entry per traversed
|
|
7
|
+
* node (a rollback redo produces a second entry) plus the withdraw/terminate
|
|
8
|
+
* milestones. Participants, carbon copies, and side activities render
|
|
9
|
+
* beneath each node header.
|
|
10
|
+
*/
|
|
11
|
+
export declare function InstanceTimeline({ timeline }: InstanceTimelineProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UserInfo } from '../../types';
|
|
2
|
+
export interface UserLabelProps {
|
|
3
|
+
user: UserInfo;
|
|
4
|
+
/**
|
|
5
|
+
* Render the avatar in front of the name.
|
|
6
|
+
*
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
showAvatar?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Avatar size in pixels.
|
|
12
|
+
*
|
|
13
|
+
* @default 22
|
|
14
|
+
*/
|
|
15
|
+
avatarSize?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A person snapshot as avatar + name, with the department (when the snapshot
|
|
19
|
+
* carries one) surfaced in the tooltip. Renders the id when the name is empty
|
|
20
|
+
* — the backend returns missing users with an empty name rather than
|
|
21
|
+
* omitting them.
|
|
22
|
+
*/
|
|
23
|
+
export declare function UserLabel({ user, showAvatar, avatarSize }: UserLabelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface UserGroupProps {
|
|
25
|
+
users: UserInfo[];
|
|
26
|
+
/**
|
|
27
|
+
* Collapse into `+N` beyond this count.
|
|
28
|
+
*
|
|
29
|
+
* @default 5
|
|
30
|
+
*/
|
|
31
|
+
maxCount?: number;
|
|
32
|
+
avatarSize?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A compact list of person snapshots, collapsing the overflow into a `+N`
|
|
36
|
+
* avatar whose tooltip lists the hidden names.
|
|
37
|
+
*/
|
|
38
|
+
export declare function UserGroup({ users, maxCount, avatarSize }: UserGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './api';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export * from './pages';
|
|
4
|
+
export { APPROVAL_PERMISSIONS } from './permissions';
|
|
5
|
+
export type { ActionLogPermissionCodes, ApprovalPermissions, BindingPermissionCodes, CategoryPermissionCodes, DelegationPermissionCodes, FlowPermissionCodes, InstancePermissionCodes, MetricsPermissionCodes, TaskPermissionCodes } from './permissions';
|
|
6
|
+
export { ApprovalProvider, toEditorPlugins, useApprovalPlugins } from './plugins';
|
|
7
|
+
export type { ApprovalPlugins, ApprovalProviderProps, ResolvedApprovalPlugins } from './plugins';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export type { EditorPlugins, PickerProps, PrincipalKind } from '@vef-framework-react/approval-flow-editor';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ApprovalAdminPageProps {
|
|
3
|
+
/**
|
|
4
|
+
* Override the permission codes gating each console tab.
|
|
5
|
+
*/
|
|
6
|
+
permissions?: {
|
|
7
|
+
instanceQuery?: string;
|
|
8
|
+
instanceDetail?: string;
|
|
9
|
+
instanceTerminate?: string;
|
|
10
|
+
taskQuery?: string;
|
|
11
|
+
taskReassign?: string;
|
|
12
|
+
bindingQuery?: string;
|
|
13
|
+
bindingRetry?: string;
|
|
14
|
+
metricsQuery?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Scope the metrics view to one tenant; omit for the caller's default
|
|
18
|
+
* scope.
|
|
19
|
+
*/
|
|
20
|
+
tenantId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional page title.
|
|
23
|
+
*/
|
|
24
|
+
title?: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The approval supervision console: cross-user instances and tasks, business
|
|
28
|
+
* write-back convergence, and engine metrics — each tab gated by its own
|
|
29
|
+
* permission and hidden when the caller lacks it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function ApprovalAdminPage({ permissions, tenantId, title }: ApprovalAdminPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface InstancesPanelProps {
|
|
2
|
+
detailPermission: string;
|
|
3
|
+
terminatePermission: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Cross-user instance supervision: the paginated list, the read-only admin
|
|
7
|
+
* detail (with the audit trail), and force termination.
|
|
8
|
+
*/
|
|
9
|
+
export declare function InstancesPanel({ detailPermission, terminatePermission }: InstancesPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface MetricsPanelProps {
|
|
2
|
+
tenantId?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* The engine health dashboard: instance/task throughput by status, timeout
|
|
6
|
+
* pressure, average end-to-end duration, and business write-back
|
|
7
|
+
* convergence.
|
|
8
|
+
*/
|
|
9
|
+
export declare function MetricsPanel({ tenantId }: MetricsPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ProjectionsPanelProps {
|
|
2
|
+
retryPermission: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Business write-back convergence: every bound record's desired vs applied
|
|
6
|
+
* state, with immediate retry for failed eventual projections.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ProjectionsPanel({ retryPermission }: ProjectionsPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface TasksPanelProps {
|
|
2
|
+
reassignPermission: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Cross-user task supervision with admin reassignment for pending tasks.
|
|
6
|
+
*/
|
|
7
|
+
export declare function TasksPanel({ reassignPermission }: TasksPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FlowCategory } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* One parent-selector option in the framework's `DataOption` shape.
|
|
4
|
+
*/
|
|
5
|
+
export interface CategoryTreeOption {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
children?: CategoryTreeOption[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Map the loaded category tree into TreeSelect options. The node being
|
|
12
|
+
* edited (and thus its whole subtree) is excluded so a category can never be
|
|
13
|
+
* made its own descendant.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildCategoryTreeOptions(categories: FlowCategory[], excludeId?: string): CategoryTreeOption[];
|
|
16
|
+
export interface CategoryFormProps {
|
|
17
|
+
/**
|
|
18
|
+
* The loaded category tree, for the parent selector.
|
|
19
|
+
*/
|
|
20
|
+
treeOptions: CategoryTreeOption[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The create/update form body for a flow category.
|
|
24
|
+
*/
|
|
25
|
+
export declare function CategoryForm({ treeOptions }: CategoryFormProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApprovalCategoryPageProps } from './props';
|
|
2
|
+
export type { ApprovalCategoryPageProps } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* Full-page flow-category management: the category tree with inline
|
|
5
|
+
* create/update/delete. Deleting a category does not cascade — flows keep
|
|
6
|
+
* their category id.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ApprovalCategoryPage({ permissions, tenantId, columnStorageKey, title }: ApprovalCategoryPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CategoryPermissionCodes } from '../../permissions';
|
|
3
|
+
export interface ApprovalCategoryPageProps {
|
|
4
|
+
/**
|
|
5
|
+
* Override the permission codes the page gates its CRUD actions on.
|
|
6
|
+
* Defaults to `APPROVAL_PERMISSIONS.category`.
|
|
7
|
+
*/
|
|
8
|
+
permissions?: Partial<CategoryPermissionCodes>;
|
|
9
|
+
/**
|
|
10
|
+
* The tenant new categories are created under. Multi-tenant hosts pass the
|
|
11
|
+
* current tenant; single-tenant deployments keep the backend default.
|
|
12
|
+
*
|
|
13
|
+
* @default "default"
|
|
14
|
+
*/
|
|
15
|
+
tenantId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Storage key for the column-settings panel.
|
|
18
|
+
*/
|
|
19
|
+
columnStorageKey?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional page title rendered above the table.
|
|
22
|
+
*/
|
|
23
|
+
title?: ReactNode;
|
|
24
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApprovalDelegationPageProps } from './props';
|
|
2
|
+
export type { ApprovalDelegationPageProps } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* Full-page delegation management. Non-super-admin callers only see (and can
|
|
5
|
+
* only create) delegations they own as delegator — enforced server-side.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ApprovalDelegationPage({ permissions, columnStorageKey, title }: ApprovalDelegationPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DelegationPermissionCodes } from '../../permissions';
|
|
3
|
+
export interface ApprovalDelegationPageProps {
|
|
4
|
+
/**
|
|
5
|
+
* Override the permission codes the page gates its CRUD actions on.
|
|
6
|
+
* Defaults to `APPROVAL_PERMISSIONS.delegation`.
|
|
7
|
+
*/
|
|
8
|
+
permissions?: Partial<DelegationPermissionCodes>;
|
|
9
|
+
/**
|
|
10
|
+
* Storage key for the column-settings panel.
|
|
11
|
+
*/
|
|
12
|
+
columnStorageKey?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional page title rendered above the table.
|
|
15
|
+
*/
|
|
16
|
+
title?: ReactNode;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TableColumn } from '@vef-framework-react/components';
|
|
2
|
+
import { Flow } from '../../types';
|
|
3
|
+
import { CategoryTreeOption } from '../category-page/form';
|
|
4
|
+
/**
|
|
5
|
+
* Flatten the category tree into an id → name lookup.
|
|
6
|
+
*/
|
|
7
|
+
export declare function flattenCategoryNames(options: CategoryTreeOption[], into?: Map<string, string>): Map<string, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Build the flow columns closed over the category lookup, so category ids
|
|
10
|
+
* render as names.
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildFlowColumns(categoryNames: Map<string, string>): Array<TableColumn<Flow>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InitiatorParams } from '../../../types';
|
|
2
|
+
import { CategoryTreeOption } from '../../category-page/form';
|
|
3
|
+
import { FlowDraftBasic } from './types';
|
|
4
|
+
export interface BasicStepProps {
|
|
5
|
+
basic: FlowDraftBasic;
|
|
6
|
+
initiators: InitiatorParams[];
|
|
7
|
+
categoryOptions: CategoryTreeOption[];
|
|
8
|
+
/**
|
|
9
|
+
* The flow code is immutable after creation.
|
|
10
|
+
*/
|
|
11
|
+
isEditing: boolean;
|
|
12
|
+
onBasicChange: (patch: Partial<FlowDraftBasic>) => void;
|
|
13
|
+
onInitiatorsChange: (next: InitiatorParams[]) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Step 1 — the flow's settings: identity, labels, initiation permission, and
|
|
17
|
+
* the business binding. Everything here lands in `create`/`update`; the
|
|
18
|
+
* deployable definition follows in the next steps.
|
|
19
|
+
*/
|
|
20
|
+
export declare function BasicStep({ basic, initiators, categoryOptions, isEditing, onBasicChange, onInitiatorsChange }: BasicStepProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorPlugins, FlowDefinition, FlowValidationError } from '@vef-framework-react/approval-flow-editor';
|
|
2
|
+
export interface FlowStepProps {
|
|
3
|
+
/**
|
|
4
|
+
* Seed definition; honored on the editor's first mount only.
|
|
5
|
+
*/
|
|
6
|
+
value: FlowDefinition;
|
|
7
|
+
plugins: EditorPlugins;
|
|
8
|
+
errors: FlowValidationError[];
|
|
9
|
+
onChange: (definition: FlowDefinition) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Step 3 — design the flow graph. The field-permission and condition
|
|
13
|
+
* surfaces read the fields designed in step 2 via `plugins.formFields`; a
|
|
14
|
+
* structurally invalid graph blocks completion.
|
|
15
|
+
*/
|
|
16
|
+
export declare function FlowStep({ value, plugins, errors, onChange }: FlowStepProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ApprovalSchemaIssue } from '@vef-framework-react/approval-form-bridge';
|
|
2
|
+
import { DeviceRegistries, FormSchema } from '@vef-framework-react/form-editor';
|
|
3
|
+
import { StorageMode } from '../../../types';
|
|
4
|
+
export interface FormStepProps {
|
|
5
|
+
storageMode: StorageMode;
|
|
6
|
+
/**
|
|
7
|
+
* Seed for redesigning an existing flow; honored on the editor's first
|
|
8
|
+
* mount only.
|
|
9
|
+
*/
|
|
10
|
+
initialSchema?: FormSchema;
|
|
11
|
+
/**
|
|
12
|
+
* Save-gate diagnostics (structural + projection) for the current schema;
|
|
13
|
+
* errors block the next step, warnings are informational.
|
|
14
|
+
*/
|
|
15
|
+
issues: ApprovalSchemaIssue[];
|
|
16
|
+
/**
|
|
17
|
+
* The approval-profile registries, owned by the designer so the editor and
|
|
18
|
+
* the save gate share one instance.
|
|
19
|
+
*/
|
|
20
|
+
registries: DeviceRegistries;
|
|
21
|
+
onStorageModeChange: (mode: StorageMode) => void;
|
|
22
|
+
onSchemaChange: (schema: FormSchema) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Step 2 — design the form. The rich schema deploys verbatim
|
|
26
|
+
* (`DeployFlowCmd.FormSchema`); the backend derives the flat field list at
|
|
27
|
+
* deploy, and the storage mode decides how that model persists. The
|
|
28
|
+
* approval-form-bridge projection runs on change as a client-side pre-check
|
|
29
|
+
* of the server parser.
|
|
30
|
+
*/
|
|
31
|
+
export declare function FormStep({ storageMode, initialSchema, issues, registries, onStorageModeChange, onSchemaChange }: FormStepProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Flow } from '../../../types';
|
|
2
|
+
export interface FlowDesignerDrawerProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* The flow being redesigned; omit to create a new one. The published
|
|
6
|
+
* version's definition seeds the editors.
|
|
7
|
+
*/
|
|
8
|
+
flow?: Flow;
|
|
9
|
+
/**
|
|
10
|
+
* The tenant new flows are created under.
|
|
11
|
+
*/
|
|
12
|
+
tenantId: string;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The full-screen flow designer: settings → form → graph → review, submitted
|
|
17
|
+
* as one create/update → deploy → optional publish chain. Remounts per
|
|
18
|
+
* opening so editor seeds never leak between sessions.
|
|
19
|
+
*/
|
|
20
|
+
export declare function FlowDesignerDrawer({ open, flow, tenantId, onClose }: FlowDesignerDrawerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApprovalFormField } from '@vef-framework-react/approval-form-bridge';
|
|
2
|
+
import { FlowDraft } from './types';
|
|
3
|
+
export interface ReviewStepProps {
|
|
4
|
+
draft: FlowDraft;
|
|
5
|
+
/**
|
|
6
|
+
* The deploy-derived field inventory (from the client-side projection).
|
|
7
|
+
*/
|
|
8
|
+
fields: ApprovalFormField[];
|
|
9
|
+
versionDescription: string;
|
|
10
|
+
publishNow: boolean;
|
|
11
|
+
onVersionDescriptionChange: (value: string) => void;
|
|
12
|
+
onPublishNowChange: (value: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Step 4 — review the assembled draft and choose the release options. Submit
|
|
16
|
+
* runs create/update → deploy → optional publish as one chain.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ReviewStep({ draft, fields, versionDescription, publishNow, onVersionDescriptionChange, onPublishNowChange }: ReviewStepProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { FlowDefinition } from '@vef-framework-react/approval-flow-editor';
|
|
2
|
+
import { FormSchema } from '@vef-framework-react/form-editor';
|
|
3
|
+
import { BindingMode, BusinessBindingConfig, InitiatorParams, StorageMode } from '../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* The flow-settings half of the designer draft — everything
|
|
6
|
+
* `approval/flow.create` / `update` consumes.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlowDraftBasic {
|
|
9
|
+
tenantId: string;
|
|
10
|
+
code: string;
|
|
11
|
+
name: string;
|
|
12
|
+
categoryId: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
labels: Record<string, string>;
|
|
16
|
+
bindingMode: BindingMode;
|
|
17
|
+
businessBinding?: BusinessBindingConfig;
|
|
18
|
+
adminUserIds: string[];
|
|
19
|
+
isAllInitiationAllowed: boolean;
|
|
20
|
+
instanceTitleTemplate: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The complete designer draft: flow settings plus the deployable definition.
|
|
24
|
+
* The wizard assembles it across steps and the submit chain turns it into
|
|
25
|
+
* `create`/`update` → `deploy` → optional `publish_version`.
|
|
26
|
+
*/
|
|
27
|
+
export interface FlowDraft {
|
|
28
|
+
/**
|
|
29
|
+
* Present when redesigning an existing flow.
|
|
30
|
+
*/
|
|
31
|
+
flowId?: string;
|
|
32
|
+
basic: FlowDraftBasic;
|
|
33
|
+
initiators: InitiatorParams[];
|
|
34
|
+
storageMode: StorageMode;
|
|
35
|
+
formSchema: FormSchema | null;
|
|
36
|
+
flowDefinition: FlowDefinition;
|
|
37
|
+
}
|
|
38
|
+
export declare const EMPTY_FLOW_DEFINITION: FlowDefinition;
|
|
39
|
+
export declare function createEmptyDraft(tenantId: string): FlowDraft;
|
|
40
|
+
/**
|
|
41
|
+
* Mirrors the backend's business-identifier whitelist
|
|
42
|
+
* (`approval.ValidateBusinessIdentifier`): table / column names must be plain
|
|
43
|
+
* SQL identifiers.
|
|
44
|
+
*/
|
|
45
|
+
export declare const BUSINESS_IDENTIFIER_PATTERN: RegExp;
|
|
46
|
+
/**
|
|
47
|
+
* Client-side pre-check of the backend binding save gate
|
|
48
|
+
* (`binding.NormalizeConfig`): table, key columns, status column and
|
|
49
|
+
* instance-id column are mandatory, every name must be a plain SQL
|
|
50
|
+
* identifier, and status-mapping values must not be blank.
|
|
51
|
+
*/
|
|
52
|
+
export declare function isBindingValid(binding: BusinessBindingConfig | undefined): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApprovalFlowPageProps } from './props';
|
|
2
|
+
export { FlowDesignerDrawer, type FlowDesignerDrawerProps } from './designer';
|
|
3
|
+
export type { ApprovalFlowPageProps } from './props';
|
|
4
|
+
/**
|
|
5
|
+
* Full-page flow management: the flow list with label filtering, the
|
|
6
|
+
* full-screen designer (settings → form → graph → review, deployed and
|
|
7
|
+
* optionally published in one chain), version history, and activation.
|
|
8
|
+
* Designer and toggle mutations invalidate the list query, so the table
|
|
9
|
+
* refreshes without wiring callbacks through the drawer.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ApprovalFlowPage({ permissions, tenantId, columnStorageKey, title }: ApprovalFlowPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FlowPermissionCodes } from '../../permissions';
|
|
3
|
+
export interface ApprovalFlowPageProps {
|
|
4
|
+
/**
|
|
5
|
+
* Override the permission codes the page gates its actions on. Defaults to
|
|
6
|
+
* `APPROVAL_PERMISSIONS.flow`.
|
|
7
|
+
*/
|
|
8
|
+
permissions?: Partial<FlowPermissionCodes>;
|
|
9
|
+
/**
|
|
10
|
+
* The tenant new flows are created under. Multi-tenant hosts pass the
|
|
11
|
+
* current tenant; single-tenant deployments keep the backend default.
|
|
12
|
+
*
|
|
13
|
+
* @default "default"
|
|
14
|
+
*/
|
|
15
|
+
tenantId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Storage key for the column-settings panel.
|
|
18
|
+
*/
|
|
19
|
+
columnStorageKey?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional page title rendered above the table.
|
|
22
|
+
*/
|
|
23
|
+
title?: ReactNode;
|
|
24
|
+
}
|