@aiconomy/aico-components 0.0.78 → 0.0.95

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.
Files changed (68) hide show
  1. package/README.md +50 -36
  2. package/dist/aico-components/aico-components.esm.js +1 -1
  3. package/dist/aico-components/p-59bfd021.js +2 -0
  4. package/dist/aico-components/p-59bfd021.js.map +1 -0
  5. package/dist/aico-components/{p-368503ee.entry.js → p-7ea04e72.entry.js} +2 -2
  6. package/dist/aico-components/{p-7e0074f7.entry.js → p-80cb133a.entry.js} +2 -2
  7. package/dist/aico-components/{p-c9eea1b1.entry.js → p-918b9928.entry.js} +2 -2
  8. package/dist/aico-components/{p-bccf08d0.entry.js → p-c900f292.entry.js} +2 -2
  9. package/dist/aico-components/{p-bccf08d0.entry.js.map → p-c900f292.entry.js.map} +1 -1
  10. package/dist/cjs/aico-album-content_19.cjs.entry.js +1 -1
  11. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +1 -1
  12. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -1
  13. package/dist/cjs/aico-news-list.cjs.entry.js +1 -1
  14. package/dist/cjs/aico-special-news-carousel.cjs.entry.js +1 -1
  15. package/dist/cjs/{utils-c1b7a052.js → utils-9ae3486f.js} +3 -3
  16. package/dist/cjs/{utils-c1b7a052.js.map → utils-9ae3486f.js.map} +1 -1
  17. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +2 -2
  18. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -1
  19. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +2 -0
  20. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -1
  21. package/dist/collection/utils/utils.js +2 -2
  22. package/dist/collection/utils/utils.js.map +1 -1
  23. package/dist/components/aico-fetch-article-detail.js.map +1 -1
  24. package/dist/components/utils.js +2 -2
  25. package/dist/components/utils.js.map +1 -1
  26. package/dist/esm/aico-album-content_19.entry.js +1 -1
  27. package/dist/esm/aico-fetch-article-detail.entry.js +1 -1
  28. package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -1
  29. package/dist/esm/aico-news-list.entry.js +1 -1
  30. package/dist/esm/aico-special-news-carousel.entry.js +1 -1
  31. package/dist/esm/{utils-b4eec8e9.js → utils-25eef7c7.js} +3 -3
  32. package/dist/esm/{utils-b4eec8e9.js.map → utils-25eef7c7.js.map} +1 -1
  33. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +2 -4
  34. package/dist/types/components.d.ts +4 -4
  35. package/docs/components/aico-article-detail/readme.md +83 -0
  36. package/docs/components/aico-fetch-article-detail/readme.md +63 -0
  37. package/docs/components/aico-news-list/readme.md +41 -0
  38. package/docs/components/aico-news-list-item/readme.md +37 -0
  39. package/docs/components/aico-special-news-carousel/readme.md +27 -0
  40. package/docs/components/content/aico-album-content/readme.md +30 -0
  41. package/docs/components/content/aico-asking-content/readme.md +31 -0
  42. package/docs/components/content/aico-asking-list-content/readme.md +10 -0
  43. package/docs/components/content/aico-block-quote-content/readme.md +31 -0
  44. package/docs/components/content/aico-bullet-content/readme.md +37 -0
  45. package/docs/components/content/aico-carousel-content/readme.md +38 -0
  46. package/docs/components/content/aico-collection-content/readme.md +10 -0
  47. package/docs/components/content/aico-content-card-content/readme.md +37 -0
  48. package/docs/components/content/aico-divider-content/readme.md +31 -0
  49. package/docs/components/content/aico-document-content/readme.md +31 -0
  50. package/docs/components/content/aico-faq-content/readme.md +31 -0
  51. package/docs/components/content/aico-heading-content/readme.md +37 -0
  52. package/docs/components/content/aico-html-content/readme.md +31 -0
  53. package/docs/components/content/aico-link-content/readme.md +31 -0
  54. package/docs/components/content/aico-news-content/readme.md +37 -0
  55. package/docs/components/content/aico-no-content/readme.md +23 -0
  56. package/docs/components/content/aico-page-content/readme.md +38 -0
  57. package/docs/components/content/aico-table-content/readme.md +37 -0
  58. package/docs/components/content/aico-testimonial-content/readme.md +30 -0
  59. package/docs/components/content/aico-text-content/readme.md +37 -0
  60. package/docs/components/content/aico-title-content/readme.md +52 -0
  61. package/docs/components/content/aico-upload-content/readme.md +37 -0
  62. package/docs/components/content/aico-video-content/readme.md +37 -0
  63. package/package.json +3 -2
  64. package/dist/aico-components/p-2677f2ab.js +0 -2
  65. package/dist/aico-components/p-2677f2ab.js.map +0 -1
  66. /package/dist/aico-components/{p-368503ee.entry.js.map → p-7ea04e72.entry.js.map} +0 -0
  67. /package/dist/aico-components/{p-7e0074f7.entry.js.map → p-80cb133a.entry.js.map} +0 -0
  68. /package/dist/aico-components/{p-c9eea1b1.entry.js.map → p-918b9928.entry.js.map} +0 -0
