@tongfun/ui 0.0.1-alpha.17 → 0.0.1-alpha.19
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/dashboard-data-table/types.d.ts +2 -0
- package/dist/{exceljs.min-Ne1-12Yz.js → exceljs.min-h4d5FQ7Q.js} +1 -1
- package/dist/{index-CmIGO4To.js → index-Dwz1bAtd.js} +83648 -79243
- package/dist/index.d.ts +185 -0
- package/dist/{index.es-DrIDiuTi.js → index.es-DzzQyYAo.js} +128 -128
- package/dist/index.js +1192 -1103
- package/dist/{jspdf.es.min-IKcGZCu7.js → jspdf.es.min-BV-shjOY.js} +2 -2
- package/dist/list-filter/types.d.ts +12 -0
- package/dist/lowcode-agent/index.js +475 -36
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ export declare const TfHero: Component
|
|
|
116
116
|
export declare const TfIcon: Component
|
|
117
117
|
export declare const TfIconPicker: Component
|
|
118
118
|
export declare const TfImagePreview: Component
|
|
119
|
+
export declare const TfImportExportTaskCenter: Component
|
|
119
120
|
export declare const TfInfoCard: Component
|
|
120
121
|
export declare const TfInline: Component
|
|
121
122
|
export declare const TfInput: Component
|
|
@@ -231,6 +232,7 @@ export declare const TfVersionList: Component
|
|
|
231
232
|
export declare const TfVoiceThemePanel: Component
|
|
232
233
|
export declare const TfWatermark: Component
|
|
233
234
|
export declare const TfWorkspaceSidebar: Component
|
|
235
|
+
export declare const TfTooltip: Component
|
|
234
236
|
|
|
235
237
|
export declare const DEFAULT_GENERAL_LIST_AI_AGENT_ID: '2120346569850101761'
|
|
236
238
|
|
|
@@ -761,6 +763,189 @@ export interface TfRequestAuthAdapter {
|
|
|
761
763
|
}
|
|
762
764
|
|
|
763
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
|
+
retryable?: boolean
|
|
810
|
+
retryCount?: number
|
|
811
|
+
confirmable?: boolean
|
|
812
|
+
allowedImportModes?: ImportMode[] | null
|
|
813
|
+
pageId?: string | null
|
|
814
|
+
createdTime?: string
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export type TaskType = 'import' | 'export' | 'validate'
|
|
818
|
+
export type TaskStatus =
|
|
819
|
+
| 'queued'
|
|
820
|
+
| 'running'
|
|
821
|
+
| 'success'
|
|
822
|
+
| 'partial'
|
|
823
|
+
| 'failed'
|
|
824
|
+
| 'interrupted'
|
|
825
|
+
| 'expired'
|
|
826
|
+
|
|
827
|
+
export type TaskChain =
|
|
828
|
+
| 'EXCEL'
|
|
829
|
+
| 'REGISTRY'
|
|
830
|
+
| 'BUSINESS_FLOW'
|
|
831
|
+
| 'DATA_LOG'
|
|
832
|
+
| 'ES_DATA_LOG'
|
|
833
|
+
| 'RECYCLE_AUDIT'
|
|
834
|
+
|
|
835
|
+
export type { ExcelFailureItem }
|
|
836
|
+
|
|
837
|
+
export interface TaskStats {
|
|
838
|
+
totalCount: number
|
|
839
|
+
validCount: number
|
|
840
|
+
duplicateCount: number
|
|
841
|
+
errorCount: number
|
|
842
|
+
skippedCount: number
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export interface TaskCenterTask {
|
|
846
|
+
id: string
|
|
847
|
+
name: string
|
|
848
|
+
type: TaskType
|
|
849
|
+
chain?: TaskChain | string
|
|
850
|
+
status: TaskStatus
|
|
851
|
+
progress: number
|
|
852
|
+
summary?: string
|
|
853
|
+
stats?: TaskStats
|
|
854
|
+
failures?: ExcelFailureItem[]
|
|
855
|
+
errorTotal?: number
|
|
856
|
+
errorPage?: number
|
|
857
|
+
fileName?: string
|
|
858
|
+
createdAt: number
|
|
859
|
+
remote?: ImportExportTaskVO
|
|
860
|
+
resultFileType?: string
|
|
861
|
+
resultFileName?: string
|
|
862
|
+
expireAt?: string
|
|
863
|
+
retryable?: boolean
|
|
864
|
+
retryCount?: number
|
|
865
|
+
confirmable?: boolean
|
|
866
|
+
allowedImportModes?: ImportMode[]
|
|
867
|
+
pageId?: string
|
|
868
|
+
applicationId?: string
|
|
869
|
+
source: 'demo' | 'remote'
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export interface TaskCenterFilters {
|
|
873
|
+
taskType?: ImportExportTaskType
|
|
874
|
+
taskStatus?: ImportExportTaskStatus
|
|
875
|
+
chain?: TaskChain
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export interface TaskCenterPagination {
|
|
879
|
+
pageNum: number
|
|
880
|
+
pageSize: number
|
|
881
|
+
total: number
|
|
882
|
+
pages: number
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export interface TaskCenterContext {
|
|
886
|
+
tenantId?: string
|
|
887
|
+
applicationId?: string
|
|
888
|
+
userId?: string
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
export interface TaskCenterApiOptions {
|
|
893
|
+
applicationId?: string | number
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
export type RemoteTaskOptions = TaskCenterApiOptions
|
|
897
|
+
|
|
898
|
+
export interface LoadTaskPageOptions extends TaskCenterApiOptions {
|
|
899
|
+
pageNum?: number
|
|
900
|
+
pageSize?: number
|
|
901
|
+
filters?: Partial<TaskCenterFilters>
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export declare const taskCenterState: {
|
|
905
|
+
tasks: TaskCenterTask[]
|
|
906
|
+
taskMap: Record<string, TaskCenterTask>
|
|
907
|
+
filters: TaskCenterFilters
|
|
908
|
+
pagination: TaskCenterPagination
|
|
909
|
+
selectedIds: string[]
|
|
910
|
+
open: boolean
|
|
911
|
+
focusedTaskId: string | null
|
|
912
|
+
loading: boolean
|
|
913
|
+
context: TaskCenterContext
|
|
914
|
+
}
|
|
915
|
+
export declare const TASK_TYPE_LABELS: Record<TaskType, string>
|
|
916
|
+
export declare const TASK_STATUS_LABELS: Record<TaskStatus, string>
|
|
917
|
+
export declare const TASK_CHAIN_LABELS: Record<string, string>
|
|
918
|
+
export declare function isDeletableTask(task: Pick<TaskCenterTask, 'status'>): boolean
|
|
919
|
+
export declare function addTask(task: Omit<TaskCenterTask, 'id' | 'createdAt' | 'source'> & Partial<Pick<TaskCenterTask, 'id'>>): TaskCenterTask
|
|
920
|
+
export declare function updateTask(id: string, patch: Partial<TaskCenterTask>): void
|
|
921
|
+
export declare function removeTask(id: string): void
|
|
922
|
+
export declare function focusTask(taskId: string | null): void
|
|
923
|
+
export declare function openTaskCenter(taskId?: string): void
|
|
924
|
+
export declare function closeTaskCenter(): void
|
|
925
|
+
export declare function getTaskCenterTask(taskId: string): TaskCenterTask | undefined
|
|
926
|
+
export declare function registerRemoteTask(remote: ImportExportTaskVO, options?: RemoteTaskOptions): TaskCenterTask
|
|
927
|
+
export declare function registerRemoteTaskById(taskId: string, options?: RemoteTaskOptions): Promise<TaskCenterTask>
|
|
928
|
+
export declare function refreshRemoteTask(taskId: string, options?: TaskCenterApiOptions): Promise<TaskCenterTask>
|
|
929
|
+
export declare function setTaskCenterFilters(filters: Partial<TaskCenterFilters>): void
|
|
930
|
+
export declare function resetTaskCenterFilters(): void
|
|
931
|
+
export declare function setTaskCenterPage(pageNum: number, pageSize?: number): void
|
|
932
|
+
export declare function setTaskCenterSelection(taskIds: string[]): void
|
|
933
|
+
export declare function toggleTaskCenterSelection(taskId: string): void
|
|
934
|
+
export declare function selectAllDeletableTasks(): void
|
|
935
|
+
export declare function clearTaskCenterSelection(): void
|
|
936
|
+
export declare function loadRemoteTaskList(options?: LoadTaskPageOptions): Promise<TaskCenterTask[]>
|
|
937
|
+
export declare function deleteRemoteTasks(taskIds: string[], options?: TaskCenterApiOptions): Promise<{ deletedCount: number; taskIds: string[] }>
|
|
938
|
+
export declare function loadRemoteTaskErrors(taskId: string, pageNum?: number, pageSize?: number, options?: TaskCenterApiOptions): Promise<ExcelFailureItem[]>
|
|
939
|
+
export declare function downloadRemoteTask(task: TaskCenterTask, options?: TaskCenterApiOptions): Promise<void>
|
|
940
|
+
export declare function markTaskConfirmed(validationTaskId: string, importTaskId?: string): void
|
|
941
|
+
export declare function configureTaskCenterContext(context: TaskCenterContext): void
|
|
942
|
+
export declare function resetTaskCenterState(): void
|
|
943
|
+
export declare function stopRemoteTaskPolling(taskId: string): void
|
|
944
|
+
export declare function runDemoTask(id: string, durationMs: number, done?: (task: TaskCenterTask) => void): void
|
|
945
|
+
export declare function mapRemoteTask(remote: ImportExportTaskVO): TaskCenterTask
|
|
946
|
+
export declare function statusToLocal(status: ImportExportTaskStatus): TaskStatus
|
|
947
|
+
export declare function downloadFailureCsv(failures: ExcelFailureItem[], name: string): void
|
|
948
|
+
|
|
764
949
|
export declare function configureRequestAuth(adapter: TfRequestAuthAdapter | null): void
|
|
765
950
|
export declare function hasRequestAuthAdapter(): boolean
|
|
766
951
|
export declare function getRegisteredRequestAuthAdapter(): TfRequestAuthAdapter | null
|