@valtimo/layout 4.15.2-next-main.8

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 (136) hide show
  1. package/assets/css/app.css +28364 -0
  2. package/assets/img/1088x336.png +0 -0
  3. package/assets/img/140x140.png +0 -0
  4. package/assets/img/342x239.png +0 -0
  5. package/assets/img/346x106.png +0 -0
  6. package/assets/img/362x239.png +0 -0
  7. package/assets/img/404-bg.png +0 -0
  8. package/assets/img/529x161.png +0 -0
  9. package/assets/img/avatar-150.png +0 -0
  10. package/assets/img/avatar.png +0 -0
  11. package/assets/img/avatar1.png +0 -0
  12. package/assets/img/avatar2.png +0 -0
  13. package/assets/img/avatar3.png +0 -0
  14. package/assets/img/avatar4.png +0 -0
  15. package/assets/img/avatar5.png +0 -0
  16. package/assets/img/avatar6.png +0 -0
  17. package/assets/img/bitbucket.png +0 -0
  18. package/assets/img/db-icon.png +0 -0
  19. package/assets/img/dribbble.png +0 -0
  20. package/assets/img/dropbox.png +0 -0
  21. package/assets/img/fb-icon.png +0 -0
  22. package/assets/img/fl-icon.png +0 -0
  23. package/assets/img/gh-icon.png +0 -0
  24. package/assets/img/github.png +0 -0
  25. package/assets/img/gp-icon.png +0 -0
  26. package/assets/img/in-icon.png +0 -0
  27. package/assets/img/logo-fav.png +0 -0
  28. package/assets/img/logo-symbol.png +0 -0
  29. package/assets/img/logo-white-xx.png +0 -0
  30. package/assets/img/logo-white.png +0 -0
  31. package/assets/img/logo-white.svg +1 -0
  32. package/assets/img/logo-xx.png +0 -0
  33. package/assets/img/logo.png +0 -0
  34. package/assets/img/logo.svg +1 -0
  35. package/assets/img/mail_chimp.png +0 -0
  36. package/assets/img/pi-icon.png +0 -0
  37. package/assets/img/slack.png +0 -0
  38. package/assets/img/slack_logo.png +0 -0
  39. package/assets/img/tu-icon.png +0 -0
  40. package/assets/img/tw-icon.png +0 -0
  41. package/assets/img/user-profile-display.png +0 -0
  42. package/assets/img/valtimo/favicons/android-chrome-192x192.png +0 -0
  43. package/assets/img/valtimo/favicons/android-chrome-256x256.png +0 -0
  44. package/assets/img/valtimo/favicons/apple-touch-icon.png +0 -0
  45. package/assets/img/valtimo/favicons/browserconfig.xml +25 -0
  46. package/assets/img/valtimo/favicons/favicon-16x16.png +0 -0
  47. package/assets/img/valtimo/favicons/favicon-32x32.png +0 -0
  48. package/assets/img/valtimo/favicons/favicon.ico +0 -0
  49. package/assets/img/valtimo/favicons/manifest.json +18 -0
  50. package/assets/img/valtimo/favicons/mstile-150x150.png +0 -0
  51. package/assets/img/valtimo/favicons/safari-pinned-tab.svg +19 -0
  52. package/assets/img/yt-icon.png +0 -0
  53. package/assets/js/app.js +835 -0
  54. package/assets/lib/jquery.gritter/images/gritter-bg.png +0 -0
  55. package/assets/lib/roboto/Roboto-Black.eot +0 -0
  56. package/assets/lib/roboto/Roboto-Black.svg +10968 -0
  57. package/assets/lib/roboto/Roboto-Black.ttf +0 -0
  58. package/assets/lib/roboto/Roboto-Black.woff +0 -0
  59. package/assets/lib/roboto/Roboto-Black.woff2 +0 -0
  60. package/assets/lib/roboto/Roboto-BlackItalic.eot +0 -0
  61. package/assets/lib/roboto/Roboto-BlackItalic.svg +11086 -0
  62. package/assets/lib/roboto/Roboto-BlackItalic.ttf +0 -0
  63. package/assets/lib/roboto/Roboto-BlackItalic.woff +0 -0
  64. package/assets/lib/roboto/Roboto-BlackItalic.woff2 +0 -0
  65. package/assets/lib/roboto/Roboto-Bold.eot +0 -0
  66. package/assets/lib/roboto/Roboto-Bold.svg +11010 -0
  67. package/assets/lib/roboto/Roboto-Bold.ttf +0 -0
  68. package/assets/lib/roboto/Roboto-Bold.woff +0 -0
  69. package/assets/lib/roboto/Roboto-Bold.woff2 +0 -0
  70. package/assets/lib/roboto/Roboto-BoldItalic.eot +0 -0
  71. package/assets/lib/roboto/Roboto-BoldItalic.svg +11096 -0
  72. package/assets/lib/roboto/Roboto-BoldItalic.ttf +0 -0
  73. package/assets/lib/roboto/Roboto-BoldItalic.woff +0 -0
  74. package/assets/lib/roboto/Roboto-BoldItalic.woff2 +0 -0
  75. package/assets/lib/roboto/Roboto-Light.eot +0 -0
  76. package/assets/lib/roboto/Roboto-Light.svg +10564 -0
  77. package/assets/lib/roboto/Roboto-Light.ttf +0 -0
  78. package/assets/lib/roboto/Roboto-Light.woff +0 -0
  79. package/assets/lib/roboto/Roboto-Light.woff2 +0 -0
  80. package/assets/lib/roboto/Roboto-LightItalic.eot +0 -0
  81. package/assets/lib/roboto/Roboto-LightItalic.svg +10646 -0
  82. package/assets/lib/roboto/Roboto-LightItalic.ttf +0 -0
  83. package/assets/lib/roboto/Roboto-LightItalic.woff +0 -0
  84. package/assets/lib/roboto/Roboto-LightItalic.woff2 +0 -0
  85. package/assets/lib/roboto/Roboto-Medium.eot +0 -0
  86. package/assets/lib/roboto/Roboto-Medium.svg +10999 -0
  87. package/assets/lib/roboto/Roboto-Medium.ttf +0 -0
  88. package/assets/lib/roboto/Roboto-Medium.woff +0 -0
  89. package/assets/lib/roboto/Roboto-Medium.woff2 +0 -0
  90. package/assets/lib/roboto/Roboto-MediumItalic.eot +0 -0
  91. package/assets/lib/roboto/Roboto-MediumItalic.svg +11100 -0
  92. package/assets/lib/roboto/Roboto-MediumItalic.ttf +0 -0
  93. package/assets/lib/roboto/Roboto-MediumItalic.woff +0 -0
  94. package/assets/lib/roboto/Roboto-MediumItalic.woff2 +0 -0
  95. package/assets/lib/roboto/Roboto-Regular.eot +0 -0
  96. package/assets/lib/roboto/Roboto-Regular.svg +10520 -0
  97. package/assets/lib/roboto/Roboto-Regular.ttf +0 -0
  98. package/assets/lib/roboto/Roboto-Regular.woff +0 -0
  99. package/assets/lib/roboto/Roboto-Regular.woff2 +0 -0
  100. package/assets/lib/roboto/Roboto-RegularItalic.eot +0 -0
  101. package/assets/lib/roboto/Roboto-RegularItalic.svg +10629 -0
  102. package/assets/lib/roboto/Roboto-RegularItalic.ttf +0 -0
  103. package/assets/lib/roboto/Roboto-RegularItalic.woff +0 -0
  104. package/assets/lib/roboto/Roboto-RegularItalic.woff2 +0 -0
  105. package/assets/lib/roboto/Roboto-Thin.eot +0 -0
  106. package/assets/lib/roboto/Roboto-Thin.svg +10617 -0
  107. package/assets/lib/roboto/Roboto-Thin.ttf +0 -0
  108. package/assets/lib/roboto/Roboto-Thin.woff +0 -0
  109. package/assets/lib/roboto/Roboto-Thin.woff2 +0 -0
  110. package/assets/lib/roboto/Roboto-ThinItalic.eot +0 -0
  111. package/assets/lib/roboto/Roboto-ThinItalic.svg +10726 -0
  112. package/assets/lib/roboto/Roboto-ThinItalic.ttf +0 -0
  113. package/assets/lib/roboto/Roboto-ThinItalic.woff +0 -0
  114. package/assets/lib/roboto/Roboto-ThinItalic.woff2 +0 -0
  115. package/bundles/valtimo-layout.umd.js +243 -0
  116. package/bundles/valtimo-layout.umd.js.map +1 -0
  117. package/bundles/valtimo-layout.umd.min.js +2 -0
  118. package/bundles/valtimo-layout.umd.min.js.map +1 -0
  119. package/esm2015/lib/layout-internal/layout-internal.component.js +55 -0
  120. package/esm2015/lib/layout-public/layout-public.component.js +30 -0
  121. package/esm2015/lib/layout.component.js +48 -0
  122. package/esm2015/lib/layout.module.js +41 -0
  123. package/esm2015/lib/layout.service.js +36 -0
  124. package/esm2015/public_api.js +22 -0
  125. package/esm2015/valtimo-layout.js +7 -0
  126. package/fesm2015/valtimo-layout.js +222 -0
  127. package/fesm2015/valtimo-layout.js.map +1 -0
  128. package/lib/layout-internal/layout-internal.component.d.ts +14 -0
  129. package/lib/layout-public/layout-public.component.d.ts +5 -0
  130. package/lib/layout.component.d.ts +12 -0
  131. package/lib/layout.module.d.ts +2 -0
  132. package/lib/layout.service.d.ts +6 -0
  133. package/package.json +70 -0
  134. package/public_api.d.ts +3 -0
  135. package/valtimo-layout.d.ts +6 -0
  136. package/valtimo-layout.metadata.json +1 -0
