@tager/admin-import 0.1.3 → 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 +6 -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 +405 -0
- package/dist/locales/apply.d.ts +1 -0
- package/dist/locales/en.d.ts +19 -21
- 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 +33 -33
- package/dist/utils/paths.d.ts +4 -4
- package/dist/views/ImportForm/ImportForm.helpers.d.ts +9 -9
- package/dist/views/ImportForm/ImportForm.vue.d.ts +4163 -9238
- package/dist/views/ImportForm/index.d.ts +1 -1
- package/dist/views/ImportList/ImportList.vue.d.ts +17 -38
- package/dist/views/ImportList/components/CellHistory/CellHistory.helpers.d.ts +1 -1
- package/dist/views/ImportList/components/CellHistory/CellHistory.vue.d.ts +20 -230
- package/dist/views/ImportList/components/CellHistory/index.d.ts +1 -1
- package/dist/views/ImportList/index.d.ts +1 -1
- package/package.json +46 -49
- package/src/constants/routes.ts +10 -10
- package/src/dev/App.vue +40 -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 +19 -22
- package/src/main.ts +2 -6
- package/src/services/requests.ts +4 -4
- package/src/typings/model.ts +4 -4
- package/src/views/ImportForm/ImportForm.helpers.ts +3 -3
- package/src/views/ImportForm/ImportForm.vue +84 -81
- package/src/views/ImportList/ImportList.vue +45 -42
- package/src/views/ImportList/components/CellHistory/CellHistory.helpers.ts +6 -5
- package/src/views/ImportList/components/CellHistory/CellHistory.vue +5 -6
- package/README.md +0 -1
- package/dist/dev.d.ts +0 -1
- package/dist/index.esm.js +0 -3624
- package/dist/index.umd.js +0 -3636
- package/dist/views/ImportList/components/CellHistory/CellHistory.types.d.ts +0 -4
- 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 -34
- package/src/views/ImportList/components/CellHistory/CellHistory.types.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ImportForm.vue';
|
|
1
|
+
export { default } from './ImportForm.vue';
|
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
import { ColumnDefinition } from '@tager/admin-ui';
|
|
2
|
-
import { ImportType } from '../../typings/model';
|
|
3
|
-
import { getImportFormUrl } from '../../utils/paths';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, {}, {}, unknown, {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
}> & import("vue").VueConstructor<CellHistory> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
23
|
-
columnDefs: ColumnDefinition<ImportType>[];
|
|
24
|
-
getImportFormUrl: typeof getImportFormUrl;
|
|
25
|
-
rowData: import("@vue/composition-api").Ref<ImportType[]>;
|
|
26
|
-
isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
|
|
27
|
-
errorMessage: import("@vue/composition-api").Ref<import("@tager/admin-services").Nullable<string>>;
|
|
28
|
-
searchQuery: import("@vue/composition-api").Ref<string>;
|
|
29
|
-
handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
|
|
30
|
-
pageSize: import("@vue/composition-api").Ref<number>;
|
|
31
|
-
pageCount: import("@vue/composition-api").ComputedRef<number>;
|
|
32
|
-
pageNumber: import("@vue/composition-api").Ref<number>;
|
|
33
|
-
}>, {
|
|
34
|
-
[x: string]: any;
|
|
35
|
-
}, {}, {}, {
|
|
36
|
-
[x: string]: any;
|
|
37
|
-
}>);
|
|
38
|
-
export default _default;
|
|
1
|
+
import { type ColumnDefinition } from '@tager/admin-ui';
|
|
2
|
+
import { type ImportType } from '../../typings/model';
|
|
3
|
+
import { getImportFormUrl } from '../../utils/paths';
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
7
|
+
columnDefs: ColumnDefinition<ImportType>[];
|
|
8
|
+
getImportFormUrl: typeof getImportFormUrl;
|
|
9
|
+
rowData: import("vue").Ref<ImportType[]>;
|
|
10
|
+
isRowDataLoading: import("vue").ComputedRef<boolean>;
|
|
11
|
+
errorMessage: import("vue").Ref<import("@tager/admin-services").Nullable<string>>;
|
|
12
|
+
searchQuery: import("vue").Ref<string>;
|
|
13
|
+
handleChange: (event: import("@tager/admin-ui/dist/components/DataTable/DataTable.types").TableChangeEvent) => void;
|
|
14
|
+
pageSize: import("vue").Ref<number>;
|
|
15
|
+
pageCount: import("vue").ComputedRef<number>;
|
|
16
|
+
pageNumber: import("vue").Ref<number>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function dateTimeFormat(value: number | string | Date): string;
|
|
1
|
+
export declare function dateTimeFormat(value: number | string | Date): string;
|
|
@@ -1,230 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
splice?: {
|
|
22
|
-
(start: number, deleteCount?: number | undefined): string[];
|
|
23
|
-
(start: number, deleteCount: number, ...items: string[]): string[];
|
|
24
|
-
} | undefined;
|
|
25
|
-
unshift?: number | undefined;
|
|
26
|
-
indexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
27
|
-
lastIndexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
28
|
-
every?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
29
|
-
some?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
30
|
-
forEach?: ((callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void) | undefined;
|
|
31
|
-
map?: (<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | undefined;
|
|
32
|
-
filter?: {
|
|
33
|
-
<S extends string>(callbackfn: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
34
|
-
(callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
35
|
-
} | undefined;
|
|
36
|
-
reduce?: {
|
|
37
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
38
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
39
|
-
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
40
|
-
} | undefined;
|
|
41
|
-
reduceRight?: {
|
|
42
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
43
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
44
|
-
<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
45
|
-
} | undefined;
|
|
46
|
-
find?: {
|
|
47
|
-
<S_1 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_1, thisArg?: any): S_1 | undefined;
|
|
48
|
-
(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
findIndex?: ((predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any) => number) | undefined;
|
|
51
|
-
fill?: ((value: string, start?: number | undefined, end?: number | undefined) => string[]) | undefined;
|
|
52
|
-
copyWithin?: ((target: number, start: number, end?: number | undefined) => string[]) | undefined;
|
|
53
|
-
entries?: IterableIterator<[number, string]> | undefined;
|
|
54
|
-
keys?: IterableIterator<number> | undefined;
|
|
55
|
-
values?: IterableIterator<string> | undefined;
|
|
56
|
-
includes?: ((searchElement: string, fromIndex?: number | undefined) => boolean) | undefined;
|
|
57
|
-
flatMap?: (<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined) => U_3[]) | undefined;
|
|
58
|
-
flat?: unknown[] | undefined;
|
|
59
|
-
}) | ({} & {
|
|
60
|
-
[x: string]: any;
|
|
61
|
-
[x: number]: any;
|
|
62
|
-
})> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<({
|
|
63
|
-
[x: number]: string;
|
|
64
|
-
} & {
|
|
65
|
-
length?: number | undefined;
|
|
66
|
-
toString?: string | undefined;
|
|
67
|
-
toLocaleString?: string | undefined;
|
|
68
|
-
pop?: string | undefined;
|
|
69
|
-
push?: number | undefined;
|
|
70
|
-
concat?: string[] | undefined;
|
|
71
|
-
join?: string | undefined;
|
|
72
|
-
reverse?: string[] | undefined;
|
|
73
|
-
shift?: string | undefined;
|
|
74
|
-
slice?: string[] | undefined;
|
|
75
|
-
sort?: string[] | undefined;
|
|
76
|
-
splice?: {
|
|
77
|
-
(start: number, deleteCount?: number | undefined): string[];
|
|
78
|
-
(start: number, deleteCount: number, ...items: string[]): string[];
|
|
79
|
-
} | undefined;
|
|
80
|
-
unshift?: number | undefined;
|
|
81
|
-
indexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
82
|
-
lastIndexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
83
|
-
every?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
84
|
-
some?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
85
|
-
forEach?: ((callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void) | undefined;
|
|
86
|
-
map?: (<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | undefined;
|
|
87
|
-
filter?: {
|
|
88
|
-
<S extends string>(callbackfn: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
89
|
-
(callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
90
|
-
} | undefined;
|
|
91
|
-
reduce?: {
|
|
92
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
93
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
94
|
-
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
95
|
-
} | undefined;
|
|
96
|
-
reduceRight?: {
|
|
97
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
98
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
99
|
-
<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
100
|
-
} | undefined;
|
|
101
|
-
find?: {
|
|
102
|
-
<S_1 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_1, thisArg?: any): S_1 | undefined;
|
|
103
|
-
(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
104
|
-
} | undefined;
|
|
105
|
-
findIndex?: ((predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any) => number) | undefined;
|
|
106
|
-
fill?: ((value: string, start?: number | undefined, end?: number | undefined) => string[]) | undefined;
|
|
107
|
-
copyWithin?: ((target: number, start: number, end?: number | undefined) => string[]) | undefined;
|
|
108
|
-
entries?: IterableIterator<[number, string]> | undefined;
|
|
109
|
-
keys?: IterableIterator<number> | undefined;
|
|
110
|
-
values?: IterableIterator<string> | undefined;
|
|
111
|
-
includes?: ((searchElement: string, fromIndex?: number | undefined) => boolean) | undefined;
|
|
112
|
-
flatMap?: (<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined) => U_3[]) | undefined;
|
|
113
|
-
flat?: unknown[] | undefined;
|
|
114
|
-
}) | ({} & {
|
|
115
|
-
[x: string]: any;
|
|
116
|
-
[x: number]: any;
|
|
117
|
-
}), import("@vue/composition-api").ShallowUnwrapRef<{
|
|
118
|
-
[key: string]: unknown;
|
|
119
|
-
}>, ({
|
|
120
|
-
[x: number]: string;
|
|
121
|
-
} & {
|
|
122
|
-
length?: number | undefined;
|
|
123
|
-
toString?: string | undefined;
|
|
124
|
-
toLocaleString?: string | undefined;
|
|
125
|
-
pop?: string | undefined;
|
|
126
|
-
push?: number | undefined;
|
|
127
|
-
concat?: string[] | undefined;
|
|
128
|
-
join?: string | undefined;
|
|
129
|
-
reverse?: string[] | undefined;
|
|
130
|
-
shift?: string | undefined;
|
|
131
|
-
slice?: string[] | undefined;
|
|
132
|
-
sort?: string[] | undefined;
|
|
133
|
-
splice?: {
|
|
134
|
-
(start: number, deleteCount?: number | undefined): string[];
|
|
135
|
-
(start: number, deleteCount: number, ...items: string[]): string[];
|
|
136
|
-
} | undefined;
|
|
137
|
-
unshift?: number | undefined;
|
|
138
|
-
indexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
139
|
-
lastIndexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
140
|
-
every?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
141
|
-
some?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
142
|
-
forEach?: ((callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void) | undefined;
|
|
143
|
-
map?: (<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | undefined;
|
|
144
|
-
filter?: {
|
|
145
|
-
<S extends string>(callbackfn: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
146
|
-
(callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
147
|
-
} | undefined;
|
|
148
|
-
reduce?: {
|
|
149
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
150
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
151
|
-
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
152
|
-
} | undefined;
|
|
153
|
-
reduceRight?: {
|
|
154
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
155
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
156
|
-
<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
157
|
-
} | undefined;
|
|
158
|
-
find?: {
|
|
159
|
-
<S_1 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_1, thisArg?: any): S_1 | undefined;
|
|
160
|
-
(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
161
|
-
} | undefined;
|
|
162
|
-
findIndex?: ((predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any) => number) | undefined;
|
|
163
|
-
fill?: ((value: string, start?: number | undefined, end?: number | undefined) => string[]) | undefined;
|
|
164
|
-
copyWithin?: ((target: number, start: number, end?: number | undefined) => string[]) | undefined;
|
|
165
|
-
entries?: IterableIterator<[number, string]> | undefined;
|
|
166
|
-
keys?: IterableIterator<number> | undefined;
|
|
167
|
-
values?: IterableIterator<string> | undefined;
|
|
168
|
-
includes?: ((searchElement: string, fromIndex?: number | undefined) => boolean) | undefined;
|
|
169
|
-
flatMap?: (<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined) => U_3[]) | undefined;
|
|
170
|
-
flat?: unknown[] | undefined;
|
|
171
|
-
}) | ({} & {
|
|
172
|
-
[x: string]: any;
|
|
173
|
-
[x: number]: any;
|
|
174
|
-
}), {}, {}, ({
|
|
175
|
-
[x: number]: string;
|
|
176
|
-
} & {
|
|
177
|
-
length?: number | undefined;
|
|
178
|
-
toString?: string | undefined;
|
|
179
|
-
toLocaleString?: string | undefined;
|
|
180
|
-
pop?: string | undefined;
|
|
181
|
-
push?: number | undefined;
|
|
182
|
-
concat?: string[] | undefined;
|
|
183
|
-
join?: string | undefined;
|
|
184
|
-
reverse?: string[] | undefined;
|
|
185
|
-
shift?: string | undefined;
|
|
186
|
-
slice?: string[] | undefined;
|
|
187
|
-
sort?: string[] | undefined;
|
|
188
|
-
splice?: {
|
|
189
|
-
(start: number, deleteCount?: number | undefined): string[];
|
|
190
|
-
(start: number, deleteCount: number, ...items: string[]): string[];
|
|
191
|
-
} | undefined;
|
|
192
|
-
unshift?: number | undefined;
|
|
193
|
-
indexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
194
|
-
lastIndexOf?: ((searchElement: string, fromIndex?: number | undefined) => number) | undefined;
|
|
195
|
-
every?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
196
|
-
some?: ((callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
197
|
-
forEach?: ((callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void) | undefined;
|
|
198
|
-
map?: (<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | undefined;
|
|
199
|
-
filter?: {
|
|
200
|
-
<S extends string>(callbackfn: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
201
|
-
(callbackfn: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
202
|
-
} | undefined;
|
|
203
|
-
reduce?: {
|
|
204
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
205
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
206
|
-
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
207
|
-
} | undefined;
|
|
208
|
-
reduceRight?: {
|
|
209
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
210
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
211
|
-
<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
212
|
-
} | undefined;
|
|
213
|
-
find?: {
|
|
214
|
-
<S_1 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_1, thisArg?: any): S_1 | undefined;
|
|
215
|
-
(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
findIndex?: ((predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any) => number) | undefined;
|
|
218
|
-
fill?: ((value: string, start?: number | undefined, end?: number | undefined) => string[]) | undefined;
|
|
219
|
-
copyWithin?: ((target: number, start: number, end?: number | undefined) => string[]) | undefined;
|
|
220
|
-
entries?: IterableIterator<[number, string]> | undefined;
|
|
221
|
-
keys?: IterableIterator<number> | undefined;
|
|
222
|
-
values?: IterableIterator<string> | undefined;
|
|
223
|
-
includes?: ((searchElement: string, fromIndex?: number | undefined) => boolean) | undefined;
|
|
224
|
-
flatMap?: (<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined) => U_3[]) | undefined;
|
|
225
|
-
flat?: unknown[] | undefined;
|
|
226
|
-
}) | ({} & {
|
|
227
|
-
[x: string]: any;
|
|
228
|
-
[x: number]: any;
|
|
229
|
-
})>);
|
|
230
|
-
export default _default;
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { type HistoryType } from "../../../../typings/model";
|
|
3
|
+
import { dateTimeFormat } from './CellHistory.helpers';
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
7
|
+
history: {
|
|
8
|
+
type: PropType<HistoryType[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
dateTimeFormat: typeof dateTimeFormat;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
history: {
|
|
15
|
+
type: PropType<HistoryType[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
}>>, {
|
|
19
|
+
history: HistoryType[];
|
|
20
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as CellHistory } from './CellHistory.vue';
|
|
1
|
+
export { default as CellHistory } from './CellHistory.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ImportList.vue';
|
|
1
|
+
export { default } from './ImportList.vue';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tager/admin-import",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -10,63 +10,60 @@
|
|
|
10
10
|
"typings",
|
|
11
11
|
"src"
|
|
12
12
|
],
|
|
13
|
+
"exports": {
|
|
14
|
+
"./css": "./dist/style.css",
|
|
15
|
+
".": "./dist/index.mjs"
|
|
16
|
+
},
|
|
13
17
|
"scripts": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"build:js": "vite build",
|
|
19
|
+
"build:package": "yarn build:js && (yarn emit-declarations || echo 'vue-tsc: type errors found, declarations emitted anyway')",
|
|
20
|
+
"emit-declarations": "vue-tsc --project tsconfig.json --emitDeclarationOnly",
|
|
21
|
+
"start": "vite",
|
|
22
|
+
"prepare": "yarn build:package",
|
|
23
|
+
"tager:update": "yarn upgrade --latest --scope @tager",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"format": "prettier --write src"
|
|
20
26
|
},
|
|
21
27
|
"dependencies": {
|
|
28
|
+
"lodash.isequal": "^4.5.0",
|
|
22
29
|
"lodash.kebabcase": "^4.1.1",
|
|
30
|
+
"lodash.pick": "^4.4.0",
|
|
23
31
|
"path-to-regexp": "^6.1.0"
|
|
24
32
|
},
|
|
25
33
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@tager/admin-
|
|
29
|
-
"@tager/admin-
|
|
30
|
-
"@tager/admin-
|
|
31
|
-
"@
|
|
32
|
-
"@types/lodash.
|
|
33
|
-
"@types/node": "
|
|
34
|
-
"@
|
|
35
|
-
"@typescript
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"eslint-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"rollup-plugin-typescript2": "^0.27.2",
|
|
53
|
-
"rollup-plugin-vue": "^5.1.9",
|
|
54
|
-
"sass-loader": "^9.0.3",
|
|
55
|
-
"typescript": "~3.9.6",
|
|
56
|
-
"vue": "2.6.x",
|
|
57
|
-
"vue-docgen-web-types": "^0.1.6",
|
|
58
|
-
"vue-router": "^3.5.1",
|
|
59
|
-
"vue-template-compiler": "^2.6.11"
|
|
34
|
+
"@eslint/js": "^9.39.5",
|
|
35
|
+
"@tager/admin-dynamic-field": "^1.0.0",
|
|
36
|
+
"@tager/admin-layout": "^1.0.0",
|
|
37
|
+
"@tager/admin-services": "^1.0.0",
|
|
38
|
+
"@tager/admin-ui": "^1.0.1",
|
|
39
|
+
"@types/lodash.isequal": "^4.5.6",
|
|
40
|
+
"@types/lodash.pick": "^4.4.7",
|
|
41
|
+
"@types/node": "16.x",
|
|
42
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
43
|
+
"@vue/eslint-config-typescript": "^14.9.0",
|
|
44
|
+
"core-js": "^3.22.3",
|
|
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",
|
|
51
|
+
"prettier": "^3.9.10",
|
|
52
|
+
"sass": "^1.51.0",
|
|
53
|
+
"sass-loader": "^12.6.0",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"vite": "^6.4.5",
|
|
56
|
+
"vue": "^3.2.31",
|
|
57
|
+
"vue-eslint-parser": "^10.4.1",
|
|
58
|
+
"vue-router": "^4.0.14",
|
|
59
|
+
"vue-tsc": "^3.3.14"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@tager/admin-layout": "
|
|
63
|
-
"@tager/admin-services": "
|
|
64
|
-
"@tager/admin-ui": "
|
|
65
|
-
"
|
|
66
|
-
"vue": "
|
|
67
|
-
},
|
|
68
|
-
"resolutions": {
|
|
69
|
-
"prettier": "2.x"
|
|
62
|
+
"@tager/admin-layout": "^1.0.0",
|
|
63
|
+
"@tager/admin-services": "^1.0.0",
|
|
64
|
+
"@tager/admin-ui": "^1.0.1",
|
|
65
|
+
"vue": "^3.2.31",
|
|
66
|
+
"vue-router": "^4.0.14"
|
|
70
67
|
},
|
|
71
68
|
"publishConfig": {
|
|
72
69
|
"access": "public"
|
package/src/constants/routes.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RouteRecordRaw } from 'vue-router';
|
|
2
2
|
|
|
3
3
|
import ImportList from '../views/ImportList';
|
|
4
4
|
import ImportForm from '../views/ImportForm';
|
|
5
5
|
|
|
6
6
|
import { IMPORT_ROUTE_PATHS } from './paths';
|
|
7
7
|
|
|
8
|
-
export const IMPORT_LIST_ROUTE:
|
|
8
|
+
export const IMPORT_LIST_ROUTE: RouteRecordRaw = {
|
|
9
9
|
path: IMPORT_ROUTE_PATHS.IMPORT_LIST,
|
|
10
10
|
component: ImportList,
|
|
11
11
|
name: 'Import List',
|
|
12
12
|
meta: {
|
|
13
|
-
getBreadcrumbs: (route,
|
|
14
|
-
{ url: '/', text: t('import:home') },
|
|
15
|
-
{ url: route.path, text: t('import:importList') },
|
|
13
|
+
getBreadcrumbs: (route, i18n) => [
|
|
14
|
+
{ url: '/', text: i18n.t('import:home') },
|
|
15
|
+
{ url: route.path, text: i18n.t('import:importList') },
|
|
16
16
|
],
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
export const IMPORT_FORM_ROUTE:
|
|
20
|
+
export const IMPORT_FORM_ROUTE: RouteRecordRaw = {
|
|
21
21
|
path: IMPORT_ROUTE_PATHS.IMPORT_FORM,
|
|
22
22
|
component: ImportForm,
|
|
23
23
|
name: 'Import Form',
|
|
24
24
|
meta: {
|
|
25
|
-
getBreadcrumbs: (route,
|
|
26
|
-
{ url: '/', text: t('import:home') },
|
|
27
|
-
{ url: IMPORT_LIST_ROUTE.path, text: t('import:importList') },
|
|
28
|
-
{ url: route.path, text: t('import:importForm') },
|
|
25
|
+
getBreadcrumbs: (route, i18n) => [
|
|
26
|
+
{ url: '/', text: i18n.t('import:home') },
|
|
27
|
+
{ url: IMPORT_LIST_ROUTE.path, text: i18n.t('import:importList') },
|
|
28
|
+
{ url: route.path, text: i18n.t('import:importForm') },
|
|
29
29
|
],
|
|
30
30
|
},
|
|
31
31
|
};
|
package/src/dev/App.vue
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<PageLayout :sidebar-menu-list="sidebarMenuList">
|
|
3
|
+
<router-view/>
|
|
4
|
+
</PageLayout>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts">
|
|
8
|
+
import {defineComponent} from 'vue';
|
|
9
|
+
|
|
10
|
+
import {type MenuItemType, PageLayout} from "@tager/admin-layout";
|
|
11
|
+
import {ViewListIcon} from "@tager/admin-ui";
|
|
12
|
+
import {useI18n} from "@tager/admin-services";
|
|
13
|
+
|
|
14
|
+
import {getImportListUrl} from '../utils/paths';
|
|
15
|
+
|
|
16
|
+
export default defineComponent({
|
|
17
|
+
name: 'App',
|
|
18
|
+
components: {
|
|
19
|
+
PageLayout,
|
|
20
|
+
},
|
|
21
|
+
setup() {
|
|
22
|
+
const i18n = useI18n();
|
|
23
|
+
|
|
24
|
+
const sidebarMenuList: Array<MenuItemType> = [
|
|
25
|
+
{
|
|
26
|
+
id: 'import',
|
|
27
|
+
text: i18n.t('import:import'),
|
|
28
|
+
icon: ViewListIcon,
|
|
29
|
+
children: [{text: i18n.t('import:import'), url: getImportListUrl()}],
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
sidebarMenuList,
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AppConfigType } from '@tager/admin-services';
|
|
2
|
+
|
|
3
|
+
export const OZITAG_CONFIG: AppConfigType = {
|
|
4
|
+
APP_NAME: 'OZiTAG_ADMIN',
|
|
5
|
+
TITLE_TEMPLATE: 'OZiTAG Admin - {{title}}',
|
|
6
|
+
LANGUAGE: 'EN',
|
|
7
|
+
BRAND: {
|
|
8
|
+
small: {
|
|
9
|
+
logo: 'logo-small.svg',
|
|
10
|
+
},
|
|
11
|
+
large: {
|
|
12
|
+
logo: 'logo.svg',
|
|
13
|
+
label: 'OZiTAG',
|
|
14
|
+
'label-color': '#DD6900',
|
|
15
|
+
},
|
|
16
|
+
subtitle: '',
|
|
17
|
+
},
|
|
18
|
+
SPLASH_SCREEN: {
|
|
19
|
+
enabled: true,
|
|
20
|
+
logo: 'logo-white.svg',
|
|
21
|
+
background: '#1e1e1e',
|
|
22
|
+
},
|
|
23
|
+
};
|
package/src/dev/env.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { initializeEnvironment } from '@tager/admin-services';
|
|
2
|
+
|
|
3
|
+
export function populateEnvironment() {
|
|
4
|
+
initializeEnvironment({
|
|
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
|
+
});
|
|
17
|
+
}
|
package/src/dev/main.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createApp } from 'vue';
|
|
2
|
+
|
|
3
|
+
import { configStore, i18n, i18nPlugin } from '@tager/admin-services';
|
|
4
|
+
import { createRouter } from '@tager/admin-layout';
|
|
5
|
+
import '@tager/admin-ui/css';
|
|
6
|
+
import '@tager/admin-layout/css';
|
|
7
|
+
import '@tager/admin-dynamic-field/css';
|
|
8
|
+
|
|
9
|
+
import { applyTranslations } from '../locales/apply';
|
|
10
|
+
import {IMPORT_LIST_ROUTE, IMPORT_FORM_ROUTE} from '../constants/routes';
|
|
11
|
+
|
|
12
|
+
import { OZITAG_CONFIG } from './config';
|
|
13
|
+
import App from './App.vue';
|
|
14
|
+
import { populateEnvironment } from './env';
|
|
15
|
+
|
|
16
|
+
populateEnvironment();
|
|
17
|
+
|
|
18
|
+
configStore.setConfig(OZITAG_CONFIG);
|
|
19
|
+
|
|
20
|
+
const router = createRouter(
|
|
21
|
+
{
|
|
22
|
+
routes: [IMPORT_LIST_ROUTE, IMPORT_FORM_ROUTE],
|
|
23
|
+
},
|
|
24
|
+
{ useTitleSync: false }
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
const app = createApp(App);
|
|
28
|
+
|
|
29
|
+
app.use(router);
|
|
30
|
+
app.use(i18nPlugin);
|
|
31
|
+
|
|
32
|
+
applyTranslations();
|
|
33
|
+
|
|
34
|
+
i18n.init({ debug: true, lng: 'ru' }).then(() => {
|
|
35
|
+
app.mount('#app');
|
|
36
|
+
});
|
package/src/locales/en.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const EN = {
|
|
1
|
+
export const EN = {
|
|
2
2
|
home: 'Home',
|
|
3
|
-
exportAndImport: 'Export / Import',
|
|
4
3
|
import: 'Import',
|
|
5
4
|
importList: 'Import List',
|
|
6
5
|
importForm: 'Import Form',
|
|
@@ -18,5 +17,3 @@ const EN = {
|
|
|
18
17
|
createdSuccessMessage: 'Import has been successfully created',
|
|
19
18
|
createdErrorMessage: 'Import creation has been failed',
|
|
20
19
|
};
|
|
21
|
-
|
|
22
|
-
export default EN;
|