@pronto-tools-and-more/components 5.3.3
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/package.json +18 -0
 - package/src/main.ts +3 -0
 - package/src/parts/AppBar/AppBar.tsx +3 -0
 - package/src/parts/Button/Button.tsx +10 -0
 - package/src/parts/EPapers/EPapers.tsx +28 -0
 - package/src/parts/Home/Home.tsx +9 -0
 - package/src/parts/IssueList/IssueList.tsx +31 -0
 - package/src/parts/Login/Login.tsx +5 -0
 - package/src/parts/Main/Main.tsx +1 -0
 - package/src/parts/MostRead/MostRead.tsx +42 -0
 - package/src/parts/NoSearchResults/NoSearchResults.tsx +12 -0
 - package/src/parts/Parts/Parts.tsx +10 -0
 - package/src/parts/React/React.tsx +9 -0
 - package/src/parts/SearchField/SearchField.tsx +6 -0
 - package/src/parts/Swiper/Swiper.tsx +11 -0
 
    
        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,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,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 @@ 
     | 
|
| 
      
 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,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";
         
     |