@valtimo/layout 10.2.1 → 10.4.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.
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Component } from '@angular/core';
16
+ import { Component, ViewChild } from '@angular/core';
17
17
  import * as i0 from "@angular/core";
18
18
  import * as i1 from "../layout.service";
19
19
  import * as i2 from "@valtimo/user-interface";
@@ -32,12 +32,16 @@ export class LayoutInternalComponent {
32
32
  }
33
33
  ngAfterViewInit() {
34
34
  App.init();
35
+ this.shellService.setContentElement(this.mainContentRef.nativeElement);
35
36
  }
36
37
  }
37
38
  LayoutInternalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LayoutInternalComponent, deps: [{ token: i1.LayoutService }, { token: i0.Renderer2 }, { token: i2.UserInterfaceService }, { token: i3.ShellService }], target: i0.ɵɵFactoryTarget.Component });
38
- LayoutInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: LayoutInternalComponent, selector: "valtimo-layout-internal", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"], dependencies: [{ kind: "directive", type: i4.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.TopbarComponent, selector: "valtimo-topbar" }, { kind: "component", type: i3.LeftSidebarComponent, selector: "valtimo-left-sidebar" }, { kind: "component", type: i3.RightSidebarComponent, selector: "valtimo-right-sidebar" }, { kind: "component", type: i3.PageHeaderComponent, selector: "valtimo-page-header" }, { kind: "component", type: i3.AlertComponent, selector: "valtimo-alert" }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.PromptComponent, selector: "v-prompt", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
39
+ LayoutInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: LayoutInternalComponent, selector: "valtimo-layout-internal", viewQueries: [{ propertyName: "mainContentRef", first: true, predicate: ["mainContent"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"], dependencies: [{ kind: "directive", type: i4.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.TopbarComponent, selector: "valtimo-topbar" }, { kind: "component", type: i3.LeftSidebarComponent, selector: "valtimo-left-sidebar" }, { kind: "component", type: i3.RightSidebarComponent, selector: "valtimo-right-sidebar" }, { kind: "component", type: i3.PageHeaderComponent, selector: "valtimo-page-header" }, { kind: "component", type: i3.AlertComponent, selector: "valtimo-alert" }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.PromptComponent, selector: "v-prompt", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
39
40
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LayoutInternalComponent, decorators: [{
40
41
  type: Component,
41
- args: [{ selector: 'valtimo-layout-internal', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"] }]
42
- }], ctorParameters: function () { return [{ type: i1.LayoutService }, { type: i0.Renderer2 }, { type: i2.UserInterfaceService }, { type: i3.ShellService }]; } });
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LWludGVybmFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vbGF5b3V0L3NyYy9saWIvbGF5b3V0LWludGVybmFsL2xheW91dC1pbnRlcm5hbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2xheW91dC9zcmMvbGliL2xheW91dC1pbnRlcm5hbC9sYXlvdXQtaW50ZXJuYWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQWdCLFNBQVMsRUFBWSxNQUFNLGVBQWUsQ0FBQzs7Ozs7OztBQWFsRSxNQUFNLE9BQU8sdUJBQXVCO0lBSWxDLFlBQ1MsYUFBNEIsRUFDM0IsUUFBbUIsRUFDVixvQkFBMEMsRUFDMUMsWUFBMEI7UUFIcEMsa0JBQWEsR0FBYixhQUFhLENBQWU7UUFDM0IsYUFBUSxHQUFSLFFBQVEsQ0FBVztRQUNWLHlCQUFvQixHQUFwQixvQkFBb0IsQ0FBc0I7UUFDMUMsaUJBQVksR0FBWixZQUFZLENBQWM7UUFQcEMsb0JBQWUsR0FBRy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UyBJU1wiIGJhc2lzLFxuICB+IFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICB+IFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAgfiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAgLS0+XG5cbjx2YWx0aW1vLXRvcGJhcj48L3ZhbHRpbW8tdG9wYmFyPlxuPG1haW4gY2xhc3M9XCJjZHMtLWNvbnRlbnRcIiBbbmdDbGFzc109XCJ7J2Nkcy0tY29udGVudC0tc2lkZWJhcic6IHNpZGVCYXJFeHBhbmRlZCQgfCBhc3luY31cIj5cbiAgPHZhbHRpbW8tbGVmdC1zaWRlYmFyIFtoaWRkZW5dPVwibGF5b3V0U2VydmljZS5pc0Z1bGxzY3JlZW5cIj48L3ZhbHRpbW8tbGVmdC1zaWRlYmFyPlxuICA8dmFsdGltby1hbGVydD48L3ZhbHRpbW8tYWxlcnQ+XG4gIDx2YWx0aW1vLXBhZ2UtaGVhZGVyIFtoaWRkZW5dPVwibGF5b3V0U2VydmljZS5pc0Z1bGxzY3JlZW5cIj48L3ZhbHRpbW8tcGFnZS1oZWFkZXI+XG4gIDxyb3V0ZXItb3V0bGV0Pjwvcm91dGVyLW91dGxldD5cbiAgPHZhbHRpbW8tcmlnaHQtc2lkZWJhcj48L3ZhbHRpbW8tcmlnaHQtc2lkZWJhcj5cbiAgPHYtcHJvbXB0Pjwvdi1wcm9tcHQ+XG48L21haW4+XG4iXX0=
42
+ args: [{ selector: 'valtimo-layout-internal', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"] }]
43
+ }], ctorParameters: function () { return [{ type: i1.LayoutService }, { type: i0.Renderer2 }, { type: i2.UserInterfaceService }, { type: i3.ShellService }]; }, propDecorators: { mainContentRef: [{
44
+ type: ViewChild,
45
+ args: ['mainContent']
46
+ }] } });
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LWludGVybmFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4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1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAgfiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gIH4gbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gIC0tPlxuXG48dmFsdGltby10b3BiYXI+PC92YWx0aW1vLXRvcGJhcj5cbjxtYWluXG4gIGNsYXNzPVwiY2RzLS1jb250ZW50XCJcbiAgW25nQ2xhc3NdPVwieydjZHMtLWNvbnRlbnQtLXNpZGViYXInOiBzaWRlQmFyRXhwYW5kZWQkIHwgYXN5bmN9XCJcbiAgI21haW5Db250ZW50XG4+XG4gIDx2YWx0aW1vLWxlZnQtc2lkZWJhciBbaGlkZGVuXT1cImxheW91dFNlcnZpY2UuaXNGdWxsc2NyZWVuXCI+PC92YWx0aW1vLWxlZnQtc2lkZWJhcj5cbiAgPHZhbHRpbW8tYWxlcnQ+PC92YWx0aW1vLWFsZXJ0PlxuICA8dmFsdGltby1wYWdlLWhlYWRlciBbaGlkZGVuXT1cImxheW91dFNlcnZpY2UuaXNGdWxsc2NyZWVuXCI+PC92YWx0aW1vLXBhZ2UtaGVhZGVyPlxuICA8cm91dGVyLW91dGxldD48L3JvdXRlci1vdXRsZXQ+XG4gIDx2YWx0aW1vLXJpZ2h0LXNpZGViYXI+PC92YWx0aW1vLXJpZ2h0LXNpZGViYXI+XG4gIDx2LXByb21wdD48L3YtcHJvbXB0PlxuPC9tYWluPlxuIl19
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, NgModule } from '@angular/core';
2
+ import { Injectable, Component, ViewChild, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/router';
4
4
  import { NavigationEnd, RouterModule } from '@angular/router';
5
5
  import { filter } from 'rxjs/operators';
@@ -99,14 +99,18 @@ class LayoutInternalComponent {
99
99
  }
100
100
  ngAfterViewInit() {
101
101
  App.init();
102
+ this.shellService.setContentElement(this.mainContentRef.nativeElement);
102
103
  }
103
104
  }
