@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 +2 -5
- package/bundles/taiga-ui-addon-doc.umd.js +4 -4
- 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/components/documentation/documentation.component.d.ts +1 -1
- package/esm2015/components/documentation/documentation.component.js +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/esm2015/utils/generate-routes.js +1 -1
- package/esm2015/utils/inspect.js +1 -2
- package/esm5/components/documentation/documentation.component.js +1 -1
- 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/esm5/utils/generate-routes.js +1 -1
- package/esm5/utils/inspect.js +1 -2
- package/fesm2015/taiga-ui-addon-doc.js +4 -4
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/fesm5/taiga-ui-addon-doc.js +4 -4
- 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/utils/generate-routes.d.ts +1 -1
- package/utils/inspect.d.ts +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'];
|
|
@@ -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
|
|
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 !==
|
|
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\"
|
|
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
|
}),
|