@valtimo/layout 4.23.0 → 5.2.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/css/app.css +38 -37
- package/esm2020/lib/layout-internal/layout-internal.component.mjs +57 -0
- package/esm2020/lib/layout-public/layout-public.component.mjs +29 -0
- package/esm2020/lib/layout.component.mjs +51 -0
- package/esm2020/lib/layout.module.mjs +62 -0
- package/esm2020/lib/layout.service.mjs +37 -0
- package/esm2020/public_api.mjs +22 -0
- package/esm2020/valtimo-layout.mjs +5 -0
- package/fesm2015/valtimo-layout.mjs +240 -0
- package/fesm2015/valtimo-layout.mjs.map +1 -0
- package/fesm2020/valtimo-layout.mjs +240 -0
- package/fesm2020/valtimo-layout.mjs.map +1 -0
- package/lib/layout-internal/layout-internal.component.d.ts +8 -1
- package/lib/layout-internal/layout-internal.component.d.ts.map +1 -0
- package/lib/layout-public/layout-public.component.d.ts +4 -0
- package/lib/layout-public/layout-public.component.d.ts.map +1 -0
- package/lib/layout.component.d.ts +4 -0
- package/lib/layout.component.d.ts.map +1 -0
- package/lib/layout.module.d.ts +11 -0
- package/lib/layout.module.d.ts.map +1 -0
- package/lib/layout.service.d.ts +4 -0
- package/lib/layout.service.d.ts.map +1 -0
- package/package.json +22 -11
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -0
- package/valtimo-layout.d.ts +2 -2
- package/valtimo-layout.d.ts.map +1 -0
- package/bundles/valtimo-layout.umd.js +0 -244
- package/bundles/valtimo-layout.umd.js.map +0 -1
- package/bundles/valtimo-layout.umd.min.js +0 -2
- package/bundles/valtimo-layout.umd.min.js.map +0 -1
- package/esm2015/lib/layout-internal/layout-internal.component.js +0 -55
- package/esm2015/lib/layout-public/layout-public.component.js +0 -29
- package/esm2015/lib/layout.component.js +0 -50
- package/esm2015/lib/layout.module.js +0 -41
- package/esm2015/lib/layout.service.js +0 -36
- package/esm2015/public_api.js +0 -22
- package/esm2015/valtimo-layout.js +0 -7
- package/fesm2015/valtimo-layout.js +0 -223
- package/fesm2015/valtimo-layout.js.map +0 -1
- package/valtimo-layout.metadata.json +0 -1
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { LayoutService } from '../layout.service';
|
|
4
|
+
import { UserInterfaceService } from '@valtimo/user-interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class LayoutInternalComponent implements AfterViewInit {
|
|
5
7
|
layoutService: LayoutService;
|
|
6
8
|
private renderer;
|
|
9
|
+
private readonly userInterfaceService;
|
|
7
10
|
wrapperRef: ElementRef;
|
|
8
11
|
readonly menuOpen$: BehaviorSubject<boolean>;
|
|
9
12
|
readonly menuWidth$: BehaviorSubject<number>;
|
|
10
13
|
readonly observer: MutationObserver;
|
|
11
|
-
|
|
14
|
+
readonly showPageHeader$: import("rxjs").Observable<boolean>;
|
|
15
|
+
constructor(layoutService: LayoutService, renderer: Renderer2, userInterfaceService: UserInterfaceService);
|
|
12
16
|
ngAfterViewInit(): void;
|
|
13
17
|
menuWidthChanged(width: number): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutInternalComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutInternalComponent, "valtimo-layout-internal", never, {}, {}, never, never>;
|
|
14
20
|
}
|
|
21
|
+
//# sourceMappingURL=layout-internal.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-internal.component.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/layout-internal/layout-internal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,aAAa,EAAa,UAAU,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AACzF,OAAO,EAAC,eAAe,EAAC,MAAM,MAAM,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;;AAK7D,qBAKa,uBAAwB,YAAW,aAAa;IAalD,aAAa,EAAE,aAAa;IACnC,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAdjB,UAAU,EAAE,UAAU,CAAC;IAE7C,QAAQ,CAAC,SAAS,2BAAsC;IACxD,QAAQ,CAAC,UAAU,0BAA0C;IAE7D,QAAQ,CAAC,QAAQ,mBAEf;IAEF,QAAQ,CAAC,eAAe,qCAA6C;gBAG5D,aAAa,EAAE,aAAa,EAC3B,QAAQ,EAAE,SAAS,EACV,oBAAoB,EAAE,oBAAoB;IAK7D,eAAe,IAAI,IAAI;IAWvB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;yCA/B1B,uBAAuB;2CAAvB,uBAAuB;CAkCnC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class LayoutPublicComponent implements OnInit {
|
|
3
4
|
constructor();
|
|
4
5
|
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutPublicComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutPublicComponent, "valtimo-layout-public", never, {}, {}, never, never>;
|
|
5
8
|
}
|
|
9
|
+
//# sourceMappingURL=layout-public.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-public.component.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/layout-public/layout-public.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEhD,qBAKa,qBAAsB,YAAW,MAAM;;IAGlD,QAAQ;yCAHG,qBAAqB;2CAArB,qBAAqB;CAIjC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LayoutComponent implements OnInit, OnDestroy {
|
|
4
5
|
private router;
|
|
5
6
|
private route;
|
|
@@ -9,4 +10,7 @@ export declare class LayoutComponent implements OnInit, OnDestroy {
|
|
|
9
10
|
constructor(router: Router, route: ActivatedRoute);
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "valtimo-layout", never, {}, {}, never, never>;
|
|
12
15
|
}
|
|
16
|
+
//# sourceMappingURL=layout.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.component.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/layout/src/lib/layout.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,cAAc,EAAiB,MAAM,EAAC,MAAM,iBAAiB,CAAC;;AAOtE,qBAIa,eAAgB,YAAW,MAAM,EAAE,SAAS;IAK3C,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAJ1C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IACxC,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,aAAa,CAAc;gBAEf,MAAM,EAAE,MAAM,EAAU,KAAK,EAAE,cAAc;IAEjE,QAAQ;IASR,WAAW;yCAhBA,eAAe;2CAAf,eAAe;CAmB3B"}
|
package/lib/layout.module.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./layout.component";
|
|
3
|
+
import * as i2 from "./layout-public/layout-public.component";
|
|
4
|
+
import * as i3 from "./layout-internal/layout-internal.component";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "@valtimo/components";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
1
8
|
export declare class LayoutModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, [typeof i1.LayoutComponent, typeof i2.LayoutPublicComponent, typeof i3.LayoutInternalComponent], [typeof i4.RouterModule, typeof i5.MenuRoutingModule, typeof i5.TopbarModule, typeof i5.LeftSidebarModule, typeof i5.RightSidebarModule, typeof i5.PageHeaderModule, typeof i5.AlertModule, typeof i6.CommonModule], [typeof i1.LayoutComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
|
|
2
12
|
}
|
|
13
|
+
//# sourceMappingURL=layout.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/layout/src/lib/layout.module.ts"],"names":[],"mappings":";;;;;;;AA+BA,qBAca,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
|
package/lib/layout.service.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class LayoutService {
|
|
2
3
|
private fullscreen;
|
|
3
4
|
constructor();
|
|
4
5
|
get isFullscreen(): boolean;
|
|
5
6
|
toggleFullscreen(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
6
9
|
}
|
|
10
|
+
//# sourceMappingURL=layout.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.service.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/layout/src/lib/layout.service.ts"],"names":[],"mappings":";AAkBA,qBAGa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAS;;IAI3B,IAAW,YAAY,YAEtB;IAEM,gBAAgB;yCATZ,aAAa;6CAAb,aAAa;CAYzB"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valtimo/layout",
|
|
3
3
|
"license": "EUPL-1.2",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/common": "^13.2.3",
|
|
7
|
+
"@angular/core": "^13.2.3"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@foxythemes/material-design-iconic-font": "^2.2.1",
|
|
@@ -52,17 +52,28 @@
|
|
|
52
52
|
"raphael": "^2.1.0",
|
|
53
53
|
"roboto-fontface": "~0.4.3",
|
|
54
54
|
"select2": "^4.0.3",
|
|
55
|
-
"summernote": "^0.8.10",
|
|
56
55
|
"sweetalert2": "^7.26.28",
|
|
57
56
|
"tinycolor2": "^1.2.1",
|
|
58
57
|
"tslib": "^2.0.0"
|
|
59
58
|
},
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"fesm2015": "fesm2015/valtimo-layout.
|
|
59
|
+
"module": "fesm2015/valtimo-layout.mjs",
|
|
60
|
+
"es2020": "fesm2020/valtimo-layout.mjs",
|
|
61
|
+
"esm2020": "esm2020/valtimo-layout.mjs",
|
|
62
|
+
"fesm2020": "fesm2020/valtimo-layout.mjs",
|
|
63
|
+
"fesm2015": "fesm2015/valtimo-layout.mjs",
|
|
65
64
|
"typings": "valtimo-layout.d.ts",
|
|
66
|
-
"
|
|
65
|
+
"exports": {
|
|
66
|
+
"./package.json": {
|
|
67
|
+
"default": "./package.json"
|
|
68
|
+
},
|
|
69
|
+
".": {
|
|
70
|
+
"types": "./valtimo-layout.d.ts",
|
|
71
|
+
"esm2020": "./esm2020/valtimo-layout.mjs",
|
|
72
|
+
"es2020": "./fesm2020/valtimo-layout.mjs",
|
|
73
|
+
"es2015": "./fesm2015/valtimo-layout.mjs",
|
|
74
|
+
"node": "./fesm2015/valtimo-layout.mjs",
|
|
75
|
+
"default": "./fesm2020/valtimo-layout.mjs"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
67
78
|
"sideEffects": false
|
|
68
|
-
}
|
|
79
|
+
}
|
package/public_api.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/layout/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC"}
|
package/valtimo-layout.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
+
/// <amd-module name="@valtimo/layout" />
|
|
4
5
|
export * from './public_api';
|
|
5
|
-
|
|
6
|
-
export { LayoutPublicComponent as ɵa } from './lib/layout-public/layout-public.component';
|
|
6
|
+
//# sourceMappingURL=valtimo-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valtimo-layout.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/layout/src/valtimo-layout.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
|
@@ -1,244 +0,0 @@
|
|
|
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
|
|
72
|
-
.pipe(operators.filter(function (event) { return event instanceof router.NavigationEnd; }))
|
|
73
|
-
.subscribe(function () {
|
|
74
|
-
var layout = _this.route.snapshot.firstChild.data.layout;
|
|
75
|
-
_this.layoutType = layout ? layout : _this.defaultLayout;
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
LayoutComponent.prototype.ngOnDestroy = function () {
|
|
79
|
-
this.routerSub.unsubscribe();
|
|
80
|
-
};
|
|
81
|
-
return LayoutComponent;
|
|
82
|
-
}());
|
|
83
|
-
LayoutComponent.decorators = [
|
|
84
|
-
{ type: i0.Component, args: [{
|
|
85
|
-
selector: 'valtimo-layout',
|
|
86
|
-
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"
|
|
87
|
-
},] }
|
|
88
|
-
];
|
|
89
|
-
LayoutComponent.ctorParameters = function () { return [
|
|
90
|
-
{ type: router.Router },
|
|
91
|
-
{ type: router.ActivatedRoute }
|
|
92
|
-
]; };
|
|
93
|
-
|
|
94
|
-
/*
|
|
95
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
96
|
-
*
|
|
97
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
98
|
-
* you may not use this file except in compliance with the License.
|
|
99
|
-
* You may obtain a copy of the License at
|
|
100
|
-
*
|
|
101
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
102
|
-
*
|
|
103
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
104
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
105
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
106
|
-
* See the License for the specific language governing permissions and
|
|
107
|
-
* limitations under the License.
|
|
108
|
-
*/
|
|
109
|
-
var LayoutPublicComponent = /** @class */ (function () {
|
|
110
|
-
function LayoutPublicComponent() {
|
|
111
|
-
}
|
|
112
|
-
LayoutPublicComponent.prototype.ngOnInit = function () { };
|
|
113
|
-
return LayoutPublicComponent;
|
|
114
|
-
}());
|
|
115
|
-
LayoutPublicComponent.decorators = [
|
|
116
|
-
{ type: i0.Component, args: [{
|
|
117
|
-
selector: 'valtimo-layout-public',
|
|
118
|
-
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",
|
|
119
|
-
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%}}"]
|
|
120
|
-
},] }
|
|
121
|
-
];
|
|
122
|
-
LayoutPublicComponent.ctorParameters = function () { return []; };
|
|
123
|
-
|
|
124
|
-
/*
|
|
125
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
126
|
-
*
|
|
127
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
128
|
-
* you may not use this file except in compliance with the License.
|
|
129
|
-
* You may obtain a copy of the License at
|
|
130
|
-
*
|
|
131
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
132
|
-
*
|
|
133
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
135
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
-
* See the License for the specific language governing permissions and
|
|
137
|
-
* limitations under the License.
|
|
138
|
-
*/
|
|
139
|
-
var LayoutInternalComponent = /** @class */ (function () {
|
|
140
|
-
function LayoutInternalComponent(layoutService, renderer) {
|
|
141
|
-
var _this = this;
|
|
142
|
-
this.layoutService = layoutService;
|
|
143
|
-
this.renderer = renderer;
|
|
144
|
-
this.menuOpen$ = new rxjs.BehaviorSubject(true);
|
|
145
|
-
this.menuWidth$ = new rxjs.BehaviorSubject(undefined);
|
|
146
|
-
this.observer = new MutationObserver(function (e) { return _this.menuOpen$.next(!e[0].target.className.includes('be-collapsible-sidebar-collapsed')); });
|
|
147
|
-
this.renderer.addClass(document.body, 'be-animate');
|
|
148
|
-
}
|
|
149
|
-
LayoutInternalComponent.prototype.ngAfterViewInit = function () {
|
|
150
|
-
App.init();
|
|
151
|
-
this.observer.observe(this.wrapperRef.nativeElement, {
|
|
152
|
-
attributes: true,
|
|
153
|
-
attributeFilter: ['class'],
|
|
154
|
-
childList: false,
|
|
155
|
-
characterData: false,
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
LayoutInternalComponent.prototype.menuWidthChanged = function (width) {
|
|
159
|
-
this.menuWidth$.next(width);
|
|
160
|
-
};
|
|
161
|
-
return LayoutInternalComponent;
|
|
162
|
-
}());
|
|
163
|
-
LayoutInternalComponent.decorators = [
|
|
164
|
-
{ type: i0.Component, args: [{
|
|
165
|
-
selector: 'valtimo-layout-internal',
|
|
166
|
-
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",
|
|
167
|
-
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}}"]
|
|
168
|
-
},] }
|
|
169
|
-
];
|
|
170
|
-
LayoutInternalComponent.ctorParameters = function () { return [
|
|
171
|
-
{ type: LayoutService },
|
|
172
|
-
{ type: i0.Renderer2 }
|
|
173
|
-
]; };
|
|
174
|
-
LayoutInternalComponent.propDecorators = {
|
|
175
|
-
wrapperRef: [{ type: i0.ViewChild, args: ['wrapper',] }]
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
/*
|
|
179
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
180
|
-
*
|
|
181
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
182
|
-
* you may not use this file except in compliance with the License.
|
|
183
|
-
* You may obtain a copy of the License at
|
|
184
|
-
*
|
|
185
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
186
|
-
*
|
|
187
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
188
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
189
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
-
* See the License for the specific language governing permissions and
|
|
191
|
-
* limitations under the License.
|
|
192
|
-
*/
|
|
193
|
-
var LayoutModule = /** @class */ (function () {
|
|
194
|
-
function LayoutModule() {
|
|
195
|
-
}
|
|
196
|
-
return LayoutModule;
|
|
197
|
-
}());
|
|
198
|
-
LayoutModule.decorators = [
|
|
199
|
-
{ type: i0.NgModule, args: [{
|
|
200
|
-
declarations: [LayoutComponent, LayoutPublicComponent, LayoutInternalComponent],
|
|
201
|
-
imports: [
|
|
202
|
-
router.RouterModule,
|
|
203
|
-
components.MenuRoutingModule,
|
|
204
|
-
components.TopbarModule,
|
|
205
|
-
components.LeftSidebarModule,
|
|
206
|
-
components.RightSidebarModule,
|
|
207
|
-
components.PageHeaderModule,
|
|
208
|
-
components.AlertModule,
|
|
209
|
-
common.CommonModule,
|
|
210
|
-
],
|
|
211
|
-
exports: [LayoutComponent],
|
|
212
|
-
},] }
|
|
213
|
-
];
|
|
214
|
-
|
|
215
|
-
/*
|
|
216
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
217
|
-
*
|
|
218
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
219
|
-
* you may not use this file except in compliance with the License.
|
|
220
|
-
* You may obtain a copy of the License at
|
|
221
|
-
*
|
|
222
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
223
|
-
*
|
|
224
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
225
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
226
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
227
|
-
* See the License for the specific language governing permissions and
|
|
228
|
-
* limitations under the License.
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Generated bundle index. Do not edit.
|
|
233
|
-
*/
|
|
234
|
-
|
|
235
|
-
exports.LayoutComponent = LayoutComponent;
|
|
236
|
-
exports.LayoutModule = LayoutModule;
|
|
237
|
-
exports.LayoutService = LayoutService;
|
|
238
|
-
exports.ɵa = LayoutPublicComponent;
|
|
239
|
-
exports.ɵb = LayoutInternalComponent;
|
|
240
|
-
|
|
241
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
242
|
-
|
|
243
|
-
})));
|
|
244
|
-
//# sourceMappingURL=valtimo-layout.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, 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 public layoutType: string | null = null;\n private routerSub = Subscription.EMPTY;\n private defaultLayout = 'internal';\n\n constructor(private router: Router, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.routerSub = this.router.events\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => {\n const layout = this.route.snapshot.firstChild.data.layout;\n this.layoutType = layout ? layout : this.defaultLayout;\n });\n }\n\n ngOnDestroy() {\n this.routerSub.unsubscribe();\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-layout-public',\n templateUrl: './layout-public.component.html',\n styleUrls: ['./layout-public.component.scss'],\n})\nexport class LayoutPublicComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\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 {\n AlertModule,\n LeftSidebarModule,\n MenuRoutingModule,\n PageHeaderModule,\n RightSidebarModule,\n TopbarModule,\n} from '@valtimo/components';\nimport {RouterModule} from '@angular/router';\nimport {LayoutPublicComponent} from './layout-public/layout-public.component';\nimport {LayoutInternalComponent} from './layout-internal/layout-internal.component';\nimport {CommonModule} from '@angular/common';\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 * 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;SAEX;QAEhB,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;;;;;gBAdFA,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;;ICpBD;;;;;;;;;;;;;;;;QAgCE,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;SAEkC;QAErE,kCAAQ,GAAR;YAAA,iBAOC;YANC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,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GAAf;YACE,GAAG,CAAC,IAAI,EAAE,CAAC;YAEX,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;gBACnD,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,CAAC,OAAO,CAAC;gBAC1B,SAAS,EAAE,KAAK;gBAChB,aAAa,EAAE,KAAK;aACrB,CAAC,CAAC;SACJ;QAED,kDAAgB,GAAhB,UAAiB,KAAa;YAC5B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7B;;;;gBAhCFH,YAAS,SAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,++CAA+C;;iBAEhD;;;gBARO,aAAa;gBAFyBI,YAAS;;;6BAYpDC,YAAS,SAAC,SAAS;;;IC5BtB;;;;;;;;;;;;;;;;QA6CA;;;;;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;;;IC5CD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(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"],n):n(((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,n,t,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=n.ɵɵdefineInjectable({factory:function(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[]};var u=function(){function e(e,n){this.router=e,this.route=n,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 t.NavigationEnd}))).subscribe((function(){var n=e.route.snapshot.firstChild.data.layout;e.layoutType=n||e.defaultLayout}))},e.prototype.ngOnDestroy=function(){this.routerSub.unsubscribe()},e}();u.decorators=[{type:n.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:t.Router},{type:t.ActivatedRoute}]};var l=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();l.decorators=[{type:n.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,n){var t=this;this.layoutService=e,this.renderer=n,this.menuOpen$=new o.BehaviorSubject(!0),this.menuWidth$=new o.BehaviorSubject(void 0),this.observer=new MutationObserver((function(e){return t.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:n.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]="\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 \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:n.Renderer2}]},c.propDecorators={wrapperRef:[{type:n.ViewChild,args:["wrapper"]}]};var p=function(){};p.decorators=[{type:n.NgModule,args:[{declarations:[u,l,c],imports:[t.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
|
|
@@ -1 +0,0 @@
|
|
|
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,SAIrBC,OAAAC,eAAWJ,EAAAK,UAAA,eAAY,KAAvB,WACE,OAAOJ,KAAKC,4CAGPF,EAAAK,UAAAC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AiB,CAAC,SAClBC,WAAW,EACXC,eAAe,KAInB1B,EAAAjC,UAAA4D,iBAAA,SAAiBC,GACfjE,KAAK0C,WAAWK,KAAKkB,6BA/BxBlC,EAAAA,UAASxB,KAAA,CAAC,CACTyB,SAAU,0BACVC,SAAA,0tEANMlC,SAFsCmE,EAAAA,iDAY3CC,EAAAA,UAAS5D,KAAA,CAAC,oBCiBb,iCAdC6D,EAAAA,SAAQ7D,KAAA,CAAC,CACR8D,aAAc,CAAC5D,EAAiB2B,EAAuBC,GACvDiC,QAAS,CACPC,EAAAA,aACAC,EAAAA,kBACAC,EAAAA,aACAC,EAAAA,kBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,YACAC,EAAAA,cAEFC,QAAS,CAACtE","sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LayoutService {\n private fullscreen = false;\n\n constructor() {}\n\n public get isFullscreen() {\n return this.fullscreen;\n }\n\n public toggleFullscreen() {\n this.fullscreen = !this.fullscreen;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, 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 public layoutType: string | null = null;\n private routerSub = Subscription.EMPTY;\n private defaultLayout = 'internal';\n\n constructor(private router: Router, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.routerSub = this.router.events\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => {\n const layout = this.route.snapshot.firstChild.data.layout;\n this.layoutType = layout ? layout : this.defaultLayout;\n });\n }\n\n ngOnDestroy() {\n this.routerSub.unsubscribe();\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit} from '@angular/core';\n\n@Component({\n selector: 'valtimo-layout-public',\n templateUrl: './layout-public.component.html',\n styleUrls: ['./layout-public.component.scss'],\n})\nexport class LayoutPublicComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\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 {\n AlertModule,\n LeftSidebarModule,\n MenuRoutingModule,\n PageHeaderModule,\n RightSidebarModule,\n TopbarModule,\n} from '@valtimo/components';\nimport {RouterModule} from '@angular/router';\nimport {LayoutPublicComponent} from './layout-public/layout-public.component';\nimport {LayoutInternalComponent} from './layout-internal/layout-internal.component';\nimport {CommonModule} from '@angular/common';\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"]}
|
|
@@ -1,55 +0,0 @@
|
|
|
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]=\"\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",
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LWludGVybmFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtMGU4NGY2MGYvd29ya3NwYWNlL3JvbnRlbmRfbGlicmFyaWVzXy1fcmVsZWFzZV9tYWluL3Byb2plY3RzL3ZhbHRpbW8vbGF5b3V0L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9sYXlvdXQtaW50ZXJuYWwvbGF5b3V0LWludGVybmFsLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBZ0IsU0FBUyxFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pGLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSx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5kZXJlcjogUmVuZGVyZXIyKSB7XG4gICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyhkb2N1bWVudC5ib2R5LCAnYmUtYW5pbWF0ZScpO1xuICB9XG5cbiAgbmdBZnRlclZpZXdJbml0KCk6IHZvaWQge1xuICAgIEFwcC5pbml0KCk7XG5cbiAgICB0aGlzLm9ic2VydmVyLm9ic2VydmUodGhpcy53cmFwcGVyUmVmLm5hdGl2ZUVsZW1lbnQsIHtcbiAgICAgIGF0dHJpYnV0ZXM6IHRydWUsXG4gICAgICBhdHRyaWJ1dGVGaWx0ZXI6IFsnY2xhc3MnXSxcbiAgICAgIGNoaWxkTGlzdDogZmFsc2UsXG4gICAgICBjaGFyYWN0ZXJEYXRhOiBmYWxzZSxcbiAgICB9KTtcbiAgfVxuXG4gIG1lbnVXaWR0aENoYW5nZWQod2lkdGg6IG51bWJlcik6IHZvaWQge1xuICAgIHRoaXMubWVudVdpZHRoJC5uZXh0KHdpZHRoKTtcbiAgfVxufVxuIl19
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
LayoutPublicComponent.decorators = [
|
|
22
|
-
{ type: Component, args: [{
|
|
23
|
-
selector: 'valtimo-layout-public',
|
|
24
|
-
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",
|
|
25
|
-
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%}}"]
|
|
26
|
-
},] }
|
|
27
|
-
];
|
|
28
|
-
LayoutPublicComponent.ctorParameters = () => [];
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LXB1YmxpYy5j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