104
105
  LayoutInternalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LayoutInternalComponent, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i2.UserInterfaceService }, { token: i3.ShellService }], target: i0.ɵɵFactoryTarget.Component });
105
- LayoutInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: LayoutInternalComponent, selector: "valtimo-layout-internal", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"], dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.TopbarComponent, selector: "valtimo-topbar" }, { kind: "component", type: i3.LeftSidebarComponent, selector: "valtimo-left-sidebar" }, { kind: "component", type: i3.RightSidebarComponent, selector: "valtimo-right-sidebar" }, { kind: "component", type: i3.PageHeaderComponent, selector: "valtimo-page-header" }, { kind: "component", type: i3.AlertComponent, selector: "valtimo-alert" }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.PromptComponent, selector: "v-prompt", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
106
+ LayoutInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: LayoutInternalComponent, selector: "valtimo-layout-internal", viewQueries: [{ propertyName: "mainContentRef", first: true, predicate: ["mainContent"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"], dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.TopbarComponent, selector: "valtimo-topbar" }, { kind: "component", type: i3.LeftSidebarComponent, selector: "valtimo-left-sidebar" }, { kind: "component", type: i3.RightSidebarComponent, selector: "valtimo-right-sidebar" }, { kind: "component", type: i3.PageHeaderComponent, selector: "valtimo-page-header" }, { kind: "component", type: i3.AlertComponent, selector: "valtimo-alert" }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.PromptComponent, selector: "v-prompt", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
106
107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LayoutInternalComponent, decorators: [{
107
108
  type: Component,
108
- args: [{ selector: 'valtimo-layout-internal', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"] }]
109
- }], ctorParameters: function () { return [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i2.UserInterfaceService }, { type: i3.ShellService }]; } });
109
+ args: [{ selector: 'valtimo-layout-internal', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"] }]
110
+ }], ctorParameters: function () { return [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i2.UserInterfaceService }, { type: i3.ShellService }]; }, propDecorators: { mainContentRef: [{
111
+ type: ViewChild,
112
+ args: ['mainContent']
113
+ }] } });
110
114
 
