openxiangda 1.0.151 → 1.0.152
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 +2 -0
- package/openxiangda-skills/SKILL.md +1 -0
- package/openxiangda-skills/references/component-guide.md +4 -0
- package/openxiangda-skills/references/pages/page-sdk.md +3 -2
- package/package.json +6 -2
- package/packages/sdk/dist/{ProcessPreview-BOCARAvP.d.mts → ProcessPreview-B_HqjU7v.d.mts} +4 -2
- package/packages/sdk/dist/{ProcessPreview-BOCARAvP.d.ts → ProcessPreview-B_HqjU7v.d.ts} +4 -2
- package/packages/sdk/dist/components/index.cjs +3488 -2270
- package/packages/sdk/dist/components/index.cjs.map +1 -1
- package/packages/sdk/dist/components/index.d.mts +145 -38
- package/packages/sdk/dist/components/index.d.ts +145 -38
- package/packages/sdk/dist/components/index.mjs +3240 -2017
- package/packages/sdk/dist/components/index.mjs.map +1 -1
- package/packages/sdk/dist/{dataManagementApi-CLMqf79O.d.mts → dataManagementApi-CEDsA3tT.d.ts} +2 -2
- package/packages/sdk/dist/{dataManagementApi-DhpRKmlp.d.ts → dataManagementApi-quq3Zhgo.d.mts} +2 -2
- package/packages/sdk/dist/runtime/index.cjs +3172 -2301
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- 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/index.mjs +3068 -2192
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.cjs +2 -2
- package/packages/sdk/dist/runtime/react.cjs.map +1 -1
- package/packages/sdk/dist/runtime/react.d.mts +9 -4
- package/packages/sdk/dist/runtime/react.d.ts +9 -4
- package/packages/sdk/dist/runtime/react.mjs +2 -2
- package/packages/sdk/dist/runtime/react.mjs.map +1 -1
- package/templates/openxiangda-react-spa/AGENTS.md +2 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Z as FormEngineConfig, a4 as FormSchema, O as FieldBehavior, au as OptionItem, a1 as FormRuntimeApi, a3 as FormRuntimeConfig, S as FormAppearanceConfig, bg as ValidationPreset, bh as ValidationRule, V as FormEffect, a2 as FormRuntimeApiConfig, av as OptionSourceConfig, aH as ProcessStatus, b0 as StatusMeta, b7 as TaskStatus, c as ApprovalPermission, T as FormDataDeleteParams, q as ChangeRecordQueryParams, p as ChangeRecordListResponse, U as FormDataQueryParams, $ as FormInstanceData, af as InitiatorSelectCandidate, ag as InitiatorSelectRequirement, aB as ProcessBasicInfo, aC as ProcessDefinition, aI as ProcessTask, aO as ReturnableNodeResult, aN as ReturnableNode, bi as ViewPermissionQueryParams, bj as ViewPermissionSummary, f as ApproveParams, az as PreviewParams, aG as ProcessRoute, aK as ResubmitParams, aL as ReturnParams, aW as SaveTaskParams, bc as TransferParams, bk as WithdrawParams, b9 as TextFieldProps, at as NumberFieldProps, b8 as TextAreaFieldProps, aY as SelectFieldProps, as as MultiSelectFieldProps, aJ as RadioFieldProps, r as CheckboxFieldProps, u as DateFieldProps, C as CascadeDateFieldProps, j as AttachmentFieldProps, ad as ImageFieldProps, b4 as SubFormFieldProps, bf as UserSelectFieldProps, H as DepartmentSelectFieldProps, n as CascadeSelectFieldProps, A as AddressFieldProps, h as AssociationFormFieldProps, M as EditorFieldProps, L as EditorChoiceOption, aZ as SerialNumberFieldProps, am as LocationFieldProps, J as DigitalSignatureFieldProps, aj as JSONFieldProps, l as AttachmentItem, aA as ProcessAction, ai as InitiatorSelectedApprovers, aM as ReturnPolicy, o as ChangeRecord, a$ as StandardFormPageMode, ar as LowcodePageSchema } from '../ProcessPreview-B_HqjU7v.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, W as FormEffectAction, X as FormEffectCondition, Y as FormEffectConditionOperator, _ as FormEngineMode, a0 as FormLayoutNode, a5 as FormSection, a6 as FormSectionProps, a7 as FormSubmitBehavior, a8 as FormTemplateConfig, a9 as GridLayoutCell, aa as GridLayoutNode, ab as ImageCompressionConfig, ac as ImageCompressionVariantConfig, ae as ImageVariant, ah as InitiatorSelectScope, ak as LayoutVisibleWhen, al as LinkedFormOptionConfig, an as LocationValue, ao as LowcodePageMeta, ap as LowcodePageNode, aq as LowcodePageNodeType, aw as OptionSourceType, ax as PeopleShortcutConfig, ay as PeopleShortcutType, aD as ProcessNodeType, aE as ProcessPreview, aF as ProcessPreviewProps, aP as RuntimeAuthHeadersProvider, aQ as RuntimeDataQueryParams, aR as RuntimeDataQueryResult, aS as RuntimeRequestConfig, aT as RuntimeResponse, aU as RuntimeUploadOptions, aV as RuntimeUploadProvider, aX as SectionLayoutNode, a_ as SignaturePoint, b1 as StepLayoutItem, b2 as StepsLayoutNode, b3 as SubFormColumn, b5 as TabLayoutItem, b6 as TabsLayoutNode, ba as TextShortcutConfig, bb as TextShortcutType, bd as UserDisplayFormat, be as UserItem } from '../ProcessPreview-B_HqjU7v.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-quq3Zhgo.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-quq3Zhgo.mjs';
|
|
7
8
|
|
|
8
9
|
interface FormContextValue {
|
|
9
10
|
mode: FormEngineConfig['mode'];
|
|
@@ -57,14 +58,14 @@ interface FormRendererProps {
|
|
|
57
58
|
columns?: 1 | 2 | 3 | 4;
|
|
58
59
|
size?: 'compact' | 'default' | 'large';
|
|
59
60
|
}
|
|
60
|
-
declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps):
|
|
61
|
+
declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps): react_jsx_runtime.JSX.Element;
|
|
61
62
|
|
|
62
63
|
interface FormShellProps {
|
|
63
64
|
children: React__default.ReactNode;
|
|
64
65
|
appearance?: FormAppearanceConfig;
|
|
65
66
|
className?: string;
|
|
66
67
|
}
|
|
67
|
-
declare function FormShell({ children, appearance, className }: FormShellProps):
|
|
68
|
+
declare function FormShell({ children, appearance, className }: FormShellProps): react_jsx_runtime.JSX.Element;
|
|
68
69
|
|
|
69
70
|
interface FormActionsProps {
|
|
70
71
|
className?: string;
|
|
@@ -74,7 +75,7 @@ interface FormActionsProps {
|
|
|
74
75
|
onSubmit?: (values: Record<string, any>) => Promise<void>;
|
|
75
76
|
submitSuccessMode?: 'stay' | 'callback';
|
|
76
77
|
}
|
|
77
|
-
declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps):
|
|
78
|
+
declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps): react_jsx_runtime.JSX.Element | null;
|
|
78
79
|
|
|
79
80
|
declare const defaultComponentRegistry: Record<string, React__default.ComponentType<any>>;
|
|
80
81
|
|
|
@@ -114,7 +115,7 @@ interface FieldWrapperProps {
|
|
|
114
115
|
tipsClassName?: string;
|
|
115
116
|
children: React__default.ReactNode;
|
|
116
117
|
}
|
|
117
|
-
declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps):
|
|
118
|
+
declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps): react_jsx_runtime.JSX.Element;
|
|
118
119
|
|
|
119
120
|
interface FormContainerProps {
|
|
120
121
|
title?: string;
|
|
@@ -123,7 +124,7 @@ interface FormContainerProps {
|
|
|
123
124
|
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
124
125
|
className?: string;
|
|
125
126
|
}
|
|
126
|
-
declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps):
|
|
127
|
+
declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps): react_jsx_runtime.JSX.Element;
|
|
127
128
|
|
|
128
129
|
declare function createFormRuntimeApi(config?: FormRuntimeApiConfig): FormRuntimeApi;
|
|
129
130
|
|
|
@@ -212,39 +213,39 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
212
213
|
/** 获取视图权限摘要 */
|
|
213
214
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
214
215
|
|
|
215
|
-
declare function TextField(props: TextFieldProps):
|
|
216
|
+
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
216
217
|
|
|
217
|
-
declare function NumberField(props: NumberFieldProps):
|
|
218
|
+
declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
218
219
|
|
|
219
|
-
declare function TextAreaField(props: TextAreaFieldProps):
|
|
220
|
+
declare function TextAreaField(props: TextAreaFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
220
221
|
|
|
221
|
-
declare function SelectField(props: SelectFieldProps):
|
|
222
|
+
declare function SelectField(props: SelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
222
223
|
|
|
223
|
-
declare function MultiSelectField(props: MultiSelectFieldProps):
|
|
224
|
+
declare function MultiSelectField(props: MultiSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
224
225
|
|
|
225
|
-
declare function RadioField(props: RadioFieldProps):
|
|
226
|
+
declare function RadioField(props: RadioFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
226
227
|
|
|
227
|
-
declare function CheckboxField(props: CheckboxFieldProps):
|
|
228
|
+
declare function CheckboxField(props: CheckboxFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
228
229
|
|
|
229
|
-
declare function DateField(props: DateFieldProps):
|
|
230
|
+
declare function DateField(props: DateFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
230
231
|
|
|
231
|
-
declare function CascadeDateField(props: CascadeDateFieldProps):
|
|
232
|
+
declare function CascadeDateField(props: CascadeDateFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
232
233
|
|
|
233
|
-
declare function AttachmentField(props: AttachmentFieldProps):
|
|
234
|
+
declare function AttachmentField(props: AttachmentFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
234
235
|
|
|
235
|
-
declare function ImageField(props: ImageFieldProps):
|
|
236
|
+
declare function ImageField(props: ImageFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
236
237
|
|
|
237
|
-
declare function SubFormField(props: SubFormFieldProps):
|
|
238
|
+
declare function SubFormField(props: SubFormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
238
239
|
|
|
239
|
-
declare function UserSelectField(props: UserSelectFieldProps):
|
|
240
|
+
declare function UserSelectField(props: UserSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
240
241
|
|
|
241
|
-
declare function DepartmentSelectField(props: DepartmentSelectFieldProps):
|
|
242
|
+
declare function DepartmentSelectField(props: DepartmentSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
242
243
|
|
|
243
|
-
declare function CascadeSelectField(props: CascadeSelectFieldProps):
|
|
244
|
+
declare function CascadeSelectField(props: CascadeSelectFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
244
245
|
|
|
245
|
-
declare function AddressField(props: AddressFieldProps):
|
|
246
|
+
declare function AddressField(props: AddressFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
246
247
|
|
|
247
|
-
declare function AssociationFormField(props: AssociationFormFieldProps):
|
|
248
|
+
declare function AssociationFormField(props: AssociationFormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
248
249
|
|
|
249
250
|
interface RichTextEditorCoreProps {
|
|
250
251
|
value?: string;
|
|
@@ -266,16 +267,16 @@ interface RichTextEditorCoreProps {
|
|
|
266
267
|
fieldId?: string;
|
|
267
268
|
mobile?: boolean;
|
|
268
269
|
}
|
|
269
|
-
declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps):
|
|
270
|
-
declare function EditorField(props: EditorFieldProps):
|
|
270
|
+
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;
|
|
271
|
+
declare function EditorField(props: EditorFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
271
272
|
|
|
272
|
-
declare function SerialNumberField(props: SerialNumberFieldProps):
|
|
273
|
+
declare function SerialNumberField(props: SerialNumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
273
274
|
|
|
274
|
-
declare function LocationField(props: LocationFieldProps):
|
|
275
|
+
declare function LocationField(props: LocationFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
275
276
|
|
|
276
|
-
declare function DigitalSignatureField(props: DigitalSignatureFieldProps):
|
|
277
|
+
declare function DigitalSignatureField(props: DigitalSignatureFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
277
278
|
|
|
278
|
-
declare function JSONField(props: JSONFieldProps):
|
|
279
|
+
declare function JSONField(props: JSONFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
279
280
|
|
|
280
281
|
interface FormGridProps {
|
|
281
282
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -286,7 +287,7 @@ interface FormGridProps {
|
|
|
286
287
|
className?: string;
|
|
287
288
|
children: React__default.ReactNode;
|
|
288
289
|
}
|
|
289
|
-
declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps):
|
|
290
|
+
declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps): react_jsx_runtime.JSX.Element;
|
|
290
291
|
|
|
291
292
|
interface FormTabItem {
|
|
292
293
|
key: string;
|
|
@@ -299,7 +300,7 @@ interface FormTabsProps {
|
|
|
299
300
|
className?: string;
|
|
300
301
|
tabClassName?: string;
|
|
301
302
|
}
|
|
302
|
-
declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps):
|
|
303
|
+
declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps): react_jsx_runtime.JSX.Element;
|
|
303
304
|
|
|
304
305
|
interface FormStepItem {
|
|
305
306
|
key: string;
|
|
@@ -312,7 +313,7 @@ interface FormStepsProps {
|
|
|
312
313
|
className?: string;
|
|
313
314
|
onStepChange?: (step: number) => void;
|
|
314
315
|
}
|
|
315
|
-
declare function FormSteps({ items, className, onStepChange }: FormStepsProps):
|
|
316
|
+
declare function FormSteps({ items, className, onStepChange }: FormStepsProps): react_jsx_runtime.JSX.Element;
|
|
316
317
|
|
|
317
318
|
interface FormSummaryProps {
|
|
318
319
|
className?: string;
|
|
@@ -321,7 +322,113 @@ interface FormSummaryProps {
|
|
|
321
322
|
columns?: 1 | 2 | 3;
|
|
322
323
|
fields?: string[];
|
|
323
324
|
}
|
|
324
|
-
declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps):
|
|
325
|
+
declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
327
|
+
type FilePreviewType = 'image' | 'video' | 'audio' | 'pdf' | 'spreadsheet' | 'text' | 'office' | 'download';
|
|
328
|
+
type FilePreviewRenderMode = 'inline' | 'image-transcode' | 'image-heic' | 'pdfjs' | 'excel-basic' | 'excel-client' | 'text' | 'text-client' | 'docx-html' | 'onlyoffice' | 'office-text' | 'download';
|
|
329
|
+
type FilePreviewSurface = 'media' | 'document' | 'download';
|
|
330
|
+
type FilePreviewProvider = 'browser' | 'platform' | 'onlyoffice' | 'none';
|
|
331
|
+
interface FilePreviewCapability {
|
|
332
|
+
key?: string;
|
|
333
|
+
extension?: string;
|
|
334
|
+
previewType?: FilePreviewType;
|
|
335
|
+
renderMode?: FilePreviewRenderMode;
|
|
336
|
+
previewSurface?: FilePreviewSurface;
|
|
337
|
+
previewProvider?: FilePreviewProvider;
|
|
338
|
+
canPreview?: boolean;
|
|
339
|
+
canDownload?: boolean;
|
|
340
|
+
unsupportedReason?: string;
|
|
341
|
+
}
|
|
342
|
+
interface FilePreviewMetadata extends FilePreviewCapability {
|
|
343
|
+
capabilityVersion?: number;
|
|
344
|
+
ticket?: string;
|
|
345
|
+
appType?: string;
|
|
346
|
+
fileName?: string;
|
|
347
|
+
bucketName?: string;
|
|
348
|
+
objectName?: string;
|
|
349
|
+
size?: number;
|
|
350
|
+
contentType?: string;
|
|
351
|
+
downloadUrl?: string;
|
|
352
|
+
previewUrl?: string;
|
|
353
|
+
previewPageUrl?: string;
|
|
354
|
+
metadataUrl?: string;
|
|
355
|
+
imagePreviewUrl?: string;
|
|
356
|
+
excelPreviewUrl?: string;
|
|
357
|
+
textPreviewUrl?: string;
|
|
358
|
+
officeTextPreviewUrl?: string;
|
|
359
|
+
onlyofficeConfigUrl?: string;
|
|
360
|
+
onlyofficeEnabled?: boolean;
|
|
361
|
+
expiresIn?: number;
|
|
362
|
+
}
|
|
363
|
+
interface PreparedFilePreview {
|
|
364
|
+
item: AttachmentItem;
|
|
365
|
+
metadata: FilePreviewMetadata;
|
|
366
|
+
direct: boolean;
|
|
367
|
+
}
|
|
368
|
+
type FilePreviewRequest = FormRuntimeApi['request'];
|
|
369
|
+
interface FilePreviewCapabilityBatch {
|
|
370
|
+
capabilityVersion?: number;
|
|
371
|
+
onlyofficeEnabled?: boolean;
|
|
372
|
+
items?: FilePreviewCapability[];
|
|
373
|
+
}
|
|
374
|
+
interface PreviewImageItem {
|
|
375
|
+
key: string;
|
|
376
|
+
src: string;
|
|
377
|
+
name: string;
|
|
378
|
+
revokeOnClose?: boolean;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare const unwrapFilePreviewPayload: (payload: any) => any;
|
|
382
|
+
declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
|
|
383
|
+
declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
|
|
384
|
+
declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
|
|
385
|
+
declare const resolveLocalPreviewCapability: (item: AttachmentItem) => FilePreviewCapability;
|
|
386
|
+
declare const prepareFilePreview: (options: {
|
|
387
|
+
item: AttachmentItem;
|
|
388
|
+
api: FormRuntimeApi;
|
|
389
|
+
appType?: string;
|
|
390
|
+
bucketName: string;
|
|
391
|
+
}) => Promise<PreparedFilePreview>;
|
|
392
|
+
declare const loadPreviewBlob: (request: FormRuntimeApi["request"], url: string) => Promise<Blob>;
|
|
393
|
+
declare const convertHeicPreview: (request: FormRuntimeApi["request"], url: string) => Promise<string>;
|
|
394
|
+
|
|
395
|
+
declare const formatPreviewFileSize: (size?: number) => string;
|
|
396
|
+
declare const resolvePreviewServiceUrl: (url?: string, servicePrefix?: string) => string;
|
|
397
|
+
interface FilePreviewContentProps {
|
|
398
|
+
metadata: FilePreviewMetadata;
|
|
399
|
+
request: FilePreviewRequest;
|
|
400
|
+
servicePrefix?: string;
|
|
401
|
+
onDownload?: () => void;
|
|
402
|
+
}
|
|
403
|
+
declare const FilePreviewContent: ({ metadata, request, servicePrefix, onDownload, }: FilePreviewContentProps) => react_jsx_runtime.JSX.Element;
|
|
404
|
+
|
|
405
|
+
interface FilePreviewPageProps {
|
|
406
|
+
ticket: string;
|
|
407
|
+
request: FilePreviewRequest;
|
|
408
|
+
servicePrefix?: string;
|
|
409
|
+
}
|
|
410
|
+
declare const FilePreviewPage: ({ ticket, request, servicePrefix, }: FilePreviewPageProps) => react_jsx_runtime.JSX.Element;
|
|
411
|
+
|
|
412
|
+
interface UseFilePreviewOptions {
|
|
413
|
+
items: AttachmentItem[];
|
|
414
|
+
api: FormRuntimeApi;
|
|
415
|
+
appType?: string;
|
|
416
|
+
bucketName: string;
|
|
417
|
+
enabled?: boolean;
|
|
418
|
+
requireServerCapability?: boolean;
|
|
419
|
+
}
|
|
420
|
+
declare const useFilePreviewController: ({ items, api, appType, bucketName, enabled, requireServerCapability, }: UseFilePreviewOptions) => {
|
|
421
|
+
canPreview: (item: AttachmentItem) => boolean;
|
|
422
|
+
getCapability: (item: AttachmentItem) => FilePreviewCapability;
|
|
423
|
+
openPreview: (item: AttachmentItem) => Promise<void>;
|
|
424
|
+
openingKey: string;
|
|
425
|
+
isOpening: (item: AttachmentItem) => boolean;
|
|
426
|
+
downloadItem: (item: AttachmentItem, prepared?: PreparedFilePreview | null) => Promise<void>;
|
|
427
|
+
previewHost: react_jsx_runtime.JSX.Element | null;
|
|
428
|
+
};
|
|
429
|
+
declare const FilePreviewCapabilityError: ({ message }: {
|
|
430
|
+
message: string;
|
|
431
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
325
432
|
|
|
326
433
|
interface UseFormEngineReturn {
|
|
327
434
|
formData: Record<string, any>;
|
|
@@ -900,11 +1007,11 @@ interface LowcodePageRendererProps {
|
|
|
900
1007
|
schema: LowcodePageSchema;
|
|
901
1008
|
context?: LowcodePageRuntimeContext;
|
|
902
1009
|
}
|
|
903
|
-
declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps):
|
|
1010
|
+
declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps): react_jsx_runtime.JSX.Element;
|
|
904
1011
|
|
|
905
1012
|
interface PageSkeletonProps {
|
|
906
1013
|
type: 'submit' | 'detail' | 'process';
|
|
907
1014
|
}
|
|
908
1015
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
909
1016
|
|
|
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 };
|
|
1017
|
+
export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, AttachmentItem, 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, type FilePreviewCapability, type FilePreviewCapabilityBatch, FilePreviewCapabilityError, FilePreviewContent, type FilePreviewContentProps, type FilePreviewMetadata, FilePreviewPage, type FilePreviewPageProps, type FilePreviewProvider, type FilePreviewRenderMode, type FilePreviewRequest, type FilePreviewSurface, type FilePreviewType, 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, type PreparedFilePreview, type PreviewImageItem, 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, convertHeicPreview, createFormRuntimeApi, decodeHtmlEntities, defaultComponentRegistry, defineFormSchema, deleteFormData, evaluateEffects, extractFormValues, formatPreviewFileSize, getChangeRecords, getFormData, getInitiatorSelectCandidates, getInitiatorSelectRequirements, getPreviewItemKey, getPreviewSourceUrl, getProcessBasic, getProcessDefinition, getProcessProgress, getResubmitInitiatorSelectRequirements, getReturnableNodeResult, getReturnableNodes, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, isDirectStorageItem, loadPreviewBlob, normalizeFieldBehaviors, normalizeOperation, normalizeRichTextHtml, prepareFilePreview, previewProcess, resolveDefaultValueLinkage, resolveLocalPreviewCapability, resolveOptions, resolvePreviewServiceUrl, resubmitTask, returnTask, sanitizeRichTextHtml, saveTask, transferTask, triggerCallbackTask, unwrapFilePreviewPayload, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFilePreviewController, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|