@taiga-ui/addon-doc 3.49.1 → 3.50.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 +1 -40
- package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-directives.umd.js +0 -4
- package/bundles/taiga-ui-addon-doc-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-interfaces.umd.js +0 -4
- package/bundles/taiga-ui-addon-doc-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-languages.umd.js +0 -5
- package/bundles/taiga-ui-addon-doc-languages.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-services.umd.js +0 -4
- package/bundles/taiga-ui-addon-doc-services.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-tokens.umd.js +0 -71
- package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-types.umd.js +1 -3
- package/bundles/taiga-ui-addon-doc-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-utils.umd.js +0 -15
- package/bundles/taiga-ui-addon-doc-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.js +0 -4
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/components/documentation/documentation-property-connector.directive.d.ts +0 -4
- package/components/documentation/documentation.component.d.ts +2 -2
- package/components/example/example.options.d.ts +0 -3
- package/components/language-switcher/language-switcher.component.d.ts +0 -4
- package/components/navigation/navigation.providers.d.ts +0 -9
- package/components/page/page.providers.d.ts +0 -3
- package/components/taiga-ui-addon-doc-components.d.ts +0 -3
- package/directives/taiga-ui-addon-doc-directives.d.ts +0 -3
- package/esm2015/components/documentation/documentation-property-connector.directive.js +1 -3
- package/esm2015/components/documentation/documentation.component.js +1 -3
- package/esm2015/components/documentation/pipes/inspect.pipe.js +1 -8
- package/esm2015/components/example/example.options.js +1 -4
- package/esm2015/components/language-switcher/language-switcher.component.js +2 -7
- package/esm2015/components/main/main.component.js +1 -3
- package/esm2015/components/navigation/navigation.component.js +1 -3
- package/esm2015/components/navigation/navigation.providers.js +1 -10
- package/esm2015/components/page/page.providers.js +1 -4
- package/esm2015/components/taiga-ui-addon-doc-components.js +1 -4
- package/esm2015/directives/taiga-ui-addon-doc-directives.js +1 -4
- package/esm2015/interfaces/taiga-ui-addon-doc-interfaces.js +1 -4
- package/esm2015/languages/russian.js +1 -2
- package/esm2015/languages/taiga-ui-addon-doc-languages.js +1 -4
- package/esm2015/services/taiga-ui-addon-doc-services.js +1 -4
- package/esm2015/taiga-ui-addon-doc.js +1 -4
- package/esm2015/tokens/code-actions.js +1 -4
- package/esm2015/tokens/code-editor.js +1 -4
- package/esm2015/tokens/default-tabs.js +1 -4
- package/esm2015/tokens/example-content-processor.js +1 -7
- package/esm2015/tokens/excluded-properties.js +1 -4
- package/esm2015/tokens/i18n.js +1 -29
- package/esm2015/tokens/logo.js +1 -4
- package/esm2015/tokens/page-loaded.js +1 -4
- package/esm2015/tokens/pages.js +1 -4
- package/esm2015/tokens/scroll-behavior.js +1 -4
- package/esm2015/tokens/see-also.js +1 -4
- package/esm2015/tokens/source-code.js +1 -4
- package/esm2015/tokens/taiga-ui-addon-doc-tokens.js +1 -4
- package/esm2015/tokens/title.js +1 -4
- package/esm2015/types/taiga-ui-addon-doc-types.js +1 -4
- package/esm2015/utils/inspect.js +1 -7
- package/esm2015/utils/taiga-ui-addon-doc-utils.js +1 -4
- package/esm2015/utils/transliterate-keyboard-layout.js +1 -6
- package/fesm2015/taiga-ui-addon-doc-components.js +1 -40
- package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-directives.js +0 -4
- package/fesm2015/taiga-ui-addon-doc-directives.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-interfaces.js +0 -4
- package/fesm2015/taiga-ui-addon-doc-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-languages.js +0 -5
- package/fesm2015/taiga-ui-addon-doc-languages.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-services.js +0 -4
- package/fesm2015/taiga-ui-addon-doc-services.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-tokens.js +0 -71
- package/fesm2015/taiga-ui-addon-doc-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-types.js +1 -3
- package/fesm2015/taiga-ui-addon-doc-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-utils.js +0 -15
- package/fesm2015/taiga-ui-addon-doc-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc.js +0 -4
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/interfaces/page.d.ts +0 -4
- package/interfaces/taiga-ui-addon-doc-interfaces.d.ts +0 -3
- package/languages/taiga-ui-addon-doc-languages.d.ts +0 -3
- package/package.json +5 -5
- package/services/taiga-ui-addon-doc-services.d.ts +0 -3
- package/taiga-ui-addon-doc.d.ts +0 -3
- package/tokens/code-actions.d.ts +0 -3
- package/tokens/code-editor.d.ts +0 -3
- package/tokens/default-tabs.d.ts +0 -3
- package/tokens/example-content-processor.d.ts +0 -6
- package/tokens/excluded-properties.d.ts +0 -3
- package/tokens/i18n.d.ts +0 -28
- package/tokens/logo.d.ts +0 -3
- package/tokens/page-loaded.d.ts +0 -3
- package/tokens/pages.d.ts +0 -3
- package/tokens/scroll-behavior.d.ts +0 -3
- package/tokens/see-also.d.ts +0 -3
- package/tokens/source-code.d.ts +0 -3
- package/tokens/taiga-ui-addon-doc-tokens.d.ts +0 -3
- package/tokens/title.d.ts +0 -3
- package/types/taiga-ui-addon-doc-types.d.ts +0 -3
- package/utils/inspect.d.ts +0 -6
- package/utils/taiga-ui-addon-doc-utils.d.ts +0 -3
- package/utils/transliterate-keyboard-layout.d.ts +0 -5
|
@@ -731,7 +731,6 @@
|
|
|
731
731
|
}] });
|
|
732
732
|
|
|
733
733
|
var SERIALIZED_SUFFIX = '$';
|
|
734
|
-
// @bad TODO: refactor output and value sync
|
|
735
734
|
var TuiDocDocumentationPropertyConnectorDirective = /** @class */ (function () {
|
|
736
735
|
function TuiDocDocumentationPropertyConnectorDirective(template, locationRef, activatedRoute, urlSerializer, urlStateHandler) {
|
|
737
736
|
this.template = template;
|
|
@@ -790,7 +789,6 @@
|
|
|
790
789
|
this.setQueryParam(value);
|
|
791
790
|
};
|
|
792
791
|
TuiDocDocumentationPropertyConnectorDirective.prototype.emitEvent = function (event) {
|
|
793
|
-
// For more convenient debugging
|
|
794
792
|
console.info(this.attrName, event);
|
|
795
793
|
this.emits$.next(this.emits$.value + 1);
|
|
796
794
|
};
|
|
@@ -1028,13 +1026,6 @@
|
|
|
1028
1026
|
TuiInspectPipe.prototype.transform = function (value, depth) {
|
|
1029
1027
|
if (depth === void 0) { depth = 2; }
|
|
1030
1028
|
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
|
-
*/
|
|
1038
1029
|
return "\u03BB(x) => y";
|
|
1039
1030
|
}
|
|
1040
1031
|
return utils.tuiInspectAny(value, depth);
|
|
@@ -1068,8 +1059,6 @@
|
|
|
1068
1059
|
args: [{ name: "tuiIsPrimitivePolymorpheusContentPipe" }]
|
|
1069
1060
|
}] });
|
|
1070
1061
|
|
|
1071
|
-
// @bad TODO subscribe propertiesConnectors changes
|
|
1072
|
-
// @bad TODO refactor to make more flexible
|
|
1073
1062
|
var TuiDocDocumentationComponent = /** @class */ (function () {
|
|
1074
1063
|
function TuiDocDocumentationComponent(cdr, texts, excludedProperties, destroy$, getColor, getOpacity) {
|
|
1075
1064
|
this.cdr = cdr;
|
|
@@ -1293,9 +1282,6 @@
|
|
|
1293
1282
|
fullsize: true,
|
|
1294
1283
|
linkIcon: "tuiIconLink",
|
|
1295
1284
|
};
|
|
1296
|
-
/**
|
|
1297
|
-
* Default parameters for DocExample component
|
|
1298
|
-
*/
|
|
1299
1285
|
var TUI_DOC_EXAMPLE_OPTIONS = i6.tuiCreateToken(TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
|
|
1300
1286
|
function tuiDocExampleOptionsProvider(options) {
|
|
1301
1287
|
return i6.tuiProvideOptions(TUI_DOC_EXAMPLE_OPTIONS, options, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
|
|
@@ -1528,17 +1514,8 @@
|
|
|
1528
1514
|
}]
|
|
1529
1515
|
}] });
|
|
1530
1516
|
|
|
1531
|
-
/**
|
|
1532
|
-
* Page title
|
|
1533
|
-
*/
|
|
1534
1517
|
var NAVIGATION_TITLE = new i0.InjectionToken("[NAVIGATION_TITLE]");
|
|
1535
|
-
/**
|
|
1536
|
-
* Navigation sections labels for search
|
|
1537
|
-
*/
|
|
1538
1518
|
var NAVIGATION_LABELS = new i0.InjectionToken("[NAVIGATION_LABELS]");
|
|
1539
|
-
/**
|
|
1540
|
-
* Navigation pages
|
|
1541
|
-
*/
|
|
1542
1519
|
var NAVIGATION_ITEMS = new i0.InjectionToken("[NAVIGATION_ITEMS]");
|
|
1543
1520
|
var NAVIGATION_PROVIDERS = [
|
|
1544
1521
|
i6.TuiDestroyService,
|
|
@@ -1605,8 +1582,6 @@
|
|
|
1605
1582
|
this.search = new i5.FormControl('');
|
|
1606
1583
|
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); }));
|
|
1607
1584
|
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
|
|
1610
1585
|
title$.subscribe(function (title) {
|
|
1611
1586
|
cdr.markForCheck();
|
|
1612
1587
|
titleService.setTitle(title);
|
|
@@ -2109,14 +2084,11 @@
|
|
|
2109
2084
|
['spanish', i5$2.TuiCountryIsoCode.ES],
|
|
2110
2085
|
['turkish', i5$2.TuiCountryIsoCode.TR],
|
|
2111
2086
|
['ukrainian', i5$2.TuiCountryIsoCode.UA],
|
|
2087
|
+
['kazakh', i5$2.TuiCountryIsoCode.KZ],
|
|
2112
2088
|
['vietnamese', i5$2.TuiCountryIsoCode.VN],
|
|
2113
2089
|
]);
|
|
2114
2090
|
this.names = Array.from(this.flags.keys());
|
|
2115
2091
|
}
|
|
2116
|
-
/**
|
|
2117
|
-
* @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
|
|
2118
|
-
* TODO drop in v4.0
|
|
2119
|
-
*/
|
|
2120
2092
|
TuiLanguageSwitcherComponent.prototype.getFlagPath = function (code) {
|
|
2121
2093
|
return this.flagPipe.transform(code);
|
|
2122
2094
|
};
|
|
@@ -2124,7 +2096,6 @@
|
|
|
2124
2096
|
}());
|
|
2125
2097
|
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 });
|
|
2126
2098
|
TuiLanguageSwitcherComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiLanguageSwitcherComponent, selector: "tui-language-switcher", providers: [
|
|
2127
|
-
// TODO: for backward compatibility only. Drop in v4.0
|
|
2128
2099
|
i2.TuiFlagPipe,
|
|
2129
2100
|
], 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 });
|
|
2130
2101
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiLanguageSwitcherComponent, decorators: [{
|
|
@@ -2134,7 +2105,6 @@
|
|
|
2134
2105
|
templateUrl: './language-switcher.component.html',
|
|
2135
2106
|
styleUrls: ['./language-switcher.component.less'],
|
|
2136
2107
|
providers: [
|
|
2137
|
-
// TODO: for backward compatibility only. Drop in v4.0
|
|
2138
2108
|
i2.TuiFlagPipe,
|
|
2139
2109
|
],
|
|
2140
2110
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -2222,8 +2192,6 @@
|
|
|
2222
2192
|
templateUrl: './main.template.html',
|
|
2223
2193
|
styleUrls: ['./main.style.less'],
|
|
2224
2194
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2225
|
-
// @note: This one was default on purpose so we can test demo in default mode.
|
|
2226
|
-
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
|
2227
2195
|
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
2228
2196
|
providers: [
|
|
2229
2197
|
{
|
|
@@ -2297,9 +2265,6 @@
|
|
|
2297
2265
|
}]
|
|
2298
2266
|
}] });
|
|
2299
2267
|
|
|
2300
|
-
/**
|
|
2301
|
-
* Array if related page titles
|
|
2302
|
-
*/
|
|
2303
2268
|
var PAGE_SEE_ALSO = new i0.InjectionToken("[PAGE_SEE_ALSO]");
|
|
2304
2269
|
var PAGE_PROVIDERS = [
|
|
2305
2270
|
{
|
|
@@ -2436,10 +2401,6 @@
|
|
|
2436
2401
|
}]
|
|
2437
2402
|
}] });
|
|
2438
2403
|
|
|
2439
|
-
/**
|
|
2440
|
-
* Generated bundle index. Do not edit.
|
|
2441
|
-
*/
|
|
2442
|
-
|
|
2443
2404
|
exports.PAGE_PROVIDERS = PAGE_PROVIDERS;
|
|
2444
2405
|
exports.PAGE_SEE_ALSO = PAGE_SEE_ALSO;
|
|
2445
2406
|
exports.TUI_DOC_EXAMPLE_DEFAULT_OPTIONS = TUI_DOC_EXAMPLE_DEFAULT_OPTIONS;
|