@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/dist/ssr/index.js CHANGED
@@ -23140,29 +23140,29 @@ class AicoNewsList {
23140
23140
  }
23141
23141
  render() {
23142
23142
  var _a, _b, _c;
23143
- return (hAsync(Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, hAsync("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.filter(article => this.latestNews || !article.attributes.isTopNews).map((article, articleIndex) => {
23143
+ return (hAsync(Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, hAsync("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.map((article, articleIndex) => {
23144
23144
  return (hAsync("div", { key: article.id, class: "col" }, hAsync("aico-news-list-item", { article: article, articleIndex: articleIndex, onArticleClick: e => {
23145
23145
  var _a;
23146
23146
  (_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
23147
23147
  e.stopPropagation();
23148
23148
  }, locale: this.locale })));
23149
23149
  })), !this.latestNews &&
23150
- hAsync("nav", { key: 'b4e081968bf0de39ca6deb53f46e51149ba90c96', class: "w-100", "aria-label": "News navigation" }, hAsync("ul", { key: '306919fae60915ef97b0f8b499105252cffa7355', class: "pagination justify-content-center" }, hAsync("li", { key: '2004858d91a1d36f344947003e16276c06d012e4', 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: () => {
23150
+ hAsync("nav", { key: 'd6aabfea2c744fa2f28a7189b94941b646a9c556', class: "w-100", "aria-label": "News navigation" }, hAsync("ul", { key: '466c5ee092a339faab8b4948a7f4c9aae5176320', class: "pagination justify-content-center" }, hAsync("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: () => {
23151
23151
  if (this.pageNumber > 1) {
23152
23152
  this.pageNumber -= 1;
23153
23153
  }
23154
23154
  return false;
23155
- } }, hAsync("svg", { key: '794bc0a90223b0bfb469732e64c8ecdc33cbf95f', 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" }, hAsync("path", { key: 'c114c34774e564ee68e70a72f02a53acc7d7403f', "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 => (hAsync("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
23155
+ } }, hAsync("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" }, hAsync("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 => (hAsync("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
23156
23156
  if (page !== '...') {
23157
23157
  this.pageNumber = Number(page);
23158
23158
  }
23159
23159
  return false;
23160
- } }, page))), hAsync("li", { key: 'a3b8aa8f9d69ad837e90b17f683fbcb97e70dd56', 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: () => {
23160
+ } }, page))), hAsync("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: () => {
23161
23161
  var _a, _b;
23162
23162
  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)) {
23163
23163
  this.pageNumber += 1;
23164
23164
  }
23165
- } }, this.nextButtonText, hAsync("svg", { key: '46589c53b68ba1f8a87a893a63469e460d01b25e', 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" }, hAsync("path", { key: '5ea164fd74b2138274adcba33e0e54a42e52be4e', "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" })))))));
23165
+ } }, this.nextButtonText, hAsync("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" }, hAsync("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" })))))));
23166
23166
  }
23167
23167
  getViewablePages(lookAhead = 2) {
23168
23168
  var _a, _b, _c, _d, _e, _f, _g;
@@ -23136,29 +23136,29 @@ class AicoNewsList {
23136
23136
  }
23137
23137
  render() {
23138
23138
  var _a, _b, _c;
23139
- return (hAsync(Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, hAsync("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.filter(article => this.latestNews || !article.attributes.isTopNews).map((article, articleIndex) => {
23139
+ return (hAsync(Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, hAsync("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.map((article, articleIndex) => {
23140
23140
  return (hAsync("div", { key: article.id, class: "col" }, hAsync("aico-news-list-item", { article: article, articleIndex: articleIndex, onArticleClick: e => {
23141
23141
  var _a;
23142
23142
  (_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
23143
23143
  e.stopPropagation();
23144
23144
  }, locale: this.locale })));
23145
23145
  })), !this.latestNews &&
23146
- hAsync("nav", { key: 'b4e081968bf0de39ca6deb53f46e51149ba90c96', class: "w-100", "aria-label": "News navigation" }, hAsync("ul", { key: '306919fae60915ef97b0f8b499105252cffa7355', class: "pagination justify-content-center" }, hAsync("li", { key: '2004858d91a1d36f344947003e16276c06d012e4', 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: () => {
23146
+ hAsync("nav", { key: 'd6aabfea2c744fa2f28a7189b94941b646a9c556', class: "w-100", "aria-label": "News navigation" }, hAsync("ul", { key: '466c5ee092a339faab8b4948a7f4c9aae5176320', class: "pagination justify-content-center" }, hAsync("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: () => {
23147
23147
  if (this.pageNumber > 1) {
23148
23148
  this.pageNumber -= 1;
23149
23149
  }
23150
23150
  return false;
23151
- } }, hAsync("svg", { key: '794bc0a90223b0bfb469732e64c8ecdc33cbf95f', 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" }, hAsync("path", { key: 'c114c34774e564ee68e70a72f02a53acc7d7403f', "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 => (hAsync("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
23151
+ } }, hAsync("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" }, hAsync("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 => (hAsync("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
23152
23152
  if (page !== '...') {
23153
23153
  this.pageNumber = Number(page);
23154
23154
  }
23155
23155
  return false;
23156
- } }, page))), hAsync("li", { key: 'a3b8aa8f9d69ad837e90b17f683fbcb97e70dd56', 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: () => {
23156
+ } }, page))), hAsync("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: () => {
23157
23157
  var _a, _b;
23158
23158
  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)) {
23159
23159
  this.pageNumber += 1;
23160
23160
  }
23161
- } }, this.nextButtonText, hAsync("svg", { key: '46589c53b68ba1f8a87a893a63469e460d01b25e', 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" }, hAsync("path", { key: '5ea164fd74b2138274adcba33e0e54a42e52be4e', "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" })))))));
23161
+ } }, this.nextButtonText, hAsync("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" }, hAsync("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" })))))));
23162
23162
  }
23163
23163
  getViewablePages(lookAhead = 2) {
23164
23164
  var _a, _b, _c, _d, _e, _f, _g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiconomy/aico-components",
3
- "version": "0.0.187",
3
+ "version": "0.0.191",
4
4
  "description": "Aiconomy components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",