@valtimo/layout 4.15.3-next-main.16 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/lib/roboto/Roboto-Black.eot +0 -0
- package/assets/lib/roboto/Roboto-Black.svg +0 -0
- package/assets/lib/roboto/Roboto-Black.ttf +0 -0
- package/assets/lib/roboto/Roboto-Black.woff +0 -0
- package/assets/lib/roboto/Roboto-BlackItalic.eot +0 -0
- package/assets/lib/roboto/Roboto-BlackItalic.svg +0 -0
- package/assets/lib/roboto/Roboto-BlackItalic.ttf +0 -0
- package/assets/lib/roboto/Roboto-BlackItalic.woff +0 -0
- package/assets/lib/roboto/Roboto-Bold.eot +0 -0
- package/assets/lib/roboto/Roboto-Bold.svg +0 -0
- package/assets/lib/roboto/Roboto-Bold.ttf +0 -0
- package/assets/lib/roboto/Roboto-Bold.woff +0 -0
- package/assets/lib/roboto/Roboto-BoldItalic.eot +0 -0
- package/assets/lib/roboto/Roboto-BoldItalic.svg +0 -0
- package/assets/lib/roboto/Roboto-BoldItalic.ttf +0 -0
- package/assets/lib/roboto/Roboto-BoldItalic.woff +0 -0
- package/assets/lib/roboto/Roboto-Light.eot +0 -0
- package/assets/lib/roboto/Roboto-Light.svg +0 -0
- package/assets/lib/roboto/Roboto-Light.ttf +0 -0
- package/assets/lib/roboto/Roboto-Light.woff +0 -0
- package/assets/lib/roboto/Roboto-LightItalic.eot +0 -0
- package/assets/lib/roboto/Roboto-LightItalic.svg +0 -0
- package/assets/lib/roboto/Roboto-LightItalic.ttf +0 -0
- package/assets/lib/roboto/Roboto-LightItalic.woff +0 -0
- package/assets/lib/roboto/Roboto-Medium.eot +0 -0
- package/assets/lib/roboto/Roboto-Medium.svg +0 -0
- package/assets/lib/roboto/Roboto-Medium.ttf +0 -0
- package/assets/lib/roboto/Roboto-Medium.woff +0 -0
- package/assets/lib/roboto/Roboto-MediumItalic.eot +0 -0
- package/assets/lib/roboto/Roboto-MediumItalic.svg +0 -0
- package/assets/lib/roboto/Roboto-MediumItalic.ttf +0 -0
- package/assets/lib/roboto/Roboto-MediumItalic.woff +0 -0
- package/assets/lib/roboto/Roboto-Regular.eot +0 -0
- package/assets/lib/roboto/Roboto-Regular.svg +0 -0
- package/assets/lib/roboto/Roboto-Regular.ttf +0 -0
- package/assets/lib/roboto/Roboto-Regular.woff +0 -0
- package/assets/lib/roboto/Roboto-RegularItalic.eot +0 -0
- package/assets/lib/roboto/Roboto-RegularItalic.svg +0 -0
- package/assets/lib/roboto/Roboto-RegularItalic.ttf +0 -0
- package/assets/lib/roboto/Roboto-RegularItalic.woff +0 -0
- package/assets/lib/roboto/Roboto-Thin.eot +0 -0
- package/assets/lib/roboto/Roboto-Thin.svg +0 -0
- package/assets/lib/roboto/Roboto-Thin.ttf +0 -0
- package/assets/lib/roboto/Roboto-Thin.woff +0 -0
- package/assets/lib/roboto/Roboto-ThinItalic.eot +0 -0
- package/assets/lib/roboto/Roboto-ThinItalic.svg +0 -0
- package/assets/lib/roboto/Roboto-ThinItalic.ttf +0 -0
- package/assets/lib/roboto/Roboto-ThinItalic.woff +0 -0
- package/bundles/valtimo-layout.umd.js +214 -214
- package/esm2015/lib/layout-internal/layout-internal.component.js +55 -55
- package/esm2015/lib/layout-public/layout-public.component.js +29 -29
- package/esm2015/lib/layout.component.js +50 -50
- package/esm2015/lib/layout.module.js +41 -41
- package/esm2015/lib/layout.service.js +36 -36
- package/esm2015/public_api.js +22 -22
- package/esm2015/valtimo-layout.js +7 -7
- package/fesm2015/valtimo-layout.js +200 -200
- package/lib/layout-internal/layout-internal.component.d.ts +14 -14
- package/lib/layout-public/layout-public.component.d.ts +5 -5
- package/lib/layout.component.d.ts +12 -12
- package/lib/layout.module.d.ts +2 -2
- package/lib/layout.service.d.ts +6 -6
- package/package.json +5 -5
- package/public_api.d.ts +3 -3
- package/valtimo-layout.d.ts +6 -6
|
@@ -5,218 +5,218 @@ 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
|
|
67
|
-
.pipe(filter(event => event instanceof NavigationEnd))
|
|
68
|
-
.subscribe(() => {
|
|
69
|
-
const layout = this.route.snapshot.firstChild.data.layout;
|
|
70
|
-
this.layoutType = layout ? layout : this.defaultLayout;
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
ngOnDestroy() {
|
|
74
|
-
this.routerSub.unsubscribe();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
LayoutComponent.decorators = [
|
|
78
|
-
{ type: Component, args: [{
|
|
79
|
-
selector: 'valtimo-layout',
|
|
80
|
-
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"
|
|
81
|
-
},] }
|
|
82
|
-
];
|
|
83
|
-
LayoutComponent.ctorParameters = () => [
|
|
84
|
-
{ type: Router },
|
|
85
|
-
{ 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
|
|
67
|
+
.pipe(filter(event => event instanceof NavigationEnd))
|
|
68
|
+
.subscribe(() => {
|
|
69
|
+
const layout = this.route.snapshot.firstChild.data.layout;
|
|
70
|
+
this.layoutType = layout ? layout : this.defaultLayout;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
ngOnDestroy() {
|
|
74
|
+
this.routerSub.unsubscribe();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
LayoutComponent.decorators = [
|
|
78
|
+
{ type: Component, args: [{
|
|
79
|
+
selector: 'valtimo-layout',
|
|
80
|
+
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"
|
|
81
|
+
},] }
|
|
82
|
+
];
|
|
83
|
+
LayoutComponent.ctorParameters = () => [
|
|
84
|
+
{ type: Router },
|
|
85
|
+
{ type: ActivatedRoute }
|
|
86
86
|
];
|
|
87
87
|
|
|
88
|
-
/*
|
|
89
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
90
|
-
*
|
|
91
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
92
|
-
* you may not use this file except in compliance with the License.
|
|
93
|
-
* You may obtain a copy of the License at
|
|
94
|
-
*
|
|
95
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
96
|
-
*
|
|
97
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
98
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
99
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
100
|
-
* See the License for the specific language governing permissions and
|
|
101
|
-
* limitations under the License.
|
|
102
|
-
*/
|
|
103
|
-
class LayoutPublicComponent {
|
|
104
|
-
constructor() { }
|
|
105
|
-
ngOnInit() { }
|
|
106
|
-
}
|
|
107
|
-
LayoutPublicComponent.decorators = [
|
|
108
|
-
{ type: Component, args: [{
|
|
109
|
-
selector: 'valtimo-layout-public',
|
|
110
|
-
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",
|
|
111
|
-
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%}}"]
|
|
112
|
-
},] }
|
|
113
|
-
];
|
|
88
|
+
/*
|
|
89
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
90
|
+
*
|
|
91
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
92
|
+
* you may not use this file except in compliance with the License.
|
|
93
|
+
* You may obtain a copy of the License at
|
|
94
|
+
*
|
|
95
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
96
|
+
*
|
|
97
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
98
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
99
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
100
|
+
* See the License for the specific language governing permissions and
|
|
101
|
+
* limitations under the License.
|
|
102
|
+
*/
|
|
103
|
+
class LayoutPublicComponent {
|
|
104
|
+
constructor() { }
|
|
105
|
+
ngOnInit() { }
|
|
106
|
+
}
|
|
107
|
+
LayoutPublicComponent.decorators = [
|
|
108
|
+
{ type: Component, args: [{
|
|
109
|
+
selector: 'valtimo-layout-public',
|
|
110
|
+
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",
|
|
111
|
+
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%}}"]
|
|
112
|
+
},] }
|
|
113
|
+
];
|
|
114
114
|
LayoutPublicComponent.ctorParameters = () => [];
|
|
115
115
|
|
|
116
|
-
/*
|
|
117
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
118
|
-
*
|
|
119
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
120
|
-
* you may not use this file except in compliance with the License.
|
|
121
|
-
* You may obtain a copy of the License at
|
|
122
|
-
*
|
|
123
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
124
|
-
*
|
|
125
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
126
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
127
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
128
|
-
* See the License for the specific language governing permissions and
|
|
129
|
-
* limitations under the License.
|
|
130
|
-
*/
|
|
131
|
-
class LayoutInternalComponent {
|
|
132
|
-
constructor(layoutService, renderer) {
|
|
133
|
-
this.layoutService = layoutService;
|
|
134
|
-
this.renderer = renderer;
|
|
135
|
-
this.menuOpen$ = new BehaviorSubject(true);
|
|
136
|
-
this.menuWidth$ = new BehaviorSubject(undefined);
|
|
137
|
-
this.observer = new MutationObserver((e) => this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')));
|
|
138
|
-
this.renderer.addClass(document.body, 'be-animate');
|
|
139
|
-
}
|
|
140
|
-
ngAfterViewInit() {
|
|
141
|
-
App.init();
|
|
142
|
-
this.observer.observe(this.wrapperRef.nativeElement, {
|
|
143
|
-
attributes: true,
|
|
144
|
-
attributeFilter: ['class'],
|
|
145
|
-
childList: false,
|
|
146
|
-
characterData: false,
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
menuWidthChanged(width) {
|
|
150
|
-
this.menuWidth$.next(width);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
LayoutInternalComponent.decorators = [
|
|
154
|
-
{ type: Component, args: [{
|
|
155
|
-
selector: 'valtimo-layout-internal',
|
|
156
|
-
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]=\"\n (menuOpen$ | async) && !layoutService.isFullscreen ? (menuWidth$ | async) : null\n \"\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",
|
|
157
|
-
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}}"]
|
|
158
|
-
},] }
|
|
159
|
-
];
|
|
160
|
-
LayoutInternalComponent.ctorParameters = () => [
|
|
161
|
-
{ type: LayoutService },
|
|
162
|
-
{ type: Renderer2 }
|
|
163
|
-
];
|
|
164
|
-
LayoutInternalComponent.propDecorators = {
|
|
165
|
-
wrapperRef: [{ type: ViewChild, args: ['wrapper',] }]
|
|
116
|
+
/*
|
|
117
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
118
|
+
*
|
|
119
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
120
|
+
* you may not use this file except in compliance with the License.
|
|
121
|
+
* You may obtain a copy of the License at
|
|
122
|
+
*
|
|
123
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
124
|
+
*
|
|
125
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
126
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
127
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
128
|
+
* See the License for the specific language governing permissions and
|
|
129
|
+
* limitations under the License.
|
|
130
|
+
*/
|
|
131
|
+
class LayoutInternalComponent {
|
|
132
|
+
constructor(layoutService, renderer) {
|
|
133
|
+
this.layoutService = layoutService;
|
|
134
|
+
this.renderer = renderer;
|
|
135
|
+
this.menuOpen$ = new BehaviorSubject(true);
|
|
136
|
+
this.menuWidth$ = new BehaviorSubject(undefined);
|
|
137
|
+
this.observer = new MutationObserver((e) => this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')));
|
|
138
|
+
this.renderer.addClass(document.body, 'be-animate');
|
|
139
|
+
}
|
|
140
|
+
ngAfterViewInit() {
|
|
141
|
+
App.init();
|
|
142
|
+
this.observer.observe(this.wrapperRef.nativeElement, {
|
|
143
|
+
attributes: true,
|
|
144
|
+
attributeFilter: ['class'],
|
|
145
|
+
childList: false,
|
|
146
|
+
characterData: false,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
menuWidthChanged(width) {
|
|
150
|
+
this.menuWidth$.next(width);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
LayoutInternalComponent.decorators = [
|
|
154
|
+
{ type: Component, args: [{
|
|
155
|
+
selector: 'valtimo-layout-internal',
|
|
156
|
+
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]=\"\n (menuOpen$ | async) && !layoutService.isFullscreen ? (menuWidth$ | async) : null\n \"\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",
|
|
157
|
+
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}}"]
|
|
158
|
+
},] }
|
|
159
|
+
];
|
|
160
|
+
LayoutInternalComponent.ctorParameters = () => [
|
|
161
|
+
{ type: LayoutService },
|
|
162
|
+
{ type: Renderer2 }
|
|
163
|
+
];
|
|
164
|
+
LayoutInternalComponent.propDecorators = {
|
|
165
|
+
wrapperRef: [{ type: ViewChild, args: ['wrapper',] }]
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
-
/*
|
|
169
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
170
|
-
*
|
|
171
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
172
|
-
* you may not use this file except in compliance with the License.
|
|
173
|
-
* You may obtain a copy of the License at
|
|
174
|
-
*
|
|
175
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
176
|
-
*
|
|
177
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
178
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
179
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
180
|
-
* See the License for the specific language governing permissions and
|
|
181
|
-
* limitations under the License.
|
|
182
|
-
*/
|
|
183
|
-
class LayoutModule {
|
|
184
|
-
}
|
|
185
|
-
LayoutModule.decorators = [
|
|
186
|
-
{ type: NgModule, args: [{
|
|
187
|
-
declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
|
|
188
|
-
imports: [
|
|
189
|
-
RouterModule,
|
|
190
|
-
MenuRoutingModule,
|
|
191
|
-
TopbarModule,
|
|
192
|
-
LeftSidebarModule,
|
|
193
|
-
RightSidebarModule,
|
|
194
|
-
PageHeaderModule,
|
|
195
|
-
AlertModule,
|
|
196
|
-
CommonModule,
|
|
197
|
-
],
|
|
198
|
-
exports: [LayoutComponent],
|
|
199
|
-
},] }
|
|
168
|
+
/*
|
|
169
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
170
|
+
*
|
|
171
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
172
|
+
* you may not use this file except in compliance with the License.
|
|
173
|
+
* You may obtain a copy of the License at
|
|
174
|
+
*
|
|
175
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
176
|
+
*
|
|
177
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
178
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
179
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
180
|
+
* See the License for the specific language governing permissions and
|
|
181
|
+
* limitations under the License.
|
|
182
|
+
*/
|
|
183
|
+
class LayoutModule {
|
|
184
|
+
}
|
|
185
|
+
LayoutModule.decorators = [
|
|
186
|
+
{ type: NgModule, args: [{
|
|
187
|
+
declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
|
|
188
|
+
imports: [
|
|
189
|
+
RouterModule,
|
|
190
|
+
MenuRoutingModule,
|
|
191
|
+
TopbarModule,
|
|
192
|
+
LeftSidebarModule,
|
|
193
|
+
RightSidebarModule,
|
|
194
|
+
PageHeaderModule,
|
|
195
|
+
AlertModule,
|
|
196
|
+
CommonModule,
|
|
197
|
+
],
|
|
198
|
+
exports: [LayoutComponent],
|
|
199
|
+
},] }
|
|
200
200
|
];
|
|
201
201
|
|
|
202
|
-
/*
|
|
203
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
204
|
-
*
|
|
205
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
206
|
-
* you may not use this file except in compliance with the License.
|
|
207
|
-
* You may obtain a copy of the License at
|
|
208
|
-
*
|
|
209
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
210
|
-
*
|
|
211
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
212
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
213
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
214
|
-
* See the License for the specific language governing permissions and
|
|
215
|
-
* limitations under the License.
|
|
202
|
+
/*
|
|
203
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
204
|
+
*
|
|
205
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
206
|
+
* you may not use this file except in compliance with the License.
|
|
207
|
+
* You may obtain a copy of the License at
|
|
208
|
+
*
|
|
209
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
210
|
+
*
|
|
211
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
212
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
213
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
214
|
+
* See the License for the specific language governing permissions and
|
|
215
|
+
* limitations under the License.
|
|
216
216
|
*/
|
|
217
217
|
|
|
218
|
-
/**
|
|
219
|
-
* Generated bundle index. Do not edit.
|
|
218
|
+
/**
|
|
219
|
+
* Generated bundle index. Do not edit.
|
|
220
220
|
*/
|
|
221
221
|
|
|
222
222
|
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
|
+
}
|
package/lib/layout.module.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class LayoutModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class LayoutModule {
|
|
2
|
+
}
|
package/lib/layout.service.d.ts
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "4.17.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^10.0.11",
|
|
7
7
|
"@angular/core": "^10.0.11"
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"dropzone": "^4.3.0",
|
|
35
35
|
"fuelux": "^3.15.11",
|
|
36
36
|
"fullcalendar": "^3.8.0",
|
|
37
|
-
"jquery": "3.
|
|
38
|
-
"jquery-touchswipe": "^1.6.
|
|
39
|
-
"components-jqueryui": "^1.
|
|
37
|
+
"jquery": "3.6.0",
|
|
38
|
+
"jquery-touchswipe": "^1.6.19",
|
|
39
|
+
"components-jqueryui": "^1.12.1",
|
|
40
40
|
"jquery.maskedinput": "^1.4.1",
|
|
41
|
-
"jquery.quicksearch": "^2.
|
|
41
|
+
"jquery.quicksearch": "^2.4.0",
|
|
42
42
|
"jqvmap": "^1.5.1",
|
|
43
43
|
"jszip": "^3.1.5",
|
|
44
44
|
"magnific-popup": "^1.0.0",
|
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';
|
package/valtimo-layout.d.ts
CHANGED
|
@@ -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';
|