@osovitny/anatoly 3.21.0 → 3.21.21
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.
|
@@ -3028,21 +3028,7 @@ class LocalizePipe {
|
|
|
3028
3028
|
}]
|
|
3029
3029
|
}], () => [{ type: LocalizationService }], null); })();
|
|
3030
3030
|
|
|
3031
|
-
|
|
3032
|
-
<file>
|
|
3033
|
-
Project:
|
|
3034
|
-
@osovitny/anatoly
|
|
3035
|
-
|
|
3036
|
-
Authors:
|
|
3037
|
-
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
3038
|
-
|
|
3039
|
-
Created:
|
|
3040
|
-
12 May 2020
|
|
3041
|
-
|
|
3042
|
-
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
3043
|
-
</file>
|
|
3044
|
-
*/
|
|
3045
|
-
//Node
|
|
3031
|
+
// This factory is consumed by the root module so lazy feature imports stay in the same translate scope.
|
|
3046
3032
|
function translateLoaderFactory(httpClient) {
|
|
3047
3033
|
const prefix = formatAssetsUrl(AssetGroupType.Lib, 'l10n/');
|
|
3048
3034
|
const suffix = `.json?v=${AppVersion ?? '1.0.0'}`;
|
|
@@ -3062,28 +3048,13 @@ class LocalizationModule {
|
|
|
3062
3048
|
}
|
|
3063
3049
|
static { this.ɵfac = function LocalizationModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalizationModule)(i0.ɵɵinject(i0.Injector)); }; }
|
|
3064
3050
|
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LocalizationModule }); }
|
|
3065
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({
|
|
3066
|
-
TranslateService,
|
|
3067
|
-
LocalizationService
|
|
3068
|
-
], imports: [TranslateModule.forRoot({
|
|
3069
|
-
loader: {
|
|
3070
|
-
provide: TranslateLoader,
|
|
3071
|
-
useFactory: translateLoaderFactory,
|
|
3072
|
-
deps: [HttpClient]
|
|
3073
|
-
}
|
|
3074
|
-
}), TranslateModule] }); }
|
|
3051
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [TranslateModule, TranslateModule] }); }
|
|
3075
3052
|
}
|
|
3076
3053
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalizationModule, [{
|
|
3077
3054
|
type: NgModule,
|
|
3078
3055
|
args: [{
|
|
3079
3056
|
imports: [
|
|
3080
|
-
TranslateModule
|
|
3081
|
-
loader: {
|
|
3082
|
-
provide: TranslateLoader,
|
|
3083
|
-
useFactory: translateLoaderFactory,
|
|
3084
|
-
deps: [HttpClient]
|
|
3085
|
-
}
|
|
3086
|
-
})
|
|
3057
|
+
TranslateModule
|
|
3087
3058
|
],
|
|
3088
3059
|
exports: [
|
|
3089
3060
|
TranslateModule,
|
|
@@ -3091,14 +3062,10 @@ class LocalizationModule {
|
|
|
3091
3062
|
],
|
|
3092
3063
|
declarations: [
|
|
3093
3064
|
LocalizePipe
|
|
3094
|
-
],
|
|
3095
|
-
providers: [
|
|
3096
|
-
TranslateService,
|
|
3097
|
-
LocalizationService
|
|
3098
3065
|
]
|
|
3099
3066
|
}]
|
|
3100
3067
|
}], () => [{ type: i0.Injector }], null); })();
|
|
3101
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationModule, { declarations: [LocalizePipe], imports: [
|
|
3068
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationModule, { declarations: [LocalizePipe], imports: [TranslateModule], exports: [TranslateModule,
|
|
3102
3069
|
LocalizePipe] }); })();
|
|
3103
3070
|
|
|
3104
3071
|
/*
|
|
@@ -4391,7 +4358,6 @@ class AReplacerDirective extends ReplacerDirectiveBase {
|
|
|
4391
4358
|
|
|
4392
4359
|
Authors:
|
|
4393
4360
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
4394
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
4395
4361
|
|
|
4396
4362
|
Created:
|
|
4397
4363
|
4 Jul 2018
|
|
@@ -4401,36 +4367,9 @@ class AReplacerDirective extends ReplacerDirectiveBase {
|
|
|
4401
4367
|
*/
|
|
4402
4368
|
//Node
|
|
4403
4369
|
const _c0$i = ["*"];
|
|
4404
|
-
function
|
|
4405
|
-
i0.ɵɵelementContainer(0);
|
|
4406
|
-
} }
|
|
4407
|
-
function SignUpButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
4408
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
4409
|
-
i0.ɵɵtemplate(1, SignUpButtonComponent_Conditional_0_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
4410
|
-
i0.ɵɵelementEnd();
|
|
4411
|
-
} if (rf & 2) {
|
|
4412
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
4413
|
-
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
4414
|
-
i0.ɵɵclassMap(ctx_r0.classes);
|
|
4415
|
-
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
4416
|
-
i0.ɵɵadvance();
|
|
4417
|
-
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
4418
|
-
} }
|
|
4419
|
-
function SignUpButtonComponent_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4370
|
+
function SignUpButtonComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
4420
4371
|
i0.ɵɵelementContainer(0);
|
|
4421
4372
|
} }
|
|
4422
|
-
function SignUpButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
4423
|
-
i0.ɵɵelementStart(0, "a", 6);
|
|
4424
|
-
i0.ɵɵtemplate(1, SignUpButtonComponent_Conditional_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
4425
|
-
i0.ɵɵelementEnd();
|
|
4426
|
-
} if (rf & 2) {
|
|
4427
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
4428
|
-
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
4429
|
-
i0.ɵɵclassMap(ctx_r0.classes);
|
|
4430
|
-
i0.ɵɵproperty("routerLink", ctx_r0.url);
|
|
4431
|
-
i0.ɵɵadvance();
|
|
4432
|
-
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
4433
|
-
} }
|
|
4434
4373
|
function SignUpButtonComponent_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
4435
4374
|
i0.ɵɵelementStart(0, "span");
|
|
4436
4375
|
i0.ɵɵtext(1, "Sign Up");
|
|
@@ -4442,46 +4381,39 @@ function SignUpButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
4442
4381
|
i0.ɵɵelementEnd();
|
|
4443
4382
|
i0.ɵɵconditionalCreate(3, SignUpButtonComponent_ng_template_2_Conditional_3_Template, 2, 0, "span");
|
|
4444
4383
|
} if (rf & 2) {
|
|
4445
|
-
const
|
|
4384
|
+
const ref_r1 = i0.ɵɵreference(1);
|
|
4446
4385
|
i0.ɵɵadvance(3);
|
|
4447
|
-
i0.ɵɵconditional(!
|
|
4386
|
+
i0.ɵɵconditional(!ref_r1.innerHTML.trim() ? 3 : -1);
|
|
4448
4387
|
} }
|
|
4449
4388
|
class SignUpButtonComponent extends ComponentBase {
|
|
4450
|
-
constructor() {
|
|
4451
|
-
super(...arguments);
|
|
4452
|
-
this.external = false;
|
|
4453
|
-
}
|
|
4454
4389
|
ngOnInit() {
|
|
4455
|
-
|
|
4390
|
+
const url = MSALConfig.ui.signup;
|
|
4456
4391
|
if (url) {
|
|
4457
|
-
this.
|
|
4458
|
-
if (this.external) {
|
|
4459
|
-
this.url = url + (this.qs ? '?' + this.qs : '');
|
|
4460
|
-
}
|
|
4461
|
-
else {
|
|
4462
|
-
this.url = url;
|
|
4463
|
-
}
|
|
4392
|
+
this.url = url + (this.qs ? '?' + this.qs : '');
|
|
4464
4393
|
}
|
|
4465
4394
|
}
|
|
4466
4395
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSignUpButtonComponent_BaseFactory; return function SignUpButtonComponent_Factory(__ngFactoryType__) { return (ɵSignUpButtonComponent_BaseFactory || (ɵSignUpButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SignUpButtonComponent)))(__ngFactoryType__ || SignUpButtonComponent); }; })(); }
|
|
4467
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$i, decls: 4, vars:
|
|
4396
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$i, decls: 4, vars: 4, consts: [["contentTemplate", ""], ["ref", ""], [3, "href"], [4, "ngTemplateOutlet"]], template: function SignUpButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4468
4397
|
i0.ɵɵprojectionDef();
|
|
4469
|
-
i0.ɵɵ
|
|
4470
|
-
i0.ɵɵ
|
|
4398
|
+
i0.ɵɵelementStart(0, "a", 2);
|
|
4399
|
+
i0.ɵɵtemplate(1, SignUpButtonComponent_ng_container_1_Template, 1, 0, "ng-container", 3);
|
|
4400
|
+
i0.ɵɵelementEnd();
|
|
4471
4401
|
i0.ɵɵtemplate(2, SignUpButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
4472
4402
|
} if (rf & 2) {
|
|
4473
|
-
i0.ɵɵ
|
|
4403
|
+
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
4404
|
+
i0.ɵɵclassMap(ctx.classes);
|
|
4405
|
+
i0.ɵɵproperty("href", ctx.url, i0.ɵɵsanitizeUrl);
|
|
4474
4406
|
i0.ɵɵadvance();
|
|
4475
|
-
i0.ɵɵ
|
|
4476
|
-
} }, dependencies: [i1$2.NgTemplateOutlet,
|
|
4407
|
+
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
4408
|
+
} }, dependencies: [i1$2.NgTemplateOutlet, AReplacerDirective], encapsulation: 2 }); }
|
|
4477
4409
|
}
|
|
4478
4410
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignUpButtonComponent, [{
|
|
4479
4411
|
type: Component,
|
|
4480
|
-
args: [{ selector: "anatoly-signup-button", standalone: false, template: "
|
|
4412
|
+
args: [{ selector: "anatoly-signup-button", standalone: false, template: "<a [href]=\"url\" class=\"{{ classes }}\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</a>\n\n<ng-template #contentTemplate>\n <span #ref><ng-content></ng-content></span>\n @if (!ref.innerHTML.trim()) {\n <span>Sign Up</span>\n }\n</ng-template>\n" }]
|
|
4481
4413
|
}], null, { qs: [{
|
|
4482
4414
|
type: Input
|
|
4483
4415
|
}] }); })();
|
|
4484
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignUpButtonComponent, { className: "SignUpButtonComponent", filePath: "lib/ui/components/identity/signup-button.component.ts", lineNumber:
|
|
4416
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignUpButtonComponent, { className: "SignUpButtonComponent", filePath: "lib/ui/components/identity/signup-button.component.ts", lineNumber: 28 }); })();
|
|
4485
4417
|
|
|
4486
4418
|
/*
|
|
4487
4419
|
<file>
|
|
@@ -8747,7 +8679,6 @@ class DataPagerComponent extends ComponentBase {
|
|
|
8747
8679
|
|
|
8748
8680
|
Authors:
|
|
8749
8681
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
8750
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
8751
8682
|
|
|
8752
8683
|
Created:
|
|
8753
8684
|
4 Jul 2018
|
|
@@ -8757,36 +8688,9 @@ class DataPagerComponent extends ComponentBase {
|
|
|
8757
8688
|
*/
|
|
8758
8689
|
//Node
|
|
8759
8690
|
const _c0$8 = ["*"];
|
|
8760
|
-
function
|
|
8691
|
+
function SignInButtonComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8761
8692
|
i0.ɵɵelementContainer(0);
|
|
8762
8693
|
} }
|
|
8763
|
-
function SignInButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
8764
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
8765
|
-
i0.ɵɵtemplate(1, SignInButtonComponent_Conditional_0_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
8766
|
-
i0.ɵɵelementEnd();
|
|
8767
|
-
} if (rf & 2) {
|
|
8768
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
8769
|
-
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
8770
|
-
i0.ɵɵclassMap(ctx_r0.classes);
|
|
8771
|
-
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
8772
|
-
i0.ɵɵadvance();
|
|
8773
|
-
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
8774
|
-
} }
|
|
8775
|
-
function SignInButtonComponent_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8776
|
-
i0.ɵɵelementContainer(0);
|
|
8777
|
-
} }
|
|
8778
|
-
function SignInButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
8779
|
-
i0.ɵɵelementStart(0, "a", 6);
|
|
8780
|
-
i0.ɵɵtemplate(1, SignInButtonComponent_Conditional_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
8781
|
-
i0.ɵɵelementEnd();
|
|
8782
|
-
} if (rf & 2) {
|
|
8783
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
8784
|
-
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
8785
|
-
i0.ɵɵclassMap(ctx_r0.classes);
|
|
8786
|
-
i0.ɵɵproperty("routerLink", ctx_r0.url);
|
|
8787
|
-
i0.ɵɵadvance();
|
|
8788
|
-
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
8789
|
-
} }
|
|
8790
8694
|
function SignInButtonComponent_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
8791
8695
|
i0.ɵɵelementStart(0, "span");
|
|
8792
8696
|
i0.ɵɵtext(1, "Sign In");
|
|
@@ -8798,46 +8702,39 @@ function SignInButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
8798
8702
|
i0.ɵɵelementEnd();
|
|
8799
8703
|
i0.ɵɵconditionalCreate(3, SignInButtonComponent_ng_template_2_Conditional_3_Template, 2, 0, "span");
|
|
8800
8704
|
} if (rf & 2) {
|
|
8801
|
-
const
|
|
8705
|
+
const ref_r1 = i0.ɵɵreference(1);
|
|
8802
8706
|
i0.ɵɵadvance(3);
|
|
8803
|
-
i0.ɵɵconditional(!
|
|
8707
|
+
i0.ɵɵconditional(!ref_r1.innerHTML.trim() ? 3 : -1);
|
|
8804
8708
|
} }
|
|
8805
8709
|
class SignInButtonComponent extends ComponentBase {
|
|
8806
|
-
constructor() {
|
|
8807
|
-
super(...arguments);
|
|
8808
|
-
this.external = false;
|
|
8809
|
-
}
|
|
8810
8710
|
ngOnInit() {
|
|
8811
|
-
|
|
8711
|
+
const url = MSALConfig.ui.signin;
|
|
8812
8712
|
if (url) {
|
|
8813
|
-
this.
|
|
8814
|
-
if (this.external) {
|
|
8815
|
-
this.url = url + (this.qs ? '?' + this.qs : '');
|
|
8816
|
-
}
|
|
8817
|
-
else {
|
|
8818
|
-
this.url = url;
|
|
8819
|
-
}
|
|
8713
|
+
this.url = url + (this.qs ? '?' + this.qs : '');
|
|
8820
8714
|
}
|
|
8821
8715
|
}
|
|
8822
8716
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSignInButtonComponent_BaseFactory; return function SignInButtonComponent_Factory(__ngFactoryType__) { return (ɵSignInButtonComponent_BaseFactory || (ɵSignInButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SignInButtonComponent)))(__ngFactoryType__ || SignInButtonComponent); }; })(); }
|
|
8823
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 4, vars:
|
|
8717
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 4, vars: 4, consts: [["contentTemplate", ""], ["ref", ""], [3, "href"], [4, "ngTemplateOutlet"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8824
8718
|
i0.ɵɵprojectionDef();
|
|
8825
|
-
i0.ɵɵ
|
|
8826
|
-
i0.ɵɵ
|
|
8719
|
+
i0.ɵɵelementStart(0, "a", 2);
|
|
8720
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_ng_container_1_Template, 1, 0, "ng-container", 3);
|
|
8721
|
+
i0.ɵɵelementEnd();
|
|
8827
8722
|
i0.ɵɵtemplate(2, SignInButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
8828
8723
|
} if (rf & 2) {
|
|
8829
|
-
i0.ɵɵ
|
|
8724
|
+
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
8725
|
+
i0.ɵɵclassMap(ctx.classes);
|
|
8726
|
+
i0.ɵɵproperty("href", ctx.url, i0.ɵɵsanitizeUrl);
|
|
8830
8727
|
i0.ɵɵadvance();
|
|
8831
|
-
i0.ɵɵ
|
|
8832
|
-
} }, dependencies: [i1$2.NgTemplateOutlet,
|
|
8728
|
+
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
8729
|
+
} }, dependencies: [i1$2.NgTemplateOutlet, AReplacerDirective], encapsulation: 2 }); }
|
|
8833
8730
|
}
|
|
8834
8731
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
8835
8732
|
type: Component,
|
|
8836
|
-
args: [{ selector: "anatoly-signin-button", standalone: false, template: "
|
|
8733
|
+
args: [{ selector: "anatoly-signin-button", standalone: false, template: "<a [href]=\"url\" class=\"{{ classes }}\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</a>\n\n<ng-template #contentTemplate>\n <span #ref><ng-content></ng-content></span>\n @if (!ref.innerHTML.trim()) {\n <span>Sign In</span>\n }\n</ng-template>\n" }]
|
|
8837
8734
|
}], null, { qs: [{
|
|
8838
8735
|
type: Input
|
|
8839
8736
|
}] }); })();
|
|
8840
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignInButtonComponent, { className: "SignInButtonComponent", filePath: "lib/ui/components/identity/signin-button.component.ts", lineNumber:
|
|
8737
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignInButtonComponent, { className: "SignInButtonComponent", filePath: "lib/ui/components/identity/signin-button.component.ts", lineNumber: 28 }); })();
|
|
8841
8738
|
|
|
8842
8739
|
/*
|
|
8843
8740
|
<file>
|
|
@@ -8846,7 +8743,6 @@ class SignInButtonComponent extends ComponentBase {
|
|
|
8846
8743
|
|
|
8847
8744
|
Authors:
|
|
8848
8745
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
8849
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
8850
8746
|
|
|
8851
8747
|
Created:
|
|
8852
8748
|
4 Jul 2018
|
|
@@ -8856,36 +8752,9 @@ class SignInButtonComponent extends ComponentBase {
|
|
|
8856
8752
|
*/
|
|
8857
8753
|
//Node
|
|
8858
8754
|
const _c0$7 = ["*"];
|
|
8859
|
-
function
|
|
8755
|
+
function SignOutButtonComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8860
8756
|
i0.ɵɵelementContainer(0);
|
|
8861
8757
|
} }
|
|
8862
|
-
function SignOutButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
8863
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
8864
|
-
i0.ɵɵtemplate(1, SignOutButtonComponent_Conditional_0_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
8865
|
-
i0.ɵɵelementEnd();
|
|
8866
|
-
} if (rf & 2) {
|
|
8867
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
8868
|
-
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
8869
|
-
i0.ɵɵclassMap(ctx_r0.classes);
|
|
8870
|
-
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
8871
|
-
i0.ɵɵadvance();
|
|
8872
|
-
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
8873
|
-
} }
|
|
8874
|
-
function SignOutButtonComponent_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8875
|
-
i0.ɵɵelementContainer(0);
|
|
8876
|
-
} }
|
|
8877
|
-
function SignOutButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
8878
|
-
i0.ɵɵelementStart(0, "a", 6);
|
|
8879
|
-
i0.ɵɵtemplate(1, SignOutButtonComponent_Conditional_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
8880
|
-
i0.ɵɵelementEnd();
|
|
8881
|
-
} if (rf & 2) {
|
|
8882
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
8883
|
-
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
8884
|
-
i0.ɵɵclassMap(ctx_r0.classes);
|
|
8885
|
-
i0.ɵɵproperty("routerLink", ctx_r0.url);
|
|
8886
|
-
i0.ɵɵadvance();
|
|
8887
|
-
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
8888
|
-
} }
|
|
8889
8758
|
function SignOutButtonComponent_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
8890
8759
|
i0.ɵɵelementStart(0, "span");
|
|
8891
8760
|
i0.ɵɵtext(1, "Sign Out");
|
|
@@ -8897,46 +8766,39 @@ function SignOutButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
8897
8766
|
i0.ɵɵelementEnd();
|
|
8898
8767
|
i0.ɵɵconditionalCreate(3, SignOutButtonComponent_ng_template_2_Conditional_3_Template, 2, 0, "span");
|
|
8899
8768
|
} if (rf & 2) {
|
|
8900
|
-
const
|
|
8769
|
+
const ref_r1 = i0.ɵɵreference(1);
|
|
8901
8770
|
i0.ɵɵadvance(3);
|
|
8902
|
-
i0.ɵɵconditional(!
|
|
8771
|
+
i0.ɵɵconditional(!ref_r1.innerHTML.trim() ? 3 : -1);
|
|
8903
8772
|
} }
|
|
8904
8773
|
class SignOutButtonComponent extends ComponentBase {
|
|
8905
|
-
constructor() {
|
|
8906
|
-
super(...arguments);
|
|
8907
|
-
this.external = false;
|
|
8908
|
-
}
|
|
8909
8774
|
ngOnInit() {
|
|
8910
|
-
|
|
8775
|
+
const url = MSALConfig.ui.signout;
|
|
8911
8776
|
if (url) {
|
|
8912
|
-
this.
|
|
8913
|
-
if (this.external) {
|
|
8914
|
-
this.url = url + (this.qs ? '?' + this.qs : '');
|
|
8915
|
-
}
|
|
8916
|
-
else {
|
|
8917
|
-
this.url = url;
|
|
8918
|
-
}
|
|
8777
|
+
this.url = url + (this.qs ? '?' + this.qs : '');
|
|
8919
8778
|
}
|
|
8920
8779
|
}
|
|
8921
8780
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSignOutButtonComponent_BaseFactory; return function SignOutButtonComponent_Factory(__ngFactoryType__) { return (ɵSignOutButtonComponent_BaseFactory || (ɵSignOutButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SignOutButtonComponent)))(__ngFactoryType__ || SignOutButtonComponent); }; })(); }
|
|
8922
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$7, decls: 4, vars:
|
|
8781
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$7, decls: 4, vars: 4, consts: [["contentTemplate", ""], ["ref", ""], [3, "href"], [4, "ngTemplateOutlet"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8923
8782
|
i0.ɵɵprojectionDef();
|
|
8924
|
-
i0.ɵɵ
|
|
8925
|
-
i0.ɵɵ
|
|
8783
|
+
i0.ɵɵelementStart(0, "a", 2);
|
|
8784
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_ng_container_1_Template, 1, 0, "ng-container", 3);
|
|
8785
|
+
i0.ɵɵelementEnd();
|
|
8926
8786
|
i0.ɵɵtemplate(2, SignOutButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
8927
8787
|
} if (rf & 2) {
|
|
8928
|
-
i0.ɵɵ
|
|
8788
|
+
const contentTemplate_r2 = i0.ɵɵreference(3);
|
|
8789
|
+
i0.ɵɵclassMap(ctx.classes);
|
|
8790
|
+
i0.ɵɵproperty("href", ctx.url, i0.ɵɵsanitizeUrl);
|
|
8929
8791
|
i0.ɵɵadvance();
|
|
8930
|
-
i0.ɵɵ
|
|
8931
|
-
} }, dependencies: [i1$2.NgTemplateOutlet,
|
|
8792
|
+
i0.ɵɵproperty("ngTemplateOutlet", contentTemplate_r2);
|
|
8793
|
+
} }, dependencies: [i1$2.NgTemplateOutlet, AReplacerDirective], encapsulation: 2 }); }
|
|
8932
8794
|
}
|
|
8933
8795
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
8934
8796
|
type: Component,
|
|
8935
|
-
args: [{ selector: "anatoly-signout-button", standalone: false, template: "
|
|
8797
|
+
args: [{ selector: "anatoly-signout-button", standalone: false, template: "<a [href]=\"url\" class=\"{{ classes }}\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</a>\n\n<ng-template #contentTemplate>\n <span #ref><ng-content></ng-content></span>\n @if (!ref.innerHTML.trim()) {\n <span>Sign Out</span>\n }\n</ng-template>\n" }]
|
|
8936
8798
|
}], null, { qs: [{
|
|
8937
8799
|
type: Input
|
|
8938
8800
|
}] }); })();
|
|
8939
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignOutButtonComponent, { className: "SignOutButtonComponent", filePath: "lib/ui/components/identity/signout-button.component.ts", lineNumber:
|
|
8801
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignOutButtonComponent, { className: "SignOutButtonComponent", filePath: "lib/ui/components/identity/signout-button.component.ts", lineNumber: 28 }); })();
|
|
8940
8802
|
|
|
8941
8803
|
/*
|
|
8942
8804
|
<file>
|
|
@@ -11663,23 +11525,31 @@ class AnatolyModule {
|
|
|
11663
11525
|
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
11664
11526
|
provideHttpClient(),
|
|
11665
11527
|
provideAppInitializer(() => {
|
|
11666
|
-
|
|
11667
|
-
|
|
11528
|
+
return (async () => {
|
|
11529
|
+
const appService = inject(AppService);
|
|
11530
|
+
await firstValueFrom(appService.loadAppInitializerSettings());
|
|
11668
11531
|
//Localization
|
|
11669
11532
|
const translate = InjectorInstance.get(TranslateService);
|
|
11670
11533
|
const localizationService = InjectorInstance.get(LocalizationService);
|
|
11671
11534
|
const lang = localizationService.configureSettings(translate);
|
|
11672
|
-
translate.use(lang);
|
|
11535
|
+
await firstValueFrom(translate.use(lang));
|
|
11673
11536
|
//IAM
|
|
11674
11537
|
const msalInstance = InjectorInstance.get(MsalService);
|
|
11675
11538
|
const auth = InjectorInstance.get(AuthService);
|
|
11676
11539
|
firstValueFrom(msalInstance.initialize()).then(() => {
|
|
11677
11540
|
auth.init();
|
|
11678
11541
|
});
|
|
11679
|
-
}))
|
|
11542
|
+
})();
|
|
11680
11543
|
}),
|
|
11681
11544
|
AppService
|
|
11682
11545
|
], imports: [CommonModule,
|
|
11546
|
+
TranslateModule.forRoot({
|
|
11547
|
+
loader: {
|
|
11548
|
+
provide: TranslateLoader,
|
|
11549
|
+
useFactory: translateLoaderFactory,
|
|
11550
|
+
deps: [HttpClient]
|
|
11551
|
+
}
|
|
11552
|
+
}),
|
|
11683
11553
|
AnatolyCoreModule,
|
|
11684
11554
|
AnatolyDataModule,
|
|
11685
11555
|
AnatolyIAMModule,
|
|
@@ -11693,6 +11563,13 @@ class AnatolyModule {
|
|
|
11693
11563
|
args: [{
|
|
11694
11564
|
imports: [
|
|
11695
11565
|
CommonModule,
|
|
11566
|
+
TranslateModule.forRoot({
|
|
11567
|
+
loader: {
|
|
11568
|
+
provide: TranslateLoader,
|
|
11569
|
+
useFactory: translateLoaderFactory,
|
|
11570
|
+
deps: [HttpClient]
|
|
11571
|
+
}
|
|
11572
|
+
}),
|
|
11696
11573
|
AnatolyCoreModule,
|
|
11697
11574
|
AnatolyDataModule,
|
|
11698
11575
|
AnatolyIAMModule,
|
|
@@ -11707,27 +11584,27 @@ class AnatolyModule {
|
|
|
11707
11584
|
providers: [
|
|
11708
11585
|
provideHttpClient(),
|
|
11709
11586
|
provideAppInitializer(() => {
|
|
11710
|
-
|
|
11711
|
-
|
|
11587
|
+
return (async () => {
|
|
11588
|
+
const appService = inject(AppService);
|
|
11589
|
+
await firstValueFrom(appService.loadAppInitializerSettings());
|
|
11712
11590
|
//Localization
|
|
11713
11591
|
const translate = InjectorInstance.get(TranslateService);
|
|
11714
11592
|
const localizationService = InjectorInstance.get(LocalizationService);
|
|
11715
11593
|
const lang = localizationService.configureSettings(translate);
|
|
11716
|
-
translate.use(lang);
|
|
11594
|
+
await firstValueFrom(translate.use(lang));
|
|
11717
11595
|
//IAM
|
|
11718
11596
|
const msalInstance = InjectorInstance.get(MsalService);
|
|
11719
11597
|
const auth = InjectorInstance.get(AuthService);
|
|
11720
11598
|
firstValueFrom(msalInstance.initialize()).then(() => {
|
|
11721
11599
|
auth.init();
|
|
11722
11600
|
});
|
|
11723
|
-
}))
|
|
11601
|
+
})();
|
|
11724
11602
|
}),
|
|
11725
11603
|
AppService
|
|
11726
11604
|
]
|
|
11727
11605
|
}]
|
|
11728
11606
|
}], () => [{ type: i0.Injector }], null); })();
|
|
11729
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyModule, { imports: [CommonModule,
|
|
11730
|
-
AnatolyCoreModule,
|
|
11607
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyModule, { imports: [CommonModule, i1$3.TranslateModule, AnatolyCoreModule,
|
|
11731
11608
|
AnatolyDataModule,
|
|
11732
11609
|
AnatolyIAMModule,
|
|
11733
11610
|
AnatolyUIModule], exports: [AnatolyCoreModule,
|