@aiconomy/aico-components 0.0.128 → 0.0.136
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/README.md +26 -23
- package/dist/aico-components/aico-components.esm.js +1 -1
- package/dist/aico-components/aico-components.esm.js.map +1 -1
- package/dist/aico-components/{p-64d6361b.entry.js → p-de1a4cc0.entry.js} +3 -3
- package/dist/aico-components/p-de1a4cc0.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_26.cjs.entry.js +16 -10
- package/dist/cjs/aico-album-content_26.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-components.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/aico-article-detail/aico-article-detail.js +4 -3
- package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js +20 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -1
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +22 -2
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -1
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +22 -2
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
- package/dist/collection/utils/ConditionalRender.js +1 -1
- package/dist/collection/utils/ConditionalRender.js.map +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/ConditionalRender.js +1 -1
- package/dist/components/ConditionalRender.js.map +1 -1
- package/dist/components/aico-article-detail2.js +4 -3
- package/dist/components/aico-article-detail2.js.map +1 -1
- package/dist/components/aico-news-list-item2.js +6 -3
- package/dist/components/aico-news-list-item2.js.map +1 -1
- package/dist/components/aico-news-list.js +3 -1
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/components/aico-special-news-carousel.js +5 -2
- package/dist/components/aico-special-news-carousel.js.map +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/aico-album-content_26.entry.js +16 -10
- package/dist/esm/aico-album-content_26.entry.js.map +1 -1
- package/dist/esm/aico-components.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +6 -0
- package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +6 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +6 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/aico-components/p-64d6361b.entry.js.map +0 -1
package/README.md
CHANGED
|
@@ -160,9 +160,10 @@ div.sc-aico-news-list-item {
|
|
|
160
160
|
|
|
161
161
|
## Properties
|
|
162
162
|
|
|
163
|
-
| Property | Attribute | Description
|
|
164
|
-
| ---------------------- | --------- |
|
|
165
|
-
| `article` _(required)_ | -- |
|
|
163
|
+
| Property | Attribute | Description | Type | Default |
|
|
164
|
+
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ----------- |
|
|
165
|
+
| `article` _(required)_ | -- | | `{ id: string; type: string; links: { self: string; }; attributes: ArticleAttributes; }` | `undefined` |
|
|
166
|
+
| `locale` | `locale` | The article translation that will be used to render the content. If the locale specified is not present in the article's translations, most content will not be shown. | `string` | `'de'` |
|
|
166
167
|
|
|
167
168
|
|
|
168
169
|
## Events
|
|
@@ -182,17 +183,18 @@ div.sc-aico-news-list-item {
|
|
|
182
183
|
|
|
183
184
|
## Properties
|
|
184
185
|
|
|
185
|
-
| Property | Attribute | Description
|
|
186
|
-
| ------------------------------ | ---------------------- |
|
|
187
|
-
| `aicoBearerToken` _(required)_ | `aico-bearer-token` | The token used to authenticate against he Aico Api.
|
|
188
|
-
| `aicoUrl` _(required)_ | `aico-url` | The url of the Aico Api that will be used to retrieve the article.
|
|
189
|
-
| `
|
|
190
|
-
| `
|
|
191
|
-
| `
|
|
192
|
-
| `
|
|
193
|
-
| `
|
|
194
|
-
| `
|
|
195
|
-
| `
|
|
186
|
+
| Property | Attribute | Description | Type | Default |
|
|
187
|
+
| ------------------------------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ------------ |
|
|
188
|
+
| `aicoBearerToken` _(required)_ | `aico-bearer-token` | The token used to authenticate against he Aico Api. | `string` | `undefined` |
|
|
189
|
+
| `aicoUrl` _(required)_ | `aico-url` | The url of the Aico Api that will be used to retrieve the article. | `string` | `undefined` |
|
|
190
|
+
| `locale` | `locale` | The article translation that will be used to render the content. If the locale specified is not present in the article's translations, most content will not be shown. | `string` | `'de'` |
|
|
191
|
+
| `newsBrandIds` | -- | Brands used to filter the results. | `string[]` | `[]` |
|
|
192
|
+
| `newsChannels` | -- | Channel names used to filter the results. | `string[]` | `[]` |
|
|
193
|
+
| `newsLanguageLocales` | -- | Language locales used to filter the results. | `string[]` | `[]` |
|
|
194
|
+
| `newsSellerIds` | -- | Sellers used to filter the results. | `string[]` | `[]` |
|
|
195
|
+
| `nextButtonText` | `next-button-text` | The text used by the next button in the pagination component. | `string` | `'Next'` |
|
|
196
|
+
| `pageSize` | `page-size` | The page size. Prefer this number to be even. | `number` | `16` |
|
|
197
|
+
| `previousButtonText` | `previous-button-text` | The text used by the previous button in the pagination component. | `string` | `'Previous'` |
|
|
196
198
|
|
|
197
199
|
|
|
198
200
|
## Events
|
|
@@ -212,15 +214,16 @@ div.sc-aico-news-list-item {
|
|
|
212
214
|
|
|
213
215
|
## Properties
|
|
214
216
|
|
|
215
|
-
| Property | Attribute | Description
|
|
216
|
-
| ------------------------------ | -------------------- |
|
|
217
|
-
| `aicoBearerToken` _(required)_ | `aico-bearer-token` | The token used to authenticate against he Aico Api.
|
|
218
|
-
| `aicoUrl` _(required)_ | `aico-url` | The url of the Aico Api that will be used to retrieve the article.
|
|
219
|
-
| `
|
|
220
|
-
| `
|
|
221
|
-
| `
|
|
222
|
-
| `
|
|
223
|
-
| `
|
|
217
|
+
| Property | Attribute | Description | Type | Default |
|
|
218
|
+
| ------------------------------ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ----------- |
|
|
219
|
+
| `aicoBearerToken` _(required)_ | `aico-bearer-token` | The token used to authenticate against he Aico Api. | `string` | `undefined` |
|
|
220
|
+
| `aicoUrl` _(required)_ | `aico-url` | The url of the Aico Api that will be used to retrieve the article. | `string` | `undefined` |
|
|
221
|
+
| `locale` | `locale` | The article translation that will be used to render the content. If the locale specified is not present in the article's translations, most content will not be shown. | `string` | `'de'` |
|
|
222
|
+
| `newsBrandIds` | -- | Brands used to filter the results. | `string[]` | `[]` |
|
|
223
|
+
| `newsChannels` | -- | Channel names used to filter the results. | `string[]` | `[]` |
|
|
224
|
+
| `newsLanguageLocales` | -- | Language locales used to filter the results. | `string[]` | `[]` |
|
|
225
|
+
| `newsSellerIds` | -- | Sellers used to filter the results. | `string[]` | `[]` |
|
|
226
|
+
| `numberOfArticles` | `number-of-articles` | The number of articles shown in the carousel. Prefer this number to be small. | `number` | `6` |
|
|
224
227
|
|
|
225
228
|
|
|
226
229
|
## Events
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-ae20e789.js";export{s as setNonce}from"./p-ae20e789.js";const
|
|
1
|
+
import{p as e,b as t}from"./p-ae20e789.js";export{s as setNonce}from"./p-ae20e789.js";const o=()=>{const t=import.meta.url;const o={};if(t!==""){o.resourcesUrl=new URL(".",t).href}return e(o)};o().then((e=>t([["p-68930822",[[6,"aico-asking-list-content"]]],["p-90c2d3dc",[[6,"aico-collection-content"]]],["p-de1a4cc0",[[2,"aico-fetch-article-detail",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],locale:[1],hideDateAndAuthor:[4,"hide-date-and-author"],hideCategoryAndTags:[4,"hide-category-and-tags"],articleId:[1,"article-id"],articleUrlHandle:[1,"article-url-handle"],article:[32]}],[2,"aico-news-list",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],newsChannels:[16],newsSellerIds:[16],newsBrandIds:[16],newsLanguageLocales:[16],pageSize:[2,"page-size"],nextButtonText:[1,"next-button-text"],previousButtonText:[1,"previous-button-text"],locale:[1],newsResponse:[32],pageNumber:[32]}],[2,"aico-special-news-carousel",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],newsChannels:[16],newsSellerIds:[16],newsBrandIds:[16],newsLanguageLocales:[16],numberOfArticles:[2,"number-of-articles"],locale:[1],newsResponse:[32]}],[2,"aico-article-detail",{article:[16],locale:[1],hideDateAndAuthor:[4,"hide-date-and-author"],hideCategoryAndTags:[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{article:[16],locale:[1]}],[2,"aico-bullet-content",{content:[16],locale:[1]}],[2,"aico-carousel-content",{content:[16],hasArrows:[4,"has-arrows"],locale:[1]}],[2,"aico-content-card-content",{content:[16],locale:[1]}],[2,"aico-heading-content",{content:[16],locale:[1]}],[2,"aico-table-content",{content:[16],locale:[1]}],[2,"aico-text-content",{content:[16],locale:[1]}],[2,"aico-upload-content",{content:[16],locale:[1]}],[2,"aico-video-content",{content:[16],locale:[1]}],[2,"aico-album-content",{content:[16]}],[2,"aico-asking-content",{content:[16],locale:[1]}],[2,"aico-block-quote-content",{content:[16],locale:[1]}],[2,"aico-divider-content",{content:[16],locale:[1]}],[2,"aico-document-content",{content:[16],locale:[1]}],[2,"aico-faq-content",{content:[16],locale:[1]}],[2,"aico-html-content",{content:[16],locale:[1]}],[2,"aico-link-content",{content:[16],locale:[1]}],[2,"aico-news-content",{content:[16]}],[2,"aico-page-content",{content:[16],locale:[1]}],[2,"aico-testimonial-content",{content:[16]}],[2,"aico-title-content",{content:[16],locale:[1]}],[2,"aico-no-content"]]]],e)));
|
|
2
2
|
//# sourceMappingURL=aico-components.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","aicoUrl","aicoBearerToken","locale","hideDateAndAuthor","hideCategoryAndTags","articleId","articleUrlHandle","article","newsChannels","newsSellerIds","newsBrandIds","newsLanguageLocales","pageSize","nextButtonText","previousButtonText","newsResponse","pageNumber","numberOfArticles","content","hasArrows"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAajB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,ECnB/BH,IAAeQ,MAAKC,GAEXC,EAAc,iDAAuC,8FAAAC,QAAA,eAAAC,gBAAA,wBAAAC,OAAA,IAAAC,kBAAA,2BAAAC,oBAAA,6BAAAC,UAAA,iBAAAC,iBAAA,yBAAAC,QAAA,4BAAAP,QAAA,eAAAC,gBAAA,wBAAAO,aAAA,KAAAC,cAAA,KAAAC,aAAA,KAAAC,oBAAA,KAAAC,SAAA,gBAAAC,eAAA,uBAAAC,mBAAA,
|
|
1
|
+
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","aicoUrl","aicoBearerToken","locale","hideDateAndAuthor","hideCategoryAndTags","articleId","articleUrlHandle","article","newsChannels","newsSellerIds","newsBrandIds","newsLanguageLocales","pageSize","nextButtonText","previousButtonText","newsResponse","pageNumber","numberOfArticles","content","hasArrows"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAajB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,ECn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