@taiga-ui/addon-doc 2.48.0 → 2.49.2

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 CHANGED
@@ -116,9 +116,6 @@ npm i @taiga-ui/addon-doc
116
116
  ```typescript
117
117
  import {Component} from '@angular/core';
118
118
 
119
- import {default as exampleHtml} from '!!raw-loader!./examples/1/index.html';
120
- import {default as exampleTs} from '!!raw-loader!./examples/1/index.ts';
121
-
122
119
  @Component({
123
120
  selector: 'super-component',
124
121
  templateUrl: './account.template.html',
@@ -126,8 +123,8 @@ npm i @taiga-ui/addon-doc
126
123
  export class SuperComponent {
127
124
  // Keys would be used as tabs for code example
128
125
  readonly example = {
129
- TypeScript: exampleTs,
130
- HTML: exampleHtml,
126
+ TypeScript: import('!!raw-loader!./examples/1/index.ts'),
127
+ HTML: import('!!raw-loader!./examples/1/index.html'),
131
128
  };
132
129
 
133
130
  readonly inputVariants = ['input 1', 'input 2'];
@@ -674,7 +674,6 @@
674
674
  }
675
675
  return "{" + result + "}";
676
676
  }
677
- // @bad TODO add more types
678
677
  /**
679
678
  * Returns readable JS entity
680
679
  * @param data
@@ -1797,11 +1796,12 @@
1797
1796
  ];
1798
1797
  function seeAlsoProviderFactory(_a, seeAlsoGroups) {
1799
1798
  var nativeElement = _a.nativeElement;
1800
- var groups = seeAlsoGroups.filter(function (group) { return group.includes(nativeElement.header); }) || [];
1799
+ var currentHeader = nativeElement.getAttribute('header');
1800
+ var groups = seeAlsoGroups.filter(function (group) { return group.includes(currentHeader); }) || [];
1801
1801
  var seeAlsoSet = new Set(groups
1802
1802
  .join()
1803
1803
  .split(',')
1804
- .filter(function (component) { return component && component !== nativeElement.header; }));
1804
+ .filter(function (component) { return component && component !== currentHeader; }));
1805
1805
  return Array.from(seeAlsoSet);
1806
1806
  }
1807
1807
 
@@ -1914,7 +1914,7 @@
1914
1914
  TuiDocSeeAlsoComponent = __decorate([
1915
1915
  core.Component({
1916
1916
  selector: 'tui-doc-see-also',
1917
- 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",
1917
+ 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",
1918
1918
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1919
1919
  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}"]
1920
1920
  }),