@acorex/modules 19.0.1 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +1 -0
- package/auth/lib/menu.provider.d.ts +1 -0
- package/auth/lib/setting.provider.d.ts +4 -0
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs → acorex-modules-auth-acorex-modules-auth-D8WcF6Jp.mjs} +80 -9
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D8WcF6Jp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BK4Hs5OP.mjs → acorex-modules-auth-app-chooser.component-0TpgRa-v.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BK4Hs5OP.mjs.map → acorex-modules-auth-app-chooser.component-0TpgRa-v.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-Cvr3l9wl.mjs → acorex-modules-auth-login.module-CziF_sE7.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-Cvr3l9wl.mjs.map → acorex-modules-auth-login.module-CziF_sE7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-4jTF1Xhx.mjs → acorex-modules-auth-master.layout-Ds4LxKSf.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-4jTF1Xhx.mjs.map → acorex-modules-auth-master.layout-Ds4LxKSf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-DeCK_glZ.mjs → acorex-modules-auth-password.component-9TFb-AHn.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-DeCK_glZ.mjs.map → acorex-modules-auth-password.component-9TFb-AHn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-C5soTmv9.mjs → acorex-modules-auth-password.component-BVVvl8So.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-C5soTmv9.mjs.map → acorex-modules-auth-password.component-BVVvl8So.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-DqgtVe9G.mjs → acorex-modules-auth-routes-TdAn72Pa.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-DqgtVe9G.mjs.map → acorex-modules-auth-routes-TdAn72Pa.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-C99NYq3o.mjs → acorex-modules-auth-two-factor.module-BE2uEne7.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-C99NYq3o.mjs.map → acorex-modules-auth-two-factor.module-BE2uEne7.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs → acorex-modules-form-template-management-template-picker.component-BXOyKuAt.mjs} +3 -3
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-BXOyKuAt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs → acorex-modules-form-template-management-template-widget-edit.component-DQw5qvib.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-DQw5qvib.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +76 -11
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management-countries-CuJVdPLt.mjs +19 -0
- package/fesm2022/acorex-modules-platform-management-countries-CuJVdPLt.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management-currencies-vgPg4Hj3.mjs +13 -0
- package/fesm2022/acorex-modules-platform-management-currencies-vgPg4Hj3.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management-regional-formats-BSMV12dQ.mjs +14 -0
- package/fesm2022/acorex-modules-platform-management-regional-formats-BSMV12dQ.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +355 -1456
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-text-template-management.mjs +3 -305
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/form-template-management/lib/components/widgets/template/template-widget-designer.component.d.ts +2 -2
- package/form-template-management/lib/menu.provider.d.ts +1 -1
- package/form-template-management/lib/setting.provider.d.ts +4 -0
- package/package.json +6 -10
- package/platform-management/lib/common/common.module.d.ts +5 -1
- package/platform-management/lib/common/index.d.ts +0 -2
- package/platform-management/lib/common/regional/data/countries.d.ts +2 -0
- package/platform-management/lib/common/regional/data/currencies.d.ts +2 -0
- package/platform-management/lib/common/regional/data/regional-formats.d.ts +2 -0
- package/platform-management/lib/common/regional/data/timezones.d.ts +2 -0
- package/{localization-management/lib/language → platform-management/lib/common/regional}/language-slot/language-slot.component.d.ts +8 -6
- package/platform-management/lib/common/regional/regional-store.service.d.ts +14 -0
- package/platform-management/lib/common/regional/regional.types.d.ts +37 -0
- package/platform-management/lib/common/regional/setting.keys.d.ts +13 -0
- package/platform-management/lib/common/regional/setting.provider.d.ts +17 -0
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs.map +0 -1
- package/fesm2022/acorex-modules-localization-management.mjs +0 -1023
- package/fesm2022/acorex-modules-localization-management.mjs.map +0 -1
- package/localization-management/README.md +0 -4
- package/localization-management/index.d.ts +0 -8
- package/localization-management/lib/const.d.ts +0 -8
- package/localization-management/lib/culture/culture.entity.d.ts +0 -3
- package/localization-management/lib/culture/culture.service.d.ts +0 -10
- package/localization-management/lib/culture/culture.types.d.ts +0 -12
- package/localization-management/lib/culture/index.d.ts +0 -3
- package/localization-management/lib/entity.loader.d.ts +0 -9
- package/localization-management/lib/language/index.d.ts +0 -3
- package/localization-management/lib/language/language.entity.d.ts +0 -3
- package/localization-management/lib/language/language.service.d.ts +0 -10
- package/localization-management/lib/language/language.types.d.ts +0 -5
- package/localization-management/lib/localization-management.module.d.ts +0 -10
- package/localization-management/lib/localization-management.source.d.ts +0 -3
- package/localization-management/lib/localization-store.service.d.ts +0 -7
- package/localization-management/lib/menu.provider.d.ts +0 -5
- package/localization-management/lib/time-zone/index.d.ts +0 -3
- package/localization-management/lib/time-zone/time-zone.entity.d.ts +0 -3
- package/localization-management/lib/time-zone/time-zone.service.d.ts +0 -10
- package/localization-management/lib/time-zone/time-zone.types.d.ts +0 -9
- package/platform-management/lib/common/country/country-datasource.provider.d.ts +0 -5
- package/platform-management/lib/common/country/country.entity.d.ts +0 -3
- package/platform-management/lib/common/country/country.service.d.ts +0 -10
- package/platform-management/lib/common/country/country.types.d.ts +0 -18
- package/platform-management/lib/common/country/index.d.ts +0 -3
- package/platform-management/lib/common/currency/currency.entity.d.ts +0 -3
- package/platform-management/lib/common/currency/currency.service.d.ts +0 -10
- package/platform-management/lib/common/currency/currency.types.d.ts +0 -6
- package/platform-management/lib/common/currency/index.d.ts +0 -3
- package/platform-management/lib/common/province/index.d.ts +0 -3
- package/platform-management/lib/common/province/province.entity.d.ts +0 -3
- package/platform-management/lib/common/province/province.service.d.ts +0 -10
- package/platform-management/lib/common/province/province.types.d.ts +0 -7
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/modules",
|
3
|
-
"version": "19.0
|
3
|
+
"version": "19.1.0",
|
4
4
|
"peerDependencies": {
|
5
|
-
"@angular/common": ">=
|
6
|
-
"@angular/core": ">=
|
5
|
+
"@angular/common": ">=19.0.0",
|
6
|
+
"@angular/core": ">=19.0.0",
|
7
7
|
"angular-oauth2-oidc": "^15.0.1"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
@@ -24,10 +24,6 @@
|
|
24
24
|
"types": "./application-management/index.d.ts",
|
25
25
|
"default": "./fesm2022/acorex-modules-application-management.mjs"
|
26
26
|
},
|
27
|
-
"./auth": {
|
28
|
-
"types": "./auth/index.d.ts",
|
29
|
-
"default": "./fesm2022/acorex-modules-auth.mjs"
|
30
|
-
},
|
31
27
|
"./form-template-management": {
|
32
28
|
"types": "./form-template-management/index.d.ts",
|
33
29
|
"default": "./fesm2022/acorex-modules-form-template-management.mjs"
|
@@ -36,9 +32,9 @@
|
|
36
32
|
"types": "./conversation/index.d.ts",
|
37
33
|
"default": "./fesm2022/acorex-modules-conversation.mjs"
|
38
34
|
},
|
39
|
-
"./
|
40
|
-
"types": "./
|
41
|
-
"default": "./fesm2022/acorex-modules-
|
35
|
+
"./auth": {
|
36
|
+
"types": "./auth/index.d.ts",
|
37
|
+
"default": "./fesm2022/acorex-modules-auth.mjs"
|
42
38
|
},
|
43
39
|
"./backend": {
|
44
40
|
"types": "./backend/index.d.ts",
|
@@ -1,6 +1,10 @@
|
|
1
|
+
import { Injector } from '@angular/core';
|
2
|
+
import { AXPAppStartUpService } from '@acorex/platform/common';
|
1
3
|
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@acorex/platform/common";
|
2
5
|
export declare class AXMPlatformManagementCommonModule {
|
6
|
+
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
3
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMPlatformManagementCommonModule, never>;
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXMPlatformManagementCommonModule, never,
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXMPlatformManagementCommonModule, never, [typeof i1.AXPComponentSlotModule], never>;
|
5
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXMPlatformManagementCommonModule>;
|
6
10
|
}
|
@@ -1,18 +1,20 @@
|
|
1
|
-
import {
|
1
|
+
import { AXPLanguage } from '../regional.types';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class AXMLanguageSlotComponent {
|
4
|
-
protected languageService: AXMLanguageService;
|
5
4
|
protected store: {
|
6
5
|
language: import("@angular/core").Signal<string>;
|
7
6
|
changeLanguage: (lang: string) => void;
|
8
7
|
loadSetting: () => Promise<void>;
|
8
|
+
getCountries: () => Promise<import("../regional.types").AXPCountry[]>;
|
9
|
+
getTimeZones: () => Promise<import("../regional.types").AXPTimeZone[]>;
|
10
|
+
getCurrencies: () => Promise<import("../regional.types").AXPCurrency[]>;
|
11
|
+
getRegionalFormats: () => Promise<import("../regional.types").AXPRegionalFormat[]>;
|
12
|
+
getLanguages: () => Promise<AXPLanguage[]>;
|
13
|
+
getAvailableLanguages: () => Promise<AXPLanguage[]>;
|
9
14
|
} & import("@ngrx/signals").StateSource<{
|
10
15
|
language: string;
|
11
16
|
}>;
|
12
|
-
protected items: import("@angular/core").WritableSignal<
|
13
|
-
code: string;
|
14
|
-
title: string;
|
15
|
-
}[]>;
|
17
|
+
protected items: import("@angular/core").WritableSignal<AXPLanguage[]>;
|
16
18
|
ngOnInit(): Promise<void>;
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMLanguageSlotComponent, never>;
|
18
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXMLanguageSlotComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { AXPCountry, AXPCurrency, AXPLanguage, AXPRegionalFormat, AXPTimeZone } from './regional.types';
|
2
|
+
export declare const AXPRegionalStoreService: import("@angular/core").Type<{
|
3
|
+
language: import("@angular/core").Signal<string>;
|
4
|
+
changeLanguage: (lang: string) => void;
|
5
|
+
loadSetting: () => Promise<void>;
|
6
|
+
getCountries: () => Promise<AXPCountry[]>;
|
7
|
+
getTimeZones: () => Promise<AXPTimeZone[]>;
|
8
|
+
getCurrencies: () => Promise<AXPCurrency[]>;
|
9
|
+
getRegionalFormats: () => Promise<AXPRegionalFormat[]>;
|
10
|
+
getLanguages: () => Promise<AXPLanguage[]>;
|
11
|
+
getAvailableLanguages: () => Promise<AXPLanguage[]>;
|
12
|
+
} & import("@ngrx/signals").StateSource<{
|
13
|
+
language: string;
|
14
|
+
}>>;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export interface AXPLanguage {
|
2
|
+
code: string;
|
3
|
+
title: string;
|
4
|
+
}
|
5
|
+
export interface AXPCountry {
|
6
|
+
code: string;
|
7
|
+
title: string;
|
8
|
+
timezone: string;
|
9
|
+
regional: string;
|
10
|
+
}
|
11
|
+
export interface AXPTimeZone {
|
12
|
+
code: string;
|
13
|
+
title: string;
|
14
|
+
offset: string;
|
15
|
+
}
|
16
|
+
export interface AXPCurrency {
|
17
|
+
code: string;
|
18
|
+
title: string;
|
19
|
+
symbol: string;
|
20
|
+
format: string;
|
21
|
+
}
|
22
|
+
export interface AXPRegionalFormat {
|
23
|
+
locale: string;
|
24
|
+
title: string;
|
25
|
+
dateFormat: {
|
26
|
+
short: string;
|
27
|
+
long: string;
|
28
|
+
};
|
29
|
+
timeFormat: {
|
30
|
+
short: string;
|
31
|
+
long: string;
|
32
|
+
};
|
33
|
+
numberFormat: string;
|
34
|
+
calendar: string;
|
35
|
+
currency: string;
|
36
|
+
layout: string;
|
37
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare enum AXPRegionalSetting {
|
2
|
+
TimeZone = "settings:regional:timezone",
|
3
|
+
Language = "settings:regional:language",
|
4
|
+
Country = "settings:regional:country",
|
5
|
+
Regional = "settings:regional:regional",
|
6
|
+
Calendar = "settings:regional:calendar",
|
7
|
+
FirstDayOfWeek = "settings:regional:first-day-of-week",
|
8
|
+
WorkDays = "settings:regional:work-days",
|
9
|
+
ShortDate = "settings:regional:short-date",
|
10
|
+
LongDate = "settings:regional:long-date",
|
11
|
+
ShortTime = "settings:regional:short-time",
|
12
|
+
LongTime = "settings:regional:long-time"
|
13
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex/platform/common';
|
2
|
+
export declare class AXMRegionalSettingProvider implements AXPSettingDefinitionProvider {
|
3
|
+
protected store: {
|
4
|
+
language: import("@angular/core").Signal<string>;
|
5
|
+
changeLanguage: (lang: string) => void;
|
6
|
+
loadSetting: () => Promise<void>;
|
7
|
+
getCountries: () => Promise<import("./regional.types").AXPCountry[]>;
|
8
|
+
getTimeZones: () => Promise<import("./regional.types").AXPTimeZone[]>;
|
9
|
+
getCurrencies: () => Promise<import("./regional.types").AXPCurrency[]>;
|
10
|
+
getRegionalFormats: () => Promise<import("./regional.types").AXPRegionalFormat[]>;
|
11
|
+
getLanguages: () => Promise<import("./regional.types").AXPLanguage[]>;
|
12
|
+
getAvailableLanguages: () => Promise<import("./regional.types").AXPLanguage[]>;
|
13
|
+
} & import("@ngrx/signals").StateSource<{
|
14
|
+
language: string;
|
15
|
+
}>;
|
16
|
+
provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
|
17
|
+
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs","sources":["../../../../libs/modules/auth/src/lib/error-handler.ts","../../../../libs/modules/auth/src/lib/auth.config.ts","../../../../libs/modules/auth/src/lib/auth.routes.ts","../../../../libs/modules/auth/src/lib/shared/services/idle.service.ts","../../../../libs/modules/auth/src/lib/store/auth.effects.ts","../../../../libs/modules/auth/src/lib/store/index.ts","../../../../libs/modules/auth/src/lib/account/app-chooser/app-chooser-list.component.ts","../../../../libs/modules/auth/src/lib/account/app-chooser/app-chooser-list.component.html","../../../../libs/modules/auth/src/lib/account/app-chooser/app-chooser-slot.component.ts","../../../../libs/modules/auth/src/lib/account/app-chooser/app-chooser-slot.component.html","../../../../libs/modules/auth/src/lib/account/tenant-chooser/tenant-chooser-dropdown.component.ts","../../../../libs/modules/auth/src/lib/account/tenant-chooser/tenant-chooser-dropdown.component.html","../../../../libs/modules/auth/src/lib/account/profile/profile-slot.component.ts","../../../../libs/modules/auth/src/lib/account/profile/profile-slot.component.html","../../../../libs/modules/auth/src/lib/account/account.module.ts","../../../../libs/modules/auth/src/lib/menu.provider.ts","../../../../libs/modules/auth/src/lib/auth.module.ts","../../../../libs/modules/auth/src/acorex-modules-auth.ts"],"sourcesContent":["import { AXPUnauthenticatedError, AXPUnauthorizedError } from '@acorex/platform/auth';\nimport { AXPErrorHandler } from '@acorex/platform/common';\nimport { AXPLayoutThemeService } from '@acorex/platform/themes/shared';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { Injectable, NgZone, inject, isDevMode } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Injectable()\nexport class AXMAuthErrorHandler implements AXPErrorHandler {\n private router = inject(Router);\n private layoutService = inject(AXPLayoutThemeService);\n\n handleError(error: Error, next: (error: any) => void): void {\n if (error instanceof HttpErrorResponse) {\n // if (error.status == 401) {\n // this.router.navigate(['/auth/login']);\n // }\n // else if (error.status == 404) {\n // this.router.navigate(['/404']);\n // }\n } else if (error instanceof AXPUnauthorizedError) {\n const redirectUrl = error.data?.redirectUrl;\n console.error(error.message);\n this.router.navigate(['/401'], { queryParams: redirectUrl ? { redirectUrl: redirectUrl } : null });\n } else if (error instanceof AXPUnauthenticatedError) {\n console.error(error.message);\n const redirectUrl = error.data?.redirectUrl;\n this.router.navigate(['/auth/login'], { queryParams: redirectUrl ? { redirectUrl: redirectUrl } : null });\n } else {\n if (isDevMode()) {\n next(error); // Pass the error to the next handler\n } else {\n next(error); // maybe we need a error page\n }\n }\n this.layoutService.setNavigationLoading(false);\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { AuthConfig } from 'angular-oauth2-oidc';\n\nexport enum AXMAuthenticationTypes {\n UsernamePassword,\n UsernameEmailPassword,\n EmailPassword,\n MobilePassword,\n EmailCode,\n MobileCode,\n}\n\nexport const AXM_AUTH_CONFIG_TOKEN = new InjectionToken<AXMAuthConfigs>('app-module-auth-config', {\n providedIn: 'root',\n factory: () => {\n return AXMDefaultAuthConfigs;\n },\n});\n\nexport interface AXMAuthConfigs {\n type: AXMAuthenticationTypes;\n // oidc_settings?: UserManagerSettings;\n authConfig?: AuthConfig;\n end_url?: string;\n signup?: {\n enable: boolean;\n url?: string;\n };\n signin_google?: boolean;\n signin_apple?: boolean;\n signinPage?: {\n description: string;\n slogan: string;\n };\n idleTimeout?: number;\n}\n\nexport const AXMDefaultAuthConfigs: AXMAuthConfigs = {\n type: AXMAuthenticationTypes.UsernamePassword,\n};\n\nexport function configAuthModule(config: Partial<AXMAuthConfigs> = AXMDefaultAuthConfigs): AXMAuthConfigs {\n return { ...AXMDefaultAuthConfigs, ...config };\n}\n","import { Route } from '@angular/router';\nexport const routes: Route[] = [\n {\n path: 'auth',\n children: [\n {\n path: '',\n pathMatch: 'full',\n redirectTo: 'login',\n },\n {\n path: '',\n loadComponent: () => import('./shared/layouts/master/master.layout').then((c) => c.AXPAuthMasterLayoutComponent),\n loadChildren: () => import('./login/login.module').then((c) => c.AXPSignInModule),\n },\n {\n path: '',\n loadComponent: () => import('./shared/layouts/master/master.layout').then((c) => c.AXPAuthMasterLayoutComponent),\n loadChildren: () => import('./two-factor/two-factor.module').then((c) => c.AXPTwoFactorModule),\n },\n {\n path: '',\n loadComponent: () => import('./shared/layouts/master/master.layout').then((c) => c.AXPAuthMasterLayoutComponent),\n loadChildren: () => import('./forgot/routes').then((c) => c),\n },\n {\n path: 'account',\n loadComponent: () => import('./shared/layouts/blank/blank.layout').then((c) => c.AXPAuthBlankLayoutComponent),\n loadChildren: () => import('./account/account.module').then((c) => c.AXPAccountModule),\n },\n // {\n // path: '',\n // loadComponent: () =>\n // import('./shared/layouts/master/master.layout').then((c) => c.AXPAuthMasterLayoutComponent),\n // loadChildren: () => import('./register/register.module').then((c) => c.AXPRegisterModule),\n // },\n ],\n },\n];\n","import { Injectable, inject } from '@angular/core';\nimport { Subject, Observable, timer, Subscription } from 'rxjs';\nimport { startWith, switchMap, tap } from 'rxjs/operators';\nimport { AXM_AUTH_CONFIG_TOKEN } from '../../auth.config';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPIdleService {\n private configs = inject(AXM_AUTH_CONFIG_TOKEN);\n private idle$ = new Subject<void>();\n private timeoutDuration = this.configs.idleTimeout ?? 10 * 60 * 1000;\n private userActivity$ = new Subject<void>();\n private idleSubscription: Subscription | null = null;\n\n constructor() {\n this.setupActivityListeners();\n }\n\n get idleState$(): Observable<void> {\n return this.idle$.asObservable();\n }\n\n private setupActivityListeners() {\n const activityEvents = ['mousemove', 'keydown', 'wheel'];\n activityEvents.forEach(event =>\n document.addEventListener(event, () => this.resetTimer())\n );\n }\n\n startWatching() {\n this.stopWatching(); // Stop any existing subscription\n this.idleSubscription = this.userActivity$.pipe(\n startWith(null),\n switchMap(() => timer(this.timeoutDuration)),\n tap(() => this.idle$.next()),\n ).subscribe();\n }\n\n resetTimer() {\n this.userActivity$.next();\n }\n\n stopWatching() {\n if (this.idleSubscription) {\n this.idleSubscription.unsubscribe();\n this.idleSubscription = null;\n }\n }\n}\n","import { AXDialogButtonItem, AXDialogService } from \"@acorex/components/dialog\";\nimport { AXPSessionService } from \"@acorex/platform/auth\";\nimport { AXPSignInAction, AXPSignOutAction } from \"@acorex/platform/common\";\nimport { Injectable, inject } from \"@angular/core\";\nimport { Router } from \"@angular/router\";\nimport { Actions, createEffect, ofType } from \"@ngrx/effects\";\nimport { of, switchMap, tap } from \"rxjs\";\nimport { AXPIdleService } from \"../shared/services\";\nimport { AXM_AUTH_CONFIG_TOKEN } from \"../auth.config\";\n\n@Injectable()\nexport class AXPAuthEffects {\n\n private configs = inject(AXM_AUTH_CONFIG_TOKEN);\n private sessionService = inject(AXPSessionService);\n private idleService = inject(AXPIdleService);\n private dialogService = inject(AXDialogService);\n private dialogAlreadyOpen = false;\n\n constructor(private actions$: Actions, private router: Router) { }\n\n signout$ = createEffect(\n () =>\n this.actions$.pipe(\n ofType(AXPSignOutAction),\n switchMap((action) => {\n this.idleService.stopWatching();\n this.router.navigate(['/auth/login']);\n return of();\n })\n ),\n { dispatch: false }\n );\n\n signin$ = createEffect(\n () =>\n this.actions$.pipe(\n ofType(AXPSignInAction),\n switchMap((action) => {\n if (this.configs.idleTimeout) {\n this.idleService.startWatching();\n }\n return of();\n })\n ),\n { dispatch: false }\n );\n\n\n idle$ = createEffect(\n () =>\n this.idleService.idleState$.pipe(\n tap(() => {\n if (!this.dialogAlreadyOpen) {\n let time = 60;\n let intervalId: number;\n const buttonText = (time: number) => `Stay Sign In (${time})`;\n const stayButton: AXDialogButtonItem = {\n text: buttonText(time),\n color: 'primary',\n autofocus: true,\n onClick: () => {\n this.idleService.resetTimer();\n dialog.close();\n this.dialogAlreadyOpen = false;\n clearInterval(intervalId);\n }\n }\n const dialog = this.dialogService.open({\n title: \"Session Timeout\",\n content: \"You're being timed out due to inactivity. Please choose to stay signed in or to sign off. Otherwise, you will signed off automatically.\",\n type: 'warning',\n buttons: [\n {\n text: \"Sign Off\",\n color: 'ghost',\n onClick: async () => {\n await this.sessionService.signout();\n dialog.close();\n this.dialogAlreadyOpen = false;\n clearInterval(intervalId);\n }\n },\n stayButton,\n ]\n });\n this.dialogAlreadyOpen = true;\n // Automatically close dialog and sign out after additional time\n intervalId = setInterval(() => {\n if (time > 0) {\n stayButton.text = buttonText(--time);\n } else {\n clearInterval(intervalId);\n this.sessionService.signout();\n dialog.close();\n this.dialogAlreadyOpen = false;\n }\n }, 1000);\n //\n }\n })\n ),\n { dispatch: false }\n );\n\n}\n","export * from './auth.effects';\n//export * from './auth.actions';","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPApplication, AXPSessionService } from '@acorex/platform/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'axp-app-chooser-list',\n templateUrl: 'app-chooser-list.component.html',\n imports: [CommonModule, AXDecoratorModule, AXLoadingModule],\n})\nexport class AXPAppChooserListComponent {\n private router = inject(Router);\n private sessionService = inject(AXPSessionService);\n\n protected selectedApplication: AXPApplication | null = null;\n protected applications$ = this.sessionService.applications$;\n\n async chooseApplication(item: AXPApplication) {\n this.selectedApplication = item;\n await this.sessionService.setApplication(item);\n this.router.navigate([`/${item.name}/home`]);\n }\n}\n","<div class=\" ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @for(application of (applications$ | async); track $index){\n <div class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-start ax-cursor-pointer\"\n (click)=\"chooseApplication(application)\">\n <div class=\"ax-flex ax-flex-1 ax-gap-2 ax-items-center ax-justify-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 <ax-icon class=\"fa-solid fa-computer ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n <!-- TODO: logo instead of application icon -->\n <!-- <axp-logo [source]=\"application.logo\" [attr.alt]=\"application.title\"\n class=\"!ax-flex ax-items-center ax-justify-center !ax-text-sm ax-mx-auto ax-w-10 ax-h-10 ax-bg-neutral-200 ax-rounded-full\"></axp-logo> -->\n </div>\n <span class=\"ax-flex-1 ax-text-start md:ax-text-base ax-text-sm\">{{ application.title }}</span>\n <span class=\"ax-text-gray-500 md:ax-text-sm ax-text-xs\">{{application.editionName}}</span>\n @if(application.name===selectedApplication?.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 </div>\n }\n</div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXPApplication, AXPSessionService } from '@acorex/platform/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { of } from 'rxjs';\nimport { AXPAppChooserListComponent } from './app-chooser-list.component';\n\n@Component({\n templateUrl: './app-chooser-slot.component.html',\n imports: [CommonModule, AXButtonModule, AXPopoverModule, AXDecoratorModule, AXPAppChooserListComponent],\n})\nexport class AXMAppChooserSlotComponent {\n private sessionService = inject(AXPSessionService);\n protected tenant$ = this.sessionService.tenant$;\n\n protected application$ = this.sessionService.application$;\n protected applications$ = of([]);\n\n private router = inject(Router);\n\n async chooseApplication(item: AXPApplication) {\n //await this.sessionService.selectApplication(item.name);\n this.router.navigate([`/${item.name}/home`]);\n }\n}\n","@if(((applications$ | async)?.length ?? 0) > 1)\n{\n<ax-button color=\"default\" look=\"blank\" #appChooser>\n <ax-icon>\n <i class=\"fa-solid fa-grid-2 ax-text-slate-400 dark:ax-text-slate-200\"></i>\n </ax-icon>\n</ax-button>\n<ax-popover [target]=\"appChooser\" [openOn]=\"'toggle'\" [closeOn]=\"'clickOut'\" [adaptivityEnabled]=\"true\">\n <div class=\"ax-bg-surface ax-border ax-overflow-hidden ax-rounded-md ax-shadow-md ax-w-full ax-min-w-64 ax-p-3\">\n <axp-app-chooser-list></axp-app-chooser-list>\n </div>\n</ax-popover>\n}","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPSessionService } from '@acorex/platform/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'axp-tenant-chooser-dropdown',\n templateUrl: 'tenant-chooser-dropdown.component.html',\n imports: [CommonModule, AXDecoratorModule]\n})\nexport class AXPTenantChooserDropdownComponent {\n private router = inject(Router);\n private sessionService = inject(AXPSessionService);\n protected tenants$ = this.sessionService.tenants$;\n protected tenant = this.sessionService.tenant;\n\n tenantChooser() {\n this.router.navigate(['/auth/account/tenant-chooser']);\n }\n}\n","<ng-container *ngIf=\"tenants$ | async as tenants\">\n @if(tenants.length>1){\n <div (click)=\"tenantChooser()\"\n class=\"ax-flex ax-items-center ax-border ax-rounded-full ax-px-4 ax-py-1 ax-gap-2 ax-cursor-pointer\">\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-xs\"></ax-icon>\n <p class=\"ax-text-neutral-500 ax-text-sm ax-font-medium\">\n {{ tenant?.title }}\n </p>\n <ax-icon class=\"fa-regular fa-chevron-down ax-text-neutral-400\"></ax-icon>\n </div>\n }@else {\n <div class=\"ax-flex ax-items-center ax-border ax-rounded-full ax-px-4 ax-py-1 ax-gap-2 ax-cursor-pointer\">\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500\"></ax-icon>\n <p class=\"ax-text-neutral-500 ax-text-sm ax-font-medium\">\n {{ tenant?.title }}\n </p>\n </div>\n }\n</ng-container>","import { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXHtmlEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverComponent, AXPopoverModule } from '@acorex/components/popover';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex/platform/auth';\nimport { AXPDataProvider } from '@acorex/platform/common';\nimport { CommonModule } from '@angular/common';\nimport { Component, ViewChild, inject, signal } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { first } from 'rxjs';\nimport { AXPTenantChooserDropdownComponent } from '../tenant-chooser/tenant-chooser-dropdown.component';\n\n@Component({\n templateUrl: './profile-slot.component.html',\n imports: [\n CommonModule,\n AXImageModule,\n AXAvatarModule,\n AXPopoverModule,\n AXButtonModule,\n AXDecoratorModule,\n AXPTenantChooserDropdownComponent,\n AXLoadingModule,\n AXTranslationModule,\n ]\n})\nexport class AXMAuthProfileSlotComponent {\n private router = inject(Router);\n private sessionService = inject(AXPSessionService);\n private dataService = inject(AXPDataProvider, { optional: true });\n\n protected hasPicture = signal(true);\n protected avatarText = signal<string>('');\n\n constructor() {\n this.loadImage();\n this.getAvatarText();\n }\n protected src!: string;\n protected user$ = this.sessionService.user$;\n protected tenant$ = this.sessionService.tenant$;\n\n protected isAuthenticated$ = this.sessionService.isAuthenticated$;\n\n @ViewChild('profilePopover') profilePopover!: AXPopoverComponent;\n\n editProfile() {\n const appName = this.sessionService.application?.name;\n if (appName === 'asc') {\n this.router.navigate([`/asc/oidc/e/user-info/0/view`]);\n } else {\n this.router.navigate([`/${appName}/m/oidc/e/user-info/0/view`]);\n }\n }\n\n async logOut() {\n await this.sessionService.signout();\n }\n\n toggleProfileMenu() {\n this.profilePopover.open();\n }\n\n protected handleSignIn() {\n this.router.navigate(['/auth/login']);\n }\n\n protected onImageError(event: AXHtmlEvent<ErrorEvent>) {\n this.hasPicture.set(false);\n }\n\n protected getAvatarText = () => {\n this.user$.pipe(first()).subscribe((user) => {\n const names = user?.title.split(' ');\n if (names?.length && names?.length > 1) {\n this.avatarText.set(`${names[0][0].toUpperCase()}${names[names.length - 1][0].toUpperCase()}`);\n } else return this.avatarText.set('AC');\n });\n };\n\n private async loadImage() {\n try {\n const url = this.sessionService.user?.avatar as string;\n if (url?.toLowerCase().startsWith('http')) {\n this.src = url;\n } else if (this.sessionService.user?.avatar != 'null' && this.dataService) {\n const blob = await this.dataService.viewFile(url, '');\n this.src = URL.createObjectURL(blob);\n } else {\n //this.src = this.mockerService.avatar();\n }\n } catch (error) {\n this.hasPicture.set(false);\n console.error('Failed to load image by ID:', error);\n this.src = '';\n }\n }\n}\n","@if((isAuthenticated$ | async)) {\n<div class=\"ax-size-fit ax-px-2\">\n <ax-avatar #avatar color=\"secondary\" (error)=\"this.src = 'path/to/default-image.jpg'\" [size]=\"32\"\n class=\"ax-cursor-pointer\">\n @if(hasPicture()){\n <ax-image (onError)=\"onImageError($event)\" [src]=\"src\"></ax-image>\n }@else{\n <ax-text>\n <small class=\"ax-text-xs ax-font-semibold\">{{ avatarText() }}</small>\n </ax-text>\n }\n </ax-avatar>\n <ax-popover [target]=\"avatar\" [openOn]=\"'toggle'\" [closeOn]=\"'clickOut'\">\n <div class=\"ax-bg-surface ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-64\">\n <div class=\"ax-flex ax-flex-col ax-items-center ax-p-4 ax-border-b\">\n <ax-avatar [size]=\"60\">\n @if(hasPicture()){\n <ax-image (onError)=\"onImageError($event)\" [src]=\"src\">\n <ax-loading></ax-loading>\n </ax-image>\n }@else{\n <ax-text>\n <span class=\"\">{{ avatarText() }}</span>\n </ax-text>\n }\n </ax-avatar>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-mt-2 ax-gap-1\">\n <div class=\"ax-text-base ax-font-bold\">{{ (user$ | async)?.title }}</div>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n </div>\n </div>\n <div class=\"profile-menus ax-text-slate-500\">\n <!-- <ul>\n <li>\n <i class=\"fa-solid fa-folder-open\"></i>\n <span> Project Management </span>\n </li>\n <li>\n <i class=\"fa-solid fa-envelope-open-text\"></i>\n <span>Email Config</span>\n </li>\n <li>\n <i class=\"fa-solid fa-gear\"></i>\n <span>Setting</span>\n </li>\n </ul> -->\n <ul>\n <!-- <li>\n <i class=\"fa-solid fa-gem ax-text-primary-500\"></i>\n <span> Upgrade account </span>\n </li> -->\n <li (click)=\"editProfile()\">\n <i class=\"fa-solid fa-user\"></i>\n <span>{{ 'profile.edit' | translate:{scope:'auth'} | async }}</span>\n </li>\n </ul>\n <ul>\n <li class=\"ax-text-danger-500\" (click)=\"logOut()\">\n <i class=\"fa-solid fa-arrow-right-from-bracket\"></i>\n <span>{{ 'profile.logout' | translate:{scope:'auth'} | async }}</span>\n </li>\n </ul>\n </div>\n </div>\n </ax-popover>\n</div>\n\n} @else {\n<ax-button color=\"default\" look=\"blank\" text=\"Sign Up / Sign In\" (click)=\"handleSignIn()\">\n <ax-icon>\n <i class=\"fa-solid fa-user ax-text-slate-400 dark:ax-text-slate-200\"></i>\n </ax-icon>\n</ax-button>\n}","import { AXPAuthGuard, AXPSessionService } from '@acorex/platform/auth';\nimport { AXPComponentSlotModule } from '@acorex/platform/common';\nimport { NgModule, inject } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n CanActivateFn,\n ROUTES,\n Router,\n RouterModule,\n RouterStateSnapshot,\n Routes,\n} from '@angular/router';\nimport { firstValueFrom } from 'rxjs';\nimport { AXMAppChooserSlotComponent } from './app-chooser/app-chooser-slot.component';\nimport { AXMAuthProfileSlotComponent } from './profile/profile-slot.component';\n\nconst canActivateTenantChooser: CanActivateFn = async (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n const sessionService = inject(AXPSessionService);\n const router = inject(Router);\n\n const tenants = await firstValueFrom(sessionService.tenants$);\n if (tenants.length == 0) {\n return router.createUrlTree(['/auth/login']);\n }\n if (tenants.length == 1) {\n await sessionService.setTenant(tenants[0]);\n return router.createUrlTree(['/auth/account/app-chooser']);\n }\n return true;\n};\n\nconst canActivateAppChooser: CanActivateFn = async (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n const sessionService = inject(AXPSessionService);\n const router = inject(Router);\n const apps = await firstValueFrom(sessionService.applications$);\n if (apps.length == 0) {\n return router.createUrlTree(['/auth/login']);\n }\n if (apps.length == 1) {\n await sessionService.setApplication(apps[0]);\n return router.createUrlTree([`/${apps[0].name}/home`]);\n }\n return true;\n};\n\nfunction routesFacory() {\n let routes: Routes = [];\n routes = [\n {\n path: 'tenant-chooser',\n loadComponent: () =>\n import('./tenant-chooser/tenant-chooser.component').then((c) => c.AXPAuthTenantChooserComponent),\n canActivate: [AXPAuthGuard, canActivateTenantChooser],\n },\n {\n path: 'app-chooser',\n loadComponent: () => import('./app-chooser/app-chooser.component').then((c) => c.AXPAuthAppChooserComponent),\n canActivate: [AXPAuthGuard, canActivateAppChooser],\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [\n RouterModule,\n //\n AXPComponentSlotModule.forChild({\n 'header-end': [\n {\n priority: 98,\n name: 'app-choser',\n component: AXMAppChooserSlotComponent,\n },\n {\n priority: 99,\n name: 'profile',\n component: AXMAuthProfileSlotComponent,\n },\n ],\n }),\n ],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPAccountModule {}\n","import { AXPMenuProvider, AXPMenuProviderContext } from '@acorex/platform/common';\n\nexport class AXMSecurityManagmentModuleMenuProvider implements AXPMenuProvider {\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const scope = 'auth';\n context.addItems([\n {\n text: `t('profile.title', {scope: \"${scope}\"})`,\n name: 'user-profile',\n icon: 'fa-solid fa-user',\n children: [\n {\n text: `t('profile.edit', {scope: \"${scope}\"})`,\n name: 'edit-profile',\n },\n ],\n },\n {\n text: `t('management.title', {scope: \"${scope}\"})`,\n name: 'user-management',\n path: '/security',\n icon: 'fa-solid fa-lock',\n priority: 9001,\n data: {\n //requiredPermission: 'platform.admin.settings',\n },\n children: [\n {\n text: `t('management.users', {scope: \"${scope}\"})`,\n icon: 'fa-solid fa-users',\n priority: 1,\n },\n {\n text: `t('management.rols', {scope: \"${scope}\"})`,\n icon: 'fa-solid fa-key',\n priority: 2,\n },\n ],\n },\n ]);\n }\n}\n","import { AXP_MENU_PROVIDER, AXPCommonModule } from '@acorex/platform/common';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { EffectsModule } from '@ngrx/effects';\nimport { routes } from './auth.routes';\nimport { AXMAuthErrorHandler } from './error-handler';\nimport { AXPAuthEffects } from './store';\nimport { AXPAccountModule } from './account/account.module';\nimport { AXMSecurityManagmentModuleMenuProvider } from './menu.provider';\n\n\n@NgModule({\n imports: [\n CommonModule,\n AXPCommonModule.forChild({ errorHandlers: [AXMAuthErrorHandler] }),\n RouterModule.forChild(routes),\n EffectsModule.forFeature([AXPAuthEffects]),\n AXPAccountModule\n ],\n providers: [\n AXMAuthErrorHandler,\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMSecurityManagmentModuleMenuProvider,\n multi: true\n }\n ],\n})\nexport class AXMAuthModule {\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["switchMap","tap","i1","i2","i3","i4","i6","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQa,mBAAmB,CAAA;AADhC,IAAA,WAAA,GAAA;AAEU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC;AA2BtD;IAzBC,WAAW,CAAC,KAAY,EAAE,IAA0B,EAAA;AAClD,QAAA,IAAI,KAAK,YAAY,iBAAiB,EAAE;;;;;;;;AAOjC,aAAA,IAAI,KAAK,YAAY,oBAAoB,EAAE;AAChD,YAAA,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,EAAE,WAAW;AAC3C,YAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;YAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,WAAW,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,CAAC;;AAC7F,aAAA,IAAI,KAAK,YAAY,uBAAuB,EAAE;AACnD,YAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;AAC5B,YAAA,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,EAAE,WAAW;YAC3C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,WAAW,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,CAAC;;aACpG;YACL,IAAI,SAAS,EAAE,EAAE;AACf,gBAAA,IAAI,CAAC,KAAK,CAAC,CAAC;;iBACP;AACL,gBAAA,IAAI,CAAC,KAAK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AAa,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,CAAC;YAC1C,gBAAgB,CAAA,EAAA,CAAA,CAAA;;2FAWP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAjBzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC;AAClE,wBAAA,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;AAC7B,wBAAA,aAAa,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,CAAC;wBAC1C;AACD,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACT,mBAAmB;AACnB,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,sCAAsC;AAChD,4BAAA,KAAK,EAAE;AACR;AACF,qBAAA;AACF,iBAAA;;;AC5BD;;AAEG;;;;"}
|
package/fesm2022/acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/components/widgets/template/template-picker/template-picker.component.ts","../../../../libs/modules/form-template-management/src/lib/components/widgets/template/template-picker/template-picker.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXPSettingsService, AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPWidgetGroup } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, inject, model, signal, ViewEncapsulation } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { orderBy } from 'lodash-es';\nimport { AXPTemplateWidgetListItem } from '../template.provider';\n\nexport interface AXPDisplayWidgetProvided extends AXPTemplateWidgetListItem {\n pinned: boolean;\n}\n\n@Component({\n imports: [\n CommonModule,\n AXCommonModule,\n FormsModule,\n AXButtonModule,\n AXDecoratorModule,\n AXTabsModule,\n AXSearchBoxModule,\n AXPStickyDirective,\n ],\n templateUrl: './template-picker.component.html',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./template-picker.component.scss']\n})\nexport class AXPTemplateWidgetPickerComponent extends AXBasePageComponent {\n private settingService = inject(AXPSettingsService);\n\n private readonly pinnedSettingKey = 'forms:templates:picker:pinned';\n\n protected searchTerm = model('');\n\n // Signals\n private widgets: AXPDisplayWidgetProvided[] = [];\n private displayWidgets = signal<AXPDisplayWidgetProvided[]>([]);\n\n // Signal to track selected widgets\n protected selectedWidgets = signal<AXPDisplayWidgetProvided[]>([]);\n\n // Computed for filtered and ordered widget list\n private orderedList = computed(() => {\n const search = this.searchTerm().toLowerCase();\n const selectedTabName = this.selectedTab().name;\n\n return orderBy(\n this.displayWidgets().filter((w) => {\n const matchesTab = selectedTabName === 'all' || w.group.name === selectedTabName;\n const matchesSearch =\n !search || w.title.toLowerCase().includes(search) || w.description?.toLowerCase().includes(search);\n return matchesTab && matchesSearch;\n }),\n ['pinned', 'title'],\n ['desc', 'asc']\n );\n });\n\n // Pinned and regular lists\n protected pinnedList = computed(() => this.orderedList().filter((c) => c.pinned));\n protected regularList = computed(() => this.orderedList().filter((c) => !c.pinned));\n\n // Tabs for the widget groups\n protected tabs: AXPWidgetGroup[] = orderBy(\n [{ name: 'all', title: 'All', order: 0 }, ...this.widgets.map(c => c.group)],\n (c) => c.order\n );\n protected currentTabIndex = signal(0);\n protected selectedTab = computed(() => this.tabs[this.currentTabIndex()]);\n\n protected override async ngOnInit() {\n super.ngOnInit();\n const pinnedWidgets = (await this.settingService.get<string[]>(this.pinnedSettingKey)) || [];\n this.displayWidgets.set(this.widgets.map((c) => ({ ...c, pinned: pinnedWidgets.includes(c.id), icon: c.icon ?? 'fa-solid fa-file-invoice' })));\n }\n\n protected handleTabChange(event: AXTabStripChangedEvent): void {\n const indx = event.index;\n if (this.currentTabIndex() != indx) {\n this.currentTabIndex.set(indx);\n }\n }\n\n protected handleClick(event: MouseEvent, widget: AXPDisplayWidgetProvided) {\n if (event.ctrlKey) {\n const currentSelection = this.selectedWidgets();\n const isAlreadySelected = currentSelection.some((w) => w === widget);\n\n if (isAlreadySelected) {\n // Deselect widget if already selected\n this.selectedWidgets.set(currentSelection.filter((w) => w !== widget));\n } else {\n // Add widget to selection\n this.selectedWidgets.set([...currentSelection, widget]);\n }\n } else {\n // If CTRL is not pressed, select only the clicked widget\n this.close({ widgets: [widget] });\n }\n }\n\n protected async handlePinClick(e: MouseEvent, widget: AXPDisplayWidgetProvided) {\n e.stopPropagation();\n widget.pinned = !widget.pinned;\n // Get the current list of pinned widgets from settings\n let pinnedWidgets = (await this.settingService.get<string[]>(this.pinnedSettingKey)) || [];\n\n // Update the list of pinned widgets based on the pinned status\n if (widget.pinned) {\n if (!pinnedWidgets.includes(widget.id)) {\n pinnedWidgets.push(widget.id);\n }\n } else {\n pinnedWidgets = pinnedWidgets.filter((name) => name !== widget.id);\n }\n\n // Save the updated list of pinned widgets\n await this.settingService.set(this.pinnedSettingKey, pinnedWidgets);\n\n // Trigger a re-render of the widgets\n this.displayWidgets.set([...this.displayWidgets()]);\n }\n\n // Check if a widget is selected\n protected isWidgetSelected(widget: AXPDisplayWidgetProvided): boolean {\n return this.selectedWidgets().includes(widget);\n }\n\n protected handleConfirmSelection(): void {\n this.close({ widgets: this.selectedWidgets() });\n }\n}\n","<div class=\"ax-flex ax-flex-col lg:ax-h-[75vh]\">\n <div>\n <ax-tabs [look]=\"'with-line'\" (onActiveTabChanged)=\"handleTabChange($event)\">\n @for(w of tabs;track $index)\n {\n <ax-tab-item [text]=\"w.title\" [key]=\"$index.toString()\"\n [active]=\"currentTabIndex() === $index\"></ax-tab-item>\n }\n </ax-tabs>\n </div>\n <div class=\"ax-overflow-auto\" #content>\n <div class=\"ax-p-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all \" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-shadow-xl'\" [stickyParent]=\"content\" [stickyOffset]=\"10\">\n <ax-search-box look=\"fill\" placeholder=\"e.g. Button, Text, ...\" [(ngModel)]=\"searchTerm\" [delayTime]=\"300\"\n [axAutoFocus]=\"true\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n <div class=\"ax-flex ax-flex-col ax-p-4 ax-pt-0\">\n <ng-template #itemTpl let-w>\n <div (click)=\"handleClick($event,w)\"\n class=\"ax-py-2 ax-px-3 ax-rounded-md ax-flex ax-gap-3 ax-items-center ax-group hover:ax-bg-primary-100 dark:hover:ax-bg-primary-800 ax-cursor-pointer\"\n [class.ax-bg-primary-100]=\"isWidgetSelected(w)\">\n <div class=\"ax-w-10 ax-h-10 ax-flex ax-items-center ax-justify-center ax-rounded-md ax-border ax-border-neutral-200 ax-text-neutral-500 ax-bg-on-surface group-hover:ax-bg-primary-200\"\n [class.ax-bg-primary-200]=\"isWidgetSelected(w)\">\n <i [ngClass]=\"w.icon\" class=\"ax-text-lg group-hover:ax-text-primary-700 ax-text-on-surface-fore\"\n [class.ax-text-primary-700]=\"isWidgetSelected(w)\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-1 ax-flex-1\">\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div class=\"ax-font-semibold ax-text-sm\">{{w.title}}</div>\n <div (click)=\"handlePinClick($event,w)\">\n @if (w.pinned) {\n <i class=\"fa-solid fa-thumbtack ax-text-sm ax-text-neutral-500 ax-rotate-45\"></i>\n }\n @else {\n <i\n class=\"fa-light fa-thumbtack ax-text-sm ax-text-neutral-500 ax-rotate-45 ax-invisible group-hover:ax-visible\"></i>\n }\n </div>\n </div>\n <span class=\"ax-text-xs ax-text-neutral-400 ax-truncate\">\n {{w.description}}\n </span>\n </div>\n </div>\n </ng-template>\n <div class=\"ax-grid ax-grid-cols-2 ax-gap-2 \">\n @for(w of pinnedList();track $index)\n {\n <ng-container *ngTemplateOutlet=\"itemTpl;context:{ $implicit: w}\"></ng-container>\n }\n </div>\n @if(pinnedList().length)\n {\n <hr class=\"ax-my-4 ax-border-dashed\">\n }\n <div class=\"ax-grid ax-grid-cols-2 ax-gap-2 \">\n @for(w of regularList();track $index)\n {\n <ng-container *ngTemplateOutlet=\"itemTpl;context:{ $implicit: w}\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n@if(selectedWidgets().length)\n{\n<ax-footer>\n <ax-suffix>\n <ax-button look=\"solid\" color=\"primary\" text=\"{{ selectedWidgets().length }} Selected\"\n (onClick)=\"handleConfirmSelection()\"></ax-button>\n </ax-suffix>\n</ax-footer>\n}"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAiCM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AAfzE,IAAA,WAAA,GAAA;;AAgBU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kBAAkB,CAAC;QAElC,IAAgB,CAAA,gBAAA,GAAG,+BAA+B;AAEzD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,EAAE,CAAC;;QAGxB,IAAO,CAAA,OAAA,GAA+B,EAAE;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAA6B,EAAE,CAAC;;AAGrD,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAA6B,EAAE,CAAC;;AAG1D,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YAClC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE;YAC9C,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI;AAE/C,YAAA,OAAO,OAAO,CACZ,IAAI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