@valtimo/layout 4.15.3-next-main.14 → 4.15.3-next-main.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/assets/lib/roboto/Roboto-Black.eot +0 -0
  2. package/assets/lib/roboto/Roboto-Black.svg +0 -0
  3. package/assets/lib/roboto/Roboto-Black.ttf +0 -0
  4. package/assets/lib/roboto/Roboto-Black.woff +0 -0
  5. package/assets/lib/roboto/Roboto-BlackItalic.eot +0 -0
  6. package/assets/lib/roboto/Roboto-BlackItalic.svg +0 -0
  7. package/assets/lib/roboto/Roboto-BlackItalic.ttf +0 -0
  8. package/assets/lib/roboto/Roboto-BlackItalic.woff +0 -0
  9. package/assets/lib/roboto/Roboto-Bold.eot +0 -0
  10. package/assets/lib/roboto/Roboto-Bold.svg +0 -0
  11. package/assets/lib/roboto/Roboto-Bold.ttf +0 -0
  12. package/assets/lib/roboto/Roboto-Bold.woff +0 -0
  13. package/assets/lib/roboto/Roboto-BoldItalic.eot +0 -0
  14. package/assets/lib/roboto/Roboto-BoldItalic.svg +0 -0
  15. package/assets/lib/roboto/Roboto-BoldItalic.ttf +0 -0
  16. package/assets/lib/roboto/Roboto-BoldItalic.woff +0 -0
  17. package/assets/lib/roboto/Roboto-Light.eot +0 -0
  18. package/assets/lib/roboto/Roboto-Light.svg +0 -0
  19. package/assets/lib/roboto/Roboto-Light.ttf +0 -0
  20. package/assets/lib/roboto/Roboto-Light.woff +0 -0
  21. package/assets/lib/roboto/Roboto-LightItalic.eot +0 -0
  22. package/assets/lib/roboto/Roboto-LightItalic.svg +0 -0
  23. package/assets/lib/roboto/Roboto-LightItalic.ttf +0 -0
  24. package/assets/lib/roboto/Roboto-LightItalic.woff +0 -0
  25. package/assets/lib/roboto/Roboto-Medium.eot +0 -0
  26. package/assets/lib/roboto/Roboto-Medium.svg +0 -0
  27. package/assets/lib/roboto/Roboto-Medium.ttf +0 -0
  28. package/assets/lib/roboto/Roboto-Medium.woff +0 -0
  29. package/assets/lib/roboto/Roboto-MediumItalic.eot +0 -0
  30. package/assets/lib/roboto/Roboto-MediumItalic.svg +0 -0
  31. package/assets/lib/roboto/Roboto-MediumItalic.ttf +0 -0
  32. package/assets/lib/roboto/Roboto-MediumItalic.woff +0 -0
  33. package/assets/lib/roboto/Roboto-Regular.eot +0 -0
  34. package/assets/lib/roboto/Roboto-Regular.svg +0 -0
  35. package/assets/lib/roboto/Roboto-Regular.ttf +0 -0
  36. package/assets/lib/roboto/Roboto-Regular.woff +0 -0
  37. package/assets/lib/roboto/Roboto-RegularItalic.eot +0 -0
  38. package/assets/lib/roboto/Roboto-RegularItalic.svg +0 -0
  39. package/assets/lib/roboto/Roboto-RegularItalic.ttf +0 -0
  40. package/assets/lib/roboto/Roboto-RegularItalic.woff +0 -0
  41. package/assets/lib/roboto/Roboto-Thin.eot +0 -0
  42. package/assets/lib/roboto/Roboto-Thin.svg +0 -0
  43. package/assets/lib/roboto/Roboto-Thin.ttf +0 -0
  44. package/assets/lib/roboto/Roboto-Thin.woff +0 -0
  45. package/assets/lib/roboto/Roboto-ThinItalic.eot +0 -0
  46. package/assets/lib/roboto/Roboto-ThinItalic.svg +0 -0
  47. package/assets/lib/roboto/Roboto-ThinItalic.ttf +0 -0
  48. package/assets/lib/roboto/Roboto-ThinItalic.woff +0 -0
  49. package/bundles/valtimo-layout.umd.js +213 -213
  50. package/esm2015/lib/layout-internal/layout-internal.component.js +54 -54
  51. package/esm2015/lib/layout-public/layout-public.component.js +29 -29
  52. package/esm2015/lib/layout.component.js +47 -47
  53. package/esm2015/lib/layout.module.js +40 -40
  54. package/esm2015/lib/layout.service.js +35 -35
  55. package/esm2015/public_api.js +21 -21
  56. package/esm2015/valtimo-layout.js +6 -6
  57. package/fesm2015/valtimo-layout.js +199 -199
  58. package/lib/layout-internal/layout-internal.component.d.ts +14 -14
  59. package/lib/layout-public/layout-public.component.d.ts +5 -5
  60. package/lib/layout.component.d.ts +12 -12
  61. package/lib/layout.module.d.ts +2 -2
  62. package/lib/layout.service.d.ts +6 -6
  63. package/package.json +1 -1
  64. package/public_api.d.ts +3 -3
  65. package/valtimo-layout.d.ts +6 -6
