@pronto-tools-and-more/components 6.20.0 → 6.23.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./parts/Components/Components.tsx";
package/dist/main.js ADDED
@@ -0,0 +1,201 @@
1
+ // src/parts/JsonComponent/JsonComponent.tsx
2
+ var JsonComponent = ({ json }) => {
3
+ const node = json;
4
+ return node;
5
+ };
6
+
7
+ // src/parts/Link/Link.tsx
8
+ var Link = () => {
9
+ const json = {};
10
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
11
+ };
12
+
13
+ // src/parts/Login/Login.tsx
14
+ var Login = () => {
15
+ const json = {
16
+ type: "login"
17
+ };
18
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
19
+ };
20
+
21
+ // src/parts/MenuItems/MenuItems.tsx
22
+ var MenuItems = ({ menuName }) => {
23
+ const json = {
24
+ dataSource: {
25
+ type: "menu",
26
+ filter: {
27
+ name: {
28
+ value: menuName
29
+ }
30
+ }
31
+ },
32
+ type: "menu",
33
+ template: "STATIC"
34
+ };
35
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
36
+ };
37
+
38
+ // src/parts/PostContentBody/PostContentBody.tsx
39
+ var PostContentBody = () => {
40
+ const json = {
41
+ type: "content-body",
42
+ id: "post-content-body",
43
+ customBlocks: [],
44
+ class: ["post-content-service"],
45
+ dataSource: {
46
+ type: "content",
47
+ preventSSRCache: true,
48
+ filter: {
49
+ id: {
50
+ value: "$context.content.id"
51
+ }
52
+ }
53
+ },
54
+ isLazy: false
55
+ };
56
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
57
+ };
58
+
59
+ // src/parts/SearchField/SearchField.tsx
60
+ var SearchField = () => {
61
+ const json = {
62
+ type: "search-field",
63
+ className: "searchfield",
64
+ key: ""
65
+ };
66
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
67
+ };
68
+
69
+ // src/parts/SearchLink/SearchLink.tsx
70
+ var SearchLink = () => {
71
+ const json = {
72
+ type: "button",
73
+ tap: {
74
+ type: "navigate",
75
+ path: "suche"
76
+ },
77
+ buttonClass: "search",
78
+ id: "button-search"
79
+ };
80
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
81
+ };
82
+
83
+ // src/parts/SearchResults/SearchResults.tsx
84
+ var SearchResults = () => {
85
+ const json = {
86
+ content: {
87
+ type: "search-result",
88
+ pageHitExcerptMessage: "test",
89
+ coverHeight: "FIXED",
90
+ tapPageHit: {
91
+ type: "openContent"
92
+ },
93
+ tapCover: {
94
+ type: "openContent"
95
+ },
96
+ class: "issue-card issue-card--overline-in-page-hit-excerpt-message",
97
+ template: "feed",
98
+ renderProperties: ["authors"]
99
+ },
100
+ dataSource: {
101
+ phrase: "$context.phrase",
102
+ type: "search-result",
103
+ filter: {
104
+ AND: [
105
+ {
106
+ OR: [
107
+ {
108
+ contentType: {
109
+ value: "POST"
110
+ }
111
+ },
112
+ {
113
+ contentType: {
114
+ value: "BUNDLE"
115
+ }
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ postType: {
121
+ value: "post"
122
+ }
123
+ },
124
+ {
125
+ condition: {
126
+ value: "$context.issue-age",
127
+ compareValue: "day"
128
+ },
129
+ age: {
130
+ count: 1,
131
+ unit: "DAY"
132
+ }
133
+ },
134
+ {
135
+ condition: {
136
+ value: "$context.issue-age",
137
+ compareValue: "week"
138
+ },
139
+ age: {
140
+ count: 1,
141
+ unit: "WEEK"
142
+ }
143
+ },
144
+ {
145
+ condition: {
146
+ value: "$context.issue-age",
147
+ compareValue: "month"
148
+ },
149
+ age: {
150
+ count: 1,
151
+ unit: "MONTH"
152
+ }
153
+ },
154
+ {
155
+ condition: {
156
+ value: "$context.issue-age",
157
+ compareValue: "year"
158
+ },
159
+ age: {
160
+ count: 1,
161
+ unit: "YEAR"
162
+ }
163
+ }
164
+ ]
165
+ },
166
+ contextKey: "searchResults",
167
+ searchOptions: {
168
+ sortBy: "PUB_DATE_DESC",
169
+ findAll: true
170
+ },
171
+ limitCharactersBeforeHit: 70,
172
+ legacyMode: {
173
+ mapPostToIssue: true,
174
+ unwrapBundles: true
175
+ }
176
+ },
177
+ type: "list",
178
+ class: "schlauch-section",
179
+ emptyMessage: {
180
+ message: "SEARCH_RESULT_NO_RESULT",
181
+ variables: ["$context.phrase"]
182
+ },
183
+ errorMessage: "SEARCH_ERROR",
184
+ errorButtonLabel: "SEARCH_ERROR_RETRY",
185
+ template: "grid",
186
+ tapEntry: {
187
+ type: "openContent"
188
+ }
189
+ };
190
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
191
+ };
192
+ export {
193
+ JsonComponent,
194
+ Link,
195
+ Login,
196
+ MenuItems,
197
+ PostContentBody,
198
+ SearchField,
199
+ SearchLink,
200
+ SearchResults
201
+ };
@@ -0,0 +1 @@
1
+ export declare const AppBar: () => import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const Button: ({ message }: {
2
+ message: string;
3
+ }) => {
4
+ type: string;
5
+ message: string;
6
+ tap: {
7
+ type: string;
8
+ path: string;
9
+ };
10
+ };
@@ -0,0 +1,8 @@
1
+ export * from "../JsonComponent/JsonComponent.tsx";
2
+ export * from "../Link/Link.tsx";
3
+ export * from "../Login/Login.tsx";
4
+ export * from "../MenuItems/MenuItems.tsx";
5
+ export * from "../PostContentBody/PostContentBody.tsx";
6
+ export * from "../SearchField/SearchField.tsx";
7
+ export * from "../SearchLink/SearchLink.tsx";
8
+ export * from "../SearchResults/SearchResults.tsx";
@@ -0,0 +1,24 @@
1
+ export declare const EPapers: () => {
2
+ content: {
3
+ type: string;
4
+ descriptionMessage: string;
5
+ customMessages: never[];
6
+ tapCover: {
7
+ type: string;
8
+ mode: string;
9
+ titleBar: boolean;
10
+ };
11
+ };
12
+ dataSource: {
13
+ type: string;
14
+ sort: {
15
+ publicationDate: {
16
+ direction: string;
17
+ };
18
+ }[];
19
+ batchSize: number;
20
+ };
21
+ type: string;
22
+ class: string;
23
+ template: string;
24
+ };
@@ -0,0 +1 @@
1
+ export declare const Home: () => import("react").JSX.Element;
@@ -0,0 +1,27 @@
1
+ export declare const IssueList: () => {
2
+ content: {
3
+ type: string;
4
+ template: string;
5
+ downloadOptions: {
6
+ buttonType: string;
7
+ progressType: string;
8
+ };
9
+ openContent: {};
10
+ tapCover: {
11
+ type: string;
12
+ mode: string;
13
+ titleBar: boolean;
14
+ };
15
+ };
16
+ dataSource: {
17
+ type: string;
18
+ sort: {
19
+ publicationDate: {
20
+ direction: string;
21
+ };
22
+ }[];
23
+ limit: number;
24
+ };
25
+ type: string;
26
+ template: string;
27
+ };
@@ -0,0 +1,4 @@
1
+ import type React from "react";
2
+ export declare const JsonComponent: ({ json }: {
3
+ json: any;
4
+ }) => React.ReactElement;
@@ -0,0 +1 @@
1
+ export declare const Link: () => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type React from "react";
2
+ export declare const Login: () => React.ReactNode;
@@ -0,0 +1 @@
1
+ export * from "../Components/Components.tsx";
@@ -0,0 +1,3 @@
1
+ export declare const MenuItems: ({ menuName }: {
2
+ menuName: string;
3
+ }) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ export declare const MostRead: ({ limit }: {
2
+ limit?: number | undefined;
3
+ }) => {
4
+ content: {
5
+ type: string;
6
+ issueContextKey: string;
7
+ template: string;
8
+ descriptionMessage: string;
9
+ class: string;
10
+ hideComponents: {
11
+ publication: boolean;
12
+ tags: boolean;
13
+ categories: boolean;
14
+ publicationDate: boolean;
15
+ cover: boolean;
16
+ properties: boolean;
17
+ description: boolean;
18
+ };
19
+ };
20
+ dataSource: {
21
+ type: string;
22
+ filter: {
23
+ AND: ({
24
+ contentType: {
25
+ value: string;
26
+ };
27
+ postType?: undefined;
28
+ } | {
29
+ postType: {
30
+ value: string;
31
+ };
32
+ contentType?: undefined;
33
+ })[];
34
+ };
35
+ limit: number;
36
+ };
37
+ type: string;
38
+ tapEntry: {
39
+ type: string;
40
+ };
41
+ };
@@ -0,0 +1 @@
1
+ export declare const NoSearchResults: () => import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export * from "../AppBar/AppBar.tsx";
2
+ export * from "../Button/Button.tsx";
3
+ export * from "../EPapers/EPapers.tsx";
4
+ export * from "../Home/Home.tsx";
5
+ export * from "../IssueList/IssueList.tsx";
6
+ export * from "../Login/Login.tsx";
7
+ export * from "../MostRead/MostRead.tsx";
8
+ export * from "../NoSearchResults/NoSearchResults.tsx";
9
+ export * from "../SearchField/SearchField.tsx";
10
+ export * from "../Swiper/Swiper.tsx";
@@ -0,0 +1 @@
1
+ export declare const PostContentBody: () => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare const React: {
2
+ createElement(tag: any, props: any, children: any): {
3
+ tag: any;
4
+ props: any;
5
+ children: any;
6
+ };
7
+ };
@@ -0,0 +1,2 @@
1
+ import type React from "react";
2
+ export declare const SearchField: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export declare const SearchLink: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SearchResults: () => import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const Swiper: () => {
2
+ type: string;
3
+ effect: string;
4
+ loop: boolean;
5
+ pagination: boolean;
6
+ centeredSlides: boolean;
7
+ param: string;
8
+ paramScope: string;
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.20.0",
3
+ "version": "6.23.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,4 +1,8 @@
1
1
  export * from "../JsonComponent/JsonComponent.tsx";
2
+ export * from "../Link/Link.tsx";
2
3
  export * from "../Login/Login.tsx";
3
4
  export * from "../MenuItems/MenuItems.tsx";
5
+ export * from "../PostContentBody/PostContentBody.tsx";
4
6
  export * from "../SearchField/SearchField.tsx";
7
+ export * from "../SearchLink/SearchLink.tsx";
8
+ export * from "../SearchResults/SearchResults.tsx";
@@ -0,0 +1,6 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const Link = () => {
4
+ const json = {};
5
+ return <JsonComponent json={json} />;
6
+ };
@@ -0,0 +1,21 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const PostContentBody = () => {
4
+ const json = {
5
+ type: "content-body",
6
+ id: "post-content-body",
7
+ customBlocks: [],
8
+ class: ["post-content-service"],
9
+ dataSource: {
10
+ type: "content",
11
+ preventSSRCache: true,
12
+ filter: {
13
+ id: {
14
+ value: "$context.content.id",
15
+ },
16
+ },
17
+ },
18
+ isLazy: false,
19
+ };
20
+ return <JsonComponent json={json} />;
21
+ };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
3
3
 
4
4
  export const SearchField = (): React.ReactElement => {
@@ -0,0 +1,14 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const SearchLink = () => {
4
+ const json = {
5
+ type: "button",
6
+ tap: {
7
+ type: "navigate",
8
+ path: "suche",
9
+ },
10
+ buttonClass: "search",
11
+ id: "button-search",
12
+ };
13
+ return <JsonComponent json={json} />;
14
+ };
@@ -0,0 +1,110 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const SearchResults = () => {
4
+ const json = {
5
+ content: {
6
+ type: "search-result",
7
+ pageHitExcerptMessage: "test",
8
+ coverHeight: "FIXED",
9
+ tapPageHit: {
10
+ type: "openContent",
11
+ },
12
+ tapCover: {
13
+ type: "openContent",
14
+ },
15
+ class: "issue-card issue-card--overline-in-page-hit-excerpt-message",
16
+ template: "feed",
17
+ renderProperties: ["authors"],
18
+ },
19
+ dataSource: {
20
+ phrase: "$context.phrase",
21
+ type: "search-result",
22
+ filter: {
23
+ AND: [
24
+ {
25
+ OR: [
26
+ {
27
+ contentType: {
28
+ value: "POST",
29
+ },
30
+ },
31
+ {
32
+ contentType: {
33
+ value: "BUNDLE",
34
+ },
35
+ },
36
+ ],
37
+ },
38
+ {
39
+ postType: {
40
+ value: "post",
41
+ },
42
+ },
43
+ {
44
+ condition: {
45
+ value: "$context.issue-age",
46
+ compareValue: "day",
47
+ },
48
+ age: {
49
+ count: 1,
50
+ unit: "DAY",
51
+ },
52
+ },
53
+ {
54
+ condition: {
55
+ value: "$context.issue-age",
56
+ compareValue: "week",
57
+ },
58
+ age: {
59
+ count: 1,
60
+ unit: "WEEK",
61
+ },
62
+ },
63
+ {
64
+ condition: {
65
+ value: "$context.issue-age",
66
+ compareValue: "month",
67
+ },
68
+ age: {
69
+ count: 1,
70
+ unit: "MONTH",
71
+ },
72
+ },
73
+ {
74
+ condition: {
75
+ value: "$context.issue-age",
76
+ compareValue: "year",
77
+ },
78
+ age: {
79
+ count: 1,
80
+ unit: "YEAR",
81
+ },
82
+ },
83
+ ],
84
+ },
85
+ contextKey: "searchResults",
86
+ searchOptions: {
87
+ sortBy: "PUB_DATE_DESC",
88
+ findAll: true,
89
+ },
90
+ limitCharactersBeforeHit: 70,
91
+ legacyMode: {
92
+ mapPostToIssue: true,
93
+ unwrapBundles: true,
94
+ },
95
+ },
96
+ type: "list",
97
+ class: "schlauch-section",
98
+ emptyMessage: {
99
+ message: "SEARCH_RESULT_NO_RESULT",
100
+ variables: ["$context.phrase"],
101
+ },
102
+ errorMessage: "SEARCH_ERROR",
103
+ errorButtonLabel: "SEARCH_ERROR_RETRY",
104
+ template: "grid",
105
+ tapEntry: {
106
+ type: "openContent",
107
+ },
108
+ };
109
+ return <JsonComponent json={json} />;
110
+ };