@osovitny/anatoly 3.16.65 → 3.16.67
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/ui/components/identity/signin-button.component.mjs +49 -15
- package/esm2022/lib/ui/components/identity/signout-button.component.mjs +7 -3
- package/esm2022/lib/ui/components/identity/signup-button.component.mjs +7 -3
- package/fesm2022/osovitny-anatoly.mjs +57 -18
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/identity/signin-button.component.d.ts +3 -1
- package/lib/ui/components/identity/signout-button.component.d.ts +1 -0
- package/lib/ui/components/identity/signup-button.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -17,36 +17,70 @@
|
|
|
17
17
|
import { Component } from "@angular/core";
|
|
18
18
|
//App
|
|
19
19
|
import { ComponentBase } from "../base/component";
|
|
20
|
+
import { MSALConfig } from "../../../iam/consts";
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
import * as i1 from "@angular/common";
|
|
22
23
|
import * as i2 from "@angular/router";
|
|
23
|
-
function
|
|
24
|
+
function SignInButtonComponent_a_0_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
25
|
i0.ɵɵelementStart(0, "span");
|
|
25
26
|
i0.ɵɵtext(1, "Sign In");
|
|
26
27
|
i0.ɵɵelementEnd();
|
|
27
28
|
} }
|
|
28
|
-
|
|
29
|
+
function SignInButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵelementStart(0, "a", 2)(1, "span", null, 3);
|
|
31
|
+
i0.ɵɵprojection(3);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵtemplate(4, SignInButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
} if (rf & 2) {
|
|
36
|
+
const _r2 = i0.ɵɵreference(2);
|
|
37
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
38
|
+
i0.ɵɵclassMap(ctx_r0.classes);
|
|
39
|
+
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
40
|
+
i0.ɵɵadvance(4);
|
|
41
|
+
i0.ɵɵproperty("ngIf", !_r2.innerHTML.trim());
|
|
42
|
+
} }
|
|
43
|
+
function SignInButtonComponent_a_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
+
i0.ɵɵelementStart(0, "span");
|
|
45
|
+
i0.ɵɵtext(1, "Sign In");
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
} }
|
|
48
|
+
function SignInButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
+
i0.ɵɵelementStart(0, "a", 5)(1, "span", null, 3);
|
|
50
|
+
i0.ɵɵprojection(3, 1);
|
|
51
|
+
i0.ɵɵelementEnd();
|
|
52
|
+
i0.ɵɵtemplate(4, SignInButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
53
|
+
i0.ɵɵelementEnd();
|
|
54
|
+
} if (rf & 2) {
|
|
55
|
+
const _r4 = i0.ɵɵreference(2);
|
|
56
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
57
|
+
i0.ɵɵclassMap(ctx_r1.classes);
|
|
58
|
+
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
59
|
+
i0.ɵɵadvance(4);
|
|
60
|
+
i0.ɵɵproperty("ngIf", !_r4.innerHTML.trim());
|
|
61
|
+
} }
|
|
62
|
+
const _c0 = ["*", "*"];
|
|
29
63
|
export class SignInButtonComponent extends ComponentBase {
|
|
64
|
+
external = false;
|
|
65
|
+
url;
|
|
30
66
|
constructor() {
|
|
31
67
|
super();
|
|
68
|
+
this.url = MSALConfig.ui.signin;
|
|
69
|
+
this.external = this.url?.indexOf('http') > -1;
|
|
32
70
|
}
|
|
33
71
|
static ɵfac = function SignInButtonComponent_Factory(t) { return new (t || SignInButtonComponent)(); };
|
|
34
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls:
|
|
35
|
-
i0.ɵɵprojectionDef();
|
|
36
|
-
i0.ɵɵ
|
|
37
|
-
i0.ɵɵ
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_span_4_Template, 2, 0, "span", 2);
|
|
40
|
-
i0.ɵɵelementEnd();
|
|
72
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 2, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], [3, "href"], ["ref", ""], [4, "ngIf"], [3, "routerLink"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵprojectionDef(_c0);
|
|
74
|
+
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template, 5, 5, "a", 0);
|
|
75
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template, 5, 5, "a", 1);
|
|
41
76
|
} if (rf & 2) {
|
|
42
|
-
|
|
43
|
-
i0.ɵɵ
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵproperty("ngIf", !_r0.innerHTML.trim());
|
|
77
|
+
i0.ɵɵproperty("ngIf", ctx.external);
|
|
78
|
+
i0.ɵɵadvance(1);
|
|
79
|
+
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
46
80
|
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
47
81
|
}
|
|
48
82
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
49
83
|
type: Component,
|
|
50
|
-
args: [{ selector: "anatoly-signin-button", template: "<a routerLink=\"
|
|
84
|
+
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</a>\r\n" }]
|
|
51
85
|
}], function () { return []; }, null); })();
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmluLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvY29tcG9uZW50cy9pZGVudGl0eS9zaWduaW4tYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9jb21wb25lbnRzL2lkZW50aXR5L3NpZ25pbi1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxLQUFLO0FBQ0wsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7Ozs7SUNuQi9DLDRCQUFvQztJQUFBLHVCQUFPO0lBQUEsaUJBQU87OztJQUZwRCw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udD48L25nLWNvbnRlbnQ+PC9zcGFuPlxyXG4gIDxzcGFuICpuZ0lmPVwiIXJlZi5pbm5lckhUTUwudHJpbSgpXCI+U2lnbiBJbjwvc3Bhbj5cclxuPC9hPlxyXG5cclxuPGEgW3JvdXRlckxpbmtdPVwidXJsXCIgY2xhc3M9XCJ7eyBjbGFzc2VzIH19XCIgKm5nSWY9XCIhZXh0ZXJuYWxcIj5cclxuICA8c3BhbiAjcmVmPjxuZy1jb250ZW50PjwvbmctY29udGVudD48L3NwYW4+XHJcbiAgPHNwYW4gKm5nSWY9XCIhcmVmLmlubmVySFRNTC50cmltKClcIj5TaWduIEluPC9zcGFuPlxyXG48L2E+XHJcbiJdfQ==
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { Component } from "@angular/core";
|
|
18
18
|
//App
|
|
19
19
|
import { ComponentBase } from "../base/component";
|
|
20
|
+
import { MSALConfig } from "../../../iam/consts";
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
import * as i1 from "@angular/common";
|
|
22
23
|
import * as i2 from "@angular/router";
|
|
@@ -27,11 +28,13 @@ function SignOutButtonComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
27
28
|
} }
|
|
28
29
|
const _c0 = ["*"];
|
|
29
30
|
export class SignOutButtonComponent extends ComponentBase {
|
|
31
|
+
url;
|
|
30
32
|
constructor() {
|
|
31
33
|
super();
|
|
34
|
+
this.url = MSALConfig.ui.signout;
|
|
32
35
|
}
|
|
33
36
|
static ɵfac = function SignOutButtonComponent_Factory(t) { return new (t || SignOutButtonComponent)(); };
|
|
34
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 5, vars:
|
|
37
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 5, vars: 5, consts: [[3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35
38
|
i0.ɵɵprojectionDef();
|
|
36
39
|
i0.ɵɵelementStart(0, "a", 0)(1, "span", null, 1);
|
|
37
40
|
i0.ɵɵprojection(3);
|
|
@@ -41,12 +44,13 @@ export class SignOutButtonComponent extends ComponentBase {
|
|
|
41
44
|
} if (rf & 2) {
|
|
42
45
|
const _r0 = i0.ɵɵreference(2);
|
|
43
46
|
i0.ɵɵclassMap(ctx.classes);
|
|
47
|
+
i0.ɵɵproperty("routerLink", ctx.url);
|
|
44
48
|
i0.ɵɵadvance(4);
|
|
45
49
|
i0.ɵɵproperty("ngIf", !_r0.innerHTML.trim());
|
|
46
50
|
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
47
51
|
}
|
|
48
52
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
49
53
|
type: Component,
|
|
50
|
-
args: [{ selector: "anatoly-signout-button", template: "<a routerLink=\"
|
|
54
|
+
args: [{ selector: "anatoly-signout-button", template: "<a [routerLink]=\"url\" class=\"{{ classes }}\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Out</span>\r\n</a>\r\n" }]
|
|
51
55
|
}], function () { return []; }, null); })();
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbm91dC1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2NvbXBvbmVudHMvaWRlbnRpdHkvc2lnbm91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bSgpXCI+U2lnbiBPdXQ8L3NwYW4+XHJcbjwvYT5cclxuIl19
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { Component } from "@angular/core";
|
|
18
18
|
//App
|
|
19
19
|
import { ComponentBase } from "../base/component";
|
|
20
|
+
import { MSALConfig } from "../../../iam/consts";
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
import * as i1 from "@angular/common";
|
|
22
23
|
import * as i2 from "@angular/router";
|
|
@@ -27,11 +28,13 @@ function SignUpButtonComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
27
28
|
} }
|
|
28
29
|
const _c0 = ["*"];
|
|
29
30
|
export class SignUpButtonComponent extends ComponentBase {
|
|
31
|
+
url;
|
|
30
32
|
constructor() {
|
|
31
33
|
super();
|
|
34
|
+
this.url = MSALConfig.ui.signup;
|
|
32
35
|
}
|
|
33
36
|
static ɵfac = function SignUpButtonComponent_Factory(t) { return new (t || SignUpButtonComponent)(); };
|
|
34
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 5, vars:
|
|
37
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 5, vars: 5, consts: [[3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignUpButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35
38
|
i0.ɵɵprojectionDef();
|
|
36
39
|
i0.ɵɵelementStart(0, "a", 0)(1, "span", null, 1);
|
|
37
40
|
i0.ɵɵprojection(3);
|
|
@@ -41,12 +44,13 @@ export class SignUpButtonComponent extends ComponentBase {
|
|
|
41
44
|
} if (rf & 2) {
|
|
42
45
|
const _r0 = i0.ɵɵreference(2);
|
|
43
46
|
i0.ɵɵclassMap(ctx.classes);
|
|
47
|
+
i0.ɵɵproperty("routerLink", ctx.url);
|
|
44
48
|
i0.ɵɵadvance(4);
|
|
45
49
|
i0.ɵɵproperty("ngIf", !_r0.innerHTML.trim());
|
|
46
50
|
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
47
51
|
}
|
|
48
52
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignUpButtonComponent, [{
|
|
49
53
|
type: Component,
|
|
50
|
-
args: [{ selector: "anatoly-signup-button", template: "<a routerLink=\"
|
|
54
|
+
args: [{ selector: "anatoly-signup-button", template: "<a [routerLink]=\"url\" class=\"{{ classes }}\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Up</span>\r\n</a>\r\n" }]
|
|
51
55
|
}], function () { return []; }, null); })();
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbnVwLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvY29tcG9uZW50cy9pZGVudGl0eS9zaWdudXAtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9jb21wb25lbnRzL2lkZW50aXR5L3NpZ251cC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxLQUFLO0FBQ0wsT0FBTyxFQU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YXIvY29yZVwiO1xyXG5cclxuLy9BcHBcclxuaW1wb3J0IHsgQ29tcG9uZW50QmFzZSB9IGZyb20gXCIuLi9iYXNlL2NvbXBvbmVudFwiO1xyXG5pbXBvcnQgeyBNU0FMQ29uZmlnIH0gZnJvbSBcIi4uLy4uLy4uL2lhbS9jb25zdHNcIjtcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiBcImFuYXRvbHktc2lnbnVwLWJ1dHRvblwiLFxyXG4gIHRlbXBsYXRlVXJsOiBcIi4vc2lnbnVwLWJ1dHRvbi5jb21wb25lbnQuaHRtbFwiLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgU2lnblVwQnV0dG9uQ29tcG9uZW50IGV4dGVuZHMgQ29tcG9uZW50QmFzZSB7XHJcbiAgdXJsO1xyXG5cclxuICBjb25zdHJ1Y3RvcigpIHtcclxuICAgIHN1cGVyKCk7XHJcbiAgICB0aGlzLnVybCA9IE1TQUxDb25maWcudWkuc2lnbnVwO1xyXG4gIH1cclxufVxyXG4iLCI8YSBbcm91dGVyTGlua109XCJ1cmxcIiBjbGFzcz1cInt7IGNsYXNzZXMgfX1cIj5cclxuICA8c3BhbiAjcmVmPjxuZy1jb250ZW50PjwvbmctY29udGVudD48L3NwYW4+XHJcbiAgPHNwYW4gKm5nSWY9XCIhcmVmLmlubmVySFRNTC50cmltKClcIj5TaWduIFVwPC9zcGFuPlxyXG48L2E+XHJcbiJdfQ==
|
|
@@ -3596,11 +3596,13 @@ function SignUpButtonComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
3596
3596
|
} }
|
|
3597
3597
|
const _c0$e = ["*"];
|
|
3598
3598
|
class SignUpButtonComponent extends ComponentBase {
|
|
3599
|
+
url;
|
|
3599
3600
|
constructor() {
|
|
3600
3601
|
super();
|
|
3602
|
+
this.url = MSALConfig.ui.signup;
|
|
3601
3603
|
}
|
|
3602
3604
|
static ɵfac = function SignUpButtonComponent_Factory(t) { return new (t || SignUpButtonComponent)(); };
|
|
3603
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$e, decls: 5, vars:
|
|
3605
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$e, decls: 5, vars: 5, consts: [[3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignUpButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3604
3606
|
i0.ɵɵprojectionDef();
|
|
3605
3607
|
i0.ɵɵelementStart(0, "a", 0)(1, "span", null, 1);
|
|
3606
3608
|
i0.ɵɵprojection(3);
|
|
@@ -3610,13 +3612,14 @@ class SignUpButtonComponent extends ComponentBase {
|
|
|
3610
3612
|
} if (rf & 2) {
|
|
3611
3613
|
const _r0 = i0.ɵɵreference(2);
|
|
3612
3614
|
i0.ɵɵclassMap(ctx.classes);
|
|
3615
|
+
i0.ɵɵproperty("routerLink", ctx.url);
|
|
3613
3616
|
i0.ɵɵadvance(4);
|
|
3614
3617
|
i0.ɵɵproperty("ngIf", !_r0.innerHTML.trim());
|
|
3615
3618
|
} }, dependencies: [i1$2.NgIf, i1.RouterLink], encapsulation: 2 });
|
|
3616
3619
|
}
|
|
3617
3620
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignUpButtonComponent, [{
|
|
3618
3621
|
type: Component,
|
|
3619
|
-
args: [{ selector: "anatoly-signup-button", template: "<a routerLink=\"
|
|
3622
|
+
args: [{ selector: "anatoly-signup-button", template: "<a [routerLink]=\"url\" class=\"{{ classes }}\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Up</span>\r\n</a>\r\n" }]
|
|
3620
3623
|
}], function () { return []; }, null); })();
|
|
3621
3624
|
|
|
3622
3625
|
/*
|
|
@@ -3986,34 +3989,67 @@ class DatapagerComponent {
|
|
|
3986
3989
|
</file>
|
|
3987
3990
|
*/
|
|
3988
3991
|
//Node
|
|
3989
|
-
function
|
|
3992
|
+
function SignInButtonComponent_a_0_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
3990
3993
|
i0.ɵɵelementStart(0, "span");
|
|
3991
3994
|
i0.ɵɵtext(1, "Sign In");
|
|
3992
3995
|
i0.ɵɵelementEnd();
|
|
3993
3996
|
} }
|
|
3994
|
-
|
|
3997
|
+
function SignInButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
3998
|
+
i0.ɵɵelementStart(0, "a", 2)(1, "span", null, 3);
|
|
3999
|
+
i0.ɵɵprojection(3);
|
|
4000
|
+
i0.ɵɵelementEnd();
|
|
4001
|
+
i0.ɵɵtemplate(4, SignInButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
4002
|
+
i0.ɵɵelementEnd();
|
|
4003
|
+
} if (rf & 2) {
|
|
4004
|
+
const _r2 = i0.ɵɵreference(2);
|
|
4005
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
4006
|
+
i0.ɵɵclassMap(ctx_r0.classes);
|
|
4007
|
+
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
4008
|
+
i0.ɵɵadvance(4);
|
|
4009
|
+
i0.ɵɵproperty("ngIf", !_r2.innerHTML.trim());
|
|
4010
|
+
} }
|
|
4011
|
+
function SignInButtonComponent_a_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
4012
|
+
i0.ɵɵelementStart(0, "span");
|
|
4013
|
+
i0.ɵɵtext(1, "Sign In");
|
|
4014
|
+
i0.ɵɵelementEnd();
|
|
4015
|
+
} }
|
|
4016
|
+
function SignInButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
4017
|
+
i0.ɵɵelementStart(0, "a", 5)(1, "span", null, 3);
|
|
4018
|
+
i0.ɵɵprojection(3, 1);
|
|
4019
|
+
i0.ɵɵelementEnd();
|
|
4020
|
+
i0.ɵɵtemplate(4, SignInButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
4021
|
+
i0.ɵɵelementEnd();
|
|
4022
|
+
} if (rf & 2) {
|
|
4023
|
+
const _r4 = i0.ɵɵreference(2);
|
|
4024
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
4025
|
+
i0.ɵɵclassMap(ctx_r1.classes);
|
|
4026
|
+
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
4027
|
+
i0.ɵɵadvance(4);
|
|
4028
|
+
i0.ɵɵproperty("ngIf", !_r4.innerHTML.trim());
|
|
4029
|
+
} }
|
|
4030
|
+
const _c0$c = ["*", "*"];
|
|
3995
4031
|
class SignInButtonComponent extends ComponentBase {
|
|
4032
|
+
external = false;
|
|
4033
|
+
url;
|
|
3996
4034
|
constructor() {
|
|
3997
4035
|
super();
|
|
4036
|
+
this.url = MSALConfig.ui.signin;
|
|
4037
|
+
this.external = this.url?.indexOf('http') > -1;
|
|
3998
4038
|
}
|
|
3999
4039
|
static ɵfac = function SignInButtonComponent_Factory(t) { return new (t || SignInButtonComponent)(); };
|
|
4000
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$c, decls:
|
|
4001
|
-
i0.ɵɵprojectionDef();
|
|
4002
|
-
i0.ɵɵ
|
|
4003
|
-
i0.ɵɵ
|
|
4004
|
-
i0.ɵɵelementEnd();
|
|
4005
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_span_4_Template, 2, 0, "span", 2);
|
|
4006
|
-
i0.ɵɵelementEnd();
|
|
4040
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$c, decls: 2, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], [3, "href"], ["ref", ""], [4, "ngIf"], [3, "routerLink"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4041
|
+
i0.ɵɵprojectionDef(_c0$c);
|
|
4042
|
+
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template, 5, 5, "a", 0);
|
|
4043
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template, 5, 5, "a", 1);
|
|
4007
4044
|
} if (rf & 2) {
|
|
4008
|
-
|
|
4009
|
-
i0.ɵɵ
|
|
4010
|
-
i0.ɵɵ
|
|
4011
|
-
i0.ɵɵproperty("ngIf", !_r0.innerHTML.trim());
|
|
4045
|
+
i0.ɵɵproperty("ngIf", ctx.external);
|
|
4046
|
+
i0.ɵɵadvance(1);
|
|
4047
|
+
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
4012
4048
|
} }, dependencies: [i1$2.NgIf, i1.RouterLink], encapsulation: 2 });
|
|
4013
4049
|
}
|
|
4014
4050
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
4015
4051
|
type: Component,
|
|
4016
|
-
args: [{ selector: "anatoly-signin-button", template: "<a routerLink=\"
|
|
4052
|
+
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</a>\r\n" }]
|
|
4017
4053
|
}], function () { return []; }, null); })();
|
|
4018
4054
|
|
|
4019
4055
|
/*
|
|
@@ -4039,11 +4075,13 @@ function SignOutButtonComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
4039
4075
|
} }
|
|
4040
4076
|
const _c0$b = ["*"];
|
|
4041
4077
|
class SignOutButtonComponent extends ComponentBase {
|
|
4078
|
+
url;
|
|
4042
4079
|
constructor() {
|
|
4043
4080
|
super();
|
|
4081
|
+
this.url = MSALConfig.ui.signout;
|
|
4044
4082
|
}
|
|
4045
4083
|
static ɵfac = function SignOutButtonComponent_Factory(t) { return new (t || SignOutButtonComponent)(); };
|
|
4046
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$b, decls: 5, vars:
|
|
4084
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$b, decls: 5, vars: 5, consts: [[3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4047
4085
|
i0.ɵɵprojectionDef();
|
|
4048
4086
|
i0.ɵɵelementStart(0, "a", 0)(1, "span", null, 1);
|
|
4049
4087
|
i0.ɵɵprojection(3);
|
|
@@ -4053,13 +4091,14 @@ class SignOutButtonComponent extends ComponentBase {
|
|
|
4053
4091
|
} if (rf & 2) {
|
|
4054
4092
|
const _r0 = i0.ɵɵreference(2);
|
|
4055
4093
|
i0.ɵɵclassMap(ctx.classes);
|
|
4094
|
+
i0.ɵɵproperty("routerLink", ctx.url);
|
|
4056
4095
|
i0.ɵɵadvance(4);
|
|
4057
4096
|
i0.ɵɵproperty("ngIf", !_r0.innerHTML.trim());
|
|
4058
4097
|
} }, dependencies: [i1$2.NgIf, i1.RouterLink], encapsulation: 2 });
|
|
4059
4098
|
}
|
|
4060
4099
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
4061
4100
|
type: Component,
|
|
4062
|
-
args: [{ selector: "anatoly-signout-button", template: "<a routerLink=\"
|
|
4101
|
+
args: [{ selector: "anatoly-signout-button", template: "<a [routerLink]=\"url\" class=\"{{ classes }}\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Out</span>\r\n</a>\r\n" }]
|
|
4063
4102
|
}], function () { return []; }, null); })();
|
|
4064
4103
|
|
|
4065
4104
|
/*
|