111
115
  /*
112
116
  * Copyright 2015-2020 Ritense BV, the Netherlands.
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-layout.mjs","sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.html","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.html","../../../../projects/valtimo/layout/src/lib/layout.component.ts","../../../../projects/valtimo/layout/src/lib/layout.component.html","../../../../projects/valtimo/layout/src/lib/layout.module.ts","../../../../projects/valtimo/layout/src/public_api.ts","../../../../projects/valtimo/layout/src/valtimo-layout.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LayoutService {\n private fullscreen = false;\n\n constructor() {}\n\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-layout-public',\n templateUrl: './layout-public.component.html',\n styleUrls: ['./layout-public.component.scss'],\n})\nexport class LayoutPublicComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"public-page-content\">\n <img src=\"assets/logo.svg\" class=\"logo\" />\n <router-outlet></router-outlet>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, Renderer2} from '@angular/core';\nimport {LayoutService} from '../layout.service';\nimport {UserInterfaceService} from '@valtimo/user-interface';\nimport {ShellService} from '@valtimo/components';\n\n// eslint-disable-next-line no-var\ndeclare var App;\n\n@Component({\n selector: 'valtimo-layout-internal',\n templateUrl: './layout-internal.component.html',\n styleUrls: ['./layout-internal.component.scss'],\n})\nexport class LayoutInternalComponent implements AfterViewInit {\n readonly showPageHeader$ = this.userInterfaceService.showPageHeader$;\n readonly sideBarExpanded$ = this.shellService.sideBarExpanded$;\n\n constructor(\n public layoutService: LayoutService,\n private renderer: Renderer2,\n private readonly userInterfaceService: UserInterfaceService,\n private readonly shellService: ShellService\n ) {\n this.renderer.addClass(document.body, 'be-animate');\n }\n\n ngAfterViewInit(): void {\n App.init();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, NavigationEnd, Router} from '@angular/router';\nimport {filter} from 'rxjs/operators';\nimport {Subscription} from 'rxjs';\n\n// eslint-disable-next-line no-var\ndeclare var App: any;\n\n@Component({\n selector: 'valtimo-layout',\n templateUrl: './layout.component.html',\n})\nexport class LayoutComponent implements OnInit, OnDestroy {\n public layoutType: string | null = null;\n private routerSub = Subscription.EMPTY;\n private defaultLayout = 'internal';\n\n constructor(private router: Router, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.routerSub = this.router.events\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => {\n const layout = this.route.snapshot.firstChild.data.layout;\n this.layoutType = layout ? layout : this.defaultLayout;\n });\n }\n\n ngOnDestroy() {\n this.routerSub.unsubscribe();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-layout-public *ngIf=\"layoutType === 'public'\"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf=\"layoutType === 'internal'\"></valtimo-layout-internal>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {LayoutComponent} from './layout.component';\nimport {\n AlertModule,\n LeftSidebarModule,\n MenuRoutingModule,\n PageHeaderModule,\n RightSidebarModule,\n TopbarModule,\n} from '@valtimo/components';\nimport {RouterModule} from '@angular/router';\nimport {LayoutPublicComponent} from './layout-public/layout-public.component';\nimport {LayoutInternalComponent} from './layout-internal/layout-internal.component';\nimport {CommonModule} from '@angular/common';\nimport {PromptModule} from '@valtimo/user-interface';\n\n@NgModule({\n declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],\n imports: [\n RouterModule,\n MenuRoutingModule,\n TopbarModule,\n LeftSidebarModule,\n RightSidebarModule,\n PageHeaderModule,\n AlertModule,\n CommonModule,\n PromptModule,\n ],\n exports: [LayoutComponent],\n})\nexport class LayoutModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of layout\n */\n\nexport * from './lib/layout.service';\nexport * from './lib/layout.component';\nexport * from './lib/layout.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.LayoutService","i4","i2","i3.LayoutPublicComponent","i4.LayoutInternalComponent"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAOU,aAAa,CAAA;AAGxB,IAAA,WAAA,GAAA;AAFQ,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAEX;AAEhB,IAAA,IAAW,YAAY,GAAA;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAEM,gBAAgB,GAAA;AACrB,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CA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,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,eAAe,EAAE,qBAAqB,EAAE,uBAAuB,CAAC;AAC/E,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,kBAAkB;wBAClB,gBAAgB;wBAChB,WAAW;wBACX,YAAY;wBACZ,YAAY;AACb,qBAAA;oBACD,OAAO,EAAE,CAAC,eAAe,CAAC;iBAC3B,CAAA;;;AC9CD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
1
+ {"version":3,"file":"valtimo-layout.mjs","sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.html","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.html","../../../../projects/valtimo/layout/src/lib/layout.component.ts","../../../../projects/valtimo/layout/src/lib/layout.component.html","../../../../projects/valtimo/layout/src/lib/layout.module.ts","../../../../projects/valtimo/layout/src/public_api.ts","../../../../projects/valtimo/layout/src/valtimo-layout.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LayoutService {\n private fullscreen = false;\n\n constructor() {}\n\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-layout-public',\n templateUrl: './layout-public.component.html',\n styleUrls: ['./layout-public.component.scss'],\n})\nexport class LayoutPublicComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"public-page-content\">\n <img src=\"assets/logo.svg\" class=\"logo\" />\n <router-outlet></router-outlet>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, Renderer2, ViewChild} from '@angular/core';\nimport {LayoutService} from '../layout.service';\nimport {UserInterfaceService} from '@valtimo/user-interface';\nimport {ShellService} from '@valtimo/components';\n\n// eslint-disable-next-line no-var\ndeclare var App;\n\n@Component({\n selector: 'valtimo-layout-internal',\n templateUrl: './layout-internal.component.html',\n styleUrls: ['./layout-internal.component.scss'],\n})\nexport class LayoutInternalComponent implements AfterViewInit {\n @ViewChild('mainContent') mainContentRef: ElementRef;\n\n readonly showPageHeader$ = this.userInterfaceService.showPageHeader$;\n readonly sideBarExpanded$ = this.shellService.sideBarExpanded$;\n\n constructor(\n public layoutService: LayoutService,\n private readonly renderer: Renderer2,\n private readonly userInterfaceService: UserInterfaceService,\n private readonly shellService: ShellService\n ) {\n this.renderer.addClass(document.body, 'be-animate');\n }\n\n ngAfterViewInit(): void {\n App.init();\n this.shellService.setContentElement(this.mainContentRef.nativeElement);\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, NavigationEnd, Router} from '@angular/router';\nimport {filter} from 'rxjs/operators';\nimport {Subscription} from 'rxjs';\n\n// eslint-disable-next-line no-var\ndeclare var App: any;\n\n@Component({\n selector: 'valtimo-layout',\n templateUrl: './layout.component.html',\n})\nexport class LayoutComponent implements OnInit, OnDestroy {\n public layoutType: string | null = null;\n private routerSub = Subscription.EMPTY;\n private defaultLayout = 'internal';\n\n constructor(private router: Router, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.routerSub = this.router.events\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => {\n const layout = this.route.snapshot.firstChild.data.layout;\n this.layoutType = layout ? layout : this.defaultLayout;\n });\n }\n\n ngOnDestroy() {\n this.routerSub.unsubscribe();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-layout-public *ngIf=\"layoutType === 'public'\"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf=\"layoutType === 'internal'\"></valtimo-layout-internal>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {LayoutComponent} from './layout.component';\nimport {\n AlertModule,\n LeftSidebarModule,\n MenuRoutingModule,\n PageHeaderModule,\n RightSidebarModule,\n TopbarModule,\n} from '@valtimo/components';\nimport {RouterModule} from '@angular/router';\nimport {LayoutPublicComponent} from './layout-public/layout-public.component';\nimport {LayoutInternalComponent} from './layout-internal/layout-internal.component';\nimport {CommonModule} from '@angular/common';\nimport {PromptModule} from '@valtimo/user-interface';\n\n@NgModule({\n declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],\n imports: [\n RouterModule,\n MenuRoutingModule,\n TopbarModule,\n LeftSidebarModule,\n RightSidebarModule,\n PageHeaderModule,\n AlertModule,\n CommonModule,\n PromptModule,\n ],\n exports: [LayoutComponent],\n})\nexport class LayoutModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of layout\n */\n\nexport * from './lib/layout.service';\nexport * from './lib/layout.component';\nexport * from './lib/layout.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.LayoutService","i4","i2","i3.LayoutPublicComponent","i4.LayoutInternalComponent"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAOU,aAAa,CAAA;AAGxB,IAAA,WAAA,GAAA;AAFQ,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAEX;AAEhB,IAAA,IAAW,YAAY,GAAA;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAEM,gBAAgB,GAAA;AACrB,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;KACpC;;2GAXU,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,aAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA;4FAEP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACpBD;;;;;;;;;;;;;;AAcG;MASU,qBAAqB,CAAA;AAChC,IAAA,WAAA,GAAA,GAAgB;AAEhB,IAAA,QAAQ,MAAK;;mHAHF,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,6DCvBlC,oxBAoBA,EAAA,MAAA,EAAA,CAAA,kjCAAA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EAAA,YAAY,iBAdR,eAAe,EAAE,qBAAqB,EAAE,uBAAuB,aAE5E,YAAY;QACZ,iBAAiB;QACjB,YAAY;QACZ,iBAAiB;QACjB,kBAAkB;QAClB,gBAAgB;QAChB,WAAW;QACX,YAAY;QACZ,YAAY,aAEJ,eAAe,CAAA,EAAA,CAAA,CAAA;AAEd,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAZrB,YAAY;QACZ,iBAAiB;QACjB,YAAY;QACZ,iBAAiB;QACjB,kBAAkB;QAClB,gBAAgB;QAChB,WAAW;QACX,YAAY;QACZ,YAAY,CAAA,EAAA,CAAA,CAAA;4FAIH,YAAY,EAAA,UAAA,EAAA,CAAA;kBAfxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,eAAe,EAAE,qBAAqB,EAAE,uBAAuB,CAAC;AAC/E,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,kBAAkB;wBAClB,gBAAgB;wBAChB,WAAW;wBACX,YAAY;wBACZ,YAAY;AACb,qBAAA;oBACD,OAAO,EAAE,CAAC,eAAe,CAAC;iBAC3B,CAAA;;;AC9CD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, NgModule } from '@angular/core';
2
+ import { Injectable, Component, ViewChild, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/router';
4
4
  import { NavigationEnd, RouterModule } from '@angular/router';
5
5
  import { filter } from 'rxjs/operators';
@@ -99,14 +99,18 @@ class LayoutInternalComponent {
99
99
  }
100
100
  ngAfterViewInit() {
101
101
  App.init();
102
+ this.shellService.setContentElement(this.mainContentRef.nativeElement);
102
103
  }
103
104
  }
