@osovitny/anatoly 3.16.69 → 3.16.71
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/esm2022/lib/core/consts/settings.mjs +19 -4
- package/esm2022/lib/ui/components/identity/signin-button.component.mjs +38 -30
- package/esm2022/lib/ui/components/identity/signout-button.component.mjs +38 -30
- package/fesm2022/osovitny-anatoly.mjs +93 -62
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/consts/settings.d.ts +4 -2
- package/lib/ui/components/identity/signin-button.component.d.ts +1 -1
- package/lib/ui/components/identity/signout-button.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -17,9 +17,24 @@
|
|
|
17
17
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
18
18
|
</file>
|
|
19
19
|
*/
|
|
20
|
+
function getAppSettings(apps, name) {
|
|
21
|
+
if (apps) {
|
|
22
|
+
for (let i = 0; i < apps.length; i++) {
|
|
23
|
+
let app = apps[i];
|
|
24
|
+
if (app.name == name) {
|
|
25
|
+
return app;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
20
31
|
export const AppCoreSettings = JSON.parse((document.getElementById('appCoreSettings')).getAttribute('data-appcoresettings'));
|
|
21
|
-
export const AppName = document.getElementById('appName').getAttribute('data-appname');
|
|
22
|
-
export const AppVersion = `${AppCoreSettings?.appVersion}`;
|
|
23
|
-
export const ApiUrl = `${AppCoreSettings?.apiUrl}`;
|
|
24
32
|
export const L10NUrl = `${AppCoreSettings?.l10nUrl}`;
|
|
25
|
-
|
|
33
|
+
//WebApp
|
|
34
|
+
export const AppVersion = `${AppCoreSettings?.version}`;
|
|
35
|
+
export const ApiUrl = `${AppCoreSettings?.apiUrl}`;
|
|
36
|
+
export const ClientApps = `${AppCoreSettings?.clientApps}`;
|
|
37
|
+
//ClientApp
|
|
38
|
+
export const AppName = document.getElementById('appName').get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BBcHBTZXR0aW5ncyA9IGdldEFwcFNldHRpbmdzKENsaWVudEFwcHMsIEFwcE5hbWUpO1xyXG5cclxuIl19
|
|
@@ -21,45 +21,52 @@ import { MSALConfig } from "../../../iam/consts";
|
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@angular/common";
|
|
23
23
|
import * as i2 from "@angular/router";
|
|
24
|
-
function
|
|
25
|
-
i0.ɵɵ
|
|
26
|
-
i0.ɵɵtext(1, "Sign In");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
24
|
+
function SignInButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementContainer(0);
|
|
28
26
|
} }
|
|
29
27
|
function SignInButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "a",
|
|
31
|
-
i0.ɵɵ
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
28
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
29
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
34
30
|
i0.ɵɵelementEnd();
|
|
35
31
|
} if (rf & 2) {
|
|
36
|
-
const _r2 = i0.ɵɵreference(2);
|
|
37
32
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
const _r2 = i0.ɵɵreference(3);
|
|
38
34
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
39
35
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
40
|
-
i0.ɵɵadvance(
|
|
41
|
-
i0.ɵɵproperty("
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
42
38
|
} }
|
|
43
|
-
function
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵtext(1, "Sign In");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
39
|
+
function SignInButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementContainer(0);
|
|
47
41
|
} }
|
|
48
42
|
function SignInButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
43
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
44
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
53
45
|
i0.ɵɵelementEnd();
|
|
54
46
|
} if (rf & 2) {
|
|
55
|
-
const _r4 = i0.ɵɵreference(2);
|
|
56
47
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
48
|
+
const _r2 = i0.ɵɵreference(3);
|
|
57
49
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
58
50
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
59
|
-
i0.ɵɵadvance(
|
|
60
|
-
i0.ɵɵproperty("
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
53
|
+
} }
|
|
54
|
+
function SignInButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelementStart(0, "span");
|
|
56
|
+
i0.ɵɵtext(1, "Sign In");
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
} }
|
|
59
|
+
function SignInButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
61
|
+
i0.ɵɵprojection(2);
|
|
62
|
+
i0.ɵɵelementEnd();
|
|
63
|
+
i0.ɵɵtemplate(3, SignInButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const _r6 = i0.ɵɵreference(1);
|
|
66
|
+
i0.ɵɵadvance(3);
|
|
67
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
61
68
|
} }
|
|
62
|
-
const _c0 = ["*"
|
|
69
|
+
const _c0 = ["*"];
|
|
63
70
|
export class SignInButtonComponent extends ComponentBase {
|
|
64
71
|
url;
|
|
65
72
|
external = false;
|
|
@@ -69,18 +76,19 @@ export class SignInButtonComponent extends ComponentBase {
|
|
|
69
76
|
this.external = this.url?.indexOf('http') > -1;
|
|
70
77
|
}
|
|
71
78
|
static ɵfac = function SignInButtonComponent_Factory(t) { return new (t || SignInButtonComponent)(); };
|
|
72
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls:
|
|
73
|
-
i0.ɵɵprojectionDef(
|
|
74
|
-
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template,
|
|
75
|
-
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template,
|
|
79
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵprojectionDef();
|
|
81
|
+
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
82
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
83
|
+
i0.ɵɵtemplate(2, SignInButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
76
84
|
} if (rf & 2) {
|
|
77
85
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
78
86
|
i0.ɵɵadvance(1);
|
|
79
87
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
80
|
-
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
88
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.RouterLink], encapsulation: 2 });
|
|
81
89
|
}
|
|
82
90
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
83
91
|
type: Component,
|
|
84
|
-
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
92
|
+
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</ng-template>\r\n" }]
|
|
85
93
|
}], function () { return []; }, null); })();
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmluLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8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wvc3Bhbj5cclxuPC9uZy10ZW1wbGF0ZT5cclxuIl19
|
|
@@ -21,45 +21,52 @@ import { MSALConfig } from "../../../iam/consts";
|
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@angular/common";
|
|
23
23
|
import * as i2 from "@angular/router";
|
|
24
|
-
function
|
|
25
|
-
i0.ɵɵ
|
|
26
|
-
i0.ɵɵtext(1, "Sign Out");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
24
|
+
function SignOutButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementContainer(0);
|
|
28
26
|
} }
|
|
29
27
|
function SignOutButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "a",
|
|
31
|
-
i0.ɵɵ
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵtemplate(4, SignOutButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
28
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
29
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
34
30
|
i0.ɵɵelementEnd();
|
|
35
31
|
} if (rf & 2) {
|
|
36
|
-
const _r2 = i0.ɵɵreference(2);
|
|
37
32
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
const _r2 = i0.ɵɵreference(3);
|
|
38
34
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
39
35
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
40
|
-
i0.ɵɵadvance(
|
|
41
|
-
i0.ɵɵproperty("
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
42
38
|
} }
|
|
43
|
-
function
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵtext(1, "Sign Out");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
39
|
+
function SignOutButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementContainer(0);
|
|
47
41
|
} }
|
|
48
42
|
function SignOutButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵtemplate(4, SignOutButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
43
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
44
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
53
45
|
i0.ɵɵelementEnd();
|
|
54
46
|
} if (rf & 2) {
|
|
55
|
-
const _r4 = i0.ɵɵreference(2);
|
|
56
47
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
48
|
+
const _r2 = i0.ɵɵreference(3);
|
|
57
49
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
58
50
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
59
|
-
i0.ɵɵadvance(
|
|
60
|
-
i0.ɵɵproperty("
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
53
|
+
} }
|
|
54
|
+
function SignOutButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelementStart(0, "span");
|
|
56
|
+
i0.ɵɵtext(1, "Sign Out");
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
} }
|
|
59
|
+
function SignOutButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
61
|
+
i0.ɵɵprojection(2);
|
|
62
|
+
i0.ɵɵelementEnd();
|
|
63
|
+
i0.ɵɵtemplate(3, SignOutButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const _r6 = i0.ɵɵreference(1);
|
|
66
|
+
i0.ɵɵadvance(3);
|
|
67
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
61
68
|
} }
|
|
62
|
-
const _c0 = ["*"
|
|
69
|
+
const _c0 = ["*"];
|
|
63
70
|
export class SignOutButtonComponent extends ComponentBase {
|
|
64
71
|
url;
|
|
65
72
|
external = false;
|
|
@@ -69,18 +76,19 @@ export class SignOutButtonComponent extends ComponentBase {
|
|
|
69
76
|
this.external = this.url?.indexOf('http') > -1;
|
|
70
77
|
}
|
|
71
78
|
static ɵfac = function SignOutButtonComponent_Factory(t) { return new (t || SignOutButtonComponent)(); };
|
|
72
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls:
|
|
73
|
-
i0.ɵɵprojectionDef(
|
|
74
|
-
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template,
|
|
75
|
-
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_Template,
|
|
79
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵprojectionDef();
|
|
81
|
+
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
82
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
83
|
+
i0.ɵɵtemplate(2, SignOutButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
76
84
|
} if (rf & 2) {
|
|
77
85
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
78
86
|
i0.ɵɵadvance(1);
|
|
79
87
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
80
|
-
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
88
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.RouterLink], encapsulation: 2 });
|
|
81
89
|
}
|
|
82
90
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
83
91
|
type: Component,
|
|
84
|
-
args: [{ selector: "anatoly-signout-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
92
|
+
args: [{ selector: "anatoly-signout-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Out</span>\r\n</ng-template>\r\n" }]
|
|
85
93
|
}], function () { return []; }, null); })();
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbm91dC1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4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Z24gT3V0PC9zcGFuPlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
|
|
@@ -62,11 +62,26 @@ import { IconsModule } from '@progress/kendo-angular-icons';
|
|
|
62
62
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
63
63
|
</file>
|
|
64
64
|
*/
|
|
65
|
+
function getAppSettings(apps, name) {
|
|
66
|
+
if (apps) {
|
|
67
|
+
for (let i = 0; i < apps.length; i++) {
|
|
68
|
+
let app = apps[i];
|
|
69
|
+
if (app.name == name) {
|
|
70
|
+
return app;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
65
76
|
const AppCoreSettings = JSON.parse((document.getElementById('appCoreSettings')).getAttribute('data-appcoresettings'));
|
|
66
|
-
const AppName = document.getElementById('appName').getAttribute('data-appname');
|
|
67
|
-
const AppVersion = `${AppCoreSettings?.appVersion}`;
|
|
68
|
-
const ApiUrl = `${AppCoreSettings?.apiUrl}`;
|
|
69
77
|
const L10NUrl = `${AppCoreSettings?.l10nUrl}`;
|
|
78
|
+
//WebApp
|
|
79
|
+
const AppVersion = `${AppCoreSettings?.version}`;
|
|
80
|
+
const ApiUrl = `${AppCoreSettings?.apiUrl}`;
|
|
81
|
+
const ClientApps = `${AppCoreSettings?.clientApps}`;
|
|
82
|
+
//ClientApp
|
|
83
|
+
const AppName = document.getElementById('appName').getAttribute('data-appname');
|
|
84
|
+
const AppSettings = getAppSettings(ClientApps, AppName);
|
|
70
85
|
|
|
71
86
|
/*
|
|
72
87
|
<file>
|
|
@@ -4027,45 +4042,52 @@ class DatapagerComponent {
|
|
|
4027
4042
|
</file>
|
|
4028
4043
|
*/
|
|
4029
4044
|
//Node
|
|
4030
|
-
function
|
|
4031
|
-
i0.ɵɵ
|
|
4032
|
-
i0.ɵɵtext(1, "Sign In");
|
|
4033
|
-
i0.ɵɵelementEnd();
|
|
4045
|
+
function SignInButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4046
|
+
i0.ɵɵelementContainer(0);
|
|
4034
4047
|
} }
|
|
4035
4048
|
function SignInButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
4036
|
-
i0.ɵɵelementStart(0, "a",
|
|
4037
|
-
i0.ɵɵ
|
|
4038
|
-
i0.ɵɵelementEnd();
|
|
4039
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
4049
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
4050
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
4040
4051
|
i0.ɵɵelementEnd();
|
|
4041
4052
|
} if (rf & 2) {
|
|
4042
|
-
const _r2 = i0.ɵɵreference(2);
|
|
4043
4053
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
4054
|
+
const _r2 = i0.ɵɵreference(3);
|
|
4044
4055
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
4045
4056
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
4046
|
-
i0.ɵɵadvance(
|
|
4047
|
-
i0.ɵɵproperty("
|
|
4057
|
+
i0.ɵɵadvance(1);
|
|
4058
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
4048
4059
|
} }
|
|
4049
|
-
function
|
|
4050
|
-
i0.ɵɵ
|
|
4051
|
-
i0.ɵɵtext(1, "Sign In");
|
|
4052
|
-
i0.ɵɵelementEnd();
|
|
4060
|
+
function SignInButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4061
|
+
i0.ɵɵelementContainer(0);
|
|
4053
4062
|
} }
|
|
4054
4063
|
function SignInButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
4055
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
4056
|
-
i0.ɵɵ
|
|
4057
|
-
i0.ɵɵelementEnd();
|
|
4058
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
4064
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
4065
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
4059
4066
|
i0.ɵɵelementEnd();
|
|
4060
4067
|
} if (rf & 2) {
|
|
4061
|
-
const _r4 = i0.ɵɵreference(2);
|
|
4062
4068
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
4069
|
+
const _r2 = i0.ɵɵreference(3);
|
|
4063
4070
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
4064
4071
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
4065
|
-
i0.ɵɵadvance(
|
|
4066
|
-
i0.ɵɵproperty("
|
|
4072
|
+
i0.ɵɵadvance(1);
|
|
4073
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
4074
|
+
} }
|
|
4075
|
+
function SignInButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
4076
|
+
i0.ɵɵelementStart(0, "span");
|
|
4077
|
+
i0.ɵɵtext(1, "Sign In");
|
|
4078
|
+
i0.ɵɵelementEnd();
|
|
4079
|
+
} }
|
|
4080
|
+
function SignInButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
4081
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
4082
|
+
i0.ɵɵprojection(2);
|
|
4083
|
+
i0.ɵɵelementEnd();
|
|
4084
|
+
i0.ɵɵtemplate(3, SignInButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
4085
|
+
} if (rf & 2) {
|
|
4086
|
+
const _r6 = i0.ɵɵreference(1);
|
|
4087
|
+
i0.ɵɵadvance(3);
|
|
4088
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
4067
4089
|
} }
|
|
4068
|
-
const _c0$c = ["*"
|
|
4090
|
+
const _c0$c = ["*"];
|
|
4069
4091
|
class SignInButtonComponent extends ComponentBase {
|
|
4070
4092
|
url;
|
|
4071
4093
|
external = false;
|
|
@@ -4075,19 +4097,20 @@ class SignInButtonComponent extends ComponentBase {
|
|
|
4075
4097
|
this.external = this.url?.indexOf('http') > -1;
|
|
4076
4098
|
}
|
|
4077
4099
|
static ɵfac = function SignInButtonComponent_Factory(t) { return new (t || SignInButtonComponent)(); };
|
|
4078
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$c, decls:
|
|
4079
|
-
i0.ɵɵprojectionDef(
|
|
4080
|
-
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template,
|
|
4081
|
-
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template,
|
|
4100
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$c, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4101
|
+
i0.ɵɵprojectionDef();
|
|
4102
|
+
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
4103
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
4104
|
+
i0.ɵɵtemplate(2, SignInButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
4082
4105
|
} if (rf & 2) {
|
|
4083
4106
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
4084
4107
|
i0.ɵɵadvance(1);
|
|
4085
4108
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
4086
|
-
} }, dependencies: [i1$2.NgIf, i1.RouterLink], encapsulation: 2 });
|
|
4109
|
+
} }, dependencies: [i1$2.NgIf, i1$2.NgTemplateOutlet, i1.RouterLink], encapsulation: 2 });
|
|
4087
4110
|
}
|
|
4088
4111
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
4089
4112
|
type: Component,
|
|
4090
|
-
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
4113
|
+
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</ng-template>\r\n" }]
|
|
4091
4114
|
}], function () { return []; }, null); })();
|
|
4092
4115
|
|
|
4093
4116
|
/*
|
|
@@ -4106,45 +4129,52 @@ class SignInButtonComponent extends ComponentBase {
|
|
|
4106
4129
|
</file>
|
|
4107
4130
|
*/
|
|
4108
4131
|
//Node
|
|
4109
|
-
function
|
|
4110
|
-
i0.ɵɵ
|
|
4111
|
-
i0.ɵɵtext(1, "Sign Out");
|
|
4112
|
-
i0.ɵɵelementEnd();
|
|
4132
|
+
function SignOutButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4133
|
+
i0.ɵɵelementContainer(0);
|
|
4113
4134
|
} }
|
|
4114
4135
|
function SignOutButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
4115
|
-
i0.ɵɵelementStart(0, "a",
|
|
4116
|
-
i0.ɵɵ
|
|
4117
|
-
i0.ɵɵelementEnd();
|
|
4118
|
-
i0.ɵɵtemplate(4, SignOutButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
4136
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
4137
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
4119
4138
|
i0.ɵɵelementEnd();
|
|
4120
4139
|
} if (rf & 2) {
|
|
4121
|
-
const _r2 = i0.ɵɵreference(2);
|
|
4122
4140
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
4141
|
+
const _r2 = i0.ɵɵreference(3);
|
|
4123
4142
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
4124
4143
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
4125
|
-
i0.ɵɵadvance(
|
|
4126
|
-
i0.ɵɵproperty("
|
|
4144
|
+
i0.ɵɵadvance(1);
|
|
4145
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
4127
4146
|
} }
|
|
4128
|
-
function
|
|
4129
|
-
i0.ɵɵ
|
|
4130
|
-
i0.ɵɵtext(1, "Sign Out");
|
|
4131
|
-
i0.ɵɵelementEnd();
|
|
4147
|
+
function SignOutButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4148
|
+
i0.ɵɵelementContainer(0);
|
|
4132
4149
|
} }
|
|
4133
4150
|
function SignOutButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
4134
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
4135
|
-
i0.ɵɵ
|
|
4136
|
-
i0.ɵɵelementEnd();
|
|
4137
|
-
i0.ɵɵtemplate(4, SignOutButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
4151
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
4152
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
4138
4153
|
i0.ɵɵelementEnd();
|
|
4139
4154
|
} if (rf & 2) {
|
|
4140
|
-
const _r4 = i0.ɵɵreference(2);
|
|
4141
4155
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
4156
|
+
const _r2 = i0.ɵɵreference(3);
|
|
4142
4157
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
4143
4158
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
4144
|
-
i0.ɵɵadvance(
|
|
4145
|
-
i0.ɵɵproperty("
|
|
4159
|
+
i0.ɵɵadvance(1);
|
|
4160
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
4146
4161
|
} }
|
|
4147
|
-
|
|
4162
|
+
function SignOutButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
4163
|
+
i0.ɵɵelementStart(0, "span");
|
|
4164
|
+
i0.ɵɵtext(1, "Sign Out");
|
|
4165
|
+
i0.ɵɵelementEnd();
|
|
4166
|
+
} }
|
|
4167
|
+
function SignOutButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
4168
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
4169
|
+
i0.ɵɵprojection(2);
|
|
4170
|
+
i0.ɵɵelementEnd();
|
|
4171
|
+
i0.ɵɵtemplate(3, SignOutButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
4172
|
+
} if (rf & 2) {
|
|
4173
|
+
const _r6 = i0.ɵɵreference(1);
|
|
4174
|
+
i0.ɵɵadvance(3);
|
|
4175
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
4176
|
+
} }
|
|
4177
|
+
const _c0$b = ["*"];
|
|
4148
4178
|
class SignOutButtonComponent extends ComponentBase {
|
|
4149
4179
|
url;
|
|
4150
4180
|
external = false;
|
|
@@ -4154,19 +4184,20 @@ class SignOutButtonComponent extends ComponentBase {
|
|
|
4154
4184
|
this.external = this.url?.indexOf('http') > -1;
|
|
4155
4185
|
}
|
|
4156
4186
|
static ɵfac = function SignOutButtonComponent_Factory(t) { return new (t || SignOutButtonComponent)(); };
|
|
4157
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$b, decls:
|
|
4158
|
-
i0.ɵɵprojectionDef(
|
|
4159
|
-
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template,
|
|
4160
|
-
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_Template,
|
|
4187
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$b, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4188
|
+
i0.ɵɵprojectionDef();
|
|
4189
|
+
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
4190
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
4191
|
+
i0.ɵɵtemplate(2, SignOutButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
4161
4192
|
} if (rf & 2) {
|
|
4162
4193
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
4163
4194
|
i0.ɵɵadvance(1);
|
|
4164
4195
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
4165
|
-
} }, dependencies: [i1$2.NgIf, i1.RouterLink], encapsulation: 2 });
|
|
4196
|
+
} }, dependencies: [i1$2.NgIf, i1$2.NgTemplateOutlet, i1.RouterLink], encapsulation: 2 });
|
|
4166
4197
|
}
|
|
4167
4198
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
4168
4199
|
type: Component,
|
|
4169
|
-
args: [{ selector: "anatoly-signout-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
4200
|
+
args: [{ selector: "anatoly-signout-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Out</span>\r\n</ng-template>\r\n" }]
|
|
4170
4201
|
}], function () { return []; }, null); })();
|
|
4171
4202
|
|
|
4172
4203
|
/*
|
|
@@ -7122,5 +7153,5 @@ class AnatolyModule {
|
|
|
7122
7153
|
* Generated bundle index. Do not edit.
|
|
7123
7154
|
*/
|
|
7124
7155
|
|
|
7125
|
-
export { AddressComponent, AdminGuard, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppVersion, AuthService, AuthenticationGuard, BaseGoService, Browser, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, DOM, DatapagerComponent, DefaultEditorOptions, DialogBase, DigitalMarketingService, EditComponentBase, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, GlobalErrorHandler, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, InjectorInstance, ItemValidationSummaryComponent, L10NUrl, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, MSALUtils, NativeElementDirective, NodataComponent, NotificationService, PageBase, PageSpinnerComponent, PagedPageBase, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterServiceBase, Stopwatch, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, localizationInitializerFactory, throwIfAlreadyLoaded, translateLoaderFactory };
|
|
7156
|
+
export { AddressComponent, AdminGuard, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppSettings, AppVersion, AuthService, AuthenticationGuard, BaseGoService, Browser, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, DOM, DatapagerComponent, DefaultEditorOptions, DialogBase, DigitalMarketingService, EditComponentBase, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, GlobalErrorHandler, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, InjectorInstance, ItemValidationSummaryComponent, L10NUrl, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, MSALUtils, NativeElementDirective, NodataComponent, NotificationService, PageBase, PageSpinnerComponent, PagedPageBase, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterServiceBase, Stopwatch, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, localizationInitializerFactory, throwIfAlreadyLoaded, translateLoaderFactory };
|
|
7126
7157
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|