@tager/admin-files 0.0.7 → 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.
Files changed (43) hide show
  1. package/dist/constants/paths.d.ts +4 -4
  2. package/dist/constants/routes.d.ts +3 -3
  3. package/dist/dev/App.vue.d.ts +6 -0
  4. package/dist/dev/config.d.ts +2 -0
  5. package/dist/dev/env.d.ts +1 -0
  6. package/dist/dev/main.d.ts +3 -0
  7. package/dist/index.mjs +315 -0
  8. package/dist/locales/apply.d.ts +1 -0
  9. package/dist/locales/en.d.ts +18 -19
  10. package/dist/locales/ru.d.ts +2 -3
  11. package/dist/main.d.ts +3 -3
  12. package/dist/services/requests.d.ts +16 -16
  13. package/dist/typings/model.d.ts +14 -14
  14. package/dist/utils/paths.d.ts +4 -4
  15. package/dist/views/FilesForm/FilesForm.helpers.d.ts +2 -2
  16. package/dist/views/FilesForm/FilesForm.vue.d.ts +23 -50
  17. package/dist/views/FilesForm/index.d.ts +1 -1
  18. package/dist/views/FilesList/FilesList.vue.d.ts +19 -37
  19. package/dist/views/FilesList/index.d.ts +1 -1
  20. package/package.json +47 -49
  21. package/src/constants/routes.ts +10 -10
  22. package/src/dev/App.vue +38 -0
  23. package/src/dev/config.ts +23 -0
  24. package/src/dev/env.ts +17 -0
  25. package/src/dev/main.ts +36 -0
  26. package/src/locales/apply.ts +9 -0
  27. package/src/locales/en.ts +1 -3
  28. package/src/locales/ru.ts +2 -4
  29. package/src/main.ts +2 -6
  30. package/src/services/requests.ts +2 -2
  31. package/src/typings/model.ts +1 -1
  32. package/src/views/FilesForm/FilesForm.helpers.ts +1 -1
  33. package/src/views/FilesForm/FilesForm.vue +32 -26
  34. package/src/views/FilesList/FilesList.vue +51 -49
  35. package/README.md +0 -1
  36. package/dist/dev.d.ts +0 -1
  37. package/dist/index.esm.js +0 -738
  38. package/dist/index.umd.js +0 -750
  39. package/src/dev.ts +0 -41
  40. package/src/typings/sfc.d.ts +0 -12
  41. package/src/typings/shims-tsx.d.ts +0 -13
  42. package/src/typings/shims-vue.d.ts +0 -11
  43. package/src/views/App.vue +0 -36
