@acorex-platform/framework-client 2.0.0-next.3 → 2.0.0-next.31
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/fesm2022/acorex-platform-framework-client-auth.mjs +8 -9
- package/fesm2022/acorex-platform-framework-client-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-common-common-settings.provider-ChU2tvyt.mjs → acorex-platform-framework-client-common-common-settings.provider-Biu0_ryw.mjs} +35 -2
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-Biu0_ryw.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs +1387 -538
- package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-core.mjs +7 -2
- package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +20 -0
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +520 -142
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DaOvPoNI.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DmkFxSuJ.mjs} +1084 -223
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DmkFxSuJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-BU7KEfyF.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-BV5WLQVo.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-BU7KEfyF.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-BV5WLQVo.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-Boq0MUFK.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-O8zdiHRH.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-Boq0MUFK.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-O8zdiHRH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-CMoFkzhf.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-B3-0gJTQ.mjs} +4 -4
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-CMoFkzhf.mjs.map → acorex-platform-framework-client-layout-entity-file-list-popup.component-B3-0gJTQ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-Bre8friL.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-CjfLUBPZ.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-Bre8friL.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-CjfLUBPZ.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs +94 -17
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +285 -184
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-1UJh0Qj4.mjs → acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-CpmGqDUE.mjs} +1167 -265
- package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-CpmGqDUE.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-filter-default-operators-widget-edit.component-DOEn58--.mjs +103 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-filter-default-operators-widget-edit.component-DOEn58--.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-SHCgo4UC.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-XgjDH9Oc.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-SHCgo4UC.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-XgjDH9Oc.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BYsrp8LT.mjs → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-DDczHmAA.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BYsrp8LT.mjs.map → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-DDczHmAA.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1 -1
- package/fesm2022/acorex-platform-framework-client-realtime.mjs +49 -7
- package/fesm2022/acorex-platform-framework-client-realtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-create-view.component-DwCoz2Du.mjs → acorex-platform-framework-client-themes-default-entity-master-create-view.component-DPU6jTDk.mjs} +8 -2
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DPU6jTDk.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BCyFK60f.mjs → acorex-platform-framework-client-themes-default-entity-master-modify-view.component-CLdQJ8e8.mjs} +8 -2
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-CLdQJ8e8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-default-error-401.component-1lfBpY_d.mjs → acorex-platform-framework-client-themes-default-error-401.component-DszlyIaw.mjs} +5 -11
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-DszlyIaw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-default-error-404.component-BeWyRCJr.mjs → acorex-platform-framework-client-themes-default-error-404.component-BusKNAit.mjs} +5 -11
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-BusKNAit.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-default-error-offline.component-PvveUj5c.mjs → acorex-platform-framework-client-themes-default-error-offline.component-Abf14p44.mjs} +15 -4
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-Abf14p44.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs +19 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +306 -129
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +11 -5
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
- package/i18n/en-AU/general.json +32 -4
- package/i18n/en-AU/layout.json +2 -1
- package/i18n/en-AU/platform-layout-widgets.json +7 -1
- package/i18n/en-US/general.json +32 -4
- package/i18n/en-US/layout.json +2 -1
- package/i18n/en-US/platform-layout-widgets.json +7 -1
- package/i18n/fa-IR/general.json +32 -4
- package/i18n/fa-IR/layout.json +2 -1
- package/i18n/fa-IR/platform-layout-widgets.json +7 -1
- package/package.json +6 -6
- package/types/acorex-platform-framework-client-auth.d.ts +21 -11
- package/types/acorex-platform-framework-client-common.d.ts +230 -14
- package/types/acorex-platform-framework-client-layout-components.d.ts +47 -6
- package/types/acorex-platform-framework-client-layout-entity.d.ts +187 -35
- package/types/acorex-platform-framework-client-layout-views.d.ts +15 -0
- package/types/acorex-platform-framework-client-layout-widget-core.d.ts +64 -14
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +145 -9
- package/types/acorex-platform-framework-client-realtime.d.ts +5 -0
- package/types/acorex-platform-framework-client-themes-default.d.ts +16 -5
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-ChU2tvyt.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DaOvPoNI.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-1UJh0Qj4.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DwCoz2Du.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BCyFK60f.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-1lfBpY_d.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-BeWyRCJr.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-PvveUj5c.mjs.map +0 -1
|
@@ -3,18 +3,20 @@ import { AXButtonModule } from '@acorex/components/button';
|
|
|
3
3
|
import * as i2 from '@acorex/core/translation';
|
|
4
4
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
5
5
|
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
6
|
-
import { AXPHomePageService } from '@acorex-platform/framework-client/common';
|
|
6
|
+
import { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
11
11
|
import { Router } from '@angular/router';
|
|
12
|
+
import { a as axpGoHomeFromErrorPage } from './acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs';
|
|
12
13
|
|
|
13
14
|
class AXPError401Component {
|
|
14
15
|
constructor() {
|
|
15
16
|
//#region ---- Services & Dependencies ----
|
|
16
17
|
this.sessionService = inject(AXPSessionService);
|
|
17
18
|
this.homePageService = inject(AXPHomePageService);
|
|
19
|
+
this.tabNavigation = inject(AXPTabNavigationService);
|
|
18
20
|
this.router = inject(Router);
|
|
19
21
|
//#endregion
|
|
20
22
|
//#region ---- State ----
|
|
@@ -23,15 +25,7 @@ class AXPError401Component {
|
|
|
23
25
|
//#endregion
|
|
24
26
|
//#region ---- UI Handlers ----
|
|
25
27
|
async goHome() {
|
|
26
|
-
|
|
27
|
-
await this.router.navigate(['/auth/account/tenant-chooser']);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (this.sessionService.application?.id == null) {
|
|
31
|
-
await this.router.navigate(['/auth/account/app-chooser']);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
await this.homePageService.navigateTo();
|
|
28
|
+
await axpGoHomeFromErrorPage(this.sessionService, this.router, this.tabNavigation, this.homePageService);
|
|
35
29
|
}
|
|
36
30
|
async signIn() {
|
|
37
31
|
await this.router.navigate(['/auth/login']);
|
|
@@ -45,4 +39,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
45
39
|
}] });
|
|
46
40
|
|
|
47
41
|
export { AXPError401Component };
|
|
48
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-401.component-
|
|
42
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-401.component-DszlyIaw.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-default-error-401.component-DszlyIaw.mjs","sources":["../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-401/error-401.component.ts","../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-401/error-401.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { axpGoHomeFromErrorPage } from '../error-page-go-home';\n\n@Component({\n selector: 'axp-error-401',\n templateUrl: './error-401.component.html',\n styleUrls: ['./error-401.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXTranslationModule],\n})\nexport class AXPError401Component {\n //#region ---- Services & Dependencies ----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly homePageService = inject(AXPHomePageService);\n private readonly tabNavigation = inject(AXPTabNavigationService);\n private readonly router = inject(Router);\n\n //#endregion\n\n //#region ---- State ----\n\n protected readonly isAuthorized$ = this.sessionService.isAuthorized$;\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected async goHome(): Promise<void> {\n await axpGoHomeFromErrorPage(\n this.sessionService,\n this.router,\n this.tabNavigation,\n this.homePageService,\n );\n }\n\n protected async signIn(): Promise<void> {\n await this.router.navigate(['/auth/login']);\n }\n\n //#endregion\n}\n","<div\n class=\"axp-error-401 h-full flex flex-col gap-8 items-center justify-center bg-lightest dark:bg-darkest\"\n>\n <img\n class=\"axp-error-401__image w-3/4 md:w-1/2 lg:w-1/3 xl:w-1/4\"\n src=\"/assets/images/pages/error/401.svg\"\n [attr.alt]=\"'@general:errors.401.image-alt' | translate | async\"\n />\n <div class=\"flex flex-col items-center gap-2 md:gap-4 text-center px-4\">\n <h1 class=\"font-bold text-2xl md:text-4xl text-neutral-900 dark:text-neutral-50\">\n {{ '@general:errors.401.title' | translate | async }}\n </h1>\n <p class=\"md:text-lg text-neutral-500 dark:text-neutral-300\">\n {{ '@general:errors.401.description' | translate | async }}\n </p>\n </div>\n <div class=\"flex flex-col gap-2 md:gap-4 md:flex-row\">\n @if (isAuthorized$ | async) {\n <ax-button\n (onClick)=\"goHome()\"\n class=\"px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.401.actions.go-home.title' | translate | async\"\n ></ax-button>\n } @else {\n <ax-button\n (onClick)=\"signIn()\"\n class=\"px-4\"\n color=\"primary\"\n [text]=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,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEhD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACE,eAAe,EAAA,eAAA,EAGR,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,YAAY,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,kvCAAA,EAAA,MAAA,EAAA,CAAA,sTAAA,CAAA,EAAA;;;"}
|
|
@@ -3,32 +3,26 @@ import { AXButtonModule } from '@acorex/components/button';
|
|
|
3
3
|
import * as i2 from '@acorex/core/translation';
|
|
4
4
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
5
5
|
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
6
|
-
import { AXPHomePageService } from '@acorex-platform/framework-client/common';
|
|
6
|
+
import { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
11
11
|
import { Router } from '@angular/router';
|
|
12
|
+
import { a as axpGoHomeFromErrorPage } from './acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs';
|
|
12
13
|
|
|
13
14
|
class AXPError404Component {
|
|
14
15
|
constructor() {
|
|
15
16
|
//#region ---- Services & Dependencies ----
|
|
16
17
|
this.sessionService = inject(AXPSessionService);
|
|
17
18
|
this.homePageService = inject(AXPHomePageService);
|
|
19
|
+
this.tabNavigation = inject(AXPTabNavigationService);
|
|
18
20
|
this.router = inject(Router);
|
|
19
21
|
}
|
|
20
22
|
//#endregion
|
|
21
23
|
//#region ---- UI Handlers ----
|
|
22
24
|
async goHome() {
|
|
23
|
-
|
|
24
|
-
await this.router.navigate(['/auth/account/tenant-chooser']);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (this.sessionService.application?.id == null) {
|
|
28
|
-
await this.router.navigate(['/auth/account/app-chooser']);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
await this.homePageService.navigateTo();
|
|
25
|
+
await axpGoHomeFromErrorPage(this.sessionService, this.router, this.tabNavigation, this.homePageService);
|
|
32
26
|
}
|
|
33
27
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPError404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
28
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPError404Component, isStandalone: true, selector: "axp-error-404", ngImport: i0, template: "<div class=\"axp-error-404 h-full flex flex-col gap-8 items-center justify-center bg-lightest dark:bg-darkest\">\n <img\n class=\"axp-error-404__image w-3/4 md:w-1/2 lg:w-1/3 xl:w-1/3\"\n src=\"/assets/images/pages/error/404.svg\"\n [attr.alt]=\"'@general:errors.404.image-alt' | translate | async\"\n />\n <div class=\"flex flex-col items-center gap-2 md:gap-4 text-center px-4\">\n <h1 class=\"font-bold text-2xl md:text-4xl text-neutral-900 dark:text-neutral-50\">\n {{ '@general:errors.404.title' | translate | async }}\n </h1>\n <p class=\"md:text-lg text-neutral-500 dark:text-neutral-300\">\n {{ '@general:errors.404.description' | translate | async }}\n </p>\n </div>\n <div class=\"flex flex-col gap-2 md:gap-4 md:flex-row\">\n <ax-button\n (onClick)=\"goHome()\"\n class=\"px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.404.actions.go-home.title' | translate | async\"\n ></ax-button>\n <ax-button\n class=\"px-4\"\n color=\"default\"\n [text]=\"'@general:errors.404.actions.contact-us.title' | translate | async\"\n ></ax-button>\n </div>\n</div>\n", styles: [".axp-error-404__image{filter:none}.axp-error-404__image:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){opacity:90%}:host-context(.dark) .axp-error-404__image,.dark .axp-error-404__image{filter:brightness(.92) contrast(1.05)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -39,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
39
33
|
}] });
|
|
40
34
|
|
|
41
35
|
export { AXPError404Component };
|
|
42
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-404.component-
|
|
36
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-404.component-BusKNAit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-default-error-404.component-BusKNAit.mjs","sources":["../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-404/error-404.component.ts","../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-404/error-404.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { axpGoHomeFromErrorPage } from '../error-page-go-home';\n\n@Component({\n selector: 'axp-error-404',\n templateUrl: './error-404.component.html',\n styleUrls: ['./error-404.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXTranslationModule],\n})\nexport class AXPError404Component {\n //#region ---- Services & Dependencies ----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly homePageService = inject(AXPHomePageService);\n private readonly tabNavigation = inject(AXPTabNavigationService);\n private readonly router = inject(Router);\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected async goHome(): Promise<void> {\n await axpGoHomeFromErrorPage(\n this.sessionService,\n this.router,\n this.tabNavigation,\n this.homePageService,\n );\n }\n\n //#endregion\n}\n","<div class=\"axp-error-404 h-full flex flex-col gap-8 items-center justify-center bg-lightest dark:bg-darkest\">\n <img\n class=\"axp-error-404__image w-3/4 md:w-1/2 lg:w-1/3 xl:w-1/3\"\n src=\"/assets/images/pages/error/404.svg\"\n [attr.alt]=\"'@general:errors.404.image-alt' | translate | async\"\n />\n <div class=\"flex flex-col items-center gap-2 md:gap-4 text-center px-4\">\n <h1 class=\"font-bold text-2xl md:text-4xl text-neutral-900 dark:text-neutral-50\">\n {{ '@general:errors.404.title' | translate | async }}\n </h1>\n <p class=\"md:text-lg text-neutral-500 dark:text-neutral-300\">\n {{ '@general:errors.404.description' | translate | async }}\n </p>\n </div>\n <div class=\"flex flex-col gap-2 md:gap-4 md:flex-row\">\n <ax-button\n (onClick)=\"goHome()\"\n class=\"px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.404.actions.go-home.title' | translate | async\"\n ></ax-button>\n <ax-button\n class=\"px-4\"\n color=\"default\"\n [text]=\"'@general:errors.404.actions.contact-us.title' | translate | async\"\n ></ax-button>\n </div>\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AA,EAAA,CAAA,CAAA;;2FAEhD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACE,eAAe,EAAA,eAAA,EAGR,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,YAAY,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,ioCAAA,EAAA,MAAA,EAAA,CAAA,sTAAA,CAAA,EAAA;;;"}
|
|
@@ -2,14 +2,25 @@ import * as i3 from '@acorex/components/button';
|
|
|
2
2
|
import { AXButtonModule } from '@acorex/components/button';
|
|
3
3
|
import * as i2 from '@acorex/core/translation';
|
|
4
4
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
5
|
+
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
6
|
+
import { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';
|
|
5
7
|
import { AsyncPipe } from '@angular/common';
|
|
6
8
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
9
|
+
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
10
|
+
import { Router } from '@angular/router';
|
|
11
|
+
import { a as axpGoHomeFromErrorPage } from './acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs';
|
|
8
12
|
|
|
9
13
|
class AXPErrorOfflineComponent {
|
|
10
|
-
constructor() {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.sessionService = inject(AXPSessionService);
|
|
16
|
+
this.homePageService = inject(AXPHomePageService);
|
|
17
|
+
this.tabNavigation = inject(AXPTabNavigationService);
|
|
18
|
+
this.router = inject(Router);
|
|
19
|
+
}
|
|
11
20
|
ngOnInit() { }
|
|
12
|
-
goHome() {
|
|
21
|
+
async goHome() {
|
|
22
|
+
await axpGoHomeFromErrorPage(this.sessionService, this.router, this.tabNavigation, this.homePageService);
|
|
23
|
+
}
|
|
13
24
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPErrorOfflineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
25
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPErrorOfflineComponent, isStandalone: true, selector: "axp-error-offline", ngImport: i0, template: "<div class=\"h-full flex flex-col gap-8 items-center justify-center\">\n <img class=\"w-3/4 md:w-1/2 lg:w-1/3 xl:w-1/4\" src=\"/assets/images/pages/error/offline.png\"\n [attr.alt]=\"('@general:errors.offline.image-alt' | translate | async) ?? ''\">\n <div class=\"flex flex-col items-center gap-2 md:gap-4\">\n <h1 class=\"font-bold text-2xl md:text-4xl\">{{ '@general:errors.offline.title' | translate | async }}</h1>\n <p class=\"md:text-lg text-neutral-400\">{{ '@general:errors.offline.description' | translate | async }}</p>\n\n </div>\n <div class=\"flex flex-col gap-2 md:gap-4 md:flex-row\">\n <ax-button (onClick)=\"goHome()\" class=\"px-4\" color=\"primary\" [text]=\"('@general:errors.offline.actions.go-home.title' | translate | async) ?? ''\"></ax-button>\n <ax-button class=\"px-4\" [color]=\"'default'\" [text]=\"('@general:errors.offline.actions.contact-us.title' | translate | async) ?? ''\"></ax-button>\n </div>\n</div>\n", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
15
26
|
}
|
|
@@ -19,4 +30,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
19
30
|
}], ctorParameters: () => [] });
|
|
20
31
|
|
|
21
32
|
export { AXPErrorOfflineComponent };
|
|
22
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-offline.component-
|
|
33
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-offline.component-Abf14p44.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-default-error-offline.component-Abf14p44.mjs","sources":["../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-offline/error-offline.component.ts","../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-offline/error-offline.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';\nimport { AsyncPipe } from '@angular/common';\nimport { Component, OnInit, ChangeDetectionStrategy, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { axpGoHomeFromErrorPage } from '../error-page-go-home';\n\n@Component({\n selector: 'axp-error-offline',\n templateUrl: './error-offline.component.html',\n styleUrls: ['./error-offline.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [AXButtonModule, AXTranslationModule, AsyncPipe]\n})\nexport class AXPErrorOfflineComponent implements OnInit {\n private readonly sessionService = inject(AXPSessionService);\n private readonly homePageService = inject(AXPHomePageService);\n private readonly tabNavigation = inject(AXPTabNavigationService);\n private readonly router = inject(Router);\n\n constructor() {}\n ngOnInit(): void {}\n\n async goHome(): Promise<void> {\n await axpGoHomeFromErrorPage(\n this.sessionService,\n this.router,\n this.tabNavigation,\n this.homePageService,\n );\n }\n}\n","<div class=\"h-full flex flex-col gap-8 items-center justify-center\">\n <img class=\"w-3/4 md:w-1/2 lg:w-1/3 xl:w-1/4\" src=\"/assets/images/pages/error/offline.png\"\n [attr.alt]=\"('@general:errors.offline.image-alt' | translate | async) ?? ''\">\n <div class=\"flex flex-col items-center gap-2 md:gap-4\">\n <h1 class=\"font-bold text-2xl md:text-4xl\">{{ '@general:errors.offline.title' | translate | async }}</h1>\n <p class=\"md:text-lg text-neutral-400\">{{ '@general:errors.offline.description' | translate | async }}</p>\n\n </div>\n <div class=\"flex flex-col gap-2 md:gap-4 md:flex-row\">\n <ax-button (onClick)=\"goHome()\" class=\"px-4\" color=\"primary\" [text]=\"('@general:errors.offline.actions.go-home.title' | translate | async) ?? ''\"></ax-button>\n <ax-button class=\"px-4\" [color]=\"'default'\" [text]=\"('@general:errors.offline.actions.contact-us.title' | translate | async) ?? ''\"></ax-button>\n </div>\n</div>\n"],"names":["i1"],"mappings":";;;;;;;;;;;;MAgBa,wBAAwB,CAAA;AAMnC,IAAA,WAAA,GAAA;AALiB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAEzB;AACf,IAAA,QAAQ,KAAU;AAElB,IAAA,MAAM,MAAM,GAAA;AACV,QAAA,MAAM,sBAAsB,CAC1B,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,eAAe,CACrB;IACH;8GAhBW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,6EChBrC,i+BAaA,EAAA,MAAA,EAAA,CAAA,qEAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDCc,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,0FAAE,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAE/C,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAPpC,SAAS;+BACI,mBAAmB,EAAA,eAAA,EAGZ,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,cAAc,EAAE,mBAAmB,EAAE,SAAS,CAAC,EAAA,QAAA,EAAA,i+BAAA,EAAA,MAAA,EAAA,CAAA,qEAAA,CAAA,EAAA;;;"}
|
package/fesm2022/acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Leaves a 401/404/offline page for Home and removes that error tab.
|
|
3
|
+
* The tab must not stay in the strip after Go home.
|
|
4
|
+
*/
|
|
5
|
+
async function axpGoHomeFromErrorPage(sessionService, router, tabNavigation, homePageService) {
|
|
6
|
+
if (sessionService.tenant?.id == null) {
|
|
7
|
+
await router.navigate(['/auth/account/tenant-chooser']);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (sessionService.application?.id == null) {
|
|
11
|
+
await router.navigate(['/auth/account/app-chooser']);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
tabNavigation.closeActiveErrorTab();
|
|
15
|
+
await homePageService.navigateTo();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { axpGoHomeFromErrorPage as a };
|
|
19
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs.map
|
package/fesm2022/acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-default-error-page-go-home-B9VmB9Vt.mjs","sources":["../../../../../libs/framework/client/themes/default/src/lib/pages/errors/error-page-go-home.ts"],"sourcesContent":["import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService, AXPTabNavigationService } from '@acorex-platform/framework-client/common';\nimport type { Router } from '@angular/router';\n\n/**\n * Leaves a 401/404/offline page for Home and removes that error tab.\n * The tab must not stay in the strip after Go home.\n */\nexport async function axpGoHomeFromErrorPage(\n sessionService: AXPSessionService,\n router: Router,\n tabNavigation: AXPTabNavigationService,\n homePageService: AXPHomePageService,\n): Promise<void> {\n if (sessionService.tenant?.id == null) {\n await router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (sessionService.application?.id == null) {\n await router.navigate(['/auth/account/app-chooser']);\n return;\n }\n\n tabNavigation.closeActiveErrorTab();\n await homePageService.navigateTo();\n}\n"],"names":[],"mappings":"AAIA;;;AAGG;AACI,eAAe,sBAAsB,CAC1C,cAAiC,EACjC,MAAc,EACd,aAAsC,EACtC,eAAmC,EAAA;IAEnC,IAAI,cAAc,CAAC,MAAM,EAAE,EAAE,IAAI,IAAI,EAAE;QACrC,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,8BAA8B,CAAC,CAAC;QACvD;IACF;IAEA,IAAI,cAAc,CAAC,WAAW,EAAE,EAAE,IAAI,IAAI,EAAE;QAC1C,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,2BAA2B,CAAC,CAAC;QACpD;IACF;IAEA,aAAa,CAAC,mBAAmB,EAAE;AACnC,IAAA,MAAM,eAAe,CAAC,UAAU,EAAE;AACpC;;"}
|