@tongfun/ui 0.0.1-alpha.16 → 0.0.1-alpha.18
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/dist/{exceljs.min-BBrfHMgn.js → exceljs.min-CPvoSTK-.js} +1 -1
- package/dist/{index-Bfckxmmd.js → index-B1y1yZ6e.js} +77179 -75121
- package/dist/index.d.ts +181 -1
- package/dist/{index.es-BX4Ds4un.js → index.es-B8jh1eAR.js} +128 -128
- package/dist/index.js +1114 -1054
- package/dist/{jspdf.es.min-CRnSO6n0.js → jspdf.es.min-BzkjZY77.js} +403 -403
- package/dist/list-filter/types.d.ts +12 -0
- package/dist/lowcode-agent/index.js +500 -213
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ export declare const TfChart: Component
|
|
|
39
39
|
export declare const TfCoSignFlow: Component
|
|
40
40
|
export declare const TfCoSigningFlow: Component
|
|
41
41
|
export declare const TfCodeBlock: Component
|
|
42
|
-
export declare const TfColumnConfigPanel: Component
|
|
43
42
|
export declare const TfColumnFilterPopover: Component
|
|
44
43
|
export declare const TfConditionBuilder: Component
|
|
45
44
|
export declare const TfContainer: Component
|
|
@@ -117,6 +116,7 @@ export declare const TfHero: Component
|
|
|
117
116
|
export declare const TfIcon: Component
|
|
118
117
|
export declare const TfIconPicker: Component
|
|
119
118
|
export declare const TfImagePreview: Component
|
|
119
|
+
export declare const TfImportExportTaskCenter: Component
|
|
120
120
|
export declare const TfInfoCard: Component
|
|
121
121
|
export declare const TfInline: Component
|
|
122
122
|
export declare const TfInput: Component
|
|
@@ -232,6 +232,7 @@ export declare const TfVersionList: Component
|
|
|
232
232
|
export declare const TfVoiceThemePanel: Component
|
|
233
233
|
export declare const TfWatermark: Component
|
|
234
234
|
export declare const TfWorkspaceSidebar: Component
|
|
235
|
+
export declare const TfTooltip: Component
|
|
235
236
|
|
|
236
237
|
export declare const DEFAULT_GENERAL_LIST_AI_AGENT_ID: '2120346569850101761'
|
|
237
238
|
|
|
@@ -762,6 +763,185 @@ export interface TfRequestAuthAdapter {
|
|
|
762
763
|
}
|
|
763
764
|
|
|
764
765
|
|
|
766
|
+
export type ImportMode = 'IMPORT' | 'UPDATE' | 'MIXED' | 'VALIDATE'
|
|
767
|
+
export type ImportExportTaskType = 'IMPORT' | 'EXPORT' | 'VALIDATE'
|
|
768
|
+
export type ImportExportTaskStatus =
|
|
769
|
+
| 'QUEUED'
|
|
770
|
+
| 'RUNNING'
|
|
771
|
+
| 'SUCCESS'
|
|
772
|
+
| 'PARTIAL'
|
|
773
|
+
| 'FAILED'
|
|
774
|
+
| 'INTERRUPTED'
|
|
775
|
+
| 'EXPIRED'
|
|
776
|
+
|
|
777
|
+
export interface ExcelFailureItem {
|
|
778
|
+
sheet?: string
|
|
779
|
+
row: number | string
|
|
780
|
+
col?: string | null
|
|
781
|
+
field?: string | null
|
|
782
|
+
code?: string | null
|
|
783
|
+
original?: string | null
|
|
784
|
+
reason: string
|
|
785
|
+
fixHint?: string | null
|
|
786
|
+
errorType?: string | null
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export interface ImportExportTaskVO {
|
|
790
|
+
taskId: string
|
|
791
|
+
taskType: ImportExportTaskType
|
|
792
|
+
chain?: string
|
|
793
|
+
taskStatus: ImportExportTaskStatus
|
|
794
|
+
progress: number
|
|
795
|
+
summary?: string
|
|
796
|
+
stats?: {
|
|
797
|
+
totalCount?: string | number
|
|
798
|
+
validCount?: string | number
|
|
799
|
+
duplicateCount?: string | number
|
|
800
|
+
errorCount?: string | number
|
|
801
|
+
skippedCount?: string | number
|
|
802
|
+
insertCount?: string | number
|
|
803
|
+
updateCount?: string | number
|
|
804
|
+
} | null
|
|
805
|
+
resultFileId?: string | null
|
|
806
|
+
resultFileName?: string | null
|
|
807
|
+
resultFileType?: string | null
|
|
808
|
+
expireAt?: string | null
|
|
809
|
+
confirmable?: boolean
|
|
810
|
+
allowedImportModes?: ImportMode[] | null
|
|
811
|
+
pageId?: string | null
|
|
812
|
+
createdTime?: string
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export type TaskType = 'import' | 'export' | 'validate'
|
|
816
|
+
export type TaskStatus =
|
|
817
|
+
| 'queued'
|
|
818
|
+
| 'running'
|
|
819
|
+
| 'success'
|
|
820
|
+
| 'partial'
|
|
821
|
+
| 'failed'
|
|
822
|
+
| 'interrupted'
|
|
823
|
+
| 'expired'
|
|
824
|
+
|
|
825
|
+
export type TaskChain =
|
|
826
|
+
| 'EXCEL'
|
|
827
|
+
| 'REGISTRY'
|
|
828
|
+
| 'BUSINESS_FLOW'
|
|
829
|
+
| 'DATA_LOG'
|
|
830
|
+
| 'ES_DATA_LOG'
|
|
831
|
+
| 'RECYCLE_AUDIT'
|
|
832
|
+
|
|
833
|
+
export type { ExcelFailureItem }
|
|
834
|
+
|
|
835
|
+
export interface TaskStats {
|
|
836
|
+
totalCount: number
|
|
837
|
+
validCount: number
|
|
838
|
+
duplicateCount: number
|
|
839
|
+
errorCount: number
|
|
840
|
+
skippedCount: number
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
export interface TaskCenterTask {
|
|
844
|
+
id: string
|
|
845
|
+
name: string
|
|
846
|
+
type: TaskType
|
|
847
|
+
chain?: TaskChain | string
|
|
848
|
+
status: TaskStatus
|
|
849
|
+
progress: number
|
|
850
|
+
summary?: string
|
|
851
|
+
stats?: TaskStats
|
|
852
|
+
failures?: ExcelFailureItem[]
|
|
853
|
+
errorTotal?: number
|
|
854
|
+
errorPage?: number
|
|
855
|
+
fileName?: string
|
|
856
|
+
createdAt: number
|
|
857
|
+
remote?: ImportExportTaskVO
|
|
858
|
+
resultFileType?: string
|
|
859
|
+
resultFileName?: string
|
|
860
|
+
expireAt?: string
|
|
861
|
+
confirmable?: boolean
|
|
862
|
+
allowedImportModes?: ImportMode[]
|
|
863
|
+
pageId?: string
|
|
864
|
+
applicationId?: string
|
|
865
|
+
source: 'demo' | 'remote'
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export interface TaskCenterFilters {
|
|
869
|
+
taskType?: ImportExportTaskType
|
|
870
|
+
taskStatus?: ImportExportTaskStatus
|
|
871
|
+
chain?: TaskChain
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export interface TaskCenterPagination {
|
|
875
|
+
pageNum: number
|
|
876
|
+
pageSize: number
|
|
877
|
+
total: number
|
|
878
|
+
pages: number
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export interface TaskCenterContext {
|
|
882
|
+
tenantId?: string
|
|
883
|
+
applicationId?: string
|
|
884
|
+
userId?: string
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
export interface TaskCenterApiOptions {
|
|
889
|
+
applicationId?: string | number
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export type RemoteTaskOptions = TaskCenterApiOptions
|
|
893
|
+
|
|
894
|
+
export interface LoadTaskPageOptions extends TaskCenterApiOptions {
|
|
895
|
+
pageNum?: number
|
|
896
|
+
pageSize?: number
|
|
897
|
+
filters?: Partial<TaskCenterFilters>
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export declare const taskCenterState: {
|
|
901
|
+
tasks: TaskCenterTask[]
|
|
902
|
+
taskMap: Record<string, TaskCenterTask>
|
|
903
|
+
filters: TaskCenterFilters
|
|
904
|
+
pagination: TaskCenterPagination
|
|
905
|
+
selectedIds: string[]
|
|
906
|
+
open: boolean
|
|
907
|
+
focusedTaskId: string | null
|
|
908
|
+
loading: boolean
|
|
909
|
+
context: TaskCenterContext
|
|
910
|
+
}
|
|
911
|
+
export declare const TASK_TYPE_LABELS: Record<TaskType, string>
|
|
912
|
+
export declare const TASK_STATUS_LABELS: Record<TaskStatus, string>
|
|
913
|
+
export declare const TASK_CHAIN_LABELS: Record<string, string>
|
|
914
|
+
export declare function isDeletableTask(task: Pick<TaskCenterTask, 'status'>): boolean
|
|
915
|
+
export declare function addTask(task: Omit<TaskCenterTask, 'id' | 'createdAt' | 'source'> & Partial<Pick<TaskCenterTask, 'id'>>): TaskCenterTask
|
|
916
|
+
export declare function updateTask(id: string, patch: Partial<TaskCenterTask>): void
|
|
917
|
+
export declare function removeTask(id: string): void
|
|
918
|
+
export declare function focusTask(taskId: string | null): void
|
|
919
|
+
export declare function openTaskCenter(taskId?: string): void
|
|
920
|
+
export declare function closeTaskCenter(): void
|
|
921
|
+
export declare function getTaskCenterTask(taskId: string): TaskCenterTask | undefined
|
|
922
|
+
export declare function registerRemoteTask(remote: ImportExportTaskVO, options?: RemoteTaskOptions): TaskCenterTask
|
|
923
|
+
export declare function registerRemoteTaskById(taskId: string, options?: RemoteTaskOptions): Promise<TaskCenterTask>
|
|
924
|
+
export declare function refreshRemoteTask(taskId: string, options?: TaskCenterApiOptions): Promise<TaskCenterTask>
|
|
925
|
+
export declare function setTaskCenterFilters(filters: Partial<TaskCenterFilters>): void
|
|
926
|
+
export declare function resetTaskCenterFilters(): void
|
|
927
|
+
export declare function setTaskCenterPage(pageNum: number, pageSize?: number): void
|
|
928
|
+
export declare function setTaskCenterSelection(taskIds: string[]): void
|
|
929
|
+
export declare function toggleTaskCenterSelection(taskId: string): void
|
|
930
|
+
export declare function selectAllDeletableTasks(): void
|
|
931
|
+
export declare function clearTaskCenterSelection(): void
|
|
932
|
+
export declare function loadRemoteTaskList(options?: LoadTaskPageOptions): Promise<TaskCenterTask[]>
|
|
933
|
+
export declare function deleteRemoteTasks(taskIds: string[], options?: TaskCenterApiOptions): Promise<{ deletedCount: number; taskIds: string[] }>
|
|
934
|
+
export declare function loadRemoteTaskErrors(taskId: string, pageNum?: number, pageSize?: number, options?: TaskCenterApiOptions): Promise<ExcelFailureItem[]>
|
|
935
|
+
export declare function downloadRemoteTask(task: TaskCenterTask, options?: TaskCenterApiOptions): Promise<void>
|
|
936
|
+
export declare function markTaskConfirmed(validationTaskId: string, importTaskId?: string): void
|
|
937
|
+
export declare function configureTaskCenterContext(context: TaskCenterContext): void
|
|
938
|
+
export declare function resetTaskCenterState(): void
|
|
939
|
+
export declare function stopRemoteTaskPolling(taskId: string): void
|
|
940
|
+
export declare function runDemoTask(id: string, durationMs: number, done?: (task: TaskCenterTask) => void): void
|
|
941
|
+
export declare function mapRemoteTask(remote: ImportExportTaskVO): TaskCenterTask
|
|
942
|
+
export declare function statusToLocal(status: ImportExportTaskStatus): TaskStatus
|
|
943
|
+
export declare function downloadFailureCsv(failures: ExcelFailureItem[], name: string): void
|
|
944
|
+
|
|
765
945
|
export declare function configureRequestAuth(adapter: TfRequestAuthAdapter | null): void
|
|
766
946
|
export declare function hasRequestAuthAdapter(): boolean
|
|
767
947
|
export declare function getRegisteredRequestAuthAdapter(): TfRequestAuthAdapter | null
|