@tager/admin-blog 0.3.42 → 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 +6 -14
- package/dist/constants/routes.d.ts +5 -5
- package/dist/dev/App.vue.d.ts +5 -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/hooks/index.d.ts +4 -4
- package/dist/hooks/useFetchCategories.d.ts +3 -6
- package/dist/hooks/useFetchCategory.d.ts +7 -8
- package/dist/hooks/useFetchModuleConfig.d.ts +3 -6
- package/dist/hooks/useFetchPosts.d.ts +3 -6
- package/dist/index.mjs +2313 -0
- package/dist/locales/apply.d.ts +1 -0
- package/dist/locales/en.d.ts +87 -86
- package/dist/locales/ru.d.ts +3 -3
- package/dist/main.d.ts +3 -4
- package/dist/services/requests.d.ts +59 -59
- package/dist/style.css +1 -0
- package/dist/typings/common.d.ts +1 -1
- package/dist/typings/model.d.ts +106 -106
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/paths.d.ts +8 -0
- package/dist/views/Categories/CategoryForm/CategoryForm.helpers.d.ts +7 -7
- package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +53 -116
- package/dist/views/Categories/CategoryForm/index.d.ts +1 -1
- package/dist/views/Categories/CategoryList/CategoryList.helpers.d.ts +7 -7
- package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +26 -57
- package/dist/views/Categories/CategoryList/hooks/index.d.ts +1 -1
- package/dist/views/Categories/CategoryList/hooks/useAdvancedSearch.d.ts +19 -16
- package/dist/views/Categories/CategoryList/index.d.ts +1 -1
- package/dist/views/Posts/PostForm/PostForm.helpers.d.ts +32 -32
- package/dist/views/Posts/PostForm/PostForm.vue.d.ts +2768 -9398
- package/dist/views/Posts/PostForm/index.d.ts +1 -1
- package/dist/views/Posts/PostList/PostList.helpers.d.ts +7 -7
- package/dist/views/Posts/PostList/PostList.vue.d.ts +38 -78
- package/dist/views/Posts/PostList/hooks/index.d.ts +1 -1
- package/dist/views/Posts/PostList/hooks/useAdvancedSearch.d.ts +27 -24
- package/dist/views/Posts/PostList/index.d.ts +1 -1
- package/package.json +51 -49
- package/src/constants/paths.ts +0 -22
- package/src/constants/routes.ts +9 -9
- package/src/dev/App.vue +56 -0
- package/src/dev/config.ts +23 -0
- package/src/dev/env.ts +17 -0
- package/src/dev/main.ts +49 -0
- package/src/hooks/useFetchCategories.ts +2 -7
- package/src/hooks/useFetchCategory.ts +3 -6
- package/src/hooks/useFetchModuleConfig.ts +2 -7
- package/src/hooks/useFetchPosts.ts +2 -5
- package/src/locales/apply.ts +9 -0
- package/src/locales/en.ts +3 -3
- package/src/locales/ru.ts +4 -2
- package/src/main.ts +3 -8
- package/src/utils/paths.ts +23 -0
- package/src/views/Categories/CategoryForm/CategoryForm.vue +81 -65
- package/src/views/Categories/CategoryList/CategoryList.helpers.ts +1 -1
- package/src/views/Categories/CategoryList/CategoryList.vue +86 -58
- package/src/views/Categories/CategoryList/hooks/useAdvancedSearch.ts +9 -12
- package/src/views/Posts/PostForm/PostForm.vue +259 -224
- package/src/views/Posts/PostList/PostList.helpers.ts +3 -3
- package/src/views/Posts/PostList/PostList.vue +168 -168
- package/src/views/Posts/PostList/hooks/useAdvancedSearch.ts +22 -30
- package/CHANGELOG.md +0 -13
- package/dist/constants/menu.d.ts +0 -5
- package/dist/dev.d.ts +0 -1
- package/dist/index.esm.js +0 -5294
- package/dist/index.umd.js +0 -5321
- package/dist/router/index.d.ts +0 -4
- 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/src/constants/menu.ts +0 -31
- package/src/dev.ts +0 -34
- package/src/router/index.ts +0 -40
- 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/typings/translate.d.ts +0 -10
- package/src/views/App.vue +0 -22
- package/src/views/Home.vue +0 -31
- package/src/views/Posts/PostForm/components/TabList/TabList.types.ts +0 -5
- package/src/views/Posts/PostForm/components/TabList/TabList.vue +0 -92
- package/src/views/Posts/PostForm/components/TabList/index.ts +0 -2
|
@@ -1,116 +1,53 @@
|
|
|
1
|
-
import { Nullable } from '@tager/admin-services';
|
|
2
|
-
import { OptionType, TagerFormSubmitEvent, SeoChangeEvent, TabType } from '@tager/admin-ui';
|
|
3
|
-
declare const _default: import("vue").
|
|
4
|
-
isCreation: import("
|
|
5
|
-
isContentLoading: import("
|
|
6
|
-
values: import("
|
|
7
|
-
language: {
|
|
8
|
-
value: string;
|
|
9
|
-
label: string;
|
|
10
|
-
disabled?: boolean | undefined;
|
|
11
|
-
} | null;
|
|
12
|
-
name: string;
|
|
13
|
-
parent: {
|
|
14
|
-
value: Nullable<number>;
|
|
15
|
-
label: string;
|
|
16
|
-
disabled?: boolean | undefined;
|
|
17
|
-
};
|
|
18
|
-
urlAlias: string;
|
|
19
|
-
isDefault: boolean;
|
|
20
|
-
pageTitle: Nullable<string>;
|
|
21
|
-
pageDescription: Nullable<string>;
|
|
22
|
-
pageKeywords: Nullable<string>;
|
|
23
|
-
openGraphTitle: Nullable<string>;
|
|
24
|
-
openGraphDescription: Nullable<string>;
|
|
25
|
-
openGraphImage: {
|
|
26
|
-
id: string;
|
|
27
|
-
file: {
|
|
28
|
-
id: string;
|
|
29
|
-
|
|
30
|
-
name: string;
|
|
31
|
-
size: number;
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
caption?: string |
|
|
35
|
-
} | null;
|
|
36
|
-
}>;
|
|
37
|
-
errors: import("
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}> & {
|
|
55
|
-
[key: string]: unknown;
|
|
56
|
-
}, {}, {}, unknown, {
|
|
57
|
-
[x: string]: any;
|
|
58
|
-
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
61
|
-
isCreation: import("@vue/composition-api").ComputedRef<boolean>;
|
|
62
|
-
isContentLoading: import("@vue/composition-api").ComputedRef<boolean>;
|
|
63
|
-
values: import("@vue/composition-api").Ref<{
|
|
64
|
-
language: {
|
|
65
|
-
value: string;
|
|
66
|
-
label: string;
|
|
67
|
-
disabled?: boolean | undefined;
|
|
68
|
-
} | null;
|
|
69
|
-
name: string;
|
|
70
|
-
parent: {
|
|
71
|
-
value: Nullable<number>;
|
|
72
|
-
label: string;
|
|
73
|
-
disabled?: boolean | undefined;
|
|
74
|
-
};
|
|
75
|
-
urlAlias: string;
|
|
76
|
-
isDefault: boolean;
|
|
77
|
-
pageTitle: Nullable<string>;
|
|
78
|
-
pageDescription: Nullable<string>;
|
|
79
|
-
pageKeywords: Nullable<string>;
|
|
80
|
-
openGraphTitle: Nullable<string>;
|
|
81
|
-
openGraphDescription: Nullable<string>;
|
|
82
|
-
openGraphImage: {
|
|
83
|
-
id: string;
|
|
84
|
-
file: {
|
|
85
|
-
id: string;
|
|
86
|
-
mime: string;
|
|
87
|
-
name: string;
|
|
88
|
-
size: number;
|
|
89
|
-
url: string;
|
|
90
|
-
};
|
|
91
|
-
caption?: string | null | undefined;
|
|
92
|
-
} | null;
|
|
93
|
-
}>;
|
|
94
|
-
errors: import("@vue/composition-api").Ref<{
|
|
95
|
-
[x: string]: string;
|
|
96
|
-
}>;
|
|
97
|
-
isLangSpecific: import("@vue/composition-api").ComputedRef<boolean>;
|
|
98
|
-
languageOptionList: import("@vue/composition-api").ComputedRef<OptionType<string>[]>;
|
|
99
|
-
pagePath: import("@vue/composition-api").ComputedRef<string>;
|
|
100
|
-
categoryListUrl: "/blog/categories";
|
|
101
|
-
submitForm: (event: TagerFormSubmitEvent) => void;
|
|
102
|
-
isSubmitting: import("@vue/composition-api").Ref<boolean>;
|
|
103
|
-
moduleConfig: import("@vue/composition-api").Ref<Nullable<import("../../../typings/model").ModuleConfig>>;
|
|
104
|
-
parentCategoryOptionList: import("@vue/composition-api").ComputedRef<OptionType<Nullable<number>>[]>;
|
|
105
|
-
handleNameChange: (value: string) => void;
|
|
106
|
-
handleAliasChange: () => void;
|
|
107
|
-
imageScenario: import("@vue/composition-api").ComputedRef<Nullable<string>>;
|
|
108
|
-
handleSeoFieldGroupChange: ({ title, description, keywords, image, }: SeoChangeEvent) => void;
|
|
109
|
-
tabList: import("@vue/composition-api").ComputedRef<TabType[]>;
|
|
110
|
-
selectedTabId: import("@vue/composition-api").Ref<string>;
|
|
111
|
-
}>, {
|
|
112
|
-
[x: string]: any;
|
|
113
|
-
}, {}, {}, {
|
|
114
|
-
[x: string]: any;
|
|
115
|
-
}>);
|
|
116
|
-
export default _default;
|
|
1
|
+
import { Nullable } from '@tager/admin-services';
|
|
2
|
+
import { OptionType, TagerFormSubmitEvent, SeoChangeEvent, TabType } from '@tager/admin-ui';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
|
+
isCreation: import("vue").ComputedRef<boolean>;
|
|
5
|
+
isContentLoading: import("vue").ComputedRef<boolean>;
|
|
6
|
+
values: import("vue").Ref<{
|
|
7
|
+
language: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
} | null;
|
|
12
|
+
name: string;
|
|
13
|
+
parent: {
|
|
14
|
+
value: Nullable<number>;
|
|
15
|
+
label: string;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
|
+
};
|
|
18
|
+
urlAlias: string;
|
|
19
|
+
isDefault: boolean;
|
|
20
|
+
pageTitle: Nullable<string>;
|
|
21
|
+
pageDescription: Nullable<string>;
|
|
22
|
+
pageKeywords: Nullable<string>;
|
|
23
|
+
openGraphTitle: Nullable<string>;
|
|
24
|
+
openGraphDescription: Nullable<string>;
|
|
25
|
+
openGraphImage: {
|
|
26
|
+
id: string;
|
|
27
|
+
file: {
|
|
28
|
+
id: string;
|
|
29
|
+
url: string;
|
|
30
|
+
name: string;
|
|
31
|
+
size: number;
|
|
32
|
+
mime: string;
|
|
33
|
+
};
|
|
34
|
+
caption?: Nullable<string> | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
}>;
|
|
37
|
+
errors: import("vue").Ref<Record<string, string>>;
|
|
38
|
+
isLangSpecific: import("vue").ComputedRef<boolean>;
|
|
39
|
+
languageOptionList: import("vue").ComputedRef<OptionType<string>[]>;
|
|
40
|
+
pagePath: import("vue").ComputedRef<string>;
|
|
41
|
+
categoryListUrl: "/blog/categories";
|
|
42
|
+
submitForm: (event: TagerFormSubmitEvent) => void;
|
|
43
|
+
isSubmitting: import("vue").Ref<boolean>;
|
|
44
|
+
moduleConfig: import("vue").Ref<Nullable<import("../../../typings/model").ModuleConfig>>;
|
|
45
|
+
parentCategoryOptionList: import("vue").ComputedRef<OptionType<Nullable<number>>[]>;
|
|
46
|
+
handleNameChange: (value: string) => void;
|
|
47
|
+
handleAliasChange: () => void;
|
|
48
|
+
imageScenario: import("vue").ComputedRef<string | null>;
|
|
49
|
+
handleSeoFieldGroupChange: ({ title, description, keywords, image, }: SeoChangeEvent) => void;
|
|
50
|
+
tabList: import("vue").ComputedRef<TabType[]>;
|
|
51
|
+
selectedTabId: import("vue").Ref<string>;
|
|
52
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
53
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './CategoryForm.vue';
|
|
1
|
+
export { default } from './CategoryForm.vue';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TFunction } from 'i18next';
|
|
2
|
-
import { Nullable } from '@tager/admin-services';
|
|
3
|
-
import { ColumnDefinition } from '@tager/admin-ui';
|
|
4
|
-
import { Category, Language, ModuleConfig } from '../../../typings/model';
|
|
5
|
-
export declare function convertCategoryList(categoryList: Category[], languages: Language[]): Category[];
|
|
6
|
-
export declare function getCategoryTableColumnDefs(moduleConfig: Nullable<ModuleConfig>, t: TFunction): ColumnDefinition<Category>[];
|
|
7
|
-
export declare function getLinkToPostsByCategory(categoryId: number): string;
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { Nullable } from '@tager/admin-services';
|
|
3
|
+
import { ColumnDefinition } from '@tager/admin-ui';
|
|
4
|
+
import { Category, Language, ModuleConfig } from '../../../typings/model';
|
|
5
|
+
export declare function convertCategoryList(categoryList: Category[], languages: Language[]): Category[];
|
|
6
|
+
export declare function getCategoryTableColumnDefs(moduleConfig: Nullable<ModuleConfig>, t: TFunction): ColumnDefinition<Category>[];
|
|
7
|
+
export declare function getLinkToPostsByCategory(categoryId: number): string;
|
|
@@ -1,57 +1,26 @@
|
|
|
1
|
-
import { getBlogCategoryFormUrl } from '../../../
|
|
2
|
-
import { Category } from '../../../typings/model';
|
|
3
|
-
import { getLinkToPostsByCategory } from './CategoryList.helpers';
|
|
4
|
-
declare const _default: import("vue").
|
|
5
|
-
columnDefs: import("
|
|
6
|
-
rowData: import("
|
|
7
|
-
isRowDataLoading: import("
|
|
8
|
-
errorMessage: import("
|
|
9
|
-
isLangSpecific: import("
|
|
10
|
-
handleCategoryDelete: (entityId: string | number) => void;
|
|
11
|
-
isDeleting: (entityId: string | number) => boolean;
|
|
12
|
-
getBlogCategoryFormUrl: typeof getBlogCategoryFormUrl;
|
|
13
|
-
getLinkToPostsByCategory: typeof getLinkToPostsByCategory;
|
|
14
|
-
startMoveCategory: (categoryId: number, direction: 'up' | 'down') => void;
|
|
15
|
-
isCategoryMoving: import("
|
|
16
|
-
searchQuery: import("
|
|
17
|
-
handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
|
|
18
|
-
pageNumber: import("
|
|
19
|
-
pageCount: import("
|
|
20
|
-
pageSize: import("
|
|
21
|
-
languageFilter: import("
|
|
22
|
-
languageOptionList: import("
|
|
23
|
-
tags: import("
|
|
24
|
-
tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}, {}, {}, unknown, {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
30
|
-
[x: string]: any;
|
|
31
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
32
|
-
columnDefs: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").ColumnDefinition<Category>[]>;
|
|
33
|
-
rowData: import("@vue/composition-api").ComputedRef<Category[]>;
|
|
34
|
-
isRowDataLoading: import("@vue/composition-api").ComputedRef<boolean>;
|
|
35
|
-
errorMessage: import("@vue/composition-api").Ref<import("@tager/admin-services").Nullable<string>>;
|
|
36
|
-
isLangSpecific: import("@vue/composition-api").ComputedRef<boolean>;
|
|
37
|
-
handleCategoryDelete: (entityId: string | number) => void;
|
|
38
|
-
isDeleting: (entityId: string | number) => boolean;
|
|
39
|
-
getBlogCategoryFormUrl: typeof getBlogCategoryFormUrl;
|
|
40
|
-
getLinkToPostsByCategory: typeof getLinkToPostsByCategory;
|
|
41
|
-
startMoveCategory: (categoryId: number, direction: 'up' | 'down') => void;
|
|
42
|
-
isCategoryMoving: import("@vue/composition-api").Ref<boolean>;
|
|
43
|
-
searchQuery: import("@vue/composition-api").Ref<string>;
|
|
44
|
-
handleChange: (event: import("@tager/admin-ui").TableChangeEvent) => void;
|
|
45
|
-
pageNumber: import("@vue/composition-api").Ref<number>;
|
|
46
|
-
pageCount: import("@vue/composition-api").ComputedRef<number>;
|
|
47
|
-
pageSize: import("@vue/composition-api").Ref<number>;
|
|
48
|
-
languageFilter: import("@vue/composition-api").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
49
|
-
languageOptionList: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
50
|
-
tags: import("@vue/composition-api").ComputedRef<import("@tager/admin-ui").FilterTagType[]>;
|
|
51
|
-
tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
|
|
52
|
-
}>, {
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
}, {}, {}, {
|
|
55
|
-
[x: string]: any;
|
|
56
|
-
}>);
|
|
57
|
-
export default _default;
|
|
1
|
+
import { getBlogCategoryFormUrl } from '../../../utils/paths';
|
|
2
|
+
import { Category } from '../../../typings/model';
|
|
3
|
+
import { getLinkToPostsByCategory } from './CategoryList.helpers';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
|
+
columnDefs: import("vue").ComputedRef<import("@tager/admin-ui").ColumnDefinition<Category>[]>;
|
|
6
|
+
rowData: import("vue").ComputedRef<Category[]>;
|
|
7
|
+
isRowDataLoading: import("vue").ComputedRef<boolean>;
|
|
8
|
+
errorMessage: import("vue").Ref<import("@tager/admin-services").Nullable<string>>;
|
|
9
|
+
isLangSpecific: import("vue").ComputedRef<boolean>;
|
|
10
|
+
handleCategoryDelete: (entityId: string | number) => void;
|
|
11
|
+
isDeleting: (entityId: string | number) => boolean;
|
|
12
|
+
getBlogCategoryFormUrl: typeof getBlogCategoryFormUrl;
|
|
13
|
+
getLinkToPostsByCategory: typeof getLinkToPostsByCategory;
|
|
14
|
+
startMoveCategory: (categoryId: number, direction: 'up' | 'down') => void;
|
|
15
|
+
isCategoryMoving: import("vue").Ref<boolean>;
|
|
16
|
+
searchQuery: import("vue").Ref<string>;
|
|
17
|
+
handleChange: (event: import("@tager/admin-ui/dist/components/DataTable/DataTable.types").TableChangeEvent) => void;
|
|
18
|
+
pageNumber: import("vue").Ref<number>;
|
|
19
|
+
pageCount: import("vue").ComputedRef<number>;
|
|
20
|
+
pageSize: import("vue").Ref<number>;
|
|
21
|
+
languageFilter: import("vue").Ref<import("@tager/admin-ui").OptionType<string>[]>;
|
|
22
|
+
languageOptionList: import("vue").ComputedRef<import("@tager/admin-ui").OptionType<string>[]>;
|
|
23
|
+
tags: import("vue").ComputedRef<import("@tager/admin-ui").FilterTagType[]>;
|
|
24
|
+
tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
26
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useAdvancedSearch } from './useAdvancedSearch';
|
|
1
|
+
export { useAdvancedSearch } from './useAdvancedSearch';
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { ComputedRef, Ref
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
|
+
import { FilterTagType, OptionType } from '@tager/admin-ui';
|
|
5
|
+
import { Language } from '../../../../typings/model';
|
|
6
|
+
interface Params {
|
|
7
|
+
t: TFunction;
|
|
8
|
+
languageList: ComputedRef<Language[]>;
|
|
9
|
+
route: RouteLocationNormalizedLoaded;
|
|
10
|
+
}
|
|
11
|
+
interface State {
|
|
12
|
+
languageFilter: Ref<OptionType[]>;
|
|
13
|
+
languageOptionList: ComputedRef<OptionType[]>;
|
|
14
|
+
filterParams: ComputedRef<Record<string, string | string[]>>;
|
|
15
|
+
tags: ComputedRef<FilterTagType[]>;
|
|
16
|
+
tagRemovalHandler(event: FilterTagType): void;
|
|
17
|
+
}
|
|
18
|
+
export declare function useAdvancedSearch({ languageList, route, t }: Params): State;
|
|
19
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './CategoryList.vue';
|
|
1
|
+
export { default } from './CategoryList.vue';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { TFunction } from 'i18next';
|
|
2
|
-
import { Nullable } from '@tager/admin-services';
|
|
3
|
-
import { OptionType, SingleFileInputValueType } from '@tager/admin-ui';
|
|
4
|
-
import { FieldConfigUnion, FieldUnion } from '@tager/admin-dynamic-field';
|
|
5
|
-
import { PostCreationPayload, PostUpdatePayload } from '../../../services/requests';
|
|
6
|
-
import { Category, PostFull } from '../../../typings/model';
|
|
7
|
-
export declare const getStatusOptions: (t: TFunction) => OptionType[];
|
|
8
|
-
export interface FormValues {
|
|
9
|
-
title: string;
|
|
10
|
-
excerpt: string;
|
|
11
|
-
body: string;
|
|
12
|
-
datetime: string;
|
|
13
|
-
coverImage: Nullable<SingleFileInputValueType>;
|
|
14
|
-
image: Nullable<SingleFileInputValueType>;
|
|
15
|
-
imageMobile: Nullable<SingleFileInputValueType>;
|
|
16
|
-
pageTitle: string;
|
|
17
|
-
pageDescription: string;
|
|
18
|
-
openGraphImage: Nullable<SingleFileInputValueType>;
|
|
19
|
-
urlAlias: string;
|
|
20
|
-
categories: OptionType<number>[];
|
|
21
|
-
language: Nullable<OptionType>;
|
|
22
|
-
relatedPosts: OptionType<number>[];
|
|
23
|
-
tags: string;
|
|
24
|
-
additionalFields: FieldUnion[];
|
|
25
|
-
status: OptionType;
|
|
26
|
-
statusDateEnabled: boolean;
|
|
27
|
-
statusDate: Nullable<string>;
|
|
28
|
-
}
|
|
29
|
-
export declare function convertPostToFormValues(post: Nullable<PostFull>, languageOptionList: OptionType[], postOptionList: OptionType<number>[], additionalFieldList: FieldConfigUnion[], statusOptions: OptionType[]): FormValues;
|
|
30
|
-
export declare function convertFormValuesToCreationPayload(values: FormValues): PostCreationPayload;
|
|
31
|
-
export declare function convertFormValuesToUpdatePayload(values: FormValues): PostUpdatePayload;
|
|
32
|
-
export declare function convertCategoryListToOptions(categoryList: Category[], languageId: Nullable<string>): OptionType<number>[];
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { Nullable } from '@tager/admin-services';
|
|
3
|
+
import { OptionType, SingleFileInputValueType } from '@tager/admin-ui';
|
|
4
|
+
import { FieldConfigUnion, FieldUnion } from '@tager/admin-dynamic-field';
|
|
5
|
+
import { PostCreationPayload, PostUpdatePayload } from '../../../services/requests';
|
|
6
|
+
import { Category, PostFull } from '../../../typings/model';
|
|
7
|
+
export declare const getStatusOptions: (t: TFunction) => OptionType[];
|
|
8
|
+
export interface FormValues {
|
|
9
|
+
title: string;
|
|
10
|
+
excerpt: string;
|
|
11
|
+
body: string;
|
|
12
|
+
datetime: string;
|
|
13
|
+
coverImage: Nullable<SingleFileInputValueType>;
|
|
14
|
+
image: Nullable<SingleFileInputValueType>;
|
|
15
|
+
imageMobile: Nullable<SingleFileInputValueType>;
|
|
16
|
+
pageTitle: string;
|
|
17
|
+
pageDescription: string;
|
|
18
|
+
openGraphImage: Nullable<SingleFileInputValueType>;
|
|
19
|
+
urlAlias: string;
|
|
20
|
+
categories: OptionType<number>[];
|
|
21
|
+
language: Nullable<OptionType>;
|
|
22
|
+
relatedPosts: OptionType<number>[];
|
|
23
|
+
tags: string;
|
|
24
|
+
additionalFields: FieldUnion[];
|
|
25
|
+
status: OptionType;
|
|
26
|
+
statusDateEnabled: boolean;
|
|
27
|
+
statusDate: Nullable<string>;
|
|
28
|
+
}
|
|
29
|
+
export declare function convertPostToFormValues(post: Nullable<PostFull>, languageOptionList: OptionType[], postOptionList: OptionType<number>[], additionalFieldList: FieldConfigUnion[], statusOptions: OptionType[]): FormValues;
|
|
30
|
+
export declare function convertFormValuesToCreationPayload(values: FormValues): PostCreationPayload;
|
|
31
|
+
export declare function convertFormValuesToUpdatePayload(values: FormValues): PostUpdatePayload;
|
|
32
|
+
export declare function convertCategoryListToOptions(categoryList: Category[], languageId: Nullable<string>): OptionType<number>[];
|