openxiangda 1.0.140 → 1.0.141
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/package.json +1 -1
- package/packages/sdk/dist/{ProcessPreview-CZJP8n3e.d.mts → ProcessPreview-CsOTCTRT.d.mts} +1 -1
- package/packages/sdk/dist/{ProcessPreview-CZJP8n3e.d.ts → ProcessPreview-CsOTCTRT.d.ts} +1 -1
- package/packages/sdk/dist/components/index.cjs +80 -11
- 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 +80 -11
- package/packages/sdk/dist/components/index.mjs.map +1 -1
- package/packages/sdk/dist/dataManagementApi-C1OKWpP7.d.mts +141 -0
- package/packages/sdk/dist/dataManagementApi-Cd1axl3v.d.ts +141 -0
- package/packages/sdk/dist/runtime/index.cjs +82 -67
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.d.mts +3 -3
- package/packages/sdk/dist/runtime/index.d.ts +3 -3
- package/packages/sdk/dist/runtime/index.mjs +82 -67
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.d.mts +1 -1
- package/packages/sdk/dist/runtime/react.d.ts +1 -1
|
@@ -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 RuntimeDataQueryParams, b2 as RuntimeDataQueryResult, b3 as RuntimeRequestConfig, b4 as RuntimeUploadOptions, b5 as RuntimeUploadProvider, b6 as SectionLayoutNode, b7 as SignaturePoint, b8 as StepLayoutItem, b9 as StepsLayoutNode, ba as SubFormColumn, bb as TabLayoutItem, bc as TabsLayoutNode, bd as TextShortcutConfig, be as TextShortcutType, bf as UserDisplayFormat, bg as UserItem } from '../ProcessPreview-
|
|
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-CsOTCTRT.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 RuntimeDataQueryParams, b2 as RuntimeDataQueryResult, b3 as RuntimeRequestConfig, R as RuntimeResponse, b4 as RuntimeUploadOptions, b5 as RuntimeUploadProvider, b6 as SectionLayoutNode, b7 as SignaturePoint, b8 as StepLayoutItem, b9 as StepsLayoutNode, ba as SubFormColumn, bb as TabLayoutItem, bc as TabsLayoutNode, bd as TextShortcutConfig, be as TextShortcutType, bf as UserDisplayFormat, bg as UserItem } from '../ProcessPreview-CsOTCTRT.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-C1OKWpP7.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-C1OKWpP7.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 RuntimeDataQueryParams, b2 as RuntimeDataQueryResult, b3 as RuntimeRequestConfig, b4 as RuntimeUploadOptions, b5 as RuntimeUploadProvider, b6 as SectionLayoutNode, b7 as SignaturePoint, b8 as StepLayoutItem, b9 as StepsLayoutNode, ba as SubFormColumn, bb as TabLayoutItem, bc as TabsLayoutNode, bd as TextShortcutConfig, be as TextShortcutType, bf as UserDisplayFormat, bg as UserItem } from '../ProcessPreview-
|
|
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-CsOTCTRT.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 RuntimeDataQueryParams, b2 as RuntimeDataQueryResult, b3 as RuntimeRequestConfig, R as RuntimeResponse, b4 as RuntimeUploadOptions, b5 as RuntimeUploadProvider, b6 as SectionLayoutNode, b7 as SignaturePoint, b8 as StepLayoutItem, b9 as StepsLayoutNode, ba as SubFormColumn, bb as TabLayoutItem, bc as TabsLayoutNode, bd as TextShortcutConfig, be as TextShortcutType, bf as UserDisplayFormat, bg as UserItem } from '../ProcessPreview-CsOTCTRT.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-Cd1axl3v.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-Cd1axl3v.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 };
|
|
@@ -12323,6 +12323,60 @@ var unwrap = (response) => {
|
|
|
12323
12323
|
return response;
|
|
12324
12324
|
};
|
|
12325
12325
|
var pickData = (value) => value?.data ?? value?.result ?? value;
|
|
12326
|
+
var normalizePlatformComponentName = (componentName) => {
|
|
12327
|
+
const value = String(componentName || "").trim();
|
|
12328
|
+
return value || "TextField";
|
|
12329
|
+
};
|
|
12330
|
+
var extractSlotNodes = (value) => {
|
|
12331
|
+
if (!value) return [];
|
|
12332
|
+
if (Array.isArray(value)) {
|
|
12333
|
+
return value.flatMap((item) => extractSlotNodes(item));
|
|
12334
|
+
}
|
|
12335
|
+
if (typeof value !== "object") return [];
|
|
12336
|
+
if (value.type === "JSSlot" && value.value) {
|
|
12337
|
+
return extractSlotNodes(value.value);
|
|
12338
|
+
}
|
|
12339
|
+
if (value.componentName || Array.isArray(value.children)) {
|
|
12340
|
+
return [value];
|
|
12341
|
+
}
|
|
12342
|
+
return Object.values(value).flatMap((item) => extractSlotNodes(item));
|
|
12343
|
+
};
|
|
12344
|
+
var extractFieldsFromComponentsTree = (componentsTree) => {
|
|
12345
|
+
const roots = Array.isArray(componentsTree) ? componentsTree : [componentsTree];
|
|
12346
|
+
const fields = [];
|
|
12347
|
+
const seen = /* @__PURE__ */ new Set();
|
|
12348
|
+
const walk = (components) => {
|
|
12349
|
+
if (!Array.isArray(components)) return;
|
|
12350
|
+
components.forEach((component) => {
|
|
12351
|
+
if (!component || typeof component !== "object") return;
|
|
12352
|
+
const props = component.props || {};
|
|
12353
|
+
const fieldId = String(props.fieldId || component.fieldId || component.id || "").trim();
|
|
12354
|
+
if (props.isFormComponent === true && fieldId && !seen.has(fieldId)) {
|
|
12355
|
+
seen.add(fieldId);
|
|
12356
|
+
fields.push({
|
|
12357
|
+
...props,
|
|
12358
|
+
id: props.id || component.id || fieldId,
|
|
12359
|
+
fieldId,
|
|
12360
|
+
componentName: normalizePlatformComponentName(
|
|
12361
|
+
props.componentName || component.componentName
|
|
12362
|
+
),
|
|
12363
|
+
label: props.label || component.title || props.title || fieldId,
|
|
12364
|
+
title: props.title || component.title || props.label || fieldId,
|
|
12365
|
+
required: props.required ?? component.required
|
|
12366
|
+
});
|
|
12367
|
+
}
|
|
12368
|
+
if (component.componentName === "SubFormField") return;
|
|
12369
|
+
if (Array.isArray(component.children)) {
|
|
12370
|
+
walk(component.children);
|
|
12371
|
+
}
|
|
12372
|
+
Object.values(props).forEach((propValue) => {
|
|
12373
|
+
walk(extractSlotNodes(propValue));
|
|
12374
|
+
});
|
|
12375
|
+
});
|
|
12376
|
+
};
|
|
12377
|
+
walk(roots);
|
|
12378
|
+
return fields;
|
|
12379
|
+
};
|
|
12326
12380
|
var normalizeActionSummary = (value) => {
|
|
12327
12381
|
const raw = pickData(value) || {};
|
|
12328
12382
|
const actions = Array.from(
|
|
@@ -12351,6 +12405,11 @@ var normalizeField = (key, field, system = false) => ({
|
|
|
12351
12405
|
width: field?.width,
|
|
12352
12406
|
system
|
|
12353
12407
|
});
|
|
12408
|
+
var createDefaultLayout = (fields) => fields.map((field) => ({
|
|
12409
|
+
id: `layout_${field.fieldId}`,
|
|
12410
|
+
type: "field",
|
|
12411
|
+
fieldId: field.fieldId
|
|
12412
|
+
}));
|
|
12354
12413
|
var SYSTEM_VALUE_ALIASES = {
|
|
12355
12414
|
formInstanceId: ["formInstanceId", "formInstId", "form_instance_id", "processInstanceId"],
|
|
12356
12415
|
instanceTitle: ["instanceTitle", "instance_title", "processInstanceTitle", "title"],
|
|
@@ -12464,20 +12523,25 @@ var BASE_SYSTEM_FIELDS = [
|
|
|
12464
12523
|
)
|
|
12465
12524
|
];
|
|
12466
12525
|
var getSystemFieldsForFormType = (formType) => formType === "process" ? [...BASE_SYSTEM_FIELDS, ...PROCESS_SYSTEM_FIELDS] : BASE_SYSTEM_FIELDS;
|
|
12467
|
-
var normalizeDataManagementFields = (payload) => {
|
|
12526
|
+
var normalizeDataManagementFields = (payload, options = {}) => {
|
|
12468
12527
|
const data = pickData(payload);
|
|
12469
12528
|
const rawSchema = data?.schema || data?.formSchema || data?.publishedSchema || data;
|
|
12470
|
-
const schemaAppType = rawSchema?.formMeta?.appType || data?.appType;
|
|
12471
|
-
const schemaFormUuid = rawSchema?.formMeta?.formUuid || data?.formUuid;
|
|
12472
|
-
const schemaTitle = rawSchema?.formMeta?.title || data?.title || data?.name || data?.formName || schemaFormUuid;
|
|
12473
|
-
const formType = data?.formType || data?.schema?.formType || data?.schema?.template?.formType || rawSchema?.template?.formType || data?.type;
|
|
12474
|
-
const rawFields = data?.formFields || data?.schema?.formFields || data?.fields || data?.schema?.fields || data?.formSchema?.fields || [];
|
|
12475
|
-
const
|
|
12529
|
+
const schemaAppType = rawSchema?.formMeta?.appType || rawSchema?.appType || data?.appType || options.appType;
|
|
12530
|
+
const schemaFormUuid = rawSchema?.formMeta?.formUuid || rawSchema?.formUuid || data?.formUuid || options.formUuid;
|
|
12531
|
+
const schemaTitle = rawSchema?.formMeta?.title || rawSchema?.title || data?.title || data?.name || data?.formName || schemaFormUuid;
|
|
12532
|
+
const formType = data?.formType || data?.schema?.formType || data?.schema?.template?.formType || rawSchema?.formType || rawSchema?.template?.formType || data?.type;
|
|
12533
|
+
const rawFields = data?.formFields || data?.schema?.formFields || rawSchema?.formFields || data?.fields || data?.schema?.fields || data?.formSchema?.fields || rawSchema?.fields || [];
|
|
12534
|
+
const extractedFields = Array.isArray(rawFields) && rawFields.length === 0 && rawSchema?.componentsTree ? extractFieldsFromComponentsTree(rawSchema.componentsTree) : rawFields;
|
|
12535
|
+
const fields = (Array.isArray(extractedFields) ? extractedFields.map((field) => normalizeField(field?.fieldId || field?.id, field)) : Object.entries(extractedFields).map(([key, field]) => normalizeField(key, field))).filter((field) => field.componentName !== "PageSection");
|
|
12536
|
+
const schemaFields = Array.isArray(rawSchema?.fields) ? rawSchema.fields : fields;
|
|
12537
|
+
const hasSchemaFields = Array.isArray(rawSchema?.fields) || fields.length > 0;
|
|
12476
12538
|
return {
|
|
12477
|
-
fields
|
|
12539
|
+
fields,
|
|
12478
12540
|
formType,
|
|
12479
|
-
schema: rawSchema &&
|
|
12541
|
+
schema: rawSchema && hasSchemaFields && schemaAppType && schemaFormUuid ? {
|
|
12480
12542
|
...rawSchema,
|
|
12543
|
+
fields: schemaFields,
|
|
12544
|
+
layout: rawSchema.layout || createDefaultLayout(fields),
|
|
12481
12545
|
formMeta: {
|
|
12482
12546
|
formUuid: schemaFormUuid,
|
|
12483
12547
|
appType: schemaAppType,
|
|
@@ -12568,7 +12632,7 @@ async function getDataManagementSchema(request, params) {
|
|
|
12568
12632
|
method: "get",
|
|
12569
12633
|
params
|
|
12570
12634
|
});
|
|
12571
|
-
const result = normalizeDataManagementFields(response);
|
|
12635
|
+
const result = normalizeDataManagementFields(response, params);
|
|
12572
12636
|
if (result.schema) {
|
|
12573
12637
|
result.schema = {
|
|
12574
12638
|
...result.schema,
|
|
@@ -18465,6 +18529,7 @@ var DataManagementList = ({
|
|
|
18465
18529
|
title,
|
|
18466
18530
|
formTitle,
|
|
18467
18531
|
formType: propFormType,
|
|
18532
|
+
schema: providedSchema,
|
|
18468
18533
|
forcedConfig,
|
|
18469
18534
|
showForcedConfig = true,
|
|
18470
18535
|
detailRenderer,
|
|
@@ -18682,7 +18747,10 @@ var DataManagementList = ({
|
|
|
18682
18747
|
setTotal(0);
|
|
18683
18748
|
setSelectedRowKeys([]);
|
|
18684
18749
|
try {
|
|
18685
|
-
const schemaResult =
|
|
18750
|
+
const schemaResult = providedSchema ? normalizeDataManagementFields(
|
|
18751
|
+
{ appType, formUuid, schema: providedSchema },
|
|
18752
|
+
{ appType, formUuid }
|
|
18753
|
+
) : await getDataManagementSchema(request, { appType, formUuid });
|
|
18686
18754
|
if (!mounted) return;
|
|
18687
18755
|
const allFields = uniqueFields([
|
|
18688
18756
|
...schemaResult.fields,
|
|
@@ -18758,6 +18826,7 @@ var DataManagementList = ({
|
|
|
18758
18826
|
loadData,
|
|
18759
18827
|
menuFormUuid,
|
|
18760
18828
|
propFormType,
|
|
18829
|
+
providedSchema,
|
|
18761
18830
|
request,
|
|
18762
18831
|
title
|
|
18763
18832
|
]);
|