@taiga-ui/addon-doc 2.75.0 → 2.76.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.
Files changed (48) hide show
  1. package/bundles/taiga-ui-addon-doc.umd.js +173 -128
  2. package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-doc.umd.min.js +1 -1
  4. package/bundles/taiga-ui-addon-doc.umd.min.js.map +1 -1
  5. package/components/demo/demo.component.d.ts +2 -2
  6. package/components/documentation/documentation-property-connector.directive.d.ts +1 -1
  7. package/esm2015/components/code/code.component.js +6 -6
  8. package/esm2015/components/copy/copy.component.js +2 -2
  9. package/esm2015/components/demo/demo.component.js +12 -12
  10. package/esm2015/components/documentation/documentation-property-connector.directive.js +11 -11
  11. package/esm2015/components/documentation/documentation.component.js +30 -30
  12. package/esm2015/components/example/example.component.js +9 -9
  13. package/esm2015/components/language-switcher/language-switcher.component.js +16 -16
  14. package/esm2015/components/main/main.component.js +8 -8
  15. package/esm2015/components/navigation/navigation.component.js +16 -16
  16. package/esm2015/components/page/page-tab.directive.js +2 -2
  17. package/esm2015/components/page/page.component.js +10 -10
  18. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
  19. package/esm2015/internal/header/header.component.js +3 -3
  20. package/esm2015/internal/input-opacity/input-opacity.directive.js +3 -3
  21. package/esm2015/internal/see-also/see-also.component.js +4 -4
  22. package/esm2015/internal/source-code/source-code.component.js +6 -6
  23. package/esm2015/utils/coerce-value.js +3 -3
  24. package/esm5/components/code/code.component.js +6 -6
  25. package/esm5/components/copy/copy.component.js +2 -2
  26. package/esm5/components/demo/demo.component.js +12 -12
  27. package/esm5/components/documentation/documentation-property-connector.directive.js +11 -11
  28. package/esm5/components/documentation/documentation.component.js +30 -30
  29. package/esm5/components/example/example.component.js +9 -9
  30. package/esm5/components/language-switcher/language-switcher.component.js +16 -16
  31. package/esm5/components/main/main.component.js +8 -8
  32. package/esm5/components/navigation/navigation.component.js +16 -16
  33. package/esm5/components/page/page-tab.directive.js +2 -2
  34. package/esm5/components/page/page.component.js +10 -10
  35. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
  36. package/esm5/internal/header/header.component.js +3 -3
  37. package/esm5/internal/input-opacity/input-opacity.directive.js +3 -3
  38. package/esm5/internal/see-also/see-also.component.js +4 -4
  39. package/esm5/internal/source-code/source-code.component.js +6 -6
  40. package/esm5/utils/coerce-value.js +3 -3
  41. package/fesm2015/taiga-ui-addon-doc.js +127 -127
  42. package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
  43. package/fesm5/taiga-ui-addon-doc.js +127 -127
  44. package/fesm5/taiga-ui-addon-doc.js.map +1 -1
  45. package/internal/see-also/see-also.component.d.ts +1 -1
  46. package/package.json +5 -5
  47. package/taiga-ui-addon-doc.metadata.json +1 -1
  48. package/utils/coerce-value.d.ts +1 -1
@@ -71,6 +71,51 @@
71
71
  return function (target, key) { decorator(target, key, paramIndex); }
72
72
  }
73
73
 
74
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
75
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
76
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
77
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
78
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
79
+ var _, done = false;
80
+ for (var i = decorators.length - 1; i >= 0; i--) {
81
+ var context = {};
82
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
83
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
84
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
85
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
86
+ if (kind === "accessor") {
87
+ if (result === void 0) continue;
88
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
89
+ if (_ = accept(result.get)) descriptor.get = _;
90
+ if (_ = accept(result.set)) descriptor.set = _;
91
+ if (_ = accept(result.init)) initializers.push(_);
92
+ }
93
+ else if (_ = accept(result)) {
94
+ if (kind === "field") initializers.push(_);
95
+ else descriptor[key] = _;
96
+ }
97
+ }
98
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
99
+ done = true;
100
+ };
101
+
102
+ function __runInitializers(thisArg, initializers, value) {
103
+ var useValue = arguments.length > 2;
104
+ for (var i = 0; i < initializers.length; i++) {
105
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
106
+ }
107
+ return useValue ? value : void 0;
108
+ };
109
+
110
+ function __propKey(x) {
111
+ return typeof x === "symbol" ? x : "".concat(x);
112
+ };
113
+
114
+ function __setFunctionName(f, name, prefix) {
115
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
116
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
117
+ };
118
+
74
119
  function __metadata(metadataKey, metadataValue) {
75
120
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
76
121
  }
@@ -203,7 +248,7 @@
203
248
  function __asyncDelegator(o) {
204
249
  var i, p;
205
250
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
206
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
251
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
207
252
  }
208
253
 
