@taiga-ui/addon-doc 3.51.0 → 3.52.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/bundles/taiga-ui-addon-doc-components.umd.js +40 -0
- package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-directives.umd.js +4 -0
- package/bundles/taiga-ui-addon-doc-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-interfaces.umd.js +4 -0
- package/bundles/taiga-ui-addon-doc-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-languages.umd.js +5 -0
- package/bundles/taiga-ui-addon-doc-languages.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-services.umd.js +4 -0
- package/bundles/taiga-ui-addon-doc-services.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-tokens.umd.js +71 -0
- package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-types.umd.js +3 -1
- package/bundles/taiga-ui-addon-doc-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-utils.umd.js +15 -0
- package/bundles/taiga-ui-addon-doc-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.js +4 -0
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/components/documentation/documentation-property-connector.directive.d.ts +4 -0
- package/components/example/example.options.d.ts +3 -0
- package/components/language-switcher/language-switcher.component.d.ts +4 -0
- package/components/navigation/navigation.providers.d.ts +9 -0
- package/components/page/page.providers.d.ts +3 -0
- package/components/taiga-ui-addon-doc-components.d.ts +3 -0
- package/directives/taiga-ui-addon-doc-directives.d.ts +3 -0
- package/esm2015/components/documentation/documentation-property-connector.directive.js +3 -1
- package/esm2015/components/documentation/documentation.component.js +3 -1
- package/esm2015/components/documentation/pipes/inspect.pipe.js +8 -1
- package/esm2015/components/example/example.options.js +4 -1
- package/esm2015/components/language-switcher/language-switcher.component.js +7 -1
- package/esm2015/components/main/main.component.js +3 -1
- package/esm2015/components/navigation/navigation.component.js +3 -1
- package/esm2015/components/navigation/navigation.providers.js +10 -1
- package/esm2015/components/page/page.providers.js +4 -1
- package/esm2015/components/taiga-ui-addon-doc-components.js +4 -1
- package/esm2015/directives/taiga-ui-addon-doc-directives.js +4 -1
- package/esm2015/interfaces/taiga-ui-addon-doc-interfaces.js +4 -1
- package/esm2015/languages/russian.js +2 -1
- package/esm2015/languages/taiga-ui-addon-doc-languages.js +4 -1
- package/esm2015/services/taiga-ui-addon-doc-services.js +4 -1
- package/esm2015/taiga-ui-addon-doc.js +4 -1
- package/esm2015/tokens/code-actions.js +4 -1
- package/esm2015/tokens/code-editor.js +4 -1
- package/esm2015/tokens/default-tabs.js +4 -1
- package/esm2015/tokens/example-content-processor.js +7 -1
- package/esm2015/tokens/excluded-properties.js +4 -1
- package/esm2015/tokens/i18n.js +29 -1
- package/esm2015/tokens/logo.js +4 -1
- package/esm2015/tokens/page-loaded.js +4 -1
- package/esm2015/tokens/pages.js +4 -1
- package/esm2015/tokens/scroll-behavior.js +4 -1
- package/esm2015/tokens/see-also.js +4 -1
- package/esm2015/tokens/source-code.js +4 -1
- package/esm2015/tokens/taiga-ui-addon-doc-tokens.js +4 -1
- package/esm2015/tokens/title.js +4 -1
- package/esm2015/types/taiga-ui-addon-doc-types.js +4 -1
- package/esm2015/utils/inspect.js +7 -1
- package/esm2015/utils/taiga-ui-addon-doc-utils.js +4 -1
- package/esm2015/utils/transliterate-keyboard-layout.js +6 -1
- package/fesm2015/taiga-ui-addon-doc-components.js +40 -0
- package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-directives.js +4 -0
- package/fesm2015/taiga-ui-addon-doc-directives.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-interfaces.js +4 -0
- package/fesm2015/taiga-ui-addon-doc-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-languages.js +5 -0
- package/fesm2015/taiga-ui-addon-doc-languages.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-services.js +4 -0
- package/fesm2015/taiga-ui-addon-doc-services.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-tokens.js +71 -0
- package/fesm2015/taiga-ui-addon-doc-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-types.js +3 -1
- package/fesm2015/taiga-ui-addon-doc-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-utils.js +15 -0
- package/fesm2015/taiga-ui-addon-doc-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc.js +4 -0
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/interfaces/page.d.ts +4 -0
- package/interfaces/taiga-ui-addon-doc-interfaces.d.ts +3 -0
- package/languages/taiga-ui-addon-doc-languages.d.ts +3 -0
- package/package.json +5 -7
- package/services/taiga-ui-addon-doc-services.d.ts +3 -0
- package/taiga-ui-addon-doc.d.ts +3 -0
- package/tokens/code-actions.d.ts +3 -0
- package/tokens/code-editor.d.ts +3 -0
- package/tokens/default-tabs.d.ts +3 -0
- package/tokens/example-content-processor.d.ts +6 -0
- package/tokens/excluded-properties.d.ts +3 -0
- package/tokens/i18n.d.ts +28 -0
- package/tokens/logo.d.ts +3 -0
- package/tokens/page-loaded.d.ts +3 -0
- package/tokens/pages.d.ts +3 -0
- package/tokens/scroll-behavior.d.ts +3 -0
- package/tokens/see-also.d.ts +3 -0
- package/tokens/source-code.d.ts +3 -0
- package/tokens/taiga-ui-addon-doc-tokens.d.ts +3 -0
- package/tokens/title.d.ts +3 -0
- package/types/taiga-ui-addon-doc-types.d.ts +3 -0
- package/utils/inspect.d.ts +6 -0
- package/utils/taiga-ui-addon-doc-utils.d.ts +3 -0
- package/utils/transliterate-keyboard-layout.d.ts +5 -0
|
@@ -731,6 +731,7 @@
|
|
|
731
731
|
}] });
|
|
732
732
|
|
|
733
733
|
var SERIALIZED_SUFFIX = '$';
|
|
734
|
+
// @bad TODO: refactor output and value sync
|
|
734
735
|
var TuiDocDocumentationPropertyConnectorDirective = /** @class */ (function () {
|
|
735
736
|
function TuiDocDocumentationPropertyConnectorDirective(template, locationRef, activatedRoute, urlSerializer, urlStateHandler) {
|
|
736
737
|
this.template = template;
|
|
@@ -789,6 +790,7 @@
|
|
|
789
790
|
this.setQueryParam(value);
|
|
790
791
|
};
|
|
791
792
|
TuiDocDocumentationPropertyConnectorDirective.prototype.emitEvent = function (event) {
|
|
793
|
+
// For more convenient debugging
|
|
792
794
|
console.info(this.attrName, event);
|
|
793
795
|
this.emits$.next(this.emits$.value + 1);
|
|
794
796
|
};
|
|
@@ -1026,6 +1028,13 @@
|
|
|
1026
1028
|
TuiInspectPipe.prototype.transform = function (value, depth) {
|
|
1027
1029
|
if (depth === void 0) { depth = 2; }
|
|
1028
1030
|
if (this.isE2E && typeof value === "function") {
|
|
1031
|
+
/**
|
|
1032
|
+
* @description:
|
|
1033
|
+
* When developing in production mode the webpack bundler minify
|
|
1034
|
+
* functions in different ways, then due to which the string content
|
|
1035
|
+
* of the function may differ from build to build, which can be to
|
|
1036
|
+
* various problems when screenshot testing on e2e.
|
|
1037
|
+
*/
|
|
1029
1038
|
return "\u03BB(x) => y";
|
|
1030
1039
|
}
|
|
1031
1040
|
return utils.tuiInspectAny(value, depth);
|
|
@@ -1059,6 +1068,8 @@
|
|
|
1059
1068
|
args: [{ name: "tuiIsPrimitivePolymorpheusContentPipe" }]
|
|
1060
1069
|
}] });
|
|
1061
1070
|
|
|
1071
|
+
// @bad TODO subscribe propertiesConnectors changes
|
|
1072
|
+
// @bad TODO refactor to make more flexible
|
|
1062
1073
|
var TuiDocDocumentationComponent = /** @class */ (function () {
|
|
1063
1074
|
function TuiDocDocumentationComponent(cdr, texts, excludedProperties, destroy$, getColor, getOpacity) {
|
|
1064
1075
|
this.cdr = cdr;
|
|
@@ -1282,6 +1293,9 @@
|
|
|
1282
1293
|
fullsize: true,
|
|
1283
1294
|
linkIcon: "tuiIconLink",
|
|
1284
1295
|
};
|
|
1296
|
+
/**
|
|
1297
|
+
* Default parameters for DocExample component
|
|
1298
|
+
*/
|
|
1285
1299
|
var TUI_DOC_EXAMPLE_OPTIONS = i6.tuiCreateToken(TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
|
|
1286
1300
|
function tuiDocExampleOptionsProvider(options) {
|
|
1287
1301
|
return i6.tuiProvideOptions(TUI_DOC_EXAMPLE_OPTIONS, options, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
|
|
@@ -1514,8 +1528,17 @@
|
|
|
1514
1528
|
}]
|
|
1515
1529
|
}] });
|
|
1516
1530
|
|
|
1531
|
+
/**
|
|
1532
|
+
* Page title
|
|
1533
|
+
*/
|
|
1517
1534
|
var NAVIGATION_TITLE = new i0.InjectionToken("[NAVIGATION_TITLE]");
|
|
1535
|
+
/**
|
|
1536
|
+
* Navigation sections labels for search
|
|
1537
|
+
*/
|
|
1518
1538
|
var NAVIGATION_LABELS = new i0.InjectionToken("[NAVIGATION_LABELS]");
|
|
1539
|
+
/**
|
|
1540
|
+
* Navigation pages
|
|
1541
|
+
*/
|
|
1519
1542
|
var NAVIGATION_ITEMS = new i0.InjectionToken("[NAVIGATION_ITEMS]");
|
|
1520
1543
|
var NAVIGATION_PROVIDERS = [
|
|
1521
1544
|
i6.TuiDestroyService,
|
|
@@ -1582,6 +1605,8 @@
|
|
|
1582
1605
|
this.search = new i5.FormControl('');
|
|
1583
1606
|
this.filtered$ = i6.tuiControlValue(this.search).pipe(operators.filter(function (search) { return search.trim().length > 2; }), operators.map(function (search) { return _this.filterItems(_this.flattenSubPages(_this.items), search); }));
|
|
1584
1607
|
this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || 'onLight'; }));
|
|
1608
|
+
// Angular can't navigate no anchor links
|
|
1609
|
+
// https://stackoverflow.com/questions/36101756/angular2-routing-with-hashtag-to-page-anchor
|
|
1585
1610
|
title$.subscribe(function (title) {
|
|
1586
1611
|
cdr.markForCheck();
|
|
1587
1612
|
titleService.setTitle(title);
|
|
@@ -2089,6 +2114,10 @@
|
|
|
2089
2114
|
]);
|
|
2090
2115
|
this.names = Array.from(this.flags.keys());
|
|
2091
2116
|
}
|
|
2117
|
+
/**
|
|
2118
|
+
* @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
|
|
2119
|
+
* TODO drop in v4.0
|
|
2120
|
+
*/
|
|
2092
2121
|
TuiLanguageSwitcherComponent.prototype.getFlagPath = function (code) {
|
|
2093
2122
|
return this.flagPipe.transform(code);
|
|
2094
2123
|
};
|
|
@@ -2096,6 +2125,7 @@
|
|
|
2096
2125
|
}());
|
|
2097
2126
|
TuiLanguageSwitcherComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiLanguageSwitcherComponent, deps: [{ token: i5$2.TuiLanguageSwitcher }, { token: i2.TuiFlagPipe }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2098
2127
|
TuiLanguageSwitcherComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiLanguageSwitcherComponent, selector: "tui-language-switcher", providers: [
|
|
2128
|
+
// TODO: for backward compatibility only. Drop in v4.0
|
|
2099
2129
|
i2.TuiFlagPipe,
|
|
2100
2130
|
], ngImport: i0__namespace, template: "<tui-select [formControl]=\"language\">\n <ng-content></ng-content>\n <tui-data-list *tuiDataList>\n <button\n *ngFor=\"let name of names\"\n tuiOption\n [value]=\"name | titlecase\"\n (click)=\"switcher.setLanguage(name)\"\n >\n <img\n alt=\"\"\n class=\"t-flag\"\n [src]=\"flags.get(name) | tuiFlag\"\n />\n {{ name | titlecase }}\n </button>\n </tui-data-list>\n</tui-select>\n", styles: [".t-flag{width:1.75rem;height:1.25rem;margin-right:.5rem}\n"], components: [{ type: i1__namespace.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i2__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i2__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i1__namespace.TuiSelectDirective, selector: "tui-select" }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "titlecase": i4__namespace.TitleCasePipe, "tuiFlag": i2__namespace.TuiFlagPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2101
2131
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiLanguageSwitcherComponent, decorators: [{
|
|
@@ -2105,6 +2135,7 @@
|
|
|
2105
2135
|
templateUrl: './language-switcher.component.html',
|
|
2106
2136
|
styleUrls: ['./language-switcher.component.less'],
|
|
2107
2137
|
providers: [
|
|
2138
|
+
// TODO: for backward compatibility only. Drop in v4.0
|
|
2108
2139
|
i2.TuiFlagPipe,
|
|
2109
2140
|
],
|
|
2110
2141
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -2192,6 +2223,8 @@
|
|
|
2192
2223
|
templateUrl: './main.template.html',
|
|
2193
2224
|
styleUrls: ['./main.style.less'],
|
|
2194
2225
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2226
|
+
// @note: This one was default on purpose so we can test demo in default mode.
|
|
2227
|
+
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
|
2195
2228
|
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
2196
2229
|
providers: [
|
|
2197
2230
|
{
|
|
@@ -2265,6 +2298,9 @@
|
|
|
2265
2298
|
}]
|
|
2266
2299
|
}] });
|
|
2267
2300
|
|
|
2301
|
+
/**
|
|
2302
|
+
* Array if related page titles
|
|
2303
|
+
*/
|
|
2268
2304
|
var PAGE_SEE_ALSO = new i0.InjectionToken("[PAGE_SEE_ALSO]");
|
|
2269
2305
|
var PAGE_PROVIDERS = [
|
|
2270
2306
|
{
|
|
@@ -2401,6 +2437,10 @@
|
|
|
2401
2437
|
}]
|
|
2402
2438
|
}] });
|
|
2403
2439
|
|
|
2440
|
+
/**
|
|
2441
|
+
* Generated bundle index. Do not edit.
|
|
2442
|
+
*/
|
|
2443
|
+
|
|
2404
2444
|
exports.PAGE_PROVIDERS = PAGE_PROVIDERS;
|
|
2405
2445
|
exports.PAGE_SEE_ALSO = PAGE_SEE_ALSO;
|
|
2406
2446
|
exports.TUI_DOC_EXAMPLE_DEFAULT_OPTIONS = TUI_DOC_EXAMPLE_DEFAULT_OPTIONS;
|