openxiangda 1.0.264 → 1.0.266
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/README.md +35 -22
- package/lib/application-environments.js +15 -1
- package/lib/cli.js +57 -8
- package/openxiangda-skills/SKILL.md +16 -13
- package/openxiangda-skills/references/school-contact-relations.md +78 -60
- package/openxiangda-skills/skills/openxiangda-core/SKILL.md +1 -1
- package/openxiangda-skills/skills/openxiangda-page/SKILL.md +1 -1
- package/package.json +1 -1
- package/packages/sdk/dist/{ProcessPreview-DSUIJi5V.d.mts → ProcessPreview-Cyk6uv-w.d.mts} +3 -2
- package/packages/sdk/dist/{ProcessPreview-DSUIJi5V.d.ts → ProcessPreview-Cyk6uv-w.d.ts} +3 -2
- package/packages/sdk/dist/components/index.d.mts +42 -41
- package/packages/sdk/dist/components/index.d.ts +42 -41
- package/packages/sdk/dist/{dataManagementApi-p_HOhQnA.d.mts → dataManagementApi-4fSaCA5t.d.mts} +2 -2
- package/packages/sdk/dist/{dataManagementApi-Ro9itwm8.d.ts → dataManagementApi-CE8Zyj3a.d.ts} +2 -2
- package/packages/sdk/dist/runtime/index.d.mts +5 -4
- package/packages/sdk/dist/runtime/index.d.ts +5 -4
- package/packages/sdk/dist/runtime/react.d.mts +17 -10
- package/packages/sdk/dist/runtime/react.d.ts +17 -10
- package/templates/openxiangda-react-spa/AGENTS.md +9 -2
- package/templates/sy-lowcode-app-workspace/AGENTS.md +21 -20
|
@@ -157,7 +157,7 @@ An environment-managed release may intentionally replace complete Function/Autom
|
|
|
157
157
|
|
|
158
158
|
For an audited Runtime source rollback, managed `release ship`, recovery `release deploy`, and `release promote` accept `--allow-runtime-rollback --reason "..."` with a reason of at least 8 characters. This pair is scoped only to `runtime-stage` and never reaches resource stages or `app-finalize`. Ship freezes it in `ship.json`; production confirmation inherits it automatically. The default remains fail closed.
|
|
159
159
|
|
|
160
|
-
`release publish` is the normal whole-app entrypoint for legacy unmanaged workspaces: it verifies SDD without mutating reviewed files, waits for the promotion lease, freezes one App capture, stages the exact Form/Backend/Runtime children, resumes from a private execution journal, finalizes once, and releases the lease. Managed applications use two-phase `release ship` and its deployment-scoped journal. Individual candidate/deploy/test/fail/promote commands are recovery/diagnostic primitives. `release fail --deployment <id> --message <text> [--code <code>] [--details-json <JSON|file>] --environment preproduction` records an audited UAT failure only after verifying the deployment belongs to the selected preproduction environment; production targets and mismatched deployment identities fail before the write.
|
|
160
|
+
`release publish` is the normal whole-app entrypoint for legacy unmanaged workspaces: it verifies SDD without mutating reviewed files, waits for the promotion lease, freezes one App capture, stages the exact Form/Backend/Runtime children, resumes from a private execution journal, finalizes once, and releases the lease. For an approved historical-lineage catch-up, add `--adopt-online-baseline --adoption-reason "..."`; the pair reaches only exact `resource publish --only/--code` stages, never Form ensure, Runtime, or App finalize, and invalid or empty scopes fail before lease acquisition. Managed applications use two-phase `release ship` and its deployment-scoped journal. Individual candidate/deploy/test/fail/promote commands are recovery/diagnostic primitives. `release fail --deployment <id> --message <text> [--code <code>] [--details-json <JSON|file>] --environment preproduction` records an audited UAT failure only after verifying the deployment belongs to the selected preproduction environment; production targets and mismatched deployment identities fail before the write.
|
|
161
161
|
|
|
162
162
|
Reviewed bundle commands may retain `<profile>` as a template. The explicit real `release publish --profile <name>` value is bound to actual child argv without rewriting tracked SDD. React SPA page codes remain logical coverage targets and activate through the single Runtime child; they do not require PageRelease. If local lease state disappears, `release end --change <id>` reconciles a self-owned remote lease from the private execution journal and never reports inactive while a remote lease is active.
|
|
163
163
|
|
|
@@ -36,7 +36,7 @@ openxiangda workspace publish --profile <name> --page <pageCode>
|
|
|
36
36
|
- ✅ For external APIs use `src/resources/connectors/<code>.json` + `sdk.connector.invoke()`; for joined read-only lists use row data views + `sdk.dataView.query`; for stable dashboard metrics use aggregate data views + `sdk.dataView.stats`.
|
|
37
37
|
- ✅ Choose data view `storageMode` deliberately: `materialized` for refreshed reports/lists that tolerate delay, `live` for bounded real-time multi-form reads.
|
|
38
38
|
- ✅ For reusable backend orchestration use App Function (`src/functions/<functionCode>/index.ts` + `src/resources/functions/<functionCode>.json`) and call `sdk.function.invoke(code, { input })`; keep page components out of multi-table business orchestration.
|
|
39
|
-
- ✅ 家长、学生、教师、班主任身份或班级/监护关系页面使用 `sdk.organization.schoolContact.*`;先读 `references/school-contact-relations.md`。用 `SCHOOL_HEAD_TEACHER` 判断全局身份,用 `teachers.list({ classId, isHeadTeacher: true })`
|
|
39
|
+
- ✅ 家长、学生、教师、班主任身份或班级/监护关系页面使用 `sdk.organization.schoolContact.*`;先读 `references/school-contact-relations.md`。用 `SCHOOL_HEAD_TEACHER` 判断全局身份,用 `teachers.list({ classId, isHeadTeacher: true })` 判断具体班主任班级,并直接读取 `teacher.managedClasses` / `class.headTeachers`;默认使用已登录用户的租户内全部关系,仅在业务要求时声明 self/class 收紧范围,并保持服务端分页。
|
|
40
40
|
- ✅ Filters, search bars, modal forms, drawers, and inline edits use platform components for platform data fields, otherwise `antd` / `antd-mobile` controls.
|
|
41
41
|
- ❌ Single-file giant pages. Split per `references/best-practices.md`.
|
|
42
42
|
- ❌ Hardcoded `/view/...&isRenderNav=false` URLs scattered through page code; use the runtime navigation helper.
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
type FormSectionVariant = 'plain' | 'card';
|
|
4
5
|
type FormSectionAccent = 'blue' | 'green';
|
|
@@ -17,7 +18,7 @@ interface FormSectionProps {
|
|
|
17
18
|
contentClassName?: string;
|
|
18
19
|
children: React__default.ReactNode;
|
|
19
20
|
}
|
|
20
|
-
declare function FormSection({ title, description, variant, accent, icon, iconKey, collapsible, defaultCollapsed, className, titleClassName, contentClassName, children, }: FormSectionProps):
|
|
21
|
+
declare function FormSection({ title, description, variant, accent, icon, iconKey, collapsible, defaultCollapsed, className, titleClassName, contentClassName, children, }: FormSectionProps): react_jsx_runtime.JSX.Element;
|
|
21
22
|
|
|
22
23
|
/** 字段行为状态 */
|
|
23
24
|
type FieldBehavior = 'NORMAL' | 'READONLY' | 'DISABLED' | 'HIDDEN';
|
|
@@ -1289,4 +1290,4 @@ interface ProcessPreviewProps {
|
|
|
1289
1290
|
}
|
|
1290
1291
|
declare const ProcessPreview: React__default.FC<ProcessPreviewProps>;
|
|
1291
1292
|
|
|
1292
|
-
export { type
|
|
1293
|
+
export { type FormDataDeleteParams as $, type AddressFieldProps as A, type BaseFieldProps as B, type CascadeDateFieldProps as C, type DataFilter as D, type DepartmentSearchParams as E, type DepartmentSearchResult as F, type DepartmentSearchScope as G, type DepartmentSelectFieldProps as H, type DepartmentTreeNode as I, type DigitalSignatureFieldProps as J, type DigitalSignatureValue as K, type EditorChoiceOption as L, type EditorFieldProps as M, type EditorToolbarAction as N, type FieldBehavior as O, type FieldDefinition as P, type FieldLayoutNode as Q, type FieldValueSyncConfig as R, type FilePreviewCapability as S, type FilePreviewCapabilityBatch as T, type FilePreviewMetadata as U, type FilePreviewProvider as V, type FilePreviewRenderMode as W, type FilePreviewRequest as X, type FilePreviewSurface as Y, type FilePreviewType as Z, type FormAppearanceConfig as _, type AddressValue as a, type RuntimeAuthHeadersProvider as a$, type FormDataQueryParams as a0, type FormEffect as a1, type FormEffectAction as a2, type FormEffectCondition as a3, type FormEffectConditionOperator as a4, type FormEngineConfig as a5, type FormEngineMode as a6, type FormInstanceData as a7, type FormLayoutNode as a8, type FormRuntimeApi as a9, type LowcodePageNodeType as aA, type LowcodePageSchema as aB, type MultiSelectFieldProps as aC, type NumberFieldProps as aD, type OptionItem as aE, type OptionSourceConfig as aF, type OptionSourceType as aG, type PeopleShortcutConfig as aH, type PeopleShortcutType as aI, type PreparedFilePreview as aJ, type PreviewImageItem as aK, type PreviewParams as aL, type ProcessAction as aM, type ProcessBasicInfo as aN, type ProcessDefinition as aO, type ProcessNodeType as aP, ProcessPreview as aQ, type ProcessPreviewProps as aR, type ProcessRoute as aS, type ProcessStatus as aT, type ProcessTask as aU, type RadioFieldProps as aV, type ResubmitParams as aW, type ReturnParams as aX, type ReturnPolicy as aY, type ReturnableNode as aZ, type ReturnableNodeResult as a_, type FormRuntimeApiConfig as aa, type FormRuntimeConfig as ab, type FormSchema as ac, FormSection as ad, type FormSectionProps as ae, type FormSubmitBehavior as af, type FormTemplateConfig as ag, type GridLayoutCell as ah, type GridLayoutNode as ai, type ImageCompressionConfig as aj, type ImageCompressionVariantConfig as ak, type ImageFieldProps as al, type ImageVariant as am, type InitiatorSelectCandidate as an, type InitiatorSelectRequirement as ao, type InitiatorSelectScope as ap, type InitiatorSelectedApprovers as aq, type JSONFieldEditorContext as ar, type JSONFieldProps as as, type JSONFieldRendererContext as at, type LayoutVisibleWhen as au, type LinkedFormOptionConfig as av, type LocationFieldProps as aw, type LocationValue as ax, type LowcodePageMeta as ay, type LowcodePageNode as az, type ApprovalActionType as b, type RuntimeDataQueryParams as b0, type RuntimeDataQueryResult as b1, type RuntimeRequestConfig as b2, type RuntimeResponse as b3, type RuntimeUploadOptions as b4, type RuntimeUploadProvider as b5, type SaveTaskParams as b6, type SectionLayoutNode as b7, type SelectFieldProps as b8, type SerialNumberFieldProps as b9, type SignaturePoint as ba, type StandardFormPageMode as bb, type StatusMeta as bc, type StepLayoutItem as bd, type StepsLayoutNode as be, type SubFormColumn as bf, type SubFormFieldProps as bg, type TabLayoutItem as bh, type TabsLayoutNode as bi, type TaskStatus as bj, type TextAreaFieldProps as bk, type TextFieldProps as bl, type TextShortcutConfig as bm, type TextShortcutType as bn, type TransferParams as bo, type UserDisplayFormat as bp, type UserItem as bq, type UserSelectFieldProps as br, type ValidationPreset as bs, type ValidationRule as bt, type ViewPermissionQueryParams as bu, type ViewPermissionSummary as bv, type WithdrawParams as bw, type ApprovalPermission as c, ApprovalTimeline as d, type ApprovalTimelineProps as e, type ApproveParams as f, type AssociationFormConfig as g, type AssociationFormFieldProps as h, type AssociationValue as i, type AttachmentFieldProps as j, type AttachmentImageVariants as k, type AttachmentItem as l, type BaseLayoutNode as m, type CascadeSelectFieldProps as n, type ChangeRecord as o, type ChangeRecordListResponse as p, type ChangeRecordQueryParams as q, type CheckboxFieldProps as r, type DataLinkageCondition as s, type DataLinkageConfig as t, type DateFieldProps as u, type DateRangeRestriction as v, type DateRestrictionConfig as w, type DateShortcutConfig as x, type DateShortcutType as y, type DefaultValueLinkageConfig as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
type FormSectionVariant = 'plain' | 'card';
|
|
4
5
|
type FormSectionAccent = 'blue' | 'green';
|
|
@@ -17,7 +18,7 @@ interface FormSectionProps {
|
|
|
17
18
|
contentClassName?: string;
|
|
18
19
|
children: React__default.ReactNode;
|
|
19
20
|
}
|
|
20
|
-
declare function FormSection({ title, description, variant, accent, icon, iconKey, collapsible, defaultCollapsed, className, titleClassName, contentClassName, children, }: FormSectionProps):
|
|
21
|
+
declare function FormSection({ title, description, variant, accent, icon, iconKey, collapsible, defaultCollapsed, className, titleClassName, contentClassName, children, }: FormSectionProps): react_jsx_runtime.JSX.Element;
|
|
21
22
|
|
|
22
23
|
/** 字段行为状态 */
|
|
23
24
|
type FieldBehavior = 'NORMAL' | 'READONLY' | 'DISABLED' | 'HIDDEN';
|
|
@@ -1289,4 +1290,4 @@ interface ProcessPreviewProps {
|
|
|
1289
1290
|
}
|
|
1290
1291
|
declare const ProcessPreview: React__default.FC<ProcessPreviewProps>;
|
|
1291
1292
|
|
|
1292
|
-
export { type
|
|
1293
|
+
export { type FormDataDeleteParams as $, type AddressFieldProps as A, type BaseFieldProps as B, type CascadeDateFieldProps as C, type DataFilter as D, type DepartmentSearchParams as E, type DepartmentSearchResult as F, type DepartmentSearchScope as G, type DepartmentSelectFieldProps as H, type DepartmentTreeNode as I, type DigitalSignatureFieldProps as J, type DigitalSignatureValue as K, type EditorChoiceOption as L, type EditorFieldProps as M, type EditorToolbarAction as N, type FieldBehavior as O, type FieldDefinition as P, type FieldLayoutNode as Q, type FieldValueSyncConfig as R, type FilePreviewCapability as S, type FilePreviewCapabilityBatch as T, type FilePreviewMetadata as U, type FilePreviewProvider as V, type FilePreviewRenderMode as W, type FilePreviewRequest as X, type FilePreviewSurface as Y, type FilePreviewType as Z, type FormAppearanceConfig as _, type AddressValue as a, type RuntimeAuthHeadersProvider as a$, type FormDataQueryParams as a0, type FormEffect as a1, type FormEffectAction as a2, type FormEffectCondition as a3, type FormEffectConditionOperator as a4, type FormEngineConfig as a5, type FormEngineMode as a6, type FormInstanceData as a7, type FormLayoutNode as a8, type FormRuntimeApi as a9, type LowcodePageNodeType as aA, type LowcodePageSchema as aB, type MultiSelectFieldProps as aC, type NumberFieldProps as aD, type OptionItem as aE, type OptionSourceConfig as aF, type OptionSourceType as aG, type PeopleShortcutConfig as aH, type PeopleShortcutType as aI, type PreparedFilePreview as aJ, type PreviewImageItem as aK, type PreviewParams as aL, type ProcessAction as aM, type ProcessBasicInfo as aN, type ProcessDefinition as aO, type ProcessNodeType as aP, ProcessPreview as aQ, type ProcessPreviewProps as aR, type ProcessRoute as aS, type ProcessStatus as aT, type ProcessTask as aU, type RadioFieldProps as aV, type ResubmitParams as aW, type ReturnParams as aX, type ReturnPolicy as aY, type ReturnableNode as aZ, type ReturnableNodeResult as a_, type FormRuntimeApiConfig as aa, type FormRuntimeConfig as ab, type FormSchema as ac, FormSection as ad, type FormSectionProps as ae, type FormSubmitBehavior as af, type FormTemplateConfig as ag, type GridLayoutCell as ah, type GridLayoutNode as ai, type ImageCompressionConfig as aj, type ImageCompressionVariantConfig as ak, type ImageFieldProps as al, type ImageVariant as am, type InitiatorSelectCandidate as an, type InitiatorSelectRequirement as ao, type InitiatorSelectScope as ap, type InitiatorSelectedApprovers as aq, type JSONFieldEditorContext as ar, type JSONFieldProps as as, type JSONFieldRendererContext as at, type LayoutVisibleWhen as au, type LinkedFormOptionConfig as av, type LocationFieldProps as aw, type LocationValue as ax, type LowcodePageMeta as ay, type LowcodePageNode as az, type ApprovalActionType as b, type RuntimeDataQueryParams as b0, type RuntimeDataQueryResult as b1, type RuntimeRequestConfig as b2, type RuntimeResponse as b3, type RuntimeUploadOptions as b4, type RuntimeUploadProvider as b5, type SaveTaskParams as b6, type SectionLayoutNode as b7, type SelectFieldProps as b8, type SerialNumberFieldProps as b9, type SignaturePoint as ba, type StandardFormPageMode as bb, type StatusMeta as bc, type StepLayoutItem as bd, type StepsLayoutNode as be, type SubFormColumn as bf, type SubFormFieldProps as bg, type TabLayoutItem as bh, type TabsLayoutNode as bi, type TaskStatus as bj, type TextAreaFieldProps as bk, type TextFieldProps as bl, type TextShortcutConfig as bm, type TextShortcutType as bn, type TransferParams as bo, type UserDisplayFormat as bp, type UserItem as bq, type UserSelectFieldProps as br, type ValidationPreset as bs, type ValidationRule as bt, type ViewPermissionQueryParams as bu, type ViewPermissionSummary as bv, type WithdrawParams as bw, type ApprovalPermission as c, ApprovalTimeline as d, type ApprovalTimelineProps as e, type ApproveParams as f, type AssociationFormConfig as g, type AssociationFormFieldProps as h, type AssociationValue as i, type AttachmentFieldProps as j, type AttachmentImageVariants as k, type AttachmentItem as l, type BaseLayoutNode as m, type CascadeSelectFieldProps as n, type ChangeRecord as o, type ChangeRecordListResponse as p, type ChangeRecordQueryParams as q, type CheckboxFieldProps as r, type DataLinkageCondition as s, type DataLinkageConfig as t, type DateFieldProps as u, type DateRangeRestriction as v, type DateRestrictionConfig as w, type DateShortcutConfig as x, type DateShortcutType as y, type DefaultValueLinkageConfig as z };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a5 as FormEngineConfig, ac as FormSchema, O as FieldBehavior, aE as OptionItem, a9 as FormRuntimeApi, ab as FormRuntimeConfig, _ as FormAppearanceConfig, bs as ValidationPreset, bt as ValidationRule, a1 as FormEffect, aa as FormRuntimeApiConfig, aF as OptionSourceConfig, aT as ProcessStatus, bc as StatusMeta, bj as TaskStatus, c as ApprovalPermission, $ as FormDataDeleteParams, q as ChangeRecordQueryParams, p as ChangeRecordListResponse, a0 as FormDataQueryParams, a7 as FormInstanceData, an as InitiatorSelectCandidate, ao as InitiatorSelectRequirement, aN as ProcessBasicInfo, aO as ProcessDefinition, aU as ProcessTask, a_ as ReturnableNodeResult, aZ as ReturnableNode, bu as ViewPermissionQueryParams, bv as ViewPermissionSummary, f as ApproveParams, aL as PreviewParams, aS as ProcessRoute, aW as ResubmitParams, aX as ReturnParams, b6 as SaveTaskParams, bo as TransferParams, bw as WithdrawParams, bl as TextFieldProps, aD as NumberFieldProps, bk as TextAreaFieldProps, b8 as SelectFieldProps, aC as MultiSelectFieldProps, aV as RadioFieldProps, r as CheckboxFieldProps, u as DateFieldProps, C as CascadeDateFieldProps, j as AttachmentFieldProps, al as ImageFieldProps, bg as SubFormFieldProps, br as UserSelectFieldProps, H as DepartmentSelectFieldProps, n as CascadeSelectFieldProps, A as AddressFieldProps, h as AssociationFormFieldProps, M as EditorFieldProps, L as EditorChoiceOption, b9 as SerialNumberFieldProps, aw as LocationFieldProps, J as DigitalSignatureFieldProps, as as JSONFieldProps, l as AttachmentItem, aJ as PreparedFilePreview, S as FilePreviewCapability, U as FilePreviewMetadata, X as FilePreviewRequest, aM as ProcessAction, aq as InitiatorSelectedApprovers, aY as ReturnPolicy, o as ChangeRecord, bb as StandardFormPageMode, aB as LowcodePageSchema } from '../ProcessPreview-Cyk6uv-w.mjs';
|
|
2
|
+
export { a as AddressValue, b as ApprovalActionType, d as ApprovalTimeline, e as ApprovalTimelineProps, g as AssociationFormConfig, i as AssociationValue, k as AttachmentImageVariants, B as BaseFieldProps, m as BaseLayoutNode, D as DataFilter, s as DataLinkageCondition, t as DataLinkageConfig, v as DateRangeRestriction, w as DateRestrictionConfig, x as DateShortcutConfig, y as DateShortcutType, z as DefaultValueLinkageConfig, E as DepartmentSearchParams, F as DepartmentSearchResult, G as DepartmentSearchScope, I as DepartmentTreeNode, K as DigitalSignatureValue, N as EditorToolbarAction, P as FieldDefinition, Q as FieldLayoutNode, R as FieldValueSyncConfig, T as FilePreviewCapabilityBatch, V as FilePreviewProvider, W as FilePreviewRenderMode, Y as FilePreviewSurface, Z as FilePreviewType, a2 as FormEffectAction, a3 as FormEffectCondition, a4 as FormEffectConditionOperator, a6 as FormEngineMode, a8 as FormLayoutNode, ad as FormSection, ae as FormSectionProps, af as FormSubmitBehavior, ag as FormTemplateConfig, ah as GridLayoutCell, ai as GridLayoutNode, aj as ImageCompressionConfig, ak as ImageCompressionVariantConfig, am as ImageVariant, ap as InitiatorSelectScope, ar as JSONFieldEditorContext, at as JSONFieldRendererContext, au as LayoutVisibleWhen, av as LinkedFormOptionConfig, ax as LocationValue, ay as LowcodePageMeta, az as LowcodePageNode, aA as LowcodePageNodeType, aG as OptionSourceType, aH as PeopleShortcutConfig, aI as PeopleShortcutType, aK as PreviewImageItem, aP as ProcessNodeType, aQ as ProcessPreview, aR as ProcessPreviewProps, a$ as RuntimeAuthHeadersProvider, b0 as RuntimeDataQueryParams, b1 as RuntimeDataQueryResult, b2 as RuntimeRequestConfig, b3 as RuntimeResponse, b4 as RuntimeUploadOptions, b5 as RuntimeUploadProvider, b7 as SectionLayoutNode, ba as SignaturePoint, bd as StepLayoutItem, be as StepsLayoutNode, bf as SubFormColumn, bh as TabLayoutItem, bi as TabsLayoutNode, bm as TextShortcutConfig, bn as TextShortcutType, bp as UserDisplayFormat, bq as UserItem } from '../ProcessPreview-Cyk6uv-w.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import { a as DataManagementConfigScope, D as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-4fSaCA5t.mjs';
|
|
7
|
+
export { b as DataManagementDensity, c as DataManagementField, d as DataManagementFilterGroup, e as DataManagementFilterRule, f as DataManagementListResult, g as DataManagementQuery, h as DataManagementSort, i as advancedSearchDataManagement, j as batchApproveDataManagementRows, k as buildFilterPayload, l as deleteDataManagementRows, m as downloadDataManagementImportTemplate, n as exportDataManagementRows, p as getDataManagementConfig, q as getDataManagementSchema, r as getDataManagementTransferRecords, s as getSystemFieldsForFormType, t as importDataManagementRows, u as importPreviewDataManagementRows, v as normalizeColumnConfig, w as normalizeDataManagementFields, x as normalizeDataManagementList, y as saveDataManagementConfig } from '../dataManagementApi-4fSaCA5t.mjs';
|
|
7
8
|
|
|
8
9
|
interface FormContextValue {
|
|
9
10
|
mode: FormEngineConfig['mode'];
|
|
@@ -58,14 +59,14 @@ interface FormRendererProps {
|
|
|
58
59
|
columns?: 1 | 2 | 3 | 4;
|
|
59
60
|
size?: 'compact' | 'default' | 'large';
|
|
60
61
|
}
|
|
61
|
-
declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps):
|
|
62
|
+
declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps): react_jsx_runtime.JSX.Element;
|
|
62
63
|
|
|
63
64
|
interface FormShellProps {
|
|
64
65
|
children: React__default.ReactNode;
|
|
65
66
|
appearance?: FormAppearanceConfig;
|
|
66
67
|
className?: string;
|
|
67
68
|
}
|
|
68
|
-
declare function FormShell({ children, appearance, className }: FormShellProps):
|
|
69
|
+
declare function FormShell({ children, appearance, className }: FormShellProps): react_jsx_runtime.JSX.Element;
|
|
69
70
|
|
|
70
71
|
interface FormActionsProps {
|
|
71
72
|
className?: string;
|
|
@@ -75,7 +76,7 @@ interface FormActionsProps {
|
|
|
75
76
|
onSubmit?: (values: Record<string, any>) => Promise<void>;
|
|
76
77
|
submitSuccessMode?: 'stay' | 'callback';
|
|
77
78
|
}
|
|
78
|
-
declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps):
|
|
79
|
+
declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps): react_jsx_runtime.JSX.Element | null;
|
|
79
80
|
|
|
80
81
|
declare const defaultComponentRegistry: Record<string, React__default.ComponentType<any>>;
|
|
81
82
|
|
|
@@ -115,7 +116,7 @@ interface FieldWrapperProps {
|
|
|
115
116
|
tipsClassName?: string;
|
|
116
117
|
children: React__default.ReactNode;
|
|
117
118
|
}
|
|
118
|
-
declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps):
|
|
119
|
+
declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps): react_jsx_runtime.JSX.Element;
|
|
119
120
|
|
|
120
121
|
interface FormContainerProps {
|
|
121
122
|
title?: string;
|
|
@@ -124,7 +125,7 @@ interface FormContainerProps {
|
|
|
124
125
|
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
125
126
|
className?: string;
|
|
126
127
|
}
|
|
127
|
-
declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps):
|
|
128
|
+
declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps): react_jsx_runtime.JSX.Element;
|
|
128
129
|
|
|
129
130
|
declare function createFormRuntimeApi(config?: FormRuntimeApiConfig): FormRuntimeApi;
|
|
130
131
|
|
|
@@ -213,39 +214,39 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
213
214
|
/** 获取视图权限摘要 */
|
|
214
215
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
215
216
|
|
|
216
|
-
declare function TextField(props: TextFieldProps):
|
|
217
|
+
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
217
218
|
|
|
218
|
-
declare function NumberField(props: NumberFieldProps):
|
|
219
|
+
declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
219
220
|
|
|
220
|
-
declare function TextAreaField(props: TextAreaFieldProps):
|
|
221
|
+
declare function TextAreaField(props: TextAreaFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
221
222
|
|
|
222
|
-
declare function SelectField(props: SelectFieldProps):
|
|
223
|
+
declare function SelectField(props: SelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
223
224
|
|
|
224
|
-
declare function MultiSelectField(props: MultiSelectFieldProps):
|
|
225
|
+
declare function MultiSelectField(props: MultiSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
225
226
|
|
|
226
|
-
declare function RadioField(props: RadioFieldProps):
|
|
227
|
+
declare function RadioField(props: RadioFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
227
228
|
|
|
228
|
-
declare function CheckboxField(props: CheckboxFieldProps):
|
|
229
|
+
declare function CheckboxField(props: CheckboxFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
229
230
|
|
|
230
|
-
declare function DateField(props: DateFieldProps):
|
|
231
|
+
declare function DateField(props: DateFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
231
232
|
|
|
232
|
-
declare function CascadeDateField(props: CascadeDateFieldProps):
|
|
233
|
+
declare function CascadeDateField(props: CascadeDateFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
233
234
|
|
|
234
|
-
declare function AttachmentField(props: AttachmentFieldProps):
|
|
235
|
+
declare function AttachmentField(props: AttachmentFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
235
236
|
|
|
236
|
-
declare function ImageField(props: ImageFieldProps):
|
|
237
|
+
declare function ImageField(props: ImageFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
237
238
|
|
|
238
|
-
declare function SubFormField(props: SubFormFieldProps):
|
|
239
|
+
declare function SubFormField(props: SubFormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
239
240
|
|
|
240
|
-
declare function UserSelectField(props: UserSelectFieldProps):
|
|
241
|
+
declare function UserSelectField(props: UserSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
241
242
|
|
|
242
|
-
declare function DepartmentSelectField(props: DepartmentSelectFieldProps):
|
|
243
|
+
declare function DepartmentSelectField(props: DepartmentSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
243
244
|
|
|
244
|
-
declare function CascadeSelectField(props: CascadeSelectFieldProps):
|
|
245
|
+
declare function CascadeSelectField(props: CascadeSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
245
246
|
|
|
246
|
-
declare function AddressField(props: AddressFieldProps):
|
|
247
|
+
declare function AddressField(props: AddressFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
247
248
|
|
|
248
|
-
declare function AssociationFormField(props: AssociationFormFieldProps):
|
|
249
|
+
declare function AssociationFormField(props: AssociationFormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
249
250
|
|
|
250
251
|
interface RichTextEditorCoreProps {
|
|
251
252
|
value?: string;
|
|
@@ -267,16 +268,16 @@ interface RichTextEditorCoreProps {
|
|
|
267
268
|
fieldId?: string;
|
|
268
269
|
mobile?: boolean;
|
|
269
270
|
}
|
|
270
|
-
declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps):
|
|
271
|
-
declare function EditorField(props: EditorFieldProps):
|
|
271
|
+
declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps): react_jsx_runtime.JSX.Element;
|
|
272
|
+
declare function EditorField(props: EditorFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
272
273
|
|
|
273
|
-
declare function SerialNumberField(props: SerialNumberFieldProps):
|
|
274
|
+
declare function SerialNumberField(props: SerialNumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
274
275
|
|
|
275
|
-
declare function LocationField(props: LocationFieldProps):
|
|
276
|
+
declare function LocationField(props: LocationFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
276
277
|
|
|
277
|
-
declare function DigitalSignatureField(props: DigitalSignatureFieldProps):
|
|
278
|
+
declare function DigitalSignatureField(props: DigitalSignatureFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
278
279
|
|
|
279
|
-
declare function JSONField(props: JSONFieldProps):
|
|
280
|
+
declare function JSONField(props: JSONFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
280
281
|
|
|
281
282
|
interface FormGridProps {
|
|
282
283
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -287,7 +288,7 @@ interface FormGridProps {
|
|
|
287
288
|
className?: string;
|
|
288
289
|
children: React__default.ReactNode;
|
|
289
290
|
}
|
|
290
|
-
declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps):
|
|
291
|
+
declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps): react_jsx_runtime.JSX.Element;
|
|
291
292
|
|
|
292
293
|
interface FormTabItem {
|
|
293
294
|
key: string;
|
|
@@ -300,7 +301,7 @@ interface FormTabsProps {
|
|
|
300
301
|
className?: string;
|
|
301
302
|
tabClassName?: string;
|
|
302
303
|
}
|
|
303
|
-
declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps):
|
|
304
|
+
declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps): react_jsx_runtime.JSX.Element;
|
|
304
305
|
|
|
305
306
|
interface FormStepItem {
|
|
306
307
|
key: string;
|
|
@@ -313,7 +314,7 @@ interface FormStepsProps {
|
|
|
313
314
|
className?: string;
|
|
314
315
|
onStepChange?: (step: number) => void;
|
|
315
316
|
}
|
|
316
|
-
declare function FormSteps({ items, className, onStepChange }: FormStepsProps):
|
|
317
|
+
declare function FormSteps({ items, className, onStepChange }: FormStepsProps): react_jsx_runtime.JSX.Element;
|
|
317
318
|
|
|
318
319
|
interface FormSummaryProps {
|
|
319
320
|
className?: string;
|
|
@@ -322,7 +323,7 @@ interface FormSummaryProps {
|
|
|
322
323
|
columns?: 1 | 2 | 3;
|
|
323
324
|
fields?: string[];
|
|
324
325
|
}
|
|
325
|
-
declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps):
|
|
326
|
+
declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): react_jsx_runtime.JSX.Element;
|
|
326
327
|
|
|
327
328
|
declare const unwrapFilePreviewPayload: (payload: any) => any;
|
|
328
329
|
declare const normalizePreviewBlobResponse: (response: unknown) => Blob;
|
|
@@ -348,14 +349,14 @@ interface FilePreviewContentProps {
|
|
|
348
349
|
servicePrefix?: string;
|
|
349
350
|
onDownload?: () => void;
|
|
350
351
|
}
|
|
351
|
-
declare const FilePreviewContent: ({ metadata, request, servicePrefix, onDownload, }: FilePreviewContentProps) =>
|
|
352
|
+
declare const FilePreviewContent: ({ metadata, request, servicePrefix, onDownload, }: FilePreviewContentProps) => react_jsx_runtime.JSX.Element;
|
|
352
353
|
|
|
353
354
|
interface FilePreviewPageProps {
|
|
354
355
|
ticket: string;
|
|
355
356
|
request: FilePreviewRequest;
|
|
356
357
|
servicePrefix?: string;
|
|
357
358
|
}
|
|
358
|
-
declare const FilePreviewPage: ({ ticket, request, servicePrefix, }: FilePreviewPageProps) =>
|
|
359
|
+
declare const FilePreviewPage: ({ ticket, request, servicePrefix, }: FilePreviewPageProps) => react_jsx_runtime.JSX.Element;
|
|
359
360
|
|
|
360
361
|
interface UseFilePreviewOptions {
|
|
361
362
|
items: AttachmentItem[];
|
|
@@ -372,11 +373,11 @@ declare const useFilePreviewController: ({ items, api, appType, bucketName, enab
|
|
|
372
373
|
openingKey: string;
|
|
373
374
|
isOpening: (item: AttachmentItem) => boolean;
|
|
374
375
|
downloadItem: (item: AttachmentItem, prepared?: PreparedFilePreview | null) => Promise<void>;
|
|
375
|
-
previewHost:
|
|
376
|
+
previewHost: react_jsx_runtime.JSX.Element | null;
|
|
376
377
|
};
|
|
377
378
|
declare const FilePreviewCapabilityError: ({ message }: {
|
|
378
379
|
message: string;
|
|
379
|
-
}) =>
|
|
380
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
380
381
|
|
|
381
382
|
interface UseFormEngineReturn {
|
|
382
383
|
formData: Record<string, any>;
|
|
@@ -960,7 +961,7 @@ interface LowcodePageRendererProps {
|
|
|
960
961
|
schema: LowcodePageSchema;
|
|
961
962
|
context?: LowcodePageRuntimeContext;
|
|
962
963
|
}
|
|
963
|
-
declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps):
|
|
964
|
+
declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps): react_jsx_runtime.JSX.Element;
|
|
964
965
|
|
|
965
966
|
interface PageSkeletonProps {
|
|
966
967
|
type: 'submit' | 'detail' | 'process';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a5 as FormEngineConfig, ac as FormSchema, O as FieldBehavior, aE as OptionItem, a9 as FormRuntimeApi, ab as FormRuntimeConfig, _ as FormAppearanceConfig, bs as ValidationPreset, bt as ValidationRule, a1 as FormEffect, aa as FormRuntimeApiConfig, aF as OptionSourceConfig, aT as ProcessStatus, bc as StatusMeta, bj as TaskStatus, c as ApprovalPermission, $ as FormDataDeleteParams, q as ChangeRecordQueryParams, p as ChangeRecordListResponse, a0 as FormDataQueryParams, a7 as FormInstanceData, an as InitiatorSelectCandidate, ao as InitiatorSelectRequirement, aN as ProcessBasicInfo, aO as ProcessDefinition, aU as ProcessTask, a_ as ReturnableNodeResult, aZ as ReturnableNode, bu as ViewPermissionQueryParams, bv as ViewPermissionSummary, f as ApproveParams, aL as PreviewParams, aS as ProcessRoute, aW as ResubmitParams, aX as ReturnParams, b6 as SaveTaskParams, bo as TransferParams, bw as WithdrawParams, bl as TextFieldProps, aD as NumberFieldProps, bk as TextAreaFieldProps, b8 as SelectFieldProps, aC as MultiSelectFieldProps, aV as RadioFieldProps, r as CheckboxFieldProps, u as DateFieldProps, C as CascadeDateFieldProps, j as AttachmentFieldProps, al as ImageFieldProps, bg as SubFormFieldProps, br as UserSelectFieldProps, H as DepartmentSelectFieldProps, n as CascadeSelectFieldProps, A as AddressFieldProps, h as AssociationFormFieldProps, M as EditorFieldProps, L as EditorChoiceOption, b9 as SerialNumberFieldProps, aw as LocationFieldProps, J as DigitalSignatureFieldProps, as as JSONFieldProps, l as AttachmentItem, aJ as PreparedFilePreview, S as FilePreviewCapability, U as FilePreviewMetadata, X as FilePreviewRequest, aM as ProcessAction, aq as InitiatorSelectedApprovers, aY as ReturnPolicy, o as ChangeRecord, bb as StandardFormPageMode, aB as LowcodePageSchema } from '../ProcessPreview-Cyk6uv-w.js';
|
|
2
|
+
export { a as AddressValue, b as ApprovalActionType, d as ApprovalTimeline, e as ApprovalTimelineProps, g as AssociationFormConfig, i as AssociationValue, k as AttachmentImageVariants, B as BaseFieldProps, m as BaseLayoutNode, D as DataFilter, s as DataLinkageCondition, t as DataLinkageConfig, v as DateRangeRestriction, w as DateRestrictionConfig, x as DateShortcutConfig, y as DateShortcutType, z as DefaultValueLinkageConfig, E as DepartmentSearchParams, F as DepartmentSearchResult, G as DepartmentSearchScope, I as DepartmentTreeNode, K as DigitalSignatureValue, N as EditorToolbarAction, P as FieldDefinition, Q as FieldLayoutNode, R as FieldValueSyncConfig, T as FilePreviewCapabilityBatch, V as FilePreviewProvider, W as FilePreviewRenderMode, Y as FilePreviewSurface, Z as FilePreviewType, a2 as FormEffectAction, a3 as FormEffectCondition, a4 as FormEffectConditionOperator, a6 as FormEngineMode, a8 as FormLayoutNode, ad as FormSection, ae as FormSectionProps, af as FormSubmitBehavior, ag as FormTemplateConfig, ah as GridLayoutCell, ai as GridLayoutNode, aj as ImageCompressionConfig, ak as ImageCompressionVariantConfig, am as ImageVariant, ap as InitiatorSelectScope, ar as JSONFieldEditorContext, at as JSONFieldRendererContext, au as LayoutVisibleWhen, av as LinkedFormOptionConfig, ax as LocationValue, ay as LowcodePageMeta, az as LowcodePageNode, aA as LowcodePageNodeType, aG as OptionSourceType, aH as PeopleShortcutConfig, aI as PeopleShortcutType, aK as PreviewImageItem, aP as ProcessNodeType, aQ as ProcessPreview, aR as ProcessPreviewProps, a$ as RuntimeAuthHeadersProvider, b0 as RuntimeDataQueryParams, b1 as RuntimeDataQueryResult, b2 as RuntimeRequestConfig, b3 as RuntimeResponse, b4 as RuntimeUploadOptions, b5 as RuntimeUploadProvider, b7 as SectionLayoutNode, ba as SignaturePoint, bd as StepLayoutItem, be as StepsLayoutNode, bf as SubFormColumn, bh as TabLayoutItem, bi as TabsLayoutNode, bm as TextShortcutConfig, bn as TextShortcutType, bp as UserDisplayFormat, bq as UserItem } from '../ProcessPreview-Cyk6uv-w.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import { a as DataManagementConfigScope, D as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-CE8Zyj3a.js';
|
|
7
|
+
export { b as DataManagementDensity, c as DataManagementField, d as DataManagementFilterGroup, e as DataManagementFilterRule, f as DataManagementListResult, g as DataManagementQuery, h as DataManagementSort, i as advancedSearchDataManagement, j as batchApproveDataManagementRows, k as buildFilterPayload, l as deleteDataManagementRows, m as downloadDataManagementImportTemplate, n as exportDataManagementRows, p as getDataManagementConfig, q as getDataManagementSchema, r as getDataManagementTransferRecords, s as getSystemFieldsForFormType, t as importDataManagementRows, u as importPreviewDataManagementRows, v as normalizeColumnConfig, w as normalizeDataManagementFields, x as normalizeDataManagementList, y as saveDataManagementConfig } from '../dataManagementApi-CE8Zyj3a.js';
|
|
7
8
|
|
|
8
9
|
interface FormContextValue {
|
|
9
10
|
mode: FormEngineConfig['mode'];
|
|
@@ -58,14 +59,14 @@ interface FormRendererProps {
|
|
|
58
59
|
columns?: 1 | 2 | 3 | 4;
|
|
59
60
|
size?: 'compact' | 'default' | 'large';
|
|
60
61
|
}
|
|
61
|
-
declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps):
|
|
62
|
+
declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps): react_jsx_runtime.JSX.Element;
|
|
62
63
|
|
|
63
64
|
interface FormShellProps {
|
|
64
65
|
children: React__default.ReactNode;
|
|
65
66
|
appearance?: FormAppearanceConfig;
|
|
66
67
|
className?: string;
|
|
67
68
|
}
|
|
68
|
-
declare function FormShell({ children, appearance, className }: FormShellProps):
|
|
69
|
+
declare function FormShell({ children, appearance, className }: FormShellProps): react_jsx_runtime.JSX.Element;
|
|
69
70
|
|
|
70
71
|
interface FormActionsProps {
|
|
71
72
|
className?: string;
|
|
@@ -75,7 +76,7 @@ interface FormActionsProps {
|
|
|
75
76
|
onSubmit?: (values: Record<string, any>) => Promise<void>;
|
|
76
77
|
submitSuccessMode?: 'stay' | 'callback';
|
|
77
78
|
}
|
|
78
|
-
declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps):
|
|
79
|
+
declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps): react_jsx_runtime.JSX.Element | null;
|
|
79
80
|
|
|
80
81
|
declare const defaultComponentRegistry: Record<string, React__default.ComponentType<any>>;
|
|
81
82
|
|
|
@@ -115,7 +116,7 @@ interface FieldWrapperProps {
|
|
|
115
116
|
tipsClassName?: string;
|
|
116
117
|
children: React__default.ReactNode;
|
|
117
118
|
}
|
|
118
|
-
declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps):
|
|
119
|
+
declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps): react_jsx_runtime.JSX.Element;
|
|
119
120
|
|
|
120
121
|
interface FormContainerProps {
|
|
121
122
|
title?: string;
|
|
@@ -124,7 +125,7 @@ interface FormContainerProps {
|
|
|
124
125
|
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
125
126
|
className?: string;
|
|
126
127
|
}
|
|
127
|
-
declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps):
|
|
128
|
+
declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps): react_jsx_runtime.JSX.Element;
|
|
128
129
|
|
|
129
130
|
declare function createFormRuntimeApi(config?: FormRuntimeApiConfig): FormRuntimeApi;
|
|
130
131
|
|
|
@@ -213,39 +214,39 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
213
214
|
/** 获取视图权限摘要 */
|
|
214
215
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
215
216
|
|
|
216
|
-
declare function TextField(props: TextFieldProps):
|
|
217
|
+
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
217
218
|
|
|
218
|
-
declare function NumberField(props: NumberFieldProps):
|
|
219
|
+
declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
219
220
|
|
|
220
|
-
declare function TextAreaField(props: TextAreaFieldProps):
|
|
221
|
+
declare function TextAreaField(props: TextAreaFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
221
222
|
|
|
222
|
-
declare function SelectField(props: SelectFieldProps):
|
|
223
|
+
declare function SelectField(props: SelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
223
224
|
|
|
224
|
-
declare function MultiSelectField(props: MultiSelectFieldProps):
|
|
225
|
+
declare function MultiSelectField(props: MultiSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
225
226
|
|
|
226
|
-
declare function RadioField(props: RadioFieldProps):
|
|
227
|
+
declare function RadioField(props: RadioFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
227
228
|
|
|
228
|
-
declare function CheckboxField(props: CheckboxFieldProps):
|
|
229
|
+
declare function CheckboxField(props: CheckboxFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
229
230
|
|
|
230
|
-
declare function DateField(props: DateFieldProps):
|
|
231
|
+
declare function DateField(props: DateFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
231
232
|
|
|
232
|
-
declare function CascadeDateField(props: CascadeDateFieldProps):
|
|
233
|
+
declare function CascadeDateField(props: CascadeDateFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
233
234
|
|
|
234
|
-
declare function AttachmentField(props: AttachmentFieldProps):
|
|
235
|
+
declare function AttachmentField(props: AttachmentFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
235
236
|
|
|
236
|
-
declare function ImageField(props: ImageFieldProps):
|
|
237
|
+
declare function ImageField(props: ImageFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
237
238
|
|
|
238
|
-
declare function SubFormField(props: SubFormFieldProps):
|
|
239
|
+
declare function SubFormField(props: SubFormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
239
240
|
|
|
240
|
-
declare function UserSelectField(props: UserSelectFieldProps):
|
|
241
|
+
declare function UserSelectField(props: UserSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
241
242
|
|
|
242
|
-
declare function DepartmentSelectField(props: DepartmentSelectFieldProps):
|
|
243
|
+
declare function DepartmentSelectField(props: DepartmentSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
243
244
|
|
|
244
|
-
declare function CascadeSelectField(props: CascadeSelectFieldProps):
|
|
245
|
+
declare function CascadeSelectField(props: CascadeSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
245
246
|
|
|
246
|
-
declare function AddressField(props: AddressFieldProps):
|
|
247
|
+
declare function AddressField(props: AddressFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
247
248
|
|
|
248
|
-
declare function AssociationFormField(props: AssociationFormFieldProps):
|
|
249
|
+
declare function AssociationFormField(props: AssociationFormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
249
250
|
|
|
250
251
|
interface RichTextEditorCoreProps {
|
|
251
252
|
value?: string;
|
|
@@ -267,16 +268,16 @@ interface RichTextEditorCoreProps {
|
|
|
267
268
|
fieldId?: string;
|
|
268
269
|
mobile?: boolean;
|
|
269
270
|
}
|
|
270
|
-
declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps):
|
|
271
|
-
declare function EditorField(props: EditorFieldProps):
|
|
271
|
+
declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps): react_jsx_runtime.JSX.Element;
|
|
272
|
+
declare function EditorField(props: EditorFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
272
273
|
|
|
273
|
-
declare function SerialNumberField(props: SerialNumberFieldProps):
|
|
274
|
+
declare function SerialNumberField(props: SerialNumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
274
275
|
|
|
275
|
-
declare function LocationField(props: LocationFieldProps):
|
|
276
|
+
declare function LocationField(props: LocationFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
276
277
|
|
|
277
|
-
declare function DigitalSignatureField(props: DigitalSignatureFieldProps):
|
|
278
|
+
declare function DigitalSignatureField(props: DigitalSignatureFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
278
279
|
|
|
279
|
-
declare function JSONField(props: JSONFieldProps):
|
|
280
|
+
declare function JSONField(props: JSONFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
280
281
|
|
|
281
282
|
interface FormGridProps {
|
|
282
283
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -287,7 +288,7 @@ interface FormGridProps {
|
|
|
287
288
|
className?: string;
|
|
288
289
|
children: React__default.ReactNode;
|
|
289
290
|
}
|
|
290
|
-
declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps):
|
|
291
|
+
declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps): react_jsx_runtime.JSX.Element;
|
|
291
292
|
|
|
292
293
|
interface FormTabItem {
|
|
293
294
|
key: string;
|
|
@@ -300,7 +301,7 @@ interface FormTabsProps {
|
|
|
300
301
|
className?: string;
|
|
301
302
|
tabClassName?: string;
|
|
302
303
|
}
|
|
303
|
-
declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps):
|
|
304
|
+
declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps): react_jsx_runtime.JSX.Element;
|
|
304
305
|
|
|
305
306
|
interface FormStepItem {
|
|
306
307
|
key: string;
|
|
@@ -313,7 +314,7 @@ interface FormStepsProps {
|
|
|
313
314
|
className?: string;
|
|
314
315
|
onStepChange?: (step: number) => void;
|
|
315
316
|
}
|
|
316
|
-
declare function FormSteps({ items, className, onStepChange }: FormStepsProps):
|
|
317
|
+
declare function FormSteps({ items, className, onStepChange }: FormStepsProps): react_jsx_runtime.JSX.Element;
|
|
317
318
|
|
|
318
319
|
interface FormSummaryProps {
|
|
319
320
|
className?: string;
|
|
@@ -322,7 +323,7 @@ interface FormSummaryProps {
|
|
|
322
323
|
columns?: 1 | 2 | 3;
|
|
323
324
|
fields?: string[];
|
|
324
325
|
}
|
|
325
|
-
declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps):
|
|
326
|
+
declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): react_jsx_runtime.JSX.Element;
|
|
326
327
|
|
|
327
328
|
declare const unwrapFilePreviewPayload: (payload: any) => any;
|
|
328
329
|
declare const normalizePreviewBlobResponse: (response: unknown) => Blob;
|
|
@@ -348,14 +349,14 @@ interface FilePreviewContentProps {
|
|
|
348
349
|
servicePrefix?: string;
|
|
349
350
|
onDownload?: () => void;
|
|
350
351
|
}
|
|
351
|
-
declare const FilePreviewContent: ({ metadata, request, servicePrefix, onDownload, }: FilePreviewContentProps) =>
|
|
352
|
+
declare const FilePreviewContent: ({ metadata, request, servicePrefix, onDownload, }: FilePreviewContentProps) => react_jsx_runtime.JSX.Element;
|
|
352
353
|
|
|
353
354
|
interface FilePreviewPageProps {
|
|
354
355
|
ticket: string;
|
|
355
356
|
request: FilePreviewRequest;
|
|
356
357
|
servicePrefix?: string;
|
|
357
358
|
}
|
|
358
|
-
declare const FilePreviewPage: ({ ticket, request, servicePrefix, }: FilePreviewPageProps) =>
|
|
359
|
+
declare const FilePreviewPage: ({ ticket, request, servicePrefix, }: FilePreviewPageProps) => react_jsx_runtime.JSX.Element;
|
|
359
360
|
|
|
360
361
|
interface UseFilePreviewOptions {
|
|
361
362
|
items: AttachmentItem[];
|
|
@@ -372,11 +373,11 @@ declare const useFilePreviewController: ({ items, api, appType, bucketName, enab
|
|
|
372
373
|
openingKey: string;
|
|
373
374
|
isOpening: (item: AttachmentItem) => boolean;
|
|
374
375
|
downloadItem: (item: AttachmentItem, prepared?: PreparedFilePreview | null) => Promise<void>;
|
|
375
|
-
previewHost:
|
|
376
|
+
previewHost: react_jsx_runtime.JSX.Element | null;
|
|
376
377
|
};
|
|
377
378
|
declare const FilePreviewCapabilityError: ({ message }: {
|
|
378
379
|
message: string;
|
|
379
|
-
}) =>
|
|
380
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
380
381
|
|
|
381
382
|
interface UseFormEngineReturn {
|
|
382
383
|
formData: Record<string, any>;
|
|
@@ -960,7 +961,7 @@ interface LowcodePageRendererProps {
|
|
|
960
961
|
schema: LowcodePageSchema;
|
|
961
962
|
context?: LowcodePageRuntimeContext;
|
|
962
963
|
}
|
|
963
|
-
declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps):
|
|
964
|
+
declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps): react_jsx_runtime.JSX.Element;
|
|
964
965
|
|
|
965
966
|
interface PageSkeletonProps {
|
|
966
967
|
type: 'submit' | 'detail' | 'process';
|