@@ -5,217 +5,217 @@ import { Subscription, BehaviorSubject } from 'rxjs';
5
5
  import { MenuRoutingModule, TopbarModule, LeftSidebarModule, RightSidebarModule, PageHeaderModule, AlertModule } from '@valtimo/components';
6
6
  import { CommonModule } from '@angular/common';
7
7
 
8
- /*
9
- * Copyright 2015-2020 Ritense BV, the Netherlands.
10
- *
11
- * Licensed under EUPL, Version 1.2 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" basis,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- class LayoutService {
24
- constructor() {
25
- this.fullscreen = false;
26
- }
27
- get isFullscreen() {
28
- return this.fullscreen;
29
- }
30
- toggleFullscreen() {
31
- this.fullscreen = !this.fullscreen;
32
- }
33
- }
34
- LayoutService.ɵprov = ɵɵdefineInjectable({ factory: function LayoutService_Factory() { return new LayoutService(); }, token: LayoutService, providedIn: "root" });
35
- LayoutService.decorators = [
36
- { type: Injectable, args: [{
37
- providedIn: 'root'
38
- },] }
39
- ];
8
+ /*
9
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
10
+ *
11
+ * Licensed under EUPL, Version 1.2 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" basis,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License.
22
+ */
23
+ class LayoutService {
24
+ constructor() {
25
+ this.fullscreen = false;
26
+ }
27
+ get isFullscreen() {
28
+ return this.fullscreen;
29
+ }
30
+ toggleFullscreen() {
31
+ this.fullscreen = !this.fullscreen;
32
+ }
33
+ }
34
+ LayoutService.ɵprov = ɵɵdefineInjectable({ factory: function LayoutService_Factory() { return new LayoutService(); }, token: LayoutService, providedIn: "root" });
35
+ LayoutService.decorators = [
36
+ { type: Injectable, args: [{
37
+ providedIn: 'root'
38
+ },] }
39
+ ];
40
40
  LayoutService.ctorParameters = () => [];
41
41
 
