@acorex/modules 1.0.0 → 1.0.2
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/auth/index.d.ts +1 -0
- package/auth/lib/account/account.module.d.ts +1 -1
- package/auth/lib/account/app-chooser/app-chooser-slot.component.d.ts +1 -1
- package/auth/lib/account/app-chooser/app-chooser.component.d.ts +1 -1
- package/auth/lib/account/profile/profile-slot.component.d.ts +6 -1
- package/auth/lib/account/tenant-chooser/tenant-chooser-dropdown.component.d.ts +1 -1
- package/auth/lib/auth.config.d.ts +5 -5
- package/auth/lib/error-handler.d.ts +1 -1
- package/auth/lib/login/password/password.component.d.ts +1 -1
- package/backend/index.d.ts +2 -0
- package/backend/lib/auth/oidc/application.loader.d.ts +2 -2
- package/backend/lib/auth/oidc/configuration.service.d.ts +60 -0
- package/backend/lib/auth/oidc/feature.loader.d.ts +1 -0
- package/backend/lib/auth/oidc/index.d.ts +3 -0
- package/backend/lib/auth/oidc/oidc.strategy.d.ts +5 -3
- package/backend/lib/auth/oidc/permission.loader.d.ts +11 -2
- package/backend/lib/auth/oidc/signincallback.component.d.ts +1 -0
- package/backend/lib/auth/oidc/tenant.loader.d.ts +2 -2
- package/backend/lib/auth/oidc/usermanager.service.d.ts +4 -1
- package/backend/lib/backend.configs.d.ts +0 -5
- package/backend/lib/data/api/data-provider.d.ts +4 -0
- package/backend/lib/data/index.d.ts +3 -0
- package/backend/lib/data/local/data-Conditioner.d.ts +6 -0
- package/backend/lib/data/local/local-data-provider.d.ts +23 -0
- package/esm2022/auth/index.mjs +2 -1
- package/esm2022/auth/lib/account/account.module.mjs +12 -12
- package/esm2022/auth/lib/account/app-chooser/app-chooser-list.component.mjs +6 -6
- package/esm2022/auth/lib/account/app-chooser/app-chooser-slot.component.mjs +7 -6
- package/esm2022/auth/lib/account/app-chooser/app-chooser.component.mjs +7 -6
- package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +45 -18
- package/esm2022/auth/lib/account/tenant-chooser/tenant-chooser-dropdown.component.mjs +6 -5
- package/esm2022/auth/lib/account/tenant-chooser/tenant-chooser.component.mjs +7 -7
- package/esm2022/auth/lib/auth.config.mjs +7 -6
- package/esm2022/auth/lib/auth.module.mjs +4 -4
- package/esm2022/auth/lib/auth.routes.mjs +7 -6
- package/esm2022/auth/lib/error-handler.mjs +14 -7
- package/esm2022/auth/lib/forgot/password/password.component.mjs +4 -4
- package/esm2022/auth/lib/login/login.module.mjs +5 -6
- package/esm2022/auth/lib/login/password/password.component.mjs +26 -11
- package/esm2022/auth/lib/shared/layouts/blank/blank.layout.mjs +3 -3
- package/esm2022/auth/lib/shared/layouts/master/master.layout.mjs +8 -7
- package/esm2022/auth/lib/shared/services/idle.service.mjs +3 -3
- package/esm2022/auth/lib/store/auth.effects.mjs +3 -3
- package/esm2022/auth/lib/two-factor/two-factor-code/two-factor-code.component.mjs +4 -4
- package/esm2022/auth/lib/two-factor/two-factor.module.mjs +4 -4
- package/esm2022/backend/index.mjs +3 -1
- package/esm2022/backend/lib/auth/oidc/application.loader.mjs +15 -13
- package/esm2022/backend/lib/auth/oidc/configuration.service.mjs +53 -0
- package/esm2022/backend/lib/auth/oidc/feature.loader.mjs +16 -2
- package/esm2022/backend/lib/auth/oidc/index.mjs +4 -1
- package/esm2022/backend/lib/auth/oidc/oidc.strategy.mjs +59 -39
- package/esm2022/backend/lib/auth/oidc/permission.loader.mjs +31 -4
- package/esm2022/backend/lib/auth/oidc/signincallback.component.mjs +27 -7
- package/esm2022/backend/lib/auth/oidc/tenant.loader.mjs +16 -14
- package/esm2022/backend/lib/auth/oidc/usermanager.service.mjs +8 -6
- package/esm2022/backend/lib/backend.configs.mjs +2 -3
- package/esm2022/backend/lib/backend.module.mjs +9 -23
- package/esm2022/backend/lib/data/api/data-provider.mjs +49 -13
- package/esm2022/backend/lib/data/index.mjs +4 -0
- package/esm2022/backend/lib/data/local/data-Conditioner.mjs +76 -0
- package/esm2022/backend/lib/data/local/local-data-provider.mjs +84 -0
- package/esm2022/log-management/acorex-modules-log-management.mjs +5 -0
- package/esm2022/log-management/index.mjs +3 -0
- package/esm2022/log-management/lib/audit-logs.entity.mjs +392 -0
- package/esm2022/log-management/lib/log-management.module.mjs +16 -0
- package/esm2022/notification/index.mjs +3 -1
- package/esm2022/notification/lib/notification.module.mjs +4 -4
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-3tiGzryz.mjs → acorex-modules-auth-acorex-modules-auth-jEqtVhBE.mjs} +143 -109
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-jEqtVhBE.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth-app-chooser.component-BbtMSwfI.mjs +72 -0
- package/fesm2022/acorex-modules-auth-app-chooser.component-BbtMSwfI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-blank.layout-0xNRyD5z.mjs → acorex-modules-auth-blank.layout-BOdRxDNv.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-blank.layout-0xNRyD5z.mjs.map → acorex-modules-auth-blank.layout-BOdRxDNv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-lGs54nBU.mjs → acorex-modules-auth-login.module-Drm4fC1I.mjs} +13 -12
- package/fesm2022/acorex-modules-auth-login.module-Drm4fC1I.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-master.layout-ytopPv2z.mjs → acorex-modules-auth-master.layout-cAm6TYeA.mjs} +12 -10
- package/fesm2022/acorex-modules-auth-master.layout-cAm6TYeA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-Q9Me4kkK.mjs → acorex-modules-auth-password.component-Ch2Wqi2W.mjs} +12 -10
- package/fesm2022/{acorex-modules-auth-password.component-Q9Me4kkK.mjs.map → acorex-modules-auth-password.component-Ch2Wqi2W.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-password.component-D4CkGaq0.mjs +127 -0
- package/fesm2022/acorex-modules-auth-password.component-D4CkGaq0.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-jgo2XGe0.mjs → acorex-modules-auth-routes-DyjibH6l.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-jgo2XGe0.mjs.map → acorex-modules-auth-routes-DyjibH6l.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CJu2Lfbf.mjs +84 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CJu2Lfbf.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-fP6CLq9T.mjs → acorex-modules-auth-two-factor-code.component-B41iXHoT.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-fP6CLq9T.mjs.map → acorex-modules-auth-two-factor-code.component-B41iXHoT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module--fcoNW-s.mjs → acorex-modules-auth-two-factor.module-A0hevYO2.mjs} +12 -10
- package/fesm2022/acorex-modules-auth-two-factor.module-A0hevYO2.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +7 -5
- package/fesm2022/acorex-modules-auth.mjs.map +1 -1
- package/fesm2022/acorex-modules-backend.mjs +432 -227
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-log-management.mjs +415 -0
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification.mjs +7 -4
- package/fesm2022/acorex-modules-notification.mjs.map +1 -1
- package/log-management/README.md +4 -0
- package/log-management/index.d.ts +2 -0
- package/log-management/lib/audit-logs.entity.d.ts +3 -0
- package/log-management/lib/log-management.module.d.ts +6 -0
- package/package.json +9 -3
- package/auth/lib/register/email/email.component.d.ts +0 -5
- package/auth/lib/register/register.module.d.ts +0 -7
- package/auth/lib/register/result/result.component.d.ts +0 -5
- package/backend/lib/auth/userpass/application.loader.d.ts +0 -6
- package/backend/lib/auth/userpass/index.d.ts +0 -4
- package/backend/lib/auth/userpass/permission.loader.d.ts +0 -5
- package/backend/lib/auth/userpass/tenant.loader.d.ts +0 -6
- package/backend/lib/auth/userpass/userpass.strategy.d.ts +0 -12
- package/esm2022/auth/lib/register/email/email.component.mjs +0 -42
- package/esm2022/auth/lib/register/register.module.mjs +0 -59
- package/esm2022/auth/lib/register/result/result.component.mjs +0 -33
- package/esm2022/backend/lib/auth/userpass/application.loader.mjs +0 -30
- package/esm2022/backend/lib/auth/userpass/index.mjs +0 -5
- package/esm2022/backend/lib/auth/userpass/permission.loader.mjs +0 -12
- package/esm2022/backend/lib/auth/userpass/tenant.loader.mjs +0 -26
- package/esm2022/backend/lib/auth/userpass/userpass.strategy.mjs +0 -40
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-3tiGzryz.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-Hh2T5orM.mjs +0 -70
- package/fesm2022/acorex-modules-auth-app-chooser.component-Hh2T5orM.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-email.component-ZbTwT8iu.mjs +0 -45
- package/fesm2022/acorex-modules-auth-email.component-ZbTwT8iu.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-login.module-lGs54nBU.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-master.layout-ytopPv2z.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-p1Ks9S5q.mjs +0 -110
- package/fesm2022/acorex-modules-auth-password.component-p1Ks9S5q.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-register.module-ckbVm-yf.mjs +0 -77
- package/fesm2022/acorex-modules-auth-register.module-ckbVm-yf.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-result.component-ORUU7lkV.mjs +0 -36
- package/fesm2022/acorex-modules-auth-result.component-ORUU7lkV.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-PeGg21Im.mjs +0 -84
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-PeGg21Im.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-two-factor.module--fcoNW-s.mjs.map +0 -1
@@ -1,36 +0,0 @@
|
|
1
|
-
import * as i5 from '@acorex/components/button';
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
3
|
-
import * as i7 from '@acorex/components/decorators';
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
5
|
-
import { AXFormModule } from '@acorex/components/form';
|
6
|
-
import { AXLabelModule } from '@acorex/components/label';
|
7
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
8
|
-
import { AXPasswordBoxModule } from '@acorex/components/password-box';
|
9
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
10
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
11
|
-
import { CommonModule } from '@angular/common';
|
12
|
-
import * as i0 from '@angular/core';
|
13
|
-
import { Component } from '@angular/core';
|
14
|
-
|
15
|
-
const MODULES = [
|
16
|
-
CommonModule,
|
17
|
-
AXFormModule,
|
18
|
-
AXTextBoxModule,
|
19
|
-
AXPasswordBoxModule,
|
20
|
-
AXButtonModule,
|
21
|
-
AXLabelModule,
|
22
|
-
AXDecoratorModule,
|
23
|
-
AXTranslationModule,
|
24
|
-
AXLoadingModule,
|
25
|
-
];
|
26
|
-
class AXPRegisterResultComponent {
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPRegisterResultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: AXPRegisterResultComponent, isStandalone: true, selector: "ng-component", providers: [], ngImport: i0, template: "<div class=\"ax-text-center ax-mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check ax-text-5xl ax-mb-4 ax-text-success-500\">\n </ax-icon>\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n You account successfully created\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n You can continue now and explore further features\n </p>\n <ax-button color=\"primary\" class=\"ax-mt-10\" text=\" Continue to your dashboard\">\n </ax-button>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i7.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXLoadingModule }] }); }
|
29
|
-
}
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPRegisterResultComponent, decorators: [{
|
31
|
-
type: Component,
|
32
|
-
args: [{ imports: [...MODULES], standalone: true, providers: [], template: "<div class=\"ax-text-center ax-mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check ax-text-5xl ax-mb-4 ax-text-success-500\">\n </ax-icon>\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n You account successfully created\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n You can continue now and explore further features\n </p>\n <ax-button color=\"primary\" class=\"ax-mt-10\" text=\" Continue to your dashboard\">\n </ax-button>\n</div>" }]
|
33
|
-
}] });
|
34
|
-
|
35
|
-
export { AXPRegisterResultComponent };
|
36
|
-
//# sourceMappingURL=acorex-modules-auth-result.component-ORUU7lkV.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-result.component-ORUU7lkV.mjs","sources":["../../../../libs/modules/auth/src/lib/register/result/result.component.ts","../../../../libs/modules/auth/src/lib/register/result/result.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { Component } from '@angular/core';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n];\n\n@Component({\n templateUrl: './result.component.html',\n imports: [...MODULES],\n standalone: true,\n providers: [],\n})\nexport class AXPRegisterResultComponent {}\n","<div class=\"ax-text-center ax-mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check ax-text-5xl ax-mb-4 ax-text-success-500\">\n </ax-icon>\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n You account successfully created\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n You can continue now and explore further features\n </p>\n <ax-button color=\"primary\" class=\"ax-mt-10\" text=\" Continue to your dashboard\">\n </ax-button>\n</div>"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;AAWA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;CAChB,CAAC;MAQW,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,SAAA,EAF1B,EAAE,EC3Bf,QAAA,EAAA,EAAA,EAA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ewEncapsulation } from '@angular/core';
|
3
|
-
import * as i3 from '@acorex/components/avatar';
|
4
|
-
import { AXAvatarModule } from '@acorex/components/avatar';
|
5
|
-
import * as i5 from '@acorex/components/button';
|
6
|
-
import { AXButtonModule } from '@acorex/components/button';
|
7
|
-
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
8
|
-
import * as i7 from '@acorex/components/decorators';
|
9
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
10
|
-
import { AXFormModule } from '@acorex/components/form';
|
11
|
-
import * as i2 from '@acorex/components/image';
|
12
|
-
import { AXImageModule } from '@acorex/components/image';
|
13
|
-
import { AXLabelModule } from '@acorex/components/label';
|
14
|
-
import * as i3$1 from '@acorex/components/loading';
|
15
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
16
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
17
|
-
import * as i6 from '@acorex/core/translation';
|
18
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
19
|
-
import { AXPSessionService } from '@acorex/platform/auth';
|
20
|
-
import { AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';
|
21
|
-
import { AXPLogoComponent } from '@acorex/platform/layouts';
|
22
|
-
import * as i1 from '@angular/common';
|
23
|
-
import { CommonModule } from '@angular/common';
|
24
|
-
import { Router } from '@angular/router';
|
25
|
-
import { Subscription, first } from 'rxjs';
|
26
|
-
|
27
|
-
class AXPAuthTenantChooserComponent {
|
28
|
-
constructor() {
|
29
|
-
this.router = inject(Router);
|
30
|
-
this.platformConfig = inject(AXP_PLATFORM_CONFIG_TOKEN);
|
31
|
-
this.sessionService = inject(AXPSessionService);
|
32
|
-
this.subscription = new Subscription();
|
33
|
-
this.user = this.sessionService.user;
|
34
|
-
this.showAll = false;
|
35
|
-
this.selectedTenant = null;
|
36
|
-
this.displayedTenants = [];
|
37
|
-
}
|
38
|
-
async handleChooseTenant(item) {
|
39
|
-
this.selectedTenant = item;
|
40
|
-
await this.sessionService.selectTenant(item.name);
|
41
|
-
this.router.navigate(['/auth/account/app-chooser']);
|
42
|
-
}
|
43
|
-
ngOnInit() {
|
44
|
-
this.subscription = this.sessionService.tenants$
|
45
|
-
.pipe(first())
|
46
|
-
.subscribe((tenants) => {
|
47
|
-
this.displayedTenants = tenants.slice(0, 4);
|
48
|
-
this.allTenants = tenants;
|
49
|
-
});
|
50
|
-
}
|
51
|
-
showAllTenants() {
|
52
|
-
this.showAll = !this.showAll;
|
53
|
-
this.displayedTenants = this.showAll ? this.allTenants : this.allTenants.slice(0, 4);
|
54
|
-
}
|
55
|
-
async handleSignout() {
|
56
|
-
await this.sessionService.signout();
|
57
|
-
this.router.navigate(['/auth/login']);
|
58
|
-
}
|
59
|
-
ngOnDestroy() {
|
60
|
-
this.subscription.unsubscribe();
|
61
|
-
}
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthTenantChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-surface md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-w-12 ax-h-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-bg-neutral-100 ax-m-auto\"\n >\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n </div>\n <span class=\"md:ax-text-base ax-text-sm\">{{ tenant.title }}</span>\n </div>\n @if(tenant.name===selectedTenant?.name){\n <ax-loading></ax-loading>\n }@else {\n <ax-icon class=\"fa-solid fa-chevron-right ax-text-neutral-400\"> </ax-icon>\n }\n </div>\n }\n </div>\n @if(allTenants.length>4){\n <div class=\"ax-mt-6 ax-w-full ax-flex ax-justify-center\">\n <ax-button\n (onClick)=\"showAllTenants()\"\n class=\"ax-w-full\"\n look=\"outline\"\n [text]=\"showAll ? (t('viewLess') | async) : (t('viewAll') | async)\"\n ></ax-button>\n </div>\n }\n </div>\n </section>\n <section>\n <p class=\"ax-text-neutral-400 ax-text-sm\">\n {{ t('tenant-chooser.footer', { scope: 'auth' }) | async }}\n <a (click)=\"handleSignout()\" class=\"ax-text-primary ax-cursor-pointer hover:ax-underline ax-font-medium\">\n {{ t('backLogin', { scope: 'auth' }) | async }}\n </a>\n </p>\n </section>\n</main>\n", styles: [":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i3.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "look"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i7.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["source"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }], encapsulation: i0.ViewEncapsulation.None }); }
|
64
|
-
}
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAuthTenantChooserComponent, decorators: [{
|
66
|
-
type: Component,
|
67
|
-
args: [{ selector: 'axp-auth-tenant-chooser', imports: [
|
68
|
-
CommonModule,
|
69
|
-
AXFormModule,
|
70
|
-
AXTextBoxModule,
|
71
|
-
AXButtonModule,
|
72
|
-
AXLabelModule,
|
73
|
-
AXCheckBoxModule,
|
74
|
-
AXAvatarModule,
|
75
|
-
AXImageModule,
|
76
|
-
AXDecoratorModule,
|
77
|
-
AXPLogoComponent,
|
78
|
-
AXLoadingModule,
|
79
|
-
AXTranslationModule,
|
80
|
-
], encapsulation: ViewEncapsulation.None, standalone: true, template: "<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-surface md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-w-12 ax-h-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-bg-neutral-100 ax-m-auto\"\n >\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n </div>\n <span class=\"md:ax-text-base ax-text-sm\">{{ tenant.title }}</span>\n </div>\n @if(tenant.name===selectedTenant?.name){\n <ax-loading></ax-loading>\n }@else {\n <ax-icon class=\"fa-solid fa-chevron-right ax-text-neutral-400\"> </ax-icon>\n }\n </div>\n }\n </div>\n @if(allTenants.length>4){\n <div class=\"ax-mt-6 ax-w-full ax-flex ax-justify-center\">\n <ax-button\n (onClick)=\"showAllTenants()\"\n class=\"ax-w-full\"\n look=\"outline\"\n [text]=\"showAll ? (t('viewLess') | async) : (t('viewAll') | async)\"\n ></ax-button>\n </div>\n }\n </div>\n </section>\n <section>\n <p class=\"ax-text-neutral-400 ax-text-sm\">\n {{ t('tenant-chooser.footer', { scope: 'auth' }) | async }}\n <a (click)=\"handleSignout()\" class=\"ax-text-primary ax-cursor-pointer hover:ax-underline ax-font-medium\">\n {{ t('backLogin', { scope: 'auth' }) | async }}\n </a>\n </p>\n </section>\n</main>\n", styles: [":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n"] }]
|
81
|
-
}] });
|
82
|
-
|
83
|
-
export { AXPAuthTenantChooserComponent };
|
84
|
-
//# sourceMappingURL=acorex-modules-auth-tenant-chooser.component-PeGg21Im.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-tenant-chooser.component-PeGg21Im.mjs","sources":["../../../../libs/modules/auth/src/lib/account/tenant-chooser/tenant-chooser.component.ts","../../../../libs/modules/auth/src/lib/account/tenant-chooser/tenant-chooser.component.html"],"sourcesContent":["import { Component, OnDestroy, OnInit, ViewEncapsulation, inject } from '@angular/core';\n\nimport { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService, AXPTenant } from '@acorex/platform/auth';\nimport { AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';\nimport { AXPLogoComponent } from '@acorex/platform/layouts';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { Subscription, first } from 'rxjs';\n\n@Component({\n selector: 'axp-auth-tenant-chooser',\n templateUrl: './tenant-chooser.component.html',\n styleUrls: ['./tenant-chooser.component.scss'],\n imports: [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXAvatarModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXTranslationModule,\n ],\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n})\nexport class AXPAuthTenantChooserComponent implements OnInit, OnDestroy {\n private router = inject(Router);\n protected platformConfig = inject(AXP_PLATFORM_CONFIG_TOKEN);\n private sessionService = inject(AXPSessionService);\n\n private subscription = new Subscription();\n\n protected user = this.sessionService.user;\n\n protected showAll = false;\n protected selectedTenant: AXPTenant | null = null;\n protected displayedTenants: AXPTenant[] = [];\n protected allTenants!: AXPTenant[];\n\n protected async handleChooseTenant(item: AXPTenant) {\n this.selectedTenant = item;\n await this.sessionService.selectTenant(item.name);\n this.router.navigate(['/auth/account/app-chooser']);\n }\n\n ngOnInit(): void {\n this.subscription = this.sessionService.tenants$\n .pipe(first())\n .subscribe((tenants) => {\n this.displayedTenants = tenants.slice(0, 4);\n this.allTenants = tenants;\n });\n }\n\n showAllTenants() {\n this.showAll = !this.showAll;\n this.displayedTenants = this.showAll ? this.allTenants : this.allTenants.slice(0, 4);\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\n","<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-surface md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-w-12 ax-h-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-bg-neutral-100 ax-m-auto\"\n >\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n </div>\n <span class=\"md:ax-text-base ax-text-sm\">{{ tenant.title }}</span>\n </div>\n @if(tenant.name===selectedTenant?.name){\n <ax-loading></ax-loading>\n }@else {\n <ax-icon class=\"fa-solid fa-chevron-right ax-text-neutral-400\"> </ax-icon>\n }\n </div>\n }\n </div>\n @if(allTenants.length>4){\n <div class=\"ax-mt-6 ax-w-full ax-flex ax-justify-center\">\n <ax-button\n (onClick)=\"showAllTenants()\"\n class=\"ax-w-full\"\n look=\"outline\"\n [text]=\"showAll ? (t('viewLess') | async) : (t('viewAll') | async)\"\n ></ax-button>\n </div>\n }\n </div>\n </section>\n <section>\n <p class=\"ax-text-neutral-400 ax-text-sm\">\n {{ t('tenant-chooser.footer', { scope: 'auth' }) | async }}\n <a (click)=\"handleSignout()\" class=\"ax-text-primary ax-cursor-pointer hover:ax-underline ax-font-medium\">\n {{ t('backLogin', { scope: 'auth' }) | async }}\n </a>\n </p>\n </section>\n</main>\n"],"names":["i2","i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;MAwCa,6BAA6B,CAAA;AArB1C,IAAA,WAAA,GAAA;AAsBU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AACrD,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAE3C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;AAEhC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;QAEhC,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;QAChB,IAAc,CAAA,cAAA,GAAqB,IAAI,CAAC;QACxC,IAAgB,CAAA,gBAAA,GAAgB,EAAE,CAAC;AA+B9C,KAAA;IA5BW,MAAM,kBAAkB,CAAC,IAAe,EAAA;AAChD,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,2BAA2B,CAAC,CAAC,CA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th-two-factor.module--fcoNW-s.mjs","sources":["../../../../libs/modules/auth/src/lib/two-factor/two-factor.module.ts"],"sourcesContent":["import { inject, NgModule } from '@angular/core';\nimport { RouterModule, ROUTES, Routes } from '@angular/router';\nimport { AXM_AUTH_CONFIG_TOKEN } from '../auth.config';\n\nfunction routesFacory() {\n const val = inject(AXM_AUTH_CONFIG_TOKEN);\n let routes: Routes = [];\n routes = [\n {\n path: 'two-step',\n loadComponent: () =>\n import('./two-factor-code/two-factor-code.component').then(\n (c) => c.AXPAuthTwoFactorCodeComponent\n ),\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [RouterModule],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPTwoFactorModule { }\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC1C,IAAI,MAAM,GAAW,EAAE,CAAC;AACxB,IAAA,MAAM,GAAG;AACP,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,aAAa,EAAE,MACb,OAAO,8DAA6C,CAAC,CAAC,IAAI,CACxD,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,CACvC;AACJ,SAAA;KACF,CAAC;AACF,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;MAcY,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAVnB,YAAY,CAAA,EAAA,CAAA,CAAA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