209
254
  function __asyncValues(o) {
@@ -302,8 +347,8 @@
302
347
 
303
348
  var TuiDocCodeComponent = /** @class */ (function () {
304
349
  function TuiDocCodeComponent() {
305
- this.rawLoader$$ = new rxjs.BehaviorSubject("");
306
- this.filename = "";
350
+ this.rawLoader$$ = new rxjs.BehaviorSubject('');
351
+ this.filename = '';
307
352
  this.processor$ = this.rawLoader$$.pipe(operators.switchMap(rawLoad), operators.map(tryParseMarkdownCodeBlock));
308
353
  }
309
354
  Object.defineProperty(TuiDocCodeComponent.prototype, "code", {
@@ -327,12 +372,12 @@
327
372
  core.Input()
328
373
  ], TuiDocCodeComponent.prototype, "code", null);
329
374
  __decorate([
330
- core.HostBinding("class._has-filename")
375
+ core.HostBinding('class._has-filename')
331
376
  ], TuiDocCodeComponent.prototype, "hasFilename", null);
332
377
  TuiDocCodeComponent = __decorate([
333
378
  core.Component({
334
- selector: "tui-doc-code",
335
- template: "<p\n *ngIf=\"filename\"\n class=\"t-header\"\n>\n {{ filename }}\n</p>\n<pre\n *ngFor=\"let content of processor$ | async\"\n class=\"t-code\"\n><code [lineNumbers]=\"true\" [highlight]=\"content\"></code></pre>\n",
379
+ selector: 'tui-doc-code',
380
+ template: "<p\n *ngIf=\"filename\"\n class=\"t-header\"\n>\n {{ filename }}\n</p>\n<pre\n *ngFor=\"let content of processor$ | async\"\n class=\"t-code\"\n>\n<code [lineNumbers]=\"true\" [highlight]=\"content\"></code>\n</pre>\n",
336
381
  styles: [":host{display:block}.t-header{font:var(--tui-font-text-s);font-weight:700}.t-code{margin:0}.t-code+.t-code{margin-top:1rem}.hljs:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear-disabled);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.hljs:not(:empty)::-webkit-scrollbar,.hljs:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.hljs:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host._has-filename .hljs:not(:empty){border-radius:.75rem}:host-context(tui-root._mobile) .hljs:not(:empty){padding:1rem}"]
337
382
  })
338
383
  ], TuiDocCodeComponent);
@@ -377,7 +422,7 @@
377
422
  ], TuiDocCopyComponent.prototype, "copied$", null);
378
423
  TuiDocCopyComponent = __decorate([
379
424
  core.Component({
380
- selector: "tui-doc-copy",
425
+ selector: 'tui-doc-copy',
381
426
  template: "<button\n *ngIf=\"texts$ | async as texts\"\n tuiButton\n type=\"button\"\n appearance=\"\"\n size=\"s\"\n class=\"t-copy\"\n [title]=\"texts[0]\"\n (click)=\"onClick()\"\n>\n <span\n class=\"t-content\"\n [class.t-content_moved]=\"copied$ | async\"\n >\n <span\n class=\"t-initial\"\n [attr.data-text]=\"texts[0]\"\n >\n <ng-content></ng-content>\n </span>\n {{ texts[1] }}\n </span>\n</button>\n",
382
427
  changeDetection: core.ChangeDetectionStrategy.OnPush,
383
428
  providers: [cdk.TuiDestroyService],
@@ -467,14 +512,14 @@
467
512
  this.wrapperWidth = 0;
468
513
  this.control = null;
469
514
  this.template = null;
470
- this.updateOnVariants = ["change", "blur", "submit"];
471
- this.updateOn = "change";
515
+ this.updateOnVariants = ['change', 'blur', 'submit'];
516
+ this.updateOn = 'change';
472
517
  this.expanded = false;
473
518
  this.opaque = true;
474
519
  this.modeControl = new forms.FormControl();
475
520
  this.mode = null;
476
521
  this.change$ = new rxjs.Subject();
477
- this.items = ["onLight", "onDark"];
522
+ this.items = ['onLight', 'onDark'];
478
523
  this.isBrowser = common.isPlatformBrowser(platformId);
479
524
  var parsedMode = locationRef.path().match(/tuiMode=(onDark|onLight)/);
480
525
  if (parsedMode !== null && parsedMode.length > 0) {
@@ -506,9 +551,9 @@
506
551
  }
507
552
  var paddingLeft = this.isBrowser
508
553
  ? getComputedStyle(this.content.nativeElement).paddingLeft
509
- : "0";
554
+ : '0';
510
555
  var offsetWidth = this.content.nativeElement.offsetWidth;
511
- this.resizerText.nativeElement.textContent = String(offsetWidth - parseInt(paddingLeft || "0", 10) * 2);
556
+ this.resizerText.nativeElement.textContent = String(offsetWidth - parseInt(paddingLeft || '0', 10) * 2);
512
557
  };
513
558
  TuiDocDemoComponent.prototype.onDragStart = function (event) {
514
559
  event.preventDefault();
@@ -541,7 +586,7 @@
541
586
  if (!this.wrapper) {
542
587
  return;
543
588
  }
544
- this.renderer.setStyle(this.wrapper.nativeElement, "width", cdk.px(Math.max(this.wrapperWidth - delta, MIN_COMPONENT_WIDTH)));
589
+ this.renderer.setStyle(this.wrapper.nativeElement, 'width', cdk.px(Math.max(this.wrapperWidth - delta, MIN_COMPONENT_WIDTH)));
545
590
  };
546
591
  var TuiDocDemoComponent_1;
547
592
  TuiDocDemoComponent.ctorParameters = function () { return [
@@ -554,13 +599,13 @@
554
599
  { type: Array, decorators: [{ type: core.Inject, args: [TUI_DOC_DEMO_TEXTS,] }] }
555
600
  ]; };
556
601
  __decorate([
557
- core.ViewChild("content")
602
+ core.ViewChild('content')
558
603
  ], TuiDocDemoComponent.prototype, "content", void 0);
559
604
  __decorate([
560
- core.ViewChild("wrapper")
605
+ core.ViewChild('wrapper')
561
606
  ], TuiDocDemoComponent.prototype, "wrapper", void 0);
562
607
  __decorate([
563
- core.ViewChild("resizerText")
608
+ core.ViewChild('resizerText')
564
609
  ], TuiDocDemoComponent.prototype, "resizerText", void 0);
565
610
  __decorate([
566
611
  core.Input()
@@ -569,11 +614,11 @@
569
614
  core.ContentChild(core.TemplateRef)
570
615
  ], TuiDocDemoComponent.prototype, "template", void 0);
571
616
  __decorate([
572
- core.HostListener("window:resize")
617
+ core.HostListener('window:resize')
573
618
  ], TuiDocDemoComponent.prototype, "onResize", null);
574
619
  TuiDocDemoComponent = TuiDocDemoComponent_1 = __decorate([
575
620
  core.Component({
576
- selector: "tui-doc-demo",
621
+ selector: 'tui-doc-demo',
577
622
  template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n routerLink=\"/directives/mode\"\n >\n <code>tuiMode</code>\n </a>\n </ng-template>\n <ng-container *ngIf=\"isMobile; else desktop\">\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-mode\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiHintContent]=\"tooltip\"\n [formControl]=\"modeControl\"\n >\n tuiMode\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n ></tui-data-list-wrapper>\n </tui-select>\n </ng-container>\n <ng-template #desktop>\n tuiMode:\n <tui-tooltip\n describeId=\"form\"\n [content]=\"tooltip\"\n ></tui-tooltip>\n <div\n tuiGroup\n class=\"t-group\"\n [collapsed]=\"true\"\n >\n <tui-radio-block\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [item]=\"null\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onLight\n </tui-radio-block>\n </div>\n </ng-template>\n <tui-checkbox-labeled\n size=\"m\"\n class=\"t-checkbox\"\n [(ngModel)]=\"opaque\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n #wrapper\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"modeControl.value === 'onDark'\"\n [class.t-wrapper_gray]=\"modeControl.value === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n #content\n id=\"demoContent\"\n class=\"t-content\"\n >\n <form\n *ngIf=\"testForm\"\n class=\"t-form\"\n [formGroup]=\"testForm\"\n >\n <div class=\"t-input-wrapper\">\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n </div>\n <button\n tuiButton\n type=\"button\"\n size=\"s\"\n class=\"t-button\"\n [iconRight]=\"icon\"\n (click)=\"toggleDetails()\"\n >\n {{ texts[2] }}\n </button>\n <ng-template #icon>\n <tui-svg\n src=\"tuiIconChevronDown\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"expanded\"\n ></tui-svg>\n </ng-template>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"expanded\"\n >\n <ng-template tuiExpandContent>\n <pre class=\"t-value\">Form data: {{ testForm.value | json }}</pre>\n <div\n tuiGroup\n class=\"t-form-controls\"\n >\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-select\"\n [ngModel]=\"updateOn\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"updateOnChange($event)\"\n >\n updateOn\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"updateOnVariants\"\n ></tui-data-list-wrapper>\n </tui-select>\n <button\n tuiButton\n type=\"reset\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Reset\n </button>\n <button\n tuiButton\n type=\"submit\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Submit\n </button>\n </div>\n </ng-template>\n </tui-expand>\n </form>\n <ng-content></ng-content>\n </div>\n <button\n tabindex=\"-1\"\n class=\"t-resizer\"\n (tuiDragStart)=\"onDragStart($event)\"\n (tuiDragContinues)=\"onDragContinues($event)\"\n (tuiDragEnd)=\"onDragEnd()\"\n >\n <span\n #resizerText\n class=\"t-resizer-text\"\n ></span>\n </button>\n</div>\n",
578
623
  changeDetection: core.ChangeDetectionStrategy.OnPush,
579
624
  providers: [
@@ -733,10 +778,10 @@
733
778
  if (isEmptyParamValue(prepared)) {
734
779
  return null;
735
780
  }
736
- else if (isBooleanParamValue(prepared)) {
781
+ if (isBooleanParamValue(prepared)) {
737
782
  return String(prepared) === "true";
738
783
  }
739
- else if (isNumberParamValue(prepared)) {
784
+ if (isNumberParamValue(prepared)) {
740
785
  return Number(prepared);
741
786
  }
742
787
  var decodedValue = decodeURIComponent(prepared);
@@ -768,7 +813,7 @@
768
813
  return value.startsWith("{") && value.endsWith("}");
769
814
  }
770
815
 
771
- var SERIALIZED_SUFFIX = "$";
816
+ var SERIALIZED_SUFFIX = '$';
772
817
  // @bad TODO: refactor output and value sync
773
818
  var TuiDocDocumentationPropertyConnectorDirective = /** @class */ (function () {
774
819
  function TuiDocDocumentationPropertyConnectorDirective(template, locationRef, activatedRoute, urlSerializer) {
@@ -776,9 +821,9 @@
776
821
  this.locationRef = locationRef;
777
822
  this.activatedRoute = activatedRoute;
778
823
  this.urlSerializer = urlSerializer;
779
- this.documentationPropertyName = "";
824
+ this.documentationPropertyName = '';
780
825
  this.documentationPropertyMode = null;
781
- this.documentationPropertyType = "";
826
+ this.documentationPropertyType = '';
782
827
  this.documentationPropertyDeprecated = false;
783
828
  this.documentationPropertyValues = null;
784
829
  this.documentationPropertyValueChange = new core.EventEmitter();
@@ -791,11 +836,11 @@
791
836
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "attrName", {
792
837
  get: function () {
793
838
  switch (this.documentationPropertyMode) {
794
- case "input":
839
+ case 'input':
795
840
  return "[" + this.documentationPropertyName + "]";
796
- case "output":
841
+ case 'output':
797
842
  return "(" + this.documentationPropertyName + ")";
798
- case "input-output":
843
+ case 'input-output':
799
844
  return "[(" + this.documentationPropertyName + ")]";
800
845
  default:
801
846
  return this.documentationPropertyName;
@@ -813,7 +858,7 @@
813
858
  });
814
859
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "shouldShowValues", {
815
860
  get: function () {
816
- return this.documentationPropertyMode !== "output";
861
+ return this.documentationPropertyMode !== 'output';
817
862
  },
818
863
  enumerable: true,
819
864
  configurable: true
@@ -849,7 +894,7 @@
849
894
  var computedValue = isValueAvailableByKey && this.documentationPropertyValues
850
895
  ? this.documentationPropertyValues.indexOf(value)
851
896
  : value;
852
- var suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : "";
897
+ var suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : '';
853
898
  var propName = this.documentationPropertyName + suffix;
854
899
  tree.queryParams = __assign(__assign({}, tree.queryParams), (_a = {}, _a[propName] = computedValue, _a));
855
900
  this.locationRef.go(String(tree));
@@ -883,8 +928,8 @@
883
928
  ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyValueChange", void 0);
884
929
  TuiDocDocumentationPropertyConnectorDirective = __decorate([
885
930
  core.Directive({
886
- selector: "ng-template[documentationPropertyName]",
887
- exportAs: "documentationProperty",
931
+ selector: 'ng-template[documentationPropertyName]',
932
+ exportAs: 'documentationProperty',
888
933
  }),
889
934
  __param(0, core.Inject(core.TemplateRef)),
890
935
  __param(1, core.Inject(common.Location)),
@@ -901,7 +946,7 @@
901
946
  function TuiDocDocumentationComponent(changeDetectorRef, texts) {
902
947
  this.changeDetectorRef = changeDetectorRef;
903
948
  this.texts = texts;
904
- this.heading = "";
949
+ this.heading = '';
905
950
  this.showValues = true;
906
951
  this.isAPI = false;
907
952
  this.propertiesConnectors = cdk.EMPTY_QUERY;
@@ -925,71 +970,71 @@
925
970
  TuiDocDocumentationComponent.prototype.getColor = function (color) {
926
971
  if (color.length === 4) {
927
972
  return color
928
- .split("")
973
+ .split('')
929
974
  .reduce(function (result, current) { return __spread(result, [current, current]); }, [])
930
- .join("")
931
- .replace("#", "");
975
+ .join('')
976
+ .replace('#', '');
932
977
  }
933
- if (color.startsWith("#")) {
978
+ if (color.startsWith('#')) {
934
979
  return color;
935
980
  }
936
- if (color === "transparent") {
937
- return "#000000";
981
+ if (color === 'transparent') {
982
+ return '#000000';
938
983
  }
939
984
  var parsed = color
940
- .replace("rgb(", "")
941
- .replace("rgba(", "")
942
- .replace(")", "")
943
- .replace(" ", "")
944
- .split(",")
985
+ .replace('rgb(', '')
986
+ .replace('rgba(', '')
987
+ .replace(')', '')
988
+ .replace(' ', '')
989
+ .split(',')
945
990
  .map(function (v) { return Number.parseInt(v, 10); });
946
991
  return rgbToHex.apply(void 0, __spread(parsed));
947
992
  };
948
993
  TuiDocDocumentationComponent.prototype.getOpacity = function (color) {
949
- if (color.startsWith("#") || color.startsWith("rgb(")) {
994
+ if (color.startsWith('#') || color.startsWith('rgb(')) {
950
995
  return 100;
951
996
  }
952
- if (color === "transparent") {
997
+ if (color === 'transparent') {
953
998
  return 0;
954
999
  }
955
- var lastComma = color.lastIndexOf(",");
1000
+ var lastComma = color.lastIndexOf(',');
956
1001
  var parsed = color
957
1002
  .slice(lastComma)
958
- .replace(")", "")
959
- .replace(" ", "")
960
- .replace(",", "");
1003
+ .replace(')', '')
1004
+ .replace(' ', '')
1005
+ .replace(',', '');
961
1006
  return Math.round(Number.parseFloat(parsed) * 100);
962
1007
  };
963
1008
  TuiDocDocumentationComponent.prototype.onColorChange = function (connector, color) {
964
- var opacity = this.getOpacity(connector.documentationPropertyValue || "");
1009
+ var opacity = this.getOpacity(connector.documentationPropertyValue || '');
965
1010
  if (opacity === 100) {
966
1011
  connector.onValueChange(color);
967
1012
  return;
968
1013
  }
969
- var rgb = hexToRgb(color).join(", ");
1014
+ var rgb = hexToRgb(color).join(', ');
970
1015
  var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
971
1016
  connector.onValueChange(result);
972
1017
  };
973
1018
  TuiDocDocumentationComponent.prototype.onOpacityChange = function (connector, opacity) {
974
- var hex = this.getColor(connector.documentationPropertyValue || "");
1019
+ var hex = this.getColor(connector.documentationPropertyValue || '');
975
1020
  var rgb = hexToRgb(hex);
976
1021
  var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
977
1022
  connector.onValueChange(result);
978
1023
  };
979
1024
  TuiDocDocumentationComponent.prototype.stripOptional = function (name) {
980
- return name.replace("?", "");
1025
+ return name.replace('?', '');
981
1026
  };
982
1027
  TuiDocDocumentationComponent.prototype.isOptional = function (name) {
983
- return name.includes("?");
1028
+ return name.includes('?');
984
1029
  };
985
1030
  TuiDocDocumentationComponent.prototype.isPrimitivePolymorpheusContent = function (value) {
986
- return typeof value === "string" || typeof value === "number";
1031
+ return typeof value === 'string' || typeof value === 'number';
987
1032
  };
988
1033
  TuiDocDocumentationComponent.prototype.showCleaner = function (type) {
989
- return type.includes("null");
1034
+ return type.includes('null');
990
1035
  };
991
1036
  TuiDocDocumentationComponent.prototype.showContentTooltip = function (type) {
992
- return type.includes("PolymorpheusContent");
1037
+ return type.includes('PolymorpheusContent');
993
1038
  };
994
1039
  TuiDocDocumentationComponent.prototype.inspectAny = function (data) {
995
1040
  return inspectAny(data, 2);
@@ -1012,12 +1057,12 @@
1012
1057
  ], TuiDocDocumentationComponent.prototype, "propertiesConnectors", void 0);
1013
1058
  TuiDocDocumentationComponent = __decorate([
1014
1059
  core.Component({
1015
- selector: "tui-doc-documentation",
1060
+ selector: 'tui-doc-documentation',
1016
1061
  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-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\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 {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\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=\"showContentTooltip(propertyConnector.documentationPropertyType)\"\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\"\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]=\"showCleaner(propertyConnector.documentationPropertyType)\"\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>{{ inspectAny(data) }}</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 tuiTextfieldType=\"text\"\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n ></tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\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=\"isPrimitivePolymorpheusContent(propertyConnector.documentationPropertyValue)\"\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",
1017
1062
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1018
1063
  animations: [
1019
- animations.trigger("emitEvent", [
1020
- animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
1064
+ animations.trigger('emitEvent', [
1065
+ animations.transition(':increment', [animations.style({ opacity: 1 }), animations.animate('500ms ease-in')]),
1021
1066
  ]),
1022
1067
  ],
1023
1068
  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;text-align:right}.t-cell_prop{width:40%}.t-cell_value{max-width:20rem}:host-context(tui-root._mobile) .t-cell_value{width:9.375rem}: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:400;text-align:left}.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)}"]
@@ -1037,7 +1082,7 @@
1037
1082
  set: function (opacity) {
1038
1083
  var nativeFocusableElement = this.tuiFocusableComponent.nativeFocusableElement;
1039
1084
  if (nativeFocusableElement) {
1040
- this.renderer.setStyle(nativeFocusableElement, "opacity", opacity / 100);
1085
+ this.renderer.setStyle(nativeFocusableElement, 'opacity', opacity / 100);
1041
1086
  }
1042
1087
  },
1043
1088
  enumerable: true,
@@ -1052,7 +1097,7 @@
1052
1097
  ], TuiInputOpacityDirective.prototype, "tuiInputOpacity", null);
1053
1098
  TuiInputOpacityDirective = __decorate([
1054
1099
  core.Directive({
1055
- selector: "[tuiInputOpacity]",
1100
+ selector: '[tuiInputOpacity]',
1056
1101
  }),
1057
1102
  __param(0, core.Inject(core.Renderer2)),
1058
1103
  __param(1, core.Inject(cdk.TUI_FOCUSABLE_ITEM_ACCESSOR))
@@ -1186,8 +1231,8 @@
1186
1231
  this.route = route;
1187
1232
  this.ngLocation = ngLocation;
1188
1233
  this.rawLoader$$ = new rxjs.BehaviorSubject({});
1189
- this.heading = "";
1190
- this.description = "";
1234
+ this.heading = '';
1235
+ this.description = '';
1191
1236
  this.componentName = this.location.pathname.slice(1);
1192
1237
  this.defaultTabIndex = 0;
1193
1238
  this.defaultTab = this.texts[this.defaultTabIndex];
@@ -1207,7 +1252,7 @@
1207
1252
  configurable: true
1208
1253
  });
1209
1254
  TuiDocExampleComponent.prototype.copyExampleLink = function () {
1210
- var hashPosition = this.location.href.indexOf("#");
1255
+ var hashPosition = this.location.href.indexOf('#');
1211
1256
  var currentUrl = hashPosition > -1
1212
1257
  ? this.location.href.slice(0, Math.max(0, hashPosition))
1213
1258
  : this.location.href;
@@ -1225,16 +1270,16 @@
1225
1270
  var _this = this;
1226
1271
  var _a, _b;
1227
1272
  this.loading$.next(true);
1228
- (_a = this.codeEditor) === null || _a === void 0 ? void 0 : _a.edit(this.componentName, (_b = this.id) !== null && _b !== void 0 ? _b : "", files).finally(function () { return _this.loading$.next(false); });
1273
+ (_a = this.codeEditor) === null || _a === void 0 ? void 0 : _a.edit(this.componentName, (_b = this.id) !== null && _b !== void 0 ? _b : '', files).finally(function () { return _this.loading$.next(false); });
1229
1274
  };
1230
1275
  TuiDocExampleComponent.prototype.setFragmentWithoutRedirect = function (id) {
1231
1276
  var url = this.router
1232
- .createUrlTree([], { relativeTo: this.route, fragment: id || "" })
1277
+ .createUrlTree([], { relativeTo: this.route, fragment: id || '' })
1233
1278
  .toString();
1234
1279
  this.ngLocation.go(url);
1235
1280
  };
1236
1281
  TuiDocExampleComponent.ctorParameters = function () { return [
1237
- { type: String, decorators: [{ type: core.Attribute, args: ["id",] }] },
1282
+ { type: String, decorators: [{ type: core.Attribute, args: ['id',] }] },
1238
1283
  { type: clipboard.Clipboard, decorators: [{ type: core.Inject, args: [clipboard.Clipboard,] }] },
1239
1284
  { type: core$1.TuiNotificationsService, decorators: [{ type: core.Inject, args: [core$1.TuiNotificationsService,] }] },
1240
1285
  { type: Location, decorators: [{ type: core.Inject, args: [common$1.LOCATION,] }] },
@@ -1262,12 +1307,12 @@
1262
1307
  ], TuiDocExampleComponent.prototype, "componentName", void 0);
1263
1308
  TuiDocExampleComponent = __decorate([
1264
1309
  core.Component({
1265
- selector: "tui-doc-example",
1310
+ selector: 'tui-doc-example',
1266
1311
  template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n polymorpheus-outlet\n [content]=\"heading | tuiDocExampleCapitalize\"\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 polymorpheus-outlet\n class=\"t-description\"\n [content]=\"description | tuiDocExampleCapitalize\"\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 *tuiTab\n tuiTab\n >\n {{ tab }}\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <button\n *ngIf=\"codeEditor\"\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 <div\n polymorpheus-outlet\n [content]=\"action\"\n [context]=\"{$implicit: code}\"\n ></div>\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",
1267
1312
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1268
1313
  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:400;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:0.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}"]
1269
1314
  }),
1270
- __param(0, core.Attribute("id")),
1315
+ __param(0, core.Attribute('id')),
1271
1316
  __param(1, core.Inject(clipboard.Clipboard)),
1272
1317
  __param(2, core.Inject(core$1.TuiNotificationsService)),
1273
1318
  __param(3, core.Inject(common$1.LOCATION)),
@@ -1342,22 +1387,22 @@
1342
1387
  function TuiLanguageSwitcherComponent(switcher, iconsPath) {
1343
1388
  this.switcher = switcher;
1344
1389
  this.iconsPath = iconsPath;
1345
- this.path = this.iconsPath("tuiIcon").replace("tuiIcon.svg#tuiIcon", "");
1390
+ this.path = this.iconsPath('tuiIcon').replace('tuiIcon.svg#tuiIcon', '');
1346
1391
  this.language = new forms.FormControl(core$1.tuiCapitalizeFirstLetter(this.switcher.language));
1347
1392
  this.flags = new Map([
1348
- ["chinese", i18n.TuiCountryIsoCode.CN],
1349
- ["dutch", i18n.TuiCountryIsoCode.NL],
1350
- ["english", i18n.TuiCountryIsoCode.GB],
1351
- ["french", i18n.TuiCountryIsoCode.FR],
1352
- ["german", i18n.TuiCountryIsoCode.DE],
1353
- ["italian", i18n.TuiCountryIsoCode.IT],
1354
- ["polish", i18n.TuiCountryIsoCode.PL],
1355
- ["portuguese", i18n.TuiCountryIsoCode.PT],
1356
- ["russian", i18n.TuiCountryIsoCode.RU],
1357
- ["spanish", i18n.TuiCountryIsoCode.ES],
1358
- ["turkish", i18n.TuiCountryIsoCode.TR],
1359
- ["ukrainian", i18n.TuiCountryIsoCode.UA],
1360
- ["vietnamese", i18n.TuiCountryIsoCode.VN],
1393
+ ['chinese', i18n.TuiCountryIsoCode.CN],
1394
+ ['dutch', i18n.TuiCountryIsoCode.NL],
1395
+ ['english', i18n.TuiCountryIsoCode.GB],
1396
+ ['french', i18n.TuiCountryIsoCode.FR],
1397
+ ['german', i18n.TuiCountryIsoCode.DE],
1398
+ ['italian', i18n.TuiCountryIsoCode.IT],
1399
+ ['polish', i18n.TuiCountryIsoCode.PL],
1400
+ ['portuguese', i18n.TuiCountryIsoCode.PT],
1401
+ ['russian', i18n.TuiCountryIsoCode.RU],
1402
+ ['spanish', i18n.TuiCountryIsoCode.ES],
1403
+ ['turkish', i18n.TuiCountryIsoCode.TR],
1404
+ ['ukrainian', i18n.TuiCountryIsoCode.UA],
1405
+ ['vietnamese', i18n.TuiCountryIsoCode.VN],
1361
1406
  ]);
1362
1407
  this.names = Array.from(this.flags.keys());
1363
1408
  }
@@ -1370,7 +1415,7 @@
1370
1415
  ]; };
1371
1416
  TuiLanguageSwitcherComponent = __decorate([
1372
1417
  core.Component({
1373
- selector: "tui-language-switcher",
1418
+ selector: 'tui-language-switcher',
1374
1419
  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]=\"getFlagPath(flags.get(name))\"\n />\n {{ name | titlecase }}\n </button>\n </tui-data-list>\n</tui-select>\n",
1375
1420
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1376
1421
  styles: [".t-flag{width:1.75rem;height:1.25rem;margin-right:.5rem}"]
@@ -1399,15 +1444,15 @@
1399
1444
  function TuiDocMainComponent(storage, windowRef) {
1400
1445
  this.storage = storage;
1401
1446
  this.windowRef = windowRef;
1402
- this.night = this.storage.getItem("night") === "true" ||
1403
- (this.storage.getItem("night") === null &&
1404
- this.windowRef.matchMedia("(prefers-color-scheme: dark)").matches);
1447
+ this.night = this.storage.getItem('night') === 'true' ||
1448
+ (this.storage.getItem('night') === null &&
1449
+ this.windowRef.matchMedia('(prefers-color-scheme: dark)').matches);
1405
1450
  this.change$ = new rxjs.Subject();
1406
1451
  }
1407
1452
  TuiDocMainComponent_1 = TuiDocMainComponent;
1408
1453
  Object.defineProperty(TuiDocMainComponent.prototype, "mode", {
1409
1454
  get: function () {
1410
- return this.night ? "onDark" : null;
1455
+ return this.night ? 'onDark' : null;
1411
1456
  },
1412
1457
  enumerable: true,
1413
1458
  configurable: true
@@ -1415,7 +1460,7 @@
1415
1460
  TuiDocMainComponent.prototype.onMode = function (night) {
1416
1461
  this.night = night;
1417
1462
  this.change$.next();
1418
- this.storage.setItem("night", String(night));
1463
+ this.storage.setItem('night', String(night));
1419
1464
  };
1420
1465
  var TuiDocMainComponent_1;
1421
1466
  TuiDocMainComponent.ctorParameters = function () { return [
@@ -1423,11 +1468,11 @@
1423
1468
  { type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] }
1424
1469
  ]; };
1425
1470
  __decorate([
1426
- core.HostBinding("attr.data-mode")
1471
+ core.HostBinding('attr.data-mode')
1427
1472
  ], TuiDocMainComponent.prototype, "mode", null);
1428
1473
  TuiDocMainComponent = TuiDocMainComponent_1 = __decorate([
1429
1474
  core.Component({
1430
- selector: "tui-doc-main",
1475
+ selector: 'tui-doc-main',
1431
1476
  template: "<tui-theme-night *ngIf=\"night\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <label class=\"night-mode\">\n Night mode\n <tui-toggle\n class=\"tui-toggle\"\n [ngModel]=\"night\"\n (ngModelChange)=\"onMode($event)\"\n ></tui-toggle>\n </label>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <!-- TODO: 3.0 Remove-->\n <ng-container ngProjectAs=\"tuiOverNotifications\">\n <ng-content select=\"tuiOverNotifications\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n",
1432
1477
  encapsulation: core.ViewEncapsulation.None,
1433
1478
  providers: [
@@ -1479,7 +1524,7 @@
1479
1524
  ], ScrollIntoViewDirective.prototype, "scrollIntoView", null);
1480
1525
  ScrollIntoViewDirective = __decorate([
1481
1526
  core.Directive({
1482
- selector: "[scrollIntoView]",
1527
+ selector: '[scrollIntoView]',
1483
1528
  providers: [cdk.TuiDestroyService],
1484
1529
  })
1485
1530
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -1497,7 +1542,7 @@
1497
1542
  }
1498
1543
  TuiScrollIntoViewLinkDirective = __decorate([
1499
1544
  core.Directive({
1500
- selector: "[tuiScrollIntoViewLink]",
1545
+ selector: '[tuiScrollIntoViewLink]',
1501
1546
  providers: [cdk.TuiDestroyService],
1502
1547
  })
1503
1548
  ], TuiScrollIntoViewLinkDirective);
@@ -1661,12 +1706,12 @@
1661
1706
  this.readyToScroll$ = readyToScroll$;
1662
1707
  this.scrollBehavior = scrollBehavior;
1663
1708
  this.menuOpen = false;
1664
- this.search = "";
1709
+ this.search = '';
1665
1710
  this.open = false;
1666
1711
  this.openPagesArr = [];
1667
1712
  this.openPagesGroupsArr = [];
1668
- this.active = "";
1669
- this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || "onLight"; }));
1713
+ this.active = '';
1714
+ this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || 'onLight'; }));
1670
1715
  // Angular can't navigate no anchor links
1671
1716
  // https://stackoverflow.com/questions/36101756/angular2-routing-with-hashtag-to-page-anchor
1672
1717
  title$.subscribe(function (title) {
@@ -1713,13 +1758,13 @@
1713
1758
  TuiDocNavigationComponent.prototype.onClick = function () {
1714
1759
  this.open = false;
1715
1760
  this.menuOpen = false;
1716
- this.search = "";
1761
+ this.search = '';
1717
1762
  this.openActivePageGroup();
1718
1763
  };
1719
1764
  TuiDocNavigationComponent.prototype.filterItems = function (items, search) {
1720
1765
  return items.map(function (section) {
1721
1766
  return cdk.uniqBy(section.filter(function (_a) {
1722
- var title = _a.title, _b = _a.keywords, keywords = _b === void 0 ? "" : _b;
1767
+ var title = _a.title, _b = _a.keywords, keywords = _b === void 0 ? '' : _b;
1723
1768
  title = title.toLowerCase();
1724
1769
  search = search.toLowerCase();
1725
1770
  keywords = keywords.toLowerCase();
@@ -1727,14 +1772,14 @@
1727
1772
  keywords.includes(search) ||
1728
1773
  title.includes(transliterateKeyboardLayout(search)) ||
1729
1774
  keywords.includes(transliterateKeyboardLayout(search)) ||
1730
- search.replace(/-/gi, "").includes(title));
1731
- }), "title");
1775
+ search.replace(/-/gi, '').includes(title));
1776
+ }), 'title');
1732
1777
  });
1733
1778
  };
1734
1779
  TuiDocNavigationComponent.prototype.flattenSubPages = function (items) {
1735
1780
  return items.reduce(function (array, item) { return __spread(array, [
1736
1781
  item.reduce(function (pages, page) {
1737
- return "subPages" in page
1782
+ return 'subPages' in page
1738
1783
  ? __spread(pages, page.subPages) : __spread(pages, [page]);
1739
1784
  }, []),
1740
1785
  ]); }, []);
@@ -1752,11 +1797,11 @@
1752
1797
  var _this = this;
1753
1798
  this.items.forEach(function (pages, pagesIndex) {
1754
1799
  pages.forEach(function (page, pageIndex) {
1755
- if ("route" in page && _this.isActiveRoute(page.route)) {
1800
+ if ('route' in page && _this.isActiveRoute(page.route)) {
1756
1801
  _this.openPagesArr[pagesIndex] = true;
1757
1802
  _this.active = page.route;
1758
1803
  }
1759
- if ("subPages" in page) {
1804
+ if ('subPages' in page) {
1760
1805
  page.subPages.forEach(function (subPage) {
1761
1806
  if (_this.isActiveRoute(subPage.route)) {
1762
1807
  _this.openPagesArr[pagesIndex] = true;
@@ -1774,10 +1819,10 @@
1774
1819
  if (!element) {
1775
1820
  return;
1776
1821
  }
1777
- element.classList.add("tui-doc-animated-example");
1822
+ element.classList.add('tui-doc-animated-example');
1778
1823
  element.scrollIntoView({
1779
- block: "start",
1780
- inline: "nearest",
1824
+ block: 'start',
1825
+ inline: 'nearest',
1781
1826
  behavior: this.scrollBehavior,
1782
1827
  });
1783
1828
  };
@@ -1798,7 +1843,7 @@
1798
1843
  { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_SCROLL_BEHAVIOR,] }] }
1799
1844
  ]; };
1800
1845
  __decorate([
1801
- core.HostBinding("class._open")
1846
+ core.HostBinding('class._open')
1802
1847
  ], TuiDocNavigationComponent.prototype, "menuOpen", void 0);
1803
1848
  __decorate([
1804
1849
  cdk.tuiPure
@@ -1808,7 +1853,7 @@
1808
1853
  ], TuiDocNavigationComponent.prototype, "flattenSubPages", null);
1809
1854
  TuiDocNavigationComponent = __decorate([
1810
1855
  core.Component({
1811
- selector: "tui-doc-navigation",
1856
+ selector: 'tui-doc-navigation',
1812
1857
  template: "<tui-hosted-dropdown\n *tuiLet=\"filteredItems as filtered\"\n tuiAutoFocus\n tuiDropdownLimitWidth=\"fixed\"\n class=\"t-input\"\n [autoFocus]=\"!!sidebar\"\n [content]=\"dropdown\"\n [canOpen]=\"canOpen\"\n [(open)]=\"open\"\n>\n <tui-primitive-textfield\n iconAlign=\"left\"\n tuiTextfieldSize=\"m\"\n iconContent=\"tuiIconSearch\"\n [pseudoFocused]=\"open || null\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"search\"\n (valueChange)=\"onSearchChange($event)\"\n >\n {{ searchText }}\n </tui-primitive-textfield>\n <ng-template\n #dropdown\n let-activeZone\n >\n <tui-data-list>\n <tui-opt-group\n *ngFor=\"let group of filtered; let index = index\"\n [label]=\"labels[index] || ''\"\n >\n <a\n *ngFor=\"let item of group\"\n tuiOption\n [routerLink]=\"item.route\"\n (click)=\"onClick()\"\n >\n {{ item.title }}\n </a>\n </tui-opt-group>\n </tui-data-list>\n </ng-template>\n</tui-hosted-dropdown>\n\n<nav class=\"t-navigation\">\n <tui-scrollbar\n class=\"t-scrollbar\"\n [tuiMode]=\"mode$ | async\"\n >\n <tui-accordion\n [closeOthers]=\"false\"\n [rounded]=\"false\"\n >\n <tui-accordion-item\n *ngFor=\"let label of labels; index as index\"\n size=\"s\"\n [borders]=\"null\"\n [(open)]=\"!!openPagesArr[index]\"\n >\n <span class=\"t-label\">\n <strong>{{ label }}</strong>\n </span>\n <ng-template tuiAccordionItemContent>\n <div class=\"t-section\">\n <ng-container\n *ngFor=\"let item of items[index]; index as subIndex\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: index * 100 + subIndex}\"\n ></ng-container>\n </div>\n </ng-template>\n </tui-accordion-item>\n </tui-accordion>\n <div class=\"t-items-container\">\n <ng-container\n *ngFor=\"let item of itemsWithoutSections; let index = index\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: items.length - 1 + index}\"\n ></ng-container>\n </div>\n\n <ng-template\n #pages\n let-item=\"item\"\n let-index=\"index\"\n >\n <a\n *ngIf=\"!item.subPages; else subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink\"\n [routerLink]=\"item.route\"\n [scrollIntoView]=\"isActive(item.route)\"\n (click)=\"closeMenu()\"\n >\n {{ item.title }}\n </a>\n <ng-template #subPages>\n <div\n routerLinkActive\n class=\"t-subsection\"\n [routerLinkActiveOptions]=\"{exact: false}\"\n >\n <button\n *ngIf=\"item.subPages\"\n tuiLink\n type=\"button\"\n class=\"t-sublink t-sublink_subsection\"\n (click)=\"onGroupClick(index)\"\n >\n <tui-svg\n src=\"tuiIconChevronRight\"\n class=\"t-chevron\"\n [class.t-chevron_active]=\"!!openPagesGroupsArr[index]\"\n ></tui-svg>\n {{ item.title }}\n </button>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"!!openPagesGroupsArr[index]\"\n >\n <div class=\"t-section t-section_bordered\">\n <a\n *ngFor=\"let subPage of item.subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink t-sublink_small\"\n [routerLink]=\"subPage.route\"\n [scrollIntoView]=\"isActive(subPage.route)\"\n (click)=\"closeMenu()\"\n >\n {{ subPage.title }}\n </a>\n </div>\n </tui-expand>\n </div>\n </ng-template>\n </ng-template>\n </tui-scrollbar>\n</nav>\n\n<ng-content></ng-content>\n",
1813
1858
  providers: NAVIGATION_PROVIDERS,
1814
1859
  changeDetection: core.ChangeDetectionStrategy.OnPush,
@@ -1878,7 +1923,7 @@
1878
1923
  this.router = router;
1879
1924
  this.swipes$ = swipes$;
1880
1925
  this.stream$ = new rxjs.Subject();
1881
- this.open$ = rxjs.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());
1926
+ this.open$ = rxjs.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());
1882
1927
  }
1883
1928
  TuiDocHeaderComponent.prototype.onClick = function () {
1884
1929
  this.stream$.next(true);
@@ -1896,7 +1941,7 @@
1896
1941
  ]; };
1897
1942
  TuiDocHeaderComponent = __decorate([
1898
1943
  core.Component({
1899
- selector: "header[tuiDocHeader]",
1944
+ selector: 'header[tuiDocHeader]',
1900
1945
  template: "<button\n tuiIconButton\n icon=\"tuiIconMenuLarge\"\n appearance=\"icon\"\n class=\"t-menu\"\n [title]=\"menu\"\n (click)=\"onClick()\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-doc-navigation\n *tuiSidebar=\"!!(open$ | async)\"\n class=\"t-navigation\"\n ></tui-doc-navigation>\n</button>\n<div\n polymorpheus-outlet\n class=\"t-logo\"\n [content]=\"logo\"\n>\n <ng-template let-src>\n <img\n alt=\"Logo\"\n class=\"t-img\"\n [src]=\"src\"\n />\n </ng-template>\n</div>\n<ng-content></ng-content>\n",
1901
1946
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1902
1947
  styles: [":host{box-shadow:0 .125rem 1rem rgba(0,0,0,.08);position:fixed;top:0;left:0;right:0;z-index:1;display:flex;height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}.t-logo{margin-right:auto;font:var(--tui-font-heading-5)}.t-img{display:block}.t-menu{margin-left:-1.25rem}@media screen and (min-width:48em){.t-menu{display:none}}.t-navigation{min-height:100%}"]
@@ -1994,7 +2039,7 @@
1994
2039
  ], TuiDocPageTabConnectorDirective.prototype, "pageTab", void 0);
1995
2040
  TuiDocPageTabConnectorDirective = __decorate([
1996
2041
  core.Directive({
1997
- selector: "[pageTab]",
2042
+ selector: '[pageTab]',
1998
2043
  }),
1999
2044
  __param(0, core.Inject(core.TemplateRef))
2000
2045
  ], TuiDocPageTabConnectorDirective);
@@ -2008,10 +2053,10 @@
2008
2053
  this.deprecated = deprecated;
2009
2054
  this.defaultTabs = defaultTabs;
2010
2055
  this.seeAlso = seeAlso;
2011
- this.header = "";
2012
- this.package = "";
2013
- this.type = "";
2014
- this.path = "";
2056
+ this.header = '';
2057
+ this.package = '';
2058
+ this.type = '';
2059
+ this.path = '';
2015
2060
  this.tabConnectors = cdk.EMPTY_QUERY;
2016
2061
  this.activeItemIndex = NaN;
2017
2062
  }
@@ -2023,11 +2068,11 @@
2023
2068
  configurable: true
2024
2069
  });
2025
2070
  TuiDocPageComponent.prototype.getRouterLink = function (tab) {
2026
- if (tab === void 0) { tab = ""; }
2027
- return "./" + tab.replace(/ /g, "_");
2071
+ if (tab === void 0) { tab = ''; }
2072
+ return "./" + tab.replace(/ /g, '_');
2028
2073
  };
2029
2074
  TuiDocPageComponent.ctorParameters = function () { return [
2030
- { type: String, decorators: [{ type: core.Attribute, args: ["deprecated",] }] },
2075
+ { type: String, decorators: [{ type: core.Attribute, args: ['deprecated',] }] },
2031
2076
  { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_DEFAULT_TABS,] }] },
2032
2077
  { type: undefined, decorators: [{ type: core.Inject, args: [PAGE_SEE_ALSO,] }] }
2033
2078
  ]; };
@@ -2048,13 +2093,13 @@
2048
2093
  ], TuiDocPageComponent.prototype, "tabConnectors", void 0);
2049
2094
  TuiDocPageComponent = __decorate([
2050
2095
  core.Component({
2051
- selector: "tui-doc-page",
2096
+ selector: 'tui-doc-page',
2052
2097
  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 *tuiTab\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 *tuiTab\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",
2053
2098
  changeDetection: core.ChangeDetectionStrategy.OnPush,
2054
2099
  providers: PAGE_PROVIDERS,
2055
2100
  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}"]
2056
2101
  }),
2057
- __param(0, core.Attribute("deprecated")),
2102
+ __param(0, core.Attribute('deprecated')),
2058
2103
  __param(1, core.Inject(TUI_DOC_DEFAULT_TABS)),
2059
2104
  __param(2, core.Inject(PAGE_SEE_ALSO))
2060
2105
  ], TuiDocPageComponent);
@@ -2071,14 +2116,14 @@
2071
2116
  TuiDocSeeAlsoComponent.prototype.getRouterLink = function (pageTitle) {
2072
2117
  for (var i = 0; i < this.pages.length; i++) {
2073
2118
  var page = this.pages
2074
- .map(function (page) { return ("subPages" in page ? page.subPages : [page]); })
2119
+ .map(function (page) { return ('subPages' in page ? page.subPages : [page]); })
2075
2120
  .reduce(function (pages, subPages) { return __spread(pages, subPages); }, [])
2076
2121
  .find(function (page) { return page.title === pageTitle; });
2077
2122
  if (page === null || page === void 0 ? void 0 : page.route) {
2078
2123
  return page.route;
2079
2124
  }
2080
2125
  }
2081
- return "";
2126
+ return '';
2082
2127
  };
2083
2128
  TuiDocSeeAlsoComponent.ctorParameters = function () { return [
2084
2129
  { type: String, decorators: [{ type: core.Inject, args: [TUI_DOC_SEE_ALSO_TEXT,] }] },
@@ -2089,7 +2134,7 @@
2089
2134
  ], TuiDocSeeAlsoComponent.prototype, "seeAlso", void 0);
2090
2135
  TuiDocSeeAlsoComponent = __decorate([
2091
2136
  core.Component({
2092
- selector: "tui-doc-see-also",
2137
+ selector: 'tui-doc-see-also',
2093
2138
  template: "<h5 class=\"t-header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">{{ ', ' }}</ng-container>\n</ng-container>\n",
2094
2139
  changeDetection: core.ChangeDetectionStrategy.OnPush,
2095
2140
  styles: [":host{display:block}.t-header{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"]
@@ -2121,10 +2166,10 @@
2121
2166
  function TuiDocSourceCodeComponent(sourceCode, text) {
2122
2167
  this.sourceCode = sourceCode;
2123
2168
  this.text = text;
2124
- this.header = "";
2125
- this.package = "";
2126
- this.type = "";
2127
- this.path = "";
2169
+ this.header = '';
2170
+ this.package = '';
2171
+ this.type = '';
2172
+ this.path = '';
2128
2173
  }
2129
2174
  Object.defineProperty(TuiDocSourceCodeComponent.prototype, "pathOptions", {
2130
2175
  get: function () {
@@ -2162,7 +2207,7 @@
2162
2207
  ], TuiDocSourceCodeComponent.prototype, "getPathOptions", null);
2163
2208
  TuiDocSourceCodeComponent = __decorate([
2164
2209
  core.Component({
2165
- selector: "tui-doc-source-code",
2210
+ selector: 'tui-doc-source-code',
2166
2211
  template: "<div\n *ngIf=\"!!sourceCode\"\n polymorpheus-outlet\n [content]=\"sourceCode\"\n [context]=\"pathOptions\"\n>\n <ng-template let-link>\n <a\n *ngIf=\"link\"\n tuiIconButton\n type=\"button\"\n icon=\"tuiIconCodeLarge\"\n appearance=\"icon\"\n target=\"_blank\"\n size=\"s\"\n [title]=\"text\"\n [href]=\"link\"\n ></a>\n </ng-template>\n</div>\n",
2167
2212
  changeDetection: core.ChangeDetectionStrategy.OnPush
2168
2213
  }),