@taiga-ui/addon-doc 2.47.0 → 2.49.1

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.
@@ -436,7 +436,6 @@ function inspectObject(object, depth) {
436
436
  }
437
437
  return "{" + result + "}";
438
438
  }
439
- // @bad TODO add more types
440
439
  /**
441
440
  * Returns readable JS entity
442
441
  * @param data
@@ -1559,11 +1558,12 @@ var PAGE_PROVIDERS = [
1559
1558
  ];
1560
1559
  function seeAlsoProviderFactory(_a, seeAlsoGroups) {
1561
1560
  var nativeElement = _a.nativeElement;
1562
- var groups = seeAlsoGroups.filter(function (group) { return group.includes(nativeElement.header); }) || [];
1561
+ var currentHeader = nativeElement.getAttribute('header');
1562
+ var groups = seeAlsoGroups.filter(function (group) { return group.includes(currentHeader); }) || [];
1563
1563
  var seeAlsoSet = new Set(groups
1564
1564
  .join()
1565
1565
  .split(',')
1566
- .filter(function (component) { return component && component !== nativeElement.header; }));
1566
+ .filter(function (component) { return component && component !== currentHeader; }));
1567
1567
  return Array.from(seeAlsoSet);
1568
1568
  }
1569
1569
 
@@ -1660,7 +1660,7 @@ var TuiDocSeeAlsoComponent = /** @class */ (function () {
1660
1660
  .map(function (page) { return ('subPages' in page ? page.subPages : [page]); })
1661
1661
  .reduce(function (pages, subPages) { return __spread(pages, subPages); }, [])
1662
1662
  .find(function (page) { return page.title === pageTitle; });
1663
- if (page && page.route) {
1663
+ if (page === null || page === void 0 ? void 0 : page.route) {
1664
1664
  return page.route;
1665
1665
  }
1666
1666
  }
@@ -1676,7 +1676,7 @@ var TuiDocSeeAlsoComponent = /** @class */ (function () {
1676
1676
  TuiDocSeeAlsoComponent = __decorate([
1677
1677
  Component({
1678
1678
  selector: 'tui-doc-see-also',
1679
- template: "<h5 class=\"header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">,</ng-container>\n</ng-container>\n",
1679
+ template: "<h5 class=\"header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">{{', '}}</ng-container>\n</ng-container>\n",
1680
1680
  changeDetection: ChangeDetectionStrategy.OnPush,
1681
1681
  styles: [":host{display:block}.header{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"]
1682
1682
  }),