@cuby-ui/core 0.0.310 → 0.0.312
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.
|
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class CuiRootComponent implements OnInit {
|
|
4
4
|
private readonly document;
|
|
5
5
|
private readonly theme$;
|
|
6
|
-
private readonly destroy$;
|
|
7
6
|
ngOnInit(): void;
|
|
8
7
|
private initThemeSubscription;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuiRootComponent, never>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
2
2
|
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { CuiDestroyService } from '@cuby-ui/cdk';
|
|
4
|
-
import { takeUntil } from 'rxjs';
|
|
5
3
|
import { CuiThemeService } from '../../services';
|
|
6
4
|
import { CUI_ROOT_SELECTOR } from './root.options';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,21 +10,19 @@ export class CuiRootComponent {
|
|
|
12
10
|
constructor() {
|
|
13
11
|
this.document = inject(DOCUMENT);
|
|
14
12
|
this.theme$ = inject(CuiThemeService);
|
|
15
|
-
this.destroy$ = inject(CuiDestroyService);
|
|
16
13
|
}
|
|
17
14
|
ngOnInit() {
|
|
18
15
|
this.initThemeSubscription();
|
|
19
16
|
}
|
|
20
17
|
initThemeSubscription() {
|
|
21
18
|
this.theme$
|
|
22
|
-
.pipe(takeUntil(this.destroy$))
|
|
23
19
|
.subscribe(theme => this.document.documentElement.setAttribute('cuiTheme', theme));
|
|
24
20
|
}
|
|
25
21
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CuiRootComponent, selector: "cui-root",
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CuiRootComponent, selector: "cui-root", ngImport: i0, template: "<div class=\"c-content\">\n <ng-content />\n</div>\n<cui-dialogs />\n<cui-alerts />\n<cui-tooltips />\n", styles: [".c-content{overflow:auto;min-height:100vh;isolation:isolate}\n"], dependencies: [{ kind: "component", type: i1.CuiDialogsComponent, selector: "cui-dialogs" }, { kind: "component", type: i2.CuiAlertsComponent, selector: "cui-alerts" }, { kind: "component", type: i3.CuiTooltips, selector: "cui-tooltips" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
23
|
}
|
|
28
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiRootComponent, decorators: [{
|
|
29
25
|
type: Component,
|
|
30
|
-
args: [{ selector: CUI_ROOT_SELECTOR, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
args: [{ selector: CUI_ROOT_SELECTOR, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"c-content\">\n <ng-content />\n</div>\n<cui-dialogs />\n<cui-alerts />\n<cui-tooltips />\n", styles: [".c-content{overflow:auto;min-height:100vh;isolation:isolate}\n"] }]
|
|
31
27
|
}] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvcm9vdC9yb290LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9yb290L3Jvb3QudGVtcGxhdGUuaHRtbCJdLCJuYW1lcyI6W10sI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x0aXBzIC8+XG4iXX0=
|
|
@@ -1561,22 +1561,20 @@ class CuiRootComponent {
|
|
|
1561
1561
|
constructor() {
|
|
1562
1562
|
this.document = inject(DOCUMENT);
|
|
1563
1563
|
this.theme$ = inject(CuiThemeService);
|
|
1564
|
-
this.destroy$ = inject(CuiDestroyService);
|
|
1565
1564
|
}
|
|
1566
1565
|
ngOnInit() {
|
|
1567
1566
|
this.initThemeSubscription();
|
|
1568
1567
|
}
|
|
1569
1568
|
initThemeSubscription() {
|
|
1570
1569
|
this.theme$
|
|
1571
|
-
.pipe(takeUntil(this.destroy$))
|
|
1572
1570
|
.subscribe(theme => this.document.documentElement.setAttribute('cuiTheme', theme));
|
|
1573
1571
|
}
|
|
1574
1572
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1575
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CuiRootComponent, selector: "cui-root",
|
|
1573
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CuiRootComponent, selector: "cui-root", ngImport: i0, template: "<div class=\"c-content\">\n <ng-content />\n</div>\n<cui-dialogs />\n<cui-alerts />\n<cui-tooltips />\n", styles: [".c-content{overflow:auto;min-height:100vh;isolation:isolate}\n"], dependencies: [{ kind: "component", type: CuiDialogsComponent, selector: "cui-dialogs" }, { kind: "component", type: CuiAlertsComponent, selector: "cui-alerts" }, { kind: "component", type: CuiTooltips, selector: "cui-tooltips" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1576
1574
|
}
|
|
1577
1575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiRootComponent, decorators: [{
|
|
1578
1576
|
type: Component,
|
|
1579
|
-
args: [{ selector: CUI_ROOT_SELECTOR, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1577
|
+
args: [{ selector: CUI_ROOT_SELECTOR, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"c-content\">\n <ng-content />\n</div>\n<cui-dialogs />\n<cui-alerts />\n<cui-tooltips />\n", styles: [".c-content{overflow:auto;min-height:100vh;isolation:isolate}\n"] }]
|
|
1580
1578
|
}] });
|
|
1581
1579
|
|
|
1582
1580
|
// TODO: сделать структурную директиву
|