@taiga-ui/addon-doc 3.10.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/bundles/taiga-ui-addon-doc.umd.js +238 -80
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/components/demo/demo.component.d.ts +11 -3
- package/components/documentation/documentation-property-connector.directive.d.ts +1 -1
- package/components/documentation/documentation.component.d.ts +8 -9
- package/components/documentation/documentation.module.d.ts +16 -9
- package/components/documentation/pipes/cleaner.pipe.d.ts +7 -0
- package/components/documentation/pipes/content-tooltip.pipe.d.ts +7 -0
- package/components/documentation/pipes/opacity.pipe.d.ts +7 -0
- package/components/documentation/pipes/optional.pipe.d.ts +7 -0
- package/components/documentation/pipes/primitive-polymorpheus-content.pipe.d.ts +7 -0
- package/components/documentation/pipes/strip-optional.pipe.d.ts +7 -0
- package/components/documentation/pipes//321/201olor.pipe.d.ts +7 -0
- package/components/navigation/navigation.component.d.ts +1 -1
- package/directives/scroll-into-view/scroll-into-view.directive.d.ts +1 -1
- package/esm2015/components/demo/demo.component.js +62 -20
- package/esm2015/components/documentation/documentation-property-connector.directive.js +1 -1
- package/esm2015/components/documentation/documentation.component.js +36 -64
- package/esm2015/components/documentation/documentation.module.js +22 -1
- package/esm2015/components/documentation/pipes/cleaner.pipe.js +14 -0
- package/esm2015/components/documentation/pipes/content-tooltip.pipe.js +14 -0
- package/esm2015/components/documentation/pipes/opacity.pipe.js +26 -0
- package/esm2015/components/documentation/pipes/optional.pipe.js +14 -0
- package/esm2015/components/documentation/pipes/primitive-polymorpheus-content.pipe.js +15 -0
- package/esm2015/components/documentation/pipes/strip-optional.pipe.js +14 -0
- package/esm2015/components/documentation/pipes//321/201olor.pipe.js +35 -0
- package/esm2015/components/navigation/navigation.component.js +5 -3
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +5 -3
- package/esm2015/internal/see-also/see-also.component.js +1 -1
- package/esm2015/utils/coerce-value.js +1 -1
- package/fesm2015/taiga-ui-addon-doc.js +217 -80
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/internal/see-also/see-also.component.d.ts +1 -1
- package/package.json +9 -9
- package/utils/coerce-value.d.ts +1 -1
|
@@ -571,10 +571,11 @@
|
|
|
571
571
|
var MIN_COMPONENT_WIDTH = 104;
|
|
572
572
|
var TuiDocDemoComponent = /** @class */ (function () {
|
|
573
573
|
function TuiDocDemoComponent(isMobile, destroy$, renderer, platformId, locationRef, urlSerializer, texts) {
|
|
574
|
-
var _this = this;
|
|
575
574
|
this.isMobile = isMobile;
|
|
576
575
|
this.destroy$ = destroy$;
|
|
577
576
|
this.renderer = renderer;
|
|
577
|
+
this.locationRef = locationRef;
|
|
578
|
+
this.urlSerializer = urlSerializer;
|
|
578
579
|
this.texts = texts;
|
|
579
580
|
this.initialX = 0;
|
|
580
581
|
this.wrapperWidth = 0;
|
|
@@ -593,15 +594,6 @@
|
|
|
593
594
|
if (parsedMode !== null && parsedMode.length > 0) {
|
|
594
595
|
this.modeControl.setValue(parsedMode[1]);
|
|
595
596
|
}
|
|
596
|
-
this.modeControl.valueChanges
|
|
597
|
-
.pipe(operators.startWith(this.modeControl.value), operators.takeUntil(this.destroy$))
|
|
598
|
-
.subscribe(function (mode) {
|
|
599
|
-
var urlTree = urlSerializer.parse(locationRef.path());
|
|
600
|
-
urlTree.queryParams = Object.assign(Object.assign({}, urlTree.queryParams), { tuiMode: mode });
|
|
601
|
-
locationRef.go(String(urlTree));
|
|
602
|
-
_this.mode = mode;
|
|
603
|
-
_this.change$.next();
|
|
604
|
-
});
|
|
605
597
|
}
|
|
606
598
|
TuiDocDemoComponent.prototype.onResize = function () {
|
|
607
599
|
this.setResizerTextContent();
|
|
@@ -610,17 +602,28 @@
|
|
|
610
602
|
this.createForm();
|
|
611
603
|
};
|
|
612
604
|
TuiDocDemoComponent.prototype.ngAfterViewInit = function () {
|
|
613
|
-
this
|
|
605
|
+
var _this = this;
|
|
606
|
+
this.modeControl.valueChanges
|
|
607
|
+
.pipe(operators.startWith(this.modeControl.value), operators.takeUntil(this.destroy$))
|
|
608
|
+
.subscribe(function (mode) {
|
|
609
|
+
_this.updateUrl(mode);
|
|
610
|
+
var wrapperWidth = parseInt(_this.getUrlTree().queryParams.sandboxWidth, 10) +
|
|
611
|
+
_this.getPaddingOfWrapper() +
|
|
612
|
+
_this.getResizeButtonWidth();
|
|
613
|
+
if (!Number.isNaN(wrapperWidth)) {
|
|
614
|
+
_this.wrapperWidth = wrapperWidth;
|
|
615
|
+
_this.setWidthWrapper(i6.tuiPx(wrapperWidth));
|
|
616
|
+
}
|
|
617
|
+
_this.setResizerTextContent();
|
|
618
|
+
_this.mode = mode;
|
|
619
|
+
_this.change$.next();
|
|
620
|
+
});
|
|
614
621
|
};
|
|
615
622
|
TuiDocDemoComponent.prototype.setResizerTextContent = function () {
|
|
616
623
|
if (!this.content || !this.resizerText) {
|
|
617
624
|
return;
|
|
618
625
|
}
|
|
619
|
-
|
|
620
|
-
? getComputedStyle(this.content.nativeElement).paddingLeft
|
|
621
|
-
: "0";
|
|
622
|
-
var offsetWidth = this.content.nativeElement.offsetWidth;
|
|
623
|
-
this.resizerText.nativeElement.textContent = String(offsetWidth - parseInt(paddingLeft || "0", 10) * 2);
|
|
626
|
+
this.resizerText.nativeElement.textContent = (this.content.nativeElement.offsetWidth - this.getPaddingOfWrapper()).toString();
|
|
624
627
|
};
|
|
625
628
|
TuiDocDemoComponent.prototype.onDragStart = function (event) {
|
|
626
629
|
event.preventDefault();
|
|
@@ -634,6 +637,7 @@
|
|
|
634
637
|
};
|
|
635
638
|
TuiDocDemoComponent.prototype.onDragEnd = function () {
|
|
636
639
|
this.wrapperWidth = this.wrapper ? this.wrapper.nativeElement.offsetWidth : 0;
|
|
640
|
+
this.updateSandboxWidth();
|
|
637
641
|
};
|
|
638
642
|
TuiDocDemoComponent.prototype.toggleDetails = function () {
|
|
639
643
|
this.expanded = !this.expanded;
|
|
@@ -643,21 +647,53 @@
|
|
|
643
647
|
this.createForm();
|
|
644
648
|
};
|
|
645
649
|
TuiDocDemoComponent.prototype.createForm = function () {
|
|
646
|
-
var
|
|
650
|
+
var _d = this, control = _d.control, updateOn = _d.updateOn;
|
|
647
651
|
if (!control) {
|
|
648
652
|
return;
|
|
649
653
|
}
|
|
650
654
|
this.testForm = new i5$1.FormGroup({ testValue: control }, { updateOn: updateOn });
|
|
651
655
|
};
|
|
652
656
|
TuiDocDemoComponent.prototype.resizeContent = function (delta) {
|
|
657
|
+
this.setWidthWrapper(i6.tuiPx(Math.max(this.wrapperWidth - delta, MIN_COMPONENT_WIDTH)));
|
|
658
|
+
};
|
|
659
|
+
TuiDocDemoComponent.prototype.setWidthWrapper = function (width) {
|
|
653
660
|
if (!this.wrapper) {
|
|
654
661
|
return;
|
|
655
662
|
}
|
|
656
|
-
this.renderer.setStyle(this.wrapper.nativeElement, "width",
|
|
663
|
+
this.renderer.setStyle(this.wrapper.nativeElement, "width", width);
|
|
664
|
+
};
|
|
665
|
+
TuiDocDemoComponent.prototype.updateUrl = function (mode) {
|
|
666
|
+
var urlTree = this.getUrlTree();
|
|
667
|
+
var modeParam = (mode !== null && mode !== void 0 ? mode : urlTree.queryParams.tuiMode) ? { tuiMode: mode } : {};
|
|
668
|
+
var sandboxWidth = parseInt(urlTree.queryParams.sandboxWidth, 10);
|
|
669
|
+
var resizeParam = !Number.isNaN(sandboxWidth) && MIN_COMPONENT_WIDTH > sandboxWidth
|
|
670
|
+
? { sandboxWidth: sandboxWidth }
|
|
671
|
+
: {};
|
|
672
|
+
urlTree.queryParams = Object.assign(Object.assign(Object.assign({}, urlTree.queryParams), modeParam), resizeParam);
|
|
673
|
+
this.locationRef.go(String(urlTree));
|
|
674
|
+
};
|
|
675
|
+
TuiDocDemoComponent.prototype.getUrlTree = function () {
|
|
676
|
+
return this.urlSerializer.parse(this.locationRef.path());
|
|
677
|
+
};
|
|
678
|
+
TuiDocDemoComponent.prototype.getPaddingOfWrapper = function () {
|
|
679
|
+
var paddingLeft = this.isBrowser && this.content
|
|
680
|
+
? getComputedStyle(this.content.nativeElement).paddingLeft
|
|
681
|
+
: "0";
|
|
682
|
+
return parseInt(paddingLeft || "0", 10) * 2;
|
|
683
|
+
};
|
|
684
|
+
TuiDocDemoComponent.prototype.getResizeButtonWidth = function () {
|
|
685
|
+
var _a, _b, _c;
|
|
686
|
+
return (_c = (_b = (_a = this.resizerText) === null || _a === void 0 ? void 0 : _a.nativeElement.parentElement) === null || _b === void 0 ? void 0 : _b.offsetWidth) !== null && _c !== void 0 ? _c : 0;
|
|
687
|
+
};
|
|
688
|
+
TuiDocDemoComponent.prototype.updateSandboxWidth = function () {
|
|
689
|
+
var _a, _b;
|
|
690
|
+
var urlTree = this.getUrlTree();
|
|
691
|
+
urlTree.queryParams.sandboxWidth = parseInt((_b = (_a = this.resizerText) === null || _a === void 0 ? void 0 : _a.nativeElement.textContent) !== null && _b !== void 0 ? _b : "0", 10);
|
|
692
|
+
this.locationRef.go(String(urlTree));
|
|
657
693
|
};
|
|
658
694
|
return TuiDocDemoComponent;
|
|
659
695
|
}());
|
|
660
|
-
TuiDocDemoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoComponent, deps: [{ token: i6.TUI_IS_MOBILE }, { token: i6.TuiDestroyService }, { token: i0.Renderer2 }, { token: i0.PLATFORM_ID }, { token: i5.Location }, { token: i6$1.UrlSerializer }, { token: TUI_DOC_DEMO_TEXTS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
696
|
+
TuiDocDemoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoComponent, deps: [{ token: i6.TUI_IS_MOBILE }, { token: i6.TuiDestroyService, self: true }, { token: i0.Renderer2 }, { token: i0.PLATFORM_ID }, { token: i5.Location }, { token: i6$1.UrlSerializer }, { token: TUI_DOC_DEMO_TEXTS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
661
697
|
TuiDocDemoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocDemoComponent, selector: "tui-doc-demo", inputs: { control: "control" }, host: { listeners: { "window:resize": "onResize()" } }, providers: [
|
|
662
698
|
i6.TuiDestroyService,
|
|
663
699
|
{
|
|
@@ -665,6 +701,9 @@
|
|
|
665
701
|
useExisting: i0.forwardRef(function () { return TuiDocDemoComponent; }),
|
|
666
702
|
},
|
|
667
703
|
], queries: [{ propertyName: "template", first: true, predicate: i0.TemplateRef, descendants: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }, { propertyName: "resizerText", first: true, predicate: ["resizerText"], descendants: true }], ngImport: i0__namespace, 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", styles: [":host{position:relative;display:block;min-width:100%;margin:1.5rem 0}.t-bg-toggle{position:absolute;bottom:calc(100% + .75rem);display:flex;align-items:center;justify-content:flex-end;pointer-events:none;width:100%}.t-bg-toggle>*{pointer-events:auto}.t-wrapper{box-shadow:0 1.5rem 1rem rgba(0,0,0,.03),0 .75rem .75rem rgba(0,0,0,.04),0 .25rem .375rem rgba(0,0,0,.05);display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;background-color:var(--tui-base-01);overflow:hidden}.t-wrapper.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-02) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-02) 75%);background-size:1.25rem 1.25rem;background-position:0 0,0 .625rem,.625rem -.625rem,-.625rem 0}.t-wrapper.t-wrapper_dark{background-color:#454e58;color:var(--tui-base-01)}.t-wrapper.t-wrapper_gray{background-color:#e5e7ea}.t-wrapper.t-wrapper_dark.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-focus) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-focus) 75%)}.t-wrapper.t-wrapper_gray.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-05) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-05) 75%)}:host-context(tui-root._mobile) .t-wrapper{min-height:auto}.t-content{flex:1 1 0;min-width:0;padding:1.5rem;box-sizing:border-box;overflow:hidden}:host-context(tui-root._mobile) .t-content{padding:1rem}.t-form{display:flex;flex-wrap:wrap;align-items:flex-start}.t-input-wrapper{width:100%;margin-bottom:.5rem}.t-expand{width:100%}.t-icon{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-icon_rotated{transform:rotate(180deg)}.t-value{flex:1;background:var(--tui-clear-inverse);padding:.75rem;border-radius:.25rem}.t-mode{width:12.5rem}.t-select{max-width:15rem}.t-resizer{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;box-shadow:0 1.5rem 1rem rgba(0,0,0,.03),0 .75rem .75rem rgba(0,0,0,.04),0 .25rem .375rem rgba(0,0,0,.05);position:relative;width:3.5rem;min-height:inherit;flex-shrink:0;border-left:1px solid var(--tui-base-03);cursor:col-resize;outline:none;background:var(--tui-base-01);color:var(--tui-text-01)}.t-resizer:before,.t-resizer:after{content:\"\";position:absolute;top:.75rem;left:50%;bottom:.75rem;width:1px;background:var(--tui-base-05)}.t-resizer:before{transform:translate(.125rem)}.t-resizer:after{transform:translate(-.1875rem)}:host-context(tui-root._mobile) .t-resizer{display:none}.t-resizer-text{font:var(--tui-font-text-s);position:relative;z-index:1;padding:.75rem;background:var(--tui-base-01)}.wrapper_light .t-resizer-text{background:#3e464e}.t-group,.t-checkbox{margin-left:.75rem}.t-button,.t-form-controls{margin-top:.75rem}@supports ((position: -webkit-sticky) or (position: sticky)){@media screen and (min-height: 37.5rem){:host{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}\n"], components: [{ 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: i2__namespace$1.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId"] }, { type: i1__namespace.TuiRadioBlockComponent, selector: "tui-radio-block", inputs: ["item", "identityMatcher", "contentAlign", "size", "hideRadio", "pseudoDisabled"] }, { type: i1__namespace.TuiCheckboxLabeledComponent, selector: "tui-checkbox-labeled", inputs: ["size"] }, { type: i2__namespace$1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i2__namespace$1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2__namespace$1.TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }], directives: [{ type: i2__namespace$1.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i6__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiSelectDirective, selector: "tui-select" }, { type: i2__namespace$1.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i2__namespace$1.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i2__namespace$1.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i2__namespace$1.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i5__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i5__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i5__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace$1.TuiExpandContentDirective, selector: "[tuiExpandContent]" }, { type: i6__namespace$1.TuiDragDirective, selector: "[tuiDragStart], [tuiDragContinues], [tuiDragEnd]", outputs: ["tuiDragStart", "tuiDragContinues", "tuiDragEnd"] }], pipes: { "json": i5__namespace.JsonPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
704
|
+
__decorate([
|
|
705
|
+
i6.tuiDebounce(200)
|
|
706
|
+
], TuiDocDemoComponent.prototype, "onResize", null);
|
|
668
707
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoComponent, decorators: [{
|
|
669
708
|
type: i0.Component,
|
|
670
709
|
args: [{
|
|
@@ -685,6 +724,8 @@
|
|
|
685
724
|
type: i0.Inject,
|
|
686
725
|
args: [i6.TUI_IS_MOBILE]
|
|
687
726
|
}] }, { type: i6__namespace$1.TuiDestroyService, decorators: [{
|
|
727
|
+
type: i0.Self
|
|
728
|
+
}, {
|
|
688
729
|
type: i0.Inject,
|
|
689
730
|
args: [i6.TuiDestroyService]
|
|
690
731
|
}] }, { type: i0__namespace.Renderer2, decorators: [{
|
|
@@ -962,6 +1003,68 @@
|
|
|
962
1003
|
type: i0.Output
|
|
963
1004
|
}] } });
|
|
964
1005
|
|
|
1006
|
+
var TuiGetOpacityPipe = /** @class */ (function () {
|
|
1007
|
+
function TuiGetOpacityPipe() {
|
|
1008
|
+
}
|
|
1009
|
+
TuiGetOpacityPipe.prototype.transform = function (color) {
|
|
1010
|
+
if (color.startsWith("#") || color.startsWith("rgb(")) {
|
|
1011
|
+
return 100;
|
|
1012
|
+
}
|
|
1013
|
+
if (color === "transparent") {
|
|
1014
|
+
return 0;
|
|
1015
|
+
}
|
|
1016
|
+
var lastComma = color.lastIndexOf(",");
|
|
1017
|
+
var parsed = color
|
|
1018
|
+
.slice(lastComma)
|
|
1019
|
+
.replace(")", "")
|
|
1020
|
+
.replace(" ", "")
|
|
1021
|
+
.replace(",", "");
|
|
1022
|
+
return Math.round(Number.parseFloat(parsed) * 100);
|
|
1023
|
+
};
|
|
1024
|
+
return TuiGetOpacityPipe;
|
|
1025
|
+
}());
|
|
1026
|
+
TuiGetOpacityPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiGetOpacityPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1027
|
+
TuiGetOpacityPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiGetOpacityPipe, name: "tuiGetOpacity" });
|
|
1028
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiGetOpacityPipe, decorators: [{
|
|
1029
|
+
type: i0.Pipe,
|
|
1030
|
+
args: [{ name: "tuiGetOpacity" }]
|
|
1031
|
+
}] });
|
|
1032
|
+
|
|
1033
|
+
var TuiGetColorPipe = /** @class */ (function () {
|
|
1034
|
+
function TuiGetColorPipe() {
|
|
1035
|
+
}
|
|
1036
|
+
TuiGetColorPipe.prototype.transform = function (color) {
|
|
1037
|
+
if (color.length === 4) {
|
|
1038
|
+
return color
|
|
1039
|
+
.split("")
|
|
1040
|
+
.reduce(function (result, current) { return __spreadArray(__spreadArray([], __read(result)), [current, current]); }, [])
|
|
1041
|
+
.join("")
|
|
1042
|
+
.replace("#", "");
|
|
1043
|
+
}
|
|
1044
|
+
if (color.startsWith("#")) {
|
|
1045
|
+
return color;
|
|
1046
|
+
}
|
|
1047
|
+
if (color === "transparent") {
|
|
1048
|
+
return "#000000";
|
|
1049
|
+
}
|
|
1050
|
+
var parsed = color
|
|
1051
|
+
.replace("rgb(", "")
|
|
1052
|
+
.replace("rgba(", "")
|
|
1053
|
+
.replace(")", "")
|
|
1054
|
+
.replace(" ", "")
|
|
1055
|
+
.split(",")
|
|
1056
|
+
.map(function (v) { return Number.parseInt(v, 10); });
|
|
1057
|
+
return i6.tuiRgbToHex.apply(void 0, __spreadArray([], __read(parsed)));
|
|
1058
|
+
};
|
|
1059
|
+
return TuiGetColorPipe;
|
|
1060
|
+
}());
|
|
1061
|
+
TuiGetColorPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiGetColorPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1062
|
+
TuiGetColorPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiGetColorPipe, name: "tuiGetColorPipe" });
|
|
1063
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiGetColorPipe, decorators: [{
|
|
1064
|
+
type: i0.Pipe,
|
|
1065
|
+
args: [{ name: "tuiGetColorPipe" }]
|
|
1066
|
+
}] });
|
|
1067
|
+
|
|
965
1068
|
var TuiInputOpacityDirective = /** @class */ (function () {
|
|
966
1069
|
function TuiInputOpacityDirective(renderer, tuiFocusableComponent) {
|
|
967
1070
|
this.renderer = renderer;
|
|
@@ -998,6 +1101,66 @@
|
|
|
998
1101
|
type: i0.Input
|
|
999
1102
|
}] } });
|
|
1000
1103
|
|
|
1104
|
+
var TuiStripOptionalPipe = /** @class */ (function () {
|
|
1105
|
+
function TuiStripOptionalPipe() {
|
|
1106
|
+
}
|
|
1107
|
+
TuiStripOptionalPipe.prototype.transform = function (name) {
|
|
1108
|
+
return name.replace("?", "");
|
|
1109
|
+
};
|
|
1110
|
+
return TuiStripOptionalPipe;
|
|
1111
|
+
}());
|
|
1112
|
+
TuiStripOptionalPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiStripOptionalPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1113
|
+
TuiStripOptionalPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiStripOptionalPipe, name: "tuiStripOptionalPipe" });
|
|
1114
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiStripOptionalPipe, decorators: [{
|
|
1115
|
+
type: i0.Pipe,
|
|
1116
|
+
args: [{ name: "tuiStripOptionalPipe" }]
|
|
1117
|
+
}] });
|
|
1118
|
+
|
|
1119
|
+
var TuiIsOptionalPipe = /** @class */ (function () {
|
|
1120
|
+
function TuiIsOptionalPipe() {
|
|
1121
|
+
}
|
|
1122
|
+
TuiIsOptionalPipe.prototype.transform = function (name) {
|
|
1123
|
+
return name.includes("?");
|
|
1124
|
+
};
|
|
1125
|
+
return TuiIsOptionalPipe;
|
|
1126
|
+
}());
|
|
1127
|
+
TuiIsOptionalPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIsOptionalPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1128
|
+
TuiIsOptionalPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIsOptionalPipe, name: "tuiIsOptionalPipe" });
|
|
1129
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIsOptionalPipe, decorators: [{
|
|
1130
|
+
type: i0.Pipe,
|
|
1131
|
+
args: [{ name: "tuiIsOptionalPipe" }]
|
|
1132
|
+
}] });
|
|
1133
|
+
|
|
1134
|
+
var TuiShowContentTooltip = /** @class */ (function () {
|
|
1135
|
+
function TuiShowContentTooltip() {
|
|
1136
|
+
}
|
|
1137
|
+
TuiShowContentTooltip.prototype.transform = function (type) {
|
|
1138
|
+
return type.includes("PolymorpheusContent");
|
|
1139
|
+
};
|
|
1140
|
+
return TuiShowContentTooltip;
|
|
1141
|
+
}());
|
|
1142
|
+
TuiShowContentTooltip.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiShowContentTooltip, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1143
|
+
TuiShowContentTooltip.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiShowContentTooltip, name: "tuiShowContentTooltip" });
|
|
1144
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiShowContentTooltip, decorators: [{
|
|
1145
|
+
type: i0.Pipe,
|
|
1146
|
+
args: [{ name: "tuiShowContentTooltip" }]
|
|
1147
|
+
}] });
|
|
1148
|
+
|
|
1149
|
+
var TuiShowCleanerPipe = /** @class */ (function () {
|
|
1150
|
+
function TuiShowCleanerPipe() {
|
|
1151
|
+
}
|
|
1152
|
+
TuiShowCleanerPipe.prototype.transform = function (type) {
|
|
1153
|
+
return type.includes("null");
|
|
1154
|
+
};
|
|
1155
|
+
return TuiShowCleanerPipe;
|
|
1156
|
+
}());
|
|
1157
|
+
TuiShowCleanerPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiShowCleanerPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1158
|
+
TuiShowCleanerPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiShowCleanerPipe, name: "tuiShowCleanerPipe" });
|
|
1159
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiShowCleanerPipe, decorators: [{
|
|
1160
|
+
type: i0.Pipe,
|
|
1161
|
+
args: [{ name: "tuiShowCleanerPipe" }]
|
|
1162
|
+
}] });
|
|
1163
|
+
|
|
1001
1164
|
function inspectArray(array, depth) {
|
|
1002
1165
|
if (depth === 0) {
|
|
1003
1166
|
return "[\u2026]";
|
|
@@ -1095,12 +1258,30 @@
|
|
|
1095
1258
|
}] }];
|
|
1096
1259
|
} });
|
|
1097
1260
|
|
|
1261
|
+
var TuiIsPrimitivePolymorpheusContentPipe = /** @class */ (function () {
|
|
1262
|
+
function TuiIsPrimitivePolymorpheusContentPipe() {
|
|
1263
|
+
}
|
|
1264
|
+
TuiIsPrimitivePolymorpheusContentPipe.prototype.transform = function (value) {
|
|
1265
|
+
return i6.tuiIsString(value) || i6.tuiIsNumber(value);
|
|
1266
|
+
};
|
|
1267
|
+
return TuiIsPrimitivePolymorpheusContentPipe;
|
|
1268
|
+
}());
|
|
1269
|
+
TuiIsPrimitivePolymorpheusContentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIsPrimitivePolymorpheusContentPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1270
|
+
TuiIsPrimitivePolymorpheusContentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIsPrimitivePolymorpheusContentPipe, name: "tuiIsPrimitivePolymorpheusContentPipe" });
|
|
1271
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIsPrimitivePolymorpheusContentPipe, decorators: [{
|
|
1272
|
+
type: i0.Pipe,
|
|
1273
|
+
args: [{ name: "tuiIsPrimitivePolymorpheusContentPipe" }]
|
|
1274
|
+
}] });
|
|
1275
|
+
|
|
1098
1276
|
// @bad TODO subscribe propertiesConnectors changes
|
|
1099
1277
|
// @bad TODO refactor to make more flexible
|
|
1100
1278
|
var TuiDocDocumentationComponent = /** @class */ (function () {
|
|
1101
|
-
function TuiDocDocumentationComponent(changeDetectorRef, texts) {
|
|
1279
|
+
function TuiDocDocumentationComponent(changeDetectorRef, texts, destroy$, getColor, getOpacity) {
|
|
1102
1280
|
this.changeDetectorRef = changeDetectorRef;
|
|
1103
1281
|
this.texts = texts;
|
|
1282
|
+
this.destroy$ = destroy$;
|
|
1283
|
+
this.getColor = getColor;
|
|
1284
|
+
this.getOpacity = getOpacity;
|
|
1104
1285
|
this.heading = "";
|
|
1105
1286
|
this.showValues = true;
|
|
1106
1287
|
this.isAPI = false;
|
|
@@ -1112,7 +1293,7 @@
|
|
|
1112
1293
|
.pipe(operators.switchMap(function (items) { return i9.merge.apply(void 0, __spreadArray([], __read(items.map(function (_a) {
|
|
1113
1294
|
var changed$ = _a.changed$;
|
|
1114
1295
|
return changed$;
|
|
1115
|
-
})))); }), i6.tuiWatch(this.changeDetectorRef))
|
|
1296
|
+
})))); }), i6.tuiWatch(this.changeDetectorRef), operators.takeUntil(this.destroy$))
|
|
1116
1297
|
.subscribe();
|
|
1117
1298
|
};
|
|
1118
1299
|
Object.defineProperty(TuiDocDocumentationComponent.prototype, "type", {
|
|
@@ -1122,46 +1303,8 @@
|
|
|
1122
1303
|
enumerable: false,
|
|
1123
1304
|
configurable: true
|
|
1124
1305
|
});
|
|
1125
|
-
TuiDocDocumentationComponent.prototype.getColor = function (color) {
|
|
1126
|
-
if (color.length === 4) {
|
|
1127
|
-
return color
|
|
1128
|
-
.split("")
|
|
1129
|
-
.reduce(function (result, current) { return __spreadArray(__spreadArray([], __read(result)), [current, current]); }, [])
|
|
1130
|
-
.join("")
|
|
1131
|
-
.replace("#", "");
|
|
1132
|
-
}
|
|
1133
|
-
if (color.startsWith("#")) {
|
|
1134
|
-
return color;
|
|
1135
|
-
}
|
|
1136
|
-
if (color === "transparent") {
|
|
1137
|
-
return "#000000";
|
|
1138
|
-
}
|
|
1139
|
-
var parsed = color
|
|
1140
|
-
.replace("rgb(", "")
|
|
1141
|
-
.replace("rgba(", "")
|
|
1142
|
-
.replace(")", "")
|
|
1143
|
-
.replace(" ", "")
|
|
1144
|
-
.split(",")
|
|
1145
|
-
.map(function (v) { return Number.parseInt(v, 10); });
|
|
1146
|
-
return i6.tuiRgbToHex.apply(void 0, __spreadArray([], __read(parsed)));
|
|
1147
|
-
};
|
|
1148
|
-
TuiDocDocumentationComponent.prototype.getOpacity = function (color) {
|
|
1149
|
-
if (color.startsWith("#") || color.startsWith("rgb(")) {
|
|
1150
|
-
return 100;
|
|
1151
|
-
}
|
|
1152
|
-
if (color === "transparent") {
|
|
1153
|
-
return 0;
|
|
1154
|
-
}
|
|
1155
|
-
var lastComma = color.lastIndexOf(",");
|
|
1156
|
-
var parsed = color
|
|
1157
|
-
.slice(lastComma)
|
|
1158
|
-
.replace(")", "")
|
|
1159
|
-
.replace(" ", "")
|
|
1160
|
-
.replace(",", "");
|
|
1161
|
-
return Math.round(Number.parseFloat(parsed) * 100);
|
|
1162
|
-
};
|
|
1163
1306
|
TuiDocDocumentationComponent.prototype.onColorChange = function (connector, color) {
|
|
1164
|
-
var opacity = this.getOpacity(connector.documentationPropertyValue || "");
|
|
1307
|
+
var opacity = this.getOpacity.transform(connector.documentationPropertyValue || "");
|
|
1165
1308
|
if (opacity === 100) {
|
|
1166
1309
|
connector.onValueChange(color);
|
|
1167
1310
|
return;
|
|
@@ -1171,30 +1314,15 @@
|
|
|
1171
1314
|
connector.onValueChange(result);
|
|
1172
1315
|
};
|
|
1173
1316
|
TuiDocDocumentationComponent.prototype.onOpacityChange = function (connector, opacity) {
|
|
1174
|
-
var hex = this.getColor(connector.documentationPropertyValue || "");
|
|
1317
|
+
var hex = this.getColor.transform(connector.documentationPropertyValue || "");
|
|
1175
1318
|
var rgb = i6.tuiHexToRgb(hex);
|
|
1176
1319
|
var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
|
|
1177
1320
|
connector.onValueChange(result);
|
|
1178
1321
|
};
|
|
1179
|
-
TuiDocDocumentationComponent.prototype.stripOptional = function (name) {
|
|
1180
|
-
return name.replace("?", "");
|
|
1181
|
-
};
|
|
1182
|
-
TuiDocDocumentationComponent.prototype.isOptional = function (name) {
|
|
1183
|
-
return name.includes("?");
|
|
1184
|
-
};
|
|
1185
|
-
TuiDocDocumentationComponent.prototype.isPrimitivePolymorpheusContent = function (value) {
|
|
1186
|
-
return i6.tuiIsString(value) || i6.tuiIsNumber(value);
|
|
1187
|
-
};
|
|
1188
|
-
TuiDocDocumentationComponent.prototype.showCleaner = function (type) {
|
|
1189
|
-
return type.includes("null");
|
|
1190
|
-
};
|
|
1191
|
-
TuiDocDocumentationComponent.prototype.showContentTooltip = function (type) {
|
|
1192
|
-
return type.includes("PolymorpheusContent");
|
|
1193
|
-
};
|
|
1194
1322
|
return TuiDocDocumentationComponent;
|
|
1195
1323
|
}());
|
|
1196
|
-
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 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1197
|
-
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" }, 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 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 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]=\"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>{{ 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]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\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]=\"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", 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: { "tuiInspectAny": TuiInspectPipe, "async": i5__namespace.AsyncPipe }, animations: [
|
|
1324
|
+
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: i6.TuiDestroyService, self: true }, { token: TuiGetColorPipe }, { token: TuiGetOpacityPipe }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1325
|
+
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 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 {{ 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: { "tuiStripOptionalPipe": TuiStripOptionalPipe, "tuiIsOptionalPipe": TuiIsOptionalPipe, "tuiShowContentTooltip": TuiShowContentTooltip, "tuiShowCleanerPipe": TuiShowCleanerPipe, "tuiInspectAny": TuiInspectPipe, "tuiGetOpacity": TuiGetOpacityPipe, "tuiGetColorPipe": TuiGetColorPipe, "tuiIsPrimitivePolymorpheusContentPipe": TuiIsPrimitivePolymorpheusContentPipe, "async": i5__namespace.AsyncPipe }, animations: [
|
|
1198
1326
|
animations.trigger("emitEvent", [
|
|
1199
1327
|
animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
|
|
1200
1328
|
]),
|
|
@@ -1211,6 +1339,7 @@
|
|
|
1211
1339
|
animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
|
|
1212
1340
|
]),
|
|
1213
1341
|
],
|
|
1342
|
+
providers: [TuiGetColorPipe, TuiGetOpacityPipe, i6.TuiDestroyService],
|
|
1214
1343
|
}]
|
|
1215
1344
|
}], ctorParameters: function () {
|
|
1216
1345
|
return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
@@ -1219,6 +1348,17 @@
|
|
|
1219
1348
|
}] }, { type: undefined, decorators: [{
|
|
1220
1349
|
type: i0.Inject,
|
|
1221
1350
|
args: [TUI_DOC_DOCUMENTATION_TEXTS]
|
|
1351
|
+
}] }, { type: i6__namespace$1.TuiDestroyService, decorators: [{
|
|
1352
|
+
type: i0.Self
|
|
1353
|
+
}, {
|
|
1354
|
+
type: i0.Inject,
|
|
1355
|
+
args: [i6.TuiDestroyService]
|
|
1356
|
+
}] }, { type: TuiGetColorPipe, decorators: [{
|
|
1357
|
+
type: i0.Inject,
|
|
1358
|
+
args: [TuiGetColorPipe]
|
|
1359
|
+
}] }, { type: TuiGetOpacityPipe, decorators: [{
|
|
1360
|
+
type: i0.Inject,
|
|
1361
|
+
args: [TuiGetOpacityPipe]
|
|
1222
1362
|
}] }];
|
|
1223
1363
|
}, propDecorators: { heading: [{
|
|
1224
1364
|
type: i0.Input
|
|
@@ -1254,7 +1394,14 @@
|
|
|
1254
1394
|
}());
|
|
1255
1395
|
TuiDocDocumentationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1256
1396
|
TuiDocDocumentationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationModule, declarations: [TuiInspectPipe,
|
|
1397
|
+
TuiGetColorPipe,
|
|
1398
|
+
TuiGetOpacityPipe,
|
|
1399
|
+
TuiIsOptionalPipe,
|
|
1400
|
+
TuiShowCleanerPipe,
|
|
1401
|
+
TuiStripOptionalPipe,
|
|
1402
|
+
TuiShowContentTooltip,
|
|
1257
1403
|
TuiDocDocumentationComponent,
|
|
1404
|
+
TuiIsPrimitivePolymorpheusContentPipe,
|
|
1258
1405
|
TuiDocDocumentationPropertyConnectorDirective], imports: [i5.CommonModule,
|
|
1259
1406
|
i5$1.FormsModule,
|
|
1260
1407
|
i6$1.RouterModule,
|
|
@@ -1319,7 +1466,14 @@
|
|
|
1319
1466
|
],
|
|
1320
1467
|
declarations: [
|
|
1321
1468
|
TuiInspectPipe,
|
|
1469
|
+
TuiGetColorPipe,
|
|
1470
|
+
TuiGetOpacityPipe,
|
|
1471
|
+
TuiIsOptionalPipe,
|
|
1472
|
+
TuiShowCleanerPipe,
|
|
1473
|
+
TuiStripOptionalPipe,
|
|
1474
|
+
TuiShowContentTooltip,
|
|
1322
1475
|
TuiDocDocumentationComponent,
|
|
1476
|
+
TuiIsPrimitivePolymorpheusContentPipe,
|
|
1323
1477
|
TuiDocDocumentationPropertyConnectorDirective,
|
|
1324
1478
|
],
|
|
1325
1479
|
exports: [
|
|
@@ -1793,7 +1947,7 @@
|
|
|
1793
1947
|
});
|
|
1794
1948
|
return TuiScrollIntoViewLinkDirective;
|
|
1795
1949
|
}());
|
|
1796
|
-
TuiScrollIntoViewLinkDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkDirective, deps: [{ token: i6.TuiDestroyService }, { token: i0.ElementRef }, { token: TUI_DOC_PAGE_LOADED }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1950
|
+
TuiScrollIntoViewLinkDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkDirective, deps: [{ token: i6.TuiDestroyService, self: true }, { token: i0.ElementRef }, { token: TUI_DOC_PAGE_LOADED }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1797
1951
|
TuiScrollIntoViewLinkDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiScrollIntoViewLinkDirective, selector: "[tuiScrollIntoViewLink]", inputs: { tuiScrollIntoViewLink: "tuiScrollIntoViewLink" }, providers: [i6.TuiDestroyService], ngImport: i0__namespace });
|
|
1798
1952
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkDirective, decorators: [{
|
|
1799
1953
|
type: i0.Directive,
|
|
@@ -1803,6 +1957,8 @@
|
|
|
1803
1957
|
}]
|
|
1804
1958
|
}], ctorParameters: function () {
|
|
1805
1959
|
return [{ type: i6__namespace$1.TuiDestroyService, decorators: [{
|
|
1960
|
+
type: i0.Self
|
|
1961
|
+
}, {
|
|
1806
1962
|
type: i0.Inject,
|
|
1807
1963
|
args: [i6.TuiDestroyService]
|
|
1808
1964
|
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
@@ -1939,7 +2095,7 @@
|
|
|
1939
2095
|
};
|
|
1940
2096
|
return TuiDocNavigationComponent;
|
|
1941
2097
|
}());
|
|
1942
|
-
TuiDocNavigationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i8$1.Title }, { token: NAVIGATION_TITLE }, { token: i5.DOCUMENT }, { token: i2$1.TuiModeDirective }, { token: i4.TuiSidebarDirective, optional: true }, { token: NAVIGATION_LABELS }, { token: NAVIGATION_ITEMS }, { token: TUI_DOC_SEARCH_TEXT }, { token: i6$1.Router }, { token: i6$1.ActivatedRoute }, { token: i6.TuiDestroyService }, { token: TUI_DOC_PAGE_LOADED }, { token: TUI_DOC_SCROLL_BEHAVIOR }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2098
|
+
TuiDocNavigationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i8$1.Title }, { token: NAVIGATION_TITLE }, { token: i5.DOCUMENT }, { token: i2$1.TuiModeDirective }, { token: i4.TuiSidebarDirective, optional: true }, { token: NAVIGATION_LABELS }, { token: NAVIGATION_ITEMS }, { token: TUI_DOC_SEARCH_TEXT }, { token: i6$1.Router }, { token: i6$1.ActivatedRoute }, { token: i6.TuiDestroyService, self: true }, { token: TUI_DOC_PAGE_LOADED }, { token: TUI_DOC_SCROLL_BEHAVIOR }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1943
2099
|
TuiDocNavigationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocNavigationComponent, selector: "tui-doc-navigation", host: { properties: { "class._open": "this.menuOpen" } }, providers: NAVIGATION_PROVIDERS, ngImport: i0__namespace, template: "<tui-input\n #input\n tuiTextfieldSize=\"m\"\n tuiTextfieldIconLeft=\"tuiIconSearch\"\n class=\"t-input\"\n [formControl]=\"search\"\n [tuiAutoFocus]=\"!!sidebar\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"true\"\n>\n {{ searchText }}\n <ng-container *ngIf=\"canOpen\">\n <tui-data-list *tuiDataList>\n <tui-opt-group\n *ngFor=\"let group of filtered$ | async; 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(input)\"\n >\n {{ item.title }}\n </a>\n </tui-opt-group>\n </tui-data-list>\n </ng-container>\n</tui-input>\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 [tuiScrollIntoViewLink]=\"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 [tuiScrollIntoViewLink]=\"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", styles: [":host{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input{margin:1.25rem}.t-navigation{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar{scroll-behavior:smooth;width:100%}@media screen and (prefers-reduced-motion: reduce){.t-scrollbar{scroll-behavior:auto}}.t-items-container{display:flex;flex-direction:column;padding:0 1rem}.t-label{margin-left:.5rem}.t-expand{margin-left:.25rem}.t-section{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection{margin-left:.5rem}.t-sublink{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection{margin-left:0;line-height:1.6rem}.t-sublink_active{color:var(--tui-text-01)}.t-chevron{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active{transform:rotate(90deg)}\n"], components: [{ type: i1__namespace.TuiInputComponent, selector: "tui-input" }, { type: i2__namespace$1.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i2__namespace$1.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { type: i2__namespace$1.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { type: i1__namespace.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { type: i1__namespace.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { type: i2__namespace$1.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i2__namespace$1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2__namespace$1.TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }], directives: [{ type: i1__namespace.TuiInputDirective, selector: "tui-input" }, { type: i2__namespace$1.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i2__namespace$1.TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: ["tuiTextfieldIconLeft"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace$1.TuiAutoFocusDirective, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { type: i2__namespace$1.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i2__namespace$1.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.TuiOptGroupDirective, selector: "tui-opt-group", inputs: ["label"] }, { type: i6__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i2__namespace$1.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i1__namespace.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6__namespace.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: TuiScrollIntoViewLinkDirective, selector: "[tuiScrollIntoViewLink]", inputs: ["tuiScrollIntoViewLink"] }], pipes: { "async": i5__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1944
2100
|
__decorate([
|
|
1945
2101
|
i6.tuiPure
|
|
@@ -1993,6 +2149,8 @@
|
|
|
1993
2149
|
type: i0.Inject,
|
|
1994
2150
|
args: [i6$1.ActivatedRoute]
|
|
1995
2151
|
}] }, { type: i9__namespace.Observable, decorators: [{
|
|
2152
|
+
type: i0.Self
|
|
2153
|
+
}, {
|
|
1996
2154
|
type: i0.Inject,
|
|
1997
2155
|
args: [i6.TuiDestroyService]
|
|
1998
2156
|
}] }, { type: i9__namespace.Observable, decorators: [{
|