104
105
  LayoutInternalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LayoutInternalComponent, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i2.UserInterfaceService }, { token: i3.ShellService }], target: i0.ɵɵFactoryTarget.Component });
105
- LayoutInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: LayoutInternalComponent, selector: "valtimo-layout-internal", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"], dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.TopbarComponent, selector: "valtimo-topbar" }, { kind: "component", type: i3.LeftSidebarComponent, selector: "valtimo-left-sidebar" }, { kind: "component", type: i3.RightSidebarComponent, selector: "valtimo-right-sidebar" }, { kind: "component", type: i3.PageHeaderComponent, selector: "valtimo-page-header" }, { kind: "component", type: i3.AlertComponent, selector: "valtimo-alert" }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.PromptComponent, selector: "v-prompt", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
106
+ LayoutInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: LayoutInternalComponent, selector: "valtimo-layout-internal", viewQueries: [{ propertyName: "mainContentRef", first: true, predicate: ["mainContent"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"], dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.TopbarComponent, selector: "valtimo-topbar" }, { kind: "component", type: i3.LeftSidebarComponent, selector: "valtimo-left-sidebar" }, { kind: "component", type: i3.RightSidebarComponent, selector: "valtimo-right-sidebar" }, { kind: "component", type: i3.PageHeaderComponent, selector: "valtimo-page-header" }, { kind: "component", type: i3.AlertComponent, selector: "valtimo-alert" }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.PromptComponent, selector: "v-prompt", inputs: ["appearingDelayMs", "maxWidthPx"], outputs: ["closeEvent"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
106
107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LayoutInternalComponent, decorators: [{
107
108
  type: Component,
108
- args: [{ selector: 'valtimo-layout-internal', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"] }]
109
- }], ctorParameters: function () { return [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i2.UserInterfaceService }, { type: i3.ShellService }]; } });
109
+ args: [{ selector: 'valtimo-layout-internal', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */@media screen and (max-width: 767px){.be-content{margin-left:0!important}}@media only screen and (min-width: 1056px){.cds--content--sidebar{padding-left:18rem}}\n"] }]
110
+ }], ctorParameters: function () { return [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i2.UserInterfaceService }, { type: i3.ShellService }]; }, propDecorators: { mainContentRef: [{
111
+ type: ViewChild,
112
+ args: ['mainContent']
113
+ }] } });
110
114
 