@@ -0,0 +1,31 @@
1
+ # aico-html-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; }[]; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+
22
+ ### Graph
23
+ ```mermaid
24
+ graph TD;
25
+ aico-article-detail --> aico-html-content
26
+ style aico-html-content fill:#f9f,stroke:#333,stroke-width:4px
27
+ ```
28
+
29
+ ----------------------------------------------
30
+
31
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,31 @@
1
+ # aico-link-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { translations: ({ id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; } & { link?: string \| undefined; linkText?: string \| undefined; imageUrl?: string \| undefined; })[]; link?: string \| undefined; linkText?: string \| undefined; title?: string \| undefined; imageUrl?: string \| undefined; pictureSize: string; picturePosition?: string \| undefined; isButtonLink: boolean; isImageFullSize: boolean; isImageLink?: boolean \| undefined; backgroundButtonColor?: string \| undefined; textButtonColor?: string \| undefined; hoverColor?: string \| undefined; fontSize?: number \| undefined; fontFamily?: string \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+
22
+ ### Graph
23
+ ```mermaid
24
+ graph TD;
25
+ aico-article-detail --> aico-link-content
26
+ style aico-link-content fill:#f9f,stroke:#333,stroke-width:4px
27
+ ```
28
+
29
+ ----------------------------------------------
30
+
31
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,37 @@
1
+ # aico-news-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; titleSize: string; maxPerRow: number; maxToDisplay: number; aicoShopNews: { id: string \| number; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; shouldShowTranslation: boolean; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; description?: string \| null \| undefined; excerpt?: string \| null \| undefined; image?: string \| null \| undefined; optimizedImage?: string \| null \| undefined; portraitImage?: string \| null \| undefined; optimizedPortraitImage?: string \| null \| undefined; optimizedListImage?: string \| null \| undefined; }[]; isActive: boolean; isSpecialArticle: boolean; brandIds: (string \| number)[]; sellerIds: (string \| number)[]; newsCategory: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; webName?: string \| null \| undefined; description?: string \| null \| undefined; smallDescription?: string \| null \| undefined; }[]; isActive: boolean; sortingNumber: number; sorting_number: number; is_active: boolean; image?: string \| null \| undefined; }; newsTags: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; webName?: string \| null \| undefined; }; }[]; album: { id: string \| number; createdAt: Date; updatedAt: Date; images: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; description?: string \| null \| undefined; alternativeText?: string \| null \| undefined; caption?: string \| null \| undefined; alternative_text?: string \| null \| undefined; }[]; url?: string \| null \| undefined; type?: string \| null \| undefined; order?: number \| null \| undefined; optimizedImage?: string \| null \| undefined; }[]; name?: string \| null \| undefined; }; name?: string \| null \| undefined; description?: string \| null \| undefined; pageTitle?: string \| null \| undefined; metaDescription?: string \| null \| undefined; urlHandle?: string \| null \| undefined; excerpt?: string \| null \| undefined; publishDate?: Date \| null \| undefined; author?: string \| null \| undefined; videoUrl?: string \| null \| undefined; image?: string \| null \| undefined; headlineImage?: string \| null \| undefined; portraitImage?: string \| null \| undefined; optimizedPortraitImage?: string \| null \| undefined; optimizedImage?: string \| null \| undefined; optimizedListImage?: string \| null \| undefined; contentBuilder?: any; }[]; landscapePicture?: string \| null \| undefined; portraitPicture?: string \| null \| undefined; title?: string \| null \| undefined; text?: string \| null \| undefined; textColor?: string \| null \| undefined; textBackgroundColor?: string \| null \| undefined; textHoverColor?: string \| null \| undefined; IMPORTANT?: string \| null \| undefined; text_hover_color?: string \| null \| undefined; }` | `undefined` |
13
+
14
+
15
+ ## Events
16
+
17
+ | Event | Description | Type |
18
+ | -------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19
+ | `newsArticleClicked` | | `CustomEvent<{ id: string \| number; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; shouldShowTranslation: boolean; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; description?: string \| null \| undefined; excerpt?: string \| null \| undefined; image?: string \| null \| undefined; optimizedImage?: string \| null \| undefined; portraitImage?: string \| null \| undefined; optimizedPortraitImage?: string \| null \| undefined; optimizedListImage?: string \| null \| undefined; }[]; isActive: boolean; isSpecialArticle: boolean; brandIds: (string \| number)[]; sellerIds: (string \| number)[]; newsCategory: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; webName?: string \| null \| undefined; description?: string \| null \| undefined; smallDescription?: string \| null \| undefined; }[]; isActive: boolean; sortingNumber: number; sorting_number: number; is_active: boolean; image?: string \| null \| undefined; }; newsTags: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; webName?: string \| null \| undefined; }; }[]; album: { id: string \| number; createdAt: Date; updatedAt: Date; images: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; description?: string \| null \| undefined; alternativeText?: string \| null \| undefined; caption?: string \| null \| undefined; alternative_text?: string \| null \| undefined; }[]; url?: string \| null \| undefined; type?: string \| null \| undefined; order?: number \| null \| undefined; optimizedImage?: string \| null \| undefined; }[]; name?: string \| null \| undefined; }; name?: string \| null \| undefined; description?: string \| null \| undefined; pageTitle?: string \| null \| undefined; metaDescription?: string \| null \| undefined; urlHandle?: string \| null \| undefined; excerpt?: string \| null \| undefined; publishDate?: Date \| null \| undefined; author?: string \| null \| undefined; videoUrl?: string \| null \| undefined; image?: string \| null \| undefined; headlineImage?: string \| null \| undefined; portraitImage?: string \| null \| undefined; optimizedPortraitImage?: string \| null \| undefined; optimizedImage?: string \| null \| undefined; optimizedListImage?: string \| null \| undefined; contentBuilder?: any; }>` |
20
+
21
+
22
+ ## Dependencies
23
+
24
+ ### Used by
25
+
26
+ - [aico-article-detail](../../aico-article-detail)
27
+
28
+ ### Graph
29
+ ```mermaid
30
+ graph TD;
31
+ aico-article-detail --> aico-news-content
32
+ style aico-news-content fill:#f9f,stroke:#333,stroke-width:4px
33
+ ```
34
+
35
+ ----------------------------------------------
36
+
37
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,23 @@
1
+ # aico-no-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Dependencies
9
+
10
+ ### Used by
11
+
12
+ - [aico-title-content](../aico-title-content)
13
+
14
+ ### Graph
15
+ ```mermaid
16
+ graph TD;
17
+ aico-title-content --> aico-no-content
18
+ style aico-no-content fill:#f9f,stroke:#333,stroke-width:4px
19
+ ```
20
+
21
+ ----------------------------------------------
22
+
23
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,38 @@
1
+ # aico-page-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; openExternalLink: boolean; isImageZoomedIn: boolean; landingPage: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; imageAlt?: string \| null \| undefined; excerpt?: string \| null \| undefined; buttonText?: string \| null \| undefined; }[]; isTemplate: boolean; isPublic: boolean; lastSyncAt?: Date \| null \| undefined; pageTitle?: string \| null \| undefined; metaDescription?: string \| null \| undefined; urlHandle?: string \| null \| undefined; image?: string \| null \| undefined; focusXCoordinate?: number \| null \| undefined; focusYCoordinate?: number \| null \| undefined; focusXPercentage?: number \| null \| undefined; focusYPercentage?: number \| null \| undefined; }; buttonBackgroundColor?: string \| null \| undefined; buttonTextColor?: string \| null \| undefined; textColor?: string \| null \| undefined; backgroundColor?: string \| null \| undefined; externalLink?: string \| null \| undefined; fontType?: string \| null \| undefined; fontSize?: number \| null \| undefined; borderColor?: string \| null \| undefined; titleColor?: string \| null \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Events
17
+
18
+ | Event | Description | Type |
19
+ | ------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
+ | `pageClicked` | | `CustomEvent<{ id: string \| number; createdAt: Date; updatedAt: Date; openExternalLink: boolean; isImageZoomedIn: boolean; landingPage: { id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; title?: string \| null \| undefined; text?: string \| null \| undefined; name?: string \| null \| undefined; imageAlt?: string \| null \| undefined; excerpt?: string \| null \| undefined; buttonText?: string \| null \| undefined; }[]; isTemplate: boolean; isPublic: boolean; lastSyncAt?: Date \| null \| undefined; pageTitle?: string \| null \| undefined; metaDescription?: string \| null \| undefined; urlHandle?: string \| null \| undefined; image?: string \| null \| undefined; focusXCoordinate?: number \| null \| undefined; focusYCoordinate?: number \| null \| undefined; focusXPercentage?: number \| null \| undefined; focusYPercentage?: number \| null \| undefined; }; buttonBackgroundColor?: string \| null \| undefined; buttonTextColor?: string \| null \| undefined; textColor?: string \| null \| undefined; backgroundColor?: string \| null \| undefined; externalLink?: string \| null \| undefined; fontType?: string \| null \| undefined; fontSize?: number \| null \| undefined; borderColor?: string \| null \| undefined; titleColor?: string \| null \| undefined; }>` |
21
+
22
+
23
+ ## Dependencies
24
+
25
+ ### Used by
26
+
27
+ - [aico-article-detail](../../aico-article-detail)
28
+
29
+ ### Graph
30
+ ```mermaid
31
+ graph TD;
32
+ aico-article-detail --> aico-page-content
33
+ style aico-page-content fill:#f9f,stroke:#333,stroke-width:4px
34
+ ```
35
+
36
+ ----------------------------------------------
37
+
38
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,37 @@
1
+ # aico-table-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { translations: ({ id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; } & { additionalText?: string \| undefined; })[]; sort: number; titleSize?: string \| undefined; firstColor?: string \| undefined; secondColor?: string \| undefined; tableRows: TableContentRow[]; IMPORTANT?: string \| undefined; bulletBullets?: object[] \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+
22
+ ### Depends on
23
+
24
+ - [aico-title-content](../aico-title-content)
25
+
26
+ ### Graph
27
+ ```mermaid
28
+ graph TD;
29
+ aico-table-content --> aico-title-content
30
+ aico-title-content --> aico-no-content
31
+ aico-article-detail --> aico-table-content
32
+ style aico-table-content fill:#f9f,stroke:#333,stroke-width:4px
33
+ ```
34
+
35
+ ----------------------------------------------
36
+
37
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,30 @@
1
+ # aico-testimonial-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { testimonial: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; } & { image?: string \| undefined; link?: string \| undefined; rating?: number \| undefined; }; }` | `undefined` |
13
+
14
+
15
+ ## Dependencies
16
+
17
+ ### Used by
18
+
19
+ - [aico-article-detail](../../aico-article-detail)
20
+
21
+ ### Graph
22
+ ```mermaid
23
+ graph TD;
24
+ aico-article-detail --> aico-testimonial-content
25
+ style aico-testimonial-content fill:#f9f,stroke:#333,stroke-width:4px
26
+ ```
27
+
28
+ ----------------------------------------------
29
+
30
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,37 @@
1
+ # aico-text-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { translations: TextContentTranslation[]; sort?: number \| undefined; picturePosition?: string \| undefined; pictureSize?: string \| undefined; pictureLabelPosition?: string \| undefined; titleSize?: string \| undefined; fontSize?: string \| undefined; fontFamily?: string \| undefined; verticalAlign: string; alignmentEnabled: boolean; hasBackgroundColor: boolean; backgroundColor?: string \| undefined; shouldJustifyText: boolean; textColor?: string \| undefined; isButtonRightUnderText: boolean; isContentDisplayedAsPrompt: boolean; pictureFontOption: string; addBorder: boolean; borderColor?: string \| undefined; focusXCoordinate?: number \| undefined; focusYCoordinate?: number \| undefined; focusXPercentage?: number \| undefined; focusYPercentage?: number \| undefined; promptText?: string \| undefined; link?: string \| undefined; picture?: string \| undefined; IMPORTANT?: string \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+
22
+ ### Depends on
23
+
24
+ - [aico-title-content](../aico-title-content)
25
+
26
+ ### Graph
27
+ ```mermaid
28
+ graph TD;
29
+ aico-text-content --> aico-title-content
30
+ aico-title-content --> aico-no-content
31
+ aico-article-detail --> aico-text-content
32
+ style aico-text-content fill:#f9f,stroke:#333,stroke-width:4px
33
+ ```
34
+
35
+ ----------------------------------------------
36
+
37
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,52 @@
1
+ # aico-title-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; }[]; size?: string \| undefined; hasUnderscore: boolean; underscoreColor?: string \| undefined; titleColor?: string \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+ - [aico-bullet-content](../aico-bullet-content)
22
+ - [aico-carousel-content](../aico-carousel-content)
23
+ - [aico-content-card-content](../aico-content-card-content)
24
+ - [aico-heading-content](../aico-heading-content)
25
+ - [aico-table-content](../aico-table-content)
26
+ - [aico-text-content](../aico-text-content)
27
+ - [aico-upload-content](../aico-upload-content)
28
+ - [aico-video-content](../aico-video-content)
29
+
30
+ ### Depends on
31
+
32
+ - [aico-no-content](../aico-no-content)
33
+
34
+ ### Graph
35
+ ```mermaid
36
+ graph TD;
37
+ aico-title-content --> aico-no-content
38
+ aico-article-detail --> aico-title-content
39
+ aico-bullet-content --> aico-title-content
40
+ aico-carousel-content --> aico-title-content
41
+ aico-content-card-content --> aico-title-content
42
+ aico-heading-content --> aico-title-content
43
+ aico-table-content --> aico-title-content
44
+ aico-text-content --> aico-title-content
45
+ aico-upload-content --> aico-title-content
46
+ aico-video-content --> aico-title-content
47
+ style aico-title-content fill:#f9f,stroke:#333,stroke-width:4px
48
+ ```
49
+
50
+ ----------------------------------------------
51
+
52
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,37 @@
1
+ # aico-upload-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; translations: { id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; }[]; shouldHideFile: boolean; uploads: { name?: string \| null \| undefined; path?: string \| null \| undefined; }[]; videoUrl?: string \| null \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+
22
+ ### Depends on
23
+
24
+ - [aico-title-content](../aico-title-content)
25
+
26
+ ### Graph
27
+ ```mermaid
28
+ graph TD;
29
+ aico-upload-content --> aico-title-content
30
+ aico-title-content --> aico-no-content
31
+ aico-article-detail --> aico-upload-content
32
+ style aico-upload-content fill:#f9f,stroke:#333,stroke-width:4px
33
+ ```
34
+
35
+ ----------------------------------------------
36
+
37
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,37 @@
1
+ # aico-video-content
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------------- | --------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
12
+ | `content` _(required)_ | -- | | `{ id: string \| number; createdAt: Date; updatedAt: Date; } & { translations: ({ id: string \| number; createdAt: Date; updatedAt: Date; locale: string; text?: string \| null \| undefined; title?: string \| null \| undefined; } & { videoUrl?: string \| undefined; })[]; sort?: number \| undefined; titleSize?: string \| undefined; isVideoMinimized: boolean; localVideoUrl?: string \| undefined; IMPORTANT?: string \| undefined; videoUrl?: string \| undefined; video?: string \| undefined; }` | `undefined` |
13
+ | `locale` | `locale` | | `string` | `'de'` |
14
+
15
+
16
+ ## Dependencies
17
+
18
+ ### Used by
19
+
20
+ - [aico-article-detail](../../aico-article-detail)
21
+
22
+ ### Depends on
23
+
24
+ - [aico-title-content](../aico-title-content)
25
+
26
+ ### Graph
27
+ ```mermaid
28
+ graph TD;
29
+ aico-video-content --> aico-title-content
30
+ aico-title-content --> aico-no-content
31
+ aico-article-detail --> aico-video-content
32
+ style aico-video-content fill:#f9f,stroke:#333,stroke-width:4px
33
+ ```
34
+
35
+ ----------------------------------------------
36
+
37
+ *Built with [StencilJS](https://stenciljs.com/)*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiconomy/aico-components",
3
- "version": "0.0.78",
3
+ "version": "0.0.95",
4
4
  "description": "Aiconomy components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -12,7 +12,8 @@
12
12
  "unpkg": "dist/aico-components/aico-components.esm.js",
13
13
  "files": [
14
14
  "dist/",
15
- "loader/"
15
+ "loader/",
16
+ "docs/"
16
17
  ],
17
18
  "scripts": {
18
19
  "dev": "npm run stencil & npm run storybook",
@@ -1,2 +0,0 @@
1
- const t=t=>{const e=new Headers;e.append("Accept","application/vnd.api+json");e.append("Authorization",`Bearer ${t}`);return e};const e=(e,n,a,r)=>new Request(new URL(`${n}?${a.toString()}`,e.baseApi),{headers:t(e.bearerToken),signal:r});async function n(t,n,a,r,s=[]){const c=new URLSearchParams;c.set("page[number]",String(n));c.set("page[size]",String(a));c.set("sort","-publishDate");c.set("filter[isActive]","1");c.set("filter[excludeTag][]","Eisnull");for(const t of s){c.set("filter[channel][]",t)}const i=e(t,"news",c,r);const o=await fetch(i);return await o.json()}async function a(t,n,a,r,s=[]){const c=new URLSearchParams;c.set("page[number]",String(n));c.set("page[size]",String(a));c.set("sort","-publishDate");c.set("filter[isActive]","1");c.set("filter[isSpecialArticle]","1");c.set("filter[isLightVersion]","true");c.set("filter[excludeTag][]","Eisnull");for(const t of s){c.set("filter[channel][]",t)}const i=e(t,"news",c,r);const o=await fetch(i);return await o.json()}async function r(t,n,a){const r=e(t,`news/${n}`,new URLSearchParams,a);const s=await fetch(r);const c=await s.json();return c.data}async function s(t,n,a){const r=new URLSearchParams;r.set("filter[urlHandle]",n);const s=e(t,"news",r,a);const c=await fetch(s);const i=await c.json();return i.data[0]}function c(t){switch(t){case"extra-small":return"28%";case"small":return"40%";case"large":return"80%";case"extra large":return"100%";default:return"60%"}}function i(t){const e=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#&?]*).*/;const n=t.match(e);if(n&&n[1].length==11){return`https://www.youtube.com/embed/${n[1]}`}return null}function o(t){if(!t||t===" "){return true}return false}function u(t){const e=[];for(const n of Object.entries(t)){if(n[1]){e.push(n[0])}}return e.join(" ")}export{r as a,n as b,a as c,u as d,i as e,s as f,c as g,o as s};
2
- //# sourceMappingURL=p-2677f2ab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getAuthenticatedHeaders","bearerToken","headers","Headers","append","getAuthenticatedRequest","api","route","query","signal","Request","URL","toString","baseApi","async","fetchNewsArticles","page","size","newsChannels","queryParams","URLSearchParams","set","String","newsChannel","request","response","fetch","json","fetchSpecialNewsArticles","fetchNewsArticle","articleId","article","data","fetchNewsArticleByHandle","urlHandle","articles","getImageWidthPrc","pictureSize","getYoutubeURL","url","regExp","match","length","strIsNullOrEmptyOrWhitespace","str","getClass","conditions","classes","kvp","Object","entries","push","join"],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"mappings":"AAKO,MAAMA,EAA2BC,IACtC,MAAMC,EAAU,IAAIC,QACpBD,EAAQE,OAAO,SAAU,4BACzBF,EAAQE,OAAO,gBAAiB,UAAUH,KAC1C,OAAOC,CAAO,EAGT,MAAMG,EAA0B,CAACC,EAAyBC,EAAeC,EAAwBC,IAC/F,IAAIC,QAAQ,IAAIC,IAAI,GAAGJ,KAASC,EAAMI,aAAcN,EAAIO,SAAU,CACvEX,QAASF,EAAwBM,EAAIL,aACrCQ,WCXGK,eAAeC,EAAkBT,EAAyBU,EAAcC,EAAcR,EAAqBS,EAAyB,IACzI,MAAMC,EAAc,IAAIC,gBACxBD,EAAYE,IAAI,eAAgBC,OAAON,IACvCG,EAAYE,IAAI,aAAcC,OAAOL,IACrCE,EAAYE,IAAI,OAAQ,gBACxBF,EAAYE,IAAI,mBAAoB,KACpCF,EAAYE,IAAI,uBAAwB,WACxC,IAAK,MAAME,KAAeL,EAAc,CACtCC,EAAYE,IAAI,oBAAqBE,E,CAGvC,MAAMC,EAAUnB,EAAwBC,EAAK,OAAQa,EAAaV,GAClE,MAAMgB,QAAiBC,MAAMF,GAC7B,aAAaC,EAASE,MACxB,CAEOb,eAAec,EAAyBtB,EAAyBU,EAAcC,EAAcR,EAAqBS,EAAyB,IAChJ,MAAMC,EAAc,IAAIC,gBACxBD,EAAYE,IAAI,eAAgBC,OAAON,IACvCG,EAAYE,IAAI,aAAcC,OAAOL,IACrCE,EAAYE,IAAI,OAAQ,gBACxBF,EAAYE,IAAI,mBAAoB,KACpCF,EAAYE,IAAI,2BAA4B,KAC5CF,EAAYE,IAAI,yBAA0B,QAC1CF,EAAYE,IAAI,uBAAwB,WACxC,IAAK,MAAME,KAAeL,EAAc,CACtCC,EAAYE,IAAI,oBAAqBE,E,CAGvC,MAAMC,EAAUnB,EAAwBC,EAAK,OAAQa,EAAaV,GAClE,MAAMgB,QAAiBC,MAAMF,GAC7B,aAAaC,EAASE,MACxB,CAEOb,eAAee,EAAiBvB,EAAyBwB,EAAmBrB,GACjF,MAAMe,EAAUnB,EAAwBC,EAAK,QAAQwB,IAAa,IAAIV,gBAAmBX,GACzF,MAAMgB,QAAiBC,MAAMF,GAC7B,MAAMO,QAAgBN,EAASE,OAC/B,OAAOI,EAAQC,IACjB,CAEOlB,eAAemB,EAAyB3B,EAAyB4B,EAAmBzB,GACzF,MAAMU,EAAc,IAAIC,gBACxBD,EAAYE,IAAI,oBAAqBa,GAErC,MAAMV,EAAUnB,EAAwBC,EAAK,OAAQa,EAAaV,GAClE,MAAMgB,QAAiBC,MAAMF,GAC7B,MAAMW,QAAiBV,EAASE,OAChC,OAAOQ,EAASH,KAAK,EACvB,C,SAWgBI,EAAiBC,GAC/B,OAAQA,GACN,IAAK,cACH,MAAO,MACT,IAAK,QACH,MAAO,MACT,IAAK,QACH,MAAO,MACT,IAAK,cACH,MAAO,OACT,QACE,MAAO,MAEb,C,SAEgBC,EAAcC,GAC5B,MAAMC,EAAS,4DACf,MAAMC,EAAQF,EAAIE,MAAMD,GACxB,GAAIC,GAASA,EAAM,GAAGC,QAAU,GAAI,CAClC,MAAO,iCAAiCD,EAAM,I,CAGhD,OAAO,IACT,C,SAEgBE,EAA6BC,GAC3C,IAAKA,GAAOA,IAAQ,IAAK,CACvB,OAAO,I,CAGT,OAAO,KACT,C,SAEgBC,EAASC,GACvB,MAAMC,EAAoB,GAC1B,IAAK,MAAMC,KAAOC,OAAOC,QAAQJ,GAAa,CAC5C,GAAIE,EAAI,GAAI,CACVD,EAAQI,KAAKH,EAAI,G,EAIrB,OAAOD,EAAQK,KAAK,IACtB,Q"}