42
- /*
43
- * Copyright 2015-2020 Ritense BV, the Netherlands.
44
- *
45
- * Licensed under EUPL, Version 1.2 (the "License");
46
- * you may not use this file except in compliance with the License.
47
- * You may obtain a copy of the License at
48
- *
49
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
50
- *
51
- * Unless required by applicable law or agreed to in writing, software
52
- * distributed under the License is distributed on an "AS IS" basis,
53
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
- * See the License for the specific language governing permissions and
55
- * limitations under the License.
56
- */
57
- class LayoutComponent {
58
- constructor(router, route) {
59
- this.router = router;
60
- this.route = route;
61
- this.layoutType = null;
62
- this.routerSub = Subscription.EMPTY;
63
- this.defaultLayout = 'internal';
64
- }
65
- ngOnInit() {
66
- this.routerSub = this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => {
67
- const layout = this.route.snapshot.firstChild.data.layout;
68
- this.layoutType = layout ? layout : this.defaultLayout;
69
- });
70
- }
71
- ngOnDestroy() {
72
- this.routerSub.unsubscribe();
73
- }
74
- }
75
- LayoutComponent.decorators = [
76
- { type: Component, args: [{
77
- selector: 'valtimo-layout',
78
- 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-layout-public *ngIf=\"layoutType === 'public'\"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf=\"layoutType === 'internal'\"></valtimo-layout-internal>\n"
79
- },] }
80
- ];
81
- LayoutComponent.ctorParameters = () => [
82
- { type: Router },
83
- { type: ActivatedRoute }
42
+ /*
43
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
44
+ *
45
+ * Licensed under EUPL, Version 1.2 (the "License");
46
+ * you may not use this file except in compliance with the License.
47
+ * You may obtain a copy of the License at
48
+ *
49
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
50
+ *
51
+ * Unless required by applicable law or agreed to in writing, software
52
+ * distributed under the License is distributed on an "AS IS" basis,
53
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
+ * See the License for the specific language governing permissions and
55
+ * limitations under the License.
56
+ */
57
+ class LayoutComponent {
58
+ constructor(router, route) {
59
+ this.router = router;
60
+ this.route = route;
61
+ this.layoutType = null;
62
+ this.routerSub = Subscription.EMPTY;
63
+ this.defaultLayout = 'internal';
64
+ }
65
+ ngOnInit() {
66
+ this.routerSub = this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => {
67
+ const layout = this.route.snapshot.firstChild.data.layout;
68
+ this.layoutType = layout ? layout : this.defaultLayout;
69
+ });
70
+ }
71
+ ngOnDestroy() {
72
+ this.routerSub.unsubscribe();
73
+ }
74
+ }
75
+ LayoutComponent.decorators = [
76
+ { type: Component, args: [{
77
+ selector: 'valtimo-layout',
78
+ 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-layout-public *ngIf=\"layoutType === 'public'\"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf=\"layoutType === 'internal'\"></valtimo-layout-internal>\n"
79
+ },] }
80
+ ];
81
+ LayoutComponent.ctorParameters = () => [
82
+ { type: Router },
83
+ { type: ActivatedRoute }
84
84
  ];
85
85
 
