@rxap/layout 12.2.2 → 13.0.0-next.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/_theming.scss +1 -1
- package/esm2020/index.mjs +59 -0
- package/{esm2015/lib/footer/footer.component.js → esm2020/lib/footer/footer.component.mjs} +2 -7
- package/esm2020/lib/footer/footer.component.module.mjs +31 -0
- package/esm2020/lib/footer.directive.mjs +52 -0
- package/esm2020/lib/header/apps-button/apps-button.component.mjs +106 -0
- package/esm2020/lib/header/apps-button/apps-button.component.module.mjs +47 -0
- package/esm2020/lib/header/header.component.mjs +130 -0
- package/esm2020/lib/header/header.component.module.mjs +71 -0
- package/esm2020/lib/header/language-selector/language-selector.component.mjs +111 -0
- package/esm2020/lib/header/language-selector/language-selector.component.module.mjs +31 -0
- package/esm2020/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +33 -0
- package/esm2020/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.mjs +27 -0
- package/esm2020/lib/header/reset-button/reset-button.component.mjs +27 -0
- package/esm2020/lib/header/reset-button/reset-button.component.module.mjs +27 -0
- package/esm2020/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +44 -0
- package/esm2020/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.mjs +31 -0
- package/esm2020/lib/header/sign-out/sign-out.component.mjs +31 -0
- package/esm2020/lib/header/sign-out/sign-out.component.module.mjs +31 -0
- package/esm2020/lib/header/user-profile-icon/user-profile-icon.component.mjs +111 -0
- package/esm2020/lib/header/user-profile-icon/user-profile-icon.component.module.mjs +39 -0
- package/esm2020/lib/layout/layout.component.mjs +78 -0
- package/esm2020/lib/layout/layout.component.module.mjs +71 -0
- package/esm2020/lib/layout/layout.component.service.mjs +43 -0
- package/esm2020/lib/navigation/navigation-item/navigation-item.component.mjs +286 -0
- package/esm2020/lib/navigation/navigation-item.mjs +10 -0
- package/esm2020/lib/navigation/navigation.component.mjs +130 -0
- package/esm2020/lib/navigation/navigation.component.module.mjs +73 -0
- package/esm2020/lib/navigation/navigation.service.mjs +143 -0
- package/esm2020/lib/navigation/replace-router-paths.pipe.mjs +21 -0
- package/esm2020/lib/navigation/replace-router-paths.service.mjs +15 -0
- package/esm2020/lib/sidenav/sidenav-footer.directive.mjs +19 -0
- package/esm2020/lib/sidenav/sidenav-header.directive.mjs +19 -0
- package/esm2020/lib/sidenav/sidenav.component.mjs +120 -0
- package/esm2020/lib/sidenav/sidenav.component.module.mjs +45 -0
- package/esm2020/lib/sidenav/sidenav.component.service.mjs +22 -0
- package/esm2020/lib/sidenav/version/version.component.mjs +62 -0
- package/esm2020/lib/sidenav/version/version.component.module.mjs +27 -0
- package/esm2020/lib/sidenav-content/sidenav-content.component.mjs +45 -0
- package/esm2020/lib/sidenav-content/sidenav-content.component.module.mjs +27 -0
- package/esm2020/lib/sidenav-content/sidenav-content.component.service.mjs +36 -0
- package/esm2020/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.mjs +50 -0
- package/esm2020/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.mjs +31 -0
- package/esm2020/lib/tokens.mjs +8 -0
- package/esm2020/lib/types.mjs +2 -0
- package/esm2020/lib/window-container-sidenav/window-container-sidenav.component.mjs +73 -0
- package/esm2020/lib/window-container-sidenav/window-container-sidenav.component.module.mjs +31 -0
- package/esm2020/rxap-layout.mjs +5 -0
- package/fesm2015/rxap-layout.mjs +2559 -0
- package/fesm2015/rxap-layout.mjs.map +1 -0
- package/{fesm2015/rxap-layout.js → fesm2020/rxap-layout.mjs} +212 -355
- package/fesm2020/rxap-layout.mjs.map +1 -0
- package/package.json +45 -31
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-layout.umd.js +0 -3211
- package/bundles/rxap-layout.umd.js.map +0 -1
- package/esm2015/index.js +0 -59
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/footer/footer.component.js.map +0 -1
- package/esm2015/lib/footer/footer.component.module.js +0 -31
- package/esm2015/lib/footer/footer.component.module.js.map +0 -1
- package/esm2015/lib/footer.directive.js +0 -52
- package/esm2015/lib/footer.directive.js.map +0 -1
- package/esm2015/lib/header/apps-button/apps-button.component.js +0 -119
- package/esm2015/lib/header/apps-button/apps-button.component.js.map +0 -1
- package/esm2015/lib/header/apps-button/apps-button.component.module.js +0 -47
- package/esm2015/lib/header/apps-button/apps-button.component.module.js.map +0 -1
- package/esm2015/lib/header/header.component.js +0 -144
- package/esm2015/lib/header/header.component.js.map +0 -1
- package/esm2015/lib/header/header.component.module.js +0 -71
- package/esm2015/lib/header/header.component.module.js.map +0 -1
- package/esm2015/lib/header/language-selector/language-selector.component.js +0 -119
- package/esm2015/lib/header/language-selector/language-selector.component.js.map +0 -1
- package/esm2015/lib/header/language-selector/language-selector.component.module.js +0 -31
- package/esm2015/lib/header/language-selector/language-selector.component.module.js.map +0 -1
- package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.js +0 -39
- package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.js.map +0 -1
- package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.js +0 -27
- package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.js.map +0 -1
- package/esm2015/lib/header/reset-button/reset-button.component.js +0 -34
- package/esm2015/lib/header/reset-button/reset-button.component.js.map +0 -1
- package/esm2015/lib/header/reset-button/reset-button.component.module.js +0 -27
- package/esm2015/lib/header/reset-button/reset-button.component.module.js.map +0 -1
- package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.js +0 -50
- package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.js.map +0 -1
- package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.js +0 -31
- package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.js.map +0 -1
- package/esm2015/lib/header/sign-out/sign-out.component.js +0 -38
- package/esm2015/lib/header/sign-out/sign-out.component.js.map +0 -1
- package/esm2015/lib/header/sign-out/sign-out.component.module.js +0 -31
- package/esm2015/lib/header/sign-out/sign-out.component.module.js.map +0 -1
- package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.js +0 -126
- package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.js.map +0 -1
- package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.module.js +0 -39
- package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.module.js.map +0 -1
- package/esm2015/lib/layout/layout.component.js +0 -89
- package/esm2015/lib/layout/layout.component.js.map +0 -1
- package/esm2015/lib/layout/layout.component.module.js +0 -71
- package/esm2015/lib/layout/layout.component.module.js.map +0 -1
- package/esm2015/lib/layout/layout.component.service.js +0 -43
- package/esm2015/lib/layout/layout.component.service.js.map +0 -1
- package/esm2015/lib/navigation/navigation-item/navigation-item.component.js +0 -299
- package/esm2015/lib/navigation/navigation-item/navigation-item.component.js.map +0 -1
- package/esm2015/lib/navigation/navigation-item.js +0 -10
- package/esm2015/lib/navigation/navigation-item.js.map +0 -1
- package/esm2015/lib/navigation/navigation.component.js +0 -138
- package/esm2015/lib/navigation/navigation.component.js.map +0 -1
- package/esm2015/lib/navigation/navigation.component.module.js +0 -73
- package/esm2015/lib/navigation/navigation.component.module.js.map +0 -1
- package/esm2015/lib/navigation/navigation.service.js +0 -139
- package/esm2015/lib/navigation/navigation.service.js.map +0 -1
- package/esm2015/lib/navigation/replace-router-paths.pipe.js +0 -21
- package/esm2015/lib/navigation/replace-router-paths.pipe.js.map +0 -1
- package/esm2015/lib/navigation/replace-router-paths.service.js +0 -15
- package/esm2015/lib/navigation/replace-router-paths.service.js.map +0 -1
- package/esm2015/lib/sidenav/sidenav-footer.directive.js +0 -19
- package/esm2015/lib/sidenav/sidenav-footer.directive.js.map +0 -1
- package/esm2015/lib/sidenav/sidenav-header.directive.js +0 -19
- package/esm2015/lib/sidenav/sidenav-header.directive.js.map +0 -1
- package/esm2015/lib/sidenav/sidenav.component.js +0 -127
- package/esm2015/lib/sidenav/sidenav.component.js.map +0 -1
- package/esm2015/lib/sidenav/sidenav.component.module.js +0 -45
- package/esm2015/lib/sidenav/sidenav.component.module.js.map +0 -1
- package/esm2015/lib/sidenav/sidenav.component.service.js +0 -22
- package/esm2015/lib/sidenav/sidenav.component.service.js.map +0 -1
- package/esm2015/lib/sidenav/version/version.component.js +0 -70
- package/esm2015/lib/sidenav/version/version.component.js.map +0 -1
- package/esm2015/lib/sidenav/version/version.component.module.js +0 -27
- package/esm2015/lib/sidenav/version/version.component.module.js.map +0 -1
- package/esm2015/lib/sidenav-content/sidenav-content.component.js +0 -51
- package/esm2015/lib/sidenav-content/sidenav-content.component.js.map +0 -1
- package/esm2015/lib/sidenav-content/sidenav-content.component.module.js +0 -27
- package/esm2015/lib/sidenav-content/sidenav-content.component.module.js.map +0 -1
- package/esm2015/lib/sidenav-content/sidenav-content.component.service.js +0 -36
- package/esm2015/lib/sidenav-content/sidenav-content.component.service.js.map +0 -1
- package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.js +0 -58
- package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.js.map +0 -1
- package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.js +0 -31
- package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.js.map +0 -1
- package/esm2015/lib/tokens.js +0 -8
- package/esm2015/lib/tokens.js.map +0 -1
- package/esm2015/lib/types.js +0 -2
- package/esm2015/lib/types.js.map +0 -1
- package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.js +0 -78
- package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.js.map +0 -1
- package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.module.js +0 -31
- package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.module.js.map +0 -1
- package/esm2015/rxap-layout.js +0 -5
- package/esm2015/rxap-layout.js.map +0 -1
- package/fesm2015/rxap-layout.js.map +0 -1
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
|
|
3
|
-
import { VersionService } from '@rxap/services';
|
|
4
|
-
import { Required } from '@rxap/utilities';
|
|
5
|
-
import { tap } from 'rxjs/operators';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/flex-layout/flex";
|
|
8
|
-
import * as i2 from "@angular/common";
|
|
9
|
-
import * as i3 from "@rxap/services";
|
|
10
|
-
function VersionComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
12
|
-
i0.ɵɵelementStart(1, "span", 3);
|
|
13
|
-
i0.ɵɵtext(2);
|
|
14
|
-
i0.ɵɵelementEnd();
|
|
15
|
-
i0.ɵɵelementStart(3, "span", 4);
|
|
16
|
-
i0.ɵɵtext(4);
|
|
17
|
-
i0.ɵɵelementEnd();
|
|
18
|
-
i0.ɵɵelementStart(5, "span", 5);
|
|
19
|
-
i0.ɵɵtext(6);
|
|
20
|
-
i0.ɵɵelementEnd();
|
|
21
|
-
i0.ɵɵelementEnd();
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const module_r1 = ctx.$implicit;
|
|
24
|
-
i0.ɵɵadvance(2);
|
|
25
|
-
i0.ɵɵtextInterpolate(module_r1.value.name);
|
|
26
|
-
i0.ɵɵadvance(2);
|
|
27
|
-
i0.ɵɵtextInterpolate(module_r1.value.semantic);
|
|
28
|
-
i0.ɵɵadvance(2);
|
|
29
|
-
i0.ɵɵtextInterpolate(module_r1.value.hash);
|
|
30
|
-
} }
|
|
31
|
-
export class VersionComponent {
|
|
32
|
-
constructor(version) {
|
|
33
|
-
this.version = version;
|
|
34
|
-
}
|
|
35
|
-
ngOnInit() {
|
|
36
|
-
this.modules = this.version.get();
|
|
37
|
-
this.subscription = this.version.update$.pipe(tap(() => this.modules = this.version.get())).subscribe();
|
|
38
|
-
}
|
|
39
|
-
ngOnDestroy() {
|
|
40
|
-
var _a;
|
|
41
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
VersionComponent.ɵfac = function VersionComponent_Factory(t) { return new (t || VersionComponent)(i0.ɵɵdirectiveInject(VersionService)); };
|
|
45
|
-
VersionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: VersionComponent, selectors: [["rxap-version"]], decls: 3, vars: 3, consts: [["fxFlex", "nogrow", "fxLayout", "column", "fxLayoutAlign", "start start", "fxLayoutGap", "8px", 1, "version"], ["fxFlex", "nogrow", "fxLayout", "column", 4, "ngFor", "ngForOf"], ["fxFlex", "nogrow", "fxLayout", "column"], ["fxFlex", "nogrow", 1, "name"], ["fxFlex", "nogrow", 1, "semantic"], ["fxFlex", "nogrow", 1, "hash"]], template: function VersionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
47
|
-
i0.ɵɵtemplate(1, VersionComponent_div_1_Template, 7, 3, "div", 1);
|
|
48
|
-
i0.ɵɵpipe(2, "keyvalue");
|
|
49
|
-
i0.ɵɵelementEnd();
|
|
50
|
-
} if (rf & 2) {
|
|
51
|
-
i0.ɵɵadvance(1);
|
|
52
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 1, ctx.modules));
|
|
53
|
-
} }, directives: [i1.DefaultFlexDirective, i1.DefaultLayoutDirective, i1.DefaultLayoutAlignDirective, i1.DefaultLayoutGapDirective, i2.NgForOf], pipes: [i2.KeyValuePipe], styles: [".version[_ngcontent-%COMP%]{width:100%;font-size:9px;padding:8px}.version[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{padding-bottom:12px;font-size:10px}"], changeDetection: 0 });
|
|
54
|
-
__decorate([
|
|
55
|
-
Required,
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], VersionComponent.prototype, "modules", void 0);
|
|
58
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionComponent, [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{
|
|
61
|
-
selector: 'rxap-version',
|
|
62
|
-
templateUrl: './version.component.html',
|
|
63
|
-
styleUrls: ['./version.component.scss'],
|
|
64
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
65
|
-
}]
|
|
66
|
-
}], function () { return [{ type: i3.VersionService, decorators: [{
|
|
67
|
-
type: Inject,
|
|
68
|
-
args: [VersionService]
|
|
69
|
-
}] }]; }, { modules: [] }); })();
|
|
70
|
-
//# sourceMappingURL=version.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.component.js","sourceRoot":"","sources":["../../../../../../../libs/layout/src/lib/sidenav/version/version.component.ts","../../../../../../../libs/layout/src/lib/sidenav/version/version.component.html"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EAET,uBAAuB,EAEvB,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,cAAc,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,QAAQ,EACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;;;;ICdnC,8BAAiF;IAC/E,+BAAmC;IAAA,YAAqB;IAAA,iBAAO;IAC/D,+BAAuC;IAAA,YAAyB;IAAA,iBAAO;IACvE,+BAAmC;IAAA,YAAqB;IAAA,iBAAO;IACjE,iBAAM;;;IAH+B,eAAqB;IAArB,0CAAqB;IACjB,eAAyB;IAAzB,8CAAyB;IAC7B,eAAqB;IAArB,0CAAqB;;ADoB5D,MAAM,OAAO,gBAAgB;IAO3B,YACkC,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;IACrD,CAAC;IAEE,QAAQ;QACb,IAAI,CAAC,OAAO,GAAQ,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAC3C,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAC7C,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;gFApBU,gBAAgB,uBAQjB,cAAc;mEARb,gBAAgB;QCxB7B,8BAAqG;QACnG,iEAIM;;QACR,iBAAM;;QALoB,eAAqB;QAArB,2DAAqB;;AD0B7C;IADC,QAAQ;;iDAC0B;uFAHxB,gBAAgB;cAN5B,SAAS;eAAC;gBACT,QAAQ,EAAS,cAAc;gBAC/B,WAAW,EAAM,0BAA0B;gBAC3C,SAAS,EAAQ,CAAE,0BAA0B,CAAE;gBAC/C,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;sBASI,MAAM;uBAAC,cAAc;wBALjB,OAAO","sourcesContent":["import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n OnDestroy,\n Inject\n} from '@angular/core';\nimport {\n VersionService,\n Version\n} from '@rxap/services';\nimport {\n KeyValue,\n Required\n} from '@rxap/utilities';\nimport { tap } from 'rxjs/operators';\nimport { Subscription } from 'rxjs';\n\n@Component({\n selector: 'rxap-version',\n templateUrl: './version.component.html',\n styleUrls: [ './version.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class VersionComponent implements OnInit, OnDestroy {\n\n @Required\n public modules!: KeyValue<Version>;\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(VersionService) private version: VersionService\n ) { }\n\n public ngOnInit(): void {\n this.modules = this.version.get();\n this.subscription = this.version.update$.pipe(\n tap(() => this.modules = this.version.get())\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n","<div class=\"version\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"start start\" fxLayoutGap=\"8px\">\n <div *ngFor=\"let module of modules | keyvalue\" fxFlex=\"nogrow\" fxLayout=\"column\">\n <span class=\"name\" fxFlex=\"nogrow\">{{module.value.name}}</span>\n <span class=\"semantic\" fxFlex=\"nogrow\">{{module.value.semantic}}</span>\n <span class=\"hash\" fxFlex=\"nogrow\">{{module.value.hash}}</span>\n </div>\n</div>\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { VersionComponent } from './version.component';
|
|
3
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class VersionComponentModule {
|
|
7
|
-
}
|
|
8
|
-
VersionComponentModule.ɵfac = function VersionComponentModule_Factory(t) { return new (t || VersionComponentModule)(); };
|
|
9
|
-
VersionComponentModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: VersionComponentModule });
|
|
10
|
-
VersionComponentModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
11
|
-
FlexLayoutModule,
|
|
12
|
-
CommonModule
|
|
13
|
-
]] });
|
|
14
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionComponentModule, [{
|
|
15
|
-
type: NgModule,
|
|
16
|
-
args: [{
|
|
17
|
-
declarations: [VersionComponent],
|
|
18
|
-
imports: [
|
|
19
|
-
FlexLayoutModule,
|
|
20
|
-
CommonModule
|
|
21
|
-
],
|
|
22
|
-
exports: [VersionComponent]
|
|
23
|
-
}]
|
|
24
|
-
}], null, null); })();
|
|
25
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(VersionComponentModule, { declarations: [VersionComponent], imports: [FlexLayoutModule,
|
|
26
|
-
CommonModule], exports: [VersionComponent] }); })();
|
|
27
|
-
//# sourceMappingURL=version.component.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.component.module.js","sourceRoot":"","sources":["../../../../../../../libs/layout/src/lib/sidenav/version/version.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAU/C,MAAM,OAAO,sBAAsB;;4FAAtB,sBAAsB;wEAAtB,sBAAsB;4EANxB;YACP,gBAAgB;YAChB,YAAY;SACb;uFAGU,sBAAsB;cARlC,QAAQ;eAAC;gBACR,YAAY,EAAE,CAAE,gBAAgB,CAAE;gBAClC,OAAO,EAAE;oBACP,gBAAgB;oBAChB,YAAY;iBACb;gBACD,OAAO,EAAO,CAAE,gBAAgB,CAAE;aACnC;;wFACY,sBAAsB,mBAPjB,gBAAgB,aAE9B,gBAAgB;QAChB,YAAY,aAEE,gBAAgB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { VersionComponent } from './version.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n declarations: [ VersionComponent ],\n imports: [\n FlexLayoutModule,\n CommonModule\n ],\n exports: [ VersionComponent ]\n})\nexport class VersionComponentModule {}\n"]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
3
|
-
import { Required } from '@rxap/utilities';
|
|
4
|
-
import { MatSidenav } from '@angular/material/sidenav';
|
|
5
|
-
import { SidenavContentComponentService } from './sidenav-content.component.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "./sidenav-content.component.service";
|
|
8
|
-
import * as i2 from "@angular/common";
|
|
9
|
-
import * as i3 from "@angular/router";
|
|
10
|
-
const _c0 = function (a0) { return { "open": a0 }; };
|
|
11
|
-
const _c1 = function (a0, a1, a2) { return { height: a0, marginTop: a1, marginBottom: a2 }; };
|
|
12
|
-
const _c2 = ["*"];
|
|
13
|
-
export class SidenavContentComponent {
|
|
14
|
-
constructor(sccs) {
|
|
15
|
-
this.sccs = sccs;
|
|
16
|
-
}
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
SidenavContentComponent.ɵfac = function SidenavContentComponent_Factory(t) { return new (t || SidenavContentComponent)(i0.ɵɵdirectiveInject(i1.SidenavContentComponentService)); };
|
|
21
|
-
SidenavContentComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavContentComponent, selectors: [["rxap-sidenav-content"]], inputs: { sidenav: "sidenav" }, ngContentSelectors: _c2, decls: 8, vars: 16, consts: [[1, "container", 3, "ngClass", "ngStyle"], [1, "inner"]], template: function SidenavContentComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
-
i0.ɵɵprojectionDef();
|
|
23
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
24
|
-
i0.ɵɵpipe(1, "async");
|
|
25
|
-
i0.ɵɵpipe(2, "async");
|
|
26
|
-
i0.ɵɵpipe(3, "async");
|
|
27
|
-
i0.ɵɵpipe(4, "async");
|
|
28
|
-
i0.ɵɵelementStart(5, "div", 1);
|
|
29
|
-
i0.ɵɵelement(6, "router-outlet");
|
|
30
|
-
i0.ɵɵprojection(7);
|
|
31
|
-
i0.ɵɵelementEnd();
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
} if (rf & 2) {
|
|
34
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0, i0.ɵɵpipeBind1(1, 2, ctx.sidenav.openedChange)))("ngStyle", i0.ɵɵpureFunction3(12, _c1, i0.ɵɵpipeBind1(2, 4, ctx.sccs.innerHeight$), i0.ɵɵpipeBind1(3, 6, ctx.sccs.marginTop$), i0.ɵɵpipeBind1(4, 8, ctx.sccs.marginBottom$)));
|
|
35
|
-
} }, directives: [i2.NgClass, i2.NgStyle, i3.RouterOutlet], pipes: [i2.AsyncPipe], styles: [".container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{padding:0;overflow:auto;height:100%}"], changeDetection: 0 });
|
|
36
|
-
__decorate([
|
|
37
|
-
Required,
|
|
38
|
-
__metadata("design:type", MatSidenav)
|
|
39
|
-
], SidenavContentComponent.prototype, "sidenav", void 0);
|
|
40
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavContentComponent, [{
|
|
41
|
-
type: Component,
|
|
42
|
-
args: [{
|
|
43
|
-
selector: 'rxap-sidenav-content',
|
|
44
|
-
templateUrl: './sidenav-content.component.html',
|
|
45
|
-
styleUrls: ['./sidenav-content.component.scss'],
|
|
46
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
47
|
-
}]
|
|
48
|
-
}], function () { return [{ type: i1.SidenavContentComponentService }]; }, { sidenav: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}] }); })();
|
|
51
|
-
//# sourceMappingURL=sidenav-content.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidenav-content.component.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/sidenav-content/sidenav-content.component.ts","../../../../../../libs/layout/src/lib/sidenav-content/sidenav-content.component.html"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;;;;;;;;AAQrF,MAAM,OAAO,uBAAuB;IAIlC,YAA4B,IAAoC;QAApC,SAAI,GAAJ,IAAI,CAAgC;IAAI,CAAC;IAErE,QAAQ;IACR,CAAC;;8FAPU,uBAAuB;0EAAvB,uBAAuB;;QChBpC,8BAIqB;;;;;QAEnB,8BAAmB;QACjB,gCAA+B;QAC/B,kBAAyB;QAC3B,iBAAM;QACR,iBAAM;;QAVD,qGAAsD,8KAAA;;ADkBtC;IAAT,QAAQ;8BAAkB,UAAU;wDAAC;uFAFpC,uBAAuB;cANnC,SAAS;eAAC;gBACT,QAAQ,EAAS,sBAAsB;gBACvC,WAAW,EAAM,kCAAkC;gBACnD,SAAS,EAAQ,CAAE,kCAAkC,CAAE;gBACvD,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;iFAG2B,OAAO;kBAAhC,KAAK","sourcesContent":["import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { MatSidenav } from '@angular/material/sidenav';\nimport { SidenavContentComponentService } from './sidenav-content.component.service';\n\n@Component({\n selector: 'rxap-sidenav-content',\n templateUrl: './sidenav-content.component.html',\n styleUrls: [ './sidenav-content.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SidenavContentComponent implements OnInit {\n\n @Input() @Required public sidenav!: MatSidenav;\n\n constructor(public readonly sccs: SidenavContentComponentService) { }\n\n ngOnInit() {\n }\n\n}\n","<div [ngClass]=\"{ 'open': (sidenav.openedChange | async) }\" [ngStyle]=\"{\n height: sccs.innerHeight$ | async,\n marginTop: sccs.marginTop$ | async,\n marginBottom: sccs.marginBottom$ | async\n}\" class=\"container\">\n <!-- <dx-breadcrumb></dx-breadcrumb>-->\n <div class=\"inner\">\n <router-outlet></router-outlet>\n <ng-content></ng-content>\n </div>\n</div>\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { SidenavContentComponent } from './sidenav-content.component';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { RouterModule } from '@angular/router';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class SidenavContentModule {
|
|
7
|
-
}
|
|
8
|
-
SidenavContentModule.ɵfac = function SidenavContentModule_Factory(t) { return new (t || SidenavContentModule)(); };
|
|
9
|
-
SidenavContentModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SidenavContentModule });
|
|
10
|
-
SidenavContentModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
11
|
-
CommonModule,
|
|
12
|
-
RouterModule
|
|
13
|
-
]] });
|
|
14
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavContentModule, [{
|
|
15
|
-
type: NgModule,
|
|
16
|
-
args: [{
|
|
17
|
-
declarations: [SidenavContentComponent],
|
|
18
|
-
imports: [
|
|
19
|
-
CommonModule,
|
|
20
|
-
RouterModule
|
|
21
|
-
],
|
|
22
|
-
exports: [SidenavContentComponent]
|
|
23
|
-
}]
|
|
24
|
-
}], null, null); })();
|
|
25
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SidenavContentModule, { declarations: [SidenavContentComponent], imports: [CommonModule,
|
|
26
|
-
RouterModule], exports: [SidenavContentComponent] }); })();
|
|
27
|
-
//# sourceMappingURL=sidenav-content.component.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidenav-content.component.module.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/sidenav-content/sidenav-content.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAW/C,MAAM,OAAO,oBAAoB;;wFAApB,oBAAoB;sEAApB,oBAAoB;0EANjB;YACZ,YAAY;YACZ,YAAY;SACb;uFAGU,oBAAoB;cARhC,QAAQ;eAAC;gBACR,YAAY,EAAE,CAAE,uBAAuB,CAAE;gBACzC,OAAO,EAAO;oBACZ,YAAY;oBACZ,YAAY;iBACb;gBACD,OAAO,EAAO,CAAE,uBAAuB,CAAE;aAC1C;;wFACY,oBAAoB,mBAPf,uBAAuB,aAErC,YAAY;QACZ,YAAY,aAEE,uBAAuB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { SidenavContentComponent } from './sidenav-content.component';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\n\n@NgModule({\n declarations: [ SidenavContentComponent ],\n imports: [\n CommonModule,\n RouterModule\n ],\n exports: [ SidenavContentComponent ]\n})\nexport class SidenavContentModule {}\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject } from '@angular/core';
|
|
2
|
-
import { HeaderService, FooterService } from '@rxap/services';
|
|
3
|
-
import { BehaviorSubject, combineLatest } from 'rxjs';
|
|
4
|
-
import { tap, map } from 'rxjs/operators';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@rxap/services";
|
|
7
|
-
export class SidenavContentComponentService {
|
|
8
|
-
constructor(footerComponentService, headerComponentService) {
|
|
9
|
-
this.footerComponentService = footerComponentService;
|
|
10
|
-
this.headerComponentService = headerComponentService;
|
|
11
|
-
this.headerRows$ = new BehaviorSubject(1);
|
|
12
|
-
this.headerRows$.next(this.headerComponentService.countComponent);
|
|
13
|
-
this.footerComponentService.portalCount$.pipe().subscribe();
|
|
14
|
-
this.footerRows$ = this.footerComponentService.portalCount$;
|
|
15
|
-
this.headerComponentService.update$.pipe(tap(() => this.headerRows$.next(this.headerComponentService.countComponent))).subscribe();
|
|
16
|
-
this.innerHeight$ = combineLatest([
|
|
17
|
-
this.headerRows$,
|
|
18
|
-
this.footerRows$
|
|
19
|
-
]).pipe(map(([headerRows, footerRows]) => `calc(100% - ${64 * (headerRows + footerRows)}px)`));
|
|
20
|
-
this.marginTop$ = this.headerRows$.pipe(map(headerRows => `${headerRows * 64}px`));
|
|
21
|
-
this.marginBottom$ = this.footerRows$.pipe(map(footerRows => `${footerRows * 64}px`));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
SidenavContentComponentService.ɵfac = function SidenavContentComponentService_Factory(t) { return new (t || SidenavContentComponentService)(i0.ɵɵinject(FooterService), i0.ɵɵinject(HeaderService)); };
|
|
25
|
-
SidenavContentComponentService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SidenavContentComponentService, factory: SidenavContentComponentService.ɵfac, providedIn: 'root' });
|
|
26
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavContentComponentService, [{
|
|
27
|
-
type: Injectable,
|
|
28
|
-
args: [{ providedIn: 'root' }]
|
|
29
|
-
}], function () { return [{ type: i1.FooterService, decorators: [{
|
|
30
|
-
type: Inject,
|
|
31
|
-
args: [FooterService]
|
|
32
|
-
}] }, { type: i1.HeaderService, decorators: [{
|
|
33
|
-
type: Inject,
|
|
34
|
-
args: [HeaderService]
|
|
35
|
-
}] }]; }, null); })();
|
|
36
|
-
//# sourceMappingURL=sidenav-content.component.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidenav-content.component.service.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/sidenav-content/sidenav-content.component.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EAEf,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,EACL,GAAG,EACH,GAAG,EACJ,MAAM,gBAAgB,CAAC;;;AAGxB,MAAM,OAAO,8BAA8B;IAQzC,YACyC,sBAAqC,EACrC,sBAAqC;QADrC,2BAAsB,GAAtB,sBAAsB,CAAe;QACrC,2BAAsB,GAAtB,sBAAsB,CAAe;QARvE,gBAAW,GAAG,IAAI,eAAe,CAAS,CAAC,CAAC,CAAC;QAUlD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;QAElE,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,CAAC;QAE5D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC;QAE5D,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,CACtC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC,CAC7E,CAAC,SAAS,EAAE,CAAC;QAEd,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC;YAChC,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,WAAW;SACjB,CAAC,CAAC,IAAI,CACL,GAAG,CAAC,CAAC,CAAE,UAAU,EAAE,UAAU,CAAE,EAAE,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CACxF,CAAC;QAEF,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CACrC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,EAAE,IAAI,CAAC,CAC1C,CAAC;QAEF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CACxC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,EAAE,IAAI,CAAC,CAC1C,CAAC;IAEJ,CAAC;;4GArCU,8BAA8B,cAS/B,aAAa,eACb,aAAa;oFAVZ,8BAA8B,WAA9B,8BAA8B,mBADjB,MAAM;uFACnB,8BAA8B;cAD1C,UAAU;eAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;sBAU7B,MAAM;uBAAC,aAAa;;sBACpB,MAAM;uBAAC,aAAa","sourcesContent":["import {\n Injectable,\n Inject\n} from '@angular/core';\nimport {\n HeaderService,\n FooterService\n} from '@rxap/services';\nimport {\n BehaviorSubject,\n Observable,\n combineLatest\n} from 'rxjs';\nimport {\n tap,\n map\n} from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class SidenavContentComponentService {\n\n public headerRows$ = new BehaviorSubject<number>(1);\n public footerRows$: Observable<number>;\n public innerHeight$: Observable<string>;\n public marginTop$: Observable<string>;\n public marginBottom$: Observable<string>;\n\n constructor(\n @Inject(FooterService) public readonly footerComponentService: FooterService,\n @Inject(HeaderService) public readonly headerComponentService: HeaderService\n ) {\n this.headerRows$.next(this.headerComponentService.countComponent);\n\n this.footerComponentService.portalCount$.pipe().subscribe();\n\n this.footerRows$ = this.footerComponentService.portalCount$;\n\n this.headerComponentService.update$.pipe(\n tap(() => this.headerRows$.next(this.headerComponentService.countComponent))\n ).subscribe();\n\n this.innerHeight$ = combineLatest([\n this.headerRows$,\n this.footerRows$\n ]).pipe(\n map(([ headerRows, footerRows ]) => `calc(100% - ${64 * (headerRows + footerRows)}px)`)\n );\n\n this.marginTop$ = this.headerRows$.pipe(\n map(headerRows => `${headerRows * 64}px`)\n );\n\n this.marginBottom$ = this.footerRows$.pipe(\n map(footerRows => `${footerRows * 64}px`)\n );\n\n }\n\n}\n"]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/material/button";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
import * as i3 from "@angular/material/icon";
|
|
6
|
-
function ToggleWindowSidenavButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
8
|
-
i0.ɵɵtext(1, "keyboard_arrow_left");
|
|
9
|
-
i0.ɵɵelementEnd();
|
|
10
|
-
} }
|
|
11
|
-
function ToggleWindowSidenavButtonComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
13
|
-
i0.ɵɵtext(1, "keyboard_arrow_right");
|
|
14
|
-
i0.ɵɵelementEnd();
|
|
15
|
-
} }
|
|
16
|
-
export class ToggleWindowSidenavButtonComponent {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.openWindowSidenav = false;
|
|
19
|
-
this.openWindowSidenavChange = new EventEmitter();
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
}
|
|
23
|
-
toggle() {
|
|
24
|
-
this.openWindowSidenav = !this.openWindowSidenav;
|
|
25
|
-
this.openWindowSidenavChange.emit(this.openWindowSidenav);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
ToggleWindowSidenavButtonComponent.ɵfac = function ToggleWindowSidenavButtonComponent_Factory(t) { return new (t || ToggleWindowSidenavButtonComponent)(); };
|
|
29
|
-
ToggleWindowSidenavButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToggleWindowSidenavButtonComponent, selectors: [["rxap-toggle-window-sidenav-button"]], hostAttrs: [1, "rxap-toggle-window-sidenav-button"], inputs: { openWindowSidenav: "openWindowSidenav" }, outputs: { openWindowSidenavChange: "openWindowSidenavChange" }, decls: 5, vars: 2, consts: [[1, "toggle-button"], ["mat-icon-button", "", 3, "click"], [3, "ngIfElse", "ngIf"], ["hide", ""]], template: function ToggleWindowSidenavButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
31
|
-
i0.ɵɵelementStart(1, "button", 1);
|
|
32
|
-
i0.ɵɵlistener("click", function ToggleWindowSidenavButtonComponent_Template_button_click_1_listener() { return ctx.toggle(); });
|
|
33
|
-
i0.ɵɵtemplate(2, ToggleWindowSidenavButtonComponent_ng_template_2_Template, 2, 0, "ng-template", 2);
|
|
34
|
-
i0.ɵɵtemplate(3, ToggleWindowSidenavButtonComponent_ng_template_3_Template, 2, 0, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
35
|
-
i0.ɵɵelementEnd();
|
|
36
|
-
i0.ɵɵelementEnd();
|
|
37
|
-
} if (rf & 2) {
|
|
38
|
-
const _r1 = i0.ɵɵreference(4);
|
|
39
|
-
i0.ɵɵadvance(2);
|
|
40
|
-
i0.ɵɵproperty("ngIfElse", _r1)("ngIf", !ctx.openWindowSidenav);
|
|
41
|
-
} }, directives: [i1.MatButton, i2.NgIf, i3.MatIcon], styles: [".toggle-button[_ngcontent-%COMP%]{position:absolute;top:70px;right:0;z-index:10000;border-radius:15px 0 0 15px;border:1px solid #000;background:#000}"], changeDetection: 0 });
|
|
42
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToggleWindowSidenavButtonComponent, [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
selector: 'rxap-toggle-window-sidenav-button',
|
|
46
|
-
templateUrl: './toggle-window-sidenav-button.component.html',
|
|
47
|
-
styleUrls: ['./toggle-window-sidenav-button.component.scss'],
|
|
48
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
|
-
host: {
|
|
50
|
-
class: 'rxap-toggle-window-sidenav-button'
|
|
51
|
-
}
|
|
52
|
-
}]
|
|
53
|
-
}], function () { return []; }, { openWindowSidenav: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], openWindowSidenavChange: [{
|
|
56
|
-
type: Output
|
|
57
|
-
}] }); })();
|
|
58
|
-
//# sourceMappingURL=toggle-window-sidenav-button.component.js.map
|
package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-window-sidenav-button.component.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.ts","../../../../../../libs/layout/src/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,YAAY,EACb,MAAM,eAAe,CAAC;;;;;;ICJjB,gCAAU;IAAA,mCAAmB;IAAA,iBAAW;;;IAGxC,gCAAU;IAAA,oCAAoB;IAAA,iBAAW;;ADY/C,MAAM,OAAO,kCAAkC;IAQ7C;QALO,sBAAiB,GAAG,KAAK,CAAC;QAG1B,4BAAuB,GAAG,IAAI,YAAY,EAAW,CAAC;IAE7C,CAAC;IAEjB,QAAQ;IACR,CAAC;IAEM,MAAM;QACX,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC5D,CAAC;;oHAhBU,kCAAkC;qFAAlC,kCAAkC;QClB/C,8BAA2B;QACzB,iCAA2C;QAAnC,+GAAS,YAAQ,IAAC;QACxB,mGAEc;QACd,oIAEc;QAChB,iBAAS;QACX,iBAAM;;;QAPW,eAAiB;QAAjB,8BAAiB,gCAAA;;uFDgBrB,kCAAkC;cAT9C,SAAS;eAAC;gBACT,QAAQ,EAAS,mCAAmC;gBACpD,WAAW,EAAM,+CAA+C;gBAChE,SAAS,EAAQ,CAAE,+CAA+C,CAAE;gBACpE,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAa;oBACf,KAAK,EAAE,mCAAmC;iBAC3C;aACF;sCAIQ,iBAAiB;kBADvB,KAAK;YAIC,uBAAuB;kBAD7B,MAAM","sourcesContent":["import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Input,\n Output,\n EventEmitter\n} from '@angular/core';\n\n@Component({\n selector: 'rxap-toggle-window-sidenav-button',\n templateUrl: './toggle-window-sidenav-button.component.html',\n styleUrls: [ './toggle-window-sidenav-button.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'rxap-toggle-window-sidenav-button'\n }\n})\nexport class ToggleWindowSidenavButtonComponent implements OnInit {\n\n @Input()\n public openWindowSidenav = false;\n\n @Output()\n public openWindowSidenavChange = new EventEmitter<boolean>();\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n public toggle() {\n this.openWindowSidenav = !this.openWindowSidenav;\n this.openWindowSidenavChange.emit(this.openWindowSidenav);\n }\n\n}\n","<div class=\"toggle-button\">\n <button (click)=\"toggle()\" mat-icon-button>\n <ng-template [ngIfElse]=\"hide\" [ngIf]=\"!openWindowSidenav\">\n <mat-icon>keyboard_arrow_left</mat-icon>\n </ng-template>\n <ng-template #hide>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n </button>\n</div>\n"]}
|
package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ToggleWindowSidenavButtonComponent } from './toggle-window-sidenav-button.component';
|
|
3
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class ToggleWindowSidenavButtonModule {
|
|
8
|
-
}
|
|
9
|
-
ToggleWindowSidenavButtonModule.ɵfac = function ToggleWindowSidenavButtonModule_Factory(t) { return new (t || ToggleWindowSidenavButtonModule)(); };
|
|
10
|
-
ToggleWindowSidenavButtonModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ToggleWindowSidenavButtonModule });
|
|
11
|
-
ToggleWindowSidenavButtonModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
12
|
-
MatButtonModule,
|
|
13
|
-
MatIconModule,
|
|
14
|
-
CommonModule,
|
|
15
|
-
]] });
|
|
16
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToggleWindowSidenavButtonModule, [{
|
|
17
|
-
type: NgModule,
|
|
18
|
-
args: [{
|
|
19
|
-
declarations: [ToggleWindowSidenavButtonComponent],
|
|
20
|
-
imports: [
|
|
21
|
-
MatButtonModule,
|
|
22
|
-
MatIconModule,
|
|
23
|
-
CommonModule,
|
|
24
|
-
],
|
|
25
|
-
exports: [ToggleWindowSidenavButtonComponent],
|
|
26
|
-
}]
|
|
27
|
-
}], null, null); })();
|
|
28
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ToggleWindowSidenavButtonModule, { declarations: [ToggleWindowSidenavButtonComponent], imports: [MatButtonModule,
|
|
29
|
-
MatIconModule,
|
|
30
|
-
CommonModule], exports: [ToggleWindowSidenavButtonComponent] }); })();
|
|
31
|
-
//# sourceMappingURL=toggle-window-sidenav-button.component.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-window-sidenav-button.component.module.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAY/C,MAAM,OAAO,+BAA+B;;8GAA/B,+BAA+B;iFAA/B,+BAA+B;qFAP5B;YACZ,eAAe;YACf,aAAa;YACb,YAAY;SACb;uFAGU,+BAA+B;cAT3C,QAAQ;eAAC;gBACR,YAAY,EAAE,CAAE,kCAAkC,CAAE;gBACpD,OAAO,EAAO;oBACZ,eAAe;oBACf,aAAa;oBACb,YAAY;iBACb;gBACD,OAAO,EAAO,CAAE,kCAAkC,CAAE;aACrD;;wFACY,+BAA+B,mBAR1B,kCAAkC,aAEhD,eAAe;QACf,aAAa;QACb,YAAY,aAEE,kCAAkC","sourcesContent":["import { NgModule } from '@angular/core';\nimport { ToggleWindowSidenavButtonComponent } from './toggle-window-sidenav-button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [ ToggleWindowSidenavButtonComponent ],\n imports: [\n MatButtonModule,\n MatIconModule,\n CommonModule,\n ],\n exports: [ ToggleWindowSidenavButtonComponent ],\n})\nexport class ToggleWindowSidenavButtonModule {}\n"]}
|
package/esm2015/lib/tokens.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const RXAP_NAVIGATION_CONFIG = new InjectionToken('rxap/layout/navigation-config');
|
|
3
|
-
export const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken('rxap/layout/navigation-config-inserts');
|
|
4
|
-
export const RXAP_FOOTER_COMPONENT = new InjectionToken('rxap/layout/footer-component');
|
|
5
|
-
export const RXAP_HEADER_COMPONENT = new InjectionToken('rxap/layout/header-component');
|
|
6
|
-
export const RXAP_LOGO_CONFIG = new InjectionToken('rxap/layout/logo-config');
|
|
7
|
-
export const RXAP_LAYOUT_APPS_GRID = new InjectionToken('rxap/layout/apps-grid');
|
|
8
|
-
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../libs/layout/src/lib/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/C,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,cAAc,CAAwD,+BAA+B,CAAC,CAAC;AACjJ,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,cAAc,CAAwC,uCAAuC,CAAC,CAAC;AAEjJ,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,8BAA8B,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,8BAA8B,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,gBAAgB,GAAQ,IAAI,cAAc,CAAa,yBAAyB,CAAC,CAAC;AAC/F,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,uBAAuB,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { LogoConfig } from './types';\nimport { NavigationWithInserts } from './navigation/navigation-item';\n\nexport const RXAP_NAVIGATION_CONFIG = new InjectionToken<NavigationWithInserts | (() => NavigationWithInserts)>('rxap/layout/navigation-config');\nexport const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken<Record<string, NavigationWithInserts>>('rxap/layout/navigation-config-inserts');\n\nexport const RXAP_FOOTER_COMPONENT = new InjectionToken('rxap/layout/footer-component');\nexport const RXAP_HEADER_COMPONENT = new InjectionToken('rxap/layout/header-component');\nexport const RXAP_LOGO_CONFIG = new InjectionToken<LogoConfig>('rxap/layout/logo-config');\nexport const RXAP_LAYOUT_APPS_GRID = new InjectionToken('rxap/layout/apps-grid');\n"]}
|
package/esm2015/lib/types.js
DELETED
package/esm2015/lib/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../libs/layout/src/lib/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface LogoConfig {\n src: string;\n width: string;\n}\n"]}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
|
|
2
|
-
import { WindowContainerSidenavService } from '@rxap/services';
|
|
3
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
4
|
-
import { tap } from 'rxjs/operators';
|
|
5
|
-
import { Subscription } from 'rxjs';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/flex-layout/flex";
|
|
8
|
-
import * as i2 from "@angular/common";
|
|
9
|
-
import * as i3 from "@angular/cdk/portal";
|
|
10
|
-
import * as i4 from "@rxap/services";
|
|
11
|
-
function WindowContainerSidenavComponent_div_1_ng_template_1_Template(rf, ctx) { }
|
|
12
|
-
function WindowContainerSidenavComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
14
|
-
i0.ɵɵtemplate(1, WindowContainerSidenavComponent_div_1_ng_template_1_Template, 0, 0, "ng-template", 3);
|
|
15
|
-
i0.ɵɵelementEnd();
|
|
16
|
-
} if (rf & 2) {
|
|
17
|
-
const portalId_r1 = ctx.$implicit;
|
|
18
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19
|
-
i0.ɵɵadvance(1);
|
|
20
|
-
i0.ɵɵproperty("cdkPortalOutlet", ctx_r0.portals.get(portalId_r1));
|
|
21
|
-
} }
|
|
22
|
-
export class WindowContainerSidenavComponent {
|
|
23
|
-
constructor(service) {
|
|
24
|
-
this.service = service;
|
|
25
|
-
this.portals = new Map();
|
|
26
|
-
this.subscription = new Subscription();
|
|
27
|
-
}
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
const components = this.service.getAll();
|
|
30
|
-
for (const component of components) {
|
|
31
|
-
this.add(component);
|
|
32
|
-
}
|
|
33
|
-
this.subscription.add(this.service.add$.pipe(tap(component => this.add(component))).subscribe());
|
|
34
|
-
this.subscription.add(this.service.remove$.pipe(tap(component => this.remove(component))).subscribe());
|
|
35
|
-
}
|
|
36
|
-
ngOnDestroy() {
|
|
37
|
-
this.subscription.unsubscribe();
|
|
38
|
-
}
|
|
39
|
-
trackBy(index, id) {
|
|
40
|
-
return id;
|
|
41
|
-
}
|
|
42
|
-
add(component) {
|
|
43
|
-
if (this.portals.has(component.id)) {
|
|
44
|
-
throw new Error(`Component portal with id ${component.id} already exists`);
|
|
45
|
-
}
|
|
46
|
-
const portal = new ComponentPortal(component.component, component.viewContainerRef, component.injector, component.componentFactoryResolver);
|
|
47
|
-
this.portals.set(component.id, portal);
|
|
48
|
-
}
|
|
49
|
-
remove(component) {
|
|
50
|
-
if (this.portals.has(component.id)) {
|
|
51
|
-
const portal = this.portals.get(component.id);
|
|
52
|
-
this.portals.delete(component.id);
|
|
53
|
-
portal.detach();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
WindowContainerSidenavComponent.ɵfac = function WindowContainerSidenavComponent_Factory(t) { return new (t || WindowContainerSidenavComponent)(i0.ɵɵdirectiveInject(WindowContainerSidenavService)); };
|
|
58
|
-
WindowContainerSidenavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WindowContainerSidenavComponent, selectors: [["rxap-window-container-sidenav"]], decls: 2, vars: 2, consts: [["fxLayout", "column", "fxLayoutGap", "16px", 1, "container"], ["fxFlex", "nogrow", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["fxFlex", "nogrow"], [3, "cdkPortalOutlet"]], template: function WindowContainerSidenavComponent_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
60
|
-
i0.ɵɵtemplate(1, WindowContainerSidenavComponent_div_1_Template, 2, 1, "div", 1);
|
|
61
|
-
i0.ɵɵelementEnd();
|
|
62
|
-
} if (rf & 2) {
|
|
63
|
-
i0.ɵɵadvance(1);
|
|
64
|
-
i0.ɵɵproperty("ngForOf", ctx.portals.keys())("ngForTrackBy", ctx.trackBy);
|
|
65
|
-
} }, directives: [i1.DefaultLayoutDirective, i1.DefaultLayoutGapDirective, i2.NgForOf, i1.DefaultFlexDirective, i3.CdkPortalOutlet], styles: [".container[_ngcontent-%COMP%]{padding:8px}"], changeDetection: 0 });
|
|
66
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WindowContainerSidenavComponent, [{
|
|
67
|
-
type: Component,
|
|
68
|
-
args: [{
|
|
69
|
-
selector: 'rxap-window-container-sidenav',
|
|
70
|
-
templateUrl: './window-container-sidenav.component.html',
|
|
71
|
-
styleUrls: ['./window-container-sidenav.component.scss'],
|
|
72
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
73
|
-
}]
|
|
74
|
-
}], function () { return [{ type: i4.WindowContainerSidenavService, decorators: [{
|
|
75
|
-
type: Inject,
|
|
76
|
-
args: [WindowContainerSidenavService]
|
|
77
|
-
}] }]; }, null); })();
|
|
78
|
-
//# sourceMappingURL=window-container-sidenav.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-container-sidenav.component.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/window-container-sidenav/window-container-sidenav.component.ts","../../../../../../libs/layout/src/lib/window-container-sidenav/window-container-sidenav.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,6BAA6B,EAE9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;;;;;;;;ICXlC,8BAA+E;IAC7E,sGAAqE;IACvE,iBAAM;;;;IADS,eAAyC;IAAzC,iEAAyC;;ADkB1D,MAAM,OAAO,+BAA+B;IAM1C,YAEkB,OAAsC;QAAtC,YAAO,GAAP,OAAO,CAA+B;QANjD,YAAO,GAAG,IAAI,GAAG,EAAgC,CAAC;QAEjD,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAKtC,CAAC;IAEE,QAAQ;QACb,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACzC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;SACrB;QACD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAC1C,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CACtC,CAAC,SAAS,EAAE,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAC7C,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CACzC,CAAC,SAAS,EAAE,CAAC,CAAC;IACjB,CAAC;IAEM,WAAW;QAChB,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;IAEM,OAAO,CAAC,KAAa,EAAE,EAAU;QACtC,OAAO,EAAE,CAAC;IACZ,CAAC;IAEO,GAAG,CAAC,SAA6B;QACvC,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,4BAA4B,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC;SAC5E;QACD,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,gBAAgB,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,wBAAwB,CAAC,CAAC;QAC5I,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAEO,MAAM,CAAC,SAA6B;QAC1C,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE;YAClC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAE,CAAC;YAC/C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YAClC,MAAM,CAAC,MAAM,EAAE,CAAC;SACjB;IACH,CAAC;;8GA9CU,+BAA+B,uBAOhC,6BAA6B;kFAP5B,+BAA+B;QCrB5C,8BAA4D;QAE1D,gFAEM;QAER,iBAAM;;QAJsC,eAAmB;QAAnB,4CAAmB,6BAAA;;uFDmBlD,+BAA+B;cAN3C,SAAS;eAAC;gBACT,QAAQ,EAAS,+BAA+B;gBAChD,WAAW,EAAM,2CAA2C;gBAC5D,SAAS,EAAQ,CAAE,2CAA2C,CAAE;gBAChE,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;sBAQI,MAAM;uBAAC,6BAA6B","sourcesContent":["import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Inject,\n OnDestroy\n} from '@angular/core';\nimport {\n WindowContainerSidenavService,\n ContainerComponent\n} from '@rxap/services';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { tap } from 'rxjs/operators';\nimport { Subscription } from 'rxjs';\n\n@Component({\n selector: 'rxap-window-container-sidenav',\n templateUrl: './window-container-sidenav.component.html',\n styleUrls: [ './window-container-sidenav.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WindowContainerSidenavComponent implements OnInit, OnDestroy {\n\n public portals = new Map<string, ComponentPortal<any>>();\n\n private subscription = new Subscription();\n\n constructor(\n @Inject(WindowContainerSidenavService)\n public readonly service: WindowContainerSidenavService\n ) { }\n\n public ngOnInit(): void {\n const components = this.service.getAll();\n for (const component of components) {\n this.add(component);\n }\n this.subscription.add(this.service.add$.pipe(\n tap(component => this.add(component))\n ).subscribe());\n this.subscription.add(this.service.remove$.pipe(\n tap(component => this.remove(component))\n ).subscribe());\n }\n\n public ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n public trackBy(index: number, id: string) {\n return id;\n }\n\n private add(component: ContainerComponent) {\n if (this.portals.has(component.id)) {\n throw new Error(`Component portal with id ${component.id} already exists`);\n }\n const portal = new ComponentPortal(component.component, component.viewContainerRef, component.injector, component.componentFactoryResolver);\n this.portals.set(component.id, portal);\n }\n\n private remove(component: ContainerComponent) {\n if (this.portals.has(component.id)) {\n const portal = this.portals.get(component.id)!;\n this.portals.delete(component.id);\n portal.detach();\n }\n }\n\n}\n","<div fxLayout=\"column\" fxLayoutGap=\"16px\" class=\"container\">\n\n <div fxFlex=\"nogrow\" *ngFor=\"let portalId of portals.keys(); trackBy: trackBy\">\n <ng-template [cdkPortalOutlet]=\"portals.get(portalId)\"></ng-template>\n </div>\n\n</div>\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { WindowContainerSidenavComponent } from './window-container-sidenav.component';
|
|
3
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { PortalModule } from '@angular/cdk/portal';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class WindowContainerSidenavModule {
|
|
8
|
-
}
|
|
9
|
-
WindowContainerSidenavModule.ɵfac = function WindowContainerSidenavModule_Factory(t) { return new (t || WindowContainerSidenavModule)(); };
|
|
10
|
-
WindowContainerSidenavModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: WindowContainerSidenavModule });
|
|
11
|
-
WindowContainerSidenavModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
12
|
-
FlexLayoutModule,
|
|
13
|
-
CommonModule,
|
|
14
|
-
PortalModule,
|
|
15
|
-
]] });
|
|
16
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WindowContainerSidenavModule, [{
|
|
17
|
-
type: NgModule,
|
|
18
|
-
args: [{
|
|
19
|
-
declarations: [WindowContainerSidenavComponent],
|
|
20
|
-
imports: [
|
|
21
|
-
FlexLayoutModule,
|
|
22
|
-
CommonModule,
|
|
23
|
-
PortalModule,
|
|
24
|
-
],
|
|
25
|
-
exports: [WindowContainerSidenavComponent],
|
|
26
|
-
}]
|
|
27
|
-
}], null, null); })();
|
|
28
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(WindowContainerSidenavModule, { declarations: [WindowContainerSidenavComponent], imports: [FlexLayoutModule,
|
|
29
|
-
CommonModule,
|
|
30
|
-
PortalModule], exports: [WindowContainerSidenavComponent] }); })();
|
|
31
|
-
//# sourceMappingURL=window-container-sidenav.component.module.js.map
|
package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-container-sidenav.component.module.js","sourceRoot":"","sources":["../../../../../../libs/layout/src/lib/window-container-sidenav/window-container-sidenav.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;;AAYnD,MAAM,OAAO,4BAA4B;;wGAA5B,4BAA4B;8EAA5B,4BAA4B;kFAPzB;YACZ,gBAAgB;YAChB,YAAY;YACZ,YAAY;SACb;uFAGU,4BAA4B;cATxC,QAAQ;eAAC;gBACR,YAAY,EAAE,CAAE,+BAA+B,CAAE;gBACjD,OAAO,EAAO;oBACZ,gBAAgB;oBAChB,YAAY;oBACZ,YAAY;iBACb;gBACD,OAAO,EAAO,CAAE,+BAA+B,CAAE;aAClD;;wFACY,4BAA4B,mBARvB,+BAA+B,aAE7C,gBAAgB;QAChB,YAAY;QACZ,YAAY,aAEE,+BAA+B","sourcesContent":["import { NgModule } from '@angular/core';\nimport { WindowContainerSidenavComponent } from './window-container-sidenav.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { PortalModule } from '@angular/cdk/portal';\n\n\n@NgModule({\n declarations: [ WindowContainerSidenavComponent ],\n imports: [\n FlexLayoutModule,\n CommonModule,\n PortalModule,\n ],\n exports: [ WindowContainerSidenavComponent ],\n})\nexport class WindowContainerSidenavModule {}\n"]}
|
package/esm2015/rxap-layout.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-layout.js","sourceRoot":"","sources":["../../../../libs/layout/src/rxap-layout.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|