111
115
  /*
112
116
  * Copyright 2015-2020 Ritense BV, the Netherlands.
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-layout.mjs","sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.html","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.html","../../../../projects/valtimo/layout/src/lib/layout.component.ts","../../../../projects/valtimo/layout/src/lib/layout.component.html","../../../../projects/valtimo/layout/src/lib/layout.module.ts","../../../../projects/valtimo/layout/src/public_api.ts","../../../../projects/valtimo/layout/src/valtimo-layout.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LayoutService {\n private fullscreen = false;\n\n constructor() {}\n\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-layout-public',\n templateUrl: './layout-public.component.html',\n styleUrls: ['./layout-public.component.scss'],\n})\nexport class LayoutPublicComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"public-page-content\">\n <img src=\"assets/logo.svg\" class=\"logo\" />\n <router-outlet></router-outlet>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, Renderer2} from '@angular/core';\nimport {LayoutService} from '../layout.service';\nimport {UserInterfaceService} from '@valtimo/user-interface';\nimport {ShellService} from '@valtimo/components';\n\n// eslint-disable-next-line no-var\ndeclare var App;\n\n@Component({\n selector: 'valtimo-layout-internal',\n templateUrl: './layout-internal.component.html',\n styleUrls: ['./layout-internal.component.scss'],\n})\nexport class LayoutInternalComponent implements AfterViewInit {\n readonly showPageHeader$ = this.userInterfaceService.showPageHeader$;\n readonly sideBarExpanded$ = this.shellService.sideBarExpanded$;\n\n constructor(\n public layoutService: LayoutService,\n private renderer: Renderer2,\n private readonly userInterfaceService: UserInterfaceService,\n private readonly shellService: ShellService\n ) {\n this.renderer.addClass(document.body, 'be-animate');\n }\n\n ngAfterViewInit(): void {\n App.init();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main class=\"cds--content\" [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\">\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, NavigationEnd, Router} from '@angular/router';\nimport {filter} from 'rxjs/operators';\nimport {Subscription} from 'rxjs';\n\n// eslint-disable-next-line no-var\ndeclare var App: any;\n\n@Component({\n selector: 'valtimo-layout',\n templateUrl: './layout.component.html',\n})\nexport class LayoutComponent implements OnInit, OnDestroy {\n public layoutType: string | null = null;\n private routerSub = Subscription.EMPTY;\n private defaultLayout = 'internal';\n\n constructor(private router: Router, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.routerSub = this.router.events\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => {\n const layout = this.route.snapshot.firstChild.data.layout;\n this.layoutType = layout ? layout : this.defaultLayout;\n });\n }\n\n ngOnDestroy() {\n this.routerSub.unsubscribe();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-layout-public *ngIf=\"layoutType === 'public'\"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf=\"layoutType === 'internal'\"></valtimo-layout-internal>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {LayoutComponent} from './layout.component';\nimport {\n AlertModule,\n LeftSidebarModule,\n MenuRoutingModule,\n PageHeaderModule,\n RightSidebarModule,\n TopbarModule,\n} from '@valtimo/components';\nimport {RouterModule} from '@angular/router';\nimport {LayoutPublicComponent} from './layout-public/layout-public.component';\nimport {LayoutInternalComponent} from './layout-internal/layout-internal.component';\nimport {CommonModule} from '@angular/common';\nimport {PromptModule} from '@valtimo/user-interface';\n\n@NgModule({\n declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],\n imports: [\n RouterModule,\n MenuRoutingModule,\n TopbarModule,\n LeftSidebarModule,\n RightSidebarModule,\n PageHeaderModule,\n AlertModule,\n CommonModule,\n PromptModule,\n ],\n exports: [LayoutComponent],\n})\nexport class LayoutModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of layout\n */\n\nexport * from './lib/layout.service';\nexport * from './lib/layout.component';\nexport * from './lib/layout.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.LayoutService","i4","i2","i3.LayoutPublicComponent","i4.LayoutInternalComponent"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAOU,aAAa,CAAA;AAGxB,IAAA,WAAA,GAAA;QAFQ,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAEX;AAEhB,IAAA,IAAW,YAAY,GAAA;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAEM,gBAAgB,GAAA;AACrB,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;KACpC;;2GAXU,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA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AE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,kBAAkB;wBAClB,gBAAgB;wBAChB,WAAW;wBACX,YAAY;wBACZ,YAAY;AACb,qBAAA;oBACD,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA,CAAA;;;AC9CD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
1
+ {"version":3,"file":"valtimo-layout.mjs","sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.html","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.html","../../../../projects/valtimo/layout/src/lib/layout.component.ts","../../../../projects/valtimo/layout/src/lib/layout.component.html","../../../../projects/valtimo/layout/src/lib/layout.module.ts","../../../../projects/valtimo/layout/src/public_api.ts","../../../../projects/valtimo/layout/src/valtimo-layout.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LayoutService {\n private fullscreen = false;\n\n constructor() {}\n\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-layout-public',\n templateUrl: './layout-public.component.html',\n styleUrls: ['./layout-public.component.scss'],\n})\nexport class LayoutPublicComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"public-page-content\">\n <img src=\"assets/logo.svg\" class=\"logo\" />\n <router-outlet></router-outlet>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, Renderer2, ViewChild} from '@angular/core';\nimport {LayoutService} from '../layout.service';\nimport {UserInterfaceService} from '@valtimo/user-interface';\nimport {ShellService} from '@valtimo/components';\n\n// eslint-disable-next-line no-var\ndeclare var App;\n\n@Component({\n selector: 'valtimo-layout-internal',\n templateUrl: './layout-internal.component.html',\n styleUrls: ['./layout-internal.component.scss'],\n})\nexport class LayoutInternalComponent implements AfterViewInit {\n @ViewChild('mainContent') mainContentRef: ElementRef;\n\n readonly showPageHeader$ = this.userInterfaceService.showPageHeader$;\n readonly sideBarExpanded$ = this.shellService.sideBarExpanded$;\n\n constructor(\n public layoutService: LayoutService,\n private readonly renderer: Renderer2,\n private readonly userInterfaceService: UserInterfaceService,\n private readonly shellService: ShellService\n ) {\n this.renderer.addClass(document.body, 'be-animate');\n }\n\n ngAfterViewInit(): void {\n App.init();\n this.shellService.setContentElement(this.mainContentRef.nativeElement);\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-topbar></valtimo-topbar>\n<main\n class=\"cds--content\"\n [ngClass]=\"{'cds--content--sidebar': sideBarExpanded$ | async}\"\n #mainContent\n>\n <valtimo-left-sidebar [hidden]=\"layoutService.isFullscreen\"></valtimo-left-sidebar>\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <v-prompt></v-prompt>\n</main>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, NavigationEnd, Router} from '@angular/router';\nimport {filter} from 'rxjs/operators';\nimport {Subscription} from 'rxjs';\n\n// eslint-disable-next-line no-var\ndeclare var App: any;\n\n@Component({\n selector: 'valtimo-layout',\n templateUrl: './layout.component.html',\n})\nexport class LayoutComponent implements OnInit, OnDestroy {\n public layoutType: string | null = null;\n private routerSub = Subscription.EMPTY;\n private defaultLayout = 'internal';\n\n constructor(private router: Router, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.routerSub = this.router.events\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => {\n const layout = this.route.snapshot.firstChild.data.layout;\n this.layoutType = layout ? layout : this.defaultLayout;\n });\n }\n\n ngOnDestroy() {\n this.routerSub.unsubscribe();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-layout-public *ngIf=\"layoutType === 'public'\"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf=\"layoutType === 'internal'\"></valtimo-layout-internal>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {LayoutComponent} from './layout.component';\nimport {\n AlertModule,\n LeftSidebarModule,\n MenuRoutingModule,\n PageHeaderModule,\n RightSidebarModule,\n TopbarModule,\n} from '@valtimo/components';\nimport {RouterModule} from '@angular/router';\nimport {LayoutPublicComponent} from './layout-public/layout-public.component';\nimport {LayoutInternalComponent} from './layout-internal/layout-internal.component';\nimport {CommonModule} from '@angular/common';\nimport {PromptModule} from '@valtimo/user-interface';\n\n@NgModule({\n declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],\n imports: [\n RouterModule,\n MenuRoutingModule,\n TopbarModule,\n LeftSidebarModule,\n RightSidebarModule,\n PageHeaderModule,\n AlertModule,\n CommonModule,\n PromptModule,\n ],\n exports: [LayoutComponent],\n})\nexport class LayoutModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of layout\n */\n\nexport * from './lib/layout.service';\nexport * from './lib/layout.component';\nexport * from './lib/layout.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.LayoutService","i4","i2","i3.LayoutPublicComponent","i4.LayoutInternalComponent"],"mappings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QACX,YAAY;AACZ,QAAA,YAAY,aAEJ,eAAe,CAAA,EAAA,CAAA,CAAA;AAEd,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAZrB,YAAY;QACZ,iBAAiB;QACjB,YAAY;QACZ,iBAAiB;QACjB,kBAAkB;QAClB,gBAAgB;QAChB,WAAW;QACX,YAAY;QACZ,YAAY,CAAA,EAAA,CAAA,CAAA;4FAIH,YAAY,EAAA,UAAA,EAAA,CAAA;kBAfxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,eAAe,EAAE,qBAAqB,EAAE,uBAAuB,CAAC;AAC/E,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,kBAAkB;wBAClB,gBAAgB;wBAChB,WAAW;wBACX,YAAY;wBACZ,YAAY;AACb,qBAAA;oBACD,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA,CAAA;;;AC9CD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
@@ -1,13 +1,14 @@
1
- import { AfterViewInit, Renderer2 } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
2
  import { LayoutService } from '../layout.service';
