@tager/admin-export 1.0.5 → 1.0.6
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/dev/App.vue.d.ts +4 -3
- package/dist/index.mjs +354 -395
- package/dist/services/requests.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/typings/model.d.ts +3 -3
- package/dist/views/ExportForm/ExportForm.helpers.d.ts +4 -4
- package/dist/views/ExportForm/ExportForm.types.d.ts +1 -1
- package/dist/views/ExportForm/ExportForm.vue.d.ts +6117 -1026
- package/dist/views/ExportList/ExportList.helpers.d.ts +2 -2
- package/dist/views/ExportList/ExportList.vue.d.ts +4 -3
- package/dist/views/ExportList/components/CellHistory/CellHistory.vue.d.ts +6 -5
- package/package.json +20 -24
- package/src/dev/App.vue +4 -2
- package/src/dev/env.ts +11 -11
- package/src/services/requests.ts +4 -4
- package/src/typings/model.ts +4 -4
- package/src/views/ExportForm/ExportForm.helpers.ts +4 -4
- package/src/views/ExportForm/ExportForm.types.ts +1 -1
- package/src/views/ExportForm/ExportForm.vue +6 -7
- package/src/views/ExportList/ExportList.helpers.ts +2 -2
- package/src/views/ExportList/ExportList.vue +1 -1
- package/src/views/ExportList/components/CellHistory/CellHistory.vue +3 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TranslateFunction } from '@tager/admin-services';
|
|
2
|
-
import { ExportStatus } from '../../typings/model';
|
|
1
|
+
import { type TranslateFunction } from '@tager/admin-services';
|
|
2
|
+
import { type ExportStatus } from '../../typings/model';
|
|
3
3
|
export declare function getExportStatusLabel(status: ExportStatus, t: TranslateFunction): string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type ColumnDefinition } from '@tager/admin-ui';
|
|
2
|
-
import { ExportType } from '../../typings/model';
|
|
2
|
+
import { type ExportType } from '../../typings/model';
|
|
3
3
|
import { getExportFormUrl } from '../../utils/paths';
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
5
7
|
columnDefs: ColumnDefinition<ExportType>[];
|
|
6
8
|
getExportFormUrl: typeof getExportFormUrl;
|
|
7
9
|
rowData: import("vue").Ref<ExportType[]>;
|
|
@@ -13,4 +15,3 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
13
15
|
pageCount: import("vue").ComputedRef<number>;
|
|
14
16
|
pageNumber: import("vue").Ref<number>;
|
|
15
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
16
|
-
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { HistoryType } from '../../../../typings/model';
|
|
3
|
-
import { dateTimeFormat } from './CellHistory.helpers';
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type HistoryType } from '../../../../typings/model';
|
|
4
3
|
import { getExportStatusLabel } from "../../ExportList.helpers";
|
|
5
|
-
|
|
4
|
+
import { dateTimeFormat } from './CellHistory.helpers';
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
6
8
|
history: {
|
|
7
9
|
type: PropType<HistoryType[]>;
|
|
8
10
|
default: () => never[];
|
|
@@ -18,4 +20,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
20
|
}>>, {
|
|
19
21
|
history: HistoryType[];
|
|
20
22
|
}, {}>;
|
|
21
|
-
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tager/admin-export",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build:js": "vite build",
|
|
19
|
-
"build:package": "
|
|
19
|
+
"build:package": "yarn build:js && yarn emit-declarations",
|
|
20
20
|
"emit-declarations": "vue-tsc --project tsconfig.json --emitDeclarationOnly",
|
|
21
|
-
"start": "
|
|
21
|
+
"start": "vite",
|
|
22
22
|
"prepare": "yarn build:package",
|
|
23
|
-
"tager:update": "yarn upgrade --latest --scope @tager"
|
|
23
|
+
"tager:update": "yarn upgrade --latest --scope @tager",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"format": "prettier --write src"
|
|
24
26
|
},
|
|
25
27
|
"dependencies": {
|
|
26
28
|
"lodash.isequal": "^4.5.0",
|
|
@@ -29,9 +31,7 @@
|
|
|
29
31
|
"path-to-regexp": "^6.1.0"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"@babel/eslint-parser": "^7.17.0",
|
|
34
|
-
"@rushstack/eslint-patch": "^1.1.2",
|
|
34
|
+
"@eslint/js": "^9.39.5",
|
|
35
35
|
"@tager/admin-dynamic-field": "^1.1.4",
|
|
36
36
|
"@tager/admin-layout": "^1.0.23",
|
|
37
37
|
"@tager/admin-services": "^1.1.17",
|
|
@@ -39,29 +39,25 @@
|
|
|
39
39
|
"@types/lodash.isequal": "^4.5.6",
|
|
40
40
|
"@types/lodash.pick": "^4.4.7",
|
|
41
41
|
"@types/node": "16.x",
|
|
42
|
-
"@
|
|
43
|
-
"@typescript
|
|
44
|
-
"@vitejs/plugin-vue": "^2.3.1",
|
|
45
|
-
"@vue/cli-plugin-babel": "^5.0.4",
|
|
46
|
-
"@vue/cli-plugin-typescript": "^5.0.4",
|
|
47
|
-
"@vue/cli-service": "~5.0.0",
|
|
48
|
-
"@vue/eslint-config-prettier": "^7.0.0",
|
|
49
|
-
"@vue/eslint-config-typescript": "^10.0.0",
|
|
50
|
-
"concurrently": "^7.1.0",
|
|
42
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
43
|
+
"@vue/eslint-config-typescript": "^14.9.0",
|
|
51
44
|
"core-js": "^3.22.3",
|
|
52
|
-
"eslint": "^
|
|
53
|
-
"eslint-config-prettier": "^
|
|
54
|
-
"eslint-
|
|
55
|
-
"eslint-plugin-
|
|
56
|
-
"eslint-plugin-vue": "^
|
|
45
|
+
"eslint": "^9.39.5",
|
|
46
|
+
"eslint-config-prettier": "^10.1.8",
|
|
47
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
48
|
+
"eslint-plugin-import": "^2.32.0",
|
|
49
|
+
"eslint-plugin-vue": "^10.12.0",
|
|
50
|
+
"globals": "^16.5.0",
|
|
57
51
|
"pinia": "^2.1.7",
|
|
52
|
+
"prettier": "^3.9.10",
|
|
58
53
|
"sass": "^1.51.0",
|
|
59
54
|
"sass-loader": "^12.6.0",
|
|
60
|
-
"typescript": "^
|
|
61
|
-
"vite": "^
|
|
55
|
+
"typescript": "^5.9.3",
|
|
56
|
+
"vite": "^6.4.5",
|
|
62
57
|
"vue": "^3.3.0",
|
|
58
|
+
"vue-eslint-parser": "^10.4.1",
|
|
63
59
|
"vue-router": "^4.0.14",
|
|
64
|
-
"vue-tsc": "^
|
|
60
|
+
"vue-tsc": "^3.3.14"
|
|
65
61
|
},
|
|
66
62
|
"peerDependencies": {
|
|
67
63
|
"@tager/admin-layout": "^1.0.0",
|
package/src/dev/App.vue
CHANGED
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
<script lang="ts">
|
|
8
8
|
import {defineComponent} from 'vue';
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
import {type MenuItemType, PageLayout} from "@tager/admin-layout";
|
|
10
11
|
import {ViewListIcon} from "@tager/admin-ui";
|
|
11
|
-
import {getExportListUrl} from '../utils/paths';
|
|
12
12
|
import {useI18n} from "@tager/admin-services";
|
|
13
13
|
|
|
14
|
+
import {getExportListUrl} from '../utils/paths';
|
|
15
|
+
|
|
14
16
|
export default defineComponent({
|
|
15
17
|
name: 'App',
|
|
16
18
|
components: {
|
package/src/dev/env.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { initializeEnvironment } from '@tager/admin-services';
|
|
|
2
2
|
|
|
3
3
|
export function populateEnvironment() {
|
|
4
4
|
initializeEnvironment({
|
|
5
|
-
publicPath:
|
|
6
|
-
appEnv:
|
|
7
|
-
apiUrl:
|
|
8
|
-
accessToken:
|
|
9
|
-
websiteUrl:
|
|
10
|
-
websiteButtonUrl:
|
|
11
|
-
sentryDsn:
|
|
12
|
-
sentryEnv:
|
|
13
|
-
baseUrl:
|
|
14
|
-
nodeEnv:
|
|
15
|
-
version:
|
|
5
|
+
publicPath: import.meta.env.VUE_APP_PUBLIC_PATH,
|
|
6
|
+
appEnv: import.meta.env.VUE_APP_ENV,
|
|
7
|
+
apiUrl: import.meta.env.VUE_APP_API_URL,
|
|
8
|
+
accessToken: import.meta.env.VUE_APP_ACCESS_TOKEN,
|
|
9
|
+
websiteUrl: import.meta.env.VUE_APP_WEBSITE_URL,
|
|
10
|
+
websiteButtonUrl: import.meta.env.VUE_APP_WEBSITE_BUTTON_URL,
|
|
11
|
+
sentryDsn: import.meta.env.VUE_APP_SENTRY_DSN,
|
|
12
|
+
sentryEnv: import.meta.env.VUE_APP_SENTRY_ENVIRONMENT,
|
|
13
|
+
baseUrl: import.meta.env.BASE_URL,
|
|
14
|
+
nodeEnv: import.meta.env.MODE,
|
|
15
|
+
version: import.meta.env.VUE_APP_VERSION,
|
|
16
16
|
});
|
|
17
17
|
}
|
package/src/services/requests.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { request, ResponseBody } from '@tager/admin-services';
|
|
1
|
+
import { request, type ResponseBody } from '@tager/admin-services';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
StrategyType,
|
|
5
|
-
ExportCreatePayload,
|
|
6
|
-
ExportType,
|
|
4
|
+
type StrategyType,
|
|
5
|
+
type ExportCreatePayload,
|
|
6
|
+
type ExportType,
|
|
7
7
|
} from '../typings/model';
|
|
8
8
|
|
|
9
9
|
export function getExportList(params?: {
|
package/src/typings/model.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FileType } from '@tager/admin-services';
|
|
1
|
+
import { type FileType } from '@tager/admin-services';
|
|
2
2
|
import {
|
|
3
|
-
FieldConfigUnion,
|
|
4
|
-
FieldShortType,
|
|
5
|
-
OutgoingValueUnion,
|
|
3
|
+
type FieldConfigUnion,
|
|
4
|
+
type FieldShortType,
|
|
5
|
+
type OutgoingValueUnion,
|
|
6
6
|
} from '@tager/admin-dynamic-field';
|
|
7
7
|
|
|
8
8
|
export type ExportStatus = 'CREATED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILURE';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OptionType } from '@tager/admin-ui';
|
|
2
|
-
import { FieldUnion, universalFieldUtils } from '@tager/admin-dynamic-field';
|
|
1
|
+
import { type OptionType } from '@tager/admin-ui';
|
|
2
|
+
import { type FieldUnion, universalFieldUtils } from '@tager/admin-dynamic-field';
|
|
3
3
|
|
|
4
|
-
import { ExportCreatePayload, StrategyType } from '../../typings/model';
|
|
4
|
+
import { type ExportCreatePayload, type StrategyType } from '../../typings/model';
|
|
5
5
|
|
|
6
|
-
import { FormValues } from './ExportForm.types';
|
|
6
|
+
import { type FormValues } from './ExportForm.types';
|
|
7
7
|
|
|
8
8
|
export function convertExportFormValuesToCreationPayload(
|
|
9
9
|
values: FormValues,
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
<template #footer>
|
|
45
45
|
<FormFooter
|
|
46
46
|
:back-href="getExportListUrl()"
|
|
47
|
-
@submit="submitForm"
|
|
48
47
|
:is-submitting="isSubmitting"
|
|
49
48
|
:is-creation="true"
|
|
49
|
+
@submit="submitForm"
|
|
50
50
|
/>
|
|
51
51
|
</template>
|
|
52
52
|
</Page>
|
|
@@ -58,17 +58,16 @@ import {useRoute, useRouter} from "vue-router";
|
|
|
58
58
|
|
|
59
59
|
import {useI18n, navigateBack, useToast} from '@tager/admin-services';
|
|
60
60
|
import {Page} from "@tager/admin-layout";
|
|
61
|
-
|
|
62
61
|
import {convertRequestErrorToMap, useResource} from '@tager/admin-services';
|
|
63
62
|
import {
|
|
64
|
-
OptionType,
|
|
65
|
-
TagerFormSubmitEvent,
|
|
63
|
+
type OptionType,
|
|
64
|
+
type TagerFormSubmitEvent,
|
|
66
65
|
FormFooter, FormField, FormFieldSelect
|
|
67
66
|
} from '@tager/admin-ui';
|
|
68
67
|
import {
|
|
69
68
|
DynamicField,
|
|
70
|
-
FieldConfigUnion,
|
|
71
|
-
FieldUnion,
|
|
69
|
+
type FieldConfigUnion,
|
|
70
|
+
type FieldUnion,
|
|
72
71
|
universalFieldUtils,
|
|
73
72
|
} from '@tager/admin-dynamic-field';
|
|
74
73
|
|
|
@@ -82,7 +81,7 @@ import {
|
|
|
82
81
|
formatOptionList,
|
|
83
82
|
isCSVFormat,
|
|
84
83
|
} from './ExportForm.helpers';
|
|
85
|
-
import {FormValues} from './ExportForm.types';
|
|
84
|
+
import {type FormValues} from './ExportForm.types';
|
|
86
85
|
|
|
87
86
|
|
|
88
87
|
export default defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TranslateFunction } from '@tager/admin-services';
|
|
1
|
+
import { type TranslateFunction } from '@tager/admin-services';
|
|
2
2
|
|
|
3
|
-
import { ExportStatus } from '../../typings/model';
|
|
3
|
+
import { type ExportStatus } from '../../typings/model';
|
|
4
4
|
|
|
5
5
|
export function getExportStatusLabel(
|
|
6
6
|
status: ExportStatus,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from '@tager/admin-ui';
|
|
42
42
|
|
|
43
43
|
import { getExportList } from '../../services/requests';
|
|
44
|
-
import { ExportType } from '../../typings/model';
|
|
44
|
+
import { type ExportType } from '../../typings/model';
|
|
45
45
|
import { getExportFormUrl } from '../../utils/paths';
|
|
46
46
|
|
|
47
47
|
import { CellHistory } from './components/CellHistory';
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script lang="ts">
|
|
13
|
-
import { defineComponent, PropType } from 'vue';
|
|
13
|
+
import { defineComponent, type PropType } from 'vue';
|
|
14
14
|
|
|
15
|
-
import { HistoryType } from '../../../../typings/model';
|
|
15
|
+
import { type HistoryType } from '../../../../typings/model';
|
|
16
|
+
import { getExportStatusLabel } from "../../ExportList.helpers";
|
|
16
17
|
|
|
17
18
|
import { dateTimeFormat } from './CellHistory.helpers';
|
|
18
|
-
import { getExportStatusLabel } from "../../ExportList.helpers";
|
|
19
19
|
|
|
20
20
|
export default defineComponent({
|
|
21
21
|
name: 'CellHistory',
|