@tager/admin-blog 0.3.24 → 0.3.25
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/index.esm.js +546 -278
- package/dist/index.umd.js +545 -275
- package/package.json +7 -5
- package/src/constants/scopes.ts +11 -0
- package/src/dev.ts +11 -42
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useModuleConfig.ts +2 -2
- package/src/hooks/useStore.ts +8 -0
- package/src/hooks/useUserPermission.ts +16 -0
- package/src/hooks/useUserProfile.ts +13 -0
- package/src/locales/en.ts +10 -0
- package/src/locales/ru.ts +10 -0
- package/src/router/index.ts +39 -0
- package/src/services/requests.ts +17 -1
- package/src/store/index.ts +21 -0
- package/src/store/user.ts +109 -0
- package/src/typings/common.ts +1 -0
- package/src/typings/model.ts +23 -0
- package/src/utils/common.ts +23 -0
- package/src/views/App.vue +10 -2
- package/src/views/Categories/CategoryForm/CategoryForm.helpers.ts +19 -4
- package/src/views/Categories/CategoryForm/CategoryForm.vue +139 -66
- package/src/views/Categories/CategoryList/CategoryList.helpers.ts +30 -28
- package/src/views/Categories/CategoryList/CategoryList.vue +26 -11
- package/src/views/Categories/CategoryList/hooks/useAdvancedSearch.ts +1 -1
- package/src/views/Home.vue +1 -1
- package/src/views/Posts/PostForm/PostForm.helpers.ts +2 -5
- package/src/views/Posts/PostForm/PostForm.vue +4 -6
- package/src/views/Posts/PostList/PostList.helpers.ts +2 -7
- package/src/views/Posts/PostList/PostList.vue +84 -24
- package/src/views/Posts/PostList/hooks/useAdvancedSearch.ts +6 -5
- package/dist/constants/menu.d.ts +0 -5
- package/dist/constants/paths.d.ts +0 -14
- package/dist/constants/routes.d.ts +0 -5
- package/dist/dev.d.ts +0 -3
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/useBlogCategoryList.d.ts +0 -6
- package/dist/hooks/useBlogPostList.d.ts +0 -6
- package/dist/hooks/useModuleConfig.d.ts +0 -6
- package/dist/locales/en.d.ts +0 -66
- package/dist/locales/ru.d.ts +0 -3
- package/dist/main.d.ts +0 -4
- package/dist/services/requests.d.ts +0 -67
- package/dist/typings/model.d.ts +0 -73
- package/dist/views/Categories/CategoryForm/CategoryForm.helpers.d.ts +0 -16
- package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +0 -86
- package/dist/views/Categories/CategoryForm/index.d.ts +0 -1
- package/dist/views/Categories/CategoryList/CategoryList.helpers.d.ts +0 -7
- package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +0 -57
- package/dist/views/Categories/CategoryList/hooks/index.d.ts +0 -1
- package/dist/views/Categories/CategoryList/hooks/useAdvancedSearch.d.ts +0 -16
- package/dist/views/Categories/CategoryList/index.d.ts +0 -1
- package/dist/views/Posts/PostForm/PostForm.helpers.d.ts +0 -27
- package/dist/views/Posts/PostForm/PostForm.vue.d.ts +0 -9380
- package/dist/views/Posts/PostForm/components/TabList/TabList.types.d.ts +0 -5
- package/dist/views/Posts/PostForm/components/TabList/index.d.ts +0 -2
- package/dist/views/Posts/PostForm/index.d.ts +0 -1
- package/dist/views/Posts/PostList/PostList.helpers.d.ts +0 -6
- package/dist/views/Posts/PostList/PostList.vue.d.ts +0 -63
- package/dist/views/Posts/PostList/hooks/index.d.ts +0 -1
- package/dist/views/Posts/PostList/hooks/useAdvancedSearch.d.ts +0 -22
- package/dist/views/Posts/PostList/index.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './PostForm.vue';
|
|
@@ -1,6 +0,0 @@
|
|
|
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): ColumnDefinition<PostShort>[];
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
}> & {
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
}, {}, {}, unknown, {
|
|
31
|
-
[x: string]: any;
|
|
32
|
-
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
35
|
-
columnDefs: import("@vue/composition-api").ComputedRef<ColumnDefinition<PostShort>[]>;
|
|
36
|
-
rowData: import("@vue/composition-api").ComputedRef<PostShort[]>;
|
|
37
|
-
handleResourceDelete: (entityId: string | number) => void;
|
|
38
|
-
isDeleting: (entityId: string | number) => boolean;
|
|
39
|
-
categoryList: import("@vue/composition-api").Ref<Category[]>;
|
|
40
|
-
isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
|
|
41
|
-
errorMessage: import("@vue/composition-api").Ref<string | null>;
|
|
42
|
-
getBlogPostFormUrl: typeof getBlogPostFormUrl;
|
|
43
|
-
pageTitle: import("@vue/composition-api").ComputedRef<string>;
|
|
44
|
-
searchQuery: import("@vue/composition-api").Ref<string>;
|
|
45
|
-
handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
|
|
46
|
-
pageNumber: import("@vue/composition-api").Ref<number>;
|
|
47
|
-
pageCount: import("@vue/composition-api").ComputedRef<number>;
|
|
48
|
-
pageSize: import("@vue/composition-api").Ref<number>;
|
|
49
|
-
categoryFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
50
|
-
categoryOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
51
|
-
isLangSpecific: import("@vue/composition-api").ComputedRef<boolean>;
|
|
52
|
-
languageFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
53
|
-
languageOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
54
|
-
fromDateFilter: import("@vue/composition-api").Ref<string>;
|
|
55
|
-
toDateFilter: import("@vue/composition-api").Ref<string>;
|
|
56
|
-
tags: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").FilterTagType[]>;
|
|
57
|
-
tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
|
|
58
|
-
}>, {
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
}, {}, {}, {
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
}>);
|
|
63
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useAdvancedSearch } from './useAdvancedSearch';
|
|
@@ -1,22 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './PostList.vue';
|