@@ -0,0 +1,243 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('rxjs/operators'), require('rxjs'), require('@valtimo/components'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('@valtimo/layout', ['exports', '@angular/core', '@angular/router', 'rxjs/operators', 'rxjs', '@valtimo/components', '@angular/common'], factory) :
4
+ (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.layout = {}), global.ng.core, global.ng.router, global.rxjs.operators, global.rxjs, global.components, global.ng.common));
5
+ }(this, (function (exports, i0, router, operators, rxjs, components, common) { 'use strict';
6
+
7
+ /*
8
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
9
+ *
10
+ * Licensed under EUPL, Version 1.2 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" basis,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+ var LayoutService = /** @class */ (function () {
23
+ function LayoutService() {
24
+ this.fullscreen = false;
25
+ }
26
+ Object.defineProperty(LayoutService.prototype, "isFullscreen", {
27
+ get: function () {
28
+ return this.fullscreen;
29
+ },
30
+ enumerable: false,
31
+ configurable: true
32
+ });
33
+ LayoutService.prototype.toggleFullscreen = function () {
34
+ this.fullscreen = !this.fullscreen;
35
+ };
36
+ return LayoutService;
37
+ }());
38
+ LayoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LayoutService_Factory() { return new LayoutService(); }, token: LayoutService, providedIn: "root" });
39
+ LayoutService.decorators = [
40
+ { type: i0.Injectable, args: [{
41
+ providedIn: 'root'
42
+ },] }
43
+ ];
44
+ LayoutService.ctorParameters = function () { return []; };
45
+
46
+ /*
47
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
48
+ *
49
+ * Licensed under EUPL, Version 1.2 (the "License");
50
+ * you may not use this file except in compliance with the License.
51
+ * You may obtain a copy of the License at
52
+ *
53
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
54
+ *
55
+ * Unless required by applicable law or agreed to in writing, software
56
+ * distributed under the License is distributed on an "AS IS" basis,
57
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+ * See the License for the specific language governing permissions and
59
+ * limitations under the License.
60
+ */
61
+ var LayoutComponent = /** @class */ (function () {
62
+ function LayoutComponent(router, route) {
63
+ this.router = router;
64
+ this.route = route;
65
+ this.layoutType = null;
66
+ this.routerSub = rxjs.Subscription.EMPTY;
67
+ this.defaultLayout = 'internal';
68
+ }
69
+ LayoutComponent.prototype.ngOnInit = function () {
70
+ var _this = this;
71
+ this.routerSub = this.router.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationEnd; })).subscribe(function () {
72
+ var layout = _this.route.snapshot.firstChild.data.layout;
73
+ _this.layoutType = layout ? layout : _this.defaultLayout;
74
+ });
75
+ };
76
+ LayoutComponent.prototype.ngOnDestroy = function () {
77
+ this.routerSub.unsubscribe();
78
+ };
79
+ return LayoutComponent;
80
+ }());
81
+ LayoutComponent.decorators = [
82
+ { type: i0.Component, args: [{
83
+ selector: 'valtimo-layout',
84
+ 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"
85
+ },] }
86
+ ];
87
+ LayoutComponent.ctorParameters = function () { return [
88
+ { type: router.Router },
89
+ { type: router.ActivatedRoute }
90
+ ]; };
91
+
92
+ /*
93
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
94
+ *
95
+ * Licensed under EUPL, Version 1.2 (the "License");
96
+ * you may not use this file except in compliance with the License.
97
+ * You may obtain a copy of the License at
98
+ *
99
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
100
+ *
101
+ * Unless required by applicable law or agreed to in writing, software
102
+ * distributed under the License is distributed on an "AS IS" basis,
103
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
+ * See the License for the specific language governing permissions and
105
+ * limitations under the License.
106
+ */
107
+ var LayoutPublicComponent = /** @class */ (function () {
108
+ function LayoutPublicComponent() {
109
+ }
110
+ LayoutPublicComponent.prototype.ngOnInit = function () {
111
+ };
112
+ return LayoutPublicComponent;
113
+ }());
114
+ LayoutPublicComponent.decorators = [
115
+ { type: i0.Component, args: [{
116
+ selector: 'valtimo-layout-public',
117
+ 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",
118
+ 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%}}"]
119
+ },] }
120
+ ];
121
+ LayoutPublicComponent.ctorParameters = function () { return []; };
122
+
123
+ /*
124
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
125
+ *
126
+ * Licensed under EUPL, Version 1.2 (the "License");
127
+ * you may not use this file except in compliance with the License.
128
+ * You may obtain a copy of the License at
129
+ *
130
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
131
+ *
132
+ * Unless required by applicable law or agreed to in writing, software
133
+ * distributed under the License is distributed on an "AS IS" basis,
134
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
135
+ * See the License for the specific language governing permissions and
136
+ * limitations under the License.
137
+ */
138
+ var LayoutInternalComponent = /** @class */ (function () {
139
+ function LayoutInternalComponent(layoutService, renderer) {
140
+ var _this = this;
141
+ this.layoutService = layoutService;
142
+ this.renderer = renderer;
143
+ this.menuOpen$ = new rxjs.BehaviorSubject(true);
144
+ this.menuWidth$ = new rxjs.BehaviorSubject(undefined);
145
+ this.observer = new MutationObserver(function (e) { return _this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')); });
146
+ this.renderer.addClass(document.body, 'be-animate');
147
+ }
148
+ LayoutInternalComponent.prototype.ngAfterViewInit = function () {
149
+ App.init();
150
+ this.observer.observe(this.wrapperRef.nativeElement, {
151
+ attributes: true,
152
+ attributeFilter: ['class'],
153
+ childList: false,
154
+ characterData: false
155
+ });
156
+ };
157
+ LayoutInternalComponent.prototype.menuWidthChanged = function (width) {
158
+ this.menuWidth$.next(width);
159
+ };
160
+ return LayoutInternalComponent;
161
+ }());
162
+ LayoutInternalComponent.decorators = [
163
+ { type: i0.Component, args: [{
164
+ selector: 'valtimo-layout-internal',
165
+ 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",
166
+ 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}}"]
167
+ },] }
168
+ ];
169
+ LayoutInternalComponent.ctorParameters = function () { return [
170
+ { type: LayoutService },
171
+ { type: i0.Renderer2 }
172
+ ]; };
173
+ LayoutInternalComponent.propDecorators = {
174
+ wrapperRef: [{ type: i0.ViewChild, args: ['wrapper',] }]
175
+ };
176
+
177
+ /*
178
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
179
+ *
180
+ * Licensed under EUPL, Version 1.2 (the "License");
181
+ * you may not use this file except in compliance with the License.
182
+ * You may obtain a copy of the License at
183
+ *
184
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
185
+ *
186
+ * Unless required by applicable law or agreed to in writing, software
187
+ * distributed under the License is distributed on an "AS IS" basis,
188
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ * See the License for the specific language governing permissions and
190
+ * limitations under the License.
191
+ */
192
+ var LayoutModule = /** @class */ (function () {
193
+ function LayoutModule() {
194
+ }
195
+ return LayoutModule;
196
+ }());
197
+ LayoutModule.decorators = [
198
+ { type: i0.NgModule, args: [{
199
+ declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
200
+ imports: [
201
+ router.RouterModule,
202
+ components.MenuRoutingModule,
203
+ components.TopbarModule,
204
+ components.LeftSidebarModule,
205
+ components.RightSidebarModule,
206
+ components.PageHeaderModule,
207
+ components.AlertModule,
208
+ common.CommonModule
209
+ ],
210
+ exports: [LayoutComponent]
211
+ },] }
212
+ ];
213
+
214
+ /*
215
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
216
+ *
217
+ * Licensed under EUPL, Version 1.2 (the "License");
218
+ * you may not use this file except in compliance with the License.
219
+ * You may obtain a copy of the License at
220
+ *
221
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
222
+ *
223
+ * Unless required by applicable law or agreed to in writing, software
224
+ * distributed under the License is distributed on an "AS IS" basis,
225
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
+ * See the License for the specific language governing permissions and
227
+ * limitations under the License.
228
+ */
229
+
230
+ /**
231
+ * Generated bundle index. Do not edit.
232
+ */
233
+
234
+ exports.LayoutComponent = LayoutComponent;
235
+ exports.LayoutModule = LayoutModule;
236
+ exports.LayoutService = LayoutService;
237
+ exports.ɵa = LayoutPublicComponent;
238
+ exports.ɵb = LayoutInternalComponent;
239
+
240
+ Object.defineProperty(exports, '__esModule', { value: true });
241
+
242
+ })));
243
+ //# sourceMappingURL=valtimo-layout.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-layout.umd.js","sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts","../../../../projects/valtimo/layout/src/lib/layout.component.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts","../../../../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\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n\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, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, NavigationEnd, Router} from '@angular/router';\nimport {filter} from 'rxjs/operators';\nimport {Subscription} from 'rxjs';\n\ndeclare var App: any;\n\n@Component({\n selector: 'valtimo-layout',\n templateUrl: './layout.component.html'\n})\nexport class LayoutComponent implements OnInit, OnDestroy {\n\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\n ngOnInit() {\n this.routerSub = this.router.events.pipe(filter(event => event instanceof NavigationEnd)).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","/*\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\n constructor() { }\n\n ngOnInit() {\n }\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 {AfterViewInit, Component, ElementRef, Renderer2, ViewChild} from '@angular/core';\nimport {BehaviorSubject} from 'rxjs';\nimport {LayoutService} from '../layout.service';\n\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('wrapper') wrapperRef: ElementRef;\n\n readonly menuOpen$ = new BehaviorSubject<boolean>(true);\n readonly menuWidth$ = new BehaviorSubject<number>(undefined);\n\n readonly observer = new MutationObserver((e: any) =>\n this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed'))\n );\n\n constructor(public layoutService: LayoutService, private renderer: Renderer2) {\n this.renderer.addClass(document.body, 'be-animate');\n }\n\n ngAfterViewInit(): void {\n App.init();\n\n this.observer.observe(this.wrapperRef.nativeElement, {\n attributes: true,\n attributeFilter: ['class'],\n childList: false,\n characterData: false\n });\n }\n\n menuWidthChanged(width: number): void {\n this.menuWidth$.next(width);\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 {NgModule} from '@angular/core';\nimport {LayoutComponent} from './layout.component';\nimport {AlertModule, LeftSidebarModule, MenuRoutingModule, PageHeaderModule, RightSidebarModule, TopbarModule} 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';\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 ],\n exports: [LayoutComponent]\n})\nexport class LayoutModule {\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/*\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\nexport {LayoutInternalComponent as ɵb} from './lib/layout-internal/layout-internal.component';\nexport {LayoutPublicComponent as ɵa} from './lib/layout-public/layout-public.component';"],"names":["Injectable","Subscription","filter","NavigationEnd","Component","Router","ActivatedRoute","BehaviorSubject","Renderer2","ViewChild","NgModule","RouterModule","MenuRoutingModule","TopbarModule","LeftSidebarModule","RightSidebarModule","PageHeaderModule","AlertModule","CommonModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;;;QAwBE;YAFQ,eAAU,GAAG,KAAK,CAAC;SAG1B;QAED,sBAAW,uCAAY;iBAAvB;gBACE,OAAO,IAAI,CAAC,UAAU,CAAC;aACxB;;;WAAA;QAEM,wCAAgB,GAAhB;YACL,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;SACpC;;;;;gBAfFA,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;;ICpBD;;;;;;;;;;;;;;;;QAiCE,yBAAoB,MAAc,EAAU,KAAqB;YAA7C,WAAM,GAAN,MAAM,CAAQ;YAAU,UAAK,GAAL,KAAK,CAAgB;YAJ1D,eAAU,GAAkB,IAAI,CAAC;YAChC,cAAS,GAAGC,iBAAY,CAAC,KAAK,CAAC;YAC/B,kBAAa,GAAG,UAAU,CAAC;SAGlC;QAED,kCAAQ,GAAR;YAAA,iBAKC;YAJC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAACC,gBAAM,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,YAAYC,oBAAa,GAAA,CAAC,CAAC,CAAC,SAAS,CAAC;gBAClG,IAAM,MAAM,GAAG,KAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC1D,KAAI,CAAC,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,KAAI,CAAC,aAAa,CAAC;aACxD,CAAC,CAAC;SACJ;QAED,qCAAW,GAAX;YACE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;SAC9B;;;;gBAtBFC,YAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,w0BAAsC;iBACvC;;;gB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YpDC,YAAS,SAAC,SAAS;;;IC5BtB;;;;;;;;;;;;;;;;QAsCA;;;;;gBAdCC,WAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,eAAe,EAAE,qBAAqB,EAAE,uBAAuB,CAAC;oBAC/E,OAAO,EAAE;wBACPC,mBAAY;wBACZC,4BAAiB;wBACjBC,uBAAY;wBACZC,4BAAiB;wBACjBC,6BAAkB;wBAClBC,2BAAgB;wBAChBC,sBAAW;wBACXC,mBAAY;qBACb;oBACD,OAAO,EAAE,CAAC,eAAe,CAAC;iBAC3B;;;ICrCD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("rxjs/operators"),require("rxjs"),require("@valtimo/components"),require("@angular/common")):"function"==typeof define&&define.amd?define("@valtimo/layout",["exports","@angular/core","@angular/router","rxjs/operators","rxjs","@valtimo/components","@angular/common"],t):t(((e=e||self).valtimo=e.valtimo||{},e.valtimo.layout={}),e.ng.core,e.ng.router,e.rxjs.operators,e.rxjs,e.components,e.ng.common)}(this,(function(e,t,n,i,o,r,a){"use strict";var s=function(){function e(){this.fullscreen=!1}return Object.defineProperty(e.prototype,"isFullscreen",{get:function(){return this.fullscreen},enumerable:!1,configurable:!0}),e.prototype.toggleFullscreen=function(){this.fullscreen=!this.fullscreen},e}();s.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[]};var u=function(){function e(e,t){this.router=e,this.route=t,this.layoutType=null,this.routerSub=o.Subscription.EMPTY,this.defaultLayout="internal"}return e.prototype.ngOnInit=function(){var e=this;this.routerSub=this.router.events.pipe(i.filter((function(e){return e instanceof n.NavigationEnd}))).subscribe((function(){var t=e.route.snapshot.firstChild.data.layout;e.layoutType=t||e.defaultLayout}))},e.prototype.ngOnDestroy=function(){this.routerSub.unsubscribe()},e}();u.decorators=[{type:t.Component,args:[{selector:"valtimo-layout",template:'\x3c!--\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 --\x3e\n\n<valtimo-layout-public *ngIf="layoutType === \'public\'"></valtimo-layout-public>\n<valtimo-layout-internal *ngIf="layoutType === \'internal\'"></valtimo-layout-internal>\n'}]}],u.ctorParameters=function(){return[{type:n.Router},{type:n.ActivatedRoute}]};var l=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();l.decorators=[{type:t.Component,args:[{selector:"valtimo-layout-public",template:'\x3c!--\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 --\x3e\n\n<div class="public-page-content">\n <img src="assets/logo.svg" class="logo">\n <router-outlet></router-outlet>\n</div>\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 */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%}}']}]}],l.ctorParameters=function(){return[]};var c=function(){function e(e,t){var n=this;this.layoutService=e,this.renderer=t,this.menuOpen$=new o.BehaviorSubject(!0),this.menuWidth$=new o.BehaviorSubject(void 0),this.observer=new MutationObserver((function(e){return n.menuOpen$.next(!e[0].target.className.includes("be-collapsible-sidebar-collapsed"))})),this.renderer.addClass(document.body,"be-animate")}return e.prototype.ngAfterViewInit=function(){App.init(),this.observer.observe(this.wrapperRef.nativeElement,{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1})},e.prototype.menuWidthChanged=function(e){this.menuWidth$.next(e)},e}();c.decorators=[{type:t.Component,args:[{selector:"valtimo-layout-internal",template:'\x3c!--\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 --\x3e\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 \x3c!--<valtimo-session-expired-popup *ngIf="auth0Service.sessionExpired"></valtimo-session-expired-popup>--\x3e\n</div>\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}}']}]}],c.ctorParameters=function(){return[{type:s},{type:t.Renderer2}]},c.propDecorators={wrapperRef:[{type:t.ViewChild,args:["wrapper"]}]};var p=function(){};p.decorators=[{type:t.NgModule,args:[{declarations:[u,l,c],imports:[n.RouterModule,r.MenuRoutingModule,r.TopbarModule,r.LeftSidebarModule,r.RightSidebarModule,r.PageHeaderModule,r.AlertModule,a.CommonModule],exports:[u]}]}],e.LayoutComponent=u,e.LayoutModule=p,e.LayoutService=s,e.ɵa=l,e.ɵb=c,Object.defineProperty(e,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=valtimo-layout.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts","../../../../projects/valtimo/layout/src/lib/layout.component.ts","../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts","../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts","../../../../projects/valtimo/layout/src/lib/layout.module.ts"],"names":["LayoutService","this","fullscreen","Object","defineProperty","prototype","toggleFullscreen","Injectable","args","providedIn","LayoutComponent","router","route","layoutType","routerSub","Subscription","EMPTY","defaultLayout","ngOnInit","_this","events","pipe","filter","event","NavigationEnd","subscribe","layout","snapshot","firstChild","data","ngOnDestroy","unsubscribe","Component","selector","template","Router","ActivatedRoute","LayoutPublicComponent","LayoutInternalComponent","layoutService","renderer","menuOpen$","BehaviorSubject","menuWidth$","undefined","observer","MutationObserver","e","next","target","className","includes","addClass","document","body","ngAfterViewInit","App","init","observe","wrapperRef","nativeElement","attributes","attributeFilter","childList","characterData","menuWidthChanged","width","Renderer2","ViewChild","NgModule","declarations","imports","RouterModule","MenuRoutingModule","TopbarModule","LeftSidebarModule","RightSidebarModule","PageHeaderModule","AlertModule","CommonModule","exports"],"mappings":"slBAwBE,SAAAA,IAFQC,KAAAC,YAAa,SAKrBC,OAAAC,eAAWJ,EAAAK,UAAA,eAAY,KAAvB,WACE,OAAOJ,KAAKC,4CAGPF,EAAAK,UAAAC,iBAAA,WACLL,KAAKC,YAAcD,KAAKC,gIAd3BK,EAAAA,WAAUC,KAAA,CAAC,CACVC,WAAY,kECcZ,SAAAC,EAAoBC,EAAwBC,GAAxBX,KAAAU,OAAAA,EAAwBV,KAAAW,MAAAA,EAJrCX,KAAAY,WAA4B,KAC3BZ,KAAAa,UAAYC,EAAAA,aAAaC,MACzBf,KAAAgB,cAAgB,kBAKxBP,EAAAL,UAAAa,SAAA,WAAA,IAAAC,EAAAlB,KACEA,KAAKa,UAAYb,KAAKU,OAAOS,OAAOC,KAAKC,EAAAA,QAAO,SAAAC,GAAS,OAAAA,aAAiBC,EAAAA,kBAAgBC,WAAU,WAClG,IAAMC,EAASP,EAAKP,MAAMe,SAASC,WAAWC,KAAKH,OACnDP,EAAKN,WAAaa,GAAkBP,EAAKF,kBAI7CP,EAAA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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\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n\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, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, NavigationEnd, Router} from '@angular/router';\nimport {filter} from 'rxjs/operators';\nimport {Subscription} from 'rxjs';\n\ndeclare var App: any;\n\n@Component({\n selector: 'valtimo-layout',\n templateUrl: './layout.component.html'\n})\nexport class LayoutComponent implements OnInit, OnDestroy {\n\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\n ngOnInit() {\n this.routerSub = this.router.events.pipe(filter(event => event instanceof NavigationEnd)).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","/*\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\n constructor() { }\n\n ngOnInit() {\n }\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 {AfterViewInit, Component, ElementRef, Renderer2, ViewChild} from '@angular/core';\nimport {BehaviorSubject} from 'rxjs';\nimport {LayoutService} from '../layout.service';\n\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('wrapper') wrapperRef: ElementRef;\n\n readonly menuOpen$ = new BehaviorSubject<boolean>(true);\n readonly menuWidth$ = new BehaviorSubject<number>(undefined);\n\n readonly observer = new MutationObserver((e: any) =>\n this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed'))\n );\n\n constructor(public layoutService: LayoutService, private renderer: Renderer2) {\n this.renderer.addClass(document.body, 'be-animate');\n }\n\n ngAfterViewInit(): void {\n App.init();\n\n this.observer.observe(this.wrapperRef.nativeElement, {\n attributes: true,\n attributeFilter: ['class'],\n childList: false,\n characterData: false\n });\n }\n\n menuWidthChanged(width: number): void {\n this.menuWidth$.next(width);\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 {NgModule} from '@angular/core';\nimport {LayoutComponent} from './layout.component';\nimport {AlertModule, LeftSidebarModule, MenuRoutingModule, PageHeaderModule, RightSidebarModule, TopbarModule} 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';\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 ],\n exports: [LayoutComponent]\n})\nexport class LayoutModule {\n}\n"]}
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Component, ElementRef, Renderer2, ViewChild } from '@angular/core';
17
+ import { BehaviorSubject } from 'rxjs';
18
+ import { LayoutService } from '../layout.service';
19
+ export class LayoutInternalComponent {
20
+ constructor(layoutService, renderer) {
21
+ this.layoutService = layoutService;
22
+ this.renderer = renderer;
23
+ this.menuOpen$ = new BehaviorSubject(true);
24
+ this.menuWidth$ = new BehaviorSubject(undefined);
25
+ this.observer = new MutationObserver((e) => this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')));
26
+ this.renderer.addClass(document.body, 'be-animate');
27
+ }
28
+ ngAfterViewInit() {
29
+ App.init();
30
+ this.observer.observe(this.wrapperRef.nativeElement, {
31
+ attributes: true,
32
+ attributeFilter: ['class'],
33
+ childList: false,
34
+ characterData: false
35
+ });
36
+ }
37
+ menuWidthChanged(width) {
38
+ this.menuWidth$.next(width);
39
+ }
40
+ }
41
+ LayoutInternalComponent.decorators = [
42
+ { type: Component, args: [{
43
+ selector: 'valtimo-layout-internal',
44
+ 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",
45
+ 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}}"]
46
+ },] }
47
+ ];
48
+ LayoutInternalComponent.ctorParameters = () => [
49
+ { type: LayoutService },
50
+ { type: Renderer2 }
51
+ ];
52
+ LayoutInternalComponent.propDecorators = {
53
+ wrapperRef: [{ type: ViewChild, args: ['wrapper',] }]
54
+ };
55
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LWludGVybmFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vbGF5b3V0L3NyYy9saWIvbGF5b3V0LWludGVybmFsL2xheW91dC1pbnRlcm5hbC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLC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lcigoZTogYW55KSA9PlxuICAgIHRoaXMubWVudU9wZW4kLm5leHQoIWVbMF0udGFyZ2V0LmNsYXNzTmFtZS5pbmNsdWRlcygnYmUtY29sbGFwc2libGUtc2lkZWJhci1jb2xsYXBzZWQnKSlcbiAgKTtcblxuICBjb25zdHJ1Y3RvcihwdWJsaWMgbGF5b3V0U2VydmljZTogTGF5b3V0U2VydmljZSwgcHJpdmF0ZSByZW5kZXJlcjogUmVuZGVyZXIyKSB7XG4gICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyhkb2N1bWVudC5ib2R5LCAnYmUtYW5pbWF0ZScpO1xuICB9XG5cbiAgbmdBZnRlclZpZXdJbml0KCk6IHZvaWQge1xuICAgIEFwcC5pbml0KCk7XG5cbiAgICB0aGlzLm9ic2VydmVyLm9ic2VydmUodGhpcy53cmFwcGVyUmVmLm5hdGl2ZUVsZW1lbnQsIHtcbiAgICAgIGF0dHJpYnV0ZXM6IHRydWUsXG4gICAgICBhdHRyaWJ1dGVGaWx0ZXI6IFsnY2xhc3MnXSxcbiAgICAgIGNoaWxkTGlzdDogZmFsc2UsXG4gICAgICBjaGFyYWN0ZXJEYXRhOiBmYWxzZVxuICAgIH0pO1xuICB9XG5cbiAgbWVudVdpZHRoQ2hhbmdlZCh3aWR0aDogbnVtYmVyKTogdm9pZCB7XG4gICAgdGhpcy5tZW51V2lkdGgkLm5leHQod2lkdGgpO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Component } from '@angular/core';
17
+ export class LayoutPublicComponent {
18
+ constructor() { }
19
+ ngOnInit() {
20
+ }
21
+ }
22
+ LayoutPublicComponent.decorators = [
23
+ { type: Component, args: [{
24
+ selector: 'valtimo-layout-public',
25
+ 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",
26
+ 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%}}"]
27
+ },] }
28
+ ];
29
+ LayoutPublicComponent.ctorParameters = () => [];
30
+ //# sourceMappingURL=data:application/json;base64,eyJ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gTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgYmFzaXMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbmltcG9ydCB7Q29tcG9uZW50LCBPbkluaXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICd2YWx0aW1vLWxheW91dC1wdWJsaWMnLFxuICB0ZW1wbGF0ZVVybDogJy4vbGF5b3V0LXB1YmxpYy5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL2xheW91dC1wdWJsaWMuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBMYXlvdXRQdWJsaWNDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Component } from '@angular/core';
17
+ import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
18
+ import { filter } from 'rxjs/operators';
19
+ import { Subscription } from 'rxjs';
20
+ export class LayoutComponent {
21
+ constructor(router, route) {
22
+ this.router = router;
23
+ this.route = route;
24
+ this.layoutType = null;
25
+ this.routerSub = Subscription.EMPTY;
26
+ this.defaultLayout = 'internal';
27
+ }
28
+ ngOnInit() {
29
+ this.routerSub = this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => {
30
+ const layout = this.route.snapshot.firstChild.data.layout;
31
+ this.layoutType = layout ? layout : this.defaultLayout;
32
+ });
33
+ }
34
+ ngOnDestroy() {
35
+ this.routerSub.unsubscribe();
36
+ }
37
+ }
38
+ LayoutComponent.decorators = [
39
+ { type: Component, args: [{
40
+ selector: 'valtimo-layout',
41
+ 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"
42
+ },] }
43
+ ];
44
+ LayoutComponent.ctorParameters = () => [
45
+ { type: Router },
46
+ { type: ActivatedRoute }
47
+ ];
48
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL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y5yb3V0ZS5zbmFwc2hvdC5maXJzdENoaWxkLmRhdGEubGF5b3V0O1xuICAgICAgdGhpcy5sYXlvdXRUeXBlID0gbGF5b3V0ID8gbGF5b3V0IDogdGhpcy5kZWZhdWx0TGF5b3V0O1xuICAgIH0pO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5yb3V0ZXJTdWIudW5zdWJzY3JpYmUoKTtcbiAgfVxuXG59XG4iXX0=
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { NgModule } from '@angular/core';
17
+ import { LayoutComponent } from './layout.component';
18
+ import { AlertModule, LeftSidebarModule, MenuRoutingModule, PageHeaderModule, RightSidebarModule, TopbarModule } from '@valtimo/components';
19
+ import { RouterModule } from '@angular/router';
20
+ import { LayoutPublicComponent } from './layout-public/layout-public.component';
21
+ import { LayoutInternalComponent } from './layout-internal/layout-internal.component';
22
+ import { CommonModule } from '@angular/common';
23
+ export class LayoutModule {
24
+ }
25
+ LayoutModule.decorators = [
26
+ { type: NgModule, args: [{
27
+ declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
28
+ imports: [
29
+ RouterModule,
30
+ MenuRoutingModule,
31
+ TopbarModule,
32
+ LeftSidebarModule,
33
+ RightSidebarModule,
34
+ PageHeaderModule,
35
+ AlertModule,
36
+ CommonModule
37
+ ],
38
+ exports: [LayoutComponent]
39
+ },] }
40
+ ];
41
+ //# sour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XJ0TW9kdWxlLCBMZWZ0U2lkZWJhck1vZHVsZSwgTWVudVJvdXRpbmdNb2R1bGUsIFBhZ2VIZWFkZXJNb2R1bGUsIFJpZ2h0U2lkZWJhck1vZHVsZSwgVG9wYmFyTW9kdWxlfSBmcm9tICdAdmFsdGltby9jb21wb25lbnRzJztcbmltcG9ydCB7Um91dGVyTW9kdWxlfSBmcm9tICdAYW5ndWxhci9yb3V0ZXInO1xuaW1wb3J0IHtMYXlvdXRQdWJsaWNDb21wb25lbnR9IGZyb20gJy4vbGF5b3V0LXB1YmxpYy9sYXlvdXQtcHVibGljLmNvbXBvbmVudCc7XG5pbXBvcnQge0xheW91dEludGVybmFsQ29tcG9uZW50fSBmcm9tICcuL2xheW91dC1pbnRlcm5hbC9sYXlvdXQtaW50ZXJuYWwuY29tcG9uZW50JztcbmltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtMYXlvdXRDb21wb25lbnQsIExheW91dFB1YmxpY0NvbXBvbmVudCwgTGF5b3V0SW50ZXJuYWxDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbXG4gICAgUm91dGVyTW9kdWxlLFxuICAgIE1lbnVSb3V0aW5nTW9kdWxlLFxuICAgIFRvcGJhck1vZHVsZSxcbiAgICBMZWZ0U2lkZWJhck1vZHVsZSxcbiAgICBSaWdodFNpZGViYXJNb2R1bGUsXG4gICAgUGFnZUhlYWRlck1vZHVsZSxcbiAgICBBbGVydE1vZHVsZSxcbiAgICBDb21tb25Nb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW0xheW91dENvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgTGF5b3V0TW9kdWxlIHtcbn1cbiJdfQ==
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Injectable } from '@angular/core';
17
+ import * as i0 from "@angular/core";
18
+ export class LayoutService {
19
+ constructor() {
20
+ this.fullscreen = false;
21
+ }
22
+ get isFullscreen() {
23
+ return this.fullscreen;
24
+ }
25
+ toggleFullscreen() {
26
+ this.fullscreen = !this.fullscreen;
27
+ }
28
+ }
29
+ LayoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LayoutService_Factory() { return new LayoutService(); }, token: LayoutService, providedIn: "root" });
30
+ LayoutService.decorators = [
31
+ { type: Injectable, args: [{
32
+ providedIn: 'root'
33
+ },] }
34
+ ];
35
+ LayoutService.ctorParameters = () => [];
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2xheW91dC9zcmMvbGliL2xheW91dC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFLekMsTUFBTSxPQUFPLGFBQWE7SUFHeEI7UUFGUSxlQUFVLEdBQUcsS0FBSyxDQUFDO0lBRzNCLENBQUM7SUFFRCxJQUFXLFlBQVk7UUFDckIsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDO0lBQ3pCLENBQUM7SUFFTSx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bSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIExheW91dFNlcnZpY2Uge1xuICBwcml2YXRlIGZ1bGxzY3JlZW4gPSBmYWxzZTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgfVxuXG4gIHB1YmxpYyBnZXQgaXNGdWxsc2NyZWVuKCkge1xuICAgIHJldHVybiB0aGlzLmZ1bGxzY3JlZW47XG4gIH1cblxuICBwdWJsaWMgdG9nZ2xlRnVsbHNjcmVlbigpIHtcbiAgICB0aGlzLmZ1bGxzY3JlZW4gPSAhdGhpcy5mdWxsc2NyZWVuO1xuICB9XG5cblxufVxuIl19
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /*
17
+ * Public API Surface of layout
18
+ */
19
+ export * from './lib/layout.service';
20
+ export * from './lib/layout.component';
21
+ export * from './lib/layout.module';
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vbGF5b3V0L3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWN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ICogZnJvbSAnLi9saWIvbGF5b3V0LnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbGF5b3V0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9sYXlvdXQubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,7 @@
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';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1sYXlvdXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2xheW91dC9zcmMvdmFsdGltby1sYXlvdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsdUJBQXVCLElBQUksRUFBRSxFQUFDLE1BQU0saURBQWlELENBQUM7QUFDOUYsT0FBTyxFQUFDLHFCQUFxQixJQUFJLEVBQUUsRUFBQyxNQUFNLDZDQUE2QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge0xheW91dEludGVybmFsQ29tcG9uZW50IGFzIMm1Yn0gZnJvbSAnLi9saWIvbGF5b3V0LWludGVybmFsL2xheW91dC1pbnRlcm5hbC5jb21wb25lbnQnO1xuZXhwb3J0IHtMYXlvdXRQdWJsaWNDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi9sYXlvdXQtcHVibGljL2xheW91dC1wdWJsaWMuY29tcG9uZW50JzsiXX0=