86
- /*
87
- * Copyright 2015-2020 Ritense BV, the Netherlands.
88
- *
89
- * Licensed under EUPL, Version 1.2 (the "License");
90
- * you may not use this file except in compliance with the License.
91
- * You may obtain a copy of the License at
92
- *
93
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
94
- *
95
- * Unless required by applicable law or agreed to in writing, software
96
- * distributed under the License is distributed on an "AS IS" basis,
97
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98
- * See the License for the specific language governing permissions and
99
- * limitations under the License.
100
- */
101
- class LayoutPublicComponent {
102
- constructor() { }
103
- ngOnInit() {
104
- }
105
- }
106
- LayoutPublicComponent.decorators = [
107
- { type: Component, args: [{
108
- selector: 'valtimo-layout-public',
109
- 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<div class=\"public-page-content\">\n <img src=\"assets/logo.svg\" class=\"logo\">\n <router-outlet></router-outlet>\n</div>\n",
110
- 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 */body{background-color:#eee}.public-page-content{background-color:#fff;border:1px solid #dee2e6;margin:60px auto;padding:0 30px 30px}.public-page-content .logo{display:block;margin:30px auto;width:25%}@media (min-width:768px){.public-page-content{width:50%}}@media (max-width:767px) and (min-width:576px){.public-page-content{width:75%}}@media (max-width:575px){.public-page-content{width:95%}.public-page-content .logo{width:50%}}"]
111
- },] }
112
- ];
86
+ /*
87
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
88
+ *
89
+ * Licensed under EUPL, Version 1.2 (the "License");
90
+ * you may not use this file except in compliance with the License.
91
+ * You may obtain a copy of the License at
92
+ *
93
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
94
+ *
95
+ * Unless required by applicable law or agreed to in writing, software
96
+ * distributed under the License is distributed on an "AS IS" basis,
97
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98
+ * See the License for the specific language governing permissions and
99
+ * limitations under the License.
100
+ */
101
+ class LayoutPublicComponent {
102
+ constructor() { }
103
+ ngOnInit() {
104
+ }
105
+ }
106
+ LayoutPublicComponent.decorators = [
107
+ { type: Component, args: [{
108
+ selector: 'valtimo-layout-public',
109
+ 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<div class=\"public-page-content\">\n <img src=\"assets/logo.svg\" class=\"logo\">\n <router-outlet></router-outlet>\n</div>\n",
110
+ 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 */body{background-color:#eee}.public-page-content{background-color:#fff;border:1px solid #dee2e6;margin:60px auto;padding:0 30px 30px}.public-page-content .logo{display:block;margin:30px auto;width:25%}@media (min-width:768px){.public-page-content{width:50%}}@media (max-width:767px) and (min-width:576px){.public-page-content{width:75%}}@media (max-width:575px){.public-page-content{width:95%}.public-page-content .logo{width:50%}}"]
111
+ },] }
112
+ ];
113
113
  LayoutPublicComponent.ctorParameters = () => [];
114
114
 
115
- /*
116
- * Copyright 2015-2020 Ritense BV, the Netherlands.
117
- *
118
- * Licensed under EUPL, Version 1.2 (the "License");
119
- * you may not use this file except in compliance with the License.
120
- * You may obtain a copy of the License at
121
- *
122
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
123
- *
124
- * Unless required by applicable law or agreed to in writing, software
125
- * distributed under the License is distributed on an "AS IS" basis,
126
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127
- * See the License for the specific language governing permissions and
128
- * limitations under the License.
129
- */
130
- class LayoutInternalComponent {
131
- constructor(layoutService, renderer) {
132
- this.layoutService = layoutService;
133
- this.renderer = renderer;
134
- this.menuOpen$ = new BehaviorSubject(true);
135
- this.menuWidth$ = new BehaviorSubject(undefined);
136
- this.observer = new MutationObserver((e) => this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')));
137
- this.renderer.addClass(document.body, 'be-animate');
138
- }
139
- ngAfterViewInit() {
140
- App.init();
141
- this.observer.observe(this.wrapperRef.nativeElement, {
142
- attributes: true,
143
- attributeFilter: ['class'],
144
- childList: false,
145
- characterData: false
146
- });
147
- }
148
- menuWidthChanged(width) {
149
- this.menuWidth$.next(width);
150
- }
151
- }
152
- LayoutInternalComponent.decorators = [
153
- { type: Component, args: [{
154
- selector: 'valtimo-layout-internal',
155
- 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<div class=\"be-wrapper be-fixed-sidebar be-collapsible-sidebar\" #wrapper>\n <valtimo-topbar></valtimo-topbar>\n <valtimo-left-sidebar\n [hidden]=\"layoutService.isFullscreen\"\n [menuIsOpen]=\"menuOpen$ | async\"\n (menuWidthChanged)=\"menuWidthChanged($event)\"\n ></valtimo-left-sidebar>\n <div\n [ngClass]=\"{'be-content': !layoutService.isFullscreen}\"\n [style.marginLeft.px]=\"(menuOpen$ | async) && !layoutService.isFullscreen ? (menuWidth$ | async) : null\"\n >\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n </div>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <!--<valtimo-session-expired-popup *ngIf=\"auth0Service.sessionExpired\"></valtimo-session-expired-popup>-->\n</div>\n",
156
- 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}}"]
157
- },] }
158
- ];
159
- LayoutInternalComponent.ctorParameters = () => [
160
- { type: LayoutService },
161
- { type: Renderer2 }
162
- ];
163
- LayoutInternalComponent.propDecorators = {
164
- wrapperRef: [{ type: ViewChild, args: ['wrapper',] }]
115
+ /*
116
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
117
+ *
118
+ * Licensed under EUPL, Version 1.2 (the "License");
119
+ * you may not use this file except in compliance with the License.
120
+ * You may obtain a copy of the License at
121
+ *
122
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
123
+ *
124
+ * Unless required by applicable law or agreed to in writing, software
125
+ * distributed under the License is distributed on an "AS IS" basis,
126
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127
+ * See the License for the specific language governing permissions and
128
+ * limitations under the License.
129
+ */
130
+ class LayoutInternalComponent {
131
+ constructor(layoutService, renderer) {
132
+ this.layoutService = layoutService;
133
+ this.renderer = renderer;
134
+ this.menuOpen$ = new BehaviorSubject(true);
135
+ this.menuWidth$ = new BehaviorSubject(undefined);
136
+ this.observer = new MutationObserver((e) => this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')));
137
+ this.renderer.addClass(document.body, 'be-animate');
138
+ }
139
+ ngAfterViewInit() {
140
+ App.init();
141
+ this.observer.observe(this.wrapperRef.nativeElement, {
142
+ attributes: true,
143
+ attributeFilter: ['class'],
144
+ childList: false,
145
+ characterData: false
146
+ });
147
+ }
148
+ menuWidthChanged(width) {
149
+ this.menuWidth$.next(width);
150
+ }
151
+ }
152
+ LayoutInternalComponent.decorators = [
153
+ { type: Component, args: [{
154
+ selector: 'valtimo-layout-internal',
155
+ 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<div class=\"be-wrapper be-fixed-sidebar be-collapsible-sidebar\" #wrapper>\n <valtimo-topbar></valtimo-topbar>\n <valtimo-left-sidebar\n [hidden]=\"layoutService.isFullscreen\"\n [menuIsOpen]=\"menuOpen$ | async\"\n (menuWidthChanged)=\"menuWidthChanged($event)\"\n ></valtimo-left-sidebar>\n <div\n [ngClass]=\"{'be-content': !layoutService.isFullscreen}\"\n [style.marginLeft.px]=\"(menuOpen$ | async) && !layoutService.isFullscreen ? (menuWidth$ | async) : null\"\n >\n <valtimo-alert></valtimo-alert>\n <valtimo-page-header [hidden]=\"layoutService.isFullscreen\"></valtimo-page-header>\n <router-outlet></router-outlet>\n </div>\n <valtimo-right-sidebar></valtimo-right-sidebar>\n <!--<valtimo-session-expired-popup *ngIf=\"auth0Service.sessionExpired\"></valtimo-session-expired-popup>-->\n</div>\n",
156
+ 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}}"]
157
+ },] }
158
+ ];
159
+ LayoutInternalComponent.ctorParameters = () => [
160
+ { type: LayoutService },
161
+ { type: Renderer2 }
162
+ ];
163
+ LayoutInternalComponent.propDecorators = {
164
+ wrapperRef: [{ type: ViewChild, args: ['wrapper',] }]
165
165
  };
166
166
 
167
- /*
168
- * Copyright 2015-2020 Ritense BV, the Netherlands.
169
- *
170
- * Licensed under EUPL, Version 1.2 (the "License");
171
- * you may not use this file except in compliance with the License.
172
- * You may obtain a copy of the License at
173
- *
174
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
175
- *
176
- * Unless required by applicable law or agreed to in writing, software
177
- * distributed under the License is distributed on an "AS IS" basis,
178
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
- * See the License for the specific language governing permissions and
180
- * limitations under the License.
181
- */
182
- class LayoutModule {
183
- }
184
- LayoutModule.decorators = [
185
- { type: NgModule, args: [{
186
- declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
187
- imports: [
188
- RouterModule,
189
- MenuRoutingModule,
190
- TopbarModule,
191
- LeftSidebarModule,
192
- RightSidebarModule,
193
- PageHeaderModule,
194
- AlertModule,
195
- CommonModule
196
- ],
197
- exports: [LayoutComponent]
198
- },] }
167
+ /*
168
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
169
+ *
170
+ * Licensed under EUPL, Version 1.2 (the "License");
171
+ * you may not use this file except in compliance with the License.
172
+ * You may obtain a copy of the License at
173
+ *
174
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
175
+ *
176
+ * Unless required by applicable law or agreed to in writing, software
177
+ * distributed under the License is distributed on an "AS IS" basis,
178
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ * See the License for the specific language governing permissions and
180
+ * limitations under the License.
181
+ */
182
+ class LayoutModule {
183
+ }
184
+ LayoutModule.decorators = [
185
+ { type: NgModule, args: [{
186
+ declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
187
+ imports: [
188
+ RouterModule,
189
+ MenuRoutingModule,
190
+ TopbarModule,
191
+ LeftSidebarModule,
192
+ RightSidebarModule,
193
+ PageHeaderModule,
194
+ AlertModule,
195
+ CommonModule
196
+ ],
197
+ exports: [LayoutComponent]
198
+ },] }
199
199
  ];
200
200
 
201
- /*
202
- * Copyright 2015-2020 Ritense BV, the Netherlands.
203
- *
204
- * Licensed under EUPL, Version 1.2 (the "License");
205
- * you may not use this file except in compliance with the License.
206
- * You may obtain a copy of the License at
207
- *
208
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
209
- *
210
- * Unless required by applicable law or agreed to in writing, software
211
- * distributed under the License is distributed on an "AS IS" basis,
212
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
- * See the License for the specific language governing permissions and
214
- * limitations under the License.
201
+ /*
202
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
203
+ *
204
+ * Licensed under EUPL, Version 1.2 (the "License");
205
+ * you may not use this file except in compliance with the License.
206
+ * You may obtain a copy of the License at
207
+ *
208
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
209
+ *
210
+ * Unless required by applicable law or agreed to in writing, software
211
+ * distributed under the License is distributed on an "AS IS" basis,
212
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
+ * See the License for the specific language governing permissions and
214
+ * limitations under the License.
215
215
  */
216
216
 
217
- /**
218
- * Generated bundle index. Do not edit.
217
+ /**
218
+ * Generated bundle index. Do not edit.
219
219
  */
220
220
 
221
221
  export { LayoutComponent, LayoutModule, LayoutService, LayoutPublicComponent as ɵa, LayoutInternalComponent as ɵb };
@@ -1,14 +1,14 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { LayoutService } from '../layout.service';
4
- export declare class LayoutInternalComponent implements AfterViewInit {
5
- layoutService: LayoutService;
6
- private renderer;
7
- wrapperRef: ElementRef;
8
- readonly menuOpen$: BehaviorSubject<boolean>;
9
- readonly menuWidth$: BehaviorSubject<number>;
10
- readonly observer: MutationObserver;
11
- constructor(layoutService: LayoutService, renderer: Renderer2);
12
- ngAfterViewInit(): void;
13
- menuWidthChanged(width: number): void;
14
- }
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { LayoutService } from '../layout.service';
4
+ export declare class LayoutInternalComponent implements AfterViewInit {
5
+ layoutService: LayoutService;
6
+ private renderer;
7
+ wrapperRef: ElementRef;
8
+ readonly menuOpen$: BehaviorSubject<boolean>;
9
+ readonly menuWidth$: BehaviorSubject<number>;
10
+ readonly observer: MutationObserver;
11
+ constructor(layoutService: LayoutService, renderer: Renderer2);
12
+ ngAfterViewInit(): void;
13
+ menuWidthChanged(width: number): void;
14
+ }
@@ -1,5 +1,5 @@
1
- import { OnInit } from '@angular/core';
2
- export declare class LayoutPublicComponent implements OnInit {
3
- constructor();
4
- ngOnInit(): void;
5
- }
1
+ import { OnInit } from '@angular/core';
2
+ export declare class LayoutPublicComponent implements OnInit {
3
+ constructor();
4
+ ngOnInit(): void;
5
+ }
@@ -1,12 +1,12 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- export declare class LayoutComponent implements OnInit, OnDestroy {
4
- private router;
5
- private route;
6
- layoutType: string | null;
7
- private routerSub;
8
- private defaultLayout;
9
- constructor(router: Router, route: ActivatedRoute);
10
- ngOnInit(): void;
11
- ngOnDestroy(): void;
12
- }
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ export declare class LayoutComponent implements OnInit, OnDestroy {
4
+ private router;
5
+ private route;
6
+ layoutType: string | null;
7
+ private routerSub;
8
+ private defaultLayout;
9
+ constructor(router: Router, route: ActivatedRoute);
10
+ ngOnInit(): void;
11
+ ngOnDestroy(): void;
12
+ }
@@ -1,2 +1,2 @@
1
- export declare class LayoutModule {
2
- }
1
+ export declare class LayoutModule {
2
+ }
@@ -1,6 +1,6 @@
1
- export declare class LayoutService {
2
- private fullscreen;
3
- constructor();
4
- get isFullscreen(): boolean;
5
- toggleFullscreen(): void;
6
- }
1
+ export declare class LayoutService {
2
+ private fullscreen;
3
+ constructor();
4
+ get isFullscreen(): boolean;
5
+ toggleFullscreen(): void;
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/layout",
3
3
  "license": "EUPL-1.2",
4
- "version": "4.15.3-next-main.14",
4
+ "version": "4.15.3-next-main.15",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^10.0.11",
7
7
  "@angular/core": "^10.0.11"
package/public_api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './lib/layout.service';
2
- export * from './lib/layout.component';
3
- export * from './lib/layout.module';
1
+ export * from './lib/layout.service';
2
+ export * from './lib/layout.component';
3
+ export * from './lib/layout.module';
@@ -1,6 +1,6 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
5
- export { LayoutInternalComponent as ɵb } from './lib/layout-internal/layout-internal.component';
6
- export { LayoutPublicComponent as ɵa } from './lib/layout-public/layout-public.component';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
+ export { LayoutInternalComponent as ɵb } from './lib/layout-internal/layout-internal.component';
6
+ export { LayoutPublicComponent as ɵa } from './lib/layout-public/layout-public.component';