@taiga-ui/addon-doc 2.48.0 → 2.49.0
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 +2 -5
- package/bundles/taiga-ui-addon-doc.umd.js +4 -3
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js.map +1 -1
- package/esm2015/components/page/page.providers.js +4 -3
- package/esm2015/interfaces/code-editor.js +1 -1
- package/esm2015/internal/see-also/see-also.component.js +2 -2
- package/esm5/components/page/page.providers.js +4 -3
- package/esm5/interfaces/code-editor.js +1 -1
- package/esm5/internal/see-also/see-also.component.js +2 -2
- package/fesm2015/taiga-ui-addon-doc.js +4 -3
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/fesm5/taiga-ui-addon-doc.js +4 -3
- package/fesm5/taiga-ui-addon-doc.js.map +1 -1
- package/interfaces/code-editor.d.ts +5 -4
- package/package.json +7 -7
- package/taiga-ui-addon-doc.metadata.json +1 -1
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:
|
|
130
|
-
HTML:
|
|
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'];
|
|
@@ -1797,11 +1797,12 @@
|
|
|
1797
1797
|
];
|
|
1798
1798
|
function seeAlsoProviderFactory(_a, seeAlsoGroups) {
|
|
1799
1799
|
var nativeElement = _a.nativeElement;
|
|
1800
|
-
var
|
|
1800
|
+
var currentHeader = nativeElement.getAttribute('header');
|
|
1801
|
+
var groups = seeAlsoGroups.filter(function (group) { return group.includes(currentHeader); }) || [];
|
|
1801
1802
|
var seeAlsoSet = new Set(groups
|
|
1802
1803
|
.join()
|
|
1803
1804
|
.split(',')
|
|
1804
|
-
.filter(function (component) { return component && component !==
|
|
1805
|
+
.filter(function (component) { return component && component !== currentHeader; }));
|
|
1805
1806
|
return Array.from(seeAlsoSet);
|
|
1806
1807
|
}
|
|
1807
1808
|
|
|
@@ -1914,7 +1915,7 @@
|
|
|
1914
1915
|
TuiDocSeeAlsoComponent = __decorate([
|
|
1915
1916
|
core.Component({
|
|
1916
1917
|
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\"
|
|
1918
|
+
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
1919
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1919
1920
|
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
1921
|
}),
|