@@ -1,4 +1,4 @@
1
- export declare const FILES_ROUTE_PATHS: {
2
- readonly FILES_LIST: "/files";
3
- readonly FILES_FORM: "/files/:fileId";
4
- };
1
+ export declare const FILES_ROUTE_PATHS: {
2
+ readonly FILES_LIST: "/files";
3
+ readonly FILES_FORM: "/files/:fileId";
4
+ };
@@ -1,3 +1,3 @@
1
- import { CustomRouteConfig } from '@tager/admin-layout';
2
- export declare const FILES_LIST_ROUTE: CustomRouteConfig;
3
- export declare const FILES_FORM_ROUTE: CustomRouteConfig;
1
+ import type { RouteRecordRaw } from 'vue-router';
2
+ export declare const FILES_LIST_ROUTE: RouteRecordRaw;
3
+ export declare const FILES_FORM_ROUTE: RouteRecordRaw;
@@ -0,0 +1,6 @@
1
+ import { type MenuItemType } from "@tager/admin-layout";
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
5
+ sidebarMenuList: MenuItemType[];
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
@@ -0,0 +1,2 @@
1
+ import type { AppConfigType } from '@tager/admin-services';
2
+ export declare const OZITAG_CONFIG: AppConfigType;
@@ -0,0 +1 @@
1
+ export declare function populateEnvironment(): void;
@@ -0,0 +1,3 @@
1
+ import '@tager/admin-ui/css';
2
+ import '@tager/admin-layout/css';
3
+ import '@tager/admin-dynamic-field/css';
package/dist/index.mjs ADDED
@@ -0,0 +1,315 @@
1
+ import { i18n as L, request as F, useI18n as y, useResourceDelete as _, useToast as C, navigateBack as R, convertRequestErrorToMap as w } from "@tager/admin-services";
2
+ import { defineComponent as D, onMounted as $, resolveComponent as c, openBlock as I, createBlock as T, withCtx as d, createVNode as m, ref as h, createElementVNode as M, withModifiers as z } from "vue";
3
+ import N from "filesize";
4
+ import { DeleteIcon as B, BaseButton as U, DataTable as k, useDataTable as O, cutUrlOrigin as P, FormFooter as A, FormFieldFileInput as q } from "@tager/admin-ui";
5
+ import { Page as v } from "@tager/admin-layout";
6
+ import { compile as V } from "path-to-regexp";
7
+ import { useRouter as Q } from "vue-router";
8
+ const H = {
9
+ home: "Home",
10
+ success: "Success",
11
+ error: "Error",
12
+ createdSuccessMessage: "The file was added successfully",
13
+ createdErrorMessage: "Failed to add file",
14
+ files: "Files",
15
+ filesList: "Files List",
16
+ filesForm: "File Form",
17
+ createFile: "Create file",
18
+ fileCreation: "File creation",
19
+ file: "File",
20
+ fileName: "File",
21
+ fileType: "Type",
22
+ fileSize: "Size",
23
+ delete: "Delete",
24
+ add: "Add"
25
+ }, j = {
26
+ home: "Главная",
27
+ success: "Успех",
28
+ error: "Ошибка",
29
+ createdSuccessMessage: "Файл был успешно добавлен",
30
+ createdErrorMessage: "Не удалось добавить файл",
31
+ files: "Файлы",
32
+ filesList: "Список файлов",
33
+ filesForm: "Форма файлов",
34
+ createFile: "Создать файл",
35
+ fileCreation: "Создание файла",
36
+ file: "Файл",
37
+ fileName: "Имя файла",
38
+ fileType: "Тип файла",
39
+ fileSize: "Размер",
40
+ delete: "Удалить",
41
+ add: "Добавить"
42
+ };
43
+ function G() {
44
+ L.addTranslations("en", "files", H), L.addTranslations("ru", "files", j);
45
+ }
46
+ function J(e) {
47
+ return F.get({ path: "/admin/userfiles", params: e });
48
+ }
49
+ function me() {
50
+ return F.get({ path: "/admin/userfiles/count" });
51
+ }
52
+ function K(e) {
53
+ return F.delete({ path: `/admin/userfiles/${e}` });
54
+ }
55
+ function W(e) {
56
+ return F.post({ path: "/admin/userfiles", body: e });
57
+ }
58
+ const g = {
59
+ FILES_LIST: "/files",
60
+ FILES_FORM: "/files/:fileId"
61
+ };
62
+ function b() {
63
+ return g.FILES_LIST;
64
+ }
65
+ function X(e) {
66
+ return V(g.FILES_FORM)(e);
67
+ }
68
+ const Y = D({
69
+ name: "FilesList",
70
+ components: { DataTable: k, BaseButton: U, DeleteIcon: B, Page: v },
71
+ setup() {
72
+ const { t: e } = y(), {
73
+ fetchEntityList: t,
74
+ isLoading: o,
75
+ rowData: s,
76
+ errorMessage: l,
77
+ searchQuery: n,
78
+ handleChange: u,
79
+ pageSize: i,
80
+ pageCount: f,
81
+ pageNumber: r
82
+ } = O({
83
+ fetchEntityList: (a) => J({
84
+ query: a.searchQuery,
85
+ pageNumber: a.pageNumber,
86
+ pageSize: a.pageSize
87
+ }),
88
+ initialValue: [],
89
+ resourceName: "Files list",
90
+ pageSize: 100
91
+ });
92
+ $(() => {
93
+ t();
94
+ });
95
+ const { handleResourceDelete: p, isDeleting: S } = _({
96
+ deleteResource: K,
97
+ resourceName: "File",
98
+ onSuccess: t
99
+ });
100
+ return {
101
+ columnDefs: [
102
+ {
103
+ id: 1,
104
+ name: "ID",
105
+ field: "id",
106
+ style: { width: "50px", textAlign: "center" },
107
+ headStyle: { width: "50px", textAlign: "center" }
108
+ },
109
+ {
110
+ id: 2,
111
+ name: e("files:fileName"),
112
+ field: "name"
113
+ },
114
+ {
115
+ id: 3,
116
+ name: e("files:fileType"),
117
+ field: "type"
118
+ },
119
+ {
120
+ id: 4,
121
+ name: e("files:fileSize"),
122
+ field: "size",
123
+ format: ({ row: a }) => N(a.size),
124
+ style: { whiteSpace: "nowrap" },
125
+ headStyle: { whiteSpace: "nowrap" }
126
+ },
127
+ {
128
+ id: 5,
129
+ name: "URL",
130
+ type: "link",
131
+ field: "url",
132
+ format: ({ row: a }) => ({
133
+ url: a.url,
134
+ text: P(a.url)
135
+ })
136
+ },
137
+ {
138
+ id: 6,
139
+ name: e("files:delete"),
140
+ field: "delete",
141
+ style: { textAlign: "center" },
142
+ headStyle: { textAlign: "center" }
143
+ }
144
+ ],
145
+ getFilesFormUrl: X,
146
+ rowData: s,
147
+ isRowDataLoading: o,
148
+ errorMessage: l,
149
+ searchQuery: n,
150
+ handleChange: u,
151
+ pageSize: i,
152
+ pageCount: f,
153
+ pageNumber: r,
154
+ handleResourceDelete: p,
155
+ isDeleting: S
156
+ };
157
+ }
158
+ }), E = (e, t) => {
159
+ const o = e.__vccOpts || e;
160
+ for (const [s, l] of t)
161
+ o[s] = l;
162
+ return o;
163
+ };
164
+ function Z(e, t, o, s, l, n) {
165
+ const u = c("DeleteIcon"), i = c("BaseButton"), f = c("DataTable"), r = c("Page");
166
+ return I(), T(r, {
167
+ title: e.$i18n.t("files:filesList"),
168
+ "header-buttons": [
169
+ {
170
+ text: e.$i18n.t("files:createFile"),
171
+ href: e.getFilesFormUrl({ fileId: "create" })
172
+ }
173
+ ]
174
+ }, {
175
+ default: d(() => [
176
+ m(f, {
177
+ "column-defs": e.columnDefs,
178
+ "row-data": e.rowData,
179
+ loading: e.isRowDataLoading,
180
+ "error-message": e.errorMessage,
181
+ "search-query": e.searchQuery,
182
+ pagination: {
183
+ pageSize: e.pageSize,
184
+ pageCount: e.pageCount,
185
+ pageNumber: e.pageNumber,
186
+ disabled: e.isRowDataLoading
187
+ },
188
+ onChange: e.handleChange
189
+ }, {
190
+ "cell(delete)": d(({ row: p }) => [
191
+ m(i, {
192
+ variant: "icon",
193
+ title: e.$i18n.t("files:delete"),
194
+ disabled: e.isDeleting(p.id),
195
+ onClick: (S) => e.handleResourceDelete(p.id)
196
+ }, {
197
+ default: d(() => [
198
+ m(u)
199
+ ]),
200
+ _: 2
201
+ }, 1032, ["title", "disabled", "onClick"])
202
+ ]),
203
+ _: 1
204
+ }, 8, ["column-defs", "row-data", "loading", "error-message", "search-query", "pagination", "onChange"])
205
+ ]),
206
+ _: 1
207
+ }, 8, ["title", "header-buttons"]);
208
+ }
209
+ const x = /* @__PURE__ */ E(Y, [["render", Z]]);
210
+ function ee(e) {
211
+ var t;
212
+ return {
213
+ file: ((t = e.file) == null ? void 0 : t.file.id) ?? ""
214
+ };
215
+ }
216
+ const te = D({
217
+ name: "FilesForm",
218
+ components: { Page: v, FormFieldFileInput: q, FormFooter: A },
219
+ setup() {
220
+ const { t: e } = y(), t = C(), o = Q(), s = h({}), l = h({ file: null }), n = h(!1);
221
+ function u(i) {
222
+ n.value = !0;
223
+ const f = ee(
224
+ l.value
225
+ );
226
+ W(f).then(() => {
227
+ s.value = {}, (i.type === "create" || i.type === "save" || i.type === "create_exit" || i.type === "save_exit") && R(o, b()), t.show({
228
+ variant: "success",
229
+ title: e("files:success"),
230
+ body: e("files:createdSuccessMessage")
231
+ });
232
+ }).catch((r) => {
233
+ console.error(r), s.value = w(r), t.show({
234
+ variant: "danger",
235
+ title: e("files:error"),
236
+ body: e("files:createdErrorMessage")
237
+ });
238
+ }).finally(() => {
239
+ n.value = !1;
240
+ });
241
+ }
242
+ return {
243
+ values: l,
244
+ errors: s,
245
+ isSubmitting: n,
246
+ submitForm: u,
247
+ getFilesListUrl: b
248
+ };
249
+ }
250
+ });
251
+ function ie(e, t, o, s, l, n) {
252
+ const u = c("FormFieldFileInput"), i = c("FormFooter"), f = c("Page");
253
+ return I(), T(f, {
254
+ title: e.$i18n.t("files:fileCreation")
255
+ }, {
256
+ footer: d(() => [
257
+ m(i, {
258
+ "back-href": e.getFilesListUrl(),
259
+ "is-submitting": e.isSubmitting,
260
+ "is-creation": !0,
261
+ "submit-label": "Добавить",
262
+ onSubmit: e.submitForm
263
+ }, null, 8, ["back-href", "is-submitting", "onSubmit"])
264
+ ]),
265
+ default: d(() => [
266
+ M("form", {
267
+ novalidate: "",
268
+ onSubmit: t[1] || (t[1] = z(() => {
269
+ }, ["prevent"]))
270
+ }, [
271
+ m(u, {
272
+ value: e.values.file,
273
+ "onUpdate:value": t[0] || (t[0] = (r) => e.values.file = r),
274
+ error: e.errors.file,
275
+ label: e.$i18n.t("files:file"),
276
+ name: "file"
277
+ }, null, 8, ["value", "error", "label"])
278
+ ], 32)
279
+ ]),
280
+ _: 1
281
+ }, 8, ["title"]);
282
+ }
283
+ const se = /* @__PURE__ */ E(te, [["render", ie]]), oe = {
284
+ path: g.FILES_LIST,
285
+ component: x,
286
+ name: "Files List",
287
+ meta: {
288
+ getBreadcrumbs: (e, t) => [
289
+ { url: "/", text: t.t("files:home") },
290
+ { url: e.path, text: t.t("files:filesList") }
291
+ ]
292
+ }
293
+ }, pe = {
294
+ path: g.FILES_FORM,
295
+ component: se,
296
+ name: "Files Form",
297
+ meta: {
298
+ getBreadcrumbs: (e, t) => [
299
+ { url: "/", text: t.t("files:home") },
300
+ { url: oe.path, text: t.t("files:filesList") },
301
+ { url: e.path, text: t.t("files:filesForm") }
302
+ ]
303
+ }
304
+ };
305
+ G();
306
+ export {
307
+ pe as FILES_FORM_ROUTE,
308
+ oe as FILES_LIST_ROUTE,
309
+ W as addFile,
310
+ K as deleteFile,
311
+ me as getFilesCount,
312
+ X as getFilesFormUrl,
313
+ J as getFilesList,
314
+ b as getFilesListUrl
315
+ };
@@ -0,0 +1 @@
1
+ export declare function applyTranslations(): void;
@@ -1,19 +1,18 @@
1
- declare const EN: {
2
- home: string;
3
- success: string;
4
- error: string;
5
- createdSuccessMessage: string;
6
- createdErrorMessage: string;
7
- files: string;
8
- filesList: string;
9
- filesForm: string;
10
- createFile: string;
11
- fileCreation: string;
12
- file: string;
13
- fileName: string;
14
- fileType: string;
15
- fileSize: string;
16
- delete: string;
17
- add: string;
18
- };
19
- export default EN;
1
+ export declare const EN: {
2
+ home: string;
3
+ success: string;
4
+ error: string;
5
+ createdSuccessMessage: string;
6
+ createdErrorMessage: string;
7
+ files: string;
8
+ filesList: string;
9
+ filesForm: string;
10
+ createFile: string;
11
+ fileCreation: string;
12
+ file: string;
13
+ fileName: string;
14
+ fileType: string;
15
+ fileSize: string;
16
+ delete: string;
17
+ add: string;
18
+ };
@@ -1,3 +1,2 @@
1
- import EN from './en';
2
- declare const RU: typeof EN;
3
- export default RU;
1
+ import { EN } from './en';
2
+ export declare const RU: typeof EN;
package/dist/main.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './constants/routes';
2
- export * from './utils/paths';
3
- export * from './services/requests';
1
+ export * from './constants/routes';
2
+ export * from './utils/paths';
3
+ export * from './services/requests';
@@ -1,16 +1,16 @@
1
- import { ResponseBody } from '@tager/admin-services';
2
- import { FileModel } from '../typings/model';
3
- export declare function getFilesList(params?: {
4
- query?: string;
5
- pageNumber?: number;
6
- pageSize?: number;
7
- }): Promise<ResponseBody<Array<FileModel>>>;
8
- export declare function getFilesCount(): Promise<ResponseBody<{
9
- count: number;
10
- }>>;
11
- export declare function deleteFile(fileId: number | string): Promise<{
12
- success: boolean;
13
- }>;
14
- export declare function addFile(payload: {
15
- file: string;
16
- }): Promise<import("@tager/admin-services").ParsedResponseBody>;
1
+ import { type ResponseBody } from '@tager/admin-services';
2
+ import { type FileModel } from '../typings/model';
3
+ export declare function getFilesList(params?: {
4
+ query?: string;
5
+ pageNumber?: number;
6
+ pageSize?: number;
7
+ }): Promise<ResponseBody<Array<FileModel>>>;
8
+ export declare function getFilesCount(): Promise<ResponseBody<{
9
+ count: number;
10
+ }>>;
11
+ export declare function deleteFile(fileId: number | string): Promise<{
12
+ success: boolean;
13
+ }>;
14
+ export declare function addFile(payload: {
15
+ file: string;
16
+ }): Promise<import("@tager/admin-services").ParsedResponseBody>;
@@ -1,14 +1,14 @@
1
- import { SingleFileInputValueType } from '@tager/admin-ui';
2
- export interface FileModel {
3
- id: number;
4
- name: string;
5
- type: string;
6
- size: number;
7
- url: string;
8
- }
9
- export interface FormValues {
10
- file: SingleFileInputValueType | null;
11
- }
12
- export interface FilesCreatePayload {
13
- file: string;
14
- }
1
+ import { type SingleFileInputValueType } from '@tager/admin-ui';
2
+ export interface FileModel {
3
+ id: number;
4
+ name: string;
5
+ type: string;
6
+ size: number;
7
+ url: string;
8
+ }
9
+ export interface FormValues {
10
+ file: SingleFileInputValueType | null;
11
+ }
12
+ export interface FilesCreatePayload {
13
+ file: string;
14
+ }
@@ -1,4 +1,4 @@
1
- export declare function getFilesListUrl(): string;
2
- export declare function getFilesFormUrl(params: {
3
- fileId: string | number;
4
- }): string;
1
+ export declare function getFilesListUrl(): string;
2
+ export declare function getFilesFormUrl(params: {
3
+ fileId: string | number;
4
+ }): string;
@@ -1,2 +1,2 @@
1
- import { FilesCreatePayload, FormValues } from '../../typings/model';
2
- export declare function convertFilesFormValuesToCreationPayload(values: FormValues): FilesCreatePayload;
1
+ import { type FilesCreatePayload, type FormValues } from '../../typings/model';
2
+ export declare function convertFilesFormValuesToCreationPayload(values: FormValues): FilesCreatePayload;
@@ -1,50 +1,23 @@
1
- import { TagerFormSubmitEvent } from '@tager/admin-ui';
2
- import { getFilesListUrl } from '../../utils/paths';
3
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
- values: import("@vue/composition-api").Ref<{
5
- file: {
6
- id: string;
7
- file: {
8
- id: string;
9
- mime: string;
10
- name: string;
11
- size: number;
12
- url: string;
13
- };
14
- caption?: string | null | undefined;
15
- } | null;
16
- }>;
17
- errors: import("@vue/composition-api").Ref<{
18
- [x: string]: string;
19
- }>;
20
- isSubmitting: import("@vue/composition-api").Ref<boolean>;
21
- submitForm: (event: TagerFormSubmitEvent) => void;
22
- getFilesListUrl: typeof getFilesListUrl;
23
- }> & import("@vue/composition-api").Data, {}, {}, unknown, {
24
- [x: string]: any;
25
- }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
26
- [x: string]: any;
27
- }, import("@vue/composition-api").ShallowUnwrapRef<{
28
- values: import("@vue/composition-api").Ref<{
29
- file: {
30
- id: string;
31
- file: {
32
- id: string;
33
- mime: string;
34
- name: string;
35
- size: number;
36
- url: string;
37
- };
38
- caption?: string | null | undefined;
39
- } | null;
40
- }>;
41
- errors: import("@vue/composition-api").Ref<{
42
- [x: string]: string;
43
- }>;
44
- isSubmitting: import("@vue/composition-api").Ref<boolean>;
45
- submitForm: (event: TagerFormSubmitEvent) => void;
46
- getFilesListUrl: typeof getFilesListUrl;
47
- }>, import("@vue/composition-api").Data, {}, {}, {
48
- [x: string]: any;
49
- }, {}, true>);
50
- export default _default;
1
+ import { type TagerFormSubmitEvent } from '@tager/admin-ui';
2
+ import { getFilesListUrl } from '../../utils/paths';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
6
+ values: import("vue").Ref<{
7
+ file: {
8
+ id: string;
9
+ file: {
10
+ id: string;
11
+ url: string;
12
+ name: string;
13
+ size: number;
14
+ mime: string;
15
+ };
16
+ caption?: import("@tager/admin-services").Nullable<string> | undefined;
17
+ } | null;
18
+ }>;
19
+ errors: import("vue").Ref<Record<string, string>>;
20
+ isSubmitting: import("vue").Ref<boolean>;
21
+ submitForm: (event: TagerFormSubmitEvent) => void;
22
+ getFilesListUrl: typeof getFilesListUrl;
23
+ }, {}, {}, {}, 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 { default } from './FilesForm.vue';
1
+ export { default } from './FilesForm.vue';
@@ -1,37 +1,19 @@
1
- import { ColumnDefinition } from '@tager/admin-ui';
2
- import { FileModel } from '../../typings/model';
3
- import { getFilesFormUrl } from '../../utils/paths';
4
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
- columnDefs: ColumnDefinition<FileModel>[];
6
- getFilesFormUrl: typeof getFilesFormUrl;
7
- rowData: import("@vue/composition-api").Ref<FileModel[]>;
8
- isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
9
- errorMessage: import("@vue/composition-api").Ref<import("@tager/admin-services").Nullable<string>>;
10
- searchQuery: import("@vue/composition-api").Ref<string>;
11
- handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
12
- pageSize: import("@vue/composition-api").Ref<number>;
13
- pageCount: import("@vue/composition-api").ComputedRef<number>;
14
- pageNumber: import("@vue/composition-api").Ref<number>;
15
- handleResourceDelete: (entityId: string | number) => void;
16
- isDeleting: (entityId: string | number) => boolean;
17
- }> & import("@vue/composition-api").Data, {}, {}, unknown, {
18
- [x: string]: any;
19
- }> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
20
- [x: string]: any;
21
- }, import("@vue/composition-api").ShallowUnwrapRef<{
22
- columnDefs: ColumnDefinition<FileModel>[];
23
- getFilesFormUrl: typeof getFilesFormUrl;
24
- rowData: import("@vue/composition-api").Ref<FileModel[]>;
25
- isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
26
- errorMessage: import("@vue/composition-api").Ref<import("@tager/admin-services").Nullable<string>>;
27
- searchQuery: import("@vue/composition-api").Ref<string>;
28
- handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
29
- pageSize: import("@vue/composition-api").Ref<number>;
30
- pageCount: import("@vue/composition-api").ComputedRef<number>;
31
- pageNumber: import("@vue/composition-api").Ref<number>;
32
- handleResourceDelete: (entityId: string | number) => void;
33
- isDeleting: (entityId: string | number) => boolean;
34
- }>, import("@vue/composition-api").Data, {}, {}, {
35
- [x: string]: any;
36
- }, {}, true>);
37
- export default _default;
1
+ import { type ColumnDefinition } from '@tager/admin-ui';
2
+ import { type FileModel } from '../../typings/model';
3
+ import { getFilesFormUrl } 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<FileModel>[];
8
+ getFilesFormUrl: typeof getFilesFormUrl;
9
+ rowData: import("vue").Ref<FileModel[]>;
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
+ handleResourceDelete: (entityId: string | number) => void;
18
+ isDeleting: (entityId: string | number) => boolean;
19
+ }, {}, {}, {}, 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 { default } from './FilesList.vue';
1
+ export { default } from './FilesList.vue';