@aiconomy/aico-components 0.0.187 → 0.0.191
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 +517 -0
- package/dist/aico-components/aico-components.esm.js +1 -1
- package/dist/aico-components/{p-f2c14c63.entry.js → p-cec46101.entry.js} +3 -3
- package/dist/aico-components/p-cec46101.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_27.cjs.entry.js +5 -5
- package/dist/cjs/aico-album-content_27.cjs.entry.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js +5 -5
- package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -1
- package/dist/components/aico-news-list.js +5 -5
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/esm/aico-album-content_27.entry.js +5 -5
- package/dist/esm/aico-album-content_27.entry.js.map +1 -1
- package/dist/ssr/index.js +5 -5
- package/dist/ssr/index.mjs +5 -5
- package/package.json +1 -1
- package/dist/aico-components/p-f2c14c63.entry.js.map +0 -1
|
@@ -20735,29 +20735,29 @@ const AicoNewsList = class {
|
|
|
20735
20735
|
}
|
|
20736
20736
|
render() {
|
|
20737
20737
|
var _a, _b, _c;
|
|
20738
|
-
return (index.h(index.Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, index.h("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.
|
|
20738
|
+
return (index.h(index.Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, index.h("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.map((article, articleIndex) => {
|
|
20739
20739
|
return (index.h("div", { key: article.id, class: "col" }, index.h("aico-news-list-item", { article: article, articleIndex: articleIndex, onArticleClick: e => {
|
|
20740
20740
|
var _a;
|
|
20741
20741
|
(_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
20742
20742
|
e.stopPropagation();
|
|
20743
20743
|
}, locale: this.locale })));
|
|
20744
20744
|
})), !this.latestNews &&
|
|
20745
|
-
index.h("nav", { key: '
|
|
20745
|
+
index.h("nav", { key: 'd6aabfea2c744fa2f28a7189b94941b646a9c556', class: "w-100", "aria-label": "News navigation" }, index.h("ul", { key: '466c5ee092a339faab8b4948a7f4c9aae5176320', class: "pagination justify-content-center" }, index.h("li", { key: '19817579487de9a680246c18bfc5e0b8d5b2bfa8', class: `page-item page-link user-select-none d-flex align-items-center ${!((_b = this.newsResponse) === null || _b === void 0 ? void 0 : _b.links.prev) ? 'disabled' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
|
|
20746
20746
|
if (this.pageNumber > 1) {
|
|
20747
20747
|
this.pageNumber -= 1;
|
|
20748
20748
|
}
|
|
20749
20749
|
return false;
|
|
20750
|
-
} }, index.h("svg", { key: '
|
|
20750
|
+
} }, index.h("svg", { key: 'a29d589719823124f5aa506e622b46daa8e0f407', xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "bi bi-chevron-left me-1 fs-4", style: { width: '1em', height: '1em' }, viewBox: "0 0 16 16" }, index.h("path", { key: 'c801d1858c179806a5d5814c5eb29927438a484a', "fill-rule": "evenodd", d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0" })), this.previousButtonText), this.getViewablePages().map(page => (index.h("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
|
|
20751
20751
|
if (page !== '...') {
|
|
20752
20752
|
this.pageNumber = Number(page);
|
|
20753
20753
|
}
|
|
20754
20754
|
return false;
|
|
20755
|
-
} }, page))), index.h("li", { key: '
|
|
20755
|
+
} }, page))), index.h("li", { key: '512c4c5e69c10e907b483ba789e981dac566ede9', class: `page-item page-link user-select-none d-flex align-items-center ${!((_c = this.newsResponse) === null || _c === void 0 ? void 0 : _c.links.next) ? 'disabled' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
|
|
20756
20756
|
var _a, _b;
|
|
20757
20757
|
if (((_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.meta.page.lastPage) && this.pageNumber < ((_b = this.newsResponse) === null || _b === void 0 ? void 0 : _b.meta.page.lastPage)) {
|
|
20758
20758
|
this.pageNumber += 1;
|
|
20759
20759
|
}
|
|
20760
|
-
} }, this.nextButtonText, index.h("svg", { key: '
|
|
20760
|
+
} }, this.nextButtonText, index.h("svg", { key: 'eb4538e30017ec9d2f2ed90054beb65519a21b4c', xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "bi bi-chevron-right ms-1 fs-4", style: { width: '1em', height: '1em' }, viewBox: "0 0 16 16" }, index.h("path", { key: '2dee699c259f973ce0f397cc3a501614e6058692', "fill-rule": "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708" })))))));
|
|
20761
20761
|
}
|
|
20762
20762
|
getViewablePages(lookAhead = 2) {
|
|
20763
20763
|
var _a, _b, _c, _d, _e, _f, _g;
|