@tager/admin-export 0.1.4 → 1.0.1
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/constants/paths.d.ts +4 -4
- package/dist/constants/routes.d.ts +3 -3
- package/dist/dev/App.vue.d.ts +5 -0
- package/dist/dev/config.d.ts +2 -0
- package/dist/dev/env.d.ts +1 -0
- package/dist/dev/main.d.ts +3 -0
- package/dist/index.mjs +512 -0
- package/dist/locales/apply.d.ts +1 -0
- package/dist/locales/en.d.ts +23 -25
- package/dist/locales/ru.d.ts +2 -3
- package/dist/main.d.ts +3 -3
- package/dist/services/requests.d.ts +8 -8
- package/dist/style.css +1 -0
- package/dist/typings/model.d.ts +26 -24
- package/dist/utils/common.d.ts +1 -1
- package/dist/utils/paths.d.ts +4 -4
- package/dist/views/ExportForm/ExportForm.helpers.d.ts +11 -9
- package/dist/views/ExportForm/ExportForm.types.d.ts +7 -0
- package/dist/views/ExportForm/ExportForm.vue.d.ts +2693 -74
- package/dist/views/ExportForm/index.d.ts +1 -1
- package/dist/views/ExportList/ExportList.vue.d.ts +16 -41
- package/dist/views/ExportList/components/CellHistory/CellHistory.helpers.d.ts +1 -0
- package/dist/views/ExportList/components/CellHistory/CellHistory.vue.d.ts +19 -0
- package/dist/views/ExportList/components/CellHistory/index.d.ts +1 -0
- package/dist/views/ExportList/index.d.ts +1 -1
- package/package.json +49 -47
- package/src/constants/routes.ts +10 -10
- package/src/dev/App.vue +38 -0
- package/src/dev/config.ts +23 -0
- package/src/dev/env.ts +17 -0
- package/src/dev/main.ts +36 -0
- package/src/locales/apply.ts +9 -0
- package/src/locales/en.ts +1 -4
- package/src/locales/ru.ts +2 -5
- package/src/main.ts +2 -6
- package/src/services/requests.ts +1 -1
- package/src/typings/model.ts +8 -1
- package/src/views/ExportForm/ExportForm.helpers.ts +31 -8
- package/src/views/ExportForm/ExportForm.types.ts +8 -0
- package/src/views/ExportForm/ExportForm.vue +143 -118
- package/src/views/ExportList/ExportList.vue +47 -63
- package/src/views/ExportList/components/CellHistory/CellHistory.helpers.ts +12 -0
- package/src/views/ExportList/components/CellHistory/CellHistory.vue +38 -0
- package/src/views/ExportList/components/CellHistory/index.ts +1 -0
- package/README.md +0 -0
- package/dist/dev.d.ts +0 -1
- package/dist/index.esm.js +0 -714
- package/dist/index.umd.js +0 -725
- package/src/config/config.json +0 -20
- package/src/dev.ts +0 -41
- package/src/typings/sfc.d.ts +0 -12
- package/src/typings/shims-tsx.d.ts +0 -13
- package/src/typings/shims-vue.d.ts +0 -11
- package/src/views/App.vue +0 -36
package/dist/typings/model.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { FileType } from '@tager/admin-services';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { FileType } from '@tager/admin-services';
|
|
2
|
+
import { FieldConfigUnion, FieldShortType, OutgoingValueUnion } from '@tager/admin-dynamic-field';
|
|
3
|
+
export interface HistoryType {
|
|
4
|
+
readonly datetime: string;
|
|
5
|
+
readonly status: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ExportType {
|
|
8
|
+
readonly id: number;
|
|
9
|
+
readonly strategy: string;
|
|
10
|
+
readonly status: string;
|
|
11
|
+
readonly message: string | null;
|
|
12
|
+
readonly history: Array<HistoryType>;
|
|
13
|
+
readonly file: FileType | null;
|
|
14
|
+
}
|
|
15
|
+
export interface StrategyType {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
fields: Array<FieldConfigUnion>;
|
|
19
|
+
}
|
|
20
|
+
export interface ExportCreatePayload {
|
|
21
|
+
strategy: string;
|
|
22
|
+
filename: string;
|
|
23
|
+
format: string;
|
|
24
|
+
delimiter: string;
|
|
25
|
+
params: Array<FieldShortType<OutgoingValueUnion>>;
|
|
26
|
+
}
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function replaceFileExtension(fileName: string, newExtension: string): string;
|
|
1
|
+
export declare function replaceFileExtension(fileName: string, newExtension: string): string;
|
package/dist/utils/paths.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getExportListUrl(): string;
|
|
2
|
-
export declare function getExportFormUrl(params: {
|
|
3
|
-
exportId: string | number;
|
|
4
|
-
}): string;
|
|
1
|
+
export declare function getExportListUrl(): string;
|
|
2
|
+
export declare function getExportFormUrl(params: {
|
|
3
|
+
exportId: string | number;
|
|
4
|
+
}): string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { OptionType } from '@tager/admin-ui';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { OptionType } from '@tager/admin-ui';
|
|
2
|
+
import { FieldUnion } from '@tager/admin-dynamic-field';
|
|
3
|
+
import { ExportCreatePayload, StrategyType } from '../../typings/model';
|
|
4
|
+
import { FormValues } from './ExportForm.types';
|
|
5
|
+
export declare function convertExportFormValuesToCreationPayload(values: FormValues, templateValues: Array<FieldUnion>): ExportCreatePayload;
|
|
6
|
+
export declare function convertStrategiesToStrategyOptionList(strategies: Array<StrategyType>): Array<OptionType>;
|
|
7
|
+
export declare const formatOptionList: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare function isCSVFormat(format: string): boolean;
|