@creopse/vue 0.0.53 → 0.0.54
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.cjs +9 -9
- package/dist/index.js +11 -11
- package/dist/index.mjs +1375 -1360
- package/package.json +2 -2
- package/types/composables/content.d.ts +1 -0
- package/types/core/props-manager.d.ts +65 -0
- package/types/types/content.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creopse/vue",
|
|
3
3
|
"description": "Creopse Vue Toolkit",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.54",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Noé Gnanih <noegnanih@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vue": "^3.5.17"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@creopse/utils": "^0.0.
|
|
40
|
+
"@creopse/utils": "^0.0.15",
|
|
41
41
|
"@vueuse/core": "^14.1.0",
|
|
42
42
|
"axios": "^1.13.2",
|
|
43
43
|
"lodash.clonedeep": "^4.5.0",
|
|
@@ -35,6 +35,7 @@ export declare const useContent: () => {
|
|
|
35
35
|
getSectionSetting: (key: string | null | undefined, group: string, name: string) => object | any | null;
|
|
36
36
|
getAnySectionData: (sectionSlug: string, pageSlug: string, linkId?: string) => Promise<any>;
|
|
37
37
|
getSectionRootData: (key?: string) => any;
|
|
38
|
+
getContentPath: (name: "news-article" | "news-category" | "news-tag" | string, item: ContentModelItemModel | any) => string;
|
|
38
39
|
getContentModel: (name: string) => ContentModelModel | undefined;
|
|
39
40
|
getContentModelItems: (name: string, filterByIsActive?: boolean) => Promise<ContentModelItemModel[]>;
|
|
40
41
|
getPaginatedContentModelItems: (name: string, page: number, pageSize: number, filterByIsActive?: boolean, query?: string, dataFilters?: DataFilter[]) => Promise<PaginatedContentModelItems>;
|
|
@@ -4737,6 +4737,71 @@ declare class PropsManager<T extends Props = Props> {
|
|
|
4737
4737
|
readonly adsCount?: number | undefined;
|
|
4738
4738
|
} | undefined;
|
|
4739
4739
|
}[] | undefined;
|
|
4740
|
+
readonly permalinks?: readonly {
|
|
4741
|
+
readonly id?: number | undefined;
|
|
4742
|
+
readonly pathPrefix: string;
|
|
4743
|
+
readonly contentType?: (import("@creopse/utils").PermalinkContentType | null) | undefined;
|
|
4744
|
+
readonly contentParam?: string | null | undefined;
|
|
4745
|
+
readonly contentId?: number | null | undefined;
|
|
4746
|
+
readonly pageId?: number | null | undefined;
|
|
4747
|
+
readonly createdAt?: string | undefined;
|
|
4748
|
+
readonly updatedAt?: string | undefined;
|
|
4749
|
+
readonly page?: {
|
|
4750
|
+
readonly name: string;
|
|
4751
|
+
readonly title: string;
|
|
4752
|
+
readonly slug: string;
|
|
4753
|
+
readonly position: number;
|
|
4754
|
+
readonly content: string | null;
|
|
4755
|
+
readonly sectionsOrder?: readonly string[] | null | undefined;
|
|
4756
|
+
readonly sectionsDisabled?: readonly string[] | null | undefined;
|
|
4757
|
+
readonly sections?: readonly {
|
|
4758
|
+
readonly id?: number | undefined;
|
|
4759
|
+
readonly name: string;
|
|
4760
|
+
readonly title: string;
|
|
4761
|
+
readonly slug: string;
|
|
4762
|
+
readonly content?: string | null | undefined;
|
|
4763
|
+
readonly dataStructure?: any | null;
|
|
4764
|
+
readonly settingsStructure?: any | null;
|
|
4765
|
+
readonly createdAt?: string | undefined;
|
|
4766
|
+
readonly updatedAt?: string | undefined;
|
|
4767
|
+
readonly pages?: readonly /*elided*/ any[] | undefined;
|
|
4768
|
+
readonly pagesCount?: number | undefined;
|
|
4769
|
+
readonly pivot?: {
|
|
4770
|
+
readonly pageId?: number | undefined;
|
|
4771
|
+
readonly sectionId?: number | undefined;
|
|
4772
|
+
readonly dataSourceLinkId?: string | null | undefined;
|
|
4773
|
+
readonly dataSourcePageId?: number | null | undefined;
|
|
4774
|
+
readonly dataSourcePageTitle?: string | null | undefined;
|
|
4775
|
+
readonly linkId?: string | null | undefined;
|
|
4776
|
+
readonly data?: any;
|
|
4777
|
+
readonly settings?: any;
|
|
4778
|
+
readonly createdAt?: string | undefined;
|
|
4779
|
+
readonly updatedAt?: string | undefined;
|
|
4780
|
+
} | undefined;
|
|
4781
|
+
}[] | undefined;
|
|
4782
|
+
readonly id?: number | undefined;
|
|
4783
|
+
readonly createdAt?: string | undefined;
|
|
4784
|
+
readonly updatedAt?: string | undefined;
|
|
4785
|
+
readonly pivot?: {
|
|
4786
|
+
readonly pageId?: number | undefined;
|
|
4787
|
+
readonly sectionId?: number | undefined;
|
|
4788
|
+
readonly dataSourceLinkId?: string | null | undefined;
|
|
4789
|
+
readonly dataSourcePageId?: number | null | undefined;
|
|
4790
|
+
readonly dataSourcePageTitle?: string | null | undefined;
|
|
4791
|
+
readonly linkId?: string | null | undefined;
|
|
4792
|
+
readonly data?: any;
|
|
4793
|
+
readonly settings?: any;
|
|
4794
|
+
readonly createdAt?: string | undefined;
|
|
4795
|
+
readonly updatedAt?: string | undefined;
|
|
4796
|
+
} | undefined;
|
|
4797
|
+
} | undefined;
|
|
4798
|
+
readonly content?: {
|
|
4799
|
+
readonly id: number;
|
|
4800
|
+
readonly slug?: string | undefined;
|
|
4801
|
+
readonly name?: string | undefined;
|
|
4802
|
+
readonly title?: string | undefined;
|
|
4803
|
+
} | undefined;
|
|
4804
|
+
}[] | undefined;
|
|
4740
4805
|
readonly query?: string | undefined;
|
|
4741
4806
|
readonly data?: any;
|
|
4742
4807
|
readonly youtubeChannelId?: string | undefined;
|
package/types/types/content.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ContentModelItemModel } from '@creopse/utils';
|
|
|
2
2
|
export type DataFilter = {
|
|
3
3
|
key: string;
|
|
4
4
|
value: string;
|
|
5
|
-
operator?: '=' | '!=' | '>' | '>=' | '<' | '<=' | 'like';
|
|
5
|
+
operator?: '=' | '!=' | '>' | '>=' | '<' | '<=' | 'like' | 'json_contains';
|
|
6
6
|
};
|
|
7
7
|
export interface PaginatedContentModelItems {
|
|
8
8
|
items: ContentModelItemModel[];
|