@taiga-ui/addon-doc 3.18.0-dev.main-a12f1fc → 3.19.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.umd.js +67 -24
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/components/example/example-options.d.ts +8 -0
- package/components/example/example.component.d.ts +4 -2
- package/components/language-switcher/language-switcher.component.d.ts +7 -4
- package/components/language-switcher/language-switcher.module.d.ts +3 -3
- package/esm2015/components/example/example-options.js +16 -0
- package/esm2015/components/example/example.component.js +9 -7
- package/esm2015/components/language-switcher/language-switcher.component.js +20 -12
- package/esm2015/components/language-switcher/language-switcher.module.js +21 -5
- package/esm2015/public-api.js +2 -1
- package/fesm2015/taiga-ui-addon-doc.js +66 -26
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +10 -10
- package/public-api.d.ts +1 -0
|
@@ -14,7 +14,7 @@ import { ALWAYS_FALSE_HANDLER, TuiDestroyService, tuiPure, tuiClamp, tuiPx, TUI_
|
|
|
14
14
|
import * as i1 from '@taiga-ui/kit';
|
|
15
15
|
import { TUI_COPY_TEXTS, TuiSelectModule, TuiRadioBlockModule, TuiCheckboxLabeledModule, TuiDataListWrapperModule, TuiBadgeModule, TuiToggleModule, TuiInputCountModule, TuiTabsModule, TuiInputModule, TuiAccordionModule, TuiTagModule } from '@taiga-ui/kit';
|
|
16
16
|
import * as i2$1 from '@taiga-ui/core';
|
|
17
|
-
import { TuiButtonModule, TuiModeDirective, TuiLinkModule, TuiExpandModule, TuiGroupModule, TuiTooltipModule, TuiModeModule, TuiSvgModule, TuiDataListModule, TuiTextfieldControllerModule, TuiHintModule, TuiPrimitiveTextfieldModule, TuiDropdownModule, TuiNotificationModule, tuiCapitalizeFirstLetter, TuiAlertService,
|
|
17
|
+
import { TuiButtonModule, TuiModeDirective, TuiLinkModule, TuiExpandModule, TuiGroupModule, TuiTooltipModule, TuiModeModule, TuiSvgModule, TuiDataListModule, TuiTextfieldControllerModule, TuiHintModule, TuiPrimitiveTextfieldModule, TuiDropdownModule, TuiNotificationModule, tuiCapitalizeFirstLetter, TuiAlertService, TuiFlagPipe, TuiFlagPipeModule, TuiHostedDropdownModule, TuiScrollbarModule, TuiThemeNightModule, TuiRootModule, TuiDialogModule, TuiAlertModule } from '@taiga-ui/core';
|
|
18
18
|
import * as i5 from '@angular/forms';
|
|
19
19
|
import { FormGroup, ReactiveFormsModule, FormsModule, FormControl } from '@angular/forms';
|
|
20
20
|
import * as i6 from '@angular/router';
|
|
@@ -1008,12 +1008,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1008
1008
|
}]
|
|
1009
1009
|
}] });
|
|
1010
1010
|
|
|
1011
|
-
const TUI_EXAMPLE_PRIMARY_FILE_NAME = {
|
|
1012
|
-
TS: `TypeScript`,
|
|
1013
|
-
LESS: `LESS`,
|
|
1014
|
-
HTML: `HTML`,
|
|
1015
|
-
};
|
|
1016
|
-
|
|
1017
1011
|
const TUI_DOC_CODE_ACTIONS = new InjectionToken(`[TUI_DOC_CODE_ACTIONS]: Code actions for the opened tab with code example`, {
|
|
1018
1012
|
factory: () => ``,
|
|
1019
1013
|
});
|
|
@@ -1032,6 +1026,26 @@ function tuiRawLoadRecord(example) {
|
|
|
1032
1026
|
});
|
|
1033
1027
|
}
|
|
1034
1028
|
|
|
1029
|
+
const TUI_EXAMPLE_PRIMARY_FILE_NAME = {
|
|
1030
|
+
TS: `TypeScript`,
|
|
1031
|
+
LESS: `LESS`,
|
|
1032
|
+
HTML: `HTML`,
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
const TUI_DOC_EXAMPLE_DEFAULT_OPTIONS = {
|
|
1036
|
+
codeEditorVisibilityHandler: files => Boolean(files[TUI_EXAMPLE_PRIMARY_FILE_NAME.TS] &&
|
|
1037
|
+
files[TUI_EXAMPLE_PRIMARY_FILE_NAME.HTML]),
|
|
1038
|
+
};
|
|
1039
|
+
const TUI_DOC_EXAMPLE_OPTIONS = new InjectionToken(`[TUI_DOC_EXAMPLE_OPTIONS]: Default parameters for DocExample component`, {
|
|
1040
|
+
factory: () => TUI_DOC_EXAMPLE_DEFAULT_OPTIONS,
|
|
1041
|
+
});
|
|
1042
|
+
function tuiDocExampleOptionsProvider(options) {
|
|
1043
|
+
return {
|
|
1044
|
+
provide: TUI_DOC_EXAMPLE_OPTIONS,
|
|
1045
|
+
useValue: Object.assign(Object.assign({}, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS), options),
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1035
1049
|
class TuiDocExampleCapitalizePipe {
|
|
1036
1050
|
transform(content) {
|
|
1037
1051
|
return tuiIsString(content) ? tuiCapitalizeFirstLetter(content) : content;
|
|
@@ -1057,7 +1071,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1057
1071
|
}] });
|
|
1058
1072
|
|
|
1059
1073
|
class TuiDocExampleComponent {
|
|
1060
|
-
constructor(clipboard, alertService, location, copyTexts$, texts, codeEditor, processContent, isCypress, codeActions, router, route, ngLocation) {
|
|
1074
|
+
constructor(clipboard, alertService, location, copyTexts$, texts, codeEditor, processContent, isCypress, codeActions, router, route, ngLocation, options) {
|
|
1061
1075
|
this.clipboard = clipboard;
|
|
1062
1076
|
this.alertService = alertService;
|
|
1063
1077
|
this.location = location;
|
|
@@ -1070,6 +1084,7 @@ class TuiDocExampleComponent {
|
|
|
1070
1084
|
this.router = router;
|
|
1071
1085
|
this.route = route;
|
|
1072
1086
|
this.ngLocation = ngLocation;
|
|
1087
|
+
this.options = options;
|
|
1073
1088
|
this.rawLoader$$ = new BehaviorSubject({});
|
|
1074
1089
|
this.id = null;
|
|
1075
1090
|
this.heading = '';
|
|
@@ -1081,9 +1096,7 @@ class TuiDocExampleComponent {
|
|
|
1081
1096
|
this.copy$ = this.copyTexts$.pipe(map(([copy]) => copy));
|
|
1082
1097
|
this.processor$ = this.rawLoader$$.pipe(switchMap(tuiRawLoadRecord), map(value => this.processContent(value)));
|
|
1083
1098
|
this.loading$ = new Subject();
|
|
1084
|
-
this.visible = (files) => Boolean(this.codeEditor &&
|
|
1085
|
-
files[TUI_EXAMPLE_PRIMARY_FILE_NAME.TS] &&
|
|
1086
|
-
files[TUI_EXAMPLE_PRIMARY_FILE_NAME.HTML]);
|
|
1099
|
+
this.visible = (files) => Boolean(this.codeEditor && this.options.codeEditorVisibilityHandler(files));
|
|
1087
1100
|
}
|
|
1088
1101
|
set content(content) {
|
|
1089
1102
|
this.rawLoader$$.next(content);
|
|
@@ -1115,7 +1128,7 @@ class TuiDocExampleComponent {
|
|
|
1115
1128
|
this.ngLocation.go(url);
|
|
1116
1129
|
}
|
|
1117
1130
|
}
|
|
1118
|
-
TuiDocExampleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocExampleComponent, deps: [{ token: Clipboard }, { token: TuiAlertService }, { token: LOCATION }, { token: TUI_COPY_TEXTS }, { token: TUI_DOC_EXAMPLE_TEXTS }, { token: TUI_DOC_CODE_EDITOR, optional: true }, { token: TUI_DOC_EXAMPLE_CONTENT_PROCESSOR }, { token: TUI_IS_CYPRESS }, { token: TUI_DOC_CODE_ACTIONS }, { token: Router }, { token: ActivatedRoute }, { token: Location$1 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1131
|
+
TuiDocExampleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocExampleComponent, deps: [{ token: Clipboard }, { token: TuiAlertService }, { token: LOCATION }, { token: TUI_COPY_TEXTS }, { token: TUI_DOC_EXAMPLE_TEXTS }, { token: TUI_DOC_CODE_EDITOR, optional: true }, { token: TUI_DOC_EXAMPLE_CONTENT_PROCESSOR }, { token: TUI_IS_CYPRESS }, { token: TUI_DOC_CODE_ACTIONS }, { token: Router }, { token: ActivatedRoute }, { token: Location$1 }, { token: TUI_DOC_EXAMPLE_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
1119
1132
|
TuiDocExampleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiDocExampleComponent, selector: "tui-doc-example", inputs: { id: "id", heading: "heading", description: "description", content: "content", componentName: "componentName" }, ngImport: i0, template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n *polymorpheusOutlet=\"heading | tuiDocExampleCapitalize as text\"\n [textContent]=\"text\"\n ></span>\n <button\n *ngIf=\"id\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconLinkLarge\"\n appearance=\"icon\"\n class=\"t-link-icon\"\n [title]=\"copy$ | async\"\n (click)=\"copyExampleLink()\"\n ></button>\n</h3>\n<h4\n *ngIf=\"description\"\n class=\"t-description\"\n>\n <ng-container *polymorpheusOutlet=\"description | tuiDocExampleCapitalize as text\">\n {{ text }}\n </ng-container>\n</h4>\n\n<div\n *ngIf=\"processor$ | async as files\"\n class=\"t-example\"\n>\n <ng-container *ngIf=\"files | tuiDocExampleGetTabs : defaultTab as tabs\">\n <div class=\"t-tabs-wrapper\">\n <tui-tabs-with-more\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabs\">\n <button\n *tuiItem\n tuiTab\n >\n {{ tab }}\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <button\n *ngIf=\"files | tuiMapper : visible\"\n tuiButton\n appearance=\"flat\"\n size=\"s\"\n type=\"button\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n Edit on {{ codeEditor!.name }}\n </button>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isCypress\"\n [class.t-content_visible]=\"activeItemIndex === index\"\n >\n <ng-container\n *ngIf=\"index === defaultTabIndex; else anotherTab\"\n [ngTemplateOutlet]=\"preview\"\n ></ng-container>\n <ng-template #anotherTab>\n <ng-container\n [ngTemplateOutlet]=\"codeSection\"\n [ngTemplateOutletContext]=\"{$implicit: files[tabs[activeItemIndex]] || ''}\"\n ></ng-container>\n </ng-template>\n </div>\n </ng-container>\n</div>\n\n<ng-template #preview>\n <div\n automation-id=\"tui-doc-example\"\n class=\"t-demo\"\n >\n <ng-content></ng-content>\n </div>\n</ng-template>\n\n<ng-template\n #codeSection\n let-code\n>\n <section class=\"t-code-actions\">\n <ng-container *ngFor=\"let action of codeActions\">\n <ng-container *polymorpheusOutlet=\"action as text; context: {$implicit: code}\">\n {{ text }}\n </ng-container>\n </ng-container>\n <tui-doc-copy [cdkCopyToClipboard]=\"code\"></tui-doc-copy>\n </section>\n <tui-doc-code [code]=\"code\"></tui-doc-code>\n</ng-template>\n", styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host :host-context(tui-root._mobile){padding-top:2rem}.t-title{font:var(--tui-font-heading-5);margin:0 0 .5rem}:host-context(tui-root._mobile) .t-title{font:var(--tui-font-heading-6)}.t-description{font:var(--tui-font-text-m);font-weight:normal;margin:0}.t-example{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}:host-context(tui-root._mobile) .t-tabs-wrapper{padding:0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.t-demo::-webkit-scrollbar,.t-demo::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo::-webkit-scrollbar{background-color:transparent}.t-demo::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host-context(tui-root._mobile) .t-demo{padding:1rem}.t-code-actions{position:absolute;top:4.375rem;right:1rem;display:flex;justify-content:flex-end;align-items:center}.t-code-actions>*{margin-left:.5rem}.t-link-icon{margin-left:.3rem;vertical-align:baseline}.t-content{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated{transition:opacity .3s ease-in-out}.t-content_visible{height:auto;visibility:visible;opacity:1}\n"], components: [{ type: i2$1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i1.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { type: i1.TuiTabComponent, selector: "a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]" }, { type: TuiDocCopyComponent, selector: "tui-doc-copy" }, { type: TuiDocCodeComponent, selector: "tui-doc-code", inputs: ["filename", "code"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6$2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6$1.TuiItemDirective, selector: "[tuiItem]" }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], pipes: { "tuiDocExampleCapitalize": TuiDocExampleCapitalizePipe, "async": i4.AsyncPipe, "tuiDocExampleGetTabs": TuiDocExampleGetTabsPipe, "tuiMapper": i6$1.TuiMapperPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1120
1133
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocExampleComponent, decorators: [{
|
|
1121
1134
|
type: Component,
|
|
@@ -1163,6 +1176,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1163
1176
|
}] }, { type: i4.Location, decorators: [{
|
|
1164
1177
|
type: Inject,
|
|
1165
1178
|
args: [Location$1]
|
|
1179
|
+
}] }, { type: undefined, decorators: [{
|
|
1180
|
+
type: Inject,
|
|
1181
|
+
args: [TUI_DOC_EXAMPLE_OPTIONS]
|
|
1166
1182
|
}] }]; }, propDecorators: { id: [{
|
|
1167
1183
|
type: Input
|
|
1168
1184
|
}], heading: [{
|
|
@@ -1227,12 +1243,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1227
1243
|
}] });
|
|
1228
1244
|
|
|
1229
1245
|
class TuiLanguageSwitcherComponent {
|
|
1230
|
-
constructor(switcher,
|
|
1246
|
+
constructor(switcher, flagPipe) {
|
|
1231
1247
|
this.switcher = switcher;
|
|
1232
|
-
this.
|
|
1233
|
-
this.path = this.options
|
|
1234
|
-
.path('tuiIcon')
|
|
1235
|
-
.replace('tuiIcon.svg#tuiIcon', '');
|
|
1248
|
+
this.flagPipe = flagPipe;
|
|
1236
1249
|
this.language = new FormControl(tuiCapitalizeFirstLetter(this.switcher.language));
|
|
1237
1250
|
this.flags = new Map([
|
|
1238
1251
|
['chinese', TuiCountryIsoCode.CN],
|
|
@@ -1251,39 +1264,66 @@ class TuiLanguageSwitcherComponent {
|
|
|
1251
1264
|
]);
|
|
1252
1265
|
this.names = Array.from(this.flags.keys());
|
|
1253
1266
|
}
|
|
1267
|
+
/**
|
|
1268
|
+
* @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
|
|
1269
|
+
* TODO drop in v4.0
|
|
1270
|
+
*/
|
|
1254
1271
|
getFlagPath(code) {
|
|
1255
|
-
return
|
|
1272
|
+
return this.flagPipe.transform(code);
|
|
1256
1273
|
}
|
|
1257
1274
|
}
|
|
1258
|
-
TuiLanguageSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherComponent, deps: [{ token: TuiLanguageSwitcher }, { token:
|
|
1259
|
-
TuiLanguageSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiLanguageSwitcherComponent, selector: "tui-language-switcher",
|
|
1275
|
+
TuiLanguageSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherComponent, deps: [{ token: TuiLanguageSwitcher }, { token: TuiFlagPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
1276
|
+
TuiLanguageSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiLanguageSwitcherComponent, selector: "tui-language-switcher", providers: [
|
|
1277
|
+
// TODO: for backward compatibility only. Drop in v4.0
|
|
1278
|
+
TuiFlagPipe,
|
|
1279
|
+
], ngImport: i0, 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.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i2$1.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i2$1.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i1.TuiSelectDirective, selector: "tui-select" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "titlecase": i4.TitleCasePipe, "tuiFlag": i2$1.TuiFlagPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1260
1280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherComponent, decorators: [{
|
|
1261
1281
|
type: Component,
|
|
1262
1282
|
args: [{
|
|
1263
1283
|
selector: 'tui-language-switcher',
|
|
1264
1284
|
templateUrl: './language-switcher.component.html',
|
|
1265
1285
|
styleUrls: ['./language-switcher.component.less'],
|
|
1286
|
+
providers: [
|
|
1287
|
+
// TODO: for backward compatibility only. Drop in v4.0
|
|
1288
|
+
TuiFlagPipe,
|
|
1289
|
+
],
|
|
1266
1290
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1267
1291
|
}]
|
|
1268
1292
|
}], ctorParameters: function () { return [{ type: i5$1.TuiLanguageSwitcher, decorators: [{
|
|
1269
1293
|
type: Inject,
|
|
1270
1294
|
args: [TuiLanguageSwitcher]
|
|
1271
|
-
}] }, { type:
|
|
1295
|
+
}] }, { type: i2$1.TuiFlagPipe, decorators: [{
|
|
1272
1296
|
type: Inject,
|
|
1273
|
-
args: [
|
|
1297
|
+
args: [TuiFlagPipe]
|
|
1274
1298
|
}] }]; } });
|
|
1275
1299
|
|
|
1276
1300
|
class TuiLanguageSwitcherModule {
|
|
1277
1301
|
}
|
|
1278
1302
|
TuiLanguageSwitcherModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1279
|
-
TuiLanguageSwitcherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherModule, declarations: [TuiLanguageSwitcherComponent], imports: [CommonModule,
|
|
1280
|
-
|
|
1303
|
+
TuiLanguageSwitcherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherModule, declarations: [TuiLanguageSwitcherComponent], imports: [CommonModule,
|
|
1304
|
+
TuiFlagPipeModule,
|
|
1305
|
+
TuiSelectModule,
|
|
1306
|
+
TuiDataListModule,
|
|
1307
|
+
ReactiveFormsModule], exports: [TuiLanguageSwitcherComponent] });
|
|
1308
|
+
TuiLanguageSwitcherModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherModule, imports: [[
|
|
1309
|
+
CommonModule,
|
|
1310
|
+
TuiFlagPipeModule,
|
|
1311
|
+
TuiSelectModule,
|
|
1312
|
+
TuiDataListModule,
|
|
1313
|
+
ReactiveFormsModule,
|
|
1314
|
+
]] });
|
|
1281
1315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiLanguageSwitcherModule, decorators: [{
|
|
1282
1316
|
type: NgModule,
|
|
1283
1317
|
args: [{
|
|
1284
1318
|
exports: [TuiLanguageSwitcherComponent],
|
|
1285
1319
|
declarations: [TuiLanguageSwitcherComponent],
|
|
1286
|
-
imports: [
|
|
1320
|
+
imports: [
|
|
1321
|
+
CommonModule,
|
|
1322
|
+
TuiFlagPipeModule,
|
|
1323
|
+
TuiSelectModule,
|
|
1324
|
+
TuiDataListModule,
|
|
1325
|
+
ReactiveFormsModule,
|
|
1326
|
+
],
|
|
1287
1327
|
}]
|
|
1288
1328
|
}] });
|
|
1289
1329
|
|
|
@@ -2208,5 +2248,5 @@ function tuiGenerateRoutes(type) {
|
|
|
2208
2248
|
* Generated bundle index. Do not edit.
|
|
2209
2249
|
*/
|
|
2210
2250
|
|
|
2211
|
-
export { TUI_DOC_CODE_ACTIONS, TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, TUI_DOC_DEMO_TEXTS, TUI_DOC_DOCUMENTATION_TEXTS, TUI_DOC_EXAMPLE_CONTENT_PROCESSOR, TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR, TUI_DOC_EXAMPLE_TEXTS, TUI_DOC_EXCLUDED_PROPERTIES, TUI_DOC_LOGO, TUI_DOC_MENU_TEXT, TUI_DOC_PAGES, TUI_DOC_PAGE_LOADED, TUI_DOC_RUSSIAN, TUI_DOC_SCROLL_BEHAVIOR, TUI_DOC_SEARCH_TEXT, TUI_DOC_SEE_ALSO, TUI_DOC_SEE_ALSO_TEXT, TUI_DOC_SOURCE_CODE, TUI_DOC_SOURCE_CODE_TEXT, TUI_DOC_TITLE, TUI_EXAMPLE_PRIMARY_FILE_NAME, TuiAddonDocModule, TuiDocCodeComponent, TuiDocCodeModule, TuiDocCopyComponent, TuiDocCopyModule, TuiDocDemoComponent, TuiDocDemoModule, TuiDocDocumentationComponent, TuiDocDocumentationModule, TuiDocDocumentationPropertyConnectorDirective, TuiDocExampleCapitalizePipe, TuiDocExampleComponent, TuiDocExampleGetTabsPipe, TuiDocExampleModule, TuiDocMainComponent, TuiDocMainModule, TuiDocNavigationComponent, TuiDocNavigationModule, TuiDocPageComponent, TuiDocPageModule, TuiDocPageTabConnectorDirective, TuiInspectPipe, TuiLanguageSwitcherComponent, TuiLanguageSwitcherModule, TuiScrollIntoViewLinkDirective, TuiScrollIntoViewLinkModule, tuiCoerceValue, tuiDocExcludeProperties, tuiGenerateRoutes, tuiRawLoad, tuiRawLoadRecord, tuiTryParseMarkdownCodeBlock };
|
|
2251
|
+
export { TUI_DOC_CODE_ACTIONS, TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, TUI_DOC_DEMO_TEXTS, TUI_DOC_DOCUMENTATION_TEXTS, TUI_DOC_EXAMPLE_CONTENT_PROCESSOR, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS, TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR, TUI_DOC_EXAMPLE_OPTIONS, TUI_DOC_EXAMPLE_TEXTS, TUI_DOC_EXCLUDED_PROPERTIES, TUI_DOC_LOGO, TUI_DOC_MENU_TEXT, TUI_DOC_PAGES, TUI_DOC_PAGE_LOADED, TUI_DOC_RUSSIAN, TUI_DOC_SCROLL_BEHAVIOR, TUI_DOC_SEARCH_TEXT, TUI_DOC_SEE_ALSO, TUI_DOC_SEE_ALSO_TEXT, TUI_DOC_SOURCE_CODE, TUI_DOC_SOURCE_CODE_TEXT, TUI_DOC_TITLE, TUI_EXAMPLE_PRIMARY_FILE_NAME, TuiAddonDocModule, TuiDocCodeComponent, TuiDocCodeModule, TuiDocCopyComponent, TuiDocCopyModule, TuiDocDemoComponent, TuiDocDemoModule, TuiDocDocumentationComponent, TuiDocDocumentationModule, TuiDocDocumentationPropertyConnectorDirective, TuiDocExampleCapitalizePipe, TuiDocExampleComponent, TuiDocExampleGetTabsPipe, TuiDocExampleModule, TuiDocMainComponent, TuiDocMainModule, TuiDocNavigationComponent, TuiDocNavigationModule, TuiDocPageComponent, TuiDocPageModule, TuiDocPageTabConnectorDirective, TuiInspectPipe, TuiLanguageSwitcherComponent, TuiLanguageSwitcherModule, TuiScrollIntoViewLinkDirective, TuiScrollIntoViewLinkModule, tuiCoerceValue, tuiDocExampleOptionsProvider, tuiDocExcludeProperties, tuiGenerateRoutes, tuiRawLoad, tuiRawLoadRecord, tuiTryParseMarkdownCodeBlock };
|
|
2212
2252
|
//# sourceMappingURL=taiga-ui-addon-doc.js.map
|