3
3
  import { UserInterfaceService } from '@valtimo/user-interface';
4
4
  import { ShellService } from '@valtimo/components';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class LayoutInternalComponent implements AfterViewInit {
7
7
  layoutService: LayoutService;
8
- private renderer;
8
+ private readonly renderer;
9
9
  private readonly userInterfaceService;
10
10
  private readonly shellService;
11
+ mainContentRef: ElementRef;
11
12
  readonly showPageHeader$: import("rxjs").Observable<boolean>;
12
13
  readonly sideBarExpanded$: import("rxjs").Observable<boolean>;
13
14
  constructor(layoutService: LayoutService, renderer: Renderer2, userInterfaceService: UserInterfaceService, shellService: ShellService);
@@ -1 +1 @@
1
- {"version":3,"file":"layout-internal.component.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,aAAa,EAAa,SAAS,EAAC,MAAM,eAAe,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;;AAKjD,qBAKa,uBAAwB,YAAW,aAAa;IAKlD,aAAa,EAAE,aAAa;IACnC,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAP/B,QAAQ,CAAC,eAAe,qCAA6C;IACrE,QAAQ,CAAC,gBAAgB,qCAAsC;gBAGtD,aAAa,EAAE,aAAa,EAC3B,QAAQ,EAAE,SAAS,EACV,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,YAAY;IAK7C,eAAe,IAAI,IAAI;yCAbZ,uBAAuB;2CAAvB,uBAAuB;CAgBnC"}
1
+ {"version":3,"file":"layout-internal.component.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,aAAa,EAAa,UAAU,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AACzF,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;;AAKjD,qBAKa,uBAAwB,YAAW,aAAa;IAOlD,aAAa,EAAE,aAAa;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY;IATL,cAAc,EAAE,UAAU,CAAC;IAErD,QAAQ,CAAC,eAAe,qCAA6C;IACrE,QAAQ,CAAC,gBAAgB,qCAAsC;gBAGtD,aAAa,EAAE,aAAa,EAClB,QAAQ,EAAE,SAAS,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,YAAY;IAK7C,eAAe,IAAI,IAAI;yCAfZ,uBAAuB;2CAAvB,uBAAuB;CAmBnC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/layout",
3
3
  "license": "EUPL-1.2",
4
- "version": "10.2.1",
4
+ "version": "10.4.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^14.2.5",
7
7
  "@angular/core": "^14.2.5"