@taiga-ui/addon-doc 3.14.0-dev.main-3f74fe5 → 3.14.0-dev.main-49a682e

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.
@@ -404,8 +404,8 @@
404
404
 
405
405
  var TuiDocCodeComponent = /** @class */ (function () {
406
406
  function TuiDocCodeComponent() {
407
- this.rawLoader$$ = new i9.BehaviorSubject("");
408
- this.filename = "";
407
+ this.rawLoader$$ = new i9.BehaviorSubject('');
408
+ this.filename = '';
409
409
  this.processor$ = this.rawLoader$$.pipe(operators.switchMap(tuiRawLoad), operators.map(tuiTryParseMarkdownCodeBlock));
410
410
  }
411
411
  Object.defineProperty(TuiDocCodeComponent.prototype, "code", {
@@ -429,9 +429,9 @@
429
429
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeComponent, decorators: [{
430
430
  type: i0.Component,
431
431
  args: [{
432
- selector: "tui-doc-code",
433
- templateUrl: "./code.template.html",
434
- styleUrls: ["./code.style.less"],
432
+ selector: 'tui-doc-code',
433
+ templateUrl: './code.template.html',
434
+ styleUrls: ['./code.style.less'],
435
435
  }]
436
436
  }], propDecorators: { filename: [{
437
437
  type: i0.Input
@@ -439,7 +439,7 @@
439
439
  type: i0.Input
440
440
  }], hasFilename: [{
441
441
  type: i0.HostBinding,
442
- args: ["class._has-filename"]
442
+ args: ['class._has-filename']
443
443
  }] } });
444
444
 
445
445
  var TuiDocCodeModule = /** @class */ (function () {
@@ -485,9 +485,9 @@
485
485
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyComponent, decorators: [{
486
486
  type: i0.Component,
487
487
  args: [{
488
- selector: "tui-doc-copy",
489
- templateUrl: "./copy.template.html",
490
- styleUrls: ["./copy.style.less"],
488
+ selector: 'tui-doc-copy',
489
+ templateUrl: './copy.template.html',
490
+ styleUrls: ['./copy.style.less'],
491
491
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
492
492
  providers: [i6.TuiDestroyService],
493
493
  }]
@@ -578,14 +578,14 @@
578
578
  this.texts = texts;
579
579
  this.control = null;
580
580
  this.template = null;
581
- this.updateOnVariants = ["change", "blur", "submit"];
581
+ this.updateOnVariants = ['change', 'blur', 'submit'];
582
582
  this.updateOn = this.updateOnVariants[0];
583
583
  this.expanded = false;
584
584
  this.opaque = true;
585
585
  this.mode = this.getUrlTree().queryParams.tuiMode || null;
586
586
  this.sandboxWidth = parseInt(this.getUrlTree().queryParams.sandboxWidth, 10);
587
587
  this.change$ = new i9.Subject();
588
- this.items = ["onLight", "onDark"];
588
+ this.items = ['onLight', 'onDark'];
589
589
  }
590
590
  TuiDocDemoComponent.prototype.onResize = function () {
591
591
  this.updateWidth();
@@ -620,7 +620,7 @@
620
620
  var clamped = Math.round(i6.tuiClamp(safe, MIN_WIDTH, total)) - this.delta;
621
621
  var validated = safe < total ? clamped : NaN;
622
622
  this.resizer.nativeElement.textContent = String(clamped);
623
- this.resizeable.nativeElement.style.width = validated ? i6.tuiPx(safe) : "";
623
+ this.resizeable.nativeElement.style.width = validated ? i6.tuiPx(safe) : '';
624
624
  this.sandboxWidth = validated;
625
625
  };
626
626
  Object.defineProperty(TuiDocDemoComponent.prototype, "delta", {
@@ -668,9 +668,9 @@
668
668
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoComponent, decorators: [{
669
669
  type: i0.Component,
670
670
  args: [{
671
- selector: "tui-doc-demo",
672
- templateUrl: "./demo.template.html",
673
- styleUrls: ["./demo.style.less"],
671
+ selector: 'tui-doc-demo',
672
+ templateUrl: './demo.template.html',
673
+ styleUrls: ['./demo.style.less'],
674
674
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
675
675
  providers: [
676
676
  i6.TuiDestroyService,
@@ -702,10 +702,10 @@
702
702
  args: [i6.TuiResizeableDirective, { static: true }]
703
703
  }], content: [{
704
704
  type: i0.ViewChild,
705
- args: ["content", { static: true }]
705
+ args: ['content', { static: true }]
706
706
  }], resizer: [{
707
707
  type: i0.ViewChild,
708
- args: ["resizer", { static: true }]
708
+ args: ['resizer', { static: true }]
709
709
  }], control: [{
710
710
  type: i0.Input
711
711
  }], template: [{
@@ -713,10 +713,10 @@
713
713
  args: [i0.TemplateRef]
714
714
  }], onResize: [{
715
715
  type: i0.HostListener,
716
- args: ["window:resize"]
716
+ args: ['window:resize']
717
717
  }], onMouseUp: [{
718
718
  type: i0.HostListener,
719
- args: ["document:mouseup.silent"]
719
+ args: ['document:mouseup.silent']
720
720
  }], updateUrl: [] } });
721
721
 
722
722
  var TuiDocDemoModule = /** @class */ (function () {
@@ -838,7 +838,7 @@
838
838
  return value.startsWith("{") && value.endsWith("}");
839
839
  }
840
840
 
841
- var SERIALIZED_SUFFIX = "$";
841
+ var SERIALIZED_SUFFIX = '$';
842
842
  // @bad TODO: refactor output and value sync
843
843
  var TuiDocDocumentationPropertyConnectorDirective = /** @class */ (function () {
844
844
  function TuiDocDocumentationPropertyConnectorDirective(template, locationRef, activatedRoute, urlSerializer) {
@@ -846,9 +846,9 @@
846
846
  this.locationRef = locationRef;
847
847
  this.activatedRoute = activatedRoute;
848
848
  this.urlSerializer = urlSerializer;
849
- this.documentationPropertyName = "";
849
+ this.documentationPropertyName = '';
850
850
  this.documentationPropertyMode = null;
851
- this.documentationPropertyType = "";
851
+ this.documentationPropertyType = '';
852
852
  this.documentationPropertyDeprecated = false;
853
853
  this.documentationPropertyValues = null;
854
854
  this.documentationPropertyValueChange = new i0.EventEmitter();
@@ -861,11 +861,11 @@
861
861
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "attrName", {
862
862
  get: function () {
863
863
  switch (this.documentationPropertyMode) {
864
- case "input":
864
+ case 'input':
865
865
  return "[" + this.documentationPropertyName + "]";
866
- case "output":
866
+ case 'output':
867
867
  return "(" + this.documentationPropertyName + ")";
868
- case "input-output":
868
+ case 'input-output':
869
869
  return "[(" + this.documentationPropertyName + ")]";
870
870
  default:
871
871
  return this.documentationPropertyName;
@@ -883,7 +883,7 @@
883
883
  });
884
884
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "shouldShowValues", {
885
885
  get: function () {
886
- return this.documentationPropertyMode !== "output";
886
+ return this.documentationPropertyMode !== 'output';
887
887
  },
888
888
  enumerable: false,
889
889
  configurable: true
@@ -919,7 +919,7 @@
919
919
  var computedValue = isValueAvailableByKey && this.documentationPropertyValues
920
920
  ? this.documentationPropertyValues.indexOf(value)
921
921
  : value;
922
- var suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : "";
922
+ var suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : '';
923
923
  var propName = this.documentationPropertyName + suffix;
924
924
  tree.queryParams = Object.assign(Object.assign({}, tree.queryParams), (_a = {}, _a[propName] = computedValue, _a));
925
925
  this.locationRef.go(String(tree));
@@ -931,8 +931,8 @@
931
931
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationPropertyConnectorDirective, decorators: [{
932
932
  type: i0.Directive,
933
933
  args: [{
934
- selector: "ng-template[documentationPropertyName]",
935
- exportAs: "documentationProperty",
934
+ selector: 'ng-template[documentationPropertyName]',
935
+ exportAs: 'documentationProperty',
936
936
  }]
937
937
  }], ctorParameters: function () {
938
938
  return [{ type: i0__namespace.TemplateRef, decorators: [{
@@ -1035,7 +1035,7 @@
1035
1035
  set: function (opacity) {
1036
1036
  var nativeFocusableElement = this.tuiFocusableComponent.nativeFocusableElement;
1037
1037
  if (nativeFocusableElement) {
1038
- this.renderer.setStyle(nativeFocusableElement, "opacity", opacity / 100);
1038
+ this.renderer.setStyle(nativeFocusableElement, 'opacity', opacity / 100);
1039
1039
  }
1040
1040
  },
1041
1041
  enumerable: false,
@@ -1048,7 +1048,7 @@
1048
1048
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityDirective, decorators: [{
1049
1049
  type: i0.Directive,
1050
1050
  args: [{
1051
- selector: "[tuiInputOpacity]",
1051
+ selector: '[tuiInputOpacity]',
1052
1052
  }]
1053
1053
  }], ctorParameters: function () {
1054
1054
  return [{ type: i0__namespace.Renderer2, decorators: [{
@@ -1244,7 +1244,7 @@
1244
1244
  this.destroy$ = destroy$;
1245
1245
  this.getColor = getColor;
1246
1246
  this.getOpacity = getOpacity;
1247
- this.heading = "";
1247
+ this.heading = '';
1248
1248
  this.showValues = true;
1249
1249
  this.isAPI = false;
1250
1250
  this.propertiesConnectors = i6.EMPTY_QUERY;
@@ -1267,17 +1267,17 @@
1267
1267
  configurable: true
1268
1268
  });
1269
1269
  TuiDocDocumentationComponent.prototype.onColorChange = function (connector, color) {
1270
- var opacity = this.getOpacity.transform(connector.documentationPropertyValue || "");
1270
+ var opacity = this.getOpacity.transform(connector.documentationPropertyValue || '');
1271
1271
  if (opacity === 100) {
1272
1272
  connector.onValueChange(color);
1273
1273
  return;
1274
1274
  }
1275
- var rgb = i6.tuiHexToRgb(color).join(", ");
1275
+ var rgb = i6.tuiHexToRgb(color).join(', ');
1276
1276
  var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
1277
1277
  connector.onValueChange(result);
1278
1278
  };
1279
1279
  TuiDocDocumentationComponent.prototype.onOpacityChange = function (connector, opacity) {
1280
- var hex = this.getColor.transform(connector.documentationPropertyValue || "");
1280
+ var hex = this.getColor.transform(connector.documentationPropertyValue || '');
1281
1281
  var rgb = i6.tuiHexToRgb(hex);
1282
1282
  var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
1283
1283
  connector.onValueChange(result);
@@ -1285,21 +1285,21 @@
1285
1285
  return TuiDocDocumentationComponent;
1286
1286
  }());
1287
1287
  TuiDocDocumentationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TUI_DOC_DOCUMENTATION_TEXTS }, { token: TUI_DOC_EXCLUDED_PROPERTIES }, { token: i6.TuiDestroyService, self: true }, { token: TuiGetColorPipe }, { token: TuiGetOpacityPipe }], target: i0__namespace.ɵɵFactoryTarget.Component });
1288
- TuiDocDocumentationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocDocumentationComponent, selector: "tui-doc-documentation", inputs: { heading: "heading", showValues: "showValues", isAPI: "isAPI" }, providers: [TuiGetColorPipe, TuiGetOpacityPipe, i6.TuiDestroyService], queries: [{ propertyName: "propertiesConnectors", predicate: TuiDocDocumentationPropertyConnectorDirective }], ngImport: i0__namespace, template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-th_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of $any(propertiesConnectors) | tuiFilter : matcher : excludedProperties\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ propertyConnector.attrName | tuiStripOptionalPipe }}\n <tui-badge\n *ngIf=\"propertyConnector.attrName | tuiIsOptionalPipe\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"propertyConnector.documentationPropertyType | tuiShowContentTooltip\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell t-cell_value\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"propertyConnector.documentationPropertyType | tuiShowCleanerPipe\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ data | tuiInspectAny }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container [ngSwitch]=\"propertyConnector.documentationPropertyType\">\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n [value]=\"propertyConnector.documentationPropertyValue | tuiGetColorPipe\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n >\n <input\n tuiTextfield\n type=\"text\"\n />\n </tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"\n propertyConnector.documentationPropertyValue | tuiIsPrimitivePolymorpheusContentPipe\n \"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue.toString()\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n >\n Default content\n </tui-primitive-textfield>\n </ng-container>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n", styles: [":host{display:block;min-width:100%}.t-table{width:100%;table-layout:fixed}.t-row:not(:last-child){border-bottom:1px solid var(--tui-base-03)}:host-context(tui-root._mobile) .t-row{display:flex;flex-wrap:wrap}:host-context(tui-root._mobile) .t-row_header{display:none}.t-cell{padding:1rem 1rem .875rem}.t-cell:first-child{padding-left:0}.t-cell:last-child{padding-right:0}.t-cell_prop{width:40%}.t-cell_value{text-align:right}:host-context(tui-root._mobile) .t-cell{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:normal;text-align:left}.t-th_value{max-width:20rem;text-align:right}:host-context(tui-root._mobile) .t-th_value{width:9.375rem}.t-property{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}:host-context(tui-root._mobile) .t-property{padding:.5rem 0}.t-type{font-family:monospace}.t-deprecated{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.t-output{text-align:left;opacity:0}.t-heading{font:var(--tui-font-heading-4)}\n"], components: [{ type: i1__namespace.TuiBadgeComponent, selector: "tui-badge", inputs: ["value", "size", "status", "hoverable"] }, { type: i2__namespace$1.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId"] }, { type: i2__namespace$1.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i1__namespace.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i1__namespace.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }, { type: i1__namespace.TuiToggleComponent, selector: "tui-toggle", inputs: ["singleColor", "showIcons", "showLoader", "size"] }, { type: i2__namespace$1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2__namespace$1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1__namespace.TuiInputCountComponent, selector: "tui-input-count", inputs: ["step", "min", "max", "hideButtons", "prefix", "postfix"] }, { type: i2__namespace$1.TuiNotificationComponent, selector: "tui-notification", inputs: ["hasIcon", "status"], outputs: ["close"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace$1.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i1__namespace.TuiSelectDirective, selector: "tui-select" }, { type: i2__namespace$1.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i2__namespace$1.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight]", inputs: ["tuiDropdownAlign", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight"] }, { type: i2__namespace$1.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i2__namespace$1.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i5__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i5__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace$1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2__namespace$1.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: TuiInputOpacityDirective, selector: "[tuiInputOpacity]", inputs: ["tuiInputOpacity"] }, { type: i1__namespace.TuiInputCountDirective, selector: "tui-input-count" }], pipes: { "tuiFilter": i6__namespace$1.TuiFilterPipe, "tuiStripOptionalPipe": TuiStripOptionalPipe, "tuiIsOptionalPipe": TuiIsOptionalPipe, "tuiShowContentTooltip": TuiShowContentTooltip, "tuiShowCleanerPipe": TuiShowCleanerPipe, "tuiInspectAny": TuiInspectPipe, "tuiGetOpacity": TuiGetOpacityPipe, "tuiGetColorPipe": TuiGetColorPipe, "tuiIsPrimitivePolymorpheusContentPipe": TuiIsPrimitivePolymorpheusContentPipe, "async": i5__namespace.AsyncPipe }, animations: [
1289
- animations.trigger("emitEvent", [
1290
- animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
1288
+ TuiDocDocumentationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocDocumentationComponent, selector: "tui-doc-documentation", inputs: { heading: "heading", showValues: "showValues", isAPI: "isAPI" }, providers: [TuiGetColorPipe, TuiGetOpacityPipe, i6.TuiDestroyService], queries: [{ propertyName: "propertiesConnectors", predicate: TuiDocDocumentationPropertyConnectorDirective }], ngImport: i0__namespace, template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-th_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of $any(propertiesConnectors) | tuiFilter : matcher : excludedProperties\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ propertyConnector.attrName | tuiStripOptionalPipe }}\n <tui-badge\n *ngIf=\"propertyConnector.attrName | tuiIsOptionalPipe\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"propertyConnector.documentationPropertyType | tuiShowContentTooltip\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell t-cell_value\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"propertyConnector.documentationPropertyType | tuiShowCleanerPipe\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ data | tuiInspectAny }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container [ngSwitch]=\"propertyConnector.documentationPropertyType\">\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n [value]=\"propertyConnector.documentationPropertyValue | tuiGetColorPipe\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n >\n <input\n tuiTextfield\n type=\"text\"\n />\n </tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"\n propertyConnector.documentationPropertyValue | tuiIsPrimitivePolymorpheusContentPipe\n \"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue.toString()\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n >\n Default content\n </tui-primitive-textfield>\n </ng-container>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n", styles: [":host{display:block;min-width:100%}.t-table{width:100%;table-layout:fixed}.t-row:not(:last-child){border-bottom:1px solid var(--tui-base-03)}:host-context(tui-root._mobile) .t-row{display:flex;flex-wrap:wrap}:host-context(tui-root._mobile) .t-row_header{display:none}.t-cell{padding:1rem 1rem .875rem}.t-cell:first-child{padding-left:0}.t-cell:last-child{padding-right:0}.t-cell_prop{width:40%}.t-cell_value{text-align:right}:host-context(tui-root._mobile) .t-cell{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:normal;text-align:left}.t-th_value{max-width:20rem;text-align:right}:host-context(tui-root._mobile) .t-th_value{width:9.375rem}.t-property{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}:host-context(tui-root._mobile) .t-property{padding:.5rem 0}.t-type{font-family:monospace}.t-deprecated{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.t-output{text-align:left;opacity:0}.t-heading{font:var(--tui-font-heading-4)}\n"], components: [{ type: i1__namespace.TuiBadgeComponent, selector: "tui-badge", inputs: ["value", "size", "status", "hoverable"] }, { type: i2__namespace$1.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId"] }, { type: i2__namespace$1.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i1__namespace.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i1__namespace.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }, { type: i1__namespace.TuiToggleComponent, selector: "tui-toggle", inputs: ["singleColor", "showIcons", "showLoader", "size"] }, { type: i2__namespace$1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2__namespace$1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1__namespace.TuiInputCountComponent, selector: "tui-input-count", inputs: ["step", "min", "max", "hideButtons", "prefix", "postfix"] }, { type: i2__namespace$1.TuiNotificationComponent, selector: "tui-notification", inputs: ["hasIcon", "status"], outputs: ["close"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace$1.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i1__namespace.TuiSelectDirective, selector: "tui-select" }, { type: i2__namespace$1.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i2__namespace$1.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { type: i2__namespace$1.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i2__namespace$1.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i5__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i5__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace$1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2__namespace$1.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: TuiInputOpacityDirective, selector: "[tuiInputOpacity]", inputs: ["tuiInputOpacity"] }, { type: i1__namespace.TuiInputCountDirective, selector: "tui-input-count" }], pipes: { "tuiFilter": i6__namespace$1.TuiFilterPipe, "tuiStripOptionalPipe": TuiStripOptionalPipe, "tuiIsOptionalPipe": TuiIsOptionalPipe, "tuiShowContentTooltip": TuiShowContentTooltip, "tuiShowCleanerPipe": TuiShowCleanerPipe, "tuiInspectAny": TuiInspectPipe, "tuiGetOpacity": TuiGetOpacityPipe, "tuiGetColorPipe": TuiGetColorPipe, "tuiIsPrimitivePolymorpheusContentPipe": TuiIsPrimitivePolymorpheusContentPipe, "async": i5__namespace.AsyncPipe }, animations: [
1289
+ animations.trigger('emitEvent', [
1290
+ animations.transition(':increment', [animations.style({ opacity: 1 }), animations.animate('500ms ease-in')]),
1291
1291
  ]),
1292
1292
  ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1293
1293
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationComponent, decorators: [{
1294
1294
  type: i0.Component,
1295
1295
  args: [{
1296
- selector: "tui-doc-documentation",
1297
- templateUrl: "./documentation.template.html",
1298
- styleUrls: ["./documentation.style.less"],
1296
+ selector: 'tui-doc-documentation',
1297
+ templateUrl: './documentation.template.html',
1298
+ styleUrls: ['./documentation.style.less'],
1299
1299
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1300
1300
  animations: [
1301
- animations.trigger("emitEvent", [
1302
- animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
1301
+ animations.trigger('emitEvent', [
1302
+ animations.transition(':increment', [animations.style({ opacity: 1 }), animations.animate('500ms ease-in')]),
1303
1303
  ]),
1304
1304
  ],
1305
1305
  providers: [TuiGetColorPipe, TuiGetOpacityPipe, i6.TuiDestroyService],
@@ -1556,8 +1556,8 @@
1556
1556
  this.route = route;
1557
1557
  this.ngLocation = ngLocation;
1558
1558
  this.rawLoader$$ = new i9.BehaviorSubject({});
1559
- this.heading = "";
1560
- this.description = "";
1559
+ this.heading = '';
1560
+ this.description = '';
1561
1561
  this.componentName = this.location.pathname.slice(1);
1562
1562
  this.defaultTabIndex = 0;
1563
1563
  this.defaultTab = this.texts[this.defaultTabIndex];
@@ -1580,7 +1580,7 @@
1580
1580
  configurable: true
1581
1581
  });
1582
1582
  TuiDocExampleComponent.prototype.copyExampleLink = function () {
1583
- var hashPosition = this.location.href.indexOf("#");
1583
+ var hashPosition = this.location.href.indexOf('#');
1584
1584
  var currentUrl = hashPosition > -1
1585
1585
  ? this.location.href.slice(0, Math.max(0, hashPosition))
1586
1586
  : this.location.href;
@@ -1598,30 +1598,30 @@
1598
1598
  var _this = this;
1599
1599
  var _a;
1600
1600
  this.loading$.next(true);
1601
- (_a = this.codeEditor) === null || _a === void 0 ? void 0 : _a.edit(this.componentName, this.id || "", files).finally(function () { return _this.loading$.next(false); });
1601
+ (_a = this.codeEditor) === null || _a === void 0 ? void 0 : _a.edit(this.componentName, this.id || '', files).finally(function () { return _this.loading$.next(false); });
1602
1602
  };
1603
1603
  TuiDocExampleComponent.prototype.setFragmentWithoutRedirect = function (id) {
1604
1604
  var url = this.router
1605
- .createUrlTree([], { relativeTo: this.route, fragment: id || "" })
1605
+ .createUrlTree([], { relativeTo: this.route, fragment: id || '' })
1606
1606
  .toString();
1607
1607
  this.ngLocation.go(url);
1608
1608
  };
1609
1609
  return TuiDocExampleComponent;
1610
1610
  }());
1611
- TuiDocExampleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleComponent, deps: [{ token: "id", attribute: true }, { token: i8.Clipboard }, { token: i2$1.TuiAlertService }, { token: common.LOCATION }, { token: i1.TUI_COPY_TEXTS }, { token: TUI_DOC_EXAMPLE_TEXTS }, { token: TUI_DOC_CODE_EDITOR, optional: true }, { token: TUI_DOC_EXAMPLE_CONTENT_PROCESSOR }, { token: i6.TUI_IS_CYPRESS }, { token: TUI_DOC_CODE_ACTIONS }, { token: i6$1.Router }, { token: i6$1.ActivatedRoute }, { token: i5.Location }], target: i0__namespace.ɵɵFactoryTarget.Component });
1611
+ TuiDocExampleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleComponent, deps: [{ token: 'id', attribute: true }, { token: i8.Clipboard }, { token: i2$1.TuiAlertService }, { token: common.LOCATION }, { token: i1.TUI_COPY_TEXTS }, { token: TUI_DOC_EXAMPLE_TEXTS }, { token: TUI_DOC_CODE_EDITOR, optional: true }, { token: TUI_DOC_EXAMPLE_CONTENT_PROCESSOR }, { token: i6.TUI_IS_CYPRESS }, { token: TUI_DOC_CODE_ACTIONS }, { token: i6$1.Router }, { token: i6$1.ActivatedRoute }, { token: i5.Location }], target: i0__namespace.ɵɵFactoryTarget.Component });
1612
1612
  TuiDocExampleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocExampleComponent, selector: "tui-doc-example", inputs: { heading: "heading", description: "description", content: "content", componentName: "componentName" }, ngImport: i0__namespace, 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 [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__namespace$1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i1__namespace.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { type: i1__namespace.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: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace$2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$1.TuiItemDirective, selector: "[tuiItem]" }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], pipes: { "tuiDocExampleCapitalize": TuiDocExampleCapitalizePipe, "async": i5__namespace.AsyncPipe, "tuiDocExampleGetTabs": TuiDocExampleGetTabsPipe, "tuiMapper": i6__namespace$1.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1613
1613
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleComponent, decorators: [{
1614
1614
  type: i0.Component,
1615
1615
  args: [{
1616
- selector: "tui-doc-example",
1617
- templateUrl: "./example.template.html",
1618
- styleUrls: ["./example.style.less"],
1616
+ selector: 'tui-doc-example',
1617
+ templateUrl: './example.template.html',
1618
+ styleUrls: ['./example.style.less'],
1619
1619
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1620
1620
  }]
1621
1621
  }], ctorParameters: function () {
1622
1622
  return [{ type: undefined, decorators: [{
1623
1623
  type: i0.Attribute,
1624
- args: ["id"]
1624
+ args: ['id']
1625
1625
  }] }, { type: i8__namespace.Clipboard, decorators: [{
1626
1626
  type: i0.Inject,
1627
1627
  args: [i8.Clipboard]
@@ -1729,22 +1729,22 @@
1729
1729
  function TuiLanguageSwitcherComponent(switcher, iconsPath) {
1730
1730
  this.switcher = switcher;
1731
1731
  this.iconsPath = iconsPath;
1732
- this.path = this.iconsPath("tuiIcon").replace("tuiIcon.svg#tuiIcon", "");
1732
+ this.path = this.iconsPath('tuiIcon').replace('tuiIcon.svg#tuiIcon', '');
1733
1733
  this.language = new i5$1.FormControl(i2$1.tuiCapitalizeFirstLetter(this.switcher.language));
1734
1734
  this.flags = new Map([
1735
- ["chinese", i5$2.TuiCountryIsoCode.CN],
1736
- ["dutch", i5$2.TuiCountryIsoCode.NL],
1737
- ["english", i5$2.TuiCountryIsoCode.GB],
1738
- ["french", i5$2.TuiCountryIsoCode.FR],
1739
- ["german", i5$2.TuiCountryIsoCode.DE],
1740
- ["italian", i5$2.TuiCountryIsoCode.IT],
1741
- ["polish", i5$2.TuiCountryIsoCode.PL],
1742
- ["portuguese", i5$2.TuiCountryIsoCode.PT],
1743
- ["russian", i5$2.TuiCountryIsoCode.RU],
1744
- ["spanish", i5$2.TuiCountryIsoCode.ES],
1745
- ["turkish", i5$2.TuiCountryIsoCode.TR],
1746
- ["ukrainian", i5$2.TuiCountryIsoCode.UA],
1747
- ["vietnamese", i5$2.TuiCountryIsoCode.VN],
1735
+ ['chinese', i5$2.TuiCountryIsoCode.CN],
1736
+ ['dutch', i5$2.TuiCountryIsoCode.NL],
1737
+ ['english', i5$2.TuiCountryIsoCode.GB],
1738
+ ['french', i5$2.TuiCountryIsoCode.FR],
1739
+ ['german', i5$2.TuiCountryIsoCode.DE],
1740
+ ['italian', i5$2.TuiCountryIsoCode.IT],
1741
+ ['polish', i5$2.TuiCountryIsoCode.PL],
1742
+ ['portuguese', i5$2.TuiCountryIsoCode.PT],
1743
+ ['russian', i5$2.TuiCountryIsoCode.RU],
1744
+ ['spanish', i5$2.TuiCountryIsoCode.ES],
1745
+ ['turkish', i5$2.TuiCountryIsoCode.TR],
1746
+ ['ukrainian', i5$2.TuiCountryIsoCode.UA],
1747
+ ['vietnamese', i5$2.TuiCountryIsoCode.VN],
1748
1748
  ]);
1749
1749
  this.names = Array.from(this.flags.keys());
1750
1750
  }
@@ -1758,9 +1758,9 @@
1758
1758
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLanguageSwitcherComponent, decorators: [{
1759
1759
  type: i0.Component,
1760
1760
  args: [{
1761
- selector: "tui-language-switcher",
1762
- templateUrl: "./language-switcher.component.html",
1763
- styleUrls: ["./language-switcher.component.less"],
1761
+ selector: 'tui-language-switcher',
1762
+ templateUrl: './language-switcher.component.html',
1763
+ styleUrls: ['./language-switcher.component.less'],
1764
1764
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1765
1765
  }]
1766
1766
  }], ctorParameters: function () {
@@ -1921,7 +1921,7 @@
1921
1921
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkDirective, decorators: [{
1922
1922
  type: i0.Directive,
1923
1923
  args: [{
1924
- selector: "[tuiScrollIntoViewLink]",
1924
+ selector: '[tuiScrollIntoViewLink]',
1925
1925
  providers: [i6.TuiDestroyService],
1926
1926
  }]
1927
1927
  }], ctorParameters: function () {
@@ -1958,17 +1958,17 @@
1958
1958
  this.menuOpen = false;
1959
1959
  this.openPagesArr = [];
1960
1960
  this.openPagesGroupsArr = [];
1961
- this.active = "";
1962
- this.search = new i5$1.FormControl("");
1961
+ this.active = '';
1962
+ this.search = new i5$1.FormControl('');
1963
1963
  this.filtered$ = i6.tuiControlValue(this.search).pipe(operators.filter(function (search) { return search.length > 2; }), operators.map(function (search) { return _this.filterItems(_this.flattenSubPages(_this.items), search); }));
1964
- this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || "onLight"; }));
1964
+ this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || 'onLight'; }));
1965
1965
  // Angular can't navigate no anchor links
1966
1966
  // https://stackoverflow.com/questions/36101756/angular2-routing-with-hashtag-to-page-anchor
1967
1967
  title$.subscribe(function (title) {
1968
1968
  changeDetectorRef.markForCheck();
1969
1969
  titleService.setTitle(title);
1970
1970
  _this.openActivePageGroup();
1971
- _this.handleAnchorLink(_this.activatedRoute.snapshot.fragment || "");
1971
+ _this.handleAnchorLink(_this.activatedRoute.snapshot.fragment || '');
1972
1972
  });
1973
1973
  }
1974
1974
  Object.defineProperty(TuiDocNavigationComponent.prototype, "canOpen", {
@@ -1998,12 +1998,12 @@
1998
1998
  TuiDocNavigationComponent.prototype.onClick = function (input) {
1999
1999
  input.open = false;
2000
2000
  this.menuOpen = false;
2001
- this.search.setValue("");
2001
+ this.search.setValue('');
2002
2002
  this.openActivePageGroup();
2003
2003
  };
2004
2004
  TuiDocNavigationComponent.prototype.filterItems = function (items, search) {
2005
2005
  return items.map(function (section) { return i6.tuiUniqBy(section.filter(function (_c) {
2006
- var title = _c.title, _d = _c.keywords, keywords = _d === void 0 ? "" : _d;
2006
+ var title = _c.title, _d = _c.keywords, keywords = _d === void 0 ? '' : _d;
2007
2007
  title = title.toLowerCase();
2008
2008
  search = search.toLowerCase();
2009
2009
  keywords = keywords.toLowerCase();
@@ -2011,12 +2011,12 @@
2011
2011
  keywords.includes(search) ||
2012
2012
  title.includes(tuiTransliterateKeyboardLayout(search)) ||
2013
2013
  keywords.includes(tuiTransliterateKeyboardLayout(search)) ||
2014
- search.replace(/-/gi, "").includes(title));
2015
- }), "title"); });
2014
+ search.replace(/-/gi, '').includes(title));
2015
+ }), 'title'); });
2016
2016
  };
2017
2017
  TuiDocNavigationComponent.prototype.flattenSubPages = function (items) {
2018
2018
  return items.reduce(function (array, item) { return __spreadArray(__spreadArray([], __read(array)), [
2019
- item.reduce(function (pages, page) { return "subPages" in page
2019
+ item.reduce(function (pages, page) { return 'subPages' in page
2020
2020
  ? __spreadArray(__spreadArray([], __read(pages)), __read(page.subPages)) : __spreadArray(__spreadArray([], __read(pages)), [page]); }, []),
2021
2021
  ]); }, []);
2022
2022
  };
@@ -2033,11 +2033,11 @@
2033
2033
  var _this = this;
2034
2034
  this.items.forEach(function (pages, pagesIndex) {
2035
2035
  pages.forEach(function (page, pageIndex) {
2036
- if ("route" in page && _this.isActiveRoute(page.route)) {
2036
+ if ('route' in page && _this.isActiveRoute(page.route)) {
2037
2037
  _this.openPagesArr[pagesIndex] = true;
2038
2038
  _this.active = page.route;
2039
2039
  }
2040
- if ("subPages" in page) {
2040
+ if ('subPages' in page) {
2041
2041
  page.subPages.forEach(function (subPage) {
2042
2042
  if (_this.isActiveRoute(subPage.route)) {
2043
2043
  _this.openPagesArr[pagesIndex] = true;
@@ -2055,10 +2055,10 @@
2055
2055
  if (!element) {
2056
2056
  return;
2057
2057
  }
2058
- element.classList.add("tui-doc-animated-example");
2058
+ element.classList.add('tui-doc-animated-example');
2059
2059
  element.scrollIntoView({
2060
- block: "start",
2061
- inline: "nearest",
2060
+ block: 'start',
2061
+ inline: 'nearest',
2062
2062
  behavior: this.scrollBehavior,
2063
2063
  });
2064
2064
  };
@@ -2075,9 +2075,9 @@
2075
2075
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationComponent, decorators: [{
2076
2076
  type: i0.Component,
2077
2077
  args: [{
2078
- selector: "tui-doc-navigation",
2079
- templateUrl: "navigation.template.html",
2080
- styleUrls: ["navigation.style.less"],
2078
+ selector: 'tui-doc-navigation',
2079
+ templateUrl: 'navigation.template.html',
2080
+ styleUrls: ['navigation.style.less'],
2081
2081
  providers: NAVIGATION_PROVIDERS,
2082
2082
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2083
2083
  }]
@@ -2131,7 +2131,7 @@
2131
2131
  }] }];
2132
2132
  }, propDecorators: { menuOpen: [{
2133
2133
  type: i0.HostBinding,
2134
- args: ["class._open"]
2134
+ args: ['class._open']
2135
2135
  }], filterItems: [], flattenSubPages: [] } });
2136
2136
 
2137
2137
  var TUI_DOC_LOGO = new i0.InjectionToken("[TUI_DOC_LOGO]: Main logo", {
@@ -2145,7 +2145,7 @@
2145
2145
  this.router = router;
2146
2146
  this.swipes$ = swipes$;
2147
2147
  this.stream$ = new i9.Subject();
2148
- this.open$ = i9.merge(this.router.events.pipe(operators.mapTo(false)), this.stream$, this.swipes$.pipe(operators.filter(function (swipe) { return swipe.direction === "left" || swipe.direction === "right"; }), operators.map(function (swipe) { return swipe.direction === "right"; }))).pipe(operators.startWith(false), operators.distinctUntilChanged());
2148
+ this.open$ = i9.merge(this.router.events.pipe(operators.mapTo(false)), this.stream$, this.swipes$.pipe(operators.filter(function (swipe) { return swipe.direction === 'left' || swipe.direction === 'right'; }), operators.map(function (swipe) { return swipe.direction === 'right'; }))).pipe(operators.startWith(false), operators.distinctUntilChanged());
2149
2149
  }
2150
2150
  TuiDocHeaderComponent.prototype.onClick = function () {
2151
2151
  this.stream$.next(true);
@@ -2162,9 +2162,9 @@
2162
2162
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderComponent, decorators: [{
2163
2163
  type: i0.Component,
2164
2164
  args: [{
2165
- selector: "header[tuiDocHeader]",
2166
- templateUrl: "./header.template.html",
2167
- styleUrls: ["./header.style.less"],
2165
+ selector: 'header[tuiDocHeader]',
2166
+ templateUrl: './header.template.html',
2167
+ styleUrls: ['./header.style.less'],
2168
2168
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2169
2169
  }]
2170
2170
  }], ctorParameters: function () {
@@ -2187,14 +2187,14 @@
2187
2187
  function TuiDocMainComponent(storage, windowRef) {
2188
2188
  this.storage = storage;
2189
2189
  this.windowRef = windowRef;
2190
- this.night = this.storage.getItem("night") === "true" ||
2191
- (this.storage.getItem("night") === null &&
2192
- this.windowRef.matchMedia("(prefers-color-scheme: dark)").matches);
2190
+ this.night = this.storage.getItem('night') === 'true' ||
2191
+ (this.storage.getItem('night') === null &&
2192
+ this.windowRef.matchMedia('(prefers-color-scheme: dark)').matches);
2193
2193
  this.change$ = new i9.Subject();
2194
2194
  }
2195
2195
  Object.defineProperty(TuiDocMainComponent.prototype, "mode", {
2196
2196
  get: function () {
2197
- return this.night ? "onDark" : null;
2197
+ return this.night ? 'onDark' : null;
2198
2198
  },
2199
2199
  enumerable: false,
2200
2200
  configurable: true
@@ -2202,7 +2202,7 @@
2202
2202
  TuiDocMainComponent.prototype.onMode = function (night) {
2203
2203
  this.night = night;
2204
2204
  this.change$.next();
2205
- this.storage.setItem("night", String(night));
2205
+ this.storage.setItem('night', String(night));
2206
2206
  };
2207
2207
  return TuiDocMainComponent;
2208
2208
  }());
@@ -2217,9 +2217,9 @@
2217
2217
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainComponent, decorators: [{
2218
2218
  type: i0.Component,
2219
2219
  args: [{
2220
- selector: "tui-doc-main",
2221
- templateUrl: "./main.template.html",
2222
- styleUrls: ["./main.style.less"],
2220
+ selector: 'tui-doc-main',
2221
+ templateUrl: './main.template.html',
2222
+ styleUrls: ['./main.style.less'],
2223
2223
  encapsulation: i0.ViewEncapsulation.None,
2224
2224
  providers: [
2225
2225
  {
@@ -2239,7 +2239,7 @@
2239
2239
  }] }];
2240
2240
  }, propDecorators: { mode: [{
2241
2241
  type: i0.HostBinding,
2242
- args: ["attr.data-mode"]
2242
+ args: ['attr.data-mode']
2243
2243
  }] } });
2244
2244
 
2245
2245
  var TuiScrollIntoViewLinkModule = /** @class */ (function () {
@@ -2460,7 +2460,7 @@
2460
2460
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageTabConnectorDirective, decorators: [{
2461
2461
  type: i0.Directive,
2462
2462
  args: [{
2463
- selector: "[pageTab]",
2463
+ selector: '[pageTab]',
2464
2464
  }]
2465
2465
  }], ctorParameters: function () {
2466
2466
  return [{ type: i0__namespace.TemplateRef, decorators: [{
@@ -2479,10 +2479,10 @@
2479
2479
  function TuiDocSourceCodeComponent(sourceCode, text) {
2480
2480
  this.sourceCode = sourceCode;
2481
2481
  this.text = text;
2482
- this.header = "";
2483
- this.package = "";
2484
- this.type = "";
2485
- this.path = "";
2482
+ this.header = '';
2483
+ this.package = '';
2484
+ this.type = '';
2485
+ this.path = '';
2486
2486
  }
2487
2487
  Object.defineProperty(TuiDocSourceCodeComponent.prototype, "pathOptions", {
2488
2488
  get: function () {
@@ -2509,8 +2509,8 @@
2509
2509
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeComponent, decorators: [{
2510
2510
  type: i0.Component,
2511
2511
  args: [{
2512
- selector: "tui-doc-source-code",
2513
- templateUrl: "./source-code.template.html",
2512
+ selector: 'tui-doc-source-code',
2513
+ templateUrl: './source-code.template.html',
2514
2514
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2515
2515
  }]
2516
2516
  }], ctorParameters: function () {
@@ -2540,14 +2540,14 @@
2540
2540
  TuiDocSeeAlsoComponent.prototype.getRouterLink = function (pageTitle) {
2541
2541
  for (var i = 0; i < this.pages.length; i++) {
2542
2542
  var page = this.pages
2543
- .map(function (page) { return ("subPages" in page ? page.subPages : [page]); })
2543
+ .map(function (page) { return ('subPages' in page ? page.subPages : [page]); })
2544
2544
  .reduce(function (pages, subPages) { return __spreadArray(__spreadArray([], __read(pages)), __read(subPages)); }, [])
2545
2545
  .find(function (page) { return page.title === pageTitle; });
2546
2546
  if (page === null || page === void 0 ? void 0 : page.route) {
2547
2547
  return page.route;
2548
2548
  }
2549
2549
  }
2550
- return "";
2550
+ return '';
2551
2551
  };
2552
2552
  return TuiDocSeeAlsoComponent;
2553
2553
  }());
@@ -2556,9 +2556,9 @@
2556
2556
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoComponent, decorators: [{
2557
2557
  type: i0.Component,
2558
2558
  args: [{
2559
- selector: "tui-doc-see-also",
2560
- templateUrl: "./see-also.template.html",
2561
- styleUrls: ["./see-also.style.less"],
2559
+ selector: 'tui-doc-see-also',
2560
+ templateUrl: './see-also.template.html',
2561
+ styleUrls: ['./see-also.style.less'],
2562
2562
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2563
2563
  }]
2564
2564
  }], ctorParameters: function () {
@@ -2578,10 +2578,10 @@
2578
2578
  this.deprecated = deprecated;
2579
2579
  this.defaultTabs = defaultTabs;
2580
2580
  this.seeAlso = seeAlso;
2581
- this.header = "";
2582
- this.package = "";
2583
- this.type = "";
2584
- this.path = "";
2581
+ this.header = '';
2582
+ this.package = '';
2583
+ this.type = '';
2584
+ this.path = '';
2585
2585
  this.tabConnectors = i6.EMPTY_QUERY;
2586
2586
  this.activeItemIndex = NaN;
2587
2587
  }
@@ -2593,26 +2593,26 @@
2593
2593
  configurable: true
2594
2594
  });
2595
2595
  TuiDocPageComponent.prototype.getRouterLink = function (tab) {
2596
- if (tab === void 0) { tab = ""; }
2597
- return "./" + tab.replace(/ /g, "_");
2596
+ if (tab === void 0) { tab = ''; }
2597
+ return "./" + tab.replace(/ /g, '_');
2598
2598
  };
2599
2599
  return TuiDocPageComponent;
2600
2600
  }());
2601
- TuiDocPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageComponent, deps: [{ token: "deprecated", attribute: true }, { token: TUI_DOC_DEFAULT_TABS }, { token: PAGE_SEE_ALSO }], target: i0__namespace.ɵɵFactoryTarget.Component });
2601
+ TuiDocPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageComponent, deps: [{ token: 'deprecated', attribute: true }, { token: TUI_DOC_DEFAULT_TABS }, { token: PAGE_SEE_ALSO }], target: i0__namespace.ɵɵFactoryTarget.Component });
2602
2602
  TuiDocPageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocPageComponent, selector: "tui-doc-page", inputs: { header: "header", package: "package", type: "type", path: "path" }, providers: PAGE_PROVIDERS, queries: [{ propertyName: "tabConnectors", predicate: TuiDocPageTabConnectorDirective }], ngImport: i0__namespace, template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"deprecated !== null\"\n value=\"deprecated\"\n status=\"custom\"\n class=\"t-tag t-tag_deprecated\"\n ></tui-tag>\n <tui-tag\n *ngIf=\"package\"\n status=\"custom\"\n class=\"t-tag t-tag_package\"\n [value]=\"package\"\n [autoColor]=\"true\"\n ></tui-tag>\n </h1>\n <tui-tabs-with-more\n *ngIf=\"tabConnectors.length\"\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabConnectors; first as first; index as index\">\n <ng-container *ngIf=\"first; else dynamicTab\">\n <a\n *tuiItem\n tuiTab\n routerLink=\"./\"\n routerLinkActive\n [routerLinkActiveOptions]=\"{exact: true}\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-container>\n <ng-template #dynamicTab>\n <a\n *tuiItem\n tuiTab\n routerLinkActive\n [routerLink]=\"getRouterLink(tab.pageTab || defaultTabs[index])\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-template>\n </ng-container>\n </tui-tabs-with-more>\n <tui-doc-source-code\n class=\"t-source-code\"\n [header]=\"header\"\n [package]=\"package\"\n [type]=\"type\"\n [path]=\"path\"\n ></tui-doc-source-code>\n</header>\n<div class=\"t-content\">\n <ng-content></ng-content>\n <tui-doc-see-also\n *ngIf=\"showSeeAlso\"\n class=\"t-see-also\"\n [seeAlso]=\"seeAlso\"\n ></tui-doc-see-also>\n <ng-container *ngFor=\"let tab of tabConnectors; index as index\">\n <ng-container\n *ngIf=\"index === activeItemIndex\"\n [ngTemplateOutlet]=\"tab.template\"\n ></ng-container>\n </ng-container>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-header{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title{min-width:100%;font-size:inherit;margin:0}.t-tag{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated{background-color:var(--tui-error-fill)}.t-tag.t-tag_package{color:#000}.t-tabs{flex:1;margin:1.125rem .3125rem 0 0}:host-context(tui-root._mobile) .t-tabs{margin-top:.25rem}.t-content{padding:2rem 0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-content{padding:2rem 1.25rem;margin:0}.t-see-also{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}:host-context(tui-root._mobile) .t-see-also{float:none;width:100%;margin:0 0 1.5rem}.t-source-code{align-self:flex-end;line-height:2.75rem}\n"], components: [{ type: i1__namespace.TuiTagComponent, selector: "tui-tag, a[tuiTag]", inputs: ["value", "editable", "separator", "maxLength", "size", "showLoader", "status", "hoverable", "removable", "disabled", "autoColor", "leftContent"], outputs: ["edited"] }, { type: i1__namespace.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { type: i1__namespace.TuiTabComponent, selector: "a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]" }, { type: TuiDocSourceCodeComponent, selector: "tui-doc-source-code", inputs: ["header", "package", "type", "path"] }, { type: TuiDocSeeAlsoComponent, selector: "tui-doc-see-also", inputs: ["seeAlso"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$1.TuiItemDirective, selector: "[tuiItem]" }, { type: i6__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i6__namespace.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2603
2603
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageComponent, decorators: [{
2604
2604
  type: i0.Component,
2605
2605
  args: [{
2606
- selector: "tui-doc-page",
2607
- templateUrl: "./page.template.html",
2608
- styleUrls: ["./page.style.less"],
2606
+ selector: 'tui-doc-page',
2607
+ templateUrl: './page.template.html',
2608
+ styleUrls: ['./page.style.less'],
2609
2609
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2610
2610
  providers: PAGE_PROVIDERS,
2611
2611
  }]
2612
2612
  }], ctorParameters: function () {
2613
2613
  return [{ type: undefined, decorators: [{
2614
2614
  type: i0.Attribute,
2615
- args: ["deprecated"]
2615
+ args: ['deprecated']
2616
2616
  }] }, { type: undefined, decorators: [{
2617
2617
  type: i0.Inject,
2618
2618
  args: [TUI_DOC_DEFAULT_TABS]