@tager/admin-blog 0.3.28 → 0.3.29
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/menu.d.ts +5 -0
- package/dist/constants/paths.d.ts +14 -0
- package/dist/constants/routes.d.ts +5 -0
- package/dist/constants/scopes.d.ts +11 -0
- package/dist/dev.d.ts +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useFetchCategories.d.ts +6 -0
- package/dist/hooks/useFetchCategory.d.ts +8 -0
- package/dist/hooks/useFetchModuleConfig.d.ts +6 -0
- package/dist/hooks/useFetchPosts.d.ts +6 -0
- package/dist/hooks/useStore.d.ts +4 -0
- package/dist/hooks/useUserPermission.d.ts +3 -0
- package/dist/hooks/useUserProfile.d.ts +3 -0
- package/dist/index.esm.js +73 -76
- package/dist/index.umd.js +73 -76
- package/dist/locales/en.d.ts +75 -0
- package/dist/locales/ru.d.ts +3 -0
- package/dist/main.d.ts +4 -0
- package/dist/router/index.d.ts +4 -0
- package/dist/services/requests.d.ts +58 -0
- package/dist/store/index.d.ts +6 -0
- package/dist/store/user.d.ts +14 -0
- package/dist/typings/common.d.ts +1 -0
- package/dist/typings/model.d.ts +117 -0
- package/dist/utils/common.d.ts +4 -0
- package/dist/views/Categories/CategoryForm/CategoryForm.helpers.d.ts +5 -0
- package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +109 -0
- package/dist/views/Categories/CategoryForm/index.d.ts +1 -0
- package/dist/views/Categories/CategoryList/CategoryList.helpers.d.ts +7 -0
- package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +59 -0
- package/dist/views/Categories/CategoryList/hooks/index.d.ts +1 -0
- package/dist/views/Categories/CategoryList/hooks/useAdvancedSearch.d.ts +16 -0
- package/dist/views/Categories/CategoryList/index.d.ts +1 -0
- package/dist/views/Posts/PostForm/PostForm.helpers.d.ts +27 -0
- package/dist/views/Posts/PostForm/PostForm.vue.d.ts +9382 -0
- package/dist/views/Posts/PostForm/components/TabList/TabList.types.d.ts +5 -0
- package/dist/views/Posts/PostForm/components/TabList/index.d.ts +2 -0
- package/dist/views/Posts/PostForm/index.d.ts +1 -0
- package/dist/views/Posts/PostList/PostList.helpers.d.ts +6 -0
- package/dist/views/Posts/PostList/PostList.vue.d.ts +69 -0
- package/dist/views/Posts/PostList/hooks/index.d.ts +1 -0
- package/dist/views/Posts/PostList/hooks/useAdvancedSearch.d.ts +22 -0
- package/dist/views/Posts/PostList/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PostForm.vue';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { Nullable } from '@tager/admin-services';
|
|
3
|
+
import { ColumnDefinition } from '@tager/admin-ui';
|
|
4
|
+
import { Category, ModuleConfig, Language, PostShort } from '@/typings/model';
|
|
5
|
+
export declare function convertPostList(postList: PostShort[], selectedCategory: Nullable<Category>, languages: Language[]): PostShort[];
|
|
6
|
+
export declare function getPostTableColumnDefs(moduleConfig: Nullable<ModuleConfig>, t: TFunction, canViewAdministrators: boolean): ColumnDefinition<PostShort>[];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ColumnDefinition } from '@tager/admin-ui';
|
|
2
|
+
import { Category, PostShort } from '@/typings/model';
|
|
3
|
+
import { getBlogPostFormUrl } from '@/constants/paths';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
+
columnDefs: import("@vue/composition-api").ComputedRef<ColumnDefinition<PostShort>[]>;
|
|
6
|
+
rowData: import("@vue/composition-api").ComputedRef<PostShort[]>;
|
|
7
|
+
handleResourceDelete: (entityId: string | number) => void;
|
|
8
|
+
isDeleting: (entityId: string | number) => boolean;
|
|
9
|
+
categoryList: import("@vue/composition-api").Ref<Category[]>;
|
|
10
|
+
isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
|
|
11
|
+
errorMessage: import("@vue/composition-api").Ref<string | null>;
|
|
12
|
+
getBlogPostFormUrl: typeof getBlogPostFormUrl;
|
|
13
|
+
pageTitle: import("@vue/composition-api").ComputedRef<string>;
|
|
14
|
+
searchQuery: import("@vue/composition-api").Ref<string>;
|
|
15
|
+
handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
|
|
16
|
+
pageNumber: import("@vue/composition-api").Ref<number>;
|
|
17
|
+
pageCount: import("@vue/composition-api").ComputedRef<number>;
|
|
18
|
+
pageSize: import("@vue/composition-api").Ref<number>;
|
|
19
|
+
categoryFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
20
|
+
categoryOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
21
|
+
isLangSpecific: import("@vue/composition-api").ComputedRef<boolean>;
|
|
22
|
+
languageFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
23
|
+
languageOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
24
|
+
fromDateFilter: import("@vue/composition-api").Ref<string>;
|
|
25
|
+
toDateFilter: import("@vue/composition-api").Ref<string>;
|
|
26
|
+
tags: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").FilterTagType[]>;
|
|
27
|
+
tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
|
|
28
|
+
canViewAdministrators: import("@vue/composition-api").ComputedRef<boolean>;
|
|
29
|
+
handleResourceClone: (entityId: string | number) => void;
|
|
30
|
+
isBusy: (postId: number) => boolean;
|
|
31
|
+
}> & {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
}, {}, {}, unknown, {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
38
|
+
columnDefs: import("@vue/composition-api").ComputedRef<ColumnDefinition<PostShort>[]>;
|
|
39
|
+
rowData: import("@vue/composition-api").ComputedRef<PostShort[]>;
|
|
40
|
+
handleResourceDelete: (entityId: string | number) => void;
|
|
41
|
+
isDeleting: (entityId: string | number) => boolean;
|
|
42
|
+
categoryList: import("@vue/composition-api").Ref<Category[]>;
|
|
43
|
+
isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
|
|
44
|
+
errorMessage: import("@vue/composition-api").Ref<string | null>;
|
|
45
|
+
getBlogPostFormUrl: typeof getBlogPostFormUrl;
|
|
46
|
+
pageTitle: import("@vue/composition-api").ComputedRef<string>;
|
|
47
|
+
searchQuery: import("@vue/composition-api").Ref<string>;
|
|
48
|
+
handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
|
|
49
|
+
pageNumber: import("@vue/composition-api").Ref<number>;
|
|
50
|
+
pageCount: import("@vue/composition-api").ComputedRef<number>;
|
|
51
|
+
pageSize: import("@vue/composition-api").Ref<number>;
|
|
52
|
+
categoryFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
53
|
+
categoryOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
54
|
+
isLangSpecific: import("@vue/composition-api").ComputedRef<boolean>;
|
|
55
|
+
languageFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
56
|
+
languageOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
57
|
+
fromDateFilter: import("@vue/composition-api").Ref<string>;
|
|
58
|
+
toDateFilter: import("@vue/composition-api").Ref<string>;
|
|
59
|
+
tags: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").FilterTagType[]>;
|
|
60
|
+
tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
|
|
61
|
+
canViewAdministrators: import("@vue/composition-api").ComputedRef<boolean>;
|
|
62
|
+
handleResourceClone: (entityId: string | number) => void;
|
|
63
|
+
isBusy: (postId: number) => boolean;
|
|
64
|
+
}>, {
|
|
65
|
+
[x: string]: any;
|
|
66
|
+
}, {}, {}, {
|
|
67
|
+
[x: string]: any;
|
|
68
|
+
}>);
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useAdvancedSearch } from './useAdvancedSearch';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComputedRef, Ref, SetupContext } from '@vue/composition-api';
|
|
2
|
+
import { FilterTagType, OptionType } from '@tager/admin-ui';
|
|
3
|
+
import { Category, Language } from '@/typings/model';
|
|
4
|
+
interface Params {
|
|
5
|
+
context: SetupContext;
|
|
6
|
+
categoryList: ComputedRef<Category[]>;
|
|
7
|
+
languageList: ComputedRef<Language[]>;
|
|
8
|
+
}
|
|
9
|
+
interface State {
|
|
10
|
+
categoryFilter: Ref<OptionType[]>;
|
|
11
|
+
categoryOptionList: ComputedRef<OptionType[]>;
|
|
12
|
+
languageFilter: Ref<OptionType[]>;
|
|
13
|
+
languageOptionList: ComputedRef<OptionType[]>;
|
|
14
|
+
fromDateFilter: Ref<string>;
|
|
15
|
+
toDateFilter: Ref<string>;
|
|
16
|
+
filterParams: ComputedRef<Record<string, string | string[]>>;
|
|
17
|
+
tags: ComputedRef<FilterTagType[]>;
|
|
18
|
+
tagRemovalHandler(event: FilterTagType): void;
|
|
19
|
+
}
|
|
20
|
+
export declare const dateFormat: (date: string) => string;
|
|
21
|
+
export declare function useAdvancedSearch({ context, categoryList, languageList, }: Params): State;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PostList.vue';
|