@pronto-tools-and-more/components 5.3.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@pronto-tools-and-more/components",
3
+ "version": "5.3.3",
4
+ "description": "",
5
+ "main": "src/main.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo ok",
9
+ "type-check": "tsc"
10
+ },
11
+ "keywords": [],
12
+ "author": "",
13
+ "license": "MIT",
14
+ "devDependencies": {
15
+ "@types/node": "^22.5.0",
16
+ "@types/react": "^18.3.4"
17
+ }
18
+ }
package/src/main.ts ADDED
@@ -0,0 +1,3 @@
1
+ import * as Main from "./parts/Main/Main.tsx";
2
+
3
+ Main.main();
@@ -0,0 +1,3 @@
1
+ export const AppBar = () => {
2
+ return <div className="AppBar">hello from appbar</div>;
3
+ };
@@ -0,0 +1,10 @@
1
+ export const Button = ({ message }: { message: string }) => {
2
+ return {
3
+ type: "button",
4
+ message,
5
+ tap: {
6
+ type: "navigate",
7
+ path: "epaper",
8
+ },
9
+ };
10
+ };
@@ -0,0 +1,28 @@
1
+ export const EPapers = () => {
2
+ return {
3
+ content: {
4
+ type: "issue",
5
+ descriptionMessage: "",
6
+ customMessages: [],
7
+ tapCover: {
8
+ type: "openContent",
9
+ mode: "MODAL",
10
+ titleBar: true,
11
+ },
12
+ },
13
+ dataSource: {
14
+ type: "issue",
15
+ sort: [
16
+ {
17
+ publicationDate: {
18
+ direction: "ASC",
19
+ },
20
+ },
21
+ ],
22
+ batchSize: 12,
23
+ },
24
+ type: "list",
25
+ class: "epaper-issues",
26
+ template: "grid",
27
+ };
28
+ };
@@ -0,0 +1,9 @@
1
+ import { AppBar } from "../AppBar/AppBar.tsx";
2
+
3
+ export const Home = () => {
4
+ return (
5
+ <div>
6
+ <AppBar />
7
+ </div>
8
+ );
9
+ };
@@ -0,0 +1,31 @@
1
+ export const IssueList = () => {
2
+ return {
3
+ content: {
4
+ type: "issue",
5
+ template: "cover",
6
+ downloadOptions: {
7
+ buttonType: "SINGLE",
8
+ progressType: "RADIAL",
9
+ },
10
+ openContent: {},
11
+ tapCover: {
12
+ type: "openContent",
13
+ mode: "MODAL",
14
+ titleBar: true,
15
+ },
16
+ },
17
+ dataSource: {
18
+ type: "issue",
19
+ sort: [
20
+ {
21
+ publicationDate: {
22
+ direction: "DESC",
23
+ },
24
+ },
25
+ ],
26
+ limit: 3,
27
+ },
28
+ type: "list",
29
+ template: "horizontal",
30
+ };
31
+ };
@@ -0,0 +1,5 @@
1
+ export const Login = () => {
2
+ return {
3
+ type: "login",
4
+ };
5
+ };
@@ -0,0 +1 @@
1
+ export const main = () => {};
@@ -0,0 +1,42 @@
1
+ export const MostRead = ({ limit = 3 }) => {
2
+ return {
3
+ content: {
4
+ type: "issue",
5
+ issueContextKey: "content",
6
+ template: "details",
7
+ descriptionMessage: "",
8
+ class: "issue-card",
9
+ hideComponents: {
10
+ publication: true,
11
+ tags: true,
12
+ categories: true,
13
+ publicationDate: true,
14
+ cover: true,
15
+ properties: true,
16
+ description: false,
17
+ },
18
+ },
19
+ dataSource: {
20
+ type: "content",
21
+ filter: {
22
+ AND: [
23
+ {
24
+ contentType: {
25
+ value: "POST",
26
+ },
27
+ },
28
+ {
29
+ postType: {
30
+ value: "post",
31
+ },
32
+ },
33
+ ],
34
+ },
35
+ limit,
36
+ },
37
+ type: "list",
38
+ tapEntry: {
39
+ type: "openContent",
40
+ },
41
+ };
42
+ };
@@ -0,0 +1,12 @@
1
+ export const NoSearchResults = () => {
2
+ return {
3
+ tag: "p",
4
+ type: "html",
5
+ content: "SEARCH_RESULT_NO_SEARCH",
6
+ class: "no-search",
7
+ condition: {
8
+ value: "$context.phrase",
9
+ operation: "NOT_SET",
10
+ },
11
+ };
12
+ };
@@ -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,9 @@
1
+ export const React = {
2
+ createElement(tag, props, children) {
3
+ return {
4
+ tag,
5
+ props,
6
+ children,
7
+ };
8
+ },
9
+ };
@@ -0,0 +1,6 @@
1
+ export const SearchField = () => {
2
+ return {
3
+ type: "search-field",
4
+ className: "searchfield",
5
+ };
6
+ };
@@ -0,0 +1,11 @@
1
+ export const Swiper = () => {
2
+ return {
3
+ type: "swiper",
4
+ effect: "slide",
5
+ loop: false,
6
+ pagination: false,
7
+ centeredSlides: false,
8
+ param: "$context.embeddedParams.swiperIndex",
9
+ paramScope: "USER_ATTRIBUTE",
10
+ };
11
+ };