openxiangda 1.0.140 → 1.0.142
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 +52 -2
- package/lib/cli.js +89 -0
- package/lib/design-gates.js +29 -0
- package/openxiangda-skills/SKILL.md +3 -1
- package/package.json +1 -1
- package/packages/sdk/dist/{ProcessPreview-CZJP8n3e.d.mts → ProcessPreview-CUQFUDvw.d.mts} +5 -2
- package/packages/sdk/dist/{ProcessPreview-CZJP8n3e.d.ts → ProcessPreview-CUQFUDvw.d.ts} +5 -2
- package/packages/sdk/dist/components/index.cjs +139 -30
- package/packages/sdk/dist/components/index.cjs.map +1 -1
- package/packages/sdk/dist/components/index.d.mts +6 -136
- package/packages/sdk/dist/components/index.d.ts +6 -136
- package/packages/sdk/dist/components/index.mjs +139 -30
- package/packages/sdk/dist/components/index.mjs.map +1 -1
- package/packages/sdk/dist/dataManagementApi-CwBEmnXg.d.ts +141 -0
- package/packages/sdk/dist/dataManagementApi-DQKInwWS.d.mts +141 -0
- package/packages/sdk/dist/runtime/index.cjs +157 -87
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.d.mts +4 -4
- package/packages/sdk/dist/runtime/index.d.ts +4 -4
- package/packages/sdk/dist/runtime/index.mjs +157 -87
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.cjs +16 -1
- package/packages/sdk/dist/runtime/react.cjs.map +1 -1
- package/packages/sdk/dist/runtime/react.d.mts +17 -2
- package/packages/sdk/dist/runtime/react.d.ts +17 -2
- package/packages/sdk/dist/runtime/react.mjs +16 -1
- package/packages/sdk/dist/runtime/react.mjs.map +1 -1
- package/templates/openxiangda-react-spa/src/pages/defaults/FormRoutePage.tsx +9 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { d as FormEngineConfig,
|
|
2
|
-
export { af as AddressValue, ag as ApprovalActionType, ah as ApprovalTimeline, ai as ApprovalTimelineProps, aj as AssociationFormConfig, ak as AssociationValue, al as AttachmentImageVariants, am as AttachmentItem, an as BaseFieldProps, ao as BaseLayoutNode, ap as DataFilter, aq as DataLinkageCondition, ar as DataLinkageConfig, as as DateRangeRestriction, at as DateRestrictionConfig, au as DateShortcutConfig, av as DateShortcutType, aw as DefaultValueLinkageConfig, ax as DepartmentTreeNode, ay as DigitalSignatureValue, az as EditorToolbarAction, aA as FieldLayoutNode, aB as FieldValueSyncConfig, aC as FormEffectAction, aD as FormEffectCondition, aE as FormEffectConditionOperator, aF as FormEngineMode, aG as FormLayoutNode, aH as FormSection, aI as FormSectionProps, aJ as FormSubmitBehavior, aK as FormTemplateConfig, aL as GridLayoutCell, aM as GridLayoutNode, aN as ImageCompressionConfig, aO as ImageCompressionVariantConfig, aP as ImageVariant, aQ as InitiatorSelectScope, aR as LayoutVisibleWhen, aS as LinkedFormOptionConfig, aT as LocationValue, aU as LowcodePageMeta, aV as LowcodePageNode, aW as LowcodePageNodeType, aX as OptionSourceType, aY as PeopleShortcutConfig, aZ as PeopleShortcutType, a_ as ProcessNodeType, a$ as ProcessPreview, b0 as ProcessPreviewProps, b1 as
|
|
1
|
+
import { d as FormEngineConfig, b as FormSchema, e as FieldBehavior, O as OptionItem, a as FormRuntimeApi, f as FormRuntimeConfig, g as FormAppearanceConfig, V as ValidationPreset, h as ValidationRule, i as FormEffect, c as FormRuntimeApiConfig, j as OptionSourceConfig, P as ProcessStatus, S as StatusMeta, T as TaskStatus, A as ApprovalPermission, k as FormDataDeleteParams, C as ChangeRecordQueryParams, l as ChangeRecordListResponse, m as FormDataQueryParams, n as FormInstanceData, I as InitiatorSelectCandidate, o as InitiatorSelectRequirement, p as ProcessBasicInfo, q as ProcessDefinition, r as ProcessTask, s as ReturnableNodeResult, t as ReturnableNode, u as ViewPermissionQueryParams, v as ViewPermissionSummary, w as ApproveParams, x as PreviewParams, y as ProcessRoute, z as ResubmitParams, B as ReturnParams, D as SaveTaskParams, E as TransferParams, W as WithdrawParams, G as TextFieldProps, N as NumberFieldProps, H as TextAreaFieldProps, J as SelectFieldProps, M as MultiSelectFieldProps, K as RadioFieldProps, L as CheckboxFieldProps, Q as DateFieldProps, U as CascadeDateFieldProps, X as AttachmentFieldProps, Y as ImageFieldProps, Z as SubFormFieldProps, _ as UserSelectFieldProps, $ as DepartmentSelectFieldProps, a0 as CascadeSelectFieldProps, a1 as AddressFieldProps, a2 as AssociationFormFieldProps, a3 as EditorFieldProps, a4 as EditorChoiceOption, a5 as SerialNumberFieldProps, a6 as LocationFieldProps, a7 as DigitalSignatureFieldProps, a8 as JSONFieldProps, a9 as ProcessAction, aa as InitiatorSelectedApprovers, ab as ReturnPolicy, ac as ChangeRecord, ad as StandardFormPageMode, ae as LowcodePageSchema } from '../ProcessPreview-CUQFUDvw.mjs';
|
|
2
|
+
export { af as AddressValue, ag as ApprovalActionType, ah as ApprovalTimeline, ai as ApprovalTimelineProps, aj as AssociationFormConfig, ak as AssociationValue, al as AttachmentImageVariants, am as AttachmentItem, an as BaseFieldProps, ao as BaseLayoutNode, ap as DataFilter, aq as DataLinkageCondition, ar as DataLinkageConfig, as as DateRangeRestriction, at as DateRestrictionConfig, au as DateShortcutConfig, av as DateShortcutType, aw as DefaultValueLinkageConfig, ax as DepartmentTreeNode, ay as DigitalSignatureValue, az as EditorToolbarAction, F as FieldDefinition, aA as FieldLayoutNode, aB as FieldValueSyncConfig, aC as FormEffectAction, aD as FormEffectCondition, aE as FormEffectConditionOperator, aF as FormEngineMode, aG as FormLayoutNode, aH as FormSection, aI as FormSectionProps, aJ as FormSubmitBehavior, aK as FormTemplateConfig, aL as GridLayoutCell, aM as GridLayoutNode, aN as ImageCompressionConfig, aO as ImageCompressionVariantConfig, aP as ImageVariant, aQ as InitiatorSelectScope, aR as LayoutVisibleWhen, aS as LinkedFormOptionConfig, aT as LocationValue, aU as LowcodePageMeta, aV as LowcodePageNode, aW as LowcodePageNodeType, aX as OptionSourceType, aY as PeopleShortcutConfig, aZ as PeopleShortcutType, a_ as ProcessNodeType, a$ as ProcessPreview, b0 as ProcessPreviewProps, b1 as RuntimeAuthHeadersProvider, b2 as RuntimeDataQueryParams, b3 as RuntimeDataQueryResult, b4 as RuntimeRequestConfig, R as RuntimeResponse, b5 as RuntimeUploadOptions, b6 as RuntimeUploadProvider, b7 as SectionLayoutNode, b8 as SignaturePoint, b9 as StepLayoutItem, ba as StepsLayoutNode, bb as SubFormColumn, bc as TabLayoutItem, bd as TabsLayoutNode, be as TextShortcutConfig, bf as TextShortcutType, bg as UserDisplayFormat, bh as UserItem } from '../ProcessPreview-CUQFUDvw.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
+
import { D as DataManagementConfigScope, a as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-DQKInwWS.mjs';
|
|
6
|
+
export { b as DataManagementDensity, c as DataManagementField, d as DataManagementFilterGroup, f as DataManagementFilterRule, g as DataManagementListResult, h as DataManagementQuery, i as DataManagementSort, j as advancedSearchDataManagement, k as batchApproveDataManagementRows, l as buildFilterPayload, m as deleteDataManagementRows, n as downloadDataManagementImportTemplate, o 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-DQKInwWS.mjs';
|
|
5
7
|
|
|
6
8
|
interface FormContextValue {
|
|
7
9
|
mode: FormEngineConfig['mode'];
|
|
@@ -210,139 +212,6 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
210
212
|
/** 获取视图权限摘要 */
|
|
211
213
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
212
214
|
|
|
213
|
-
type DataManagementConfigScope = 'global' | 'personal';
|
|
214
|
-
type DataManagementDensity = 'compact' | 'middle' | 'loose';
|
|
215
|
-
type FilterLogic = 'AND' | 'OR';
|
|
216
|
-
interface DataManagementField extends FieldDefinition {
|
|
217
|
-
id: string;
|
|
218
|
-
fieldId: string;
|
|
219
|
-
componentName: string;
|
|
220
|
-
label: string;
|
|
221
|
-
width?: number;
|
|
222
|
-
system?: boolean;
|
|
223
|
-
processOnly?: boolean;
|
|
224
|
-
displayable?: boolean;
|
|
225
|
-
}
|
|
226
|
-
interface DataManagementFilterRule {
|
|
227
|
-
id: string;
|
|
228
|
-
key: string;
|
|
229
|
-
operator: string;
|
|
230
|
-
value: any;
|
|
231
|
-
componentName?: string;
|
|
232
|
-
}
|
|
233
|
-
interface DataManagementFilterGroup {
|
|
234
|
-
id: string;
|
|
235
|
-
logic: FilterLogic;
|
|
236
|
-
rules: DataManagementFilterRule[];
|
|
237
|
-
conditions: DataManagementFilterGroup[];
|
|
238
|
-
}
|
|
239
|
-
interface DataManagementSort {
|
|
240
|
-
id: string;
|
|
241
|
-
isAsc: 'y' | 'n';
|
|
242
|
-
}
|
|
243
|
-
interface DataManagementConfig {
|
|
244
|
-
showFields?: string[];
|
|
245
|
-
widths?: Record<string, number>;
|
|
246
|
-
lockFieldIds?: string[];
|
|
247
|
-
sort?: DataManagementSort[];
|
|
248
|
-
filter?: {
|
|
249
|
-
searchKeyWord?: string;
|
|
250
|
-
group?: DataManagementFilterGroup;
|
|
251
|
-
};
|
|
252
|
-
density?: DataManagementDensity;
|
|
253
|
-
detailOpenMode?: 'drawer' | 'newPage';
|
|
254
|
-
pageSize?: number;
|
|
255
|
-
showForcedConfig?: boolean;
|
|
256
|
-
[key: string]: any;
|
|
257
|
-
}
|
|
258
|
-
interface DataManagementQuery {
|
|
259
|
-
appType: string;
|
|
260
|
-
formUuid: string;
|
|
261
|
-
filters?: DataManagementFilterGroup;
|
|
262
|
-
rawFilters?: string;
|
|
263
|
-
conditionType?: FilterLogic;
|
|
264
|
-
searchKeyWord?: string;
|
|
265
|
-
currentPage?: number;
|
|
266
|
-
pageSize?: number;
|
|
267
|
-
order?: DataManagementSort[];
|
|
268
|
-
instanceStatus?: string;
|
|
269
|
-
}
|
|
270
|
-
interface DataManagementListResult {
|
|
271
|
-
records: any[];
|
|
272
|
-
total: number;
|
|
273
|
-
}
|
|
274
|
-
interface DataManagementApiOptions {
|
|
275
|
-
appType: string;
|
|
276
|
-
formUuid: string;
|
|
277
|
-
menuFormUuid?: string;
|
|
278
|
-
scope?: DataManagementConfigScope;
|
|
279
|
-
}
|
|
280
|
-
type FormActionPermission = 'view' | 'create' | 'edit' | 'delete' | 'export' | 'import' | 'change_records' | 'workflow';
|
|
281
|
-
declare const getSystemFieldsForFormType: (formType?: string) => DataManagementField[];
|
|
282
|
-
declare const normalizeDataManagementFields: (payload: any) => {
|
|
283
|
-
fields: DataManagementField[];
|
|
284
|
-
formType?: string;
|
|
285
|
-
schema?: FormSchema;
|
|
286
|
-
};
|
|
287
|
-
declare const normalizeDataManagementList: (payload: any) => DataManagementListResult;
|
|
288
|
-
declare const buildFilterPayload: (group?: DataManagementFilterGroup) => string | undefined;
|
|
289
|
-
declare const normalizeColumnConfig: (cfg: DataManagementConfig | undefined, fields: DataManagementField[]) => Required<Pick<DataManagementConfig, "showFields" | "widths" | "lockFieldIds" | "sort">> & {
|
|
290
|
-
density: DataManagementDensity;
|
|
291
|
-
detailOpenMode: "drawer" | "newPage";
|
|
292
|
-
pageSize: number;
|
|
293
|
-
};
|
|
294
|
-
declare function getDataManagementSchema(request: FormRuntimeApi['request'], params: {
|
|
295
|
-
appType: string;
|
|
296
|
-
formUuid: string;
|
|
297
|
-
}): Promise<{
|
|
298
|
-
fields: DataManagementField[];
|
|
299
|
-
formType?: string;
|
|
300
|
-
schema?: FormSchema;
|
|
301
|
-
}>;
|
|
302
|
-
declare function getDataManagementConfig(request: FormRuntimeApi['request'], options: DataManagementApiOptions): Promise<DataManagementConfig | undefined>;
|
|
303
|
-
declare function saveDataManagementConfig(request: FormRuntimeApi['request'], options: DataManagementApiOptions & {
|
|
304
|
-
config: DataManagementConfig;
|
|
305
|
-
}): Promise<any>;
|
|
306
|
-
declare function advancedSearchDataManagement(request: FormRuntimeApi['request'], query: DataManagementQuery): Promise<DataManagementListResult>;
|
|
307
|
-
declare function deleteDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
308
|
-
appType: string;
|
|
309
|
-
formUuid: string;
|
|
310
|
-
formInstanceIds: string[];
|
|
311
|
-
}): Promise<any>;
|
|
312
|
-
declare function batchApproveDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
313
|
-
appType: string;
|
|
314
|
-
formUuid: string;
|
|
315
|
-
formInstanceIds: string[];
|
|
316
|
-
action: 'approved' | 'rejected';
|
|
317
|
-
comments?: string;
|
|
318
|
-
}): Promise<any>;
|
|
319
|
-
declare function exportDataManagementRows(request: FormRuntimeApi['request'], params: DataManagementQuery & {
|
|
320
|
-
exportAll?: 'y' | 'n';
|
|
321
|
-
embedImages?: 'y' | 'n';
|
|
322
|
-
exportFields?: string[];
|
|
323
|
-
}): Promise<Blob | RuntimeResponse<any>>;
|
|
324
|
-
declare function downloadDataManagementImportTemplate(request: FormRuntimeApi['request'], params: {
|
|
325
|
-
appType: string;
|
|
326
|
-
formUuid: string;
|
|
327
|
-
}): Promise<Blob | RuntimeResponse<any>>;
|
|
328
|
-
declare function importPreviewDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
329
|
-
appType: string;
|
|
330
|
-
formUuid: string;
|
|
331
|
-
fileBase64: string;
|
|
332
|
-
}): Promise<any>;
|
|
333
|
-
declare function importDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
334
|
-
appType: string;
|
|
335
|
-
formUuid: string;
|
|
336
|
-
fileBase64: string;
|
|
337
|
-
}): Promise<any>;
|
|
338
|
-
declare function getDataManagementTransferRecords(request: FormRuntimeApi['request'], params: {
|
|
339
|
-
appType: string;
|
|
340
|
-
formUuid: string;
|
|
341
|
-
type: 'import' | 'export';
|
|
342
|
-
currentPage?: number;
|
|
343
|
-
pageSize?: number;
|
|
344
|
-
}): Promise<DataManagementListResult>;
|
|
345
|
-
|
|
346
215
|
declare function TextField(props: TextFieldProps): React__default.JSX.Element | null;
|
|
347
216
|
|
|
348
217
|
declare function NumberField(props: NumberFieldProps): React__default.JSX.Element | null;
|
|
@@ -902,6 +771,7 @@ interface DataManagementListProps {
|
|
|
902
771
|
title?: string;
|
|
903
772
|
formTitle?: string;
|
|
904
773
|
formType?: string;
|
|
774
|
+
schema?: FormSchema;
|
|
905
775
|
forcedConfig?: DataManagementConfig;
|
|
906
776
|
showForcedConfig?: boolean;
|
|
907
777
|
detailRenderer?: DetailRenderer;
|
|
@@ -1037,4 +907,4 @@ interface PageSkeletonProps {
|
|
|
1037
907
|
}
|
|
1038
908
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1039
909
|
|
|
1040
|
-
export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, CascadeDateField, CascadeDateFieldProps, CascadeSelectField, CascadeSelectFieldProps, ChangeRecord, ChangeRecordListResponse, ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider,
|
|
910
|
+
export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, CascadeDateField, CascadeDateFieldProps, CascadeSelectField, CascadeSelectFieldProps, ChangeRecord, ChangeRecordListResponse, ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, DataManagementConfig, DataManagementConfigScope, DataManagementList, type DataManagementListProps, type DataManagementRowAction, DateField, DateFieldProps, DepartmentSelectField, DepartmentSelectFieldProps, type DeviceDetectResult, DigitalSignatureField, DigitalSignatureFieldProps, DraftManager, type DraftManagerProps, EditorChoiceOption, EditorField, EditorFieldProps, UserSelectField as EmployeeSelectField, FieldBehavior, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormAppearanceConfig, FormContainer, type FormContainerProps, FormContext, type FormContextValue, FormDataDeleteParams, FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, FormEffect, FormEngineConfig, FormGrid, type FormGridProps, FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, FormRuntimeApi, FormRuntimeApiConfig, FormRuntimeConfig, FormSchema, FormShell, type FormShellProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, ImageFieldProps, InitiatorSelectCandidate, InitiatorSelectRequirement, InitiatorSelectedApprovers, JSONField, JSONFieldProps, LocationField, LocationFieldProps, LowcodePageRenderer, type LowcodePageRendererProps, type LowcodePageRuntimeContext, LowcodePageSchema, MultiSelectField, MultiSelectFieldProps, NumberField, NumberFieldProps, OptionItem, OptionSourceConfig, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, PreviewParams, ProcessAction, ProcessBasicInfo, ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, ProcessRoute, ProcessStatus, ProcessTask, RadioField, RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, ResubmitParams, ReturnParams, ReturnPolicy, ReturnableNode, ReturnableNodeResult, RichTextEditorCore, type RichTextEditorCoreProps, RuntimePageShell, type RuntimePageShellProps, SaveTaskParams, SelectField, SelectFieldProps, SerialNumberField, SerialNumberFieldProps, StandardFormPage, StandardFormPageMode, type StandardFormPageProps, StatusMeta, StickyActionBar, type StickyActionBarProps, SubFormField, SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, TaskStatus, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, TextAreaField as TextareaField, TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, UserSelectField, UserSelectFieldProps, VALIDATION_PRESETS, ValidationPreset, ValidationRule, ViewPermissionQueryParams, ViewPermissionSummary, WithdrawParams, checkUserApproval, createFormRuntimeApi, decodeHtmlEntities, defaultComponentRegistry, defineFormSchema, deleteFormData, evaluateEffects, extractFormValues, getChangeRecords, getFormData, getInitiatorSelectCandidates, getInitiatorSelectRequirements, getProcessBasic, getProcessDefinition, getProcessProgress, getResubmitInitiatorSelectRequirements, getReturnableNodeResult, getReturnableNodes, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, normalizeFieldBehaviors, normalizeOperation, normalizeRichTextHtml, previewProcess, resolveDefaultValueLinkage, resolveOptions, resubmitTask, returnTask, sanitizeRichTextHtml, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { d as FormEngineConfig,
|
|
2
|
-
export { af as AddressValue, ag as ApprovalActionType, ah as ApprovalTimeline, ai as ApprovalTimelineProps, aj as AssociationFormConfig, ak as AssociationValue, al as AttachmentImageVariants, am as AttachmentItem, an as BaseFieldProps, ao as BaseLayoutNode, ap as DataFilter, aq as DataLinkageCondition, ar as DataLinkageConfig, as as DateRangeRestriction, at as DateRestrictionConfig, au as DateShortcutConfig, av as DateShortcutType, aw as DefaultValueLinkageConfig, ax as DepartmentTreeNode, ay as DigitalSignatureValue, az as EditorToolbarAction, aA as FieldLayoutNode, aB as FieldValueSyncConfig, aC as FormEffectAction, aD as FormEffectCondition, aE as FormEffectConditionOperator, aF as FormEngineMode, aG as FormLayoutNode, aH as FormSection, aI as FormSectionProps, aJ as FormSubmitBehavior, aK as FormTemplateConfig, aL as GridLayoutCell, aM as GridLayoutNode, aN as ImageCompressionConfig, aO as ImageCompressionVariantConfig, aP as ImageVariant, aQ as InitiatorSelectScope, aR as LayoutVisibleWhen, aS as LinkedFormOptionConfig, aT as LocationValue, aU as LowcodePageMeta, aV as LowcodePageNode, aW as LowcodePageNodeType, aX as OptionSourceType, aY as PeopleShortcutConfig, aZ as PeopleShortcutType, a_ as ProcessNodeType, a$ as ProcessPreview, b0 as ProcessPreviewProps, b1 as
|
|
1
|
+
import { d as FormEngineConfig, b as FormSchema, e as FieldBehavior, O as OptionItem, a as FormRuntimeApi, f as FormRuntimeConfig, g as FormAppearanceConfig, V as ValidationPreset, h as ValidationRule, i as FormEffect, c as FormRuntimeApiConfig, j as OptionSourceConfig, P as ProcessStatus, S as StatusMeta, T as TaskStatus, A as ApprovalPermission, k as FormDataDeleteParams, C as ChangeRecordQueryParams, l as ChangeRecordListResponse, m as FormDataQueryParams, n as FormInstanceData, I as InitiatorSelectCandidate, o as InitiatorSelectRequirement, p as ProcessBasicInfo, q as ProcessDefinition, r as ProcessTask, s as ReturnableNodeResult, t as ReturnableNode, u as ViewPermissionQueryParams, v as ViewPermissionSummary, w as ApproveParams, x as PreviewParams, y as ProcessRoute, z as ResubmitParams, B as ReturnParams, D as SaveTaskParams, E as TransferParams, W as WithdrawParams, G as TextFieldProps, N as NumberFieldProps, H as TextAreaFieldProps, J as SelectFieldProps, M as MultiSelectFieldProps, K as RadioFieldProps, L as CheckboxFieldProps, Q as DateFieldProps, U as CascadeDateFieldProps, X as AttachmentFieldProps, Y as ImageFieldProps, Z as SubFormFieldProps, _ as UserSelectFieldProps, $ as DepartmentSelectFieldProps, a0 as CascadeSelectFieldProps, a1 as AddressFieldProps, a2 as AssociationFormFieldProps, a3 as EditorFieldProps, a4 as EditorChoiceOption, a5 as SerialNumberFieldProps, a6 as LocationFieldProps, a7 as DigitalSignatureFieldProps, a8 as JSONFieldProps, a9 as ProcessAction, aa as InitiatorSelectedApprovers, ab as ReturnPolicy, ac as ChangeRecord, ad as StandardFormPageMode, ae as LowcodePageSchema } from '../ProcessPreview-CUQFUDvw.js';
|
|
2
|
+
export { af as AddressValue, ag as ApprovalActionType, ah as ApprovalTimeline, ai as ApprovalTimelineProps, aj as AssociationFormConfig, ak as AssociationValue, al as AttachmentImageVariants, am as AttachmentItem, an as BaseFieldProps, ao as BaseLayoutNode, ap as DataFilter, aq as DataLinkageCondition, ar as DataLinkageConfig, as as DateRangeRestriction, at as DateRestrictionConfig, au as DateShortcutConfig, av as DateShortcutType, aw as DefaultValueLinkageConfig, ax as DepartmentTreeNode, ay as DigitalSignatureValue, az as EditorToolbarAction, F as FieldDefinition, aA as FieldLayoutNode, aB as FieldValueSyncConfig, aC as FormEffectAction, aD as FormEffectCondition, aE as FormEffectConditionOperator, aF as FormEngineMode, aG as FormLayoutNode, aH as FormSection, aI as FormSectionProps, aJ as FormSubmitBehavior, aK as FormTemplateConfig, aL as GridLayoutCell, aM as GridLayoutNode, aN as ImageCompressionConfig, aO as ImageCompressionVariantConfig, aP as ImageVariant, aQ as InitiatorSelectScope, aR as LayoutVisibleWhen, aS as LinkedFormOptionConfig, aT as LocationValue, aU as LowcodePageMeta, aV as LowcodePageNode, aW as LowcodePageNodeType, aX as OptionSourceType, aY as PeopleShortcutConfig, aZ as PeopleShortcutType, a_ as ProcessNodeType, a$ as ProcessPreview, b0 as ProcessPreviewProps, b1 as RuntimeAuthHeadersProvider, b2 as RuntimeDataQueryParams, b3 as RuntimeDataQueryResult, b4 as RuntimeRequestConfig, R as RuntimeResponse, b5 as RuntimeUploadOptions, b6 as RuntimeUploadProvider, b7 as SectionLayoutNode, b8 as SignaturePoint, b9 as StepLayoutItem, ba as StepsLayoutNode, bb as SubFormColumn, bc as TabLayoutItem, bd as TabsLayoutNode, be as TextShortcutConfig, bf as TextShortcutType, bg as UserDisplayFormat, bh as UserItem } from '../ProcessPreview-CUQFUDvw.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
+
import { D as DataManagementConfigScope, a as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-CwBEmnXg.js';
|
|
6
|
+
export { b as DataManagementDensity, c as DataManagementField, d as DataManagementFilterGroup, f as DataManagementFilterRule, g as DataManagementListResult, h as DataManagementQuery, i as DataManagementSort, j as advancedSearchDataManagement, k as batchApproveDataManagementRows, l as buildFilterPayload, m as deleteDataManagementRows, n as downloadDataManagementImportTemplate, o 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-CwBEmnXg.js';
|
|
5
7
|
|
|
6
8
|
interface FormContextValue {
|
|
7
9
|
mode: FormEngineConfig['mode'];
|
|
@@ -210,139 +212,6 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
210
212
|
/** 获取视图权限摘要 */
|
|
211
213
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
212
214
|
|
|
213
|
-
type DataManagementConfigScope = 'global' | 'personal';
|
|
214
|
-
type DataManagementDensity = 'compact' | 'middle' | 'loose';
|
|
215
|
-
type FilterLogic = 'AND' | 'OR';
|
|
216
|
-
interface DataManagementField extends FieldDefinition {
|
|
217
|
-
id: string;
|
|
218
|
-
fieldId: string;
|
|
219
|
-
componentName: string;
|
|
220
|
-
label: string;
|
|
221
|
-
width?: number;
|
|
222
|
-
system?: boolean;
|
|
223
|
-
processOnly?: boolean;
|
|
224
|
-
displayable?: boolean;
|
|
225
|
-
}
|
|
226
|
-
interface DataManagementFilterRule {
|
|
227
|
-
id: string;
|
|
228
|
-
key: string;
|
|
229
|
-
operator: string;
|
|
230
|
-
value: any;
|
|
231
|
-
componentName?: string;
|
|
232
|
-
}
|
|
233
|
-
interface DataManagementFilterGroup {
|
|
234
|
-
id: string;
|
|
235
|
-
logic: FilterLogic;
|
|
236
|
-
rules: DataManagementFilterRule[];
|
|
237
|
-
conditions: DataManagementFilterGroup[];
|
|
238
|
-
}
|
|
239
|
-
interface DataManagementSort {
|
|
240
|
-
id: string;
|
|
241
|
-
isAsc: 'y' | 'n';
|
|
242
|
-
}
|
|
243
|
-
interface DataManagementConfig {
|
|
244
|
-
showFields?: string[];
|
|
245
|
-
widths?: Record<string, number>;
|
|
246
|
-
lockFieldIds?: string[];
|
|
247
|
-
sort?: DataManagementSort[];
|
|
248
|
-
filter?: {
|
|
249
|
-
searchKeyWord?: string;
|
|
250
|
-
group?: DataManagementFilterGroup;
|
|
251
|
-
};
|
|
252
|
-
density?: DataManagementDensity;
|
|
253
|
-
detailOpenMode?: 'drawer' | 'newPage';
|
|
254
|
-
pageSize?: number;
|
|
255
|
-
showForcedConfig?: boolean;
|
|
256
|
-
[key: string]: any;
|
|
257
|
-
}
|
|
258
|
-
interface DataManagementQuery {
|
|
259
|
-
appType: string;
|
|
260
|
-
formUuid: string;
|
|
261
|
-
filters?: DataManagementFilterGroup;
|
|
262
|
-
rawFilters?: string;
|
|
263
|
-
conditionType?: FilterLogic;
|
|
264
|
-
searchKeyWord?: string;
|
|
265
|
-
currentPage?: number;
|
|
266
|
-
pageSize?: number;
|
|
267
|
-
order?: DataManagementSort[];
|
|
268
|
-
instanceStatus?: string;
|
|
269
|
-
}
|
|
270
|
-
interface DataManagementListResult {
|
|
271
|
-
records: any[];
|
|
272
|
-
total: number;
|
|
273
|
-
}
|
|
274
|
-
interface DataManagementApiOptions {
|
|
275
|
-
appType: string;
|
|
276
|
-
formUuid: string;
|
|
277
|
-
menuFormUuid?: string;
|
|
278
|
-
scope?: DataManagementConfigScope;
|
|
279
|
-
}
|
|
280
|
-
type FormActionPermission = 'view' | 'create' | 'edit' | 'delete' | 'export' | 'import' | 'change_records' | 'workflow';
|
|
281
|
-
declare const getSystemFieldsForFormType: (formType?: string) => DataManagementField[];
|
|
282
|
-
declare const normalizeDataManagementFields: (payload: any) => {
|
|
283
|
-
fields: DataManagementField[];
|
|
284
|
-
formType?: string;
|
|
285
|
-
schema?: FormSchema;
|
|
286
|
-
};
|
|
287
|
-
declare const normalizeDataManagementList: (payload: any) => DataManagementListResult;
|
|
288
|
-
declare const buildFilterPayload: (group?: DataManagementFilterGroup) => string | undefined;
|
|
289
|
-
declare const normalizeColumnConfig: (cfg: DataManagementConfig | undefined, fields: DataManagementField[]) => Required<Pick<DataManagementConfig, "showFields" | "widths" | "lockFieldIds" | "sort">> & {
|
|
290
|
-
density: DataManagementDensity;
|
|
291
|
-
detailOpenMode: "drawer" | "newPage";
|
|
292
|
-
pageSize: number;
|
|
293
|
-
};
|
|
294
|
-
declare function getDataManagementSchema(request: FormRuntimeApi['request'], params: {
|
|
295
|
-
appType: string;
|
|
296
|
-
formUuid: string;
|
|
297
|
-
}): Promise<{
|
|
298
|
-
fields: DataManagementField[];
|
|
299
|
-
formType?: string;
|
|
300
|
-
schema?: FormSchema;
|
|
301
|
-
}>;
|
|
302
|
-
declare function getDataManagementConfig(request: FormRuntimeApi['request'], options: DataManagementApiOptions): Promise<DataManagementConfig | undefined>;
|
|
303
|
-
declare function saveDataManagementConfig(request: FormRuntimeApi['request'], options: DataManagementApiOptions & {
|
|
304
|
-
config: DataManagementConfig;
|
|
305
|
-
}): Promise<any>;
|
|
306
|
-
declare function advancedSearchDataManagement(request: FormRuntimeApi['request'], query: DataManagementQuery): Promise<DataManagementListResult>;
|
|
307
|
-
declare function deleteDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
308
|
-
appType: string;
|
|
309
|
-
formUuid: string;
|
|
310
|
-
formInstanceIds: string[];
|
|
311
|
-
}): Promise<any>;
|
|
312
|
-
declare function batchApproveDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
313
|
-
appType: string;
|
|
314
|
-
formUuid: string;
|
|
315
|
-
formInstanceIds: string[];
|
|
316
|
-
action: 'approved' | 'rejected';
|
|
317
|
-
comments?: string;
|
|
318
|
-
}): Promise<any>;
|
|
319
|
-
declare function exportDataManagementRows(request: FormRuntimeApi['request'], params: DataManagementQuery & {
|
|
320
|
-
exportAll?: 'y' | 'n';
|
|
321
|
-
embedImages?: 'y' | 'n';
|
|
322
|
-
exportFields?: string[];
|
|
323
|
-
}): Promise<Blob | RuntimeResponse<any>>;
|
|
324
|
-
declare function downloadDataManagementImportTemplate(request: FormRuntimeApi['request'], params: {
|
|
325
|
-
appType: string;
|
|
326
|
-
formUuid: string;
|
|
327
|
-
}): Promise<Blob | RuntimeResponse<any>>;
|
|
328
|
-
declare function importPreviewDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
329
|
-
appType: string;
|
|
330
|
-
formUuid: string;
|
|
331
|
-
fileBase64: string;
|
|
332
|
-
}): Promise<any>;
|
|
333
|
-
declare function importDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
334
|
-
appType: string;
|
|
335
|
-
formUuid: string;
|
|
336
|
-
fileBase64: string;
|
|
337
|
-
}): Promise<any>;
|
|
338
|
-
declare function getDataManagementTransferRecords(request: FormRuntimeApi['request'], params: {
|
|
339
|
-
appType: string;
|
|
340
|
-
formUuid: string;
|
|
341
|
-
type: 'import' | 'export';
|
|
342
|
-
currentPage?: number;
|
|
343
|
-
pageSize?: number;
|
|
344
|
-
}): Promise<DataManagementListResult>;
|
|
345
|
-
|
|
346
215
|
declare function TextField(props: TextFieldProps): React__default.JSX.Element | null;
|
|
347
216
|
|
|
348
217
|
declare function NumberField(props: NumberFieldProps): React__default.JSX.Element | null;
|
|
@@ -902,6 +771,7 @@ interface DataManagementListProps {
|
|
|
902
771
|
title?: string;
|
|
903
772
|
formTitle?: string;
|
|
904
773
|
formType?: string;
|
|
774
|
+
schema?: FormSchema;
|
|
905
775
|
forcedConfig?: DataManagementConfig;
|
|
906
776
|
showForcedConfig?: boolean;
|
|
907
777
|
detailRenderer?: DetailRenderer;
|
|
@@ -1037,4 +907,4 @@ interface PageSkeletonProps {
|
|
|
1037
907
|
}
|
|
1038
908
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1039
909
|
|
|
1040
|
-
export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, CascadeDateField, CascadeDateFieldProps, CascadeSelectField, CascadeSelectFieldProps, ChangeRecord, ChangeRecordListResponse, ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider,
|
|
910
|
+
export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, CascadeDateField, CascadeDateFieldProps, CascadeSelectField, CascadeSelectFieldProps, ChangeRecord, ChangeRecordListResponse, ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, DataManagementConfig, DataManagementConfigScope, DataManagementList, type DataManagementListProps, type DataManagementRowAction, DateField, DateFieldProps, DepartmentSelectField, DepartmentSelectFieldProps, type DeviceDetectResult, DigitalSignatureField, DigitalSignatureFieldProps, DraftManager, type DraftManagerProps, EditorChoiceOption, EditorField, EditorFieldProps, UserSelectField as EmployeeSelectField, FieldBehavior, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormAppearanceConfig, FormContainer, type FormContainerProps, FormContext, type FormContextValue, FormDataDeleteParams, FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, FormEffect, FormEngineConfig, FormGrid, type FormGridProps, FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, FormRuntimeApi, FormRuntimeApiConfig, FormRuntimeConfig, FormSchema, FormShell, type FormShellProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, ImageFieldProps, InitiatorSelectCandidate, InitiatorSelectRequirement, InitiatorSelectedApprovers, JSONField, JSONFieldProps, LocationField, LocationFieldProps, LowcodePageRenderer, type LowcodePageRendererProps, type LowcodePageRuntimeContext, LowcodePageSchema, MultiSelectField, MultiSelectFieldProps, NumberField, NumberFieldProps, OptionItem, OptionSourceConfig, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, PreviewParams, ProcessAction, ProcessBasicInfo, ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, ProcessRoute, ProcessStatus, ProcessTask, RadioField, RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, ResubmitParams, ReturnParams, ReturnPolicy, ReturnableNode, ReturnableNodeResult, RichTextEditorCore, type RichTextEditorCoreProps, RuntimePageShell, type RuntimePageShellProps, SaveTaskParams, SelectField, SelectFieldProps, SerialNumberField, SerialNumberFieldProps, StandardFormPage, StandardFormPageMode, type StandardFormPageProps, StatusMeta, StickyActionBar, type StickyActionBarProps, SubFormField, SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, TaskStatus, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, TextAreaField as TextareaField, TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, UserSelectField, UserSelectFieldProps, VALIDATION_PRESETS, ValidationPreset, ValidationRule, ViewPermissionQueryParams, ViewPermissionSummary, WithdrawParams, checkUserApproval, createFormRuntimeApi, decodeHtmlEntities, defaultComponentRegistry, defineFormSchema, deleteFormData, evaluateEffects, extractFormValues, getChangeRecords, getFormData, getInitiatorSelectCandidates, getInitiatorSelectRequirements, getProcessBasic, getProcessDefinition, getProcessProgress, getResubmitInitiatorSelectRequirements, getReturnableNodeResult, getReturnableNodes, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, normalizeFieldBehaviors, normalizeOperation, normalizeRichTextHtml, previewProcess, resolveDefaultValueLinkage, resolveOptions, resubmitTask, returnTask, sanitizeRichTextHtml, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|