sa2kit 1.6.15 → 1.6.17
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/calendar/index.js +8 -8
- package/dist/calendar/index.mjs +1 -1
- package/dist/{chunk-E72D5KHY.js → chunk-ASL3QC22.js} +6 -3
- package/dist/chunk-ASL3QC22.js.map +1 -0
- package/dist/{chunk-BH5TLVS5.mjs → chunk-FDHCX2BY.mjs} +6 -3
- package/dist/chunk-FDHCX2BY.mjs.map +1 -0
- package/dist/index.js +109 -109
- package/dist/index.mjs +2 -2
- package/dist/mmd/index.d.mts +28 -4
- package/dist/mmd/index.d.ts +28 -4
- package/dist/mmd/index.js +7300 -7058
- package/dist/mmd/index.js.map +1 -1
- package/dist/mmd/index.mjs +7301 -7060
- package/dist/mmd/index.mjs.map +1 -1
- package/dist/{types-BINlP9MK.d.mts → types-XTo80Oi_.d.mts} +1 -1
- package/dist/{types-BINlP9MK.d.ts → types-XTo80Oi_.d.ts} +1 -1
- package/dist/universalExport/index.d.mts +70 -3
- package/dist/universalExport/index.d.ts +70 -3
- package/dist/universalExport/index.js +568 -0
- package/dist/universalExport/index.js.map +1 -1
- package/dist/universalExport/index.mjs +563 -1
- package/dist/universalExport/index.mjs.map +1 -1
- package/dist/universalExport/server/index.d.mts +1 -1
- package/dist/universalExport/server/index.d.ts +1 -1
- package/package.json +19 -17
- package/dist/chunk-BH5TLVS5.mjs.map +0 -1
- package/dist/chunk-E72D5KHY.js.map +0 -1
|
@@ -283,4 +283,4 @@ type Validator<T = any> = (data: T) => boolean | string;
|
|
|
283
283
|
/** 格式化函数 */
|
|
284
284
|
type Formatter<T = any> = (value: T) => string;
|
|
285
285
|
|
|
286
|
-
export { type DataTransformer as D, type ExportConfig as E, type Formatter as F, type GroupingMode as G, type UniversalExportServiceConfig as U, type Validator as V, type ExportRequest as a, type ExportResult as b, type ExportProgress as c, type ExportFormat as d,
|
|
286
|
+
export { type DataTransformer as D, type ExportConfig as E, type Formatter as F, type GroupingMode as G, type UniversalExportServiceConfig as U, type Validator as V, type ExportRequest as a, type ExportResult as b, type ExportProgress as c, type ExportFormat as d, type ExportField as e, ExportServiceError as f, ExportConfigError as g, ExportDataError as h, ExportFileError as i, type FieldType as j, type FieldAlignment as k, type ExportStatus as l, type GroupValueProcessing as m, type GroupingField as n, type GroupingConfig as o, type ExportFilter as p, type ExportSort as q, type ExportError as r, type ExportEventType as s, type ExportEvent as t, type ExportEventListener as u, type FieldMapper as v };
|
|
@@ -283,4 +283,4 @@ type Validator<T = any> = (data: T) => boolean | string;
|
|
|
283
283
|
/** 格式化函数 */
|
|
284
284
|
type Formatter<T = any> = (value: T) => string;
|
|
285
285
|
|
|
286
|
-
export { type DataTransformer as D, type ExportConfig as E, type Formatter as F, type GroupingMode as G, type UniversalExportServiceConfig as U, type Validator as V, type ExportRequest as a, type ExportResult as b, type ExportProgress as c, type ExportFormat as d,
|
|
286
|
+
export { type DataTransformer as D, type ExportConfig as E, type Formatter as F, type GroupingMode as G, type UniversalExportServiceConfig as U, type Validator as V, type ExportRequest as a, type ExportResult as b, type ExportProgress as c, type ExportFormat as d, type ExportField as e, ExportServiceError as f, ExportConfigError as g, ExportDataError as h, ExportFileError as i, type FieldType as j, type FieldAlignment as k, type ExportStatus as l, type GroupValueProcessing as m, type GroupingField as n, type GroupingConfig as o, type ExportFilter as p, type ExportSort as q, type ExportError as r, type ExportEventType as s, type ExportEvent as t, type ExportEventListener as u, type FieldMapper as v };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { E as ExportConfig, a as ExportRequest, b as ExportResult, c as ExportProgress, d as ExportFormat, F as Formatter } from '../types-
|
|
2
|
-
export { D as DataTransformer,
|
|
1
|
+
import { E as ExportConfig, a as ExportRequest, b as ExportResult, c as ExportProgress, d as ExportFormat, F as Formatter, e as ExportField } from '../types-XTo80Oi_.mjs';
|
|
2
|
+
export { D as DataTransformer, g as ExportConfigError, h as ExportDataError, r as ExportError, t as ExportEvent, u as ExportEventListener, s as ExportEventType, i as ExportFileError, p as ExportFilter, f as ExportServiceError, q as ExportSort, l as ExportStatus, k as FieldAlignment, v as FieldMapper, j as FieldType, m as GroupValueProcessing, o as GroupingConfig, n as GroupingField, G as GroupingMode, U as UniversalExportServiceConfig, V as Validator } from '../types-XTo80Oi_.mjs';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* 通用导出服务客户端SDK
|
|
@@ -232,4 +233,70 @@ declare function createExportError(code: string, message: string, details?: Reco
|
|
|
232
233
|
*/
|
|
233
234
|
declare function formatErrorMessage(error: unknown): string;
|
|
234
235
|
|
|
235
|
-
|
|
236
|
+
/**
|
|
237
|
+
* 通用导出按钮组件
|
|
238
|
+
*
|
|
239
|
+
* 提供统一的导出功能入口,支持配置化导出
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
interface UniversalExportButtonProps {
|
|
243
|
+
/** 导出服务实例 */
|
|
244
|
+
exportService: any;
|
|
245
|
+
/** 模块标识 */
|
|
246
|
+
moduleId: string;
|
|
247
|
+
/** 业务标识 */
|
|
248
|
+
businessId?: string;
|
|
249
|
+
/** 可用的字段定义 */
|
|
250
|
+
availableFields: ExportField[];
|
|
251
|
+
/** 数据源函数 */
|
|
252
|
+
dataSource: () => Promise<any[]>;
|
|
253
|
+
/** 默认配置 */
|
|
254
|
+
defaultConfig?: ExportConfig;
|
|
255
|
+
/** 按钮文本 */
|
|
256
|
+
buttonText?: string;
|
|
257
|
+
/** 按钮样式 */
|
|
258
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
259
|
+
/** 按钮大小 */
|
|
260
|
+
size?: 'sm' | 'md' | 'lg';
|
|
261
|
+
/** 是否禁用 */
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
/** 自定义样式类名 */
|
|
264
|
+
className?: string;
|
|
265
|
+
/** 导出成功回调 */
|
|
266
|
+
onExportSuccess?: (result: ExportResult) => void;
|
|
267
|
+
/** 导出失败回调 */
|
|
268
|
+
onExportError?: (error: string) => void;
|
|
269
|
+
/** 配置保存回调 */
|
|
270
|
+
onConfigSave?: (config: ExportConfig) => void;
|
|
271
|
+
}
|
|
272
|
+
declare const UniversalExportButton: React__default.FC<UniversalExportButtonProps>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* 导出配置编辑器组件
|
|
276
|
+
*
|
|
277
|
+
* 提供可视化的导出字段配置编辑功能
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
interface ExportConfigEditorProps {
|
|
281
|
+
/** 初始配置 */
|
|
282
|
+
initialConfig?: ExportConfig;
|
|
283
|
+
/** 模块标识 */
|
|
284
|
+
moduleId: string;
|
|
285
|
+
/** 业务标识 */
|
|
286
|
+
businessId?: string;
|
|
287
|
+
/** 可用的字段定义 */
|
|
288
|
+
availableFields: ExportField[];
|
|
289
|
+
/** 保存配置回调 */
|
|
290
|
+
onSave?: (config: ExportConfig) => void;
|
|
291
|
+
/** 取消回调 */
|
|
292
|
+
onCancel?: () => void;
|
|
293
|
+
/** 是否显示 */
|
|
294
|
+
visible?: boolean;
|
|
295
|
+
/** 自定义样式类名 */
|
|
296
|
+
className?: string;
|
|
297
|
+
/** 配置变化回调(新增/删除/更新) */
|
|
298
|
+
onConfigChange?: () => void;
|
|
299
|
+
}
|
|
300
|
+
declare const ExportConfigEditor: React__default.FC<ExportConfigEditorProps>;
|
|
301
|
+
|
|
302
|
+
export { API_BASE_PATH, API_ENDPOINTS, DEFAULT_ADD_BOM, DEFAULT_CONFIG_CACHE_TTL, DEFAULT_CSV_DELIMITER, DEFAULT_ENCODING, DEFAULT_EXPORT_FORMAT, DEFAULT_EXPORT_TIMEOUT, DEFAULT_FORMATTERS, DEFAULT_MAX_CONCURRENT_EXPORTS, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_ROWS, DEFAULT_RESULT_CACHE_TTL, ERROR_CODES, EXPORT_FORMAT_EXTENSIONS, EXPORT_FORMAT_MIME_TYPES, ExportConfig, ExportConfigEditor, type ExportConfigEditorProps, ExportField, ExportFormat, ExportProgress, ExportRequest, ExportResult, Formatter, UNIVERSAL_EXPORT_NAME, UNIVERSAL_EXPORT_VERSION, UniversalExportButton, type UniversalExportButtonProps, UniversalExportClient, type UniversalExportClientConfig, applyFormatter, createExportClient, createExportError, escapeCSVField, estimateEndTime, formatDuration, formatErrorMessage, formatFileSize, generateExportFileName, getNestedValue, parseCSVField, sanitizeFileName, setNestedValue, universalExportClient, validateExportConfig, validateExportRequest, validateFileName };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { E as ExportConfig, a as ExportRequest, b as ExportResult, c as ExportProgress, d as ExportFormat, F as Formatter } from '../types-
|
|
2
|
-
export { D as DataTransformer,
|
|
1
|
+
import { E as ExportConfig, a as ExportRequest, b as ExportResult, c as ExportProgress, d as ExportFormat, F as Formatter, e as ExportField } from '../types-XTo80Oi_.js';
|
|
2
|
+
export { D as DataTransformer, g as ExportConfigError, h as ExportDataError, r as ExportError, t as ExportEvent, u as ExportEventListener, s as ExportEventType, i as ExportFileError, p as ExportFilter, f as ExportServiceError, q as ExportSort, l as ExportStatus, k as FieldAlignment, v as FieldMapper, j as FieldType, m as GroupValueProcessing, o as GroupingConfig, n as GroupingField, G as GroupingMode, U as UniversalExportServiceConfig, V as Validator } from '../types-XTo80Oi_.js';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* 通用导出服务客户端SDK
|
|
@@ -232,4 +233,70 @@ declare function createExportError(code: string, message: string, details?: Reco
|
|
|
232
233
|
*/
|
|
233
234
|
declare function formatErrorMessage(error: unknown): string;
|
|
234
235
|
|
|
235
|
-
|
|
236
|
+
/**
|
|
237
|
+
* 通用导出按钮组件
|
|
238
|
+
*
|
|
239
|
+
* 提供统一的导出功能入口,支持配置化导出
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
interface UniversalExportButtonProps {
|
|
243
|
+
/** 导出服务实例 */
|
|
244
|
+
exportService: any;
|
|
245
|
+
/** 模块标识 */
|
|
246
|
+
moduleId: string;
|
|
247
|
+
/** 业务标识 */
|
|
248
|
+
businessId?: string;
|
|
249
|
+
/** 可用的字段定义 */
|
|
250
|
+
availableFields: ExportField[];
|
|
251
|
+
/** 数据源函数 */
|
|
252
|
+
dataSource: () => Promise<any[]>;
|
|
253
|
+
/** 默认配置 */
|
|
254
|
+
defaultConfig?: ExportConfig;
|
|
255
|
+
/** 按钮文本 */
|
|
256
|
+
buttonText?: string;
|
|
257
|
+
/** 按钮样式 */
|
|
258
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
259
|
+
/** 按钮大小 */
|
|
260
|
+
size?: 'sm' | 'md' | 'lg';
|
|
261
|
+
/** 是否禁用 */
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
/** 自定义样式类名 */
|
|
264
|
+
className?: string;
|
|
265
|
+
/** 导出成功回调 */
|
|
266
|
+
onExportSuccess?: (result: ExportResult) => void;
|
|
267
|
+
/** 导出失败回调 */
|
|
268
|
+
onExportError?: (error: string) => void;
|
|
269
|
+
/** 配置保存回调 */
|
|
270
|
+
onConfigSave?: (config: ExportConfig) => void;
|
|
271
|
+
}
|
|
272
|
+
declare const UniversalExportButton: React__default.FC<UniversalExportButtonProps>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* 导出配置编辑器组件
|
|
276
|
+
*
|
|
277
|
+
* 提供可视化的导出字段配置编辑功能
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
interface ExportConfigEditorProps {
|
|
281
|
+
/** 初始配置 */
|
|
282
|
+
initialConfig?: ExportConfig;
|
|
283
|
+
/** 模块标识 */
|
|
284
|
+
moduleId: string;
|
|
285
|
+
/** 业务标识 */
|
|
286
|
+
businessId?: string;
|
|
287
|
+
/** 可用的字段定义 */
|
|
288
|
+
availableFields: ExportField[];
|
|
289
|
+
/** 保存配置回调 */
|
|
290
|
+
onSave?: (config: ExportConfig) => void;
|
|
291
|
+
/** 取消回调 */
|
|
292
|
+
onCancel?: () => void;
|
|
293
|
+
/** 是否显示 */
|
|
294
|
+
visible?: boolean;
|
|
295
|
+
/** 自定义样式类名 */
|
|
296
|
+
className?: string;
|
|
297
|
+
/** 配置变化回调(新增/删除/更新) */
|
|
298
|
+
onConfigChange?: () => void;
|
|
299
|
+
}
|
|
300
|
+
declare const ExportConfigEditor: React__default.FC<ExportConfigEditorProps>;
|
|
301
|
+
|
|
302
|
+
export { API_BASE_PATH, API_ENDPOINTS, DEFAULT_ADD_BOM, DEFAULT_CONFIG_CACHE_TTL, DEFAULT_CSV_DELIMITER, DEFAULT_ENCODING, DEFAULT_EXPORT_FORMAT, DEFAULT_EXPORT_TIMEOUT, DEFAULT_FORMATTERS, DEFAULT_MAX_CONCURRENT_EXPORTS, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_ROWS, DEFAULT_RESULT_CACHE_TTL, ERROR_CODES, EXPORT_FORMAT_EXTENSIONS, EXPORT_FORMAT_MIME_TYPES, ExportConfig, ExportConfigEditor, type ExportConfigEditorProps, ExportField, ExportFormat, ExportProgress, ExportRequest, ExportResult, Formatter, UNIVERSAL_EXPORT_NAME, UNIVERSAL_EXPORT_VERSION, UniversalExportButton, type UniversalExportButtonProps, UniversalExportClient, type UniversalExportClientConfig, applyFormatter, createExportClient, createExportError, escapeCSVField, estimateEndTime, formatDuration, formatErrorMessage, formatFileSize, generateExportFileName, getNestedValue, parseCSVField, sanitizeFileName, setNestedValue, universalExportClient, validateExportConfig, validateExportRequest, validateFileName };
|